mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-27 21:18:13 +09:00
54 lines
1.2 KiB
Vue
54 lines
1.2 KiB
Vue
<template>
|
|
<FormBase>
|
|
<FormButton @click="error()">error test</FormButton>
|
|
</FormBase>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineAsyncComponent, defineComponent } from 'vue';
|
|
import { faFlask } from '@fortawesome/free-solid-svg-icons';
|
|
import FormSwitch from '@client/components/form/switch.vue';
|
|
import FormSelect from '@client/components/form/select.vue';
|
|
import FormLink from '@client/components/form/link.vue';
|
|
import FormBase from '@client/components/form/base.vue';
|
|
import FormGroup from '@client/components/form/group.vue';
|
|
import FormButton from '@client/components/form/button.vue';
|
|
import FormKeyValueView from '@client/components/form/key-value-view.vue';
|
|
import * as os from '@client/os';
|
|
import * as symbols from '@client/symbols';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
FormBase,
|
|
FormSelect,
|
|
FormSwitch,
|
|
FormButton,
|
|
FormLink,
|
|
FormGroup,
|
|
FormKeyValueView,
|
|
},
|
|
|
|
emits: ['info'],
|
|
|
|
data() {
|
|
return {
|
|
[symbols.PAGE_INFO]: {
|
|
title: this.$ts.experimentalFeatures,
|
|
icon: faFlask
|
|
},
|
|
stats: null
|
|
}
|
|
},
|
|
|
|
mounted() {
|
|
this.$emit('info', this[symbols.PAGE_INFO]);
|
|
},
|
|
|
|
methods: {
|
|
error() {
|
|
throw new Error('Test error');
|
|
}
|
|
}
|
|
});
|
|
</script>
|