Skip to content

Commit d68d873

Browse files
feat(ref: no-ref): add autoCsp, change ts config
1 parent 4d19fc0 commit d68d873

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ jobs:
2727
bun run build:lib
2828
- name: Setup npm token
2929
run: |
30-
echo "//registry.npmjs.org/:_authToken=${{ secrets.npm_token }}" > dist/ngx-loader-indicator-lib/.npmrc
30+
echo "//registry.npmjs.org/:_authToken=${{ secrets.npm_token }}" > dist/ngx-loader-indicator-lib/.npmrc
3131
- name: Publish library
3232
run: bun run publish:lib
3333
env:
3434
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3535
- name: Extract version
3636
id: get_version
3737
run: |
38-
VERSION=$(node -p "require('./dist/ngx-loader-indicator-lib/package.json').version")
39-
echo "version=$VERSION" >> $GITHUB_OUTPUT
38+
VERSION=$(node -p "require('./dist/ngx-loader-indicator-lib/package.json').version")
39+
echo "version=$VERSION" >> $GITHUB_OUTPUT
4040
4141
slack_notification:
4242
needs:

angular.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"build": {
3030
"builder": "@angular-devkit/build-angular:application",
3131
"options": {
32+
"security": { "autoCsp": true },
3233
"outputPath": "dist/angular-loader",
3334
"browser": "src/main.ts",
3435
"index": "src/index.html",

src/app/cards/cards.component.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
import { Component, effect, ElementRef, inject, input, viewChildren } from '@angular/core';
22
import { NgOptimizedImage } from '@angular/common';
33
import { HighlightModule } from 'ngx-highlightjs';
4-
import { NgxLoaderIndicatorDirective } from 'ngx-loader-indicator';
54
import { CardItem } from './cards.type';
65
import { ScrollService } from '@open-source/scroll/scroll.service';
76
import { AssetPipe } from '@libraries/asset/asset.pipe';
87
import { CustomLoaderComponent } from '../custom-loader/custom-loader.component';
98
import { FormComponent } from '../shared/form/form.component';
10-
import { InputComponent } from '@libraries/input/input.component';
119
import { OpenSourcePath } from '@open-source/path/open-source.path';
1210
import { toSignal } from '@angular/core/rxjs-interop';
1311

1412
@Component({
1513
selector: 'jsdaddy-open-source-cards',
1614
standalone: true,
17-
imports: [
18-
NgOptimizedImage,
19-
HighlightModule,
20-
NgxLoaderIndicatorDirective,
21-
AssetPipe,
22-
CustomLoaderComponent,
23-
FormComponent,
24-
InputComponent,
25-
],
15+
imports: [NgOptimizedImage, HighlightModule, AssetPipe, CustomLoaderComponent, FormComponent],
2616
providers: [ScrollService],
2717
templateUrl: './cards.component.html',
2818
styleUrls: ['./cards.component.scss'],

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"checks": {
4848
"invalidBananaInBox": "error",
4949
"nullishCoalescingNotNullable": "warning",
50-
"unusedStandaloneImports": "suppress"
50+
"unusedStandaloneImports": "error"
5151
},
5252
"defaultCategory": "suppress"
5353
}

0 commit comments

Comments
 (0)