File tree Expand file tree Collapse file tree 5 files changed +10
-111
lines changed Expand file tree Collapse file tree 5 files changed +10
-111
lines changed Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2022
3+ Copyright (c) 2024
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 < head >
44 < meta charset ="utf-8 " />
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6- < link rel ="stylesheet " href ="./css/main.css " />
7-
86 < script src ="webxdc.js "> </ script >
97 </ head >
108 < body >
11- < h1 > Chat</ h1 >
12- < form >
13- < input
14- id ="input "
15- type ="text "
16- autocomplete ="off "
17- placeholder ="Message "
18- autofocus
19- />
20- < input
21- class ="btn "
22- type ="submit "
23- onclick ="sendMsg(); return false; "
24- value ="Send "
25- />
26- </ form >
27- < p id ="chat-area "> </ p >
28- < p >
29- < em > < small id ="deviceName "> </ small > </ em >
30- </ p >
31- < script src ="./js/main.js " type ="module "> </ script >
9+ < script type ="module ">
10+ window . webxdc . sendUpdate ( { payload : "hello world!" } , "" ) ;
11+ </ script >
3212 </ body >
3313</ html >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
3+ "type" : " module" ,
34 "scripts" : {
45 "start" : " vite --port 3000" ,
56 "emulator" : " concurrently \" npm start\" \" webxdc-dev run http://localhost:3000\" " ,
89 "build" : " vite build"
910 },
1011 "devDependencies" : {
11- "concurrently" : " ^8.2.2 " ,
12- "prettier" : " ^3.3.2 " ,
13- "vite" : " ^4.5.3 " ,
14- "webxdc-dev" : " ^0.17.0 " ,
15- "webxdc- vite-plugins" : " github:webxdc/webxdc-vite-plugins "
12+ "concurrently" : " latest " ,
13+ "prettier" : " latest " ,
14+ "vite" : " latest " ,
15+ "webxdc-dev" : " latest " ,
16+ "@ webxdc/ vite-plugins" : " latest "
1617 }
1718}
You can’t perform that action at this time.
0 commit comments