Updated the files.

This commit is contained in:
Batuhan Berk Başoğlu 2024-02-08 19:38:41 -05:00
parent 1553e6b971
commit 753967d4f5
23418 changed files with 3784666 additions and 0 deletions

View file

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

View file

@ -0,0 +1,16 @@
import { Injectable } from '@angular/core';
import {
Router, Resolve,
RouterStateSnapshot,
ActivatedRouteSnapshot
} from '@angular/router';
import { Observable, of } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class <%= classify(name) %>Resolver implements Resolve<boolean> {
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {
return of(true);
}
}

View file

@ -0,0 +1,17 @@
import { TestBed } from '@angular/core/testing';
import { ResolveFn } from '@angular/router';
import { <%= camelize(name) %>Resolver } from './<%= dasherize(name) %>.resolver';
describe('<%= camelize(name) %>Resolver', () => {
const executeResolver: ResolveFn<boolean> = (...resolverParameters) =>
TestBed.runInInjectionContext(() => <%= camelize(name) %>Resolver(...resolverParameters));
beforeEach(() => {
TestBed.configureTestingModule({});
});
it('should be created', () => {
expect(executeResolver).toBeTruthy();
});
});

View file

@ -0,0 +1,5 @@
import { ResolveFn } from '@angular/router';
export const <%= camelize(name) %>Resolver: ResolveFn<boolean> = (route, state) => {
return true;
};

10
my-app/node_modules/@schematics/angular/resolver/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.io/license
*/
import { Rule } from '@angular-devkit/schematics';
import { Schema } from './schema';
export default function (options: Schema): Rule;

16
my-app/node_modules/@schematics/angular/resolver/index.js generated vendored Executable file
View file

@ -0,0 +1,16 @@
"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.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
const generate_from_files_1 = require("../utility/generate-from-files");
function default_1(options) {
return options.functional
? (0, generate_from_files_1.generateFromFiles)({ ...options, templateFilesDirectory: './functional-files' })
: (0, generate_from_files_1.generateFromFiles)({ ...options, templateFilesDirectory: './class-files' });
}
exports.default = default_1;

30
my-app/node_modules/@schematics/angular/resolver/schema.d.ts generated vendored Executable file
View file

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

4
my-app/node_modules/@schematics/angular/resolver/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
my-app/node_modules/@schematics/angular/resolver/schema.json generated vendored Executable file
View file

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