Skip to content

Commit 108cadb

Browse files
committed
Fix lint issue
Signed-off-by: Ryan Wang <i@ryanc.cc>
1 parent 3aa76be commit 108cadb

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scripts": {
44
"build": "rsbuild build",
55
"dev": "rsbuild build --env-mode development --watch",
6-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
6+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path ../.gitignore",
77
"prettier": "prettier --write src/",
88
"type-check": "vue-tsc --build --force"
99
},

ui/src/views/PostImport.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ const activeTab = useLocalStorage('plugin:content-tools:import-active-tab', 'mar
3737
<VTabbar
3838
v-model:active-id="activeTab"
3939
:items="tabs.map((item) => ({ id: item.id, label: item.label }))"
40-
class="w-full !rounded-none"
40+
class=":uno: w-full !rounded-none"
4141
type="outline"
4242
></VTabbar>
4343
</template>
44-
<div class="bg-white">
44+
<div class=":uno: bg-white">
4545
<template v-for="tab in tabs" :key="tab.id">
4646
<component :is="tab.component" v-if="activeTab === tab.id" />
4747
</template>

ui/src/views/tabs/MarkdownImport.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ const showAlert = useSessionStorage('plugin:content-tools:markdown-import-alert'
334334
</script>
335335
<template>
336336
<div>
337-
<div v-if="showAlert" class=":uno: w-full lg:w-1/2 mb-5">
337+
<div v-if="showAlert" class=":uno: mb-5 w-full lg:w-1/2">
338338
<VAlert title="提示" @close="showAlert = false">
339339
<template #description>
340340
<ul class=":uno: ml-2 list-disc list-inside space-y-1">
@@ -344,7 +344,7 @@ const showAlert = useSessionStorage('plugin:content-tools:markdown-import-alert'
344344
</li>
345345
<li>
346346
图片会上传到与个人中心关联的存储策略,请提前在
347-
<a class="text-gray-900 hover:text-gray-600" href="/console/settings?tab=user"
347+
<a class=":uno: text-gray-900 hover:text-gray-600" href="/console/settings?tab=user"
348348
>用户设置</a
349349
>
350350
中设置。
@@ -396,9 +396,9 @@ const showAlert = useSessionStorage('plugin:content-tools:markdown-import-alert'
396396

397397
<div class=":uno: mt-5">
398398
<FormKit
399+
v-model="convertToHtml"
399400
type="checkbox"
400401
label="转为富文本格式"
401-
v-model="convertToHtml"
402402
:disabled="isBusy"
403403
help="可能出现格式不兼容的问题,建议谨慎使用"
404404
></FormKit>

ui/src/views/tabs/WordImport.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,21 +296,27 @@ const showAlert = useSessionStorage('plugin:content-tools:word-import-alert', tr
296296
</script>
297297
<template>
298298
<div>
299-
<div v-if="showAlert" class=":uno: w-full lg:w-1/2 mb-5">
299+
<div v-if="showAlert" class=":uno: mb-5 w-full lg:w-1/2">
300300
<VAlert title="提示" @close="showAlert = false">
301301
<template #description>
302302
<ul class=":uno: ml-2 list-disc list-inside space-y-1">
303303
<li>由于 Word 文件的复杂性,可能无法完美解析内容格式,建议导入之后自行调整。</li>
304304
<li>支持同时导入 Word 文件中的图片资源,其他资源暂不支持。</li>
305-
<li>图片会上传到与个人中心关联的存储策略,请提前在 <a class="text-gray-900 hover:text-gray-600" href="/console/settings?tab=user">用户设置</a> 中设置。</li>
305+
<li>
306+
图片会上传到与个人中心关联的存储策略,请提前在
307+
<a class=":uno: text-gray-900 hover:text-gray-600" href="/console/settings?tab=user"
308+
>用户设置</a
309+
>
310+
中设置。
311+
</li>
306312
</ul>
307313
</template>
308314
</VAlert>
309315
</div>
310316
<VSpace>
311317
<VButton :disabled="isBusy" @click="fileInput?.click()">选择 Word 文档</VButton>
312318
<VButton :disabled="isBusy" @click="folderInput?.click()">选择 Word 文档文件夹</VButton>
313-
<VButton :disabled="isBusy" v-if="importQueue.length > 0" @click="handleClear">
319+
<VButton v-if="importQueue.length > 0" :disabled="isBusy" @click="handleClear">
314320
清空文件
315321
</VButton>
316322

@@ -334,9 +340,9 @@ const showAlert = useSessionStorage('plugin:content-tools:word-import-alert', tr
334340

335341
<div class=":uno: mt-5">
336342
<FormKit
343+
v-model="convertToMarkdown"
337344
type="checkbox"
338345
label="转为 Markdown 格式"
339-
v-model="convertToMarkdown"
340346
:disabled="isBusy"
341347
help="可能出现格式不兼容的问题,建议谨慎使用"
342348
></FormKit>

0 commit comments

Comments
 (0)