Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

28
LINES

< > BotCompany Repo | #1016508 - Recently Deleted Modules [old, todo: adapt to new logs]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Compilation Failed (15129L/104K).

!7

DynTable > RecentlyDeletedModules {
  L<Map> calc() {
    ret reversed(map(scanLog_iterator(deletedModulesLogFile()),
      func(S structure) {
        O mod = safeUnstructure(structure);
        // old layout:
        // "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)"
        // new layout:
        // "hm{deleted=123L, module := c DynamicModule(...)}"
        long deleted = 0;
        if (mod instanceof Map) {
          deleted = toLong(mod/Map.get("deleted"));
          mod = mod/Map.get("module");
        }

        S className = dynShortName(mod);
        if (eq(className, "DynamicModule"))
          className = shortenClassName(getString(mod, '_className));
        ret litorderedmap(
          "Module ID" := joinNempties("/", getString(mod, 'moduleID), className),
          //"Created" := formatLocalDateWithMinutes(getOptLong(mod, 'created)),
          "Deleted" := formatLocalDateWithMinutes(deleted),
          "Data Size" := toK(l(structure)) + " K");
      }));
  }
}

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: 304 / 1830
Version history: 13 change(s)
Referenced in: [show references]