mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add partial implementation of adding library sources via editor
This adds lots of commented out code that provides a settings panel to add new library sources. It is incomplete as it doesn't actually add/update the library sources on the runtime. For 1.3, I'm focussing on allowing additional sources get added via the settings file only. I've done enough work on the editor side to convince myself more work is needed than I can justify at this time on what is otherwise not going to be a widely used feature.
This commit is contained in:
committed by
Nick O'Leary
parent
8a076c01ab
commit
3f9a29730f
@@ -25,6 +25,27 @@ var api = module.exports = {
|
||||
runtime = _runtime;
|
||||
},
|
||||
|
||||
// /* *
|
||||
// * Gets the configuration of a library source.
|
||||
// * @param {Object} opts
|
||||
// * @param {User} opts.user - the user calling the api
|
||||
// * @param {String} opts.library - the library
|
||||
// * @param {Object} opts.req - the request to log (optional)
|
||||
// * @return {Promise<String|Object>} - resolves when complete
|
||||
// * @memberof @node-red/runtime_library
|
||||
// */
|
||||
// getConfig: async function(opts) {
|
||||
// runtime.log.audit({event: "library.getConfig",library:opts.library}, opts.req);
|
||||
// try {
|
||||
// return runtime.library.getConfig(opts.library)
|
||||
// } catch(err) {
|
||||
// var error = new Error();
|
||||
// error.code = "not_found";
|
||||
// error.status = 404;
|
||||
// throw error;
|
||||
// }
|
||||
// },
|
||||
|
||||
/**
|
||||
* Gets an entry from the library.
|
||||
* @param {Object} opts
|
||||
|
Reference in New Issue
Block a user