Skip to content

UI #4

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

UI #4

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.env
build
package-lock.json


# compiled output
Expand Down
1 change: 1 addition & 0 deletions packages/hyper-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"emoji-mart-vue": "^2.6.6",
"howler": "^2.1.2",
"moment": "^2.24.0",
"vue-awesome-swiper": "^3.1.3",
"vue-multiselect": "^2.1.6",
"vue-youtube": "^1.3.5"
}
Expand Down
1 change: 1 addition & 0 deletions packages/hyper-ui/src/components/activity-block/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<script>
export default {
components: {
'Button': () => import('../../').then(m => m.Button),
'ProgressBar': () => import('../progress-bar').then(m => m.ProgressBar)
},
props: {
Expand Down
3 changes: 3 additions & 0 deletions packages/hyper-ui/src/components/add-friends/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@

<script>
export default {
components: {
'Button': () => import('../../').then(m => m.Button)
},
props: {
permission: {
type: Boolean,
Expand Down
1 change: 1 addition & 0 deletions packages/hyper-ui/src/components/asset-importer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@

export default {
components: {
'Button': () => import('../../').then(m => m.Button),
'Loading-bar': () => import('../../').then(m => m.Loading-bar),
'Button': () => import('../../').then(m => m.Button),
'NotificationInline': () => import('../../').then(m => m.NotificationInline),
Expand Down
3 changes: 3 additions & 0 deletions packages/hyper-ui/src/components/asset/list/list-item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<script>
export default {
name: 'AssetListItem',
components: {
'Button': () => import('../../').then(m => m.Button)
},
props: {
asset: {
type: Object,
Expand Down
12 changes: 6 additions & 6 deletions packages/hyper-ui/src/components/assets-explorer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@

<div class="filter-block d-flex justify-content-between align-items-center margin-bottom-20">
<div class="d-inline-flex align-items-center">
<Dropdown-menu
<DropdownMenu
class="margin-right-10"
title="FILTER BY PRODUCTS">
<List
:items="selectableProducts"
@click="item => item.selected = !item.selected" />
</Dropdown-menu>
<Dropdown-menu
</DropdownMenu>
<DropdownMenu
class="margin-right-10"
title="FILTER BY GENRE">
<List
:items="selectableGenres"
@click="item => item.selected = !item.selected" />
</Dropdown-menu>
</DropdownMenu>
<InputSearcher
v-model="phrase"
class="assets-explorer__input-searcher" />
Expand Down Expand Up @@ -172,17 +172,17 @@
</template>

<script>

export default {
name: 'AssetsExplorer',
components: {
'Button': () => import('../../').then(m => m.Button),
'ContentNavigation': () => import('../../').then(m => m.ContentNavigation),
'Block': () => import('../../').then(m => m.Block),
'HeadingBarFields': () => import('../../').then(m => m.HeadingBarFields),
'Dropdown': () => import('../../').then(m => m.Dropdown),
'InputSearcher': () => import('../../').then(m => m.InputSearcher),
'AssetsList': () => import('../../').then(m => m.AssetsList),
'Dropdown-menu': () => import('../../').then(m => m.Dropdown-menu),
'DropdownMenu': () => import('../../').then(m => m.DropdownMenu),
'List': () => import('../../').then(m => m.List),
'OptionTag': () => import('../../').then(m => m.OptionTag)
},
Expand Down
3 changes: 3 additions & 0 deletions packages/hyper-ui/src/components/benchmark/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
<script>
export default {
name: 'Benchmark',
components: {
'Button': () => import('../../').then(m => m.Button)
},
props: {
settings: Object
},
Expand Down
3 changes: 3 additions & 0 deletions packages/hyper-ui/src/components/broken-page/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@

<script>
export default {
components: {
'Button': () => import('../../').then(m => m.Button),
},
props: {
isError: {
type: Object,
Expand Down
1 change: 1 addition & 0 deletions packages/hyper-ui/src/components/browser-ui/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<script>
export default {
components: {
'Button': () => import('../../').then(m => m.Button),
'Dropdown': () => import('../../').then(m => m.Dropdown)
},
data() {
Expand Down
3 changes: 3 additions & 0 deletions packages/hyper-ui/src/components/buttons/favorite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export default {
default: 'heart'
}
},
components:{
'Icon': () => import('../../').then(m => m.Icon),
},
computed: {
dynamicTitle() {
const { target, active } = this
Expand Down
2 changes: 2 additions & 0 deletions packages/hyper-ui/src/components/buttons/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
import { Howl } from 'howler'

export default {
components: {
},
props: {
tag: {
type: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Welcome to ChanelName!
</div>
<div class="welcome-logo">
<img src="../../../static/img/logo.png">
<img src="/img/logo.png">
</div>
<div class="chat-group__welcome-action">
<ul>
Expand Down
1 change: 1 addition & 0 deletions packages/hyper-ui/src/components/collection/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default {
position: relative;
backdrop-filter: blur(2px);
display: flex;
flex-direction: column;
}
.collection-list__header{
display: flex;
Expand Down
6 changes: 4 additions & 2 deletions packages/hyper-ui/src/components/community/comment-v2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ import VueEmojiReact from 'vue-emoji-react'

export default {
components: {
'Dropdown-menu': () => import('../../').then(m => m.Dropdown-menu),
'CommunityReply': () => import('../../').then(m => m.CommunityReply),
'DropdownMenu': () => import('../../').then(m => m.Dropdown4),
'CommunityReply': () => import('../../').then(m => m.ProductCommunityReply),
'Button': () => import('../../').then(m => m.Button),
'ButtonArrows': () => import('../../').then(m => m.ButtonArrows),
'Img': () => import('../../').then(m => m.Img),
'EmojiPicker': VueEmojiReact
},
props: {
Expand Down
8 changes: 4 additions & 4 deletions packages/hyper-ui/src/components/community/comment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div
class="comment-container"
:class="{ 'w-100' : !rate }">
<Dropdown-menu
<DropdownMenu
dropPosition="right"
style="right: 5px; top: 10px;" />
<div class="comment-content">
Expand Down Expand Up @@ -45,13 +45,13 @@
</template>

<script>
import moment from 'moment'

export default {
name: 'Comment',
components: {
'Dropdown-menu': () => import('../../').then(m => m.Dropdown-menu),
'CommunityReply': () => import('../../').then(m => m.CommunityReply),
'DropdownMenu': () => import('../../').then(m => m.DropdownPost),
'CommunityReply': () => import('../../').then(m => m.ProductCommunityReply),
'Img': () => import('../../').then(m => m.Img),
'ButtonArrows': () => import('../../').then(m => m.ButtonArrows)
},
props: {
Expand Down
6 changes: 4 additions & 2 deletions packages/hyper-ui/src/components/community/post-item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@

<script>
import moment from 'moment'
import a from './../../index'

export default {
components: {
'PostComment': import('../../').then(m => m.PostComment),
'CommunityReply': () => import('../../').then(m => m.CommunityReply)
'Img': () => import('./../../index').then(m => m.Img),
'PostComment': () => import('../../').then(m => m.ProductCommunityComment),
'CommunityReply': () => import('../../').then(m => m.ProductCommunityReply)
},
props: {
id: {
Expand Down
10 changes: 8 additions & 2 deletions packages/hyper-ui/src/components/contribute/form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ export default {
type: Boolean,
default: false
},
value: Number,
defaultValue: Number,
value: {
type: [Number, String],
default: 0
},
defaultValue: {
type: [Number, String],
default: 0
},
currency: String
},
data() {
Expand Down
2 changes: 1 addition & 1 deletion packages/hyper-ui/src/components/contribute/pledge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default {
default: '$'
},
minPrice: {
type: String,
type: [Number, String],
default: null
},
title: {
Expand Down
1 change: 1 addition & 0 deletions packages/hyper-ui/src/components/contributor-box/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<script>
export default {
components: {
'Button': () => import('../../').then(m => m.Button),
'ProgressBar': () => import('../../').then(m => m.ProgressBar),
'Checkbox': () => import('../../').then(m => m.Checkbox)
},
Expand Down
3 changes: 2 additions & 1 deletion packages/hyper-ui/src/components/curator-review/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export default {
components: {
'Author': () => import('../../').then(m => m.Author),
'RatingStars': () => import('../../').then(m => m.RatingStars),
'Button': () => import('../../').then(m => m.Button)
'Button': () => import('../../').then(m => m.Button),
'Img': () => import('../../').then(m => m.Img),
},
props: {
review: {
Expand Down
67 changes: 35 additions & 32 deletions packages/hyper-ui/src/components/curator-reviews/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,42 +21,45 @@
</template>

<script>
export default {
components: {
'HeadingBar': () => import('../../').then(m => m.HeadingBar),
'CuratorReview': () => import('../../').then(m => m.CuratorReview)
export default {
components: {
'Button': () => import('../../').then(m => m.Button),
'HeadingBar': () => import('../../').then(m => m.HeadingBar),
'CuratorReview': () => import('../../').then(m => m.CuratorReview),
'Swiper': () => import('../../').then(m => m.Swiper),
'SwiperSlide': () => import('../../').then(m => m.SwiperSlide),
},
props: {
reviews: {
type: Array,
require: true
},
props: {
reviews: {
type: Array,
require: true
},
maxPerView: {
type: Number,
default: 3
}
},
data() {
return {
sliderOptions: {
slidesPerView: this.maxPerView,
spaceBetween: 15
}
}
},
computed: {
slider() {
return this.$refs.slider.swiper
maxPerView: {
type: Number,
default: 3
}
},
data() {
return {
sliderOptions: {
slidesPerView: this.maxPerView,
spaceBetween: 15
}
},
methods: {
showArrowsState(el, count) {
if (el.length > count) {
return true
}
return false
}
},
computed: {
slider() {
return this.$refs.slider.swiper
}
},
methods: {
showArrowsState(el, count) {
if (el.length > count) {
return true
}
return false
}
}
}
</script>

5 changes: 4 additions & 1 deletion packages/hyper-ui/src/components/download-block/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
alt="Logo" />
<Img
v-if="showPreview"
src="static/img/download-block-bg.png"
src="/img/download-block-bg.png"
class="absolute_img"
alt="Logo" />
</div>
Expand Down Expand Up @@ -74,6 +74,9 @@

<script>
export default {
components :{
'Button': () => import('../../').then(m => m.Button)
},
props: {
showPreview: {
type: Boolean,
Expand Down
1 change: 1 addition & 0 deletions packages/hyper-ui/src/components/download-popup/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<script>
export default {
components: {
'Button': () => import('../../').then(m => m.Button),
'Popup': () => import('../../').then(m => m.Popup),
'DownloadBlock': () => import('../../').then(m => m.DownloadBlock)
},
Expand Down
1 change: 1 addition & 0 deletions packages/hyper-ui/src/components/draggable-video/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<script>
export default {
components: {
'Button': () => import('../../').then(m => m.Button),
'Draggable': () => import('../../').then(m => m.Draggable)
},
props: {
Expand Down
1 change: 1 addition & 0 deletions packages/hyper-ui/src/components/emoji/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import { Picker, Emoji } from 'emoji-mart-vue'

export default {
components: {
'Button': () => import('../../').then(m => m.Button),
'EmojiPicker': Picker,
'Emoji': Emoji
},
Expand Down
Loading