WIP: move all the code
1
.gitignore
vendored
@ -17,3 +17,4 @@ node_modules
|
|||||||
public
|
public
|
||||||
locales/zz-ZZ
|
locales/zz-ZZ
|
||||||
nodes/core/locales/zz-ZZ
|
nodes/core/locales/zz-ZZ
|
||||||
|
packages/node_modules/@node-red/editor/public
|
||||||
|
200
Gruntfile.js
@ -80,16 +80,14 @@ module.exports = function(grunt) {
|
|||||||
all: [
|
all: [
|
||||||
'Gruntfile.js',
|
'Gruntfile.js',
|
||||||
'red.js',
|
'red.js',
|
||||||
'red/**/*.js',
|
'packages/**/*.js'
|
||||||
'nodes/core/*/*.js',
|
|
||||||
'editor/js/**/*.js'
|
|
||||||
],
|
],
|
||||||
core: {
|
core: {
|
||||||
files: {
|
files: {
|
||||||
src: [
|
src: [
|
||||||
'Gruntfile.js',
|
'Gruntfile.js',
|
||||||
'red.js',
|
'red.js',
|
||||||
'red/**/*.js'
|
'packages/**/*.js',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -120,81 +118,81 @@ module.exports = function(grunt) {
|
|||||||
src: [
|
src: [
|
||||||
// Ensure editor source files are concatenated in
|
// Ensure editor source files are concatenated in
|
||||||
// the right order
|
// the right order
|
||||||
"editor/js/red.js",
|
"packages/node_modules/@node-red/editor/src/js/red.js",
|
||||||
"editor/js/events.js",
|
"packages/node_modules/@node-red/editor/src/js/events.js",
|
||||||
"editor/js/i18n.js",
|
"packages/node_modules/@node-red/editor/src/js/i18n.js",
|
||||||
"editor/js/settings.js",
|
"packages/node_modules/@node-red/editor/src/js/settings.js",
|
||||||
"editor/js/user.js",
|
"packages/node_modules/@node-red/editor/src/js/user.js",
|
||||||
"editor/js/comms.js",
|
"packages/node_modules/@node-red/editor/src/js/comms.js",
|
||||||
"editor/js/text/bidi.js",
|
"packages/node_modules/@node-red/editor/src/js/text/bidi.js",
|
||||||
"editor/js/text/format.js",
|
"packages/node_modules/@node-red/editor/src/js/text/format.js",
|
||||||
"editor/js/ui/state.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/state.js",
|
||||||
"editor/js/nodes.js",
|
"packages/node_modules/@node-red/editor/src/js/nodes.js",
|
||||||
"editor/js/history.js",
|
"packages/node_modules/@node-red/editor/src/js/history.js",
|
||||||
"editor/js/validators.js",
|
"packages/node_modules/@node-red/editor/src/js/validators.js",
|
||||||
"editor/js/ui/utils.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/utils.js",
|
||||||
"editor/js/ui/common/editableList.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/common/editableList.js",
|
||||||
"editor/js/ui/common/checkboxSet.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/common/checkboxSet.js",
|
||||||
"editor/js/ui/common/menu.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/common/menu.js",
|
||||||
"editor/js/ui/common/panels.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/common/panels.js",
|
||||||
"editor/js/ui/common/popover.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/common/popover.js",
|
||||||
"editor/js/ui/common/searchBox.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/common/searchBox.js",
|
||||||
"editor/js/ui/common/tabs.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/common/tabs.js",
|
||||||
"editor/js/ui/common/stack.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/common/stack.js",
|
||||||
"editor/js/ui/common/typedInput.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/common/typedInput.js",
|
||||||
"editor/js/ui/actions.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/actions.js",
|
||||||
"editor/js/ui/deploy.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/deploy.js",
|
||||||
"editor/js/ui/diff.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/diff.js",
|
||||||
"editor/js/ui/keyboard.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/keyboard.js",
|
||||||
"editor/js/ui/workspaces.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/workspaces.js",
|
||||||
"editor/js/ui/view.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/view.js",
|
||||||
"editor/js/ui/view-navigator.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/view-navigator.js",
|
||||||
"editor/js/ui/sidebar.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/sidebar.js",
|
||||||
"editor/js/ui/palette.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/palette.js",
|
||||||
"editor/js/ui/tab-info.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/tab-info.js",
|
||||||
"editor/js/ui/tab-config.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/tab-config.js",
|
||||||
"editor/js/ui/tab-context.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/tab-context.js",
|
||||||
"editor/js/ui/palette-editor.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/palette-editor.js",
|
||||||
"editor/js/ui/editor.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/editor.js",
|
||||||
"editor/js/ui/editors/*.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/editors/*.js",
|
||||||
"editor/js/ui/tray.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/tray.js",
|
||||||
"editor/js/ui/clipboard.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/clipboard.js",
|
||||||
"editor/js/ui/library.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/library.js",
|
||||||
"editor/js/ui/notifications.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/notifications.js",
|
||||||
"editor/js/ui/search.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/search.js",
|
||||||
"editor/js/ui/typeSearch.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/typeSearch.js",
|
||||||
"editor/js/ui/subflow.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/subflow.js",
|
||||||
"editor/js/ui/userSettings.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/userSettings.js",
|
||||||
"editor/js/ui/projects/projects.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/projects/projects.js",
|
||||||
"editor/js/ui/projects/projectSettings.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/projects/projectSettings.js",
|
||||||
"editor/js/ui/projects/projectUserSettings.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/projects/projectUserSettings.js",
|
||||||
"editor/js/ui/projects/tab-versionControl.js",
|
"packages/node_modules/@node-red/editor/src/js/ui/projects/tab-versionControl.js",
|
||||||
"editor/js/ui/touch/radialMenu.js"
|
"packages/node_modules/@node-red/editor/src/js/ui/touch/radialMenu.js"
|
||||||
],
|
],
|
||||||
dest: "public/red/red.js"
|
dest: "packages/node_modules/@node-red/editor/public/red/red.js"
|
||||||
},
|
},
|
||||||
vendor: {
|
vendor: {
|
||||||
files: {
|
files: {
|
||||||
"public/vendor/vendor.js": [
|
"packages/node_modules/@node-red/editor/public/vendor/vendor.js": [
|
||||||
"editor/vendor/jquery/js/jquery-1.11.3.min.js",
|
"packages/node_modules/@node-red/editor/src/vendor/jquery/js/jquery-1.11.3.min.js",
|
||||||
"editor/vendor/bootstrap/js/bootstrap.min.js",
|
"packages/node_modules/@node-red/editor/src/vendor/bootstrap/js/bootstrap.min.js",
|
||||||
"editor/vendor/jquery/js/jquery-ui-1.10.3.custom.min.js",
|
"packages/node_modules/@node-red/editor/src/vendor/jquery/js/jquery-ui-1.10.3.custom.min.js",
|
||||||
"editor/vendor/jquery/js/jquery.ui.touch-punch.min.js",
|
"packages/node_modules/@node-red/editor/src/vendor/jquery/js/jquery.ui.touch-punch.min.js",
|
||||||
"editor/vendor/marked/marked.min.js",
|
"packages/node_modules/@node-red/editor/src/vendor/marked/marked.min.js",
|
||||||
"editor/vendor/d3/d3.v3.min.js",
|
"packages/node_modules/@node-red/editor/src/vendor/d3/d3.v3.min.js",
|
||||||
"editor/vendor/i18next/i18next.min.js"
|
"packages/node_modules/@node-red/editor/src/vendor/i18next/i18next.min.js"
|
||||||
],
|
],
|
||||||
"public/vendor/vendor.css": [
|
"packages/node_modules/@node-red/editor/public/vendor/vendor.css": [
|
||||||
// TODO: resolve relative resource paths in
|
// TODO: resolve relative resource paths in
|
||||||
// bootstrap/FA/jquery
|
// bootstrap/FA/jquery
|
||||||
],
|
],
|
||||||
"public/vendor/jsonata/jsonata.min.js": [
|
"packages/node_modules/@node-red/editor/public/vendor/jsonata/jsonata.min.js": [
|
||||||
"node_modules/jsonata/jsonata-es5.min.js",
|
"node_modules/jsonata/jsonata-es5.min.js",
|
||||||
"editor/vendor/jsonata/formatter.js"
|
"packages/node_modules/@node-red/editor/src/vendor/jsonata/formatter.js"
|
||||||
],
|
],
|
||||||
"public/vendor/ace/worker-jsonata.js": [
|
"packages/node_modules/@node-red/editor/public/vendor/ace/worker-jsonata.js": [
|
||||||
"node_modules/jsonata/jsonata-es5.min.js",
|
"node_modules/jsonata/jsonata-es5.min.js",
|
||||||
"editor/vendor/jsonata/worker-jsonata.js"
|
"packages/node_modules/@node-red/editor/src/vendor/jsonata/worker-jsonata.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -202,10 +200,10 @@ module.exports = function(grunt) {
|
|||||||
uglify: {
|
uglify: {
|
||||||
build: {
|
build: {
|
||||||
files: {
|
files: {
|
||||||
'public/red/red.min.js': 'public/red/red.js',
|
'packages/node_modules/@node-red/editor/public/red/red.min.js': 'packages/node_modules/@node-red/editor/public/red/red.js',
|
||||||
'public/red/main.min.js': 'public/red/main.js',
|
'packages/node_modules/@node-red/editor/public/red/main.min.js': 'packages/node_modules/@node-red/editor/public/red/main.js',
|
||||||
'public/vendor/ace/mode-jsonata.js': 'editor/vendor/jsonata/mode-jsonata.js',
|
'packages/node_modules/@node-red/editor/public/vendor/ace/mode-jsonata.js': 'packages/node_modules/@node-red/editor/src/vendor/jsonata/mode-jsonata.js',
|
||||||
'public/vendor/ace/snippets/jsonata.js': 'editor/vendor/jsonata/snippets-jsonata.js'
|
'packages/node_modules/@node-red/editor/public/vendor/ace/snippets/jsonata.js': 'packages/node_modules/@node-red/editor/src/vendor/jsonata/snippets-jsonata.js'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -215,12 +213,12 @@ module.exports = function(grunt) {
|
|||||||
outputStyle: 'compressed'
|
outputStyle: 'compressed'
|
||||||
},
|
},
|
||||||
files: [{
|
files: [{
|
||||||
dest: 'public/red/style.min.css',
|
dest: 'packages/node_modules/@node-red/editor/public/red/style.min.css',
|
||||||
src: 'editor/sass/style.scss'
|
src: 'packages/node_modules/@node-red/editor/src/sass/style.scss'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dest: 'public/vendor/bootstrap/css/bootstrap.min.css',
|
dest: 'packages/node_modules/@node-red/editor/public/vendor/bootstrap/css/bootstrap.min.css',
|
||||||
src: 'editor/vendor/bootstrap/css/bootstrap.css'
|
src: 'packages/node_modules/@node-red/editor/src/vendor/bootstrap/css/bootstrap.css'
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -234,31 +232,31 @@ module.exports = function(grunt) {
|
|||||||
},
|
},
|
||||||
keymaps: {
|
keymaps: {
|
||||||
src: [
|
src: [
|
||||||
'editor/js/keymap.json'
|
'packages/node_modules/@node-red/editor/src/js/keymap.json'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
attachCopyright: {
|
attachCopyright: {
|
||||||
js: {
|
js: {
|
||||||
src: [
|
src: [
|
||||||
'public/red/red.min.js',
|
'packages/node_modules/@node-red/editor/public/red/red.min.js',
|
||||||
'public/red/main.min.js'
|
'packages/node_modules/@node-red/editor/public/red/main.min.js'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
src: [
|
src: [
|
||||||
'public/red/style.min.css'
|
'packages/node_modules/@node-red/editor/public/red/style.min.css'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clean: {
|
clean: {
|
||||||
build: {
|
build: {
|
||||||
src: [
|
src: [
|
||||||
"public/red",
|
"packages/node_modules/@node-red/editor/public/red",
|
||||||
"public/index.html",
|
"packages/node_modules/@node-red/editor/public/index.html",
|
||||||
"public/favicon.ico",
|
"packages/node_modules/@node-red/editor/public/favicon.ico",
|
||||||
"public/icons",
|
"packages/node_modules/@node-red/editor/public/icons",
|
||||||
"public/vendor"
|
"packages/node_modules/@node-red/editor/public/vendor"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
release: {
|
release: {
|
||||||
@ -270,13 +268,13 @@ module.exports = function(grunt) {
|
|||||||
watch: {
|
watch: {
|
||||||
js: {
|
js: {
|
||||||
files: [
|
files: [
|
||||||
'editor/js/**/*.js'
|
'packages/node_modules/@node-red/editor/src/js/**/*.js'
|
||||||
],
|
],
|
||||||
tasks: ['copy:build','concat','uglify','attachCopyright:js']
|
tasks: ['copy:build','concat','uglify','attachCopyright:js']
|
||||||
},
|
},
|
||||||
sass: {
|
sass: {
|
||||||
files: [
|
files: [
|
||||||
'editor/sass/**/*.scss'
|
'packages/node_modules/@node-red/editor/src/sass/**/*.scss'
|
||||||
],
|
],
|
||||||
tasks: ['sass','attachCopyright:css']
|
tasks: ['sass','attachCopyright:css']
|
||||||
},
|
},
|
||||||
@ -290,7 +288,7 @@ module.exports = function(grunt) {
|
|||||||
},
|
},
|
||||||
keymaps: {
|
keymaps: {
|
||||||
files: [
|
files: [
|
||||||
'editor/js/keymap.json'
|
'packages/node_modules/@node-red/editor/src/js/keymap.json'
|
||||||
],
|
],
|
||||||
tasks: ['jsonlint:keymaps','copy:build']
|
tasks: ['jsonlint:keymaps','copy:build']
|
||||||
},
|
},
|
||||||
@ -329,21 +327,21 @@ module.exports = function(grunt) {
|
|||||||
build: {
|
build: {
|
||||||
files:[
|
files:[
|
||||||
{
|
{
|
||||||
src: 'editor/js/main.js',
|
src: 'packages/node_modules/@node-red/editor/src/js/main.js',
|
||||||
dest: 'public/red/main.js'
|
dest: 'packages/node_modules/@node-red/editor/public/red/main.js'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'editor/js/keymap.json',
|
src: 'packages/node_modules/@node-red/editor/src/js/keymap.json',
|
||||||
dest: 'public/red/keymap.json'
|
dest: 'packages/node_modules/@node-red/editor/public/red/keymap.json'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
cwd: 'editor/images',
|
cwd: 'packages/node_modules/@node-red/editor/src/images',
|
||||||
src: '**',
|
src: '**',
|
||||||
expand: true,
|
expand: true,
|
||||||
dest: 'public/red/images/'
|
dest: 'packages/node_modules/@node-red/editor/public/red/images/'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
cwd: 'editor/vendor',
|
cwd: 'packages/node_modules/@node-red/editor/src/vendor',
|
||||||
src: [
|
src: [
|
||||||
'ace/**',
|
'ace/**',
|
||||||
//'bootstrap/css/**',
|
//'bootstrap/css/**',
|
||||||
@ -352,23 +350,23 @@ module.exports = function(grunt) {
|
|||||||
'font-awesome/**'
|
'font-awesome/**'
|
||||||
],
|
],
|
||||||
expand: true,
|
expand: true,
|
||||||
dest: 'public/vendor/'
|
dest: 'packages/node_modules/@node-red/editor/public/vendor/'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
cwd: 'editor/icons',
|
cwd: 'packages/node_modules/@node-red/editor/src/icons',
|
||||||
src: '**',
|
src: '**',
|
||||||
expand: true,
|
expand: true,
|
||||||
dest: 'public/icons/'
|
dest: 'packages/node_modules/@node-red/editor/public/icons/'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
src: ['editor/index.html','editor/favicon.ico'],
|
src: ['packages/node_modules/@node-red/editor/src/index.html','packages/node_modules/@node-red/editor/src/favicon.ico'],
|
||||||
dest: 'public/',
|
dest: 'packages/node_modules/@node-red/editor/public/',
|
||||||
flatten: true
|
flatten: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'CHANGELOG.md',
|
src: 'CHANGELOG.md',
|
||||||
dest: 'public/red/about'
|
dest: 'packages/node_modules/@node-red/editor/public/red/about'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
10753
package-lock.json
generated
Normal file
0
red/api/admin/flow.js → packages/node_modules/@node-red/editor/lib/admin/flow.js
generated
vendored
0
red/api/admin/flows.js → packages/node_modules/@node-red/editor/lib/admin/flows.js
generated
vendored
0
red/api/admin/index.js → packages/node_modules/@node-red/editor/lib/admin/index.js
generated
vendored
0
red/api/admin/nodes.js → packages/node_modules/@node-red/editor/lib/admin/nodes.js
generated
vendored
0
red/api/auth/clients.js → packages/node_modules/@node-red/editor/lib/auth/clients.js
generated
vendored
2
red/api/auth/index.js → packages/node_modules/@node-red/editor/lib/auth/index.js
generated
vendored
@ -25,7 +25,7 @@ var permissions = require("./permissions");
|
|||||||
var theme = require("../editor/theme");
|
var theme = require("../editor/theme");
|
||||||
|
|
||||||
var settings = null;
|
var settings = null;
|
||||||
var log = require("../../util").log; // TODO: separate module
|
var log = require("@node-red/util").log; // TODO: separate module
|
||||||
|
|
||||||
|
|
||||||
passport.use(strategies.bearerStrategy.BearerStrategy);
|
passport.use(strategies.bearerStrategy.BearerStrategy);
|
@ -26,7 +26,7 @@ var Users = require("./users");
|
|||||||
var Clients = require("./clients");
|
var Clients = require("./clients");
|
||||||
var permissions = require("./permissions");
|
var permissions = require("./permissions");
|
||||||
|
|
||||||
var log = require("../../util").log; // TODO: separate module
|
var log = require("@node-red/util").log; // TODO: separate module
|
||||||
|
|
||||||
var bearerStrategy = function (accessToken, done) {
|
var bearerStrategy = function (accessToken, done) {
|
||||||
// is this a valid token?
|
// is this a valid token?
|
0
red/api/auth/tokens.js → packages/node_modules/@node-red/editor/lib/auth/tokens.js
generated
vendored
0
red/api/auth/users.js → packages/node_modules/@node-red/editor/lib/auth/users.js
generated
vendored
2
red/api/editor/comms.js → packages/node_modules/@node-red/editor/lib/editor/comms.js
generated
vendored
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
var ws = require("ws");
|
var ws = require("ws");
|
||||||
|
|
||||||
var log = require("../../util").log; // TODO: separate module
|
var log = require("@node-red/util").log; // TODO: separate module
|
||||||
var Tokens;
|
var Tokens;
|
||||||
var Users;
|
var Users;
|
||||||
var Permissions;
|
var Permissions;
|
4
red/api/editor/index.js → packages/node_modules/@node-red/editor/lib/editor/index.js
generated
vendored
@ -25,8 +25,8 @@ var auth = require("../auth");
|
|||||||
var nodes = require("../admin/nodes"); // TODO: move /icons into here
|
var nodes = require("../admin/nodes"); // TODO: move /icons into here
|
||||||
var needsPermission;
|
var needsPermission;
|
||||||
var runtimeAPI;
|
var runtimeAPI;
|
||||||
var log = require("../../util").log; // TODO: separate module
|
var log = require("@node-red/util").log; // TODO: separate module
|
||||||
var i18n = require("../../util").i18n; // TODO: separate module
|
var i18n = require("@node-red/util").i18n; // TODO: separate module
|
||||||
|
|
||||||
var apiUtil = require("../util");
|
var apiUtil = require("../util");
|
||||||
|
|
@ -17,7 +17,7 @@ var fs = require('fs');
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
//var apiUtil = require('../util');
|
//var apiUtil = require('../util');
|
||||||
|
|
||||||
var i18n = require("../../util").i18n; // TODO: separate module
|
var i18n = require("@node-red/util").i18n; // TODO: separate module
|
||||||
|
|
||||||
var runtimeAPI;
|
var runtimeAPI;
|
||||||
|
|
0
red/api/editor/theme.js → packages/node_modules/@node-red/editor/lib/editor/theme.js
generated
vendored
4
red/api/editor/ui.js → packages/node_modules/@node-red/editor/lib/editor/ui.js
generated
vendored
@ -25,7 +25,7 @@ var theme = require("./theme");
|
|||||||
|
|
||||||
var runtimeAPI;
|
var runtimeAPI;
|
||||||
|
|
||||||
var templateDir = path.resolve(__dirname+"/../../../editor/templates");
|
var templateDir = path.resolve(__dirname+"/../../src/templates");
|
||||||
var editorTemplate;
|
var editorTemplate;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -65,5 +65,5 @@ module.exports = {
|
|||||||
editor: function(req,res) {
|
editor: function(req,res) {
|
||||||
res.send(Mustache.render(editorTemplate,theme.context()));
|
res.send(Mustache.render(editorTemplate,theme.context()));
|
||||||
},
|
},
|
||||||
editorResources: express.static(__dirname + '/../../../public')
|
editorResources: express.static(__dirname + '/../../public')
|
||||||
};
|
};
|
0
red/api/index.js → packages/node_modules/@node-red/editor/lib/index.js
generated
vendored
4
red/api/util.js → packages/node_modules/@node-red/editor/lib/util.js
generated
vendored
@ -15,8 +15,8 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
||||||
var log = require("../util").log; // TODO: separate module
|
var log = require("@node-red/util").log; // TODO: separate module
|
||||||
var i18n = require("../util").i18n; // TODO: separate module
|
var i18n = require("@node-red/util").i18n; // TODO: separate module
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
6
packages/node_modules/@node-red/editor/package.json
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "@node-red/editor",
|
||||||
|
"version": "0.20.0",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"main": "./lib/index.js"
|
||||||
|
}
|
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 324 B |
0
editor/icons/feed.png → packages/node_modules/@node-red/editor/public/icons/feed.png
generated
vendored
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 542 B After Width: | Height: | Size: 542 B |
Before Width: | Height: | Size: 503 B After Width: | Height: | Size: 503 B |
0
editor/icons/file.png → packages/node_modules/@node-red/editor/public/icons/file.png
generated
vendored
Before Width: | Height: | Size: 255 B After Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 457 B After Width: | Height: | Size: 457 B |
0
editor/icons/hash.png → packages/node_modules/@node-red/editor/public/icons/hash.png
generated
vendored
Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 502 B |
Before Width: | Height: | Size: 449 B After Width: | Height: | Size: 449 B |
0
editor/icons/join.png → packages/node_modules/@node-red/editor/public/icons/join.png
generated
vendored
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 639 B After Width: | Height: | Size: 639 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 414 B |
Before Width: | Height: | Size: 671 B After Width: | Height: | Size: 671 B |
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 413 B After Width: | Height: | Size: 413 B |
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 393 B |
Before Width: | Height: | Size: 467 B After Width: | Height: | Size: 467 B |
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 393 B |
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 360 B |
Before Width: | Height: | Size: 736 B After Width: | Height: | Size: 736 B |
0
editor/icons/rpi.png → packages/node_modules/@node-red/editor/public/icons/rpi.png
generated
vendored
Before Width: | Height: | Size: 482 B After Width: | Height: | Size: 482 B |
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 273 B |
0
editor/icons/sort.png → packages/node_modules/@node-red/editor/public/icons/sort.png
generated
vendored
Before Width: | Height: | Size: 793 B After Width: | Height: | Size: 793 B |
Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 439 B After Width: | Height: | Size: 439 B |
0
editor/icons/swap.png → packages/node_modules/@node-red/editor/public/icons/swap.png
generated
vendored
Before Width: | Height: | Size: 592 B After Width: | Height: | Size: 592 B |
Before Width: | Height: | Size: 509 B After Width: | Height: | Size: 509 B |
Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 628 B After Width: | Height: | Size: 628 B |
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 258 B |
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 591 B After Width: | Height: | Size: 591 B |
Before Width: | Height: | Size: 707 B After Width: | Height: | Size: 707 B |
1285
packages/node_modules/@node-red/editor/public/red/about
generated
vendored
Normal file
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 289 B |
Before Width: | Height: | Size: 368 B After Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 290 B |
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B |
Before Width: | Height: | Size: 192 B After Width: | Height: | Size: 192 B |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 1019 B After Width: | Height: | Size: 1019 B |
Before Width: | Height: | Size: 600 B After Width: | Height: | Size: 600 B |
Before Width: | Height: | Size: 410 B After Width: | Height: | Size: 410 B |
Before Width: | Height: | Size: 638 B After Width: | Height: | Size: 638 B |
Before Width: | Height: | Size: 546 B After Width: | Height: | Size: 546 B |
Before Width: | Height: | Size: 638 B After Width: | Height: | Size: 638 B |
Before Width: | Height: | Size: 646 B After Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 809 B After Width: | Height: | Size: 809 B |
Before Width: | Height: | Size: 563 B After Width: | Height: | Size: 563 B |
Before Width: | Height: | Size: 588 B After Width: | Height: | Size: 588 B |
Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 502 B |
0
editor/js/main.js → packages/node_modules/@node-red/editor/public/red/main.js
generated
vendored
16
packages/node_modules/@node-red/editor/public/red/main.min.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/**
|
||||||
|
* Copyright JS Foundation and other contributors, http://js.foundation
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
**/
|
||||||
|
$(function(){"localhost"!==window.location.hostname&&"127.0.0.1"!==window.location.hostname&&(document.title=document.title+" : "+window.location.hostname),RED.init({apiRootUrl:""})});
|