From 559873d0dbbd01f78761cbebc779f1d278946952 Mon Sep 17 00:00:00 2001 From: richard-loafle <44828666+richard-loafle@users.noreply.github.com> Date: Tue, 11 Feb 2020 16:35:37 +0900 Subject: [PATCH 1/2] bug of reload app is fixed --- .../ucap-webmessenger-electron/src/app/AppWindow.ts | 8 +++++--- .../ucap-webmessenger-app/src/app/app-routing.module.ts | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts b/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts index e905272b..4e8ec321 100644 --- a/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts +++ b/electron-projects/ucap-webmessenger-electron/src/app/AppWindow.ts @@ -140,7 +140,7 @@ export class AppWindow { } } - public load(): void { + public load(hashUrl?: string): void { let startLoad = 0; this.window.webContents.once( @@ -176,7 +176,7 @@ export class AppWindow { isMainFrame: boolean ) => { if ('ERR_FILE_NOT_FOUND' === errorDescription) { - this.load(); + this.load(url.parse(validatedURL).hash); return; } log.error( @@ -187,6 +187,7 @@ export class AppWindow { validatedURL, isMainFrame ); + this.window.webContents.openDevTools(); } ); @@ -204,7 +205,8 @@ export class AppWindow { 'ucap-webmessenger-app/index.html' ), protocol: 'file:', - slashes: true + slashes: true, + hash: hashUrl }) ); } diff --git a/projects/ucap-webmessenger-app/src/app/app-routing.module.ts b/projects/ucap-webmessenger-app/src/app/app-routing.module.ts index e27fc322..22bd626b 100644 --- a/projects/ucap-webmessenger-app/src/app/app-routing.module.ts +++ b/projects/ucap-webmessenger-app/src/app/app-routing.module.ts @@ -29,7 +29,9 @@ const routes: Routes = [ ]; @NgModule({ - imports: [RouterModule.forRoot(routes, { enableTracing: false })], + imports: [ + RouterModule.forRoot(routes, { useHash: true, enableTracing: false }) + ], exports: [RouterModule] }) export class AppRoutingModule {} From a2229f73ae01005a519c7e1b29ddb239356de0f8 Mon Sep 17 00:00:00 2001 From: khk Date: Tue, 11 Feb 2020 16:37:04 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=95=84=20-=20=ED=9A=8C?= =?UTF-8?q?=EC=82=AC=20(=EA=B8=B0=EB=B3=B8=EC=A0=95=EB=B3=B4)=EC=97=90=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20,=20=EB=B6=80=EC=84=9C,=20=EC=A7=81?= =?UTF-8?q?=EA=B8=89(=EC=84=B8=EB=B6=80=EC=A0=95=EB=B3=B4)=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/components/profile.component.html | 9 ++++++ .../src/lib/components/profile.component.scss | 31 +++++++++++-------- 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.html b/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.html index 4e96341d..235c1272 100644 --- a/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.html +++ b/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.html @@ -59,6 +59,7 @@ {{ userInfo.employeeNum }} + {{ userInfo.companyName | ucapStringEmptycheck }} {{ userInfo | ucapTranslate: 'deptName' }} {{ userInfo | ucapTranslate: 'grade' }} @@ -177,6 +178,14 @@
{{ 'profile.fieldCompany' | translate }}
{{ userInfo.companyName | ucapStringEmptycheck }}
+
  • +
    {{ 'search.fieldDeptartment' | translate }}
    +
    {{ userInfo | ucapTranslate: 'deptName' }}
    +
  • +
  • +
    {{ 'search.fieldGrade' | translate }}
    +
    {{ userInfo | ucapTranslate: 'grade' }}
    +
  • {{ 'profile.fieldResponsibilities' | translate }} diff --git a/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.scss b/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.scss index 4f62ada3..a32114bb 100644 --- a/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.scss +++ b/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.scss @@ -120,9 +120,11 @@ $login-max-height: 800px; flex-flow: column; span { @include ellipsis(1); - &.deptName { - font-size: 1.2em; - line-height: 1.4em; + font-size: 1em; + margin-bottom: 8px; + &.company { + font-weight: 600; + font-size: 1.1em; } } } @@ -170,13 +172,15 @@ $login-max-height: 800px; ul { display: flex; flex-flow: column; + height: calc(100% - 80px); + overflow-y: auto; li { display: flex; flex-direction: row; - height: 30px; + height: 26px; align-items: center; flex-flow: row; - margin-bottom: 14px; + margin-bottom: 10px; dt { width: 100px; font-weight: 800; @@ -224,16 +228,16 @@ $login-max-height: 800px; ::ng-deep .userInfo-call { position: relative; display: flex; - flex: 0 0 auto; - width: 34px; - height: 34px; - line-height: 34px; + flex: 0 0 26px; + width: 26x; + height: 26px; + line-height: 26px; justify-content: center; justify-items: center; .mat-button-wrapper { padding: 0; - width: 20px; - height: 20px; + width: 18px; + height: 18px; justify-content: center; text-align: center; svg { @@ -252,8 +256,9 @@ $login-max-height: 800px; &.mat-mini-fab { position: relative; display: flex; - width: 40px; - height: 40px; + width: 36px; + height: 36px; + flex: 0 0 36px; //line-height: 40px; .mat-button-wrapper { padding: 0;