Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predev #719

Open
wants to merge 189 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
5f0373b
chore: updating
Kostyanaya Jul 5, 2023
c75bed5
Merge branch 'predev' into expo_updating
Kostyanaya Jul 5, 2023
1836b75
chore: libs updating (expo 48)
Kostyanaya Jul 6, 2023
953a013
chore: expo udating
Kostyanaya Jul 14, 2023
bcaf16e
Merge branch 'predev' into expo_updating
Kostyanaya Jul 14, 2023
fba9978
chore: react-native-paper and libs update
Kostyanaya Jul 17, 2023
43ec8b3
chore: yup update
Kostyanaya Jul 17, 2023
376dca0
chore: server libs update
ilonaand Jul 19, 2023
b8cdc76
chore: libs update
Kostyanaya Jul 19, 2023
0dad4f3
Merge branch 'server_expo_updating' into expo_updating
Kostyanaya Jul 19, 2023
98fb724
Merge branch 'predev' into expo_updating
Kostyanaya Jul 20, 2023
70bde64
chore: grid #678
Daniil-com Aug 22, 2023
b46d5a9
chore: #687 loading serverLog
Daniil-com Aug 23, 2023
71813d4
chore: updating
Kostyanaya Aug 25, 2023
6732f6f
chore: eslint
sunnycreature Aug 25, 2023
5dd1778
Merge branch 'predev' into expo_selectors
sunnycreature Aug 25, 2023
6b08b14
chore: eslint
sunnycreature Aug 25, 2023
7245724
chore: visible Password
Daniil-com Aug 28, 2023
c60c6ab
chore: new selectors in store
sunnycreature Aug 28, 2023
2077d91
Merge branch 'predev' into expo_updating
Kostyanaya Aug 31, 2023
d595f8f
chore: fix
sunnycreature Aug 31, 2023
cd6b6bc
chore: alert
Kostyanaya Aug 31, 2023
1d1620b
Merge branch 'expo_updating' into expo_selectors
sunnycreature Sep 6, 2023
706f369
chore: web-admin react 18, mui/styles, webpack
sunnycreature Sep 8, 2023
58b7f28
chore: add apiLevel 33
sunnycreature Sep 8, 2023
a6dc803
chore: @react-native-masked-view/masked-view
sunnycreature Sep 8, 2023
63f5032
Merge pull request #702 from stasgm/expo_selectors
sunnycreature Sep 8, 2023
3306372
chore: green update
sunnycreature Sep 10, 2023
8d9adca
chore: update orange, selectByDocType
sunnycreature Sep 11, 2023
947451f
chore: update libr, IconButton, selector
sunnycreature Sep 12, 2023
85acc7d
Merge branch 'cellular_store' into expo_selectors
sunnycreature Sep 12, 2023
3bda39b
Merge branch 'predev' into expo_selectors
sunnycreature Sep 12, 2023
e49dfd7
chore: axios
sunnycreature Sep 12, 2023
75806cd
chore: await in delete, useSettingsThunkDispatch
sunnycreature Sep 14, 2023
2f762d7
Merge branch 'predev' into expo_selectors
sunnycreature Sep 19, 2023
5a6bc3d
chore: add expo-build-properties for version 33
sunnycreature Sep 19, 2023
08ffb49
Merge branch 'expo_selectors' into expo_updating
Kostyanaya Oct 5, 2023
c2b8978
Merge branch 'predev' into expo_updating
Kostyanaya Oct 5, 2023
8d9b2ee
fix: delete overdue files from messages
ilonaand Oct 9, 2023
0ff3aed
chore: libs update
Kostyanaya Oct 11, 2023
c6af9fd
chore: expo-updates
Kostyanaya Oct 13, 2023
29b154c
Merge branch 'predev' into expo_updating
Kostyanaya Oct 13, 2023
af0aa99
fix: server libs upgrade
ilonaand Oct 13, 2023
3e339b1
Merge pull request #718 from stasgm/delete_docs_files
sunnycreature Oct 30, 2023
5e84d83
chore: update libs
Kostyanaya Oct 31, 2023
2bbe0a8
Merge branch 'expo_updating' of https://github.com/stasgm/gdmn-mob in…
Kostyanaya Oct 31, 2023
25b768d
Merge branch 'predev' into expo_updating
Kostyanaya Oct 31, 2023
be04067
chore: init when changed user
Oct 31, 2023
5284ef7
Merge branch 'predev' into visible-password
Daniil-com Oct 31, 2023
3af82e1
Merge branch 'predev' into web-grid2
Daniil-com Oct 31, 2023
91bff3c
chore: fix UserList
Daniil-com Oct 31, 2023
83d87df
Merge pull request #721 from stasgm/web-grid2
Daniil-com Oct 31, 2023
8ddccfe
Revert "Merge pull request #721 from stasgm/web-grid2"
Oct 31, 2023
a87ca6c
Merge branch 'predev' into old_selectors
Kostyanaya Nov 1, 2023
19d8ada
chore: agents new version
Kostyanaya Nov 3, 2023
6fb13dc
chore: visible-password fix
Daniil-com Nov 8, 2023
78a7265
chore: visible-password fix Registr/UserDetails
Daniil-com Nov 8, 2023
94f4a62
chore: packs in pallet
Kostyanaya Nov 9, 2023
26c866a
Merge pull request #720 from stasgm/visible-password
Kostyanaya Nov 9, 2023
08f0065
chore: web grid maxHeight with hooks
Daniil-com Nov 9, 2023
5d9284e
Merge branch 'predev' into web-grid2
Daniil-com Nov 9, 2023
ef4b2cd
chore: useWindowResizeMaxHeight
Nov 10, 2023
f09c86c
chore: grid maxHeight fix use function
Daniil-com Nov 13, 2023
134d29f
feat: filter in serverlogs
ilonaand Nov 15, 2023
b6adc50
chore: add images
Nov 16, 2023
df88aec
Update README.md
gsbelarus Nov 16, 2023
93f217f
Update README.md
gsbelarus Nov 16, 2023
13b1aa8
Update README.md
gsbelarus Nov 16, 2023
ee99cab
chore: search in serverLogs
Kostyanaya Nov 17, 2023
59ff82a
Merge pull request #730 from stasgm/server_logs
sunnycreature Nov 17, 2023
3532c98
chore: web-grid2 fix
Daniil-com Nov 17, 2023
5e50f25
chore: web-grig fix maxheight hooks
Daniil-com Nov 17, 2023
6b9d823
chore: web-grid fix
Daniil-com Nov 17, 2023
e44d29f
chore: web-grid2 fix2
Daniil-com Nov 17, 2023
4af6857
chore: add agent images
Nov 17, 2023
a59db6f
chore: add gd-movement images
Nov 17, 2023
9f1dd6f
Merge branch 'predev' into web-grid2
Nov 17, 2023
7632e0c
Merge pull request #725 from stasgm/web-grid2
sunnycreature Nov 17, 2023
6aa694d
Merge pull request #733 from stasgm/fp-docs
sunnycreature Nov 17, 2023
79a7891
chore: scheme in booklet
Nov 20, 2023
b86bbe3
Merge pull request #734 from stasgm/fp-docs
sunnycreature Nov 20, 2023
4247596
chore: change schemes
Nov 20, 2023
55a074a
Merge pull request #735 from stasgm/fp-docs
sunnycreature Nov 20, 2023
260bd2b
chore: saveError.ts
Nov 20, 2023
409754c
Merge pull request #736 from stasgm/fp-docs
sunnycreature Nov 20, 2023
381cfc7
chore: one position in fp-movement
Kostyanaya Nov 30, 2023
a013a3c
chore: lines in previous orders, editable depart
Kostyanaya Dec 7, 2023
a688bdd
chore: device name in ConfigScreen
Kostyanaya Dec 7, 2023
edf2b4a
chore: focus in gd-movement
Kostyanaya Dec 7, 2023
6a491e9
chore: lineItem, delete tempOrders, existing order
Kostyanaya Dec 7, 2023
92aaf81
chore: update libs
Kostyanaya Dec 12, 2023
cfb6bdc
fix: upgrade server libs
ilonaand Dec 13, 2023
21578d0
Merge branch 'predev' into old_selectors
Kostyanaya Dec 14, 2023
ac6cf99
Merge pull request #724 from stasgm/old_selectors
sunnycreature Dec 14, 2023
5e1c7f7
chore: add vscode settings
Dec 14, 2023
ed55654
chore: add version in docker
Dec 14, 2023
aefea01
chore: babel react
Dec 14, 2023
62b03cd
chore: yarn
Dec 15, 2023
0e0250b
chore: prettier
Dec 15, 2023
6fc5462
chore: typescript 4.6.4, ignore react-native in eslint
Dec 15, 2023
cfebf45
chore: copy docs
Dec 17, 2023
cdcebd5
chore: sentDate, revision
Dec 18, 2023
0b88593
Merge branch 'fp-movement_v.0.4.4-36' into old_selectors
Kostyanaya Dec 18, 2023
ff0af7a
chore: returned yarn.lock, ts 5.2.2
Dec 18, 2023
18ee8e2
chore: mobile-ui
Kostyanaya Dec 18, 2023
3a6bb47
chore: mobile-ui
Kostyanaya Dec 18, 2023
bd3db76
Merge remote-tracking branch 'origin/lint-mobile-ui' into returned-lock
Dec 18, 2023
bb3bf92
chore: mobile-ui
Dec 18, 2023
80d0eff
chore: lint mobile-navigation
Dec 18, 2023
27b2fc9
chore: lts-alpine3.19 in Dockerfile
Dec 18, 2023
f23690a
chore: yarn.lock
Dec 18, 2023
7f1b3c8
chore: babel
Dec 18, 2023
ce164be
Merge pull request #740 from stasgm/returned-lock
sunnycreature Dec 19, 2023
d496a07
Merge branch 'predev' into old_selectors
Kostyanaya Dec 19, 2023
000545e
chore: road in orders, limit in debts
Kostyanaya Dec 22, 2023
b41e517
chore: revisionDoc, sentDate in docs
Kostyanaya Dec 22, 2023
7bc5e28
chore: node version in eas build, revision
Kostyanaya Dec 27, 2023
070f731
chore: line with good in revision
Kostyanaya Dec 29, 2023
7936f9b
chore: lint
Kostyanaya Dec 29, 2023
eec1baa
chore: sendDate
Kostyanaya Jan 9, 2024
7b7dc2d
Merge pull request #742 from stasgm/old_selectors
sunnycreature Jan 9, 2024
fd1bc41
chore: upgrade @babel/traverse
Jan 10, 2024
8ea621f
chore: follow-redirects: "1.15.4"
Jan 10, 2024
5f3bc69
chore: v0.13.3-56, shipment in sales-representative
Kostyanaya Jan 22, 2024
48d9eea
Merge pull request #746 from stasgm/old_selectors
sunnycreature Jan 22, 2024
ca7ffb0
Merge pull request #747 from stasgm/upgrade-babel
sunnycreature Jan 22, 2024
c17cc67
chore: group in select, usesCleartextTraffic in agents
Jan 22, 2024
ed0c817
chore: erpCreationDate, address in orderView, last orders filter
Kostyanaya Jan 23, 2024
fd5613f
Merge branch 'predev' into old_selectors
Kostyanaya Jan 23, 2024
58ceb8a
chore: revision text
Jan 23, 2024
56c8221
chore: order dates in viewScreen, menu style
Kostyanaya Jan 23, 2024
0b710cb
Merge pull request #748 from stasgm/old_selectors
sunnycreature Jan 23, 2024
acfa4d3
chore: add disabled in profile while loading
Feb 1, 2024
2982f8f
chore: sent and erpCreation dates, prevOrders, style
Kostyanaya Feb 1, 2024
70a1e3b
Merge pull request #750 from stasgm/old_selectors
sunnycreature Feb 1, 2024
5f492ae
chore: auto saving
Kostyanaya Feb 13, 2024
010a264
chore: shipment, infoblock, remains in fp-movement, clean docs
Kostyanaya Feb 20, 2024
b655e26
chore: docs removing
Kostyanaya Feb 20, 2024
9190f8e
chore: year in infoScreen
Kostyanaya Feb 20, 2024
b1237b2
chore: clean docs
Kostyanaya Feb 20, 2024
7cde310
chore: clean docs 2
Kostyanaya Feb 20, 2024
e0bbfd8
chore: clean docs 3
Kostyanaya Feb 20, 2024
6040dc1
chore: base settings
Kostyanaya Feb 20, 2024
1f5809a
Merge pull request #752 from stasgm/old_selectors
sunnycreature Feb 20, 2024
74d679a
chore: dateInfo
Kostyanaya Feb 21, 2024
6a5b1db
Merge pull request #755 from stasgm/old_selectors
sunnycreature Feb 21, 2024
e4fc337
chore: dateInfo, remains in fp-movement
Kostyanaya Mar 4, 2024
1ef659e
chore: dateInfo, new apps versions
Kostyanaya Mar 4, 2024
b63454e
chore: new app GDMN Pallet
Kostyanaya Mar 4, 2024
6f04882
chore: delete lines
Mar 5, 2024
5a615d5
chore: app pallet
Mar 5, 2024
f4b0cbb
Merge pull request #756 from stasgm/old_selectors
sunnycreature Mar 5, 2024
d92eadb
chore: delete docs settings
Mar 5, 2024
5913ffd
chore: cleanDefaultDocTime
Mar 5, 2024
8ad582c
Merge pull request #757 from stasgm/old_selectors
sunnycreature Mar 5, 2024
94f8288
chore: edit pallet document
Kostyanaya Mar 25, 2024
728facd
Merge pull request #759 from stasgm/old_selectors
sunnycreature Mar 25, 2024
35df66d
chore: new pallet version
Kostyanaya Mar 25, 2024
b120ff6
Merge pull request #760 from stasgm/old_selectors
sunnycreature Mar 25, 2024
011d897
chore: total in PalletView
Kostyanaya Mar 29, 2024
b135fd3
chore: pallet version
Kostyanaya Mar 29, 2024
391616c
chore: viewTotal
Kostyanaya Mar 29, 2024
7cf2039
Merge pull request #762 from stasgm/old_selectors
sunnycreature Mar 29, 2024
59fdb5e
chore: box weight in pallet
Kostyanaya Apr 17, 2024
71f54ed
chore: pallet list
Kostyanaya Apr 17, 2024
4f5dd48
Merge pull request #763 from stasgm/old_selectors
sunnycreature Apr 17, 2024
6d9be52
chore: box weight
Kostyanaya Apr 17, 2024
fa4d43b
Merge pull request #764 from stasgm/old_selectors
sunnycreature Apr 17, 2024
d4fc621
chore: palletWeight, adding position sound
Kostyanaya May 21, 2024
6a9ba1b
chore: copy order, scale in lines, refused orders, debt request
Kostyanaya May 21, 2024
752cc56
chore: sum with nds
Kostyanaya May 21, 2024
19595e7
Merge pull request #766 from stasgm/old_selectors
sunnycreature May 21, 2024
cfb5fba
chore: gtin prefix, default department, sumWNds
Kostyanaya May 31, 2024
8ce1cd1
chore: app version
Kostyanaya May 31, 2024
5dba27b
Merge pull request #767 from stasgm/old_selectors
sunnycreature May 31, 2024
b71e711
Merge pull request #768 from stasgm/old_selectors
sunnycreature May 31, 2024
d7d0f88
chore: sumWNds
Kostyanaya Jun 10, 2024
b5838d2
Merge pull request #769 from stasgm/old_selectors
sunnycreature Jun 10, 2024
7740178
chore: prefix gtin
Jun 25, 2024
f1b6d03
chore: gd-movement version
Jun 25, 2024
8e49825
Merge pull request #770 from stasgm/old_selectors
sunnycreature Jun 25, 2024
cb16aee
chore: add gd-movement readme.pdf
Jul 29, 2024
e3cd94a
chore: editScreen
Kostyanaya Nov 21, 2024
d864037
Merge pull request #778 from stasgm/gd-movement-fix
Kostyanaya Nov 21, 2024
269f4ed
chore: good settings
Kostyanaya Dec 18, 2024
f35f0db
Merge pull request #780 from stasgm/gd-movement-fix
Kostyanaya Dec 18, 2024
760aa60
Add files via upload
sunnycreature Dec 30, 2024
db305f5
Update toCloud.md
sunnycreature Dec 30, 2024
38acad0
Update toCloud.md
sunnycreature Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.packageManager": "yarn",
"npm.packageManager": "yarn",
}
4 changes: 2 additions & 2 deletions apps/app-bc-movement/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
AppFallback,
} from '@lib/mobile-ui';

import { ActivityIndicator, Caption, useTheme } from 'react-native-paper';
import { ActivityIndicator, Caption, useTheme, MD2Theme } from 'react-native-paper';

import { sleep } from '@lib/mobile-hooks';

Expand All @@ -50,7 +50,7 @@ const Root = () => {
);

const dispatch = useDispatch();
const { colors } = useTheme();
const { colors } = useTheme<MD2Theme>();

const isInit = useSelector((state) => state.settings.isInit);
const authLoading = useSelector((state) => state.auth.loadingData);
Expand Down
14 changes: 13 additions & 1 deletion apps/app-bc-movement/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@
},
"web": {
"favicon": "./assets/favicon.png"
}
},
"plugins": [
[
"expo-build-properties",
{
"android": {
"compileSdkVersion": 33,
"targetSdkVersion": 33,
"buildToolsVersion": "33.0.0"
}
}
]
]
}
}
2 changes: 1 addition & 1 deletion apps/app-bc-movement/eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"buildType": "apk"
}
},
"production": {"node": "16.14.0"}
"production": {"node": "18.14.0"}
}
}
81 changes: 44 additions & 37 deletions apps/app-bc-movement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@expo/react-native-action-sheet": "^4.0.1",
"@expo/vector-icons": "^13.0.0",
"@gorhom/bottom-sheet": "^4.4.5",
"@gorhom/bottom-sheet": "^4.5.1",
"@lib/client-types": "*",
"@lib/mobile-app": "*",
"@lib/mobile-auth": "*",
Expand All @@ -35,56 +35,63 @@
"@lib/mobile-ui": "*",
"@lib/store": "*",
"@lib/types": "*",
"@react-native-community/datetimepicker": "6.5.2",
"@react-native-community/masked-view": "0.1.11",
"@react-native-community/netinfo": "9.3.5",
"@react-navigation/bottom-tabs": "^6.5.4",
"@react-navigation/drawer": "^6.5.8",
"@react-navigation/material-bottom-tabs": "^6.2.12",
"@react-navigation/native": "^6.1.3",
"@react-navigation/stack": "^6.3.12",
"@types/react-test-renderer": "^18.0.0",
"expo": "^47.0.13",
"expo-asset": "~8.7.0",
"expo-barcode-scanner": "~12.1.0",
"expo-camera": "~13.1.0",
"expo-constants": "~14.0.2",
"expo-font": "~11.0.1",
"expo-status-bar": "~1.4.2",
"expo-updates": "~0.15.6",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.8",
"@react-native-community/datetimepicker": "7.2.0",
"@react-native-community/netinfo": "9.3.10",
"@react-native-masked-view/masked-view": "0.2.9",
"@react-navigation/bottom-tabs": "^6.5.11",
"@react-navigation/drawer": "^6.6.6",
"@react-navigation/material-bottom-tabs": "^6.2.19",
"@react-navigation/native": "^6.1.9",
"@react-navigation/stack": "^6.3.20",
"@types/react-test-renderer": "^18.0.7",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"expo": "^49.0.21",
"expo-asset": "~8.10.1",
"expo-barcode-scanner": "~12.5.3",
"expo-build-properties": "^0.8.3",
"expo-camera": "~13.4.4",
"expo-constants": "~14.4.2",
"expo-font": "~11.4.0",
"expo-status-bar": "~1.6.0",
"expo-updates": "~0.18.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.72.10",
"react-native-error-boundary": "^1.2.1",
"react-native-gesture-handler": "~2.8.0",
"react-native-paper": "4.12.5",
"react-native-reanimated": "~2.12.0",
"react-native-safe-area-context": "^4.4.1",
"react-native-screens": "~3.18.2",
"react-native-web": "~0.18.12",
"react-navigation-stack": "^2.10.4",
"react-redux": "^8.0.5",
"react-native-gesture-handler": "~2.12.1",
"react-native-paper": "5.10.6",
"react-native-reanimated": "~3.3.0",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"react-native-vector-icons": "^10.0.0",
"react-native-web": "~0.19.9",
"react-redux": "^8.1.3",
"react-test-renderer": "^18.2.0",
"redux": "^4.2.1",
"redux-thunk": "^2.4.2",
"reselect": "~4.1.7",
"typesafe-actions": "^5.1.0"
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/core": "^7.22.17",
"@babel/plugin-transform-arrow-functions": "^7.23.3",
"@babel/plugin-transform-shorthand-properties": "^7.23.3",
"@babel/plugin-transform-template-literals": "^7.23.3",
"@babel/preset-env": "^7.22.15",
"@config/eslint-config": "*",
"@config/eslint-config-react": "*",
"@config/eslint-config-react-native": "*",
"@config/prettier-config": "*",
"@expo/webpack-config": "^0.17.3",
"@types/node": "^18.11.19",
"@types/react": "~18.0.25",
"@types/react-native": "0.70.8",
"babel-preset-expo": "~9.2.2",
"metro-react-native-babel-preset": "^0.73.3",
"@expo/webpack-config": "^19.0.0",
"@types/node": "^20.8.4",
"@types/react": "~18.2.43",
"babel-preset-expo": "~9.5.2",
"metro-react-native-babel-preset": "^0.76.0",
"reactotron-react-native": "^5.0.3",
"reactotron-core-client": "^2.8.11",
"reactotron-redux": "^3.1.3",
"redux-logger": "^3.0.6",
"typescript": "~4.8.4"
"typescript": "^5.2.2"
}
}
4 changes: 2 additions & 2 deletions apps/app-bc-movement/src/components/MovementItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { View, Text } from 'react-native';
import { useTheme } from 'react-native-paper';
import { MD2Theme, useTheme } from 'react-native-paper';
import { MaterialCommunityIcons } from '@expo/vector-icons';

import { globalStyles as styles } from '@lib/mobile-ui';
Expand All @@ -12,7 +12,7 @@ interface IProps {
}

export const MovementItem = ({ item }: IProps) => {
const { colors } = useTheme();
const { colors } = useTheme<MD2Theme>();

return (
<View style={styles.item}>
Expand Down
19 changes: 9 additions & 10 deletions apps/app-bc-movement/src/components/ScanBarcode/ScanBarcode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
import { View, TouchableOpacity, Vibration, Text } from 'react-native';
import { IconButton } from 'react-native-paper';
import { BarCodeScanner } from 'expo-barcode-scanner';
import { Camera } from 'expo-camera';
import { AutoFocus, Camera, FlashMode } from 'expo-camera';

import { useIsFocused, useTheme } from '@react-navigation/native';

Expand Down Expand Up @@ -76,25 +76,24 @@ const ScanBarcode = ({ onSave, getScannedObject }: IProps) => {
return isFocused ? (
<View style={[styles.content]}>
<Camera
flashMode={flashMode ? Camera.Constants.FlashMode.torch : Camera.Constants.FlashMode.off}
flashMode={flashMode ? FlashMode.torch : FlashMode.off}
barCodeScannerSettings={{
barCodeTypes: [BarCodeScanner.Constants.BarCodeType.ean13, BarCodeScanner.Constants.BarCodeType.ean8],
}}
autoFocus="on"
whiteBalance="auto"
autoFocus={AutoFocus.on}
onBarCodeScanned={({ data }: { data: string }) => !scanned && handleBarCodeScanned(data)}
style={[styles.camera, { backgroundColor: colors.card }]}
>
<View style={styles.header}>
<IconButton
icon={flashMode ? 'flash' : 'flash-off'}
color={'#FFF'}
iconColor={'#FFF'}
style={styles.transparent}
onPress={() => setFlashMode(!flashMode)}
/>
<IconButton
icon={vibroMode ? 'vibrate' : 'vibrate-off'}
color={'#FFF'}
iconColor={'#FFF'}
style={styles.transparent}
onPress={() => setVibroMode(!vibroMode)}
/>
Expand Down Expand Up @@ -122,14 +121,14 @@ const ScanBarcode = ({ onSave, getScannedObject }: IProps) => {
setItemLine(undefined);
}}
>
<IconButton icon="barcode-scan" color={'#FFF'} size={30} />
<IconButton icon="barcode-scan" iconColor={'#FFF'} size={30} />
<Text style={styles.text}>Пересканировать</Text>
</TouchableOpacity>
</View>
{scanned && itemLine?.barcode === '-1' && (
<View style={styles.infoContainer}>
<View style={[styles.buttons, styles.btnNotFind]}>
<IconButton icon={'information-outline'} color={'#FFF'} size={30} />
<IconButton icon={'information-outline'} iconColor={'#FFF'} size={30} />
<View>
<Text style={styles.error}>{'Данный штрихкод уже существует'}</Text>
</View>
Expand All @@ -146,7 +145,7 @@ const ScanBarcode = ({ onSave, getScannedObject }: IProps) => {
setItemLine(undefined);
}}
>
<IconButton icon={'checkbox-marked-circle-outline'} color={'#FFF'} size={30} />
<IconButton icon={'checkbox-marked-circle-outline'} iconColor={'#FFF'} size={30} />
<View>
<Text style={styles.text}>{barcode}</Text>
</View>
Expand All @@ -158,7 +157,7 @@ const ScanBarcode = ({ onSave, getScannedObject }: IProps) => {
{!scanned && (
<View style={styles.footer}>
<>
<IconButton icon={'barcode-scan'} color={'#FFF'} size={40} />
<IconButton icon={'barcode-scan'} iconColor={'#FFF'} size={40} />
<Text style={styles.text}>Наведите рамку на штрихкод</Text>
</>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ export const ScanBarcodeReader = ({ onSave, getScannedObject }: IProps) => {
setItemLine(undefined);
}}
>
<IconButton icon="barcode-scan" color={'#FFF'} size={30} />
<IconButton icon="barcode-scan" iconColor={'#FFF'} size={30} />
<Text style={styles.text}>Пересканировать</Text>
</TouchableOpacity>
</View>
{scanned && itemLine?.barcode === '-1' && (
<View style={styles.infoContainer}>
<View style={[styles.buttons, styles.btnNotFind]}>
<IconButton icon={'information-outline'} color={'#FFF'} size={30} />
<IconButton icon={'information-outline'} iconColor={'#FFF'} size={30} />
<View>
<Text style={styles.error}>{'Данный штрихкод уже существует'}</Text>
</View>
Expand All @@ -141,7 +141,7 @@ export const ScanBarcodeReader = ({ onSave, getScannedObject }: IProps) => {
setItemLine(undefined);
}}
>
<IconButton icon={'checkbox-marked-circle-outline'} color={'#FFF'} size={30} />
<IconButton icon={'checkbox-marked-circle-outline'} iconColor={'#FFF'} size={30} />
<View>
<Text style={styles.text}>{barcode}</Text>
</View>
Expand All @@ -153,7 +153,7 @@ export const ScanBarcodeReader = ({ onSave, getScannedObject }: IProps) => {
{!scanned && (
<View style={styles.footer}>
<>
<IconButton icon={'barcode-scan'} color={'#FFF'} size={40} />
<IconButton icon={'barcode-scan'} iconColor={'#FFF'} size={40} />
<Text style={styles.text}>Отсканируйте штрихкод</Text>
</>
</View>
Expand Down
4 changes: 2 additions & 2 deletions apps/app-bc-movement/src/components/SelectRefItemScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect, useCallback, useLayoutEffect, useMemo } from 'react';
import { View, FlatList, Alert, TouchableOpacity, Text } from 'react-native';
import { Searchbar, Divider, useTheme, Checkbox } from 'react-native-paper';
import { Searchbar, Divider, useTheme, Checkbox, MD2Theme } from 'react-native-paper';
import { RouteProp, useNavigation, useRoute, useScrollToTop } from '@react-navigation/native';
import { INamedEntity } from '@lib/types';
import { appActions, IFormParam, refSelectors, useSelector } from '@lib/store';
Expand Down Expand Up @@ -157,7 +157,7 @@ export const SelectRefItemScreen = () => {

const LineItem = React.memo(
({ item, isChecked, onCheck }: { item: INamedEntity; isChecked: boolean; onCheck: (id: INamedEntity) => void }) => {
const { colors } = useTheme();
const { colors } = useTheme<MD2Theme>();

return (
<TouchableOpacity onPress={() => onCheck(item)}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const MovementEditScreen = () => {

const handleSave = useCallback(() => {
if (!docType) {
return Alert.alert('Ошибка!', 'Тип документа "Инвентаризация" не найден', [{ text: 'OK' }]);
return Alert.alert('Ошибка!', 'Тип документа "Инвентаризация" не найден.', [{ text: 'OK' }]);
}
if (!(docNumber && docFromPlace && docToPlace && docDate)) {
return Alert.alert('Ошибка!', 'Не все поля заполнены.', [{ text: 'OK' }]);
Expand Down
10 changes: 5 additions & 5 deletions apps/app-bc-movement/src/screens/movement/MovementListScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ export const MovementListScreen = () => {
status === 'all'
? list
: status === 'active'
? list.filter((e) => e.status !== 'PROCESSED')
: status === 'archive'
? list.filter((e) => e.status === 'PROCESSED')
: [];
? list.filter((e) => e.status !== 'PROCESSED')
: status === 'archive'
? list.filter((e) => e.status === 'PROCESSED')
: [];

return res.map(
(i) =>
Expand All @@ -66,7 +66,7 @@ export const MovementListScreen = () => {
isFromRoute: !!i.head.route,
lineCount: i.lines.length,
errorMessage: i.errorMessage,
} as IListItemProps),
}) as IListItemProps,
);
}, [status, list]);

Expand Down
1 change: 1 addition & 0 deletions apps/app-fp-movement/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ module.exports = {
project: ['./tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
},
ignorePatterns: ['node_modules/'],
};
13 changes: 6 additions & 7 deletions apps/app-fp-movement/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
useDocThunkDispatch,
useRefThunkDispatch,
useSelector,
useSettingsThunkDispatch,
} from '@lib/store';
import {
AppScreen,
Expand All @@ -37,8 +38,6 @@ import { TouchableOpacity, Linking, ScrollView, View } from 'react-native';

import Constants from 'expo-constants';

import { useSettingsThunkDispatch } from '@lib/store/src/settings/actions.async';

import { MoveNavigator } from './src/navigation/MoveNavigator';

import { store, useSelector as useFpSelector, fpMovementActions, useDispatch as useFpDispatch } from './src/store';
Expand Down Expand Up @@ -233,10 +232,10 @@ const Root = () => {
component: RemainsNavigator,
},
{
name: 'Return',
title: 'Возврат',
icon: 'file-restore-outline',
component: ReturnNavigator,
name: 'Receipt',
title: 'Приход',
icon: 'file-document-outline',
component: ReceiptNavigator,
showInDashboard: true,
sortNumber: 60,
},
Expand Down Expand Up @@ -448,7 +447,7 @@ const Root = () => {
) : infoWindow === 3 ? (
<AppScreen>
<Text style={styles.textInfo}>{'Подробную информацию об использовании приложения вы найдете в '}</Text>
<TouchableOpacity onPress={() => Linking.openURL(Constants.manifest?.extra?.documentationUrl)}>
<TouchableOpacity onPress={() => Linking.openURL(Constants.expoConfig?.extra?.documentationUrl)}>
<Text style={[styles.textInfo, styles.textDecorationLine]}>{'документации.'}</Text>
</TouchableOpacity>
<Text style={styles.textInfo}>
Expand Down
Loading
Loading