Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e648750
Inicializando o projeto
thiago-felipe-99 Jul 29, 2021
5869bbf
Inicializando o projeto
thiago-felipe-99 Jul 29, 2021
2a3e163
Adicionando a funcionalidade de criar turma
thiago-felipe-99 Aug 1, 2021
c7241fc
Adicionando a funcionalidade de criar turma
thiago-felipe-99 Aug 1, 2021
bc7bf7d
Adicionando a funcionalidades de adicionar professor e estudante
thiago-felipe-99 Aug 1, 2021
9209c43
Adicionando a funcionalidades de adicionar professor e estudante
thiago-felipe-99 Aug 1, 2021
9ff3c2e
Adicionando as funcionalidades de mudar a turma do professor e aluno
thiago-felipe-99 Aug 1, 2021
19d07c2
Adicionando as funcionalidades de mudar a turma do professor e aluno
thiago-felipe-99 Aug 1, 2021
e2b306b
Adicionando a funcionalidade de ver os professores e estudantes por t…
thiago-felipe-99 Aug 1, 2021
089edfb
Adicionando a funcionalidade de ver os professores e estudantes por t…
thiago-felipe-99 Aug 1, 2021
49ebae0
Adicionando deploy no heroku
thiago-felipe-99 Aug 1, 2021
65d8481
Resolvendo bug no deploy
thiago-felipe-99 Aug 1, 2021
8197973
Resolvendo bug no deploy
thiago-felipe-99 Aug 1, 2021
ed0e987
Arrumando bug no deploy
thiago-felipe-99 Aug 1, 2021
ae89b9a
Arrumando bug no deploy
thiago-felipe-99 Aug 1, 2021
76263e5
Mudando a lógica de como a porta do servidor é declarado
thiago-felipe-99 Aug 1, 2021
0b502d1
Mudando a lógica de como a porta do servidor é declarado
thiago-felipe-99 Aug 1, 2021
e72a08c
Vendo erro no heroku
thiago-felipe-99 Aug 1, 2021
93652a0
Vendo erro no heroku
thiago-felipe-99 Aug 1, 2021
32c4c62
Vendo erro no deploy
thiago-felipe-99 Aug 1, 2021
46fe4c9
Vendo erro no deploy
thiago-felipe-99 Aug 1, 2021
180bf42
Arurmando bug
thiago-felipe-99 Aug 1, 2021
8c3e06a
Arurmando bug
thiago-felipe-99 Aug 1, 2021
714ad41
Split 'semana17/LabenuSystem/' into commit '180bf42edce8c9a80e5d0eafc…
thiago-felipe-99 Aug 1, 2021
81c00ec
Removendo console logs
thiago-felipe-99 Aug 1, 2021
942e677
Adicionando a funcionalidade de ver professor e estudante por id
thiago-felipe-99 Aug 2, 2021
d69a074
Adicionando a funcionalidade de remover professor e estudante das turmas
thiago-felipe-99 Aug 2, 2021
d47eb0a
Adicionando a funcionalidades de remover estudante e professor
thiago-felipe-99 Aug 2, 2021
3e0bd6f
Adicionando a funcionalidade de mudar turma de modulo
thiago-felipe-99 Aug 2, 2021
c0db478
Refatorando código
thiago-felipe-99 Aug 2, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"start": "cd semana17/LabenuSystem && npm install && npm start",
"lint": "tsc && eslint ."
},
"devDependencies": {
Expand Down
252 changes: 252 additions & 0 deletions semana17/LabenuSystem/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,252 @@
{
"root": true,
"env": {
"browser": true,
"es2020": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "react-hooks"],
"rules": {
"no-cond-assign": ["error", "always"],
"no-console": "warn",
"no-constant-condition": "error",
"no-debugger": "error",
"no-dupe-else-if": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "warn",
"no-empty-character-class": "error",
"no-extra-boolean-cast": "warn",
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": ["warn", "all", { "ignoreJSX": "multi-line" }],
"no-extra-semi": "warn",
"no-func-assign": "warn",
"no-import-assign": "warn",
"no-inner-declarations": ["warn", "both"],
"no-invalid-regexp": "error",
"no-irregular-whitespace": ["warn", {
"skipRegExps": true,
"skipTemplates": true
}],
"no-loss-of-precision": "warn",
"no-misleading-character-class": "warn",
"no-obj-calls": "warn",
"no-prototype-builtins": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "warn",
"no-unexpected-multiline": "warn",
"no-unreachable": "error",
"no-unreachable-loop": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"use-isnan": "warn",
"valid-typeof": "error",

"curly": ["warn", "multi", "consistent"],
"no-empty-function": "warn",

"array-bracket-newline": ["warn", { "multiline": true }],
"array-bracket-spacing": ["warn", "always"],
"array-element-newline": ["warn", { "multiline": true, "minItems": 3 }],
"block-spacing": "warn",
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"capitalized-comments": "warn",
"camelcase": "off",
"comma-dangle": ["warn", "never"],
"comma-spacing": ["warn", { "before": false, "after": true }],
"comma-style": ["warn", "last"],
"computed-property-spacing": "warn",
"eol-last": ["warn", "always"],
"func-call-spacing": ["error", "never"],
"func-names": ["error", "always"],
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"function-call-argument-newline": ["warn", "consistent"],
"function-paren-newline": ["warn", "multiline"],
"id-length": ["warn", { "min": 3, "exceptions": ["id", "_"] }],
"implicit-arrow-linebreak": ["warn", "beside"],
"indent": ["warn", 2, {
"SwitchCase": 1,
"VariableDeclarator": "first",
"MemberExpression": 1,
"FunctionDeclaration": {"parameters": "first"},
"FunctionExpression": {"parameters": "first"},
"CallExpression": {"arguments": "first"},
"ArrayExpression": "first",
"ObjectExpression": "first",
"ImportDeclaration": "first",
"flatTernaryExpressions": false,
"offsetTernaryExpressions": true,
"ignoreComments": false
}],
"jsx-quotes": ["warn", "prefer-double"],
"key-spacing": ["warn", {
"beforeColon": false,
"afterColon": true,
"mode": "strict" ,
"align": "value"
}],
"keyword-spacing": "warn",
"linebreak-style": ["warn", "unix"],
"lines-around-comment": ["warn", {
"beforeBlockComment": true,
"afterBlockComment": true,
"beforeLineComment": true,
"afterLineComment": false
}],
"lines-between-class-members": ["warn", "always"],
"max-depth": ["warn", 4],
"max-len": ["warn", { "code": 85 }],
"max-lines-per-function": ["warn", {
"max": 100,
"skipBlankLines": true,
"skipComments": true
}],
"max-nested-callbacks": ["warn", 3],
"max-params": ["warn", 6],
"max-statements-per-line": ["warn", { "max": 2 }],
"multiline-comment-style": ["warn", "bare-block"],
"multiline-ternary": ["warn", "always-multiline"],
"newline-per-chained-call": ["warn", { "ignoreChainWithDepth": 3 }],
"no-lonely-if": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-multi-assign": "warn",
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"no-negated-condition": "warn",
"no-nested-ternary": "warn",
"no-new-object": "error",
"no-tabs": "warn",
"no-trailing-spaces": "warn",
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "warn",
"nonblock-statement-body-position": ["warn", "below"],
"object-curly-newline": ["warn", {
"ObjectExpression": { "multiline": true, "minProperties": 4 },
"ObjectPattern": { "multiline": true, "minProperties": 4 },
"ImportDeclaration": { "multiline": true, "minProperties": 4 },
"ExportDeclaration": { "multiline": true, "minProperties": 4 }
}],
"object-curly-spacing": ["warn", "always"],
"object-property-newline": "warn",
"one-var": ["warn", { "initialized": "never" }],
"one-var-declaration-per-line": ["warn", "initializations"],
"operator-assignment": ["warn", "always"],
"operator-linebreak": ["warn", "before"],
"padded-blocks": ["warn", "never", { "allowSingleLineBlocks": true } ],
"prefer-exponentiation-operator": "warn",
"prefer-object-spread": "warn",
"quote-props": ["warn", "as-needed"],
"quotes": ["warn", "double"],
"semi": ["warn", "always"],
"semi-spacing": ["warn", {"before": false, "after": true}],
"semi-style": ["warn", "last"],
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"space-in-parens": ["warn", "never"],
"space-infix-ops": "warn",
"space-unary-ops": [ "warn", {"words": true, "nonwords": false}],
"spaced-comment": ["warn", "never"],
"switch-colon-spacing": "warn",
"template-tag-spacing": "warn",
"wrap-regex": "warn",

"arrow-body-style": ["warn", "as-needed"],
"arrow-parens": ["warn", "always"],
"arrow-spacing": "warn",
"constructor-super": "error",
"generator-star-spacing": ["warn", "before"],
"no-class-assign": "error",
"no-confusing-arrow": "warn",
"no-const-assign": "error",
"no-duplicate-imports": ["error", { "includeExports": true }],
"no-new-symbol": "error",
"no-useless-computed-key": "warn",
"no-useless-constructor": "error",
"no-useless-rename": "warn",
"no-var": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-numeric-literals": "warn",
"prefer-rest-params": "error",
"prefer-spread": "warn",
"prefer-template": "warn",
"require-yield": "error",
"rest-spread-spacing": ["warn", "never"],
"symbol-description": "error",
"template-curly-spacing": "warn",
"yield-star-spacing": ["warn", "before"],

"react/no-array-index-key": "error",
"react/no-deprecated": "error",
"react/self-closing-comp": ["warn", {
"component": true,
"html": true
}],

"react/jsx-child-element-spacing": "warn",
"react/jsx-closing-bracket-location": "warn",
"react/jsx-closing-tag-location": "warn",
"react/jsx-curly-brace-presence": "warn",
"react/jsx-curly-newline": "warn",
"react/jsx-curly-spacing": "warn",
"react/jsx-equals-spacing": ["warn", "never"],
"react/jsx-filename-extension": ["warn", { "extensions": [".tsx", ".jsx", ".js"] }],
"react/jsx-first-prop-new-line": ["warn", "multiline"],
"react/jsx-fragments": ["warn", "syntax"],
"react/jsx-indent": ["warn", 2, {
"checkAttributes": true,
"indentLogicalExpressions": true
}],
"react/jsx-indent-props": ["warn", 2],
"react/jsx-key": ["warn", { "checkFragmentShorthand": true }],
"react/jsx-max-depth": ["warn", { "max": 5 }],
"react/jsx-max-props-per-line": ["warn", {
"maximum": 1,
"when": "multiline"
}],
"react/jsx-no-comment-textnodes": "warn",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-script-url": "error",
"react/jsx-no-undef": "warn",
"react/jsx-one-expression-per-line": ["warn", { "allow": "single-child" }],
"react/jsx-pascal-case": "warn",
"react/jsx-props-no-multi-spaces": "warn",
"react/jsx-tag-spacing": ["warn", {
"beforeSelfClosing": "never",
"closingSlash": "never",
"afterOpening": "never",
"beforeClosing": "never"
}],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prop-types": "off",

"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }]
},
"overrides": [
{
"files": ["*.jsx", "*.js"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
]
}
5 changes: 5 additions & 0 deletions semana17/LabenuSystem/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_module
build
.env
package-lock.json
yarn.lock
27 changes: 27 additions & 0 deletions semana17/LabenuSystem/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "aula47",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "npx tsc && node build/index.js",
"lint": "npx eslint --fix ./src"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/node": "^16.4.0",
"@types/uuid": "^8.3.1",
"cors": "^2.8.5",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"knex": "^0.95.7",
"mysql": "^2.18.1",
"typescript": "^4.3.5",
"uuid": "^8.3.2",
"yup": "^0.32.9"
}
}
Loading