Skip to content

Commit

Permalink
update placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
netweng committed Oct 12, 2024
1 parent f116e91 commit a203825
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cloudtower-api-doc/scripts/build-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ const getSwaggerWithLocales = (spec, lng, version) => {
});
const snippet = new httpSnippet({
method,
url: `http://YOUR_TOWER_URL/v2/api${p}`,
url: `https://YOUR_TOWER_URL/v2/api${p}`,
headers: [
{ name: "Authorization", value: "YOUR_TOKEN" },
{
Expand Down
2 changes: 1 addition & 1 deletion cloudtower-api-doc/scripts/create-new-api-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const traveseSpec = async (specPath) => {

const snippet = new httpSnippet({
method: method.toUpperCase(),
url: `http://YOUR_TOWER_URL/v2/api${p}`,
url: `https://YOUR_TOWER_URL/v2/api${p}`,
headers: [
{ name: "Authorization", value: "YOUR_TOKEN" },
{
Expand Down
2 changes: 1 addition & 1 deletion cloudtower-api-doc/swagger/locales/en/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"expand": "Expand all",
"show": "show",
"send": "Send",
"server_placeholder": "add new server, http://YOUR_TOWER_URL/v2/api",
"server_placeholder": "add new server and press Enter to add, https://YOUR_TOWER_URL/v2/api",
"servers": "Servers",
"filter_placeholder": "Filter By Tag, API, API Description.",
"parameters": "Parameters",
Expand Down
1 change: 1 addition & 0 deletions cloudtower-api-doc/swagger/locales/zh/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"show": "显示",
"send": "发送",
"servers": "服务",
"server_placeholder": "输入新地址后回车新增, https://YOUR_TOWER_URL/v2/api",
"filter_placeholder": "通过标签, API,API 描述过滤,通过空格进行多个过滤",
"parameters": "参数",
"download": "下载文件",
Expand Down

1 comment on commit a203825

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for cloudtower-api-doc ready!

✅ Preview
https://cloudtower-api-g1ppjrvxz-xiaojunwengs-projects.vercel.app

Built with commit a203825.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.