2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-05-06 11:32:59 +00:00
This commit is contained in:
Ahmed Zamil 2024-06-10 14:19:26 +03:00
parent 3e4d6461a3
commit b5c2e489b3
3 changed files with 20 additions and 15 deletions

View File

@ -8,12 +8,11 @@ using System.Threading.Tasks;
namespace Esiur.Examples.StandaloneWebServerDemo
{
[Export]
[Resource]
public partial class Demo
{
[Export] int color { get; set; }
[Export] string label { get; set;}
[Export] int color;
[Export] string label = "Hello World";
[Export] public ResourceEventHandler<int> Cleared;
[Export] public ResourceEventHandler<Point> Drawn;
@ -21,7 +20,6 @@ namespace Esiur.Examples.StandaloneWebServerDemo
[Export] public void Draw(int x, int y, int 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++)
p.Add(0);
}
}
}

View File

@ -29,6 +29,13 @@ i-router {
overflow: auto;
}
.content {
}
.iui-error {
display: none;
}
/* row */
.row label {

View File

@ -47,8 +47,8 @@
<div class="title-bar">
<!--<i-button css-class="ripple" onclick="toggleNav()">
<img src="img/menu.png" style="height: 40px" />
</i-button>-->
<img src="img/menu.png" style="height: 40px" />
</i-button>-->
<img src="img/coie.jpg" class="logo desktop">
@ -62,21 +62,20 @@
<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>-->
<!--<div class="profile desktop">
<div class="profile-type"></div>
<i-link class="profile-username" href="/profile"></i-link>
<i-link onclick="logout()" style="padding: 0px 10px"><img style="width: 30px" src="img/icon/logout.png" /></i-link>
</div>-->
<div class="profile-type"></div>
<i-link class="profile-username" href="/profile"></i-link>
<i-link onclick="logout()" style="padding: 0px 10px"><img style="width: 30px" src="img/icon/logout.png" /></i-link>
</div>-->
<div ::class="`logo connection-${(d?.status ?? 0)}`"></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>
</i-app>
</body>