WNomunomu 2 лет назад
Родитель
Сommit
2700d20be7

+ 0 - 0
apps/app/src/components/Sidebar/PageTree/ItemsTree.module.scss → apps/app/src/components/ItemsTree/ItemsTree.module.scss


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

@@ -29,7 +29,6 @@ import loggerFactory from '~/utils/logger';
 import { ItemNode, SimpleItemProps } from '../../TreeItem';
 import PageTreeContentSkeleton from '../Skeleton/PageTreeContentSkeleton';
 
-
 import styles from './ItemsTree.module.scss';
 
 const logger = loggerFactory('growi:cli:ItemsTree');

+ 1 - 1
apps/app/src/components/ParentPageSelectModal.tsx

@@ -8,7 +8,7 @@ import { useTargetAndAncestors, useIsGuestUser, useIsReadOnlyUser } from '~/stor
 import { useParentPageSelectModal } from '~/stores/modal';
 import { useCurrentPagePath, useCurrentPageId } from '~/stores/page';
 
-import ItemsTree from './Sidebar/PageTree/ItemsTree';
+import ItemsTree from './ItemsTree/ItemsTree';
 import { PageTreeItemForModal } from './Sidebar/PageTreeItem/PageTreeItemForModal';
 
 

+ 17 - 0
packages/editor/dist/core/dist/swr/use-swr-static.js

@@ -0,0 +1,17 @@
+import { useSWRConfig as u } from "swr";
+import e from "swr/immutable";
+function s(...i) {
+  var l;
+  const [t, a, o] = i;
+  if ((o == null ? void 0 : o.fetcher) != null)
+    throw new Error("useSWRStatic does not support 'configuration.fetcher'");
+  const { cache: r } = u(), n = e(t, null, {
+    ...o,
+    fallbackData: (o == null ? void 0 : o.fallbackData) ?? (t != null ? (l = r.get(t == null ? void 0 : t.toString())) == null ? void 0 : l.data : void 0)
+  });
+  return t != null && a !== void 0 && n.mutate(a, { optimisticData: a }), n;
+}
+export {
+  s as useSWRStatic
+};
+//# sourceMappingURL=use-swr-static.js.map

+ 1 - 0
packages/editor/dist/core/dist/swr/use-swr-static.js.map

@@ -0,0 +1 @@
+{"version":3,"file":"use-swr-static.js","sources":["../../../../../core/dist/swr/use-swr-static.js"],"sourcesContent":["import { useSWRConfig as c } from \"swr\";\nimport n from \"swr/immutable\";\nfunction f(...l) {\n  var r;\n  const [a, e, t] = l;\n  if ((t == null ? void 0 : t.fetcher) != null)\n    throw new Error(\"useSWRStatic does not support 'configuration.fetcher'\");\n  const { cache: s } = c(), o = n(a, null, {\n    ...t,\n    fallbackData: (t == null ? void 0 : t.fallbackData) ?? (a != null ? (r = s.get(a == null ? void 0 : a.toString())) == null ? void 0 : r.data : void 0)\n  });\n  return a != null && e !== void 0 && o.mutate(e, { optimisticData: e }), o;\n}\nexport {\n  f as useSWRStatic\n};\n//# sourceMappingURL=use-swr-static.js.map\n"],"names":["f","l","r","a","e","t","s","c","o","n"],"mappings":";;AAEA,SAASA,KAAKC,GAAG;AACf,MAAIC;AACJ,QAAM,CAACC,GAAGC,GAAGC,CAAC,IAAIJ;AAClB,OAAKI,KAAK,OAAO,SAASA,EAAE,YAAY;AACtC,UAAM,IAAI,MAAM,uDAAuD;AACzE,QAAM,EAAE,OAAOC,MAAMC,EAAG,GAAEC,IAAIC,EAAEN,GAAG,MAAM;AAAA,IACvC,GAAGE;AAAA,IACH,eAAeA,KAAK,OAAO,SAASA,EAAE,kBAAkBF,KAAK,QAAQD,IAAII,EAAE,IAAIH,KAAK,OAAO,SAASA,EAAE,SAAU,CAAA,MAAM,OAAO,SAASD,EAAE,OAAO;AAAA,EACnJ,CAAG;AACD,SAAOC,KAAK,QAAQC,MAAM,UAAUI,EAAE,OAAOJ,GAAG,EAAE,gBAAgBA,EAAG,CAAA,GAAGI;AAC1E;"}