Skip to content

Commit

Permalink
📝 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 19, 2017
1 parent f18ccbf commit c11f100
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion console/pages/admin/themes/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
},
methods: {
async setup (name) {
if (name === this.currentName) {
return
}
const responseData = await this.axios.put(`/console/themes/${name}`)
if (responseData.code === 0) {
this.$store.commit('setSnackBar', {
Expand Down Expand Up @@ -67,7 +70,7 @@
.card
margin: 0 30px 30px 0
float: left
width: 300px
width: 455px
cursor: pointer
.theme
&--current
Expand Down
2 changes: 1 addition & 1 deletion theme/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ ${selectionObj.toString()}${genCopy(author, link).join('<br>')}</div>`)
addCopyright()

if ('serviceWorker' in navigator && 'caches' in window && 'fetch' in window && config.RuntimeMode === 'prod') {
navigator.serviceWorker.register(`${config.Server}/sw.min.js?${config.StaticResourceVersion}`, {scope: '/'})
// navigator.serviceWorker.register(`${config.Server}/sw.min.js?${config.StaticResourceVersion}`, {scope: '/'})
}

if (navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)) {
Expand Down
Binary file modified theme/x/Gina/thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theme/x/Koma/thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c11f100

Please sign in to comment.