Skip to content

Commit

Permalink
feat: added auto install
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Nov 26, 2023
1 parent 30ac8b2 commit 709b323
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/spider/SpiderForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@
</cl-form-item>
<!-- ./Row -->

<!-- Row -->
<cl-form-item
:span="2"
:offset="2"
:label="t('components.spider.form.autoInstall')"
prop="auto_install"
>
<cl-switch
v-model="form.auto_install"
/>
</cl-form-item>
<!-- ./Row -->

<!-- Row -->
<cl-form-item
:span="2"
Expand Down
1 change: 1 addition & 0 deletions src/i18n/lang/en/components/spider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const spider: LComponentsSpider = {
description: 'Description',
priority: 'Priority',
incrementalSync: 'Incremental Sync',
autoInstall: 'Auto Install',
},
actions: {
files: {
Expand Down
1 change: 1 addition & 0 deletions src/i18n/lang/zh/components/spider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const spider: LComponentsSpider = {
description: '描述',
priority: '优先级',
incrementalSync: '增量同步文件',
autoInstall: '自动安装依赖',
},
actions: {
files: {
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/i18n/components/spider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ interface LComponentsSpider {
description: string;
priority: string;
incrementalSync: string;
autoInstall: string;
};
actions: {
files: {
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/models/spider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export declare global {
last_task?: Task;
stat?: SpiderStat;
incremental_sync?: boolean;
auto_install?: boolean;
}

interface SpiderStat {
Expand Down

0 comments on commit 709b323

Please sign in to comment.