|
1 | | -'use client' |
2 | | - |
3 | | -import { Switch, Alert, Image } from '@heroui/react' |
4 | | -import { useCreatePatchStore } from '~/store/editStore' |
5 | | -import { GALGAME_AGE_LIMIT_MAP } from '~/constants/galgame' |
6 | | - |
7 | | -interface Props { |
8 | | - errors: string | undefined |
9 | | -} |
10 | | - |
11 | | -export const ContentLimit = ({ errors }: Props) => { |
12 | | - const { data, setData } = useCreatePatchStore() |
13 | | - |
14 | | - return ( |
15 | | - <div className="space-y-2"> |
16 | | - <h2 className="text-xl">六、页面内容分级</h2> |
17 | | - {errors && <p className="text-xs text-danger-500">{errors}</p>} |
18 | | - <p className="text-sm text-default-500"> |
19 | | - 默认游戏页面是 SFW (内容安全, 可以在公告场合打开), |
20 | | - 如果您觉得游戏名、预览图、介绍等过于虎狼 (例如: |
21 | | - 用淫乱喷雾强制贞淑人妻们发情), 页面完全没有办法在公共场合展示, |
22 | | - 请将内容分级为 NSFW (内容可能有 R18, 会导致社死) |
23 | | - </p> |
24 | | - <p className="text-sm text-default-500"> |
25 | | - NSFW 指的是游戏页面含有不适合在公共场合展示的内容, |
26 | | - 而不是指的游戏本身含有 R18 内容 |
27 | | - </p> |
28 | | - <p className="text-sm text-default-500"> |
29 | | - SFW 的浏览量会高两到三倍, |
30 | | - 因此请您尽量保证游戏封面、游戏名、游戏介绍等可以在公共场合展示 |
31 | | - </p> |
32 | | - <Alert |
33 | | - color="danger" |
34 | | - title="再次请大家注意 NSFW 问题" |
35 | | - description="网站目前的 NSFW 认定标准可能比较苛刻, 看起来不能在公司报告大会上放在 PPT 里展示的游戏都是 NSFW ,封面需要打码才能放上去的一律算 NSFW, 总之就是越严越好,可以错杀不可以放过,因为会导致网站违反 Google 或 Bing 的条款" |
36 | | - /> |
37 | | - <div className="pb-6"> |
38 | | - <p className="text-sm text-default-500"> |
39 | | - 例如下面两张图就算作 NSFW 的游戏, 有 NSFW 的游戏名或介绍等等也算作 |
40 | | - NSFW |
41 | | - </p> |
42 | | - <div className="flex gap-2"> |
43 | | - <Image alt="nsfw-image2" src="/edit/1.avif" width={200} /> |
44 | | - <Image alt="nsfw-image2" src="/edit/2.avif" width={200} /> |
45 | | - </div> |
46 | | - </div> |
47 | | - |
48 | | - <p>注意这个 NSFW 开关, 越严越好, 只要有一点不对立即设置为 NSFW</p> |
49 | | - <Switch |
50 | | - defaultSelected |
51 | | - color="danger" |
52 | | - size="lg" |
53 | | - isSelected={data.contentLimit === 'nsfw'} |
54 | | - onValueChange={(value) => { |
55 | | - if (value) { |
56 | | - setData({ ...data, contentLimit: 'nsfw' }) |
57 | | - } else { |
58 | | - setData({ ...data, contentLimit: 'sfw' }) |
59 | | - } |
60 | | - }} |
61 | | - > |
62 | | - {GALGAME_AGE_LIMIT_MAP[data.contentLimit]} |
63 | | - </Switch> |
64 | | - </div> |
65 | | - ) |
66 | | -} |
| 1 | +'use client' |
| 2 | + |
| 3 | +import { Switch, Alert, Image, CardBody, Card } from '@heroui/react' |
| 4 | +import { useCreatePatchStore } from '~/store/editStore' |
| 5 | +import { GALGAME_AGE_LIMIT_MAP } from '~/constants/galgame' |
| 6 | + |
| 7 | +interface Props { |
| 8 | + errors: string | undefined |
| 9 | +} |
| 10 | + |
| 11 | +export const ContentLimit = ({ errors }: Props) => { |
| 12 | + const { data, setData } = useCreatePatchStore() |
| 13 | + |
| 14 | + return ( |
| 15 | + <div className="space-y-2"> |
| 16 | + <h2 className="text-xl">页面内容分级</h2> |
| 17 | + <Alert |
| 18 | + color="danger" |
| 19 | + title="再次请大家注意 NSFW 问题" |
| 20 | + description="网站目前的 NSFW 认定标准可能比较苛刻, 看起来不能在公司报告大会上放在 PPT 里展示的游戏都是 NSFW ,封面需要打码才能放上去的一律算 NSFW, 总之就是越严越好,可以错杀不可以放过,因为会导致网站违反 Google 或 Bing 的条款" |
| 21 | + /> |
| 22 | + |
| 23 | + <Card> |
| 24 | + <CardBody> |
| 25 | + {errors && <p className="text-xs text-danger-500">{errors}</p>} |
| 26 | + <p className="text-sm text-default-500"> |
| 27 | + 默认游戏页面是 SFW (内容安全, 可以在公告场合打开), |
| 28 | + 如果您觉得游戏名、预览图、介绍等过于虎狼 (例如: |
| 29 | + 用淫乱喷雾强制贞淑人妻们发情), 页面完全没有办法在公共场合展示, |
| 30 | + 请将内容分级为 NSFW (内容可能有 R18, 会导致社死) |
| 31 | + </p> |
| 32 | + <p className="text-sm text-default-500"> |
| 33 | + NSFW 指的是游戏页面含有不适合在公共场合展示的内容, |
| 34 | + 而不是指的游戏本身含有 R18 内容 |
| 35 | + </p> |
| 36 | + <p className="text-sm text-default-500"> |
| 37 | + SFW 的浏览量会高两到三倍, |
| 38 | + 因此请您尽量保证游戏封面、游戏名、游戏介绍等可以在公共场合展示 |
| 39 | + </p> |
| 40 | + <p className="text-sm text-default-500 font-bold"> |
| 41 | + 例如下面两张图就算作 NSFW 的游戏, 有 NSFW 的游戏名或介绍等等也算作 |
| 42 | + NSFW |
| 43 | + </p> |
| 44 | + <div className="flex gap-2"> |
| 45 | + <Image alt="nsfw-image2" src="/edit/1.avif" width={200} /> |
| 46 | + <Image alt="nsfw-image2" src="/edit/2.avif" width={200} /> |
| 47 | + </div> |
| 48 | + </CardBody> |
| 49 | + </Card> |
| 50 | + |
| 51 | + <p>注意这个 NSFW 开关, 越严越好, 只要有一点不对立即设置为 NSFW</p> |
| 52 | + <Switch |
| 53 | + defaultSelected |
| 54 | + color="danger" |
| 55 | + size="lg" |
| 56 | + isSelected={data.contentLimit === 'nsfw'} |
| 57 | + onValueChange={(value) => { |
| 58 | + if (value) { |
| 59 | + setData({ ...data, contentLimit: 'nsfw' }) |
| 60 | + } else { |
| 61 | + setData({ ...data, contentLimit: 'sfw' }) |
| 62 | + } |
| 63 | + }} |
| 64 | + > |
| 65 | + {GALGAME_AGE_LIMIT_MAP[data.contentLimit]} |
| 66 | + </Switch> |
| 67 | + </div> |
| 68 | + ) |
| 69 | +} |
0 commit comments