@geckou/ui-vue 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/components/ArticleList/Card/Artistic.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Entertainment.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Gallery.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Grid.vue.d.ts +11 -0
- package/dist/components/ArticleList/Card/News.vue.d.ts +9 -0
- package/dist/components/ArticleList/Card/Rounded.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Row.vue.d.ts +9 -0
- package/dist/components/ArticleList/Card/Simple.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Standard.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Tile.vue.d.ts +10 -0
- package/dist/components/ArticleList/GenericArticleList.vue.d.ts +11 -0
- package/dist/components/ArticleList/List/Artistic.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Entertainment.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Gallery.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Grid.vue.d.ts +11 -0
- package/dist/components/ArticleList/List/News.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Rounded.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Row.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Simple.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Standard.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Tile.vue.d.ts +8 -0
- package/dist/components/ArticleList/Parts/AuthorInfo.vue.d.ts +31 -0
- package/dist/components/ArticleList/Parts/CardContainer.vue.d.ts +20 -0
- package/dist/components/ArticleList/Parts/CardHeading.vue.d.ts +12 -0
- package/dist/components/ArticleList/Parts/CategoryList.vue.d.ts +19 -0
- package/dist/components/ArticleList/Parts/ExcerptText.vue.d.ts +12 -0
- package/dist/components/ArticleList/Parts/MetadataList.vue.d.ts +32 -0
- package/dist/components/ArticleList/Parts/NoImage.vue.d.ts +2 -0
- package/dist/components/ArticleList/Parts/PostedDate.vue.d.ts +14 -0
- package/dist/components/ArticleList/Parts/TagList.vue.d.ts +18 -0
- package/dist/components/ArticleList/Parts/ThumbnailImage.vue.d.ts +17 -0
- package/dist/components/BasicButton.vue.d.ts +26 -0
- package/dist/components/CheckBox.vue.d.ts +34 -0
- package/dist/components/CheckBoxes.vue.d.ts +18 -0
- package/dist/components/CheckButton.vue.d.ts +31 -0
- package/dist/components/DatePicker.vue.d.ts +27 -0
- package/dist/components/DateRangePicker.vue.d.ts +31 -0
- package/dist/components/DateSelector.vue.d.ts +17 -0
- package/dist/components/DropdownUi.vue.d.ts +37 -0
- package/dist/components/ErrorMessage.vue.d.ts +9 -0
- package/dist/components/Icon/CalendarIcon.vue.d.ts +2 -0
- package/dist/components/Icon/CheckIcon.vue.d.ts +2 -0
- package/dist/components/Icon/CloseIcon.vue.d.ts +2 -0
- package/dist/components/Icon/Folder.vue.d.ts +2 -0
- package/dist/components/Icon/Image.vue.d.ts +2 -0
- package/dist/components/Icon/KeyboardArrowDownIcon.vue.d.ts +2 -0
- package/dist/components/Icon/Tag.vue.d.ts +2 -0
- package/dist/components/InputBox.vue.d.ts +27 -0
- package/dist/components/InputGroup.vue.d.ts +17 -0
- package/dist/components/LabeledCheckbox.vue.d.ts +20 -0
- package/dist/components/LabeledFieldset.vue.d.ts +21 -0
- package/dist/components/LoadingSpinner.vue.d.ts +2 -0
- package/dist/components/ModalBox.vue.d.ts +27 -0
- package/dist/components/PopupBox.vue.d.ts +30 -0
- package/dist/components/RadioButtons.vue.d.ts +20 -0
- package/dist/components/SelectBox.vue.d.ts +37 -0
- package/dist/components/SlideDownUi.vue.d.ts +37 -0
- package/dist/components/TabUI.vue.d.ts +52 -0
- package/dist/components/TextArea.vue.d.ts +33 -0
- package/dist/components/TextBox.vue.d.ts +44 -0
- package/dist/components/TextButton.vue.d.ts +10 -0
- package/dist/components/ToggleButton.vue.d.ts +23 -0
- package/dist/const/index.d.ts +1 -0
- package/dist/const/list-theme.d.ts +62 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +3518 -0
- package/dist/scripts/form-validation-manager.d.ts +30 -0
- package/dist/scripts/unique-id.d.ts +1 -0
- package/dist/scripts/use-click-outside.d.ts +13 -0
- package/dist/scripts/utils.d.ts +15 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +48 -77
- package/package.json +16 -8
- package/dist/assets/scss/functions.scss +0 -6
- package/dist/assets/scss/mixin.scss +0 -33
- package/dist/components/ArticleList/Card/Artistic.vue +0 -311
- package/dist/components/ArticleList/Card/Entertainment.vue +0 -245
- package/dist/components/ArticleList/Card/Gallery.vue +0 -255
- package/dist/components/ArticleList/Card/Grid.vue +0 -248
- package/dist/components/ArticleList/Card/News.vue +0 -151
- package/dist/components/ArticleList/Card/Rounded.vue +0 -155
- package/dist/components/ArticleList/Card/Row.vue +0 -168
- package/dist/components/ArticleList/Card/Simple.vue +0 -233
- package/dist/components/ArticleList/Card/Standard.vue +0 -188
- package/dist/components/ArticleList/Card/Tile.vue +0 -172
- package/dist/components/ArticleList/GenericArticleList.vue +0 -143
- package/dist/components/ArticleList/List/Artistic.vue +0 -24
- package/dist/components/ArticleList/List/Entertainment.vue +0 -24
- package/dist/components/ArticleList/List/Gallery.vue +0 -24
- package/dist/components/ArticleList/List/Grid.vue +0 -216
- package/dist/components/ArticleList/List/News.vue +0 -24
- package/dist/components/ArticleList/List/Rounded.vue +0 -24
- package/dist/components/ArticleList/List/Row.vue +0 -24
- package/dist/components/ArticleList/List/Simple.vue +0 -24
- package/dist/components/ArticleList/List/Standard.vue +0 -24
- package/dist/components/ArticleList/List/Tile.vue +0 -24
- package/dist/components/ArticleList/Parts/AuthorInfo.vue +0 -100
- package/dist/components/ArticleList/Parts/CardContainer.vue +0 -23
- package/dist/components/ArticleList/Parts/CardHeading.vue +0 -43
- package/dist/components/ArticleList/Parts/CategoryList.vue +0 -41
- package/dist/components/ArticleList/Parts/ExcerptText.vue +0 -43
- package/dist/components/ArticleList/Parts/MetadataList.vue +0 -120
- package/dist/components/ArticleList/Parts/NoImage.vue +0 -36
- package/dist/components/ArticleList/Parts/PostedDate.vue +0 -41
- package/dist/components/ArticleList/Parts/TagList.vue +0 -41
- package/dist/components/ArticleList/Parts/ThumbnailImage.vue +0 -85
- package/dist/components/BasicButton.vue +0 -143
- package/dist/components/CheckBox.vue +0 -140
- package/dist/components/CheckBoxes.vue +0 -101
- package/dist/components/CheckButton.vue +0 -127
- package/dist/components/DatePicker.vue +0 -234
- package/dist/components/DateRangePicker.vue +0 -85
- package/dist/components/DateSelector.vue +0 -273
- package/dist/components/DropdownUi.vue +0 -118
- package/dist/components/ErrorMessage.vue +0 -61
- package/dist/components/Icon/CalendarIcon.vue +0 -8
- package/dist/components/Icon/CheckIcon.vue +0 -8
- package/dist/components/Icon/CloseIcon.vue +0 -8
- package/dist/components/Icon/Folder.vue +0 -8
- package/dist/components/Icon/Image.vue +0 -14
- package/dist/components/Icon/KeyboardArrowDownIcon.vue +0 -8
- package/dist/components/Icon/Tag.vue +0 -8
- package/dist/components/InputBox.vue +0 -134
- package/dist/components/InputGroup.vue +0 -41
- package/dist/components/LabeledCheckbox.vue +0 -82
- package/dist/components/LabeledFieldset.vue +0 -41
- package/dist/components/LoadingSpinner.vue +0 -56
- package/dist/components/ModalBox.vue +0 -192
- package/dist/components/PopupBox.vue +0 -93
- package/dist/components/RadioButtons.vue +0 -163
- package/dist/components/SelectBox.vue +0 -166
- package/dist/components/SlideDownUi.vue +0 -123
- package/dist/components/TabUI.vue +0 -123
- package/dist/components/TextArea.vue +0 -115
- package/dist/components/TextBox.vue +0 -111
- package/dist/components/TextButton.vue +0 -47
- package/dist/components/ToggleButton.vue +0 -179
- package/dist/const/index.ts +0 -2
- package/dist/const/list-theme.ts +0 -62
- package/dist/index.ts +0 -126
- package/dist/scripts/form-validation-manager.ts +0 -63
- package/dist/scripts/utils.ts +0 -44
- package/dist/types/custom.d.ts +0 -1
- package/dist/types/vue-shim.d.ts +0 -5
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { returnAuthor } from '../../../scripts/utils'
|
|
3
|
-
import type {
|
|
4
|
-
Article,
|
|
5
|
-
Category,
|
|
6
|
-
PostConfig,
|
|
7
|
-
} from '../../../types'
|
|
8
|
-
import CardContainer from '../../../components/ArticleList/Parts/CardContainer.vue'
|
|
9
|
-
import ThumbnailImage from '../../../components/ArticleList/Parts/ThumbnailImage.vue'
|
|
10
|
-
import AuthorInfo from '../../../components/ArticleList/Parts/AuthorInfo.vue'
|
|
11
|
-
import CardHeading from '../../../components/ArticleList/Parts/CardHeading.vue'
|
|
12
|
-
import CategoryList from '../../../components/ArticleList/Parts/CategoryList.vue'
|
|
13
|
-
import TagList from '../../../components/ArticleList/Parts/TagList.vue'
|
|
14
|
-
import PostedDate from '../../../components/ArticleList/Parts/PostedDate.vue'
|
|
15
|
-
import ExcerptText from '../../../components/ArticleList/Parts/ExcerptText.vue'
|
|
16
|
-
|
|
17
|
-
defineProps<{
|
|
18
|
-
article: Article
|
|
19
|
-
path: string
|
|
20
|
-
isPickUpItem: boolean
|
|
21
|
-
postConfig: PostConfig
|
|
22
|
-
categories: Category[]
|
|
23
|
-
}>()
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<template>
|
|
27
|
-
<CardContainer
|
|
28
|
-
v-if="article"
|
|
29
|
-
:class="[$style.container, { [$style.pickup]: isPickUpItem} ]"
|
|
30
|
-
:path="path"
|
|
31
|
-
>
|
|
32
|
-
<ThumbnailImage
|
|
33
|
-
:article="article"
|
|
34
|
-
:aspectRatio="{
|
|
35
|
-
desktop: isPickUpItem ? '2.85/1' : '4/3',
|
|
36
|
-
tablet : isPickUpItem ? '2.85/1' : '4/3',
|
|
37
|
-
mobile : '4/3',
|
|
38
|
-
}"
|
|
39
|
-
:class="$style.thumbnail"
|
|
40
|
-
style="grid-area: thumbnail;"
|
|
41
|
-
/>
|
|
42
|
-
<CardHeading
|
|
43
|
-
:heading="article.title.rendered"
|
|
44
|
-
:class="$style.heading"
|
|
45
|
-
style="grid-area: heading;"
|
|
46
|
-
/>
|
|
47
|
-
<TagList
|
|
48
|
-
v-if="postConfig.tag"
|
|
49
|
-
:article="article"
|
|
50
|
-
:label="{
|
|
51
|
-
color : 'var(--gray)',
|
|
52
|
-
fontSize: 'smaller',
|
|
53
|
-
}"
|
|
54
|
-
:class="$style.tag"
|
|
55
|
-
style="grid-area: tag;"
|
|
56
|
-
/>
|
|
57
|
-
<ExcerptText
|
|
58
|
-
:excerpt="article.excerpt.rendered"
|
|
59
|
-
:class="$style.excerpt"
|
|
60
|
-
style="grid-area: excerpt;"
|
|
61
|
-
/>
|
|
62
|
-
<PostedDate
|
|
63
|
-
:date="article.date"
|
|
64
|
-
:class="$style.date"
|
|
65
|
-
formatString="yy.M.d"
|
|
66
|
-
color="var(--gray)"
|
|
67
|
-
style="grid-area: date;"
|
|
68
|
-
/>
|
|
69
|
-
<AuthorInfo
|
|
70
|
-
v-if="postConfig.author && returnAuthor(article)"
|
|
71
|
-
:avatarUrls="returnAuthor(article)?.avatar_urls"
|
|
72
|
-
:name="returnAuthor(article)?.name"
|
|
73
|
-
:class="$style.author"
|
|
74
|
-
style="grid-area: author;"
|
|
75
|
-
/>
|
|
76
|
-
<CategoryList
|
|
77
|
-
v-if="postConfig.category && article.categories"
|
|
78
|
-
:categoryIds="article.categories"
|
|
79
|
-
:categoryData="categories"
|
|
80
|
-
:label="{
|
|
81
|
-
backgroundColor: 'var(--main-color)',
|
|
82
|
-
color : 'var(--white)',
|
|
83
|
-
fontSize : 'small',
|
|
84
|
-
}"
|
|
85
|
-
:class="$style.category"
|
|
86
|
-
style="grid-area: category;"
|
|
87
|
-
/>
|
|
88
|
-
</CardContainer>
|
|
89
|
-
</template>
|
|
90
|
-
|
|
91
|
-
<style lang="scss" module>
|
|
92
|
-
@use '../../../assets/scss/mixin' as *;
|
|
93
|
-
|
|
94
|
-
.container {
|
|
95
|
-
grid-template-columns: 1fr 1fr;
|
|
96
|
-
grid-template-rows : 0 auto auto auto 1fr auto auto;
|
|
97
|
-
grid-template-areas :
|
|
98
|
-
'category category'
|
|
99
|
-
'thumbnail thumbnail'
|
|
100
|
-
'heading heading'
|
|
101
|
-
'tag tag'
|
|
102
|
-
'excerpt excerpt'
|
|
103
|
-
'date author';
|
|
104
|
-
|
|
105
|
-
&:hover {
|
|
106
|
-
.thumbnail {
|
|
107
|
-
opacity: .8;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&.pickup {
|
|
112
|
-
@include media('tablet') {
|
|
113
|
-
grid-template-rows: auto 0 1fr auto auto auto auto;
|
|
114
|
-
aspect-ratio : 2.85/1;
|
|
115
|
-
position : relative;
|
|
116
|
-
|
|
117
|
-
> * {
|
|
118
|
-
&:not(.thumbnail):not(.category) {
|
|
119
|
-
position : relative;
|
|
120
|
-
padding-inline: var(--sp-medium);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.date,
|
|
125
|
-
.author {
|
|
126
|
-
padding-block-end: var(--sp-medium);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.thumbnail {
|
|
130
|
-
width : 100%;
|
|
131
|
-
position: absolute;
|
|
132
|
-
top : 0;
|
|
133
|
-
left : 0;
|
|
134
|
-
margin : 0;
|
|
135
|
-
|
|
136
|
-
&::after {
|
|
137
|
-
content : '';
|
|
138
|
-
display : block;
|
|
139
|
-
width : 100%;
|
|
140
|
-
height : 100%;
|
|
141
|
-
position : absolute;
|
|
142
|
-
top : 0;
|
|
143
|
-
left : 0;
|
|
144
|
-
mix-blend-mode : screen;
|
|
145
|
-
background-image: linear-gradient(
|
|
146
|
-
to bottom,
|
|
147
|
-
rgba(255, 255, 255, 0) 38%,
|
|
148
|
-
rgba(255, 255, 255, .9) 100%
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.heading {
|
|
154
|
-
align-self: end;
|
|
155
|
-
font-size : xx-large;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.thumbnail {
|
|
162
|
-
margin-block-end: var(--sp-medium);
|
|
163
|
-
transition : opacity var(--animation-duration);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.category {
|
|
167
|
-
position: absolute;
|
|
168
|
-
top : 0;
|
|
169
|
-
left : 0;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.heading {
|
|
173
|
-
margin-block-end: var(--sp-min);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.excerpt {
|
|
177
|
-
margin-block-start: var(--sp-medium);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.author {
|
|
181
|
-
justify-content: flex-end;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.date,
|
|
185
|
-
.author {
|
|
186
|
-
margin-block-start: var(--sp-medium);
|
|
187
|
-
}
|
|
188
|
-
</style>
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { returnAuthor } from '../../../scripts/utils'
|
|
3
|
-
import type {
|
|
4
|
-
Article,
|
|
5
|
-
Category,
|
|
6
|
-
PostConfig,
|
|
7
|
-
} from '../../../types'
|
|
8
|
-
import CardContainer from '../../../components/ArticleList/Parts/CardContainer.vue'
|
|
9
|
-
import ThumbnailImage from '../../../components/ArticleList/Parts/ThumbnailImage.vue'
|
|
10
|
-
import AuthorInfo from '../../../components/ArticleList/Parts/AuthorInfo.vue'
|
|
11
|
-
import CardHeading from '../../../components/ArticleList/Parts/CardHeading.vue'
|
|
12
|
-
import CategoryList from '../../../components/ArticleList/Parts/CategoryList.vue'
|
|
13
|
-
import TagList from '../../../components/ArticleList/Parts/TagList.vue'
|
|
14
|
-
import PostedDate from '../../../components/ArticleList/Parts/PostedDate.vue'
|
|
15
|
-
import ExcerptText from '../../../components/ArticleList/Parts/ExcerptText.vue'
|
|
16
|
-
|
|
17
|
-
defineProps<{
|
|
18
|
-
article: Article
|
|
19
|
-
path: string
|
|
20
|
-
isPickUpItem: boolean
|
|
21
|
-
postConfig: PostConfig
|
|
22
|
-
categories: Category[]
|
|
23
|
-
}>()
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<template>
|
|
27
|
-
<CardContainer
|
|
28
|
-
v-if="article"
|
|
29
|
-
:class="[$style.container, { [$style.pickup]: isPickUpItem} ]"
|
|
30
|
-
:path="path"
|
|
31
|
-
>
|
|
32
|
-
<ThumbnailImage
|
|
33
|
-
:article="article"
|
|
34
|
-
:aspectRatio="{
|
|
35
|
-
desktop: isPickUpItem ? '21/9' : '4/3',
|
|
36
|
-
tablet : '4/3',
|
|
37
|
-
mobile : '4/3',
|
|
38
|
-
}"
|
|
39
|
-
:class="$style.thumbnail"
|
|
40
|
-
style="grid-area: thumbnail;"
|
|
41
|
-
/>
|
|
42
|
-
<PostedDate
|
|
43
|
-
:date="article.date"
|
|
44
|
-
formatString="yy.M.d"
|
|
45
|
-
:class="$style.date"
|
|
46
|
-
style="grid-area: date;"
|
|
47
|
-
/>
|
|
48
|
-
<CategoryList
|
|
49
|
-
v-if="postConfig.category && article.categories"
|
|
50
|
-
:categoryIds="article.categories"
|
|
51
|
-
:categoryData="categories"
|
|
52
|
-
:label="{
|
|
53
|
-
color : 'var(--main-color)',
|
|
54
|
-
fontSize: 'small',
|
|
55
|
-
}"
|
|
56
|
-
:class="$style.category"
|
|
57
|
-
style="grid-area: category;"
|
|
58
|
-
/>
|
|
59
|
-
<CardHeading
|
|
60
|
-
:heading="article.title.rendered"
|
|
61
|
-
:class="$style.heading"
|
|
62
|
-
style="grid-area: heading;"
|
|
63
|
-
/>
|
|
64
|
-
<ExcerptText
|
|
65
|
-
:excerpt="article.excerpt.rendered"
|
|
66
|
-
:class="$style.excerpt"
|
|
67
|
-
style="grid-area: excerpt;"
|
|
68
|
-
/>
|
|
69
|
-
<TagList
|
|
70
|
-
v-if="postConfig.tag"
|
|
71
|
-
:article="article"
|
|
72
|
-
:label="{
|
|
73
|
-
color : 'var(--gray)',
|
|
74
|
-
fontSize: 'small',
|
|
75
|
-
}"
|
|
76
|
-
:class="$style.tag"
|
|
77
|
-
delimiter="/"
|
|
78
|
-
style="grid-area: tag;"
|
|
79
|
-
/>
|
|
80
|
-
<AuthorInfo
|
|
81
|
-
v-if="postConfig.author && returnAuthor(article)"
|
|
82
|
-
:name="returnAuthor(article)?.name"
|
|
83
|
-
:class="$style.author"
|
|
84
|
-
:text="{
|
|
85
|
-
color : 'var(--gray)',
|
|
86
|
-
fontWeight : 'bold',
|
|
87
|
-
preposition: 'by',
|
|
88
|
-
}"
|
|
89
|
-
style="grid-area: author;"
|
|
90
|
-
/>
|
|
91
|
-
</CardContainer>
|
|
92
|
-
</template>
|
|
93
|
-
|
|
94
|
-
<style lang="scss" module>
|
|
95
|
-
@use '../../../assets/scss/mixin' as *;
|
|
96
|
-
|
|
97
|
-
.container {
|
|
98
|
-
grid-template-columns: auto 1fr;
|
|
99
|
-
grid-template-rows : fit-content(55%) auto auto 1fr auto auto;
|
|
100
|
-
grid-template-areas :
|
|
101
|
-
'thumbnail thumbnail'
|
|
102
|
-
'date category'
|
|
103
|
-
'heading heading'
|
|
104
|
-
'excerpt excerpt'
|
|
105
|
-
'tag tag'
|
|
106
|
-
'author author';
|
|
107
|
-
box-shadow: 0 0 1px 0 rgba(var(--black-rgb), .4);
|
|
108
|
-
height : 100%;
|
|
109
|
-
transition: box-shadow var(--animation-duration);
|
|
110
|
-
|
|
111
|
-
&:hover {
|
|
112
|
-
box-shadow: 0 0 var(--sp-medium) 2px rgba(var(--black-rgb), .2);
|
|
113
|
-
|
|
114
|
-
.thumbnail {
|
|
115
|
-
opacity: .8;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&.pickup {
|
|
120
|
-
@include media('tablet') {
|
|
121
|
-
grid-template-rows : auto auto 1fr auto auto;
|
|
122
|
-
grid-template-columns: fit-content(50%) auto 1fr;
|
|
123
|
-
grid-template-areas :
|
|
124
|
-
'thumbnail date category'
|
|
125
|
-
'thumbnail heading heading'
|
|
126
|
-
'thumbnail excerpt excerpt'
|
|
127
|
-
'thumbnail tag tag'
|
|
128
|
-
'thumbnail author author';
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@include media('desktop') {
|
|
132
|
-
grid-template-columns: calc(66.666% - 2 * var(--sp-small)) auto 1fr;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.thumbnail {
|
|
138
|
-
transition: opacity var(--animation-duration);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.heading,
|
|
142
|
-
.tag,
|
|
143
|
-
.excerpt,
|
|
144
|
-
.author {
|
|
145
|
-
margin-block : var(--sp-small);
|
|
146
|
-
padding-inline: var(--sp-large);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.date,
|
|
150
|
-
.category {
|
|
151
|
-
padding : var(--sp-large);
|
|
152
|
-
padding-bottom: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.date {
|
|
156
|
-
padding-right: var(--sp-min);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.category {
|
|
160
|
-
padding-left: var(--sp-min);
|
|
161
|
-
|
|
162
|
-
&::before {
|
|
163
|
-
content : '/';
|
|
164
|
-
color : var(--gray);
|
|
165
|
-
font-size: small;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.author {
|
|
170
|
-
padding-bottom: var(--sp-large);
|
|
171
|
-
}
|
|
172
|
-
</style>
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
|
|
3
|
-
import type {
|
|
4
|
-
Article,
|
|
5
|
-
Category,
|
|
6
|
-
ListSettings,
|
|
7
|
-
} from '../../types'
|
|
8
|
-
import { computed } from 'vue'
|
|
9
|
-
import { returnArticlePath, normalizePostConfig } from '../../scripts/utils'
|
|
10
|
-
import { LIST_THEME } from '../../const/list-theme'
|
|
11
|
-
import StandardCard from '../../components/ArticleList/Card/Standard.vue'
|
|
12
|
-
import RoundedCard from '../../components/ArticleList/Card/Rounded.vue'
|
|
13
|
-
import ArtisticCard from '../../components/ArticleList/Card/Artistic.vue'
|
|
14
|
-
import TileCard from '../../components/ArticleList/Card/Tile.vue'
|
|
15
|
-
import SimpleCard from '../../components/ArticleList/Card/Simple.vue'
|
|
16
|
-
import RowCard from '../../components/ArticleList/Card/Row.vue'
|
|
17
|
-
import NewsCard from '../../components/ArticleList/Card/News.vue'
|
|
18
|
-
import EntertainmentCard from '../../components/ArticleList/Card/Entertainment.vue'
|
|
19
|
-
import GalleryCard from '../../components/ArticleList/Card/Gallery.vue'
|
|
20
|
-
|
|
21
|
-
const props = defineProps<{
|
|
22
|
-
articles: Article[]
|
|
23
|
-
theme: keyof typeof LIST_THEME
|
|
24
|
-
categories: Category[]
|
|
25
|
-
columnNumber: number
|
|
26
|
-
settings: ListSettings
|
|
27
|
-
}>()
|
|
28
|
-
|
|
29
|
-
// settings は親から動的に差し替えられるため computed で参照する
|
|
30
|
-
const domainToUse = computed(() => props.settings.domainToUse)
|
|
31
|
-
const isEnabledPickUp = computed(() => props.settings.isEnabledPickUp)
|
|
32
|
-
const postConfig = computed(() => normalizePostConfig(props.settings.postConfig))
|
|
33
|
-
|
|
34
|
-
const listItem = computed(() => {
|
|
35
|
-
switch (props.theme) {
|
|
36
|
-
case 'standard':
|
|
37
|
-
return StandardCard
|
|
38
|
-
case 'rounded':
|
|
39
|
-
return RoundedCard
|
|
40
|
-
case 'artistic':
|
|
41
|
-
return ArtisticCard
|
|
42
|
-
case 'tile':
|
|
43
|
-
return TileCard
|
|
44
|
-
case 'simple':
|
|
45
|
-
return SimpleCard
|
|
46
|
-
case 'row':
|
|
47
|
-
return RowCard
|
|
48
|
-
case 'news':
|
|
49
|
-
return NewsCard
|
|
50
|
-
case 'gallery':
|
|
51
|
-
return GalleryCard
|
|
52
|
-
case 'entertainment':
|
|
53
|
-
return EntertainmentCard
|
|
54
|
-
default:
|
|
55
|
-
return StandardCard
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
</script>
|
|
59
|
-
|
|
60
|
-
<template>
|
|
61
|
-
<ul
|
|
62
|
-
:style="{
|
|
63
|
-
['--column-number']: columnNumber,
|
|
64
|
-
['--tablet-column-number']: columnNumber - 1 ? columnNumber - 1 : 1,
|
|
65
|
-
}"
|
|
66
|
-
:class="[$style.list, {[$style.pickup]: isEnabledPickUp}]"
|
|
67
|
-
>
|
|
68
|
-
<li
|
|
69
|
-
v-for="(article, index) in articles"
|
|
70
|
-
:key="article.id"
|
|
71
|
-
:style="{animationDelay: `${Number(index) * .1}s`}"
|
|
72
|
-
>
|
|
73
|
-
<component
|
|
74
|
-
:is="listItem"
|
|
75
|
-
:path="returnArticlePath(postConfig, domainToUse, article.id)"
|
|
76
|
-
:article="article"
|
|
77
|
-
:isPickUpItem="Number(index) === 0 && isEnabledPickUp"
|
|
78
|
-
:postConfig="postConfig"
|
|
79
|
-
:categories="categories"
|
|
80
|
-
/>
|
|
81
|
-
</li>
|
|
82
|
-
</ul>
|
|
83
|
-
</template>
|
|
84
|
-
|
|
85
|
-
<style lang="scss" module>
|
|
86
|
-
@use '../../assets/scss/mixin' as *;
|
|
87
|
-
|
|
88
|
-
.list {
|
|
89
|
-
--list-gap : var(--sp-large);
|
|
90
|
-
display : grid;
|
|
91
|
-
grid-template-rows: 1fr;
|
|
92
|
-
gap : var(--list-gap);
|
|
93
|
-
width : 100%;
|
|
94
|
-
|
|
95
|
-
@keyframes fadeIn {
|
|
96
|
-
from {
|
|
97
|
-
opacity: 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
to {
|
|
101
|
-
opacity: 1;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@include media('mobile') {
|
|
106
|
-
grid-template-columns : repeat(auto-fit, 100%);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@include media('tablet') {
|
|
110
|
-
grid-template-columns : repeat(auto-fit, calc((100% - var(--list-gap) * (var(--tablet-column-number) - 1)) / var(--tablet-column-number)));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@include media('desktop') {
|
|
114
|
-
grid-template-columns : repeat(auto-fit, calc((100% - var(--list-gap) * (var(--column-number) - 1)) / var(--column-number)));
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
> li {
|
|
118
|
-
opacity : 0;
|
|
119
|
-
animation-name : fadeIn;
|
|
120
|
-
animation-duration : 1s;
|
|
121
|
-
animation-timing-function: ease-out;
|
|
122
|
-
animation-fill-mode : forwards;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&.pickup {
|
|
126
|
-
> li {
|
|
127
|
-
&:first-child {
|
|
128
|
-
@include media('mobile') {
|
|
129
|
-
grid-column: 1;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@include media('tablet') {
|
|
133
|
-
grid-column: span var(--tablet-column-number);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@include media('desktop') {
|
|
137
|
-
grid-column: span var(--column-number);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
</style>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type {
|
|
3
|
-
Article,
|
|
4
|
-
Category,
|
|
5
|
-
ListSettings,
|
|
6
|
-
} from '../../../types'
|
|
7
|
-
import GenericArticleList from '../../../components/ArticleList/GenericArticleList.vue'
|
|
8
|
-
|
|
9
|
-
defineProps<{
|
|
10
|
-
articles: Article[]
|
|
11
|
-
categories: Category[]
|
|
12
|
-
settings: ListSettings
|
|
13
|
-
}>()
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<template>
|
|
17
|
-
<GenericArticleList
|
|
18
|
-
theme="artistic"
|
|
19
|
-
:columnNumber="3"
|
|
20
|
-
:articles="articles"
|
|
21
|
-
:categories="categories"
|
|
22
|
-
:settings="settings"
|
|
23
|
-
/>
|
|
24
|
-
</template>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type {
|
|
3
|
-
Article,
|
|
4
|
-
Category,
|
|
5
|
-
ListSettings,
|
|
6
|
-
} from '../../../types'
|
|
7
|
-
import GenericArticleList from '../../../components/ArticleList/GenericArticleList.vue'
|
|
8
|
-
|
|
9
|
-
defineProps<{
|
|
10
|
-
articles: Article[]
|
|
11
|
-
categories: Category[]
|
|
12
|
-
settings: ListSettings
|
|
13
|
-
}>()
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<template>
|
|
17
|
-
<GenericArticleList
|
|
18
|
-
theme="entertainment"
|
|
19
|
-
:columnNumber="3"
|
|
20
|
-
:articles="articles"
|
|
21
|
-
:categories="categories"
|
|
22
|
-
:settings="settings"
|
|
23
|
-
/>
|
|
24
|
-
</template>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type {
|
|
3
|
-
Article,
|
|
4
|
-
Category,
|
|
5
|
-
ListSettings,
|
|
6
|
-
} from '../../../types'
|
|
7
|
-
import GenericArticleList from '../../../components/ArticleList/GenericArticleList.vue'
|
|
8
|
-
|
|
9
|
-
defineProps<{
|
|
10
|
-
articles: Article[]
|
|
11
|
-
categories: Category[]
|
|
12
|
-
settings: ListSettings
|
|
13
|
-
}>()
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<template>
|
|
17
|
-
<GenericArticleList
|
|
18
|
-
theme="gallery"
|
|
19
|
-
:columnNumber="3"
|
|
20
|
-
:articles="articles"
|
|
21
|
-
:categories="categories"
|
|
22
|
-
:settings="settings"
|
|
23
|
-
/>
|
|
24
|
-
</template>
|