diff --git a/napcat.webui/package.json b/napcat.webui/package.json index 98d32e613..eec25b087 100644 --- a/napcat.webui/package.json +++ b/napcat.webui/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "webui:lint": "eslint . --fix", + "webui:lint": "eslint --fix src/**/*.{js,ts,vue}", "webui:dev": "vite", "webui:build": "vue-tsc -b && vite build", "webui:preview": "vite preview" diff --git a/napcat.webui/src/pages/AboutUs.vue b/napcat.webui/src/pages/AboutUs.vue index 63a45fb20..4bdcf6fae 100644 --- a/napcat.webui/src/pages/AboutUs.vue +++ b/napcat.webui/src/pages/AboutUs.vue @@ -23,9 +23,7 @@ - + \ No newline at end of file +} + diff --git a/napcat.webui/src/pages/OtherConfig.vue b/napcat.webui/src/pages/OtherConfig.vue index f2e4dc66f..685c2dd52 100644 --- a/napcat.webui/src/pages/OtherConfig.vue +++ b/napcat.webui/src/pages/OtherConfig.vue @@ -131,4 +131,4 @@ onMounted(() => { margin-left: 20px; } } - \ No newline at end of file + diff --git a/napcat.webui/src/pages/network/EmptyStateComponent.vue b/napcat.webui/src/pages/network/EmptyStateComponent.vue index 6ce5e6a44..29fb8e9bb 100644 --- a/napcat.webui/src/pages/network/EmptyStateComponent.vue +++ b/napcat.webui/src/pages/network/EmptyStateComponent.vue @@ -19,4 +19,4 @@ defineProps<{ showAddTabDialog: () => void }>(); height: 100%; text-align: center; } - \ No newline at end of file + diff --git a/napcat.webui/src/pages/network/HttpClientComponent.vue b/napcat.webui/src/pages/network/HttpClientComponent.vue index 2ef667c21..71cd8d148 100644 --- a/napcat.webui/src/pages/network/HttpClientComponent.vue +++ b/napcat.webui/src/pages/network/HttpClientComponent.vue @@ -36,14 +36,17 @@ const props = defineProps<{ const messageFormatOptions = ref([ { label: 'Array', value: 'array' }, - { label: 'String', value: 'string' } + { label: 'String', value: 'string' }, ]); -watch(() => props.config.messagePostFormat, (newValue) => { - if (newValue !== 'array' && newValue !== 'string') { - props.config.messagePostFormat = 'array'; +watch( + () => props.config.messagePostFormat, + (newValue) => { + if (newValue !== 'array' && newValue !== 'string') { + props.config.messagePostFormat = 'array'; + } } -}); +); \ No newline at end of file + diff --git a/napcat.webui/src/pages/network/HttpServerComponent.vue b/napcat.webui/src/pages/network/HttpServerComponent.vue index 56b7f0f29..5e61b253d 100644 --- a/napcat.webui/src/pages/network/HttpServerComponent.vue +++ b/napcat.webui/src/pages/network/HttpServerComponent.vue @@ -42,14 +42,17 @@ const props = defineProps<{ const messageFormatOptions = ref([ { label: 'Array', value: 'array' }, - { label: 'String', value: 'string' } + { label: 'String', value: 'string' }, ]); -watch(() => props.config.messagePostFormat, (newValue) => { - if (newValue !== 'array' && newValue !== 'string') { - props.config.messagePostFormat = 'array'; +watch( + () => props.config.messagePostFormat, + (newValue) => { + if (newValue !== 'array' && newValue !== 'string') { + props.config.messagePostFormat = 'array'; + } } -}); +); \ No newline at end of file + diff --git a/napcat.webui/src/pages/network/WebsocketClientComponent.vue b/napcat.webui/src/pages/network/WebsocketClientComponent.vue index 3b2a516a7..d7c2f657e 100644 --- a/napcat.webui/src/pages/network/WebsocketClientComponent.vue +++ b/napcat.webui/src/pages/network/WebsocketClientComponent.vue @@ -39,14 +39,17 @@ const props = defineProps<{ const messageFormatOptions = ref([ { label: 'Array', value: 'array' }, - { label: 'String', value: 'string' } + { label: 'String', value: 'string' }, ]); -watch(() => props.config.messagePostFormat, (newValue) => { - if (newValue !== 'array' && newValue !== 'string') { - props.config.messagePostFormat = 'array'; +watch( + () => props.config.messagePostFormat, + (newValue) => { + if (newValue !== 'array' && newValue !== 'string') { + props.config.messagePostFormat = 'array'; + } } -}); +); \ No newline at end of file + diff --git a/napcat.webui/src/pages/network/WebsocketServerComponent.vue b/napcat.webui/src/pages/network/WebsocketServerComponent.vue index 58c5fdc9e..88830ffa2 100644 --- a/napcat.webui/src/pages/network/WebsocketServerComponent.vue +++ b/napcat.webui/src/pages/network/WebsocketServerComponent.vue @@ -45,14 +45,17 @@ const props = defineProps<{ const messageFormatOptions = ref([ { label: 'Array', value: 'array' }, - { label: 'String', value: 'string' } + { label: 'String', value: 'string' }, ]); -watch(() => props.config.messagePostFormat, (newValue) => { - if (newValue !== 'array' && newValue !== 'string') { - props.config.messagePostFormat = 'array'; +watch( + () => props.config.messagePostFormat, + (newValue) => { + if (newValue !== 'array' && newValue !== 'string') { + props.config.messagePostFormat = 'array'; + } } -}); +); \ No newline at end of file + diff --git a/napcat.webui/src/pages/new/NetWork.old.vue b/napcat.webui/src/pages/new/NetWork.old.vue index 09534da47..f73cf8d88 100644 --- a/napcat.webui/src/pages/new/NetWork.old.vue +++ b/napcat.webui/src/pages/new/NetWork.old.vue @@ -1,6 +1,13 @@