File tree Expand file tree Collapse file tree 6 files changed +28
-2
lines changed
Expand file tree Collapse file tree 6 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1+ # 必要に応じてコピーして使用
2+ # https://q.trap.jp/channels/ の後ろに続くパスを指定してください
3+ VITE_CHANNEL_PATH = event/gasshuku/staff
Original file line number Diff line number Diff line change 1+ # 本番環境の設定(vite build 時に読み込まれる)
2+ # https://q.trap.jp/channels/ の後ろに続くパスを指定してください
3+ VITE_CHANNEL_PATH = event/gasshuku/staff
Original file line number Diff line number Diff line change 1+ # ステージング環境の設定(`npm run dev:staging` で読み込まれる)
2+ # https://q.trap.jp/channels/ の後ろに続くパスを指定してください
3+ VITE_CHANNEL_PATH = event/gasshuku/staff
Original file line number Diff line number Diff line change @@ -30,6 +30,6 @@ coverage
3030
3131* .tsbuildinfo
3232
33- # .env
33+ .env
3434
3535dev-dist /
Original file line number Diff line number Diff line change 11/// <reference types="vite/client" />
2+
3+ interface ImportMetaEnv {
4+ readonly VITE_CHANNEL_PATH : string
5+ }
6+
7+ interface ImportMeta {
8+ readonly env : ImportMetaEnv
9+ }
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ onMounted(async () => {
4848onBeforeUnmount (() => {
4949 stop ()
5050})
51+
52+ // traQ チャンネルの URL(環境変数からパスを参照)
53+ const channelUrl = computed (() => ` https://q.trap.jp/channels/${import .meta .env .VITE_CHANNEL_PATH } ` )
5154 </script >
5255
5356<template >
@@ -68,7 +71,13 @@ onBeforeUnmount(() => {
6871 />
6972 </div >
7073 <div class =" d-flex justify-center mt-2" >
71- <v-btn variant =" flat" :class =" $style.shadow" >
74+ <v-btn
75+ variant =" flat"
76+ :class =" $style.shadow"
77+ :href =" channelUrl"
78+ target =" _blank"
79+ rel =" noopener noreferrer"
80+ >
7281 <div class =" d-flex align-center" >
7382 <img src =" /src/assets/traq.svg" alt =" traQ" height =" 20" class =" mr-1" />
7483 <div :class =" $style.buttonText" >traQ で連絡する</div >
You can’t perform that action at this time.
0 commit comments