Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: chrome/content/crawler.xul

Issue 9615013: Crawler, first version (Closed)
Patch Set: Created March 6, 2013, 4:05 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3 <!DOCTYPE dialog SYSTEM "chrome://abpcrawler/locale/crawler.dtd">
2 4
3 <!-- This Source Code is subject to the terms of the Mozilla Public License 5 <!-- This Source Code is subject to the terms of the Mozilla Public License
4 - version 2.0 (the "License"). You can obtain a copy of the License at 6 - version 2.0 (the "License"). You can obtain a copy of the License at
5 - http://mozilla.org/MPL/2.0/. --> 7 - http://mozilla.org/MPL/2.0/. -->
6 8
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 9 <!-- onload="load();" -->
10 <dialog
11 id="abpcrawler-crawler"
12 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
13 title="&dialog.title;"
14 onload="loader();"
15 onunload="unloader();"
16 buttons=","
17 buttonlabelcancel="&close.label;"
18 buttonaccesskeycancel="&close.accesskey;"
19 width="500px"
20 height="200px"
21 windowtype="abpcrawler:crawl">
8 22
9 <!DOCTYPE dialog SYSTEM "chrome://abpcrawler/locale/crawler.dtd"> 23 <script type="application/x-javascript;version=1.7" src="crawler_ui.js"/>
24 <script type="application/x-javascript;version=1.7" src="task_test_ui.js"/>
25 <script type="application/x-javascript;version=1.7" src="sandbox_ui.js"/>
10 26
11 <dialog 27 <tabbox selectedIndex="0">
12 id="abpcrawler-crawler" 28 <tabs>
13 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 29 <tab label="Crawler"/>
14 title="&dialog.title;" 30 <tab label="Long_Task Test"/>
15 onunload="onUnload();" 31 <tab label="Sandbox"/>
16 ondialogaccept="return onAccept();" 32 </tabs>
17 ondialogcancel="return onCancel();" 33 <tabpanels>
18 buttons="accept,cancel" 34 <tabpanel>
19 buttonlabelaccept="&crawl.label;" 35 <vbox>
20 buttonaccesskeyaccept="&crawl.accesskey;" 36 <groupbox>
21 buttonlabelcancel="&close.label;" 37 <caption label="Instructions"/>
22 buttonaccesskeycancel="&close.accesskey;" 38 <tabbox id="instructions_tabbox" selectedIndex="1">
23 width="500px" 39 <tabs>
24 height="200px" 40 <tab label="Server"/>
25 windowtype="abpcrawler:crawl"> 41 <tab label="Local"/>
42 <tab label="Fixed"/>
43 </tabs>
44 <tabpanels>
45 <tabpanel>
46 <label>Server instructions not implemented.< /label>
47 </tabpanel>
48 <tabpanel>
49 <vbox>
50 <label>Read input from the local file sy stem.</label>
51 <hbox align="center">
52 <label>Input File</label>
53 <!-- Icon from http://openiconlibrar y.sourceforge.net/ -->
54 <image id="input_file_icon"
55 src="chrome://abpcrawler/skin /text-x-source.png"
56 tooltiptext="Change the input file"/>
57 <textbox id="input_file"
58 placeholder="&lt;no input f ile&gt;"
59 size="60"/>
60 </hbox>
61 </vbox>
62 </tabpanel>
63 <tabpanel>
64 <label>Use Fixed List</label>
65 </tabpanel>
66 </tabpanels>
67 </tabbox>
68 </groupbox>
69 <groupbox>
70 <caption label="Tabs"/>
71 <vbox>
72 <hbox align="center">
73 <label>Simultaneous Loads</label>
74 <textbox
75 id="number_of_tabs" type="number" min="1 " value="5"
76 width="32"
77 persist="value"/>
78 </hbox>
79 <checkbox id="leave_open"
80 label="Leave tabs open"
81 checked="false"
82 persist="checked"/>
83 </vbox>
84 </groupbox>
85 <groupbox>
86 <caption label="Output Format"/>
87 <radiogroup id="format">
88 <radio id="json" label="JSON" selected="true"/>
89 <radio id="yaml" label="YAML"/>
90 </radiogroup>
91 </groupbox>
92 <groupbox>
93 <caption label="Storage"/>
94 <tabbox id="storage_tabbox" selectedIndex="1">
95 <tabs>
96 <tab label="Server"/>
97 <tab label="Local"/>
98 <tab label="None"/>
99 </tabs>
100 <tabpanels>
101 <tabpanel>
102 <label>Server reporting not yet implemented. </label>
103 </tabpanel>
104 <tabpanel>
105 <vbox>
106 <label>Write output to the local file sy stem.</label>
107 <hbox align="center">
108 <label>Base Name</label>
109 <textbox id="base_name" value="crawl -results"/>
110 </hbox>
111 <hbox align="center">
112 <label>Directory</label>
113 <!-- Icon from http://openiconlibrar y.sourceforge.net/ -->
114 <image id="output_directory_icon"
115 src="chrome://abpcrawler/skin /folder.png"
116 tooltiptext="Change the outpu t directory"/>
117 <textbox id="output_directory"
118 placeholder="&lt;current di rectory&gt;"
119 size="60"/>
120 </hbox>
121 </vbox>
122 </tabpanel>
123 <tabpanel>
124 <label>No Reporting.</label>
125 </tabpanel>
126 </tabpanels>
127 </tabbox>
128 </groupbox>
129 <button id="crawl_go"
130 oncommand="start_crawl();"
131 align="end" class="dialog"
132 label="&crawl_start.label;"/>
133 <spacer flex="1"/>
134 <hbox>
135 <label id="lower_left"></label>
136 </hbox>
137 </vbox>
138 <vbox>
139 <hbox>
140 <checkbox id="display_log"
141 label="Display output as it's generated"
142 checked="false"/>
143 <spacer flex="1"/>
144 <label id="progress_label"/>
145 <label id="progress"/>
146 </hbox>
147 <textbox id="log_box"
148 multiline="true" cols="132" rows="40" wrap="off"
149 readonly="true"
150 placeholder="Activity Log"/>
151 </vbox>
152 </tabpanel>
153 <tabpanel>
154 <vbox>
155 <radiogroup id="counting_variant">
156 <radio id="continuous" label="Continuous"/>
157 <radio id="segmented_fast" label="Segmented Fast"/>
158 <hbox>
159 <radio id="segmented_slow" label="Segmented Slow" se lected="true"/>
160 <textbox id="slow_interval" type="number" value="100 "/>
161 </hbox>
162 </radiogroup>
163 <hbox>
164 <label>Number of iterations</label>
165 <textbox id="task_count" type="number" value="100000"/>
166 </hbox>
167 <hbox>
168 <label>Runaway limit</label>
169 <textbox id="task_limit" type="number" value="150000"/>
170 </hbox>
171 <spacer flex="1"/>
172 <hbox>
173 <label>Status:</label>
174 <label id="task_status"></label>
175 </hbox>
176 </vbox>
177 <spacer flex="1"/>
178 <vbox>
179 <spacer flex="1"/>
180 <button id="task_go" label="Start" oncommand="task_start_cli ck();"/>
181 </vbox>
182 </tabpanel>
183 <tabpanel>
184 <button id="sandbox_go"
185 label="Go"
186 maxwidth="100" maxheight="24"
187 flex="0"
188 oncommand="sandbox_start();"/>
189 <vbox flex="1">
190 <textbox id="sandbox_output"
191 multiline="true" wrap="off"
192 rows="40"/>
193 </vbox>
26 194
27 <script type="application/x-javascript;version=1.7" src="crawler.js"/> 195 </tabpanel>
196 </tabpanels>
197 </tabbox>
28 198
29 <vbox>
30 <label control="backend-url" value="Backend URL:"/>
31 <textbox
32 id="backend-url" value="https://www.adblockplus.org" flex="1"
33 persist="value"/>
34 </vbox>
35
36 <vbox>
37 <label control="parallel-tabs" value="Parallel Tabs:"/>
38 <textbox
39 id="parallel-tabs" type="number" min="1" value="5"
40 persist="value"/>
41 </vbox>
42 </dialog> 199 </dialog>
OLDNEW
« .hgignore ('K') | « chrome/content/crawler.js ('k') | chrome/content/crawler_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld