nep-cli 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/assets/vue.js +11944 -0
- package/bin/assets/vuetify/json/attributes.json +9158 -0
- package/bin/assets/vuetify/json/tags.json +3063 -0
- package/bin/assets/vuetify/json/web-types.json +27671 -0
- package/bin/assets/vuetify/vuetify.css +24876 -0
- package/bin/assets/vuetify/vuetify.css.map +1 -0
- package/bin/assets/vuetify/vuetify.js +41073 -0
- package/bin/assets/vuetify/vuetify.js.map +1 -0
- package/bin/assets/vuetify/vuetify.min.css +8 -0
- package/bin/assets/vuetify/vuetify.min.js +6 -0
- package/bin/image.html +14 -6
- package/bin/index.js +308 -275
- package/bin/json.html +9 -4
- package/package.json +3 -4
- package/bin/image4.html +0 -57
package/bin/json.html
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
7
|
<title>NEP+ JSON Data</title>
|
|
8
8
|
<!-- Include Vue 2 and Vuetify 2 from CDN -->
|
|
9
|
-
<link href="
|
|
10
|
-
<script src="
|
|
11
|
-
<script src="
|
|
9
|
+
<link href="assets/vuetify/vuetify.min.css" rel="stylesheet">
|
|
10
|
+
<script src="assets/vue.js"></script>
|
|
11
|
+
<script src="assets/vuetify/vuetify.js"></script>
|
|
12
12
|
<!-- Include JSON Editor library -->
|
|
13
13
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/9.10.2/jsoneditor.min.js"></script>
|
|
14
14
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/9.10.2/jsoneditor.min.css" rel="stylesheet">
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<v-app style="background-color: #0D0D0D;">
|
|
110
110
|
<v-container>
|
|
111
111
|
<v-toolbar flat dense dark color="transparent">
|
|
112
|
-
<v-toolbar-title> Topic
|
|
112
|
+
<v-toolbar-title> Topic {{ topic }}</v-toolbar-title>
|
|
113
113
|
<v-spacer></v-spacer>
|
|
114
114
|
</v-toolbar>
|
|
115
115
|
<v-row>
|
|
@@ -148,6 +148,11 @@
|
|
|
148
148
|
topic: '',
|
|
149
149
|
};
|
|
150
150
|
},
|
|
151
|
+
watch: {
|
|
152
|
+
topic(newVal) {
|
|
153
|
+
document.title = newVal ? `NEP+ JSON ${newVal}` : 'NEP+ JSON';
|
|
154
|
+
}
|
|
155
|
+
},
|
|
151
156
|
mounted() {
|
|
152
157
|
this.topic = getParameterByName('topic');
|
|
153
158
|
const socket = io.connect(`http://localhost:${port}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nep-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"main": "./lib/nep.js",
|
|
5
5
|
"bin": {
|
|
6
6
|
"nep": "./bin/index.js"
|
|
@@ -12,11 +12,10 @@
|
|
|
12
12
|
"commander": "^11.0.0",
|
|
13
13
|
"enquirer": "^2.4.1",
|
|
14
14
|
"express": "^4.18.2",
|
|
15
|
-
"
|
|
16
|
-
"inquirer": "^9.2.10",
|
|
17
|
-
"nep-js": "0.3.7",
|
|
15
|
+
"nep-js": "^0.3.8",
|
|
18
16
|
"open": "7.4.2",
|
|
19
17
|
"socket.io": "^4.7.2",
|
|
18
|
+
"vue": "^2.7.16",
|
|
20
19
|
"zeromq": "6.0.0-beta.19"
|
|
21
20
|
}
|
|
22
21
|
}
|
package/bin/image4.html
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<title>NEP+ Image</title>
|
|
8
|
-
<!-- Include Vue 2 and Vuetify 2 from CDN -->
|
|
9
|
-
<link href="https://cdn.jsdelivr.net/npm/vuetify@2.6.3/dist/vuetify.min.css" rel="stylesheet">
|
|
10
|
-
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
|
|
11
|
-
<script src="https://cdn.jsdelivr.net/npm/vuetify@2.6.3/dist/vuetify.js"></script>
|
|
12
|
-
</head>
|
|
13
|
-
|
|
14
|
-
<body>
|
|
15
|
-
<div id="app">
|
|
16
|
-
<v-app>
|
|
17
|
-
<v-container>
|
|
18
|
-
<v-toolbar dense color="transparent">
|
|
19
|
-
<v-toolbar-title>Camera USB</v-toolbar-title>
|
|
20
|
-
<v-spacer></v-spacer>
|
|
21
|
-
|
|
22
|
-
</v-toolbar>
|
|
23
|
-
<v-row>
|
|
24
|
-
<v-col>
|
|
25
|
-
<v-card color="#1A1A1A">
|
|
26
|
-
<v-img :src="imageSrc" alt="Streamed Image" contain></v-img>
|
|
27
|
-
</v-card>
|
|
28
|
-
</v-col>
|
|
29
|
-
</v-row>
|
|
30
|
-
</v-container>
|
|
31
|
-
</v-app>
|
|
32
|
-
</div>
|
|
33
|
-
<script src="/socket.io/socket.io.js"></script> <!-- Include the Socket.IO client library -->
|
|
34
|
-
<script>
|
|
35
|
-
// Initialize Vue and Vuetify
|
|
36
|
-
new Vue({
|
|
37
|
-
el: '#app',
|
|
38
|
-
vuetify: new Vuetify(),
|
|
39
|
-
data() {
|
|
40
|
-
return {
|
|
41
|
-
imageSrc: '', // Initialize the image source as empty
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
mounted() {
|
|
45
|
-
const image = document.getElementById('image');
|
|
46
|
-
const socket = io.connect('http://localhost:3000'); // Connect to your server
|
|
47
|
-
|
|
48
|
-
socket.on('image', (data) => {
|
|
49
|
-
// Set the received image data as the image source
|
|
50
|
-
this.imageSrc = `data:image/jpeg;base64,${data.image}`;
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
</script>
|
|
55
|
-
</body>
|
|
56
|
-
|
|
57
|
-
</html>
|