tnx-shared 5.2.8 → 5.2.11
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/assets/gulpfile.js +10 -2
- package/bundles/tnx-shared.umd.js +7 -0
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/environment-schema.d.ts +2 -0
- package/classes/environment-schema.d.ts.map +1 -1
- package/esm2015/app-context/application-context.service.js +2 -1
- package/esm2015/classes/environment-schema.js +1 -1
- package/esm2015/services/environment.service.js +7 -1
- package/fesm2015/tnx-shared.js +7 -0
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/environment.service.d.ts +2 -0
- package/services/environment.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
- package/assets/Dockerfile.ci +0 -5
- package/assets/deploy.client.ci +0 -42
- package/assets/gulpfile.js.bak +0 -703
package/assets/gulpfile.js
CHANGED
|
@@ -804,11 +804,19 @@ function getCurrentVersion(pkgObj, packageName, onGetVersion,) {
|
|
|
804
804
|
}, function (error, response, body) {
|
|
805
805
|
let versionStr;
|
|
806
806
|
if (body) {
|
|
807
|
+
// nếu gọi api thành công
|
|
807
808
|
const bodyObj = JSON.parse(body).versions;
|
|
808
|
-
|
|
809
|
-
|
|
809
|
+
if (bodyObj) {
|
|
810
|
+
// nếu đã từng publish ít nhất 1 version
|
|
811
|
+
const pkgVersions = Object.keys(bodyObj).filter(x => x.startsWith(angularSchemaObj.projectList[packageNameWithoutPrefix].clientVersion));
|
|
812
|
+
versionStr = pkgVersions[pkgVersions.length - 1];
|
|
813
|
+
} else {
|
|
814
|
+
// lấy version đầu tiên
|
|
815
|
+
versionStr = `${angularSchemaObj.projectList[packageNameWithoutPrefix].clientVersion}.0`;
|
|
816
|
+
}
|
|
810
817
|
}
|
|
811
818
|
else {
|
|
819
|
+
// không gọi được api, dùng tạm version của local
|
|
812
820
|
console.warn('cannot get latest version, get from local instead', body);
|
|
813
821
|
versionStr = pkgObj.version;
|
|
814
822
|
}
|
|
@@ -227,6 +227,7 @@
|
|
|
227
227
|
NOTIFICATION_USER_CHANGE: 'NOTIFICATION_USER_CHANGE'
|
|
228
228
|
};
|
|
229
229
|
|
|
230
|
+
// test
|
|
230
231
|
var ApplicationContextService = /** @class */ (function () {
|
|
231
232
|
function ApplicationContextService() {
|
|
232
233
|
this.childsContext = [];
|
|
@@ -810,6 +811,12 @@
|
|
|
810
811
|
}
|
|
811
812
|
return endpoint;
|
|
812
813
|
};
|
|
814
|
+
EnvironmentService.prototype.getUserSettingConfig = function () {
|
|
815
|
+
return this.environment.userSettingConfig;
|
|
816
|
+
};
|
|
817
|
+
EnvironmentService.prototype.getUsersHasPermissionResetPassword = function () {
|
|
818
|
+
return this.environment.userHasPermissionResetPassword;
|
|
819
|
+
};
|
|
813
820
|
EnvironmentService.prototype.getHttpClientEndpoint = function (serviceCode) {
|
|
814
821
|
return '';
|
|
815
822
|
};
|