|
@@ -114,24 +114,24 @@ func TestGetAssetsUrl(t *testing.T) {
|
|
|
|
|
|
func TestGetTmplSystemData(t *testing.T) {
|
|
|
Expect(t, GetTmplSystemData("module", "module"), consts.TmplSystem{
|
|
|
- PathIcoFav: "/assets/sys/fave.ico?v=" + consts.AssetsVersion,
|
|
|
- PathSvgLogo: "/assets/sys/logo.svg?v=" + consts.AssetsVersion,
|
|
|
- PathCssStyles: "/assets/sys/styles.css?v=" + consts.AssetsVersion,
|
|
|
- PathCssCpStyles: "/assets/cp/styles.css?v=" + consts.AssetsVersion,
|
|
|
+ CpModule: "module",
|
|
|
+ CpSubModule: "module",
|
|
|
+ InfoVersion: consts.ServerVersion,
|
|
|
PathCssBootstrap: "/assets/bootstrap.css?v=" + consts.AssetsVersion,
|
|
|
PathCssCpCodeMirror: "/assets/cp/tmpl-editor/codemirror.css?v=" + consts.AssetsVersion,
|
|
|
+ PathCssCpStyles: "/assets/cp/styles.css?v=" + consts.AssetsVersion,
|
|
|
PathCssCpWysiwygPell: "/assets/cp/wysiwyg/pell.css?v=" + consts.AssetsVersion,
|
|
|
- PathJsJquery: "/assets/jquery.js?v=" + consts.AssetsVersion,
|
|
|
- PathJsPopper: "/assets/popper.js?v=" + consts.AssetsVersion,
|
|
|
+ PathCssStyles: "/assets/sys/styles.css?v=" + consts.AssetsVersion,
|
|
|
PathJsBootstrap: "/assets/bootstrap.js?v=" + consts.AssetsVersion,
|
|
|
PathJsCpCodeMirror: "/assets/cp/tmpl-editor/codemirror.js?v=" + consts.AssetsVersion,
|
|
|
PathJsCpScripts: "/assets/cp/scripts.js?v=" + consts.AssetsVersion,
|
|
|
PathJsCpWysiwygPell: "/assets/cp/wysiwyg/pell.js?v=" + consts.AssetsVersion,
|
|
|
- PathThemeStyles: "/assets/theme/styles.css",
|
|
|
+ PathJsJquery: "/assets/jquery.js?v=" + consts.AssetsVersion,
|
|
|
+ PathJsPopper: "/assets/popper.js?v=" + consts.AssetsVersion,
|
|
|
+ PathSvgLogo: "/assets/sys/logo.svg?v=" + consts.AssetsVersion,
|
|
|
PathThemeScripts: "/assets/theme/scripts.js",
|
|
|
- InfoVersion: consts.ServerVersion,
|
|
|
- CpModule: "module",
|
|
|
- CpSubModule: "module",
|
|
|
+ PathThemeStyles: "/assets/theme/styles.css",
|
|
|
+ PathIcoFav: "/assets/sys/fave.ico?v=" + consts.AssetsVersion,
|
|
|
})
|
|
|
}
|
|
|
|