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