From dabc089b83ac3a95f15e88cfedaad24999e06003 Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Tue, 3 Jun 2025 00:32:44 -0500 Subject: [PATCH] added noselect to tabs; moved poly fills to ts file; moved globals to polyfills file too --- angular.json | 2 +- src/app/app.component.ts | 24 --------------------- src/app/editor/tabs/tab/tab.component.html | 2 +- src/polyfills.ts | 25 +++++++++++++++++++++- tsconfig.app.json | 1 + 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/angular.json b/angular.json index 09fb881..5c29c9f 100644 --- a/angular.json +++ b/angular.json @@ -19,7 +19,7 @@ "index":"src/index.html", "main":"src/main.ts", "polyfills":[ - "zone.js" + "src/polyfills.ts" ], "tsConfig":"tsconfig.app.json", "assets":[ diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 285b81f..23b4924 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -6,30 +6,6 @@ import { EditorsComponent } from './editor/editors.component'; -declare global { - interface Window { - electron: { - node: () => Promise, - chrome: () => Promise, - electron: () => Promise, - }, - main: { - onMenuActions: (arg0: any) => Promise, - }, - fs: { - getLspConfigData: () => Promise, - getFileContents: (arg0: any) => Promise, - openFiles: (arg0) => Promise, - saveFile: (arg0: any, arg1: any) => Promise, - saveFileAs: (arg0: any) => Promise, - getPathForFile: any, - onLoadFiles: (arg0: any) => Promise, - } - } -} - - - @Component({ selector: 'app-root', imports: [ diff --git a/src/app/editor/tabs/tab/tab.component.html b/src/app/editor/tabs/tab/tab.component.html index 2778cec..85fa0a6 100644 --- a/src/app/editor/tabs/tab/tab.component.html +++ b/src/app/editor/tabs/tab/tab.component.html @@ -1,4 +1,4 @@ - + {{title}} \ No newline at end of file diff --git a/src/polyfills.ts b/src/polyfills.ts index 75b392d..603d6a1 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -6,6 +6,29 @@ /*************************************************************************************************** * Zone JS is required by Angular itself. */ + + import 'zone.js'; // Included with Angular CLI. -// If you need other polyfills, add them here. \ No newline at end of file + +declare global { + interface Window { + electron: { + node: () => Promise, + chrome: () => Promise, + electron: () => Promise, + }, + main: { + onMenuActions: (arg0: any) => Promise, + }, + fs: { + getLspConfigData: () => Promise, + getFileContents: (arg0: any) => Promise, + openFiles: (arg0) => Promise, + saveFile: (arg0: any, arg1: any) => Promise, + saveFileAs: (arg0: any) => Promise, + getPathForFile: any, + onLoadFiles: (arg0: any) => Promise, + } + } +} diff --git a/tsconfig.app.json b/tsconfig.app.json index 374cc9d..b37faad 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -9,6 +9,7 @@ "src/main.ts" ], "include": [ + "src/polyfills.ts", "src/**/*.d.ts" ] }