Skip to content

Commit ff8b55f

Browse files
committed
fix: clarify "hidden" vs "private"
1 parent fdbf489 commit ff8b55f

File tree

6 files changed

+78
-72
lines changed

6 files changed

+78
-72
lines changed

src/GZCTF/ClientApp/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"embla-carousel": "^8.1.8",
3737
"embla-carousel-autoplay": "^8.1.8",
3838
"embla-carousel-react": "^8.1.8",
39-
"i18next": "^23.12.2",
39+
"i18next": "^23.12.3",
4040
"i18next-browser-languagedetector": "^8.0.0",
4141
"katex": "^0.16.11",
4242
"lz-string": "^1.5.0",
@@ -68,8 +68,8 @@
6868
"@types/prismjs": "^1.26.4",
6969
"@types/react": "^18.3.3",
7070
"@types/react-dom": "^18.3.0",
71-
"@typescript-eslint/eslint-plugin": "^8.0.1",
72-
"@typescript-eslint/parser": "^8.0.1",
71+
"@typescript-eslint/eslint-plugin": "^8.1.0",
72+
"@typescript-eslint/parser": "^8.1.0",
7373
"@vitejs/plugin-react": "^4.3.1",
7474
"axios": "^1.7.3",
7575
"babel-plugin-prismjs": "^2.1.0",
@@ -86,7 +86,7 @@
8686
"postcss-simple-vars": "^7.0.1",
8787
"prettier": "~3.3.3",
8888
"rollup": "^4.20.0",
89-
"swagger-typescript-api": "^13.0.19",
89+
"swagger-typescript-api": "^13.0.21",
9090
"tslib": "^2.6.3",
9191
"typescript": "5.5.4",
9292
"vite": "^5.4.0",

src/GZCTF/ClientApp/pnpm-lock.yaml

Lines changed: 69 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GZCTF/ClientApp/src/locales/en_US/admin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
},
342342
"label": {
343343
"games": {
344-
"public": "Public",
344+
"hide": "Hide",
345345
"summary": "Summary"
346346
},
347347
"instances": {

src/GZCTF/ClientApp/src/locales/ja_JP/admin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
},
342342
"label": {
343343
"games": {
344-
"public": "公開",
344+
"hide": "隠す",
345345
"summary": "概要"
346346
},
347347
"instances": {

src/GZCTF/ClientApp/src/locales/zh_CN/admin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
},
342342
"label": {
343343
"games": {
344-
"public": "公开",
344+
"hide": "隐藏",
345345
"summary": "简介"
346346
},
347347
"instances": {

src/GZCTF/ClientApp/src/pages/admin/games/Index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const Games: FC = () => {
123123
<Table className={tableClasses.table}>
124124
<Table.Thead>
125125
<Table.Tr>
126-
<Table.Th style={{ minWidth: '1.8rem' }}>{t('admin.label.games.public')}</Table.Th>
126+
<Table.Th style={{ minWidth: '1.8rem' }}>{t('admin.label.games.hide')}</Table.Th>
127127
<Table.Th>{t('common.label.game')}</Table.Th>
128128
<Table.Th>{t('common.label.time')}</Table.Th>
129129
<Table.Th>{t('admin.label.games.summary')}</Table.Th>
@@ -141,7 +141,7 @@ const Games: FC = () => {
141141
<Table.Td>
142142
<Switch
143143
disabled={disabled}
144-
checked={!game.hidden}
144+
checked={game.hidden}
145145
onChange={() => onToggleHidden(game)}
146146
/>
147147
</Table.Td>

0 commit comments

Comments
 (0)