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

relocate modules in remark-lsx

Yuki Takei 2 лет назад
Родитель
Сommit
dd3b42bcea

+ 0 - 0
packages/remark-lsx/src/components/Lsx.module.scss → packages/remark-lsx/src/client/components/Lsx.module.scss


+ 0 - 0
packages/remark-lsx/src/components/Lsx.tsx → packages/remark-lsx/src/client/components/Lsx.tsx


+ 0 - 0
packages/remark-lsx/src/components/LsxPageList/LsxListView.module.scss → packages/remark-lsx/src/client/components/LsxPageList/LsxListView.module.scss


+ 1 - 1
packages/remark-lsx/src/components/LsxPageList/LsxListView.tsx → packages/remark-lsx/src/client/components/LsxPageList/LsxListView.tsx

@@ -1,6 +1,6 @@
 import React, { useMemo } from 'react';
 
-import type { PageNode } from '../../interfaces/page-node';
+import type { PageNode } from '../../../interfaces/page-node';
 import { LsxContext } from '../lsx-context';
 
 import { LsxPage } from './LsxPage';

+ 0 - 0
packages/remark-lsx/src/components/LsxPageList/LsxPage.module.scss → packages/remark-lsx/src/client/components/LsxPageList/LsxPage.module.scss


+ 1 - 1
packages/remark-lsx/src/components/LsxPageList/LsxPage.tsx → packages/remark-lsx/src/client/components/LsxPageList/LsxPage.tsx

@@ -5,7 +5,7 @@ import { PageListMeta } from '@growi/ui/dist/components/PagePath/PageListMeta';
 import { PagePathLabel } from '@growi/ui/dist/components/PagePath/PagePathLabel';
 import Link from 'next/link';
 
-import type { PageNode } from '../../interfaces/page-node';
+import type { PageNode } from '../../../interfaces/page-node';
 import { LsxContext } from '../lsx-context';
 
 

+ 0 - 0
packages/remark-lsx/src/components/index.ts → packages/remark-lsx/src/client/components/index.ts


+ 0 - 0
packages/remark-lsx/src/components/lsx-context.ts → packages/remark-lsx/src/client/components/lsx-context.ts


+ 2 - 2
packages/remark-lsx/src/client/index.ts

@@ -1,2 +1,2 @@
-export * from '../components';
-export * from '../services/renderer';
+export * from './components';
+export * from './services/renderer';

+ 0 - 0
packages/remark-lsx/src/services/renderer/index.ts → packages/remark-lsx/src/client/services/renderer/index.ts


+ 2 - 1
packages/remark-lsx/src/services/renderer/lsx.ts → packages/remark-lsx/src/client/services/renderer/lsx.ts

@@ -3,7 +3,8 @@ import assert from 'assert';
 import { pathUtils } from '@growi/core';
 import { remarkGrowiDirectivePluginType } from '@growi/remark-growi-directive';
 import { Schema as SanitizeOption } from 'hast-util-sanitize';
-import { selectAll, HastNode } from 'hast-util-select';
+import { selectAll } from 'hast-util-select';
+import type { Node as HastNode } from 'hast-util-select/lib/types';
 import isAbsolute from 'is-absolute-url';
 import { Plugin } from 'unified';
 import { visit } from 'unist-util-visit';

+ 0 - 0
packages/remark-lsx/src/stores/lsx/index.ts → packages/remark-lsx/src/client/stores/lsx/index.ts


+ 1 - 1
packages/remark-lsx/src/stores/lsx/lsx.ts → packages/remark-lsx/src/client/stores/lsx/lsx.ts

@@ -1,7 +1,7 @@
 import axios from 'axios';
 import useSWRInfinite, { type SWRInfiniteResponse } from 'swr/infinite';
 
-import type { LsxApiOptions, LsxApiParams, LsxApiResponseData } from '../../interfaces/api';
+import type { LsxApiOptions, LsxApiParams, LsxApiResponseData } from '../../../interfaces/api';
 
 import { type ParseNumOptionResult, parseNumOption } from './parse-num-option';
 

+ 0 - 0
packages/remark-lsx/src/stores/lsx/parse-num-option.spec.ts → packages/remark-lsx/src/client/stores/lsx/parse-num-option.spec.ts


+ 0 - 0
packages/remark-lsx/src/stores/lsx/parse-num-option.ts → packages/remark-lsx/src/client/stores/lsx/parse-num-option.ts


+ 0 - 0
packages/remark-lsx/src/utils/page-node.spec.ts → packages/remark-lsx/src/client/utils/page-node.spec.ts


+ 2 - 3
packages/remark-lsx/src/utils/page-node.ts → packages/remark-lsx/src/client/utils/page-node.ts

@@ -3,9 +3,8 @@ import * as url from 'url';
 import type { IPageHasId, ParseRangeResult } from '@growi/core';
 import { removeTrailingSlash } from '@growi/core/dist/utils/path-utils';
 
-import type { PageNode } from '../interfaces/page-node';
-
-import { getDepthOfPath } from './depth-utils';
+import type { PageNode } from '../../interfaces/page-node';
+import { getDepthOfPath } from '../../utils/depth-utils';
 
 
 function getParentPath(path: string) {