mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
* Added markdown * Added styles and option for debug menu * Added sm icons * Began styling autocomplete * Added autocomplete styles * Added more challenge categories * Updated challenge participants modal * Fixed challenge list updating without reload * Added close and delete challenge * Fixed form placeholder, adjusted desc style and fixed create button style * Fixed faq collapsing and style * Fixed repeating ending * Fixed delete account * Fixed party fetch issue * Fixed scope issue * Added member count filters * Fixed create button style * Fixed badge color display * Updated tavern styles * Fixed some party styles * Updated login styles * Fixed login redirect * Fixed initial login process * Added done local
67 lines
1.5 KiB
Vue
67 lines
1.5 KiB
Vue
<template lang="pug">
|
|
.row
|
|
.col-6.offset-3
|
|
.page-header
|
|
h1 {{ $t('frequentlyAskedQuestions') }}
|
|
.faq-question(v-for='(heading, index) in headings')
|
|
h2.accordion(@click='setActivePage(heading)') {{ $t(`faqQuestion${index}`) }}
|
|
div(v-if='pageState[heading]', v-markdown="$t('webFaqAnswer' + index, replacements)")
|
|
hr
|
|
div(v-markdown="$t('webFaqStillNeedHelp')")
|
|
</template>
|
|
|
|
<style scoped>
|
|
.faq-question {
|
|
margin-bottom: 1em;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
// @TODO: env.EMAILS.TECH_ASSISTANCE_EMAIL
|
|
const TECH_ASSISTANCE_EMAIL = 'admin@habitica.com';
|
|
import markdownDirective from 'client/directives/markdown';
|
|
|
|
export default {
|
|
directives: {
|
|
markdown: markdownDirective,
|
|
},
|
|
data () {
|
|
let headings = [
|
|
'overview',
|
|
'set-up-tasks',
|
|
'sample-tasks',
|
|
'task-color',
|
|
'health',
|
|
'party-with-friends',
|
|
'pets-mounts',
|
|
'character-classes',
|
|
'blue-mana-bar',
|
|
'monsters-quests',
|
|
'gems',
|
|
'bugs-features',
|
|
'world-boss',
|
|
];
|
|
|
|
let pageState = {};
|
|
for (let index in headings) {
|
|
let heading = headings[index];
|
|
pageState[heading] = false;
|
|
}
|
|
|
|
return {
|
|
pageState,
|
|
headings,
|
|
replacements: {
|
|
techAssistanceEmail: TECH_ASSISTANCE_EMAIL,
|
|
wikiTechAssistanceEmail: `mailto:${TECH_ASSISTANCE_EMAIL}`,
|
|
},
|
|
};
|
|
},
|
|
methods: {
|
|
setActivePage (page) {
|
|
this.pageState[page] = !this.pageState[page];
|
|
},
|
|
},
|
|
};
|
|
</script>
|