Skip to content

Commit

Permalink
update to angular 19
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Nov 27, 2024
1 parent 83ccba1 commit cddb356
Show file tree
Hide file tree
Showing 13 changed files with 2,333 additions and 1,886 deletions.
25 changes: 13 additions & 12 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "www",
"outputPath": {
"base": "www"
},
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"src/polyfills.ts"
],
"tsConfig": "src/tsconfig.app.json",
"assets": [
{
Expand All @@ -43,7 +46,8 @@
"scripts": [],
"allowedCommonJsDependencies": [
"moment"
]
],
"browser": "src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -59,17 +63,14 @@
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
],
"serviceWorker": true,
"ngswConfigPath": "src/ngsw-config.json"
"serviceWorker": "src/ngsw-config.json"
},
"ci": {
"progress": false
Expand All @@ -79,11 +80,11 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app:build"
"buildTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
"buildTarget": "app:build:production"
},
"ci": {
"progress": false
Expand All @@ -93,7 +94,7 @@
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "app:build"
"buildTarget": "app:build"
}
},
"test": {
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~18.2.12",
"@angular/common": "~18.2.12",
"@angular/core": "~18.2.12",
"@angular/animations": "~19.0.1",
"@angular/common": "~19.0.1",
"@angular/core": "~19.0.1",
"@angular/fire": "^18.0.1",
"@angular/forms": "~18.2.12",
"@angular/platform-browser": "~18.2.12",
"@angular/platform-browser-dynamic": "~18.2.12",
"@angular/router": "~18.2.12",
"@angular/service-worker": "~18.2.12",
"@angular/forms": "~19.0.1",
"@angular/platform-browser": "~19.0.1",
"@angular/platform-browser-dynamic": "~19.0.1",
"@angular/router": "~19.0.1",
"@angular/service-worker": "~19.0.1",
"@heliomarpm/ion-calendar": "^7.16.4",
"@ionic/angular": "^8.4.0",
"@ionic/core": "^8.4.0",
Expand All @@ -41,16 +41,16 @@
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^18.2.12",
"@angular-devkit/build-angular": "^19.0.2",
"@angular-eslint/builder": "18.4.1",
"@angular-eslint/eslint-plugin": "18.4.1",
"@angular-eslint/eslint-plugin-template": "18.4.1",
"@angular-eslint/schematics": "18.4.1",
"@angular-eslint/template-parser": "18.4.1",
"@angular/cli": "~18.2.12",
"@angular/compiler": "~18.2.12",
"@angular/compiler-cli": "~18.2.12",
"@angular/language-service": "~18.2.12",
"@angular/cli": "~19.0.2",
"@angular/compiler": "~19.0.1",
"@angular/compiler-cli": "~19.0.1",
"@angular/language-service": "~19.0.1",
"@ionic/angular-toolkit": "^12.1.1",
"@types/hammerjs": "^2.0.46",
"@types/node": "~22.9.0",
Expand All @@ -65,7 +65,7 @@
"eslint-plugin-react": "^7.37.2",
"prettier": "^3.3.3",
"ts-node": "~10.9.2",
"typescript": "5.5.4"
"typescript": "5.6.3"
},
"packageManager": "[email protected]+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387"
}
4,129 changes: 2,283 additions & 1,846 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/app/about/about.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {Component, OnInit} from '@angular/core';
selector: 'app-about',
templateUrl: './about.page.html',
styleUrls: ['./about.page.scss'],
standalone: false
})
export class AboutPage implements OnInit {

Expand Down
3 changes: 2 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export const MONTHS = ['January',

@Component({
selector: 'app-root',
templateUrl: 'app.component.html'
templateUrl: 'app.component.html',
standalone: false
})
export class AppComponent {
public appPages = [];
Expand Down
1 change: 1 addition & 0 deletions src/app/auth/login/login.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {AuthService} from '../auth.service';
selector: 'app-login',
templateUrl: './login.page.html',
styleUrls: ['./login.page.scss'],
standalone: false
})
export class LoginPage implements OnInit {
userEmail: string;
Expand Down
1 change: 1 addition & 0 deletions src/app/auth/signup/signup.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {AuthService} from '../auth.service';
selector: 'app-signup',
templateUrl: './signup.page.html',
styleUrls: ['./signup.page.scss'],
standalone: false
})
export class SignupPage implements OnInit {
userEmail: string;
Expand Down
1 change: 1 addition & 0 deletions src/app/month/month.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ interface ICalendarComponentOptions2 extends ICalendarComponentOptions {
selector: "app-month",
templateUrl: "./month.page.html",
styleUrls: ["./month.page.scss"],
standalone: false
})
export class MonthPage implements OnInit {
@ViewChild("calendar", {read: CalendarComponent, static: true})
Expand Down
1 change: 1 addition & 0 deletions src/app/notes/notes.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {MaterialService} from '../services/material.service';
selector: 'app-notes',
templateUrl: './notes.page.html',
styleUrls: ['./notes.page.scss'],
standalone: false
})
export class NotesPage implements OnInit {
data: any;
Expand Down
3 changes: 2 additions & 1 deletion src/app/today/text-select-event.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ interface SelectionRectangle {

@Directive({
selector: '[textSelect]',
outputs: ['textSelectEvent: textSelect']
outputs: ['textSelectEvent: textSelect'],
standalone: false
})
export class TextSelectDirective implements OnInit, OnDestroy {

Expand Down
7 changes: 4 additions & 3 deletions src/app/today/today.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import { AngularFireAnalytics } from "@angular/fire/compat/analytics";
import { DateTime } from "luxon";

@Component({
selector: "app-today",
templateUrl: "./today.page.html",
styleUrls: ["./today.page.scss"],
selector: "app-today",
templateUrl: "./today.page.html",
styleUrls: ["./today.page.scss"],
standalone: false
})
export class TodayPage implements OnInit {
@ViewChild("content", { static: true }) content;
Expand Down
18 changes: 9 additions & 9 deletions src/global.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// http://ionicframework.com/docs/theming/
@import '~@ionic/angular/css/core.css';
@import '~@ionic/angular/css/normalize.css';
@import '~@ionic/angular/css/structure.css';
@import '~@ionic/angular/css/typography.css';
@import '@ionic/angular/css/core.css';
@import '@ionic/angular/css/normalize.css';
@import '@ionic/angular/css/structure.css';
@import '@ionic/angular/css/typography.css';

@import '~@ionic/angular/css/padding.css';
@import '~@ionic/angular/css/float-elements.css';
@import '~@ionic/angular/css/text-alignment.css';
@import '~@ionic/angular/css/text-transformation.css';
@import '~@ionic/angular/css/flex-utils.css';
@import '@ionic/angular/css/padding.css';
@import '@ionic/angular/css/float-elements.css';
@import '@ionic/angular/css/text-alignment.css';
@import '@ionic/angular/css/text-transformation.css';
@import '@ionic/angular/css/flex-utils.css';


@media (min-width: 450px) {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"esModuleInterop": true,
"declaration": false,
"module": "esnext",
"moduleResolution": "node",
Expand Down

0 comments on commit cddb356

Please sign in to comment.