Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Sunny_yiyi
Swagger Ui
提交
9b58ed54
S
Swagger Ui
项目概览
Sunny_yiyi
/
Swagger Ui
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Swagger Ui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9b58ed54
编写于
11月 19, 2012
作者:
T
Tony Tam
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
redo of PR #88, #89, #90
上级
2d62bddf
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
18 deletion
+25
-18
src/main/html/css/screen.css
src/main/html/css/screen.css
+7
-7
src/main/javascript/doc.js
src/main/javascript/doc.js
+13
-9
src/main/template/main.handlebars
src/main/template/main.handlebars
+5
-2
未找到文件。
src/main/html/css/screen.css
浏览文件 @
9b58ed54
...
...
@@ -1145,9 +1145,9 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
display
:
block
;
margin
:
0
0
0
0
;
padding
:
0
;
background-color
:
#
faebf2
;
background-color
:
#
FCE9E3
;
border
:
1px
solid
black
;
border-color
:
#
f0cecb
;
border-color
:
#
F5D5C3
;
}
body
ul
#resources
li
.resource
ul
.endpoints
li
.endpoint
ul
.operations
li
.operation.patch
div
.heading
h3
{
...
...
@@ -1168,7 +1168,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
body
ul
#resources
li
.resource
ul
.endpoints
li
.endpoint
ul
.operations
li
.operation.patch
div
.heading
h3
span
.http_method
a
{
text-transform
:
uppercase
;
background-color
:
#
993300
;
background-color
:
#
D38042
;
text-decoration
:
none
;
color
:
white
;
display
:
inline-block
;
...
...
@@ -1228,12 +1228,12 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
body
ul
#resources
li
.resource
ul
.endpoints
li
.endpoint
ul
.operations
li
.operation.patch
div
.heading
ul
.options
li
{
border-right-color
:
#f0cecb
;
color
:
#
993300
;
color
:
#
D38042
;
font-size
:
0.9em
;
}
body
ul
#resources
li
.resource
ul
.endpoints
li
.endpoint
ul
.operations
li
.operation.patch
div
.heading
ul
.options
li
a
{
color
:
#
993300
;
color
:
#
D38042
;
text-decoration
:
none
;
}
...
...
@@ -1263,7 +1263,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
}
body
ul
#resources
li
.resource
ul
.endpoints
li
.endpoint
ul
.operations
li
.operation.patch
div
.content
h4
{
color
:
#
993300
;
color
:
#
D38042
;
font-size
:
1.1em
;
margin
:
0
;
padding
:
15px
0
5px
0px
;
...
...
@@ -1271,7 +1271,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
body
ul
#resources
li
.resource
ul
.endpoints
li
.endpoint
ul
.operations
li
.operation.patch
div
.content
form
input
[
type
=
'text'
]
.error
{
outline
:
2px
solid
black
;
outline-color
:
#
cc0000
;
outline-color
:
#
F5D5C3
;
}
body
ul
#resources
li
.resource
ul
.endpoints
li
.endpoint
ul
.operations
li
.operation.patch
div
.content
div
.sandbox_header
{
...
...
src/main/javascript/doc.js
浏览文件 @
9b58ed54
...
...
@@ -115,7 +115,7 @@ var Docs = {
},
toggleEndpointListForResource
:
function
(
resource
)
{
var
elem
=
$
(
'
li
[id^=resource_
'
+
Docs
.
escapeResourceName
(
resource
)
+
'
]
ul.endpoints
'
);
var
elem
=
$
(
'
li
#resource_
'
+
Docs
.
escapeResourceName
(
resource
)
+
'
ul.endpoints
'
);
if
(
elem
.
is
(
'
:visible
'
))
{
Docs
.
collapseEndpointListForResource
(
resource
);
}
else
{
...
...
@@ -125,24 +125,27 @@ var Docs = {
// Expand resource
expandEndpointListForResource
:
function
(
resource
)
{
$
(
'
[id^=resource_
'
+
resource
+
'
]
'
).
addClass
(
'
active
'
);
var
resource
=
Docs
.
escapeResourceName
(
resource
);
$
(
'
li#resource_
'
+
resource
).
addClass
(
'
active
'
);
var
elem
=
$
(
'
li
[id^=resource_
'
+
Docs
.
escapeResourceName
(
resource
)
+
'
]
ul.endpoints
'
);
var
elem
=
$
(
'
li
#resource_
'
+
resource
+
'
ul.endpoints
'
);
elem
.
slideDown
();
},
// Collapse resource and mark as explicitly closed
collapseEndpointListForResource
:
function
(
resource
)
{
$
(
'
[id^=resource_
'
+
resource
+
'
]
'
).
removeClass
(
'
active
'
);
var
resource
=
Docs
.
escapeResourceName
(
resource
);
$
(
'
li#resource_
'
+
resource
).
removeClass
(
'
active
'
);
var
elem
=
$
(
'
li
[id^=resource_
'
+
Docs
.
escapeResourceName
(
resource
)
+
'
]
ul.endpoints
'
);
var
elem
=
$
(
'
li
#resource_
'
+
resource
+
'
ul.endpoints
'
);
elem
.
slideUp
();
},
expandOperationsForResource
:
function
(
resource
)
{
// Make sure the resource container is open..
Docs
.
expandEndpointListForResource
(
resource
);
$
(
'
li[id^=resource_
'
+
Docs
.
escapeResourceName
(
resource
)
+
'
] li.operation div.content
'
).
each
(
function
()
{
$
(
'
li#resource_
'
+
Docs
.
escapeResourceName
(
resource
)
+
'
li.operation div.content
'
).
each
(
function
()
{
Docs
.
expandOperation
(
$
(
this
));
});
},
...
...
@@ -150,13 +153,14 @@ var Docs = {
collapseOperationsForResource
:
function
(
resource
)
{
// Make sure the resource container is open..
Docs
.
expandEndpointListForResource
(
resource
);
$
(
'
li[id^=resource_
'
+
Docs
.
escapeResourceName
(
resource
)
+
'
] li.operation div.content
'
).
each
(
function
()
{
$
(
'
li#resource_
'
+
Docs
.
escapeResourceName
(
resource
)
+
'
li.operation div.content
'
).
each
(
function
()
{
Docs
.
collapseOperation
(
$
(
this
));
});
},
escapeResourceName
:
function
(
resource
)
{
return
resource
.
replace
(
/
[
!"#$%&'()*+,.
\/
:;<=>?@
\[\\\]\^
`{|}~
]
/g
,
"
\\
$&
"
)
return
resource
.
replace
(
/
[
!"#$%&'()*+,.
\/
:;<=>?@
\[\\\]\^
`{|}~
]
/g
,
"
\\
$&
"
);
},
expandOperation
:
function
(
elem
)
{
...
...
@@ -167,4 +171,4 @@ var Docs = {
elem
.
slideUp
();
}
};
\ No newline at end of file
};
src/main/template/main.handlebars
浏览文件 @
9b58ed54
...
...
@@ -6,6 +6,9 @@
<div
class=
"footer"
>
<br>
<br>
<h4
style=
"color: #999"
>
[
<span
style=
"font-variant: small-caps"
>
base url
</span>
:
{{
basePath
}}
]
</h4>
<h4
style=
"color: #999"
>
[
<span
style=
"font-variant: small-caps"
>
base url
</span>
:
{{
basePath
}}
{{#if
apiVersion
}}
,
<span
style=
"font-variant: small-caps"
>
api version
</span>
:
{{
apiVersion
}}
{{/if}}
]
</h4>
</div>
</div>
\ No newline at end of file
</div>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录