File tree 5 files changed +13
-18
lines changed 5 files changed +13
-18
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [" en_US" , " zh_CN" ]
Original file line number Diff line number Diff line change 10
10
"main" : " server.js" ,
11
11
"scripts" : {
12
12
"dev" : " PLUGIN=$(pwd) NODE_ENV=development babel-node node_modules/codingSDK/server.js" ,
13
- "i18n" : " I18nTargetRoot=$(pwd)/i18n/en_US babel-node node_modules/codingSDK/.script/generateI18n $(pwd)/src"
13
+ "i18n" : " I18nTargetRoot=$(pwd)/i18n babel-node node_modules/codingSDK/.script/generateI18n $(pwd)/src"
14
14
},
15
15
"codingIdePackage" : {
16
16
"name" : " access-url" ,
60
60
"babel-runtime" : " ^6.11.6" ,
61
61
"body-parser" : " ^1.15.2" ,
62
62
"classnames" : " ^2.2.5" ,
63
- "codingSDK" : " https://github.com/Coding/WebIDE-Plugin-SDK.git#0.0.1-alpha.10 " ,
63
+ "codingSDK" : " https://github.com/Coding/WebIDE-Plugin-SDK.git#0.0.1-alpha.11 " ,
64
64
"cors" : " ^2.8.1" ,
65
65
"express" : " ^4.14.0" ,
66
66
"fs-promise" : " ^1.0.0" ,
Original file line number Diff line number Diff line change 1
1
import component , { store } from './app' ;
2
2
import APP from 'codingSDK/utils' ;
3
- import languagePool from '../i18n' ;
3
+
4
+ const languagePool = require ( '../i18n/index.json' ) . reduce ( ( p , v ) => {
5
+ p [ v ] = require ( `../i18n/${ v } /index` ) . default
6
+ return p
7
+ } , { } )
4
8
5
9
export const global = new APP ( {
6
10
subscribeDataArray : [ 'GitState' ] ,
@@ -11,7 +15,7 @@ export const global = new APP({
11
15
const { injectComponent, i18n } = global ;
12
16
export default class {
13
17
pluginWillMount ( ) {
14
- console . log ( 'this plugin will Moun ' ) ;
18
+ console . log ( 'plugin will Mount ' ) ;
15
19
injectComponent . addComToSideBar ( 'right' , {
16
20
text : i18n `global.sidebar` ,
17
21
icon : 'fa fa-external-link' ,
@@ -32,7 +36,7 @@ export default class {
32
36
* @param { }
33
37
*/
34
38
pluginOnUnmount ( ) {
35
- console . log ( 'this plugin will UnMount' ) ;
39
+ console . log ( 'plugin will UnMount' ) ;
36
40
}
37
41
get component ( ) {
38
42
return component ;
Original file line number Diff line number Diff line change @@ -1332,9 +1332,9 @@ code-point-at@^1.0.0:
1332
1332
version "1.1.0"
1333
1333
resolved "http://registry.npm.taobao.org/code-point-at/download/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
1334
1334
1335
- " codingSDK@https://github.com/Coding/WebIDE-Plugin-SDK.git#0.0.1-alpha.10 " :
1336
- version "0.0.1-alpha.10 "
1337
- resolved "https://github.com/Coding/WebIDE-Plugin-SDK.git#e5cd66dcc6f229bd2f348750250d24386c3e1726 "
1335
+ " codingSDK@https://github.com/Coding/WebIDE-Plugin-SDK.git#0.0.1-alpha.11 " :
1336
+ version "0.0.1-alpha.11 "
1337
+ resolved "https://github.com/Coding/WebIDE-Plugin-SDK.git#9a647837e82d8dad7c4108514c9dad7a4efdf9ab "
1338
1338
dependencies :
1339
1339
babel-preset-env "^1.1.8"
1340
1340
babel-runtime "^6.11.6"
You can’t perform that action at this time.
0 commit comments