druware-components 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # vue-openbcm-shared
1
+ # vue-druware-shared - druware-components
2
2
 
3
3
  in order to publish ( until we configure the CI/CD setup ),
4
4
 
@@ -4,7 +4,7 @@
4
4
  <figure class="media-left" v-if="showIcon">
5
5
  <p class="image is-64x64">
6
6
  <router-link :to="route">
7
- <img v-if="article.iconImage != null" :src="article.iconImage" />
7
+ <img v-if="article.iconImage != null" :src="'/api/asset/' + article.iconImage.fileName" />
8
8
  <img v-else-if="article.iconId != null" :src="'/api/asset/' + article.iconId" />
9
9
  <img v-else src="https://bulma.io/assets/images/placeholders/128x128.png" /></router-link>
10
10
  </p>
@@ -112,6 +112,10 @@ export default {
112
112
  },
113
113
  methods: {
114
114
  showDisqusThread() {
115
+ let disqus_config = function () {
116
+ this.page.url = document.location.href;
117
+ this.page.identifier = this.article.permalink ?? document.location.href;
118
+ }
115
119
  let d = document, s = d.createElement('script');
116
120
  s.src = 'https://' + this.disqusShortname + '.disqus.com/embed.js';
117
121
  s.setAttribute('data-timestamp', +new Date());
@@ -128,10 +132,6 @@ export default {
128
132
  },
129
133
  },
130
134
  mounted() {
131
- let disqus_config = function () {
132
- this.page.url = document.location.href;
133
- this.page.identifier = this.article.permalink ?? document.location.href;
134
- }
135
135
  if (this.enableDisqus && this.disqusShortname !== null) {
136
136
  this.showDisqusThread();
137
137
  }
@@ -21,6 +21,6 @@
21
21
  font-size: 0.75em;
22
22
  font-weight: 100;
23
23
  }
24
- .new-article-view[data-v-b6905e0a] {
24
+ .new-article-view[data-v-345fbc87] {
25
25
  overflow: hidden;
26
26
  }
@@ -1487,7 +1487,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1487
1487
  default: vue.withCtx(() => [
1488
1488
  $props.article.iconImage != null ? (vue.openBlock(), vue.createElementBlock("img", {
1489
1489
  key: 0,
1490
- src: $props.article.iconImage
1490
+ src: "/api/asset/" + $props.article.iconImage.fileName
1491
1491
  }, null, 8, _hoisted_5)) : $props.article.iconId != null ? (vue.openBlock(), vue.createElementBlock("img", {
1492
1492
  key: 1,
1493
1493
  src: "/api/asset/" + $props.article.iconId
@@ -1555,7 +1555,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1555
1555
  ])) : vue.createCommentVNode("", true)
1556
1556
  ]);
1557
1557
  }
1558
- const ArticleView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b6905e0a"]]);
1558
+ const ArticleView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-345fbc87"]]);
1559
1559
  function bind(fn, thisArg) {
1560
1560
  return function wrap() {
1561
1561
  return fn.apply(thisArg, arguments);
@@ -1485,7 +1485,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1485
1485
  default: withCtx(() => [
1486
1486
  $props.article.iconImage != null ? (openBlock(), createElementBlock("img", {
1487
1487
  key: 0,
1488
- src: $props.article.iconImage
1488
+ src: "/api/asset/" + $props.article.iconImage.fileName
1489
1489
  }, null, 8, _hoisted_5)) : $props.article.iconId != null ? (openBlock(), createElementBlock("img", {
1490
1490
  key: 1,
1491
1491
  src: "/api/asset/" + $props.article.iconId
@@ -1553,7 +1553,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1553
1553
  ])) : createCommentVNode("", true)
1554
1554
  ]);
1555
1555
  }
1556
- const ArticleView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b6905e0a"]]);
1556
+ const ArticleView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-345fbc87"]]);
1557
1557
  function bind(fn, thisArg) {
1558
1558
  return function wrap() {
1559
1559
  return fn.apply(thisArg, arguments);
@@ -1488,7 +1488,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
1488
1488
  default: vue.withCtx(() => [
1489
1489
  $props.article.iconImage != null ? (vue.openBlock(), vue.createElementBlock("img", {
1490
1490
  key: 0,
1491
- src: $props.article.iconImage
1491
+ src: "/api/asset/" + $props.article.iconImage.fileName
1492
1492
  }, null, 8, _hoisted_5)) : $props.article.iconId != null ? (vue.openBlock(), vue.createElementBlock("img", {
1493
1493
  key: 1,
1494
1494
  src: "/api/asset/" + $props.article.iconId
@@ -1556,7 +1556,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
1556
1556
  ])) : vue.createCommentVNode("", true)
1557
1557
  ]);
1558
1558
  }
1559
- const ArticleView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b6905e0a"]]);
1559
+ const ArticleView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-345fbc87"]]);
1560
1560
  function bind(fn, thisArg) {
1561
1561
  return function wrap() {
1562
1562
  return fn.apply(thisArg, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "druware-components",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A vue.js library of UI components for the Druware.Server.API by OpenBCM.com. This library assumes that Bulma is alreadr included in the application.",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "author": "Dru Satori @ druware.com",