@bettertogether/community-engine-vue 0.1.6 → 0.1.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "private": false,
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "name": "@bettertogether/community-engine-vue",
5
5
  "description": "The Better Together Community Engine is a universal community platform",
6
6
  "author": "Better Together Community Co-op",
@@ -5,14 +5,16 @@
5
5
  >
6
6
  <b-navbar
7
7
  toggleable="lg"
8
- type="dark"
8
+ :type="backgroundStyle"
9
9
  :style="headerStyle()"
10
10
  >
11
11
  <div
12
12
  id="nav-inner"
13
13
  class="container"
14
14
  >
15
- <BtBrandingLogo />
15
+ <slot name="branding-logo">
16
+ <BtBrandingLogo />
17
+ </slot>
16
18
  <b-navbar-toggle target="mobile-collapse" />
17
19
  <b-collapse
18
20
  id="right-collapse"
@@ -46,6 +48,15 @@ export default {
46
48
  BtBrandingLogo,
47
49
  BtNavBar,
48
50
  },
51
+ props: {
52
+ backgroundStyle: {
53
+ type: String,
54
+ default: () => 'dark',
55
+ },
56
+ },
57
+ computed: {
58
+ ...mapGetters('CommunityEngine/Communities', ['customization']),
59
+ },
49
60
  methods: {
50
61
  headerStyle() {
51
62
  const styles = {
@@ -60,9 +71,6 @@ export default {
60
71
  return styles
61
72
  },
62
73
  },
63
- computed: {
64
- ...mapGetters('CommunityEngine/Communities', ['customization']),
65
- },
66
74
  }
67
75
  </script>
68
76
 
@@ -16,7 +16,7 @@ const state = {
16
16
  coverImageUrl: '',
17
17
  coverImagePositionY: 'center',
18
18
  imageUrl: '',
19
- }
19
+ },
20
20
  },
21
21
  }
22
22
 
File without changes