Skip to content

Commit 45eedf2

Browse files
committed
updated onlineshop
1 parent 2d62032 commit 45eedf2

35 files changed

+15158
-9188
lines changed

onlineshop/nest.code-workspace

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
22
"folders": [
3-
{
4-
"name": "Server",
5-
"path": "packages/server"
6-
},
7-
{
8-
"name": "Client",
9-
"path": "packages/client"
10-
},
11-
{
12-
"name": "Configs (Root)",
13-
"path": "."
14-
},
15-
16-
],
3+
{
4+
"name": "Server",
5+
"path": "source/server"
6+
},
7+
{
8+
"name": "Client",
9+
"path": "source/client"
10+
},
11+
{
12+
"name": "Configs (Root)",
13+
"path": "."
14+
}
15+
],
1716
"settings": {
1817
"files.exclude": {
1918
"**/.git": true,

onlineshop/source/client/package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"react": "^17.0.2",
7-
"react-dom": "^17.0.2",
8-
"react-scripts": "4.0.3",
9-
"web-vitals": "^1.1.2"
6+
"react": "^18.2.0",
7+
"react-dom": "^18.2.0",
8+
"react-scripts": "5.0.1",
9+
"web-vitals": "^3.5.2"
1010
},
1111
"scripts": {
1212
"start": "react-scripts start",
@@ -35,20 +35,20 @@
3535
]
3636
},
3737
"devDependencies": {
38-
"@testing-library/jest-dom": "^5.13.0",
39-
"@testing-library/react": "^11.2.7",
40-
"@testing-library/user-event": "^12.8.3",
41-
"@types/jest": "^26.0.23",
42-
"@types/node": "^12.20.15",
43-
"@types/react": "^17.0.10",
44-
"@types/react-dom": "^17.0.7",
45-
"eslint": "^7.28.0",
46-
"eslint-config-prettier": "^8.3.0",
47-
"eslint-plugin-import": "^2.23.4",
48-
"eslint-plugin-prettier": "^3.4.0",
49-
"eslint-plugin-react": "^7.24.0",
50-
"eslint-plugin-react-hooks": "^4.2.0",
51-
"prettier": "^2.3.1",
52-
"typescript": "^4.3.2"
38+
"@testing-library/jest-dom": "^6.4.2",
39+
"@testing-library/react": "^14.2.1",
40+
"@testing-library/user-event": "^14.5.2",
41+
"@types/jest": "^29.5.12",
42+
"@types/node": "^20.11.17",
43+
"@types/react": "^18.2.55",
44+
"@types/react-dom": "^18.2.19",
45+
"eslint": "^8.56.0",
46+
"eslint-config-prettier": "^9.1.0",
47+
"eslint-plugin-import": "^2.29.1",
48+
"eslint-plugin-prettier": "^5.1.3",
49+
"eslint-plugin-react": "^7.33.2",
50+
"eslint-plugin-react-hooks": "^4.6.0",
51+
"prettier": "^3.2.5",
52+
"typescript": "^5.3.3"
5353
}
5454
}

onlineshop/source/client/yarn.lock

Lines changed: 9861 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 128 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,136 @@
11
module.exports = {
2-
parser: '@typescript-eslint/parser',
3-
parserOptions: {
4-
project: 'tsconfig.json',
5-
sourceType: 'module',
6-
},
7-
plugins: ['@typescript-eslint/eslint-plugin', 'prettier'],
8-
extends: [
9-
'eslint:recommended',
10-
'plugin:@typescript-eslint/recommended',
11-
'plugin:import/errors',
12-
'plugin:import/warnings',
13-
'plugin:import/typescript',
14-
'plugin:prettier/recommended',
15-
],
16-
root: true,
17-
env: {
18-
node: true,
19-
jest: true,
20-
},
21-
ignorePatterns: ['.eslintrc.js'],
22-
rules: {
23-
'no-param-reassign': ['error'],
24-
'prettier/prettier': 'error',
25-
'linebreak-style': ['error', 'unix'],
26-
'arrow-body-style': [
27-
'error',
28-
'as-needed',
29-
{
30-
requireReturnForObjectLiteral: false,
31-
},
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
sourceType: 'module',
6+
},
7+
plugins: ['@typescript-eslint/eslint-plugin', 'prettier'],
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:@typescript-eslint/recommended',
11+
'plugin:import/errors',
12+
'plugin:import/warnings',
13+
'plugin:import/typescript',
14+
'plugin:prettier/recommended',
3215
],
33-
curly: ['error', 'all'],
34-
'no-implicit-coercion': ['error'],
35-
'spaced-comment': ['error', 'always'],
36-
eqeqeq: ['error', 'always'],
37-
'prefer-template': 'error',
38-
'no-useless-concat': 'error',
39-
'prefer-destructuring': [
40-
'error',
41-
{
42-
VariableDeclarator: {
43-
array: false,
44-
object: true,
16+
root: true,
17+
env: {
18+
node: true,
19+
jest: true,
20+
},
21+
ignorePatterns: ['.eslintrc.js'],
22+
rules: {
23+
'no-param-reassign': ['error'],
24+
'prettier/prettier': 'error',
25+
'linebreak-style': ['error', 'unix'],
26+
'arrow-body-style': [
27+
'error',
28+
'as-needed',
29+
{
30+
requireReturnForObjectLiteral: false,
4531
},
46-
AssignmentExpression: {
47-
array: false,
48-
object: true,
32+
],
33+
curly: ['error', 'all'],
34+
'no-implicit-coercion': ['error'],
35+
'spaced-comment': ['error', 'always'],
36+
eqeqeq: ['error', 'always'],
37+
'prefer-template': 'error',
38+
'no-useless-concat': 'error',
39+
'prefer-destructuring': [
40+
'error',
41+
{
42+
VariableDeclarator: {
43+
array: false,
44+
object: true,
45+
},
46+
AssignmentExpression: {
47+
array: false,
48+
object: true,
49+
},
4950
},
50-
},
51-
{
52-
enforceForRenamedProperties: false,
53-
},
54-
],
55-
'no-restricted-imports': [
56-
'error',
57-
{
58-
patterns: ['../*'],
59-
},
60-
],
61-
'import/extensions': [
62-
'error',
63-
'ignorePackages',
64-
{
65-
ts: 'never',
66-
tsx: 'never',
67-
},
68-
],
69-
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
70-
'import/order': [
71-
'error',
72-
{
73-
'newlines-between': 'always',
74-
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
75-
pathGroups: [
76-
{
77-
pattern: 'src/**',
78-
group: 'parent',
79-
position: 'after',
51+
{
52+
enforceForRenamedProperties: false,
53+
},
54+
],
55+
'no-restricted-imports': [
56+
'error',
57+
{
58+
patterns: ['../*'],
59+
},
60+
],
61+
'import/extensions': [
62+
'error',
63+
'ignorePackages',
64+
{
65+
ts: 'never',
66+
tsx: 'never',
67+
},
68+
],
69+
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
70+
'import/order': [
71+
'error',
72+
{
73+
'newlines-between': 'always',
74+
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
75+
pathGroups: [
76+
{
77+
pattern: 'src/**',
78+
group: 'parent',
79+
position: 'after',
80+
},
81+
],
82+
},
83+
],
84+
'import/newline-after-import': 'error',
85+
'@typescript-eslint/interface-name-prefix': 'off',
86+
'@typescript-eslint/no-explicit-any': 'error',
87+
'@typescript-eslint/explicit-function-return-type': 'off',
88+
'@typescript-eslint/explicit-module-boundary-types': 'off',
89+
'@typescript-eslint/ban-types': ['error'],
90+
"@typescript-eslint/no-shadow": ["error"],
91+
'@typescript-eslint/naming-convention': [
92+
'error',
93+
{
94+
selector: 'default',
95+
format: ['camelCase'],
96+
},
97+
{
98+
selector: ['enumMember', 'variable'],
99+
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
100+
},
101+
{
102+
selector: 'parameter',
103+
format: ['camelCase'],
104+
leadingUnderscore: 'allow',
105+
modifiers: ['unused'],
106+
},
107+
{
108+
selector: 'objectLiteralProperty',
109+
filter: {
110+
// Regular expression for BEM classnames
111+
// Source: https://medium.com/takeaway-tech/the-search-for-a-regex-to-match-hyphenated-bem-css-class-names-5f8b66cc2bd9
112+
regex: '^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$',
113+
match: true,
80114
},
81-
],
82-
},
83-
],
84-
'import/newline-after-import': 'error',
85-
'@typescript-eslint/interface-name-prefix': 'off',
86-
'@typescript-eslint/no-explicit-any': 'error',
87-
'@typescript-eslint/explicit-function-return-type': 'off',
88-
'@typescript-eslint/explicit-module-boundary-types': 'off',
89-
'@typescript-eslint/ban-types': ['error'],
90-
"@typescript-eslint/no-shadow": ["error"],
91-
'@typescript-eslint/naming-convention': [
92-
'error',
93-
{
94-
selector: 'default',
95-
format: ['camelCase'],
96-
},
97-
{
98-
selector: ['enumMember', 'variable'],
99-
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
100-
},
101-
{
102-
selector: 'parameter',
103-
format: ['camelCase'],
104-
leadingUnderscore: 'allow',
105-
modifiers: ['unused'],
106-
},
107-
{
108-
selector: 'objectLiteralProperty',
109-
filter: {
110-
// Regular expression for BEM classnames
111-
// Source: https://medium.com/takeaway-tech/the-search-for-a-regex-to-match-hyphenated-bem-css-class-names-5f8b66cc2bd9
112-
regex: '^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$',
113-
match: true,
115+
format: null,
114116
},
115-
format: null,
116-
},
117-
{
118-
selector: 'typeLike',
119-
format: ['PascalCase'],
120-
},
121-
{
122-
selector: 'typeProperty',
123-
format: ['snake_case', 'camelCase'],
124-
},
125-
],
126-
},
127-
settings: {
128-
'import/resolver': {
129-
node: {
130-
paths: ['./'],
131-
extensions: ['.ts'],
117+
{
118+
selector: 'typeLike',
119+
format: ['PascalCase'],
120+
},
121+
{
122+
selector: 'typeProperty',
123+
format: ['snake_case', 'camelCase'],
124+
},
125+
],
126+
},
127+
settings: {
128+
'import/resolver': {
129+
node: {
130+
paths: ['./'],
131+
extensions: ['.ts'],
132+
},
133+
typescript: {} // this loads <rootdir>/tsconfig.json to eslint
132134
},
133-
typescript: {} // this loads <rootdir>/tsconfig.json to eslint
134135
},
135-
},
136-
};
136+
};

onlineshop/source/server/.gitignore

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# compiled output
22
/dist
33
/node_modules
4-
5-
# images
6-
*.jpg
7-
*.jpeg
8-
*.png
4+
/build
95

106
# Logs
117
logs
128
*.log
139
npm-debug.log*
10+
pnpm-debug.log*
1411
yarn-debug.log*
1512
yarn-error.log*
1613
lerna-debug.log*
@@ -37,3 +34,23 @@ lerna-debug.log*
3734
!.vscode/tasks.json
3835
!.vscode/launch.json
3936
!.vscode/extensions.json
37+
38+
# dotenv environment variable files
39+
.env
40+
.env.development.local
41+
.env.test.local
42+
.env.production.local
43+
.env.local
44+
45+
# temp directory
46+
.temp
47+
.tmp
48+
49+
# Runtime data
50+
pids
51+
*.pid
52+
*.seed
53+
*.pid.lock
54+
55+
# Diagnostic reports (https://nodejs.org/api/report.html)
56+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

0 commit comments

Comments
 (0)