[FE][SYNC-232] SYNC-V2 New Navbar and UI components - #68
Open
andyrochi wants to merge 48 commits into
Open
Conversation
yccodr
requested changes
Nov 21, 2022
| const req = require.context('@/assets/icons', true, /\.svg$/) | ||
| requireAll(req) | ||
| Vue.component('icon', SvgIcon) | ||
| Vue.component('SyncButton', SyncButton) |
Contributor
There was a problem hiding this comment.
Why SyncButton should be globally registered? Can't we import it when we need it?
Contributor
Author
There was a problem hiding this comment.
I'd prefer making it more like BootstrapVue, where components are globally visible
Contributor
There was a problem hiding this comment.
That's fair enough, but I think importing the component when we need it would be better. It would shrink down the chunk size after the build.
| await loginFunc() | ||
| this.$router.back() | ||
| const redirect = this.getRedirectPath | ||
| if (redirect) { this.$router.push({ path: redirect.redirect }) } else { this.$router.back() } |
Contributor
There was a problem hiding this comment.
If the router starts at '/login', then there's no entry in the history stack. this.$router.back() won't work.
Maybe add more checks to prevent this behavior? (e.g. by checking router.START_LOCATION)
Changes: - rm title - fix link to article image - fix css import
…frontend into feature/SYNC-232
david20571015
removed their request for review
May 7, 2024 16:42
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Description:
SyncButtonChanges:
<SyncButton>with similar interfaces as bootstrap-vue buttonssize,pill,variant(primary, tertiary),squaredTODO:
Test Scope:
Navbar
開始編輯should redirect to edit page after loginSearch bar
Profile Page
Screenshots (optional)