Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
67d4c9ee
Commit
67d4c9ee
authored
Jun 11, 2019
by
Zhi Cun
Committed by
island205
Jun 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Theme: Refine GA track & Update footer link forward to online theme roller (#16007)
parent
b4c25703
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
28 deletions
+27
-28
examples/components/footer.vue
examples/components/footer.vue
+5
-6
examples/components/theme-configurator/index.vue
examples/components/theme-configurator/index.vue
+2
-1
examples/components/theme/loader/index.vue
examples/components/theme/loader/index.vue
+4
-4
examples/components/theme/theme-card.vue
examples/components/theme/theme-card.vue
+8
-8
examples/i18n/component.json
examples/i18n/component.json
+4
-8
examples/index.tpl
examples/index.tpl
+3
-1
examples/pages/template/theme-preview.tpl
examples/pages/template/theme-preview.tpl
+1
-0
No files found.
examples/components/footer.vue
View file @
67d4c9ee
...
@@ -7,8 +7,7 @@
...
@@ -7,8 +7,7 @@
<a
href=
"https://github.com/ElemeFE/element/releases"
class=
"footer-main-link"
target=
"_blank"
>
{{
langConfig
.
changelog
}}
</a>
<a
href=
"https://github.com/ElemeFE/element/releases"
class=
"footer-main-link"
target=
"_blank"
>
{{
langConfig
.
changelog
}}
</a>
<a
href=
"https://github.com/ElemeFE/element/blob/dev/FAQ.md"
class=
"footer-main-link"
target=
"_blank"
>
{{
langConfig
.
faq
}}
</a>
<a
href=
"https://github.com/ElemeFE/element/blob/dev/FAQ.md"
class=
"footer-main-link"
target=
"_blank"
>
{{
langConfig
.
faq
}}
</a>
<a
href=
"https://github.com/ElementUI/element-starter"
class=
"footer-main-link"
target=
"_blank"
>
{{
langConfig
.
starter
}}
</a>
<a
href=
"https://github.com/ElementUI/element-starter"
class=
"footer-main-link"
target=
"_blank"
>
{{
langConfig
.
starter
}}
</a>
<a
href=
"https://github.com/ElementUI/element-theme"
class=
"footer-main-link"
target=
"_blank"
>
{{
langConfig
.
theme
}}
</a>
<a
:href=
"'/#/' + lang + '/component/custom-theme'"
class=
"footer-main-link"
target=
"_blank"
>
{{
langConfig
.
theme
}}
</a>
<a
href=
"https://github.com/ElementUI/theme-chalk-preview"
class=
"footer-main-link"
target=
"_blank"
>
{{
langConfig
.
preview
}}
</a>
<a
href=
"https://github.com/elemefe/element-react"
class=
"footer-main-link"
target=
"_blank"
>
Element-React
</a>
<a
href=
"https://github.com/elemefe/element-react"
class=
"footer-main-link"
target=
"_blank"
>
Element-React
</a>
<a
href=
"https://github.com/ElemeFE/element-angular"
class=
"footer-main-link"
target=
"_blank"
>
Element-Angular
</a>
<a
href=
"https://github.com/ElemeFE/element-angular"
class=
"footer-main-link"
target=
"_blank"
>
Element-Angular
</a>
</div>
</div>
...
@@ -62,7 +61,7 @@
...
@@ -62,7 +61,7 @@
display
:
inline-block
;
display
:
inline-block
;
vertical-align
:
top
;
vertical-align
:
top
;
margin-right
:
110px
;
margin-right
:
110px
;
h4
{
h4
{
font-size
:
18px
;
font-size
:
18px
;
color
:
#333
;
color
:
#333
;
...
@@ -86,7 +85,7 @@
...
@@ -86,7 +85,7 @@
.footer-social
{
.footer-social
{
float
:
right
;
float
:
right
;
text-align
:
right
;
text-align
:
right
;
.footer-social-title
{
.footer-social-title
{
color
:
#666
;
color
:
#666
;
font-size
:
18px
;
font-size
:
18px
;
...
@@ -144,13 +143,13 @@
...
@@ -144,13 +143,13 @@
height
:
auto
;
height
:
auto
;
}
}
}
}
@media
(
max-width
:
1000px
)
{
@media
(
max-width
:
1000px
)
{
.footer-social
{
.footer-social
{
display
:
none
;
display
:
none
;
}
}
}
}
@media
(
max-width
:
768px
)
{
@media
(
max-width
:
768px
)
{
.footer
{
.footer
{
.footer-main
{
.footer-main
{
...
...
examples/components/theme-configurator/index.vue
View file @
67d4c9ee
...
@@ -48,6 +48,7 @@ import {
...
@@ -48,6 +48,7 @@ import {
export
default
{
export
default
{
props
:
{
props
:
{
themeConfig
:
Object
,
themeConfig
:
Object
,
previewConfig
:
Object
,
isOfficial
:
Boolean
,
isOfficial
:
Boolean
,
onUserConfigUpdate
:
Function
onUserConfigUpdate
:
Function
},
},
...
@@ -155,7 +156,7 @@ export default {
...
@@ -155,7 +156,7 @@ export default {
this
.
onAction
();
this
.
onAction
();
},
},
onDownload
()
{
onDownload
()
{
bus
.
$emit
(
ACTION_DOWNLOAD_THEME
,
this
.
userConfig
);
bus
.
$emit
(
ACTION_DOWNLOAD_THEME
,
this
.
userConfig
,
this
.
previewConfig
.
name
);
},
},
onAction
()
{
onAction
()
{
this
.
onUserConfigUpdate
(
this
.
userConfig
);
this
.
onUserConfigUpdate
(
this
.
userConfig
);
...
...
examples/components/theme/loader/index.vue
View file @
67d4c9ee
...
@@ -23,8 +23,8 @@ export default {
...
@@ -23,8 +23,8 @@ export default {
this
.
userConfig
=
val
;
this
.
userConfig
=
val
;
this
.
onAction
();
this
.
onAction
();
});
});
bus
.
$on
(
ACTION_DOWNLOAD_THEME
,
val
=>
{
bus
.
$on
(
ACTION_DOWNLOAD_THEME
,
(
themeConfig
,
themeName
)
=>
{
this
.
onDownload
(
val
);
this
.
onDownload
(
themeConfig
,
themeName
);
});
});
},
},
data
()
{
data
()
{
...
@@ -41,7 +41,7 @@ export default {
...
@@ -41,7 +41,7 @@ export default {
});
});
this
.
lastApply
=
time
;
this
.
lastApply
=
time
;
},
},
onDownload
(
themeConfig
)
{
onDownload
(
themeConfig
,
themeName
)
{
this
.
triggertProgressBar
(
true
);
this
.
triggertProgressBar
(
true
);
updateVars
(
updateVars
(
Object
.
assign
({},
themeConfig
,
{
download
:
true
}),
Object
.
assign
({},
themeConfig
,
{
download
:
true
}),
...
@@ -55,7 +55,7 @@ export default {
...
@@ -55,7 +55,7 @@ export default {
.
then
(()
=>
{
.
then
(()
=>
{
this
.
triggertProgressBar
(
false
);
this
.
triggertProgressBar
(
false
);
});
});
ga
(
'
send
'
,
'
event
'
,
'
ThemeConfigurator
'
,
'
Download
'
);
ga
(
'
send
'
,
'
event
'
,
'
ThemeConfigurator
'
,
'
Download
'
,
themeName
);
},
},
onAction
()
{
onAction
()
{
this
.
triggertProgressBar
(
true
);
this
.
triggertProgressBar
(
true
);
...
...
examples/components/theme/theme-card.vue
View file @
67d4c9ee
...
@@ -152,7 +152,7 @@
...
@@ -152,7 +152,7 @@
}
}
&
.is-upload
:hover
{
&
.is-upload
:hover
{
box-shadow
:
none
;
box-shadow
:
none
;
}
}
&
:hover
{
&
:hover
{
box-shadow
:
0
0
10px
0
#999
;
box-shadow
:
0
0
10px
0
#999
;
...
@@ -172,10 +172,10 @@
...
@@ -172,10 +172,10 @@
<span>
{{
getActionDisplayName
(
'
upload-theme
'
)
}}
</span>
<span>
{{
getActionDisplayName
(
'
upload-theme
'
)
}}
</span>
</div>
</div>
</div>
</div>
<input
<input
class=
"el-upload__input"
class=
"el-upload__input"
type=
"file"
type=
"file"
ref=
"input"
ref=
"input"
@
change=
"uploadAction"
@
change=
"uploadAction"
accept=
"application/json"
accept=
"application/json"
/>
/>
...
@@ -224,8 +224,8 @@
...
@@ -224,8 +224,8 @@
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"rename"
>
{{
getActionDisplayName
(
'
rename-theme
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"rename"
>
{{
getActionDisplayName
(
'
rename-theme
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"copy"
>
{{
getActionDisplayName
(
'
copy-theme
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"copy"
>
{{
getActionDisplayName
(
'
copy-theme
'
)
}}
</el-dropdown-item>
<el-dropdown-item
<el-dropdown-item
command=
"delete"
command=
"delete"
style=
"color: #F56C6C;"
style=
"color: #F56C6C;"
>
>
{{
getActionDisplayName
(
'
delete-theme
'
)
}}
{{
getActionDisplayName
(
'
delete-theme
'
)
}}
...
@@ -325,7 +325,7 @@ export default {
...
@@ -325,7 +325,7 @@ export default {
});
});
break
;
break
;
case
'
download
'
:
case
'
download
'
:
bus
.
$emit
(
ACTION_DOWNLOAD_THEME
,
this
.
theme
);
bus
.
$emit
(
ACTION_DOWNLOAD_THEME
,
this
.
theme
,
this
.
config
.
name
);
break
;
break
;
default
:
default
:
this
.
$emit
(
'
action
'
,
e
,
this
.
config
);
this
.
$emit
(
'
action
'
,
e
,
this
.
config
);
...
...
examples/i18n/component.json
View file @
67d4c9ee
...
@@ -12,8 +12,7 @@
...
@@ -12,8 +12,7 @@
"repo"
:
"代码仓库"
,
"repo"
:
"代码仓库"
,
"community"
:
"社区"
,
"community"
:
"社区"
,
"changelog"
:
"更新日志"
,
"changelog"
:
"更新日志"
,
"theme"
:
"自定义主题工具"
,
"theme"
:
"在线主题生成器"
,
"preview"
:
"在线主题生成"
,
"faq"
:
"常见问题"
,
"faq"
:
"常见问题"
,
"gitter"
:
"在线讨论"
,
"gitter"
:
"在线讨论"
,
"starter"
:
"脚手架"
,
"starter"
:
"脚手架"
,
...
@@ -44,8 +43,7 @@
...
@@ -44,8 +43,7 @@
"repo"
:
"GitHub"
,
"repo"
:
"GitHub"
,
"community"
:
"Community"
,
"community"
:
"Community"
,
"changelog"
:
"Changelog"
,
"changelog"
:
"Changelog"
,
"theme"
:
"Theme CLI tool"
,
"theme"
:
"Online Theme Roller"
,
"preview"
:
"Online theme generator"
,
"faq"
:
"FAQ"
,
"faq"
:
"FAQ"
,
"gitter"
:
"Gitter"
,
"gitter"
:
"Gitter"
,
"starter"
:
"Starter kit"
,
"starter"
:
"Starter kit"
,
...
@@ -76,8 +74,7 @@
...
@@ -76,8 +74,7 @@
"repo"
:
"GitHub"
,
"repo"
:
"GitHub"
,
"community"
:
"Comunidad"
,
"community"
:
"Comunidad"
,
"changelog"
:
"Lista de cambios"
,
"changelog"
:
"Lista de cambios"
,
"theme"
:
"Generador de temas por CLI"
,
"theme"
:
"Online Theme Roller"
,
"preview"
:
"Generador de temas en línea"
,
"faq"
:
"FAQ"
,
"faq"
:
"FAQ"
,
"gitter"
:
"Gitter"
,
"gitter"
:
"Gitter"
,
"starter"
:
"Kit de inicio"
,
"starter"
:
"Kit de inicio"
,
...
@@ -108,8 +105,7 @@
...
@@ -108,8 +105,7 @@
"repo"
:
"GitHub"
,
"repo"
:
"GitHub"
,
"community"
:
"Communauté"
,
"community"
:
"Communauté"
,
"changelog"
:
"Changelog"
,
"changelog"
:
"Changelog"
,
"theme"
:
"Générateur de thème (CLI)"
,
"theme"
:
"Online Theme Roller"
,
"preview"
:
"Générateur de thème en ligne"
,
"faq"
:
"FAQ"
,
"faq"
:
"FAQ"
,
"gitter"
:
"Gitter"
,
"gitter"
:
"Gitter"
,
"starter"
:
"Kit de démarrage"
,
"starter"
:
"Kit de démarrage"
,
...
...
examples/index.tpl
View file @
67d4c9ee
...
@@ -37,6 +37,8 @@
...
@@ -37,6 +37,8 @@
});
});
</script><
%
}
%
>
</script><
%
}
%
>
<
%
if
(
process
.
env
.
NODE_ENV
!==
'
production
')
{
%
><script>
<
%
if
(
process
.
env
.
NODE_ENV
!==
'
production
')
{
%
><script>
var
ga
=
function
()
{};
var
ga
=
function
()
{
console
.
log
(
arguments
)
};
</script><
%
}
%
>
</script><
%
}
%
>
</html>
</html>
examples/pages/template/theme-preview.tpl
View file @
67d4c9ee
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
<theme-configurator
<theme-configurator
:isOfficial=
"isOfficial"
:isOfficial=
"isOfficial"
:themeConfig=
"themeConfig"
:themeConfig=
"themeConfig"
:previewConfig=
"previewConfig"
:onUserConfigUpdate=
"onUserConfigUpdate"
:onUserConfigUpdate=
"onUserConfigUpdate"
>
>
</theme-configurator>
</theme-configurator>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment