Loading template/app/view/cls/Overview.js +20 −10 Original line number Diff line number Diff line Loading @@ -182,7 +182,7 @@ Ext.define('Docs.view.cls.Overview', { '<a href="#/api/{member}" rel="{member}" class="definedIn docClass">{member}</a><br/>', '<a href="source/{href}" target="_blank" class="viewSource">view source</a>', '</div>', '<a href="#/api/{member}-{tagname}-{name}" class="name {expandable}">{name}</a>{signature}', '{signature}', '</div>', // short and long descriptions '<div class="description">', Loading Loading @@ -213,29 +213,39 @@ Ext.define('Docs.view.cls.Overview', { }, renderSignature: function(member) { var signature; this.signatureTpl = this.signatureTpl || new Ext.XTemplate( '{before}<a href="#/api/{member}-{tagname}-{name}" class="name {expandable}">{name}</a>{params}{after}' ); var cfg = Ext.apply({}, member); cfg.expandable = member.shortDoc ? "expandable" : "not-expandable"; if (member.tagname === "method" && member.name === member.member.replace(/^.*\./, "")) { cfg.before = "<strong class='constructor-signature'>new</strong>"; } if (member.tagname === "cfg" || member.tagname === "property") { signature = "<span> : " + member.type + "</span>"; cfg.params = "<span> : " + member.type + "</span>"; } else { var ps = Ext.Array.map(member.params, this.renderShortParam, this).join(", "); signature = '( <span class="pre">' + ps + "</span> )"; cfg.params = '( <span class="pre">' + ps + "</span> )"; if (member.tagname === "method") { signature += " : " + member["return"].type; cfg.params += " : " + member["return"].type; } } if (member.protected) { signature += "<strong class='protected-signature'>protected</strong>"; cfg.after = "<strong class='protected-signature'>protected</strong>"; } if (member.static) { signature += "<strong class='static-signature'>static</strong>"; cfg.after = "<strong class='static-signature'>static</strong>"; } if (member.deprecated) { signature += "<strong class='deprecated-signature'>deprecated</strong>"; cfg.after = "<strong class='deprecated-signature'>deprecated</strong>"; } return signature; return this.signatureTpl.apply(cfg); }, renderShortParam: function(param) { Loading template/resources/sass/viewport.scss +5 −9 Original line number Diff line number Diff line Loading @@ -510,7 +510,7 @@ a:hover { .class-overview { .deprecated-signature, .protected-signature, .static-signature { .deprecated-signature, .protected-signature, .static-signature, .constructor-signature { font-weight: bold; text-transform: uppercase; color: white; Loading @@ -524,14 +524,10 @@ a:hover { background-color: #aaa; } .static-signature { background-color: #484848; } .new { font-weight: bold; color: white; font-size: 0.7em; @include border-radius(2px); margin-left: 5px; padding: 0 3px; background-color: #00aa00; } .constructor-signature { margin-left: 0; margin-right: 5px; background-color: #484848; } .cfgGroup { margin: 10px 0 3px 0; } } Loading Loading
template/app/view/cls/Overview.js +20 −10 Original line number Diff line number Diff line Loading @@ -182,7 +182,7 @@ Ext.define('Docs.view.cls.Overview', { '<a href="#/api/{member}" rel="{member}" class="definedIn docClass">{member}</a><br/>', '<a href="source/{href}" target="_blank" class="viewSource">view source</a>', '</div>', '<a href="#/api/{member}-{tagname}-{name}" class="name {expandable}">{name}</a>{signature}', '{signature}', '</div>', // short and long descriptions '<div class="description">', Loading Loading @@ -213,29 +213,39 @@ Ext.define('Docs.view.cls.Overview', { }, renderSignature: function(member) { var signature; this.signatureTpl = this.signatureTpl || new Ext.XTemplate( '{before}<a href="#/api/{member}-{tagname}-{name}" class="name {expandable}">{name}</a>{params}{after}' ); var cfg = Ext.apply({}, member); cfg.expandable = member.shortDoc ? "expandable" : "not-expandable"; if (member.tagname === "method" && member.name === member.member.replace(/^.*\./, "")) { cfg.before = "<strong class='constructor-signature'>new</strong>"; } if (member.tagname === "cfg" || member.tagname === "property") { signature = "<span> : " + member.type + "</span>"; cfg.params = "<span> : " + member.type + "</span>"; } else { var ps = Ext.Array.map(member.params, this.renderShortParam, this).join(", "); signature = '( <span class="pre">' + ps + "</span> )"; cfg.params = '( <span class="pre">' + ps + "</span> )"; if (member.tagname === "method") { signature += " : " + member["return"].type; cfg.params += " : " + member["return"].type; } } if (member.protected) { signature += "<strong class='protected-signature'>protected</strong>"; cfg.after = "<strong class='protected-signature'>protected</strong>"; } if (member.static) { signature += "<strong class='static-signature'>static</strong>"; cfg.after = "<strong class='static-signature'>static</strong>"; } if (member.deprecated) { signature += "<strong class='deprecated-signature'>deprecated</strong>"; cfg.after = "<strong class='deprecated-signature'>deprecated</strong>"; } return signature; return this.signatureTpl.apply(cfg); }, renderShortParam: function(param) { Loading
template/resources/sass/viewport.scss +5 −9 Original line number Diff line number Diff line Loading @@ -510,7 +510,7 @@ a:hover { .class-overview { .deprecated-signature, .protected-signature, .static-signature { .deprecated-signature, .protected-signature, .static-signature, .constructor-signature { font-weight: bold; text-transform: uppercase; color: white; Loading @@ -524,14 +524,10 @@ a:hover { background-color: #aaa; } .static-signature { background-color: #484848; } .new { font-weight: bold; color: white; font-size: 0.7em; @include border-radius(2px); margin-left: 5px; padding: 0 3px; background-color: #00aa00; } .constructor-signature { margin-left: 0; margin-right: 5px; background-color: #484848; } .cfgGroup { margin: 10px 0 3px 0; } } Loading