-
Notifications
You must be signed in to change notification settings - Fork 36
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: ui venue change #422
Conversation
✅ Deploy Preview for ephemeral-sable-89c7e0 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks to @baby230211. I'll update some missing descriptions latter.
components/venue/VenueDivision.vue
Outdated
export default { | ||
name: 'VenueDivision', | ||
props: { | ||
index: { type: Number, default: -1 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: what is index
used for? I didn't see it referenced in this component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, this should be removed!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed Thanks!
components/venue/VenueDriveTab.vue
Outdated
icon() { | ||
if (this.$i18n.locale === 'en-us') { | ||
return { | ||
car: require('~/static/img/venue/car.svg'), | ||
carWhite: require('~/static/img/venue/car-white.svg'), | ||
motorWhite: require('~/static/img/venue/motor-white.svg'), | ||
parking: require('~/static/img/venue/parking.svg'), | ||
parkingPink: require('~/static/img/venue/parking-pink.svg'), | ||
venueDestination: require('~/static/img/venue/en-us/venue-destination.svg'), | ||
venueDestinationMd: require('~/static/img/venue/en-us/venue-destination-md.svg'), | ||
} | ||
} | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's different?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
venueDestination, venueDestinationMd
image path is different when getting in different locale
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建議只要把不同的放進去條件判斷就好,兩邊寫在外面就可以
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated~
if (this.$i18n.locale === 'en-us') { | ||
return { | ||
carWhite: require('~/static/img/venue/car-white.svg'), | ||
busWhite: require('~/static/img/venue/bus-white.svg'), | ||
publicTransporterGuide: require('~/static/img/venue/en-us/publicTransporterGuide.svg'), | ||
publicTransporterGuideMd: require('~/static/img/venue/en-us/publicTransporterGuide-md.svg'), | ||
taxiWhite: require('~/static/img/venue/taxi-white.svg'), | ||
transporterWhite: require('~/static/img/venue/transporter-white.svg'), | ||
uBike: require('~/static/img/venue/uBike.svg'), | ||
parking: require('~/static/img/venue/parking.svg'), | ||
airplane: require('~/static/img/venue/airplane.svg'), | ||
} | ||
} | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's different?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated~
i18n/venue/index.i18n.js
Outdated
bus: { | ||
title: 'Passenger bus', | ||
description: | ||
"To reach Academia Sinica, you can take buses 205, 212, 212 直 (212 Express), 270, 270 區 (270 Shuttle), 276, 306, 306 區 (306 Shuttle), 620, 645, 645 副 (645 Sub), S1, S12, 小 12 區 (S12 Shuttle), S5, or 藍 25 (Blue 25), and get off at Academia Sinica Station. From there, it's approximately an 8-minute walk to your destination.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
怎麼英文裡面還有中文XD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文案建議可以討論一下,避免中英文夾雜,非中文母語者應該也是看不懂中文的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Types of changes
Description
Steps to Test This Pull Request
Expected behavior
Related Issue
Additional context