Libraryless. Compilation Failed (15129L/104K).
1 | !7 |
2 | |
3 | DynTable > RecentlyDeletedModules {
|
4 | L<Map> calc() {
|
5 | ret reversed(map(scanLog_iterator(deletedModulesLogFile()), |
6 | func(S structure) {
|
7 | O mod = safeUnstructure(structure); |
8 | // old layout: |
9 | // "c DynamicModule(_className=\"main$TextArea\", created=1529499892012L, frameRect=Rect(h=66, w=130, x=618, y=339), id=384L, moduleID=\"#1016122\", on=t, visible=t)" |
10 | // new layout: |
11 | // "hm{deleted=123L, module := c DynamicModule(...)}"
|
12 | long deleted = 0; |
13 | if (mod instanceof Map) {
|
14 | deleted = toLong(mod/Map.get("deleted"));
|
15 | mod = mod/Map.get("module");
|
16 | } |
17 | |
18 | S className = dynShortName(mod); |
19 | if (eq(className, "DynamicModule")) |
20 | className = shortenClassName(getString(mod, '_className)); |
21 | ret litorderedmap( |
22 | "Module ID" := joinNempties("/", getString(mod, 'moduleID), className),
|
23 | //"Created" := formatLocalDateWithMinutes(getOptLong(mod, 'created)), |
24 | "Deleted" := formatLocalDateWithMinutes(deleted), |
25 | "Data Size" := toK(l(structure)) + " K"); |
26 | })); |
27 | } |
28 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016508 |
| Snippet name: | Recently Deleted Modules [old, todo: adapt to new logs] |
| Eternal ID of this version: | #1016508/14 |
| Text MD5: | 1126f13200d1ba2bdf6ca103db262419 |
| Transpilation MD5: | e5e501a69606ce37ad254aac9e7fc403 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-10 13:20:08 |
| Source code size: | 1135 bytes / 28 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 746 / 2385 |
| Version history: | 13 change(s) |
| Referenced in: | [show references] |