Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Nov 3, 2024
1 parent 6b51f58 commit 2d35cbc
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 116 deletions.
2 changes: 1 addition & 1 deletion internal/data/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func (r *settingRepo) FixPanel() error {
return fmt.Errorf("清理临时文件失败:%w", err)
}
if app.IsCli {
fmt.Println("已清理临时文件,请运行 panel-cli update 更新面板")
fmt.Println("|-已清理临时文件,请运行 panel-cli update 更新面板")
}
return nil
}
Expand Down
22 changes: 9 additions & 13 deletions web/src/views/app/VersionModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,15 @@ const handleClose = () => {
<n-input v-model:value="model.version" placeholder="请选择渠道" readonly disabled />
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button
type="info"
block
:loading="doSubmit"
:disabled="model.channel == null || doSubmit"
@click="handleSubmit"
>
提交
</n-button>
</n-col>
</n-row>
<n-button
type="info"
block
:loading="doSubmit"
:disabled="model.channel == null || doSubmit"
@click="handleSubmit"
>
提交
</n-button>
</n-modal>
</template>

Expand Down
12 changes: 2 additions & 10 deletions web/src/views/apps/pureftpd/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,7 @@ onMounted(() => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" block @click="handleAddUser">提交</n-button>
</n-col>
</n-row>
<n-button type="info" block @click="handleAddUser">提交</n-button>
</n-card>
</n-modal>
<n-modal v-model:show="changePasswordModal">
Expand All @@ -354,11 +350,7 @@ onMounted(() => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" block @click="handleChangePassword">提交</n-button>
</n-col>
</n-row>
<n-button type="info" block @click="handleChangePassword">提交</n-button>
</n-card>
</n-modal>
</template>
6 changes: 1 addition & 5 deletions web/src/views/apps/rsync/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,7 @@ onMounted(() => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" block @click="handleModelAdd">提交</n-button>
</n-col>
</n-row>
<n-button type="info" block @click="handleModelAdd">提交</n-button>
</n-modal>
<n-modal
v-model:show="editModuleModal"
Expand Down
6 changes: 1 addition & 5 deletions web/src/views/apps/s3fs/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,7 @@ onMounted(() => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" block @click="handleAddMount">提交</n-button>
</n-col>
</n-row>
<n-button type="info" block @click="handleAddMount">提交</n-button>
</n-card>
</n-modal>
</template>
6 changes: 1 addition & 5 deletions web/src/views/apps/supervisor/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,7 @@ onUnmounted(() => {
<n-input-number v-model:value="createProcessModel.num" :min="1" />
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" block @click="handleCreateProcess">提交</n-button>
</n-col>
</n-row>
<n-button type="info" block @click="handleCreateProcess">提交</n-button>
</n-modal>
<realtime-log-modal v-model:show="processLogModal" :path="processLog" />
<n-modal
Expand Down
6 changes: 1 addition & 5 deletions web/src/views/backup/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ const handleCreate = () => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" block @click="handleCreate">提交</n-button>
</n-col>
</n-row>
<n-button type="info" block @click="handleCreate">提交</n-button>
</n-modal>
</template>
6 changes: 1 addition & 5 deletions web/src/views/backup/ListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,7 @@ onUnmounted(() => {
<n-input v-model:value="restoreModel.target" type="text" @keydown.enter.prevent />
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" block @click="handleRestore">提交</n-button>
</n-col>
</n-row>
<n-button type="info" block @click="handleRestore">提交</n-button>
</n-modal>
</template>

Expand Down
10 changes: 3 additions & 7 deletions web/src/views/container/ContainerCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,9 @@ onMounted(() => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" block :loading="doSubmit" :disabled="doSubmit" @click="handleSubmit">
提交
</n-button>
</n-col>
</n-row>
<n-button type="info" block :loading="doSubmit" :disabled="doSubmit" @click="handleSubmit">
提交
</n-button>
</n-modal>
</template>

Expand Down
6 changes: 1 addition & 5 deletions web/src/views/container/ContainerView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,7 @@ onMounted(() => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" block @click="handleRename">提交</n-button>
</n-col>
</n-row>
<n-button type="info" block @click="handleRename">提交</n-button>
</n-modal>
<ContainerCreate :show="containerCreateModal" @close="closeContainerCreateModal" />
</template>
10 changes: 3 additions & 7 deletions web/src/views/container/ImageView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,8 @@ onMounted(() => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" :loading="loading" :disabled="loading" block @click="handlePull">
提交
</n-button>
</n-col>
</n-row>
<n-button type="info" block :loading="loading" :disabled="loading" @click="handlePull">
提交
</n-button>
</n-modal>
</template>
10 changes: 3 additions & 7 deletions web/src/views/container/NetworkView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,8 @@ onMounted(() => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" :loading="loading" :disabled="loading" block @click="handleCreate">
提交
</n-button>
</n-col>
</n-row>
<n-button type="info" block :loading="loading" :disabled="loading" @click="handleCreate">
提交
</n-button>
</n-modal>
</template>
10 changes: 3 additions & 7 deletions web/src/views/container/VolumeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,8 @@ onMounted(() => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" :loading="loading" :disabled="loading" block @click="handleCreate">
提交
</n-button>
</n-col>
</n-row>
<n-button type="info" block :loading="loading" :disabled="loading" @click="handleCreate">
提交
</n-button>
</n-modal>
</template>
10 changes: 3 additions & 7 deletions web/src/views/safe/CreateForwardModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,9 @@ const handleCreate = async () => {
</n-col>
</n-row>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" :loading="loading" :disabled="loading" block @click="handleCreate">
提交
</n-button>
</n-col>
</n-row>
<n-button type="info" block :loading="loading" :disabled="loading" @click="handleCreate">
提交
</n-button>
</n-modal>
</template>

Expand Down
10 changes: 3 additions & 7 deletions web/src/views/safe/CreateIpModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,9 @@ const handleCreate = async () => {
<n-select v-model:value="createModel.direction" :options="directions" />
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" :loading="loading" :disabled="loading" block @click="handleCreate">
提交
</n-button>
</n-col>
</n-row>
<n-button type="info" block :loading="loading" :disabled="loading" @click="handleCreate">
提交
</n-button>
</n-modal>
</template>

Expand Down
10 changes: 3 additions & 7 deletions web/src/views/safe/CreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,9 @@ const handleCreate = async () => {
<n-select v-model:value="createModel.direction" :options="directions" />
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button type="info" :loading="loading" :disabled="loading" block @click="handleCreate">
提交
</n-button>
</n-col>
</n-row>
<n-button type="info" block :loading="loading" :disabled="loading" @click="handleCreate">
提交
</n-button>
</n-modal>
</template>

Expand Down
22 changes: 9 additions & 13 deletions web/src/views/website/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -542,19 +542,15 @@ onMounted(() => {
/>
</n-form-item>
</n-form>
<n-row :gutter="[0, 24]">
<n-col :span="24">
<n-button
type="info"
block
:loading="buttonLoading"
:disabled="buttonDisabled"
@click="handleCreate"
>
{{ $t('websiteIndex.create.actions.submit') }}
</n-button>
</n-col>
</n-row>
<n-button
type="info"
block
:loading="buttonLoading"
:disabled="buttonDisabled"
@click="handleCreate"
>
{{ $t('websiteIndex.create.actions.submit') }}
</n-button>
</n-modal>
<n-modal
v-model:show="editDefaultPageModal"
Expand Down

0 comments on commit 2d35cbc

Please sign in to comment.