Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:allanpk716/ChineseSubFinder into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
allanpk716 committed Sep 2, 2022
2 parents 1e8bc13 + 7c0f1cf commit 72cc1c7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
10 changes: 8 additions & 2 deletions frontend/src/pages/settings/EmbySettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@
v-model="form.address_url"
standout
dense
:rules="[(val) => (form.enable && !!val) || '不能为空']"
:rules="[
(val) => (form.enable && !!val) || '不能为空',
(val) =>
val.match(
/^(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?$/
) || '请输入正确的URL',
]"
/>
</q-item-section>
</q-item>
Expand Down Expand Up @@ -56,7 +62,7 @@

<q-separator spaced inset></q-separator>

<q-item :class="{disabled: form.auto_or_manual}" tag="label" v-ripple>
<q-item :class="{ disabled: form.auto_or_manual }" tag="label" v-ripple>
<q-item-section>
<q-item-label>自动匹配IMDB ID</q-item-label>
</q-item-section>
Expand Down
16 changes: 13 additions & 3 deletions frontend/src/pages/setup/EmbySetupForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@
<q-item-label>Emby的内网URL</q-item-label>
</q-item-section>
<q-item-section>
<q-input v-model="setupState.form.emby.url" standout dense :rules="[(val) => !!val || '不能为空']" />
<q-input
v-model="setupState.form.emby.url"
standout
dense
:rules="[
(val) => !!val || '不能为空',
(val) =>
val.match(
/^(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?$/
) || '请输入正确的URL',
]"
/>
</q-item-section>
</q-item>
<q-item>
Expand Down Expand Up @@ -39,8 +50,7 @@
</q-item-section>
</q-item>


<q-item :class="{disabled: setupState.form.emby.autoOrManual}" tag="label" v-ripple>
<q-item :class="{ disabled: setupState.form.emby.autoOrManual }" tag="label" v-ripple>
<q-item-section>
<q-item-label>自动匹配IMDB ID</q-item-label>
</q-item-section>
Expand Down

0 comments on commit 72cc1c7

Please sign in to comment.