-
+
+
+
+
+
+
+
+
+
+
+
@@ -32,49 +35,52 @@
diff --git a/src/components/Sidebartest.vue b/src/components/Sidebartest.vue
deleted file mode 100644
index 6793d7a5..00000000
--- a/src/components/Sidebartest.vue
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/dashboard/news.vue b/src/components/dashboard/news.vue
new file mode 100644
index 00000000..e69de29b
diff --git a/src/components/dashboard/newsletter.vue b/src/components/dashboard/newsletter.vue
new file mode 100644
index 00000000..a7c91df7
--- /dev/null
+++ b/src/components/dashboard/newsletter.vue
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
{{ letter.title }}
+
{{ letter.description }}
+
+
+
+
+ + Mostrar mais
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/dashboard/status.vue b/src/components/dashboard/status.vue
index 9f230e28..459c8f6b 100644
--- a/src/components/dashboard/status.vue
+++ b/src/components/dashboard/status.vue
@@ -1,8 +1,12 @@
-
-
-
+
@@ -10,31 +14,40 @@
import dashboard from '../../api/dashboard.js';
import unnic from 'unnic-system-beta';
export default {
- name: 'Status',
- components: { UnnicCard: unnic.UnnicCard },
- data() {
- return {
- status: {
- ia: null,
- flow: null,
- omnichannel: null,
- },
- };
+ name: 'Status',
+ components: { UnnicCard: unnic.UnnicCard },
+ data() {
+ return {
+ status: [],
+ };
+ },
+ mounted() {
+ this.getStatus();
+ },
+ methods: {
+ async getStatus() {
+ const response = await dashboard.status();
+ this.status = response.data.results;
+ console.log(this.status);
},
- mounted() {
- this.getStatus();
- },
- methods: {
- async getStatus() {
- const response = await dashboard.status();
- const list = response.data.results;
- }
+ },
+ computed: {
+ statusList() {
+ const list = this.status.map(entry => {
+ if (entry.service__url.includes('bothub')) return { ...entry, ...{ icon: 'science-fiction-robot-2', title: 'Inteligência Artificial' } };
+ else if(entry.service__url.includes('push')) return { ...entry, ...{ icon: 'hierarchy-3-2', title: 'Fluxos' } };
+ else if(entry.service__url.includes('rocket')) return { ...entry, ...{ icon: 'messaging-we-chat-3', title: 'Omnichannel' } };
+ return entry;
+ });
+ return list;
}
-}
+ }
+};