From 2f98dfdc6bbe895b7308831c845039f1ecfedea6 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Mon, 13 Jan 2020 08:56:56 +0100 Subject: [PATCH] WIP --- ManagedRoot.cs | 2 +- PropertyDescriptor.cs | 1 + ln.manage.csproj | 5 ++++ www/js/ln.manage.js | 55 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 www/js/ln.manage.js diff --git a/ManagedRoot.cs b/ManagedRoot.cs index 047b77d..61d87eb 100644 --- a/ManagedRoot.cs +++ b/ManagedRoot.cs @@ -32,7 +32,7 @@ namespace ln.manage } - static class ManagedContainerExtensions + public static class ManagedContainerExtensions { public static string[] GetContainerPath(this IManagedContainer container) diff --git a/PropertyDescriptor.cs b/PropertyDescriptor.cs index 3c1a375..7ed34b2 100644 --- a/PropertyDescriptor.cs +++ b/PropertyDescriptor.cs @@ -11,6 +11,7 @@ using System; using System.Reflection; using ln.json; using ln.types.net; +using ln.json.attributes; namespace ln.manage { public class PropertyDescriptorAttribute : Attribute diff --git a/ln.manage.csproj b/ln.manage.csproj index e89fe54..e062d96 100644 --- a/ln.manage.csproj +++ b/ln.manage.csproj @@ -73,9 +73,14 @@ + + + + PreserveNewest + \ No newline at end of file diff --git a/www/js/ln.manage.js b/www/js/ln.manage.js new file mode 100644 index 0000000..6ba97ff --- /dev/null +++ b/www/js/ln.manage.js @@ -0,0 +1,55 @@ +(function(){ + +let options = { + url: location.origin, + +} + +class Manager extends LN.Component{ + + constructor(_options){ + super("/manager","Manager UI"); + + this.options = Object.assign({}, options, _options); + this.hosts = [ + { + name: "LOCALHOST", + url: this.options.url, + }, + { + name: "LOCALHOST2", + url: "...", + }, + ]; + + this.vue = { + data: () => { return { + manager: this, + currentHost: null, + }; + }, + template: ` +
+
Manager UI

+
+ + + + + +
+ `, + }; + } + + +} + +LN.$add("LN.Manager",Manager); + +})(); \ No newline at end of file