-
+
发布日志
diff --git a/Tool/webtool/src/HistoryBtn.vue b/Tool/webtool/src/HistoryBtn.vue
new file mode 100644
index 0000000..ce39105
--- /dev/null
+++ b/Tool/webtool/src/HistoryBtn.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Tool/webtool/src/connect.js b/Tool/webtool/src/connect.js
new file mode 100644
index 0000000..2de7c96
--- /dev/null
+++ b/Tool/webtool/src/connect.js
@@ -0,0 +1,33 @@
+class ConnectPipe {
+ #websocket;
+ //在这里打断点可能会导致debug错误,然后浏览器打不开页面, 这是为啥?
+ constructor() {
+ //Id,Msgtype,callback
+ // this.#websocket = new WebSocket(`ws://${window.location.host}`)
+ }
+ #OpenPipe(config, MsgCb) {
+ this.config = config;
+
+ var webSocUrl = `ws://${window.location.host}:${window.location.port}/websoc?Name=${config.Name}`
+ this.#websocket = new WebSocket(webSocUrl);
+ this.#websocket.onopen = (event) => {
+ // console.warn("websocket connected!");
+ this.#websocket.send(JSON.stringify(this.config));
+ };
+ this.#websocket.onmessage = (event) => {
+
+
+
+ };
+ this.#websocket.onclose = (event) => {};
+ this.#websocket.onerror = (e) => {
+ if (this.#websocket.readyState) {
+ //bla bla
+ }
+ };
+ }
+}
+
+let cPipe = new ConnectPipe();
+
+export default cPipe;
diff --git a/Tool/webtool/test.js b/Tool/webtool/test.js
new file mode 100644
index 0000000..0ce362b
--- /dev/null
+++ b/Tool/webtool/test.js
@@ -0,0 +1,38 @@
+config = {
+ Name: "Test",
+ RemoteUrl: "D:/FileSyncTest/dtemp",
+ RemotePwd: "t123",
+ IsDeployDb: false,
+ IsDeployProject: false,
+ LocalProjectAbsolutePath:
+ "D:/git/HMES-H7-HNFY/HMES-H7-HNFYMF/HMES-H7-HNFYMF.WEB",
+ LocalRootPath: "D:/FileSyncTest/src",
+
+ RemoteRootPath: "D:/FileSyncTest/dst",
+ SrcDb: {
+ ServerName: "172.16.12.2",
+ DatebaseName: "HMES_H7_HNFYMF",
+ User: "hmes-h7",
+ Password: "Hmes-h7666",
+ TrustServerCertificate: "True",
+ SyncTablesData: [
+ "dbo.sys_Button",
+ "dbo.sys_Menu",
+ "dbo.sys_Module",
+ "dbo.sys_Page",
+ ],
+ },
+ DstDb: {
+ ServerName: "127.0.0.1",
+ DatebaseName: "HMES_H7_HNFYMF",
+ User: "sa",
+ Password: "0",
+ TrustServerCertificate: "True",
+ },
+ DirFileConfigs: [
+ {
+ DirPath: "/bin",
+ Excludes: ["/roslyn", "/Views"],
+ },
+ ],
+};
diff --git a/Tool/webtool/vite.config.js b/Tool/webtool/vite.config.js
index 05c1740..1928f86 100644
--- a/Tool/webtool/vite.config.js
+++ b/Tool/webtool/vite.config.js
@@ -4,4 +4,8 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
+ server:{
+ host:"0.0.0.0",
+ port:6769
+ }
})