Plugins
This commit is contained in:
1 parent
4847b4d67b
commit
ccf0f948ac
2 files changed
+6
-6
No files matched your search
@@ -60,7 +60,7 @@ function newAppLoader() {
|
||||
'DesignSpace/Workspace/FunctionLibraries/DataStorageFunctions.js',
|
||||
'DesignSpace/Workspace/FunctionLibraries/ChartingSpaceFunctions.js',
|
||||
'DesignSpace/Workspace/FunctionLibraries/TutorialFunctions.js',
|
||||
'DesignSpace/Workspace/FunctionLibraries/IncludesFunctions.js',
|
||||
'DesignSpace/Workspace/FunctionLibraries/PluginsFunctions.js',
|
||||
|
||||
'Utilities/CoordinateTransformations.js',
|
||||
'Utilities/DateRateTransformations.js',
|
||||
|
||||
+5
-5
@@ -454,7 +454,7 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
|
||||
}
|
||||
break
|
||||
|
||||
case 'IncludedFileNames':
|
||||
case 'PluginFileNames':
|
||||
{
|
||||
const fs = require('fs')
|
||||
let folder
|
||||
@@ -534,8 +534,8 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
|
||||
case 'ListWorkspaces':
|
||||
{
|
||||
let allWorkspaces = []
|
||||
readIncludedWorkspaces()
|
||||
function readIncludedWorkspaces() {
|
||||
readPluginWorkspaces()
|
||||
function readPluginWorkspaces() {
|
||||
let dirPath = process.env.WORKSPACES_PATH
|
||||
try {
|
||||
let fs = require('fs')
|
||||
@@ -549,7 +549,7 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
|
||||
} else {
|
||||
let updatedFileList = []
|
||||
for (let i = 0; i < fileList.length; i++) {
|
||||
let name = 'Included -> ' + fileList[i]
|
||||
let name = 'Plugin -> ' + fileList[i]
|
||||
updatedFileList.push(name)
|
||||
}
|
||||
allWorkspaces = allWorkspaces.concat(updatedFileList)
|
||||
@@ -598,7 +598,7 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
|
||||
}
|
||||
break
|
||||
|
||||
case 'LoadIncludedWorkspace':
|
||||
case 'LoadPluginWorkspace':
|
||||
{
|
||||
let fileName = unescape(requestParameters[2])
|
||||
let filePath = process.env.WORKSPACES_PATH + '/' + fileName + '.json'
|
||||
|
||||
Reference in new issue
Block a user