Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 1 | $.Class ("ChronoShare", { }, |
| 2 | { |
| 3 | init: function (username, foldername) { |
| 4 | $("#folder-name").text (foldername); |
| 5 | $("#user-name").text (username); |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 6 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 7 | this.username = new Name (username); |
| 8 | this.files = new Name ("/localhost").add (this.username).add ("chronoshare").add (foldername).add ("info").add ("files").add ("folder"); |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 9 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 10 | this.actions = new Name ("/localhost").add (this.username).add ("chronoshare").add (foldername).add ("info").add ("actions"); |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 11 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 12 | this.restore = new Name ("/localhost").add (this.username).add ("chronoshare").add (foldername).add ("cmd").add ("restore").add ("file"); |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 13 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 14 | this.ndn = new NDN ({host:"127.0.0.1"}); |
| 15 | }, |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 16 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 17 | run: function () { |
| 18 | console.log ("RUN page: " + PAGE); |
| 19 | $("#loader").fadeIn (500); |
| 20 | $("#error").addClass ("hidden"); |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 21 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 22 | cmd = {}; |
| 23 | if (PAGE == "fileList") { |
| 24 | cmd = this.info_files (PARAMS.item); |
| 25 | } |
| 26 | else if (PAGE == "folderHistory") { |
| 27 | cmd = this.info_actions ("folder", PARAMS.item); |
| 28 | } |
| 29 | else if (PAGE == "fileHistory") { |
| 30 | cmd = this.info_actions ("file", PARAMS.item); |
| 31 | } |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 32 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 33 | if (cmd.request && cmd.callback) { |
| 34 | console.log (cmd.request.to_uri ()); |
| 35 | this.ndn.expressInterest (cmd.request, cmd.callback); |
| 36 | } |
| 37 | else { |
| 38 | $("#loader").fadeOut (500); // ("hidden"); |
| 39 | $("#content").empty (); |
| 40 | if (cmd.error) { |
| 41 | $("#error").html (cmd.error); |
| 42 | } |
| 43 | else { |
| 44 | $("#error").html ("Unknown error with " + PAGE); |
| 45 | } |
| 46 | $("#error").removeClass ("hidden"); |
| 47 | } |
| 48 | }, |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 49 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 50 | info_files: function(folder) { |
| 51 | request = new Name ().add (this.files)./*add (folder_in_question).*/addSegment (PARAMS.offset?PARAMS.offset:0); |
| 52 | return { request:request, callback: new FilesClosure (this) }; |
| 53 | }, |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 54 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 55 | info_actions: function (type/*"file" or "folder"*/, fileOrFolder /*file or folder name*/) { |
| 56 | if (type=="file" && !fileOrFolder) { |
| 57 | return { error: "info_actions: fileOrFolder parameter is missing" }; |
| 58 | } |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 59 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 60 | request = new Name ().add (this.actions).add (type); |
| 61 | if (fileOrFolder) { |
| 62 | request.add (fileOrFolder); |
| 63 | } |
| 64 | request.addSegment (PARAMS.offset?PARAMS.offset:0); |
| 65 | return { request: request, callback: new HistoryClosure (this) }; |
| 66 | }, |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 67 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 68 | cmd_restore_file: function (filename, version, hash) { |
| 69 | request = new Name ().add (this.restore) |
| 70 | .add (filename) |
| 71 | .addSegment (version) |
| 72 | .add (hash); |
| 73 | console.log (request.to_uri ()); |
| 74 | } |
| 75 | }); |
Zhenkai Zhu | 5c2475b | 2013-02-26 22:57:31 -0800 | [diff] [blame] | 76 | |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 77 | $.Class ("FilesClosure", {}, { |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 78 | init: function (chronoshare) { |
| 79 | this.chronoshare = chronoshare; |
| 80 | }, |
| 81 | |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 82 | upcall: function(kind, upcallInfo) { |
| 83 | $("#loader").fadeOut (500); // ("hidden"); |
| 84 | if (kind == Closure.UPCALL_CONTENT) { |
| 85 | convertedData = DataUtils.toString (upcallInfo.contentObject.content); |
Alexander Afanasyev | c15e016 | 2013-02-28 23:38:52 -0800 | [diff] [blame] | 86 | if (PARAMS.debug) { |
| 87 | $("#json").text (convertedData); |
| 88 | $("#json").removeClass ("hidden"); |
| 89 | } |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 90 | data = JSON.parse (convertedData); |
Zhenkai Zhu | 5c2475b | 2013-02-26 22:57:31 -0800 | [diff] [blame] | 91 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 92 | tbody = $("<tbody />", { "id": "file-list-files" }); |
| 93 | |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 94 | // error handling? |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 95 | newcontent = $("<div />", { "id": "content" }).append ( |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 96 | $("<table />", { "class": "item-list" }) |
| 97 | .append ($("<thead />") |
| 98 | .append ($("<tr />") |
| 99 | .append ($("<th />", { "class": "filename border-left", "scope": "col" }).text ("Filename")) |
| 100 | .append ($("<th />", { "class": "version", "scope": "col" }).text ("Version")) |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 101 | .append ($("<th />", { "class": "size", "scope": "col" }).text ("Size")) |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 102 | .append ($("<th />", { "class": "modified", "scope": "col" }).text ("Modified")) |
| 103 | .append ($("<th />", { "class": "modified-by border-right", "scope": "col" }).text ("Modified By")))) |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 104 | .append (tbody) |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 105 | .append ($("<tfoot />") |
| 106 | .append ($("<tr />") |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 107 | .append ($("<td />", { "colspan": "5", "class": "border-right border-left" }))))); |
| 108 | newcontent.hide (); |
Zhenkai Zhu | 5c2475b | 2013-02-26 22:57:31 -0800 | [diff] [blame] | 109 | |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 110 | for (var i = 0; i < data.files.length; i++) { |
| 111 | file = data.files[i]; |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 112 | |
| 113 | row = $("<tr />"); |
| 114 | if (i%2) { row.addClass ("odd"); } |
| 115 | |
| 116 | row.bind('mouseenter mouseleave', function() { |
| 117 | $(this).toggleClass('highlighted'); |
| 118 | }); |
| 119 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 120 | row.attr ("filename", file.filename); //encodeURIComponent(encodeURIComponent(file.filename))); |
| 121 | |
Alexander Afanasyev | 39dbc4b | 2013-03-01 10:39:23 -0800 | [diff] [blame] | 122 | |
| 123 | row.bind('click', function (e) { |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 124 | url = new HistoryClosure (null).base_url ("fileHistory") |
| 125 | url += "&item=" + encodeURIComponent (encodeURIComponent ($(this).attr ("filename"))); |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 126 | |
| 127 | document.location = url; |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 128 | }); |
| 129 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 130 | row.append ($("<td />", { "class": "filename border-left" }).text (file.filename)); |
| 131 | row.append ($("<td />", { "class": "version" }).text (file.version)); |
| 132 | row.append ($("<td />", { "class": "size" }).text (SegNumToFileSize (file.segNum))); |
| 133 | row.append ($("<td />", { "class": "modified" }).text (new Date (file.timestamp))); |
| 134 | row.append ($("<td />", { "class": "modified-by border-right"}) |
Alexander Afanasyev | 46bd806 | 2013-02-27 23:59:15 -0800 | [diff] [blame] | 135 | .append ($("<userName />").text (file.owner.userName)) |
| 136 | .append ($("<seqNo> /").text (file.owner.seqNo))); |
| 137 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 138 | tbody = tbody.append (row); |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 139 | } |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 140 | |
| 141 | // if (!PARAMS.offset || PARAMS.offset==0) |
| 142 | // { |
| 143 | $("#content").fadeOut ("fast", function () { |
| 144 | $(this).replaceWith (newcontent); |
| 145 | $("#content").fadeIn ("fast"); |
| 146 | }); |
| 147 | |
| 148 | self = this; // small "cheat" |
| 149 | $("#content-nav").fadeOut ("fast", function () { |
| 150 | $("#content-nav a").hide (); |
| 151 | |
| 152 | if (PARAMS.offset !== undefined || data.more !== undefined) { |
| 153 | $("#content-nav").fadeIn ("fast"); |
| 154 | |
| 155 | if (data.more !== undefined) { |
| 156 | $("#get-more").show (); |
| 157 | |
| 158 | $("#get-more").unbind ('click').click (function () { |
| 159 | url = self.base_url (); |
| 160 | url += "&offset="+data.more; |
| 161 | |
| 162 | document.location = url; |
| 163 | }); |
| 164 | } |
| 165 | if (PARAMS.offset > 0) { |
| 166 | $("#get-less").show (); |
| 167 | |
| 168 | $("#get-less").unbind ('click').click (function () { |
| 169 | url = self.base_url (); |
| 170 | if (PARAMS.offset > 1) { |
| 171 | url += "&offset="+(PARAMS.offset - 1); |
| 172 | } |
| 173 | |
| 174 | document.location = url; |
| 175 | }); |
| 176 | } |
| 177 | } |
| 178 | }); |
| 179 | // } |
| 180 | // else { |
| 181 | // tbody.children ().each (function (index, row) { |
| 182 | // $("#history-list-actions").append (row); |
| 183 | // }); |
| 184 | // } |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 185 | } |
| 186 | else if (kind == Closure.UPCALL_INTEREST_TIMED_OUT) { |
| 187 | $("#error").html ("Interest timed out"); |
| 188 | $("#error").removeClass ("hidden"); |
| 189 | } |
| 190 | else { |
| 191 | $("#error").html ("Unknown error happened"); |
| 192 | $("#error").removeClass ("hidden"); |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 193 | } |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 194 | }, |
| 195 | |
| 196 | base_url: function () { |
| 197 | url = "#fileList"+ |
| 198 | "&user="+encodeURIComponent (encodeURIComponent (PARAMS.user)) + |
| 199 | "&folder="+encodeURIComponent (encodeURIComponent (PARAMS.folder)); |
| 200 | if (PARAMS.item !== undefined) { |
| 201 | url += "&item="+encodeURIComponent (encodeURIComponent (PARAMS.item)); |
| 202 | } |
| 203 | return url; |
Zhenkai Zhu | 5c2475b | 2013-02-26 22:57:31 -0800 | [diff] [blame] | 204 | } |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 205 | }); |
Zhenkai Zhu | 5c2475b | 2013-02-26 22:57:31 -0800 | [diff] [blame] | 206 | |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 207 | |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 208 | $.Class ("HistoryClosure", {}, { |
| 209 | init: function (chronoshare) { |
| 210 | this.chronoshare = chronoshare; |
| 211 | }, |
| 212 | |
| 213 | upcall: function(kind, upcallInfo) { |
| 214 | $("#loader").fadeOut (500); // ("hidden"); |
| 215 | if (kind == Closure.UPCALL_CONTENT) { |
| 216 | convertedData = DataUtils.toString (upcallInfo.contentObject.content); |
Alexander Afanasyev | c15e016 | 2013-02-28 23:38:52 -0800 | [diff] [blame] | 217 | if (PARAMS.debug) { |
| 218 | $("#json").text (convertedData); |
| 219 | $("#json").removeClass ("hidden"); |
| 220 | } |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 221 | data = JSON.parse (convertedData); |
| 222 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 223 | tbody = $("<tbody />", { "id": "history-list-actions" }); |
| 224 | |
| 225 | newcontent = $("<div />", { "id": "content" }).append ( |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 226 | $("<table />", { "class": "item-list" }) |
| 227 | .append ($("<thead />") |
| 228 | .append ($("<tr />") |
| 229 | .append ($("<th />", { "class": "filename border-left", "scope": "col" }).text ("Filename")) |
| 230 | .append ($("<th />", { "class": "version", "scope": "col" }).text ("Version")) |
| 231 | .append ($("<th />", { "class": "modified", "scope": "col" }).text ("Modified")) |
| 232 | .append ($("<th />", { "class": "modified-by border-right", "scope": "col" }).text ("Modified By")))) |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 233 | .append (tbody) |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 234 | .append ($("<tfoot />") |
| 235 | .append ($("<tr />") |
| 236 | .append ($("<td />", { "colspan": "4", "class": "border-right border-left" }))))); |
| 237 | |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 238 | for (var i = 0; i < data.actions.length; i++) { |
| 239 | action = data.actions[i]; |
| 240 | |
| 241 | row = $("<tr />"); |
| 242 | if (i%2) { row.addClass ("odd"); } |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 243 | if (action.action=="DELETE") { row.addClass ("delete"); } |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 244 | |
| 245 | row.bind('mouseenter mouseleave', function() { |
| 246 | $(this).toggleClass('highlighted'); |
| 247 | }); |
| 248 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 249 | // row.attr ("filename", );//encodeURIComponent(encodeURIComponent(action.filename))); |
| 250 | // row.attr ("version", |
Alexander Afanasyev | 39dbc4b | 2013-03-01 10:39:23 -0800 | [diff] [blame] | 251 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 252 | // row.bind('click', function (e) { |
| 253 | // url = "#fileHistory"; |
| 254 | // url += "&item=" + $(this).attr ("filename"); |
| 255 | // pos = URIPARAMS.indexOf ("&"); |
| 256 | // if (pos >= 0) { |
| 257 | // url += URIPARAMS.substring (pos) |
| 258 | // } |
Alexander Afanasyev | 39dbc4b | 2013-03-01 10:39:23 -0800 | [diff] [blame] | 259 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 260 | // document.location = url; |
| 261 | // }); |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 262 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 263 | row.append ($("<td />", { "class": "filename border-left" }).text (action.filename)); |
| 264 | row.append ($("<td />", { "class": "version" }).text (action.version)); |
| 265 | row.append ($("<td />", { "class": "timestamp" }).text (new Date (action.timestamp))); |
| 266 | row.append ($("<td />", { "class": "modified-by border-right" }) |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 267 | .append ($("<userName />").text (action.id.userName)) |
| 268 | .append ($("<seqNo> /").text (action.id.seqNo))); |
| 269 | |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 270 | tbody = tbody.append (row); |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 271 | } |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 272 | |
| 273 | // if (!PARAMS.offset || PARAMS.offset==0) |
| 274 | // { |
| 275 | $("#content").fadeOut ("fast", function () { |
| 276 | $(this).replaceWith (newcontent); |
| 277 | $("#content").fadeIn ("fast"); |
| 278 | }); |
| 279 | |
| 280 | self = this; // small "cheat" |
| 281 | $("#content-nav").fadeOut ("fast", function () { |
| 282 | $("#content-nav a").hide (); |
| 283 | |
| 284 | if (PARAMS.offset !== undefined || data.more !== undefined) { |
| 285 | $("#content-nav").fadeIn ("fast"); |
| 286 | |
| 287 | if (data.more !== undefined) { |
| 288 | $("#get-more").show (); |
| 289 | |
| 290 | $("#get-more").unbind ('click').click (function () { |
| 291 | url = self.base_url (PAGE); |
| 292 | url += "&offset="+data.more; |
| 293 | |
| 294 | document.location = url; |
| 295 | }); |
| 296 | } |
| 297 | if (PARAMS.offset > 0) { |
| 298 | $("#get-less").show (); |
| 299 | |
| 300 | $("#get-less").unbind ('click').click (function () { |
| 301 | url = self.base_url (PAGE); |
| 302 | if (PARAMS.offset > 1) { |
| 303 | url += "&offset="+(PARAMS.offset - 1); |
| 304 | } |
| 305 | |
| 306 | document.location = url; |
| 307 | }); |
| 308 | } |
| 309 | } |
| 310 | }); |
| 311 | // } |
| 312 | // else { |
| 313 | // tbody.children ().each (function (index, row) { |
| 314 | // $("#history-list-actions").append (row); |
| 315 | // }); |
| 316 | // } |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 317 | } |
| 318 | else if (kind == Closure.UPCALL_INTEREST_TIMED_OUT) { |
| 319 | $("#error").html ("Interest timed out"); |
| 320 | $("#error").removeClass ("hidden"); |
| 321 | } |
| 322 | else { |
| 323 | $("#error").html ("Unknown error happened"); |
| 324 | $("#error").removeClass ("hidden"); |
| 325 | } |
Alexander Afanasyev | 3c95c85 | 2013-03-01 18:58:50 -0800 | [diff] [blame^] | 326 | }, |
| 327 | |
| 328 | base_url: function (page) { |
| 329 | url = "#"+page+ |
| 330 | "&user="+encodeURIComponent (encodeURIComponent (PARAMS.user)) + |
| 331 | "&folder="+encodeURIComponent (encodeURIComponent (PARAMS.folder)); |
| 332 | if (PARAMS.item !== undefined) { |
| 333 | url += "&item="+encodeURIComponent (encodeURIComponent (PARAMS.item)); |
| 334 | } |
| 335 | return url; |
Alexander Afanasyev | f63a514 | 2013-02-28 02:21:42 -0800 | [diff] [blame] | 336 | } |
| 337 | }); |
| 338 | |
| 339 | |
Alexander Afanasyev | fd5e627 | 2013-02-27 20:25:20 -0800 | [diff] [blame] | 340 | |
| 341 | |