-
\ No newline at end of file
+ };
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/components/iot/color-light.html b/projects/WebMVC/wwwroot/components/iot/color-light.html
index 43c3c9b8..10b99b2a 100644
--- a/projects/WebMVC/wwwroot/components/iot/color-light.html
+++ b/projects/WebMVC/wwwroot/components/iot/color-light.html
@@ -1,4 +1,4 @@
-
+
-
\ No newline at end of file
+ };
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/components/iot/door.html b/projects/WebMVC/wwwroot/components/iot/door.html
index e0812fb7..bbeebb7e 100644
--- a/projects/WebMVC/wwwroot/components/iot/door.html
+++ b/projects/WebMVC/wwwroot/components/iot/door.html
@@ -13,16 +13,15 @@
-
-
+
+
-
\ No newline at end of file
+ };
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/components/iot/socket.html b/projects/WebMVC/wwwroot/components/iot/socket.html
index a3e0a02d..1125dcd9 100644
--- a/projects/WebMVC/wwwroot/components/iot/socket.html
+++ b/projects/WebMVC/wwwroot/components/iot/socket.html
@@ -1,4 +1,4 @@
-
+
{{device.displayName}}
@@ -14,16 +14,15 @@
{{electricity}} kW‧h{{power}} W
-
-
+
+
-
\ No newline at end of file
+ };
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/components/iot/switch.html b/projects/WebMVC/wwwroot/components/iot/switch.html
index 2032c415..0bcab67d 100644
--- a/projects/WebMVC/wwwroot/components/iot/switch.html
+++ b/projects/WebMVC/wwwroot/components/iot/switch.html
@@ -1,4 +1,4 @@
-
+
{{device.displayName}}
@@ -12,16 +12,14 @@
-
-
+
+
-
\ No newline at end of file
+ };
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/components/iot/switch3.html b/projects/WebMVC/wwwroot/components/iot/switch3.html
index a11065d1..65801932 100644
--- a/projects/WebMVC/wwwroot/components/iot/switch3.html
+++ b/projects/WebMVC/wwwroot/components/iot/switch3.html
@@ -1,4 +1,4 @@
-
+
{{device.displayName}}
@@ -12,20 +12,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
\ No newline at end of file
+ };
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/components/shared/display/imageurl.html b/projects/WebMVC/wwwroot/components/shared/display/imageurl.html
index de6940df..2b109992 100644
--- a/projects/WebMVC/wwwroot/components/shared/display/imageurl.html
+++ b/projects/WebMVC/wwwroot/components/shared/display/imageurl.html
@@ -1,16 +1,14 @@
-
+
-
\ No newline at end of file
+ };
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/components/shared/edit/html.html b/projects/WebMVC/wwwroot/components/shared/edit/html.html
index 445e5693..6b945648 100644
--- a/projects/WebMVC/wwwroot/components/shared/edit/html.html
+++ b/projects/WebMVC/wwwroot/components/shared/edit/html.html
@@ -1,10 +1,9 @@
-
+
-
\ No newline at end of file
+ };
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/components/shared/edit/imageurl.html b/projects/WebMVC/wwwroot/components/shared/edit/imageurl.html
index cdd02923..21c444ec 100644
--- a/projects/WebMVC/wwwroot/components/shared/edit/imageurl.html
+++ b/projects/WebMVC/wwwroot/components/shared/edit/imageurl.html
@@ -1,4 +1,4 @@
-
+
@@ -6,8 +6,7 @@
-
\ No newline at end of file
+ };
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/components/shared/layout.html b/projects/WebMVC/wwwroot/components/shared/layout.html
index 48dacca5..e0c47713 100644
--- a/projects/WebMVC/wwwroot/components/shared/layout.html
+++ b/projects/WebMVC/wwwroot/components/shared/layout.html
@@ -383,8 +383,7 @@
-
\ No newline at end of file
+ }
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/index.html b/projects/WebMVC/wwwroot/index.html
index 57ba9b8f..5eed3428 100644
--- a/projects/WebMVC/wwwroot/index.html
+++ b/projects/WebMVC/wwwroot/index.html
@@ -13,7 +13,7 @@
-
+
diff --git a/projects/WebMVC/wwwroot/js/components.js b/projects/WebMVC/wwwroot/js/components.js
index eae42477..941b75a1 100644
--- a/projects/WebMVC/wwwroot/js/components.js
+++ b/projects/WebMVC/wwwroot/js/components.js
@@ -1,25 +1,25 @@
Vue.component('pagination', function (resolve, reject) {
- axios.get("/components/shared/pagination.html").then(function (response) {
+ axios.get("components/shared/pagination.html").then(function (response) {
resolve(parseModel(response));
});
});
Vue.component('layout', function (resolve, reject) {
- axios.get("/components/shared/layout.html").then(function (response) {
+ axios.get("components/shared/layout.html").then(function (response) {
resolve(parseModel(response));
});
});
Vue.component('list', function (resolve, reject) {
- axios.get("/components/shared/list.html").then(function (response) {
+ axios.get("components/shared/list.html").then(function (response) {
resolve(parseModel(response));
});
});
Vue.component('display', function (resolve, reject) {
- axios.get("/components/shared/display.html").then(function (response) {
+ axios.get("components/shared/display.html").then(function (response) {
resolve(parseModel(response));
});
});
Vue.component('update', function (resolve, reject) {
- axios.get("/components/shared/update.html").then(function (response) {
+ axios.get("components/shared/update.html").then(function (response) {
resolve(parseModel(response));
});
-});
\ No newline at end of file
+});
diff --git a/projects/WebMVC/wwwroot/js/form.js b/projects/WebMVC/wwwroot/js/form.js
index d55ccf13..c4a8be01 100644
--- a/projects/WebMVC/wwwroot/js/form.js
+++ b/projects/WebMVC/wwwroot/js/form.js
@@ -21,6 +21,6 @@
];
for (var i = 0; i < formComponents.length; i++) {
var name = formComponents[i];
- var url = "/components/shared/" + name.replace('-', '/') + ".html";
+ var url = "components/shared/" + name.replace('-', '/') + ".html";
vueComponent(name, url);
}
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/js/iot.js b/projects/WebMVC/wwwroot/js/iot.js
index 1f0eb72b..4b24c220 100644
--- a/projects/WebMVC/wwwroot/js/iot.js
+++ b/projects/WebMVC/wwwroot/js/iot.js
@@ -88,7 +88,7 @@ var iotComponents = [
];
for (var i = 0; i < iotComponents.length; i++) {
var name = 'iot-'+iotComponents[i];
- var url = "/components/iot/" + iotComponents[i] + ".html";
+ var url = "components/iot/" + iotComponents[i] + ".html";
vueComponent(name, url);
}
var deviceInfo = [];
diff --git a/projects/WebMVC/wwwroot/js/route.js b/projects/WebMVC/wwwroot/js/route.js
index ff8a52d8..823ff439 100644
--- a/projects/WebMVC/wwwroot/js/route.js
+++ b/projects/WebMVC/wwwroot/js/route.js
@@ -19,7 +19,7 @@ router.beforeEach((to, from, next) => {
var name = url.replace(/\//g, "-").replace(/\./g, "-").substring(1);
var route = routes[name];
if (!route) {
- axios.get(url).then(function (response) {
+ axios.get(url.substring(1)).then(function (response) {
var model = parseModel(response);
route = {
name: name,
diff --git a/publish/src/linux-x64/publish/docker-compose.temp.yml b/publish/src/linux-x64/publish/docker-compose.temp.yml
deleted file mode 100644
index 2f00303e..00000000
--- a/publish/src/linux-x64/publish/docker-compose.temp.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-#docker-compose up -d
-version: "3.8"
-services:
- zookeeper:
- image: wurstmeister/zookeeper:latest
- restart: always
- ports:
- - 2181:2181
- networks:
- default:
- ipv4_address: 172.172.0.201
- kafka:
- image: wurstmeister/kafka:2.13-2.6.0
- restart: always
- environment:
- KAFKA_ZOOKEEPER_CONNECT: 172.172.0.201:2181
- KAFKA_ADVERTISED_HOST_NAME: localhost
- KAFKA_HEAP_OPTS: "-Xmx256m -Xms256m"
- volumes:
- - ./docker/data/kafka:/kafka
- ports:
- - 9092:9092
- networks:
- default:
- ipv4_address: 172.172.0.210
- kafka-manager:
- image: sheepkiller/kafka-manager
- environment:
- ZK_HOSTS: 172.172.0.201
- KAFKA_BROKERS: 172.172.0.210:9092
- ports:
- - "9010:9000"
\ No newline at end of file
diff --git a/publish/src/linux-x64/publish/docker/conf/website/nginx.conf b/publish/src/linux-x64/publish/docker/conf/website/nginx.conf
index 3c40ada5..e7ccb9bc 100644
--- a/publish/src/linux-x64/publish/docker/conf/website/nginx.conf
+++ b/publish/src/linux-x64/publish/docker/conf/website/nginx.conf
@@ -24,7 +24,7 @@ http {
server_name localhost;
location / {
- root /root/nginx/html/desktop;
+ root /root/nginx/html;
if ($http_user_agent ~* "(mobile|android|ipad|iphone|ipod|tablet)") {
root /root/nginx/html/mobile;
}
diff --git a/publish/src/linux-x64/publish/start-dev-temp.cmd b/publish/src/linux-x64/publish/start-dev-temp.cmd
deleted file mode 100644
index e4793fe1..00000000
--- a/publish/src/linux-x64/publish/start-dev-temp.cmd
+++ /dev/null
@@ -1 +0,0 @@
-docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.temp.yml up --remove-orphans -d
\ No newline at end of file