Skip to content

Commit f313021

Browse files
authored
Merge pull request #963 from Dudrie/issue-957-Change_DB_to_SQL
Change DB to SQL
2 parents 195900c + 03c068c commit f313021

343 files changed

Lines changed: 17108 additions & 23674 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ indent_size = 2
1212

1313
[*.config.js]
1414
indent_size = 2
15+
16+
[*.md]
17+
indent_size = 3

.eslintrc.yml

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -4,70 +4,70 @@ root: true
44
parser: '@typescript-eslint/parser' # Specifies the ESLint parser
55

66
plugins:
7-
- 'react'
8-
- 'import'
7+
- 'react'
8+
- 'import'
99

1010
extends:
11-
- 'plugin:react/recommended' # Uses the recommended rules from @eslint-plugin-react
12-
- 'plugin:react-hooks/recommended'
13-
- 'plugin:@typescript-eslint/recommended' # Uses the recommended rules from the @typescript-eslint/eslint-plugin
14-
- 'plugin:import/typescript'
15-
- 'prettier/@typescript-eslint' # Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
16-
- 'plugin:prettier/recommended' # Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
11+
- 'plugin:react/recommended' # Uses the recommended rules from @eslint-plugin-react
12+
- 'plugin:react-hooks/recommended'
13+
- 'plugin:@typescript-eslint/recommended' # Uses the recommended rules from the @typescript-eslint/eslint-plugin
14+
- 'plugin:import/typescript'
15+
# - 'prettier/@typescript-eslint' # Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
16+
- 'plugin:prettier/recommended' # Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
1717

1818
parserOptions:
19-
ecmaVersion: 2018 # Allows for the parsing of modern ECMAScript features
20-
sourceType: 'module' # Allows for the use of imports
19+
ecmaVersion: 2018 # Allows for the parsing of modern ECMAScript features
20+
sourceType: 'module' # Allows for the use of imports
2121

2222
rules:
23-
# Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
24-
'@typescript-eslint/explicit-function-return-type': 'off'
25-
'@typescript-eslint/explicit-member-accessibility': 'off'
26-
'@typescript-eslint/no-explicit-any': 'off'
27-
'@typescript-eslint/no-inferrable-types': 'off'
28-
'@typescript-eslint/no-unused-vars':
29-
- 'warn'
30-
- ignoreRestSiblings: true
31-
argsIgnorePattern: '^_'
32-
args: 'none'
33-
'@typescript-eslint/no-use-before-define':
34-
- 'error'
35-
- functions: false
36-
classes: true
37-
variables: true
38-
typedefs: true
39-
'@typescript-eslint/no-parameter-properties':
40-
- 'error'
41-
- allows:
42-
- 'private'
43-
- 'readonly'
44-
- 'private readonly'
45-
- 'protected readonly'
46-
'@typescript-eslint/interface-name-prefix': 'off'
47-
'@typescript-eslint/explicit-module-boundary-types':
48-
- 'warn'
49-
- allowedNames: ['renderLink']
50-
'constructor-super': 'error'
51-
'no-console': 'error'
52-
'no-fallthrough': 'error'
53-
'no-useless-rename': 'warn'
54-
'import/no-restricted-paths':
55-
- 'error'
56-
- zones:
57-
- target: './client'
58-
from: './server/src'
59-
'import/no-unresolved': 'off'
60-
'import/no-named-as-default': 'off'
61-
'import/no-unused-modules':
62-
- 'off'
63-
- unusedExports: true
64-
'react/display-name': 'off'
65-
'react/jsx-no-duplicate-props':
66-
- 'warn'
67-
- ignoreCase: false
68-
'react/prop-types': [0]
69-
'prettier/prettier': 'warn'
23+
# Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
24+
'@typescript-eslint/explicit-function-return-type': 'off'
25+
'@typescript-eslint/explicit-member-accessibility': 'off'
26+
'@typescript-eslint/no-explicit-any': 'off'
27+
'@typescript-eslint/no-inferrable-types': 'off'
28+
'@typescript-eslint/no-unused-vars':
29+
- 'warn'
30+
- ignoreRestSiblings: true
31+
argsIgnorePattern: '^_'
32+
args: 'none'
33+
'@typescript-eslint/no-use-before-define':
34+
- 'error'
35+
- functions: false
36+
classes: true
37+
variables: true
38+
typedefs: true
39+
'@typescript-eslint/no-parameter-properties':
40+
- 'error'
41+
- allows:
42+
- 'private'
43+
- 'readonly'
44+
- 'private readonly'
45+
- 'protected readonly'
46+
'@typescript-eslint/interface-name-prefix': 'off'
47+
'@typescript-eslint/explicit-module-boundary-types':
48+
- 'warn'
49+
- allowedNames: ['renderLink']
50+
'constructor-super': 'error'
51+
'no-console': 'error'
52+
'no-fallthrough': 'error'
53+
'no-useless-rename': 'warn'
54+
'import/no-restricted-paths':
55+
- 'error'
56+
- zones:
57+
- target: './client'
58+
from: './server/src'
59+
'import/no-unresolved': 'off'
60+
'import/no-named-as-default': 'off'
61+
'import/no-unused-modules':
62+
- 'off'
63+
- unusedExports: true
64+
'react/display-name': 'off'
65+
'react/jsx-no-duplicate-props':
66+
- 'warn'
67+
- ignoreCase: false
68+
'react/prop-types': [0]
69+
'prettier/prettier': 'warn'
7070

7171
settings:
72-
react:
73-
version: 'detect' # Tells eslint-plugin-react to automatically detect the version of React to use
72+
react:
73+
version: 'detect' # Tells eslint-plugin-react to automatically detect the version of React to use

.github/workflows/unit-tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ jobs:
1616
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
1717
with:
1818
persist-credentials: false
19+
- name: Start SQL Docker container
20+
uses: mirromutth/mysql-action@v1.1
21+
with:
22+
host port: 3306 # Optional, default value is 3306. The port of host
23+
container port: 3306 # Optional, default value is 3306. The port of container
24+
character set server: 'utf8' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld
25+
collation server: 'utf8_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld
26+
mysql version: '8.0' # Optional, default value is "latest". The version of the MySQL
27+
mysql database: 'tms-testing-db' # Optional, default value is "test". The specified database which will be created
28+
mysql root password: 'some-password' # Required if "mysql user" is empty, default is empty. The root superuser password
1929
- name: Setup Node.js
2030
uses: actions/setup-node@v2.1.5
2131
with:

.idea/Tutor-Management-System.iml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/prettier.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/_template__of_JavaScriptTestRunnerJest.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/watcherTasks.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)