mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-05-06 19:42:58 +00:00
up
This commit is contained in:
parent
3e4d6461a3
commit
b5c2e489b3
@ -8,12 +8,11 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Esiur.Examples.StandaloneWebServerDemo
|
namespace Esiur.Examples.StandaloneWebServerDemo
|
||||||
{
|
{
|
||||||
[Export]
|
|
||||||
[Resource]
|
[Resource]
|
||||||
public partial class Demo
|
public partial class Demo
|
||||||
{
|
{
|
||||||
[Export] int color { get; set; }
|
[Export] int color;
|
||||||
[Export] string label { get; set;}
|
[Export] string label = "Hello World";
|
||||||
[Export] public ResourceEventHandler<int> Cleared;
|
[Export] public ResourceEventHandler<int> Cleared;
|
||||||
[Export] public ResourceEventHandler<Point> Drawn;
|
[Export] public ResourceEventHandler<Point> Drawn;
|
||||||
|
|
||||||
@ -21,7 +20,6 @@ namespace Esiur.Examples.StandaloneWebServerDemo
|
|||||||
|
|
||||||
[Export] public void Draw(int x, int y, int color)
|
[Export] public void Draw(int x, int y, int color)
|
||||||
{
|
{
|
||||||
|
|
||||||
Drawn?.Invoke(new Point() { X = x, Y = y, Color = color });
|
Drawn?.Invoke(new Point() { X = x, Y = y, Color = color });
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,6 +33,7 @@ namespace Esiur.Examples.StandaloneWebServerDemo
|
|||||||
for (var y = 0; y < 300; y++)
|
for (var y = 0; y < 300; y++)
|
||||||
p.Add(0);
|
p.Add(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,13 @@ i-router {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.iui-error {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* row */
|
/* row */
|
||||||
.row label {
|
.row label {
|
||||||
|
@ -62,8 +62,6 @@
|
|||||||
<div class="location desktop" id="location"></div>
|
<div class="location desktop" id="location"></div>
|
||||||
|
|
||||||
<!--<i-link href="tasks" class="inbox"><img src="img/icon/inbox.png"> <span id="spnInbox">0</span></i-link>-->
|
<!--<i-link href="tasks" class="inbox"><img src="img/icon/inbox.png"> <span id="spnInbox">0</span></i-link>-->
|
||||||
|
|
||||||
|
|
||||||
<!--<div class="profile desktop">
|
<!--<div class="profile desktop">
|
||||||
<div class="profile-type"></div>
|
<div class="profile-type"></div>
|
||||||
<i-link class="profile-username" href="/profile"></i-link>
|
<i-link class="profile-username" href="/profile"></i-link>
|
||||||
@ -75,8 +73,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div :data="conection.get('/sys/demo')">
|
|
||||||
<i-input auto ""
|
<div class="content" async:data="d?.get('sys/demo')">
|
||||||
|
<i-input auto field="Label"></i-input>
|
||||||
</div>
|
</div>
|
||||||
</i-app>
|
</i-app>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user