@burh/nuxt-core 1.0.174 → 1.0.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
<base-nav
|
|
3
|
+
container-classes="container-fluid container-fluid--bu"
|
|
4
|
+
class="border-bottom navbar-animated navbar-horizontal"
|
|
5
|
+
expand="lg"
|
|
6
|
+
type="white"
|
|
7
|
+
>
|
|
8
|
+
<div style="display: flex; " slot="brand">
|
|
9
|
+
<avatar-link
|
|
10
|
+
:logo="brand"
|
|
11
|
+
:name="brandName"
|
|
12
|
+
class="row pl-4 nav-link cursor-pointer"
|
|
13
|
+
@avatar-click="redirectIndex"
|
|
14
|
+
/>
|
|
15
|
+
<slot name="brand-center" />
|
|
16
|
+
</div>
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
<a
|
|
19
|
+
v-if="!disabledLinks"
|
|
20
|
+
@click="$emit('to-home')"
|
|
21
|
+
class="btn btn-link text-primary cursor-pointer"
|
|
22
|
+
>
|
|
23
|
+
Voltar para o Burh
|
|
24
|
+
</a>
|
|
25
|
+
<user-menu-dropdown
|
|
26
|
+
v-else
|
|
27
|
+
:userAvatar="currentCompany.logo"
|
|
28
|
+
:userName="currentUser.name"
|
|
29
|
+
:companyName="currentCompany.name"
|
|
30
|
+
:isSindipecas="true"
|
|
31
|
+
@logout="$emit('logout')"
|
|
32
|
+
/>
|
|
33
|
+
</base-nav>
|
|
34
34
|
</template>
|
|
35
35
|
<script>
|
|
36
36
|
import BaseNav from '@burh/nuxt-core/components/burh-ds/Navbar/BaseNav.vue';
|
|
@@ -39,44 +39,44 @@ import AppLinkArea from '@burh/nuxt-core/components/burh-ds/Dropdown/AppLinkArea
|
|
|
39
39
|
import AvatarLink from '@burh/nuxt-core/components/burh-ds/Avatar/AvatarLink.vue';
|
|
40
40
|
|
|
41
41
|
export default {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
42
|
+
components: {
|
|
43
|
+
BaseNav,
|
|
44
|
+
UserMenuDropdown,
|
|
45
|
+
AppLinkArea,
|
|
46
|
+
AvatarLink
|
|
47
|
+
},
|
|
48
|
+
props: {
|
|
49
|
+
currentUser: Object,
|
|
50
|
+
currentCompany: Object,
|
|
51
|
+
userMenuText: Object,
|
|
52
|
+
brand: String,
|
|
53
|
+
brandName: String,
|
|
54
|
+
showableProducts: Object,
|
|
55
|
+
activeProducts: Array,
|
|
56
|
+
gridApps: Array,
|
|
57
|
+
disabledLinks: Boolean
|
|
58
|
+
},
|
|
59
|
+
data() {
|
|
60
|
+
return {
|
|
61
|
+
console: console,
|
|
62
|
+
indexRoute: String,
|
|
63
|
+
urlBackToBusiness: process.env.oldBusinessUrl
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
methods: {
|
|
67
|
+
handleAvatarClick(company) {
|
|
68
|
+
this.$emit('company-click', company);
|
|
69
|
+
},
|
|
70
|
+
redirectIndex() {
|
|
71
|
+
if (!this.disabledLinks) this.$router.push(this.indexRoute);
|
|
72
|
+
},
|
|
73
|
+
getCurrentApp() {
|
|
74
|
+
this.indexRoute = `/${this.$route.path.split('/')[1]}`;
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
mounted() {
|
|
78
|
+
this.getCurrentApp();
|
|
79
|
+
}
|
|
80
80
|
};
|
|
81
81
|
</script>
|
|
82
82
|
<style lang="scss">
|