Browse Source

fixed tracim_frontend_lib import + added thread app to rebuild_full_frontend.sh

Skylsmoi 5 years ago
parent
commit
cfebca2cb7

+ 0 - 1
frontend_app_html-document/package.json View File

@@ -36,7 +36,6 @@
36 36
     "style-loader": "^0.19.0",
37 37
     "stylus": "^0.54.5",
38 38
     "stylus-loader": "^3.0.1",
39
-    "tracim_frontend_lib": "git://github.com/tracim/tracim_lib.git",
40 39
     "url-loader": "^0.6.2",
41 40
     "webpack": "^3.8.1",
42 41
     "whatwg-fetch": "^2.0.3"

+ 0 - 1
frontend_app_thread/package.json View File

@@ -36,7 +36,6 @@
36 36
     "style-loader": "^0.19.0",
37 37
     "stylus": "^0.54.5",
38 38
     "stylus-loader": "^3.0.1",
39
-    "tracim_lib": "git://github.com/tracim/tracim_lib.git",
40 39
     "url-loader": "^0.6.2",
41 40
     "webpack": "^3.8.1",
42 41
     "whatwg-fetch": "^2.0.3"

+ 0 - 0
frontend_app_thread/rebuild_thread.sh View File


+ 1 - 1
frontend_app_thread/src/container/PopupCreateThread.jsx View File

@@ -2,7 +2,7 @@ import React from 'react'
2 2
 import {
3 3
   CardPopupCreateContent,
4 4
   handleFetchResult
5
-} from 'tracim_lib'
5
+} from 'tracim_frontend_lib'
6 6
 import { postThreadContent } from '../action.async.js'
7 7
 
8 8
 const debug = { // outdated

+ 1 - 1
frontend_app_thread/src/container/Thread.jsx View File

@@ -10,7 +10,7 @@ import {
10 10
   Timeline,
11 11
   SelectStatus,
12 12
   ArchiveDeleteContent
13
-} from 'tracim_lib'
13
+} from 'tracim_frontend_lib'
14 14
 import {
15 15
   getThreadContent,
16 16
   getThreadComment,

+ 1 - 1
frontend_app_thread/src/css/index.styl View File

@@ -1,4 +1,4 @@
1
-@import "../../node_modules/tracim_lib/src/css/Variable.styl"
1
+@import "../../node_modules/tracim_frontend_lib/src/css/Variable.styl"
2 2
 
3 3
 .thread
4 4
   width 70%

+ 1 - 1
frontend_app_thread/src/i18n.js View File

@@ -1,6 +1,6 @@
1 1
 import i18n from 'i18next'
2 2
 import { reactI18nextModule } from 'react-i18next'
3
-import { langFr, langEn } from 'tracim_lib'
3
+import { langFr, langEn } from 'tracim_frontend_lib'
4 4
 import fr from './translate/fr.js'
5 5
 import en from './translate/en.js'
6 6
 

+ 1 - 1
frontend_app_thread/webpack.config.js View File

@@ -21,7 +21,7 @@ module.exports = {
21 21
   //   'react-dom': {commonjs: 'react-dom', commonjs2: 'react-dom', amd: 'react-dom', root: '_'},
22 22
   //   classnames: {commonjs: 'classnames', commonjs2: 'classnames', amd: 'classnames', root: '_'},
23 23
   //   'prop-types': {commonjs: 'prop-types', commonjs2: 'prop-types', amd: 'prop-types', root: '_'},
24
-  //   tracim_lib: {commonjs: 'tracim_lib', commonjs2: 'tracim_lib', amd: 'tracim_lib', root: '_'}
24
+  //   tracim_frontend_lib: {commonjs: 'tracim_frontend_lib', commonjs2: 'tracim_frontend_lib', amd: 'tracim_frontend_lib', root: '_'}
25 25
   // }
26 26
   // : {},
27 27
   devServer: {

+ 8 - 0
rebuild_full_frontend.sh View File

@@ -21,3 +21,11 @@ log "npm run build$windoz # for frontend_app_html-document"
21 21
 npm run build$windoz
22 22
 log "cp dist/html-document.app.js"
23 23
 cp dist/html-document.app.js ../frontend/dist/app
24
+cd -
25
+
26
+log "cd frontend_app_thread"
27
+cd frontend_app_thread
28
+log "npm run build$windoz # for frontend_app_thread"
29
+npm run build$windoz
30
+log "cp dist/thread.app.js"
31
+cp dist/thread.app.js ../frontend/dist/app