1 Commits

Author SHA1 Message Date
Eric Tuvesson
56b752b895 chore(editor): Rename node picker categories 2024-07-15 14:28:09 +02:00
2 changed files with 17 additions and 9 deletions

View File

@@ -499,7 +499,7 @@ function generateNodeLibrary(nodeRegister) {
},
{
name: 'Read & Write Data',
description: 'Arrays, objects, cloud data',
description: 'Arrays, objects',
type: 'data',
subCategories: [
{
@@ -529,7 +529,18 @@ function generateNodeLibrary(nodeRegister) {
]
},
{
name: 'Cloud Data',
name: 'External Data',
items: ['REST2']
}
]
},
{
name: 'Cloud Service',
description: '',
type: 'data',
subCategories: [
{
name: '',
items: [
'DbModel2',
'NewDbModelProperties',
@@ -558,10 +569,6 @@ function generateNodeLibrary(nodeRegister) {
'net.noodl.user.ResetPassword',
'net.noodl.user.RequestPasswordReset'
]
},
{
name: 'External Data',
items: ['REST2']
}
]
},

View File

@@ -1,20 +1,21 @@
//this just assumes the base url is '/' always
function getAbsoluteUrl(_url) {
//convert to string in case the _url is a Cloud File (which is an object with a custom toString())
const url = String(_url);
//only add a the base url if this is a local URL (e.g. not a https url or base64 string)
if (!url || url[0] === '/' || url.includes('://') || url.startsWith('data:')) {
if (!url || url[0] === "/" || url.includes("://") || url.startsWith('data:')) {
return url;
}
return (Noodl.Env['BaseUrl'] || '/') + url;
return (Noodl.baseUrl || '/') + url;
}
/**
* Log an error thrown by the JavaScript nodes.
*
* @param {any} error
* @param {any} error
*/
function logJavaScriptNodeError(error) {
if (typeof error === 'string') {