Просмотр исходного кода

fix import PageTreeContentSkeleton

WNomunomu 2 лет назад
Родитель
Сommit
9af23e2989

+ 2 - 1
apps/app/src/components/ItemsTree/ItemsTree.tsx

@@ -25,9 +25,10 @@ import { usePageTreeDescCountMap, useSidebarScrollerRef } from '~/stores/ui';
 import { useGlobalSocket } from '~/stores/websocket';
 import { useGlobalSocket } from '~/stores/websocket';
 import loggerFactory from '~/utils/logger';
 import loggerFactory from '~/utils/logger';
 
 
-import PageTreeContentSkeleton from '../Sidebar/Skeleton/PageTreeContentSkeleton';
 import { ItemNode, SimpleItemProps } from '../TreeItem';
 import { ItemNode, SimpleItemProps } from '../TreeItem';
 
 
+import PageTreeContentSkeleton from './PageTreeContentSkeleton';
+
 import styles from './ItemsTree.module.scss';
 import styles from './ItemsTree.module.scss';
 
 
 const logger = loggerFactory('growi:cli:ItemsTree');
 const logger = loggerFactory('growi:cli:ItemsTree');

+ 1 - 1
apps/app/src/components/ItemsTree/PageTree.tsx

@@ -7,9 +7,9 @@ import { useCurrentPagePath, useCurrentPageId } from '~/stores/page';
 import { useSWRxV5MigrationStatus } from '~/stores/page-listing';
 import { useSWRxV5MigrationStatus } from '~/stores/page-listing';
 
 
 import { PageTreeItem } from '../Sidebar/PageTreeItem/PageTreeItem';
 import { PageTreeItem } from '../Sidebar/PageTreeItem/PageTreeItem';
-import DefaultContentSkeleton from '../Sidebar/Skeleton/DefaultContentSkeleton';
 
 
 import { ItemsTree } from './ItemsTree';
 import { ItemsTree } from './ItemsTree';
+import PageTreeContentSkeleton from './PageTreeContentSkeleton';
 import { PrivateLegacyPagesLink } from './PrivateLegacyPagesLink';
 import { PrivateLegacyPagesLink } from './PrivateLegacyPagesLink';
 
 
 const PageTreeHeader = () => {
 const PageTreeHeader = () => {

+ 1 - 1
apps/app/src/components/ItemsTree/PageTreeContentSkeleton.tsx

@@ -2,7 +2,7 @@ import React from 'react';
 
 
 import { Skeleton } from '~/components/Skeleton';
 import { Skeleton } from '~/components/Skeleton';
 
 
-import styles from '../../ItemsTree/ItemsTree.module.scss';
+import styles from './ItemsTree.module.scss';
 
 
 const PageTreeContentSkeleton = (): JSX.Element => {
 const PageTreeContentSkeleton = (): JSX.Element => {
 
 

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
packages/hackmd/dist/hackmd-agent.cjs


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
packages/hackmd/dist/hackmd-agent.cjs.map


+ 357 - 0
packages/hackmd/dist/hackmd-agent.js

@@ -0,0 +1,357 @@
+function j(r) {
+  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
+}
+var F = { exports: {} }, i = {};
+Object.defineProperty(i, "__esModule", {
+  value: !0
+});
+i.DATA_CLONE_ERROR = i.MESSAGE = i.REJECTED = i.FULFILLED = i.REPLY = i.CALL = i.HANDSHAKE_REPLY = i.HANDSHAKE = void 0;
+const J = "handshake";
+i.HANDSHAKE = J;
+const W = "handshake-reply";
+i.HANDSHAKE_REPLY = W;
+const B = "call";
+i.CALL = B;
+const q = "reply";
+i.REPLY = q;
+const k = "fulfilled";
+i.FULFILLED = k;
+const Q = "rejected";
+i.REJECTED = Q;
+const X = "message";
+i.MESSAGE = X;
+const Z = "DataCloneError";
+i.DATA_CLONE_ERROR = Z;
+var N = {};
+Object.defineProperty(N, "__esModule", {
+  value: !0
+});
+N.ERR_NO_IFRAME_SRC = N.ERR_NOT_IN_IFRAME = N.ERR_CONNECTION_TIMEOUT = N.ERR_CONNECTION_DESTROYED = void 0;
+const ee = "ConnectionDestroyed";
+N.ERR_CONNECTION_DESTROYED = ee;
+const re = "ConnectionTimeout";
+N.ERR_CONNECTION_TIMEOUT = re;
+const te = "NotInIframe";
+N.ERR_NOT_IN_IFRAME = te;
+const ne = "NoIframeSrc";
+N.ERR_NO_IFRAME_SRC = ne;
+var $ = { exports: {} };
+(function(r, e) {
+  Object.defineProperty(e, "__esModule", {
+    value: !0
+  }), e.default = void 0;
+  var t = () => {
+    const n = [];
+    let c = !1;
+    return {
+      destroy() {
+        c = !0, n.forEach((a) => {
+          a();
+        });
+      },
+      onDestroy(a) {
+        c ? a() : n.push(a);
+      }
+    };
+  };
+  e.default = t, r.exports = e.default;
+})($, $.exports);
+var oe = $.exports, H = { exports: {} }, A = {};
+Object.defineProperty(A, "__esModule", {
+  value: !0
+});
+A.deserializeError = A.serializeError = void 0;
+const ae = (r) => {
+  let e = r.name, t = r.message, n = r.stack;
+  return {
+    name: e,
+    message: t,
+    stack: n
+  };
+};
+A.serializeError = ae;
+const ie = (r) => {
+  const e = new Error();
+  return Object.keys(r).forEach((t) => e[t] = r[t]), e;
+};
+A.deserializeError = ie;
+(function(r, e) {
+  Object.defineProperty(e, "__esModule", {
+    value: !0
+  }), e.default = void 0;
+  var t = i, n = A, c = (a, u, v) => {
+    const s = a.localName, _ = a.local, E = a.remote, p = a.originForSending, l = a.originForReceiving;
+    let f = !1;
+    v(`${s}: Connecting call receiver`);
+    const O = (d) => {
+      if (d.source !== E || d.data.penpal !== t.CALL)
+        return;
+      if (d.origin !== l) {
+        v(`${s} received message from origin ${d.origin} which did not match expected origin ${l}`);
+        return;
+      }
+      const h = d.data, D = h.methodName, S = h.args, T = h.id;
+      v(`${s}: Received ${D}() call`);
+      const g = (R) => (m) => {
+        if (v(`${s}: Sending ${D}() reply`), f) {
+          v(`${s}: Unable to send ${D}() reply due to destroyed connection`);
+          return;
+        }
+        const C = {
+          penpal: t.REPLY,
+          id: T,
+          resolution: R,
+          returnValue: m
+        };
+        R === t.REJECTED && m instanceof Error && (C.returnValue = (0, n.serializeError)(m), C.returnValueIsError = !0);
+        try {
+          E.postMessage(C, p);
+        } catch (L) {
+          throw L.name === t.DATA_CLONE_ERROR && E.postMessage({
+            penpal: t.REPLY,
+            id: T,
+            resolution: t.REJECTED,
+            returnValue: (0, n.serializeError)(L),
+            returnValueIsError: !0
+          }, p), L;
+        }
+      };
+      new Promise((R) => R(u[D].apply(u, S))).then(g(t.FULFILLED), g(t.REJECTED));
+    };
+    return _.addEventListener(t.MESSAGE, O), () => {
+      f = !0, _.removeEventListener(t.MESSAGE, O);
+    };
+  };
+  e.default = c, r.exports = e.default;
+})(H, H.exports);
+var se = H.exports, x = { exports: {} }, Y = { exports: {} };
+(function(r, e) {
+  Object.defineProperty(e, "__esModule", {
+    value: !0
+  }), e.default = void 0;
+  let t = 0;
+  var n = () => ++t;
+  e.default = n, r.exports = e.default;
+})(Y, Y.exports);
+var ce = Y.exports;
+(function(r, e) {
+  Object.defineProperty(e, "__esModule", {
+    value: !0
+  }), e.default = void 0;
+  var t = i, n = N, c = u(ce), a = A;
+  function u(s) {
+    return s && s.__esModule ? s : { default: s };
+  }
+  var v = (s, _, E, p, l) => {
+    const f = _.localName, O = _.local, d = _.remote, h = _.originForSending, D = _.originForReceiving;
+    let S = !1;
+    l(`${f}: Connecting call sender`);
+    const T = (g) => function() {
+      for (var R = arguments.length, m = new Array(R), C = 0; C < R; C++)
+        m[C] = arguments[C];
+      l(`${f}: Sending ${g}() call`);
+      let L;
+      try {
+        d.closed && (L = !0);
+      } catch {
+        L = !0;
+      }
+      if (L && p(), S) {
+        const w = new Error(`Unable to send ${g}() call due to destroyed connection`);
+        throw w.code = n.ERR_CONNECTION_DESTROYED, w;
+      }
+      return new Promise((w, P) => {
+        const M = (0, c.default)(), I = (o) => {
+          if (o.source !== d || o.data.penpal !== t.REPLY || o.data.id !== M)
+            return;
+          if (o.origin !== D) {
+            l(`${f} received message from origin ${o.origin} which did not match expected origin ${D}`);
+            return;
+          }
+          l(`${f}: Received ${g}() reply`), O.removeEventListener(t.MESSAGE, I);
+          let y = o.data.returnValue;
+          o.data.returnValueIsError && (y = (0, a.deserializeError)(y)), (o.data.resolution === t.FULFILLED ? w : P)(y);
+        };
+        O.addEventListener(t.MESSAGE, I), d.postMessage({
+          penpal: t.CALL,
+          id: M,
+          methodName: g,
+          args: m
+        }, h);
+      });
+    };
+    return E.reduce((g, R) => (g[R] = T(R), g), s), () => {
+      S = !0;
+    };
+  };
+  e.default = v, r.exports = e.default;
+})(x, x.exports);
+var de = x.exports, G = { exports: {} };
+(function(r, e) {
+  Object.defineProperty(e, "__esModule", {
+    value: !0
+  }), e.default = void 0;
+  var t = (n) => function() {
+    if (n) {
+      for (var c = arguments.length, a = new Array(c), u = 0; u < c; u++)
+        a[u] = arguments[u];
+      console.log("[Penpal]", ...a);
+    }
+  };
+  e.default = t, r.exports = e.default;
+})(G, G.exports);
+var le = G.exports;
+(function(r, e) {
+  Object.defineProperty(e, "__esModule", {
+    value: !0
+  }), e.default = void 0;
+  var t = i, n = N, c = s(oe), a = s(se), u = s(de), v = s(le);
+  function s(E) {
+    return E && E.__esModule ? E : { default: E };
+  }
+  var _ = function() {
+    let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = p.parentOrigin, f = l === void 0 ? "*" : l, O = p.methods, d = O === void 0 ? {} : O, h = p.timeout, D = p.debug;
+    const S = (0, v.default)(D);
+    if (window === window.top) {
+      const w = new Error("connectToParent() must be called within an iframe");
+      throw w.code = n.ERR_NOT_IN_IFRAME, w;
+    }
+    const T = (0, c.default)(), g = T.destroy, R = T.onDestroy, m = window, C = m.parent;
+    return {
+      promise: new Promise((w, P) => {
+        let M;
+        h !== void 0 && (M = setTimeout(() => {
+          const o = new Error(`Connection to parent timed out after ${h}ms`);
+          o.code = n.ERR_CONNECTION_TIMEOUT, P(o), g();
+        }, h));
+        const I = (o) => {
+          try {
+            clearTimeout();
+          } catch {
+            return;
+          }
+          if (o.source !== C || o.data.penpal !== t.HANDSHAKE_REPLY)
+            return;
+          if (f !== "*" && f !== o.origin) {
+            S(`Child received handshake reply from origin ${o.origin} which did not match expected origin ${f}`);
+            return;
+          }
+          S("Child: Received handshake reply"), m.removeEventListener(t.MESSAGE, I);
+          const y = {
+            localName: "Child",
+            local: m,
+            remote: C,
+            originForSending: o.origin === "null" ? "*" : o.origin,
+            originForReceiving: o.origin
+          }, z = {}, K = (0, a.default)(y, d, S);
+          R(K);
+          const b = (0, u.default)(z, y, o.data.methodNames, g, S);
+          R(b), clearTimeout(M), w(z);
+        };
+        m.addEventListener(t.MESSAGE, I), R(() => {
+          m.removeEventListener(t.MESSAGE, I);
+          const o = new Error("Connection destroyed");
+          o.code = n.ERR_CONNECTION_DESTROYED, P(o);
+        }), S("Child: Sending handshake"), C.postMessage({
+          penpal: t.HANDSHAKE,
+          methodNames: Object.keys(d)
+        }, f);
+      }),
+      destroy: g
+    };
+  };
+  e.default = _, r.exports = e.default;
+})(F, F.exports);
+var ue = F.exports;
+const Ee = /* @__PURE__ */ j(ue);
+function U(r, e, t, n) {
+  var c, a = !1, u = 0;
+  function v() {
+    c && clearTimeout(c);
+  }
+  function s() {
+    v(), a = !0;
+  }
+  typeof e != "boolean" && (n = t, t = e, e = void 0);
+  function _() {
+    for (var E = arguments.length, p = new Array(E), l = 0; l < E; l++)
+      p[l] = arguments[l];
+    var f = this, O = Date.now() - u;
+    if (a)
+      return;
+    function d() {
+      u = Date.now(), t.apply(f, p);
+    }
+    function h() {
+      c = void 0;
+    }
+    n && !c && d(), v(), n === void 0 && O > r ? d() : e !== !0 && (c = setTimeout(n ? h : d, n === void 0 ? r - O : r));
+  }
+  return _.cancel = s, _;
+}
+function fe(r, e, t) {
+  return t === void 0 ? U(r, e, !1) : U(r, t, e !== !1);
+}
+const ge = !1, Re = "<%= origin %>";
+function _e() {
+  return window.editor.doc.getValue();
+}
+function V(r) {
+  window.editor.doc.setValue(r);
+}
+function ve(r) {
+  if (window.cmClient != null) {
+    V(r);
+    return;
+  }
+  const e = setInterval(() => {
+    window.cmClient != null && (clearInterval(e), V(r));
+  }, 250);
+}
+function pe(r) {
+  window.growi.notifyBodyChanges(r);
+}
+const me = fe(800, pe);
+function Ce(r) {
+  window.growi.saveWithShortcut(r);
+}
+function Oe() {
+  const r = window.CodeMirror, e = window.editor;
+  r == null || e == null || (e.on("change", (t, n) => {
+    n.origin !== "ignoreHistory" && me(t.doc.getValue());
+  }), r.commands.save = function(t) {
+    Ce(t.doc.getValue());
+  }, delete e.options.extraKeys["Cmd-S"], delete e.options.extraKeys["Ctrl-S"]);
+}
+function he() {
+  Ee({
+    parentOrigin: Re,
+    // Methods child is exposing to parent
+    methods: {
+      getValue() {
+        return _e();
+      },
+      setValue(e) {
+        V(e);
+      },
+      setValueOnInit(e) {
+        ve(e);
+      }
+    },
+    debug: ge
+  }).promise.then((e) => {
+    window.growi = e;
+  }).catch((e) => {
+    console.log(e);
+  });
+}
+(function() {
+  if (window === window.parent) {
+    console.log("[GROWI] Loading agent for HackMD is not processed because currently not in iframe");
+    return;
+  }
+  console.log("[HackMD] Loading GROWI agent for HackMD..."), window.addEventListener("load", () => {
+    Oe();
+  }), he(), console.log("[HackMD] GROWI agent for HackMD has successfully loaded.");
+})();
+//# sourceMappingURL=hackmd-agent.js.map

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
packages/hackmd/dist/hackmd-agent.js.map


+ 2 - 0
packages/hackmd/dist/hackmd-styles.cjs

@@ -0,0 +1,2 @@
+"use strict";const n="<%= styles %>";function s(){const e=document.createElement("style");e.appendChild(document.createTextNode(unescape(n))),document.getElementsByTagName("head")[0].appendChild(e)}(function(){if(window===window.parent){console.log("[GROWI] Loading styles for HackMD is not processed because currently not in iframe");return}console.log("[HackMD] Loading GROWI styles for HackMD..."),s(),console.log("[HackMD] GROWI styles for HackMD has successfully loaded.")})();
+//# sourceMappingURL=hackmd-styles.cjs.map

+ 1 - 0
packages/hackmd/dist/hackmd-styles.cjs.map

@@ -0,0 +1 @@
+{"version":3,"file":"hackmd-styles.cjs","sources":["../src/hackmd-styles.ts"],"sourcesContent":["/**\n * GROWI styles loader for HackMD\n *\n * This file will be transpiled as a single JS\n *  and should be load from HackMD head via 'routes/hackmd.js' route\n *\n * USAGE:\n *  <script src=\"${hostname of GROWI}/_hackmd/load-styles\"></script>\n *\n * @author Yuki Takei <yuki@weseek.co.jp>\n */\n\n/* eslint-disable no-console  */\n\nconst styles = '<%= styles %>'; // will be replaced by ejs\n\n/**\n * Insert link tag to load style file\n */\nfunction insertStyle() {\n  const element = document.createElement('style');\n  element.appendChild(document.createTextNode(unescape(styles)));\n  document.getElementsByTagName('head')[0].appendChild(element);\n}\n\n/**\n * main\n */\n(function() {\n  // check HackMD is in iframe\n  if (window === window.parent) {\n    console.log('[GROWI] Loading styles for HackMD is not processed because currently not in iframe');\n    return;\n  }\n\n  console.log('[HackMD] Loading GROWI styles for HackMD...');\n\n  insertStyle();\n\n  console.log('[HackMD] GROWI styles for HackMD has successfully loaded.');\n}());\n"],"names":["styles","insertStyle","element"],"mappings":"aAcA,MAAMA,EAAS,gBAKf,SAASC,GAAc,CACf,MAAAC,EAAU,SAAS,cAAc,OAAO,EAC9CA,EAAQ,YAAY,SAAS,eAAe,SAASF,CAAM,CAAC,CAAC,EAC7D,SAAS,qBAAqB,MAAM,EAAE,CAAC,EAAE,YAAYE,CAAO,CAC9D,EAKC,UAAW,CAEN,GAAA,SAAW,OAAO,OAAQ,CAC5B,QAAQ,IAAI,oFAAoF,EAChG,MACF,CAEA,QAAQ,IAAI,6CAA6C,EAE7CD,IAEZ,QAAQ,IAAI,2DAA2D,CACzE,GAAE"}

+ 16 - 0
packages/hackmd/dist/hackmd-styles.d.ts

@@ -0,0 +1,16 @@
+/**
+ * GROWI styles loader for HackMD
+ *
+ * This file will be transpiled as a single JS
+ *  and should be load from HackMD head via 'routes/hackmd.js' route
+ *
+ * USAGE:
+ *  <script src="${hostname of GROWI}/_hackmd/load-styles"></script>
+ *
+ * @author Yuki Takei <yuki@weseek.co.jp>
+ */
+declare const styles = "<%= styles %>";
+/**
+ * Insert link tag to load style file
+ */
+declare function insertStyle(): void;

+ 13 - 0
packages/hackmd/dist/hackmd-styles.js

@@ -0,0 +1,13 @@
+const n = "<%= styles %>";
+function o() {
+  const e = document.createElement("style");
+  e.appendChild(document.createTextNode(unescape(n))), document.getElementsByTagName("head")[0].appendChild(e);
+}
+(function() {
+  if (window === window.parent) {
+    console.log("[GROWI] Loading styles for HackMD is not processed because currently not in iframe");
+    return;
+  }
+  console.log("[HackMD] Loading GROWI styles for HackMD..."), o(), console.log("[HackMD] GROWI styles for HackMD has successfully loaded.");
+})();
+//# sourceMappingURL=hackmd-styles.js.map

+ 1 - 0
packages/hackmd/dist/hackmd-styles.js.map

@@ -0,0 +1 @@
+{"version":3,"file":"hackmd-styles.js","sources":["../src/hackmd-styles.ts"],"sourcesContent":["/**\n * GROWI styles loader for HackMD\n *\n * This file will be transpiled as a single JS\n *  and should be load from HackMD head via 'routes/hackmd.js' route\n *\n * USAGE:\n *  <script src=\"${hostname of GROWI}/_hackmd/load-styles\"></script>\n *\n * @author Yuki Takei <yuki@weseek.co.jp>\n */\n\n/* eslint-disable no-console  */\n\nconst styles = '<%= styles %>'; // will be replaced by ejs\n\n/**\n * Insert link tag to load style file\n */\nfunction insertStyle() {\n  const element = document.createElement('style');\n  element.appendChild(document.createTextNode(unescape(styles)));\n  document.getElementsByTagName('head')[0].appendChild(element);\n}\n\n/**\n * main\n */\n(function() {\n  // check HackMD is in iframe\n  if (window === window.parent) {\n    console.log('[GROWI] Loading styles for HackMD is not processed because currently not in iframe');\n    return;\n  }\n\n  console.log('[HackMD] Loading GROWI styles for HackMD...');\n\n  insertStyle();\n\n  console.log('[HackMD] GROWI styles for HackMD has successfully loaded.');\n}());\n"],"names":["styles","insertStyle","element"],"mappings":"AAcA,MAAMA,IAAS;AAKf,SAASC,IAAc;AACf,QAAAC,IAAU,SAAS,cAAc,OAAO;AAC9C,EAAAA,EAAQ,YAAY,SAAS,eAAe,SAASF,CAAM,CAAC,CAAC,GAC7D,SAAS,qBAAqB,MAAM,EAAE,CAAC,EAAE,YAAYE,CAAO;AAC9D;AAAA,CAKC,WAAW;AAEN,MAAA,WAAW,OAAO,QAAQ;AAC5B,YAAQ,IAAI,oFAAoF;AAChG;AAAA,EACF;AAEA,UAAQ,IAAI,6CAA6C,GAE7CD,KAEZ,QAAQ,IAAI,2DAA2D;AACzE,GAAE;"}

+ 2 - 0
packages/hackmd/dist/index.cjs

@@ -0,0 +1,2 @@
+"use strict";const e=require("node:fs"),s=require("node:path"),n=process.env.NODE_ENV==="production",t=n?".":"../dist",r=e.readFileSync(s.resolve(__dirname,`${t}/hackmd-styles.js`)),i=e.readFileSync(s.resolve(__dirname,`${t}/hackmd-agent.js`)),c=e.readFileSync(s.resolve(__dirname,`${t}/style.css`)),o={stylesJS:r.toString(),agentJS:i.toString(),stylesCSS:c.toString().replace(/(\r\n|\n|\r)/gm,"")};module.exports=o;
+//# sourceMappingURL=index.cjs.map

+ 1 - 0
packages/hackmd/dist/index.cjs.map

@@ -0,0 +1 @@
+{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\nconst isProduction = process.env.NODE_ENV === 'production';\nconst dirPath = isProduction ? '.' : '../dist';\nconst stylesJSFile = fs.readFileSync(path.resolve(__dirname, `${dirPath}/hackmd-styles.js`));\nconst agentJSFile = fs.readFileSync(path.resolve(__dirname, `${dirPath}/hackmd-agent.js`));\nconst stylesCSSFile = fs.readFileSync(path.resolve(__dirname, `${dirPath}/style.css`));\n\n// export to app as string\nconst hackmdFiles = {\n  stylesJS: stylesJSFile.toString(),\n  agentJS: agentJSFile.toString(),\n  stylesCSS: stylesCSSFile.toString().replace(/(\\r\\n|\\n|\\r)/gm, ''), // https://stackoverflow.com/questions/10805125/how-to-remove-all-line-breaks-from-a-string\n};\nexport default hackmdFiles;\n"],"names":["isProduction","dirPath","stylesJSFile","fs","path","agentJSFile","stylesCSSFile","hackmdFiles"],"mappings":"+DAGMA,EAAe,QAAQ,IAAI,WAAa,aACxCC,EAAUD,EAAe,IAAM,UAC/BE,EAAeC,EAAG,aAAaC,EAAK,QAAQ,UAAW,GAAGH,CAAO,mBAAmB,CAAC,EACrFI,EAAcF,EAAG,aAAaC,EAAK,QAAQ,UAAW,GAAGH,CAAO,kBAAkB,CAAC,EACnFK,EAAgBH,EAAG,aAAaC,EAAK,QAAQ,UAAW,GAAGH,CAAO,YAAY,CAAC,EAG/EM,EAAc,CAClB,SAAUL,EAAa,SAAS,EAChC,QAASG,EAAY,SAAS,EAC9B,UAAWC,EAAc,SAAA,EAAW,QAAQ,iBAAkB,EAAE,CAClE"}

+ 6 - 0
packages/hackmd/dist/index.d.ts

@@ -0,0 +1,6 @@
+declare const hackmdFiles: {
+    stylesJS: string;
+    agentJS: string;
+    stylesCSS: string;
+};
+export default hackmdFiles;

+ 12 - 0
packages/hackmd/dist/index.js

@@ -0,0 +1,12 @@
+import e from "node:fs";
+import s from "node:path";
+const r = process.env.NODE_ENV === "production", t = r ? "." : "../dist", n = e.readFileSync(s.resolve(__dirname, `${t}/hackmd-styles.js`)), o = e.readFileSync(s.resolve(__dirname, `${t}/hackmd-agent.js`)), i = e.readFileSync(s.resolve(__dirname, `${t}/style.css`)), c = {
+  stylesJS: n.toString(),
+  agentJS: o.toString(),
+  stylesCSS: i.toString().replace(/(\r\n|\n|\r)/gm, "")
+  // https://stackoverflow.com/questions/10805125/how-to-remove-all-line-breaks-from-a-string
+};
+export {
+  c as default
+};
+//# sourceMappingURL=index.js.map

+ 1 - 0
packages/hackmd/dist/index.js.map

@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\nconst isProduction = process.env.NODE_ENV === 'production';\nconst dirPath = isProduction ? '.' : '../dist';\nconst stylesJSFile = fs.readFileSync(path.resolve(__dirname, `${dirPath}/hackmd-styles.js`));\nconst agentJSFile = fs.readFileSync(path.resolve(__dirname, `${dirPath}/hackmd-agent.js`));\nconst stylesCSSFile = fs.readFileSync(path.resolve(__dirname, `${dirPath}/style.css`));\n\n// export to app as string\nconst hackmdFiles = {\n  stylesJS: stylesJSFile.toString(),\n  agentJS: agentJSFile.toString(),\n  stylesCSS: stylesCSSFile.toString().replace(/(\\r\\n|\\n|\\r)/gm, ''), // https://stackoverflow.com/questions/10805125/how-to-remove-all-line-breaks-from-a-string\n};\nexport default hackmdFiles;\n"],"names":["isProduction","dirPath","stylesJSFile","fs","path","agentJSFile","stylesCSSFile","hackmdFiles"],"mappings":";;AAGA,MAAMA,IAAe,QAAQ,IAAI,aAAa,cACxCC,IAAUD,IAAe,MAAM,WAC/BE,IAAeC,EAAG,aAAaC,EAAK,QAAQ,WAAW,GAAGH,CAAO,mBAAmB,CAAC,GACrFI,IAAcF,EAAG,aAAaC,EAAK,QAAQ,WAAW,GAAGH,CAAO,kBAAkB,CAAC,GACnFK,IAAgBH,EAAG,aAAaC,EAAK,QAAQ,WAAW,GAAGH,CAAO,YAAY,CAAC,GAG/EM,IAAc;AAAA,EAClB,UAAUL,EAAa,SAAS;AAAA,EAChC,SAASG,EAAY,SAAS;AAAA,EAC9B,WAAWC,EAAc,SAAA,EAAW,QAAQ,kBAAkB,EAAE;AAAA;AAClE;"}

+ 2 - 0
packages/hackmd/dist/style.cjs

@@ -0,0 +1,2 @@
+"use strict";const s="";module.exports=s;
+//# sourceMappingURL=style.cjs.map

+ 1 - 0
packages/hackmd/dist/style.cjs.map

@@ -0,0 +1 @@
+{"version":3,"file":"style.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

+ 1 - 0
packages/hackmd/dist/style.css

@@ -0,0 +1 @@
+.navbar-header .navbar-brand{display:none}.navbar-form{margin-left:15px}.navbar-right .ui-new,.navbar-right .ui-publish{display:none}.CodeMirror pre.CodeMirror-line{font-family:Osaka-Mono,MS Gothic,Monaco,Menlo,Consolas,Courier New,monospace;font-size:14px;line-height:20px}

+ 5 - 0
packages/hackmd/dist/style.js

@@ -0,0 +1,5 @@
+const t = "";
+export {
+  t as default
+};
+//# sourceMappingURL=style.js.map

+ 1 - 0
packages/hackmd/dist/style.js.map

@@ -0,0 +1 @@
+{"version":3,"file":"style.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}

Некоторые файлы не были показаны из-за большого количества измененных файлов