Skip to content

Commit

Permalink
feat: authTokenTip
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyangsh authored and fzlins committed Sep 4, 2024
1 parent 4a38798 commit a64dd66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions resource/sites/fsm.name/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"schema": "common",
"host": "fsm.name",
"tokenRequired": true,
"tokenTip": "在 https://fsm.name/API 获取",
"formerHosts": [
"nextpt.net"
],
Expand Down
1 change: 1 addition & 0 deletions resource/sites/milkie.cc/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"schema": "common",
"host": "milkie.cc",
"tokenRequired": true,
"tokenTip": "在 https://milkie.cc/settings/security 获取 API key",
"collaborator": [
"tomyangsh"
],
Expand Down
1 change: 1 addition & 0 deletions resource/sites/xp.m-team.cc/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"https://mtapi.m-team.cc/"
],
"tokenRequired": true,
"tokenTip": "在控制台-实验室获取存取令牌",
"formerHosts": [
"xp.m-team.io",
"pt.m-team.cc",
Expand Down
2 changes: 1 addition & 1 deletion src/options/views/settings/Sites/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
v-model="site.authToken"
:disabled="!site.tokenRequired" :rules="site.tokenRequired ? rules.require : []"
:label="$t('settings.sites.editor.authToken')"
:placeholder="$t('settings.sites.editor.authTokenTip')"
:placeholder="site.tokenTip ? site.tokenTip : $t('settings.sites.editor.authTokenTip')"
></v-text-field>

<!-- 站点已离线(停机/关闭) -->
Expand Down

0 comments on commit a64dd66

Please sign in to comment.