tnx-shared 5.0.28 → 5.0.29
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/angular-schema-template.json +2 -9
- package/assets/docker/Dockerfile +1 -1
- package/assets/gulpfile.js +17 -4
- package/classes/public-function.d.ts +1 -1
- package/components/crud/crud-form/crud-form.component.d.ts +2 -2
- package/package.json +2 -2
- package/assets/docker/docker-entrypoint.sh +0 -22
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"depend-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateDepdendServiceToLatest --serviceName tnx-{{serviceName}} --env init",
|
|
13
13
|
"ref-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js copyRefDirect --env {{environmentName}} --projectRefDirect {{projectName}}",
|
|
14
14
|
"ref-update-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateRefDirect --env {{environmentName}} --projectRefDirect {{projectName}}",
|
|
15
|
-
"build-ci-template": "npm run prebuild && node --max_old_space_size={{nodeMaxOldSpaceSize}} ./node_modules/@angular/cli/bin/ng build --project {{projectName}} --prod",
|
|
15
|
+
"build-ci-template": "npm run prebuild && node --max_old_space_size={{nodeMaxOldSpaceSize}} ./node_modules/@angular/cli/bin/ng build --project {{projectName}} --prod --base-href /{{projectName}}/",
|
|
16
16
|
"reset-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js reset --reset-flag true",
|
|
17
17
|
"start-quick-template": "node --max_old_space_size={{nodeMaxOldSpaceSize}} ./node_modules/@angular/cli/bin/ng serve --project {{projectName}} --configuration={{environmentName}} --port={{port}} --open {{additionalParams}}",
|
|
18
18
|
"update-assets-tnx-shared-template": "gulp --gulpfile ./node_modules/tnx-shared/assets/gulpfile.js updateAssetsTnxshared --env init --isUpdateAssetsTnxshared true",
|
|
@@ -46,11 +46,6 @@
|
|
|
46
46
|
"input": "{{sharedDirectory}}/shared-assets",
|
|
47
47
|
"output": "./assets"
|
|
48
48
|
},
|
|
49
|
-
{
|
|
50
|
-
"glob": "**/*",
|
|
51
|
-
"input": "node_modules/ngx-extended-pdf-viewer/assets/",
|
|
52
|
-
"output": "/assets/"
|
|
53
|
-
},
|
|
54
49
|
"projects/{{projectName}}/src/silent-refresh.html"
|
|
55
50
|
],
|
|
56
51
|
"styles": [
|
|
@@ -82,9 +77,7 @@
|
|
|
82
77
|
"{{sharedDirectory}}/shared-assets/vendor/tinymce/tinymce.min.js",
|
|
83
78
|
"node_modules/chart.js/dist/Chart.js",
|
|
84
79
|
"node_modules/jquery.tabbable/jquery.tabbable.min.js",
|
|
85
|
-
"node_modules/signalr/jquery.signalR.js"
|
|
86
|
-
"../../commonworkspacev5/App/shared/shared-assets/vendor/vgcaservices/vgcaplugin.js",
|
|
87
|
-
"../../commonworkspacev5/App/shared/shared-assets/vendor/signatures/interact.min.js"
|
|
80
|
+
"node_modules/signalr/jquery.signalR.js"
|
|
88
81
|
]
|
|
89
82
|
},
|
|
90
83
|
"configurations": {
|
package/assets/docker/Dockerfile
CHANGED
package/assets/gulpfile.js
CHANGED
|
@@ -802,13 +802,26 @@ function getCurrentVersion(pkgObj, packageName, onGetVersion,) {
|
|
|
802
802
|
}, function (error, response, body) {
|
|
803
803
|
let versionStr;
|
|
804
804
|
if (body) {
|
|
805
|
-
const
|
|
806
|
-
|
|
807
|
-
|
|
805
|
+
const bodyParsed = JSON.parse(body);
|
|
806
|
+
if (!bodyParsed.error) {
|
|
807
|
+
const bodyObj = bodyParsed.versions;
|
|
808
|
+
const pkgVersions = Object.keys(bodyObj).filter(x => x.startsWith(angularSchemaObj.clientVersion));
|
|
809
|
+
if (pkgVersions.length == 0) {
|
|
810
|
+
versionStr = `${angularSchemaObj.clientVersion}.0`;
|
|
811
|
+
console.log(`${packageName} duoc phat hanh lan dau, version se la ${versionStr}`);
|
|
812
|
+
}
|
|
813
|
+
else {
|
|
814
|
+
versionStr = pkgVersions[pkgVersions.length - 1];
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
else {
|
|
818
|
+
versionStr = `${angularSchemaObj.clientVersion}.0`;
|
|
819
|
+
console.log(`Khong lay duoc thong tin package tren npm, package ${packageName} lay version mac dinh ${versionStr}`);
|
|
820
|
+
}
|
|
808
821
|
}
|
|
809
822
|
else {
|
|
810
823
|
console.warn('cannot get latest version, get from local instead', body);
|
|
811
|
-
versionStr =
|
|
824
|
+
versionStr = null;
|
|
812
825
|
}
|
|
813
826
|
|
|
814
827
|
if (versionStr) {
|
|
@@ -43,7 +43,7 @@ export declare class PublicFunction {
|
|
|
43
43
|
static getSignalrConfig(environment: any): import("ng2-signalr").SignalRConfiguration;
|
|
44
44
|
static registerLocaleData(locale?: any, language?: any): void;
|
|
45
45
|
static importRootModule(environment: any): (typeof FormsModule | typeof BrowserModule | import("@angular/core").ModuleWithProviders<TranslateModule>)[];
|
|
46
|
-
static useRootProvider(enviromment: any): (typeof
|
|
46
|
+
static useRootProvider(enviromment: any): (typeof DatePipe | typeof DecimalPipe | typeof ConfirmationService | typeof MessageService | typeof TranslateService | typeof NotifierService | typeof EntityWorkflowHistoryService | typeof EntityWorkflowSettingService | typeof EntityPermissionService | typeof SafeHtmlPipe | typeof UserFormatPipe | typeof UsersFormatPipe | typeof HtmlFormatPipe | typeof MasterDataPipe | typeof OrganizationFormatPipe | typeof OrganizationsFormatPipe | {
|
|
47
47
|
provide: import("@angular/core").InjectionToken<import("@angular/common/http").HttpInterceptor[]>;
|
|
48
48
|
useClass: typeof SendAccessTokenInterceptor;
|
|
49
49
|
multi: boolean;
|
|
@@ -115,8 +115,8 @@ export declare class CrudFormComponent extends ComponentBase implements OnInit,
|
|
|
115
115
|
triggerChange(fieldPath: any): void;
|
|
116
116
|
ngAfterViewInit(): void;
|
|
117
117
|
setIsLoadedDataEdit(value: boolean): void;
|
|
118
|
-
getControlType(control: any): "custom" | "address" | "button" | "label" | "table" | "template" | "textarea" | "title" | "mask" | "switch" | "text" | "
|
|
119
|
-
getViewModeDataType(control: any): "user" | "address" | "html" | "label" | "table" | "title" | "mask" | "string" | "
|
|
118
|
+
getControlType(control: any): "custom" | "address" | "button" | "label" | "table" | "template" | "textarea" | "title" | "mask" | "switch" | "text" | "datetime" | "money" | "container" | "autocomplete-picker" | "entity-picker" | "spanControl" | "numberrange" | "phoneOrfax" | "datetimerange" | "dropdown" | "editor" | "common-picker" | "user-picker" | "organization-picker" | "cocautochuc-picker" | "cocautochuc" | "autocomplete" | "checkbox" | "checkboxlist" | "radiobuttonlist" | "fileUpload" | "serviceFileUpload" | "fileManager" | "colorPicker" | "colorControl" | "vanban" | "congviec";
|
|
119
|
+
getViewModeDataType(control: any): "user" | "address" | "html" | "label" | "table" | "title" | "mask" | "string" | "boolean" | "date" | "datetime" | "money" | "container" | "fileUpload" | "fileManager" | "colorPicker" | "colorControl" | "hasDataSource" | "fileServiceUpload" | "app-key-value";
|
|
120
120
|
validateForm(): Promise<boolean>;
|
|
121
121
|
private validateModel;
|
|
122
122
|
validateFormControl(fieldPath: any): Promise<boolean>;
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
set -eu
|
|
3
|
-
|
|
4
|
-
# Inject environment variables into NGINX configuration
|
|
5
|
-
# List all variables to be substituted to avoid clashing with
|
|
6
|
-
# NGINX own variables: https://serverfault.com/questions/577370
|
|
7
|
-
envsubst \
|
|
8
|
-
'${BASE_HREF}' \
|
|
9
|
-
</etc/nginx/nginx.conf.template \
|
|
10
|
-
>/etc/nginx/nginx.conf
|
|
11
|
-
cat /etc/nginx/nginx.conf
|
|
12
|
-
|
|
13
|
-
# Set correct HTML base tag, so static resources are fetched
|
|
14
|
-
# from the right path instead of the root path.
|
|
15
|
-
# NOTE: Trailing and leading slashes in base href are important!
|
|
16
|
-
# Using `~` separator to avoid problems with forward slashes
|
|
17
|
-
sed --in-place \
|
|
18
|
-
's~<base href="/">~<base href="'$BASE_HREF'/"><script type="text/javascript"> window.baseHref = "'$BASE_HREF'";</script>~' \
|
|
19
|
-
/usr/share/nginx/html/index.html
|
|
20
|
-
|
|
21
|
-
cat /usr/share/nginx/html/index.html
|
|
22
|
-
exec "$@"
|