@crowdin/app-project-module 0.15.0 → 0.15.1
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 +1 -1
- package/out/index.js +1 -1
- package/out/models/index.d.ts +0 -20
- package/out/util/connection.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -185,7 +185,7 @@ configuration.pricing = {
|
|
|
185
185
|
plantType: 'recurring',
|
|
186
186
|
trial: 14, //amount of days to use app for free
|
|
187
187
|
trialCrowdin: 14, //amount of days specifically in crowdin workspace
|
|
188
|
-
trialEnterprise: 30 //amount of days specifically for enterprise
|
|
188
|
+
trialEnterprise: 30, //amount of days specifically for enterprise
|
|
189
189
|
cachingSeconds: 12 * 60 * 60 //time in seconds of how long to cache subscription info
|
|
190
190
|
};
|
|
191
191
|
```
|
package/out/index.js
CHANGED
|
@@ -92,7 +92,7 @@ function addCrowdinEndpoints(app, config) {
|
|
|
92
92
|
app.post('/installed', (0, install_1.default)(config));
|
|
93
93
|
app.post('/uninstall', (0, uninstall_1.default)(config));
|
|
94
94
|
app.get('/manifest.json', json_response_1.default, (0, manifest_1.default)(config));
|
|
95
|
-
const integrationLogic = config.
|
|
95
|
+
const integrationLogic = config.projectIntegration;
|
|
96
96
|
if (integrationLogic) {
|
|
97
97
|
(0, defaults_1.applyDefaults)(config, integrationLogic);
|
|
98
98
|
app.get('/logo/integration/logo.png', (req, res) => res.sendFile(integrationLogic.imagePath || config.imagePath || (0, path_1.join)(__dirname, 'logo.png')));
|
package/out/models/index.d.ts
CHANGED
|
@@ -38,10 +38,6 @@ export interface Config extends ImagePath {
|
|
|
38
38
|
* folder where module will create sqlite db file to persist credentials (e.g. {@example __dirname})
|
|
39
39
|
*/
|
|
40
40
|
dbFolder: string;
|
|
41
|
-
/**
|
|
42
|
-
* integration module logic
|
|
43
|
-
*/
|
|
44
|
-
integration?: IntegrationLogic & ImagePath;
|
|
45
41
|
/**
|
|
46
42
|
* integration module logic
|
|
47
43
|
*/
|
|
@@ -54,10 +50,6 @@ export interface Config extends ImagePath {
|
|
|
54
50
|
* custom MT module logic
|
|
55
51
|
*/
|
|
56
52
|
customMT?: CustomMTLogic;
|
|
57
|
-
/**
|
|
58
|
-
* resources module
|
|
59
|
-
*/
|
|
60
|
-
resources?: UiModule & ImagePath;
|
|
61
53
|
/**
|
|
62
54
|
* resources module
|
|
63
55
|
*/
|
|
@@ -66,10 +58,6 @@ export interface Config extends ImagePath {
|
|
|
66
58
|
* organization-menu module
|
|
67
59
|
*/
|
|
68
60
|
organizationMenu?: UiModule & ImagePath;
|
|
69
|
-
/**
|
|
70
|
-
* editor-panels module
|
|
71
|
-
*/
|
|
72
|
-
editorPanels?: EditorPanels;
|
|
73
61
|
/**
|
|
74
62
|
* editor-right-panel module
|
|
75
63
|
*/
|
|
@@ -78,18 +66,10 @@ export interface Config extends ImagePath {
|
|
|
78
66
|
* project menu module
|
|
79
67
|
*/
|
|
80
68
|
projectMenu?: UiModule;
|
|
81
|
-
/**
|
|
82
|
-
* tools module
|
|
83
|
-
*/
|
|
84
|
-
tools?: UiModule & ImagePath;
|
|
85
69
|
/**
|
|
86
70
|
* tools module
|
|
87
71
|
*/
|
|
88
72
|
projectTools?: UiModule & ImagePath;
|
|
89
|
-
/**
|
|
90
|
-
* reports module
|
|
91
|
-
*/
|
|
92
|
-
reports?: UiModule & ImagePath;
|
|
93
73
|
/**
|
|
94
74
|
* reports module
|
|
95
75
|
*/
|
package/out/util/connection.js
CHANGED
|
@@ -178,8 +178,8 @@ function checkSubscription(config, token, organization, accountType) {
|
|
|
178
178
|
else {
|
|
179
179
|
console.error(e);
|
|
180
180
|
}
|
|
181
|
-
(0, _1.log)('Recieved http error from subscription request. Returning expired=
|
|
182
|
-
return { expired:
|
|
181
|
+
(0, _1.log)('Recieved http error from subscription request. Returning expired=false', config.logger);
|
|
182
|
+
return { expired: false };
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
}
|
package/package.json
CHANGED