diff --git a/src/assets/scss/theme/meibo-dark.scss b/src/assets/scss/theme/meibo-dark.scss index 2d48d58..f81d6f4 100644 --- a/src/assets/scss/theme/meibo-dark.scss +++ b/src/assets/scss/theme/meibo-dark.scss @@ -20,13 +20,27 @@ } } - .editor-container.paragraph { - color: $content; + .editor-container { + &.paragraph { + color: $content; - h2 { - &:before { - color: $tone; + input { + color: $content; } + + h2 { + &:before { + color: $tone; + } + } + } + + >span.active { + color: $tone; + } + + .image.active { + border-color: $tone; } } @@ -152,6 +166,7 @@ .theme { color: $tone; + p { color: $white; } diff --git a/src/assets/scss/theme/meibo-light.scss b/src/assets/scss/theme/meibo-light.scss index 318d062..219d76c 100644 --- a/src/assets/scss/theme/meibo-light.scss +++ b/src/assets/scss/theme/meibo-light.scss @@ -14,12 +14,28 @@ } } - .paragraph { - h2 { - &:before { - color: $tone; + .editor-container { + &.paragraph { + color: $content; + + input { + color: $content; + } + + h2 { + &:before { + color: $tone; + } } } + + >span.active { + color: $tone; + } + + .image.active { + border-color: $tone; + } } .datepicker-inputbox, diff --git a/src/views/Login.vue b/src/views/Login.vue index 124ce20..893f9cf 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -29,7 +29,7 @@ export default { data () { return { - recaptcha: true, + recaptcha: false, user: { username: '', password: '' diff --git a/src/views/News/List.vue b/src/views/News/List.vue index ec11e71..ec45fb0 100644 --- a/src/views/News/List.vue +++ b/src/views/News/List.vue @@ -49,12 +49,12 @@ this.getAllNews() }, methods: { - ...mapActions(['getAllPost', 'deletePost', 'setMessage']), - async deleteAction (pid) { + ...mapActions(['getAllNews', 'deleteNews', 'setMessage']), + async deleteAction (nid) { if (confirm('確定要刪除這篇文章?此動作不可回復')) { - let success = await this.deletePost({uid: this.user.uid, pid}) + let success = await this.deleteNews({uid: this.user.uid, nid}) if (success) { - this.getAllPost() + this.getAllNews() } else { this.setMessage({ title: '操作失敗,請洽系統管理員', status: 'error' }) }