From 79912379784d79f0020a8980e299b32b2a216901 Mon Sep 17 00:00:00 2001 From: Butterfly Dev Date: Tue, 7 Apr 2026 03:27:30 +0000 Subject: [PATCH] =?UTF-8?q?desktop:=20app.ts/html/scss=20=E2=80=94=20root?= =?UTF-8?q?=20component=20with=20DesktopComponent,=20HTTP=20provider,=20gl?= =?UTF-8?q?obal=20reset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desktop/src/app/app.html | 345 +-------------------------------------- desktop/src/app/app.scss | 10 ++ desktop/src/app/app.ts | 15 +- 3 files changed, 20 insertions(+), 350 deletions(-) diff --git a/desktop/src/app/app.html b/desktop/src/app/app.html index a1c4296..dc20472 100644 --- a/desktop/src/app/app.html +++ b/desktop/src/app/app.html @@ -1,344 +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/desktop/src/app/app.scss b/desktop/src/app/app.scss index e69de29..849b85e 100644 --- a/desktop/src/app/app.scss +++ b/desktop/src/app/app.scss @@ -0,0 +1,10 @@ +/* Global reset and desktop background */ +html, body { + margin: 0; + padding: 0; + width: 100%; + height: 100%; + overflow: hidden; + font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; + user-select: none; +} diff --git a/desktop/src/app/app.ts b/desktop/src/app/app.ts index c76a2f2..e25d40a 100644 --- a/desktop/src/app/app.ts +++ b/desktop/src/app/app.ts @@ -1,12 +1,15 @@ -import { Component, signal } from '@angular/core'; +import { Component } from '@angular/core'; +import { FormsModule } from '@angular/forms'; import { RouterOutlet } from '@angular/router'; +import { DesktopComponent } from './components/desktop/desktop.component'; +import { provideHttpClient } from '@angular/common/http'; @Component({ selector: 'app-root', - imports: [RouterOutlet], + standalone: true, + imports: [FormsModule, RouterOutlet, DesktopComponent], + providers: [provideHttpClient()], templateUrl: './app.html', - styleUrl: './app.scss' + styleUrl: './app.scss', }) -export class App { - protected readonly title = signal('desktop'); -} +export class App {}