mirror of
https://github.com/EvolutionAPI/evolution-manager.git
synced 2025-07-13 15:14:49 -06:00
doc
This commit is contained in:
parent
9de1de2e72
commit
a89f788e52
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "evolution-manager",
|
"name": "evolution-manager",
|
||||||
"version": "0.3.9",
|
"version": "0.3.10",
|
||||||
"main": "dist",
|
"main": "dist",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0"
|
"node": ">=16.0.0"
|
||||||
|
@ -136,7 +136,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</v-form>
|
</v-form>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions v-if="expanded">
|
<v-card-actions v-if="expanded" class="d-flex flex-wrap gap-x-1">
|
||||||
<v-switch
|
<v-switch
|
||||||
v-model="chatwootData.enabled"
|
v-model="chatwootData.enabled"
|
||||||
label="Habilitado"
|
label="Habilitado"
|
||||||
@ -144,7 +144,7 @@
|
|||||||
:disabled="loading"
|
:disabled="loading"
|
||||||
hide-details
|
hide-details
|
||||||
></v-switch>
|
></v-switch>
|
||||||
<v-btn variant="text" @click="chatwootConfig">
|
<v-btn variant="text" @click="chatwootConfig" size="small">
|
||||||
Como configurar o chatwoot?
|
Como configurar o chatwoot?
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
|
@ -27,7 +27,6 @@ export const useDocStore = defineStore('doc', {
|
|||||||
},
|
},
|
||||||
async loadDoc(path) {
|
async loadDoc(path) {
|
||||||
try {
|
try {
|
||||||
debugger;
|
|
||||||
const { language } = this;
|
const { language } = this;
|
||||||
const doc = this.docs[path]
|
const doc = this.docs[path]
|
||||||
const content = await doc[language]();
|
const content = await doc[language]();
|
||||||
|
@ -18,12 +18,15 @@
|
|||||||
import { VMarkdownView } from "vue3-markdown";
|
import { VMarkdownView } from "vue3-markdown";
|
||||||
import "vue3-markdown/dist/style.css";
|
import "vue3-markdown/dist/style.css";
|
||||||
import { useDocStore } from "@/store/doc";
|
import { useDocStore } from "@/store/doc";
|
||||||
|
import { useTheme } from "vuetify";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
VMarkdownView,
|
VMarkdownView,
|
||||||
},
|
},
|
||||||
data: () => ({
|
data: () => ({
|
||||||
drawer: false,
|
drawer: false,
|
||||||
|
theme: useTheme(),
|
||||||
lang_list: [
|
lang_list: [
|
||||||
{ title: "Português", value: "pt_br" },
|
{ title: "Português", value: "pt_br" },
|
||||||
{ title: "English", value: "en" },
|
{ title: "English", value: "en" },
|
||||||
@ -38,7 +41,6 @@ export default {
|
|||||||
try {
|
try {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.error = false;
|
this.error = false;
|
||||||
debugger;
|
|
||||||
const { content } = await this.DocStore.loadDoc(doc || "index");
|
const { content } = await this.DocStore.loadDoc(doc || "index");
|
||||||
this.content = content;
|
this.content = content;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -68,8 +70,14 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
debugger;
|
|
||||||
this.loadDoc(this.$route.params.doc);
|
this.loadDoc(this.$route.params.doc);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.markdown-body[data-theme=dark] {
|
||||||
|
background-color: #121212 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue
Block a user