From 291803c31f829fe0d32bb3207bc11def95a7408c Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 20:05:50 +0100 Subject: Urađena test aplikacija. Povezan front i back. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../@angular-devkit/architect/builders/all-of.d.ts | 11 +++++ .../@angular-devkit/architect/builders/all-of.js | 48 ++++++++++++++++++++++ .../architect/builders/builders.json | 25 +++++++++++ .../@angular-devkit/architect/builders/concat.d.ts | 11 +++++ .../@angular-devkit/architect/builders/concat.js | 45 ++++++++++++++++++++ .../@angular-devkit/architect/builders/false.d.ts | 9 ++++ .../@angular-devkit/architect/builders/false.js | 14 +++++++ .../architect/builders/noop-schema.json | 4 ++ .../architect/builders/operator-schema.d.ts | 19 +++++++++ .../architect/builders/operator-schema.js | 4 ++ .../architect/builders/operator-schema.json | 41 ++++++++++++++++++ .../@angular-devkit/architect/builders/true.d.ts | 9 ++++ .../@angular-devkit/architect/builders/true.js | 11 +++++ 13 files changed, 251 insertions(+) create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/all-of.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/all-of.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/builders.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/concat.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/concat.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/false.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/false.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/noop-schema.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/true.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/true.js (limited to 'sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders') diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/all-of.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/all-of.d.ts new file mode 100644 index 00000000..1db82959 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/all-of.d.ts @@ -0,0 +1,11 @@ +/** + * @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 { json } from '@angular-devkit/core'; +import { Schema as OperatorSchema } from './operator-schema'; +declare const _default: import("../src/internal").Builder; +export default _default; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/all-of.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/all-of.js new file mode 100644 index 00000000..fd085e6a --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/all-of.js @@ -0,0 +1,48 @@ +"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 rxjs_1 = require("rxjs"); +const operators_1 = require("rxjs/operators"); +const src_1 = require("../src"); +exports.default = (0, src_1.createBuilder)((options, context) => { + const allRuns = []; + context.reportProgress(0, (options.targets ? options.targets.length : 0) + + (options.builders ? options.builders.length : 0)); + if (options.targets) { + allRuns.push(...options.targets.map(({ target: targetStr, overrides }, i) => { + const [project, target, configuration] = targetStr.split(/:/g, 3); + return context + .scheduleTarget({ project, target, configuration }, overrides || {}) + .then((run) => [i, run]); + })); + } + if (options.builders) { + allRuns.push(...options.builders.map(({ builder, options }, i) => { + return context + .scheduleBuilder(builder, options || {}) + .then((run) => [i, run]); + })); + } + const allResults = allRuns.map(() => null); + let n = 0; + context.reportProgress(n++, allRuns.length); + return (0, rxjs_1.from)(allRuns).pipe((0, operators_1.mergeMap)((runPromise) => (0, rxjs_1.from)(runPromise)), (0, operators_1.mergeMap)(([i, run]) => run.output.pipe((0, operators_1.map)((output) => [i, output]))), (0, operators_1.mergeMap)(([i, output]) => { + allResults[i] = output; + context.reportProgress(n++, allRuns.length); + if (allResults.some((x) => x === null)) { + // Some builders aren't done running yet. + return rxjs_1.EMPTY; + } + else { + return (0, rxjs_1.of)({ + success: allResults.every((x) => (x ? x.success : false)), + }); + } + })); +}); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/builders.json b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/builders.json new file mode 100644 index 00000000..5bbff828 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/builders.json @@ -0,0 +1,25 @@ +{ + "$schema": "../src/builders-schema.json", + "builders": { + "true": { + "implementation": "./true", + "schema": "./noop-schema.json", + "description": "Always succeed." + }, + "false": { + "implementation": "./false", + "schema": "./noop-schema.json", + "description": "Always fails." + }, + "allOf": { + "implementation": "./all-of", + "schema": "./operator-schema.json", + "description": "A builder that executes many builders in parallel, and succeed if both succeeds." + }, + "concat": { + "implementation": "./concat", + "schema": "./operator-schema.json", + "description": "A builder that executes many builders one after the other, and stops when one fail. It will succeed if all builders succeeds (and return the last output)" + } + } +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/concat.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/concat.d.ts new file mode 100644 index 00000000..1db82959 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/concat.d.ts @@ -0,0 +1,11 @@ +/** + * @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 { json } from '@angular-devkit/core'; +import { Schema as OperatorSchema } from './operator-schema'; +declare const _default: import("../src/internal").Builder; +export default _default; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/concat.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/concat.js new file mode 100644 index 00000000..747fefac --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/concat.js @@ -0,0 +1,45 @@ +"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 rxjs_1 = require("rxjs"); +const operators_1 = require("rxjs/operators"); +const src_1 = require("../src"); +exports.default = (0, src_1.createBuilder)((options, context) => { + const allRuns = []; + context.reportProgress(0, (options.targets ? options.targets.length : 0) + + (options.builders ? options.builders.length : 0)); + if (options.targets) { + allRuns.push(...options.targets.map(({ target: targetStr, overrides }) => { + const [project, target, configuration] = targetStr.split(/:/g, 3); + return () => context.scheduleTarget({ project, target, configuration }, overrides || {}); + })); + } + if (options.builders) { + allRuns.push(...options.builders.map(({ builder, options }) => { + return () => context.scheduleBuilder(builder, options || {}); + })); + } + let stop = null; + let i = 0; + context.reportProgress(i++, allRuns.length); + return (0, rxjs_1.from)(allRuns).pipe((0, operators_1.concatMap)((fn) => stop + ? (0, rxjs_1.of)(null) + : (0, rxjs_1.from)(fn()).pipe((0, operators_1.switchMap)((run) => (run === null ? (0, rxjs_1.of)(null) : run.output.pipe((0, operators_1.first)()))))), (0, operators_1.map)((output) => { + context.reportProgress(i++, allRuns.length); + if (output === null || stop !== null) { + return stop || { success: false }; + } + else if (output.success === false) { + return (stop = output); + } + else { + return output; + } + }), (0, operators_1.last)()); +}); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/false.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/false.d.ts new file mode 100644 index 00000000..cef2dd8a --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/false.d.ts @@ -0,0 +1,9 @@ +/** + * @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 + */ +declare const _default: import("../src/internal").Builder; +export default _default; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/false.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/false.js new file mode 100644 index 00000000..590e6c17 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/false.js @@ -0,0 +1,14 @@ +"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 src_1 = require("../src"); +exports.default = (0, src_1.createBuilder)(() => ({ + success: false, + error: 'False builder always errors.', +})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/noop-schema.json b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/noop-schema.json new file mode 100644 index 00000000..77dd56a3 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/noop-schema.json @@ -0,0 +1,4 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "type": "object" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.d.ts new file mode 100644 index 00000000..9bc83751 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.d.ts @@ -0,0 +1,19 @@ +/** + * All input types of builders that perform operations on one or multiple sub-builders. + */ +export interface Schema { + builders?: Builder[]; + targets?: Target[]; +} +export interface Builder { + builder: string; + options?: { + [key: string]: any; + }; +} +export interface Target { + overrides?: { + [key: string]: any; + }; + target: string; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.js new file mode 100644 index 00000000..4fb6d3d1 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.js @@ -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 }); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.json b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.json new file mode 100644 index 00000000..1de86018 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/operator-schema.json @@ -0,0 +1,41 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "description": "All input types of builders that perform operations on one or multiple sub-builders.", + "type": "object", + "properties": { + "builders": { + "type": "array", + "items": { + "type": "object", + "properties": { + "builder": { + "type": "string", + "pattern": ".*:.*" + }, + "options": { + "type": "object" + } + }, + "required": ["builder"] + }, + "minItems": 1 + }, + "targets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "target": { + "type": "string", + "pattern": ".*:.*" + }, + "overrides": { + "type": "object" + } + }, + "required": ["target"] + }, + "minItems": 1 + } + } +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/true.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/true.d.ts new file mode 100644 index 00000000..cef2dd8a --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/true.d.ts @@ -0,0 +1,9 @@ +/** + * @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 + */ +declare const _default: import("../src/internal").Builder; +export default _default; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/true.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/true.js new file mode 100644 index 00000000..32a3fbcc --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/builders/true.js @@ -0,0 +1,11 @@ +"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 src_1 = require("../src"); +exports.default = (0, src_1.createBuilder)(() => ({ success: true })); -- cgit v1.2.3