style: add missing trailing commas (#9387)

This commit is contained in:
Kagami Sascha Rosylight
2022-12-22 16:01:59 +09:00
committed by GitHub
parent 9314ceae36
commit f1fd1d2585
79 changed files with 320 additions and 320 deletions

View File

@@ -58,8 +58,8 @@ withDefaults(defineProps<{
message: null,
primary: false,
var: null,
fn: null
}
fn: null,
},
});
</script>

View File

@@ -32,7 +32,7 @@ withDefaults(defineProps<{
value: {
name: '',
width: 300,
height: 200
}
height: 200,
},
});
</script>

View File

@@ -28,7 +28,7 @@ withDefaults(defineProps<{
value: any
}>(), {
value: {
name: ''
}
name: '',
},
});
</script>

View File

@@ -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;

View File

@@ -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;
});

View File

@@ -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>

View File

@@ -28,7 +28,7 @@ withDefaults(defineProps<{
value: any
}>(), {
value: {
name: ''
}
name: '',
},
});
</script>

View File

@@ -25,7 +25,7 @@ withDefaults(defineProps<{
value: {
text: '',
attachCanvasImage: false,
canvasId: ''
}
canvasId: '',
},
});
</script>

View File

@@ -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>

View File

@@ -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;

View File

@@ -22,8 +22,8 @@ withDefaults(defineProps<{
value: any
}>(), {
value: {
name: ''
}
name: '',
},
});
</script>

View File

@@ -21,7 +21,7 @@ withDefaults(defineProps<{
value: any
}>(), {
value: {
name: ''
}
name: '',
},
});
</script>

View File

@@ -18,8 +18,8 @@ withDefaults(defineProps<{
value: any
}>(), {
value: {
text: ''
}
text: '',
},
});
</script>

View File

@@ -22,7 +22,7 @@ withDefaults(defineProps<{
value: any
}>(), {
value: {
name: ''
}
name: '',
},
});
</script>

View File

@@ -18,8 +18,8 @@ withDefaults(defineProps<{
value: any
}>(), {
value: {
text: ''
}
text: '',
},
});
</script>