diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 1d2969b..88861f2 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community. Examples of behavior that contributes to a positive environment for our community include: -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, +- Demonstrating empathy and kindness toward other people +- Being respectful of differing opinions, viewpoints, and experiences +- Giving and gracefully accepting constructive feedback +- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience -* Focusing on what is best not just for us as individuals, but for the +- Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: -* The use of sexualized language or imagery, and sexual attention or +- The use of sexualized language or imagery, and sexual attention or advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email +- Trolling, insulting or derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or email address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a +- Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban. ### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an +standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. **Consequence**: A permanent ban from any sort of public interaction within diff --git a/README.md b/README.md index 17776e7..e9a35b3 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,15 @@

DevUI Admin

DevUI Admin is an enterprise-level mid- and back-end front-end/design solution. Based on DevUI Design design values, we build a back-end management template DevUI Admin based on its design specifications and basic components. -![avatar](home-en.png) +  +![avatar](home.png) - Preview: https://devui.design/admin/ - Home Page: https://devui.design/admin-page/home - Document:https://devui.design/admin-page/docs/getting-started ## Features +![avatar](home-1.png) - Responsive: Adapting to different screen sizes, providing users with a more comfortable interface and user experience. - Personal Theme: Supports dynamic switching between multiple theme styles and personalized configurations. @@ -32,7 +34,7 @@ DevUI Admin is an enterprise-level mid- and back-end front-end/design solution. ## Usage ```bash -ng new your-project && cd your-project +ng new your-project && cd your-project # Create options: non-strict mode & SCSS ng add ng-devui-admin npm start # open http://localhost:4200 diff --git a/README_zh_CN.md b/README_zh_CN.md index 44ae616..2127ed3 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -12,16 +12,18 @@

DevUI Admin

-DevUI Admin 是一个企业级中后台前端/设计解决方案,依据 DevUI Design 设计价值观,我们在自身的设计规范和基础组件的基础上,构建出了后台管理模板 DevUI Admin +DevUI Admin 是一个企业级中后台前端/设计解决方案,依据 DevUI Design 设计价值观,我们在自身的设计规范和基础组件的基础上,构建出了后台管理模板 DevUI Admin。 +  ![avatar](home.png) - - 预览:https://devui.design/admin/ - 首页:https://devui.design/admin-page/home - 文档:https://devui.design/admin-page/docs/getting-started ## 特性 +![avatar](home-1.png) + - 响应式:适应不同屏幕大小,为用户提供更舒适的界面与用户体验 - 个性化主题:支持多种主题风格与个性化配置动态切换 - 布局:页面布局可配置,灵活布局 @@ -32,7 +34,7 @@ DevUI Admin 是一个企业级中后台前端/设计解决方案,依据 DevUI ## 使用 ```bash -ng new your-project && cd your-project +ng new your-project && cd your-project # 创建选项:非严格模式 & SCSS ng add ng-devui-admin npm start # open http://localhost:4200 diff --git a/home-1.png b/home-1.png new file mode 100644 index 0000000..5f0e1a4 Binary files /dev/null and b/home-1.png differ diff --git a/home-en.png b/home-en.png deleted file mode 100644 index 2014cd1..0000000 Binary files a/home-en.png and /dev/null differ diff --git a/home.png b/home.png index 69eb029..f42fd46 100644 Binary files a/home.png and b/home.png differ diff --git a/package.json b/package.json index 83eb7b1..bb2efed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ng-devui-admin", - "version": "1.0.0", + "version": "1.1.0", "license": "MIT", "description": "DevUI Admin based on Angular and DevUI components", "repository": { @@ -34,14 +34,14 @@ "@ngx-translate/core": "^13.0.0", "@ngx-translate/http-loader": "^6.0.0", "color": "^3.1.3", - "echarts": "^4.7.0", + "echarts": "^5.1.1", "ng-devui": "^11.1.0", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.10.2" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.1002.0", + "@angular-devkit/build-angular": "~0.1102.0", "@angular/cli": "~11.2.9", "@angular/compiler-cli": "~11.2.10", "@types/node": "^12.11.1", diff --git a/src/app/@core/mock/echarts.service.ts b/src/app/@core/mock/echarts.service.ts index 53d1097..6732863 100644 --- a/src/app/@core/mock/echarts.service.ts +++ b/src/app/@core/mock/echarts.service.ts @@ -274,9 +274,8 @@ export class EchartsService { }, legend: { orient: 'vertical', - x: 'left', - y: 'center', - left: '10px', + left: 'auto', + top: 'center', data: ['可容忍', '满意', '不可容忍', '极端异常', '良好'], }, series: [ @@ -591,20 +590,7 @@ export class EchartsService { xAxis: [ { type: 'category', - data: [ - '1月', - '2月', - '3月', - '4月', - '5月', - '6月', - '7月', - '8月', - '9月', - '10月', - '11月', - '12月', - ], + data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], axisPointer: { type: 'shadow', }, @@ -655,17 +641,7 @@ export class EchartsService { min: 0, max: 200, inRange: { - color: [ - '#BDFDFF', - '#9FE1FF', - '#81C5FF', - '#61AAFF', - '#3F8FEC', - '#0676D0', - '#005DB4', - '#004698', - '#00307E', - ], + color: ['#BDFDFF', '#9FE1FF', '#81C5FF', '#61AAFF', '#3F8FEC', '#0676D0', '#005DB4', '#004698', '#00307E'], }, text: ['High', 'Low'], // 文本,默认为数值文本 calculable: true, diff --git a/src/app/@core/mock/work-group.service.ts b/src/app/@core/mock/work-group.service.ts index 937e3ee..7098d5b 100644 --- a/src/app/@core/mock/work-group.service.ts +++ b/src/app/@core/mock/work-group.service.ts @@ -6,45 +6,61 @@ import { WorkGroup, WorkGroupData } from '../data/work-group'; export class WorkGroupService extends WorkGroupData { private workGroups: WorkGroup[] = [ { - logoSrc: - 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', + logoSrc: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', departmentTitle: 'Cloud BU 某部门', description: 'XXX团队终于成立了!', manOfDepartment: 'XXX大佬', numberOfMembers: 999, }, { - logoSrc: - 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', + logoSrc: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', departmentTitle: 'DevUI XX部门', description: '成就自己成就他人。', manOfDepartment: 'Peng', numberOfMembers: 200, }, { - logoSrc: - 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', + logoSrc: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', departmentTitle: '周末吃喝玩乐组织', description: '周末约起来,想去哪就去哪。', manOfDepartment: 'Tang', numberOfMembers: 500, }, { - logoSrc: - 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', + logoSrc: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', departmentTitle: '可信交流社区', description: '可信与工程交流社区', manOfDepartment: 'Wang', numberOfMembers: 800, }, { - logoSrc: - 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', + logoSrc: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', departmentTitle: '羽毛球协会', description: '羽毛球爱好者集结地', manOfDepartment: 'Da Peng', numberOfMembers: 500, }, + { + logoSrc: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', + departmentTitle: 'Angular项目组', + description: '暂无描述', + manOfDepartment: 'Da Peng', + numberOfMembers: 500, + }, + { + logoSrc: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', + departmentTitle: 'React项目组', + description: '暂无描述', + manOfDepartment: 'Da Peng', + numberOfMembers: 500, + }, + { + logoSrc: 'https://res.hc-cdn.com/x-roma-components/1.0.10/assets/devui/logo.svg', + departmentTitle: 'Vue项目组', + description: '暂无描述', + manOfDepartment: 'Da Peng', + numberOfMembers: 500, + }, ]; getWorkGroups(): Observable { diff --git a/src/app/@core/services/auth-guard-service.guard.ts b/src/app/@core/services/auth-guard-service.guard.ts index 14d3b76..ffef56c 100644 --- a/src/app/@core/services/auth-guard-service.guard.ts +++ b/src/app/@core/services/auth-guard-service.guard.ts @@ -30,6 +30,7 @@ export class AuthGuardService implements CanActivate { content: this.i18nValues['content'], }, ], + life: 2000, }); this.router.navigate(['login']); return false; diff --git a/src/app/@shared/components/admin-form/admin-form.component.scss b/src/app/@shared/components/admin-form/admin-form.component.scss index b78743f..ad5050d 100644 --- a/src/app/@shared/components/admin-form/admin-form.component.scss +++ b/src/app/@shared/components/admin-form/admin-form.component.scss @@ -2,7 +2,7 @@ margin-left: 115px !important; } -@media only screen and (max-width: 1024px) { +@media only screen and (max-width: 1023px) { .da-form-operation.devui-form-operation { margin-left: 0 !important; } diff --git a/src/app/@shared/components/personalize/personalize.component.html b/src/app/@shared/components/personalize/personalize.component.html index f572737..474dcbd 100644 --- a/src/app/@shared/components/personalize/personalize.component.html +++ b/src/app/@shared/components/personalize/personalize.component.html @@ -3,7 +3,7 @@
{{ 'personalize.title' | translate }}
- +
@@ -33,32 +33,32 @@
- - - -
- {{ theme?.name }} -
- -
- + + +
+ {{ theme?.name }}
- -
+ +
+ +
+
+ +
diff --git a/src/app/@shared/components/personalize/personalize.component.scss b/src/app/@shared/components/personalize/personalize.component.scss index 476ec02..792637a 100644 --- a/src/app/@shared/components/personalize/personalize.component.scss +++ b/src/app/@shared/components/personalize/personalize.component.scss @@ -87,7 +87,8 @@ } } .da-color-picker { - margin-top: 24px; + display: flex; + width: 100%; } .da-theme-name { @@ -98,6 +99,7 @@ font-size: $devui-font-size-page-title; font-weight: 600; margin-bottom: 12px; + margin-top: 24px; .icon { font-size: $devui-font-size-data-overview; @@ -140,18 +142,25 @@ } } -@media only screen and (max-width: 1024px) { +@media only screen and (max-width: 1023px) { .da-personalize-content { ul { margin-right: 0 !important; } } + .da-color-picker { + display: block; + margin-bottom: 12px; + + .da-theme-name { + margin-top: 12px; + } + } + .da-theme-colors { justify-content: space-between; .da-color-avatar { - width: 24px; - height: 24px; margin-left: 0; } } diff --git a/src/app/@shared/styles/_list.scss b/src/app/@shared/styles/_list.scss index ebc2caf..e0ee346 100644 --- a/src/app/@shared/styles/_list.scss +++ b/src/app/@shared/styles/_list.scss @@ -47,14 +47,14 @@ } } -@media only screen and (max-width: 1024px) { +@media only screen and (max-width: 1023px) { .da-header-item-label { width: 80px; } } :host::ng-deep { - @media only screen and (max-width: 1024px) { + @media only screen and (max-width: 1023px) { .devui-pagination { .devui-total-size, .devui-jump-container { diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 1b7dc23..58753f8 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -6,7 +6,7 @@ import { DEFAULT_LANG, I18N_LANGUAGES } from '../config/language-config'; template: ``, }) export class AppComponent { - currentLang = localStorage.getItem('lang') || DEFAULT_LANG; + currentLang = localStorage.getItem('lang') || window.navigator.language.toLowerCase() || DEFAULT_LANG; constructor(private translate: TranslateService) { this.translate.addLangs(I18N_LANGUAGES); diff --git a/src/app/pages/dashboard/analysis/echarts/echarts.component.html b/src/app/pages/dashboard/analysis/echarts/echarts.component.html index 1fe0158..d6c3f68 100644 --- a/src/app/pages/dashboard/analysis/echarts/echarts.component.html +++ b/src/app/pages/dashboard/analysis/echarts/echarts.component.html @@ -11,7 +11,7 @@
- + @@ -35,18 +35,18 @@
-
+
{{ 'dashboard.analysis.userVisiting' | translate }}
- +
- + diff --git a/src/app/pages/dashboard/analysis/echarts/echarts.component.ts b/src/app/pages/dashboard/analysis/echarts/echarts.component.ts index edaa1e3..abe8485 100644 --- a/src/app/pages/dashboard/analysis/echarts/echarts.component.ts +++ b/src/app/pages/dashboard/analysis/echarts/echarts.component.ts @@ -1,4 +1,6 @@ -import { Component, OnInit } from '@angular/core'; +import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core'; +import { fromEvent, Subscription } from 'rxjs'; +import { debounceTime } from 'rxjs/operators'; import { EchartsService } from 'src/app/@core/mock/echarts.service'; @Component({ @@ -6,7 +8,7 @@ import { EchartsService } from 'src/app/@core/mock/echarts.service'; templateUrl: './echarts.component.html', styleUrls: ['./echarts.component.scss'], }) -export class EchartsComponent implements OnInit { +export class EchartsComponent implements OnInit, AfterViewInit { pieData; serviceData; @@ -43,6 +45,11 @@ export class EchartsComponent implements OnInit { serviceSource = []; pieSource = []; + resizeSub: Subscription; + pieChart: any; + + @ViewChild('chartWrapper') chartWrapper: ElementRef; + constructor(private echartsService: EchartsService) {} ngOnInit(): void { @@ -68,4 +75,31 @@ export class EchartsComponent implements OnInit { } }); } + + getPieChart(e) { + this.pieChart = e; + } + + ngAfterViewInit(): void { + this.resizeSub = fromEvent(window, 'resize') + .pipe(debounceTime(500)) + .subscribe((v) => { + if (this.chartWrapper?.nativeElement?.clientWidth < 630) { + this.pieData.legend = { + orient: 'horizontal', + bottom: 'auto', + data: ['可容忍', '满意', '不可容忍', '极端异常', '良好'], + }; + this.pieChart.setOption(this.pieData, true); + } else { + this.pieData.legend = { + orient: 'vertical', + left: 'auto', + top: 'center', + data: ['可容忍', '满意', '不可容忍', '极端异常', '良好'], + }; + this.pieChart.setOption(this.pieData, true); + } + }); + } } diff --git a/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.html b/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.html index abf8f38..10f9269 100644 --- a/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.html +++ b/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.html @@ -3,12 +3,7 @@
待安排的工作
    -
  • +
  • {{ item.title }}
@@ -19,6 +14,7 @@ [labelData]="labelData" [diagramId]="'basic-quadrant-diagram'" (dropEvent)="dropEvent($event)" + [currentLabelSize]="currentLableSize" [view]="{ height: 480, width: quadrantWidth diff --git a/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.scss b/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.scss index 9a8c8c5..9153927 100644 --- a/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.scss +++ b/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.scss @@ -28,9 +28,10 @@ } .list-group { - padding: 0 10px 10px 10px; + padding: 0 12px 12px 12px; display: flex; flex-wrap: wrap; + justify-content: flex-start; } .list-group > li { @@ -41,8 +42,9 @@ background: $devui-base-bg; border: 1px solid $devui-line; border-radius: $devui-border-radius; - width: 80px; - margin: 10px; + width: 135px; + margin-right: 12px; + margin-bottom: 10px; text-align: center; } @@ -52,3 +54,35 @@ align-items: center; padding: 12px; } + +@media only screen and (max-width: 2125px) { + .da-work-management { + .list-group .list-group-item { + width: calc(16.66666667% - 12px); + } + } +} + +@media only screen and (max-width: 1535px) { + .da-work-management { + .list-group .list-group-item { + width: calc(20% - 12px); + } + } +} + +@media only screen and (max-width: 675px) { + .da-work-management { + .list-group .list-group-item { + width: calc(25% - 12px); + } + } +} + +@media only screen and (max-width: 475px) { + .da-work-management { + .list-group .list-group-item { + width: calc(50% - 12px); + } + } +} \ No newline at end of file diff --git a/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.ts b/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.ts index cb4ab98..7307ff1 100644 --- a/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.ts +++ b/src/app/pages/dashboard/work-space/work-space-body/work-management/work-management.component.ts @@ -1,60 +1,93 @@ -import { Component, Input, OnInit } from '@angular/core'; +import { AfterViewInit, Component, Input, OnDestroy, OnInit } from '@angular/core'; import { ILabelDataConfigs } from 'ng-devui/quadrant-diagram'; +import { fromEvent } from 'rxjs'; +import { debounceTime } from 'rxjs/operators'; @Component({ selector: 'da-work-management', templateUrl: './work-management.component.html', styleUrls: ['./work-management.component.scss'], }) -export class WorkManagementComponent implements OnInit { - labelData: Array = []; +export class WorkManagementComponent implements OnInit, AfterViewInit, OnDestroy { + resizeSub: any; + + currentLableSize = 'large'; + + labelData: Array = [ + { + title: '工作8', + x: 70, + y: 20, + content: '

First level target

Value 3

Urgency 3

Priority 3

', + progress: 80, + }, + { + title: '工作9', + x: 20, + y: 45, + content: '

First level target

Value 3

Urgency 3

Priority 3

', + progress: 10, + }, + ]; @Input() quadrantWidth: number; list = [ { title: '工作1', - content: - '

First level target

Value 3

Urgency 3

Priority 3

', + content: '

First level target

Value 3

Urgency 3

Priority 3

', progress: 40, }, { title: '工作2', - content: - '

Feature target

Value 3

Urgency 3

Priority 3

', + content: '

Feature target

Value 3

Urgency 3

Priority 3

', progress: 30, }, { title: '工作3', - content: - '

Secondary target

Value:3

Urgency 3

Priority 3

', + content: '

Secondary target

Value:3

Urgency 3

Priority 3

', progress: 20, }, { title: '工作4', - content: - '

Three-level target

Value:3

Urgency 3

Priority 3

', + content: '

Three-level target

Value:3

Urgency 3

Priority 3

', progress: 10, }, { title: '工作5', - content: - '

Three-level target

Value:3

Urgency 3

Priority 3

', + content: '

Three-level target

Value:3

Urgency 3

Priority 3

', progress: 80, }, { title: '工作6', - content: - '

Three-level target

Value:3

Urgency 3

Priority 3

', + content: '

Three-level target

Value:3

Urgency 3

Priority 3

', progress: 70, }, + { + title: '工作7', + content: '

Three-level target

Value:3

Urgency 3

Priority 3

', + progress: 99, + }, ]; constructor() {} ngOnInit(): void {} + ngAfterViewInit(): void { + this.resizeSub = fromEvent(window, 'resize') + .pipe(debounceTime(500)) + .subscribe((si) => { + if ((si.target as any).innerWidth <= 580 && (si.target as any).innerWidth > 435) { + this.currentLableSize = 'normal'; + } else if ((si.target as any).innerWidth <= 435) { + this.currentLableSize = 'small'; + } else { + this.currentLableSize = 'large'; + } + }); + } + dropEvent(item) { - console.log(item); const droppedItem = this.list .map(function (e) { return e.title; @@ -80,4 +113,10 @@ export class WorkManagementComponent implements OnInit { } this.labelData.push(label); // Place the dragged data on the quadrant graph to display } + + ngOnDestroy(): void { + if (this.resizeSub) { + this.resizeSub.unsubscribe(); + } + } } diff --git a/src/app/pages/dashboard/work-space/work-space-body/work-operation/work-operation.component.scss b/src/app/pages/dashboard/work-space/work-space-body/work-operation/work-operation.component.scss index 89a542a..251ebe8 100644 --- a/src/app/pages/dashboard/work-space/work-space-body/work-operation/work-operation.component.scss +++ b/src/app/pages/dashboard/work-space/work-space-body/work-operation/work-operation.component.scss @@ -5,6 +5,7 @@ padding: 0 12px; display: flex; align-items: center; + justify-content: space-between; flex-wrap: wrap; d-button { diff --git a/src/app/pages/dashboard/work-space/work-space-body/work-space-body.component.scss b/src/app/pages/dashboard/work-space/work-space-body/work-space-body.component.scss index dab0426..aaa4818 100644 --- a/src/app/pages/dashboard/work-space/work-space-body/work-space-body.component.scss +++ b/src/app/pages/dashboard/work-space/work-space-body/work-space-body.component.scss @@ -19,7 +19,7 @@ display: flex; flex-wrap: wrap; justify-content: flex-start; - padding: 0 16px; + padding: 0 16px 0 32px; } .da-content-title { @@ -29,12 +29,44 @@ .da-team { display: inline-flex; align-items: center; - margin-right: 12px; + margin-right: 24px; margin-bottom: 12px; - width: 200px; + width: calc(14.2857143% - 24px); .da-team-title { margin-left: 12px; } } } + +@media only screen and (max-width: 2360px) { + .da-content-wrapper { + .da-team { + width: calc(16.66666667% - 24px); + } + } +} + +@media only screen and (max-width: 2030px) { + .da-content-wrapper { + .da-team { + width: calc(20% - 24px); + } + } +} + +@media only screen and (max-width: 1690px) { + .da-content-wrapper { + .da-team { + width: calc(33.3333333% - 24px); + } + } +} + +@media only screen and (max-width: 590px) { + .da-content-wrapper { + .da-team { + width: calc(50% - 24px); + } + } +} diff --git a/src/app/pages/dashboard/work-space/work-space-body/work-space-body.component.ts b/src/app/pages/dashboard/work-space/work-space-body/work-space-body.component.ts index b45881d..dfaeb62 100644 --- a/src/app/pages/dashboard/work-space/work-space-body/work-space-body.component.ts +++ b/src/app/pages/dashboard/work-space/work-space-body/work-space-body.component.ts @@ -11,8 +11,7 @@ import { WorkItemService } from 'src/app/@core/mock/work-item.service'; templateUrl: './work-space-body.component.html', styleUrls: ['./work-space-body.component.scss'], }) -export class WorkSpaceBodyComponent - implements OnInit, AfterViewInit, OnDestroy { +export class WorkSpaceBodyComponent implements OnInit, AfterViewInit, OnDestroy { resizeSub: any; workItemElement: any; workItemWidth: number; @@ -27,10 +26,7 @@ export class WorkSpaceBodyComponent tabActiveId = 'tab1'; tabItems; - constructor( - private workItemService: WorkItemService, - private workGroupService: WorkGroupService - ) {} + constructor(private workItemService: WorkItemService, private workGroupService: WorkGroupService) {} ngOnInit(): void { this.workItemElement = document.querySelector('.da-work-space-quadrant'); diff --git a/src/app/pages/dashboard/work-space/work-space-header/work-space-header.component.scss b/src/app/pages/dashboard/work-space/work-space-header/work-space-header.component.scss index cb0a5ef..de59b46 100644 --- a/src/app/pages/dashboard/work-space/work-space-header/work-space-header.component.scss +++ b/src/app/pages/dashboard/work-space/work-space-header/work-space-header.component.scss @@ -57,7 +57,7 @@ } } -@media only screen and (max-width: 1024px) { +@media only screen and (max-width: 1023px) { .da-projects { width: 100%; justify-content: space-between; diff --git a/src/app/pages/form/basic-form/basic-form.component.scss b/src/app/pages/form/basic-form/basic-form.component.scss index 7313521..a76884c 100644 --- a/src/app/pages/form/basic-form/basic-form.component.scss +++ b/src/app/pages/form/basic-form/basic-form.component.scss @@ -13,7 +13,7 @@ form { max-width: 50%; } -@media only screen and (max-width: 1024px) { +@media only screen and (max-width: 1023px) { form { max-width: 80%; } diff --git a/src/app/pages/form/form-layout/form-layout.component.scss b/src/app/pages/form/form-layout/form-layout.component.scss index b4cf9b9..b3eb2db 100644 --- a/src/app/pages/form/form-layout/form-layout.component.scss +++ b/src/app/pages/form/form-layout/form-layout.component.scss @@ -15,7 +15,7 @@ form { max-width: 65%; } -@media only screen and (max-width: 1024px) { +@media only screen and (max-width: 1023px) { form { max-width: 80%; } diff --git a/src/app/pages/list/card-list/card-list.component.scss b/src/app/pages/list/card-list/card-list.component.scss index 26e99a0..a038859 100644 --- a/src/app/pages/list/card-list/card-list.component.scss +++ b/src/app/pages/list/card-list/card-list.component.scss @@ -47,7 +47,7 @@ } } -@media only screen and (max-width: 1024px) { +@media only screen and (max-width: 1023px) { .da-list-content { .card-item { width: calc(50% - 16px); diff --git a/src/app/pages/pages.component.ts b/src/app/pages/pages.component.ts index 04d744f..c36773f 100644 --- a/src/app/pages/pages.component.ts +++ b/src/app/pages/pages.component.ts @@ -136,6 +136,7 @@ export class PagesComponent implements OnInit { title: '', content: PersonalizeComponent, backdropCloseable: true, + draggable: false, onClose: () => {}, buttons: [], }); diff --git a/src/app/pages/user/user-center/user-center.component.scss b/src/app/pages/user/user-center/user-center.component.scss index fba04a5..ef36717 100644 --- a/src/app/pages/user/user-center/user-center.component.scss +++ b/src/app/pages/user/user-center/user-center.component.scss @@ -172,7 +172,7 @@ a:hover { color: $devui-aide-text; } -@media only screen and (max-width: 1024px) { +@media only screen and (max-width: 1023px) { .da-projects .da-card-container { width: 100% !important; margin-right: 0 !important; diff --git a/src/styles.scss b/src/styles.scss index a54b8cb..f85ad57 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -29,8 +29,8 @@ body { background-color: $devui-list-item-active-bg !important; } } -@media only screen and (max-width: 1024px) { +@media only screen and (max-width: 1023px) { .modal-dialog { - max-width: 85% !important; + max-width: 400px !important; } }