master
Harald Wolff 2020-01-13 08:56:56 +01:00
parent 731c3d5f82
commit 2f98dfdc6b
4 changed files with 62 additions and 1 deletions

View File

@ -32,7 +32,7 @@ namespace ln.manage
}
static class ManagedContainerExtensions
public static class ManagedContainerExtensions
{
public static string[] GetContainerPath(this IManagedContainer container)

View File

@ -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

View File

@ -73,9 +73,14 @@
<Folder Include="test\" />
<Folder Include="provider\" />
<Folder Include="container\" />
<Folder Include="www\" />
<Folder Include="www\js\" />
</ItemGroup>
<ItemGroup>
<None Include="doc\notes.txt" />
<None Include="www\js\ln.manage.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -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: `
<div>
<div>Manager UI</div><br>
<br>
<ln-select
v-bind:items="manager.hosts"
v-model="currentHost"
:render="function(v){ return v.name; }"
:key="function(key,item){ return item; }"
></ln-select>
<textarea>{{ currentHost }}</textarea>
</div>
`,
};
}
}
LN.$add("LN.Manager",Manager);
})();