-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix(story): add table design #17
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
}>(); | ||
</script> | ||
|
||
<template> |
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 for the big diff. It was inevitable as I split stuff into smaller chunks. However, the majority of the code is the same.
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.
Love to see some code splitting <3
|
||
const lastUpdate = computed(() => { | ||
const timestamp = props.story.updated_at || props.story.created_at; | ||
const [date, time] = timestamp.split('T'); |
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.
I was trying to find out how nuxt handles the formatting of dates and https://nuxt.com/modules/date-fns there is this, but for now a new dependency might be too much so its fine to leave it as is.
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.
ah yeah, date-fns is definitely a great choice for date formatting as soon as we need to really format it :)
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.
Looking neat 💪
Merge activity
|
729b89a
to
27ab962
Compare
cbb55df
to
cac6d89
Compare
What?
This PR adds table design to the story list, and refactors into smaller components.
Screenshot.2023-12-11.at.17.27.25.mp4
How to test? (optional)