From 6555fb80fdd8f6a5d201efadec3189d1244830a0 Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 22:05:25 +0100 Subject: Izbrisala bin, obj i node-modules. --- .../@schematics/angular/guard/index.js | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 sandbox/testAppNevena/Front/node_modules/@schematics/angular/guard/index.js (limited to 'sandbox/testAppNevena/Front/node_modules/@schematics/angular/guard/index.js') diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/guard/index.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/guard/index.js deleted file mode 100644 index bfec75da..00000000 --- a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/guard/index.js +++ /dev/null @@ -1,38 +0,0 @@ -"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 schematics_1 = require("@angular-devkit/schematics"); -const generate_from_files_1 = require("../utility/generate-from-files"); -const schema_1 = require("./schema"); -function default_1(options) { - if (!options.implements) { - throw new schematics_1.SchematicsException('Option "implements" is required.'); - } - const implementations = options.implements - .map((implement) => (implement === 'CanDeactivate' ? 'CanDeactivate' : implement)) - .join(', '); - const commonRouterNameImports = ['ActivatedRouteSnapshot', 'RouterStateSnapshot']; - const routerNamedImports = [...options.implements, 'UrlTree']; - if (options.implements.includes(schema_1.Implement.CanLoad)) { - routerNamedImports.push('Route', 'UrlSegment'); - if (options.implements.length > 1) { - routerNamedImports.push(...commonRouterNameImports); - } - } - else { - routerNamedImports.push(...commonRouterNameImports); - } - routerNamedImports.sort(); - const implementationImports = routerNamedImports.join(', '); - return (0, generate_from_files_1.generateFromFiles)(options, { - implementations, - implementationImports, - }); -} -exports.default = default_1; -- cgit v1.2.3