package consts
import (
"html/template"
)
const AssetsPath = "assets"
const DirIndexFile = "index.html"
// Bootstrap resources
const AssetsBootstrapCss = AssetsPath + "/bootstrap.css"
const AssetsBootstrapJs = AssetsPath + "/bootstrap.js"
const AssetsJqueryJs = AssetsPath + "/jquery.js"
const AssetsPopperJs = AssetsPath + "/popper.js"
// System resources
const AssetsCpImgLoadGif = AssetsPath + "/cp/img-load.gif"
const AssetsCpScriptsJs = AssetsPath + "/cp/scripts.js"
const AssetsCpStylesCss = AssetsPath + "/cp/styles.css"
const AssetsSysBgPng = AssetsPath + "/sys/bg.png"
const AssetsSysFaveIco = AssetsPath + "/sys/fave.ico"
const AssetsSysLogoPng = AssetsPath + "/sys/logo.png"
const AssetsSysLogoSvg = AssetsPath + "/sys/logo.svg"
const AssetsSysStylesCss = AssetsPath + "/sys/styles.css"
const AssetsSysPlaceholderPng = AssetsPath + "/sys/placeholder.png"
// Wysiwyg editor
const AssetsCpWysiwygPellCss = AssetsPath + "/cp/wysiwyg/pell.css"
const AssetsCpWysiwygPellJs = AssetsPath + "/cp/wysiwyg/pell.js"
// CodeMirror template editor
const AssetsCpCodeMirrorCss = AssetsPath + "/cp/tmpl-editor/codemirror.css"
const AssetsCpCodeMirrorJs = AssetsPath + "/cp/tmpl-editor/codemirror.js"
// LightGallery for products
const AssetsLightGalleryCss = AssetsPath + "/lightgallery.css"
const AssetsLightGalleryJs = AssetsPath + "/lightgallery.js"
// Make global for other packages
var ParamDebug bool
var ParamHost string
var ParamKeepAlive bool
var ParamPort int
var ParamWwwDir string
// For admin panel
type BreadCrumb struct {
Name string
Link string
}
// Template data
type TmplSystem struct {
CpSubModule string
InfoVersion string
PathCssBootstrap string
PathCssCpCodeMirror string
PathCssCpStyles string
PathCssCpWysiwygPell string
PathCssLightGallery string
PathCssStyles string
PathIcoFav string
PathJsBootstrap string
PathJsCpCodeMirror string
PathJsCpScripts string
PathJsCpWysiwygPell string
PathJsJquery string
PathJsLightGallery string
PathJsPopper string
PathSvgLogo string
PathThemeScripts string
PathThemeStyles string
CpModule string
}
type TmplError struct {
ErrorMessage string
}
type TmplData struct {
System TmplSystem
Data interface{}
}
type TmplDataCpBase struct {
Caption string
Content template.HTML
ModuleCurrentAlias string
NavBarModules template.HTML
NavBarModulesSys template.HTML
SidebarLeft template.HTML
SidebarRight template.HTML
Title string
UserAvatarLink string
UserEmail string
UserFirstName string
UserId int
UserLastName string
UserPassword string
BodyClasses string
}
type TmplOrderClient struct {
LastName string
FirstName string
MiddleName string
Phone string
Email string
DeliveryComment string
OrderComment string
}
type TmplOrderElse struct {
OrderId int64
Subject string
CpOrderLink string
}
type TmplEmailOrder struct {
Basket interface{}
Client TmplOrderClient
Else TmplOrderElse
}