v4l2camera-ui 0.0.0 → 0.1.4-3-g2a65b62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "v4l2camera-ui",
3
- "version": "0.0.0",
3
+ "version": "0.1.4-3-g2a65b62",
4
4
  "scripts": {
5
5
  "serve": "vite --host=0.0.0.0 preview",
6
6
  "build": "vite build --emptyOutDir",
package/src/App.vue CHANGED
@@ -25,7 +25,7 @@ export default {
25
25
  Video
26
26
  },
27
27
  mounted() {
28
- axios({ method: "GET", url: config.serviceurl + "/api/capabilities" }).then(
28
+ axios.get(config.serviceurl + "/api/capabilities").then(
29
29
  (response) => this.msg = response.data.card
30
30
  );
31
31
  },
@@ -93,11 +93,11 @@ import config from '../config.js';
93
93
 
94
94
  export default {
95
95
  mounted() {
96
- axios({ method: "GET", url: config.serviceurl + "/api/formats" }).then(
96
+ axios.get(config.serviceurl + "/api/formats").then(
97
97
  (response) => {
98
98
  this.formats = response.data;
99
99
 
100
- axios({ method: "GET", url: config.serviceurl + "/api/format" }).then(
100
+ axios.get(config.serviceurl + "/api/format").then(
101
101
  (response) => {
102
102
  this.format = response.data;
103
103
  this.updateFormatFields();
@@ -123,11 +123,11 @@ export default {
123
123
  );
124
124
  },
125
125
  updateGeometry() {
126
- console.log(this.geometry)
127
- const sizes = this.geometry.split('x');
128
- this.format.width = parseInt(sizes[0]);
129
- this.format.height = parseInt(sizes[1]);
130
- this.updateValue(this.format);
126
+ console.log(this.geometry)
127
+ const sizes = this.geometry.split('x');
128
+ this.format.width = parseInt(sizes[0]);
129
+ this.format.height = parseInt(sizes[1]);
130
+ this.updateValue(this.format);
131
131
  },
132
132
  updateFormatFields() {
133
133
  this.geometry = `${this.format.width}x${this.format.height}`;
@@ -141,7 +141,7 @@ export default {
141
141
  return formats.sort((a,b) => a.width*a.height - b.width*b.height).map(item => `${item.width}x${item.height}`);
142
142
  },
143
143
  getFps(formats) {
144
- return formats.filter((fmt) => fmt.width + 'x' + fmt.height == this.geometry)[0].intervals.map(f => f.fps);
144
+ return formats.filter((fmt) => fmt.width + 'x' + fmt.height == this.geometry)[0].intervals.map(f => f.fps);
145
145
  }
146
146
  }
147
147
  };
@@ -37,10 +37,10 @@ export default {
37
37
  };
38
38
  },
39
39
  mounted() {
40
- axios({ method: "GET", url: config.serviceurl + "/api/rtspinfo" }).then(
40
+ axios.get(config.serviceurl + "/api/rtspinfo").then(
41
41
  (response) => this.rtspinfo = response.data
42
42
  );
43
- axios({ method: "GET", url: config.serviceurl + "/api/isCapturing" }).then(
43
+ axios.get(config.serviceurl + "/api/isCapturing").then(
44
44
  (response) => this.visibility = response.data
45
45
  );
46
46
  },