fix frontend lint errors
This commit is contained in:
parent
0c9fe00c12
commit
3dda3d0675
3 changed files with 6 additions and 4 deletions
|
|
@ -27,17 +27,18 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useTemplateRef } from 'vue';
|
import { useTemplateRef } from 'vue';
|
||||||
import type { PostFormProps } from '@/types/post-form.js';
|
import type { PostFormProps } from '@/types/post-form.js';
|
||||||
|
import type * as Misskey from 'misskey-js';
|
||||||
import MkModal from '@/components/MkModal.vue';
|
import MkModal from '@/components/MkModal.vue';
|
||||||
import MkPostForm from '@/components/MkPostForm.vue';
|
import MkPostForm from '@/components/MkPostForm.vue';
|
||||||
import * as Misskey from 'misskey-js';
|
|
||||||
|
|
||||||
const props = withDefaults(defineProps<PostFormProps & {
|
const props = withDefaults(defineProps<PostFormProps & {
|
||||||
instant?: boolean;
|
instant?: boolean;
|
||||||
fixed?: boolean;
|
fixed?: boolean;
|
||||||
autofocus?: boolean;
|
autofocus?: boolean;
|
||||||
editId?: Misskey.entities.Note["id"];
|
editId?: Misskey.entities.Note['id'];
|
||||||
}>(), {
|
}>(), {
|
||||||
initialLocalOnly: undefined,
|
initialLocalOnly: undefined,
|
||||||
|
editId: undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,8 @@ export class Pizzax<T extends StateDef> {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async init(): Promise<void> {
|
// Must be public for Storybook
|
||||||
|
public async init(): Promise<void> {
|
||||||
await this.migrate();
|
await this.migrate();
|
||||||
|
|
||||||
const deviceState: State<T> = await get(this.deviceStateKeyName) || {};
|
const deviceState: State<T> = await get(this.deviceStateKeyName) || {};
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as Misskey from 'misskey-js';
|
import type * as Misskey from 'misskey-js';
|
||||||
|
|
||||||
export interface PostFormProps {
|
export interface PostFormProps {
|
||||||
reply?: Misskey.entities.Note;
|
reply?: Misskey.entities.Note;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue