diff --git a/README.md b/README.md index 6e17848..7720630 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ - [TRPG 赛高!](#trpg-赛高) - [包含工具](#包含工具) - [车卡工具](#车卡工具) + - [KP 招募 PL 展示器](#kp-招募-pl-展示器) - [记录工具](#记录工具) - [Project Setup](#project-setup) - [商业使用](#商业使用) @@ -23,6 +24,16 @@ 4. 内置 1000+ 张 AI 生成的头像,方便快速车一张精品卡 5. 主要设计参考:听枫馆北京TRPG跑团桌游吧。 +### KP 招募 PL 展示器 + +![example](./src/assets/images/readme-preview/kp-ads.png) + +1. 展示某个【KP】、【俱乐部】或【店铺】当前可以带的模组、准备中的模组 +2. 方便截图发布招募贴,寻找 PL +3. 目前只支持展示我自己 +4. (孩子不想搞服务器啊!后端不算特别熟,加上之前被人攻击了一波,感觉维护成本太高了,纯前端项目就没那么容易搞多人的) +5. (接下来应该会用 github gist 支持一定程度上的数据库,但是需要各位会用 github 才能加入自己的数据) + ### 记录工具 ![example](./src/assets/images/readme-preview/record.png) diff --git a/src/apps/home/AppView.vue b/src/apps/home/AppView.vue index 7366ce2..40c3cde 100644 --- a/src/apps/home/AppView.vue +++ b/src/apps/home/AppView.vue @@ -25,14 +25,6 @@ const appConfigs: Record<'online' | 'offline', AppConfig[]> = { }, ], offline: [ - { - key: 'record', - name: '模组列表(短期内不再维护)', - to: { - name: 'tfg-stories', - }, - preview: recordPreview, - }, { key: 'kp-ads', name: 'KP招募PL展示器', @@ -41,6 +33,14 @@ const appConfigs: Record<'online' | 'offline', AppConfig[]> = { }, preview: kpAdsPreview, }, + { + key: 'record', + name: '模组列表(短期内不再维护)', + to: { + name: 'tfg-stories', + }, + preview: recordPreview, + }, ], }; diff --git a/src/apps/kp-ads/components/StoryCard.vue b/src/apps/kp-ads/components/StoryCard.vue index dfc8e74..bd52297 100644 --- a/src/apps/kp-ads/components/StoryCard.vue +++ b/src/apps/kp-ads/components/StoryCard.vue @@ -60,7 +60,11 @@ defineProps(); v-if="story.isDicecho" class="dicecho-row" > - + (); 链接 diff --git a/src/apps/kp-ads/constants/story.ts b/src/apps/kp-ads/constants/story.ts index dec5091..00761c3 100644 --- a/src/apps/kp-ads/constants/story.ts +++ b/src/apps/kp-ads/constants/story.ts @@ -70,7 +70,7 @@ export const preparingStories: StoryInfoOverrides[] = [ time: '1920s', place: '美国', coverUrl: cover芝加哥之王, - adds: `繁荣的20年代,是充满暴力与暗算的年代。芝加哥黑帮之间的斗争从未停歇,而你们的到来,让这场纷争变得更加混乱。`, + adds: `繁荣的20年代,又充满暴力与暗算。芝加哥黑帮之间的斗争从未停歇,而你们的到来,让这场纷争变得更加混乱。`, comments: '黑帮故事', }, { @@ -99,7 +99,7 @@ export const preparingStories: StoryInfoOverrides[] = [ place: '中国上海', duration: [5, 6], coverUrl: cover亲密邂逅, - adds: `人人匿名的数字时代,孤独的人们渴望着与陌生人的交流。交友网站的会员接连被杀,留下的是和精神一样空虚的躯壳。`, + adds: `人人匿名的数字时代,孤独的人们渴望与陌生人的交流。交友网站会员接连被杀,留下的是和精神一样空虚的躯壳。`, comments: '涉及交友网站内容,不适者请勿游玩', }, { @@ -109,7 +109,7 @@ export const preparingStories: StoryInfoOverrides[] = [ place: '中国or日本', duration: [4, 6], coverUrl: cover只有猫知道的世界, - adds: `那个天才一般的少年失踪了?去找找看吧,还好上海到这个小镇不算太远。不过,是不是哪里有一点点古怪?喵?喵喵喵?喵!`, + adds: `那个天才少年失踪了?去找找看吧,还好到这个小镇不算太远。不过,是不是哪里有一点点古怪?喵?喵喵喵?喵!`, comments: '轻松愉快,猫猫贴贴', labels: ['适合新手'], }, diff --git a/src/apps/kp-ads/models/story.ts b/src/apps/kp-ads/models/story.ts index 0c7eb56..14b5412 100644 --- a/src/apps/kp-ads/models/story.ts +++ b/src/apps/kp-ads/models/story.ts @@ -16,7 +16,7 @@ function getStoriesByOverrides(storyOverrides: StoryInfoOverrides[]): Story[] { playerNumber = [4, 6], } = storyOverride; const dicechoStory = dicechoStoryInfos.find((info) => info._id === id); - const { cnmodsAliaseId, tags, rateAvg } = dicechoStory || {}; + const { cnmodsAliaseId, tags, rateAvg, validRateCount } = dicechoStory || {}; return { id, title: title || dicechoStory?.title || '', @@ -30,6 +30,7 @@ function getStoriesByOverrides(storyOverrides: StoryInfoOverrides[]): Story[] { labels, isDicecho: !id.startsWith('sox-id-'), rateAvg, + validRateCount, cnmodsAliaseId, tags, }; diff --git a/src/apps/kp-ads/types/story.ts b/src/apps/kp-ads/types/story.ts index 90ba1fd..9de8c92 100644 --- a/src/apps/kp-ads/types/story.ts +++ b/src/apps/kp-ads/types/story.ts @@ -11,6 +11,7 @@ export interface Story { labels?: string[]; isDicecho: boolean; rateAvg?: number; + validRateCount?: number; cnmodsAliaseId?: number; tags?: string[]; } diff --git a/src/assets/images/readme-preview/coc-card.png b/src/assets/images/readme-preview/coc-card.png index 6e54fb5..de735e6 100644 Binary files a/src/assets/images/readme-preview/coc-card.png and b/src/assets/images/readme-preview/coc-card.png differ diff --git a/src/assets/images/readme-preview/kp-ads.png b/src/assets/images/readme-preview/kp-ads.png new file mode 100644 index 0000000..373bd4f Binary files /dev/null and b/src/assets/images/readme-preview/kp-ads.png differ