Skip to content

Commit ceb11c4

Browse files
authored
Angular 19 (#28)
* Angular 19 upgrade done and new folder structure add * update readme file content * readme file content update
1 parent 0469af4 commit ceb11c4

59 files changed

Lines changed: 4524 additions & 3518 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

angular.json

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,27 @@
1717
"build": {
1818
"builder": "@angular-devkit/build-angular:browser",
1919
"options": {
20-
"allowedCommonJsDependencies": ["apexcharts"],
20+
"allowedCommonJsDependencies": [
21+
"apexcharts"
22+
],
2123
"outputPath": "dist",
2224
"index": "src/index.html",
2325
"main": "src/main.ts",
2426
"polyfills": "src/polyfills.ts",
2527
"tsConfig": "tsconfig.app.json",
2628
"inlineStyleLanguage": "scss",
27-
"assets": ["src/favicon.ico", "src/assets", "src/fake-data"],
28-
"styles": ["node_modules/bootstrap/scss/bootstrap.scss", "src/styles.scss"],
29-
"scripts": ["node_modules/apexcharts/dist/apexcharts.min.js"]
29+
"assets": [
30+
"src/favicon.ico",
31+
"src/assets",
32+
"src/fake-data"
33+
],
34+
"styles": [
35+
"node_modules/bootstrap/scss/bootstrap.scss",
36+
"src/styles.scss"
37+
],
38+
"scripts": [
39+
"node_modules/apexcharts/dist/apexcharts.min.js"
40+
]
3041
},
3142
"configurations": {
3243
"production": {
@@ -87,15 +98,32 @@
8798
"tsConfig": "tsconfig.spec.json",
8899
"karmaConfig": "karma.conf.js",
89100
"inlineStyleLanguage": "scss",
90-
"assets": ["src/favicon.ico", "src/assets"],
91-
"styles": ["src/styles.scss"],
101+
"assets": [
102+
"src/favicon.ico",
103+
"src/assets"
104+
],
105+
"styles": [
106+
"src/styles.scss"
107+
],
92108
"scripts": []
93109
}
110+
},
111+
"lint": {
112+
"builder": "@angular-eslint/builder:lint",
113+
"options": {
114+
"lintFilePatterns": [
115+
"src/**/*.ts",
116+
"src/**/*.html"
117+
]
118+
}
94119
}
95120
}
96121
}
97122
},
98123
"cli": {
99-
"analytics": "0eaad924-6e2a-434b-aad5-51d9f46776fc"
124+
"analytics": "0eaad924-6e2a-434b-aad5-51d9f46776fc",
125+
"schematicCollections": [
126+
"angular-eslint"
127+
]
100128
}
101129
}

eslint.config.mjs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import path from "node:path";
2+
import { fileURLToPath } from "node:url";
3+
import js from "@eslint/js";
4+
import { FlatCompat } from "@eslint/eslintrc";
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = path.dirname(__filename);
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: js.configs.recommended,
11+
allConfig: js.configs.all
12+
});
13+
14+
export default [{
15+
ignores: ["projects/**/*"],
16+
}, ...compat.extends(
17+
"eslint:recommended",
18+
"plugin:@typescript-eslint/recommended",
19+
"plugin:@angular-eslint/recommended",
20+
"plugin:@angular-eslint/template/process-inline-templates",
21+
).map(config => ({
22+
...config,
23+
files: ["**/*.ts"],
24+
})), {
25+
files: ["**/*.ts"],
26+
27+
rules: {
28+
"@angular-eslint/directive-selector": ["error", {
29+
type: "attribute",
30+
prefix: "app",
31+
style: "camelCase",
32+
}],
33+
34+
"@angular-eslint/component-selector": ["error", {
35+
type: "element",
36+
prefix: "app",
37+
style: "kebab-case",
38+
}],
39+
},
40+
}, ...compat.extends("plugin:@angular-eslint/template/recommended").map(config => ({
41+
...config,
42+
files: ["**/*.html"],
43+
})), {
44+
files: ["**/*.html"],
45+
rules: {},
46+
}];

package.json

Lines changed: 39 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,53 @@
88
"build": "ng build",
99
"build-prod": "ng build --configuration production --base-href /demos/admin-templates/datta-able/angular/free/",
1010
"watch": "ng build --watch --configuration development",
11-
"test": "ng test"
11+
"test": "ng test",
12+
"lint": "ng lint",
13+
"lint:fix": "ng lint --fix",
14+
"prettier": "prettier --write ./src"
1215
},
1316
"private": false,
1417
"dependencies": {
15-
"@angular/animations": "^18.0.5",
16-
"@angular/cdk": "^18.0.5",
17-
"@angular/common": "^18.0.5",
18-
"@angular/compiler": "^18.0.5",
19-
"@angular/core": "^18.0.5",
20-
"@angular/forms": "^18.0.5",
21-
"@angular/localize": "^18.0.5",
22-
"@angular/platform-browser": "^18.0.5",
23-
"@angular/platform-browser-dynamic": "^18.0.5",
24-
"@angular/router": "^18.0.5",
25-
"@ng-bootstrap/ng-bootstrap": "^17.0.0",
26-
"@popperjs/core": "^2.11.8",
27-
"apexcharts": "^3.49.2",
28-
"bootstrap": "^5.3.3",
29-
"ng-apexcharts": "^1.11.0",
30-
"ngx-scrollbar": "^15.0.1",
18+
"@angular/animations": "19.0.5",
19+
"@angular/cdk": "19.0.4",
20+
"@angular/common": "19.0.5",
21+
"@angular/compiler": "19.0.5",
22+
"@angular/core": "19.0.5",
23+
"@angular/forms": "19.0.5",
24+
"@angular/localize": "19.0.5",
25+
"@angular/platform-browser": "19.0.5",
26+
"@angular/platform-browser-dynamic": "19.0.5",
27+
"@angular/router": "19.0.5",
28+
"@ng-bootstrap/ng-bootstrap": "18.0.0",
29+
"@popperjs/core": "2.11.8",
30+
"apexcharts": "3.49.2",
31+
"bootstrap": "5.3.3",
32+
"ng-apexcharts": "1.11.0",
33+
"ngx-scrollbar": "16.1.1",
3134
"rxjs": "~7.8.1",
32-
"screenfull": "^6.0.2",
33-
"tslib": "^2.6.3",
34-
"zone.js": "~0.14.7"
35+
"screenfull": "6.0.2",
36+
"tslib": "2.8.1",
37+
"zone.js": "~0.15.0"
3538
},
3639
"devDependencies": {
37-
"@angular-devkit/build-angular": "^18.0.6",
38-
"@angular/cli": "~18.0.6",
39-
"@angular/compiler-cli": "^18.0.5",
40-
"@types/jasmine": "~5.1.4",
41-
"@types/node": "^20.14.9",
42-
"jasmine-core": "~5.1.2",
43-
"karma": "~6.4.3",
40+
"@angular-devkit/build-angular": "19.0.6",
41+
"@angular/cli": "19.0.6",
42+
"@angular/compiler-cli": "19.0.5",
43+
"@eslint/eslintrc": "3.2.0",
44+
"@eslint/js": "9.17.0",
45+
"@types/jasmine": "~5.1.5",
46+
"@types/lodash": "4.17.13",
47+
"@types/node": "22.10.2",
48+
"angular-eslint": "19.0.2",
49+
"eslint": "^9.16.0",
50+
"jasmine-core": "~5.5.0",
51+
"karma": "~6.4.4",
4452
"karma-chrome-launcher": "~3.2.0",
4553
"karma-coverage": "~2.2.1",
4654
"karma-jasmine": "~5.1.0",
4755
"karma-jasmine-html-reporter": "~2.1.0",
48-
"prettier": "3.3.2",
49-
"typescript": "5.4"
56+
"prettier": "3.4.2",
57+
"typescript": "5.6.3",
58+
"typescript-eslint": "8.18.0"
5059
}
51-
}
60+
}

src/app/app-config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
export class DattaConfig {
2-
static layout: string = 'vertical';
3-
static isCollapseMenu: Boolean = false;
4-
}

src/app/app-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const routes: Routes = [
1515
},
1616
{
1717
path: 'dashboard',
18-
loadComponent: () => import('./demo/dashboard/dashboard.component')
18+
loadComponent: () => import('./demo/dashboard/dashboard.component').then((c) => c.DashboardComponent)
1919
},
2020
{
2121
path: 'basic',
@@ -31,7 +31,7 @@ const routes: Routes = [
3131
},
3232
{
3333
path: 'apexchart',
34-
loadComponent: () => import('./demo/chart/apex-chart/apex-chart.component')
34+
loadComponent: () => import('./demo/pages/core-chart/apex-chart/apex-chart.component')
3535
},
3636
{
3737
path: 'sample-page',

src/app/app.component.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
import { Component, OnInit } from '@angular/core';
2-
import { NavigationEnd, Router } from '@angular/router';
1+
// Angular import
2+
import { Component, OnInit, inject } from '@angular/core';
3+
import { NavigationEnd, Router, RouterModule } from '@angular/router';
4+
5+
// project import
6+
import { SpinnerComponent } from './theme/shared/components/spinner/spinner.component';
37

48
@Component({
59
selector: 'app-root',
10+
imports: [SpinnerComponent, RouterModule],
611
templateUrl: './app.component.html',
712
styleUrls: ['./app.component.scss']
813
})
914
export class AppComponent implements OnInit {
10-
title = 'datta-able';
15+
private router = inject(Router);
1116

12-
constructor(private router: Router) {}
17+
title = 'datta-able';
1318

19+
// life cycle hook
1420
ngOnInit() {
1521
this.router.events.subscribe((evt) => {
1622
if (!(evt instanceof NavigationEnd)) {

src/app/app.module.ts

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/app/demo/admin-panel/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
**Note:** *This README file is maintained to ensure the product structure aligns with the Pro version, making migration to Pro seamless when you choose to upgrade. This alignment aims to provide a smoother experience during the upgrade, especially regarding directory structure. You may notice these files and folders appearing throughout the project where they are part of the Pro version. While this might feel slightly inconvenient, it is intended to simplify your migration process and provide assistance. If these files are unnecessary for your use case, you can easily remove them.*
2+
3+
Please continue reading below to explore the features of the Pro version:
4+
5+
# Datta Able Admin Panel - Unlock Premium Features with the Pro Version
6+
7+
Looking for more advanced features and pages? This page(folder) is part of the premium version of our <b>4.0.0</b> template. Upgrade to the Pro version to access these exclusive pages and take your project to the next level!
8+
9+
## Included in the Pro Version:
10+
11+
- [Dashboard](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/dashboard/default) : Interactive and insightful dashboards with essential data visualizations.
12+
- [Widget](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/widget/statistic) : Pre-built widgets to enhance functionality and speed up development.
13+
- [Admin Panel](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/online-course/dashboard) : Fully responsive and user-friendly admin panel for efficient management.
14+
- [Component](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/basic/alert) : A diverse library of reusable and customizable UI components.
15+
- [Icons](https://feathericons.com/) : A variety of icons for intuitive navigation and design.
16+
- [Forms](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/forms/basic) : Dynamic forms with validation and customization options.
17+
- [Table](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/bootstrap/basicTable) : Structured and sortable tables for data management.
18+
- [Chart](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/chart/apex-chart) : Beautifully rendered charts to present data visually.
19+
- [Authentication](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/auth/signup) : Secure authentication pages with login, signup, and password recovery.
20+
- [To Do List](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/todo/basic) : A functional and intuitive task manager.
21+
- [Rating](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/advance/rating) : Integrated rating components for user feedback.
22+
- [Toasts](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/basic/toasts) : Notification system for alerts and messages.
23+
24+
👉 [Explore the Pro version now](https://codedthemes.com/item/datta-able-angular/?utm_source=free_demo&utm_medium=codedthemes&utm_campaign=button_download_premium) - and supercharge your development experience!

src/app/demo/application/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
**Note:** *This README file is maintained to ensure the product structure aligns with the Pro version, making migration to Pro seamless when you choose to upgrade. This alignment aims to provide a smoother experience during the upgrade, especially regarding directory structure. You may notice these files and folders appearing throughout the project where they are part of the Pro version. While this might feel slightly inconvenient, it is intended to simplify your migration process and provide assistance. If these files are unnecessary for your use case, you can easily remove them.*
2+
3+
Please continue reading below to explore the features of the Pro version:
4+
5+
# Datta Able Admin Panel - Unlock Premium Features with the Pro Version
6+
7+
Looking for more advanced features and pages? This page(folder) is part of the premium version of our <b>4.0.0</b> template. Upgrade to the Pro version to access these exclusive pages and take your project to the next level!
8+
9+
## Included in the Pro Version:
10+
11+
- [Dashboard](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/dashboard/default) : Interactive and insightful dashboards with essential data visualizations.
12+
- [Widget](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/widget/statistic) : Pre-built widgets to enhance functionality and speed up development.
13+
- [Admin Panel](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/online-course/dashboard) : Fully responsive and user-friendly admin panel for efficient management.
14+
- [Component](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/basic/alert) : A diverse library of reusable and customizable UI components.
15+
- [Icons](https://feathericons.com/) : A variety of icons for intuitive navigation and design.
16+
- [Forms](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/forms/basic) : Dynamic forms with validation and customization options.
17+
- [Table](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/bootstrap/basicTable) : Structured and sortable tables for data management.
18+
- [Chart](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/chart/apex-chart) : Beautifully rendered charts to present data visually.
19+
- [Authentication](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/auth/signup) : Secure authentication pages with login, signup, and password recovery.
20+
- [To Do List](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/todo/basic) : A functional and intuitive task manager.
21+
- [Rating](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/advance/rating) : Integrated rating components for user feedback.
22+
- [Toasts](https://codedthemes.com/demos/admin-templates/datta-able/angular/default/basic/toasts) : Notification system for alerts and messages.
23+
24+
👉 [Explore the Pro version now](https://codedthemes.com/item/datta-able-angular/?utm_source=free_demo&utm_medium=codedthemes&utm_campaign=button_download_premium) - and supercharge your development experience!

0 commit comments

Comments
 (0)