From 099973bed90de89f66a75418d5f66b378df9ff0e Mon Sep 17 00:00:00 2001 From: Hung Viet Nguyen Date: Wed, 17 Aug 2022 22:22:53 +0700 Subject: [PATCH 1/2] chore: add @types/testing-library__jest-dom since pnpm cannot resolve it --- package.json | 1 + pnpm-lock.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/package.json b/package.json index 9d1b2100..a9f490de 100644 --- a/package.json +++ b/package.json @@ -93,6 +93,7 @@ "@types/react-dom": "^17.0.10", "@types/styled-components": "^5.1.24", "@types/svgo": "^2.6.3", + "@types/testing-library__jest-dom": "^5.14.5", "@vitejs/plugin-react": "^1.3.0", "animate-sass": "^0.8.2", "animate.css": "^4.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8e045e26..87627da6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,7 @@ specifiers: '@types/react-dom': ^17.0.10 '@types/styled-components': ^5.1.24 '@types/svgo': ^2.6.3 + '@types/testing-library__jest-dom': ^5.14.5 '@vitejs/plugin-react': ^1.3.0 animate-sass: ^0.8.2 animate.css: ^4.1.1 @@ -91,6 +92,7 @@ devDependencies: '@types/react-dom': 17.0.17 '@types/styled-components': 5.1.25 '@types/svgo': 2.6.3 + '@types/testing-library__jest-dom': 5.14.5 '@vitejs/plugin-react': 1.3.2 animate-sass: 0.8.2 animate.css: 4.1.1 From 0c37d61c63453385cfff41614133f93d929dcc66 Mon Sep 17 00:00:00 2001 From: Hung Viet Nguyen Date: Wed, 17 Aug 2022 22:28:32 +0700 Subject: [PATCH 2/2] feat: some polish to angular example --- examples/angular/angular.json | 3 ++- examples/angular/package.json | 1 + examples/angular/src/app/app.component.css | 13 ++++++++----- examples/angular/src/app/app.component.ts | 9 ++++++++- examples/angular/src/assets/logo.svg | 17 ++++++++++++++++- website/docs/examples/angular.md | 3 +++ 6 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 website/docs/examples/angular.md diff --git a/examples/angular/angular.json b/examples/angular/angular.json index df5601a9..51983092 100644 --- a/examples/angular/angular.json +++ b/examples/angular/angular.json @@ -2,7 +2,8 @@ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "cli": { - "packageManager": "yarn" + "packageManager": "yarn", + "analytics": false }, "newProjectRoot": "projects", "projects": { diff --git a/examples/angular/package.json b/examples/angular/package.json index 5fb0beac..f5199da2 100644 --- a/examples/angular/package.json +++ b/examples/angular/package.json @@ -35,6 +35,7 @@ "@testing-library/user-event": "^14.4.3", "@types/jest": "^28.1.6", "@types/node": "16.11.7", + "@types/testing-library__jest-dom": "^5.14.5", "jest": "^28.1.3", "jest-preview": "^0.2.8", "start-server-and-test": "^1.14.0", diff --git a/examples/angular/src/app/app.component.css b/examples/angular/src/app/app.component.css index 74b5e053..26c9d4e7 100644 --- a/examples/angular/src/app/app.component.css +++ b/examples/angular/src/app/app.component.css @@ -9,7 +9,7 @@ @media (prefers-reduced-motion: no-preference) { .App-logo { - animation: App-logo-spin infinite 20s linear; + animation: App-logo-spin infinite 1s linear; } } @@ -29,10 +29,13 @@ } @keyframes App-logo-spin { - from { - transform: rotate(0deg); + 0% { + transform: scale(1); } - to { - transform: rotate(360deg); + 50% { + transform: scale(1.1); + } + 100% { + transform: scale(1); } } diff --git a/examples/angular/src/app/app.component.ts b/examples/angular/src/app/app.component.ts index 0a5b43e0..c56162d5 100644 --- a/examples/angular/src/app/app.component.ts +++ b/examples/angular/src/app/app.component.ts @@ -17,7 +17,14 @@ export const styleUrls = [
logo2 -

Angular CLI Example

+

+ Angular CLI Example +

This text is styled by global configured SASS

diff --git a/examples/angular/src/assets/logo.svg b/examples/angular/src/assets/logo.svg index 9dfc1c05..96301efe 100644 --- a/examples/angular/src/assets/logo.svg +++ b/examples/angular/src/assets/logo.svg @@ -1 +1,16 @@ - \ No newline at end of file + + + + + + + + + + diff --git a/website/docs/examples/angular.md b/website/docs/examples/angular.md new file mode 100644 index 00000000..e015f7fb --- /dev/null +++ b/website/docs/examples/angular.md @@ -0,0 +1,3 @@ +--- +sidebar_position: 7 +---