Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: client/web/category.dart

Issue 60233005: Remove WIP label, make categories always expanded, move build number down. (Closed) Base URL: https://github.com/dart-lang/dartdoc-viewer.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « client/web/app.dart ('k') | client/web/category.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library category; 5 library category;
6 6
7 import 'package:polymer/polymer.dart'; 7 import 'package:polymer/polymer.dart';
8 import 'package:dartdoc_viewer/item.dart'; 8 import 'package:dartdoc_viewer/item.dart';
9 import 'app.dart'; 9 import 'app.dart';
10 import 'member.dart'; 10 import 'member.dart';
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 var _variablesCache = null; 109 var _variablesCache = null;
110 var _everythingElseCache = null; 110 var _everythingElseCache = null;
111 111
112 _flushCache() { 112 _flushCache() {
113 _methodsCache = null; 113 _methodsCache = null;
114 _variablesCache = null; 114 _variablesCache = null;
115 _everythingElseCache = null; 115 _everythingElseCache = null;
116 } 116 }
117 117
118 @observable get accordionStyle => accordionStyleFor(viewer.isDesktop); 118 @observable get accordionStyle => accordionStyleFor(viewer.isDesktop);
119 accordionStyleFor(isDesktop) => isDesktop ? '' : 'collapsed'; 119 accordionStyleFor(isDesktop) => '';
Emily Fortuna 2013/11/05 20:16:06 I disagree with this change, but I'm waiting to he
120 @observable get accordionParent => accordionParentFor(viewer.isDesktop); 120 @observable get accordionParent => accordionParentFor(viewer.isDesktop);
121 accordionParentFor(isDesktop) => isDesktop ? '' : '#accordion-grouping'; 121 accordionParentFor(isDesktop) => isDesktop ? '' : '#accordion-grouping';
122 122
123 @observable get divClass => divClassFor(viewer.isDesktop); 123 @observable get divClass => divClassFor(viewer.isDesktop);
124 divClassFor(isDesktop) => isDesktop ? 'collapse in' : 'collapse'; 124 divClassFor(isDesktop) => 'collapse in';
125 @observable get divStyle => divStyleFor(viewer.isDesktop); 125 @observable get divStyle => divStyleFor(viewer.isDesktop);
126 divStyleFor(isDesktop) => isDesktop ? 'auto' : '0px'; 126 divStyleFor(isDesktop) => 'auto';
127 127
128 128
129 var validator = new NodeValidatorBuilder() 129 var validator = new NodeValidatorBuilder()
130 ..allowHtml5(uriPolicy: new SameProtocolUriPolicy()) 130 ..allowHtml5(uriPolicy: new SameProtocolUriPolicy())
131 ..allowCustomElement("method-panel", attributes: ["item"]) 131 ..allowCustomElement("method-panel", attributes: ["item"])
132 ..allowCustomElement("dartdoc-item", attributes: ["item"]) 132 ..allowCustomElement("dartdoc-item", attributes: ["item"])
133 ..allowCustomElement("dartdoc-variable", attributes: ["item"]) 133 ..allowCustomElement("dartdoc-variable", attributes: ["item"])
134 ..allowCustomElement("dartdoc-category-interior", attributes: ["item"]) 134 ..allowCustomElement("dartdoc-category-interior", attributes: ["item"])
135 ..allowTagExtension("method-panel", "div", attributes: ["item"]); 135 ..allowTagExtension("method-panel", "div", attributes: ["item"]);
136 136
137 hideShow(event, detail, AnchorElement target) { 137 hideShow(event, detail, AnchorElement target) {
138 var list = shadowRoot.querySelector(target.attributes["data-target"]); 138 var list = shadowRoot.querySelector(target.attributes["data-target"]);
139 if (list.classes.contains("in")) { 139 if (list.classes.contains("in")) {
140 list.classes.remove("in"); 140 list.classes.remove("in");
141 list.style.height = '0px'; 141 list.style.height = '0px';
142 } else { 142 } else {
143 list.classes.add("in"); 143 list.classes.add("in");
144 list.style.height = 'auto'; 144 list.style.height = 'auto';
145 } 145 }
146 } 146 }
147 147
148 @observable get currentLocation => window.location.toString(); 148 @observable get currentLocation => window.location.toString();
149 } 149 }
OLDNEW
« no previous file with comments | « client/web/app.dart ('k') | client/web/category.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698