fix angular json

This commit is contained in:
Benjamin Ifland
2026-03-16 16:02:57 +01:00
parent e3203d0c38
commit f9516bbc4d
10 changed files with 76 additions and 115 deletions

View File

@@ -15,8 +15,9 @@
"prefix": "app", "prefix": "app",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-angular:application", "builder": "@angular/build:application",
"options": { "options": {
"browser": "src/main.ts",
"outputPath": { "outputPath": {
"base": "dist/wgenerator" "base": "dist/wgenerator"
}, },
@@ -25,7 +26,7 @@
"src/polyfills.ts" "src/polyfills.ts"
], ],
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": false, "inlineStyleLanguage": "less",
"assets": [ "assets": [
"src/browserconfig.xml", "src/browserconfig.xml",
"src/android-chrome-192x192.png", "src/android-chrome-192x192.png",
@@ -49,17 +50,9 @@
"lodash", "lodash",
"docx", "docx",
"qrcode" "qrcode"
], ]
"browser": "src/main.ts"
}, },
"configurations": { "configurations": {
"development": {
"aot": false,
"extractLicenses": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"production": { "production": {
"fileReplacements": [ "fileReplacements": [
{ {
@@ -67,114 +60,44 @@
"with": "src/environments/environment.prod.ts" "with": "src/environments/environment.prod.ts"
} }
], ],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
"maximumWarning": "2mb", "maximumWarning": "500kB",
"maximumError": "5mb" "maximumError": "1MB"
}, },
{ {
"type": "anyComponentStyle", "type": "anyComponentStyle",
"maximumWarning": "6kb", "maximumWarning": "4kB",
"maximumError": "10kb" "maximumError": "8kB"
} }
], ],
"serviceWorker": "ngsw-config.json" "outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
} }
}, },
"defaultConfiguration": "production" "defaultConfiguration": "production"
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular/build:dev-server",
"options": {
"buildTarget": "wgenerator:build:development"
},
"configurations": { "configurations": {
"development": {
"buildTarget": "wgenerator:build:development"
},
"production": { "production": {
"buildTarget": "wgenerator:build:production" "buildTarget": "wgenerator:build:production"
},
"development": {
"buildTarget": "wgenerator:build:development"
} }
}, },
"defaultConfiguration": "development" "defaultConfiguration": "development"
}, },
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "wgenerator:build"
}
},
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular/build:unit-test"
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest"
],
"styles": [],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
} }
} }
} }
} }
},
"cli": {
"analytics": "4047dcd7-89f4-402f-958e-e365a5505c55",
"schematicCollections": [
"@angular-eslint/schematics"
]
},
"schematics": {
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
},
"@schematics/angular:component": {
"type": "component"
},
"@schematics/angular:directive": {
"type": "directive"
},
"@schematics/angular:service": {
"type": "service"
},
"@schematics/angular:guard": {
"typeSeparator": "."
},
"@schematics/angular:interceptor": {
"typeSeparator": "."
},
"@schematics/angular:module": {
"typeSeparator": "."
},
"@schematics/angular:pipe": {
"typeSeparator": "."
},
"@schematics/angular:resolver": {
"typeSeparator": "."
}
}
} }

View File

@@ -14,7 +14,7 @@
.list-head { .list-head {
padding: 3px 10px; padding: 3px 10px;
color: var(--text-muted); color: var(--text-soft);
font-size: 0.85rem; font-size: 0.85rem;
font-weight: 600; font-weight: 600;
} }

View File

@@ -59,7 +59,7 @@
} }
.next-song { .next-song {
color: var(--text-muted); color: var(--text-soft);
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 10px; right: 10px;
@@ -70,7 +70,7 @@
} }
.time { .time {
color: var(--text-muted); color: var(--text-soft);
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 10px; left: 10px;

View File

@@ -3,18 +3,17 @@ a {
display: block; display: block;
height: 50px; height: 50px;
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: 500;
text-decoration: none; text-decoration: none;
letter-spacing: 1.1px;
padding: 15px; padding: 15px;
box-sizing: border-box; box-sizing: border-box;
background: transparent; background: transparent;
transition: var(--transition); transition: var(--transition-fast);
border-color: transparent; border-color: transparent;
fa-icon { fa-icon {
display: inline-block; display: inline-block;
transform: scale(1);
transition: var(--transition);
} }
@media screen and (max-width: 860px) { @media screen and (max-width: 860px) {
@@ -28,18 +27,11 @@ a {
color: var(--primary-hover); color: var(--primary-hover);
border-bottom: 5px solid var(--hover-background); border-bottom: 5px solid var(--hover-background);
fa-icon {
transform: scale(1.2);
}
} }
&.active { &.active {
border-bottom: 5px solid var(--primary-color); border-bottom: 5px solid var(--primary-color);
opacity: 1; opacity: 1;
color: var(--text-inverse); color: var(--text-inverse);
fa-icon {
transform: scale(1.3);
}
} }
} }

View File

@@ -59,7 +59,7 @@
margin-bottom: 20px; margin-bottom: 20px;
margin-right: 20px; margin-right: 20px;
opacity: 0.7; opacity: 0.7;
color: var(--text-muted); color: var(--text-soft);
padding-left: 20px; padding-left: 20px;
padding-top: 20px; padding-top: 20px;
} }
@@ -74,5 +74,5 @@
right: 10px; right: 10px;
top: 15px; top: 15px;
opacity: 0.7; opacity: 0.7;
color: var(--text-muted); color: var(--text-soft);
} }

View File

@@ -0,0 +1 @@
<aside></aside>

View File

@@ -0,0 +1,11 @@
aside {
width: 200px;
height: calc(100vh - 50px);
position: fixed;
top: 50px;
left: 0;
bottom: 0;
background: var(--surface);
}

View File

@@ -0,0 +1,22 @@
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {SidebarComponent} from './sidebar.component';
describe('SidebarComponent', () => {
let component: SidebarComponent;
let fixture: ComponentFixture<SidebarComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [SidebarComponent],
}).compileComponents();
fixture = TestBed.createComponent(SidebarComponent);
component = fixture.componentInstance;
await fixture.whenStable();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,9 @@
import {Component} from '@angular/core';
@Component({
selector: 'app-sidebar',
imports: [],
templateUrl: './sidebar.component.html',
styleUrl: './sidebar.component.less',
})
export class SidebarComponent {}

View File

@@ -11,7 +11,6 @@
--surface-muted: rgba(41, 46, 73, 0.06); --surface-muted: rgba(41, 46, 73, 0.06);
--text: #1f2433; --text: #1f2433;
--text-muted: #5f6b73;
--text-soft: #7a858c; --text-soft: #7a858c;
--text-inverse: #f7fbff; --text-inverse: #f7fbff;
@@ -34,6 +33,10 @@
--link-color: var(--primary-active); --link-color: var(--primary-active);
--focus-ring: 0 0 0 2px rgba(111, 143, 149, 0.28); --focus-ring: 0 0 0 2px rgba(111, 143, 149, 0.28);
--transition: all 300ms ease-in-out; --transition: all 300ms ease-in-out;
--transition-fast: all 150ms ease-in-out;
--mat-dialog-supporting-text-color: var(--text);
} }
html { html {