refactor(client): Use symbol

This commit is contained in:
syuilo 2021-04-10 12:54:12 +09:00
parent d3fe02fb3e
commit 45e5d89353
103 changed files with 246 additions and 142 deletions

View file

@ -26,6 +26,7 @@ import { applyTheme, validateTheme } from '@client/scripts/theme';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
import { addTheme, getThemes } from '@client/theme-store';
import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@ -42,7 +43,7 @@ export default defineComponent({
data() {
return {
INFO: {
[symbols.PAGE_INFO]: {
title: this.$ts._theme.install,
icon: faDownload
},
@ -52,7 +53,7 @@ export default defineComponent({
},
mounted() {
this.$emit('info', this.INFO);
this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {