Browse Source

fix: export

node 6 years ago
parent
commit
6eeedadc55
4 changed files with 11 additions and 6 deletions
  1. 5
    0
      README.md
  2. 3
    4
      lib/index.js
  3. 1
    1
      lib/index.js.map
  4. 2
    1
      src/index.js

+ 5
- 0
README.md View File

4
 
4
 
5
 
5
 
6
 
6
 
7
+## install
8
+
9
+```
10
+$ npm install git+https://git.links123.net/node/editor.git --save
11
+```

+ 3
- 4
lib/index.js View File

3
 Object.defineProperty(exports, "__esModule", {
3
 Object.defineProperty(exports, "__esModule", {
4
     value: true
4
     value: true
5
 });
5
 });
6
+exports.MarkdownEditor = exports.RichEditor = undefined;
6
 
7
 
7
 var _fontawesomeSvgCore = require('@fortawesome/fontawesome-svg-core');
8
 var _fontawesomeSvgCore = require('@fortawesome/fontawesome-svg-core');
8
 
9
 
30
 _fontawesomeSvgCore.library.add(_freeSolidSvgIcons.faListOl);
31
 _fontawesomeSvgCore.library.add(_freeSolidSvgIcons.faListOl);
31
 _fontawesomeSvgCore.library.add(_freeSolidSvgIcons.faTasks);
32
 _fontawesomeSvgCore.library.add(_freeSolidSvgIcons.faTasks);
32
 
33
 
33
-exports.default = {
34
-    RichEditor: _RichEditor2.default,
35
-    MarkdownEditor: _MarkdownEditor2.default
36
-};
34
+exports.RichEditor = _RichEditor2.default;
35
+exports.MarkdownEditor = _MarkdownEditor2.default;
37
 //# sourceMappingURL=index.js.map
36
 //# sourceMappingURL=index.js.map

+ 1
- 1
lib/index.js.map View File

1
-{"version":3,"sources":["../src/index.js"],"names":["library","add","faBold","faHeading","faItalic","faStrikethrough","faLink","faQuoteRight","faCode","faImage","faListUl","faListOl","faTasks","RichEditor","MarkdownEditor"],"mappings":";;;;;;AAAA;;AACA;;AAaC;;;;AACA;;;;;;AAGDA,4BAAQC,GAAR,CAAYC,yBAAZ;AACAF,4BAAQC,GAAR,CAAYE,4BAAZ;AACAH,4BAAQC,GAAR,CAAYG,2BAAZ;AACAJ,4BAAQC,GAAR,CAAYI,kCAAZ;AACAL,4BAAQC,GAAR,CAAYK,yBAAZ;AACAN,4BAAQC,GAAR,CAAYM,+BAAZ;AACAP,4BAAQC,GAAR,CAAYO,yBAAZ;AACAR,4BAAQC,GAAR,CAAYQ,0BAAZ;AACAT,4BAAQC,GAAR,CAAYS,2BAAZ;AACAV,4BAAQC,GAAR,CAAYU,2BAAZ;AACAX,4BAAQC,GAAR,CAAYW,0BAAZ;;kBAEe;AACbC,oCADa;AAEbC;AAFa,C","file":"index.js","sourcesContent":["import { library } from '@fortawesome/fontawesome-svg-core'\nimport { \n    faBold, \n    faHeading,\n    faItalic,\n    faStrikethrough,\n    faLink,\n    faQuoteRight,\n    faCode,\n    faImage,\n    faListUl,\n    faListOl,\n    faTasks,\n } from '@fortawesome/free-solid-svg-icons'\n import RichEditor from './RichEditor';\n import MarkdownEditor from './MarkdownEditor';\n\n\nlibrary.add(faBold)\nlibrary.add(faHeading)\nlibrary.add(faItalic)\nlibrary.add(faStrikethrough)\nlibrary.add(faLink)\nlibrary.add(faQuoteRight)\nlibrary.add(faCode)\nlibrary.add(faImage)\nlibrary.add(faListUl)\nlibrary.add(faListOl)\nlibrary.add(faTasks)\n\nexport default { \n  RichEditor,\n  MarkdownEditor,\n }\n"]}
1
+{"version":3,"sources":["../src/index.js"],"names":["library","add","faBold","faHeading","faItalic","faStrikethrough","faLink","faQuoteRight","faCode","faImage","faListUl","faListOl","faTasks","RichEditor","MarkdownEditor"],"mappings":";;;;;;;AAAA;;AACA;;AAaC;;;;AACA;;;;;;AAGDA,4BAAQC,GAAR,CAAYC,yBAAZ;AACAF,4BAAQC,GAAR,CAAYE,4BAAZ;AACAH,4BAAQC,GAAR,CAAYG,2BAAZ;AACAJ,4BAAQC,GAAR,CAAYI,kCAAZ;AACAL,4BAAQC,GAAR,CAAYK,yBAAZ;AACAN,4BAAQC,GAAR,CAAYM,+BAAZ;AACAP,4BAAQC,GAAR,CAAYO,yBAAZ;AACAR,4BAAQC,GAAR,CAAYQ,0BAAZ;AACAT,4BAAQC,GAAR,CAAYS,2BAAZ;AACAV,4BAAQC,GAAR,CAAYU,2BAAZ;AACAX,4BAAQC,GAAR,CAAYW,0BAAZ;;QAIEC,U,GAAAA,oB;QACAC,c,GAAAA,wB","file":"index.js","sourcesContent":["import { library } from '@fortawesome/fontawesome-svg-core'\nimport { \n    faBold, \n    faHeading,\n    faItalic,\n    faStrikethrough,\n    faLink,\n    faQuoteRight,\n    faCode,\n    faImage,\n    faListUl,\n    faListOl,\n    faTasks,\n } from '@fortawesome/free-solid-svg-icons'\n import RichEditor from './RichEditor';\n import MarkdownEditor from './MarkdownEditor';\n\n\nlibrary.add(faBold)\nlibrary.add(faHeading)\nlibrary.add(faItalic)\nlibrary.add(faStrikethrough)\nlibrary.add(faLink)\nlibrary.add(faQuoteRight)\nlibrary.add(faCode)\nlibrary.add(faImage)\nlibrary.add(faListUl)\nlibrary.add(faListOl)\nlibrary.add(faTasks)\n\n\nexport { \n  RichEditor,\n  MarkdownEditor,\n }\n"]}

+ 2
- 1
src/index.js View File

28
 library.add(faListOl)
28
 library.add(faListOl)
29
 library.add(faTasks)
29
 library.add(faTasks)
30
 
30
 
31
-export default { 
31
+
32
+export { 
32
   RichEditor,
33
   RichEditor,
33
   MarkdownEditor,
34
   MarkdownEditor,
34
  }
35
  }