Skip to content

Commit

Permalink
[kp-ads] 更新 readme、更新一些文案
Browse files Browse the repository at this point in the history
  • Loading branch information
masquevil committed Jun 3, 2024
1 parent d987186 commit 162aa1a
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 13 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [TRPG 赛高!](#trpg-赛高)
- [包含工具](#包含工具)
- [车卡工具](#车卡工具)
- [KP 招募 PL 展示器](#kp-招募-pl-展示器)
- [记录工具](#记录工具)
- [Project Setup](#project-setup)
- [商业使用](#商业使用)
Expand All @@ -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)
Expand Down
16 changes: 8 additions & 8 deletions src/apps/home/AppView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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展示器',
Expand All @@ -41,6 +33,14 @@ const appConfigs: Record<'online' | 'offline', AppConfig[]> = {
},
preview: kpAdsPreview,
},
{
key: 'record',
name: '模组列表(短期内不再维护)',
to: {
name: 'tfg-stories',
},
preview: recordPreview,
},
],
};
</script>
Expand Down
7 changes: 6 additions & 1 deletion src/apps/kp-ads/components/StoryCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ defineProps<Props>();
v-if="story.isDicecho"
class="dicecho-row"
>
<a class="dicecho-banner dicecho-link">
<a
class="dicecho-banner dicecho-link"
href="https://www.dicecho.com/"
target="_blank"
>
<img
class="dicecho-icon"
src="https://www.dicecho.com/favicon.ico"
Expand All @@ -71,6 +75,7 @@ defineProps<Props>();
<a
class="dicecho-link"
:href="`https://www.dicecho.com/module/${story.id}`"
target="_blank"
>
链接
</a>
Expand Down
6 changes: 3 additions & 3 deletions src/apps/kp-ads/constants/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const preparingStories: StoryInfoOverrides[] = [
time: '1920s',
place: '美国',
coverUrl: cover芝加哥之王,
adds: `繁荣的20年代,是充满暴力与暗算的年代。芝加哥黑帮之间的斗争从未停歇,而你们的到来,让这场纷争变得更加混乱。`,
adds: `繁荣的20年代,又充满暴力与暗算。芝加哥黑帮之间的斗争从未停歇,而你们的到来,让这场纷争变得更加混乱。`,
comments: '黑帮故事',
},
{
Expand Down Expand Up @@ -99,7 +99,7 @@ export const preparingStories: StoryInfoOverrides[] = [
place: '中国上海',
duration: [5, 6],
coverUrl: cover亲密邂逅,
adds: `人人匿名的数字时代,孤独的人们渴望着与陌生人的交流。交友网站的会员接连被杀,留下的是和精神一样空虚的躯壳。`,
adds: `人人匿名的数字时代,孤独的人们渴望与陌生人的交流。交友网站会员接连被杀,留下的是和精神一样空虚的躯壳。`,
comments: '涉及交友网站内容,不适者请勿游玩',
},
{
Expand All @@ -109,7 +109,7 @@ export const preparingStories: StoryInfoOverrides[] = [
place: '中国or日本',
duration: [4, 6],
coverUrl: cover只有猫知道的世界,
adds: `那个天才一般的少年失踪了?去找找看吧,还好上海到这个小镇不算太远。不过,是不是哪里有一点点古怪?喵?喵喵喵?喵!`,
adds: `那个天才少年失踪了?去找找看吧,还好到这个小镇不算太远。不过,是不是哪里有一点点古怪?喵?喵喵喵?喵!`,
comments: '轻松愉快,猫猫贴贴',
labels: ['适合新手'],
},
Expand Down
3 changes: 2 additions & 1 deletion src/apps/kp-ads/models/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || '',
Expand All @@ -30,6 +30,7 @@ function getStoriesByOverrides(storyOverrides: StoryInfoOverrides[]): Story[] {
labels,
isDicecho: !id.startsWith('sox-id-'),
rateAvg,
validRateCount,
cnmodsAliaseId,
tags,
};
Expand Down
1 change: 1 addition & 0 deletions src/apps/kp-ads/types/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface Story {
labels?: string[];
isDicecho: boolean;
rateAvg?: number;
validRateCount?: number;
cnmodsAliaseId?: number;
tags?: string[];
}
Expand Down
Binary file modified src/assets/images/readme-preview/coc-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/readme-preview/kp-ads.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 162aa1a

Please sign in to comment.