-
Notifications
You must be signed in to change notification settings - Fork 1
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
Vuetify #153
Vuetify #153
Conversation
dyakovri
commented
Aug 7, 2023
-
- implements vuetify, - update dependencies
-
- hotfix compilation errors
-
- hotfix compilation error
-
- small ui configuration chenges
- Theming
7857717
to
6812f03
Compare
package.json
Outdated
"eslint-plugin-vue": "^9.15.1", | ||
"postcss": "^8.4.24", | ||
"material-design-icons-iconfont": "^6.7.0", |
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.
Это не нужно
src/components/IrdomLayout.vue
Outdated
<slot /> | ||
</main> | ||
<div style="height: 100%; width: 100%" v-touch="touch"> | ||
<v-main style="height: 100%"> |
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.
Было три строчки — стало 10. v-main
не обязательно использовать
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.
Это менять дико долго, от этого едут все экраны
import './index.css'; | ||
import './variables.css'; | ||
import 'vuetify/styles'; | ||
import 'material-design-icons-iconfont/dist/material-design-icons.css'; |
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.
Вот этот css весит овердофига. Надо использовать другой способ, описанный в доке:
import { aliases, mdi } from 'vuetify/iconsets/mdi-svg'
export default createVuetify({
icons: {
defaultSet: 'mdi',
aliases,
sets: {
mdi,
},
},
})
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.
Нет, по-моему там просто префикс mdi-
должен быть, проверь. И вообще эти префиксы настраиваются вроде бы
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.
Не работают, я потыкал
@@ -52,7 +52,8 @@ const router = createRouter({ | |||
routes, | |||
}); | |||
|
|||
router.beforeEach(to => { | |||
router.beforeEach(async to => { | |||
await new Promise(r => setTimeout(r, 150)); |
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.
Отзывчивость интерфейса > просмотра риппла
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.
Сейчас интерфейс выглядит прыгающим, как на сайте 90х, а не отзывчивым как в современных мобильных приложениях. Мы делаем скорее второе, чем первое
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.
Я бы лучше сделал переходы через <transition>
, но у меня не вышло это сделать сходу