initial commit, clean project

This commit is contained in:
X4Lo committed 2024-03-26 14:29:50 +00:00
1 parent db31cc41e2
commit 3892f898e3
9 files changed
+2810 -21

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
const { app, BrowserWindow } = require('electron');
const path = require('path');
const url = require('url');
let win;
function createWindow() {
win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true
}
});
win.loadURL(
url.format({
pathname: path.join(__dirname, 'dist\\show-z\\browser\\index.html'),
protocol: 'file:',
slashes: true
})
);
win.on('closed', () => {
win = null;
});
}
app.on('ready', createWindow);
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});
app.on('activate', () => {
if (win === null) {
createWindow();
}
});
+2725 -2
View File
File diff suppressed because it is too large. Load diff
+4
View File
@@ -1,9 +1,11 @@
{ {
"name": "show-z", "name": "show-z",
"version": "0.0.0", "version": "0.0.0",
"main": "main.js",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"electron": "ng build --configuration=production --base-href ./ && electron .",
"build": "ng build", "build": "ng build",
"watch": "ng build --watch --configuration development", "watch": "ng build --watch --configuration development",
"test": "ng test" "test": "ng test"
@@ -27,6 +29,8 @@
"@angular/cli": "^16", "@angular/cli": "^16",
"@angular/compiler-cli": "^17.3.0", "@angular/compiler-cli": "^17.3.0",
"@types/jasmine": "~5.1.0", "@types/jasmine": "~5.1.0",
"electron": "^29.1.5",
"electron-builder": "^24.13.3",
"jasmine-core": "~5.1.0", "jasmine-core": "~5.1.0",
"karma": "~6.4.0", "karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0", "karma-chrome-launcher": "~3.2.0",
+13
View File
@@ -0,0 +1,13 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AppComponent } from './app.component';
const routes: Routes = [
{ path: 'home', component: AppComponent },
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
-3
View File
@@ -1,10 +1,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
standalone: true,
imports: [RouterOutlet],
templateUrl: './app.component.html', templateUrl: './app.component.html',
styleUrl: './app.component.css' styleUrl: './app.component.css'
}) })
-8
View File
@@ -1,8 +0,0 @@
import { ApplicationConfig } from '@angular/core';
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
export const appConfig: ApplicationConfig = {
providers: [provideRouter(routes)]
};
+22
View File
@@ -0,0 +1,22 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HttpClientModule } from '@angular/common/http';
import { ReactiveFormsModule } from '@angular/forms';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
HttpClientModule,
ReactiveFormsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
-3
View File
@@ -1,3 +0,0 @@
import { Routes } from '@angular/router';
export const routes: Routes = [];
+4 -5
View File
@@ -1,6 +1,5 @@
import { bootstrapApplication } from '@angular/platform-browser'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { appConfig } from './app/app.config'; import { AppModule } from './app/app.module';
import { AppComponent } from './app/app.component';
bootstrapApplication(AppComponent, appConfig) platformBrowserDynamic().bootstrapModule(AppModule)
.catch((err) => console.error(err)); .catch(err => console.error(err));