jvs-ppt-ui 0.0.19 → 0.0.20
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/package.json
CHANGED
|
@@ -106,7 +106,7 @@ const subTypeNameMap: Record<StockSubType, string> = {
|
|
|
106
106
|
Videos: '高清视频'
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
// 顶层 3-Tab
|
|
109
|
+
// 顶层 3-Tab 状态(联网搜索 / AI生成 / 我的空间)与 jvs_session_v3 鉴权
|
|
110
110
|
export type MaterialMainTab = 'search' | 'mine' | 'create'
|
|
111
111
|
const {
|
|
112
112
|
isDamLoggedIn,
|
|
@@ -124,9 +124,9 @@ const guestToastText = ref('请先登录后使用该功能')
|
|
|
124
124
|
let guestToastTimer: ReturnType<typeof setTimeout> | null = null
|
|
125
125
|
|
|
126
126
|
function showGuestAuthToast(tabName: string) {
|
|
127
|
-
guestToastText.value = tabName === '
|
|
128
|
-
? '
|
|
129
|
-
: '
|
|
127
|
+
guestToastText.value = tabName === '我的空间'
|
|
128
|
+
? '请先登录后查看「我的空间」'
|
|
129
|
+
: '请先登录后使用「AI生成」'
|
|
130
130
|
guestToastVisible.value = true
|
|
131
131
|
if (guestToastTimer) clearTimeout(guestToastTimer)
|
|
132
132
|
guestToastTimer = setTimeout(() => {
|
|
@@ -139,7 +139,7 @@ async function handleSwitchMainTab(tab: MaterialMainTab) {
|
|
|
139
139
|
if (tab !== 'search' && !isDamLoggedIn.value) {
|
|
140
140
|
const verified = await probeRemoteSessionV3(true)
|
|
141
141
|
if (!verified && !isDamLoggedIn.value) {
|
|
142
|
-
showGuestAuthToast(tab === 'mine' ? '
|
|
142
|
+
showGuestAuthToast(tab === 'mine' ? '我的空间' : 'AI生成')
|
|
143
143
|
return
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -358,7 +358,7 @@ function openCustomListPreview(item: MaterialItem, list: MaterialItem[], e?: Eve
|
|
|
358
358
|
previewVisible.value = true
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
-
//
|
|
361
|
+
// 将「联网搜索」或「我的空间」中的图片一键送入「AI生成」作为参考图
|
|
362
362
|
async function handleSendToCreateRef(item: MaterialItem, e?: Event) {
|
|
363
363
|
if (e) {
|
|
364
364
|
e.stopPropagation()
|
|
@@ -368,7 +368,7 @@ async function handleSendToCreateRef(item: MaterialItem, e?: Event) {
|
|
|
368
368
|
if (!isDamLoggedIn.value) {
|
|
369
369
|
const verified = await probeRemoteSessionV3(true)
|
|
370
370
|
if (!verified && !isDamLoggedIn.value) {
|
|
371
|
-
showGuestAuthToast('
|
|
371
|
+
showGuestAuthToast('AI生成')
|
|
372
372
|
return
|
|
373
373
|
}
|
|
374
374
|
}
|
|
@@ -947,7 +947,7 @@ watch([() => materialApiUrl?.value, () => materialPageApiUrl?.value, () => mater
|
|
|
947
947
|
</button>
|
|
948
948
|
</div>
|
|
949
949
|
|
|
950
|
-
<!-- 顶层 3-Tab
|
|
950
|
+
<!-- 顶层 3-Tab 分段切换器(联网搜索 | AI生成 | 我的空间) -->
|
|
951
951
|
<div v-if="activeMainTab !== 'search' || viewMode === 'overview'" class="material-top-tabs-wrap">
|
|
952
952
|
<div class="material-top-segmented">
|
|
953
953
|
<button
|
|
@@ -956,22 +956,23 @@ watch([() => materialApiUrl?.value, () => materialPageApiUrl?.value, () => mater
|
|
|
956
956
|
:class="{ active: activeMainTab === 'search' }"
|
|
957
957
|
@click="handleSwitchMainTab('search')"
|
|
958
958
|
>
|
|
959
|
-
<span
|
|
959
|
+
<span>联网搜索</span>
|
|
960
960
|
</button>
|
|
961
961
|
|
|
962
962
|
<button
|
|
963
963
|
type="button"
|
|
964
964
|
class="material-main-tab-btn"
|
|
965
965
|
:class="{
|
|
966
|
-
active: activeMainTab === '
|
|
966
|
+
active: activeMainTab === 'create',
|
|
967
967
|
'is-disabled': !isDamLoggedIn
|
|
968
968
|
}"
|
|
969
|
-
:title="!isDamLoggedIn ? '
|
|
970
|
-
@click="handleSwitchMainTab('
|
|
969
|
+
:title="!isDamLoggedIn ? '请先登录后使用AI生成' : 'AI 生成图片或视频素材'"
|
|
970
|
+
@click="handleSwitchMainTab('create')"
|
|
971
971
|
>
|
|
972
|
-
<span
|
|
972
|
+
<span>AI生成</span>
|
|
973
|
+
<span v-if="isDamLoggedIn" class="tab-ai-spark">✦</span>
|
|
973
974
|
<svg
|
|
974
|
-
v-
|
|
975
|
+
v-else
|
|
975
976
|
class="tab-lock-svg"
|
|
976
977
|
viewBox="0 0 24 24"
|
|
977
978
|
width="11"
|
|
@@ -989,16 +990,15 @@ watch([() => materialApiUrl?.value, () => materialPageApiUrl?.value, () => mater
|
|
|
989
990
|
type="button"
|
|
990
991
|
class="material-main-tab-btn"
|
|
991
992
|
:class="{
|
|
992
|
-
active: activeMainTab === '
|
|
993
|
+
active: activeMainTab === 'mine',
|
|
993
994
|
'is-disabled': !isDamLoggedIn
|
|
994
995
|
}"
|
|
995
|
-
:title="!isDamLoggedIn ? '
|
|
996
|
-
@click="handleSwitchMainTab('
|
|
996
|
+
:title="!isDamLoggedIn ? '请先登录后查看我的空间' : '查看我的项目与个人素材'"
|
|
997
|
+
@click="handleSwitchMainTab('mine')"
|
|
997
998
|
>
|
|
998
|
-
<span
|
|
999
|
-
<span v-if="isDamLoggedIn" class="tab-ai-spark">✦</span>
|
|
999
|
+
<span>我的空间</span>
|
|
1000
1000
|
<svg
|
|
1001
|
-
v-
|
|
1001
|
+
v-if="!isDamLoggedIn"
|
|
1002
1002
|
class="tab-lock-svg"
|
|
1003
1003
|
viewBox="0 0 24 24"
|
|
1004
1004
|
width="11"
|
|
@@ -1100,7 +1100,7 @@ watch([() => materialApiUrl?.value, () => materialPageApiUrl?.value, () => mater
|
|
|
1100
1100
|
v-if="isDamLoggedIn && cat.subType !== 'Videos' && !isVideoMaterial(item) && getMaterialThumb(item)"
|
|
1101
1101
|
type="button"
|
|
1102
1102
|
class="overview-card-ref-btn"
|
|
1103
|
-
title="
|
|
1103
|
+
title="作为参考图发送到「AI生成」"
|
|
1104
1104
|
@click.stop.prevent="handleSendToCreateRef(item, $event)"
|
|
1105
1105
|
>
|
|
1106
1106
|
@参考
|
|
@@ -1251,7 +1251,7 @@ watch([() => materialApiUrl?.value, () => materialPageApiUrl?.value, () => mater
|
|
|
1251
1251
|
v-if="isDamLoggedIn && filterParams.activeSubType !== 'Videos' && !isVideoMaterial(item) && getMaterialThumb(item)"
|
|
1252
1252
|
type="button"
|
|
1253
1253
|
class="detail-card-ref-btn"
|
|
1254
|
-
title="
|
|
1254
|
+
title="作为参考图发送到「AI生成」"
|
|
1255
1255
|
@click.stop.prevent="handleSendToCreateRef(item, $event)"
|
|
1256
1256
|
>
|
|
1257
1257
|
@参考
|