mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 08:06:43 +08:00
为多个组件的对话框添加全屏显示逻辑
This commit is contained in:
@@ -5,6 +5,10 @@ import filter_svg from '@images/svg/filter.svg'
|
|||||||
import { cloneDeep } from 'lodash-es'
|
import { cloneDeep } from 'lodash-es'
|
||||||
import { innerFilterRules } from '@/api/constants'
|
import { innerFilterRules } from '@/api/constants'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 输入参数
|
// 输入参数
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -106,7 +110,13 @@ function onClose() {
|
|||||||
<VImg :src="filter_svg" cover class="mt-7" max-width="3rem" />
|
<VImg :src="filter_svg" cover class="mt-7" max-width="3rem" />
|
||||||
</VCardText>
|
</VCardText>
|
||||||
</VCard>
|
</VCard>
|
||||||
<VDialog v-if="ruleInfoDialog" v-model="ruleInfoDialog" scrollable max-width="40rem">
|
<VDialog
|
||||||
|
v-if="ruleInfoDialog"
|
||||||
|
v-model="ruleInfoDialog"
|
||||||
|
scrollable
|
||||||
|
max-width="40rem"
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard :title="t('customRule.title', { id: props.rule.id })">
|
<VCard :title="t('customRule.title', { id: props.rule.id })">
|
||||||
<VDialogCloseBtn v-model="ruleInfoDialog" />
|
<VDialogCloseBtn v-model="ruleInfoDialog" />
|
||||||
<VDivider />
|
<VDivider />
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ import custom_image from '@images/logos/downloader.png'
|
|||||||
import { cloneDeep } from 'lodash-es'
|
import { cloneDeep } from 'lodash-es'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { downloaderDict } from '@/api/constants'
|
import { downloaderDict } from '@/api/constants'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 获取i18n实例
|
// 获取i18n实例
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -188,7 +192,14 @@ onUnmounted(() => {
|
|||||||
</VCardText>
|
</VCardText>
|
||||||
</VCard>
|
</VCard>
|
||||||
</VHover>
|
</VHover>
|
||||||
<VDialog v-if="downloaderInfoDialog" v-model="downloaderInfoDialog" scrollable max-width="40rem">
|
|
||||||
|
<VDialog
|
||||||
|
v-if="downloaderInfoDialog"
|
||||||
|
v-model="downloaderInfoDialog"
|
||||||
|
scrollable
|
||||||
|
max-width="40rem"
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard :title="`${props.downloader.name} - ${t('downloader.title')}`">
|
<VCard :title="`${props.downloader.name} - ${t('downloader.title')}`">
|
||||||
<VDialogCloseBtn v-model="downloaderInfoDialog" />
|
<VDialogCloseBtn v-model="downloaderInfoDialog" />
|
||||||
<VDivider />
|
<VDivider />
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ import ImportCodeDialog from '@/components/dialog/ImportCodeDialog.vue'
|
|||||||
import filter_group_svg from '@images/svg/filter-group.svg'
|
import filter_group_svg from '@images/svg/filter-group.svg'
|
||||||
import { cloneDeep } from 'lodash-es'
|
import { cloneDeep } from 'lodash-es'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 获取i18n实例
|
// 获取i18n实例
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -219,7 +223,13 @@ function onClose() {
|
|||||||
<VImg :src="filter_group_svg" cover class="mt-10" max-width="3rem" />
|
<VImg :src="filter_group_svg" cover class="mt-10" max-width="3rem" />
|
||||||
</VCardText>
|
</VCardText>
|
||||||
</VCard>
|
</VCard>
|
||||||
<VDialog v-if="groupInfoDialog" v-model="groupInfoDialog" scrollable max-width="80rem">
|
<VDialog
|
||||||
|
v-if="groupInfoDialog"
|
||||||
|
v-model="groupInfoDialog"
|
||||||
|
scrollable
|
||||||
|
max-width="80rem"
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard :title="`${props.group.name} - ${t('filterRule.title')}`">
|
<VCard :title="`${props.group.name} - ${t('filterRule.title')}`">
|
||||||
<VDialogCloseBtn v-model="groupInfoDialog" />
|
<VDialogCloseBtn v-model="groupInfoDialog" />
|
||||||
<VDivider />
|
<VDivider />
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ import api from '@/api'
|
|||||||
import { cloneDeep } from 'lodash-es'
|
import { cloneDeep } from 'lodash-es'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { mediaServerDict } from '@/api/constants'
|
import { mediaServerDict } from '@/api/constants'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 获取i18n实例
|
// 获取i18n实例
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -199,7 +203,14 @@ onMounted(() => {
|
|||||||
<VImg :src="getIcon" cover class="mt-7 me-3" max-width="3rem" min-width="3rem" />
|
<VImg :src="getIcon" cover class="mt-7 me-3" max-width="3rem" min-width="3rem" />
|
||||||
</VCardText>
|
</VCardText>
|
||||||
</VCard>
|
</VCard>
|
||||||
<VDialog v-if="mediaServerInfoDialog" v-model="mediaServerInfoDialog" scrollable max-width="40rem">
|
|
||||||
|
<VDialog
|
||||||
|
v-if="mediaServerInfoDialog"
|
||||||
|
v-model="mediaServerInfoDialog"
|
||||||
|
scrollable
|
||||||
|
max-width="40rem"
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard :title="`${props.mediaserver.name} - ${t('common.config')}`">
|
<VCard :title="`${props.mediaserver.name} - ${t('common.config')}`">
|
||||||
<VDialogCloseBtn v-model="mediaServerInfoDialog" />
|
<VDialogCloseBtn v-model="mediaServerInfoDialog" />
|
||||||
<VDivider />
|
<VDivider />
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ import custom_image from '@images/logos/notification.png'
|
|||||||
import { useToast } from 'vue-toast-notification'
|
import { useToast } from 'vue-toast-notification'
|
||||||
import { cloneDeep } from 'lodash-es'
|
import { cloneDeep } from 'lodash-es'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
@@ -136,7 +140,14 @@ function onClose() {
|
|||||||
<VImg :src="getIcon" cover class="mt-7 me-1" max-width="3rem" />
|
<VImg :src="getIcon" cover class="mt-7 me-1" max-width="3rem" />
|
||||||
</VCardText>
|
</VCardText>
|
||||||
</VCard>
|
</VCard>
|
||||||
<VDialog v-if="notificationInfoDialog" v-model="notificationInfoDialog" scrollable max-width="40rem">
|
|
||||||
|
<VDialog
|
||||||
|
v-if="notificationInfoDialog"
|
||||||
|
v-model="notificationInfoDialog"
|
||||||
|
scrollable
|
||||||
|
max-width="40rem"
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard :title="`${props.notification.name} - ${t('notification.config')}`">
|
<VCard :title="`${props.notification.name} - ${t('notification.config')}`">
|
||||||
<VDialogCloseBtn v-model="notificationInfoDialog" />
|
<VDialogCloseBtn v-model="notificationInfoDialog" />
|
||||||
<VDivider />
|
<VDivider />
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ import ProgressDialog from '../dialog/ProgressDialog.vue'
|
|||||||
import PluginConfigDialog from '../dialog/PluginConfigDialog.vue'
|
import PluginConfigDialog from '../dialog/PluginConfigDialog.vue'
|
||||||
import PluginDataDialog from '../dialog/PluginDataDialog.vue'
|
import PluginDataDialog from '../dialog/PluginDataDialog.vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 输入参数
|
// 输入参数
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -450,7 +454,7 @@ watch(
|
|||||||
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" />
|
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" />
|
||||||
|
|
||||||
<!-- 更新日志 -->
|
<!-- 更新日志 -->
|
||||||
<VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" max-height="85vh" scrollable>
|
<VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard :title="t('plugin.updateHistoryTitle', { name: props.plugin?.plugin_name })">
|
<VCard :title="t('plugin.updateHistoryTitle', { name: props.plugin?.plugin_name })">
|
||||||
<VDialogCloseBtn @click="releaseDialog = false" />
|
<VDialogCloseBtn @click="releaseDialog = false" />
|
||||||
<VDivider />
|
<VDivider />
|
||||||
|
|||||||
@@ -369,7 +369,13 @@ const dropdownItems = ref([
|
|||||||
</VDialog>
|
</VDialog>
|
||||||
|
|
||||||
<!-- 设置对话框 -->
|
<!-- 设置对话框 -->
|
||||||
<VDialog v-if="settingDialog" max-height="85vh" v-model="settingDialog" max-width="600" scrollable>
|
<VDialog
|
||||||
|
v-if="settingDialog"
|
||||||
|
v-model="settingDialog"
|
||||||
|
max-width="600"
|
||||||
|
scrollable
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VDialogCloseBtn @click="settingDialog = false" />
|
<VDialogCloseBtn @click="settingDialog = false" />
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
@@ -472,9 +478,9 @@ const dropdownItems = ref([
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.plugin-folder-card {
|
.plugin-folder-card {
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
|
||||||
&--hover {
|
&--hover {
|
||||||
transform: translateY(-4px);
|
transform: translateY(-4px);
|
||||||
@@ -482,57 +488,52 @@ const dropdownItems = ref([
|
|||||||
|
|
||||||
&__bg {
|
&__bg {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
|
inset: 0;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__overlay {
|
&__overlay {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background: rgba(0, 0, 0, 0.6);
|
background: rgba(0, 0, 0, 60%);
|
||||||
|
inset: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__content {
|
&__content {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
padding-bottom: 12px;
|
block-size: 100%;
|
||||||
|
padding-block-end: 12px;
|
||||||
|
|
||||||
.plugin-folder-card--mobile & {
|
.plugin-folder-card--mobile & {
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
padding-bottom: 10px;
|
padding-block-end: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__body {
|
&__body {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
flex: 1;
|
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
padding: 0 8px;
|
padding-block: 0;
|
||||||
|
padding-inline: 8px;
|
||||||
|
|
||||||
.plugin-folder-card--mobile & {
|
.plugin-folder-card--mobile & {
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding: 0 4px;
|
padding-block: 0;
|
||||||
|
padding-inline: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--no-icon {
|
&--no-icon {
|
||||||
justify-content: flex-start;
|
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
gap: 0;
|
gap: 0;
|
||||||
|
|
||||||
@@ -545,36 +546,36 @@ const dropdownItems = ref([
|
|||||||
|
|
||||||
&__icon-container {
|
&__icon-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-shrink: 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__info {
|
&__info {
|
||||||
text-align: left;
|
|
||||||
min-height: 0;
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-block-size: 0;
|
||||||
|
text-align: start;
|
||||||
|
|
||||||
&--no-icon {
|
&--no-icon {
|
||||||
text-align: left;
|
|
||||||
flex: none;
|
flex: none;
|
||||||
|
text-align: start;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__name {
|
&__name {
|
||||||
|
display: -webkit-box;
|
||||||
|
overflow: hidden;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
color: white;
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 1.3;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
display: -webkit-box;
|
|
||||||
-webkit-line-clamp: 1;
|
-webkit-line-clamp: 1;
|
||||||
line-clamp: 1;
|
line-clamp: 1;
|
||||||
-webkit-box-orient: vertical;
|
line-height: 1.3;
|
||||||
max-width: none;
|
max-inline-size: none;
|
||||||
color: white;
|
text-overflow: ellipsis;
|
||||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 50%);
|
||||||
|
|
||||||
.plugin-folder-card--mobile & {
|
.plugin-folder-card--mobile & {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
@@ -585,7 +586,7 @@ const dropdownItems = ref([
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
line-clamp: 2;
|
line-clamp: 2;
|
||||||
margin-bottom: 4px;
|
margin-block-end: 4px;
|
||||||
|
|
||||||
.plugin-folder-card--mobile & {
|
.plugin-folder-card--mobile & {
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
@@ -594,19 +595,20 @@ const dropdownItems = ref([
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__count {
|
&__count {
|
||||||
margin: 2px 0 0 0;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
opacity: 0.9;
|
|
||||||
color: white;
|
color: white;
|
||||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
font-size: 0.85rem;
|
||||||
|
margin-block: 2px 0;
|
||||||
|
margin-inline: 0;
|
||||||
|
opacity: 0.9;
|
||||||
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 50%);
|
||||||
|
|
||||||
.plugin-folder-card--mobile & {
|
.plugin-folder-card--mobile & {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugin-folder-card__info--no-icon & {
|
.plugin-folder-card__info--no-icon & {
|
||||||
margin-top: 0;
|
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
|
margin-block-start: 0;
|
||||||
|
|
||||||
.plugin-folder-card--mobile & {
|
.plugin-folder-card--mobile & {
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
@@ -618,35 +620,35 @@ const dropdownItems = ref([
|
|||||||
// 设置对话框样式
|
// 设置对话框样式
|
||||||
.icon-grid {
|
.icon-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
|
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
max-height: 200px;
|
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
|
||||||
|
max-block-size: 200px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-grid {
|
.color-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
|
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
.gradient-grid {
|
.gradient-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
max-height: 200px;
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||||||
|
max-block-size: 200px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-btn {
|
.color-btn {
|
||||||
min-width: 60px !important;
|
|
||||||
height: 60px !important;
|
|
||||||
border-radius: 8px !important;
|
border-radius: 8px !important;
|
||||||
|
block-size: 60px !important;
|
||||||
|
min-inline-size: 60px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gradient-btn {
|
.gradient-btn {
|
||||||
min-width: 120px !important;
|
|
||||||
height: 60px !important;
|
|
||||||
border-radius: 8px !important;
|
border-radius: 8px !important;
|
||||||
|
block-size: 60px !important;
|
||||||
|
min-inline-size: 120px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ import { useToast } from 'vue-toast-notification'
|
|||||||
import { isNullOrEmptyObject } from '@/@core/utils'
|
import { isNullOrEmptyObject } from '@/@core/utils'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { storageIconDict } from '@/api/constants'
|
import { storageIconDict } from '@/api/constants'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -200,7 +204,13 @@ function onClose() {
|
|||||||
@close="aListConfigDialog = false"
|
@close="aListConfigDialog = false"
|
||||||
@done="handleDone"
|
@done="handleDone"
|
||||||
/>
|
/>
|
||||||
<VDialog v-if="customConfigDialog" v-model="customConfigDialog" scrollable max-width="30rem">
|
<VDialog
|
||||||
|
v-if="customConfigDialog"
|
||||||
|
v-model="customConfigDialog"
|
||||||
|
scrollable
|
||||||
|
max-width="30rem"
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>{{ t('storage.custom') }}</VCardTitle>
|
<VCardTitle>{{ t('storage.custom') }}</VCardTitle>
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ import type { DownloaderConf, MediaInfo, TorrentInfo, TransferDirectoryConf } fr
|
|||||||
import { formatFileSize } from '@/@core/utils/formatters'
|
import { formatFileSize } from '@/@core/utils/formatters'
|
||||||
import { VCardTitle, VChip } from 'vuetify/lib/components/index.mjs'
|
import { VCardTitle, VChip } from 'vuetify/lib/components/index.mjs'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 多语言支持
|
// 多语言支持
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -132,7 +136,7 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VDialog max-width="35rem" scrollable>
|
<VDialog max-width="35rem" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardTitle class="py-4 me-12">
|
<VCardTitle class="py-4 me-12">
|
||||||
<VIcon icon="mdi-download" class="me-2" />
|
<VIcon icon="mdi-download" class="me-2" />
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 多语言支持
|
// 多语言支持
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -66,7 +70,7 @@ async function savaAlistConfig() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VDialog width="50rem" scrollable max-height="85vh">
|
<VDialog width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VDialogCloseBtn @click="emit('close')" />
|
<VDialogCloseBtn @click="emit('close')" />
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 多语言支持
|
// 多语言支持
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -106,7 +110,7 @@ onUnmounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VDialog width="40rem" scrollable max-height="85vh">
|
<VDialog width="40rem" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VDialogCloseBtn @click="emit('close')" />
|
<VDialogCloseBtn @click="emit('close')" />
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
@@ -115,8 +119,8 @@ onUnmounted(() => {
|
|||||||
</VCardTitle>
|
</VCardTitle>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
<VDivider />
|
<VDivider />
|
||||||
<VCardText class="pt-2 flex flex-col items-center">
|
<VCardText class="pt-2 flex flex-col items-center justify-center">
|
||||||
<div class="my-6 rounded text-center p-3 border">
|
<div class="mt-6 rounded text-center p-3 border">
|
||||||
<VImg class="mx-auto" :src="qrCodeUrl" width="200" height="200">
|
<VImg class="mx-auto" :src="qrCodeUrl" width="200" height="200">
|
||||||
<template #placeholder>
|
<template #placeholder>
|
||||||
<div class="w-full h-full">
|
<div class="w-full h-full">
|
||||||
@@ -125,9 +129,11 @@ onUnmounted(() => {
|
|||||||
</template>
|
</template>
|
||||||
</VImg>
|
</VImg>
|
||||||
</div>
|
</div>
|
||||||
<VAlert variant="tonal" :type="alertType" class="my-4 text-center" :text="text">
|
<div>
|
||||||
<template #prepend />
|
<VAlert variant="tonal" :type="alertType" class="my-4 text-center" :text="text">
|
||||||
</VAlert>
|
<template #prepend />
|
||||||
|
</VAlert>
|
||||||
|
</div>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
<VCardActions>
|
<VCardActions>
|
||||||
<VBtn color="error" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3">
|
<VBtn color="error" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3">
|
||||||
|
|||||||
@@ -3,6 +3,10 @@ import api from '@/api'
|
|||||||
import { useToast } from 'vue-toast-notification'
|
import { useToast } from 'vue-toast-notification'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -59,7 +63,7 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VDialog width="50rem" scrollable max-height="85vh">
|
<VDialog width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
@@ -69,13 +73,13 @@ onMounted(() => {
|
|||||||
<VDialogCloseBtn @click="emit('close')" />
|
<VDialogCloseBtn @click="emit('close')" />
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
<VDivider />
|
<VDivider />
|
||||||
|
|
||||||
<VCardText class="pt-2">
|
<VCardText class="pt-2">
|
||||||
<VTextarea
|
<VTextarea
|
||||||
v-model="displayRepos"
|
v-model="displayRepos"
|
||||||
:placeholder="t('dialog.pluginMarketSetting.repoPlaceholder')"
|
:placeholder="t('dialog.pluginMarketSetting.repoPlaceholder')"
|
||||||
:hint="t('dialog.pluginMarketSetting.repoHint')"
|
:hint="t('dialog.pluginMarketSetting.repoHint')"
|
||||||
persistent-hint
|
persistent-hint
|
||||||
|
auto-grow
|
||||||
/>
|
/>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
<VCardActions>
|
<VCardActions>
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 多语言支持
|
// 多语言支持
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -53,7 +57,7 @@ async function handleReset() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VDialog width="50rem" scrollable max-height="85vh">
|
<VDialog width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VDialogCloseBtn @click="emit('close')" />
|
<VDialogCloseBtn @click="emit('close')" />
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
@@ -72,8 +76,7 @@ async function handleReset() {
|
|||||||
v-model:value="props.conf.content"
|
v-model:value="props.conf.content"
|
||||||
lang="ini"
|
lang="ini"
|
||||||
theme="monokai"
|
theme="monokai"
|
||||||
style="block-size: 30rem"
|
class="rounded h-full min-h-[30rem]"
|
||||||
class="rounded"
|
|
||||||
>
|
>
|
||||||
</VAceEditor>
|
</VAceEditor>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ import { NavMenu } from '@/@layouts/types'
|
|||||||
import { useUserStore } from '@/stores'
|
import { useUserStore } from '@/stores'
|
||||||
import SearchSiteDialog from '@/components/dialog/SearchSiteDialog.vue'
|
import SearchSiteDialog from '@/components/dialog/SearchSiteDialog.vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 多语言支持
|
// 多语言支持
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -302,29 +306,24 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VDialog v-model="dialog" max-width="42rem" scrollable maxHeight="85vh">
|
<VDialog v-model="dialog" max-width="42rem" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard class="search-dialog">
|
<VCard class="search-dialog">
|
||||||
<!-- 搜索输入框 -->
|
<!-- 搜索输入框 -->
|
||||||
<VCardItem class="pa-4 pa-sm-5 search-box-container">
|
<VCardItem class="pa-4 pa-sm-5 search-box-container">
|
||||||
<template #prepend>
|
|
||||||
<VIcon icon="mdi-magnify" color="primary" size="x-large" />
|
|
||||||
</template>
|
|
||||||
<VCombobox
|
<VCombobox
|
||||||
ref="searchWordInput"
|
ref="searchWordInput"
|
||||||
v-model="searchWord"
|
v-model="searchWord"
|
||||||
density="comfortable"
|
density="comfortable"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
class="search-input"
|
class="search-input"
|
||||||
|
prepend-inner-icon="mdi-magnify"
|
||||||
|
append-inner-icon="mdi-close"
|
||||||
|
@click:append-inner="emit('close')"
|
||||||
:placeholder="t('dialog.searchBar.searchPlaceholder')"
|
:placeholder="t('dialog.searchBar.searchPlaceholder')"
|
||||||
@keydown.enter="searchMedia('media')"
|
@keydown.enter="searchMedia('media')"
|
||||||
hide-details
|
hide-details
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
<template #append>
|
|
||||||
<IconBtn>
|
|
||||||
<VIcon icon="mdi-close" color="primary" @click="emit('close')" size="x-large" />
|
|
||||||
</IconBtn>
|
|
||||||
</template>
|
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
|
|
||||||
<VDivider />
|
<VDivider />
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ async function updateSiteCookie() {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VDialog max-width="30rem">
|
<VDialog max-width="30rem" scrollable>
|
||||||
<!-- Dialog Content -->
|
<!-- Dialog Content -->
|
||||||
<VCard :title="t('dialog.siteCookieUpdate.title')">
|
<VCard :title="t('dialog.siteCookieUpdate.title')">
|
||||||
<VDialogCloseBtn @click="emit('close')" />
|
<VDialogCloseBtn @click="emit('close')" />
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import QrcodeVue from 'qrcode.vue'
|
import QrcodeVue from 'qrcode.vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 多语言支持
|
// 多语言支持
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -111,7 +115,7 @@ onUnmounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VDialog width="40rem" scrollable max-height="85vh">
|
<VDialog width="40rem" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VDialogCloseBtn @click="emit('close')" />
|
<VDialogCloseBtn @click="emit('close')" />
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
@@ -120,13 +124,15 @@ onUnmounted(() => {
|
|||||||
</VCardTitle>
|
</VCardTitle>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
<VDivider />
|
<VDivider />
|
||||||
<VCardText class="pt-2 flex flex-col items-center">
|
<VCardText class="pt-2 flex flex-col items-center justify-center">
|
||||||
<div class="my-6 rounded text-center p-3 border">
|
<div class="mt-6 rounded text-center p-3 border">
|
||||||
<QrcodeVue class="mx-auto" :value="qrCodeContent" :size="200" />
|
<QrcodeVue class="mx-auto" :value="qrCodeContent" :size="200" />
|
||||||
</div>
|
</div>
|
||||||
<VAlert variant="tonal" :type="alertType" class="my-4 text-center" :text="text">
|
<div>
|
||||||
<template #prepend />
|
<VAlert variant="tonal" :type="alertType" class="my-4 text-center" :text="text">
|
||||||
</VAlert>
|
<template #prepend />
|
||||||
|
</VAlert>
|
||||||
|
</div>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
<VCardActions>
|
<VCardActions>
|
||||||
<VBtn color="error" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3">
|
<VBtn color="error" @click="handleReset" prepend-icon="mdi-restore" class="px-5 me-3">
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VDialog scrollable :close-on-back="false" eager max-width="40rem" :fullscreen="!display.mdAndUp.value">
|
<VDialog scrollable max-width="40rem" :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard
|
<VCard
|
||||||
:title="`${props.oper === 'add' ? t('dialog.userAddEdit.add') : t('dialog.userAddEdit.edit')}${
|
:title="`${props.oper === 'add' ? t('dialog.userAddEdit.add') : t('dialog.userAddEdit.edit')}${
|
||||||
props.oper !== 'add' ? ` - ${userName}` : ''
|
props.oper !== 'add' ? ` - ${userName}` : ''
|
||||||
|
|||||||
@@ -3,6 +3,10 @@ import { isNullOrEmptyObject } from '@/@core/utils'
|
|||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import { useToast } from 'vue-toast-notification'
|
import { useToast } from 'vue-toast-notification'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 多语言支持
|
// 多语言支持
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -133,7 +137,7 @@ onMounted(async () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VDialog width="40rem" max-height="85vh">
|
<VDialog width="40rem" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard :title="t('dialog.userAuth.title')">
|
<VCard :title="t('dialog.userAuth.title')">
|
||||||
<VDialogCloseBtn @click="emit('close')" />
|
<VDialogCloseBtn @click="emit('close')" />
|
||||||
<VCardText>
|
<VCardText>
|
||||||
|
|||||||
@@ -203,7 +203,13 @@ onMounted(() => {
|
|||||||
</VCard>
|
</VCard>
|
||||||
</VMenu>
|
</VMenu>
|
||||||
<!-- 名称测试弹窗 -->
|
<!-- 名称测试弹窗 -->
|
||||||
<VDialog v-if="nameTestDialog" v-model="nameTestDialog" max-width="45rem" scrollable>
|
<VDialog
|
||||||
|
v-if="nameTestDialog"
|
||||||
|
v-model="nameTestDialog"
|
||||||
|
max-width="45rem"
|
||||||
|
scrollable
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
@@ -219,7 +225,13 @@ onMounted(() => {
|
|||||||
</VCard>
|
</VCard>
|
||||||
</VDialog>
|
</VDialog>
|
||||||
<!-- 网络测试弹窗 -->
|
<!-- 网络测试弹窗 -->
|
||||||
<VDialog v-if="netTestDialog" v-model="netTestDialog" max-width="35rem" max-height="85vh" scrollable>
|
<VDialog
|
||||||
|
v-if="netTestDialog"
|
||||||
|
v-model="netTestDialog"
|
||||||
|
max-width="35rem"
|
||||||
|
scrollable
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
@@ -263,7 +275,13 @@ onMounted(() => {
|
|||||||
</VCard>
|
</VCard>
|
||||||
</VDialog>
|
</VDialog>
|
||||||
<!-- 过滤规则弹窗 -->
|
<!-- 过滤规则弹窗 -->
|
||||||
<VDialog v-if="ruleTestDialog" v-model="ruleTestDialog" max-width="35rem" scrollable>
|
<VDialog
|
||||||
|
v-if="ruleTestDialog"
|
||||||
|
v-model="ruleTestDialog"
|
||||||
|
max-width="35rem"
|
||||||
|
scrollable
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
@@ -279,7 +297,13 @@ onMounted(() => {
|
|||||||
</VCard>
|
</VCard>
|
||||||
</VDialog>
|
</VDialog>
|
||||||
<!-- 系统健康检查弹窗 -->
|
<!-- 系统健康检查弹窗 -->
|
||||||
<VDialog v-if="systemTestDialog" v-model="systemTestDialog" max-width="35rem" scrollable>
|
<VDialog
|
||||||
|
v-if="systemTestDialog"
|
||||||
|
v-model="systemTestDialog"
|
||||||
|
max-width="35rem"
|
||||||
|
scrollable
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
|
|||||||
@@ -354,7 +354,7 @@ onDeactivated(() => {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 弹窗,根据配置生成选项 -->
|
<!-- 弹窗,根据配置生成选项 -->
|
||||||
<VDialog v-if="dialog" v-model="dialog" max-width="35rem" max-height="85vh" scrollable>
|
<VDialog v-if="dialog" v-model="dialog" max-width="35rem" :fullscreen="!display.mdAndUp.value" scrollable>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
|
|||||||
+13
-3
@@ -8,6 +8,9 @@ import ExtraSourceView from '@/views/discover/ExtraSourceView.vue'
|
|||||||
import { DiscoverSource } from '@/api/types'
|
import { DiscoverSource } from '@/api/types'
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -179,7 +182,13 @@ onActivated(async () => {
|
|||||||
</VWindowItem>
|
</VWindowItem>
|
||||||
</VWindow>
|
</VWindow>
|
||||||
<!-- 弹窗,根据配置生成选项 -->
|
<!-- 弹窗,根据配置生成选项 -->
|
||||||
<VDialog v-if="orderConfigDialog" v-model="orderConfigDialog" max-width="35rem" scrollable>
|
<VDialog
|
||||||
|
v-if="orderConfigDialog"
|
||||||
|
v-model="orderConfigDialog"
|
||||||
|
max-width="35rem"
|
||||||
|
scrollable
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
@@ -199,11 +208,11 @@ onActivated(async () => {
|
|||||||
:component-data="{ 'class': 'settings-grid' }"
|
:component-data="{ 'class': 'settings-grid' }"
|
||||||
>
|
>
|
||||||
<template #item="{ element }">
|
<template #item="{ element }">
|
||||||
<div class="setting-item enabled">
|
<VCard variant="text" class="setting-item enabled">
|
||||||
<div class="setting-item-inner cursor-move text-center">
|
<div class="setting-item-inner cursor-move text-center">
|
||||||
<span class="setting-label">{{ element.name }}</span>
|
<span class="setting-label">{{ element.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</VCard>
|
||||||
</template>
|
</template>
|
||||||
</draggable>
|
</draggable>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
@@ -260,6 +269,7 @@ onActivated(async () => {
|
|||||||
&::before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
background-color: rgb(var(--v-theme-primary));
|
||||||
block-size: 100%;
|
block-size: 100%;
|
||||||
content: '';
|
content: '';
|
||||||
inline-size: 4px;
|
inline-size: 4px;
|
||||||
|
|||||||
@@ -3,6 +3,9 @@ import api from '@/api'
|
|||||||
import { RecommendSource } from '@/api/types'
|
import { RecommendSource } from '@/api/types'
|
||||||
import MediaCardSlideView from '@/views/discover/MediaCardSlideView.vue'
|
import MediaCardSlideView from '@/views/discover/MediaCardSlideView.vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -235,7 +238,7 @@ onActivated(async () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 设置面板 -->
|
<!-- 设置面板 -->
|
||||||
<VDialog v-model="dialog" width="35rem" class="settings-dialog" scrollable>
|
<VDialog v-model="dialog" width="35rem" class="settings-dialog" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard class="settings-card">
|
<VCard class="settings-card">
|
||||||
<VCardItem class="settings-card-header">
|
<VCardItem class="settings-card-header">
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
@@ -248,7 +251,7 @@ onActivated(async () => {
|
|||||||
<VCardText>
|
<VCardText>
|
||||||
<p class="settings-hint">{{ t('recommend.selectContentToDisplay') }}</p>
|
<p class="settings-hint">{{ t('recommend.selectContentToDisplay') }}</p>
|
||||||
<div class="settings-grid">
|
<div class="settings-grid">
|
||||||
<div
|
<VCard
|
||||||
v-for="item in viewList"
|
v-for="item in viewList"
|
||||||
:key="item.title"
|
:key="item.title"
|
||||||
class="setting-item"
|
class="setting-item"
|
||||||
@@ -268,7 +271,7 @@ onActivated(async () => {
|
|||||||
</div>
|
</div>
|
||||||
<span class="setting-label">{{ item.title }}</span>
|
<span class="setting-label">{{ item.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</VCard>
|
||||||
</div>
|
</div>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
<VCardActions class="pt-3">
|
<VCardActions class="pt-3">
|
||||||
|
|||||||
@@ -7,7 +7,10 @@ import NotificationChannelCard from '@/components/cards/NotificationChannelCard.
|
|||||||
import ProgressDialog from '@/components/dialog/ProgressDialog.vue'
|
import ProgressDialog from '@/components/dialog/ProgressDialog.vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { notificationSwitchDict } from '@/api/constants'
|
import { notificationSwitchDict } from '@/api/constants'
|
||||||
import { useTheme } from 'vuetify'
|
import { useTheme, useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -440,7 +443,7 @@ onMounted(() => {
|
|||||||
:indeterminate="true"
|
:indeterminate="true"
|
||||||
/>
|
/>
|
||||||
<!-- 模板编辑器对话框 -->
|
<!-- 模板编辑器对话框 -->
|
||||||
<VDialog v-model="editorVisible" v-if="editorVisible" max-width="50rem">
|
<VDialog v-model="editorVisible" v-if="editorVisible" max-width="50rem" :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
@@ -454,7 +457,7 @@ onMounted(() => {
|
|||||||
v-model:value="editorContent"
|
v-model:value="editorContent"
|
||||||
lang="json"
|
lang="json"
|
||||||
:theme="editorTheme"
|
:theme="editorTheme"
|
||||||
class="w-full min-h-[30rem] rounded"
|
class="w-full h-full min-h-[30rem] rounded"
|
||||||
/>
|
/>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
<VCardActions class="pt-3">
|
<VCardActions class="pt-3">
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ import { copyToClipboard } from '@/@core/utils/navigator'
|
|||||||
import ProgressDialog from '@/components/dialog/ProgressDialog.vue'
|
import ProgressDialog from '@/components/dialog/ProgressDialog.vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { downloaderOptions, mediaServerOptions } from '@/api/constants'
|
import { downloaderOptions, mediaServerOptions } from '@/api/constants'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -633,8 +636,15 @@ onDeactivated(() => {
|
|||||||
</VCard>
|
</VCard>
|
||||||
</VCol>
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
|
|
||||||
<!-- 高级系统设置 -->
|
<!-- 高级系统设置 -->
|
||||||
<VDialog v-if="advancedDialog" v-model="advancedDialog" scrollable max-width="60rem">
|
<VDialog
|
||||||
|
v-if="advancedDialog"
|
||||||
|
v-model="advancedDialog"
|
||||||
|
scrollable
|
||||||
|
max-width="60rem"
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VDialogCloseBtn @click="advancedDialog = false" />
|
<VDialogCloseBtn @click="advancedDialog = false" />
|
||||||
|
|||||||
@@ -3,6 +3,10 @@ import { cloneDeepWith } from 'lodash-es'
|
|||||||
import type { Context } from '@/api/types'
|
import type { Context } from '@/api/types'
|
||||||
import TorrentCard from '@/components/cards/TorrentCard.vue'
|
import TorrentCard from '@/components/cards/TorrentCard.vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -606,7 +610,13 @@ const handleSortIconClick = () => {
|
|||||||
</VCard>
|
</VCard>
|
||||||
|
|
||||||
<!-- 全部筛选弹窗 -->
|
<!-- 全部筛选弹窗 -->
|
||||||
<VDialog v-model="allFilterMenuOpen" max-width="50rem" max-height="90%" location="center" scrollable>
|
<VDialog
|
||||||
|
v-model="allFilterMenuOpen"
|
||||||
|
max-width="50rem"
|
||||||
|
location="center"
|
||||||
|
scrollable
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VDialogCloseBtn @click="allFilterMenuOpen = false" />
|
<VDialogCloseBtn @click="allFilterMenuOpen = false" />
|
||||||
<VCardTitle class="py-3 d-flex align-center">
|
<VCardTitle class="py-3 d-flex align-center">
|
||||||
@@ -676,7 +686,7 @@ const handleSortIconClick = () => {
|
|||||||
</VDialog>
|
</VDialog>
|
||||||
|
|
||||||
<!-- 筛选弹窗 -->
|
<!-- 筛选弹窗 -->
|
||||||
<VDialog v-model="filterMenuOpen" max-width="25rem" max-height="80%" location="center">
|
<VDialog v-model="filterMenuOpen" max-width="25rem" location="center" max-height="85vh">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardTitle class="py-3 d-flex align-center">
|
<VCardTitle class="py-3 d-flex align-center">
|
||||||
<VIcon :icon="getFilterIcon(currentFilter)" class="me-2"></VIcon>
|
<VIcon :icon="getFilterIcon(currentFilter)" class="me-2"></VIcon>
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
import type { Context } from '@/api/types'
|
import type { Context } from '@/api/types'
|
||||||
import TorrentItem from '@/components/cards/TorrentItem.vue'
|
import TorrentItem from '@/components/cards/TorrentItem.vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const display = useDisplay()
|
||||||
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
@@ -582,7 +586,13 @@ onMounted(() => {
|
|||||||
</VCard>
|
</VCard>
|
||||||
|
|
||||||
<!-- 全部筛选弹窗 -->
|
<!-- 全部筛选弹窗 -->
|
||||||
<VDialog v-model="allFilterMenuOpen" max-width="50rem" max-height="90%" location="center" scrollable>
|
<VDialog
|
||||||
|
v-model="allFilterMenuOpen"
|
||||||
|
max-width="50rem"
|
||||||
|
location="center"
|
||||||
|
scrollable
|
||||||
|
:fullscreen="!display.mdAndUp.value"
|
||||||
|
>
|
||||||
<VCard>
|
<VCard>
|
||||||
<VDialogCloseBtn @click="allFilterMenuOpen = false" />
|
<VDialogCloseBtn @click="allFilterMenuOpen = false" />
|
||||||
<VCardTitle class="py-3 d-flex align-center">
|
<VCardTitle class="py-3 d-flex align-center">
|
||||||
@@ -652,7 +662,7 @@ onMounted(() => {
|
|||||||
</VDialog>
|
</VDialog>
|
||||||
|
|
||||||
<!-- 筛选弹窗 -->
|
<!-- 筛选弹窗 -->
|
||||||
<VDialog v-model="filterMenuOpen" max-width="25rem" max-height="80%" location="center">
|
<VDialog v-model="filterMenuOpen" max-width="25rem" max-height="85vh" location="center">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardTitle class="py-3 d-flex align-center">
|
<VCardTitle class="py-3 d-flex align-center">
|
||||||
<VIcon :icon="getFilterIcon(currentFilter)" class="me-2"></VIcon>
|
<VIcon :icon="getFilterIcon(currentFilter)" class="me-2"></VIcon>
|
||||||
|
|||||||
@@ -114,7 +114,6 @@ useDynamicButton({
|
|||||||
v-model="addUserDialog"
|
v-model="addUserDialog"
|
||||||
oper="add"
|
oper="add"
|
||||||
max-width="45rem"
|
max-width="45rem"
|
||||||
persistent
|
|
||||||
@save="onUserAdd"
|
@save="onUserAdd"
|
||||||
@close="addUserDialog = false"
|
@close="addUserDialog = false"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user