mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
Added webpack-bundle-analyzer to production build. Refactored some modules to improve performance. Removed moment-timezone from Utils to drastically reduce module size.
This commit is contained in:
parent
b29bb6fdd7
commit
43dcd544f2
48 changed files with 207 additions and 102 deletions
|
@ -10,6 +10,7 @@ import Manager from "./Manager";
|
|||
import HTMLCategory from "./HTMLCategory";
|
||||
import HTMLOperation from "./HTMLOperation";
|
||||
import Split from "split.js";
|
||||
import moment from "moment-timezone";
|
||||
|
||||
|
||||
/**
|
||||
|
@ -515,7 +516,8 @@ class App {
|
|||
setCompileMessage() {
|
||||
// Display time since last build and compile message
|
||||
const now = new Date(),
|
||||
timeSinceCompile = Utils.fuzzyTime(now.getTime() - window.compileTime);
|
||||
msSinceCompile = now.getTime() - window.compileTime,
|
||||
timeSinceCompile = moment.duration(msSinceCompile, "milliseconds").humanize();
|
||||
|
||||
// Calculate previous version to compare to
|
||||
const prev = PKG_VERSION.split(".").map(n => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue