@duyanhdev/mvp-ifs-ui-kit 21.0.0
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/.editorconfig +16 -0
- package/.gitmodules +3 -0
- package/.postcssrc.json +5 -0
- package/.prettierignore +14 -0
- package/.prettierrc.json +29 -0
- package/LICENSE.md +21 -0
- package/README.md +59 -0
- package/angular.json +98 -0
- package/eslint.config.js +89 -0
- package/package.json +59 -0
- package/public/demo/images/flag/flag_placeholder.png +0 -0
- package/public/demo/images/footer-image.gif +0 -0
- package/public/demo/images/galleria/galleria1.jpg +0 -0
- package/public/demo/images/galleria/galleria10.jpg +0 -0
- package/public/demo/images/galleria/galleria10s.jpg +0 -0
- package/public/demo/images/galleria/galleria11.jpg +0 -0
- package/public/demo/images/galleria/galleria11s.jpg +0 -0
- package/public/demo/images/galleria/galleria12.jpg +0 -0
- package/public/demo/images/galleria/galleria12s.jpg +0 -0
- package/public/demo/images/galleria/galleria13.jpg +0 -0
- package/public/demo/images/galleria/galleria13s.jpg +0 -0
- package/public/demo/images/galleria/galleria14.jpg +0 -0
- package/public/demo/images/galleria/galleria14s.jpg +0 -0
- package/public/demo/images/galleria/galleria15.jpg +0 -0
- package/public/demo/images/galleria/galleria15s.jpg +0 -0
- package/public/demo/images/galleria/galleria1s.jpg +0 -0
- package/public/demo/images/galleria/galleria2.jpg +0 -0
- package/public/demo/images/galleria/galleria2s.jpg +0 -0
- package/public/demo/images/galleria/galleria3.jpg +0 -0
- package/public/demo/images/galleria/galleria3s.jpg +0 -0
- package/public/demo/images/galleria/galleria4.jpg +0 -0
- package/public/demo/images/galleria/galleria4s.jpg +0 -0
- package/public/demo/images/galleria/galleria5.jpg +0 -0
- package/public/demo/images/galleria/galleria5s.jpg +0 -0
- package/public/demo/images/galleria/galleria6.jpg +0 -0
- package/public/demo/images/galleria/galleria6s.jpg +0 -0
- package/public/demo/images/galleria/galleria7.jpg +0 -0
- package/public/demo/images/galleria/galleria7s.jpg +0 -0
- package/public/demo/images/galleria/galleria8.jpg +0 -0
- package/public/demo/images/galleria/galleria8s.jpg +0 -0
- package/public/demo/images/galleria/galleria9.jpg +0 -0
- package/public/demo/images/galleria/galleria9s.jpg +0 -0
- package/public/demo/images/product/bamboo-watch.jpg +0 -0
- package/public/demo/images/product/black-watch.jpg +0 -0
- package/public/demo/images/product/blue-band.jpg +0 -0
- package/public/demo/images/product/blue-t-shirt.jpg +0 -0
- package/public/demo/images/product/bracelet.jpg +0 -0
- package/public/demo/images/product/brown-purse.jpg +0 -0
- package/public/demo/images/product/chakra-bracelet.jpg +0 -0
- package/public/demo/images/product/galaxy-earrings.jpg +0 -0
- package/public/demo/images/product/game-controller.jpg +0 -0
- package/public/demo/images/product/gaming-set.jpg +0 -0
- package/public/demo/images/product/gold-phone-case.jpg +0 -0
- package/public/demo/images/product/green-earbuds.jpg +0 -0
- package/public/demo/images/product/green-t-shirt.jpg +0 -0
- package/public/demo/images/product/grey-t-shirt.jpg +0 -0
- package/public/demo/images/product/headphones.jpg +0 -0
- package/public/demo/images/product/light-green-t-shirt.jpg +0 -0
- package/public/demo/images/product/lime-band.jpg +0 -0
- package/public/demo/images/product/mini-speakers.jpg +0 -0
- package/public/demo/images/product/painted-phone-case.jpg +0 -0
- package/public/demo/images/product/pink-band.jpg +0 -0
- package/public/demo/images/product/pink-purse.jpg +0 -0
- package/public/demo/images/product/product-placeholder.svg +10 -0
- package/public/demo/images/product/purple-band.jpg +0 -0
- package/public/demo/images/product/purple-gemstone-necklace.jpg +0 -0
- package/public/demo/images/product/purple-t-shirt.jpg +0 -0
- package/public/demo/images/product/shoes.jpg +0 -0
- package/public/demo/images/product/sneakers.jpg +0 -0
- package/public/demo/images/product/teal-t-shirt.jpg +0 -0
- package/public/demo/images/product/yellow-earbuds.jpg +0 -0
- package/public/demo/images/product/yoga-mat.jpg +0 -0
- package/public/demo/images/product/yoga-set.jpg +0 -0
- package/src/app/layout/component/configurator/app.configurator.html +48 -0
- package/src/app/layout/component/configurator/app.configurator.ts +396 -0
- package/src/app/layout/component/floatingconfigurator/app.floatingconfigurator.ts +31 -0
- package/src/app/layout/component/footer/app.footer.scss +52 -0
- package/src/app/layout/component/footer/app.footer.ts +26 -0
- package/src/app/layout/component/layout/app.layout.ts +50 -0
- package/src/app/layout/component/menu/app.menu.html +7 -0
- package/src/app/layout/component/menu/app.menu.scss +13 -0
- package/src/app/layout/component/menu/app.menu.ts +90 -0
- package/src/app/layout/component/menuitem/app.menuitem.html +56 -0
- package/src/app/layout/component/menuitem/app.menuitem.scss +218 -0
- package/src/app/layout/component/menuitem/app.menuitem.ts +126 -0
- package/src/app/layout/component/sidebar/app.sidebar.html +3 -0
- package/src/app/layout/component/sidebar/app.sidebar.scss +0 -0
- package/src/app/layout/component/sidebar/app.sidebar.ts +106 -0
- package/src/app/layout/component/topbar/app.topbar.html +190 -0
- package/src/app/layout/component/topbar/app.topbar.scss +8 -0
- package/src/app/layout/component/topbar/app.topbar.ts +68 -0
- package/src/app/layout/service/layout.service.ts +117 -0
- package/src/app/pages/auth/access.ts +32 -0
- package/src/app/pages/auth/auth.routes.ts +10 -0
- package/src/app/pages/auth/error.ts +32 -0
- package/src/app/pages/auth/login.ts +71 -0
- package/src/app/pages/crud/crud.ts +387 -0
- package/src/app/pages/dashboard/dashboard.css +778 -0
- package/src/app/pages/dashboard/dashboard.html +191 -0
- package/src/app/pages/dashboard/dashboard.ts +348 -0
- package/src/app/pages/documentation/documentation.ts +73 -0
- package/src/app/pages/empty/empty.ts +11 -0
- package/src/app/pages/landing/components/featureswidget.ts +139 -0
- package/src/app/pages/landing/components/footerwidget.ts +73 -0
- package/src/app/pages/landing/components/herowidget.ts +25 -0
- package/src/app/pages/landing/components/highlightswidget.ts +46 -0
- package/src/app/pages/landing/components/pricingwidget.ts +119 -0
- package/src/app/pages/landing/components/topbarwidget.component.ts +68 -0
- package/src/app/pages/landing/landing.ts +31 -0
- package/src/app/pages/notfound/notfound.ts +68 -0
- package/src/app/pages/pages.routes.ts +17 -0
- package/src/app/pages/profile/profile.html +57 -0
- package/src/app/pages/profile/profile.scss +145 -0
- package/src/app/pages/profile/profile.ts +19 -0
- package/src/app/pages/service/country.service.ts +255 -0
- package/src/app/pages/service/customer.service.ts +9057 -0
- package/src/app/pages/service/icon.service.ts +23 -0
- package/src/app/pages/service/node.service.ts +816 -0
- package/src/app/pages/service/photo.service.ts +103 -0
- package/src/app/pages/service/product.service.ts +1322 -0
- package/src/app/pages/tickets/tickets-create/tickets-create.html +140 -0
- package/src/app/pages/tickets/tickets-create/tickets-create.scss +617 -0
- package/src/app/pages/tickets/tickets-create/tickets-create.ts +104 -0
- package/src/app/pages/tickets/tickets-list/ticket-list.html +150 -0
- package/src/app/pages/tickets/tickets-list/ticket-list.scss +392 -0
- package/src/app/pages/tickets/tickets-list/ticket-list.ts +178 -0
- package/src/app/pages/uikit/buttondemo.ts +254 -0
- package/src/app/pages/uikit/chartdemo.ts +290 -0
- package/src/app/pages/uikit/filedemo.ts +52 -0
- package/src/app/pages/uikit/formlayoutdemo.ts +129 -0
- package/src/app/pages/uikit/inputdemo.ts +339 -0
- package/src/app/pages/uikit/listdemo.ts +217 -0
- package/src/app/pages/uikit/mediademo.ts +1021 -0
- package/src/app/pages/uikit/menudemo.ts +540 -0
- package/src/app/pages/uikit/messagesdemo.ts +101 -0
- package/src/app/pages/uikit/miscdemo.ts +192 -0
- package/src/app/pages/uikit/overlaydemo.ts +235 -0
- package/src/app/pages/uikit/panelsdemo.ts +235 -0
- package/src/app/pages/uikit/tabledemo.ts +568 -0
- package/src/app/pages/uikit/timelinedemo.ts +141 -0
- package/src/app/pages/uikit/treedemo.ts +75 -0
- package/src/app/pages/uikit/uikit.routes.ts +35 -0
- package/src/app.component.ts +22 -0
- package/src/app.config.ts +23 -0
- package/src/app.routes.ts +23 -0
- package/src/assets/demo/code.scss +17 -0
- package/src/assets/demo/demo.scss +2 -0
- package/src/assets/demo/flags/flags.css +984 -0
- package/src/assets/layout/_core.scss +24 -0
- package/src/assets/layout/_footer.scss +8 -0
- package/src/assets/layout/_main.scss +21 -0
- package/src/assets/layout/_menu.scss +159 -0
- package/src/assets/layout/_mixins.scss +15 -0
- package/src/assets/layout/_preloading.scss +47 -0
- package/src/assets/layout/_responsive.scss +111 -0
- package/src/assets/layout/_topbar.scss +201 -0
- package/src/assets/layout/_typography.scss +68 -0
- package/src/assets/layout/_utils.scss +25 -0
- package/src/assets/layout/layout.scss +13 -0
- package/src/assets/layout/variables/_common.scss +21 -0
- package/src/assets/layout/variables/_dark.scss +5 -0
- package/src/assets/layout/variables/_light.scss +5 -0
- package/src/assets/styles.scss +4 -0
- package/src/assets/tailwind.css +32 -0
- package/src/index.html +15 -0
- package/src/main.ts +5 -0
- package/tsconfig.app.json +15 -0
- package/tsconfig.json +33 -0
- package/tsconfig.spec.json +15 -0
- package/vercel.json +9 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import {Component} from '@angular/core';
|
|
2
|
+
import {TimelineModule} from 'primeng/timeline';
|
|
3
|
+
import {CardModule} from 'primeng/card';
|
|
4
|
+
import {CommonModule} from '@angular/common';
|
|
5
|
+
import {ButtonModule} from 'primeng/button';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'app-timeline-demo',
|
|
9
|
+
standalone: true,
|
|
10
|
+
imports: [CommonModule, TimelineModule, ButtonModule, CardModule],
|
|
11
|
+
template: `<div class="grid grid-cols-12 gap-8">
|
|
12
|
+
<div class="col-span-12 sm:col-span-6">
|
|
13
|
+
<div class="card">
|
|
14
|
+
<div class="font-semibold text-xl mb-4">Left Align</div>
|
|
15
|
+
<p-timeline [value]="events1">
|
|
16
|
+
<ng-template #content let-event>
|
|
17
|
+
{{ event.status }}
|
|
18
|
+
</ng-template>
|
|
19
|
+
</p-timeline>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-span-12 sm:col-span-6">
|
|
23
|
+
<div class="card">
|
|
24
|
+
<div class="font-semibold text-xl mb-4">Right Align</div>
|
|
25
|
+
<p-timeline [value]="events1" align="right">
|
|
26
|
+
<ng-template #content let-event>
|
|
27
|
+
{{ event.status }}
|
|
28
|
+
</ng-template>
|
|
29
|
+
</p-timeline>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="col-span-12 sm:col-span-6">
|
|
33
|
+
<div class="card">
|
|
34
|
+
<div class="font-semibold text-xl mb-4">Alternate Align</div>
|
|
35
|
+
<p-timeline [value]="events1" align="alternate">
|
|
36
|
+
<ng-template #content let-event>
|
|
37
|
+
{{ event.status }}
|
|
38
|
+
</ng-template>
|
|
39
|
+
</p-timeline>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="col-span-12 sm:col-span-6">
|
|
43
|
+
<div class="card">
|
|
44
|
+
<div class="font-semibold text-xl mb-4">Opposite Content</div>
|
|
45
|
+
<p-timeline [value]="events1">
|
|
46
|
+
<ng-template #content let-event>
|
|
47
|
+
<small class="p-text-secondary">{{ event.date }}</small>
|
|
48
|
+
</ng-template>
|
|
49
|
+
<ng-template #opposite let-event>
|
|
50
|
+
{{ event.status }}
|
|
51
|
+
</ng-template>
|
|
52
|
+
</p-timeline>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="col-span-full">
|
|
56
|
+
<div class="card">
|
|
57
|
+
<div class="font-semibold text-xl mb-4">Templating</div>
|
|
58
|
+
<p-timeline [value]="events1" align="alternate" styleClass="customized-timeline">
|
|
59
|
+
<ng-template #marker let-event>
|
|
60
|
+
<span class="flex w-8 h-8 items-center justify-center text-white rounded-full z-10 shadow-sm" [style]="{ 'background-color': event.color }">
|
|
61
|
+
<i [class]="event.icon"></i>
|
|
62
|
+
</span>
|
|
63
|
+
</ng-template>
|
|
64
|
+
<ng-template #content let-event>
|
|
65
|
+
<p-card [header]="event.status" [subheader]="event.date">
|
|
66
|
+
<img *ngIf="event.image" [src]="'/demo/images/product/' + event.image" [alt]="event.name" width="200" class="shadow" />
|
|
67
|
+
<p>
|
|
68
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse,
|
|
69
|
+
cupiditate neque quas!
|
|
70
|
+
</p>
|
|
71
|
+
<p-button label="Read more" [text]="true" />
|
|
72
|
+
</p-card>
|
|
73
|
+
</ng-template>
|
|
74
|
+
</p-timeline>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="col-span-full">
|
|
78
|
+
<div class="card">
|
|
79
|
+
<div class="font-semibold text-xl mb-4">Horizontal</div>
|
|
80
|
+
<div class="font-semibold mb-2">Top Align</div>
|
|
81
|
+
<p-timeline [value]="events2" layout="horizontal" align="top">
|
|
82
|
+
<ng-template #content let-event>
|
|
83
|
+
{{ event }}
|
|
84
|
+
</ng-template>
|
|
85
|
+
</p-timeline>
|
|
86
|
+
|
|
87
|
+
<div class="font-semibold mt-4 mb-2">Bottom Align</div>
|
|
88
|
+
<p-timeline [value]="events2" layout="horizontal" align="bottom">
|
|
89
|
+
<ng-template #content let-event>
|
|
90
|
+
{{ event }}
|
|
91
|
+
</ng-template>
|
|
92
|
+
</p-timeline>
|
|
93
|
+
|
|
94
|
+
<div class="font-semibold mt-4 mb-2">Alternate Align</div>
|
|
95
|
+
<p-timeline [value]="events2" layout="horizontal" align="alternate">
|
|
96
|
+
<ng-template #content let-event>
|
|
97
|
+
{{ event }}
|
|
98
|
+
</ng-template>
|
|
99
|
+
<ng-template #opposite let-event> </ng-template>
|
|
100
|
+
</p-timeline>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>`
|
|
104
|
+
})
|
|
105
|
+
export class TimelineDemo {
|
|
106
|
+
events1: any[] = [];
|
|
107
|
+
|
|
108
|
+
events2: any[] = [];
|
|
109
|
+
|
|
110
|
+
ngOnInit() {
|
|
111
|
+
this.events1 = [
|
|
112
|
+
{
|
|
113
|
+
status: 'Ordered',
|
|
114
|
+
date: '15/10/2020 10:30',
|
|
115
|
+
icon: 'pi pi-shopping-cart',
|
|
116
|
+
color: '#9C27B0',
|
|
117
|
+
image: 'game-controller.jpg'
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
status: 'Processing',
|
|
121
|
+
date: '15/10/2020 14:00',
|
|
122
|
+
icon: 'pi pi-cog',
|
|
123
|
+
color: '#673AB7'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
status: 'Shipped',
|
|
127
|
+
date: '15/10/2020 16:15',
|
|
128
|
+
icon: 'pi pi-envelope',
|
|
129
|
+
color: '#FF9800'
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
status: 'Delivered',
|
|
133
|
+
date: '16/10/2020 10:00',
|
|
134
|
+
icon: 'pi pi-check',
|
|
135
|
+
color: '#607D8B'
|
|
136
|
+
}
|
|
137
|
+
];
|
|
138
|
+
|
|
139
|
+
this.events2 = ['2020', '2021', '2022', '2023'];
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Component, inject, OnInit, signal } from '@angular/core';
|
|
2
|
+
import { TreeNode } from 'primeng/api';
|
|
3
|
+
import { TreeModule } from 'primeng/tree';
|
|
4
|
+
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import { TreeTableModule } from 'primeng/treetable';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { NodeService } from '@/app/pages/service/node.service';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'app-tree-demo',
|
|
11
|
+
standalone: true,
|
|
12
|
+
imports: [CommonModule, FormsModule, TreeModule, TreeTableModule],
|
|
13
|
+
template: `
|
|
14
|
+
<div class="card">
|
|
15
|
+
<div class="font-semibold text-xl">Tree</div>
|
|
16
|
+
<p-tree [value]="treeValue()" selectionMode="checkbox" [(selection)]="selectedTreeValue"></p-tree>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="card">
|
|
20
|
+
<div class="font-semibold text-xl mb-4">TreeTable</div>
|
|
21
|
+
<p-treetable [value]="treeTableValue()" [columns]="cols" selectionMode="checkbox" [(selectionKeys)]="selectedTreeTableValue" dataKey="key" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
22
|
+
<ng-template #header let-columns>
|
|
23
|
+
<tr>
|
|
24
|
+
<th *ngFor="let col of columns">
|
|
25
|
+
{{ col.header }}
|
|
26
|
+
</th>
|
|
27
|
+
</tr>
|
|
28
|
+
</ng-template>
|
|
29
|
+
<ng-template #body let-rowNode let-rowData="rowData" let-columns="columns">
|
|
30
|
+
<tr [ttRow]="rowNode" [ttSelectableRow]="rowNode">
|
|
31
|
+
<td *ngFor="let col of columns; let i = index">
|
|
32
|
+
<span class="flex items-center gap-2">
|
|
33
|
+
<p-treeTableToggler [rowNode]="rowNode" *ngIf="i === 0" />
|
|
34
|
+
<p-treeTableCheckbox [value]="rowNode" *ngIf="i === 0" />
|
|
35
|
+
{{ rowData[col.field] }}
|
|
36
|
+
</span>
|
|
37
|
+
</td>
|
|
38
|
+
</tr>
|
|
39
|
+
</ng-template>
|
|
40
|
+
</p-treetable>
|
|
41
|
+
</div>
|
|
42
|
+
`,
|
|
43
|
+
providers: [NodeService]
|
|
44
|
+
})
|
|
45
|
+
export class TreeDemo implements OnInit {
|
|
46
|
+
treeValue = signal<TreeNode[]>([]);
|
|
47
|
+
|
|
48
|
+
treeTableValue = signal<TreeNode[]>([]);
|
|
49
|
+
|
|
50
|
+
selectedTreeValue: TreeNode[] = [];
|
|
51
|
+
|
|
52
|
+
selectedTreeTableValue = {};
|
|
53
|
+
|
|
54
|
+
cols: any[] = [];
|
|
55
|
+
|
|
56
|
+
nodeService = inject(NodeService);
|
|
57
|
+
|
|
58
|
+
ngOnInit() {
|
|
59
|
+
this.nodeService.getFiles().then((files) => this.treeValue.set(files));
|
|
60
|
+
this.nodeService.getTreeTableNodes().then((files: any) => this.treeTableValue.set(files));
|
|
61
|
+
|
|
62
|
+
this.cols = [
|
|
63
|
+
{ field: 'name', header: 'Name' },
|
|
64
|
+
{ field: 'size', header: 'Size' },
|
|
65
|
+
{ field: 'type', header: 'Type' }
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
this.selectedTreeTableValue = {
|
|
69
|
+
'0-0': {
|
|
70
|
+
partialChecked: false,
|
|
71
|
+
checked: true
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
import { ButtonDemo } from './buttondemo';
|
|
3
|
+
import { ChartDemo } from './chartdemo';
|
|
4
|
+
import { FileDemo } from './filedemo';
|
|
5
|
+
import { FormLayoutDemo } from './formlayoutdemo';
|
|
6
|
+
import { InputDemo } from './inputdemo';
|
|
7
|
+
import { ListDemo } from './listdemo';
|
|
8
|
+
import { MediaDemo } from './mediademo';
|
|
9
|
+
import { MessagesDemo } from './messagesdemo';
|
|
10
|
+
import { MiscDemo } from './miscdemo';
|
|
11
|
+
import { PanelsDemo } from './panelsdemo';
|
|
12
|
+
import { TimelineDemo } from './timelinedemo';
|
|
13
|
+
import { TableDemo } from './tabledemo';
|
|
14
|
+
import { OverlayDemo } from './overlaydemo';
|
|
15
|
+
import { TreeDemo } from './treedemo';
|
|
16
|
+
import { MenuDemo } from './menudemo';
|
|
17
|
+
|
|
18
|
+
export default [
|
|
19
|
+
{ path: 'button', data: { breadcrumb: 'Button' }, component: ButtonDemo },
|
|
20
|
+
{ path: 'charts', data: { breadcrumb: 'Charts' }, component: ChartDemo },
|
|
21
|
+
{ path: 'file', data: { breadcrumb: 'File' }, component: FileDemo },
|
|
22
|
+
{ path: 'formlayout', data: { breadcrumb: 'Button' }, component: ButtonDemo },
|
|
23
|
+
{ path: 'input', data: { breadcrumb: 'Input' }, component: InputDemo },
|
|
24
|
+
{ path: 'list', data: { breadcrumb: 'List' }, component: ListDemo },
|
|
25
|
+
{ path: 'media', data: { breadcrumb: 'Media' }, component: MediaDemo },
|
|
26
|
+
{ path: 'message', data: { breadcrumb: 'Message' }, component: MessagesDemo },
|
|
27
|
+
{ path: 'misc', data: { breadcrumb: 'Misc' }, component: MiscDemo },
|
|
28
|
+
{ path: 'panel', data: { breadcrumb: 'Panel' }, component: PanelsDemo },
|
|
29
|
+
{ path: 'timeline', data: { breadcrumb: 'Timeline' }, component: TimelineDemo },
|
|
30
|
+
{ path: 'table', data: { breadcrumb: 'Table' }, component: TableDemo },
|
|
31
|
+
{ path: 'overlay', data: { breadcrumb: 'Overlay' }, component: OverlayDemo },
|
|
32
|
+
{ path: 'tree', data: { breadcrumb: 'Tree' }, component: TreeDemo },
|
|
33
|
+
{ path: 'menu', data: { breadcrumb: 'Menu' }, component: MenuDemo },
|
|
34
|
+
{ path: '**', redirectTo: '/notfound' }
|
|
35
|
+
] as Routes;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { RouterModule } from '@angular/router';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'app-root',
|
|
7
|
+
standalone: true,
|
|
8
|
+
imports: [RouterModule],
|
|
9
|
+
template: `<router-outlet></router-outlet>`
|
|
10
|
+
})
|
|
11
|
+
export class AppComponent {
|
|
12
|
+
constructor(private translate: TranslateService) {}
|
|
13
|
+
|
|
14
|
+
ngOnInit() {
|
|
15
|
+
this.translate.addLangs(['vi', 'en', 'ja']);
|
|
16
|
+
|
|
17
|
+
const saved = localStorage.getItem('lang') || 'vi';
|
|
18
|
+
|
|
19
|
+
this.translate.setFallbackLang('vi'); // 🔥 NEW API
|
|
20
|
+
this.translate.use(saved);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTTP_INTERCEPTORS, provideHttpClient, withFetch, withInterceptorsFromDi } from '@angular/common/http';
|
|
2
|
+
import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';
|
|
3
|
+
import { provideRouter, withEnabledBlockingInitialNavigation, withInMemoryScrolling } from '@angular/router';
|
|
4
|
+
import Aura from '@primeuix/themes/aura';
|
|
5
|
+
import { providePrimeNG } from 'primeng/config';
|
|
6
|
+
import { appRoutes } from './app.routes';
|
|
7
|
+
import { provideTranslateService } from '@ngx-translate/core';
|
|
8
|
+
import { provideTranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
9
|
+
export const appConfig: ApplicationConfig = {
|
|
10
|
+
providers: [
|
|
11
|
+
provideRouter(appRoutes, withInMemoryScrolling({ anchorScrolling: 'enabled', scrollPositionRestoration: 'enabled' }), withEnabledBlockingInitialNavigation()),
|
|
12
|
+
provideHttpClient(withFetch(), withInterceptorsFromDi()),
|
|
13
|
+
|
|
14
|
+
provideZonelessChangeDetection(),
|
|
15
|
+
providePrimeNG({ theme: { preset: Aura, options: { darkModeSelector: '.app-dark' } } }),
|
|
16
|
+
provideTranslateService({
|
|
17
|
+
loader: provideTranslateHttpLoader({
|
|
18
|
+
prefix: '/i18n/',
|
|
19
|
+
suffix: '.json'
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
]
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
import { AppLayout } from './app/layout/component/layout/app.layout';
|
|
3
|
+
import { DashboardComponent } from './app/pages/dashboard/dashboard';
|
|
4
|
+
import { Documentation } from './app/pages/documentation/documentation';
|
|
5
|
+
import { Landing } from './app/pages/landing/landing';
|
|
6
|
+
import { Notfound } from './app/pages/notfound/notfound';
|
|
7
|
+
|
|
8
|
+
export const appRoutes: Routes = [
|
|
9
|
+
{
|
|
10
|
+
path: '',
|
|
11
|
+
component: AppLayout,
|
|
12
|
+
children: [
|
|
13
|
+
{ path: '', component: DashboardComponent },
|
|
14
|
+
{ path: 'uikit', loadChildren: () => import('./app/pages/uikit/uikit.routes') },
|
|
15
|
+
{ path: 'projects', loadChildren: () => import('./app/pages/pages.routes') },
|
|
16
|
+
{ path: 'documentation', component: Documentation }
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{ path: 'landing', component: Landing },
|
|
20
|
+
{ path: 'notfound', component: Notfound },
|
|
21
|
+
{ path: 'auth', loadChildren: () => import('./app/pages/auth/auth.routes') },
|
|
22
|
+
{ path: '**', redirectTo: '/notfound' }
|
|
23
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
pre.app-code {
|
|
2
|
+
background-color: var(--code-background);
|
|
3
|
+
margin: 0 0 1rem 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
border-radius: var(--content-border-radius);
|
|
6
|
+
overflow: auto;
|
|
7
|
+
|
|
8
|
+
code {
|
|
9
|
+
color: var(--code-color);
|
|
10
|
+
padding: 1rem;
|
|
11
|
+
margin: 0;
|
|
12
|
+
line-height: 1.5;
|
|
13
|
+
display: block;
|
|
14
|
+
font-weight: semibold;
|
|
15
|
+
font-family: monaco, Consolas, monospace;
|
|
16
|
+
}
|
|
17
|
+
}
|