lzc-video-player 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +1 -0
- package/.eslintrc.cjs +18 -0
- package/.prettierrc.json +5 -0
- package/AGENTS.md +31 -0
- package/README.md +38 -0
- package/build.sh +10 -0
- package/demo/.vscode/extensions.json +3 -0
- package/demo/README.md +40 -0
- package/demo/env.d.ts +1 -0
- package/demo/index.html +13 -0
- package/demo/package-lock.json +2037 -0
- package/demo/package.json +25 -0
- package/demo/public/favicon.ico +0 -0
- package/demo/src/App.vue +25 -0
- package/demo/src/assets/base.css +70 -0
- package/demo/src/assets/logo.svg +1 -0
- package/demo/src/assets/main.css +33 -0
- package/demo/src/main.ts +8 -0
- package/demo/tsconfig.config.json +8 -0
- package/demo/tsconfig.json +16 -0
- package/demo/vite.config.ts +14 -0
- package/docs/progress-bar-style-analysis.md +87 -0
- package/env.d.ts +1 -0
- package/error_pages/502.html.tpl +13 -0
- package/i18next-parser.config.mjs +147 -0
- package/index.html +54 -0
- package/lazycat.png +0 -0
- package/lib/README.md +48 -0
- package/lib/package.json +22 -0
- package/lzc-build.local.yml +65 -0
- package/lzc-build.yml +65 -0
- package/lzc-manifest.yml +53 -0
- package/makefile +15 -0
- package/package.json +69 -0
- package/postcss.config.js +6 -0
- package/public/512x512.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/languages/en/translation.json +125 -0
- package/public/languages/zh/translation.json +125 -0
- package/public/libass-wasm/4.1.0/default.woff2 +0 -0
- package/public/libass-wasm/4.1.0/subtitles-octopus-worker-legacy.js +40 -0
- package/public/libass-wasm/4.1.0/subtitles-octopus-worker.js +1 -0
- package/public/libass-wasm/4.1.0/subtitles-octopus-worker.wasm +0 -0
- package/public/libass-wasm/4.1.0/subtitles-octopus.js +1680 -0
- package/public/square-128x128.png +0 -0
- package/public/square-256x256.png +0 -0
- package/public/square-512x512.png +0 -0
- package/src/App.vue +18 -0
- package/src/assets/base.scss +104 -0
- package/src/assets/cloud.png +0 -0
- package/src/assets/logo.svg +1 -0
- package/src/components/Dialog/index.vue +96 -0
- package/src/components/MultipleEdit/choose.vue +39 -0
- package/src/components/PlayList/index.vue +521 -0
- package/src/components/Spectrum/index.vue +58 -0
- package/src/components/Video/NativeVideoPlayer.vue +748 -0
- package/src/components/Video/README.md +3 -0
- package/src/components/Video/clientPlayer.ts +348 -0
- package/src/components/Video/components/LzcModal/components/simpleList.vue +57 -0
- package/src/components/Video/components/LzcModal/list.vue +52 -0
- package/src/components/Video/components/LzcModal/playrate.vue +45 -0
- package/src/components/Video/components/LzcModal/resolution.vue +117 -0
- package/src/components/Video/components/LzcModal/subtitle.vue +499 -0
- package/src/components/Video/components/LzcModal/useModal.ts +18 -0
- package/src/components/Video/components/LzcOverlay/SubtitleLayer.vue +321 -0
- package/src/components/Video/components/LzcOverlay/cast.vue +253 -0
- package/src/components/Video/components/LzcOverlay/casting.vue +205 -0
- package/src/components/Video/components/LzcOverlay/error.vue +103 -0
- package/src/components/Video/components/LzcOverlay/helper.ts +81 -0
- package/src/components/Video/components/LzcOverlay/index.vue +99 -0
- package/src/components/Video/components/LzcOverlay/playing.vue +496 -0
- package/src/components/Video/components/LzcOverlay/playingButtons.vue +122 -0
- package/src/components/Video/components/LzcOverlay/playingLayout.vue +287 -0
- package/src/components/Video/components/LzcOverlay/useCast.ts +235 -0
- package/src/components/Video/components/LzcOverlay/useCommon.ts +41 -0
- package/src/components/Video/components/LzcOverlay/useOctopusRenderer.ts +230 -0
- package/src/components/Video/components/LzcOverlay/useSubtitleRenderEngine.ts +79 -0
- package/src/components/Video/components/LzcOverlay/useSubtitleTrack.ts +139 -0
- package/src/components/Video/components/useLzcCommon.ts +16 -0
- package/src/components/Video/directPlay.ts +345 -0
- package/src/components/Video/getSubtitleInfo.ts +42 -0
- package/src/components/Video/native/EventEmitter.ts +62 -0
- package/src/components/Video/native/NativeControls.vue +510 -0
- package/src/components/Video/native/NativeModal.vue +133 -0
- package/src/components/Video/native/NativePlayer.ts +913 -0
- package/src/components/Video/native/NativePlayer.vue +53 -0
- package/src/components/Video/native/index.ts +9 -0
- package/src/components/Video/native/native-player.css +183 -0
- package/src/components/Video/native/playerKey.ts +5 -0
- package/src/components/Video/native/useNativeCastMiddleware.ts +50 -0
- package/src/components/Video/native/useNativePlayer.ts +3 -0
- package/src/components/Video/native/useNativePlayerFullscreen.ts +44 -0
- package/src/components/Video/native/useNativePlayerHistory.ts +69 -0
- package/src/components/Video/native/useNativePlayerModal.ts +68 -0
- package/src/components/Video/native/useNativePlayerPlaylist.ts +67 -0
- package/src/components/Video/native/useNativePlayerState.ts +225 -0
- package/src/components/Video/player.ts +99 -0
- package/src/components/Video/theme/index.scss +291 -0
- package/src/components/Video/theme/videojs.css +1797 -0
- package/src/components/Video/useSource.ts +1431 -0
- package/src/components/Video/useSubtitlePreference.ts +66 -0
- package/src/components/Video/useWebview.ts +79 -0
- package/src/components/Video/videoFrame.ts +58 -0
- package/src/env.d.ts +3 -0
- package/src/i18n/README.md +392 -0
- package/src/i18n/index.ts +49 -0
- package/src/icons/Video_Player.svg +69 -0
- package/src/icons/box.svg +15 -0
- package/src/icons/client.svg +17 -0
- package/src/icons/logo.svg +28 -0
- package/src/icons//344/270/212/344/270/200/344/270/252.svg +6 -0
- package/src/icons//344/270/213/344/270/200/344/270/252.svg +4 -0
- package/src/icons//344/272/256/345/272/246.svg +13 -0
- package/src/icons//345/200/215/351/200/237.svg +14 -0
- package/src/icons//345/205/250/345/261/217.svg +16 -0
- package/src/icons//345/205/250/351/200/211_/345/267/262/351/200/211/344/270/255.svg +16 -0
- package/src/icons//345/205/250/351/200/211_/346/234/252/351/200/211/344/270/255.svg +15 -0
- package/src/icons//345/205/263/351/227/255/345/244/232/351/200/211.svg +14 -0
- package/src/icons//345/205/263/351/227/255/346/212/225/345/261/217.svg +11 -0
- package/src/icons//345/233/236/346/224/266/347/253/231.svg +15 -0
- package/src/icons//345/244/261/346/225/210.svg +17 -0
- package/src/icons//346/207/222/347/214/253/346/222/255/346/224/276/345/231/250-icon.png +0 -0
- package/src/icons//346/207/222/347/214/253/346/222/255/346/224/276/345/231/250.png +0 -0
- package/src/icons//346/212/225/345/261/217.svg +11 -0
- package/src/icons//346/212/225/351/200/201/344/270/255.jpg +0 -0
- package/src/icons//346/212/225/351/200/201/344/270/255.svg +21 -0
- package/src/icons//346/222/255/346/224/276.svg +3 -0
- package/src/icons//346/232/202/345/201/234.svg +4 -0
- package/src/icons//346/232/202/346/227/240.svg +21 -0
- package/src/icons//346/233/264/345/244/232/346/223/215/344/275/234.svg +11 -0
- package/src/icons//347/224/265/350/247/206.svg +18 -0
- package/src/icons//347/247/273/345/212/250/347/253/257_/350/203/214/346/231/257.webp +0 -0
- package/src/icons//350/203/214/346/231/257.png +0 -0
- package/src/icons//350/277/224/345/233/236.svg +13 -0
- package/src/icons//350/277/233/345/205/245/345/205/250/345/261/217.svg +13 -0
- package/src/icons//351/200/200/345/207/272/345/205/250/345/261/217.svg +15 -0
- package/src/icons//351/200/211/346/213/251.svg +15 -0
- package/src/icons//351/237/263/351/207/217.svg +13 -0
- package/src/index.d.ts +9 -0
- package/src/lzc-video-player.scss +7 -0
- package/src/lzc-video-player.ts +6 -0
- package/src/main.ts +62 -0
- package/src/model.ts +77 -0
- package/src/quasar-variables.sass +10 -0
- package/src/router/index.ts +74 -0
- package/src/stores/pinia.ts +3 -0
- package/src/stores/playlist.ts +146 -0
- package/src/use/useKeyBind.ts +61 -0
- package/src/use/useMultipleEdit.ts +60 -0
- package/src/use/useSdk.ts +5 -0
- package/src/use/useSubtitle.ts +39 -0
- package/src/use/useUtils.ts +22 -0
- package/src/use/useVideoFrame.ts +60 -0
- package/src/views/Home.ts +99 -0
- package/src/views/mobile/Home.vue +246 -0
- package/src/views/mobile/Player.vue +141 -0
- package/tailwind.config.js +15 -0
- package/tsconfig.config.json +8 -0
- package/tsconfig.json +20 -0
- package/vite.config.lib.ts +88 -0
- package/vite.config.ts +122 -0
- package/vue-shim.d.ts +4 -0
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import {
|
|
3
|
+
ref,
|
|
4
|
+
onMounted,
|
|
5
|
+
nextTick,
|
|
6
|
+
type Ref,
|
|
7
|
+
watchEffect,
|
|
8
|
+
computed,
|
|
9
|
+
onUnmounted,
|
|
10
|
+
} from "vue"
|
|
11
|
+
import { useHistoryInfo } from "@/stores/playlist"
|
|
12
|
+
import type { VideoInfo } from "@/model"
|
|
13
|
+
import { getFrame } from "@/use/useVideoFrame"
|
|
14
|
+
import {
|
|
15
|
+
formatTime,
|
|
16
|
+
remHeight,
|
|
17
|
+
} from "@/components/Video/components/useLzcCommon"
|
|
18
|
+
import type { QList } from "quasar"
|
|
19
|
+
import Spectrum from "@/components/Spectrum/index.vue"
|
|
20
|
+
import EmptySvg from "@/icons/暂无.svg?inline"
|
|
21
|
+
import useMultipleEdit from "@/use/useMultipleEdit"
|
|
22
|
+
import MultipleEditChoose from "@/components/MultipleEdit/choose.vue"
|
|
23
|
+
import DialogConfirm from "@/components/Dialog/index.vue"
|
|
24
|
+
import { useQuasar } from "quasar"
|
|
25
|
+
import { t } from "@/i18n"
|
|
26
|
+
import type { LzcPlayer } from "@/components/Video/player"
|
|
27
|
+
|
|
28
|
+
const props = defineProps<{
|
|
29
|
+
player?: LzcPlayer
|
|
30
|
+
isPlaying: (info: VideoInfo) => boolean
|
|
31
|
+
}>()
|
|
32
|
+
const emit = defineEmits<{
|
|
33
|
+
(event: "openVideo", info: VideoInfo): void
|
|
34
|
+
(event: "back"): void
|
|
35
|
+
}>()
|
|
36
|
+
|
|
37
|
+
const store = useHistoryInfo()
|
|
38
|
+
const currentPlaytime = ref(props.player ? props.player.currentTime() : 0)
|
|
39
|
+
const updateCurrentPlaytimeHook = () => {
|
|
40
|
+
currentPlaytime.value = props.player!.currentTime()
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const $q = useQuasar()
|
|
44
|
+
|
|
45
|
+
const namespace = "page-title-edit"
|
|
46
|
+
const {
|
|
47
|
+
selectedKeys,
|
|
48
|
+
isEditing,
|
|
49
|
+
isSelectAll,
|
|
50
|
+
hdlSelectAll,
|
|
51
|
+
hdlCancel,
|
|
52
|
+
hdlToggleItem,
|
|
53
|
+
updateData,
|
|
54
|
+
} = useMultipleEdit()
|
|
55
|
+
const qlist: Ref<QList | null> = ref(null)
|
|
56
|
+
const hasData = computed(() => !!store.infos.length)
|
|
57
|
+
|
|
58
|
+
const imgUrl = (info: VideoInfo): string => {
|
|
59
|
+
if (info._id) {
|
|
60
|
+
return getFrame(info._id)
|
|
61
|
+
}
|
|
62
|
+
return EmptySvg
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function triggerOpen(info: VideoInfo) {
|
|
66
|
+
if (isEditing.value) {
|
|
67
|
+
hdlToggleItem(info._id)
|
|
68
|
+
return
|
|
69
|
+
}
|
|
70
|
+
emit("openVideo", info)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function watched(info: VideoInfo): string {
|
|
74
|
+
if (!info.duration || info.duration == 0) {
|
|
75
|
+
return "0"
|
|
76
|
+
}
|
|
77
|
+
if (!info.currentTime || info.currentTime == 0) {
|
|
78
|
+
return "0"
|
|
79
|
+
}
|
|
80
|
+
return ((info.currentTime / info.duration) * 100).toFixed(0)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function subTitle(info: VideoInfo): string {
|
|
84
|
+
if (!info.invalid && props.isPlaying(info) && props.player) {
|
|
85
|
+
const ft = formatTime(currentPlaytime.value!)
|
|
86
|
+
return t("src.components.play_list.index.watching", "正在观看:{{ft}}", {
|
|
87
|
+
ft,
|
|
88
|
+
})
|
|
89
|
+
}
|
|
90
|
+
return t("src.components.play_list.index.watch_to", "观看至: {{info}}%", {
|
|
91
|
+
info: watched(info),
|
|
92
|
+
})
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// 确认删除
|
|
96
|
+
function hdlConfirm() {
|
|
97
|
+
store.batchDeleteHistory(selectedKeys.value)
|
|
98
|
+
|
|
99
|
+
const currentPlayingInfo = store.infos.find(props.isPlaying)
|
|
100
|
+
|
|
101
|
+
if (
|
|
102
|
+
currentPlayingInfo &&
|
|
103
|
+
selectedKeys.value.includes(currentPlayingInfo._id)
|
|
104
|
+
) {
|
|
105
|
+
emit("back")
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
hdlCancel()
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function hdlDelete() {
|
|
112
|
+
if (!selectedKeys.value.length) return
|
|
113
|
+
|
|
114
|
+
const openDeleteDialog = () => {
|
|
115
|
+
$q.dialog({
|
|
116
|
+
component: DialogConfirm,
|
|
117
|
+
componentProps: {
|
|
118
|
+
title: t("src.components.play_list.index.delete_title", "确认删除"),
|
|
119
|
+
desc: t(
|
|
120
|
+
"src.components.play_list.index.delete_desc",
|
|
121
|
+
"是否删除已选中的播放记录?",
|
|
122
|
+
),
|
|
123
|
+
confirm: hdlConfirm,
|
|
124
|
+
},
|
|
125
|
+
})
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (!props.player) {
|
|
129
|
+
emit("back")
|
|
130
|
+
window.setTimeout(openDeleteDialog, 0)
|
|
131
|
+
return
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
openDeleteDialog()
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const deleteClass = computed(() => {
|
|
138
|
+
return `${namespace}-delete ${
|
|
139
|
+
selectedKeys.value?.length && namespace + "-delete-active"
|
|
140
|
+
}`
|
|
141
|
+
})
|
|
142
|
+
|
|
143
|
+
onMounted(() => {
|
|
144
|
+
const index = store.infos.findIndex(props.isPlaying)
|
|
145
|
+
if (index > -1) {
|
|
146
|
+
nextTick(() => {
|
|
147
|
+
if (qlist.value) {
|
|
148
|
+
qlist.value.$el.scrollBy(0, remHeight(9.4) * index)
|
|
149
|
+
}
|
|
150
|
+
})
|
|
151
|
+
}
|
|
152
|
+
if (props.player) {
|
|
153
|
+
props.player.on("timeupdate", updateCurrentPlaytimeHook)
|
|
154
|
+
}
|
|
155
|
+
})
|
|
156
|
+
|
|
157
|
+
onUnmounted(() => {
|
|
158
|
+
if (props.player) {
|
|
159
|
+
props.player.off("timeupdate", updateCurrentPlaytimeHook)
|
|
160
|
+
}
|
|
161
|
+
})
|
|
162
|
+
|
|
163
|
+
// 更新数据
|
|
164
|
+
watchEffect(() => {
|
|
165
|
+
const ids = store.infos.map((v) => v._id)
|
|
166
|
+
|
|
167
|
+
updateData(ids)
|
|
168
|
+
})
|
|
169
|
+
</script>
|
|
170
|
+
|
|
171
|
+
<template>
|
|
172
|
+
<div class="list" @click.stop>
|
|
173
|
+
<div class="list-top-bar">
|
|
174
|
+
<div v-if="isEditing" class="title cancel-edit" @click.stop="hdlCancel">
|
|
175
|
+
<q-icon name="svguse:#icon-关闭多选.svg" />
|
|
176
|
+
<span class="cancel-edit-text">{{
|
|
177
|
+
t("src.components.play_list.index.select", "请选择")
|
|
178
|
+
}}</span>
|
|
179
|
+
</div>
|
|
180
|
+
<span class="title" v-else>{{
|
|
181
|
+
t("src.components.play_list.index.play_list", "播放列表")
|
|
182
|
+
}}</span>
|
|
183
|
+
<div class="clear">
|
|
184
|
+
<div v-if="hasData">
|
|
185
|
+
<span
|
|
186
|
+
:class="`${namespace}-edit`"
|
|
187
|
+
@click="isEditing = true"
|
|
188
|
+
v-if="!isEditing"
|
|
189
|
+
>
|
|
190
|
+
{{ t("src.components.play_list.index.edit", "编辑") }}
|
|
191
|
+
</span>
|
|
192
|
+
<span :class="`${namespace}-select`" @click="hdlSelectAll" v-else>
|
|
193
|
+
{{
|
|
194
|
+
isSelectAll
|
|
195
|
+
? t(
|
|
196
|
+
"src.components.play_list.index.cancel_select_all",
|
|
197
|
+
"取消全选",
|
|
198
|
+
)
|
|
199
|
+
: t("src.components.play_list.index.select_all", "全选")
|
|
200
|
+
}}
|
|
201
|
+
</span>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
<q-list
|
|
206
|
+
:class="`list-items ${isEditing ? 'list-editing' : ''}`"
|
|
207
|
+
ref="qlist"
|
|
208
|
+
>
|
|
209
|
+
<template v-if="store.infos.length > 0">
|
|
210
|
+
<div
|
|
211
|
+
v-for="info in store.infos"
|
|
212
|
+
:key="info.sourceUrl"
|
|
213
|
+
@click="triggerOpen(info)"
|
|
214
|
+
class="info-item"
|
|
215
|
+
:class="{ active: isPlaying(info) }"
|
|
216
|
+
>
|
|
217
|
+
<div class="item">
|
|
218
|
+
<div class="item-pic">
|
|
219
|
+
<q-img fit="cover" loading="eager" :src="imgUrl(info)" no-spinner>
|
|
220
|
+
<div
|
|
221
|
+
class="absolute-bottom-right text-subtitle2 item-subtitle"
|
|
222
|
+
:class="{ 'item-invalid': info.invalid }"
|
|
223
|
+
>
|
|
224
|
+
<template v-if="info.invalid">
|
|
225
|
+
<q-icon name="svguse:#icon-失效.svg"></q-icon>
|
|
226
|
+
{{ t("src.components.play_list.index.expired", "已失效") }}
|
|
227
|
+
</template>
|
|
228
|
+
<template v-else>
|
|
229
|
+
{{ formatTime(info.duration) }}
|
|
230
|
+
</template>
|
|
231
|
+
</div>
|
|
232
|
+
</q-img>
|
|
233
|
+
</div>
|
|
234
|
+
<div class="item-info">
|
|
235
|
+
<div class="item-info-title">
|
|
236
|
+
{{ info.name || info.sourceUrl }}
|
|
237
|
+
</div>
|
|
238
|
+
<div class="item-info-subtitle">
|
|
239
|
+
<Spectrum v-if="!info.invalid && isPlaying(info)"></Spectrum>
|
|
240
|
+
{{ subTitle(info) }}
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
<div>
|
|
244
|
+
<MultipleEditChoose
|
|
245
|
+
:keyValue="info._id"
|
|
246
|
+
:selectedKeys="selectedKeys"
|
|
247
|
+
v-if="isEditing"
|
|
248
|
+
/>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
</template>
|
|
253
|
+
<div v-else class="empty-text">
|
|
254
|
+
<span>{{
|
|
255
|
+
t(
|
|
256
|
+
"src.components.play_list.index.no_available_content",
|
|
257
|
+
"暂无播放内容",
|
|
258
|
+
)
|
|
259
|
+
}}</span>
|
|
260
|
+
</div>
|
|
261
|
+
</q-list>
|
|
262
|
+
|
|
263
|
+
<div :class="deleteClass" @click="hdlDelete" v-if="isEditing">
|
|
264
|
+
{{
|
|
265
|
+
t(
|
|
266
|
+
"src.components.play_list.index.button_delete",
|
|
267
|
+
"删除\{\{selectedKeys\}\}",
|
|
268
|
+
{
|
|
269
|
+
selectedKeys:
|
|
270
|
+
selectedKeys.length > 0 ? `(${selectedKeys.length})` : "",
|
|
271
|
+
},
|
|
272
|
+
)
|
|
273
|
+
}}
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
</template>
|
|
277
|
+
|
|
278
|
+
<style lang="scss" scoped>
|
|
279
|
+
$editing-delete-height: 5.6rem;
|
|
280
|
+
|
|
281
|
+
@mixin default-text() {
|
|
282
|
+
font-size: 1.4rem;
|
|
283
|
+
font-weight: 500;
|
|
284
|
+
color: #ffffff;
|
|
285
|
+
line-height: 2rem;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
@mixin subtitle-text() {
|
|
289
|
+
font-size: 1.1rem;
|
|
290
|
+
font-weight: 400;
|
|
291
|
+
color: #ffffff;
|
|
292
|
+
line-height: 1.6rem;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@mixin opacity-linear-gradient() {
|
|
296
|
+
-webkit-mask-image: linear-gradient(
|
|
297
|
+
270deg,
|
|
298
|
+
rgba(0, 0, 0, 0.3) 0%,
|
|
299
|
+
rgba(0, 0, 0, 0.5) 78%,
|
|
300
|
+
rgba(0, 0, 0, 0) 100%
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.list {
|
|
305
|
+
width: 300px;
|
|
306
|
+
height: 100%;
|
|
307
|
+
box-sizing: border-box;
|
|
308
|
+
display: flex;
|
|
309
|
+
flex-direction: column;
|
|
310
|
+
background: rgba(0, 0, 0, 0.5);
|
|
311
|
+
backdrop-filter: blur(20px);
|
|
312
|
+
-webkit-backdrop-filter: blur(20px);
|
|
313
|
+
border-radius: 4px;
|
|
314
|
+
z-index: 2;
|
|
315
|
+
position: relative;
|
|
316
|
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.list:not(.modal-list) {
|
|
320
|
+
padding-top: var(--lzc-safe-area-inset-top);
|
|
321
|
+
padding-bottom: var(--lzc-safe-area-inset-bottom);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.list-top-bar {
|
|
325
|
+
display: flex;
|
|
326
|
+
flex-direction: row;
|
|
327
|
+
justify-content: space-between;
|
|
328
|
+
padding: 16px 20px;
|
|
329
|
+
|
|
330
|
+
.title {
|
|
331
|
+
font-size: 1.6rem;
|
|
332
|
+
font-weight: 500;
|
|
333
|
+
color: #ffffff;
|
|
334
|
+
line-height: 2.2rem;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.clear {
|
|
338
|
+
@include default-text;
|
|
339
|
+
display: flex;
|
|
340
|
+
align-items: center;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.modal-list .list-items {
|
|
345
|
+
max-height: 400px;
|
|
346
|
+
@media (orientation: landscape) and (height < 600px) {
|
|
347
|
+
max-height: 200px;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.list-items {
|
|
352
|
+
overflow-y: auto;
|
|
353
|
+
|
|
354
|
+
.info-item {
|
|
355
|
+
padding-left: 10px;
|
|
356
|
+
background: none;
|
|
357
|
+
cursor: pointer;
|
|
358
|
+
|
|
359
|
+
&.active {
|
|
360
|
+
background: rgba(255, 255, 255, 0.08);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.item {
|
|
365
|
+
margin: 1.2rem 0px;
|
|
366
|
+
height: 7rem;
|
|
367
|
+
width: 100%;
|
|
368
|
+
|
|
369
|
+
display: flex;
|
|
370
|
+
flex-direction: row;
|
|
371
|
+
|
|
372
|
+
.item-pic {
|
|
373
|
+
flex-shrink: 0;
|
|
374
|
+
width: 10.5rem;
|
|
375
|
+
height: 7rem;
|
|
376
|
+
margin-right: 12px;
|
|
377
|
+
background: linear-gradient(
|
|
378
|
+
135deg,
|
|
379
|
+
rgba(255, 255, 255, 0.1) 0%,
|
|
380
|
+
rgba(255, 255, 255, 0.1) 100%
|
|
381
|
+
);
|
|
382
|
+
border-radius: 0.4rem;
|
|
383
|
+
backdrop-filter: blur(10px);
|
|
384
|
+
-webkit-backdrop-filter: blur(10px);
|
|
385
|
+
overflow: hidden;
|
|
386
|
+
|
|
387
|
+
> .q-img {
|
|
388
|
+
height: 100%;
|
|
389
|
+
background-image: v-bind('"url(" + EmptySvg + ")"');
|
|
390
|
+
background-repeat: no-repeat;
|
|
391
|
+
background-position: center;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.item-subtitle {
|
|
396
|
+
padding: 0px 0.4rem;
|
|
397
|
+
margin-right: 0.3rem;
|
|
398
|
+
margin-bottom: 0.3rem;
|
|
399
|
+
|
|
400
|
+
height: 1.4rem;
|
|
401
|
+
font-size: 1rem;
|
|
402
|
+
font-weight: 400;
|
|
403
|
+
line-height: 1.4rem;
|
|
404
|
+
color: #ffffff;
|
|
405
|
+
|
|
406
|
+
display: flex;
|
|
407
|
+
align-items: center;
|
|
408
|
+
background-color: transparent;
|
|
409
|
+
text-shadow: 0px 1px 3px rgba(61, 61, 61, 0.5);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.item-invalid {
|
|
413
|
+
border-radius: 0.2rem;
|
|
414
|
+
|
|
415
|
+
> .q-icon {
|
|
416
|
+
margin-right: 0.3rem;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.item-info {
|
|
421
|
+
flex: 1;
|
|
422
|
+
|
|
423
|
+
display: flex;
|
|
424
|
+
flex-direction: column;
|
|
425
|
+
|
|
426
|
+
white-space: nowrap;
|
|
427
|
+
overflow: hidden;
|
|
428
|
+
text-overflow: ellipsis;
|
|
429
|
+
|
|
430
|
+
.item-info-title {
|
|
431
|
+
margin: 1.4rem 1rem 1.4rem 0px;
|
|
432
|
+
white-space: nowrap;
|
|
433
|
+
overflow: hidden;
|
|
434
|
+
text-overflow: ellipsis;
|
|
435
|
+
@include default-text;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.item-info-subtitle {
|
|
439
|
+
display: inline-flex;
|
|
440
|
+
align-items: baseline;
|
|
441
|
+
margin-bottom: 0.5rem;
|
|
442
|
+
@include subtitle-text;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.empty-text {
|
|
449
|
+
color: #ffffff;
|
|
450
|
+
display: flex;
|
|
451
|
+
flex-direction: row;
|
|
452
|
+
justify-content: center;
|
|
453
|
+
margin: 40px 0;
|
|
454
|
+
font-size: 12px;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.cancel-edit {
|
|
458
|
+
cursor: pointer;
|
|
459
|
+
display: flex;
|
|
460
|
+
align-items: center;
|
|
461
|
+
|
|
462
|
+
.cancel-edit-text {
|
|
463
|
+
line-height: 2.2rem;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
:deep(.q-icon) {
|
|
467
|
+
font-size: 1.2rem;
|
|
468
|
+
margin-right: 1.2rem;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.list-editing {
|
|
473
|
+
margin-bottom: $editing-delete-height;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.page-title-edit {
|
|
477
|
+
&-cancel {
|
|
478
|
+
position: absolute;
|
|
479
|
+
left: 2rem;
|
|
480
|
+
font-size: 1.4rem;
|
|
481
|
+
color: #333333;
|
|
482
|
+
line-height: 2.5rem;
|
|
483
|
+
cursor: pointer;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
&-edit {
|
|
487
|
+
color: rgba(255, 255, 255, 0.7);
|
|
488
|
+
cursor: pointer;
|
|
489
|
+
padding-right: 0.4rem;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
&-select {
|
|
493
|
+
color: #5f86ff;
|
|
494
|
+
cursor: pointer;
|
|
495
|
+
padding-right: 0.4rem;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
&-delete {
|
|
499
|
+
display: flex;
|
|
500
|
+
background: transparent;
|
|
501
|
+
justify-content: center;
|
|
502
|
+
font-size: 1.4rem;
|
|
503
|
+
color: rgba(255, 255, 255, 0.4);
|
|
504
|
+
line-height: 2rem;
|
|
505
|
+
border-top: 1px solid rgba(255, 255, 255, 0.12);
|
|
506
|
+
padding: 1.1rem 0;
|
|
507
|
+
font-weight: 500;
|
|
508
|
+
cursor: not-allowed;
|
|
509
|
+
height: $editing-delete-height;
|
|
510
|
+
position: absolute;
|
|
511
|
+
bottom: 0;
|
|
512
|
+
width: 100%;
|
|
513
|
+
z-index: 1;
|
|
514
|
+
|
|
515
|
+
&-active {
|
|
516
|
+
cursor: pointer;
|
|
517
|
+
color: #e35244;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
</style>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<ul>
|
|
4
|
+
<li class="m1"></li>
|
|
5
|
+
<li class="m2"></li>
|
|
6
|
+
<li class="m3"></li>
|
|
7
|
+
</ul>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<style lang="scss" scoped>
|
|
12
|
+
div {
|
|
13
|
+
margin-right: 0.4rem;
|
|
14
|
+
}
|
|
15
|
+
ul {
|
|
16
|
+
vertical-align: baseline;
|
|
17
|
+
font-size: 0;
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
height: 1.1rem;
|
|
21
|
+
}
|
|
22
|
+
ul li {
|
|
23
|
+
background-color: rgba(31, 193, 205, 1);
|
|
24
|
+
display: inline-block;
|
|
25
|
+
width: 0.15rem;
|
|
26
|
+
height: 1rem;
|
|
27
|
+
}
|
|
28
|
+
li + li {
|
|
29
|
+
margin-left: 0.2rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.m1 {
|
|
33
|
+
animation: 0.8s 0.1s living linear infinite backwards normal;
|
|
34
|
+
animation-delay: -1.1s;
|
|
35
|
+
}
|
|
36
|
+
.m2 {
|
|
37
|
+
animation: 0.8s 0.3s living linear infinite backwards normal;
|
|
38
|
+
animation-delay: -1.3s;
|
|
39
|
+
}
|
|
40
|
+
.m3 {
|
|
41
|
+
animation: 0.8s 0.6s living linear infinite backwards normal;
|
|
42
|
+
animation-delay: -1.6s;
|
|
43
|
+
}
|
|
44
|
+
@keyframes living {
|
|
45
|
+
0% {
|
|
46
|
+
transform: scaleY(1);
|
|
47
|
+
transform-origin: 0 1.1rem;
|
|
48
|
+
}
|
|
49
|
+
50% {
|
|
50
|
+
transform: scaleY(0.3);
|
|
51
|
+
transform-origin: 0 1.1rem;
|
|
52
|
+
}
|
|
53
|
+
100% {
|
|
54
|
+
transform: scaleY(1);
|
|
55
|
+
transform-origin: 0 1.1rem;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
</style>
|