2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 13:36:50 +00:00

136 Commits

Author SHA1 Message Date
Oliver Walters
33bb6148de Cleanup for API error handling
Ref: https://stackoverflow.com/questions/54617432/looking-up-a-deactivated-widgets-ancestor-is-unsafe
2021-02-09 21:38:50 +11:00
Oliver Walters
90072904a0 String translations 2021-02-09 20:31:55 +11:00
Oliver Walters
4080b4177b Refactoring / fixing 2021-02-09 19:40:31 +11:00
Oliver Walters
7373805ea7 Refactor API connection code 2021-02-09 14:16:31 +11:00
Oliver Walters
d5649af2f9 Server login now references the UserProfile class 2021-02-08 22:03:14 +11:00
Oliver Walters
b34a91b865 UserProfile 2021-02-08 20:32:49 +11:00
Oliver Walters
b69762ff15 API refactoring:
- Error if the server version is *older* than the min required version
- Display dialog boxes for different server errors
2021-02-02 20:37:54 +11:00
Oliver Walters
3096a6d25f Stuff:
- Specify image size in list view
- Move "edit" button to app bar
- Display part keywords
- Allow editing of part keywords
2021-01-21 20:53:49 +11:00
Oliver Walters
b4710b56e3 Fix network cache images
- Changed from using flutter_advanced_networkimage to cached_network_image
- flutter_advanced_networkimage is now outdated
- cached_network_image is the pseudo official library
2021-01-20 22:35:44 +11:00
Oliver Walters
aad616aea1 Add framework for future self to check server compatibility 2020-05-25 22:46:01 +10:00
Oliver Walters
54f045afd8 Upload test result - now with ability to attach a file! 2020-05-25 22:26:29 +10:00
Oliver Walters
7bfc26b5a0 Function to upload file via API 2020-05-25 22:21:45 +10:00
Oliver Walters
16cdae42ed Add ability to edit Part object 2020-04-18 23:18:53 +10:00
Oliver Walters
51a877e8d7 Update API function to grab user token
- https://github.com/inventree/InvenTree/pull/735
2020-04-18 12:14:08 +10:00
Oliver Walters
e04dadcd2f Add better error handling for API 2020-04-16 17:43:49 +10:00
Oliver Walters
5a9dead4e6 Add notes field to stock actions 2020-04-10 00:10:39 +10:00
Oliver Walters
4cafa668a5 Perform "addstock" action 2020-04-09 22:56:28 +10:00
Oliver Walters
37cdf23ae1 Add a connection checker 2020-04-06 22:33:38 +10:00
Oliver Walters
0e35c370ba Report server instance name 2020-04-06 22:19:43 +10:00
Oliver Walters
06446998b2 Improve API image fetcher 2020-04-05 15:00:05 +10:00
Oliver Walters
1d1bdb1a4b Display part image in stock list 2020-04-05 01:10:31 +11:00
Oliver Walters
8450d0cb22 Record InvenTree server version in the API 2020-04-05 00:38:47 +11:00
Oliver Walters
cd4731833d Driving the refactor tractor
- InvenTreeAPI() object now has a method to return a cache-backed image from the server
2020-04-05 00:34:08 +11:00
Oliver Walters
528215455d Display part thumbnail in part list 2020-04-05 00:27:54 +11:00
Oliver Walters
d536174fb9 API url management improvements 2020-04-04 14:57:27 +11:00
Oliver Walters
df5a187a5e API cleanup
- Better URL accessors
2020-04-04 14:19:46 +11:00
Oliver Walters
055cc37e68 API improvements
- Simple function connect() which loads saves settings from preferences file
2020-04-04 13:43:29 +11:00
Oliver Walters
ee7ab5308e server / username / password now saved to local preferences 2020-04-03 14:25:28 +11:00
Oliver Walters
0ee1dedd45 Connection now works properly! yay!
Nested asyncs are hard ya'll
2020-03-31 23:35:23 +11:00
Oliver Walters
83fc4b407d Work on improving async calls
- Still don't fully grok them
2020-03-31 23:07:31 +11:00
Oliver Walters
ef09b024e6 Add InvenTreeObject class for getting API data 2020-03-31 00:05:54 +11:00
Oliver Walters
3da5adca28 GET request now can be provided with query parameters, and works OK 2020-03-29 13:05:11 +11:00
Oliver Walters
4da4731fb2 API improvements
- Catch more errors
- Use username/password data if token has not been received
2020-03-29 12:44:36 +11:00
Oliver Walters
b71c665453 Better use of async functions for API
- Use local_preferences for storing data
2019-06-26 00:07:18 +10:00
Oliver Walters
6e807cbed1 Make the API a singleton class
Also add some simple URL validation
2019-06-25 22:38:11 +10:00
Oliver Walters
3258903745 Add API class
- Secure token based on username/password
2019-06-25 00:40:03 +10:00