mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-17 08:09:09 +09:00
53 lines
1.1 KiB
Vue
53 lines
1.1 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 '@/components/form/switch.vue';
|
|
import FormSelect from '@/components/form/select.vue';
|
|
import FormLink from '@/components/form/link.vue';
|
|
import FormBase from '@/components/form/base.vue';
|
|
import FormGroup from '@/components/form/group.vue';
|
|
import FormButton from '@/components/form/button.vue';
|
|
import FormKeyValueView from '@/components/form/key-value-view.vue';
|
|
import * as os from '@/os';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
FormBase,
|
|
FormSelect,
|
|
FormSwitch,
|
|
FormButton,
|
|
FormLink,
|
|
FormGroup,
|
|
FormKeyValueView,
|
|
},
|
|
|
|
emits: ['info'],
|
|
|
|
data() {
|
|
return {
|
|
INFO: {
|
|
title: this.$ts.experimentalFeatures,
|
|
icon: faFlask
|
|
},
|
|
stats: null
|
|
}
|
|
},
|
|
|
|
mounted() {
|
|
this.$emit('info', this.INFO);
|
|
},
|
|
|
|
methods: {
|
|
error() {
|
|
throw new Error('Test error');
|
|
}
|
|
}
|
|
});
|
|
</script>
|