Browse Source

:arrow_up: mermaid

Vanessa 1 year ago
parent
commit
1d6d3a21f9
2 changed files with 3 additions and 1 deletions
  1. 0 1
      src/js/mermaid/mermaid.min.js
  2. 3 0
      src/ts/util/function.ts

File diff suppressed because it is too large
+ 0 - 1
src/js/mermaid/mermaid.min.js


+ 3 - 0
src/ts/util/function.ts

@@ -0,0 +1,3 @@
+export const genUUID = () => ([1e7].toString() + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (c) =>
+    (parseInt(c, 10) ^ (window.crypto.getRandomValues(new Uint32Array(1))[0] & (15 >> (parseInt(c, 10) / 4)))).toString(16)
+);

Some files were not shown because too many files changed in this diff