Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed May 29, 2023
1 parent db88ab4 commit 2ea5a88
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 17 deletions.
Binary file modified Public/SampleZip/apidoc.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
'../server/index.php?s=',
// "lang" :'en'
lang: 'zh-cn'
}</script><link href=./static/css/app.cf5cf8d7db49bba7dd9f2a5241bd431c.css rel=stylesheet></head><body class=grey-bg><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.339f5a1f86786a88b9d4.js></script><script type=text/javascript src=./static/js/app.7d4ce78ff195400edcb7.js></script></body></html>
}</script><link href=./static/css/app.655920584f9944a4a79a58899344deb2.css rel=stylesheet></head><body class=grey-bg><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.339f5a1f86786a88b9d4.js></script><script type=text/javascript src=./static/js/app.65fa0b65c5b239b06cb0.js></script></body></html>

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions web/static/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,18 @@ li {
/* 如特别需要强调的按钮背景色、文字链 */
color: #007BFF;
}
.v3-color-blue{
color: #007BFF;
}
.v3-color-yellow{
color: #ffc107;
}
.v3-color-red{
color: #DC3545;
}
.v3-color-green{
color: #28A745;
}
.v3-lg-btn{
width: 160px;
height: 50px;
Expand Down
1 change: 1 addition & 0 deletions web/static/js/app.65fa0b65c5b239b06cb0.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion web/static/js/app.7d4ce78ff195400edcb7.js

This file was deleted.

9 changes: 6 additions & 3 deletions web_src/src/assets/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,15 @@ exports.default = {
open_api_tips1:
'Showdoc opens the API for document editing, making it easier for users to manipulate document data. <br>With the open API, you can do a lot of things automatically',
open_api_tips2:
'If you want to automate the generation of API documentation, you can refer to<a target="_bank" href="https://www.showdoc.cc/page/741656402509783">API documentation</a>',
'If you want to use the runAPI client to generate API documents, you can refer to the <a target="_bank" href="https://www.showdoc.cc/runapi">runapi introduction</a>',
open_api_tips3:
'If you want to automate the generation of a data dictionary, you can refer to<a target="_bank" href="https://www.showdoc.cc/page/312209902620725">Data dictionary</a>',
'If you want to automate the generation of API documentation, you can refer to<a target="_bank" href="https://www.showdoc.cc/page/741656402509783">API documentation</a>',
open_api_tips4:
'If you want to automate the generation of a data dictionary, you can refer to<a target="_bank" href="https://www.showdoc.cc/page/312209902620725">Data dictionary</a>',
open_api_tips5:
'If you are more free to generate the format you need, you can refer to<a target="_bank" href="https://www.showdoc.cc/page/102098">Open API</a>',
// item/show

// item/show
item: 'Item',
share: 'Share',
export: 'Export',
Expand Down
6 changes: 4 additions & 2 deletions web_src/src/assets/lang/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,12 @@ exports.default = {
open_api_tips1:
'showdoc开放文档编辑的API,供使用者更加方便地操作文档数据。<br>利用开放API,你可以自动化地完成很多事',
open_api_tips2:
'如果你想自动化生成API文档,则可参考<a target="_bank" href="https://www.showdoc.cc/page/741656402509783">API文档</a>',
'如果你想利用runapi客户端生成API文档,则可参考<a target="_bank" href="https://www.showdoc.cc/runapi">runapi介绍</a>',
open_api_tips3:
'如果你想自动化生成数据字典,则可参考<a target="_bank" href="https://www.showdoc.cc/page/312209902620725">数据字典</a>',
'如果你想通过程序注释生成API文档,则可参考<a target="_bank" href="https://www.showdoc.cc/page/741656402509783">API文档</a>',
open_api_tips4:
'如果你想自动化生成数据字典,则可参考<a target="_bank" href="https://www.showdoc.cc/page/312209902620725">数据字典</a>',
open_api_tips5:
'如果你更自由地生成自己所需要的格式,则可参考<a target="_bank" href="https://www.showdoc.cc/page/102098">开放API</a>',

// item/show
Expand Down
3 changes: 3 additions & 0 deletions web_src/src/components/item/add/OpenApi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<p>
<span v-html="$t('open_api_tips4')"></span>
</p>
<p>
<span v-html="$t('open_api_tips5')"></span>
</p>
</div>
</SDialog>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web_src/src/components/item/home/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
@click="changeGroup(-1)"
>
<div class="item-one-block-content">
<i class="el-icon-star-on mr-1"></i>{{ $t('star_items') }}
<i class="el-icon-star-on mr-1 v3-color-yellow"></i>{{ $t('star_items') }}
</div>
</div>
</div>
Expand Down
18 changes: 11 additions & 7 deletions web_src/src/components/item/show/show_regular_item/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@
<div>
除了手动添加外,你还可以通过以下三种方式自动化生成文档:
<p class="links">
<a href="https://www.showdoc.com.cn/runapi" target="_blank"
>使用runapi工具自动生成(推荐)</a
><br />
<i class="el-icon-star-on v3-color-yellow"></i>
<a href="https://www.showdoc.com.cn/runapi" target="_blank">
使用runapi工具自动生成(推荐)</a
><i class="el-icon-star-on v3-color-yellow"></i><br />
<a
href="https://www.showdoc.com.cn/page/7416564025093"
target="_blank"
Expand Down Expand Up @@ -380,28 +381,31 @@ pre ol {
font-size: 13px;
}
.empty-tips {
margin: 5% auto;
width: 400px;
text-align: center;
color: #000;
min-height: 50vh;
opacity: 0.3;
opacity: 0.5;
}
.empty-tips .icon {
font-size: 80px;
margin-left: -50px;
}
.empty-tips .text {
text-align: left;
text-align: center;
}
.empty-tips .links {
line-height: 2em;
text-align: center;
}
.empty-tips .links a {
text-decoration: underline;
color: #007bff;
}
</style>
12 changes: 12 additions & 0 deletions web_src/static/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,18 @@ li {
/* 如特别需要强调的按钮背景色、文字链 */
color: #007BFF;
}
.v3-color-blue{
color: #007BFF;
}
.v3-color-yellow{
color: #ffc107;
}
.v3-color-red{
color: #DC3545;
}
.v3-color-green{
color: #28A745;
}
.v3-lg-btn{
width: 160px;
height: 50px;
Expand Down

0 comments on commit 2ea5a88

Please sign in to comment.