crownpeak-dxm-vuejs-sdk
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -23,3 +23,3 @@ const dotenv = require("dotenv"); | ||
let components = [], pages = [], wrappers = [], uploads = []; | ||
const htmlfiles = files.getRecursive(cwd, "html"); | ||
const htmlfiles = files.getRecursive(cwd, "html", (config.CMS_SCAFFOLD_IGNORE ? config.CMS_SCAFFOLD_IGNORE.split(",") : [])); | ||
for (let f in htmlfiles) { | ||
@@ -37,3 +37,3 @@ //console.log(`Processing ${htmlfiles[f]}`); | ||
} | ||
const vueFiles = files.getRecursive(cwd, "vue"); | ||
const vueFiles = files.getRecursive(cwd, "vue", (config.CMS_SCAFFOLD_IGNORE ? config.CMS_SCAFFOLD_IGNORE.split(",") : [])); | ||
for (let f in vueFiles) { | ||
@@ -40,0 +40,0 @@ //console.log(`Processing ${vueFiles[f]}`); |
@@ -12,3 +12,6 @@ import Vue from 'vue'; | ||
isLoaded: boolean; | ||
$cmsLoadDataTimeout?: number; | ||
$cmsDataLoaded?: (data: object, assetId: number) => object; | ||
$cmsDataError?: (exception: any, assetId: number) => void; | ||
created(): void; | ||
} |
@@ -45,3 +45,16 @@ "use strict"; | ||
var that_1 = this; | ||
(this.cmsDataProvider || new crownpeak_dxm_sdk_core_1.CmsNullDataProvider()).getSingleAsset(this.$cmsAssetId).then(function () { return that_1.isLoaded = true; }); | ||
var isError_1 = false; | ||
(this.cmsDataProvider || new crownpeak_dxm_sdk_core_1.CmsNullDataProvider()).getSingleAsset(this.$cmsAssetId, this.$cmsLoadDataTimeout).catch(function (ex) { | ||
isError_1 = true; | ||
if (that_1.$cmsDataError) | ||
that_1.$cmsDataError(ex, that_1.$cmsAssetId || -1); | ||
else | ||
console.error(ex); | ||
}).then(function () { | ||
if (!isError_1) { | ||
if (that_1.$cmsDataLoaded) | ||
crownpeak_dxm_sdk_core_1.CmsDataCache.set(that_1.$cmsAssetId || -1, that_1.$cmsDataLoaded(crownpeak_dxm_sdk_core_1.CmsDataCache.get(that_1.$cmsAssetId || -1), that_1.$cmsAssetId || -1) || crownpeak_dxm_sdk_core_1.CmsDataCache.get(that_1.$cmsAssetId || -1)); | ||
that_1.isLoaded = true; | ||
} | ||
}); | ||
crownpeak_dxm_sdk_core_1.CmsDataCache.cmsAssetId = this.$cmsAssetId; | ||
@@ -48,0 +61,0 @@ } |
{ | ||
"name": "crownpeak-dxm-vuejs-sdk", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "Crownpeak Digital Experience Management (DXM) Software Development Kit (SDK) for Vue.js has been constructed to assist the Single Page App developer in developing client-side applications that leverage DXM for content management purposes.", | ||
@@ -10,3 +10,3 @@ "repository": "https://github.com/Crownpeak/DXM-VueJS-SDK", | ||
"@babel/parser": "^7.9.6", | ||
"crownpeak-dxm-sdk-core": "^3.3.0", | ||
"crownpeak-dxm-sdk-core": "^3.4.0", | ||
"dotenv": "^8.2.0", | ||
@@ -13,0 +13,0 @@ "vue": "^2.6.11", |
@@ -59,2 +59,3 @@ <a href="https://www.crownpeak.com" target="_blank">![Crownpeak Logo](https://github.com/Crownpeak/DXM-VueJS-SDK/raw/master/images/crownpeak-logo.png?raw=true "Crownpeak Logo")</a> | ||
| 3.2.1 | 2021JAN08 | Extra macro option using {file} in CMS_STATIC_CONTENT_LOCATION. | | ||
| 3.3.0 | 2021JAN13 | Add cmsDisableDragDrop option to mark components unsuitable for Drag and Drop. | | ||
| 3.3.0 | 2021JAN13 | Add cmsDisableDragDrop option to mark components unsuitable for Drag and Drop. | | ||
| 3.4.0 | 2021MAR15 | Updates to support Gatsby, bug fixes. | |
Sorry, the diff of this file is not supported yet
71555
1181
60