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

задачи MeetupView и UiClock #8

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

KiraIsmailova
Copy link
Contributor

No description provided.

@jsru-1
Copy link
Contributor

jsru-1 commented Jan 15, 2025

Добавляю преподавателя (@ShGKme) для код-ревью.

@jsru-1 jsru-1 requested a review from ShGKme January 15, 2025 17:37
@jsru-1
Copy link
Contributor

jsru-1 commented Jan 22, 2025

Решение было обновлено, посмотрим что скажет @ShGKme

Copy link
Contributor

@ShGKme ShGKme left a comment

Choose a reason for hiding this comment

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

Принято

const date = new Date();
const options = { timeStyle: 'medium' }

formattedTime.value = new Intl.DateTimeFormat('en-US', options).format(date);
Copy link
Contributor

Choose a reason for hiding this comment

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

Как и в прошло теме, вместо фиксированной локализации (en-US или ru-RU) лучше всегда использовать navigator.language для использования локализации пользователя.

@@ -15,10 +15,13 @@ export default defineComponent({
},
},

emits: ['button-clicked'],
Copy link
Contributor

Choose a reason for hiding this comment

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

События обычно называют как название действия (существительное), а не причастие. button-click. Аналогично событиям в браузере - нативное событие click, а не clicked.

Copy link
Contributor

Choose a reason for hiding this comment

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

В целом в имени события лучше описывать не действия пользователя, а происходящее действие. В этом компоненте важно, не что "пользователь нажал на какую-то кнопку" (какую? а если их несколько? а если удалить можно без кнопки?), а удаление email-а.

Лучше подойдут названия remove, delete

@jsru-1 jsru-1 merged commit e4b2b4c into js-tasks-ru:master Jan 22, 2025
1 check passed
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