From 8efa4eab123aea425b7cca20847992fbbc7b22cc Mon Sep 17 00:00:00 2001 From: MastersGame Date: Thu, 11 Jun 2026 01:20:39 +0200 Subject: [PATCH] import qd-design library --- angular.json | 3 + package-lock.json | 13 ++ package.json | 3 +- src/app/app.html | 343 +-------------------------------------------- src/app/app.ts | 8 +- src/main.server.ts | 4 +- 6 files changed, 25 insertions(+), 349 deletions(-) diff --git a/angular.json b/angular.json index e0973d6..267579d 100644 --- a/angular.json +++ b/angular.json @@ -92,5 +92,8 @@ } } } + }, + "cli": { + "analytics": "18491bb2-d8bd-44f5-a5c0-7bb80617d796" } } diff --git a/package-lock.json b/package-lock.json index 1298b1c..e837a82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@angular/platform-server": "^20.1.0", "@angular/router": "^20.1.0", "@angular/ssr": "^20.1.5", + "@qd/qd-design": "^0.1.0", "express": "^5.1.0", "rxjs": "~7.8.0", "tslib": "^2.3.0" @@ -3045,6 +3046,18 @@ "license": "MIT", "optional": true }, + "node_modules/@qd/qd-design": { + "version": "0.1.0", + "resolved": "https://git.quentinduwa.fr/api/packages/quentin_duwa/npm/%40qd%2Fqd-design/-/0.1.0/qd-design-0.1.0.tgz", + "integrity": "sha512-TGTSwmcNq5I93u60q16LW/XQmNZp4VJmvCmVeEstSR397KqcrZaPzm8z5oR5b5XJAdfrUefy2zhbaAGpfpHhdw==", + "dependencies": { + "tslib": "^2.3.0" + }, + "peerDependencies": { + "@angular/common": "^20.1.0", + "@angular/core": "^20.1.0" + } + }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.59.0", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz", diff --git a/package.json b/package.json index db052a9..d61f4ef 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@angular/platform-server": "^20.1.0", "@angular/router": "^20.1.0", "@angular/ssr": "^20.1.5", + "@qd/qd-design": "^0.1.0", "express": "^5.1.0", "rxjs": "~7.8.0", "tslib": "^2.3.0" @@ -48,4 +49,4 @@ "karma-jasmine-html-reporter": "~2.1.0", "typescript": "~5.8.2" } -} \ No newline at end of file +} diff --git a/src/app/app.html b/src/app/app.html index 7528372..dec48e1 100644 --- a/src/app/app.html +++ b/src/app/app.html @@ -1,342 +1 @@ - - - - - - - - - - - -
-
-
- -

Hello, {{ title() }}

-

Congratulations! Your app is running. 🎉

-
- -
-
- @for (item of [ - { title: 'Explore the Docs', link: 'https://angular.dev' }, - { title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' }, - { title: 'Prompt and best practices for AI', link: 'https://angular.dev/ai/develop-with-ai'}, - { title: 'CLI Docs', link: 'https://angular.dev/tools/cli' }, - { title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' }, - { title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' }, - ]; track item.title) { - - {{ item.title }} - - - - - } -
- -
-
-
- - - - - - - - - - - + diff --git a/src/app/app.ts b/src/app/app.ts index eee8100..9f6d0c1 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -1,12 +1,12 @@ -import { Component, signal } from '@angular/core'; -import { RouterOutlet } from '@angular/router'; +import { Component } from '@angular/core'; +import {QdButton, QdButtonVariantDirective} from '@qd/qd-design'; @Component({ selector: 'app-root', - imports: [RouterOutlet], + imports: [QdButton], templateUrl: './app.html', styleUrl: './app.scss' }) export class App { - protected readonly title = signal('dinggadingga-frontend'); + protected readonly QdButtonVariantDirective = QdButtonVariantDirective; } diff --git a/src/main.server.ts b/src/main.server.ts index 154ce1c..c4639a1 100644 --- a/src/main.server.ts +++ b/src/main.server.ts @@ -1,7 +1,7 @@ -import { bootstrapApplication } from '@angular/platform-browser'; +import { bootstrapApplication, BootstrapContext } from '@angular/platform-browser'; import { App } from './app/app'; import { config } from './app/app.config.server'; -const bootstrap = () => bootstrapApplication(App, config); +const bootstrap = (context: BootstrapContext) => bootstrapApplication(App, config, context); export default bootstrap;