Skip to content

Commit 4b0ea2d

Browse files
authored
Merge pull request #414 from hibiya-itchief/develop
Release 0.5.1
2 parents ddd25ca + f289bd2 commit 4b0ea2d

File tree

13 files changed

+482
-172
lines changed

13 files changed

+482
-172
lines changed

CHANGELOG.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
# quaint-app 変更履歴
22

3-
## Release 0.5.0 (2023/08/30)
3+
## Release 0.5.1 (2023/09/04)
4+
5+
- `/ticket` 提灯の追加含むバグおよびデザインを調整 #366
6+
- `/edit` 入力フォームの前回入力した内容を保持するように #383
7+
- `/groups` ブックマーク機能(旧お気に入り機能)の調整など #386
8+
- `/` アクセス案内を設置 #406
9+
- `/` 外部から入った際に祭徠の動画を表示するように #407
10+
- ハンバーガーメニューに白い背景を追加 #411
11+
- #316 の調整 #412
12+
13+
## Release 0.5.0 (2023/09/03)
414

515
- `/groups` 不要なページ遷移を除去 #330
6-
「デフォルト順」の並び替えを Nuxt generate 内で行うように#332
16+
- 「デフォルト順」の並び替えを Nuxt generate 内で行うように #332
717
- `/admin` をより使いやすく #339
818
- `/login` ログインボタンが画面外にはみださないように#346
919
- 学校アカウント以外は整理券の人数を選択できるように#348
@@ -41,7 +51,7 @@
4151

4252
- `/groups` タイトル・説明文を 1 行に収めるように #264
4353
- `/groups` 検索で大文字小文字を区別しないように #272
44-
- トップページに最低限の内容を追加 #278
54+
- `/` 最低限の内容を追加 #278
4555

4656
## Release 0.2.3 (2023/08/05)
4757

@@ -59,7 +69,7 @@
5969

6070
- `/groups` 一覧画面でサムネイル画像が表示されないバグを修正 #204
6171
- `/edit` 公演削除の確認 dialog 及び団体削除ボタンの v-icon 化 #209
62-
- head の title を「団体名+団体情報の編集」に #209
72+
- `/edit` head の title を「団体名+団体情報の編集」に #209
6373
- `/_groupId` 整理券取得ボタンより前に未ログインエラーを出すように #215
6474
- アカウントの owner 表示 #216
6575
- `/_groupId` 閲覧数を表示するように #219

layouts/default.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,11 @@ export default Vue.extend({
284284
285285
.hamburgermenu {
286286
position: relative; /* ボタン内側の基点となるためrelativeを指定 */
287+
background: #fff;
287288
cursor: pointer;
288289
width: 50px;
289290
height: 50px;
290-
border-radius: 5px;
291+
border-radius: 0 0 20px;
291292
}
292293
293294
/* ボタン内側 */

nuxt.config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ const nuxtConfig: NuxtConfig = {
8282
router: {
8383
base: '/',
8484
middleware: ['auth'],
85-
extendRoutes(routes, resolve) {
86-
routes.push({
87-
path: '*',
88-
component: resolve(__dirname, 'pages/404.vue'),
89-
})
90-
},
9185
},
9286

9387
// Global CSS: https://go.nuxtjs.dev/config-css
@@ -233,6 +227,7 @@ const nuxtConfig: NuxtConfig = {
233227
transpile: ['defu'],
234228
},
235229
generate: {
230+
fallback: true,
236231
async routes() {
237232
// emvSet.BASEURLの末尾にスラッシュがある場合は削除する
238233
const baseurl_without_slash =

pages/groups/_groupId/edit/index.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,13 @@ export default Vue.extend({
818818
}
819819
},
820820
async created() {
821+
// 入力フォームに現在の内容を提示
822+
this.change_title_input = this.group?.title ?? ''
823+
this.change_description_input = this.group?.description ?? ''
824+
this.change_twitter_url_input = this.group?.twitter_url ?? ''
825+
this.change_instagram_url_input = this.group?.instagram_url ?? ''
826+
this.change_stream_url_input = this.group?.stream_url ?? ''
827+
821828
this.hostname = location.host // data()のreturn()内で使うとエラーになるのでここで代入
822829
if (
823830
!(this.$auth.user?.groups as string[]).includes(this.userGroups.admin)

pages/groups/_groupId/index.vue

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@
8686
</div>
8787
</div>
8888
<v-btn
89-
v-if="IsFavorite(group)"
89+
v-if="is_bookmarked"
9090
icon
91-
class="pink--text"
92-
@click="removeFavorite(group)"
93-
><v-icon>mdi-heart</v-icon></v-btn
91+
color="sairai"
92+
@click="removeBookmark(group.id)"
93+
><v-icon>mdi-bookmark</v-icon></v-btn
9494
>
95-
<v-btn v-else icon @click="addFavorite(group)"
96-
><v-icon>mdi-heart-outline</v-icon></v-btn
95+
<v-btn v-else icon @click="addBookmark(group.id)"
96+
><v-icon>mdi-bookmark-outline</v-icon></v-btn
9797
>
9898
</v-card-actions>
9999

@@ -379,7 +379,8 @@ type Data = {
379379
ticket_person: number
380380
person_labels: any[]
381381
person_icons: any[]
382-
displayFavorite: number
382+
nowloading: boolean
383+
is_bookmarked: boolean
383384
listStock: number[]
384385
listTakenTickets: number[]
385386
view_count: number | string
@@ -430,7 +431,8 @@ export default Vue.extend({
430431
dialog: false,
431432
success_snackbar_link: undefined,
432433
error_snackbar_link: undefined,
433-
displayFavorite: 0,
434+
nowloading: true,
435+
is_bookmarked: false,
434436
listStock: [],
435437
listTakenTickets: [],
436438
view_count: '...',
@@ -522,32 +524,29 @@ export default Vue.extend({
522524
return this.$quaintUserRole(val.target, this.$auth.user)
523525
})
524526
},
525-
methods: {
526-
IsFavorite(group: Group) {
527-
if (this.displayFavorite === 0) {
528-
this.displayFavorite = 1
529-
return false
530-
}
531-
if (this.displayFavorite === 2) {
532-
return false
533-
}
534-
if (this.displayFavorite === 3) {
535-
return true
536-
}
537-
for (let i = 0; i < localStorage.length; i++) {
538-
if ('seiryofes.groups.favorite.' + group?.id === localStorage.key(i)) {
539-
return true
540-
}
527+
528+
mounted() {
529+
for (let i = 0; i < localStorage.length; i++) {
530+
if (
531+
'seiryofes.groups.favorite.' + this.group?.id ===
532+
localStorage.key(i)
533+
) {
534+
// お気に入りならtrue
535+
this.is_bookmarked = true
536+
break
541537
}
542-
return false
543-
},
544-
addFavorite(group: Group) {
545-
localStorage.setItem('seiryofes.groups.favorite.' + group?.id, group?.id)
546-
this.displayFavorite = 3
538+
}
539+
this.nowloading = false
540+
},
541+
542+
methods: {
543+
addBookmark(id: string) {
544+
localStorage.setItem('seiryofes.groups.favorite.' + id, id)
545+
this.is_bookmarked = true
547546
},
548-
removeFavorite(group: Group) {
549-
localStorage.removeItem('seiryofes.groups.favorite.' + group?.id)
550-
this.displayFavorite = 2
547+
removeBookmark(id: string) {
548+
localStorage.removeItem('seiryofes.groups.favorite.' + id)
549+
this.is_bookmarked = false
551550
},
552551
checkStock(index: number) {
553552
return this.listStock[index]

0 commit comments

Comments
 (0)