gengxin
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* 发布环境可覆盖这些值。
|
||||
*
|
||||
* cdnBaseUrl 默认留空:未配置合法 HTTPS 下载域名时,AssetManager 会直接
|
||||
* 使用包内种子图或返回文字回退,不会发起网络请求。
|
||||
*/
|
||||
module.exports = {
|
||||
cdnBaseUrl: '',
|
||||
imageCacheBudgetBytes: 28 * 1024 * 1024,
|
||||
audioCacheBudgetBytes: 32 * 1024 * 1024,
|
||||
audioCacheMaxEntries: 32,
|
||||
prefetchAhead: 2,
|
||||
downloadConcurrency: 2,
|
||||
}
|
||||
@@ -0,0 +1,298 @@
|
||||
const { releaseAssets } = require('./releaseAssetManifest')
|
||||
|
||||
const PLAYABLE_VISUAL_REVIEW_STATUS = 'approved-readable'
|
||||
const PROVISIONAL_VISUAL_REVIEW_STATUS = 'experience-provisional'
|
||||
const RUNTIME_VISUAL_TIERS = Object.freeze({
|
||||
FORMAL: 'formal',
|
||||
PROVISIONAL: 'experience-provisional',
|
||||
FALLBACK: 'fallback',
|
||||
})
|
||||
|
||||
// This set deliberately mirrors `usable` in
|
||||
// docs/production/art-release-gate-s01.json. Registered page art outside this
|
||||
// set may be shown only as experience-provisional and never counts as formal.
|
||||
const FORMAL_PAGE_ART_IDS = new Set([
|
||||
'S01-C01-P01',
|
||||
'S01-C01-P02',
|
||||
'S01-C01-P03',
|
||||
'S01-C01-P04',
|
||||
'S01-C01-P05',
|
||||
'S01-C01-P07',
|
||||
'S01-C01-P08',
|
||||
'S01-C02-P01',
|
||||
'S01-C02-P02',
|
||||
'S01-C02-P03',
|
||||
'S01-C02-P04',
|
||||
'S01-C02-P05',
|
||||
'S01-C02-P06',
|
||||
'S01-C02-P07',
|
||||
'S01-C02-P08',
|
||||
'S01-C03-P01',
|
||||
'S01-C03-P02',
|
||||
'S01-C03-P03',
|
||||
'S01-C03-P04',
|
||||
'S01-C03-P05',
|
||||
'S01-C03-P07',
|
||||
'S01-C03-P08',
|
||||
'S01-C04-P01',
|
||||
'S01-C04-P02',
|
||||
'S01-C04-P03',
|
||||
'S01-C04-P05',
|
||||
'S01-C04-P06',
|
||||
'S01-C04-P07',
|
||||
'S01-C04-P08',
|
||||
'S01-C05-P01',
|
||||
'S01-C05-P02',
|
||||
'S01-C05-P03',
|
||||
'S01-C05-P04',
|
||||
'S01-C05-P05',
|
||||
'S01-C05-P06',
|
||||
'S01-C05-P07',
|
||||
'S01-C05-P08',
|
||||
'S01-C06-P01',
|
||||
'S01-C06-P02',
|
||||
'S01-C06-P03',
|
||||
'S01-C06-P04',
|
||||
'S01-C06-P05',
|
||||
'S01-C06-P06',
|
||||
'S01-C06-P07',
|
||||
'S01-C06-P08',
|
||||
'S01-C07-P01',
|
||||
'S01-C07-P02',
|
||||
'S01-C07-P03',
|
||||
'S01-C07-P04',
|
||||
'S01-C07-P05',
|
||||
'S01-C07-P06',
|
||||
'S01-C07-P07',
|
||||
'S01-C07-P08',
|
||||
'S01-C08-P02',
|
||||
'S01-C08-P03',
|
||||
'S01-C08-P04',
|
||||
'S01-C08-P05',
|
||||
'S01-C08-P06',
|
||||
'S01-C08-P07',
|
||||
'S01-C08-P08',
|
||||
'S01-C09-P02',
|
||||
'S01-C09-P03',
|
||||
'S01-C09-P04',
|
||||
'S01-C09-P07',
|
||||
'S01-C09-P08',
|
||||
'S01-C10-P01',
|
||||
'S01-C10-P02',
|
||||
'S01-C10-P03',
|
||||
'S01-C10-P04',
|
||||
'S01-C10-P05',
|
||||
'S01-C10-P06',
|
||||
'S01-C10-P07',
|
||||
'S01-C10-P08',
|
||||
'S01-C11-P01',
|
||||
'S01-C11-P02',
|
||||
'S01-C11-P03',
|
||||
'S01-C11-P04',
|
||||
'S01-C11-P05',
|
||||
'S01-C11-P06',
|
||||
'S01-C11-P07',
|
||||
'S01-C11-P08',
|
||||
'S01-C12-P01',
|
||||
'S01-C12-P02',
|
||||
'S01-C12-P03',
|
||||
'S01-C12-P04',
|
||||
'S01-C12-P05',
|
||||
'S01-C12-P06',
|
||||
'S01-C12-P07',
|
||||
'S01-C12-P08',
|
||||
'S01-C13-P01',
|
||||
'S01-C13-P02',
|
||||
'S01-C13-P03',
|
||||
'S01-C13-P05',
|
||||
'S01-C13-P06',
|
||||
'S01-C13-P07',
|
||||
'S01-C13-P08',
|
||||
'S01-C14-P01',
|
||||
'S01-C14-P02',
|
||||
'S01-C14-P03',
|
||||
'S01-C14-P04',
|
||||
'S01-C14-P05',
|
||||
'S01-C14-P06',
|
||||
'S01-C14-P07',
|
||||
'S01-C14-P08',
|
||||
'S01-C15-P01',
|
||||
'S01-C15-P02',
|
||||
'S01-C15-P03',
|
||||
'S01-C15-P04',
|
||||
'S01-C15-P05',
|
||||
'S01-C15-P06',
|
||||
'S01-C15-P07',
|
||||
'S01-C15-P08',
|
||||
])
|
||||
|
||||
function clean(value) {
|
||||
return typeof value === 'string' ? value.trim() : ''
|
||||
}
|
||||
|
||||
function comicAssetIdForPageId(pageId) {
|
||||
const match = clean(pageId).match(/^S(\d+)-C(\d+)-P(\d+)$/)
|
||||
if (!match) return ''
|
||||
return `comic.s${match[1]}.c${match[2]}.p${match[3]}`
|
||||
}
|
||||
|
||||
function registeredPageArtFor(page) {
|
||||
const assetId = comicAssetIdForPageId(page && page.pageId)
|
||||
const releaseAsset = assetId ? releaseAssets[assetId] : null
|
||||
return Boolean(
|
||||
releaseAsset
|
||||
&& releaseAsset.kind === 'image'
|
||||
&& clean(releaseAsset.localSeed)
|
||||
&& clean(releaseAsset.localSeed) === clean(page.illustrationAsset),
|
||||
)
|
||||
}
|
||||
|
||||
function createPageArtVisual(page, chapter, runtimeTier) {
|
||||
const formal = runtimeTier === RUNTIME_VISUAL_TIERS.FORMAL
|
||||
return {
|
||||
kind: 'page-art',
|
||||
asset: clean(page.illustrationAsset),
|
||||
subject: clean(page.actorName || page.headline || chapter.title),
|
||||
runtimeTier,
|
||||
formalReleaseEligible: formal,
|
||||
reviewStatus: formal
|
||||
? PLAYABLE_VISUAL_REVIEW_STATUS
|
||||
: PROVISIONAL_VISUAL_REVIEW_STATUS,
|
||||
reviewBasis: formal
|
||||
? 'art-release-gate-s01-usable'
|
||||
: 'registered-immutable-asset-experience-only',
|
||||
}
|
||||
}
|
||||
|
||||
function personByInstanceId(chapter, instanceId) {
|
||||
return (chapter.people || []).find(
|
||||
(person) => (
|
||||
person.instanceId === instanceId
|
||||
&& clean(person.portrait)
|
||||
),
|
||||
) || null
|
||||
}
|
||||
|
||||
function personByName(chapter, name) {
|
||||
const cleanName = clean(name)
|
||||
if (!cleanName) return null
|
||||
return (chapter.people || []).find(
|
||||
(person) => person.name === cleanName && clean(person.portrait),
|
||||
) || null
|
||||
}
|
||||
|
||||
function featuredPersonForPage(page, chapter) {
|
||||
const direct = personByInstanceId(chapter, page.actorInstanceId)
|
||||
if (direct) return direct
|
||||
|
||||
if (page.type === 'memory') {
|
||||
const memoryPerson = personByName(
|
||||
chapter,
|
||||
page.memoryCard && page.memoryCard.characterName,
|
||||
)
|
||||
if (memoryPerson) return memoryPerson
|
||||
}
|
||||
|
||||
if (page.type === 'emotion') {
|
||||
const emotionPerson = personByName(
|
||||
chapter,
|
||||
chapter.emotionMoment
|
||||
&& chapter.emotionMoment.character
|
||||
&& chapter.emotionMoment.character.name,
|
||||
)
|
||||
if (emotionPerson) return emotionPerson
|
||||
}
|
||||
|
||||
return (chapter.people || []).find(
|
||||
(person) => clean(person.portrait),
|
||||
) || null
|
||||
}
|
||||
|
||||
function createPlayableVisual(page, chapter) {
|
||||
if (FORMAL_PAGE_ART_IDS.has(page.pageId)) {
|
||||
return createPageArtVisual(page, chapter, RUNTIME_VISUAL_TIERS.FORMAL)
|
||||
}
|
||||
|
||||
if (registeredPageArtFor(page)) {
|
||||
return createPageArtVisual(
|
||||
page,
|
||||
chapter,
|
||||
RUNTIME_VISUAL_TIERS.PROVISIONAL,
|
||||
)
|
||||
}
|
||||
|
||||
if (page.type === 'event') {
|
||||
const portrait = clean(page.actorPortrait)
|
||||
if (portrait) {
|
||||
return {
|
||||
kind: 'actor-portrait',
|
||||
asset: portrait,
|
||||
subject: clean(page.actorName),
|
||||
actorInstanceId: clean(page.actorInstanceId),
|
||||
runtimeTier: RUNTIME_VISUAL_TIERS.FALLBACK,
|
||||
formalReleaseEligible: false,
|
||||
reviewStatus: PLAYABLE_VISUAL_REVIEW_STATUS,
|
||||
reviewBasis: 'season-character-continuity-sheet',
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
kind: 'evidence-composite',
|
||||
asset: clean(page.fallbackAsset),
|
||||
subject: clean(page.actorName),
|
||||
evidenceLabel: clean(page.headline || '看看手边证据'),
|
||||
evidenceDetail: clean(
|
||||
page.secondaryCaption || page.caption || page.question,
|
||||
),
|
||||
runtimeTier: RUNTIME_VISUAL_TIERS.FALLBACK,
|
||||
formalReleaseEligible: false,
|
||||
reviewStatus: PLAYABLE_VISUAL_REVIEW_STATUS,
|
||||
reviewBasis: 'chapter-era-scene-with-reviewed-evidence-copy',
|
||||
}
|
||||
}
|
||||
|
||||
const featuredPerson = featuredPersonForPage(page, chapter)
|
||||
if (featuredPerson) {
|
||||
return {
|
||||
kind: 'chapter-character',
|
||||
asset: clean(featuredPerson.portrait),
|
||||
subject: clean(featuredPerson.name),
|
||||
actorInstanceId: clean(featuredPerson.instanceId),
|
||||
runtimeTier: RUNTIME_VISUAL_TIERS.FALLBACK,
|
||||
formalReleaseEligible: false,
|
||||
reviewStatus: PLAYABLE_VISUAL_REVIEW_STATUS,
|
||||
reviewBasis: 'season-character-continuity-sheet',
|
||||
}
|
||||
}
|
||||
|
||||
// Defensive last resort. The season currently never reaches this branch,
|
||||
// but if a future chapter lacks a portrait it still gets explicit evidence
|
||||
// instead of an unexplained empty room.
|
||||
return {
|
||||
kind: 'evidence-composite',
|
||||
asset: clean(page.fallbackAsset),
|
||||
subject: clean(page.headline || chapter.title),
|
||||
evidenceLabel: clean(page.headline || chapter.title),
|
||||
evidenceDetail: clean(page.caption || chapter.narration),
|
||||
runtimeTier: RUNTIME_VISUAL_TIERS.FALLBACK,
|
||||
formalReleaseEligible: false,
|
||||
reviewStatus: PLAYABLE_VISUAL_REVIEW_STATUS,
|
||||
reviewBasis: 'chapter-era-scene-with-reviewed-evidence-copy',
|
||||
}
|
||||
}
|
||||
|
||||
function attachPlayableVisuals(pageSequence, chapter) {
|
||||
return (Array.isArray(pageSequence) ? pageSequence : []).map((page) => ({
|
||||
...page,
|
||||
playableVisual: createPlayableVisual(page, chapter),
|
||||
}))
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
FORMAL_PAGE_ART_IDS,
|
||||
PLAYABLE_VISUAL_REVIEW_STATUS,
|
||||
PROVISIONAL_VISUAL_REVIEW_STATUS,
|
||||
RUNTIME_VISUAL_TIERS,
|
||||
attachPlayableVisuals,
|
||||
createPlayableVisual,
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
// Generated package-local production comic data. Do not hand-edit.
|
||||
module.exports = {
|
||||
"S01-C09": {
|
||||
"pages": [
|
||||
{
|
||||
"pageId": "S01-C09-P01",
|
||||
"type": "chapter-title-and-opening-memory",
|
||||
"eventId": "",
|
||||
"emotionMomentId": "",
|
||||
"assetName": "S01-C09-P01-opening-memory-v1.jpg",
|
||||
"caption": "医院门刚合上,第一次聚餐,一盘菜从赵伯面前悄悄挪远。",
|
||||
"secondaryCaption": "",
|
||||
"interactionPrompt": "翻开这一回",
|
||||
"shortDialogue": "",
|
||||
"hotspot": null,
|
||||
"programDetailInset": {
|
||||
"label": "桌边近景",
|
||||
"x": 69,
|
||||
"y": 51,
|
||||
"w": 31,
|
||||
"h": 35,
|
||||
"anchor": "top-left"
|
||||
},
|
||||
"audioCueIds": [
|
||||
"S01-C09-MT000",
|
||||
"S01-C09-MOM001",
|
||||
"S01-C09-MOM002",
|
||||
"S01-C09-MOM003",
|
||||
"S01-C09-MTRANS001"
|
||||
],
|
||||
"tableEcho": "",
|
||||
"cliffhanger": ""
|
||||
},
|
||||
{
|
||||
"pageId": "S01-C09-P02",
|
||||
"type": "ensemble",
|
||||
"eventId": "",
|
||||
"emotionMomentId": "",
|
||||
"assetName": "S01-C09-P02-opening-ensemble-v1.jpg",
|
||||
"caption": "第一圈酒绕来,赵伯坐在原位看着;老周抬起手,唐守安摸向空杯,明远的酒壶停在桌中。",
|
||||
"secondaryCaption": "",
|
||||
"interactionPrompt": "先看看:谁在说自己的选择,谁还在替别人决定。",
|
||||
"shortDialogue": "",
|
||||
"hotspot": null,
|
||||
"audioCueIds": [
|
||||
"S01-C09-MTRANS001",
|
||||
"S01-C09-MS004",
|
||||
"S01-C09-MS006",
|
||||
"S01-C09-MS012"
|
||||
],
|
||||
"tableEcho": "",
|
||||
"cliffhanger": ""
|
||||
},
|
||||
{
|
||||
"pageId": "S01-C09-P03",
|
||||
"type": "event",
|
||||
"eventId": "S01-H33",
|
||||
"emotionMomentId": "",
|
||||
"assetName": "S01-C09-P03-H33-driver-no-alcohol-v1.jpg",
|
||||
"caption": "老周把车钥匙压在桌上,白酒仍被推来;他用整只手挡住杯子,一口也不碰。",
|
||||
"secondaryCaption": "",
|
||||
"interactionPrompt": "对要开车的人说“就一小口没事”,这样妥当吗?",
|
||||
"shortDialogue": "老周按住钥匙:“车是我开,一口也不碰。”林秀兰把白水换到他面前。",
|
||||
"hotspot": {
|
||||
"x": 20,
|
||||
"y": 0,
|
||||
"w": 65,
|
||||
"h": 99
|
||||
},
|
||||
"audioCueIds": [
|
||||
"S01-C09-MS002",
|
||||
"S01-C09-MS003"
|
||||
],
|
||||
"tableEcho": "",
|
||||
"cliffhanger": ""
|
||||
},
|
||||
{
|
||||
"pageId": "S01-C09-P04",
|
||||
"type": "event",
|
||||
"eventId": "S01-H34",
|
||||
"emotionMomentId": "",
|
||||
"assetName": "S01-C09-P04-H34-tea-toast-v1.jpg",
|
||||
"caption": "唐守安坐在靠门末席,轻盖空酒杯,端起茶;桌上的笑声一停,没人再把酒推回来。",
|
||||
"secondaryCaption": "",
|
||||
"interactionPrompt": "清楚拒绝饮酒,其他人也不继续起哄,这样更稳妥吗?",
|
||||
"shortDialogue": "唐守安说:“心意我领,酒不喝。咱们拿茶照样碰。”",
|
||||
"hotspot": {
|
||||
"x": 21,
|
||||
"y": 0,
|
||||
"w": 66,
|
||||
"h": 99
|
||||
},
|
||||
"audioCueIds": [
|
||||
"S01-C09-MS006",
|
||||
"S01-C09-MS007",
|
||||
"S01-C09-MS009",
|
||||
"S01-C09-MS013"
|
||||
],
|
||||
"tableEcho": "",
|
||||
"cliffhanger": ""
|
||||
},
|
||||
{
|
||||
"pageId": "S01-C09-P05",
|
||||
"type": "event",
|
||||
"eventId": "S01-H35",
|
||||
"emotionMomentId": "",
|
||||
"assetName": "S01-C09-P05-H35-personal-plan-text-supported-v1-ffq2.jpg",
|
||||
"caption": "赵伯把自己的闭合随身药盒推向一旁,想为这场酒局把原来的安排往后挪。唐守安先请他停一下。",
|
||||
"secondaryCaption": "涉及用药调整,应按专业人员确认的个人方案处理;不要自行停药或改量",
|
||||
"outsideActionLabel": "打开赵伯这一刻",
|
||||
"artTapHint": "画中赵伯也能点",
|
||||
"interactionPrompt": "为了参加酒局,自行停药、补服、加倍、减量或调整胰岛素,这样妥当吗?",
|
||||
"shortDialogue": "赵伯说:“今天喝酒,药先挪一挪?”唐守安摇头:“别在饭桌上自己改,先按你的方案办。”",
|
||||
"hotspot": {
|
||||
"x": 18,
|
||||
"y": 0,
|
||||
"w": 68,
|
||||
"h": 99
|
||||
},
|
||||
"programDetailInset": {
|
||||
"label": "手边近景",
|
||||
"x": 8,
|
||||
"y": 42,
|
||||
"w": 50,
|
||||
"h": 56,
|
||||
"anchor": "top-left"
|
||||
},
|
||||
"audioCueIds": [
|
||||
"S01-C09-MS010",
|
||||
"S01-C09-MS011"
|
||||
],
|
||||
"tableEcho": "",
|
||||
"cliffhanger": ""
|
||||
},
|
||||
{
|
||||
"pageId": "S01-C09-P06",
|
||||
"type": "event",
|
||||
"eventId": "S01-H36",
|
||||
"emotionMomentId": "",
|
||||
"assetName": "S01-C09-P06-H36-stop-and-stay-v1.jpg",
|
||||
"caption": "第三圈还没走完,赵伯出汗、手抖、回答变慢;唐守安先停酒、移开杯子,只留人陪在近处。",
|
||||
"secondaryCaption": "",
|
||||
"interactionPrompt": "发现出汗、手抖、反应变慢后,先停酒、移开危险物并留下人陪伴,这样更稳妥吗?",
|
||||
"shortDialogue": "唐守安说:“先停酒,别让他一个人。能不能安全吞咽先看清,严重时马上联系急救。”",
|
||||
"hotspot": {
|
||||
"x": 22,
|
||||
"y": 0,
|
||||
"w": 62,
|
||||
"h": 99
|
||||
},
|
||||
"programDetailInset": {
|
||||
"label": "手边近景",
|
||||
"x": 35,
|
||||
"y": 42,
|
||||
"w": 36,
|
||||
"h": 39,
|
||||
"anchor": "top-right"
|
||||
},
|
||||
"audioCueIds": [
|
||||
"S01-C09-MS014",
|
||||
"S01-C09-MS015",
|
||||
"S01-C09-MS016"
|
||||
],
|
||||
"tableEcho": "",
|
||||
"cliffhanger": ""
|
||||
},
|
||||
{
|
||||
"pageId": "S01-C09-P07",
|
||||
"type": "emotion",
|
||||
"eventId": "",
|
||||
"emotionMomentId": "S01-EM09",
|
||||
"assetName": "S01-C09-P07-EM09-keep-my-seat-v1.jpg",
|
||||
"caption": "酒杯停下后,赵伯仍坐在老位置。把座位留着,等他自己说愿不愿意坐下。",
|
||||
"secondaryCaption": "",
|
||||
"interactionPrompt": "你愿意怎样让赵伯先说出自己的担心?",
|
||||
"shortDialogue": "",
|
||||
"hotspot": {
|
||||
"x": 24,
|
||||
"y": 0,
|
||||
"w": 58,
|
||||
"h": 99
|
||||
},
|
||||
"audioCueIds": [
|
||||
"S01-C09-MS004",
|
||||
"S01-C09-MS005",
|
||||
"S01-C09-MS007",
|
||||
"S01-C09-MS008",
|
||||
"S01-C09-MS009",
|
||||
"S01-C09-TE900"
|
||||
],
|
||||
"tableEcho": "照顾不是把人摘出去,是陪他把自己的选择说出来。",
|
||||
"cliffhanger": ""
|
||||
},
|
||||
{
|
||||
"pageId": "S01-C09-P08",
|
||||
"type": "memory-card-and-cliffhanger",
|
||||
"eventId": "",
|
||||
"emotionMomentId": "",
|
||||
"assetName": "S01-C09-P08-push-cup-cliffhanger-v1-ffq2.jpg",
|
||||
"caption": "照顾不是把人摘出去,是陪他把自己的选择说出来。",
|
||||
"secondaryCaption": "",
|
||||
"interactionPrompt": "收进我的桂香岁月",
|
||||
"shortDialogue": "",
|
||||
"hotspot": null,
|
||||
"audioCueIds": [
|
||||
"S01-C09-MS017",
|
||||
"S01-C09-MS018",
|
||||
"S01-C09-TE900",
|
||||
"S01-C09-MS019"
|
||||
],
|
||||
"tableEcho": "照顾不是把人摘出去,是陪他把自己的选择说出来。",
|
||||
"memoryDisplayLines": [
|
||||
"陪他把选择说出来。",
|
||||
"今天:开车就换茶或白水。",
|
||||
"回家聊:先听赵伯把担心说完。"
|
||||
],
|
||||
"cliffhanger": "赵伯推远酒盅,人和饭仍留在桌边;门外开始敲隔断。"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,911 @@
|
||||
/**
|
||||
* 发布固定资产清单 v1
|
||||
*
|
||||
* 约束:
|
||||
* 1. 页面只保存稳定的 assetId,不直接拼 CDN 地址。
|
||||
* 2. remotePath 必须包含对应文件内容哈希的前 12 位,发布后不可覆盖。
|
||||
* 3. 医学结论、判断答案和行动建议必须随代码包发布,不得放进远端资产。
|
||||
* 4. localSeed 是当前小程序包内的安全回退;以后迁移 CDN 时可按资产逐项移除。
|
||||
*/
|
||||
|
||||
const RELEASE_ASSET_MANIFEST_VERSION = 1
|
||||
|
||||
const releaseAssets = {
|
||||
'comic.s01.c01.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-game/assets/comic/s01-c01/S01-C01-P01-title-v1.jpg',
|
||||
remotePath: 'comic/s01-c01/S01-C01-P01-title-v1.12163b7f4667.jpg',
|
||||
sha256: '12163b7f466766af13a75024189aa28441627f67a6623b1c4b99b29110ecb35a',
|
||||
},
|
||||
'comic.s01.c01.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/comic/s01-c01/S01-C01-P02-missing-table-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c01/S01-C01-P02-missing-table-ensemble-v1.f34fe1faf167.jpg',
|
||||
sha256: 'f34fe1faf167da590dd36595c80803f1ba8740576e600ee3c1d004bbbd4a26f0',
|
||||
},
|
||||
'comic.s01.c01.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-game/assets/comic/s01-c01/S01-C01-P03-H01-scan-only-v1.jpg',
|
||||
remotePath: 'comic/s01-c01/S01-C01-P03-H01-scan-only-v1.6e0d20c4055f.jpg',
|
||||
sha256: '6e0d20c4055ff20b8b2d47a12edb5902c89d7440334a1783acd11133d854ad80',
|
||||
},
|
||||
'comic.s01.c01.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-game/assets/comic/s01-c01/S01-C01-P04-H02-extra-dish-v1.jpg',
|
||||
remotePath: 'comic/s01-c01/S01-C01-P04-H02-extra-dish-v1.bcef17dda041.jpg',
|
||||
sha256: 'bcef17dda041c5e21e43281160ee09ded3fbb89b052e92da27fd50c7b78640ce',
|
||||
},
|
||||
'comic.s01.c01.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-game/assets/comic/s01-c01/S01-C01-P05-H03-four-imprints-v1.jpg',
|
||||
remotePath: 'comic/s01-c01/S01-C01-P05-H03-four-imprints-v1.d2e1becd9c12.jpg',
|
||||
sha256: 'd2e1becd9c12c80f7c90e63755454d618fa3741ca1c2685e04fe11f408130f5f',
|
||||
},
|
||||
'comic.s01.c01.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-game/assets/comic/s01-c01/S01-C01-P06-H04-unsaid-speech-v1.jpg',
|
||||
remotePath: 'comic/s01-c01/S01-C01-P06-H04-unsaid-speech-v1.7bc229ef1f1c.jpg',
|
||||
sha256: '7bc229ef1f1c5dc127f7e2be75dfac62a3a485984584e0caf6cf096792e03750',
|
||||
},
|
||||
'comic.s01.c01.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-game/assets/comic/s01-c01/S01-C01-P07-EM01-call-zhao-in-v1.jpg',
|
||||
remotePath: 'comic/s01-c01/S01-C01-P07-EM01-call-zhao-in-v1.4a19c49a53ea.jpg',
|
||||
sha256: '4a19c49a53eaee3d775d0b0a8965a6478d4976d820584b0abb364790294c6f31',
|
||||
},
|
||||
'comic.s01.c01.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-game/assets/comic/s01-c01/S01-C01-P08-cliffhanger-v1.jpg',
|
||||
remotePath: 'comic/s01-c01/S01-C01-P08-cliffhanger-v1.7db63c3725ee.jpg',
|
||||
sha256: '7db63c3725ee5a1ca8ad71c67746e7cd0234ed21fee07030fc1158ccd0161d69',
|
||||
},
|
||||
'comic.s01.c02.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-02/assets/comic/s01-c02/S01-C02-P01-title-v1.jpg',
|
||||
remotePath: 'comic/s01-c02/S01-C02-P01-title-v1.c32093483c58.jpg',
|
||||
sha256: 'c32093483c588ab38465e16f1c4a6bf230a0c6433925df91cf588e57fca05552',
|
||||
},
|
||||
'comic.s01.c02.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-02/assets/comic/s01-c02/S01-C02-P02-exhibit-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c02/S01-C02-P02-exhibit-ensemble-v1.892de611f097.jpg',
|
||||
sha256: '892de611f097d6562eb7d632eb29e91da28b5fc1c141ab4911da52c0f8f869ea',
|
||||
},
|
||||
'comic.s01.c02.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-02/assets/comic/s01-c02/S01-C02-P03-H05-meal-ticket-label-v1.jpg',
|
||||
remotePath: 'comic/s01-c02/S01-C02-P03-H05-meal-ticket-label-v1.e725c333849e.jpg',
|
||||
sha256: 'e725c333849e13dc342c01448eb34bf02b269946d4a8a40843044c7ab5f4803c',
|
||||
},
|
||||
'comic.s01.c02.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-02/assets/comic/s01-c02/S01-C02-P04-H06-bowl-direction-v1.jpg',
|
||||
remotePath: 'comic/s01-c02/S01-C02-P04-H06-bowl-direction-v1.ac89e35c3692.jpg',
|
||||
sha256: 'ac89e35c369254b81cfa0c9b350c6d485d637eb8642c13952ef6b26c889b9593',
|
||||
},
|
||||
'comic.s01.c02.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-02/assets/comic/s01-c02/S01-C02-P05-H07-photo-edge-clues-v1.jpg',
|
||||
remotePath: 'comic/s01-c02/S01-C02-P05-H07-photo-edge-clues-v1.cda630c13f31.jpg',
|
||||
sha256: 'cda630c13f31745e3ad6308cca179337c6c9c11dd33c6473f3f769d614662a4d',
|
||||
},
|
||||
'comic.s01.c02.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-02/assets/comic/s01-c02/S01-C02-P06-H08-plaque-reverse-v1.jpg',
|
||||
remotePath: 'comic/s01-c02/S01-C02-P06-H08-plaque-reverse-v1.61d413562200.jpg',
|
||||
sha256: '61d413562200e3a40ded87c77c1b6c887331810ae03ef2a5b6b533cc4a7ff541',
|
||||
},
|
||||
'comic.s01.c02.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-02/assets/comic/s01-c02/S01-C02-P07-EM02-slow-recognition-v1.jpg',
|
||||
remotePath: 'comic/s01-c02/S01-C02-P07-EM02-slow-recognition-v1.c7a28411b1d7.jpg',
|
||||
sha256: 'c7a28411b1d72d708d0c22a38b1ac3e2ccf3faac85056d603790d3c4ac3ee539',
|
||||
},
|
||||
'comic.s01.c02.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-02/assets/comic/s01-c02/S01-C02-P08-clock-to-1978-v1.jpg',
|
||||
remotePath: 'comic/s01-c02/S01-C02-P08-clock-to-1978-v1.6c0eed6b964e.jpg',
|
||||
sha256: '6c0eed6b964edb72f13810a32bcfa3509f28f002dedd4bb25c9fc89f4a594703',
|
||||
},
|
||||
'comic.s01.c03.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-03/assets/comic/s01-c03/S01-C03-P01-title-v1.jpg',
|
||||
remotePath: 'comic/s01-c03/S01-C03-P01-title-v1.7aaefa1ff157.jpg',
|
||||
sha256: '7aaefa1ff15756b6808abd6476b3e8d666fc011cc83760acaa89b8aeb60e26a4',
|
||||
},
|
||||
'comic.s01.c03.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-03/assets/comic/s01-c03/S01-C03-P02-canteen-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c03/S01-C03-P02-canteen-ensemble-v1.feb9f3243262.jpg',
|
||||
sha256: 'feb9f324326284127c8579153e7fba5ac32cf0e72687ea35b92986dcb7f94dd5',
|
||||
},
|
||||
'comic.s01.c03.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-03/assets/comic/s01-c03/S01-C03-P03-H09-oily-hand-bun-v1.jpg',
|
||||
remotePath: 'comic/s01-c03/S01-C03-P03-H09-oily-hand-bun-v1.841146ea446b.jpg',
|
||||
sha256: '841146ea446b6d42e703f02c1f88446f1e8fde1f7f64fb8d3f3dc4ba01d1b95e',
|
||||
},
|
||||
'comic.s01.c03.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-03/assets/comic/s01-c03/S01-C03-P04-H10-bench-balance-v1.jpg',
|
||||
remotePath: 'comic/s01-c03/S01-C03-P04-H10-bench-balance-v1.8a838a7d0bac.jpg',
|
||||
sha256: '8a838a7d0bac89fe6d728cc2002f5cf4578659d7b5f4619efdaaa386e5a7d727',
|
||||
},
|
||||
'comic.s01.c03.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-03/assets/comic/s01-c03/S01-C03-P05-H11-staple-era-context-v1.jpg',
|
||||
remotePath: 'comic/s01-c03/S01-C03-P05-H11-staple-era-context-v1.cbd7d426ee42.jpg',
|
||||
sha256: 'cbd7d426ee427c16429066feff5afd0300e65ac73dc25beb134ed4947ddc6b79',
|
||||
},
|
||||
'comic.s01.c03.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-03/assets/comic/s01-c03/S01-C03-P06-H12-two-clips-v1.jpg',
|
||||
remotePath: 'comic/s01-c03/S01-C03-P06-H12-two-clips-v1.00e5034f636a.jpg',
|
||||
sha256: '00e5034f636aed3b8be3bfecf8be84a12b2dd80763876a5df31eaa81540d77f1',
|
||||
},
|
||||
'comic.s01.c03.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-03/assets/comic/s01-c03/S01-C03-P07-EM03-ask-tired-v1.jpg',
|
||||
remotePath: 'comic/s01-c03/S01-C03-P07-EM03-ask-tired-v1.787bf794fd53.jpg',
|
||||
sha256: '787bf794fd536bbab6bbb0e2ba9fe68193b74dbb1810ddf3929f8f332c4df602',
|
||||
},
|
||||
'comic.s01.c03.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-03/assets/comic/s01-c03/S01-C03-P08-third-bowl-cliffhanger-v1.jpg',
|
||||
remotePath: 'comic/s01-c03/S01-C03-P08-third-bowl-cliffhanger-v1.056ef8b3017c.jpg',
|
||||
sha256: '056ef8b3017c857574093fd86478fab7d349261202ca65919129219a2f2dd4e5',
|
||||
},
|
||||
'comic.s01.c04.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-04/assets/comic/s01-c04/S01-C04-P01-title-v1.jpg',
|
||||
remotePath: 'comic/s01-c04/S01-C04-P01-title-v1.e20d8bd83bfb.jpg',
|
||||
sha256: 'e20d8bd83bfb6084bf4aac30078fda6a5024bbf1be46a7b40e001fc510e05a30',
|
||||
},
|
||||
'comic.s01.c04.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-04/assets/comic/s01-c04/S01-C04-P02-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c04/S01-C04-P02-ensemble-v1.d83c35c61a7c.jpg',
|
||||
sha256: 'd83c35c61a7cff187fbc8e0a8bb5355f856413c6ebddfb32ef69d92f0dea9505',
|
||||
},
|
||||
'comic.s01.c04.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-04/assets/comic/s01-c04/S01-C04-P03-H13-ladle-contest-v1.jpg',
|
||||
remotePath: 'comic/s01-c04/S01-C04-P03-H13-ladle-contest-v1.c90b76c43463.jpg',
|
||||
sha256: 'c90b76c43463f456c5323a06734f8c5e48f81938990d1715a1f3807bea1ce3d4',
|
||||
},
|
||||
'comic.s01.c04.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-04/assets/comic/s01-c04/S01-C04-P04-H14-belt-table-v1.jpg',
|
||||
remotePath: 'comic/s01-c04/S01-C04-P04-H14-belt-table-v1.70da80c5dd1d.jpg',
|
||||
sha256: '70da80c5dd1d40279540cd1fcc657aaf6a99ece7a36a81c979f734a78fecf5d7',
|
||||
},
|
||||
'comic.s01.c04.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-04/assets/comic/s01-c04/S01-C04-P05-H15-water-reminder-v1.jpg',
|
||||
remotePath: 'comic/s01-c04/S01-C04-P05-H15-water-reminder-v1.4f4212b949b9.jpg',
|
||||
sha256: '4f4212b949b9e25bdc5041d0dc0c1c4a8e2d1247efc387b424573e58b01eff3a',
|
||||
},
|
||||
'comic.s01.c04.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-04/assets/comic/s01-c04/S01-C04-P06-H16-stool-bowl-v1.jpg',
|
||||
remotePath: 'comic/s01-c04/S01-C04-P06-H16-stool-bowl-v1.25834d3e9082.jpg',
|
||||
sha256: '25834d3e908299dff9f74442eebf615d5eaf1dce22d06b2e5739a3e2a1ba8cc2',
|
||||
},
|
||||
'comic.s01.c04.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-04/assets/comic/s01-c04/S01-C04-P07-EM04-face-saving-pause-v1.jpg',
|
||||
remotePath: 'comic/s01-c04/S01-C04-P07-EM04-face-saving-pause-v1.3f741e4ac31c.jpg',
|
||||
sha256: '3f741e4ac31cb55ad4a2956d07b183ecb665e297f4612f7ba8c6c3f6becc971d',
|
||||
},
|
||||
'comic.s01.c04.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-04/assets/comic/s01-c04/S01-C04-P08-cliffhanger-v1.jpg',
|
||||
remotePath: 'comic/s01-c04/S01-C04-P08-cliffhanger-v1.9558ee49f2e2.jpg',
|
||||
sha256: '9558ee49f2e2b6b53eff173425a2adc31969f8532ff584b94980bd51b757fe61',
|
||||
},
|
||||
'comic.s01.c05.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-05/assets/comic/s01-c05/S01-C05-P01-title-v1.jpg',
|
||||
remotePath: 'comic/s01-c05/S01-C05-P01-title-v1.52a79ac178e6.jpg',
|
||||
sha256: '52a79ac178e6b0a154c9918010f16be797cb62d63624f820a69c6a0cd3fcc2ef',
|
||||
},
|
||||
'comic.s01.c05.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-05/assets/comic/s01-c05/S01-C05-P02-late-shift-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c05/S01-C05-P02-late-shift-ensemble-v1.897aa558fe7d.jpg',
|
||||
sha256: '897aa558fe7d0f4b607686d82c48c435522664c125627a023819f7ca2ad4ccfb',
|
||||
},
|
||||
'comic.s01.c05.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-05/assets/comic/s01-c05/S01-C05-P03-H17-empty-window-v1.jpg',
|
||||
remotePath: 'comic/s01-c05/S01-C05-P03-H17-empty-window-v1.76ac18af26da.jpg',
|
||||
sha256: '76ac18af26da9f5b6a9a2007fd6cf4cc81f584659c293c774222a7359bec0e22',
|
||||
},
|
||||
'comic.s01.c05.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-05/assets/comic/s01-c05/S01-C05-P04-H18-half-bun-v1.jpg',
|
||||
remotePath: 'comic/s01-c05/S01-C05-P04-H18-half-bun-v1.c9506ed1fe98.jpg',
|
||||
sha256: 'c9506ed1fe983ec7d467ade84a6b0807401292d18e8ba85a5507173e8c11d23c',
|
||||
},
|
||||
'comic.s01.c05.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-05/assets/comic/s01-c05/S01-C05-P05-H19-relit-stove-v1.jpg',
|
||||
remotePath: 'comic/s01-c05/S01-C05-P05-H19-relit-stove-v1.a88bbf597302.jpg',
|
||||
sha256: 'a88bbf597302146baf361469aa904cd9c126d411ce76feb7d1d1dd520ee783e8',
|
||||
},
|
||||
'comic.s01.c05.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-05/assets/comic/s01-c05/S01-C05-P06-H20-seat-at-table-v1.jpg',
|
||||
remotePath: 'comic/s01-c05/S01-C05-P06-H20-seat-at-table-v1.63adf03d0d30.jpg',
|
||||
sha256: '63adf03d0d305435bf17865cb4f17e28c8c3fad9274c730010a4f4580f75f8ca',
|
||||
},
|
||||
'comic.s01.c05.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-05/assets/comic/s01-c05/S01-C05-P07-EM05-light-for-latecomers-v1.jpg',
|
||||
remotePath: 'comic/s01-c05/S01-C05-P07-EM05-light-for-latecomers-v1.172fc27a2252.jpg',
|
||||
sha256: '172fc27a22529f5d6a3c12b60ec5b36a34620b50af2ab7b475287c3b70dd1567',
|
||||
},
|
||||
'comic.s01.c05.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-05/assets/comic/s01-c05/S01-C05-P08-first-photo-v1.jpg',
|
||||
remotePath: 'comic/s01-c05/S01-C05-P08-first-photo-v1.b85b2852a7dc.jpg',
|
||||
sha256: 'b85b2852a7dc274f866923f429451e488c1cd6436c62892db3e62a8952c06f3f',
|
||||
},
|
||||
'comic.s01.c06.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-06/assets/comic/s01-c06/S01-C06-P01-title-v1.jpg',
|
||||
remotePath: 'comic/s01-c06/S01-C06-P01-title-v1.f7039560e49d.jpg',
|
||||
sha256: 'f7039560e49d68615812a9d154c095e69ec04aa6a60f06f4f14822ea36d91d40',
|
||||
},
|
||||
'comic.s01.c06.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-06/assets/comic/s01-c06/S01-C06-P02-sign-flip-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c06/S01-C06-P02-sign-flip-ensemble-v1.0b4519763ba5.jpg',
|
||||
sha256: '0b4519763ba53e001fa8bd6903fea84c25c97cf9e6049a05bba684da1e3ec6ae',
|
||||
},
|
||||
'comic.s01.c06.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-06/assets/comic/s01-c06/S01-C06-P03-H21-contract-boundary-v1.jpg',
|
||||
remotePath: 'comic/s01-c06/S01-C06-P03-H21-contract-boundary-v1.caf57f377be3.jpg',
|
||||
sha256: 'caf57f377be31f6c018859d7e0b2149f1ce39b8ad95473a86f4e4c1f52b11f75',
|
||||
},
|
||||
'comic.s01.c06.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-06/assets/comic/s01-c06/S01-C06-P04-H22-ticket-cash-hands-v1.jpg',
|
||||
remotePath: 'comic/s01-c06/S01-C06-P04-H22-ticket-cash-hands-v1.f05b92fd22c2.jpg',
|
||||
sha256: 'f05b92fd22c222f61ea75dab51e2a0b27682362ea6f1e2ccc1e990cf11c2b469',
|
||||
},
|
||||
'comic.s01.c06.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-06/assets/comic/s01-c06/S01-C06-P05-H23-covered-staff-meal-v1.jpg',
|
||||
remotePath: 'comic/s01-c06/S01-C06-P05-H23-covered-staff-meal-v1.408f43b54b2b.jpg',
|
||||
sha256: '408f43b54b2b0f7aa5c8fade4ff917a7461333dbfec8f44f6ee1f7b66671b88d',
|
||||
},
|
||||
'comic.s01.c06.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-06/assets/comic/s01-c06/S01-C06-P06-H24-protect-table-v1.jpg',
|
||||
remotePath: 'comic/s01-c06/S01-C06-P06-H24-protect-table-v1.84156df566a6.jpg',
|
||||
sha256: '84156df566a673834861d991505b43495894fd3a7bbd87478ce4bdcf7d616e53',
|
||||
},
|
||||
'comic.s01.c06.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-06/assets/comic/s01-c06/S01-C06-P07-EM06-keep-seat-v1.jpg',
|
||||
remotePath: 'comic/s01-c06/S01-C06-P07-EM06-keep-seat-v1.c61d898fd982.jpg',
|
||||
sha256: 'c61d898fd982b5c7953ca8dc448a8d96e5c5a3894a5647707b0290a8a3b0cc9b',
|
||||
},
|
||||
'comic.s01.c06.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-06/assets/comic/s01-c06/S01-C06-P08-table-held-cliffhanger-v1.jpg',
|
||||
remotePath: 'comic/s01-c06/S01-C06-P08-table-held-cliffhanger-v1.bcb8ec7e4720.jpg',
|
||||
sha256: 'bcb8ec7e472079206983c8e6b897ad9d611a70a280251b0cdd85462938de59a5',
|
||||
},
|
||||
'comic.s01.c07.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-07/assets/comic/s01-c07/S01-C07-P01-title-v1.jpg',
|
||||
remotePath: 'comic/s01-c07/S01-C07-P01-title-v1.42031fff6b37.jpg',
|
||||
sha256: '42031fff6b3722bac2c389babd6f1eb283cb0b013d1c9a055292e585888dc720',
|
||||
},
|
||||
'comic.s01.c07.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-07/assets/comic/s01-c07/S01-C07-P02-opening-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c07/S01-C07-P02-opening-ensemble-v1.81e28334e743.jpg',
|
||||
sha256: '81e28334e74358e7549d2ee82bd48d7bbcf16bf424274cdf4dc568f9f040aed2',
|
||||
},
|
||||
'comic.s01.c07.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-07/assets/comic/s01-c07/S01-C07-P03-H25-full-bowl-v1.jpg',
|
||||
remotePath: 'comic/s01-c07/S01-C07-P03-H25-full-bowl-v1.fb9d1cd9910d.jpg',
|
||||
sha256: 'fb9d1cd9910dfd50c039404134443e760e6afffc9ab19eeafb528de46d6a69a5',
|
||||
},
|
||||
'comic.s01.c07.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-07/assets/comic/s01-c07/S01-C07-P04-H26-ladle-across-table-v1.jpg',
|
||||
remotePath: 'comic/s01-c07/S01-C07-P04-H26-ladle-across-table-v1.8e12ab04091a.jpg',
|
||||
sha256: '8e12ab04091a938f2155573ae0d30896f668e3c2b77a3185481dc75156950ba3',
|
||||
},
|
||||
'comic.s01.c07.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-07/assets/comic/s01-c07/S01-C07-P05-H27-door-and-watch-v1.jpg',
|
||||
remotePath: 'comic/s01-c07/S01-C07-P05-H27-door-and-watch-v1.5d65745996d6.jpg',
|
||||
sha256: '5d65745996d614acd9d38d960467658cbeea6c638e15a27861a73e2114ae01f4',
|
||||
},
|
||||
'comic.s01.c07.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-07/assets/comic/s01-c07/S01-C07-P06-H28-shift-table-v1.jpg',
|
||||
remotePath: 'comic/s01-c07/S01-C07-P06-H28-shift-table-v1.7365643f439b.jpg',
|
||||
sha256: '7365643f439bbb1d2a87f9995e3e34f7383eae1754738e2ab69a54fe54a45c6a',
|
||||
},
|
||||
'comic.s01.c07.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-07/assets/comic/s01-c07/S01-C07-P07-EM07-listen-until-finished-v1.jpg',
|
||||
remotePath: 'comic/s01-c07/S01-C07-P07-EM07-listen-until-finished-v1.19ea61163655.jpg',
|
||||
sha256: '19ea6116365526daa302aa43f9354cfd127ade2308808df565ac60ae6cb1aff5',
|
||||
},
|
||||
'comic.s01.c07.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-07/assets/comic/s01-c07/S01-C07-P08-order-slip-cliffhanger-v1.jpg',
|
||||
remotePath: 'comic/s01-c07/S01-C07-P08-order-slip-cliffhanger-v1.f7f84ebecba2.jpg',
|
||||
sha256: 'f7f84ebecba290ae9aa9f5b1960896b2151c3a1964011835d64c80cee0fa073e',
|
||||
},
|
||||
'comic.s01.c08.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-08/assets/comic/s01-c08/S01-C08-P01-title-v1.jpg',
|
||||
remotePath: 'comic/s01-c08/S01-C08-P01-title-v1.b292709d6f22.jpg',
|
||||
sha256: 'b292709d6f22e6865125f75c8b9b753a61467b09c90012b97eb206829fc64ddc',
|
||||
},
|
||||
'comic.s01.c08.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-08/assets/comic/s01-c08/S01-C08-P02-opening-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c08/S01-C08-P02-opening-ensemble-v1.4b755190ba3d.jpg',
|
||||
sha256: '4b755190ba3d8d9e879b89bc9579909792b7ae82059ad73bf4a4d62bfb27b562',
|
||||
},
|
||||
'comic.s01.c08.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-08/assets/comic/s01-c08/S01-C08-P03-H29-extra-dishes-v1.jpg',
|
||||
remotePath: 'comic/s01-c08/S01-C08-P03-H29-extra-dishes-v1.2a5bc840cc2d.jpg',
|
||||
sha256: '2a5bc840cc2dee6d4952ee632dc537ad7368034edbe416ff18cfef65b7a2689c',
|
||||
},
|
||||
'comic.s01.c08.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-08/assets/comic/s01-c08/S01-C08-P04-H30-rejected-box-v1.jpg',
|
||||
remotePath: 'comic/s01-c08/S01-C08-P04-H30-rejected-box-v1.737e9996a8f3.jpg',
|
||||
sha256: '737e9996a8f3d67a253d84455bfd2e96341a05e144d4b649e844875eb8eaf935',
|
||||
},
|
||||
'comic.s01.c08.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-08/assets/comic/s01-c08/S01-C08-P05-H31-menu-gaps-v1.jpg',
|
||||
remotePath: 'comic/s01-c08/S01-C08-P05-H31-menu-gaps-v1.41da420b4e7b.jpg',
|
||||
sha256: '41da420b4e7b8c585950a998d32a5cb44e6b1fc855dbd7f403c4d786f49bf618',
|
||||
},
|
||||
'comic.s01.c08.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-08/assets/comic/s01-c08/S01-C08-P06-H32-removed-plaque-v1.jpg',
|
||||
remotePath: 'comic/s01-c08/S01-C08-P06-H32-removed-plaque-v1.fb66a9f2234c.jpg',
|
||||
sha256: 'fb66a9f2234c6159678334201138e8236b4dd3f5cbc239cce0ec1e41dcddf111',
|
||||
},
|
||||
'comic.s01.c08.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-08/assets/comic/s01-c08/S01-C08-P07-EM08-back-kitchen-light-v1.jpg',
|
||||
remotePath: 'comic/s01-c08/S01-C08-P07-EM08-back-kitchen-light-v1.6c748cf7c1a6.jpg',
|
||||
sha256: '6c748cf7c1a6ea69a4be5eff221cda903e6a60f30fef95b4d7623b8d74aa54ea',
|
||||
},
|
||||
'comic.s01.c08.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-08/assets/comic/s01-c08/S01-C08-P08-cashbox-phone-cliffhanger-v1.jpg',
|
||||
remotePath: 'comic/s01-c08/S01-C08-P08-cashbox-phone-cliffhanger-v1.2deaee916f92.jpg',
|
||||
sha256: '2deaee916f92a02b7e326770ad0a6ec59410347cd1ea7133cbf61193fd7f4743',
|
||||
},
|
||||
'comic.s01.c09.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-09/assets/comic/s01-c09/S01-C09-P01-opening-memory-v1.jpg',
|
||||
remotePath: 'comic/s01-c09/S01-C09-P01-opening-memory-v1.59db94b9c5dd.jpg',
|
||||
sha256: '59db94b9c5dd52822089ebdb749959c9f2b780e16d5e6acb21cd4deb082efc2f',
|
||||
},
|
||||
'comic.s01.c09.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-09/assets/comic/s01-c09/S01-C09-P02-opening-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c09/S01-C09-P02-opening-ensemble-v1.0584053b2e87.jpg',
|
||||
sha256: '0584053b2e873ed91d448b2b643666e93f1733ef22dd641dfe9cdb4665d49e8d',
|
||||
},
|
||||
'comic.s01.c09.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-09/assets/comic/s01-c09/S01-C09-P03-H33-driver-no-alcohol-v1.jpg',
|
||||
remotePath: 'comic/s01-c09/S01-C09-P03-H33-driver-no-alcohol-v1.9081d9c71e8f.jpg',
|
||||
sha256: '9081d9c71e8f07c687428192cd51bb59b7a7dad9dc4ab630d924a9cd7cbc26af',
|
||||
},
|
||||
'comic.s01.c09.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-09/assets/comic/s01-c09/S01-C09-P04-H34-tea-toast-v1.jpg',
|
||||
remotePath: 'comic/s01-c09/S01-C09-P04-H34-tea-toast-v1.cf00e6434a90.jpg',
|
||||
sha256: 'cf00e6434a902127999662a040917b6807e36e4d20384426e0fb014f8eae33ff',
|
||||
},
|
||||
'comic.s01.c09.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-09/assets/comic/s01-c09/S01-C09-P05-H35-personal-plan-text-supported-v1-ffq2.jpg',
|
||||
remotePath: 'comic/s01-c09/S01-C09-P05-H35-personal-plan-text-supported-v1-ffq2.5de6f5b46666.jpg',
|
||||
sha256: '5de6f5b466664980c159f1c442be226297ea5d2832a4791ed6eda3acb18a085a',
|
||||
},
|
||||
'comic.s01.c09.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-09/assets/comic/s01-c09/S01-C09-P06-H36-stop-and-stay-v1.jpg',
|
||||
remotePath: 'comic/s01-c09/S01-C09-P06-H36-stop-and-stay-v1.5bb10be0addb.jpg',
|
||||
sha256: '5bb10be0addb68102b9b83569596523113c2b6e2053cc14cbe2b082807e55443',
|
||||
},
|
||||
'comic.s01.c09.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-09/assets/comic/s01-c09/S01-C09-P07-EM09-keep-my-seat-v1.jpg',
|
||||
remotePath: 'comic/s01-c09/S01-C09-P07-EM09-keep-my-seat-v1.9f4b4b8b1aa9.jpg',
|
||||
sha256: '9f4b4b8b1aa98844603c0c5539a89196032663d341a444dc9512b9b81c8a6e4f',
|
||||
},
|
||||
'comic.s01.c09.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-09/assets/comic/s01-c09/S01-C09-P08-push-cup-cliffhanger-v1-ffq2.jpg',
|
||||
remotePath: 'comic/s01-c09/S01-C09-P08-push-cup-cliffhanger-v1-ffq2.b3628d1471f2.jpg',
|
||||
sha256: 'b3628d1471f2c227db9a1cd2b1e00c5c92503aa7ef39fc602c054d8edc67e724',
|
||||
},
|
||||
'comic.s01.c10.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-10/assets/comic/s01-c10/S01-C10-P01-one-palm-space-v1.jpg',
|
||||
remotePath: 'comic/s01-c10/S01-C10-P01-one-palm-space-v1.42d2b657a20f.jpg',
|
||||
sha256: '42d2b657a20f5db8e18e80155301c902132c911f57fda32e32752435675ec1d8',
|
||||
},
|
||||
'comic.s01.c10.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-10/assets/comic/s01-c10/S01-C10-P02-opening-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c10/S01-C10-P02-opening-ensemble-v1.30c7fa3f8e9a.jpg',
|
||||
sha256: '30c7fa3f8e9af47a3289049c4e029e9c9888de93cb1a6af2dc5d19c906a3ae55',
|
||||
},
|
||||
'comic.s01.c10.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-10/assets/comic/s01-c10/S01-C10-P03-H37-standing-meal-v1.jpg',
|
||||
remotePath: 'comic/s01-c10/S01-C10-P03-H37-standing-meal-v1.23e14923a5fd.jpg',
|
||||
sha256: '23e14923a5fd3db39424fd764b1d795b2cb88e73293e1534ff2fa493e3ad05b9',
|
||||
},
|
||||
'comic.s01.c10.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-10/assets/comic/s01-c10/S01-C10-P04-H38-open-palm-v3.jpg',
|
||||
remotePath: 'comic/s01-c10/S01-C10-P04-H38-open-palm-v3.be147c9d7c0c.jpg',
|
||||
sha256: 'be147c9d7c0c5bccc7b5ddac206314c2ff96d8d424c27c0d01d87e9497f99cde',
|
||||
},
|
||||
'comic.s01.c10.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-10/assets/comic/s01-c10/S01-C10-P05-H39-phone-and-cold-meal-v1.jpg',
|
||||
remotePath: 'comic/s01-c10/S01-C10-P05-H39-phone-and-cold-meal-v1.a21bec0d89b6.jpg',
|
||||
sha256: 'a21bec0d89b6d5322a7e8ee11679ab89c89f8e4ffc8afbea0387bed5b359e5dd',
|
||||
},
|
||||
'comic.s01.c10.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-10/assets/comic/s01-c10/S01-C10-P06-H40-table-not-usable-v1.jpg',
|
||||
remotePath: 'comic/s01-c10/S01-C10-P06-H40-table-not-usable-v1.6fa3594b0e5a.jpg',
|
||||
sha256: '6fa3594b0e5ac61c432c9ee3d833c0f13bf757437c1cac6700d30826becca446',
|
||||
},
|
||||
'comic.s01.c10.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-10/assets/comic/s01-c10/S01-C10-P07-EM10-put-meal-down-v1.jpg',
|
||||
remotePath: 'comic/s01-c10/S01-C10-P07-EM10-put-meal-down-v1.139439432818.jpg',
|
||||
sha256: '13943943281892dced9132e2454c8e3b914dfda4d905668e5ed1b4d54dc6cb99',
|
||||
},
|
||||
'comic.s01.c10.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-10/assets/comic/s01-c10/S01-C10-P08-plan-line-last-stool-v1.jpg',
|
||||
remotePath: 'comic/s01-c10/S01-C10-P08-plan-line-last-stool-v1.2499342b7c3c.jpg',
|
||||
sha256: '2499342b7c3c92c101c264e59c700217989aa1157e2a95a55520ab968b4ee1a0',
|
||||
},
|
||||
'comic.s01.c11.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-11/assets/comic/s01-c11/S01-C11-P01-pen-above-paper-v1.jpg',
|
||||
remotePath: 'comic/s01-c11/S01-C11-P01-pen-above-paper-v1.840b82256bca.jpg',
|
||||
sha256: '840b82256bca2a83bc655aa86faf0025dbd5fea3a75bd5eec4c32b974f74bb2a',
|
||||
},
|
||||
'comic.s01.c11.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-11/assets/comic/s01-c11/S01-C11-P02-opening-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c11/S01-C11-P02-opening-ensemble-v1.112f4fe7b4f9.jpg',
|
||||
sha256: '112f4fe7b4f90a65e0769cdf78b00e2ede90b2206ca031c1fd0dc8e71bc19ff1',
|
||||
},
|
||||
'comic.s01.c11.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-11/assets/comic/s01-c11/S01-C11-P03-H41-display-and-seat-v1.jpg',
|
||||
remotePath: 'comic/s01-c11/S01-C11-P03-H41-display-and-seat-v1.23ef59f3f23d.jpg',
|
||||
sha256: '23ef59f3f23dbc3de7dcde1fd1994ff4d2321bab5218aa0197f6fae797cf2e51',
|
||||
},
|
||||
'comic.s01.c11.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-11/assets/comic/s01-c11/S01-C11-P04-H42-inspect-old-table-v1.jpg',
|
||||
remotePath: 'comic/s01-c11/S01-C11-P04-H42-inspect-old-table-v1.3e93fafafe75.jpg',
|
||||
sha256: '3e93fafafe758c040aec7a2cd0f21bc1cf71656db593cc0babe65e99c69d0a50',
|
||||
},
|
||||
'comic.s01.c11.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-11/assets/comic/s01-c11/S01-C11-P05-H43-clear-passage-v1.jpg',
|
||||
remotePath: 'comic/s01-c11/S01-C11-P05-H43-clear-passage-v1.c0c8c01f4e37.jpg',
|
||||
sha256: 'c0c8c01f4e376f29ccfbfe8b84094f79d85839afbab1d09d5301740a10311ad5',
|
||||
},
|
||||
'comic.s01.c11.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-11/assets/comic/s01-c11/S01-C11-P06-H44-pen-before-signature-v1.jpg',
|
||||
remotePath: 'comic/s01-c11/S01-C11-P06-H44-pen-before-signature-v1.4a805d19bb22.jpg',
|
||||
sha256: '4a805d19bb229c6f6df349f06fffe9acfebc3176bcf0f3b63de12e328468ca6c',
|
||||
},
|
||||
'comic.s01.c11.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-11/assets/comic/s01-c11/S01-C11-P07-EM11-wrap-and-record-v1.jpg',
|
||||
remotePath: 'comic/s01-c11/S01-C11-P07-EM11-wrap-and-record-v1.9fb66ad32712.jpg',
|
||||
sha256: '9fb66ad32712d5ad9e8ea85e4631e2ecf5bbc7d900a49066095c45579497a79a',
|
||||
},
|
||||
'comic.s01.c11.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-11/assets/comic/s01-c11/S01-C11-P08-can-we-open-now-v1.jpg',
|
||||
remotePath: 'comic/s01-c11/S01-C11-P08-can-we-open-now-v1.b80149fb0407.jpg',
|
||||
sha256: 'b80149fb0407529bf25dcd4188e79bc9d17a25e794b2d8e735b189792090e1de',
|
||||
},
|
||||
'comic.s01.c12.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-12/assets/comic/s01-c12/S01-C12-P01-key-pauses-half-turn-v1.jpg',
|
||||
remotePath: 'comic/s01-c12/S01-C12-P01-key-pauses-half-turn-v1.e7f7138b21bb.jpg',
|
||||
sha256: 'e7f7138b21bb415ff7f3fee4427973d475c5d24bf749bc0ee6bb05d8b06fee0a',
|
||||
},
|
||||
'comic.s01.c12.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-12/assets/comic/s01-c12/S01-C12-P02-modern-table-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c12/S01-C12-P02-modern-table-ensemble-v1.6d2ba8cf6cfe.jpg',
|
||||
sha256: '6d2ba8cf6cfe0212976b65986eda881c893673933d319a9a0579adebbf373602',
|
||||
},
|
||||
'comic.s01.c12.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-12/assets/comic/s01-c12/S01-C12-P03-H45-provenance-chain-v1.jpg',
|
||||
remotePath: 'comic/s01-c12/S01-C12-P03-H45-provenance-chain-v1.c07a27557685.jpg',
|
||||
sha256: 'c07a27557685087e0d7c772f2288d99e6847db42099ae32c72ded6f4003b18e9',
|
||||
},
|
||||
'comic.s01.c12.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-12/assets/comic/s01-c12/S01-C12-P04-H46-real-choice-counter-v1.jpg',
|
||||
remotePath: 'comic/s01-c12/S01-C12-P04-H46-real-choice-counter-v1.1a5c07f21eae.jpg',
|
||||
sha256: '1a5c07f21eaed0cdf76cec99129176cb9f8c0f608e985e5e2bfbe6e38cf1190e',
|
||||
},
|
||||
'comic.s01.c12.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-12/assets/comic/s01-c12/S01-C12-P05-H47-plus-minus-at-family-table-v1.jpg',
|
||||
remotePath: 'comic/s01-c12/S01-C12-P05-H47-plus-minus-at-family-table-v1.695c7ebf0573.jpg',
|
||||
sha256: '695c7ebf057367e728775292c2c483f66b4b7df757e568dfa247bf7a90cdb5f0',
|
||||
},
|
||||
'comic.s01.c12.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-12/assets/comic/s01-c12/S01-C12-P06-H48-card-is-not-a-promise-v1.jpg',
|
||||
remotePath: 'comic/s01-c12/S01-C12-P06-H48-card-is-not-a-promise-v1.9b332e2a0d6d.jpg',
|
||||
sha256: '9b332e2a0d6dcd499963a3ae7184aa02ce752705ba3526da3bee6a6080abed76',
|
||||
},
|
||||
'comic.s01.c12.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-12/assets/comic/s01-c12/S01-C12-P07-EM12-hand-choice-back-v1.jpg',
|
||||
remotePath: 'comic/s01-c12/S01-C12-P07-EM12-hand-choice-back-v1.338240b0bc54.jpg',
|
||||
sha256: '338240b0bc5417c467024398bc891d099a10c76384861a5ab794bdd0fcae8db5',
|
||||
},
|
||||
'comic.s01.c12.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-12/assets/comic/s01-c12/S01-C12-P08-rolled-speech-cliffhanger-v1.jpg',
|
||||
remotePath: 'comic/s01-c12/S01-C12-P08-rolled-speech-cliffhanger-v1.a6aeee055eed.jpg',
|
||||
sha256: 'a6aeee055eed00449f1945a5e6c1f01c9a1b7e63e96224b115bedf23f051cb6f',
|
||||
},
|
||||
'comic.s01.c13.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-13/assets/comic/s01-c13/S01-C13-P01-three-chopsticks-collide-v1.jpg',
|
||||
remotePath: 'comic/s01-c13/S01-C13-P01-three-chopsticks-collide-v1.2184f354e70f.jpg',
|
||||
sha256: '2184f354e70f1255420a8f1da36fdbe9f7b1f7150818a21bdb434ffabf582e7e',
|
||||
},
|
||||
'comic.s01.c13.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-13/assets/comic/s01-c13/S01-C13-P02-opening-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c13/S01-C13-P02-opening-ensemble-v1.a9abf81e15a6.jpg',
|
||||
sha256: 'a9abf81e15a66c0ae9e757e1f690947728a4c17a7a67059c50c4ed72a9f26198',
|
||||
},
|
||||
'comic.s01.c13.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-13/assets/comic/s01-c13/S01-C13-P03-H49-ask-before-serving-v1.jpg',
|
||||
remotePath: 'comic/s01-c13/S01-C13-P03-H49-ask-before-serving-v1.13813c3961f7.jpg',
|
||||
sha256: '13813c3961f74c0b29810f9caab66f0a9b3b24ef15324f82ec30340f2cae4f9b',
|
||||
},
|
||||
'comic.s01.c13.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-13/assets/comic/s01-c13/S01-C13-P04-H50-name-card-leaves-first-v1.jpg',
|
||||
remotePath: 'comic/s01-c13/S01-C13-P04-H50-name-card-leaves-first-v1.d4002bf11c74.jpg',
|
||||
sha256: 'd4002bf11c746f495a13903447afe6b28c2cb13f4c69b32f512f7a4400baa44d',
|
||||
},
|
||||
'comic.s01.c13.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-13/assets/comic/s01-c13/S01-C13-P05-H51-family-double-standard-v1.jpg',
|
||||
remotePath: 'comic/s01-c13/S01-C13-P05-H51-family-double-standard-v1.2c5923ca40e2.jpg',
|
||||
sha256: '2c5923ca40e232135128842308948099bad5e2e8f4ed481c4030b72965329aff',
|
||||
},
|
||||
'comic.s01.c13.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-13/assets/comic/s01-c13/S01-C13-P06-H52-tape-stays-rolled-v1.jpg',
|
||||
remotePath: 'comic/s01-c13/S01-C13-P06-H52-tape-stays-rolled-v1.8ccbb50e6342.jpg',
|
||||
sha256: '8ccbb50e6342c3063c060291583c9960b9b9bbc8fa747308558e88368516173d',
|
||||
},
|
||||
'comic.s01.c13.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-13/assets/comic/s01-c13/S01-C13-P07-EM13-listen-to-child-v1.jpg',
|
||||
remotePath: 'comic/s01-c13/S01-C13-P07-EM13-listen-to-child-v1.edac7d0ccb9f.jpg',
|
||||
sha256: 'edac7d0ccb9f0c1306265a53e6188e900a918558ef379ac9537ca07e0b68d45b',
|
||||
},
|
||||
'comic.s01.c13.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-13/assets/comic/s01-c13/S01-C13-P08-cook-crosses-threshold-v1.jpg',
|
||||
remotePath: 'comic/s01-c13/S01-C13-P08-cook-crosses-threshold-v1.f40996a2f7d0.jpg',
|
||||
sha256: 'f40996a2f7d01d33c6413fa018e049bbbada0a5cc774bbc68a364f2cefa79dcc',
|
||||
},
|
||||
'comic.s01.c14.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-14/assets/comic/s01-c14/S01-C14-P01-lid-opens-old-scent-v1.jpg',
|
||||
remotePath: 'comic/s01-c14/S01-C14-P01-lid-opens-old-scent-v1.6609c450b024.jpg',
|
||||
sha256: '6609c450b0246d0f00cb1358d2deaba7dbe25ef4287e81fcf46eb761a70248f2',
|
||||
},
|
||||
'comic.s01.c14.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-14/assets/comic/s01-c14/S01-C14-P02-responsibility-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c14/S01-C14-P02-responsibility-ensemble-v1.15678b028566.jpg',
|
||||
sha256: '15678b0285667a5ce84e0f486d8c8ee9ffe60ef59a6850dfcadfc0b400febd48',
|
||||
},
|
||||
'comic.s01.c14.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-14/assets/comic/s01-c14/S01-C14-P03-H53-ordinary-soup-no-myth-v1.jpg',
|
||||
remotePath: 'comic/s01-c14/S01-C14-P03-H53-ordinary-soup-no-myth-v1.9d1a6e4c130a.jpg',
|
||||
sha256: '9d1a6e4c130ad9e3873c1c73dfcadd58c216b2cc87f85c3228a2a8d5d448d365',
|
||||
},
|
||||
'comic.s01.c14.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-14/assets/comic/s01-c14/S01-C14-P04-H54-evidence-chain-v1.jpg',
|
||||
remotePath: 'comic/s01-c14/S01-C14-P04-H54-evidence-chain-v1.899c26b37f6a.jpg',
|
||||
sha256: '899c26b37f6a0ff45d13bdad0ef14c2015467f669da5ffbeb712feaf60db256e',
|
||||
},
|
||||
'comic.s01.c14.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-14/assets/comic/s01-c14/S01-C14-P05-H55-doctor-takes-ordinary-seat-v1.jpg',
|
||||
remotePath: 'comic/s01-c14/S01-C14-P05-H55-doctor-takes-ordinary-seat-v1.b87841f55cc9.jpg',
|
||||
sha256: 'b87841f55cc96f46cd199a65098ff2d4e0085da7cecf1b880d7fa073dff03801',
|
||||
},
|
||||
'comic.s01.c14.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-14/assets/comic/s01-c14/S01-C14-P06-H56-tea-stays-in-the-circle-v1.jpg',
|
||||
remotePath: 'comic/s01-c14/S01-C14-P06-H56-tea-stays-in-the-circle-v1.c17546b0c7e9.jpg',
|
||||
sha256: 'c17546b0c7e960ea8cae5fcc2cfd7e5daef907a3ecbc49d4e7823f6cf99ab3bd',
|
||||
},
|
||||
'comic.s01.c14.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-14/assets/comic/s01-c14/S01-C14-P07-EM14-watch-face-down-v1.jpg',
|
||||
remotePath: 'comic/s01-c14/S01-C14-P07-EM14-watch-face-down-v1.d0bcbbb428bc.jpg',
|
||||
sha256: 'd0bcbbb428bc9aeb5c53b0bbff2b3b6bb8b0eb3391a35ee2229e9f825b302b8d',
|
||||
},
|
||||
'comic.s01.c14.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-14/assets/comic/s01-c14/S01-C14-P08-measure-the-empty-place-v1.jpg',
|
||||
remotePath: 'comic/s01-c14/S01-C14-P08-measure-the-empty-place-v1.09f5a22c8a7f.jpg',
|
||||
sha256: '09f5a22c8a7f63deb287191b1758eed82e838b3a0a3bd6f753122a6ed946cf2c',
|
||||
},
|
||||
'comic.s01.c15.p01': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-15/assets/comic/s01-c15/S01-C15-P01-chair-opens-for-late-workers-v1.jpg',
|
||||
remotePath: 'comic/s01-c15/S01-C15-P01-chair-opens-for-late-workers-v1.194fda1fa427.jpg',
|
||||
sha256: '194fda1fa427f25c020af7395caa55fffbc546843c724561402a20f3f2d5b8ab',
|
||||
},
|
||||
'comic.s01.c15.p02': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-15/assets/comic/s01-c15/S01-C15-P02-everyone-makes-room-ensemble-v1.jpg',
|
||||
remotePath: 'comic/s01-c15/S01-C15-P02-everyone-makes-room-ensemble-v1.b0e82af85954.jpg',
|
||||
sha256: 'b0e82af85954a2bd1da0676810fdbd40f3357a756442768332d67768d217fd8b',
|
||||
},
|
||||
'comic.s01.c15.p03': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-15/assets/comic/s01-c15/S01-C15-P03-H57-three-real-portions-v1.jpg',
|
||||
remotePath: 'comic/s01-c15/S01-C15-P03-H57-three-real-portions-v1.b3838eb91bea.jpg',
|
||||
sha256: 'b3838eb91bea2b1f246540996f796265912a5b6dd38abc215646db65c4560173',
|
||||
},
|
||||
'comic.s01.c15.p04': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-15/assets/comic/s01-c15/S01-C15-P04-H58-water-within-reach-v1.jpg',
|
||||
remotePath: 'comic/s01-c15/S01-C15-P04-H58-water-within-reach-v1.2471d7dd78aa.jpg',
|
||||
sha256: '2471d7dd78aaea522d00454592863e36df6402211f25fdc7687f55d7c42383ea',
|
||||
},
|
||||
'comic.s01.c15.p05': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-15/assets/comic/s01-c15/S01-C15-P05-H59-ask-before-serving-v1.jpg',
|
||||
remotePath: 'comic/s01-c15/S01-C15-P05-H59-ask-before-serving-v1.215691878476.jpg',
|
||||
sha256: '21569187847697f005939f8ff56a5144a3c15e06041749b6fbfa44374787540a',
|
||||
},
|
||||
'comic.s01.c15.p06': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-15/assets/comic/s01-c15/S01-C15-P06-H60-check-before-packing-v1.jpg',
|
||||
remotePath: 'comic/s01-c15/S01-C15-P06-H60-check-before-packing-v1.3f1cd9abb08e.jpg',
|
||||
sha256: '3f1cd9abb08e28239b612b77f17cdd533efd976e39e4b4d4010fbd7598dbdf50',
|
||||
},
|
||||
'comic.s01.c15.p07': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-15/assets/comic/s01-c15/S01-C15-P07-EM15-old-bowl-before-choice-v1.jpg',
|
||||
remotePath: 'comic/s01-c15/S01-C15-P07-EM15-old-bowl-before-choice-v1.98a32b939746.jpg',
|
||||
sha256: '98a32b939746dc1fa8c039ecba168f9290007f93527c9e355ee25e6aa7796e98',
|
||||
},
|
||||
'comic.s01.c15.p08': {
|
||||
kind: 'image',
|
||||
localSeed: '/package-chapter-15/assets/comic/s01-c15/S01-C15-P08-people-seated-season-close-v2.jpg',
|
||||
remotePath: 'comic/s01-c15/S01-C15-P08-people-seated-season-close-v2.520d68ce0a72.jpg',
|
||||
sha256: '520d68ce0a7297e431b335d7171d3d4a8acf598c4759ef1502ef945d43e0f113',
|
||||
},
|
||||
'character.female-cook': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/characters/female-cook.jpg',
|
||||
remotePath: 'characters/female-cook.c56420b2c632.jpg',
|
||||
sha256: 'c56420b2c632315aab3a44317b38358f5823424c97f80a1a8e046b0ad7ffec4f',
|
||||
},
|
||||
'character.lele': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/characters/lele.jpg',
|
||||
remotePath: 'characters/lele.807f5232b1e8.jpg',
|
||||
sha256: '807f5232b1e8a855dac0147bbdb203237d586ee00e2234e50ca1f30a107cc168',
|
||||
},
|
||||
'character.lin-xiulan': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/characters/lin-xiulan.jpg',
|
||||
remotePath: 'characters/lin-xiulan.56e84abec4e5.jpg',
|
||||
sha256: '56e84abec4e5bfa7bf1167197d1cf73e7a5cd170bf39dbe1d6123b64b0648361',
|
||||
},
|
||||
'character.qin-xiaoman': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/characters/qin-xiaoman.jpg',
|
||||
remotePath: 'characters/qin-xiaoman.22fa229d5b09.jpg',
|
||||
sha256: '22fa229d5b091943e2ff14a200205bb69081c6bfb467ffdb26685af65c6a2cb5',
|
||||
},
|
||||
'character.qin-zhicheng': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/characters/qin-zhicheng.jpg',
|
||||
remotePath: 'characters/qin-zhicheng.7f4be48ece92.jpg',
|
||||
sha256: '7f4be48ece925311081874279c63c0f5758ace85629e2b28a5f19efac0ac34d2',
|
||||
},
|
||||
'character.tang-mingyuan': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/characters/tang-mingyuan.jpg',
|
||||
remotePath: 'characters/tang-mingyuan.5ca2fa88f885.jpg',
|
||||
sha256: '5ca2fa88f88596f3618147e6679da0c1f7d116c476fec7c424e4ebc70ff5aceb',
|
||||
},
|
||||
'character.tang-shouan': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/characters/tang-shouan.jpg',
|
||||
remotePath: 'characters/tang-shouan.4ed8d25ca911.jpg',
|
||||
sha256: '4ed8d25ca9111f8a6a8597c355ad45c0e9f010c778b4e108d9b9126498f51b89',
|
||||
},
|
||||
'character.xiaozhen': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/characters/xiaozhen.jpg',
|
||||
remotePath: 'characters/xiaozhen.d5e9614f6006.jpg',
|
||||
sha256: 'd5e9614f60061b11914d8bfc70fa5ab18ae9c3a00bcd5e4de85dcb058e5174cb',
|
||||
},
|
||||
'character.zhao-jianguo': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/characters/zhao-jianguo.jpg',
|
||||
remotePath: 'characters/zhao-jianguo.1c393fb68b02.jpg',
|
||||
sha256: '1c393fb68b020b7f27bde617fb663cd943f8e184b1e78d63506cf6821a88c8e0',
|
||||
},
|
||||
'scene.gui-xiang.1978': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/scenes/gui-xiang-1978.jpg',
|
||||
remotePath: 'scenes/gui-xiang-1978.bb21d9342e37.jpg',
|
||||
sha256: 'bb21d9342e370ba3aed9b47555a3b77e1be48674f786aaf0ca753245c978a5d5',
|
||||
},
|
||||
'scene.gui-xiang.1995': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/scenes/gui-xiang-1995.jpg',
|
||||
remotePath: 'scenes/gui-xiang-1995.a9701e2d55ad.jpg',
|
||||
sha256: 'a9701e2d55ad94819becf074072f63e21d6cfbbcfbe58a483ac2e35ee10d206f',
|
||||
},
|
||||
'scene.gui-xiang.1998': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/scenes/gui-xiang-1998.jpg',
|
||||
remotePath: 'scenes/gui-xiang-1998.d4d7bebfd04a.jpg',
|
||||
sha256: 'd4d7bebfd04a8b755ba393699708f8971b525fc29f57b457334f73c525d1be14',
|
||||
},
|
||||
'scene.gui-xiang.2001': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/scenes/gui-xiang-2001.jpg',
|
||||
remotePath: 'scenes/gui-xiang-2001.9143455b349d.jpg',
|
||||
sha256: '9143455b349d990d141c6d971a90c31295ec56665502f3d0c55feee6517cfba8',
|
||||
},
|
||||
'scene.gui-xiang.2003': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/scenes/gui-xiang-2003.jpg',
|
||||
remotePath: 'scenes/gui-xiang-2003.68349c74c916.jpg',
|
||||
sha256: '68349c74c9168d16edb91ad308e3071e70b9a9b9abebb21bca8291df1e1f3431',
|
||||
},
|
||||
'scene.gui-xiang.2008': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/scenes/gui-xiang-2008.jpg',
|
||||
remotePath: 'scenes/gui-xiang-2008.c0fd9418aec2.jpg',
|
||||
sha256: 'c0fd9418aec24f2599d52167f15dbba1b1696295df309a931e125da530bc62f5',
|
||||
},
|
||||
'scene.gui-xiang.2026': {
|
||||
kind: 'image',
|
||||
localSeed: '/assets/scenes/gui-xiang-2026.jpg',
|
||||
remotePath: 'scenes/gui-xiang-2026.55e63e85388e.jpg',
|
||||
sha256: '55e63e85388e3c64d63167aadbfce3d0b62762d55aeb144a02508bd67cb2c6a7',
|
||||
},
|
||||
'audio.cast-audition.v1': {
|
||||
kind: 'audio',
|
||||
reviewStatus: 'audition',
|
||||
localSeed: '',
|
||||
remotePath: 'audio/cast-audition-v1.7129d884f445.mp3',
|
||||
sha256: '7129d884f44542434e131efb86f2f5619bedf188a1d8b21e7d0864131b58dd18',
|
||||
},
|
||||
}
|
||||
|
||||
// Legacy C01 cue-level seeds are retained as immutable backup assets only.
|
||||
// The reader no longer maps them as page narration; C01 uses full-page tracks
|
||||
// through the two package-local audio player pages instead.
|
||||
for (const cueId of [
|
||||
'S01-C01-MS007','S01-C01-MS010',
|
||||
]) {
|
||||
const file = `${cueId}.mp3`
|
||||
const sha256 = {
|
||||
'S01-C01-MS007': '1ebae89180bcfef9d1efd174bc6be466593e59fd43366af50603cc5d2c71dde8', 'S01-C01-MS010': '628e19cea16a617c2600d9321339aaa78da683fd33b9c1fd6482a870702ee597',
|
||||
}[cueId]
|
||||
releaseAssets[`audio.s01.c01.${cueId.toLowerCase()}`] = { kind: 'audio', reviewStatus: 'approved', localSeed: `/package-game/assets/audio/${file}`, remotePath: `audio/${file}.${sha256.slice(0, 12)}.mp3`, sha256 }
|
||||
}
|
||||
|
||||
const audioC02Sha256 = {
|
||||
'S01-C02-MS001': '580bbaa7effcdbd1af308842b79943069d22753d74ca9d27f6bf24e216f07233',
|
||||
'S01-C02-MS002-ATTR': 'aa54f392e8d035d9952cfc8ff127d1bd7069f12e8c6c3a08b9c10da349fb46a8',
|
||||
'S01-C02-MS002': 'ccb9fb8872e49880a5e11105b2c721cddef264fa248120989a61806c99995ffe',
|
||||
'S01-C02-MS003': '3f3fc816f6e79d4ee83ab36cd1c2986c9898254bb097582124c50c529bed169f',
|
||||
'S01-C02-MS004': 'e9099bad6986b0a6f48094fb033305045d1d97813d42d46b131186d43a639f7c',
|
||||
'S01-C02-MS005': '6ac0d1f9bea8f4a3280ccad178cdd1976c8735b7bd63c261385a493fee44d34e',
|
||||
'S01-C02-MS006': '067715e6a3715433d499bfd55cd637a6d1f149e6b78b37588d5675c3429f3e88',
|
||||
'S01-C02-MS007': '7d2c022a7e2a4ccb0bb9690fe7cea6cb677f390255e71a7727e9dc22b0511a8c',
|
||||
'S01-C02-MS008': '288131da5b75ec8257345d0aa1c99c3b5ec534435ca02f7040ebbd5542cf940f',
|
||||
'S01-C02-MS009': '5ad03edbc491459429fcd8098a3c56f86f5d4519eca75a8427bdd5a4a50fcda2',
|
||||
'S01-C02-MS010': 'd371d1db33d9adbc2b0f8f8fbb9b0d15cd81a43cb3585d261d73a122608ce71d',
|
||||
'S01-C02-MS011': '2606be3875e8461b102d0417326c2d8cf44207c5cd6662cda6e75ee50fe0baeb',
|
||||
'S01-C02-MS012': '33dc5837d97a745024e080ab76c11af33d492c707e129338a11b9662c64d5b9a',
|
||||
'S01-C02-MT000': '5085e1471366cd7296a1e5bc170b80a26e24d7dff33d768b11fe3f3b7f56586e',
|
||||
'S01-C02-TE900': 'd57638264944a9bb87a3433006f70eba01b08ba7d3220a50d358bbfc77b6a9c1',
|
||||
}
|
||||
|
||||
const audioC03Sha256 = {
|
||||
'S01-C03-MS001': 'b27feb03e2f5db957fa0e81aa5b9ca3e498620cfd2521fdb70b1252343fb9c43',
|
||||
'S01-C03-MS002-ATTR': 'ea3de72562174a4e1b48480b368401df890b2becf98e3fdadb46e58eb3a771dd',
|
||||
'S01-C03-MS002': 'c108896a42d9ec316c7c1dea41d3855edaf577c85e16efede0b28e10613cf83c',
|
||||
'S01-C03-MS003': 'af5b0743979b0ae87c7e0c7a17b20940eebe75ab9cd1bb6b29ce63afc6039184',
|
||||
'S01-C03-MS004': 'c131d2d80ad17a7e6bad708efc919c6349269d320b20eee2dae3393f906f27da',
|
||||
'S01-C03-MS005-ATTR': '4ad0fd3ea4ef7996a95fce3201ecbb05754ea9af08e87f4a03ab664ccf9c6a6e',
|
||||
'S01-C03-MS005': '46de0ae7e37f855412bda3e441fe3d537bb7979f5db0260508dccfd1b543a442',
|
||||
'S01-C03-MS006': '2ae6d3ae24430162941f5ecdb4d426a4e865e6fab0ee37b1445eca1c71a374f5',
|
||||
'S01-C03-MS007-ATTR': 'f172cf850e6f90e8209b7691d5ecd6af637c6bc4f1cbe25206cbe9e78ebcb0c0',
|
||||
'S01-C03-MS007': '68757f28e84dd17fb85faa19eebc4e1e8d6d39e1d49687621606cb61cb738038',
|
||||
'S01-C03-MS008': 'd9352fc81b3bae1bf49f53a742745f7c7ab418e406b1b5c27d54f5da0e2d62f7',
|
||||
'S01-C03-MS009': '97d9395b869e7faa051a461f0ac927aaf3cf73d9ca9cd27b3d0af200dc1131ed',
|
||||
'S01-C03-MS010': '49467f7ac6584f5a9d1e355d4ca2bce5732dd037b6ff22dbf6e899513ed6e1f0',
|
||||
'S01-C03-MS011': '6d76cac756daae850530e4fc295fffec5593af46009be35064fb7820dd54ea25',
|
||||
'S01-C03-MS013': '8c50a597cc7fd01d93d2fc6c2ba27b85690fcde5ce2eea8323b7587889e2771a',
|
||||
'S01-C03-MS014': '8eb817be47b0d933acc8a587b3226bb42160cb64f02fea9f6bbdcf773fc7dfa0',
|
||||
'S01-C03-MS015': '661905745a5bd542da92d2680ab589d80f3e7d8236401acdb61b81b461f2e6bb',
|
||||
'S01-C03-MT000': '374390a364c06922b44dca48e7ffca51f8775ae0d02bff8548aab3e1ff122a65',
|
||||
'S01-C03-TE900': 'f9d770f2104da0e37d1b479f3e25479e49af4ec84ef51339940aef8d90f63993',
|
||||
}
|
||||
|
||||
// C02/C03 cue files are retained only as rollback/source material. A single
|
||||
// cue is not a complete page track, so these assets must not pass the runtime
|
||||
// audio gate or appear as “试听本页”.
|
||||
for (const [chapterNumber, audioHashes] of Object.entries({ '02': audioC02Sha256, '03': audioC03Sha256 })) {
|
||||
for (const [cueId, sha256] of Object.entries(audioHashes)) {
|
||||
const file = `${cueId}.mp3`
|
||||
releaseAssets[`audio.s01.c${chapterNumber}.${cueId.toLowerCase()}`] = {
|
||||
kind: 'audio',
|
||||
reviewStatus: 'reserved',
|
||||
localSeed: `/package-chapter-${chapterNumber}/assets/audio/${file}`,
|
||||
remotePath: `audio/${cueId}.${sha256.slice(0, 12)}.mp3`,
|
||||
sha256,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
RELEASE_ASSET_MANIFEST_VERSION,
|
||||
releaseAssets,
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* C02-C15 remote full-page audio manifest v1.
|
||||
*
|
||||
* Import contract for a future reviewed batch:
|
||||
*
|
||||
* 'S01-C09-P05': Object.freeze({
|
||||
* pageId: 'S01-C09-P05',
|
||||
* chapterNumber: 9,
|
||||
* pageNumber: 5,
|
||||
* assetId: 'audio.page.s01.c09.p05',
|
||||
* durationSeconds: 42.1,
|
||||
* reviewStatus: 'approved',
|
||||
* })
|
||||
*
|
||||
* The matching releaseAssetManifest entry must independently be an approved,
|
||||
* remote-only, immutable hash-named audio asset. Automated QA, pending human
|
||||
* listening, and missing CDN records must never be relabelled as approved.
|
||||
*/
|
||||
|
||||
const REMOTE_PAGE_AUDIO_MANIFEST_VERSION = 1
|
||||
const REMOTE_PAGE_AUDIO_ID_PATTERN = /^S01-C(0[2-9]|1[0-5])-P(0[1-8])$/
|
||||
const SHA256_PATTERN = /^[a-f0-9]{64}$/
|
||||
|
||||
// Deliberately empty until full-page tracks pass the required human reviews
|
||||
// and their immutable CDN objects are available. This is a release gate, not
|
||||
// a placeholder that the UI may treat as playable.
|
||||
const remotePageAudioPages = Object.freeze({})
|
||||
|
||||
function clean(value) {
|
||||
return typeof value === 'string' ? value.trim() : ''
|
||||
}
|
||||
|
||||
function remotePageAudioAssetId(pageId) {
|
||||
const stablePageId = clean(pageId)
|
||||
const match = REMOTE_PAGE_AUDIO_ID_PATTERN.exec(stablePageId)
|
||||
if (!match) return ''
|
||||
return `audio.page.s01.c${match[1]}.p${match[2]}`
|
||||
}
|
||||
|
||||
function getApprovedRemotePageAudio(
|
||||
pageId,
|
||||
releaseAssets = {},
|
||||
pageManifest = remotePageAudioPages,
|
||||
) {
|
||||
const stablePageId = clean(pageId)
|
||||
const match = REMOTE_PAGE_AUDIO_ID_PATTERN.exec(stablePageId)
|
||||
if (!match) return null
|
||||
|
||||
const entry = pageManifest && pageManifest[stablePageId]
|
||||
if (!entry || typeof entry !== 'object') return null
|
||||
const chapterNumber = Number(match[1])
|
||||
const pageNumber = Number(match[2])
|
||||
const assetId = remotePageAudioAssetId(stablePageId)
|
||||
const durationSeconds = Number(entry.durationSeconds)
|
||||
if (
|
||||
clean(entry.reviewStatus).toLowerCase() !== 'approved'
|
||||
|| entry.pageId !== stablePageId
|
||||
|| Number(entry.chapterNumber) !== chapterNumber
|
||||
|| Number(entry.pageNumber) !== pageNumber
|
||||
|| entry.assetId !== assetId
|
||||
|| !Number.isFinite(durationSeconds)
|
||||
|| durationSeconds <= 0
|
||||
) {
|
||||
return null
|
||||
}
|
||||
|
||||
const asset = releaseAssets && releaseAssets[assetId]
|
||||
const sha256 = asset && typeof asset.sha256 === 'string'
|
||||
? asset.sha256
|
||||
: ''
|
||||
const remotePath = asset && asset.remotePath
|
||||
const expectedRemotePath = (
|
||||
`audio/${stablePageId.slice(0, 7).toLowerCase()}`
|
||||
+ `/${stablePageId}.${sha256.slice(0, 12)}.mp3`
|
||||
)
|
||||
if (
|
||||
!asset
|
||||
|| asset.kind !== 'audio'
|
||||
|| clean(asset.reviewStatus).toLowerCase() !== 'approved'
|
||||
|| asset.localSeed !== ''
|
||||
|| !SHA256_PATTERN.test(sha256)
|
||||
|| typeof remotePath !== 'string'
|
||||
|| remotePath !== expectedRemotePath
|
||||
) {
|
||||
return null
|
||||
}
|
||||
|
||||
return { ...entry, assetId }
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
REMOTE_PAGE_AUDIO_ID_PATTERN,
|
||||
REMOTE_PAGE_AUDIO_MANIFEST_VERSION,
|
||||
getApprovedRemotePageAudio,
|
||||
remotePageAudioAssetId,
|
||||
remotePageAudioPages,
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "唐侦探",
|
||||
"pageOrientation": "landscape",
|
||||
"disableScroll": true
|
||||
}
|
||||
@@ -0,0 +1,932 @@
|
||||
<view
|
||||
wx:if="{{chapter}}"
|
||||
class="chapter-page font-{{fontScale}} {{compactHeight ? 'compact-height' : ''}}"
|
||||
style="{{pageStyle}}"
|
||||
>
|
||||
<view class="comic-topbar {{storyFirstComicMode ? ((chapterOneBackOpen || (chapterOneEmotionOpen && emotionResult) || (decisionOpen && resultMode === 'correct')) ? 'c1-book-topbar is-back' : ('c1-book-topbar is-front ' + (frontControlsRevealed ? 'is-controls-revealed' : 'is-controls-hidden'))) : ''}}" style="{{topbarStyle}}">
|
||||
<block wx:if="{{!storyFirstComicMode || chapterOneBackOpen || (chapterOneEmotionOpen && emotionResult) || (decisionOpen && resultMode === 'correct') || frontControlsRevealed}}">
|
||||
<button class="comic-catalog-button" bindtap="goCatalog" aria-label="返回目录">‹ 目录</button>
|
||||
<button
|
||||
wx:if="{{storyFirstComicMode && !comicPreviousDisabled}}"
|
||||
class="comic-top-previous-button"
|
||||
bindtap="previousComicPage"
|
||||
aria-label="上一张画"
|
||||
>‹</button>
|
||||
<view class="comic-bookmark">
|
||||
<text class="comic-bookmark-label">
|
||||
第{{chapterNumber < 10 ? '0' + chapterNumber : chapterNumber}}回{{compactHeight ? '' : ' · ' + chapter.year}}
|
||||
</text>
|
||||
<text class="comic-page-count">{{currentPageNumber}}/{{comicPageCount}}</text>
|
||||
</view>
|
||||
<button
|
||||
wx:if="{{!storyFirstComicMode && !currentPage.audioAvailable && !currentPage.audioCompanionAvailable}}"
|
||||
class="comic-page-audio-slot is-text-mode {{storyFirstComicMode ? 'c1-audio-slot' : ''}}"
|
||||
bindtap="openTextReading"
|
||||
aria-label="本页可以直接看文字"
|
||||
>
|
||||
<text class="comic-page-audio-icon" aria-hidden="true">阅</text>
|
||||
<view class="comic-page-audio-copy">
|
||||
<text class="comic-page-audio-label">直接看文字</text>
|
||||
<text class="comic-page-audio-meta">按页慢慢看</text>
|
||||
</view>
|
||||
</button>
|
||||
<button
|
||||
wx:elif="{{currentPage.audioAvailable || currentPage.audioCompanionAvailable}}"
|
||||
class="comic-page-audio-slot {{storyFirstComicMode ? 'c1-audio-slot' : ''}} {{audioLoading ? 'is-loading' : audioPlaying ? 'is-playing' : audioPercent > 0 ? 'is-replay' : 'is-ready'}}"
|
||||
disabled="{{audioLoading}}"
|
||||
bindtap="toggleComicPageAudio"
|
||||
data-audio-cue-count="{{currentPage.audioCueCount}}"
|
||||
aria-label="本页语音播放控制"
|
||||
>
|
||||
<text class="comic-page-audio-icon" aria-hidden="true">
|
||||
{{audioPlaying ? 'Ⅱ' : '▶'}}
|
||||
</text>
|
||||
<view class="comic-page-audio-copy">
|
||||
<text wx:if="{{audioLoading}}" class="comic-page-audio-label">准备中</text>
|
||||
<text wx:elif="{{audioPlaying}}" class="comic-page-audio-label">暂停</text>
|
||||
<text wx:elif="{{audioPercent > 0}}" class="comic-page-audio-label">重听</text>
|
||||
<text wx:else class="comic-page-audio-label">听一听</text>
|
||||
<text class="comic-page-audio-meta">
|
||||
{{audioCurrent}} / {{audioDuration === '0:00' ? currentPage.audioDurationLabel : audioDuration}}
|
||||
</text>
|
||||
</view>
|
||||
</button>
|
||||
<button
|
||||
wx:if="{{!storyFirstComicMode || chapterOneBackOpen || (chapterOneEmotionOpen && emotionResult) || (decisionOpen && resultMode === 'correct')}}"
|
||||
class="comic-font-button"
|
||||
bindtap="toggleFont"
|
||||
aria-label="{{fontScale === 'large' ? '把整页文字再放大' : '恢复标准大字'}}"
|
||||
>
|
||||
{{fontScale === 'large' ? '大字' : '标准字'}}
|
||||
</button>
|
||||
<button
|
||||
wx:if="{{storyFirstComicMode && !chapterOneBackOpen && !decisionOpen && !chapterOneEmotionOpen}}"
|
||||
class="c1-front-action-button"
|
||||
bindtap="openCurrentFrontAction"
|
||||
aria-label="{{currentPage.type === 'event'
|
||||
? (currentEventCompleted ? '点一下,再看背面' : '点点人物,翻到背面')
|
||||
: currentPage.type === 'emotion'
|
||||
? (chapterFinished ? '点一下,看看章末' : '点一下,听听心里话')
|
||||
: '点一下,翻到背面'}}"
|
||||
>
|
||||
{{currentPage.type === 'event'
|
||||
? (currentEventCompleted ? '再看背面' : '点点人物')
|
||||
: currentPage.type === 'emotion'
|
||||
? (chapterFinished ? '看看章末' : '听听心里话')
|
||||
: '翻到背面'}}
|
||||
</button>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<view class="comic-reader">
|
||||
<block wx:if="{{storyFirstComicMode}}">
|
||||
<view class="c1-comic-page {{chapterOneBackOpen ? 'is-back' : 'is-front'}}">
|
||||
<block wx:if="{{chapterOneBackOpen}}">
|
||||
<view class="c1-back-paper">
|
||||
<view class="c1-back-evidence">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="c1-back-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<view wx:else class="c1-back-image-fallback">{{currentPage.sceneAlt}}</view>
|
||||
<text class="c1-back-stamp">
|
||||
{{currentPage.type === 'memory' ? '桂香记忆' : currentPage.type === 'event' ? '这回事' : '画背后的事'}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<scroll-view class="c1-back-copy" scroll-y enhanced show-scrollbar="{{true}}">
|
||||
<view wx:if="{{currentPage.type === 'memory'}}" class="c1-back-copy-inner">
|
||||
<text class="c1-back-kicker">第{{chapterNumber < 10 ? '0' + chapterNumber : chapterNumber}}回 · 章末记忆</text>
|
||||
<text class="c1-back-title">{{currentPage.headline}}</text>
|
||||
<text class="c1-back-body">{{currentPage.caption}}</text>
|
||||
<view class="c1-back-callout">
|
||||
<text class="c1-back-label">桌边回声</text>
|
||||
<text>{{currentPage.memoryCard.tableEcho}}</text>
|
||||
</view>
|
||||
<view class="c1-back-action">
|
||||
<text class="c1-back-label">带回生活里</text>
|
||||
<text>{{currentPage.memoryCard.lifeAction}}</text>
|
||||
</view>
|
||||
<text class="c1-back-family">“{{currentPage.memoryCard.familyLine}}”</text>
|
||||
<view class="c1-memory-secondary-actions">
|
||||
<button
|
||||
class="c1-memory-secondary-action"
|
||||
bindtap="openLifeReport"
|
||||
aria-label="查看本回桂香生活观察"
|
||||
>看看生活观察</button>
|
||||
<button
|
||||
class="c1-memory-secondary-action"
|
||||
open-type="share"
|
||||
aria-label="发给家人,一起聊聊这一页"
|
||||
>发给家人聊聊</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:elif="{{currentPage.type === 'event' && currentEventCompleted && chapterOneReviewEvent}}" class="c1-back-copy-inner">
|
||||
<text class="c1-back-kicker">{{currentPage.actorName}} · 刚才看见的</text>
|
||||
<text class="c1-back-title">{{currentPage.headline}}</text>
|
||||
<text class="c1-back-body">{{chapterOneReviewEvent.actionDescription}}</text>
|
||||
<view class="c1-back-callout">
|
||||
<text class="c1-back-label">您刚才瞧见的</text>
|
||||
<text>{{chapterOneReviewEvent.evidence}}</text>
|
||||
</view>
|
||||
<view class="c1-back-action">
|
||||
<text class="c1-back-label">下回遇到这事</text>
|
||||
<text>{{chapterOneReviewEvent.actionAdvice}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:elif="{{currentPage.type === 'event' && chapterOneReviewEvent}}" class="c1-back-copy-inner">
|
||||
<text class="c1-back-kicker">{{currentPage.actorName}} · 这回事</text>
|
||||
<text class="c1-back-title">{{currentPage.headline}}</text>
|
||||
<text class="c1-back-body">{{currentPage.caption}}</text>
|
||||
<view wx:if="{{currentPage.shortDialogue}}" class="c1-back-callout">
|
||||
<text class="c1-back-label">桌边一句话</text>
|
||||
<text>“{{currentPage.shortDialogue}}”</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:else class="c1-back-copy-inner">
|
||||
<text class="c1-back-kicker">{{currentPage.eyebrow || chapter.year + ' · ' + chapter.location}}</text>
|
||||
<text class="c1-back-title">{{currentPage.headline}}</text>
|
||||
<text class="c1-back-body">{{currentPage.displayCaption}}</text>
|
||||
<text wx:if="{{currentPage.secondaryCaption}}" class="c1-back-secondary">{{currentPage.secondaryCaption}}</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<text
|
||||
wx:if="{{currentPage.type === 'memory' || (currentPage.type === 'event' && currentEventCompleted)}}"
|
||||
class="c1-scroll-hint"
|
||||
>上划接着看 ↑</text>
|
||||
|
||||
<view wx:if="{{currentPage.type === 'memory'}}" class="c1-back-footer c1-memory-footer">
|
||||
<button class="c1-back-button secondary" aria-label="回头再看一遍画面" bindtap="closeChapterOneBack">回去看画</button>
|
||||
<button wx:if="{{chapterNumber >= chapterCount}}" class="c1-back-button primary" bindtap="goCatalog">回到目录</button>
|
||||
<button wx:else class="c1-back-button primary" bindtap="nextChapter">翻下一回</button>
|
||||
</view>
|
||||
<view wx:else class="c1-back-footer">
|
||||
<button class="c1-back-button secondary" aria-label="回头再看一遍画面" bindtap="closeChapterOneBack">回去看画</button>
|
||||
<button
|
||||
wx:if="{{currentPage.type === 'event' && !currentEventCompleted}}"
|
||||
class="c1-back-button primary"
|
||||
bindtap="startChapterOneDecisionFromBack"
|
||||
>聊聊这事</button>
|
||||
<button
|
||||
wx:else
|
||||
class="c1-back-button primary"
|
||||
bindtap="nextChapterOnePageFromBack"
|
||||
>翻下一张</button>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block wx:elif="{{currentPage.type === 'emotion' && chapterOneEmotionOpen && emotionResult}}">
|
||||
<view class="c1-back-paper">
|
||||
<view class="c1-back-evidence">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="c1-back-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<view wx:else class="c1-back-image-fallback">{{currentPage.sceneAlt}}</view>
|
||||
<text class="c1-back-stamp">桌边回声</text>
|
||||
</view>
|
||||
<scroll-view class="c1-back-copy" scroll-y enhanced show-scrollbar="{{true}}">
|
||||
<view class="c1-back-copy-inner">
|
||||
<text class="c1-back-kicker">没有标准答案</text>
|
||||
<text class="c1-back-title">{{currentPage.headline}}</text>
|
||||
<text class="c1-back-body">{{emotionResult.feedback}}</text>
|
||||
<view class="c1-back-callout">
|
||||
<text class="c1-back-label">这一桌记住了</text>
|
||||
<text>{{emotionResult.echo}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="c1-back-footer">
|
||||
<button class="c1-back-button secondary" aria-label="回头再看一遍画面" bindtap="closeChapterOneEmotion">回去看画</button>
|
||||
<button class="c1-back-button primary" bindtap="finishChapterOneEmotionAndTurn">收下这句话</button>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block wx:elif="{{currentPage.type === 'emotion' && chapterOneEmotionOpen && !emotionResult}}">
|
||||
<view class="c1-interaction-paper c1-emotion-interaction-paper">
|
||||
<view class="c1-interaction-evidence">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="c1-interaction-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<view wx:else class="c1-back-image-fallback">{{currentPage.sceneAlt}}</view>
|
||||
<text class="c1-back-stamp">桌边一句话</text>
|
||||
</view>
|
||||
<view class="c1-interaction-panel">
|
||||
<button class="c1-tray-close" bindtap="closeChapterOneEmotion" aria-label="收起选择,先回画面">先看画</button>
|
||||
<view class="c1-tray-heading">
|
||||
<text class="c1-tray-kicker">这一刻,您想怎么说?</text>
|
||||
<text class="c1-tray-question">{{currentPage.prompt}}</text>
|
||||
</view>
|
||||
<view class="c1-choice-stack">
|
||||
<button
|
||||
wx:for="{{chapter.emotionMoment.playerChoices}}"
|
||||
wx:key="choiceId"
|
||||
class="c1-natural-choice"
|
||||
data-choice="{{item.choiceId}}"
|
||||
bindtap="chooseEmotion"
|
||||
>{{item.text}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block wx:else>
|
||||
<view class="c1-front-stage">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="c1-front-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
bindload="onComicImageLoad"
|
||||
binderror="onComicImageError"
|
||||
></image>
|
||||
<view wx:else class="c1-front-fallback">
|
||||
<text>{{comicImageError}}</text>
|
||||
<text>{{currentPage.sceneAlt}}</text>
|
||||
</view>
|
||||
<view class="c1-front-grain"></view>
|
||||
|
||||
<button
|
||||
wx:if="{{!frontControlsRevealed}}"
|
||||
class="c1-front-reveal-gate"
|
||||
bindtap="revealCurrentFrontControls"
|
||||
aria-label="轻点画面,显示阅读按钮"
|
||||
></button>
|
||||
|
||||
<block wx:else>
|
||||
<button
|
||||
wx:if="{{frontControlsRevealed && currentInteractionEnabled && currentPage.type === 'event' && !comicImageUsingFallback}}"
|
||||
class="c1-person-hotspot"
|
||||
style="{{currentPage.actorHotspot.style}}"
|
||||
bindtap="openComicActor"
|
||||
aria-label="点点{{currentPage.actorName}},翻到这一幕背面"
|
||||
><view class="c1-hotspot-ring"></view></button>
|
||||
|
||||
<button
|
||||
wx:elif="{{frontControlsRevealed && currentPage.type === 'event' && currentEventCompleted}}"
|
||||
class="c1-full-page-tap"
|
||||
bindtap="openChapterOneBack"
|
||||
aria-label="翻到这一幕的背面"
|
||||
></button>
|
||||
|
||||
<button
|
||||
wx:elif="{{frontControlsRevealed && currentPage.type === 'emotion'}}"
|
||||
class="c1-full-page-tap"
|
||||
bindtap="openChapterOneEmotion"
|
||||
aria-label="{{chapterFinished ? '轻触画面,翻到章末' : '轻触画面,听听这一桌心里话'}}"
|
||||
></button>
|
||||
|
||||
<button
|
||||
wx:else
|
||||
class="c1-full-page-tap"
|
||||
bindtap="openChapterOneBack"
|
||||
aria-label="轻触画面,翻到这一页背面"
|
||||
></button>
|
||||
</block>
|
||||
|
||||
<text wx:if="{{frontHintVisible}}" class="c1-front-first-hint">轻点画面,按钮就出来了</text>
|
||||
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block wx:elif="{{currentPage.type === 'emotion'}}">
|
||||
<view class="comic-special-page emotion-page template-{{currentPage.templateKey}} layout-{{currentPage.layoutVariant}}">
|
||||
<view class="special-art">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="special-art-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
bindload="onComicImageLoad"
|
||||
binderror="onComicImageError"
|
||||
></image>
|
||||
<view wx:else class="special-art-fallback">
|
||||
<text>{{comicImageError}}</text>
|
||||
<text>{{currentPage.sceneAlt}}</text>
|
||||
</view>
|
||||
<view class="comic-paper-grain"></view>
|
||||
</view>
|
||||
<view class="emotion-panel">
|
||||
<scroll-view class="emotion-paper" scroll-y enhanced show-scrollbar="{{true}}">
|
||||
<view class="emotion-context">
|
||||
<text class="emotion-context-kicker">听听这一桌心里话</text>
|
||||
<text class="emotion-context-title">{{currentPage.headline}}</text>
|
||||
<text class="emotion-context-caption">{{currentPage.caption}}</text>
|
||||
</view>
|
||||
<text class="emotion-prompt">{{currentPage.prompt}}</text>
|
||||
<text
|
||||
wx:if="{{!emotionResult && !chapterFinished}}"
|
||||
class="emotion-note"
|
||||
>没有标准答案,选您更愿意说的话。</text>
|
||||
<view wx:if="{{emotionResult || chapterFinished}}" class="comic-emotion-result">
|
||||
<text wx:if="{{emotionResult}}" class="feedback">{{emotionResult.feedback}}</text>
|
||||
<view class="table-echo">
|
||||
<text class="echo-label">桌边回声</text>
|
||||
<text>{{emotionResult ? emotionResult.echo : chapter.emotionMoment.tableEcho}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view
|
||||
wx:if="{{!emotionResult && !chapterFinished}}"
|
||||
class="emotion-choice-dock"
|
||||
>
|
||||
<button
|
||||
wx:for="{{chapter.emotionMoment.playerChoices}}"
|
||||
wx:key="choiceId"
|
||||
class="emotion-choice"
|
||||
data-choice="{{item.choiceId}}"
|
||||
bindtap="chooseEmotion"
|
||||
>
|
||||
<text class="choice-number">{{index + 1}}</text>
|
||||
<text>{{item.text}}</text>
|
||||
</button>
|
||||
</view>
|
||||
<view class="special-page-footer emotion-page-footer {{emotionResult || chapterFinished ? 'has-primary' : 'single-action'}}">
|
||||
<button
|
||||
class="special-page-button secondary {{comicPreviousDisabled ? 'is-disabled' : ''}}"
|
||||
bindtap="previousComicPage"
|
||||
aria-label="返回前一页"
|
||||
aria-disabled="{{comicPreviousDisabled}}"
|
||||
>
|
||||
<text class="comic-control-visible">上页</text>
|
||||
</button>
|
||||
<button
|
||||
wx:if="{{emotionResult || chapterFinished}}"
|
||||
class="special-page-button primary"
|
||||
bindtap="finishComicEmotion"
|
||||
aria-label="{{chapterFinished ? '查看记忆卡' : '收下这一桌的回声'}}"
|
||||
>
|
||||
<text class="comic-control-visible">{{chapterFinished ? '查看记忆卡' : '收下这一桌的回声'}}</text>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block wx:elif="{{currentPage.isSeasonClose}}">
|
||||
<view class="season-close-page template-{{currentPage.templateKey}} layout-{{currentPage.layoutVariant}}">
|
||||
<view class="season-close-body">
|
||||
<view class="season-close-art">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="season-close-main-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
bindload="onComicImageLoad"
|
||||
binderror="onComicImageError"
|
||||
></image>
|
||||
<view wx:else class="season-close-art-fallback">
|
||||
<text>{{comicImageError}}</text>
|
||||
<text>{{currentPage.sceneAlt}}</text>
|
||||
</view>
|
||||
<view
|
||||
wx:if="{{comicImageSrc && !comicImageUsingFallback && currentPage.detailInset}}"
|
||||
class="season-close-detail-inset {{currentPage.detailInset.anchorClass}}"
|
||||
aria-label="{{currentPage.detailInset.label}}近景"
|
||||
>
|
||||
<image
|
||||
class="season-close-detail-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="{{currentPage.detailInset.imageMode}}"
|
||||
style="{{currentPage.detailInset.imageStyle}}"
|
||||
></image>
|
||||
<text class="season-close-detail-label">{{currentPage.detailInset.label}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view
|
||||
class="season-close-copy"
|
||||
scroll-y
|
||||
enhanced
|
||||
show-scrollbar="{{true}}"
|
||||
>
|
||||
<view class="season-close-copy-sheet">
|
||||
<text class="season-close-kicker">第一季 · 季终</text>
|
||||
<text class="season-close-caption">{{currentPage.seasonCloseCaption}}</text>
|
||||
<view class="season-close-memory-card">
|
||||
<text class="season-close-card-label">桂香记忆卡</text>
|
||||
<text class="season-close-era">{{currentPage.memoryCard.eraLine}}</text>
|
||||
<text class="season-close-quote">{{currentPage.memoryCard.tableEcho}}</text>
|
||||
<view class="season-close-life-line">
|
||||
<text class="season-close-line-label">今天可以这样做</text>
|
||||
<text>{{currentPage.memoryCard.lifeAction}}</text>
|
||||
</view>
|
||||
<view class="season-close-family-line">
|
||||
<text class="season-close-line-label">带回家聊一聊</text>
|
||||
<text>“{{currentPage.memoryCard.familyLine}}”</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="season-close-tail">{{currentPage.seasonCloseTail}}</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="memory-actions season-close-actions">
|
||||
<button
|
||||
class="memory-action-cell secondary {{comicPreviousDisabled ? 'is-disabled' : ''}}"
|
||||
bindtap="previousComicPage"
|
||||
aria-label="返回前一页"
|
||||
aria-disabled="{{comicPreviousDisabled}}"
|
||||
>
|
||||
<text class="memory-action-visible">上页</text>
|
||||
</button>
|
||||
<button
|
||||
class="memory-action-cell report"
|
||||
bindtap="openLifeReport"
|
||||
aria-label="查看本回桂香生活观察"
|
||||
>
|
||||
<text class="memory-action-visible">生活观察</text>
|
||||
</button>
|
||||
<button
|
||||
class="memory-action-cell share"
|
||||
open-type="share"
|
||||
aria-label="发给家人,一起聊聊这一页"
|
||||
>
|
||||
<text class="memory-action-visible">发给家人</text>
|
||||
</button>
|
||||
<button
|
||||
class="memory-action-cell primary"
|
||||
bindtap="goCatalog"
|
||||
aria-label="第一季读完,回到目录"
|
||||
>
|
||||
<text class="memory-action-visible">回到目录</text>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block wx:elif="{{currentPage.type === 'memory'}}">
|
||||
<view class="comic-special-page memory-page template-{{currentPage.templateKey}} layout-{{currentPage.layoutVariant}} {{currentPage.pageId === 'S01-C09-P08' ? 'c09-p08' : ''}}">
|
||||
<view class="memory-art">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="memory-art-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
bindload="onComicImageLoad"
|
||||
binderror="onComicImageError"
|
||||
></image>
|
||||
<view wx:else class="special-art-fallback">
|
||||
<text>{{comicImageError}}</text>
|
||||
<text>{{currentPage.sceneAlt}}</text>
|
||||
</view>
|
||||
<view class="comic-paper-grain"></view>
|
||||
</view>
|
||||
<view class="memory-panel">
|
||||
<scroll-view class="memory-paper {{currentPage.pageId === 'S01-C09-P08' ? 'is-complete' : ''}}" scroll-y="{{currentPage.pageId !== 'S01-C09-P08'}}" enhanced show-scrollbar="{{currentPage.pageId !== 'S01-C09-P08'}}">
|
||||
<view class="memory-paper-content">
|
||||
<view class="memory-cliffhanger-copy"><text class="memory-ending-label">下一回的门缝</text><text>{{currentPage.caption}}</text></view>
|
||||
<view class="memory-card-sheet"><text class="memory-stamp">桂香记忆卡</text>
|
||||
<text class="memory-era">{{currentPage.memoryCard.eraLine}}</text><text class="memory-person">{{currentPage.memoryCard.characterName}}</text>
|
||||
<view wx:if="{{currentPage.pageId === 'S01-C09-P08'}}" class="memory-short-lines">
|
||||
<text wx:for="{{currentPage.memoryCard.displayLines}}" wx:key="*this" class="memory-short-line">{{item}}</text>
|
||||
</view>
|
||||
<block wx:else>
|
||||
<text class="memory-quote">{{currentPage.memoryCard.tableEcho}}</text>
|
||||
<view class="memory-action"><text class="memory-label">今天可以这样做</text><text>{{currentPage.memoryCard.lifeAction}}</text></view>
|
||||
<button class="memory-family-toggle" bindtap="toggleMemoryFamily" aria-label="打开带回家聊一聊">
|
||||
{{memoryFamilyOpen ? '收起这一句' : '带回家聊一聊'}}
|
||||
</button>
|
||||
<view wx:if="{{memoryFamilyOpen}}" class="memory-family"><text class="memory-label">带回家聊一聊</text><text>“{{currentPage.memoryCard.familyLine}}”</text></view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="memory-actions">
|
||||
<button
|
||||
class="memory-action-cell secondary {{comicPreviousDisabled ? 'is-disabled' : ''}}"
|
||||
bindtap="previousComicPage"
|
||||
aria-label="返回前一页"
|
||||
aria-disabled="{{comicPreviousDisabled}}"
|
||||
>
|
||||
<text class="memory-action-visible">上页</text>
|
||||
</button>
|
||||
<button
|
||||
class="memory-action-cell report"
|
||||
bindtap="openLifeReport"
|
||||
aria-label="查看本回桂香生活观察"
|
||||
>
|
||||
<text class="memory-action-visible">生活观察</text>
|
||||
</button>
|
||||
<button
|
||||
class="memory-action-cell share"
|
||||
open-type="share"
|
||||
aria-label="发给家人,一起聊聊这一页"
|
||||
>
|
||||
<text class="memory-action-visible">发给家人</text>
|
||||
</button>
|
||||
<button
|
||||
wx:if="{{chapterNumber >= chapterCount}}"
|
||||
class="memory-action-cell primary"
|
||||
bindtap="goCatalog"
|
||||
aria-label="全书读完,回到目录"
|
||||
>
|
||||
<text class="memory-action-visible">回到目录</text>
|
||||
</button>
|
||||
<button
|
||||
wx:else
|
||||
class="memory-action-cell primary"
|
||||
bindtap="nextChapter"
|
||||
aria-label="翻到下一回"
|
||||
>
|
||||
<text class="memory-action-visible">翻到下一回</text>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block wx:else>
|
||||
<view
|
||||
class="comic-normal-page template-{{currentPage.templateKey}} layout-{{currentPage.layoutVariant}}"
|
||||
bindtouchstart="onComicTouchStart"
|
||||
bindtouchend="onComicTouchEnd"
|
||||
>
|
||||
<view class="comic-art-column">
|
||||
<view class="comic-art-stage" style="{{comicArtStageStyle}}">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="comic-art-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="{{comicPageImageMode}}"
|
||||
style="{{comicPageImageStyle}}"
|
||||
bindload="onComicImageLoad"
|
||||
binderror="onComicImageError"
|
||||
></image>
|
||||
<view wx:else class="comic-art-fallback">
|
||||
<text>{{comicImageError}}</text>
|
||||
<text>{{currentPage.sceneAlt}}</text>
|
||||
</view>
|
||||
<view class="comic-paper-grain"></view>
|
||||
<view
|
||||
wx:if="{{currentPage.playableVisual.kind === 'evidence-composite'}}"
|
||||
class="comic-evidence-composite"
|
||||
aria-label="{{currentPage.playableVisual.subject}}的手边证据"
|
||||
>
|
||||
<text class="comic-evidence-kicker">手边证据</text>
|
||||
<text class="comic-evidence-label">{{currentPage.playableVisual.evidenceLabel}}</text>
|
||||
<text class="comic-evidence-detail">{{currentPage.playableVisual.evidenceDetail}}</text>
|
||||
</view>
|
||||
|
||||
<button
|
||||
wx:if="{{currentInteractionEnabled && !comicImageUsingFallback}}"
|
||||
class="comic-actor-hotspot is-quiet"
|
||||
style="{{currentPage.actorHotspot.style}}"
|
||||
bindtap="openComicActor"
|
||||
aria-label="看看{{currentPage.actorName}}的手边,了解这一页发生了什么"
|
||||
></button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="comic-caption-strip {{currentInteractionEnabled && compactHeight ? 'has-outside-actor-guide' : ''}}">
|
||||
<scroll-view class="comic-caption-copy" scroll-y enhanced show-scrollbar="{{false}}">
|
||||
<view wx:if="{{currentPage.type === 'cover'}}" class="comic-cover-caption-layout">
|
||||
<view class="comic-cover-caption-heading">
|
||||
<text class="comic-caption-kicker">{{chapter.year}}</text>
|
||||
<text class="comic-caption-heading">{{currentPage.headline}}</text>
|
||||
</view>
|
||||
<text class="comic-caption comic-cover-caption-text">{{currentPage.displayCaption}}</text>
|
||||
</view>
|
||||
<view wx:elif="{{currentPage.type === 'ensemble'}}" class="comic-ensemble-caption-layout">
|
||||
<text class="comic-caption-heading">{{currentPage.headline}}</text>
|
||||
<view class="comic-ensemble-caption-copy">
|
||||
<text class="comic-caption">{{currentPage.displayCaption}}</text>
|
||||
<text wx:if="{{currentPage.secondaryCaption}}" class="comic-secondary-caption">{{currentPage.secondaryCaption}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:elif="{{currentPage.type === 'event'}}" class="comic-event-caption-layout {{currentEventCompleted ? 'is-completed' : ''}}">
|
||||
<view class="comic-event-caption-copy">
|
||||
<text class="comic-caption">{{currentPage.displayCaption}}</text>
|
||||
<text wx:if="{{currentPage.secondaryCaption}}" class="comic-secondary-caption">{{currentPage.secondaryCaption}}</text>
|
||||
</view>
|
||||
<view class="comic-event-cue">
|
||||
<text
|
||||
wx:if="{{currentInteractionEnabled && !compactHeight && currentPage.artTapHint}}"
|
||||
class="comic-art-tap-note"
|
||||
>再看看{{currentPage.actorName}}的手边</text>
|
||||
<button
|
||||
wx:if="{{currentInteractionEnabled && !compactHeight}}"
|
||||
class="comic-outside-actor-button"
|
||||
bindtap="openComicActor"
|
||||
aria-label="{{currentPage.playableVisual.kind === 'evidence-composite' ? '看看桌上的东西' : (currentPage.playableVisual.kind === 'actor-portrait' ? '看看' + currentPage.actorName + '的手边' : '看看发生了什么')}}"
|
||||
>
|
||||
<text wx:if="{{currentPage.playableVisual.kind === 'evidence-composite'}}">看看桌上的东西</text>
|
||||
<text wx:elif="{{currentPage.artTapHint}}">再看看{{currentPage.actorName}}的手边</text>
|
||||
<text wx:elif="{{currentPage.playableVisual.kind === 'actor-portrait'}}">看看{{currentPage.actorName}}的手边</text>
|
||||
<text wx:else>看看发生了什么</text>
|
||||
</button>
|
||||
<view wx:elif="{{currentEventCompleted}}" class="comic-seen-row">
|
||||
<text class="seen-chip">看见了</text>
|
||||
<text class="comic-tap-prompt is-seen">可以翻到下一页。</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<view
|
||||
wx:if="{{currentInteractionEnabled && compactHeight}}"
|
||||
class="comic-outside-action-dock {{currentPage.artTapHint ? 'has-art-tap-note' : ''}}"
|
||||
>
|
||||
<text
|
||||
wx:if="{{currentPage.artTapHint}}"
|
||||
class="comic-art-tap-note"
|
||||
>再看看{{currentPage.actorName}}的手边</text>
|
||||
<button
|
||||
class="comic-outside-actor-button comic-outside-actor-dock"
|
||||
bindtap="openComicActor"
|
||||
aria-label="{{currentPage.playableVisual.kind === 'evidence-composite' ? '看看桌上的东西' : (currentPage.playableVisual.kind === 'actor-portrait' ? '看看' + currentPage.actorName + '的手边' : '看看发生了什么')}}"
|
||||
>
|
||||
<text wx:if="{{currentPage.playableVisual.kind === 'evidence-composite'}}">看看桌上的东西</text>
|
||||
<text wx:elif="{{currentPage.artTapHint}}">再看看{{currentPage.actorName}}的手边</text>
|
||||
<text wx:elif="{{currentPage.playableVisual.kind === 'actor-portrait'}}">看看{{currentPage.actorName}}的手边</text>
|
||||
<text wx:else>看看发生了什么</text>
|
||||
</button>
|
||||
</view>
|
||||
|
||||
<view class="comic-page-nav">
|
||||
<button
|
||||
class="page-turn-button {{comicPreviousDisabled ? 'is-disabled' : ''}}"
|
||||
bindtap="previousComicPage"
|
||||
aria-label="上一页"
|
||||
aria-disabled="{{comicPreviousDisabled}}"
|
||||
>
|
||||
<text class="comic-control-visible">上页</text>
|
||||
</button>
|
||||
<text wx:if="{{!compactHeight}}" class="folio">{{currentPageNumber}}/{{comicPageCount}}</text>
|
||||
<button
|
||||
class="page-turn-button next {{comicNextLocked ? 'is-locked' : ''}} {{comicNextDisabled ? 'is-disabled' : ''}}"
|
||||
bindtap="nextComicPage"
|
||||
aria-label="{{comicNextLocked ? '先看看这一页的画面' : '下一页'}}"
|
||||
aria-disabled="{{comicNextLocked || comicNextDisabled}}"
|
||||
>
|
||||
<text class="comic-control-visible">
|
||||
{{comicNextLocked ? (currentPage.playableVisual.kind === 'evidence-composite' ? '看看桌上' : '看看画面') : '下页'}}
|
||||
</text>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{textReadingOpen}}" class="dialog-backdrop text-reading-backdrop">
|
||||
<view
|
||||
class="text-reading-dialog paper-panel"
|
||||
aria-role="dialog"
|
||||
aria-label="本页大字文字"
|
||||
>
|
||||
<button
|
||||
class="dialog-close"
|
||||
bindtap="closeTextReading"
|
||||
aria-label="关闭文字阅读"
|
||||
>×</button>
|
||||
<text class="text-reading-kicker">
|
||||
第{{chapterNumber < 10 ? '0' + chapterNumber : chapterNumber}}回 · 第{{currentPageNumber}}页
|
||||
</text>
|
||||
<scroll-view
|
||||
class="text-reading-scroll"
|
||||
scroll-y
|
||||
enhanced
|
||||
show-scrollbar="{{true}}"
|
||||
>
|
||||
<view class="text-reading-sheet">
|
||||
<text wx:if="{{currentPage.headline}}" class="text-reading-title">{{currentPage.headline}}</text>
|
||||
<text wx:if="{{currentPage.displayCaption}}" class="text-reading-body">{{currentPage.displayCaption}}</text>
|
||||
<text wx:elif="{{currentPage.caption}}" class="text-reading-body">{{currentPage.caption}}</text>
|
||||
<text wx:if="{{currentPage.secondaryCaption}}" class="text-reading-secondary">{{currentPage.secondaryCaption}}</text>
|
||||
<view wx:if="{{currentPage.prompt}}" class="text-reading-prompt">
|
||||
<text class="text-reading-label">这一页想和您聊</text>
|
||||
<text>{{currentPage.prompt}}</text>
|
||||
</view>
|
||||
<view wx:if="{{currentPage.question}}" class="text-reading-prompt">
|
||||
<text class="text-reading-label">看看画里发生了什么</text>
|
||||
<text>{{currentPage.question}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<button
|
||||
class="text-reading-return"
|
||||
bindtap="closeTextReading"
|
||||
aria-label="回到连环画"
|
||||
>回到画里</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{decisionOpen && storyFirstComicMode}}" class="c1-decision-layer">
|
||||
<view wx:if="{{resultMode === ''}}" class="c1-interaction-paper">
|
||||
<view class="c1-interaction-evidence">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="c1-interaction-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<view wx:else class="c1-back-image-fallback">{{currentPage.sceneAlt}}</view>
|
||||
<text class="c1-back-stamp">画里的线索</text>
|
||||
</view>
|
||||
<view class="c1-interaction-panel">
|
||||
<button class="c1-tray-close" bindtap="closeDecision" aria-label="收起选择,先回画面">先看画</button>
|
||||
<view class="c1-tray-heading">
|
||||
<text class="c1-tray-kicker">碰上这事,您怎么做?</text>
|
||||
<text class="c1-tray-question">{{activeEvent.question}}</text>
|
||||
</view>
|
||||
<view class="c1-choice-stack">
|
||||
<button
|
||||
wx:for="{{activeEvent.choiceOptions}}"
|
||||
wx:key="value"
|
||||
class="c1-natural-choice"
|
||||
data-value="{{item.value}}"
|
||||
bindtap="answer"
|
||||
>{{item.label}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:elif="{{resultMode === 'retry'}}" class="c1-interaction-paper">
|
||||
<view class="c1-interaction-evidence">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="c1-interaction-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<view wx:else class="c1-back-image-fallback">{{currentPage.sceneAlt}}</view>
|
||||
<text class="c1-back-stamp">再看看画里</text>
|
||||
</view>
|
||||
<view class="c1-interaction-panel c1-retry-panel">
|
||||
<button class="c1-tray-close" bindtap="closeDecision" aria-label="回到画里">先看画</button>
|
||||
<text class="c1-retry-title">别着急,再瞧瞧画里。</text>
|
||||
<text class="c1-retry-copy">{{activeEvent.retryHint}}</text>
|
||||
<button class="c1-retry-button" bindtap="retryAnswer">再看一眼</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:else class="c1-back-paper c1-event-result-back">
|
||||
<view class="c1-back-evidence">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="c1-back-image"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<view wx:else class="c1-back-image-fallback">{{currentPage.sceneAlt}}</view>
|
||||
<text class="c1-back-stamp">这下有眉目了</text>
|
||||
</view>
|
||||
<scroll-view class="c1-back-copy" scroll-y enhanced show-scrollbar="{{true}}">
|
||||
<view class="c1-back-copy-inner">
|
||||
<text class="c1-back-kicker">{{activeEvent.actorName}} · 这一页背面</text>
|
||||
<text class="c1-back-title">{{currentPage.headline}}</text>
|
||||
<text class="c1-back-body">{{activeEvent.actionDescription}}</text>
|
||||
<view wx:if="{{activeEvent.hotspotId === 'S01-H36' && !resultDetailOpen}}" class="c1-back-action">
|
||||
<text class="c1-back-label">先把眼前这一步做好</text>
|
||||
<text>先停酒、移开危险物,并留下人陪伴。</text>
|
||||
</view>
|
||||
<text wx:if="{{activeEvent.hotspotId === 'S01-H36' && !resultDetailOpen}}" class="c1-back-reason">这些表现不能仅凭外观确定原因,先保证安全。</text>
|
||||
<block wx:else>
|
||||
<view class="c1-back-callout">
|
||||
<text class="c1-back-label">您刚才瞧见的</text>
|
||||
<text>{{activeEvent.evidence}}</text>
|
||||
</view>
|
||||
<text class="c1-back-reason">{{activeEvent.reason}}</text>
|
||||
<view class="c1-back-action">
|
||||
<text class="c1-back-label">下回遇到这事</text>
|
||||
<text>{{activeEvent.actionAdvice}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<text class="c1-scroll-hint">上划接着看 ↑</text>
|
||||
<view class="c1-back-footer">
|
||||
<button
|
||||
wx:if="{{!(activeEvent.hotspotId === 'S01-H36' && !resultDetailOpen)}}"
|
||||
class="c1-back-button secondary"
|
||||
aria-label="回头再看一遍画面"
|
||||
bindtap="returnFromChapterOneDecision"
|
||||
>回去看画</button>
|
||||
<button wx:if="{{activeEvent.hotspotId === 'S01-H36' && !resultDetailOpen}}" class="c1-back-button primary" bindtap="openResultDetail">再看不同情况怎么办</button>
|
||||
<button wx:else class="c1-back-button primary" bindtap="nextFromChapterOneDecision">翻下一张</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:elif="{{decisionOpen}}" class="dialog-backdrop">
|
||||
<view
|
||||
class="decision-dialog paper-panel comic-decision"
|
||||
aria-role="dialog"
|
||||
aria-label="{{activeEvent.actorName}}这一幕的互动选择"
|
||||
>
|
||||
<button
|
||||
wx:if="{{!(resultMode === 'correct' && activeEvent.hotspotId === 'S01-H36' && !resultDetailOpen)}}"
|
||||
class="dialog-close"
|
||||
bindtap="closeDecision"
|
||||
aria-label="回到画里"
|
||||
>×</button>
|
||||
|
||||
<scroll-view class="character-story" scroll-y enhanced show-scrollbar="{{true}}">
|
||||
<view class="character-story-inner">
|
||||
<view class="comic-focus-visual">
|
||||
<image
|
||||
wx:if="{{comicImageSrc}}"
|
||||
class="comic-focus-scene"
|
||||
src="{{comicImageSrc}}"
|
||||
mode="aspectFit"
|
||||
style="{{comicFocusImageStyle}}"
|
||||
></image>
|
||||
<view class="comic-focus-shade"></view>
|
||||
<view class="comic-focus-name">
|
||||
<text>{{activePerson.eraLabel}} · 画中人物</text>
|
||||
<text class="focus-name">{{activeEvent.actorName}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<text class="story-label">这一幕发生了什么</text>
|
||||
<text class="action-description">{{activeEvent.actionDescription}}</text>
|
||||
|
||||
<view class="evidence-box">
|
||||
<text class="story-label">手边证据</text>
|
||||
<text>{{activeEvent.evidence}}</text>
|
||||
</view>
|
||||
|
||||
<view class="speech-box">
|
||||
<text class="story-label">桌边说话</text>
|
||||
<text>{{activeEvent.speech}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<view class="judgement-side {{resultMode === '' ? 'is-choice' : 'has-result'}}">
|
||||
<scroll-view
|
||||
class="judgement-scroll"
|
||||
scroll-y
|
||||
enhanced
|
||||
show-scrollbar="{{decisionResultNeedsScroll}}"
|
||||
>
|
||||
<view class="judgement-scroll-inner {{resultMode === '' ? 'is-choice' : 'is-result'}}">
|
||||
<text class="judgement-lead">故事走到这里,您想怎么做?</text>
|
||||
<text wx:if="{{resultMode === ''}}" class="judgement-question">{{activeEvent.question}}</text>
|
||||
|
||||
<view wx:if="{{resultMode === ''}}" class="judgement-options">
|
||||
<button class="judgement-button observe" data-value="caution" bindtap="answer">
|
||||
<text class="judgement-icon">A</text>
|
||||
<view class="judgement-button-copy">
|
||||
<text class="judgement-title">先看看现场细节</text>
|
||||
</view>
|
||||
</button>
|
||||
<button class="judgement-button continue" data-value="safer" bindtap="answer">
|
||||
<text class="judgement-icon">B</text>
|
||||
<view class="judgement-button-copy">
|
||||
<text class="judgement-title">继续按画里的做法</text>
|
||||
</view>
|
||||
</button>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{resultMode === 'retry'}}" class="result-box retry">
|
||||
<text class="result-title">没关系,再看看画里的细节。</text>
|
||||
<text>{{activeEvent.retryHint}}</text>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{resultMode === 'correct'}}" class="result-box correct" aria-live="polite">
|
||||
<text class="result-title">这处线索对上了。</text>
|
||||
<view wx:if="{{activeEvent.hotspotId === 'S01-H36' && !resultDetailOpen}}" class="action-advice">
|
||||
<text class="advice-label">先把眼前这一步做好</text>
|
||||
<text>先停酒、移开危险物,并留下人陪伴。</text>
|
||||
</view>
|
||||
<text wx:if="{{activeEvent.hotspotId === 'S01-H36' && !resultDetailOpen}}" class="reason">这些表现不能仅凭外观确定原因,先保证安全。</text>
|
||||
<view wx:else class="action-advice">
|
||||
<text class="advice-label">现在可以怎么做</text>
|
||||
<text>{{activeEvent.actionAdvice}}</text>
|
||||
</view>
|
||||
<text wx:if="{{activeEvent.hotspotId !== 'S01-H36' || resultDetailOpen}}" class="reason">{{activeEvent.reason}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view wx:if="{{resultMode === 'retry'}}" class="decision-footer">
|
||||
<button class="decision-footer-button retry" bindtap="retryAnswer">再看一眼现场</button>
|
||||
</view>
|
||||
<view wx:if="{{resultMode === 'correct' && activeEvent.hotspotId === 'S01-H36' && !resultDetailOpen}}" class="decision-footer">
|
||||
<button class="decision-footer-button primary" bindtap="openResultDetail">
|
||||
再看不同情况怎么办
|
||||
</button>
|
||||
</view>
|
||||
<view wx:elif="{{resultMode === 'correct'}}" class="decision-footer">
|
||||
<button class="decision-footer-button primary" bindtap="continueAfterDecision">
|
||||
回到画里
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,135 @@
|
||||
const COMIC_READER_LAYOUT_CONTRACT = Object.freeze({
|
||||
contractId: 'story-first-three-frame-v1',
|
||||
columns: Object.freeze({
|
||||
art: 3,
|
||||
content: 2,
|
||||
}),
|
||||
frames: Object.freeze({
|
||||
front: Object.freeze({
|
||||
imageMode: 'aspectFit',
|
||||
initialControls: 'none',
|
||||
revealGesture: 'single-tap',
|
||||
revealedControls: 'topbar-only',
|
||||
}),
|
||||
back: Object.freeze({
|
||||
art: 2,
|
||||
content: 3,
|
||||
imageMode: 'aspectFit',
|
||||
}),
|
||||
interaction: Object.freeze({
|
||||
art: 2,
|
||||
content: 3,
|
||||
imageMode: 'aspectFit',
|
||||
choiceCount: 2,
|
||||
choiceDirection: 'vertical',
|
||||
}),
|
||||
}),
|
||||
minimumControlPx: 48,
|
||||
compactHeightMaxPx: 620,
|
||||
fontModes: Object.freeze({
|
||||
standard: 'large',
|
||||
xlarge: 'xlarge',
|
||||
}),
|
||||
audioSlot: Object.freeze({
|
||||
placement: 'unified-topbar',
|
||||
minimumHeightPx: 48,
|
||||
textModeLabel: '直接看文字',
|
||||
readyLabel: '听一听',
|
||||
playingLabel: '暂停',
|
||||
replayLabel: '重听',
|
||||
usesPageAudioCueIds: true,
|
||||
}),
|
||||
artOverlayPolicy: Object.freeze({
|
||||
event: 'transparent-actor-hotspot-only',
|
||||
emotion: 'transparent-actor-hotspot-only',
|
||||
}),
|
||||
})
|
||||
|
||||
const COMIC_PAGE_TEMPLATE_BY_TYPE = Object.freeze({
|
||||
cover: 'chapter-ensemble',
|
||||
ensemble: 'chapter-ensemble',
|
||||
event: 'actor-event',
|
||||
emotion: 'emotion-interaction',
|
||||
memory: 'memory-cliffhanger',
|
||||
})
|
||||
|
||||
const COMIC_PRESENTATION_BY_CHAPTER = Object.freeze({
|
||||
'S01-C01': 'front-back-comic-v1',
|
||||
'S01-C02': 'front-back-comic-v1',
|
||||
'S01-C03': 'front-back-comic-v1',
|
||||
'S01-C04': 'front-back-comic-v1',
|
||||
'S01-C05': 'front-back-comic-v1',
|
||||
'S01-C06': 'front-back-comic-v1',
|
||||
'S01-C07': 'front-back-comic-v1',
|
||||
'S01-C08': 'front-back-comic-v1',
|
||||
'S01-C09': 'front-back-comic-v1',
|
||||
'S01-C10': 'front-back-comic-v1',
|
||||
'S01-C11': 'front-back-comic-v1',
|
||||
'S01-C12': 'front-back-comic-v1',
|
||||
'S01-C13': 'front-back-comic-v1',
|
||||
'S01-C14': 'front-back-comic-v1',
|
||||
'S01-C15': 'front-back-comic-v1',
|
||||
})
|
||||
|
||||
function getComicPresentationMode(chapterId) {
|
||||
return COMIC_PRESENTATION_BY_CHAPTER[String(chapterId || '')]
|
||||
|| 'legacy-60-40-v1'
|
||||
}
|
||||
|
||||
const COMIC_PAGE_LAYOUT_EXCEPTIONS = Object.freeze({
|
||||
'S01-C09-P03': Object.freeze({
|
||||
layoutVariant: 'standard-landscape-60-40',
|
||||
behavior: 'key-safe-actor-hotspot',
|
||||
actorHotspot: Object.freeze({ x: 16, y: 3, w: 56, h: 82 }),
|
||||
reason: '人物仍可整片点击,但透明热区须止于画面下方钥匙带之前。',
|
||||
}),
|
||||
})
|
||||
|
||||
// These pages keep the full reviewed frame and add one read-only crop from
|
||||
// the same asset as a second comic panel. This is an art-reading aid, not a
|
||||
// new interaction or a page-layout exception.
|
||||
const COMIC_FIXED_DETAIL_INSET_PAGE_IDS = Object.freeze([
|
||||
'S01-C04-P04',
|
||||
'S01-C09-P01',
|
||||
'S01-C09-P05',
|
||||
'S01-C09-P06',
|
||||
'S01-C10-P07',
|
||||
'S01-C13-P04',
|
||||
'S01-C15-P05',
|
||||
'S01-C15-P08',
|
||||
])
|
||||
|
||||
function allowsFixedDetailInset(pageId) {
|
||||
return COMIC_FIXED_DETAIL_INSET_PAGE_IDS.indexOf(
|
||||
String(pageId || ''),
|
||||
) >= 0
|
||||
}
|
||||
|
||||
function getComicPageLayoutException(pageId) {
|
||||
return COMIC_PAGE_LAYOUT_EXCEPTIONS[String(pageId || '')] || null
|
||||
}
|
||||
|
||||
function resolveComicPageLayout(pageId, type) {
|
||||
const templateKey = COMIC_PAGE_TEMPLATE_BY_TYPE[type] || 'chapter-ensemble'
|
||||
const exception = getComicPageLayoutException(pageId)
|
||||
return {
|
||||
templateKey,
|
||||
layoutVariant: exception
|
||||
? exception.layoutVariant
|
||||
: 'standard-landscape-60-40',
|
||||
layoutExceptionId: exception ? String(pageId) : '',
|
||||
layoutExceptionBehavior: exception ? exception.behavior : '',
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
COMIC_READER_LAYOUT_CONTRACT,
|
||||
COMIC_PRESENTATION_BY_CHAPTER,
|
||||
COMIC_PAGE_TEMPLATE_BY_TYPE,
|
||||
COMIC_PAGE_LAYOUT_EXCEPTIONS,
|
||||
COMIC_FIXED_DETAIL_INSET_PAGE_IDS,
|
||||
allowsFixedDetailInset,
|
||||
getComicPresentationMode,
|
||||
getComicPageLayoutException,
|
||||
resolveComicPageLayout,
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,674 @@
|
||||
const CACHE_INDEX_VERSION = 2
|
||||
const CACHE_FOLDER = 'tang-detective-assets-v2'
|
||||
const CACHE_INDEX_FILE = 'index.json'
|
||||
const DEFAULT_IMAGE_BUDGET = 28 * 1024 * 1024
|
||||
const DEFAULT_AUDIO_BUDGET = 32 * 1024 * 1024
|
||||
const DEFAULT_AUDIO_MAX_ENTRIES = 32
|
||||
|
||||
const SHA256_ROUND_CONSTANTS = [
|
||||
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
|
||||
0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
|
||||
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
|
||||
0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
|
||||
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
|
||||
0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
|
||||
0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
|
||||
0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
|
||||
0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
|
||||
0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
|
||||
0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
|
||||
0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
|
||||
0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
|
||||
0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
|
||||
0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
|
||||
0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2,
|
||||
]
|
||||
|
||||
function utf8Bytes(value) {
|
||||
const encoded = encodeURIComponent(String(value || ''))
|
||||
const bytes = []
|
||||
for (let index = 0; index < encoded.length; index += 1) {
|
||||
if (encoded[index] === '%') {
|
||||
bytes.push(parseInt(encoded.slice(index + 1, index + 3), 16))
|
||||
index += 2
|
||||
} else {
|
||||
bytes.push(encoded.charCodeAt(index))
|
||||
}
|
||||
}
|
||||
return new Uint8Array(bytes)
|
||||
}
|
||||
|
||||
function toBytes(value) {
|
||||
if (typeof value === 'string') return utf8Bytes(value)
|
||||
if (value instanceof ArrayBuffer) return new Uint8Array(value)
|
||||
if (ArrayBuffer.isView(value)) {
|
||||
return new Uint8Array(value.buffer, value.byteOffset, value.byteLength)
|
||||
}
|
||||
throw new Error('unsupported SHA-256 input')
|
||||
}
|
||||
|
||||
function rotateRight(value, bits) {
|
||||
return (value >>> bits) | (value << (32 - bits))
|
||||
}
|
||||
|
||||
function sha256Hex(value) {
|
||||
const bytes = toBytes(value)
|
||||
const paddedLength = Math.ceil((bytes.length + 9) / 64) * 64
|
||||
const message = new Uint8Array(paddedLength)
|
||||
message.set(bytes)
|
||||
message[bytes.length] = 0x80
|
||||
const bitLength = bytes.length * 8
|
||||
const highBits = Math.floor(bitLength / 0x100000000)
|
||||
const lowBits = bitLength >>> 0
|
||||
const lengthOffset = paddedLength - 8
|
||||
message[lengthOffset] = (highBits >>> 24) & 0xff
|
||||
message[lengthOffset + 1] = (highBits >>> 16) & 0xff
|
||||
message[lengthOffset + 2] = (highBits >>> 8) & 0xff
|
||||
message[lengthOffset + 3] = highBits & 0xff
|
||||
message[lengthOffset + 4] = (lowBits >>> 24) & 0xff
|
||||
message[lengthOffset + 5] = (lowBits >>> 16) & 0xff
|
||||
message[lengthOffset + 6] = (lowBits >>> 8) & 0xff
|
||||
message[lengthOffset + 7] = lowBits & 0xff
|
||||
|
||||
const hash = [
|
||||
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,
|
||||
0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,
|
||||
]
|
||||
const words = new Uint32Array(64)
|
||||
for (let offset = 0; offset < paddedLength; offset += 64) {
|
||||
for (let index = 0; index < 16; index += 1) {
|
||||
const start = offset + index * 4
|
||||
words[index] = (
|
||||
(message[start] << 24)
|
||||
| (message[start + 1] << 16)
|
||||
| (message[start + 2] << 8)
|
||||
| message[start + 3]
|
||||
) >>> 0
|
||||
}
|
||||
for (let index = 16; index < 64; index += 1) {
|
||||
const word15 = words[index - 15]
|
||||
const word2 = words[index - 2]
|
||||
const sigma0 = (
|
||||
rotateRight(word15, 7)
|
||||
^ rotateRight(word15, 18)
|
||||
^ (word15 >>> 3)
|
||||
)
|
||||
const sigma1 = (
|
||||
rotateRight(word2, 17)
|
||||
^ rotateRight(word2, 19)
|
||||
^ (word2 >>> 10)
|
||||
)
|
||||
words[index] = (
|
||||
words[index - 16]
|
||||
+ sigma0
|
||||
+ words[index - 7]
|
||||
+ sigma1
|
||||
) >>> 0
|
||||
}
|
||||
|
||||
let a = hash[0]
|
||||
let b = hash[1]
|
||||
let c = hash[2]
|
||||
let d = hash[3]
|
||||
let e = hash[4]
|
||||
let f = hash[5]
|
||||
let g = hash[6]
|
||||
let h = hash[7]
|
||||
for (let index = 0; index < 64; index += 1) {
|
||||
const sum1 = rotateRight(e, 6) ^ rotateRight(e, 11) ^ rotateRight(e, 25)
|
||||
const choice = (e & f) ^ (~e & g)
|
||||
const temp1 = (
|
||||
h + sum1 + choice + SHA256_ROUND_CONSTANTS[index] + words[index]
|
||||
) >>> 0
|
||||
const sum0 = rotateRight(a, 2) ^ rotateRight(a, 13) ^ rotateRight(a, 22)
|
||||
const majority = (a & b) ^ (a & c) ^ (b & c)
|
||||
const temp2 = (sum0 + majority) >>> 0
|
||||
h = g
|
||||
g = f
|
||||
f = e
|
||||
e = (d + temp1) >>> 0
|
||||
d = c
|
||||
c = b
|
||||
b = a
|
||||
a = (temp1 + temp2) >>> 0
|
||||
}
|
||||
hash[0] = (hash[0] + a) >>> 0
|
||||
hash[1] = (hash[1] + b) >>> 0
|
||||
hash[2] = (hash[2] + c) >>> 0
|
||||
hash[3] = (hash[3] + d) >>> 0
|
||||
hash[4] = (hash[4] + e) >>> 0
|
||||
hash[5] = (hash[5] + f) >>> 0
|
||||
hash[6] = (hash[6] + g) >>> 0
|
||||
hash[7] = (hash[7] + h) >>> 0
|
||||
}
|
||||
return hash.map((word) => word.toString(16).padStart(8, '0')).join('')
|
||||
}
|
||||
|
||||
function constantTimeEqualHex(left, right) {
|
||||
const leftValue = String(left || '').toLowerCase()
|
||||
const rightValue = String(right || '').toLowerCase()
|
||||
const length = Math.max(leftValue.length, rightValue.length)
|
||||
let difference = leftValue.length ^ rightValue.length
|
||||
for (let index = 0; index < length; index += 1) {
|
||||
const leftCode = index < leftValue.length ? leftValue.charCodeAt(index) : 0
|
||||
const rightCode = index < rightValue.length ? rightValue.charCodeAt(index) : 0
|
||||
difference |= leftCode ^ rightCode
|
||||
}
|
||||
return difference === 0
|
||||
}
|
||||
|
||||
function trimSlash(value) {
|
||||
return String(value || '').replace(/\/+$/, '')
|
||||
}
|
||||
|
||||
function joinPath(left, right) {
|
||||
return `${trimSlash(left)}/${String(right || '').replace(/^\/+/, '')}`
|
||||
}
|
||||
|
||||
function normalizeIndex(value) {
|
||||
if (
|
||||
!value
|
||||
|| value.version !== CACHE_INDEX_VERSION
|
||||
|| !value.entries
|
||||
|| typeof value.entries !== 'object'
|
||||
) {
|
||||
return {
|
||||
version: CACHE_INDEX_VERSION,
|
||||
entries: {},
|
||||
}
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
function callFs(fs, method, options) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!fs || typeof fs[method] !== 'function') {
|
||||
reject(new Error(`fs.${method} unavailable`))
|
||||
return
|
||||
}
|
||||
fs[method]({
|
||||
...options,
|
||||
success: resolve,
|
||||
fail: reject,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function createAssetPlatformFacade() {
|
||||
if (typeof wx === 'undefined') return null
|
||||
const env = Object.freeze({
|
||||
USER_DATA_PATH: String(
|
||||
wx.env && wx.env.USER_DATA_PATH || '',
|
||||
),
|
||||
})
|
||||
return Object.freeze({
|
||||
downloadFile(options) {
|
||||
if (typeof wx.downloadFile !== 'function') {
|
||||
if (options && typeof options.fail === 'function') {
|
||||
options.fail(new Error('wx.downloadFile unavailable'))
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
return wx.downloadFile(options)
|
||||
},
|
||||
getFileSystemManager() {
|
||||
if (typeof wx.getFileSystemManager !== 'function') return null
|
||||
return wx.getFileSystemManager()
|
||||
},
|
||||
env,
|
||||
})
|
||||
}
|
||||
|
||||
function download(assetPlatform, url) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!assetPlatform || typeof assetPlatform.downloadFile !== 'function') {
|
||||
reject(new Error('wx.downloadFile unavailable'))
|
||||
return
|
||||
}
|
||||
assetPlatform.downloadFile({
|
||||
url,
|
||||
success(result) {
|
||||
if (
|
||||
result
|
||||
&& result.statusCode >= 200
|
||||
&& result.statusCode < 300
|
||||
&& result.tempFilePath
|
||||
) {
|
||||
resolve(result)
|
||||
return
|
||||
}
|
||||
reject(new Error(`download status ${result && result.statusCode}`))
|
||||
},
|
||||
fail: reject,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function safeCacheName(assetId, asset) {
|
||||
const extensionMatch = String(asset.remotePath || '').match(/(\.[a-z0-9]+)$/i)
|
||||
const extension = extensionMatch ? extensionMatch[1].toLowerCase() : '.bin'
|
||||
const safeId = assetId.replace(/[^a-z0-9._-]/gi, '_')
|
||||
return `${safeId}.${asset.sha256.slice(0, 12)}${extension}`
|
||||
}
|
||||
|
||||
function createAssetManager(options = {}) {
|
||||
const assetPlatform = options.assetPlatform || createAssetPlatformFacade()
|
||||
const manifest = options.manifest || {}
|
||||
const cdnBaseUrl = trimSlash(options.cdnBaseUrl)
|
||||
const imageBudgetBytes = Number.isFinite(options.imageCacheBudgetBytes)
|
||||
? Math.max(0, options.imageCacheBudgetBytes)
|
||||
: DEFAULT_IMAGE_BUDGET
|
||||
const audioBudgetBytes = Number.isFinite(options.audioCacheBudgetBytes)
|
||||
? Math.max(0, options.audioCacheBudgetBytes)
|
||||
: DEFAULT_AUDIO_BUDGET
|
||||
const audioMaxEntries = Number.isFinite(options.audioCacheMaxEntries)
|
||||
? Math.max(0, Math.floor(options.audioCacheMaxEntries))
|
||||
: DEFAULT_AUDIO_MAX_ENTRIES
|
||||
const downloadConcurrency = Number.isFinite(options.downloadConcurrency)
|
||||
? Math.max(1, Math.floor(options.downloadConcurrency))
|
||||
: 2
|
||||
const now = typeof options.now === 'function' ? options.now : Date.now
|
||||
const fs = assetPlatform
|
||||
&& typeof assetPlatform.getFileSystemManager === 'function'
|
||||
? assetPlatform.getFileSystemManager()
|
||||
: null
|
||||
const userDataPath = (
|
||||
assetPlatform
|
||||
&& assetPlatform.env
|
||||
&& assetPlatform.env.USER_DATA_PATH
|
||||
) || ''
|
||||
const cacheRoot = userDataPath ? joinPath(userDataPath, CACHE_FOLDER) : ''
|
||||
const indexPath = cacheRoot ? joinPath(cacheRoot, CACHE_INDEX_FILE) : ''
|
||||
|
||||
let initialized = false
|
||||
let index = normalizeIndex(null)
|
||||
let activeDownloads = 0
|
||||
const inflight = new Map()
|
||||
const downloadWaiters = []
|
||||
|
||||
function fallback(assetId, reason) {
|
||||
return {
|
||||
assetId,
|
||||
available: false,
|
||||
uri: '',
|
||||
source: 'text-fallback',
|
||||
reason,
|
||||
}
|
||||
}
|
||||
|
||||
async function ensureCacheFolder() {
|
||||
if (!cacheRoot) return false
|
||||
try {
|
||||
await callFs(fs, 'mkdir', {
|
||||
dirPath: cacheRoot,
|
||||
recursive: true,
|
||||
})
|
||||
} catch (error) {
|
||||
// EEXIST and older base-library mkdir failures are both safe to ignore.
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
async function persistIndex() {
|
||||
if (!indexPath) return
|
||||
try {
|
||||
await ensureCacheFolder()
|
||||
await callFs(fs, 'writeFile', {
|
||||
filePath: indexPath,
|
||||
data: JSON.stringify(index),
|
||||
encoding: 'utf8',
|
||||
})
|
||||
} catch (error) {
|
||||
// Cache metadata must never block the text-first game.
|
||||
}
|
||||
}
|
||||
|
||||
async function fileExists(filePath) {
|
||||
if (!filePath) return false
|
||||
try {
|
||||
await callFs(fs, 'access', { path: filePath })
|
||||
return true
|
||||
} catch (error) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
async function fileMatchesSha256(filePath, expectedSha256) {
|
||||
try {
|
||||
const result = await callFs(fs, 'readFile', { filePath })
|
||||
return constantTimeEqualHex(
|
||||
sha256Hex(result.data),
|
||||
expectedSha256,
|
||||
)
|
||||
} catch (error) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
async function init() {
|
||||
if (initialized) return
|
||||
initialized = true
|
||||
if (!indexPath) return
|
||||
try {
|
||||
const result = await callFs(fs, 'readFile', {
|
||||
filePath: indexPath,
|
||||
encoding: 'utf8',
|
||||
})
|
||||
index = normalizeIndex(JSON.parse(result.data))
|
||||
} catch (error) {
|
||||
index = normalizeIndex(null)
|
||||
}
|
||||
|
||||
let changed = false
|
||||
for (const [assetId, entry] of Object.entries(index.entries)) {
|
||||
if (!manifest[assetId] || !(await fileExists(entry.filePath))) {
|
||||
delete index.entries[assetId]
|
||||
changed = true
|
||||
}
|
||||
}
|
||||
if (changed) await persistIndex()
|
||||
await enforceImageBudget()
|
||||
await enforceAudioBudget()
|
||||
}
|
||||
|
||||
function cacheBytes(kind) {
|
||||
return Object.values(index.entries).reduce(
|
||||
(total, entry) => (
|
||||
entry.kind === kind
|
||||
? total + Math.max(0, Number(entry.size) || 0)
|
||||
: total
|
||||
),
|
||||
0,
|
||||
)
|
||||
}
|
||||
|
||||
function cacheEntries(kind) {
|
||||
return Object.values(index.entries)
|
||||
.filter((entry) => entry.kind === kind)
|
||||
.length
|
||||
}
|
||||
|
||||
function imageCacheBytes() {
|
||||
return cacheBytes('image')
|
||||
}
|
||||
|
||||
function audioCacheBytes() {
|
||||
return cacheBytes('audio')
|
||||
}
|
||||
|
||||
async function unlinkQuietly(filePath) {
|
||||
try {
|
||||
await callFs(fs, 'unlink', { filePath })
|
||||
} catch (error) {
|
||||
// A missing cache file is already evicted.
|
||||
}
|
||||
}
|
||||
|
||||
async function enforceImageBudget(protectedAssetId = '') {
|
||||
let total = imageCacheBytes()
|
||||
if (total <= imageBudgetBytes) return
|
||||
|
||||
const candidates = Object.entries(index.entries)
|
||||
.filter(([assetId, entry]) => (
|
||||
entry.kind === 'image' && assetId !== protectedAssetId
|
||||
))
|
||||
.sort((left, right) => (
|
||||
(Number(left[1].lastAccessedAt) || 0)
|
||||
- (Number(right[1].lastAccessedAt) || 0)
|
||||
))
|
||||
|
||||
for (const [assetId, entry] of candidates) {
|
||||
if (total <= imageBudgetBytes) break
|
||||
await unlinkQuietly(entry.filePath)
|
||||
total -= Math.max(0, Number(entry.size) || 0)
|
||||
delete index.entries[assetId]
|
||||
}
|
||||
await persistIndex()
|
||||
}
|
||||
|
||||
async function enforceAudioBudget(protectedAssetId = '') {
|
||||
let total = audioCacheBytes()
|
||||
let entries = cacheEntries('audio')
|
||||
if (total <= audioBudgetBytes && entries <= audioMaxEntries) return
|
||||
|
||||
const candidates = Object.entries(index.entries)
|
||||
.filter(([assetId, entry]) => (
|
||||
entry.kind === 'audio' && assetId !== protectedAssetId
|
||||
))
|
||||
.sort((left, right) => (
|
||||
(Number(left[1].lastAccessedAt) || 0)
|
||||
- (Number(right[1].lastAccessedAt) || 0)
|
||||
))
|
||||
|
||||
for (const [assetId, entry] of candidates) {
|
||||
if (total <= audioBudgetBytes && entries <= audioMaxEntries) break
|
||||
await unlinkQuietly(entry.filePath)
|
||||
total -= Math.max(0, Number(entry.size) || 0)
|
||||
entries -= 1
|
||||
delete index.entries[assetId]
|
||||
}
|
||||
await persistIndex()
|
||||
}
|
||||
|
||||
async function resolveCached(assetId, asset) {
|
||||
const entry = index.entries[assetId]
|
||||
if (!entry || entry.sha256 !== asset.sha256) return null
|
||||
if (!(await fileExists(entry.filePath))) {
|
||||
delete index.entries[assetId]
|
||||
await persistIndex()
|
||||
return null
|
||||
}
|
||||
if (!(await fileMatchesSha256(entry.filePath, asset.sha256))) {
|
||||
await unlinkQuietly(entry.filePath)
|
||||
delete index.entries[assetId]
|
||||
await persistIndex()
|
||||
return fallback(assetId, 'remote-integrity-failed')
|
||||
}
|
||||
entry.lastAccessedAt = now()
|
||||
await persistIndex()
|
||||
return {
|
||||
assetId,
|
||||
available: true,
|
||||
uri: entry.filePath,
|
||||
source: 'cache',
|
||||
kind: asset.kind,
|
||||
}
|
||||
}
|
||||
|
||||
async function getTempFileSize(tempFilePath, response) {
|
||||
if (Number.isFinite(response.fileSize)) return response.fileSize
|
||||
try {
|
||||
const statResult = await callFs(fs, 'stat', {
|
||||
path: tempFilePath,
|
||||
})
|
||||
const stat = statResult && statResult.stats
|
||||
return Math.max(0, Number(stat && stat.size) || 0)
|
||||
} catch (error) {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
async function fetchRemote(assetId, asset) {
|
||||
if (!cdnBaseUrl || !asset.remotePath) {
|
||||
return fallback(assetId, 'remote-disabled')
|
||||
}
|
||||
|
||||
const response = await new Promise((resolve, reject) => {
|
||||
const run = () => {
|
||||
activeDownloads += 1
|
||||
download(assetPlatform, joinPath(cdnBaseUrl, asset.remotePath))
|
||||
.then(resolve, reject)
|
||||
.finally(() => {
|
||||
activeDownloads -= 1
|
||||
const next = downloadWaiters.shift()
|
||||
if (next) next()
|
||||
})
|
||||
}
|
||||
if (activeDownloads < downloadConcurrency) run()
|
||||
else downloadWaiters.push(run)
|
||||
})
|
||||
if (!(await fileMatchesSha256(response.tempFilePath, asset.sha256))) {
|
||||
await unlinkQuietly(response.tempFilePath)
|
||||
return fallback(assetId, 'remote-integrity-failed')
|
||||
}
|
||||
const size = await getTempFileSize(response.tempFilePath, response)
|
||||
|
||||
const exceedsCachePolicy = (
|
||||
(asset.kind === 'image' && size > imageBudgetBytes)
|
||||
|| (
|
||||
asset.kind === 'audio'
|
||||
&& (size > audioBudgetBytes || audioMaxEntries < 1)
|
||||
)
|
||||
)
|
||||
if (!cacheRoot || exceedsCachePolicy) {
|
||||
return {
|
||||
assetId,
|
||||
available: true,
|
||||
uri: response.tempFilePath,
|
||||
source: 'remote',
|
||||
kind: asset.kind,
|
||||
persistent: false,
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
await ensureCacheFolder()
|
||||
const filePath = joinPath(cacheRoot, safeCacheName(assetId, asset))
|
||||
await callFs(fs, 'saveFile', {
|
||||
tempFilePath: response.tempFilePath,
|
||||
filePath,
|
||||
})
|
||||
index.entries[assetId] = {
|
||||
assetId,
|
||||
filePath,
|
||||
kind: asset.kind,
|
||||
sha256: asset.sha256,
|
||||
size,
|
||||
lastAccessedAt: now(),
|
||||
}
|
||||
await enforceImageBudget(assetId)
|
||||
await enforceAudioBudget(assetId)
|
||||
await persistIndex()
|
||||
return {
|
||||
assetId,
|
||||
available: true,
|
||||
uri: filePath,
|
||||
source: 'remote',
|
||||
kind: asset.kind,
|
||||
persistent: true,
|
||||
}
|
||||
} catch (error) {
|
||||
return {
|
||||
assetId,
|
||||
available: true,
|
||||
uri: response.tempFilePath,
|
||||
source: 'remote',
|
||||
kind: asset.kind,
|
||||
persistent: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function resolve(assetId, resolveOptions = {}) {
|
||||
await init()
|
||||
const asset = manifest[assetId]
|
||||
if (!asset) return fallback(assetId, 'unknown-asset')
|
||||
if (
|
||||
asset.kind === 'audio'
|
||||
&& String(asset.reviewStatus || '').toLowerCase() !== 'approved'
|
||||
) {
|
||||
return fallback(assetId, 'audio-unapproved')
|
||||
}
|
||||
|
||||
// 包内种子永远优先:首屏无需等网络,离线也能继续读和玩。
|
||||
if (asset.localSeed && resolveOptions.preferRemote !== true) {
|
||||
return {
|
||||
assetId,
|
||||
available: true,
|
||||
uri: asset.localSeed,
|
||||
source: 'local',
|
||||
kind: asset.kind,
|
||||
}
|
||||
}
|
||||
|
||||
const cached = await resolveCached(assetId, asset)
|
||||
if (cached) return cached
|
||||
|
||||
if (resolveOptions.allowRemote === false) {
|
||||
if (asset.localSeed) {
|
||||
return {
|
||||
assetId,
|
||||
available: true,
|
||||
uri: asset.localSeed,
|
||||
source: 'local',
|
||||
kind: asset.kind,
|
||||
}
|
||||
}
|
||||
return fallback(assetId, 'remote-disallowed')
|
||||
}
|
||||
|
||||
if (inflight.has(assetId)) return inflight.get(assetId)
|
||||
|
||||
const request = fetchRemote(assetId, asset)
|
||||
.catch(() => (
|
||||
asset.localSeed
|
||||
? {
|
||||
assetId,
|
||||
available: true,
|
||||
uri: asset.localSeed,
|
||||
source: 'local',
|
||||
kind: asset.kind,
|
||||
}
|
||||
: fallback(assetId, 'remote-failed')
|
||||
))
|
||||
.finally(() => inflight.delete(assetId))
|
||||
inflight.set(assetId, request)
|
||||
return request
|
||||
}
|
||||
|
||||
async function prefetch(assetIds) {
|
||||
const ids = Array.isArray(assetIds) ? assetIds : []
|
||||
return Promise.all(ids.map((assetId) => resolve(assetId)))
|
||||
}
|
||||
|
||||
async function clearCache() {
|
||||
await init()
|
||||
const entries = Object.values(index.entries)
|
||||
for (const entry of entries) await unlinkQuietly(entry.filePath)
|
||||
index = normalizeIndex(null)
|
||||
await persistIndex()
|
||||
}
|
||||
|
||||
function getCacheStats() {
|
||||
return {
|
||||
entries: Object.keys(index.entries).length,
|
||||
imageBytes: imageCacheBytes(),
|
||||
imageBudgetBytes,
|
||||
audioEntries: cacheEntries('audio'),
|
||||
audioBytes: audioCacheBytes(),
|
||||
audioBudgetBytes,
|
||||
audioMaxEntries,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
init,
|
||||
resolve,
|
||||
prefetch,
|
||||
clearCache,
|
||||
getCacheStats,
|
||||
getAsset(assetId) {
|
||||
return manifest[assetId] || null
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
CACHE_INDEX_VERSION,
|
||||
DEFAULT_AUDIO_BUDGET,
|
||||
DEFAULT_AUDIO_MAX_ENTRIES,
|
||||
constantTimeEqualHex,
|
||||
createAssetPlatformFacade,
|
||||
createAssetManager,
|
||||
sha256Hex,
|
||||
}
|
||||
@@ -0,0 +1,337 @@
|
||||
const REVIEWED_AUDIO_STATUS = 'approved'
|
||||
const REVIEWED_VISUAL_STATUS = 'approved-readable'
|
||||
const PROVISIONAL_VISUAL_STATUS = 'experience-provisional'
|
||||
const PROVISIONAL_VISUAL_TIER = 'experience-provisional'
|
||||
const IMAGE_UNAVAILABLE_MESSAGE = '本页画面暂时没有打开,文字和互动仍可继续。'
|
||||
const AUDIO_FILE_PATTERN = /\.(?:aac|m4a|mp3|ogg|wav)$/i
|
||||
|
||||
function cleanPath(value) {
|
||||
return typeof value === 'string' ? value.trim() : ''
|
||||
}
|
||||
|
||||
function isPlayableVisualDeclaration(visual) {
|
||||
if (!visual || typeof visual !== 'object') return false
|
||||
const reviewStatus = cleanPath(visual.reviewStatus).toLowerCase()
|
||||
if (reviewStatus === REVIEWED_VISUAL_STATUS) return true
|
||||
return Boolean(
|
||||
visual.kind === 'page-art'
|
||||
&& cleanPath(visual.runtimeTier) === PROVISIONAL_VISUAL_TIER
|
||||
&& visual.formalReleaseEligible === false
|
||||
&& reviewStatus === PROVISIONAL_VISUAL_STATUS,
|
||||
)
|
||||
}
|
||||
|
||||
function isPackagedPath(value) {
|
||||
const path = cleanPath(value)
|
||||
return (
|
||||
path.startsWith('/assets/')
|
||||
|| /^\/package-[a-z0-9-]+\//i.test(path)
|
||||
)
|
||||
}
|
||||
|
||||
function actorSheetFocusPercent(person) {
|
||||
const era = String(person && person.eraLabel || '')
|
||||
const characterId = String(person && person.characterId || '')
|
||||
if (characterId === 'qin-xiaoman') {
|
||||
if (/2008/.test(era)) return 16
|
||||
if (/2026/.test(era)) return 65
|
||||
}
|
||||
if (characterId === 'tang-mingyuan') {
|
||||
if (/1995/.test(era)) return 11
|
||||
if (/2001/.test(era)) return 37
|
||||
if (/2003/.test(era)) return 63
|
||||
if (/2026/.test(era)) return 88
|
||||
}
|
||||
if (/1978|1980/.test(era)) return 11
|
||||
if (/1993|1995|1998/.test(era)) return 31
|
||||
if (/2001|2003/.test(era)) return 50
|
||||
if (/2008/.test(era)) return 69
|
||||
if (/2026/.test(era)) return 88
|
||||
return 50
|
||||
}
|
||||
|
||||
function isSinglePortraitFallback(person) {
|
||||
return String(person && person.characterId || '') === 'female-cook'
|
||||
}
|
||||
|
||||
function getComicPageImageMode(person, usingActorFallback) {
|
||||
return usingActorFallback && isSinglePortraitFallback(person)
|
||||
? 'aspectFit'
|
||||
: 'scaleToFill'
|
||||
}
|
||||
|
||||
function getComicPageImageStyle(person, usingActorFallback) {
|
||||
if (!usingActorFallback || !person) return ''
|
||||
if (isSinglePortraitFallback(person)) return ''
|
||||
const focusX = actorSheetFocusPercent(person)
|
||||
const translateX = 50 - (3.5 * focusX)
|
||||
return [
|
||||
'transform-origin:0 0',
|
||||
`transform:translate(${translateX}%,-30%) scale(3.5)`,
|
||||
].join(';')
|
||||
}
|
||||
|
||||
function getComicFocusImageStyle(person, usingActorFallback) {
|
||||
if (!usingActorFallback || !person) return ''
|
||||
if (isSinglePortraitFallback(person)) return ''
|
||||
const sourceFocusX = actorSheetFocusPercent(person)
|
||||
const focusX = 25 + (sourceFocusX * 0.5)
|
||||
return [
|
||||
'transform:scale(7)',
|
||||
`transform-origin:${focusX}% 12%`,
|
||||
].join(';')
|
||||
}
|
||||
|
||||
/**
|
||||
* Selects the first image shown by a comic page.
|
||||
*
|
||||
* A release-manifest localSeed is authoritative and must never wait for the
|
||||
* network. A remote-only illustration starts on the reviewed scene fallback,
|
||||
* so a slow or failed download cannot leave a blank reader.
|
||||
*/
|
||||
function buildComicImageState(page = {}, releaseAsset = null, previous = {}) {
|
||||
const illustrationAsset = cleanPath(page.illustrationAsset)
|
||||
const fallbackAsset = cleanPath(page.fallbackAsset)
|
||||
const playableVisual = isPlayableVisualDeclaration(page.playableVisual)
|
||||
? page.playableVisual
|
||||
: null
|
||||
const sharedVisualKind = playableVisual
|
||||
&& playableVisual.kind !== 'page-art'
|
||||
? cleanPath(playableVisual.kind)
|
||||
: ''
|
||||
const sharedVisualAsset = sharedVisualKind
|
||||
? cleanPath(playableVisual.asset)
|
||||
: ''
|
||||
const actorFallbackAsset = cleanPath(
|
||||
(
|
||||
sharedVisualKind === 'actor-portrait'
|
||||
|| sharedVisualKind === 'chapter-character'
|
||||
)
|
||||
? sharedVisualAsset
|
||||
: (page.actorFallbackAsset || page.actorPortrait),
|
||||
)
|
||||
const localSeed = (
|
||||
releaseAsset
|
||||
&& releaseAsset.kind === 'image'
|
||||
)
|
||||
? cleanPath(releaseAsset.localSeed)
|
||||
: ''
|
||||
const remotePath = (
|
||||
releaseAsset
|
||||
&& releaseAsset.kind === 'image'
|
||||
)
|
||||
? cleanPath(releaseAsset.remotePath)
|
||||
: ''
|
||||
const keepFallback = Boolean(
|
||||
previous.currentPageId === page.pageId
|
||||
&& previous.comicImageUsingFallback
|
||||
&& fallbackAsset
|
||||
)
|
||||
const keepActorFallback = Boolean(
|
||||
previous.currentPageId === page.pageId
|
||||
&& previous.comicImageUsingFallback
|
||||
&& previous.comicImageSource === 'actor-fallback'
|
||||
&& actorFallbackAsset
|
||||
)
|
||||
|
||||
if (
|
||||
sharedVisualAsset
|
||||
&& (
|
||||
sharedVisualKind === 'actor-portrait'
|
||||
|| sharedVisualKind === 'chapter-character'
|
||||
)
|
||||
) {
|
||||
return {
|
||||
src: sharedVisualAsset,
|
||||
fallback: fallbackAsset,
|
||||
actorFallback: sharedVisualAsset,
|
||||
usingFallback: true,
|
||||
usingActorFallback: true,
|
||||
source: 'shared-portrait',
|
||||
error: '',
|
||||
shouldResolveRemote: false,
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
sharedVisualAsset
|
||||
&& sharedVisualKind === 'evidence-composite'
|
||||
) {
|
||||
return {
|
||||
src: sharedVisualAsset,
|
||||
fallback: fallbackAsset,
|
||||
actorFallback: '',
|
||||
usingFallback: true,
|
||||
usingActorFallback: false,
|
||||
source: 'shared-evidence',
|
||||
error: '',
|
||||
shouldResolveRemote: false,
|
||||
}
|
||||
}
|
||||
|
||||
if (keepActorFallback) {
|
||||
return {
|
||||
src: actorFallbackAsset,
|
||||
fallback: fallbackAsset,
|
||||
actorFallback: actorFallbackAsset,
|
||||
usingFallback: true,
|
||||
usingActorFallback: true,
|
||||
source: 'actor-fallback',
|
||||
error: '',
|
||||
shouldResolveRemote: false,
|
||||
}
|
||||
}
|
||||
|
||||
if (keepFallback) {
|
||||
return {
|
||||
src: fallbackAsset,
|
||||
fallback: fallbackAsset,
|
||||
actorFallback: actorFallbackAsset,
|
||||
usingFallback: true,
|
||||
usingActorFallback: false,
|
||||
source: 'local-fallback',
|
||||
error: '',
|
||||
shouldResolveRemote: false,
|
||||
}
|
||||
}
|
||||
|
||||
if (localSeed) {
|
||||
return {
|
||||
src: localSeed,
|
||||
fallback: fallbackAsset,
|
||||
actorFallback: actorFallbackAsset,
|
||||
usingFallback: false,
|
||||
usingActorFallback: false,
|
||||
source: 'local-seed',
|
||||
error: '',
|
||||
shouldResolveRemote: false,
|
||||
}
|
||||
}
|
||||
|
||||
if (remotePath) {
|
||||
const loadingFallback = actorFallbackAsset || fallbackAsset
|
||||
const usingActorFallback = Boolean(actorFallbackAsset)
|
||||
return {
|
||||
src: loadingFallback,
|
||||
fallback: fallbackAsset,
|
||||
actorFallback: actorFallbackAsset,
|
||||
usingFallback: Boolean(loadingFallback),
|
||||
usingActorFallback,
|
||||
source: usingActorFallback
|
||||
? 'actor-fallback-loading'
|
||||
: (fallbackAsset ? 'fallback-loading' : 'text-fallback-loading'),
|
||||
error: loadingFallback ? '' : IMAGE_UNAVAILABLE_MESSAGE,
|
||||
shouldResolveRemote: true,
|
||||
}
|
||||
}
|
||||
|
||||
if (releaseAsset && illustrationAsset) {
|
||||
return {
|
||||
src: illustrationAsset,
|
||||
fallback: fallbackAsset,
|
||||
actorFallback: actorFallbackAsset,
|
||||
usingFallback: false,
|
||||
usingActorFallback: false,
|
||||
source: 'declared-local-path',
|
||||
error: '',
|
||||
shouldResolveRemote: false,
|
||||
}
|
||||
}
|
||||
|
||||
if (actorFallbackAsset) {
|
||||
return {
|
||||
src: actorFallbackAsset,
|
||||
fallback: fallbackAsset,
|
||||
actorFallback: actorFallbackAsset,
|
||||
usingFallback: true,
|
||||
usingActorFallback: true,
|
||||
source: 'actor-fallback',
|
||||
error: '',
|
||||
shouldResolveRemote: false,
|
||||
}
|
||||
}
|
||||
|
||||
if (fallbackAsset) {
|
||||
return {
|
||||
src: fallbackAsset,
|
||||
fallback: fallbackAsset,
|
||||
actorFallback: '',
|
||||
usingFallback: true,
|
||||
usingActorFallback: false,
|
||||
source: 'local-fallback',
|
||||
error: '',
|
||||
shouldResolveRemote: false,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
src: '',
|
||||
fallback: '',
|
||||
actorFallback: '',
|
||||
usingFallback: false,
|
||||
usingActorFallback: false,
|
||||
source: 'text-fallback',
|
||||
error: IMAGE_UNAVAILABLE_MESSAGE,
|
||||
shouldResolveRemote: false,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Audio is intentionally fail-closed. A non-empty src alone is not enough:
|
||||
* both the story data and immutable release manifest must mark the file as
|
||||
* approved, and the playable src must be the packaged, hash-checked seed.
|
||||
*/
|
||||
function getReviewedAudioSrc(media = {}, manifest = {}) {
|
||||
const status = cleanPath(media.status || media.audioStatus).toLowerCase()
|
||||
const assetId = cleanPath(media.assetId || media.audioAssetId)
|
||||
const declaredSrc = cleanPath(media.src || media.audioSrc)
|
||||
if (
|
||||
status !== REVIEWED_AUDIO_STATUS
|
||||
|| !assetId
|
||||
|| !declaredSrc
|
||||
) {
|
||||
return ''
|
||||
}
|
||||
|
||||
const releaseAsset = manifest[assetId]
|
||||
if (
|
||||
!releaseAsset
|
||||
|| releaseAsset.kind !== 'audio'
|
||||
|| cleanPath(releaseAsset.reviewStatus).toLowerCase()
|
||||
!== REVIEWED_AUDIO_STATUS
|
||||
) {
|
||||
return ''
|
||||
}
|
||||
|
||||
const localSeed = cleanPath(releaseAsset.localSeed)
|
||||
if (
|
||||
!localSeed
|
||||
|| localSeed !== declaredSrc
|
||||
|| !isPackagedPath(localSeed)
|
||||
|| !AUDIO_FILE_PATTERN.test(localSeed)
|
||||
) {
|
||||
return ''
|
||||
}
|
||||
return localSeed
|
||||
}
|
||||
|
||||
function buildReviewedAudioState(media = {}, manifest = {}) {
|
||||
const src = getReviewedAudioSrc(media, manifest)
|
||||
return {
|
||||
available: Boolean(src),
|
||||
src,
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
AUDIO_FILE_PATTERN,
|
||||
IMAGE_UNAVAILABLE_MESSAGE,
|
||||
REVIEWED_AUDIO_STATUS,
|
||||
buildComicImageState,
|
||||
buildReviewedAudioState,
|
||||
getComicFocusImageStyle,
|
||||
getComicPageImageMode,
|
||||
getComicPageImageStyle,
|
||||
getReviewedAudioSrc,
|
||||
isPackagedPath,
|
||||
}
|
||||
@@ -0,0 +1,427 @@
|
||||
const COMIC_PAGE_TYPES = Object.freeze([
|
||||
'cover',
|
||||
'ensemble',
|
||||
'event',
|
||||
'event',
|
||||
'event',
|
||||
'event',
|
||||
'emotion',
|
||||
'memory',
|
||||
])
|
||||
|
||||
function cleanString(value) {
|
||||
return typeof value === 'string' ? value.trim() : ''
|
||||
}
|
||||
|
||||
function comicPages(model = {}) {
|
||||
return Array.isArray(model.pageSequence) ? model.pageSequence : []
|
||||
}
|
||||
|
||||
function pageIndex(model, pageId) {
|
||||
const requested = cleanString(pageId)
|
||||
if (!requested) return -1
|
||||
return comicPages(model).findIndex((page) => page.pageId === requested)
|
||||
}
|
||||
|
||||
function eventPages(model) {
|
||||
return comicPages(model).filter((page) => page.type === 'event')
|
||||
}
|
||||
|
||||
function isEightPageComicModel(model = {}) {
|
||||
const pages = comicPages(model)
|
||||
if (
|
||||
model.mode !== 'comic'
|
||||
|| !cleanString(model.chapterId)
|
||||
|| pages.length !== COMIC_PAGE_TYPES.length
|
||||
) {
|
||||
return false
|
||||
}
|
||||
return pages.every((page, index) => (
|
||||
page
|
||||
&& page.pageId === `${model.chapterId}-P${String(index + 1).padStart(2, '0')}`
|
||||
&& page.type === COMIC_PAGE_TYPES[index]
|
||||
))
|
||||
}
|
||||
|
||||
/**
|
||||
* Only a contiguous prefix of P03-P06 is trusted.
|
||||
*
|
||||
* This prevents stale, foreign, duplicated or out-of-order ids from opening a
|
||||
* later page. It also keeps the locked 60-event source order unchanged.
|
||||
*/
|
||||
function normalizeCompletedEventIds(model, completedIds = []) {
|
||||
const supplied = new Set(
|
||||
(Array.isArray(completedIds) ? completedIds : [])
|
||||
.map(cleanString)
|
||||
.filter(Boolean),
|
||||
)
|
||||
const normalized = []
|
||||
for (const page of eventPages(model)) {
|
||||
if (!supplied.has(page.eventId)) break
|
||||
normalized.push(page.eventId)
|
||||
}
|
||||
return normalized
|
||||
}
|
||||
|
||||
function getUnlockedPageIndex(
|
||||
model,
|
||||
completedIds = [],
|
||||
chapterFinished = false,
|
||||
) {
|
||||
const pages = comicPages(model)
|
||||
if (!pages.length) return -1
|
||||
if (!isEightPageComicModel(model)) return 0
|
||||
if (chapterFinished) return pages.length - 1
|
||||
|
||||
const completed = normalizeCompletedEventIds(model, completedIds)
|
||||
const firstEventIndex = pages.findIndex((page) => page.type === 'event')
|
||||
const emotionIndex = pages.findIndex((page) => page.type === 'emotion')
|
||||
if (firstEventIndex < 0) return 0
|
||||
|
||||
return Math.min(
|
||||
emotionIndex >= 0 ? emotionIndex : pages.length - 1,
|
||||
firstEventIndex + completed.length,
|
||||
)
|
||||
}
|
||||
|
||||
function emptyReaderState() {
|
||||
return {
|
||||
valid: false,
|
||||
currentPage: null,
|
||||
currentPageId: '',
|
||||
currentPageIndex: -1,
|
||||
unlockedPageIndex: -1,
|
||||
unlockedPageIds: [],
|
||||
completedEventIds: [],
|
||||
allEventsComplete: false,
|
||||
chapterFinished: false,
|
||||
canGoPrevious: false,
|
||||
canGoNext: false,
|
||||
nextPageLocked: false,
|
||||
activeInteraction: null,
|
||||
activeHotspots: [],
|
||||
pageAccess: [],
|
||||
}
|
||||
}
|
||||
|
||||
function buildComicReaderState(model, progress = {}) {
|
||||
if (!isEightPageComicModel(model)) return emptyReaderState()
|
||||
|
||||
const pages = comicPages(model)
|
||||
const completedEventIds = normalizeCompletedEventIds(
|
||||
model,
|
||||
progress.completedEventIds || progress.completedIds,
|
||||
)
|
||||
const allEventsComplete = (
|
||||
completedEventIds.length === eventPages(model).length
|
||||
)
|
||||
const chapterFinished = Boolean(
|
||||
progress.chapterFinished && allEventsComplete,
|
||||
)
|
||||
const unlockedPageIndex = getUnlockedPageIndex(
|
||||
model,
|
||||
completedEventIds,
|
||||
chapterFinished,
|
||||
)
|
||||
const requestedPageId = (
|
||||
cleanString(progress.currentPageId)
|
||||
|| cleanString(progress.savedPageId)
|
||||
|| model.firstPageId
|
||||
|| pages[0].pageId
|
||||
)
|
||||
const requestedIndex = pageIndex(model, requestedPageId)
|
||||
const currentPageIndex = Math.min(
|
||||
unlockedPageIndex,
|
||||
Math.max(0, requestedIndex >= 0 ? requestedIndex : 0),
|
||||
)
|
||||
const currentPage = pages[currentPageIndex]
|
||||
const completed = new Set(completedEventIds)
|
||||
|
||||
let activeInteraction = null
|
||||
if (
|
||||
currentPage.type === 'event'
|
||||
&& !completed.has(currentPage.eventId)
|
||||
) {
|
||||
activeInteraction = {
|
||||
type: 'event',
|
||||
id: currentPage.eventId,
|
||||
eventId: currentPage.eventId,
|
||||
pageId: currentPage.pageId,
|
||||
actorInstanceId: currentPage.actorInstanceId || '',
|
||||
actorHotspot: currentPage.actorHotspot || null,
|
||||
}
|
||||
} else if (
|
||||
currentPage.type === 'emotion'
|
||||
&& allEventsComplete
|
||||
&& !chapterFinished
|
||||
) {
|
||||
activeInteraction = {
|
||||
type: 'emotion',
|
||||
id: currentPage.emotionMomentId,
|
||||
emotionMomentId: currentPage.emotionMomentId,
|
||||
pageId: currentPage.pageId,
|
||||
actorHotspot: currentPage.actorHotspot || null,
|
||||
}
|
||||
}
|
||||
|
||||
const activeHotspots = (
|
||||
activeInteraction
|
||||
&& activeInteraction.actorHotspot
|
||||
)
|
||||
? [{
|
||||
interactionId: activeInteraction.id,
|
||||
pageId: activeInteraction.pageId,
|
||||
actorHotspot: activeInteraction.actorHotspot,
|
||||
}]
|
||||
: []
|
||||
|
||||
return {
|
||||
valid: true,
|
||||
currentPage,
|
||||
currentPageId: currentPage.pageId,
|
||||
currentPageIndex,
|
||||
unlockedPageIndex,
|
||||
unlockedPageIds: pages
|
||||
.slice(0, unlockedPageIndex + 1)
|
||||
.map((page) => page.pageId),
|
||||
completedEventIds,
|
||||
allEventsComplete,
|
||||
chapterFinished,
|
||||
canGoPrevious: currentPageIndex > 0,
|
||||
canGoNext: currentPageIndex < unlockedPageIndex,
|
||||
nextPageLocked: (
|
||||
currentPageIndex < pages.length - 1
|
||||
&& currentPageIndex >= unlockedPageIndex
|
||||
),
|
||||
activeInteraction,
|
||||
activeHotspots,
|
||||
pageAccess: pages.map((page, index) => ({
|
||||
pageId: page.pageId,
|
||||
pageIndex: index,
|
||||
type: page.type,
|
||||
unlocked: index <= unlockedPageIndex,
|
||||
current: index === currentPageIndex,
|
||||
interactionEnabled: Boolean(
|
||||
activeInteraction
|
||||
&& activeInteraction.pageId === page.pageId
|
||||
),
|
||||
})),
|
||||
}
|
||||
}
|
||||
|
||||
function progressFromState(state) {
|
||||
return {
|
||||
currentPageId: state.currentPageId,
|
||||
completedEventIds: [...state.completedEventIds],
|
||||
chapterFinished: state.chapterFinished,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Read one chapter from the shared v1 storage object.
|
||||
*
|
||||
* `comicReaderByChapter` is the canonical reader cursor. The older
|
||||
* completedHotspots/completedChapters/lastPageId fields remain mirrored for
|
||||
* catalog compatibility and safe migration from already-installed builds.
|
||||
*/
|
||||
function readComicReaderProgress(storageProgress = {}, model = {}, chapterNumber) {
|
||||
const chapterId = cleanString(model.chapterId)
|
||||
const storedByChapter = (
|
||||
storageProgress.comicReaderByChapter
|
||||
&& typeof storageProgress.comicReaderByChapter === 'object'
|
||||
)
|
||||
? storageProgress.comicReaderByChapter
|
||||
: {}
|
||||
const storedChapter = (
|
||||
chapterId
|
||||
&& storedByChapter[chapterId]
|
||||
&& typeof storedByChapter[chapterId] === 'object'
|
||||
)
|
||||
? storedByChapter[chapterId]
|
||||
: {}
|
||||
const legacyHotspots = (
|
||||
storageProgress.completedHotspots
|
||||
&& typeof storageProgress.completedHotspots === 'object'
|
||||
&& Array.isArray(storageProgress.completedHotspots[chapterId])
|
||||
)
|
||||
? storageProgress.completedHotspots[chapterId]
|
||||
: []
|
||||
const legacyFinished = (
|
||||
Array.isArray(storageProgress.completedChapters)
|
||||
&& storageProgress.completedChapters.includes(chapterId)
|
||||
)
|
||||
const chapterFinished = (
|
||||
typeof storedChapter.chapterFinished === 'boolean'
|
||||
? storedChapter.chapterFinished
|
||||
: legacyFinished
|
||||
)
|
||||
const isLastChapter = (
|
||||
Number(storageProgress.lastChapter) === Number(chapterNumber)
|
||||
)
|
||||
|
||||
return {
|
||||
currentPageId: (
|
||||
cleanString(storedChapter.currentPageId)
|
||||
|| (isLastChapter ? cleanString(storageProgress.lastPageId) : '')
|
||||
|| (chapterFinished ? cleanString(model.lastPageId) : '')
|
||||
|| cleanString(model.firstPageId)
|
||||
),
|
||||
completedEventIds: Array.isArray(storedChapter.completedEventIds)
|
||||
? [...storedChapter.completedEventIds]
|
||||
: [...legacyHotspots],
|
||||
chapterFinished,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Merge only the current chapter back into shared storage.
|
||||
*
|
||||
* Other chapters and unrelated product fields are copied through untouched.
|
||||
* The supplied reader progress is normalized again here so stale `finished`
|
||||
* flags and out-of-order future event ids cannot be persisted.
|
||||
*/
|
||||
function mergeComicReaderProgress(
|
||||
storageProgress = {},
|
||||
model = {},
|
||||
chapterNumber,
|
||||
readerProgress = {},
|
||||
) {
|
||||
const chapterId = cleanString(model.chapterId)
|
||||
if (!chapterId || !isEightPageComicModel(model)) {
|
||||
return { ...storageProgress }
|
||||
}
|
||||
const state = buildComicReaderState(model, readerProgress)
|
||||
const normalized = progressFromState(state)
|
||||
const completedHotspots = (
|
||||
storageProgress.completedHotspots
|
||||
&& typeof storageProgress.completedHotspots === 'object'
|
||||
)
|
||||
? { ...storageProgress.completedHotspots }
|
||||
: {}
|
||||
const comicReaderByChapter = (
|
||||
storageProgress.comicReaderByChapter
|
||||
&& typeof storageProgress.comicReaderByChapter === 'object'
|
||||
)
|
||||
? { ...storageProgress.comicReaderByChapter }
|
||||
: {}
|
||||
const completedChapters = Array.isArray(storageProgress.completedChapters)
|
||||
? storageProgress.completedChapters.filter(
|
||||
(storedChapterId) => storedChapterId !== chapterId,
|
||||
)
|
||||
: []
|
||||
|
||||
completedHotspots[chapterId] = [...normalized.completedEventIds]
|
||||
comicReaderByChapter[chapterId] = normalized
|
||||
if (normalized.chapterFinished) completedChapters.push(chapterId)
|
||||
|
||||
return {
|
||||
...storageProgress,
|
||||
completedHotspots,
|
||||
completedChapters,
|
||||
comicReaderByChapter,
|
||||
lastChapter: Number(chapterNumber) || model.chapterNumber || 1,
|
||||
lastPageId: normalized.currentPageId,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Pure transition helper. Completing an interaction unlocks the following
|
||||
* page but never turns it automatically, so the reader still controls the
|
||||
* lianhuanhua rhythm.
|
||||
*/
|
||||
function applyComicReaderAction(model, progress = {}, action = {}) {
|
||||
const state = buildComicReaderState(model, progress)
|
||||
if (!state.valid) return progressFromState(state)
|
||||
const type = cleanString(action.type)
|
||||
let nextProgress = progressFromState(state)
|
||||
|
||||
if (type === 'previous-page' && state.canGoPrevious) {
|
||||
nextProgress.currentPageId = comicPages(model)[
|
||||
state.currentPageIndex - 1
|
||||
].pageId
|
||||
} else if (type === 'next-page' && state.canGoNext) {
|
||||
nextProgress.currentPageId = comicPages(model)[
|
||||
state.currentPageIndex + 1
|
||||
].pageId
|
||||
} else if (type === 'open-page') {
|
||||
const targetIndex = pageIndex(model, action.pageId)
|
||||
if (targetIndex >= 0 && targetIndex <= state.unlockedPageIndex) {
|
||||
nextProgress.currentPageId = comicPages(model)[targetIndex].pageId
|
||||
}
|
||||
} else if (
|
||||
type === 'complete-event'
|
||||
&& state.activeInteraction
|
||||
&& state.activeInteraction.type === 'event'
|
||||
&& state.activeInteraction.eventId === cleanString(action.eventId)
|
||||
) {
|
||||
nextProgress.completedEventIds = [
|
||||
...state.completedEventIds,
|
||||
state.activeInteraction.eventId,
|
||||
]
|
||||
} else if (
|
||||
type === 'complete-emotion'
|
||||
&& state.activeInteraction
|
||||
&& state.activeInteraction.type === 'emotion'
|
||||
&& state.activeInteraction.emotionMomentId
|
||||
=== cleanString(action.emotionMomentId)
|
||||
) {
|
||||
nextProgress.chapterFinished = true
|
||||
}
|
||||
|
||||
return progressFromState(buildComicReaderState(model, nextProgress))
|
||||
}
|
||||
|
||||
/**
|
||||
* A declared illustration path is not proof that a finished page exists.
|
||||
* Callers must explicitly confirm formalAvailable after package/manifest
|
||||
* validation. Otherwise the state is visibly a fallback, never "formal art".
|
||||
*/
|
||||
function buildComicArtAvailability(page = {}, options = {}) {
|
||||
const formalAsset = cleanString(
|
||||
options.formalAsset || page.illustrationAsset,
|
||||
)
|
||||
const fallbackAsset = cleanString(
|
||||
options.fallbackAsset || page.fallbackAsset,
|
||||
)
|
||||
if (options.formalAvailable === true && formalAsset) {
|
||||
return {
|
||||
mode: 'formal-art',
|
||||
src: formalAsset,
|
||||
formalAsset,
|
||||
fallbackAsset,
|
||||
isFormalArt: true,
|
||||
isFallback: false,
|
||||
}
|
||||
}
|
||||
if (fallbackAsset) {
|
||||
return {
|
||||
mode: 'scene-fallback',
|
||||
src: fallbackAsset,
|
||||
formalAsset,
|
||||
fallbackAsset,
|
||||
isFormalArt: false,
|
||||
isFallback: true,
|
||||
}
|
||||
}
|
||||
return {
|
||||
mode: 'text-only',
|
||||
src: '',
|
||||
formalAsset,
|
||||
fallbackAsset: '',
|
||||
isFormalArt: false,
|
||||
isFallback: true,
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
COMIC_PAGE_TYPES,
|
||||
applyComicReaderAction,
|
||||
buildComicArtAvailability,
|
||||
buildComicReaderState,
|
||||
getUnlockedPageIndex,
|
||||
isEightPageComicModel,
|
||||
mergeComicReaderProgress,
|
||||
normalizeCompletedEventIds,
|
||||
pageIndex,
|
||||
readComicReaderProgress,
|
||||
}
|
||||
Reference in New Issue
Block a user