Skip to content

Commit

Permalink
Remove site name env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
man90es committed Dec 26, 2023
1 parent a216c2d commit bad8625
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ VUE_APP_USE_HASH_HISTORY=false
# For example, for "bdo.hemlo.cc/leaderboards" it would be "/leaderboards/"
# This parameter doesn't do anything in development build
VUE_APP_PUBLIC_PATH=/bdo-leaderboards/

# Site name
VUE_APP_SITE_NAME=BDO Leaderboards
1 change: 1 addition & 0 deletions src/data/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as siteName } from "./siteName"
export { default as supportedServers } from "./supportedServers"
3 changes: 3 additions & 0 deletions src/data/siteName.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const siteName = "BDO Leaderboards"

export default siteName
4 changes: 2 additions & 2 deletions src/views/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<script setup>
import { ContentCard, FooterCard, HeaderCard, SeparatorLine } from "@/components"
import { ref } from "vue"
import { supportedServers } from "@/data"
import { siteName, supportedServers } from "@/data"
import { useHead } from "@vueuse/head"
import { useMainStore } from "@/stores/main"
import { useRouter } from "vue-router"
Expand All @@ -27,7 +27,7 @@
const mobile = useMobile()
const router = useRouter()
const store = useMainStore()
useHead({ title: process.env.VUE_APP_SITE_NAME })
useHead({ title: siteName })
const guildName = ref("")
const shouldHightlightNameInput = ref(false)
Expand Down
4 changes: 2 additions & 2 deletions src/views/LeaderboardPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import { AddToCustomCard, CategoryLinks, ContentCard, FooterCard, HeaderCard, LeaderboardHeaderLine, LeaderboardLine, LoadingCard } from "@/components"
import { capitalize } from "lodash"
import { computed } from "vue"
import { supportedServers } from "@/data"
import { siteName, supportedServers } from "@/data"
import { useHead } from "@vueuse/head"
import { useMainStore } from "@/stores/main"
import { useRoute } from "vue-router"
Expand All @@ -54,7 +54,7 @@
life: "life fame",
})[route.params.discipline] || route.params.discipline
return `${guildName} ${discipline} ranking | ${process.env.VUE_APP_SITE_NAME}`
return `${guildName} ${discipline} ranking | ${siteName}`
})
})
Expand Down

0 comments on commit bad8625

Please sign in to comment.