diff --git a/src/client/components/sample.vue b/src/client/components/sample.vue new file mode 100644 index 000000000..2e21b785d --- /dev/null +++ b/src/client/components/sample.vue @@ -0,0 +1,116 @@ + + + + + Text + + + Switch is now {{ flag ? 'on' : 'off' }} + + + Misskey + Mastodon + Pleroma + + This is + the button + + + + + + Open menu + Open dialog + Open form + Open drive + + + + + diff --git a/src/client/pages/theme-editor.vue b/src/client/pages/theme-editor.vue index 5b59d025d..e5b593137 100644 --- a/src/client/pages/theme-editor.vue +++ b/src/client/pages/theme-editor.vue @@ -75,6 +75,12 @@ + + + {{ $t('sample') }} + + + {{ $t('preview') }} @@ -88,16 +94,17 @@ import { defineComponent } from 'vue'; import { faPalette, faChevronDown, faKeyboard } from '@fortawesome/free-solid-svg-icons'; import * as JSON5 from 'json5'; +import { toUnicode } from 'punycode'; import MkRadio from '@/components/ui/radio.vue'; import MkButton from '@/components/ui/button.vue'; import MkInput from '@/components/ui/input.vue'; import MkTextarea from '@/components/ui/textarea.vue'; import MkSelect from '@/components/ui/select.vue'; +import MkSample from '@/components/sample.vue'; import { convertToMisskeyTheme, ThemeValue, convertToViewModel, ThemeViewModel } from '@/scripts/theme-editor'; import { Theme, applyTheme, lightTheme, darkTheme, themeProps, validateTheme } from '@/scripts/theme'; -import { toUnicode } from 'punycode'; import { host } from '@/config'; import * as os from '@/os'; @@ -107,7 +114,8 @@ export default defineComponent({ MkButton, MkInput, MkTextarea, - MkSelect + MkSelect, + MkSample, }, data() {