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

reorganize import line order for plugins

Yuki Takei 4 лет назад
Родитель
Сommit
5e2517c5eb

+ 1 - 1
packages/plugin-attachment-refs/src/client-entry.js

@@ -1,5 +1,5 @@
-import RefsPreRenderInterceptor from './client/js/util/Interceptor/RefsPreRenderInterceptor';
 import RefsPostRenderInterceptor from './client/js/util/Interceptor/RefsPostRenderInterceptor';
 import RefsPostRenderInterceptor from './client/js/util/Interceptor/RefsPostRenderInterceptor';
+import RefsPreRenderInterceptor from './client/js/util/Interceptor/RefsPreRenderInterceptor';
 
 
 export default (appContainer) => {
 export default (appContainer) => {
   // add interceptors
   // add interceptors

+ 4 - 5
packages/plugin-attachment-refs/src/client/js/components/AttachmentList.jsx

@@ -1,16 +1,15 @@
-import React from 'react';
+import { Attachment } from '@growi/ui';
+import axios from 'axios'; // import axios from growi dependencies
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
+import React from 'react';
 
 
 // eslint-disable-next-line import/no-unresolved
 // eslint-disable-next-line import/no-unresolved
-import axios from 'axios'; // import axios from growi dependencies
-
-import { Attachment } from '@growi/ui';
 
 
+import styles from '../../css/index.css';
 import RefsContext from '../util/RefsContext';
 import RefsContext from '../util/RefsContext';
 import TagCacheManagerFactory from '../util/TagCacheManagerFactory';
 import TagCacheManagerFactory from '../util/TagCacheManagerFactory';
 
 
 // eslint-disable-next-line no-unused-vars
 // eslint-disable-next-line no-unused-vars
-import styles from '../../css/index.css';
 
 
 import ExtractedAttachments from './ExtractedAttachments';
 import ExtractedAttachments from './ExtractedAttachments';
 
 

+ 1 - 2
packages/plugin-attachment-refs/src/client/js/components/ExtractedAttachments.jsx

@@ -1,6 +1,5 @@
-import React from 'react';
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
-
+import React from 'react';
 import Carousel, { Modal, ModalGateway } from 'react-images';
 import Carousel, { Modal, ModalGateway } from 'react-images';
 
 
 import RefsContext from '../util/RefsContext';
 import RefsContext from '../util/RefsContext';

+ 3 - 3
packages/plugin-attachment-refs/src/client/js/util/Interceptor/RefsPostRenderInterceptor.js

@@ -1,12 +1,12 @@
+import { BasicInterceptor } from '@growi/core';
 import React from 'react';
 import React from 'react';
 import ReactDOM from 'react-dom';
 import ReactDOM from 'react-dom';
 
 
-import { BasicInterceptor } from '@growi/core';
 
 
-import RefsContext from '../RefsContext';
+import AttachmentList from '../../components/AttachmentList';
 import GalleryContext from '../GalleryContext';
 import GalleryContext from '../GalleryContext';
+import RefsContext from '../RefsContext';
 
 
-import AttachmentList from '../../components/AttachmentList';
 
 
 /**
 /**
  * The interceptor for refs
  * The interceptor for refs

+ 1 - 1
packages/plugin-lsx/src/client-entry.js

@@ -1,6 +1,6 @@
 import { LsxLogoutInterceptor } from './client/js/util/Interceptor/LsxLogoutInterceptor';
 import { LsxLogoutInterceptor } from './client/js/util/Interceptor/LsxLogoutInterceptor';
-import { LsxPreRenderInterceptor } from './client/js/util/Interceptor/LsxPreRenderInterceptor';
 import { LsxPostRenderInterceptor } from './client/js/util/Interceptor/LsxPostRenderInterceptor';
 import { LsxPostRenderInterceptor } from './client/js/util/Interceptor/LsxPostRenderInterceptor';
+import { LsxPreRenderInterceptor } from './client/js/util/Interceptor/LsxPreRenderInterceptor';
 
 
 export default (appContainer) => {
 export default (appContainer) => {
   // add interceptors
   // add interceptors

+ 4 - 4
packages/plugin-lsx/src/client/js/components/Lsx.jsx

@@ -1,17 +1,17 @@
-import React from 'react';
-import PropTypes from 'prop-types';
 
 
 import * as url from 'url';
 import * as url from 'url';
 
 
 import { pathUtils } from '@growi/core';
 import { pathUtils } from '@growi/core';
+import PropTypes from 'prop-types';
+import React from 'react';
 
 
 // eslint-disable-next-line no-unused-vars
 // eslint-disable-next-line no-unused-vars
 import styles from '../../css/index.css';
 import styles from '../../css/index.css';
-
 import { LsxContext } from '../util/LsxContext';
 import { LsxContext } from '../util/LsxContext';
 import { TagCacheManagerFactory } from '../util/TagCacheManagerFactory';
 import { TagCacheManagerFactory } from '../util/TagCacheManagerFactory';
-import { PageNode } from './PageNode';
+
 import { LsxListView } from './LsxPageList/LsxListView';
 import { LsxListView } from './LsxPageList/LsxListView';
+import { PageNode } from './PageNode';
 
 
 export class Lsx extends React.Component {
 export class Lsx extends React.Component {
 
 

+ 3 - 2
packages/plugin-lsx/src/client/js/components/LsxPageList/LsxListView.jsx

@@ -1,8 +1,9 @@
-import React from 'react';
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
+import React from 'react';
 
 
-import { PageNode } from '../PageNode';
 import { LsxContext } from '../../util/LsxContext';
 import { LsxContext } from '../../util/LsxContext';
+import { PageNode } from '../PageNode';
+
 import { LsxPage } from './LsxPage';
 import { LsxPage } from './LsxPage';
 
 
 export class LsxListView extends React.Component {
 export class LsxListView extends React.Component {

+ 2 - 3
packages/plugin-lsx/src/client/js/components/LsxPageList/LsxPage.jsx

@@ -1,9 +1,8 @@
-import React from 'react';
-import PropTypes from 'prop-types';
 
 
 import { pathUtils } from '@growi/core';
 import { pathUtils } from '@growi/core';
-
 import { PageListMeta } from '@growi/ui';
 import { PageListMeta } from '@growi/ui';
+import PropTypes from 'prop-types';
+import React from 'react';
 
 
 import { LsxContext } from '../../util/LsxContext';
 import { LsxContext } from '../../util/LsxContext';
 import { PageNode } from '../PageNode';
 import { PageNode } from '../PageNode';

+ 2 - 2
packages/plugin-lsx/src/client/js/components/LsxPageList/PagePathWrapper.jsx

@@ -1,7 +1,7 @@
-import React from 'react';
+import { PagePathLabel } from '@growi/ui';
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
+import React from 'react';
 
 
-import { PagePathLabel } from '@growi/ui';
 
 
 export class PagePathWrapper extends React.Component {
 export class PagePathWrapper extends React.Component {
 
 

+ 2 - 2
packages/plugin-lsx/src/client/js/util/Interceptor/LsxPostRenderInterceptor.js

@@ -1,10 +1,10 @@
+import { BasicInterceptor } from '@growi/core';
 import React from 'react';
 import React from 'react';
 import ReactDOM from 'react-dom';
 import ReactDOM from 'react-dom';
 
 
-import { BasicInterceptor } from '@growi/core';
 
 
-import { LsxContext } from '../LsxContext';
 import { Lsx } from '../../components/Lsx';
 import { Lsx } from '../../components/Lsx';
+import { LsxContext } from '../LsxContext';
 
 
 /**
 /**
  * The interceptor for lsx
  * The interceptor for lsx

+ 1 - 1
packages/plugin-lsx/src/client/js/util/Interceptor/LsxPreRenderInterceptor.js

@@ -1,5 +1,5 @@
-import ReactDOM from 'react-dom';
 import { customTagUtils, BasicInterceptor } from '@growi/core';
 import { customTagUtils, BasicInterceptor } from '@growi/core';
+import ReactDOM from 'react-dom';
 
 
 /**
 /**
  * The interceptor for lsx
  * The interceptor for lsx