mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Manually apply MkAchievements Changes
This commit is contained in:
parent
5bdf50356d
commit
153de7f896
1 changed files with 19 additions and 19 deletions
|
@ -1,34 +1,34 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div v-if="achievements" :class=".root">
|
<div v-if="achievements" class="root">
|
||||||
<div v-for="achievement in achievements" :key="achievement" :class=".achievement" class="_panel">
|
<div v-for="achievement in achievements" :key="achievement" class="_panel achievement">
|
||||||
<div :class=".icon">
|
<div class="icon">
|
||||||
<div :class="[.iconFrame, ['iconFrame_' + ACHIEVEMENT_BADGES[achievement.name].frame]]">
|
<div :class="[['iconFrame'], ['iconFrame_' + ACHIEVEMENT_BADGES[achievement.name].frame]]">
|
||||||
<div :class="[.iconInner]" :style="{ background: ACHIEVEMENT_BADGES[achievement.name].bg }">
|
<div class="iconInner" :style="{ background: ACHIEVEMENT_BADGES[achievement.name].bg }">
|
||||||
<img :class=".iconImg" :src="ACHIEVEMENT_BADGES[achievement.name].img">
|
<img class="iconImg" :src="ACHIEVEMENT_BADGES[achievement.name].img">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div :class=".body">
|
<div class="body">
|
||||||
<div :class=".header">
|
<div class="header">
|
||||||
<span :class=".title">{{ i18n.ts._achievements._types['_' + achievement.name].title }}</span>
|
<span class="title">{{ i18n.ts._achievements._types['_' + achievement.name].title }}</span>
|
||||||
<span :class=".time">
|
<span class="time">
|
||||||
<time v-tooltip="new Date(achievement.unlockedAt).toLocaleString()">{{ new Date(achievement.unlockedAt).getFullYear() }}/{{ new Date(achievement.unlockedAt).getMonth() + 1 }}/{{ new Date(achievement.unlockedAt).getDate() }}</time>
|
<time v-tooltip="new Date(achievement.unlockedAt).toLocaleString()">{{ new Date(achievement.unlockedAt).getFullYear() }}/{{ new Date(achievement.unlockedAt).getMonth() + 1 }}/{{ new Date(achievement.unlockedAt).getDate() }}</time>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div :class=".description">{{ i18n.ts._achievements._types['_' + achievement.name].description }}</div>
|
<div class="description">{{ i18n.ts._achievements._types['_' + achievement.name].description }}</div>
|
||||||
<div v-if="i18n.ts._achievements._types['_' + achievement.name].flavor" :class=".flavor">{{ i18n.ts._achievements._types['_' + achievement.name].flavor }}</div>
|
<div v-if="i18n.ts._achievements._types['_' + achievement.name].flavor" class="flavor">{{ i18n.ts._achievements._types['_' + achievement.name].flavor }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="withLocked">
|
<template v-if="withLocked">
|
||||||
<div v-for="achievement in lockedAchievements" :key="achievement" :class="[.achievement, .locked]" class="_panel" @click="achievement === 'clickedClickHere' ? clickHere() : () => {}">
|
<div v-for="achievement in lockedAchievements" :key="achievement" class="_panel achievement locked" @click="achievement === 'clickedClickHere' ? clickHere() : () => {}">
|
||||||
<div :class=".icon">
|
<div class="icon">
|
||||||
</div>
|
</div>
|
||||||
<div :class=".body">
|
<div class="body">
|
||||||
<div :class=".header">
|
<div class="header">
|
||||||
<span :class=".title">???</span>
|
<span class="title">???</span>
|
||||||
</div>
|
</div>
|
||||||
<div :class=".description">???</div>
|
<div class="description">???</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -77,7 +77,7 @@ onMounted(() => {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" module>
|
<style lang="scss" scoped>
|
||||||
.root {
|
.root {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, min(380px, 100%));
|
grid-template-columns: repeat(auto-fill, min(380px, 100%));
|
||||||
|
|
Loading…
Reference in a new issue