Deployed the page to Github Pages.

This commit is contained in:
Batuhan Berk Başoğlu 2024-11-03 21:30:09 -05:00
parent 1d79754e93
commit 2c89899458
Signed by: batuhan-basoglu
SSH key fingerprint: SHA256:kEsnuHX+qbwhxSAXPUQ4ox535wFHu/hIRaa53FzxRpo
62797 changed files with 6551425 additions and 15279 deletions

View file

@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { <%= classify(name) %>Interceptor } from './<%= dasherize(name) %>.interceptor';
describe('<%= classify(name) %>Interceptor', () => {
beforeEach(() => TestBed.configureTestingModule({
providers: [
<%= classify(name) %>Interceptor
]
}));
it('should be created', () => {
const interceptor: <%= classify(name) %>Interceptor = TestBed.inject(<%= classify(name) %>Interceptor);
expect(interceptor).toBeTruthy();
});
});

View file

@ -0,0 +1,18 @@
import { Injectable } from '@angular/core';
import {
HttpRequest,
HttpHandler,
HttpEvent,
HttpInterceptor
} from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable()
export class <%= classify(name) %>Interceptor implements HttpInterceptor {
constructor() {}
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>> {
return next.handle(request);
}
}

View file

@ -0,0 +1,17 @@
import { TestBed } from '@angular/core/testing';
import { HttpInterceptorFn } from '@angular/common/http';
import { <%= camelize(name) %>Interceptor } from './<%= dasherize(name) %>.interceptor';
describe('<%= camelize(name) %>Interceptor', () => {
const interceptor: HttpInterceptorFn = (req, next) =>
TestBed.runInInjectionContext(() => <%= camelize(name) %>Interceptor(req, next));
beforeEach(() => {
TestBed.configureTestingModule({});
});
it('should be created', () => {
expect(interceptor).toBeTruthy();
});
});

View file

@ -0,0 +1,5 @@
import { HttpInterceptorFn } from '@angular/common/http';
export const <%= camelize(name) %>Interceptor: HttpInterceptorFn = (req, next) => {
return next(req);
};

10
node_modules/@schematics/angular/interceptor/index.d.ts generated vendored Executable file
View file

@ -0,0 +1,10 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { Rule } from '@angular-devkit/schematics';
import { Schema as InterceptorOptions } from './schema';
export default function (options: InterceptorOptions): Rule;

22
node_modules/@schematics/angular/interceptor/index.js generated vendored Executable file
View file

@ -0,0 +1,22 @@
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = default_1;
const generate_from_files_1 = require("../utility/generate-from-files");
function default_1(options) {
// This schematic uses an older method to implement the flat option
const flat = options.flat;
options.flat = true;
const extraTemplateValues = {
'if-flat': (s) => (flat ? '' : s),
};
return options.functional
? (0, generate_from_files_1.generateFromFiles)({ ...options, templateFilesDirectory: './functional-files' }, extraTemplateValues)
: (0, generate_from_files_1.generateFromFiles)({ ...options, templateFilesDirectory: './class-files' }, extraTemplateValues);
}

29
node_modules/@schematics/angular/interceptor/schema.d.ts generated vendored Executable file
View file

@ -0,0 +1,29 @@
/**
* Creates a new, generic interceptor definition in the given project.
*/
export interface Schema {
/**
* When true (the default), creates files at the top level of the project.
*/
flat?: boolean;
/**
* Creates the interceptor as a `HttpInterceptorFn`.
*/
functional?: boolean;
/**
* The name of the interceptor.
*/
name: string;
/**
* The path at which to create the interceptor, relative to the workspace root.
*/
path?: string;
/**
* The name of the project.
*/
project: string;
/**
* Do not create "spec.ts" test files for the new interceptor.
*/
skipTests?: boolean;
}

4
node_modules/@schematics/angular/interceptor/schema.js generated vendored Executable file
View file

@ -0,0 +1,4 @@
"use strict";
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
Object.defineProperty(exports, "__esModule", { value: true });

51
node_modules/@schematics/angular/interceptor/schema.json generated vendored Executable file
View file

@ -0,0 +1,51 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsAngularInterceptor",
"title": "Angular Interceptor Options Schema",
"type": "object",
"additionalProperties": false,
"description": "Creates a new, generic interceptor definition in the given project.",
"properties": {
"name": {
"type": "string",
"description": "The name of the interceptor.",
"$default": {
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the interceptor?"
},
"path": {
"type": "string",
"format": "path",
"$default": {
"$source": "workingDirectory"
},
"description": "The path at which to create the interceptor, relative to the workspace root.",
"visible": false
},
"project": {
"type": "string",
"description": "The name of the project.",
"$default": {
"$source": "projectName"
}
},
"flat": {
"type": "boolean",
"default": true,
"description": "When true (the default), creates files at the top level of the project."
},
"skipTests": {
"type": "boolean",
"description": "Do not create \"spec.ts\" test files for the new interceptor.",
"default": false
},
"functional": {
"type": "boolean",
"description": "Creates the interceptor as a `HttpInterceptorFn`.",
"default": true
}
},
"required": ["name", "project"]
}