-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
157 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ body { | |
background-color: #111; | ||
background-attachment: fixed; | ||
margin: 0; | ||
min-height: 100vh; | ||
} | ||
|
||
* { | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<template> | ||
<ContentCard> | ||
<h2 id="guild-link"> | ||
<a :href="guildLink" target="_blank" v-if="route.name !== routeNameEnum.CUSTOM_LEADERBOARD"> | ||
Guild: {{ guildName ?? route.params.guildName }} | ||
</a> | ||
<span v-else>Custom Leaderboard</span> | ||
</h2> | ||
<RouterLink to="/" class="select-guild-link"> | ||
Select another | ||
</RouterLink> | ||
<RouterLink to="./level">Character Level</RouterLink> | ||
<RouterLink to="./contribution">Contribution Points</RouterLink> | ||
<RouterLink to="./gathering">Gathering</RouterLink> | ||
<RouterLink to="./fishing">Fishing</RouterLink> | ||
<RouterLink to="./hunting">Hunting</RouterLink> | ||
<RouterLink to="./cooking">Cooking</RouterLink> | ||
<RouterLink to="./alchemy">Alchemy</RouterLink> | ||
<RouterLink to="./processing">Processing</RouterLink> | ||
<RouterLink to="./training">Training</RouterLink> | ||
<RouterLink to="./trading">Trading</RouterLink> | ||
<RouterLink to="./farming">Farming</RouterLink> | ||
<RouterLink to="./sailing">Sailing</RouterLink> | ||
<RouterLink to="./barter">Barter</RouterLink> | ||
<RouterLink to="./combat">Combat Fame</RouterLink> | ||
<RouterLink to="./life">Life Fame</RouterLink> | ||
<RouterLink to="./characters">Family Size</RouterLink> | ||
<RouterLink to="./age">Account Age</RouterLink> | ||
</ContentCard> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { computed } from "vue" | ||
import { ContentCard } from "@/components" | ||
import { routeNameEnum } from "@/router" | ||
import { supportedServers } from "@/data" | ||
import { useRoute } from "vue-router" | ||
const props = defineProps({ | ||
guildName: { type: String }, | ||
}) | ||
const route = useRoute() | ||
const guildLink = computed(() => { | ||
const server = [...supportedServers.values()] | ||
.find(s => route.params.region === s.domain) | ||
// This normally shouldn't happen | ||
if (!server) { | ||
return undefined | ||
} | ||
const guildName = props.guildName ?? route.params.guildName | ||
return server.getGuildLink(Array.isArray(guildName) ? guildName[0] : guildName) | ||
}) | ||
</script> | ||
|
||
<style scoped> | ||
#guild-link { | ||
grid-column: 1/3; | ||
margin: 0; | ||
text-align: center; | ||
a { | ||
opacity: 1; | ||
} | ||
} | ||
.select-guild-link { | ||
grid-column: 1/3; | ||
margin-bottom: 1em; | ||
text-align: center; | ||
} | ||
a { | ||
opacity: 0.7; | ||
text-decoration: none; | ||
&:hover { | ||
opacity: 1; | ||
} | ||
&.router-link-exact-active { | ||
opacity: 1; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
export { default as AddToCustomCard } from "./AddToCustomCard.vue" | ||
export { default as CategoryLinks } from "./CategoryLinks.vue" | ||
export { default as ContentCard } from "./ContentCard.vue" | ||
export { default as FooterCard } from "./FooterCard.vue" | ||
export { default as HeaderCard } from "./HeaderCard.vue" | ||
export { default as LeaderboardHeaderLine } from "./LeaderboardHeaderLine.vue" | ||
export { default as LeaderboardLine } from "./LeaderboardLine.vue" | ||
export { default as LoadingCard } from "./LoadingCard.vue" | ||
export { default as NavCard } from "./NavCard.vue" | ||
export { default as SeparatorLine } from "./SeparatorLine.vue" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as useIsMobile } from "./useIsMobile" | ||
export { default as useNavigation } from "./useNavigation" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { RegionEnum } from "@/data" | ||
import { routeNameEnum } from "@/router" | ||
import { useRouter } from "vue-router" | ||
|
||
export default function useNavigation() { | ||
const router = useRouter() | ||
|
||
function navigateToCustomLeaderboard() { | ||
router.push({ | ||
name: routeNameEnum.CUSTOM_LEADERBOARD, | ||
params: { discipline: "level" } | ||
}) | ||
} | ||
|
||
function navigateToGuildLeaderboard(region: RegionEnum, guildName: string) { | ||
router.push({ | ||
name: routeNameEnum.LEADERBOARD, | ||
params: { | ||
discipline: "level", | ||
guildName, | ||
region, | ||
} | ||
}) | ||
} | ||
|
||
return { | ||
navigateToCustomLeaderboard, | ||
navigateToGuildLeaderboard, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.