formatting
This commit is contained in:
parent
eb40a4f049
commit
1da62476e4
@ -1 +1,2 @@
|
||||
**/*.md
|
||||
pnpm-lock.yaml
|
||||
|
@ -5,14 +5,14 @@ interface Feedback {
|
||||
message: string;
|
||||
feedbackType?: string;
|
||||
contactEmail?: string;
|
||||
anonymous: boolean
|
||||
anonymous: boolean;
|
||||
}
|
||||
|
||||
const loading = ref(false);
|
||||
const error = ref<unknown>(null);
|
||||
const success = ref(false);
|
||||
|
||||
const feedback = reactive<Feedback>({ message: "", anonymous: false,contactEmail: "" });
|
||||
const feedback = reactive<Feedback>({ message: "", anonymous: false, contactEmail: "" });
|
||||
|
||||
const feedbackOptions = [
|
||||
{ label: "🐞 Bug", value: "bug" },
|
||||
@ -73,7 +73,11 @@ async function handleSubmit(type?: string) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<button v-for="item in feedbackOptions" :key="item.value" class="btn" @click="handleSubmit(item.value)">
|
||||
<button
|
||||
v-for="item in feedbackOptions"
|
||||
:key="item.value"
|
||||
class="btn"
|
||||
@click="handleSubmit(item.value)">
|
||||
<span>{{ item.label }}</span>
|
||||
</button>
|
||||
</div>
|
||||
@ -83,7 +87,10 @@ async function handleSubmit(type?: string) {
|
||||
<p class="desc">The wiki is...</p>
|
||||
<div>
|
||||
<span>{{ getFeedbackOption(feedback.feedbackType)?.label }}</span>
|
||||
<button style="margin-left: 0.5rem" class="btn" @click="feedback.feedbackType = undefined">
|
||||
<button
|
||||
style="margin-left: 0.5rem"
|
||||
class="btn"
|
||||
@click="feedback.feedbackType = undefined">
|
||||
<span class="i-carbon-close-large">close</span>
|
||||
</button>
|
||||
</div>
|
||||
@ -101,7 +108,7 @@ async function handleSubmit(type?: string) {
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.step>*+* {
|
||||
.step > * + * {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
|
@ -13,5 +13,5 @@ export default {
|
||||
"sidebar-nav-before": () => h(Sidebar),
|
||||
});
|
||||
},
|
||||
enhanceApp({ app, router, siteData }) { },
|
||||
enhanceApp({ app, router, siteData }) {},
|
||||
} satisfies Theme;
|
||||
|
@ -1,3 +1,3 @@
|
||||
import { registerSW } from 'virtual:pwa-register'
|
||||
import { registerSW } from "virtual:pwa-register";
|
||||
|
||||
registerSW({ immediate: true })
|
||||
registerSW({ immediate: true });
|
||||
|
4
.vitepress/vue-shim.d.ts
vendored
4
.vitepress/vue-shim.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
declare module '*.vue' {
|
||||
import Vue from 'vue';
|
||||
declare module "*.vue" {
|
||||
import Vue from "vue";
|
||||
export default Vue;
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
"docs:dev": "vitepress dev",
|
||||
"docs:build": "vitepress build",
|
||||
"docs:preview": "vitepress preview",
|
||||
"format": "prettier -w ."
|
||||
"format": "prettier -w --cache ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@headlessui/vue": "^1.7.16",
|
||||
|
Loading…
Reference in New Issue
Block a user