Skip to content

Commit

Permalink
Only show when darkId is available
Browse files Browse the repository at this point in the history
  • Loading branch information
OhSoooLucky committed Dec 27, 2022
1 parent e9374d1 commit 1b9c5a8
Show file tree
Hide file tree
Showing 9 changed files with 1,599 additions and 1,996 deletions.
3,510 changes: 1,549 additions & 1,961 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^14.2.12",
"@angular/common": "^14.2.12",
"@angular/compiler": "^14.2.12",
"@angular/core": "^14.2.12",
"@angular/forms": "^14.2.12",
"@angular/platform-browser": "^14.2.12",
"@angular/platform-browser-dynamic": "^14.2.12",
"@angular/router": "^14.2.12",
"@angular/animations": "^15.0.4",
"@angular/common": "^15.0.4",
"@angular/compiler": "^15.0.4",
"@angular/core": "^15.0.4",
"@angular/forms": "^15.0.4",
"@angular/platform-browser": "^15.0.4",
"@angular/platform-browser-dynamic": "^15.0.4",
"@angular/router": "^15.0.4",
"rxjs": "^6.6.7",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.10",
"@angular/cli": "^14.2.10",
"@angular/compiler-cli": "^14.2.12",
"@angular-devkit/build-angular": "^15.0.4",
"@angular/cli": "^15.0.4",
"@angular/compiler-cli": "^15.0.4",
"@types/jasmine": "^3.8.2",
"@types/node": "^12.20.18",
"codelyzer": "^6.0.2",
Expand All @@ -36,10 +36,10 @@
"karma-coverage": "^2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.7.0",
"ng-packagr": "^14.2.2",
"ng-packagr": "^15.0.3",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "^4.6.4"
"typescript": "^4.8.4"
}
}
25 changes: 25 additions & 0 deletions projects/angular-pcm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions projects/angular-pcm/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@groupclaes/angular-pcm",
"version": "1.1.12",
"version": "1.15.0",
"author": "Group Claes",
"private": false,
"peerDependencies": {
"@angular/common": "^12.0.2",
"@angular/core": "^12.0.2",
"@angular/router": "^12.0.2",
"@angular/platform-browser": "^12.0.2"
"@angular/common": "^15.0.4",
"@angular/core": "^15.0.4",
"@angular/router": "^15.0.4",
"@angular/platform-browser": "^15.0.4"
},
"dependencies": {
"tslib": "^2.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<picture *ngIf="company">
<source [srcset]="darkUrl()" media="(prefers-color-scheme: dark)">
<source *ngIf="darkId" [srcset]="darkUrl()" media="(prefers-color-scheme: dark)">
<img [src]="url" [alt]="company + ' Logo'" [width]="width" [height]="height">
</picture>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { api_url } from '../variables';
export class PcmWebsiteLogoComponent implements OnInit {
@Input() company: string = 'gro'
@Input() id: string = '100'
@Input() darkId: string = '101'
@Input() darkId: string | undefined
@Input() height: string | undefined
@Input() width: string | undefined

Expand Down
11 changes: 0 additions & 11 deletions projects/angular-pcm/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,10 @@ import {
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';

declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
keys(): string[];
<T>(id: string): T;
};
};

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
1 change: 0 additions & 1 deletion projects/angular-pcm/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2020",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
Expand Down
8 changes: 5 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"target": "ES2022",
"module": "es2020",
"lib": [
"es2018",
Expand All @@ -24,12 +24,14 @@
"dist/angular-pcm/angular-pcm",
"dist/angular-pcm"
]
}
},
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true,
"enableIvy": false
"enableIvy": true,
"compilationMode": "partial"
}
}

0 comments on commit 1b9c5a8

Please sign in to comment.