-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (59 loc) · 2.96 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DMR Web Resolver</title>
<link href="s.css" rel="stylesheet" />
<!-- /dist/vue.global.prod.js -->
<script src="https://unpkg.com/vue@latest/dist/vue.global.prod.js"></script>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<h1>DMR Web Resolver Sample</h1>
<div id="app">
<div class="search">
DMR: <input type="text" size="70" v-model="repoBaseUrl">
<input type="checkbox" checked="true" v-model="tryExpanded"> TryExpanded
<div class="samples">
<div id="sample-dtmis" @click="changRepo">
<small id="https://devicemodels.azure.com">devicemodels.azure.com </small>
<small id="https://raw.githubusercontent.com/iotmodels/iot-plugandplay-models/rido/pnp">iotmodels/iot-plugandplay-models>rido/pnp </small>
<small id="https://raw.githubusercontent.com/tartabit/iot-plugandplay-models/tartabit-device">tartabit/iot-plugandplay-models->tartabit-device </small>
</div>
</div>
</div>
<div class="search">
DTMI: <input type="text" size="50" v-model="dtmi">
<button @click="search()">Resolve</button>
</div>
<div class="samples">
<div id="sample-dtmis" @click="changeSelection">
<small id="dtmi:com:example:TemperatureController;1">dtmi:com:example:TemperatureController;1 </small>
<small id="dtmi:azure:iot:deviceUpdateModel;1">dtmi:azure:iot:deviceUpdateModel;1 </small>
<small id="dtmi:MeshSystems:tXs:SensorSync;1">dtmi:MeshSystems:tXs:SensorSync;1 </small>
<small id="dtmi:jp:co:covia:ActyG3;2">dtmi:jp:co:covia:ActyG3;2 </small>
<small id="dtmi:Espressif:SensorController;2">dtmi:Espressif:SensorController;2 </small>
<small id="dtmi:Advantech:EPC_U2117;2">dtmi:Advantech:EPC_U2117;2 </small>
<small id="dtmi:impinj:FixedReader;14">dtmi:impinj:FixedReader;14 </small>
<small id="dtmi:rido:pnp:memmon;1">dtmi:rido:pnp:memmon;1 </small>
</div>
</div>
<span class="error" v-if="errInfo">{{ errInfo }}</span>
<div class="rendered" v-if="model.length>0">
<interface :interface="model[0]" :root="model" :base-repo="repoBaseUrl"></interface>
</div>
</div>
<script type="module">
import index from './index.js'
import Interface from './comps/Interface.vue.js'
const { createApp } = Vue
const app = createApp(index)
app.component("Interface", Interface)
app.mount('#app')
</script>
<div>
Built with Vue3, source code availabe at <a href="https://github.com/iotmodels/web-resolver">https://github.com/iotmodels/web-resolver</a>
</div>
</body>
</html>