Skip to content

Commit 9cbc931

Browse files
authored
chore: unflag event page (#936)
1 parent c3da1fd commit 9cbc931

File tree

6 files changed

+3
-17
lines changed

6 files changed

+3
-17
lines changed

app/components/footer/VFFooter.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ import Logo from "~icons/logo/logo";
1212
1313
const localePath = useLocalePath();
1414
const { t } = useI18n();
15-
16-
// TODO: イベントページ正式公開後は削除
17-
const isEventFeatureEnabled = __FEATURE_EVENT__;
1815
</script>
1916

2017
<!-- eslint-disable @intlify/vue-i18n/no-raw-text -->
@@ -86,7 +83,7 @@ const isEventFeatureEnabled = __FEATURE_EVENT__;
8683
</ul>
8784

8885
<ul class="other-links">
89-
<li :class="{ hidden: !isEventFeatureEnabled }">
86+
<li>
9087
<NuxtLink :to="localePath('/related-events')">{{
9188
t("relatedEvents.sectionTitle")
9289
}}</NuxtLink>

app/layouts/default.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const menuItems = computed<MenuItemProps[]>(() =>
5050
id: HOME_HEADING_ID.event,
5151
label: "Event",
5252
routeName: localeRoute({ name: "event" }).name,
53-
disabled: !__FEATURE_EVENT__,
5453
},
5554
{
5655
id: HOME_HEADING_ID.store,

app/pages/event/index.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
2727
import {
2828
computed,
29-
createError,
3029
defineOgImage,
3130
defineRouteRules,
3231
useI18n,
@@ -37,10 +36,6 @@ import {
3736
useQueryHashSync,
3837
} from "#imports";
3938
40-
if (!__FEATURE_EVENT__) {
41-
throw createError({ statusCode: 404, statusMessage: "Page Not Found" });
42-
}
43-
4439
// To differentiate OGP based on query params
4540
defineRouteRules({ prerender: false });
4641

features.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
/** defined by ViteConfig.define on nuxt.config.ts */
22
const __FEATURE_TIMETABLE__: boolean;
33

4-
/** defined by ViteConfig.define on nuxt.config.ts */
5-
const __FEATURE_EVENT__: boolean;
6-
74
/** defined by ViteConfig.define on nuxt.config.ts */
85
const __FEATURE_STUDENT_SUPPORT_APPLICATION_CLOSING__: boolean;

nuxt.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export default defineNuxtConfig({
5959

6060
// for server
6161
__FEATURE_TIMETABLE__: !["0", undefined].includes(process.env.FEATURE_TIMETABLE), // ?
62-
__FEATURE_EVENT__: !["0", undefined].includes(process.env.FEATURE_EVENT), // ?
6362
__FEATURE_STUDENT_SUPPORT_APPLICATION_CLOSING__: !["0", undefined].includes(process.env.FEATURE_STUDENT_SUPPORT_APPLICATION_CLOSING), // 9/25
6463

6564
siteUrl: process.env.NODE_ENV === "production"
@@ -110,7 +109,6 @@ export default defineNuxtConfig({
110109
vite: {
111110
define: {
112111
__FEATURE_TIMETABLE__: process.env.FEATURE_TIMETABLE || false, // ?
113-
__FEATURE_EVENT__: process.env.FEATURE_EVENT || false, // ?
114112
__FEATURE_STUDENT_SUPPORT_APPLICATION_CLOSING__: process.env.FEATURE_STUDENT_SUPPORT_APPLICATION_CLOSING || false, // 9/25
115113
},
116114
css: {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
]
3232
},
3333
"scripts": {
34-
"build": "cross-env NODE_OPTIONS='--max-old-space-size=4096' FEATURE_STUDENT_SUPPORT_APPLICATION_CLOSING=1 FEATURE_EVENT=1 nuxt build",
35-
"dev": "cross-env FEATURE_STUDENT_SUPPORT_APPLICATION_CLOSING=1 FEATURE_TIMETABLE=0 FEATURE_EVENT=1 nuxt dev",
34+
"build": "cross-env NODE_OPTIONS='--max-old-space-size=4096' FEATURE_STUDENT_SUPPORT_APPLICATION_CLOSING=1 nuxt build",
35+
"dev": "cross-env FEATURE_STUDENT_SUPPORT_APPLICATION_CLOSING=1 FEATURE_TIMETABLE=0 nuxt dev",
3636
"generate": "nuxt generate",
3737
"preview": "nuxt preview",
3838
"check": "nuxi typecheck",

0 commit comments

Comments
 (0)