feat(doc): move catcherrro

This commit is contained in:
thomas
2023-10-18 09:54:38 +02:00
parent 7cf675de60
commit beae215911
20 changed files with 50 additions and 50 deletions

View File

@@ -1,32 +0,0 @@
body {
font-family: Arial, sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.form-container {
text-align: center;
}
input {
padding: 8px;
margin-right: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
padding: 8px 16px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
.response {
margin-left: 25%;
margin-top: 2%;
width: 50%;
text-align: center;
border: 1px solid #ccc;
}

View File

@@ -1,5 +1,5 @@
{ {
"extends": ["../../.eslintrc.json"], "extends": ["../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"], "ignorePatterns": ["!**/*"],
"overrides": [ "overrides": [
{ {

View File

@@ -1,9 +1,9 @@
/* eslint-disable */ /* eslint-disable */
export default { export default {
displayName: 'rxjs-catch-error', displayName: 'rxjs-catch-error',
preset: '../../jest.preset.js', preset: '../../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'], setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
coverageDirectory: '../../coverage/apps/rxjs-catch-error', coverageDirectory: '../../../coverage/apps/rxjs/catch-error',
transform: { transform: {
'^.+\\.(ts|mjs|js|html)$': [ '^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular', 'jest-preset-angular',

View File

@@ -1,25 +1,25 @@
{ {
"name": "rxjs-catch-error", "name": "rxjs-catch-error",
"$schema": "../../node_modules/nx/schemas/project-schema.json", "$schema": "../../../node_modules/nx/schemas/project-schema.json",
"projectType": "application", "projectType": "application",
"prefix": "app", "prefix": "app",
"sourceRoot": "apps/rxjs-catch-error/src", "sourceRoot": "apps/rxjs/catch-error/src",
"tags": [], "tags": [],
"targets": { "targets": {
"build": { "build": {
"executor": "@angular-devkit/build-angular:browser", "executor": "@angular-devkit/build-angular:browser",
"outputs": ["{options.outputPath}"], "outputs": ["{options.outputPath}"],
"options": { "options": {
"outputPath": "dist/apps/rxjs-catch-error", "outputPath": "dist/apps/rxjs/catch-error",
"index": "apps/rxjs-catch-error/src/index.html", "index": "apps/rxjs/catch-error/src/index.html",
"main": "apps/rxjs-catch-error/src/main.ts", "main": "apps/rxjs/catch-error/src/main.ts",
"polyfills": ["zone.js"], "polyfills": ["zone.js"],
"tsConfig": "apps/rxjs-catch-error/tsconfig.app.json", "tsConfig": "apps/rxjs/catch-error/tsconfig.app.json",
"assets": [ "assets": [
"apps/rxjs-catch-error/src/favicon.ico", "apps/rxjs/catch-error/src/favicon.ico",
"apps/rxjs-catch-error/src/assets" "apps/rxjs/catch-error/src/assets"
], ],
"styles": ["apps/rxjs-catch-error/src/styles.scss"], "styles": ["apps/rxjs/catch-error/src/styles.scss"],
"scripts": [] "scripts": []
}, },
"configurations": { "configurations": {
@@ -72,8 +72,8 @@
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/rxjs-catch-error/**/*.ts", "apps/rxjs/catch-error/**/*.ts",
"apps/rxjs-catch-error/**/*.html" "apps/rxjs/catch-error/**/*.html"
] ]
} }
}, },
@@ -81,7 +81,7 @@
"executor": "@nx/jest:jest", "executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": { "options": {
"jestConfig": "apps/rxjs-catch-error/jest.config.ts", "jestConfig": "apps/rxjs/catch-error/jest.config.ts",
"passWithNoTests": true "passWithNoTests": true
}, },
"configurations": { "configurations": {

View File

@@ -0,0 +1,32 @@
body {
font-family: Arial, sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.form-container {
text-align: center;
}
input {
padding: 8px;
margin-right: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
padding: 8px 16px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
.response {
margin-left: 25%;
margin-top: 2%;
width: 50%;
text-align: center;
border: 1px solid #ccc;
}

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -1,7 +1,7 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../dist/out-tsc", "outDir": "../../../dist/out-tsc",
"types": [] "types": []
}, },
"files": ["src/main.ts"], "files": ["src/main.ts"],

View File

@@ -22,7 +22,7 @@
"path": "./tsconfig.editor.json" "path": "./tsconfig.editor.json"
} }
], ],
"extends": "../../tsconfig.base.json", "extends": "../../../tsconfig.base.json",
"angularCompilerOptions": { "angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false, "enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true, "strictInjectionParameters": true,

View File

@@ -1,7 +1,7 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../dist/out-tsc", "outDir": "../../../dist/out-tsc",
"module": "commonjs", "module": "commonjs",
"types": ["jest", "node", "@testing-library/jest-dom"] "types": ["jest", "node", "@testing-library/jest-dom"]
}, },