ci: lint and format codes

This commit is contained in:
100gle
2023-06-11 20:31:28 +08:00
parent b5b632ef29
commit 605f40559e
4 changed files with 11 additions and 6 deletions

View File

@@ -29,10 +29,10 @@ watch(show, (val) => {
}
});
const showDeleteFileDialog = (type: 'disable' | 'delete') => {
function showDeleteFileDialog(type: 'disable' | 'delete') {
deleteFileDialog.show = true;
deleteFileDialog.type = type;
};
}
const close = () => (show.value = false);

View File

@@ -1,11 +1,11 @@
<script lang="ts" setup>
import {
Format,
Me,
Pause,
PlayOne,
Power,
Refresh,
Format,
} from '@icon-park/vue-next';
const search = ref('');

View File

@@ -5,7 +5,12 @@ import type { SettingItem } from '#/components';
const { getSettingGroup } = useConfigStore();
const notification = getSettingGroup('notification');
const notificationType: NotificationType = ['telegram', 'server-chan', 'bark', 'wecom'];
const notificationType: NotificationType = [
'telegram',
'server-chan',
'bark',
'wecom',
];
const items: SettingItem<Notification>[] = [
{

View File

@@ -12,11 +12,11 @@ export type ApiErrorMessage = AuthError | LoginError;
*/
export type StatusCode = 401 | 404 | 406 | 500;
export type ApiError = {
export interface ApiError {
status: StatusCode;
detail: ApiErrorMessage;
msg: string;
};
}
export interface ApiSuccess {
msg: string;