From 5f4e20af66ac2a9ded89b0da27ccd5a135b4d25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Tue, 21 Mar 2023 22:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E7=A6=81=E7=AB=AF=E7=BD=91=E9=A1=B5?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E5=87=BA=E6=9D=A5=EF=BC=8C=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/README.txt | 1 + .../static/access/assets/css/index.css | 81 +++++++++++++++++++ .../access/assets/css/setting-panel.css | 66 +++++++++++++++ .../static/access/assets/js/setting-panel.js | 30 +++++++ .../static/access/assets/svg/close.svg | 1 + .../static/access/assets/svg/fullscreen.svg | 1 + .../static/access/assets/svg/setting.svg | 1 + .../main/resources/static/access/index.html | 55 +++++++++++++ .../main/resources/static/access/renderer.js | 71 ++++++++++++++++ client-entrance-guard/README.md | 9 +++ client-entrance-guard/html/index.css | 56 +------------ client-entrance-guard/html/index.html | 24 +----- client-entrance-guard/html/renderer.js | 25 ------ client-entrance-guard/main.js | 17 +++- client-entrance-guard/preload.js | 24 ++++-- 15 files changed, 353 insertions(+), 109 deletions(-) create mode 100644 backend/microservice-provider-access-8002/src/main/resources/static/README.txt create mode 100644 backend/microservice-provider-access-8002/src/main/resources/static/access/assets/css/index.css create mode 100644 backend/microservice-provider-access-8002/src/main/resources/static/access/assets/css/setting-panel.css create mode 100644 backend/microservice-provider-access-8002/src/main/resources/static/access/assets/js/setting-panel.js create mode 100644 backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/close.svg create mode 100644 backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/fullscreen.svg create mode 100644 backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/setting.svg create mode 100644 backend/microservice-provider-access-8002/src/main/resources/static/access/index.html create mode 100644 backend/microservice-provider-access-8002/src/main/resources/static/access/renderer.js create mode 100644 client-entrance-guard/README.md diff --git a/backend/microservice-provider-access-8002/src/main/resources/static/README.txt b/backend/microservice-provider-access-8002/src/main/resources/static/README.txt new file mode 100644 index 0000000..347fd9b --- /dev/null +++ b/backend/microservice-provider-access-8002/src/main/resources/static/README.txt @@ -0,0 +1 @@ +编辑后右键 Compile And Reload File 修改即可生效,不用频繁重启项目 diff --git a/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/css/index.css b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/css/index.css new file mode 100644 index 0000000..3454ab6 --- /dev/null +++ b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/css/index.css @@ -0,0 +1,81 @@ +* { + margin: 0; + padding: 0; +} +html, +body { + height: 100%; +} + +.container { + width: 100%; + height: 100%; + background-color: #0556c6; + display: grid; + grid-template-columns: 3fr 4fr; + place-items: center; + color: white; +} + +.left-container { + text-shadow: 2px 2px 2px #00000066; +} + +h1 { + margin-bottom: 30px; + font-size: 4vw; +} + +h3 { + margin-bottom: 10px; + margin-top: 22px; + font-size: 2vw; +} + +p { + font-size: 1.4vw; + line-height: 1.5em; +} + +.right-container { +} + +#qrcode { + box-shadow: 0px 0px 17px 12px rgb(0 0 0 / 50%); + border-radius: 50%; + display: block; + width: min(40vw, 68vh); + height: min(40vw, 68vh); +} + +#refreshTimeCountDown { + text-align: center; + margin-top: 30px; + font-size: 2em; + color: #ffffff9c; +} + +/* 右上角按钮 */ +.ctrl-btn { + position: absolute; + right: 0; + top: 0; + padding: 10px; +} + +.btn { + width: 32px; + height: 32px; + cursor: pointer; + filter: invert(1) opacity(0.8); +} + +.btn-ctrl { + margin-left: 2px; + vertical-align: middle; +} + +#fullscreen-button { + width: 28px; + height: 28px; +} diff --git a/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/css/setting-panel.css b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/css/setting-panel.css new file mode 100644 index 0000000..3d6a88e --- /dev/null +++ b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/css/setting-panel.css @@ -0,0 +1,66 @@ +.full-screen-mask { + position: fixed; + width: 100%; + height: 100%; + top: 0; + left: 0; + z-index: 10; + background-color: black; + opacity: 0.35; +} + +.setting-container { + position: fixed; + width: 100%; + height: 100%; + top: 0; + left: 0; + z-index: 20; + display: grid; + place-items: center; +} + +.setting-panel { + width: 320px; + height: 450px; + background-color: white; + border-radius: 40px; + position: relative; + padding: 14px; + box-sizing: border-box; +} + +#close-setting-button { + position: absolute; + right: -17px; + top: -21px; + transform: rotate(12deg) scale(0.9); + transition: 0.3s; +} + +#close-setting-button:hover { + transform: rotate(102deg) scale(1.1); +} + +.save-button-container { + position: absolute; + bottom: 20px; + left: 0; + right: 0; +} + +.save-setting-button { + width: 120px; + font-weight: 200; + font-size: 1.1em; + color: white; + background-color: #0556C6; + border: none; + border-radius: 5px; + height: 32px; + cursor: pointer; +} + +.hidden { + display: none; +} diff --git a/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/js/setting-panel.js b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/js/setting-panel.js new file mode 100644 index 0000000..0a9180b --- /dev/null +++ b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/js/setting-panel.js @@ -0,0 +1,30 @@ +const DOMSettingButton = document.getElementById("setting-button") +const DOMFullScreenMask = document.getElementById("full-screen-mask") +const DOMCloseSettingButton = document.getElementById("close-setting-button") +const DOMSettingContainer = document.getElementById("setting-container") +const DOMSettingPanel = document.querySelector(".setting-panel") +const DOMSaveSettingButton = document.querySelector(".save-setting-button") + +function showSettingPanel() { + console.log("showSettingPanel") + DOMFullScreenMask.classList.remove("hidden") + DOMSettingContainer.classList.remove("hidden") +} + +function closeSettingPanel() { + console.log("closeSettingPanel") + DOMFullScreenMask.classList.add("hidden") + DOMSettingContainer.classList.add("hidden") +} + +DOMSettingButton?.addEventListener('click', showSettingPanel) +// DOMFullScreenMask?.addEventListener('click', closeSettingPanel) +DOMSettingContainer?.addEventListener('click', closeSettingPanel) +DOMCloseSettingButton?.addEventListener('click', closeSettingPanel) +DOMSettingPanel.addEventListener('click', function (e) { + e.stopPropagation() +}) +DOMSaveSettingButton.addEventListener('click', function (e) { + closeSettingPanel() + e.stopPropagation() +}) diff --git a/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/close.svg b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/close.svg new file mode 100644 index 0000000..4caf834 --- /dev/null +++ b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/close.svg @@ -0,0 +1 @@ + diff --git a/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/fullscreen.svg b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/fullscreen.svg new file mode 100644 index 0000000..e542fcd --- /dev/null +++ b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/fullscreen.svg @@ -0,0 +1 @@ + diff --git a/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/setting.svg b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/setting.svg new file mode 100644 index 0000000..7e8bece --- /dev/null +++ b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/svg/setting.svg @@ -0,0 +1 @@ + diff --git a/backend/microservice-provider-access-8002/src/main/resources/static/access/index.html b/backend/microservice-provider-access-8002/src/main/resources/static/access/index.html new file mode 100644 index 0000000..109a73b --- /dev/null +++ b/backend/microservice-provider-access-8002/src/main/resources/static/access/index.html @@ -0,0 +1,55 @@ + + + +
+ + + + + +1. 打开 微信 > 扫一扫,扫描右侧小程序码
+2. 点击确认进入,门即开启
+ +1. 打开 微信 > 扫一扫,扫描右侧小程序码
+2. 填写进入申请表
+ +1. 请联系管理员为你添加进出权限
+1. 打开 微信 > 扫一扫,扫描右侧小程序码
-2. 点击确认进入,门即开启
- -1. 打开 微信 > 扫一扫,扫描右侧小程序码
-2. 填写进入申请表
- -1. 请联系管理员为你添加进出权限
-