forked from mirrors/misskey
style: add missing trailing commas (#9387)
This commit is contained in:
committed by
GitHub
parent
9314ceae36
commit
f1fd1d2585
@@ -58,8 +58,8 @@ withDefaults(defineProps<{
|
||||
message: null,
|
||||
primary: false,
|
||||
var: null,
|
||||
fn: null
|
||||
}
|
||||
fn: null,
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ withDefaults(defineProps<{
|
||||
value: {
|
||||
name: '',
|
||||
width: 300,
|
||||
height: 200
|
||||
}
|
||||
height: 200,
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -28,7 +28,7 @@ withDefaults(defineProps<{
|
||||
value: any
|
||||
}>(), {
|
||||
value: {
|
||||
name: ''
|
||||
}
|
||||
name: '',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -42,8 +42,8 @@ const props = withDefaults(defineProps<{
|
||||
}>(), {
|
||||
value: {
|
||||
children: [],
|
||||
var: null
|
||||
}
|
||||
var: null,
|
||||
},
|
||||
});
|
||||
|
||||
const getPageBlockList = inject<(any) => any>('getPageBlockList');
|
||||
@@ -51,7 +51,7 @@ const getPageBlockList = inject<(any) => any>('getPageBlockList');
|
||||
async function add() {
|
||||
const { canceled, result: type } = await os.select({
|
||||
title: i18n.ts._pages.chooseBlock,
|
||||
groupedItems: getPageBlockList()
|
||||
groupedItems: getPageBlockList(),
|
||||
});
|
||||
if (canceled) return;
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ const props = withDefaults(defineProps<{
|
||||
value: any
|
||||
}>(), {
|
||||
value: {
|
||||
fileId: null
|
||||
}
|
||||
fileId: null,
|
||||
},
|
||||
});
|
||||
|
||||
let file: any = $ref(null);
|
||||
@@ -43,7 +43,7 @@ onMounted(async () => {
|
||||
await choose();
|
||||
} else {
|
||||
os.api('drive/files/show', {
|
||||
fileId: props.value.fileId
|
||||
fileId: props.value.fileId,
|
||||
}).then(fileResponse => {
|
||||
file = fileResponse;
|
||||
});
|
||||
|
||||
@@ -31,8 +31,8 @@ const props = withDefaults(defineProps<{
|
||||
}>(), {
|
||||
value: {
|
||||
note: null,
|
||||
detailed: false
|
||||
}
|
||||
detailed: false,
|
||||
},
|
||||
});
|
||||
|
||||
let id: any = $ref(props.value.note);
|
||||
@@ -47,6 +47,6 @@ watch(id, async () => {
|
||||
|
||||
note = await os.api('notes/show', { noteId: props.value.note });
|
||||
}, {
|
||||
immediate: true
|
||||
immediate: true,
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -28,7 +28,7 @@ withDefaults(defineProps<{
|
||||
value: any
|
||||
}>(), {
|
||||
value: {
|
||||
name: ''
|
||||
}
|
||||
name: '',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -25,7 +25,7 @@ withDefaults(defineProps<{
|
||||
value: {
|
||||
text: '',
|
||||
attachCanvasImage: false,
|
||||
canvasId: ''
|
||||
}
|
||||
canvasId: '',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -25,8 +25,8 @@ const props = withDefaults(defineProps<{
|
||||
value: {
|
||||
name: '',
|
||||
title: '',
|
||||
values: []
|
||||
}
|
||||
values: [],
|
||||
},
|
||||
});
|
||||
|
||||
let values: string = $ref(props.value.values.join('\n'));
|
||||
@@ -34,6 +34,6 @@ let values: string = $ref(props.value.values.join('\n'));
|
||||
watch(values, () => {
|
||||
props.value.values = values.split('\n');
|
||||
}, {
|
||||
deep: true
|
||||
deep: true,
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -33,8 +33,8 @@ const props = withDefaults(defineProps<{
|
||||
}>(), {
|
||||
value: {
|
||||
title: null,
|
||||
children: []
|
||||
}
|
||||
children: [],
|
||||
},
|
||||
});
|
||||
|
||||
const getPageBlockList = inject<(any) => any>('getPageBlockList');
|
||||
@@ -42,7 +42,7 @@ const getPageBlockList = inject<(any) => any>('getPageBlockList');
|
||||
async function rename() {
|
||||
const { canceled, result: title } = await os.inputText({
|
||||
title: 'Enter title',
|
||||
default: props.value.title
|
||||
default: props.value.title,
|
||||
});
|
||||
if (canceled) return;
|
||||
props.value.title = title;
|
||||
@@ -51,7 +51,7 @@ async function rename() {
|
||||
async function add() {
|
||||
const { canceled, result: type } = await os.select({
|
||||
title: i18n.ts._pages.chooseBlock,
|
||||
groupedItems: getPageBlockList()
|
||||
groupedItems: getPageBlockList(),
|
||||
});
|
||||
if (canceled) return;
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ withDefaults(defineProps<{
|
||||
value: any
|
||||
}>(), {
|
||||
value: {
|
||||
name: ''
|
||||
}
|
||||
name: '',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ withDefaults(defineProps<{
|
||||
value: any
|
||||
}>(), {
|
||||
value: {
|
||||
name: ''
|
||||
}
|
||||
name: '',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -18,8 +18,8 @@ withDefaults(defineProps<{
|
||||
value: any
|
||||
}>(), {
|
||||
value: {
|
||||
text: ''
|
||||
}
|
||||
text: '',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ withDefaults(defineProps<{
|
||||
value: any
|
||||
}>(), {
|
||||
value: {
|
||||
name: ''
|
||||
}
|
||||
name: '',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -18,8 +18,8 @@ withDefaults(defineProps<{
|
||||
value: any
|
||||
}>(), {
|
||||
value: {
|
||||
text: ''
|
||||
}
|
||||
text: '',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user