Skip to content

Commit 0cb7c75

Browse files
committed
r0b08x [chore] 7/8/2023, 12:42:03 AM
1 parent babdbd7 commit 0cb7c75

File tree

10 files changed

+166
-182
lines changed

10 files changed

+166
-182
lines changed

Diff for: .browserslistrc

-21
This file was deleted.

Diff for: angular.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,5 @@
161161
}
162162
}
163163
}
164-
},
165-
"defaultProject": "workspace"
164+
}
166165
}

Diff for: package.json

+108-108
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,110 @@
11
{
2-
"name": "p3x-angular-http-cache-interceptor",
3-
"version": "2022.4.129",
4-
"corifeus": {
5-
"icon": "fas fa-fire",
6-
"prefix": "p3x-",
7-
"publish": true,
8-
"type": "p3x",
9-
"code": "Breeze",
10-
"nodejs": "v16.15.0",
11-
"opencollective": false,
12-
"reponame": "angular-http-cache-interceptor",
13-
"build": true,
14-
"cdn": true,
15-
"publish-location": "./dist/angular-http-cache-interceptor",
16-
"angular": "13.3.11"
17-
},
18-
"description": "🔥 Cache every request in Angular, not only the GET, but all methods of this interceptor, and allows you to interact with the interceptor via specific headers and modify the request, and these specific headers will be not included in the final request",
19-
"scripts": {
20-
"test": "grunt",
21-
"ng": "ng",
22-
"start": "ng serve --hmr",
23-
"build": "ng build",
24-
"test2": "ng test",
25-
"lint": "ng lint",
26-
"e2e": "ng e2e",
27-
"build-lib": "ng build --configuration=production --project angular-http-cache-interceptor && cp README.md ./dist/angular-http-cache-interceptor && cp LICENSE ./dist/angular-http-cache-interceptor && node node_modules/corifeus-builder/src/utils/angular/post-lib-build.js",
28-
"build-app": "ng build --source-map=false --output-hashing=all --configuration=production --base-href=/ --aot=true --build-optimizer=true --optimization=true && grunt htmlmin:dist",
29-
"stats": "ng build --stats-json && webpack-bundle-analyzer dist/workspace/stats.json"
30-
},
31-
"repository": {
32-
"type": "git",
33-
"url": "git+https://github.com/patrikx3/angular-http-cache-interceptor.git"
34-
},
35-
"keywords": [
36-
"angular",
37-
"cache",
38-
"interceptor",
39-
"network",
40-
"http",
41-
"client",
42-
"http-client",
43-
"header",
44-
"headers",
45-
"interact",
46-
"configuration"
47-
],
48-
"author": "Patrik Laszlo <alabard@gmail.com>",
49-
"license": "MIT",
50-
"bugs": {
51-
"url": "https://github.com/patrikx3/angular-http-cache-interceptor/issues"
52-
},
53-
"homepage": "https://corifeus.com/angular-http-cache-interceptor",
54-
"dependencies": {
55-
"@angular/animations": "~13.3.11",
56-
"@angular/cdk": "^13.3.8",
57-
"@angular/common": "~13.3.11",
58-
"@angular/compiler": "~13.3.11",
59-
"@angular/core": "~13.3.11",
60-
"@angular/forms": "~13.3.11",
61-
"@angular/material": "^13.3.8",
62-
"@angular/platform-browser": "~13.3.11",
63-
"@angular/platform-browser-dynamic": "~13.3.11",
64-
"@angular/router": "~13.3.11",
65-
"@types/node": "^17.0.38",
66-
"hash": "^0.2.1",
67-
"highlight.js": "^11.5.1",
68-
"object": "^0.1.1",
69-
"object-hash": "^3.0.0",
70-
"postcss": "^8.4.14",
71-
"rxjs": "~6.6.3",
72-
"tslib": "^2.2.0",
73-
"zone.js": "~0.11.4"
74-
},
75-
"dependencies-save": {
76-
"p3x-interceptor": "npm:p3x-angular-http-cache-interceptor@^2020.4.304"
77-
},
78-
"devDependencies": {
79-
"@angular-devkit/build-angular": "~13.3.7",
80-
"@angular/cli": "~13.3.7",
81-
"@angular/compiler-cli": "~13.3.11",
82-
"@angular/language-service": "~13.3.11",
83-
"@types/highlight.js": "^9.12.4",
84-
"@types/jasmine": "~4.0.3",
85-
"@types/jasminewd2": "~2.0.10",
86-
"@typescript-eslint/eslint-plugin": "5.27.0",
87-
"@typescript-eslint/parser": "5.27.0",
88-
"codelyzer": "^6.0.2",
89-
"corifeus-builder": "^2022.4.130",
90-
"eslint": "^8.16.0",
91-
"eslint-plugin-import": "2.26.0",
92-
"eslint-plugin-jsdoc": "39.3.2",
93-
"eslint-plugin-prefer-arrow": "1.2.3",
94-
"jasmine-core": "~4.1.1",
95-
"jasmine-spec-reporter": "~7.0.0",
96-
"karma": "~6.3.2",
97-
"karma-chrome-launcher": "~3.1.1",
98-
"karma-coverage-istanbul-reporter": "~3.0.3",
99-
"karma-jasmine": "~5.0.1",
100-
"karma-jasmine-html-reporter": "^2.0.0",
101-
"ng-packagr": "^13.0.3",
102-
"protractor": "~7.0.0",
103-
"ts-node": "~10.8.0",
104-
"typescript": "~4.4.4",
105-
"webpack-bundle-analyzer": "^4.5.0"
106-
},
107-
"engines": {
108-
"node": ">=12.13.0"
109-
}
2+
"name": "p3x-angular-http-cache-interceptor",
3+
"version": "2022.4.129",
4+
"corifeus": {
5+
"icon": "fas fa-fire",
6+
"prefix": "p3x-",
7+
"publish": true,
8+
"type": "p3x",
9+
"code": "Breeze",
10+
"nodejs": "v16.15.0",
11+
"opencollective": false,
12+
"reponame": "angular-http-cache-interceptor",
13+
"build": true,
14+
"cdn": true,
15+
"publish-location": "./dist/angular-http-cache-interceptor",
16+
"angular": "13.3.11"
17+
},
18+
"description": "🔥 Cache every request in Angular, not only the GET, but all methods of this interceptor, and allows you to interact with the interceptor via specific headers and modify the request, and these specific headers will be not included in the final request",
19+
"scripts": {
20+
"test": "grunt",
21+
"ng": "ng",
22+
"start": "ng serve --hmr",
23+
"build": "ng build",
24+
"test2": "ng test",
25+
"lint": "ng lint",
26+
"e2e": "ng e2e",
27+
"build-lib": "ng build --configuration=production --project angular-http-cache-interceptor && cp README.md ./dist/angular-http-cache-interceptor && cp LICENSE ./dist/angular-http-cache-interceptor && node node_modules/corifeus-builder/src/utils/angular/post-lib-build.js",
28+
"build-app": "ng build --source-map=false --output-hashing=all --configuration=production --base-href=/ --aot=true --build-optimizer=true --optimization=true && grunt htmlmin:dist",
29+
"stats": "ng build --stats-json && webpack-bundle-analyzer dist/workspace/stats.json"
30+
},
31+
"repository": {
32+
"type": "git",
33+
"url": "git+https://github.com/patrikx3/angular-http-cache-interceptor.git"
34+
},
35+
"keywords": [
36+
"angular",
37+
"cache",
38+
"interceptor",
39+
"network",
40+
"http",
41+
"client",
42+
"http-client",
43+
"header",
44+
"headers",
45+
"interact",
46+
"configuration"
47+
],
48+
"author": "Patrik Laszlo <alabard@gmail.com>",
49+
"license": "MIT",
50+
"bugs": {
51+
"url": "https://github.com/patrikx3/angular-http-cache-interceptor/issues"
52+
},
53+
"homepage": "https://corifeus.com/angular-http-cache-interceptor",
54+
"dependencies": {
55+
"@angular/animations": "^15.0.0",
56+
"@angular/cdk": "^15.0.0",
57+
"@angular/common": "^15.0.0",
58+
"@angular/compiler": "^15.0.0",
59+
"@angular/core": "^15.0.0",
60+
"@angular/forms": "^15.0.0",
61+
"@angular/material": "^15.0.0",
62+
"@angular/platform-browser": "^15.0.0",
63+
"@angular/platform-browser-dynamic": "^15.0.0",
64+
"@angular/router": "^15.0.0",
65+
"@types/node": "^18.11.9",
66+
"hash": "^0.2.1",
67+
"highlight.js": "^11.6.0",
68+
"object": "^0.1.1",
69+
"object-hash": "^3.0.0",
70+
"postcss": "^8.4.19",
71+
"rxjs": "~6.6.3",
72+
"tslib": "^2.2.0",
73+
"zone.js": "~0.11.4"
74+
},
75+
"dependencies-save": {
76+
"p3x-interceptor": "npm:p3x-angular-http-cache-interceptor@^2020.4.304"
77+
},
78+
"devDependencies": {
79+
"@angular-devkit/build-angular": "^15.0.0",
80+
"@angular/cli": "^15.0.0",
81+
"@angular/compiler-cli": "^15.0.0",
82+
"@angular/language-service": "^15.0.0",
83+
"@types/highlight.js": "^9.12.4",
84+
"@types/jasmine": "~4.3.0",
85+
"@types/jasminewd2": "~2.0.10",
86+
"@typescript-eslint/eslint-plugin": "5.43.0",
87+
"@typescript-eslint/parser": "5.43.0",
88+
"codelyzer": "^6.0.2",
89+
"corifeus-builder": "^2022.10.102",
90+
"eslint": "^8.27.0",
91+
"eslint-plugin-import": "2.26.0",
92+
"eslint-plugin-jsdoc": "39.6.2",
93+
"eslint-plugin-prefer-arrow": "1.2.3",
94+
"jasmine-core": "~4.5.0",
95+
"jasmine-spec-reporter": "~7.0.0",
96+
"karma": "~6.3.2",
97+
"karma-chrome-launcher": "~3.1.1",
98+
"karma-coverage-istanbul-reporter": "~3.0.3",
99+
"karma-jasmine": "~5.1.0",
100+
"karma-jasmine-html-reporter": "^2.0.0",
101+
"ng-packagr": "^15.0.0",
102+
"protractor": "~7.0.0",
103+
"ts-node": "~10.9.1",
104+
"typescript": "~4.8.4",
105+
"webpack-bundle-analyzer": "^4.7.0"
106+
},
107+
"engines": {
108+
"node": ">=12.13.0"
109+
}
110110
}

Diff for: projects/angular-http-cache-interceptor/src/test.ts

-11
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,10 @@ import {
88
platformBrowserDynamicTesting
99
} from '@angular/platform-browser-dynamic/testing';
1010

11-
declare const require: {
12-
context(path: string, deep?: boolean, filter?: RegExp): {
13-
keys(): string[];
14-
<T>(id: string): T;
15-
};
16-
};
17-
1811
// First, initialize the Angular testing environment.
1912
getTestBed().initTestEnvironment(
2013
BrowserDynamicTestingModule,
2114
platformBrowserDynamicTesting(), {
2215
teardown: { destroyAfterEach: false }
2316
}
2417
);
25-
// Then we find all the tests.
26-
const context = require.context('./', true, /\.spec\.ts$/);
27-
// And load the modules.
28-
context.keys().map(context);

Diff for: projects/angular-http-cache-interceptor/tsconfig.lib.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
"outDir": "../../out-tsc/lib",
55
"declarationMap": true,
6-
"target": "es2015",
76
"declaration": true,
87
"inlineSources": true,
98
"types": [],

Diff for: src/app/app.component.html

+22-17
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<div style="margin: 25px;">
77

8-
<nav mat-tab-nav-bar mat-stretch-tabs backgroundColor="primary" color="accent">
8+
<nav mat-tab-nav-bar [tabPanel]="tabPanel" backgroundColor="primary" color="accent">
99
<a mat-tab-link
1010
*ngFor="let link of navLinks"
1111
[routerLink]="link.link"
@@ -15,20 +15,25 @@
1515
</a>
1616
</nav>
1717

18-
<mat-card style=" border-top-left-radius: 0px; border-top-right-radius: 0px; padding-top: 0;">
19-
<div>
20-
<a class="link-fix" mat-button color="accent" href="https://corifeus.com/angular-http-cache-interceptor" target="_blank">Corifeus P3X Angular HTTP Cache Interceptor</a>
21-
</div>
22-
<mat-divider></mat-divider>
23-
<div>
24-
<a class="link-fix" mat-button color="accent" href="https://github.com/patrikx3/angular-http-cache-interceptor" target="_blank">GitHub</a>
25-
</div>
26-
<mat-divider></mat-divider>
27-
<div>
28-
<a class="link-fix" mat-button color="accent" href="https://www.npmjs.com/package/p3x-angular-http-cache-interceptor" target="_blank">NpmJS</a>
29-
</div>
30-
<mat-divider></mat-divider>
31-
<br/>
32-
<router-outlet></router-outlet>
33-
</mat-card>
18+
<mat-tab-nav-panel #tabPanel>
19+
<mat-card style=" border-top-left-radius: 0px; border-top-right-radius: 0px; padding-top: 0;">
20+
<div>
21+
<a class="link-fix" mat-button color="accent" href="https://corifeus.com/angular-http-cache-interceptor" target="_blank">Corifeus P3X Angular HTTP Cache Interceptor</a>
22+
</div>
23+
<mat-divider></mat-divider>
24+
<div>
25+
<a class="link-fix" mat-button color="accent" href="https://github.com/patrikx3/angular-http-cache-interceptor" target="_blank">GitHub</a>
26+
</div>
27+
<mat-divider></mat-divider>
28+
<div>
29+
<a class="link-fix" mat-button color="accent" href="https://www.npmjs.com/package/p3x-angular-http-cache-interceptor" target="_blank">NpmJS</a>
30+
</div>
31+
<mat-divider></mat-divider>
32+
<br/>
33+
<div style="margin: 10px;">
34+
<router-outlet></router-outlet>
35+
</div>
36+
</mat-card>
37+
38+
</mat-tab-nav-panel>
3439
</div>

Diff for: src/app/app.component.scss

+4-7
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@
88
text-overflow: ellipsis;
99
}
1010

11-
.mat-button-wrapping.mat-button {
11+
.mat-mdc-button-wrapping.mat-button {
1212
white-space: normal !important;
1313
text-align: left;
1414
}
1515
.link-fix {
16-
$pos: 15px;
17-
position: relative;
18-
left: -15px;
19-
width: calc(100% + 30px);
20-
padding-top: $pos;
21-
padding-bottom: $pos;
16+
display: block;
17+
$pos: 5px;
18+
padding: $pos;
2219
text-align: left;
2320
}

0 commit comments

Comments
 (0)