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

feat/api-error-handling #53

Open
wants to merge 314 commits into
base: feat/api-error-handling
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
314 commits
Select commit Hold shift + click to select a range
fc2ae0f
adding null check
monicakochofar Sep 11, 2023
a24768c
moving google api call to store
monicakochofar Sep 11, 2023
1c6af1f
updating formatting
monicakochofar Sep 11, 2023
716b8e2
making filters collapsible
monicakochofar Sep 11, 2023
4e491a7
renaming variables for clarity
monicakochofar Sep 11, 2023
2dc06b2
organizing code
monicakochofar Sep 11, 2023
af730ee
organizing code
monicakochofar Sep 11, 2023
7663edf
updating start and end point and updating generic bin icon
monicakochofar Sep 11, 2023
9128888
removing draggable for now and adding over 25 bin error message
monicakochofar Sep 11, 2023
345cc09
resolved python versionand requirements conflicts
YaokunLin Sep 12, 2023
992528d
cleaned up
YaokunLin Sep 12, 2023
162df78
cleaned up
YaokunLin Sep 12, 2023
e30242d
cleaned up
YaokunLin Sep 12, 2023
21b5e9e
adding count
monicakochofar Sep 12, 2023
1390317
fixing bug with enable find route
monicakochofar Sep 12, 2023
b0c651a
adding loading symbol:
monicakochofar Sep 12, 2023
81414b4
adding comments
monicakochofar Sep 12, 2023
2af062e
adding loading symbol for gapi
monicakochofar Sep 12, 2023
b1e065e
updating remove bin to also trigger goog maps api to get updated timing
monicakochofar Sep 12, 2023
4bcc286
Merge pull request #63 from button-inc/monica-vue-app-generate
monicakochofar Sep 12, 2023
9edea1b
adding mobile support
monicakochofar Sep 12, 2023
933af3d
Merge pull request #64 from button-inc/monica-vue-app-debug
monicakochofar Sep 12, 2023
1b9c5e8
adding back draggable route and making goog api calls when route is d…
monicakochofar Sep 12, 2023
3b691ae
addressed comments
YaokunLin Sep 13, 2023
00ae88d
adding some null checks to popup
monicakochofar Sep 13, 2023
9167657
Merge branch 'develop' of https://github.com/button-inc/iot-system-pr…
YaokunLin Sep 13, 2023
e24f842
Merge pull request #58 from button-inc/email-notify
YaokunLin Sep 13, 2023
e832524
updating end point to be further away so that markers are a little apart
monicakochofar Sep 13, 2023
960904f
updating end point to be further away so that markers are a little apart
monicakochofar Sep 13, 2023
a539083
renaming variables
monicakochofar Sep 13, 2023
cbe15df
cleaning up
monicakochofar Sep 13, 2023
7239610
Merge pull request #65 from button-inc/monica-vue-app-drag
monicakochofar Sep 13, 2023
0e68e39
adding maze vendor script to head tag
monicakochofar Sep 14, 2023
a8f9bc5
Merge pull request #67 from button-inc/monica-vue-app-maze
monicakochofar Sep 14, 2023
89b0772
optimized-routes-backend
YaokunLin Sep 13, 2023
cfb3686
added is_to_get_optimized_indices
YaokunLin Sep 14, 2023
6cfd58b
Merge branch 'develop' of https://github.com/button-inc/iot-system-pr…
YaokunLin Sep 14, 2023
121fc7e
broght it to the frontend
YaokunLin Sep 14, 2023
d21c0a9
guardrail
YaokunLin Sep 14, 2023
ba67230
make it async
YaokunLin Sep 14, 2023
7e110bc
wrapping map markers with null checks
monicakochofar Sep 14, 2023
e01ec28
showing map even if no bins
monicakochofar Sep 14, 2023
a2aae15
updating null check
monicakochofar Sep 14, 2023
26a1608
added noted
YaokunLin Sep 14, 2023
d361099
moving maze snippet to outside javascript file
monicakochofar Sep 14, 2023
4a82961
Merge pull request #68 from button-inc/monica-vue-app-debugmarker
monicakochofar Sep 14, 2023
410a81c
creating and testing pointaddressfield component
monicakochofar Sep 14, 2023
f3458f5
moving maze snippet back inside js file
monicakochofar Sep 14, 2023
ab0cdba
setting up modal and form
monicakochofar Sep 14, 2023
eef9341
updating css
monicakochofar Sep 14, 2023
404a182
adding address success behaviour
monicakochofar Sep 14, 2023
b599ed5
updating to use start and end point from dropdown
monicakochofar Sep 15, 2023
2a279dd
refectored
YaokunLin Sep 15, 2023
b249621
default to_optimize
YaokunLin Sep 15, 2023
eec8ed0
adding error message
monicakochofar Sep 15, 2023
f8f3f1d
small bugfix
monicakochofar Sep 15, 2023
6fc2252
Merge branch 'develop' of https://github.com/button-inc/iot-system-pr…
YaokunLin Sep 15, 2023
b5804cf
Merge pull request #70 from button-inc/monica-vue-app-start
monicakochofar Sep 15, 2023
9ac35a6
refactored
YaokunLin Sep 15, 2023
c539038
cleaned up
YaokunLin Sep 15, 2023
a4fe505
cleaned up
YaokunLin Sep 15, 2023
be5e553
disable alerts on dvelop
YaokunLin Sep 15, 2023
c4b4f94
Merge branch 'develop' of https://github.com/button-inc/iot-system-pr…
YaokunLin Sep 15, 2023
34335ab
fixing small issue with filter count for when user clears a filter
monicakochofar Sep 15, 2023
a290821
Merge pull request #71 from button-inc/monica-vue-app-bug
monicakochofar Sep 18, 2023
aa59b1b
removing maze snippet
monicakochofar Sep 18, 2023
08d1d65
adding fake door menu
monicakochofar Sep 18, 2023
962816d
append app readme
monicakochofar Sep 18, 2023
40bb478
Merge pull request #72 from button-inc/monica-vue-app-menu
monicakochofar Sep 18, 2023
2fa7e3d
add blank line EOF
YaokunLin Sep 19, 2023
52772ef
Merge branch 'develop' of https://github.com/button-inc/iot-system-pr…
YaokunLin Sep 19, 2023
2209b19
Merge pull request #66 from button-inc/optimized-routes-backend
YaokunLin Sep 19, 2023
f94e8a1
updated deploy.sh
YaokunLin Sep 19, 2023
483e819
Merge pull request #74 from button-inc/updated-deploy.sh
YaokunLin Sep 19, 2023
a9d518a
adding npm install command to deploy script for frontend
monicakochofar Sep 18, 2023
f340ab7
updating readme
monicakochofar Sep 18, 2023
e9254ee
updating readme
monicakochofar Sep 18, 2023
faa7867
updating readme
monicakochofar Sep 18, 2023
a71ff13
adding newline at end of file
monicakochofar Sep 19, 2023
d959cf1
Merge pull request #73 from button-inc/monica-vue-app-deploy-script
monicakochofar Sep 19, 2023
83bd3f3
chore: modified layout of popover
BallardRobinett Sep 19, 2023
8666d9d
removed-suha-off-email-list
YaokunLin Sep 19, 2023
3e6a207
Merge pull request #76 from button-inc/removed-suha-off-email-list
YaokunLin Sep 19, 2023
3f5af77
chore: add the new Google sheets data for Mississauga data
mikevespi Sep 15, 2023
feb1ff0
chore: lint
mikevespi Sep 15, 2023
69eeee2
chore: update fields in brighter bins sensors to match form
mikevespi Sep 17, 2023
9acd162
chore: fetch tekelek asset data from sheets
mikevespi Sep 18, 2023
3ee7709
Merge pull request #69 from button-inc/chore/use-new-onboarding-form
mikevespi Sep 19, 2023
e6d776b
Merge pull request #77 from button-inc/186015401-popover-ui-adjustment
BallardRobinett Sep 19, 2023
c79544b
telus-ui
YaokunLin Sep 20, 2023
730c951
adding distance and duration to export
monicakochofar Sep 18, 2023
4bde376
adding comments
monicakochofar Sep 19, 2023
997170d
updating column name
monicakochofar Sep 19, 2023
705ff59
removing comment
monicakochofar Sep 19, 2023
90573b3
accounting for null error and bug with group export
monicakochofar Sep 19, 2023
2917cce
Merge pull request #75 from button-inc/monica-vue-app-exporting
monicakochofar Sep 20, 2023
df7bb83
adjusted slider thickness
YaokunLin Sep 20, 2023
c3d2173
updated result text
YaokunLin Sep 20, 2023
a078af4
create route
YaokunLin Sep 20, 2023
f48d610
telus ui object
YaokunLin Sep 20, 2023
a8a12fe
re-arranged order
YaokunLin Sep 20, 2023
a638728
find route btn
YaokunLin Sep 20, 2023
b01f08a
map updated
YaokunLin Sep 20, 2023
86c689d
telus purple
YaokunLin Sep 20, 2023
f3b2c59
filter text
YaokunLin Sep 21, 2023
5397a55
resolved conflicts
YaokunLin Sep 21, 2023
caaa57b
removing unecessary scrollbars
monicakochofar Sep 21, 2023
cad6af4
removing unecessary scrollbars
monicakochofar Sep 21, 2023
8cea9e6
brought telus asset
YaokunLin Sep 21, 2023
ea9f255
updated telus asset
YaokunLin Sep 21, 2023
1e8fd7c
logo hide when draw not open
YaokunLin Sep 21, 2023
a027cb6
brought wavsmart icon
YaokunLin Sep 21, 2023
1f5f3da
border radius
YaokunLin Sep 21, 2023
c979757
Merge pull request #80 from button-inc/mk-bug-windows
monicakochofar Sep 21, 2023
b0316e6
small fix for using wrong generic material image path
monicakochofar Sep 21, 2023
566e551
Merge pull request #81 from button-inc/mk-genericmat-fix
monicakochofar Sep 21, 2023
e7fedea
chore: remove SS and rfs from the code base
mikevespi Sep 21, 2023
93c4ff4
updating browser tab
monicakochofar Sep 21, 2023
7ed7b14
Merge pull request #79 from button-inc/mk-browsertab
monicakochofar Sep 21, 2023
b6cf8fa
Merge pull request #83 from button-inc/chore/remove-rfs-and-ss
mikevespi Sep 21, 2023
e21b2a9
allowing existing font to work
monicakochofar Sep 21, 2023
be90e21
adding comment
monicakochofar Sep 21, 2023
ca76244
adding back fonts folder
monicakochofar Sep 21, 2023
be705b2
small fix
monicakochofar Sep 21, 2023
eeadc00
moving css for html tag to base scss
monicakochofar Sep 21, 2023
5c0cdd1
cleaning up index
monicakochofar Sep 21, 2023
2b6b208
Merge pull request #82 from button-inc/mk-font-fix
monicakochofar Sep 21, 2023
586759d
updating map marker ui to allow add to routes button to stretch across
monicakochofar Sep 21, 2023
bb62415
removing commented code
monicakochofar Sep 21, 2023
3197ce6
using new address fields
monicakochofar Sep 21, 2023
151fd3d
adding missing address lines to route block
monicakochofar Sep 21, 2023
5c23ecc
cleaned up
YaokunLin Sep 21, 2023
3c402aa
rounded border
YaokunLin Sep 21, 2023
3092372
abs from bottom
YaokunLin Sep 21, 2023
c8cd3f8
notification red dot
YaokunLin Sep 21, 2023
2cbfa6c
Merge branch 'develop' of https://github.com/button-inc/iot-system-pr…
YaokunLin Sep 21, 2023
e04b36c
chore: added and renamed bin types and icons
BallardRobinett Sep 21, 2023
c52f024
removing css
monicakochofar Sep 22, 2023
6cde262
Merge pull request #84 from button-inc/mk-ui-fix
monicakochofar Sep 22, 2023
852a4b9
disabled btn prop
YaokunLin Sep 22, 2023
07fbfd8
Merge pull request #85 from button-inc/186064408-align-waste-type-ico…
BallardRobinett Sep 22, 2023
01167f1
updating to use flexbox instead of position absoute
monicakochofar Sep 22, 2023
60e87d2
fixed-tekele-address
YaokunLin Sep 22, 2023
c982d46
Merge pull request #86 from button-inc/fix-tekele-address
YaokunLin Sep 22, 2023
94bc4cc
Merge branch 'develop' of https://github.com/button-inc/iot-system-pr…
YaokunLin Sep 22, 2023
df64f92
broght waset-co asset
YaokunLin Sep 22, 2023
3dfa60b
aligned client logo horiontally
YaokunLin Sep 22, 2023
7d9bfd3
Merge pull request #78 from button-inc/TELUS-UI
YaokunLin Sep 22, 2023
0f11ace
small spacing tweak
monicakochofar Sep 22, 2023
220b57d
Merge pull request #87 from button-inc/mk-spacing
monicakochofar Sep 22, 2023
9bd6eaf
small ui tweak
monicakochofar Sep 22, 2023
cce0578
updating spacing
monicakochofar Sep 22, 2023
2e543ca
updating spacing
monicakochofar Sep 22, 2023
d84806c
updating spacing
monicakochofar Sep 22, 2023
9108b57
Merge pull request #88 from button-inc/mk-formatting
monicakochofar Sep 22, 2023
2c0875e
when fill level is 0 filter fails fix
monicakochofar Sep 22, 2023
93663b9
renaming and moving navbar images
monicakochofar Sep 25, 2023
69ce84c
Merge pull request #89 from button-inc/mk-bugfix
monicakochofar Sep 25, 2023
e5646e9
develop-tradeshow
YaokunLin Sep 25, 2023
a43e56b
adding alerts and last collected date to bin popup
monicakochofar Sep 25, 2023
4d0d7b3
aligning last collected date section
monicakochofar Sep 25, 2023
d151617
updating label titles
monicakochofar Sep 25, 2023
a4168b2
adding last collected fill level
monicakochofar Sep 25, 2023
84cd0f4
Merge pull request #91 from button-inc/mk-popup
monicakochofar Sep 25, 2023
be5320d
small tweak to text
monicakochofar Sep 25, 2023
afacc4f
Merge pull request #90 from button-inc/develop-tradeshow
monicakochofar Sep 25, 2023
601eca7
adding husky precommit hook
monicakochofar Sep 25, 2023
9fcb230
adding husky precommit hook
monicakochofar Sep 25, 2023
313622d
multi-select
YaokunLin Sep 26, 2023
3697248
smll fx
YaokunLin Sep 26, 2023
b074bc5
adding husky
monicakochofar Sep 26, 2023
5db127e
adding comment
monicakochofar Sep 26, 2023
65ba046
removing TODO
monicakochofar Sep 26, 2023
21d3861
updating prettier to keep semicolons
monicakochofar Sep 26, 2023
dec0318
Merge pull request #92 from button-inc/multi-select-group-and-bin-vol
YaokunLin Sep 26, 2023
d79be30
updating prettier config
monicakochofar Sep 27, 2023
d1db390
updating prettier config
monicakochofar Sep 27, 2023
27bc6c1
updating prettier config
monicakochofar Sep 27, 2023
0dc049a
updating prettier config
monicakochofar Sep 27, 2023
b932bd5
updating prettier config
monicakochofar Sep 27, 2023
a4c69dd
updating prettier config
monicakochofar Sep 27, 2023
50c141c
updating prettier config
monicakochofar Sep 27, 2023
0e370b4
Merge pull request #93 from button-inc/mk-husky
monicakochofar Sep 27, 2023
79603d5
applying prettier to rest of files
monicakochofar Sep 27, 2023
2c25dc5
adding format on save option to repo vscode
monicakochofar Sep 27, 2023
dd7a1b0
utilizing app prettier config
monicakochofar Sep 27, 2023
f7ac1e9
Merge pull request #94 from button-inc/mk-prettier-rest
monicakochofar Sep 27, 2023
4432976
BE-upgrade
YaokunLin Sep 28, 2023
9cb0b7e
upgrade python
YaokunLin Sep 28, 2023
1f72c2c
Merge pull request #95 from button-inc/186029852-upgrage-backend-pack…
YaokunLin Sep 28, 2023
209cf13
Merge pull request #96 from button-inc/develop-post-show
YaokunLin Sep 28, 2023
edde434
updated-deploysh
YaokunLin Sep 28, 2023
1cbd961
Merge pull request #97 from button-inc/update-deploysh
YaokunLin Sep 28, 2023
e9f6488
removing package lock from root
monicakochofar Sep 28, 2023
d030374
adding jest to app
monicakochofar Sep 28, 2023
e2bf230
eslint ignores jest files
monicakochofar Sep 28, 2023
848be20
adding config files to eslint ignore
monicakochofar Sep 28, 2023
e919b99
adding coverage report
monicakochofar Sep 29, 2023
047e4e1
shallow mounting component
monicakochofar Sep 29, 2023
da4ff78
updating readme and importing vuetify and vue feather to jest tests
monicakochofar Sep 29, 2023
7584954
updating readme
monicakochofar Sep 29, 2023
c7463f9
adding point address field test
monicakochofar Sep 29, 2023
3d7eb32
updating readme
monicakochofar Sep 29, 2023
43c4311
updating readme
monicakochofar Sep 29, 2023
048f49a
updating readme
monicakochofar Sep 29, 2023
1850ea4
updating readme
monicakochofar Sep 29, 2023
5ff2064
updating readme
monicakochofar Sep 29, 2023
ab09dbd
updating import statement
monicakochofar Sep 30, 2023
8d99092
Merge pull request #98 from button-inc/mk-jest-vue
monicakochofar Oct 3, 2023
e89ec08
adding polyline encoder and updating geocoding helper filename
monicakochofar Oct 3, 2023
682b1e4
google optimize routes api now returns a an encoded polyline, adding …
monicakochofar Oct 3, 2023
57103cd
renaming variables and adding route overlay on open street maps
monicakochofar Oct 3, 2023
178e22c
adding leaflet map object reference
monicakochofar Oct 3, 2023
4052db9
updating readme
monicakochofar Oct 3, 2023
d9732e0
cleaned
YaokunLin Oct 4, 2023
508b93f
brightrbin fetching non-blocking
YaokunLin Oct 4, 2023
9684373
added a err msg for tekelek
YaokunLin Oct 4, 2023
4ce2ff2
goog_sheet_date_format
YaokunLin Oct 4, 2023
79757c5
adding comments and removing redundant function
monicakochofar Oct 4, 2023
bf71fd3
Merge pull request #99 from button-inc/mk-update-line
monicakochofar Oct 4, 2023
b30b686
adding greyscale icons
monicakochofar Oct 4, 2023
6289c0e
separated functions more cleanly
monicakochofar Oct 4, 2023
fc1f9a5
renaming variable
monicakochofar Oct 4, 2023
e6fa2e2
using map to trigger vue reactive property
monicakochofar Oct 4, 2023
bd374cf
Merge branch 'develop' of https://github.com/button-inc/iot-system-pr…
YaokunLin Oct 4, 2023
138e45d
Merge pull request #100 from button-inc/186123335-google-sheet-clean-up
YaokunLin Oct 4, 2023
a5aabaa
updating sensor param
monicakochofar Oct 4, 2023
824b361
removing grayscale icons used and updating count
monicakochofar Oct 4, 2023
4e5d3df
fixing bug with creating a route with one sensor
monicakochofar Oct 5, 2023
63016d9
removed tkl_dict_to_bs_dict
YaokunLin Oct 5, 2023
b3ca23f
put back tkl_dict_to_bs_dict
YaokunLin Oct 5, 2023
657331d
Merge pull request #101 from button-inc/mk-filtered
monicakochofar Oct 5, 2023
496742b
updating issue found with filter count not updating
monicakochofar Oct 5, 2023
898e696
updating filter selection
monicakochofar Oct 5, 2023
949a128
Merge pull request #104 from button-inc/develop
YaokunLin Oct 5, 2023
91dadd5
adding sorting
monicakochofar Oct 5, 2023
c1e5efd
Merge pull request #103 from button-inc/mk-bugs
monicakochofar Oct 6, 2023
a0e8421
Merge pull request #106 from button-inc/develop
YaokunLin Oct 6, 2023
6868cc7
Merge branch 'develop' of https://github.com/button-inc/iot-system-pr…
YaokunLin Oct 6, 2023
e896dc6
unify bb and tkl
YaokunLin Oct 6, 2023
b861817
services folder
YaokunLin Oct 6, 2023
bbaabf0
modulized
YaokunLin Oct 7, 2023
59a25b0
adding animation to collapse
monicakochofar Oct 10, 2023
b602347
updating opacity'
monicakochofar Oct 10, 2023
639d0bf
Merge pull request #107 from button-inc/mk-opacity
monicakochofar Oct 10, 2023
7fae215
resolved conflicts
YaokunLin Oct 10, 2023
7c36510
Merge pull request #102 from button-inc/186055022-common-sensor-refactor
YaokunLin Oct 10, 2023
180daf8
Merge pull request #109 from button-inc/develop
YaokunLin Oct 10, 2023
7653776
modified-deploy-sh-to-incorpoare-docker-cleanup
YaokunLin Oct 10, 2023
29ba07d
Merge pull request #111 from button-inc/modified-deploy-sh-to-incorpo…
YaokunLin Oct 10, 2023
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
26 changes: 26 additions & 0 deletions app_vue/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions app_vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"pre-commit": "lint-staged"
},
"dependencies": {
"@vue-leaflet/vue-leaflet": "^0.10.1",
"axios": "^1.5.0",
"husky": "^8.0.3",
"leaflet": "1.9.3",
Expand All @@ -22,13 +23,14 @@
"ol-contextmenu": "^5.2.1",
"ol-ext": "^4.0.11",
"pinia": "^2.1.6",
"uuid": "^9.0.0",
"vue": "^3.3.4",
"vue-axios": "^3.5.2",
"vue-feather": "^2.0.0",
"vue-router": "^4.2.4",
"vue3-openlayers": "^1.2.0",
"vuetify": "^3.3.14",
"@vue-leaflet/vue-leaflet": "^0.10.1"
"vuedraggable": "^4.1.0",
"vuetify": "^3.3.14"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.3.2",
Expand Down
7 changes: 7 additions & 0 deletions app_vue/src/assets/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@
a {
color: inherit;
text-decoration: none;
}

li {
display: flex;
align-items: center;
list-style: none;
margin: 16px 0;
}
Binary file added app_vue/src/assets/images/alert-bin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app_vue/src/assets/images/battery-bin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app_vue/src/assets/images/cardboard.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app_vue/src/assets/images/compost.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app_vue/src/assets/images/empty-bin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app_vue/src/assets/images/fire-bin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app_vue/src/assets/images/full-bin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app_vue/src/assets/images/half-full-bin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app_vue/src/assets/images/oil-drum.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app_vue/src/assets/images/open-box.png
Binary file not shown.
3 changes: 3 additions & 0 deletions app_vue/src/assets/images/plastic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions app_vue/src/assets/images/trash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions app_vue/src/assets/stylesheets/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
padding-top: 22px;
}

.padding-b-16 {
padding-bottom: 16px;
}

.padding-t-16 {
padding-top: 16px;
}

.padding-b-12 {
padding-bottom: 12px;
}
Expand All @@ -31,6 +39,10 @@
padding-top: 8px;
}

.margin-b-0 {
margin-bottom: 0;
}


// colors
.color-gray-grey {
Expand All @@ -39,4 +51,26 @@

.color-cyan-blue {
color: #2196F3;
}

.color-green {
color: #009E08;
}

.color-red {
color: #C92828;
}

// text
.font-body {
@include fontBody;
}

// misc
.cursor-pointer {
cursor: pointer;
}

.transform-rotate-270 {
transform: rotate(270deg);
}
26 changes: 4 additions & 22 deletions app_vue/src/assets/stylesheets/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
$font-face: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', 'Arial', 'sans-serif';

//color variables
$white: #FFF;
$whiteSoft: #F8F8F8;
$whiteMute: #F2F2F2;

$black: #181818;
$blackSoft: #222222;
$blackMute: #282828;
$blackQuiet: #333333;

$dividerLight1: rgba(60, 60, 60, 0.29);
$dividerLight2: rgba(60, 60, 60, 0.12);
$dividerDark1: rgba(84, 84, 84, 0.65);
$dividerDark2: #141414;

$bubbleGreen: #89f693;
$bubbleGreenLight: #b8fabe;
$bubbleGreenDark: #265F46;

$textDark1: rgba(235, 235, 235, 0.64);
$textLight1: rgba(60, 60, 60, 0.66);

$zIndexFront: 999;
$black: #191A1C;
$grey: #8D8D8D;
$lightergrey: #D9D9D9;
$cyanBlue: #2196F3;
50 changes: 29 additions & 21 deletions app_vue/src/components/sensorMap.vue
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
<script setup>
import { reactive, ref, onMounted } from 'vue'
import { reactive, ref, onMounted, watch } from 'vue'
import SensorMapMarker from '@/components/sensorMapMarker.vue';
import 'leaflet/dist/leaflet.css'
import { LMap, LTileLayer, LMarker, LControlZoom } from '@vue-leaflet/vue-leaflet'
import { LMap, LTileLayer, LMarker, LControlZoom, LPolyline } from '@vue-leaflet/vue-leaflet'
import { useDevice, DEVICE_SIZE } from '@/utils/screenSizeHelper';
import { useSensorStore } from '@/stores/sensors_store';
import { useRouteStore } from '@/stores/route_store';
import { storeToRefs } from 'pinia';

const props = defineProps({
alertThreshold: {
type: Number
},
filterThresholdMaximum: {
type: Number
},
filterThresholdMinimum: {
type: Number
}
})

const center = ref([43.7, -79.42]);
const center = ref([43.7, -79.42]); // TODO: update to possibly be user's current location
const zoom = ref(10);
const sensorStore = useSensorStore();
const { sensors } = storeToRefs(sensorStore);
const state = reactive({
location: 'bottomright',
device: useDevice()
});
const polyLineLatLngs = ref([]);

const routeStore = useRouteStore();
const { getSensorRouteLatLong } = storeToRefs(routeStore);

watch(getSensorRouteLatLong, () => {
polyLineLatLngs.value = routeStore.getSensorRouteLatLong;
}, { deep: true })

onMounted(() => {
positionZoom();
Expand All @@ -47,30 +44,41 @@
<div v-if="sensors" class="sensor-map-container">
<l-map ref="map" v-model:zoom="zoom" :use-global-leaflet="false" :center="center" :options="{zoomControl: false}">
<l-control-zoom :position="state.location"/>
<!-- alternative maps (for aesthetic): -->
<!-- favourite: https://tiles.stadiamaps.com/tiles/alidade_smooth/{z}/{x}/{y}{r}.png -->
<!-- another one: https://tiles.stadiamaps.com/tiles/osm_bright/{z}/{x}/{y}{r}.png -->
<l-tile-layer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
layer-type="base"
name="OpenStreetMap"
></l-tile-layer>
<l-polyline :lat-lngs="polyLineLatLngs"></l-polyline>

<l-marker
v-for="sensor in sensors"
:key="sensor.id"
:lat-lng="[sensor.lat, sensor.long]"
>
<SensorMapMarker
:sensor="sensor"
:alertThreshold="props.alertThreshold"
:filterThresholdMaximum="props.filterThresholdMaximum"
:filterThresholdMinimum="props.filterThresholdMinimum">
<SensorMapMarker :sensor="sensor">
</SensorMapMarker>
</l-marker>
</l-map>
</div>
</template>

<style lang="scss" scoped>
// leaflet css override
// leaflet css override for mobile views

:deep .leaflet-pane .leaflet-layer { // handles map opacity level
opacity: 0.70 !important;
}
:deep .leaflet-popup-content {
margin: 13px 0 13px 0;

@include smallScreens {
margin: 20px;
}
}
:deep .leaflet-popup-content-wrapper {
width: 300px;
height: 300px;
Expand Down
Loading