-
Notifications
You must be signed in to change notification settings - Fork 0
chore: upgrade angular #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,38 @@ | ||
| { | ||
| "name": "foliary", | ||
| "version": "0.0.0", | ||
| "scripts": { | ||
| "ng": "ng", | ||
| "start": "ng serve", | ||
| "build": "ng build", | ||
| "watch": "ng build --watch --configuration development", | ||
| "serve:ssr:foliary": "node dist/foliary/server/server.mjs" | ||
| }, | ||
| "private": true, | ||
| "packageManager": "npm@11.6.2", | ||
| "dependencies": { | ||
| "@angular/common": "^21.2.13", | ||
| "@angular/compiler": "^21.2.13", | ||
| "@angular/core": "^21.2.13", | ||
| "@angular/forms": "^21.2.13", | ||
| "@angular/platform-browser": "^21.2.13", | ||
| "@angular/platform-server": "^21.2.13", | ||
| "@angular/router": "^21.2.13", | ||
| "@angular/ssr": "^21.2.11", | ||
| "express": "^5.1.0", | ||
| "rxjs": "~7.8.0", | ||
| "tslib": "^2.3.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@angular/build": "^21.2.11", | ||
| "@angular/cli": "^21.2.11", | ||
| "@angular/compiler-cli": "^21.2.13", | ||
| "@tailwindcss/postcss": "^4.3.2", | ||
| "@types/express": "^5.0.1", | ||
| "@types/node": "^26.1.1", | ||
| "postcss": "^8.5.16", | ||
| "prettier": "^3.9.5", | ||
| "tailwindcss": "^4.3.0", | ||
| "typescript": "~5.9.3" | ||
| } | ||
| "name": "foliary", | ||
| "version": "0.0.0", | ||
| "scripts": { | ||
| "ng": "ng", | ||
| "start": "ng serve", | ||
| "build": "ng build", | ||
| "watch": "ng build --watch --configuration development", | ||
| "serve:ssr:foliary": "node dist/foliary/server/server.mjs" | ||
| }, | ||
| "private": true, | ||
| "packageManager": "npm@11.6.2", | ||
| "dependencies": { | ||
| "@angular/common": "^22.0.7", | ||
| "@angular/compiler": "^22.0.7", | ||
| "@angular/core": "^22.0.7", | ||
| "@angular/forms": "^22.0.7", | ||
| "@angular/platform-browser": "^22.0.7", | ||
| "@angular/platform-server": "^22.0.7", | ||
| "@angular/router": "^22.0.7", | ||
| "@angular/ssr": "^22.0.7", | ||
| "express": "^5.1.0", | ||
| "rxjs": "~7.8.0", | ||
| "tslib": "^2.3.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@angular/build": "^22.0.7", | ||
| "@angular/cli": "^22.0.7", | ||
| "@angular/compiler-cli": "^22.0.7", | ||
| "@tailwindcss/postcss": "^4.3.2", | ||
| "@types/express": "^5.0.1", | ||
| "@types/node": "^26.1.1", | ||
| "postcss": "^8.5.3", | ||
| "prettier": "^3.9.5", | ||
| "tailwindcss": "^4.3.0", | ||
| "typescript": "~6.0.3" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,11 +2,16 @@ import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/ | |
| import { provideRouter } from '@angular/router'; | ||
|
|
||
| import { routes } from './app.routes'; | ||
| import { provideClientHydration, withEventReplay } from '@angular/platform-browser'; | ||
| import { | ||
| provideClientHydration, | ||
| withEventReplay, | ||
| withNoIncrementalHydration, | ||
| } from '@angular/platform-browser'; | ||
|
Comment on lines
+5
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
import {
provideClientHydration,
withEventReplay,
} from '@angular/platform-browser'; |
||
|
|
||
| export const appConfig: ApplicationConfig = { | ||
| providers: [ | ||
| provideBrowserGlobalErrorListeners(), | ||
| provideRouter(routes), provideClientHydration(withEventReplay()) | ||
| ] | ||
| providers: [ | ||
| provideBrowserGlobalErrorListeners(), | ||
| provideRouter(routes), | ||
| provideClientHydration(withEventReplay(), withNoIncrementalHydration()), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ], | ||
| }; | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,11 +4,10 @@ import { NavigationBar } from './component/navigation-bar/navigation-bar'; | |||||
| import { Footer } from './component/footer/footer'; | ||||||
|
|
||||||
| @Component({ | ||||||
| selector: 'app-root', | ||||||
| standalone: true, | ||||||
| imports: [RouterOutlet, NavigationBar, Footer], | ||||||
| templateUrl: './app.html', | ||||||
| styleUrl: './app.css' | ||||||
| selector: 'app-root', | ||||||
| standalone: true, | ||||||
| imports: [RouterOutlet, NavigationBar, Footer], | ||||||
| templateUrl: './app.html', | ||||||
| styleUrl: './app.css', | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }) | ||||||
| export class App { | ||||||
| } | ||||||
| export class App {} | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,12 @@ | ||
| import { Component } from '@angular/core'; | ||
|
|
||
| @Component({ | ||
| selector: 'foliary-card', | ||
| standalone: true, | ||
| templateUrl: './foliary-card.html', | ||
| styleUrl: './foliary-card.css', | ||
| host: { | ||
| 'class': 'bg-surface text-on-surface border border-outline rounded-xl' | ||
| } | ||
| selector: 'foliary-card', | ||
| standalone: true, | ||
| templateUrl: './foliary-card.html', | ||
| styleUrl: './foliary-card.css', | ||
| host: { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| class: 'bg-surface text-on-surface border border-outline rounded-xl', | ||
| }, | ||
| }) | ||
| export class FoliaryCard { | ||
| } | ||
| export class FoliaryCard {} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,12 @@ | ||
| import { Component } from '@angular/core'; | ||
|
|
||
| @Component({ | ||
| selector: 'button[foliary-outlined-button], a[foliary-outlined-button]', | ||
| standalone: true, | ||
| templateUrl: './foliary-outlined-button.html', | ||
| styleUrl: './foliary-outlined-button.css', | ||
| host: { | ||
| 'class': 'bg-transparent text-primary border border-outline rounded-full px-6 py-3 font-medium' | ||
| } | ||
| selector: 'button[foliary-outlined-button], a[foliary-outlined-button]', | ||
| standalone: true, | ||
| templateUrl: './foliary-outlined-button.html', | ||
| styleUrl: './foliary-outlined-button.css', | ||
| host: { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| class: 'bg-transparent text-primary border border-outline rounded-full px-6 py-3 font-medium', | ||
| }, | ||
| }) | ||
| export class FoliaryOutlinedButton { | ||
| } | ||
| export class FoliaryOutlinedButton {} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,12 @@ | ||
| import { Component } from '@angular/core'; | ||
|
|
||
| @Component({ | ||
| selector: 'button[foliary-primary-button], a[foliary-primary-button]', | ||
| standalone: true, | ||
| templateUrl: './foliary-primary-button.html', | ||
| styleUrl: './foliary-primary-button.css', | ||
| host: { | ||
| 'class': 'bg-primary text-on-primary rounded-full px-6 py-3 font-medium' | ||
| } | ||
| selector: 'button[foliary-primary-button], a[foliary-primary-button]', | ||
| standalone: true, | ||
| templateUrl: './foliary-primary-button.html', | ||
| styleUrl: './foliary-primary-button.css', | ||
| host: { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| class: 'bg-primary text-on-primary rounded-full px-6 py-3 font-medium', | ||
| }, | ||
| }) | ||
| export class FoliaryPrimaryButton { | ||
| } | ||
| export class FoliaryPrimaryButton {} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,12 @@ | ||
| import { Component } from '@angular/core'; | ||
|
|
||
| @Component({ | ||
| selector: 'button[foliary-secondary-button], a[foliary-secondary-button]', | ||
| standalone: true, | ||
| templateUrl: './foliary-secondary-button.html', | ||
| styleUrl: './foliary-secondary-button.css', | ||
| host: { | ||
| 'class': 'bg-secondary-container text-on-secondary-container rounded-full px-6 py-3 font-medium' | ||
| } | ||
| selector: 'button[foliary-secondary-button], a[foliary-secondary-button]', | ||
| standalone: true, | ||
| templateUrl: './foliary-secondary-button.html', | ||
| styleUrl: './foliary-secondary-button.css', | ||
| host: { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| class: 'bg-secondary-container text-on-secondary-container rounded-full px-6 py-3 font-medium', | ||
| }, | ||
| }) | ||
| export class FoliarySecondaryButton { | ||
| } | ||
| export class FoliarySecondaryButton {} | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,10 +2,10 @@ import { Component } from '@angular/core'; | |||||
| import { CommonModule } from '@angular/common'; | ||||||
|
|
||||||
| @Component({ | ||||||
| selector: 'app-footer', | ||||||
| standalone: true, | ||||||
| imports: [CommonModule], | ||||||
| templateUrl: './footer.html', | ||||||
| styleUrl: './footer.css' | ||||||
| selector: 'app-footer', | ||||||
| standalone: true, | ||||||
| imports: [CommonModule], | ||||||
| templateUrl: './footer.html', | ||||||
| styleUrl: './footer.css', | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }) | ||||||
| export class Footer {} | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,10 +2,10 @@ import { Component } from '@angular/core'; | |||||
| import { CommonModule } from '@angular/common'; | ||||||
|
|
||||||
| @Component({ | ||||||
| selector: 'app-navigation-bar', | ||||||
| standalone: true, | ||||||
| imports: [CommonModule], | ||||||
| templateUrl: './navigation-bar.html', | ||||||
| styleUrl: './navigation-bar.css' | ||||||
| selector: 'app-navigation-bar', | ||||||
| standalone: true, | ||||||
| imports: [CommonModule], | ||||||
| templateUrl: './navigation-bar.html', | ||||||
| styleUrl: './navigation-bar.css', | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }) | ||||||
| export class NavigationBar {} | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,13 +3,10 @@ import { FoliaryCard } from '../../component/foliary-card/foliary-card'; | |||||
| import { FoliaryPrimaryButton } from '../../component/foliary-primary-button/foliary-primary-button'; | ||||||
|
|
||||||
| @Component({ | ||||||
| selector: 'app-under-construction', | ||||||
| standalone: true, | ||||||
| imports: [ | ||||||
| FoliaryCard, | ||||||
| FoliaryPrimaryButton, | ||||||
| ], | ||||||
| templateUrl: './under-construction.html', | ||||||
| styleUrl: './under-construction.css', | ||||||
| selector: 'app-under-construction', | ||||||
| standalone: true, | ||||||
| imports: [FoliaryCard, FoliaryPrimaryButton], | ||||||
| templateUrl: './under-construction.html', | ||||||
| styleUrl: './under-construction.css', | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }) | ||||||
| export class UnderConstruction {} | ||||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,17 +1,19 @@ | ||||||||||
| /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ | ||||||||||
| /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ | ||||||||||
| { | ||||||||||
| "extends": "./tsconfig.json", | ||||||||||
| "compilerOptions": { | ||||||||||
| "outDir": "./out-tsc/app", | ||||||||||
| "types": [ | ||||||||||
| "node" | ||||||||||
| ] | ||||||||||
| }, | ||||||||||
| "include": [ | ||||||||||
| "src/**/*.ts" | ||||||||||
| ], | ||||||||||
| "exclude": [ | ||||||||||
| "src/**/*.spec.ts" | ||||||||||
| ] | ||||||||||
| "extends": "./tsconfig.json", | ||||||||||
| "compilerOptions": { | ||||||||||
| "outDir": "./out-tsc/app", | ||||||||||
| "types": ["node"] | ||||||||||
| }, | ||||||||||
| "include": ["src/**/*.ts"], | ||||||||||
| "exclude": ["src/**/*.spec.ts"], | ||||||||||
| "angularCompilerOptions": { | ||||||||||
| "extendedDiagnostics": { | ||||||||||
| "checks": { | ||||||||||
| "nullishCoalescingNotNullable": "suppress", | ||||||||||
| "optionalChainNotNullable": "suppress" | ||||||||||
|
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppressing
Suggested change
|
||||||||||
| } | ||||||||||
| } | ||||||||||
| } | ||||||||||
| } | ||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version of
postcsswas downgraded from^8.5.16to^8.5.3. This seems unintentional during an upgrade PR. It is recommended to keep it at^8.5.16or upgrade to the latest version.