начал переделывание описания методов.
This commit is contained in:
parent
f5e55162b8
commit
7c91932413
823
.idea/workspace.xml
generated
823
.idea/workspace.xml
generated
File diff suppressed because it is too large
Load Diff
32
templates/initi/static/styles/full-method.css
Normal file
32
templates/initi/static/styles/full-method.css
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
.full-methods .title {
|
||||||
|
font-size: 28px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.full-methods .list {
|
||||||
|
padding-left: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.full-method {
|
||||||
|
color: #bdbdbd;
|
||||||
|
font-size: 17px;
|
||||||
|
}
|
||||||
|
.full-method > .access {
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
.full-method > .name {
|
||||||
|
color: #ff7801;
|
||||||
|
font-size: 17px;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.full-method .params {}
|
||||||
|
.full-method > .params > .param > .name {
|
||||||
|
color: #5c8e65;
|
||||||
|
}
|
||||||
|
.full-method .param .type {}
|
||||||
|
.full-method .param .type .left-quad-bracket {}
|
||||||
|
.full-method .param .type .name {}
|
||||||
|
.full-method .param .type .right-quad-bracket {}
|
@ -1,4 +1,5 @@
|
|||||||
@import url("min-method.css");
|
@import url("min-method.css");
|
||||||
|
@import url("full-method.css");
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Open Sans';
|
font-family: 'Open Sans';
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
}
|
}
|
||||||
.min-methods .list .compact-method .param .type .right-quad-bracket{}
|
.min-methods .list .compact-method .param .type .right-quad-bracket{}
|
||||||
.min-methods .list .compact-method .param .name{
|
.min-methods .list .compact-method .param .name{
|
||||||
color: #383838;
|
color: #a7a7a7;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
min-width: initial;
|
min-width: initial;
|
||||||
}
|
}
|
||||||
|
@ -152,17 +152,23 @@
|
|||||||
if (methods && methods.length && methods.forEach) {
|
if (methods && methods.length && methods.forEach) {
|
||||||
?>
|
?>
|
||||||
<div class="min-methods">
|
<div class="min-methods">
|
||||||
<div class="title">Methods list:</div>
|
<div class="title">Methods:</div>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<?js methods.forEach(function(m) { ?>
|
<?js methods.forEach(function(m) { ?>
|
||||||
<?js= self.partial('method_list.tmpl', m) ?>
|
<?js= self.partial('method_compact.tmpl', m) ?>
|
||||||
<?js }); ?>
|
<?js }); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h3 class="subsection-title methods">Methods</h3>
|
|
||||||
|
<div class="full-methods">
|
||||||
|
<div class="title">Full methods description:</div>
|
||||||
|
<div class="list">
|
||||||
<?js methods.forEach(function(m) { ?>
|
<?js methods.forEach(function(m) { ?>
|
||||||
<?js= self.partial('method.tmpl', m) ?>
|
<?js= self.partial('method_full.tmpl', m) ?>
|
||||||
<?js }); ?>
|
<?js }); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?js } ?>
|
<?js } ?>
|
||||||
|
|
||||||
<?js
|
<?js
|
||||||
|
32
templates/initi/tmpl/method_full.tmpl
Normal file
32
templates/initi/tmpl/method_full.tmpl
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?js
|
||||||
|
var data = obj;
|
||||||
|
var self = this;
|
||||||
|
|
||||||
|
//console.log(JSON.stringify(data, true, 3))
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="full-method" id="<?js= data.id ?>">
|
||||||
|
<span class="access">(<?js= data.access ?>)</span>
|
||||||
|
<span class="name"><?js= name ?></span>
|
||||||
|
<span class="params">
|
||||||
|
<span class="left-circle-bracket">(</span>
|
||||||
|
<?js
|
||||||
|
if(data.params){
|
||||||
|
var a = 0;
|
||||||
|
while(a < data.params.length){
|
||||||
|
var param = data.params[a];
|
||||||
|
if(!param) { a++; continue; }
|
||||||
|
//console.log(JSON.stringify(param,true,3))
|
||||||
|
var type = param.type.names[0];
|
||||||
|
?>
|
||||||
|
<span class="param">
|
||||||
|
<span class="name"><?js= param.name ?></span><?js if(a < data.params.length - 1) { ?>,<?js } ?>
|
||||||
|
</span>
|
||||||
|
<?js
|
||||||
|
a++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<span class="right-circle-bracket">)</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
Loading…
x
Reference in New Issue
Block a user