mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
1ab772e66d
* update deps * remove @mantine/rte * add icons again * Create dependency-review.yml * Create scan.yml * Create sonar-project.properties * add option to use sections and refactro * translate error messages * remove unneeded vars * move function code * move data inside * add global section * add plugin section * use translated section titles * add translation strings * rename scan action * add user settings * use ordered data * fix settings url * use debounced value for strings (not choices!) * rename contex to context * move i18n provider up * move theme options into seperate context/ component * renmae statrtup vars * move translations out * reactivate sentry * move i18n provider to seperate context * move langauge state completly out of App * use theme out * move theme context * move LanguageContext * move function into state * make sentry optional for now * add key to accordion * init langauge context on top * remove unneeded css files * move errorpage to tsx * add translation for error page * Add error to title * add typecast for error * move type definition out * remove todo -> type was already added * upgrade deps * add bootstrap * remove @mantine/core * readd core * switch to bootstrap * simplify import * Add SPA views for react #2789 * split up frontend urls * Add settings for frontend url loading * add new UI scaffold * remove tracking insert * add platform app * ensure static indexes work too * add lingui * add lingui config * add mgmt tasks * add base locales * settings for frontend dev * fix typo * update deps * add pre-commit * add eslint * add testing scaffold * fix paths * remove error - tests trip correctly * merge workflow * cleanup samples * use name inline with other tests * Add real worl frontend tests * setup env * tun migrations first * optimize setup time * setup demo dataset * optimize run setup * add test for class ui * rename * fix typo * and another typo * do install * run migrations first * fix name * cleanup * use other credentials * use other credentials * fix qc * move envs to qc * remove create_site * reduce testing env * fix test * fix test call * allaccess user * add ui plattform check * add better check * remove unneeded env * enable debug * reduce wait time * also build frontend on static * add sekeleton * fix various issues * add locales * clean output before building * cleanup dir * remove bootstrap * clean up deps * fix settings panel * remove assets * move logo * split out router * split up chunks * fix zustand import syntax * bundl * update pre-render * use vendor splitting * maximes space usage * enlarge breakpoints * remove wired color changes * cleanup tabs * fix error * update auth functions * default to mail login * add placeholder marking * Add text to placeholder * readd codespell * add another test * add sort plugin * add sort plugin * sort imports * fix order * Add mega menu * run pre-commit fixes * add node min version * Docker container (#129) * Fix allocation check for completing build order (#5199) - Allocation check only applies to untracked line items * docker dev Install required node packages to docker development image * add import order settings * cleanup settings * cleanup dashboard * clanup part tab * refactor header to only use 1 line * cleanup reqs for py3.9 * remove compiled UI * revert reqs change * cleanup tasks * cleanout built ui * remove default user * cleanup package.json * fix doctip * remove sentry * optimize loading * reset versions * clean * factor out menu items * refactor Navtabs * refactor HoverMenu * remove part * remove prettier * remove default arg from build * remove eslint * Merge branch 'plattform' of https://github.com/matmair/InvenTree into platform-ui_base * optimize svg * add build step for plattform UI * fix install command * fix test * remove extra test * set default host if none is set * set nicer names * fix tests * fix logged-in test * update translations * ensure more path matches * make loading of serverrefs dynamic * use default radius * fix issues / code smells * clean code smell * fix password reset * fix error messages * detect small screens * use loader meachanism for views * refactor structure * move auth functions out * use text * refactor defaults * Add email login FR] Add email link based logins Closes #3531 * fix name error * fix reqs * fix backend for magic login * fix frontend * remove unused route * remove now unneeded test section * cleanup code * add navigation header * fix logo component for nesting * factor out menu * refactor style * clean code * Translate items and use unique ids * use alpine commands * increase margins to remove drawer scroller * only render plugins if they are defined * remove sample content * fix assertation * open on hover * refactor * merge fix * cleanup navigation drawer * change dependencies for UI testing * add highlight filter * Add correct menu items * move design component out * move pre-commit out * move deps again * move js styles in * revert CI changes * remove unneeded exclution * changed placeholder user * refactored EditButton to component * refactored app loading to useEffect * moved color lookup into global scope * reafactored UserPanel render block * marked placeholder pages in doc links * made doc tooltip optional for MenuLink * changed MenuLinkItem names * fixes missing Link item in MenuLink * fixed merge error --------- Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
78 lines
2.2 KiB
YAML
78 lines
2.2 KiB
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
exclude: |
|
|
(?x)^(
|
|
InvenTree/InvenTree/static/.*|
|
|
InvenTree/locale/.*
|
|
)$
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: mixed-line-ending
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: '6.0.0'
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies: [
|
|
'flake8-bugbear',
|
|
'flake8-comprehensions',
|
|
'flake8-docstrings',
|
|
'flake8-string-format',
|
|
'flake8-tidy-imports',
|
|
'pep8-naming'
|
|
]
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: '5.12.0'
|
|
hooks:
|
|
- id: isort
|
|
- repo: https://github.com/jazzband/pip-tools
|
|
rev: 6.13.0
|
|
hooks:
|
|
- id: pip-compile
|
|
name: pip-compile requirements-dev.in
|
|
args: [requirements-dev.in, -o, requirements-dev.txt]
|
|
files: ^requirements-dev\.(in|txt)$
|
|
- id: pip-compile
|
|
name: pip-compile requirements.txt
|
|
args: [requirements.in, -o, requirements.txt]
|
|
files: ^requirements\.(in|txt)$
|
|
- repo: https://github.com/Riverside-Healthcare/djLint
|
|
rev: v1.30.2
|
|
hooks:
|
|
- id: djlint-django
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.2.4
|
|
hooks:
|
|
- id: codespell
|
|
exclude: >
|
|
(?x)^(
|
|
docs/docs/stylesheets/.*|
|
|
docs/docs/javascripts/.*|
|
|
docs/docs/webfonts/.* |
|
|
src/frontend/src/locales/.* |
|
|
)$
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: "v3.0.0-alpha.9-for-vscode"
|
|
hooks:
|
|
- id: prettier
|
|
files: ^src/frontend/.*\.(js|jsx|ts|tsx)$
|
|
additional_dependencies:
|
|
- "prettier@^2.4.1"
|
|
- "@trivago/prettier-plugin-sort-imports"
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
rev: "v8.42.0"
|
|
hooks:
|
|
- id: eslint
|
|
additional_dependencies:
|
|
- eslint@^8.41.0
|
|
- eslint-config-google@^0.14.0
|
|
- eslint-plugin-react@6.10.3
|
|
- babel-eslint@6.1.2
|
|
- "@typescript-eslint/eslint-plugin@latest"
|
|
- "@typescript-eslint/parser"
|
|
files: ^src/frontend/.*\.(js|jsx|ts|tsx)$
|