-
-
Notifications
You must be signed in to change notification settings - Fork 102
[WIP] Rewrite UI in Vue.js #510
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
233 commits
Select commit
Hold shift + click to select a range
0009825
beginning to rewrite, only getting option values and building empty m…
3d52e3c
begin to implement main component
e204029
tile layers management ok, mapboxgl ok
322576a
routing almost ok
75eead1
add routers, allow changing, allow closing, export missing
6046bea
bring back layer selection style the way it was
dbb4290
add navigation with settings only
c3d44f8
fix layer button visibility
094cff4
beginning to implement contacts, only dummy navigation
cc2fcc6
contacts in progress
512cf92
contact marker and cluster icons OK
0dfbe29
contacts almost ok
d4b729c
remove contact group actions when disabled
b2a4eb4
fix tile layers names/ids
b7489d5
contact placement ok
bed7b3b
better map click management, dynamic icon for contact placement
a5e9640
add contact address deletion
3a4c026
popup/tooltip design
8ce7a51
fix placement popup position
4a28c55
fix contact group object generation
9b44266
handle click on cluster
e2d60d3
beginning photos, display markers and clusters ok
90eef0f
update composer libs
46591d3
photo tooltip ok
5f299d8
begin to implement new photo popup
c075bc7
update package-lock, beginning to add photo popup...
3446c6c
slowly implement slider stuff
42d53f0
context place photos OK
6807c25
beginning photo context menu
729a36e
reset photo coords ok
668eb07
add slider component
fbf1a68
refactor, put map stuff in a component
e5f9202
fix slider apparition
e6a927f
handle photo cluster right click
bd1e7e1
new feature :-) reset photo cluster geo data
f7b3ef5
implement and fix routing
2e047d4
improve routing control design
53d8261
now adding routing waypoint before the last instead of after
8c5fdaf
hide routing export button when there is no routing plan
5a8448e
map context menu routing actions ok
12674e2
add empty search bar
e879f54
almost nothing
9b6b686
begin to implement photo move
97d3942
photo move global switch ok
b0bc188
details
4df6a00
almost hide tooltip when photos are draggable, always reload after mo…
c538633
add spiderfy cluster context menu action
e476ba7
fix cluster icon position
ff07b67
disabled photo tooltip when it's draggable
7872f03
change map cursor when a controller is loading
067e598
implement photo move/reset action history
a0d51f1
map crtl+z/crtl+Z to undo/redo
5736b76
global use of tooltip directive
736521d
begin to implement external routing plan
b2c9bfd
structure of next gen routing is there, a few interactions with new p…
403ee71
going on routing engine with external steps using multiselect
1430af1
search field now gets data, improve its design
e4e49e1
search is starting to look good
f7372de
new routing plan is now reactive
19b2e63
move export route button out of routing machine, hide machine interna…
39a9936
polish routing/search control design
378cd01
going on routing/search
d163d34
fix search field selected option design
8e2aec7
beginning to implement favorites
5d94932
beginning favorites layer
ca3bf96
manage zoom on favorites/categories
6f96d76
favorite edition works
4a4d090
add/delete favorite
14e6785
drag favorite ok
2a97b4c
make fav marker and cluster marker click area larger
82fa61c
delete favorite cluster
0536e6f
toggle all fav catagories
214c2e4
adapt favorite markers color to theme
1cbdf51
make action history mechanism generic
45aa8b2
favorite add cancel/redo OK
1301b44
photo and favorite action history OK
2568f5a
don't reload photos after having dragged one
0f15b15
so easy to add new search data
75c0f4a
new routing button to zoom on current route
e3e1202
rename fav category + history OK
8d1edb1
delete/export fav category + history OK
7eb0630
export enabled fav categories ok
0edb422
import favorites from file ok
c64661e
topright history control ok
e60178d
same fav icon in map and navigation menu
2bb5f9c
design details
012cf7c
get/create/delete fav category share link ok
b82793d
update package-lock
64e54df
fix public fav share scripts
76fed0c
take care of share token after renaming fav category
266f63e
fix various small design issues
7fb61d4
beginning to implement POI search
798f388
implement opening hours in poi popups
a52f38c
implement left click search popup
c6a0eb5
basic slider working
c4d6285
new slider operational with photos and favorites
fbbe9f0
avoid opening left click search popup when something is spiderfied
050e7b1
use real axios for non-nextcloud requests
8fa53f9
move away poi search data declaration
430db3e
optimize and clarify filtering
64e89d9
locate control ok
55415c5
track me OK
16e71c6
bump js libs
477f184
avoid POIs in routing autocomplete search data
54d1508
find a way to display Mapbox traffic overlay
8b34339
adjust traffic colors
49d5b56
avoid left click search if layer selector was open
a88a243
add empty sidebar
c262c3d
found mapbox:// traffic style urls
c2a1bbf
beginning to implement tracks
1e8ef5d
struggling with tracks navigation
9f94cc1
manage track color and toggle state
903cc83
get tracks, parse metadata, parse gpx content
00b063e
begin to draw tracks
50e5ea0
add track marker and tooltip
baf2b64
begin to move fav edition in sidebar
706e3f9
move fav edition to sidebar
66f027b
add context menu for single favorite markers
bb42cd0
nothing
f457389
implement contact right click
06292b8
better contact context menu popup placement
4790713
more use of computed props in contactLayer
8f75a49
move contact actions up to App
8bf2f6f
implement contact place/delete history
0e7dd2e
fix small problems with fav edition form
d1f0b50
track zoom
5fb780e
big fight with @raruto/leaflet.elevation, works but still loads d3 fr…
e10f127
load track data in elevation chart
1e6bc24
going on track management, sidebar tab, right click...
bd8dd1c
bump mapbox-gl
cee493c
put content in track table
42c9c9e
track table style
969a7f3
port GpxPod improvements about cumul elevation and max speed calculation
1a86606
forward track 'change color' click with context menu
d7ecf51
bump js libs
c7a49f6
make tracks sort order an option
8216c61
fix tracks related options
3829f1e
bump js libs
0227867
bump js libs
cbd2b34
beginning to implement devices UI, navigation and loading is there
a348a03
basic device map display
028f5db
Fixed issue when adding favorite, bevor address is loaded
tacruc 298ae2d
manage device history toggling
690e8a5
move forward on devices
46cd07f
bump safe js libs
3aed366
bump nc eslint and webpack configs
77980f8
bump @nc libs
b6e0ab2
remove some unused js libs
d2c9214
allow to search for 'my location' in search field and routing
5bc10ca
fix photo tooltip alignment
6f35969
fix manual photo move which was not updating photo attributes
91f3a0f
improve fav navigation
87d1f40
implement adding favorite from navigation sidebar => then click on map
60a5af6
fix missing dependency
cb617f6
use node>=14 and npm>=7
cefddcf
open sidebar when manually adding a favorite
c9ca02b
fix responsiveness of sidebar fav edition form
26b1c74
use bubble counter in every navigation counter slots
2066b83
fix style of contact placement popup
0cf87e6
simplify sidebar layout, no tabs
45e38f4
fix box shadows, fix device icons with dark theme
05753c4
use svg coloring for favorite marker icons, add box-shadow
39e2817
escape cancels adding favorite, fix sidebar mode when opened after fa…
97d3277
remember last used fav category when editing/creating for new favs, a…
d2114a3
change fav icon when selected, properly deselect when needed
b42e3ac
make favorite marker real clickable area round
32cf392
add africa true size text/link
c4b21db
block horiz resize of contact placement address textarea
4cbdceb
fix apparition of nav counters when hidden on page load
081e51b
change shadow color for selected track, clarify track/fav selection
59f5f2a
contact placement progressive contact search instead of getting all c…
c460983
fix contact avatar display in placement multiselect, placement marker…
cac2171
fix contact placement popup style
c366ff8
make 'my location' the first search suggestion
8796717
search device ok
7211a54
basic track search ok
0d920c2
zoom on track bounds when searching, different behaviour for routing
6901946
zoom on device bounds when searching, different behaviour for routing
74942ad
fix gpx parsing, avoid points with missing coordinates
b3dff23
zoom on unloaded device or track when enabling them with nav
9eef0cb
zoom on route when one is selected
8d321bc
fix small style issues
482f2eb
nothing
5fbb9bf
remove leaflet.elevation stuff in makefile as it's not used anymore
88928bb
fix direct link to contact, requires contacts >= v4.0.0
b564253
add begin date in track tooltip
fbc1408
add device hover marker with info tooltip
247854b
add track hover marker with info tooltip
7d7821a
display search result
4906f17
custom search result filter in multiselect to be accent insensitive
02313ea
on routing step selection => focus on next step field
97b5703
safe dependency update
8515987
bump some major dependencies
7e27af1
fix build
697931d
implement map actions that other apps can register
02592b7
implement context location share (copy geo link to clipboard)
e212fcd
Merge branch 'master' into enh/vue-rewrite
115f426
repair publich sharing vue stuff
e245e67
simplify js dependencies
2041f16
remove leaflet.markercluster dependency
2c8bfd4
fix navigation item collapse and default slot
3955a2c
fix ClickSearchPopup marker icon
47ca0d0
Fixed gpx tracks with no timestamps and nicer handling of firstPoint …
tacruc 5a2d4b6
fixes elevation graph by downgrade "@raruto/leaflet-elevation" to "^1…
tacruc 75340f8
Fixes a glitch, changing the shown elevation data.
tacruc a01d43c
Give user feedback, after exporting routing.
tacruc 79e08a6
Disable Contacts group zoom button if group is empty
tacruc 0522312
Fix duplicated key error in ContactLayer
tacruc 359989d
Disable sharing of Personal category. (Doesn't work and doesn't make …
tacruc 5e0c504
Fixes option is null, on contacts with no category or if the category…
tacruc d0fe8d7
Fix placing contacts on places without address.
tacruc 9ea678a
time Slider filter tracks
tacruc 67be272
Improved Slider, set start end via prop
tacruc e24095e
Improoved filtering of tracks, zoom to bound set times too
tacruc 3a2f4d8
Filter Device Tracks by time
tacruc ac6e093
export only shown part of device
tacruc c44cdd4
Uses binSearch to filter device points. Faster filtering feels fast,
tacruc e7dfe46
Use binSearch to filter Photos
tacruc 0983bca
Use bin search to filter Track Segments
tacruc 004c6ec
Included @nextcloud/event-bus": "^2.1.1
tacruc 7d491c6
Disabled Files Sidebar Tab, Notworking anyways
tacruc 2e23a2b
Make the Viewer aware of maps sidebar
tacruc df9d7ba
Make sidebar fullscreen, when viewer is opened
tacruc f31d345
Dummy PhotoSidebarTab
tacruc 6c0d881
Nicer photo sidebar
tacruc 33cc2a1
Improve default Sidebar
tacruc 3074586
Show favorits sidebar Icon in compact
tacruc c55b6dd
Add image menu element open sidebar
tacruc e8051d7
Don't open sidebar if clicked on cluster
tacruc 27b4e4c
Keep sidebar content if sidebar is toggled (onMainDetailClicked)
tacruc e25e6b3
Fix viewer assumes sidebar is opened on pageload
tacruc 4b8aff2
Merge pull request #700 from nextcloud/enh/vue-image-sidebar
tacruc 1fd6e93
Merge branch 'master' into enh/vue-rewrite
tacruc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
beginning to implement favorites
Signed-off-by: Julien Veyssier <[email protected]>
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,142 @@ | ||
| <template> | ||
| <AppNavigationItem | ||
| :icon="loading ? 'icon-loading-small' : 'icon-favorite'" | ||
| :title="t('maps', 'My favorites')" | ||
| :class="{ 'item-disabled': !enabled }" | ||
| :allow-collapse="true" | ||
| :open="open" | ||
| :force-menu="false" | ||
| @click="onFavoritesClick" | ||
| @update:open="onUpdateOpen"> | ||
| <template slot="counter"> | ||
| | ||
| <span v-if="enabled && nbFavorites">{{ nbFavorites }}</span> | ||
| </template> | ||
| <template v-if="enabled" slot="actions"> | ||
| <ActionButton | ||
| icon="icon-checkmark" | ||
| @click="onToggleAllClick"> | ||
| {{ t('maps', 'Toggle all') }} | ||
| </ActionButton> | ||
| <ActionButton | ||
| icon="icon-search" | ||
| :close-after-click="true" | ||
| @click="onZoomAllClick"> | ||
| {{ t('maps', 'Zoom') }} | ||
| </ActionButton> | ||
| </template> | ||
| <template #default> | ||
| <AppNavigationItem | ||
| v-for="(c, catid) in categories" | ||
| :key="catid" | ||
| :title="c.name" | ||
| :class="{ 'subitem-disabled': !c.enabled }" | ||
| :allow-collapse="false" | ||
| :force-menu="false" | ||
| @click="onCategoryClick(catid)"> | ||
| <template #icon> | ||
| <img :src="getIconUrl(c.color)"> | ||
| </template> | ||
| <template slot="counter"> | ||
| | ||
| <span v-if="enabled && nbFavorites && c.enabled">{{ c.counter }}</span> | ||
| </template> | ||
| <template slot="actions"> | ||
| <ActionButton v-if="enabled && nbFavorites && c.enabled" | ||
| icon="icon-search" | ||
| :close-after-click="true" | ||
| @click="onZoomCategoryClick(catid)"> | ||
| {{ t('maps', 'Zoom') }} | ||
| </ActionButton> | ||
| </template> | ||
| </AppNavigationItem> | ||
| </template> | ||
| </AppNavigationItem> | ||
| </template> | ||
|
|
||
| <script> | ||
| import AppNavigationItem from '@nextcloud/vue/dist/Components/AppNavigationItem' | ||
| import ActionButton from '@nextcloud/vue/dist/Components/ActionButton' | ||
| import { generateUrl } from '@nextcloud/router' | ||
|
|
||
| import optionsController from '../optionsController' | ||
|
|
||
| export default { | ||
| name: 'AppNavigationFavoritesItem', | ||
|
|
||
| components: { | ||
| AppNavigationItem, | ||
| ActionButton, | ||
| }, | ||
|
|
||
| props: { | ||
| enabled: { | ||
| type: Boolean, | ||
| required: true, | ||
| }, | ||
| loading: { | ||
| type: Boolean, | ||
| default: false, | ||
| }, | ||
| favorites: { | ||
| type: Object, | ||
| required: true, | ||
| }, | ||
| categories: { | ||
| type: Object, | ||
| required: true, | ||
| }, | ||
| }, | ||
|
|
||
| data() { | ||
| return { | ||
| open: optionsController.optionValues?.favoriteCategoryListShow === 'true', | ||
| } | ||
| }, | ||
|
|
||
| computed: { | ||
| nbFavorites() { | ||
| return Object.keys(this.favorites).length | ||
| }, | ||
| }, | ||
|
|
||
| methods: { | ||
| onFavoritesClick() { | ||
| if (!this.enabled && !this.open) { | ||
| this.open = true | ||
| optionsController.saveOptionValues({ favoriteCategoryListShow: 'true' }) | ||
| } | ||
| this.$emit('favorites-clicked') | ||
| }, | ||
| onUpdateOpen(isOpen) { | ||
| this.open = isOpen | ||
| optionsController.saveOptionValues({ favoriteCategoryListShow: isOpen ? 'true' : 'false' }) | ||
| }, | ||
| onToggleAllClick() { | ||
| this.$emit('toggle-all-categories') | ||
| }, | ||
| onZoomAllClick() { | ||
| this.$emit('zoom-all-categories') | ||
| }, | ||
| onZoomCategoryClick(catid) { | ||
| this.$emit('zoom-category', catid) | ||
| }, | ||
| onCategoryClick(catid) { | ||
| this.$emit('category-clicked', catid) | ||
| }, | ||
| getIconUrl(color) { | ||
| return generateUrl('/svg/core/actions/star?color=' + color) | ||
| }, | ||
| }, | ||
| } | ||
| </script> | ||
|
|
||
| <style lang="scss" scoped> | ||
| .item-disabled { | ||
| opacity: 0.5; | ||
| } | ||
|
|
||
| .subitem-disabled { | ||
| opacity: 0.5; | ||
| } | ||
| </style> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.