diff --git a/examples/components/footer.vue b/examples/components/footer.vue index ca06e032..d24ca406 100644 --- a/examples/components/footer.vue +++ b/examples/components/footer.vue @@ -7,8 +7,7 @@ {{ langConfig.changelog }} {{ langConfig.faq }} {{ langConfig.starter }} - {{ langConfig.theme }} - {{ langConfig.preview }} + {{ langConfig.theme }} Element-React Element-Angular @@ -62,7 +61,7 @@ display: inline-block; vertical-align: top; margin-right: 110px; - + h4 { font-size: 18px; color: #333; @@ -86,7 +85,7 @@ .footer-social { float: right; text-align: right; - + .footer-social-title { color: #666; font-size: 18px; @@ -144,13 +143,13 @@ height: auto; } } - + @media (max-width: 1000px) { .footer-social { display: none; } } - + @media (max-width: 768px) { .footer { .footer-main { diff --git a/examples/components/theme-configurator/index.vue b/examples/components/theme-configurator/index.vue index 04ed6f18..a11591e2 100644 --- a/examples/components/theme-configurator/index.vue +++ b/examples/components/theme-configurator/index.vue @@ -48,6 +48,7 @@ import { export default { props: { themeConfig: Object, + previewConfig: Object, isOfficial: Boolean, onUserConfigUpdate: Function }, @@ -155,7 +156,7 @@ export default { this.onAction(); }, onDownload() { - bus.$emit(ACTION_DOWNLOAD_THEME, this.userConfig); + bus.$emit(ACTION_DOWNLOAD_THEME, this.userConfig, this.previewConfig.name); }, onAction() { this.onUserConfigUpdate(this.userConfig); diff --git a/examples/components/theme/loader/index.vue b/examples/components/theme/loader/index.vue index b84bd25d..e078d115 100644 --- a/examples/components/theme/loader/index.vue +++ b/examples/components/theme/loader/index.vue @@ -23,8 +23,8 @@ export default { this.userConfig = val; this.onAction(); }); - bus.$on(ACTION_DOWNLOAD_THEME, val => { - this.onDownload(val); + bus.$on(ACTION_DOWNLOAD_THEME, (themeConfig, themeName) => { + this.onDownload(themeConfig, themeName); }); }, data() { @@ -41,7 +41,7 @@ export default { }); this.lastApply = time; }, - onDownload(themeConfig) { + onDownload(themeConfig, themeName) { this.triggertProgressBar(true); updateVars( Object.assign({}, themeConfig, { download: true }), @@ -55,7 +55,7 @@ export default { .then(() => { this.triggertProgressBar(false); }); - ga('send', 'event', 'ThemeConfigurator', 'Download'); + ga('send', 'event', 'ThemeConfigurator', 'Download', themeName); }, onAction() { this.triggertProgressBar(true); diff --git a/examples/components/theme/theme-card.vue b/examples/components/theme/theme-card.vue index c928a948..bf7ee0d8 100644 --- a/examples/components/theme/theme-card.vue +++ b/examples/components/theme/theme-card.vue @@ -152,7 +152,7 @@ } &.is-upload:hover { box-shadow: none; - } + } &:hover { box-shadow: 0 0 10px 0 #999; @@ -172,10 +172,10 @@ {{getActionDisplayName('upload-theme')}} - @@ -224,8 +224,8 @@ {{getActionDisplayName('rename-theme')}} {{getActionDisplayName('copy-theme')}} - {{getActionDisplayName('delete-theme')}} @@ -325,7 +325,7 @@ export default { }); break; case 'download': - bus.$emit(ACTION_DOWNLOAD_THEME, this.theme); + bus.$emit(ACTION_DOWNLOAD_THEME, this.theme, this.config.name); break; default: this.$emit('action', e, this.config); diff --git a/examples/i18n/component.json b/examples/i18n/component.json index 3b1e1736..1b7c553d 100644 --- a/examples/i18n/component.json +++ b/examples/i18n/component.json @@ -12,8 +12,7 @@ "repo": "代码仓库", "community": "社区", "changelog": "更新日志", - "theme": "自定义主题工具", - "preview": "在线主题生成", + "theme": "在线主题生成器", "faq": "常见问题", "gitter": "在线讨论", "starter": "脚手架", @@ -44,8 +43,7 @@ "repo": "GitHub", "community": "Community", "changelog": "Changelog", - "theme": "Theme CLI tool", - "preview": "Online theme generator", + "theme": "Online Theme Roller", "faq": "FAQ", "gitter": "Gitter", "starter": "Starter kit", @@ -76,8 +74,7 @@ "repo": "GitHub", "community": "Comunidad", "changelog": "Lista de cambios", - "theme": "Generador de temas por CLI", - "preview": "Generador de temas en línea", + "theme": "Online Theme Roller", "faq": "FAQ", "gitter": "Gitter", "starter": "Kit de inicio", @@ -108,8 +105,7 @@ "repo": "GitHub", "community": "Communauté", "changelog": "Changelog", - "theme": "Générateur de thème (CLI)", - "preview": "Générateur de thème en ligne", + "theme": "Online Theme Roller", "faq": "FAQ", "gitter": "Gitter", "starter": "Kit de démarrage", diff --git a/examples/index.tpl b/examples/index.tpl index fc51edbc..ee4ae898 100644 --- a/examples/index.tpl +++ b/examples/index.tpl @@ -37,6 +37,8 @@ }); <% } %> <% if (process.env.NODE_ENV !== 'production') { %><% } %> diff --git a/examples/pages/template/theme-preview.tpl b/examples/pages/template/theme-preview.tpl index 384cb6f6..0ad1cd02 100644 --- a/examples/pages/template/theme-preview.tpl +++ b/examples/pages/template/theme-preview.tpl @@ -45,6 +45,7 @@