@crowdin/app-project-module 0.26.2 → 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/out/handlers/manifest.js +6 -0
- package/out/models/index.d.ts +9 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -722,7 +722,8 @@ const configuration = {
|
|
|
722
722
|
imagePath: __dirname + '/' + 'logo.png',
|
|
723
723
|
profileResourcesMenu: {
|
|
724
724
|
fileName: 'setup.html',
|
|
725
|
-
uiPath: __dirname + '/' + 'public'
|
|
725
|
+
uiPath: __dirname + '/' + 'public',
|
|
726
|
+
environments: 'crowdin-enterprise',
|
|
726
727
|
},
|
|
727
728
|
};
|
|
728
729
|
|
|
@@ -748,7 +749,8 @@ const configuration = {
|
|
|
748
749
|
imagePath: __dirname + '/' + 'logo.png',
|
|
749
750
|
profileResourcesMenu: {
|
|
750
751
|
fileName: 'setup.html',
|
|
751
|
-
uiPath: __dirname + '/' + 'public'
|
|
752
|
+
uiPath: __dirname + '/' + 'public',
|
|
753
|
+
environments: 'crowdin',
|
|
752
754
|
},
|
|
753
755
|
customMT: {
|
|
754
756
|
translate,
|
package/out/handlers/manifest.js
CHANGED
|
@@ -12,6 +12,7 @@ function handle(config) {
|
|
|
12
12
|
description: config.description,
|
|
13
13
|
logo: '/logo/integration/logo.png',
|
|
14
14
|
url: '/',
|
|
15
|
+
environments: config.projectIntegration.environments,
|
|
15
16
|
},
|
|
16
17
|
];
|
|
17
18
|
}
|
|
@@ -36,6 +37,7 @@ function handle(config) {
|
|
|
36
37
|
name: config.name,
|
|
37
38
|
logo: '/logo/mt/logo.png',
|
|
38
39
|
url: '/translate',
|
|
40
|
+
environments: config.customMT.environments,
|
|
39
41
|
},
|
|
40
42
|
];
|
|
41
43
|
}
|
|
@@ -56,6 +58,7 @@ function handle(config) {
|
|
|
56
58
|
name: config.name,
|
|
57
59
|
url: '/resources/' + (config.profileResourcesMenu.fileName || 'index.html'),
|
|
58
60
|
icon: '/logo/resources/logo.png',
|
|
61
|
+
environments: config.profileResourcesMenu.environments,
|
|
59
62
|
},
|
|
60
63
|
];
|
|
61
64
|
}
|
|
@@ -66,6 +69,7 @@ function handle(config) {
|
|
|
66
69
|
name: config.name,
|
|
67
70
|
url: '/editor-panels/' + (config.editorRightPanel.fileName || 'index.html'),
|
|
68
71
|
modes: config.editorRightPanel.modes,
|
|
72
|
+
environments: config.editorRightPanel.environments,
|
|
69
73
|
},
|
|
70
74
|
];
|
|
71
75
|
}
|
|
@@ -75,6 +79,7 @@ function handle(config) {
|
|
|
75
79
|
key: config.identifier + '-project-menu',
|
|
76
80
|
name: config.name,
|
|
77
81
|
url: '/project-menu/' + (config.projectMenu.fileName || 'index.html'),
|
|
82
|
+
environments: config.projectMenu.environments,
|
|
78
83
|
},
|
|
79
84
|
];
|
|
80
85
|
}
|
|
@@ -95,6 +100,7 @@ function handle(config) {
|
|
|
95
100
|
description: config.description,
|
|
96
101
|
logo: '/logo/tools/logo.png',
|
|
97
102
|
url: '/tools/' + (config.projectTools.fileName || 'index.html'),
|
|
103
|
+
environments: config.projectTools.environments,
|
|
98
104
|
},
|
|
99
105
|
];
|
|
100
106
|
}
|
package/out/models/index.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export interface Config extends ImagePath {
|
|
|
67
67
|
/**
|
|
68
68
|
* integration module logic
|
|
69
69
|
*/
|
|
70
|
-
projectIntegration?: IntegrationLogic & ImagePath;
|
|
70
|
+
projectIntegration?: IntegrationLogic & ImagePath & Environments;
|
|
71
71
|
/**
|
|
72
72
|
* custom file format module logic
|
|
73
73
|
*/
|
|
@@ -75,11 +75,11 @@ export interface Config extends ImagePath {
|
|
|
75
75
|
/**
|
|
76
76
|
* custom MT module logic
|
|
77
77
|
*/
|
|
78
|
-
customMT?: CustomMTLogic & ImagePath;
|
|
78
|
+
customMT?: CustomMTLogic & ImagePath & Environments;
|
|
79
79
|
/**
|
|
80
80
|
* resources module
|
|
81
81
|
*/
|
|
82
|
-
profileResourcesMenu?: UiModule & ImagePath;
|
|
82
|
+
profileResourcesMenu?: UiModule & ImagePath & Environments;
|
|
83
83
|
/**
|
|
84
84
|
* organization-menu module
|
|
85
85
|
*/
|
|
@@ -87,11 +87,11 @@ export interface Config extends ImagePath {
|
|
|
87
87
|
/**
|
|
88
88
|
* editor-right-panel module
|
|
89
89
|
*/
|
|
90
|
-
editorRightPanel?: EditorPanels;
|
|
90
|
+
editorRightPanel?: EditorPanels & Environments;
|
|
91
91
|
/**
|
|
92
92
|
* project menu module
|
|
93
93
|
*/
|
|
94
|
-
projectMenu?: UiModule;
|
|
94
|
+
projectMenu?: UiModule & Environments;
|
|
95
95
|
/**
|
|
96
96
|
* project menu crowdsource module
|
|
97
97
|
*/
|
|
@@ -99,7 +99,7 @@ export interface Config extends ImagePath {
|
|
|
99
99
|
/**
|
|
100
100
|
* tools module
|
|
101
101
|
*/
|
|
102
|
-
projectTools?: UiModule & ImagePath;
|
|
102
|
+
projectTools?: UiModule & ImagePath & Environments;
|
|
103
103
|
/**
|
|
104
104
|
* reports module
|
|
105
105
|
*/
|
|
@@ -346,6 +346,9 @@ export interface OAuthLogin {
|
|
|
346
346
|
*/
|
|
347
347
|
performRefreshTokenRequest?: (currentCredentials: any) => Promise<any>;
|
|
348
348
|
}
|
|
349
|
+
export interface Environments {
|
|
350
|
+
environments: 'crowdin' | 'crowdin-enterprise';
|
|
351
|
+
}
|
|
349
352
|
export interface FormField {
|
|
350
353
|
key: string;
|
|
351
354
|
helpText?: string;
|
package/package.json
CHANGED