added noselect to tabs; moved poly fills to ts file; moved globals to polyfills file too

This commit is contained in:
itdominator 2025-06-03 00:32:44 -05:00
parent 0d1fdfa031
commit dabc089b83
5 changed files with 27 additions and 27 deletions

View File

@ -19,7 +19,7 @@
"index":"src/index.html", "index":"src/index.html",
"main":"src/main.ts", "main":"src/main.ts",
"polyfills":[ "polyfills":[
"zone.js" "src/polyfills.ts"
], ],
"tsConfig":"tsconfig.app.json", "tsConfig":"tsconfig.app.json",
"assets":[ "assets":[

View File

@ -6,30 +6,6 @@ import { EditorsComponent } from './editor/editors.component';
declare global {
interface Window {
electron: {
node: () => Promise<string>,
chrome: () => Promise<string>,
electron: () => Promise<string>,
},
main: {
onMenuActions: (arg0: any) => Promise<string>,
},
fs: {
getLspConfigData: () => Promise<string>,
getFileContents: (arg0: any) => Promise<string>,
openFiles: (arg0) => Promise<string>,
saveFile: (arg0: any, arg1: any) => Promise<string>,
saveFileAs: (arg0: any) => Promise<string>,
getPathForFile: any,
onLoadFiles: (arg0: any) => Promise<string>,
}
}
}
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
imports: [ imports: [

View File

@ -1,4 +1,4 @@
<span class="tab" title="{{path}}"> <span class="tab noselect" title="{{path}}">
<span class="title" (mouseup)="setTabToEditor()">{{title}}</span> <span class="title" (mouseup)="setTabToEditor()">{{title}}</span>
<button class="close-button" (mouseup)="closeTab()">X</button> <button class="close-button" (mouseup)="closeTab()">X</button>
</span> </span>

View File

@ -6,6 +6,29 @@
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by Angular itself. * Zone JS is required by Angular itself.
*/ */
import 'zone.js'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
// If you need other polyfills, add them here.
declare global {
interface Window {
electron: {
node: () => Promise<string>,
chrome: () => Promise<string>,
electron: () => Promise<string>,
},
main: {
onMenuActions: (arg0: any) => Promise<string>,
},
fs: {
getLspConfigData: () => Promise<string>,
getFileContents: (arg0: any) => Promise<string>,
openFiles: (arg0) => Promise<string>,
saveFile: (arg0: any, arg1: any) => Promise<string>,
saveFileAs: (arg0: any) => Promise<string>,
getPathForFile: any,
onLoadFiles: (arg0: any) => Promise<string>,
}
}
}

View File

@ -9,6 +9,7 @@
"src/main.ts" "src/main.ts"
], ],
"include": [ "include": [
"src/polyfills.ts",
"src/**/*.d.ts" "src/**/*.d.ts"
] ]
} }