Skip to content

Commit

Permalink
Update 2.0: refactor, modified functions and optimization requests (#2)
Browse files Browse the repository at this point in the history
* feat: full refactor and add features

* feat: continue refactor

* feat: correct swipe logic

* feat: modified init logic

* feat: add check platform before init

* fix: installing inited flag

* fix: modified fade animation using framer-motion

* feat: modified skeletons

* fix: change day skeleton

* feat: add color for today tab

* feat: change lessons counter

* chore: update version
  • Loading branch information
GreatFix authored Mar 12, 2023
1 parent c47cbe1 commit 6b18f5c
Show file tree
Hide file tree
Showing 190 changed files with 11,353 additions and 43,972 deletions.
53 changes: 42 additions & 11 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"env": {
"browser": true,
"amd": true,
"node": true
},
"extends": [
"react-app",
"prettier"
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended", // Make sure this is always the last element in the array.
"plugin:react-hooks/recommended"
],
"plugins": ["simple-import-sort", "prettier"],
"rules": {
"jsx-quotes": [
1,
"prefer-double"
]
},
"plugins": [
"prettier"
]
}
"prettier/prettier": ["error", {}, { "usePrettierrc": true, "endOfLine": "auto" }],
"react/react-in-jsx-scope": "off",
"jsx-a11y/accessible-emoji": "off",
"react/prop-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@typescript-eslint/no-empty-function": "off"
}
}
30 changes: 17 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
logs
*.log
npm-debug.log*
*.lock
eslint-disable-next-line
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Dependency directories
/node_modules
bundle.zip
node_modules
dist
dist-ssr
*.local

# Optional npm cache directory
.npm

# Prod Bundle
/build

.vscode
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.env
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
17 changes: 8 additions & 9 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"useTabs": false,
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5",
"jsxBracketSameLine": false,
"semi": false

}
"useTabs": false,
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5",
"jsxBracketSameLine": false,
"semi": false
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

Выполните команду `npm install`(или `yarn`)


## Стэк

> - React
Expand Down
23 changes: 23 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="shortcut icon" href="/favicon.ico" />

<link rel="manifest" href="/site.webmanifest" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no, viewport-fit=cover"
/>
<meta content="IE=Edge" http-equiv="X-UA-Compatible" />
<title>ДГТУ - Расписание</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit 6b18f5c

Please sign in to comment.