Skip to content

Commit

Permalink
Attempted fix of 500
Browse files Browse the repository at this point in the history
  • Loading branch information
worldwidepixel committed Jul 17, 2024
1 parent 2f8f5b9 commit 19ae76d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export default defineNuxtConfig({
runtimeConfig: {
public: {
dev: process.env.NODE_ENV === "production" ? false : true,
reasonsFlag: false,
},
},
})
11 changes: 11 additions & 0 deletions pages/experiments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@
<span class="flex items-center gap-2 font-bold text-lg">
<LucideShieldQuestion /> Why not Essential?
</span>
<p>
Current Selection: <span class="font-bold">{{ whyNot }}</span>
</p>
<NEButton
class="w-fit cursor-pointer"
@click="whyNot = !whyNot"
secondary
>Set to {{ !whyNot }}</NEButton
>
</div>
</div>
</div>
Expand All @@ -45,6 +54,8 @@ useSeoMeta({
title: "Experiments",
})
const whyNot = useCookie("whyNotEssential", { default: false })
const { locale, locales, setLocale } = useI18n()
const availableLocales = computed(() => {
Expand Down
10 changes: 5 additions & 5 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@
</NEButton>

<PageHero
v-if="runtimeConfig.public.dev === true"
v-if="whyNot === true"
title="WHY?"
subTitle="Many people wonder why not to use Essential. We hope to make the reasons
clear."
/>

<NumberedList v-if="runtimeConfig.public.dev === true" :data="reasonsWhy" />
<NumberedList v-if="whyNot === true" :data="reasonsWhy" />

<span v-if="runtimeConfig.public.dev === true">
<span v-if="whyNot === true">
In case it wasn't clear, don't harrass any people affiliated with
Essential. We simply find that the flaws with Essential make it
undesirable in most modded Minecraft circumstances. We do not have any
conflicts with anybody at Essential.
</span>

<span v-if="runtimeConfig.public.dev === true" class="flex flex-row gap-2"
<span v-if="whyNot === true" class="flex flex-row gap-2"
>with<LucideHeart class="stroke-[var(--brand-blue)]" /> from all at the
NotEssential team
</span>
Expand All @@ -49,7 +49,7 @@ if (Math.floor(Math.random() * 10000) === 0) {
minecraftText.value = "MINCERAFT"
}
const runtimeConfig = useRuntimeConfig()
const whyNot = useCookie("whyNotEssential", { default: false })
const reasonsWhy = [
{
Expand Down

0 comments on commit 19ae76d

Please sign in to comment.