WIP
parent
731c3d5f82
commit
2f98dfdc6b
|
@ -32,7 +32,7 @@ namespace ln.manage
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
static class ManagedContainerExtensions
|
public static class ManagedContainerExtensions
|
||||||
{
|
{
|
||||||
|
|
||||||
public static string[] GetContainerPath(this IManagedContainer container)
|
public static string[] GetContainerPath(this IManagedContainer container)
|
||||||
|
|
|
@ -11,6 +11,7 @@ using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using ln.json;
|
using ln.json;
|
||||||
using ln.types.net;
|
using ln.types.net;
|
||||||
|
using ln.json.attributes;
|
||||||
namespace ln.manage
|
namespace ln.manage
|
||||||
{
|
{
|
||||||
public class PropertyDescriptorAttribute : Attribute
|
public class PropertyDescriptorAttribute : Attribute
|
||||||
|
|
|
@ -73,9 +73,14 @@
|
||||||
<Folder Include="test\" />
|
<Folder Include="test\" />
|
||||||
<Folder Include="provider\" />
|
<Folder Include="provider\" />
|
||||||
<Folder Include="container\" />
|
<Folder Include="container\" />
|
||||||
|
<Folder Include="www\" />
|
||||||
|
<Folder Include="www\js\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="doc\notes.txt" />
|
<None Include="doc\notes.txt" />
|
||||||
|
<None Include="www\js\ln.manage.js">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -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);
|
||||||
|
|
||||||
|
})();
|
Loading…
Reference in New Issue