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: ui venue change #422

Merged
merged 7 commits into from
Aug 4, 2023
Merged

feat: ui venue change #422

merged 7 commits into from
Aug 4, 2023

Conversation

baby230211
Copy link
Collaborator

@baby230211 baby230211 commented Jul 15, 2023

Types of changes

  • Bugfix

Description

  • update venue ui change.
  • update i18n
  • update ui broken on division in venue page
  • fix memory leak on not removing event listener on community

Steps to Test This Pull Request

Expected behavior

Related Issue

Additional context

@netlify
Copy link

netlify bot commented Jul 15, 2023

Deploy Preview for ephemeral-sable-89c7e0 ready!

Name Link
🔨 Latest commit c33f27d
🔍 Latest deploy log https://app.netlify.com/sites/ephemeral-sable-89c7e0/deploys/64bf9316a2091100083812aa
😎 Deploy Preview https://deploy-preview-422--ephemeral-sable-89c7e0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@josix josix left a 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.

export default {
name: 'VenueDivision',
props: {
index: { type: Number, default: -1 },
Copy link
Collaborator

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.

Copy link
Collaborator Author

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!!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed Thanks!

Comment on lines 127 to 139
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 {
Copy link
Contributor

@yungshenglu yungshenglu Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's different?

Copy link
Collaborator Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建議只要把不同的放進去條件判斷就好,兩邊寫在外面就可以

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated~

Comment on lines 226 to 239
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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's different?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated~

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.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

怎麼英文裡面還有中文XD

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

截圖 2023-07-25 下午4 28 28

the text is same as figma ui

Copy link
Contributor

@yungshenglu yungshenglu Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文案建議可以討論一下,避免中英文夾雜,非中文母語者應該也是看不懂中文的

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated~

Copy link
Collaborator

@josix josix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@josix josix merged commit ef0da5b into main Aug 4, 2023
5 checks passed
@josix josix deleted the fix/ui-venue branch August 4, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants