sun-pc-linux 5 bulan lalu
induk
melakukan
af30d0a5da
43 mengubah file dengan 308 tambahan dan 10 penghapusan
  1. 29 0
      pack-nrhe/config-service.yaml
  2. 65 0
      pack-nrhe/docker-compose.yaml
  3. 15 0
      pack-nrhe/mongo-migrations/1_apps.down.json
  4. 13 0
      pack-nrhe/mongo-migrations/1_apps.up.json
  5. 27 0
      pack-nrhe/nginx/conf.d/default.conf
  6. 20 0
      pack-nrhe/nginx/www/admin.html
  7. 0 0
      pack-nrhe/nginx/www/assets/Col-7508b53a.js
  8. 0 0
      pack-nrhe/nginx/www/assets/Form-46ad1153.js
  9. 1 0
      pack-nrhe/nginx/www/assets/admin-4be52a10.js
  10. 69 0
      pack-nrhe/nginx/www/assets/bg_admin_login-d7103c44.svg
  11. 1 0
      pack-nrhe/nginx/www/assets/collapseMotion-14d9ada7.js
  12. 0 0
      pack-nrhe/nginx/www/assets/dayjs.min-486c7a11.js
  13. 0 0
      pack-nrhe/nginx/www/assets/image-e1abec51.js
  14. 0 0
      pack-nrhe/nginx/www/assets/index-00053b44.js
  15. 0 0
      pack-nrhe/nginx/www/assets/index-0c31c85b.js
  16. 0 0
      pack-nrhe/nginx/www/assets/index-149ee1ea.css
  17. 0 0
      pack-nrhe/nginx/www/assets/index-1cdd5ad1.js
  18. 0 0
      pack-nrhe/nginx/www/assets/index-2d379a5b.js
  19. 1 0
      pack-nrhe/nginx/www/assets/index-32f2804b.css
  20. 0 0
      pack-nrhe/nginx/www/assets/index-33c9ec48.js
  21. 0 0
      pack-nrhe/nginx/www/assets/index-55e8f3dc.js
  22. 0 0
      pack-nrhe/nginx/www/assets/index-700f8bec.js
  23. 1 0
      pack-nrhe/nginx/www/assets/index-876b3752.css
  24. 0 0
      pack-nrhe/nginx/www/assets/index-a5a98795.js
  25. 0 0
      pack-nrhe/nginx/www/assets/index-b08a7613.js
  26. 1 0
      pack-nrhe/nginx/www/assets/index-b1663414.css
  27. 0 0
      pack-nrhe/nginx/www/assets/index-ba6da956.js
  28. 1 0
      pack-nrhe/nginx/www/assets/index-d373ff0b.css
  29. 1 0
      pack-nrhe/nginx/www/assets/index-f34e8151.js
  30. 0 0
      pack-nrhe/nginx/www/assets/index-f79a4cc5.js
  31. 0 0
      pack-nrhe/nginx/www/assets/index-fae1c727.js
  32. TEMPAT SAMPAH
      pack-nrhe/nginx/www/assets/login_bg-090e5069.png
  33. 0 0
      pack-nrhe/nginx/www/assets/main-4801cc52.js
  34. 0 0
      pack-nrhe/nginx/www/assets/main-f8bd3d55.css
  35. TEMPAT SAMPAH
      pack-nrhe/nginx/www/assets/starter_bg-f0e05934.png
  36. 0 0
      pack-nrhe/nginx/www/assets/useFlexGapSupport-310043de.js
  37. TEMPAT SAMPAH
      pack-nrhe/nginx/www/favicon.ico
  38. 53 0
      pack-nrhe/nginx/www/index.html
  39. 1 0
      pack-nrhe/readme.md
  40. 4 4
      src/Dockerfile
  41. 1 1
      src/app.yaml
  42. 4 4
      src/build.sh
  43. 0 1
      src/main.go

+ 29 - 0
pack-nrhe/config-service.yaml

@@ -0,0 +1,29 @@
+log:
+  fileName: nrhe.log
+  level: 1
+  serviceName: nrhe-bus
+  
+configer:
+  -
+    name: nrhe-mongo
+    value: mongodb://root:nrhe_zzzxxx@nrhe-mongo:27017/nrhe?authSource=admin
+    devValue: mongodb://root:nrhe_zzzxxx@45.152.67.125:17017/nrhe?authSource=admin
+
+  # -
+  #   name: cr-redis
+  #   value: cr-redis:6379#0#default#crzzz_x
+  #   devValue: 127.0.0.1:16379#0#default#crzzz_x
+
+# adapter:
+#   -
+#     busName: comm
+#     nats: nats://comm-bus:4222
+
+startLocalNats: true
+startNatsShellParams: "-p 4222 -m 8222 -js"
+startNatsPort: 4222
+
+nats:
+  url: nats://nrhe-bus:4222
+  maxReconnect: 10000
+  reconnDelaySecond: 5

+ 65 - 0
pack-nrhe/docker-compose.yaml

@@ -0,0 +1,65 @@
+version: '3.8'
+
+# 网络
+networks:
+  default:
+    name: default-network
+    external: true
+
+services:
+  nrhe-nginx:
+    image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1"
+    restart: always
+    ports:
+      - 8085:80
+    volumes:
+      - ./nginx/conf.d:/etc/nginx/conf.d
+      - ./nginx/www:/usr/share/nginx/html
+
+    depends_on:
+      - nrhe-svc
+      
+  #bus消息中间件
+  nrhe-bus:
+    restart: always
+    image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-bus:v1.0.0
+    volumes:
+      - ./config-service.yaml:/root/bus/app.yaml
+
+    depends_on:
+      - nrhe-mongo
+      # - cr-redis
+    ports:
+      - 14222:4222
+
+  #redis缓存
+  # cr-redis:
+  #   image: "redis:alpine"
+  #   restart: always
+  #   command:
+  #     --requirepass "crzzz_x" #这一行是设置密码
+  #   privileged: true
+  #   ports:
+  #     - 16379:6379
+
+  nrhe-mongo:
+    image: mongo:4.4.1
+    restart: always
+    environment:
+      MONGO_INITDB_ROOT_USERNAME: root
+      MONGO_INITDB_ROOT_PASSWORD: nrhe_zzzxxx
+    volumes:
+      - ~/nrhe-svc/data/mongo/db:/data/db
+      - ~/nrhe-svc/data/mongo/log:/var/log/mongodb
+    ports: 
+      - 17017:27017
+
+  nrhe-svc:
+    image: registry.cn-chengdu.aliyuncs.com/infish/pack-nrhe:v1.0.0
+    restart: always
+    depends_on:
+      - nrhe-bus
+    volumes:
+      - ~/nrhe-svc/data/template:/root/projects/template
+    environment: 
+      NATS: nats://nrhe-bus:4222

+ 15 - 0
pack-nrhe/mongo-migrations/1_apps.down.json

@@ -0,0 +1,15 @@
+[
+    {
+        "delete": "apps",
+        "deletes": [
+           {
+             "q" : {
+                "_id": {
+                    "$oid": "637dde15ad5446a2050456f1"
+                }
+             },
+             "limit" : 1
+           }
+        ]
+     }
+]

+ 13 - 0
pack-nrhe/mongo-migrations/1_apps.up.json

@@ -0,0 +1,13 @@
+[
+    {
+        "insert": "apps",
+        "documents": [ {
+            "_id": {
+                "$oid": "637dde15ad5446a2050456f1"
+            },
+            "name": "cr-svc",
+            "key": "cr-svc",
+            "restrict": false
+        }]
+     }
+]

+ 27 - 0
pack-nrhe/nginx/conf.d/default.conf

@@ -0,0 +1,27 @@
+server {
+    listen       80;
+    listen  [::]:80;
+    server_name  localhost;
+    client_max_body_size 8192m;
+
+   #  error_page   500 502 503 504  /50x.html;
+   #  location = /50x.html {
+   #      root   /usr/share/nginx/html;
+   #  }
+
+   location /admin {
+      alias /usr/share/nginx/html;
+      index admin.html;
+   }
+
+   location /ui {
+      alias /usr/share/nginx/html;
+      index index.html;
+   }
+
+   
+   location /nrhe/ {
+      proxy_pass  http://nrhe-svc:6124/nrhe/;
+   }
+
+}

+ 20 - 0
pack-nrhe/nginx/www/admin.html

@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <link rel="shortcut icon " type="images/x-icon" href="./favicon.ico" />
+    <meta
+      name="viewport"
+      content="width=device-width, initial-scale=1.0,user-scalable=no"
+    />
+    <title>中国中车--成都7号线虚拟仿真教学系统--后台管理</title>
+    <script type="module" crossorigin src="./assets/admin-4be52a10.js"></script>
+    <link rel="modulepreload" crossorigin href="./assets/main-4801cc52.js">
+    <link rel="modulepreload" crossorigin href="./assets/index-f79a4cc5.js">
+    <link rel="stylesheet" href="./assets/main-f8bd3d55.css">
+  </head>
+  <body>
+    <div id="app"></div>
+    
+  </body>
+</html>

File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/Col-7508b53a.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/Form-46ad1153.js


+ 1 - 0
pack-nrhe/nginx/www/assets/admin-4be52a10.js

@@ -0,0 +1 @@
+import{d as t,c as e,r,P as o,a as s,b as u}from"./main-4801cc52.js";import{u as a,r as n}from"./index-f79a4cc5.js";const p=t(()=>(a().initAuth(),()=>e(o,null,{default:()=>[e(r("router-view"),null,null)]})));s(p).use(n).use(u()).mount("#app");

+ 69 - 0
pack-nrhe/nginx/www/assets/bg_admin_login-d7103c44.svg

@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg width="1361px" height="609px" viewBox="0 0 1361 609" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
+    <title>Group 21</title>
+    <desc>Created with Sketch.</desc>
+    <defs></defs>
+    <g id="Ant-Design-Pro-3.0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="账户密码登录-校验" transform="translate(-79.000000, -82.000000)">
+            <g id="Group-21" transform="translate(77.000000, 73.000000)">
+                <g id="Group-18" opacity="0.8" transform="translate(74.901416, 569.699158) rotate(-7.000000) translate(-74.901416, -569.699158) translate(4.901416, 525.199158)">
+                    <ellipse id="Oval-11" fill="#CFDAE6" opacity="0.25" cx="63.5748792" cy="32.468367" rx="21.7830479" ry="21.766008"></ellipse>
+                    <ellipse id="Oval-3" fill="#CFDAE6" opacity="0.599999964" cx="5.98746479" cy="13.8668601" rx="5.2173913" ry="5.21330997"></ellipse>
+                    <path d="M38.1354514,88.3520215 C43.8984227,88.3520215 48.570234,83.6838647 48.570234,77.9254015 C48.570234,72.1669383 43.8984227,67.4987816 38.1354514,67.4987816 C32.3724801,67.4987816 27.7006688,72.1669383 27.7006688,77.9254015 C27.7006688,83.6838647 32.3724801,88.3520215 38.1354514,88.3520215 Z" id="Oval-3-Copy" fill="#CFDAE6" opacity="0.45"></path>
+                    <path d="M64.2775582,33.1704963 L119.185836,16.5654915" id="Path-12" stroke="#CFDAE6" stroke-width="1.73913043" stroke-linecap="round" stroke-linejoin="round"></path>
+                    <path d="M42.1431708,26.5002681 L7.71190162,14.5640702" id="Path-16" stroke="#E0B4B7" stroke-width="0.702678964" opacity="0.7" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1.405357899873153,2.108036953469981"></path>
+                    <path d="M63.9262187,33.521561 L43.6721326,69.3250951" id="Path-15" stroke="#BACAD9" stroke-width="0.702678964" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1.405357899873153,2.108036953469981"></path>
+                    <g id="Group-17" transform="translate(126.850922, 13.543654) rotate(30.000000) translate(-126.850922, -13.543654) translate(117.285705, 4.381889)" fill="#CFDAE6">
+                        <ellipse id="Oval-4" opacity="0.45" cx="9.13482653" cy="9.12768076" rx="9.13482653" ry="9.12768076"></ellipse>
+                        <path d="M18.2696531,18.2553615 C18.2696531,13.2142826 14.1798519,9.12768076 9.13482653,9.12768076 C4.08980114,9.12768076 0,13.2142826 0,18.2553615 L18.2696531,18.2553615 Z" id="Oval-4" transform="translate(9.134827, 13.691521) scale(-1, -1) translate(-9.134827, -13.691521) "></path>
+                    </g>
+                </g>
+                <g id="Group-14" transform="translate(216.294700, 123.725600) rotate(-5.000000) translate(-216.294700, -123.725600) translate(106.294700, 35.225600)">
+                    <ellipse id="Oval-2" fill="#CFDAE6" opacity="0.25" cx="29.1176471" cy="29.1402439" rx="29.1176471" ry="29.1402439"></ellipse>
+                    <ellipse id="Oval-2" fill="#CFDAE6" opacity="0.3" cx="29.1176471" cy="29.1402439" rx="21.5686275" ry="21.5853659"></ellipse>
+                    <ellipse id="Oval-2-Copy" stroke="#CFDAE6" opacity="0.4" cx="179.019608" cy="138.146341" rx="23.7254902" ry="23.7439024"></ellipse>
+                    <ellipse id="Oval-2" fill="#BACAD9" opacity="0.5" cx="29.1176471" cy="29.1402439" rx="10.7843137" ry="10.7926829"></ellipse>
+                    <path d="M29.1176471,39.9329268 L29.1176471,18.347561 C23.1616351,18.347561 18.3333333,23.1796097 18.3333333,29.1402439 C18.3333333,35.1008781 23.1616351,39.9329268 29.1176471,39.9329268 Z" id="Oval-2" fill="#BACAD9"></path>
+                    <g id="Group-9" opacity="0.45" transform="translate(172.000000, 131.000000)" fill="#E6A1A6">
+                        <ellipse id="Oval-2-Copy-2" cx="7.01960784" cy="7.14634146" rx="6.47058824" ry="6.47560976"></ellipse>
+                        <path d="M0.549019608,13.6219512 C4.12262681,13.6219512 7.01960784,10.722722 7.01960784,7.14634146 C7.01960784,3.56996095 4.12262681,0.670731707 0.549019608,0.670731707 L0.549019608,13.6219512 Z" id="Oval-2-Copy-2" transform="translate(3.784314, 7.146341) scale(-1, 1) translate(-3.784314, -7.146341) "></path>
+                    </g>
+                    <ellipse id="Oval-10" fill="#CFDAE6" cx="218.382353" cy="138.685976" rx="1.61764706" ry="1.61890244"></ellipse>
+                    <ellipse id="Oval-10-Copy-2" fill="#E0B4B7" opacity="0.35" cx="179.558824" cy="175.381098" rx="1.61764706" ry="1.61890244"></ellipse>
+                    <ellipse id="Oval-10-Copy" fill="#E0B4B7" opacity="0.35" cx="180.098039" cy="102.530488" rx="2.15686275" ry="2.15853659"></ellipse>
+                    <path d="M28.9985381,29.9671598 L171.151018,132.876024" id="Path-11" stroke="#CFDAE6" opacity="0.8"></path>
+                </g>
+                <g id="Group-10" opacity="0.799999952" transform="translate(1054.100635, 36.659317) rotate(-11.000000) translate(-1054.100635, -36.659317) translate(1026.600635, 4.659317)">
+                    <ellipse id="Oval-7" stroke="#CFDAE6" stroke-width="0.941176471" cx="43.8135593" cy="32" rx="11.1864407" ry="11.2941176"></ellipse>
+                    <g id="Group-12" transform="translate(34.596774, 23.111111)" fill="#BACAD9">
+                        <ellipse id="Oval-7" opacity="0.45" cx="9.18534718" cy="8.88888889" rx="8.47457627" ry="8.55614973"></ellipse>
+                        <path d="M9.18534718,17.4450386 C13.8657264,17.4450386 17.6599235,13.6143199 17.6599235,8.88888889 C17.6599235,4.16345787 13.8657264,0.332739156 9.18534718,0.332739156 L9.18534718,17.4450386 Z" id="Oval-7"></path>
+                    </g>
+                    <path d="M34.6597385,24.809694 L5.71666084,4.76878945" id="Path-2" stroke="#CFDAE6" stroke-width="0.941176471"></path>
+                    <ellipse id="Oval" stroke="#CFDAE6" stroke-width="0.941176471" cx="3.26271186" cy="3.29411765" rx="3.26271186" ry="3.29411765"></ellipse>
+                    <ellipse id="Oval-Copy" fill="#F7E1AD" cx="2.79661017" cy="61.1764706" rx="2.79661017" ry="2.82352941"></ellipse>
+                    <path d="M34.6312443,39.2922712 L5.06366663,59.785082" id="Path-10" stroke="#CFDAE6" stroke-width="0.941176471"></path>
+                </g>
+                <g id="Group-19" opacity="0.33" transform="translate(1282.537219, 446.502867) rotate(-10.000000) translate(-1282.537219, -446.502867) translate(1142.537219, 327.502867)">
+                    <g id="Group-17" transform="translate(141.333539, 104.502742) rotate(275.000000) translate(-141.333539, -104.502742) translate(129.333539, 92.502742)" fill="#BACAD9">
+                        <circle id="Oval-4" opacity="0.45" cx="11.6666667" cy="11.6666667" r="11.6666667"></circle>
+                        <path d="M23.3333333,23.3333333 C23.3333333,16.8900113 18.1099887,11.6666667 11.6666667,11.6666667 C5.22334459,11.6666667 0,16.8900113 0,23.3333333 L23.3333333,23.3333333 Z" id="Oval-4" transform="translate(11.666667, 17.500000) scale(-1, -1) translate(-11.666667, -17.500000) "></path>
+                    </g>
+                    <circle id="Oval-5-Copy-6" fill="#CFDAE6" cx="201.833333" cy="87.5" r="5.83333333"></circle>
+                    <path d="M143.5,88.8126685 L155.070501,17.6038544" id="Path-17" stroke="#BACAD9" stroke-width="1.16666667"></path>
+                    <path d="M17.5,37.3333333 L127.466252,97.6449735" id="Path-18" stroke="#BACAD9" stroke-width="1.16666667"></path>
+                    <polyline id="Path-19" stroke="#CFDAE6" stroke-width="1.16666667" points="143.902597 120.302281 174.935455 231.571342 38.5 147.510847 126.366941 110.833333"></polyline>
+                    <path d="M159.833333,99.7453842 L195.416667,89.25" id="Path-20" stroke="#E0B4B7" stroke-width="1.16666667" opacity="0.6"></path>
+                    <path d="M205.333333,82.1372105 L238.719406,36.1666667" id="Path-24" stroke="#BACAD9" stroke-width="1.16666667"></path>
+                    <path d="M266.723424,132.231988 L207.083333,90.4166667" id="Path-25" stroke="#CFDAE6" stroke-width="1.16666667"></path>
+                    <circle id="Oval-5" fill="#C1D1E0" cx="156.916667" cy="8.75" r="8.75"></circle>
+                    <circle id="Oval-5-Copy-3" fill="#C1D1E0" cx="39.0833333" cy="148.75" r="5.25"></circle>
+                    <circle id="Oval-5-Copy-2" fill-opacity="0.6" fill="#D1DEED" cx="8.75" cy="33.25" r="8.75"></circle>
+                    <circle id="Oval-5-Copy-4" fill-opacity="0.6" fill="#D1DEED" cx="243.833333" cy="30.3333333" r="5.83333333"></circle>
+                    <circle id="Oval-5-Copy-5" fill="#E0B4B7" cx="175.583333" cy="232.75" r="5.25"></circle>
+                </g>
+            </g>
+        </g>
+    </g>
+</svg>

+ 1 - 0
pack-nrhe/nginx/www/assets/collapseMotion-14d9ada7.js

@@ -0,0 +1 @@
+import{s as a,T as u,b8 as h,a0 as v,aA as g}from"./main-4801cc52.js";var o=Symbol("SizeProvider"),I=function(t){var i=u("configProvider",h),s=a(function(){return t.size||i.componentSize});return v(o,s),s},P=function(t){var i=t?a(function(){return t.size}):u(o,a(function(){return"default"}));return i};function p(e,t,i,s){for(var n=e.length,r=i+(s?1:-1);s?r--:++r<n;)if(t(e[r],r,e))return r;return-1}function m(e){return e!==e}function y(e,t,i){for(var s=i-1,n=e.length;++s<n;)if(e[s]===t)return s;return-1}function x(e,t,i){return t===t?y(e,t,i):p(e,m,i)}function S(e,t){var i=e==null?0:e.length;return!!i&&x(e,t,0)>-1}function b(e,t,i){for(var s=-1,n=e==null?0:e.length;++s<n;)if(i(t,e[s]))return!0;return!1}function f(e,t){if(e.classList)return e.classList.contains(t);var i=e.className;return" ".concat(i," ").indexOf(" ".concat(t," "))>-1}function c(e,t){e.classList?e.classList.add(t):f(e,t)||(e.className="".concat(e.className," ").concat(t))}function l(e,t){if(e.classList)e.classList.remove(t);else if(f(e,t)){var i=e.className;e.className=" ".concat(i," ").replace(" ".concat(t," ")," ")}}var L=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:t,appear:i,css:!0,onBeforeEnter:function(n){n.style.height="0px",n.style.opacity="0",c(n,t)},onEnter:function(n){g(function(){n.style.height="".concat(n.scrollHeight,"px"),n.style.opacity="1"})},onAfterEnter:function(n){n&&(l(n,t),n.style.height=null,n.style.opacity=null)},onBeforeLeave:function(n){c(n,t),n.style.height="".concat(n.offsetHeight,"px"),n.style.opacity=null},onLeave:function(n){setTimeout(function(){n.style.height="0px",n.style.opacity="0"})},onAfterLeave:function(n){n&&(l(n,t),n.style&&(n.style.height=null,n.style.opacity=null))}}};const E=L;export{I as a,S as b,E as c,b as d,p as e,P as u};

File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/dayjs.min-486c7a11.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/image-e1abec51.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-00053b44.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-0c31c85b.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-149ee1ea.css


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-1cdd5ad1.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-2d379a5b.js


+ 1 - 0
pack-nrhe/nginx/www/assets/index-32f2804b.css

@@ -0,0 +1 @@
+.iv8jxc8{width:100%;height:100%;color:#343434;background-color:#f2f2f2;font-size:24px;border-radius:2px;cursor:pointer}.iv8jxc8 .wapper{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.iv8jxc8 .file{padding:24px 0;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.iv8jxc8 .file .up_txt{margin-top:10px;font-size:14px;color:#343434}.iv8jxc8 .no_value{padding:24px 0;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.iv8jxc8 .no_value .up_txt{margin-top:10px;font-size:14px;color:#343434}.m53krek{width:400px}.m53krek .radio_g{width:100%;text-align:center;margin-bottom:24px}.m53krek .select_inp,.m53krek .select_inp input{cursor:pointer}.pfvoc72 .banner_table .cover_img{max-width:300px;height:100px;object-fit:contain}

File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-33c9ec48.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-55e8f3dc.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-700f8bec.js


+ 1 - 0
pack-nrhe/nginx/www/assets/index-876b3752.css

@@ -0,0 +1 @@
+.mlgg4eb a{display:block}.pq3nqh9{height:100vh}.pq3nqh9 .ant-layout-header{position:fixed;left:0;top:0;width:100%;z-index:3;padding:0 20px}.pq3nqh9 .page_content{height:100%;width:100%;padding:88px 24px 24px 224px}.pq3nqh9 .page_content .ant-page-header{padding:0 0 15px}.sr2c0hp{position:fixed;left:0;top:0;padding-top:64px;z-index:2;overflow-y:auto;overflow-x:hidden;height:100%}.sr2c0hp.ant-layout-sider{background-color:#fff;border-right:1px solid #f0f0f0}.sr2c0hp .ant-menu-inline{border-right:none}

File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-a5a98795.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-b08a7613.js


+ 1 - 0
pack-nrhe/nginx/www/assets/index-b1663414.css

@@ -0,0 +1 @@
+.h1o4yyee{padding:20px;height:100%;overflow-y:auto}.eskyc9u{max-height:500px;overflow-y:auto;overflow-x:hidden}.eskyc9u .ant-col{padding-bottom:6px;border-bottom:1px solid #e5e5e5}.m9za2m9{width:400px}.m9za2m9 .radio_g{width:100%;text-align:center;margin-bottom:24px}.m9za2m9 .options_items .ant-input-group-wrapper{margin-bottom:10px}.m9za2m9 .options_items .ant-input-group-wrapper:last-child{margin-bottom:0}.m9za2m9 .options_items .ant-input-group-addon{width:36px}.m9za2m9 .select_inp,.m9za2m9 .select_inp input{cursor:pointer}.pwd2bxw .banner_table .cover_img{max-width:300px;height:100px;object-fit:contain}

File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-ba6da956.js


+ 1 - 0
pack-nrhe/nginx/www/assets/index-d373ff0b.css

@@ -0,0 +1 @@
+.p1fwmfaj{height:100vh;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:url(./bg_admin_login-d7103c44.svg) no-repeat center/contain}.p1fwmfaj .content{width:100%;max-width:400px;margin:0 auto;padding:20px 30px;background:#f9f9f9 url(./login_bg-090e5069.png) no-repeat center top/100% 150px;border-radius:8px;border:1px solid #333}.p1fwmfaj .logo{width:80px;height:80px;line-height:80px;text-align:center;background-color:#fff;box-shadow:0 3px 24px 1px #0000001a;border-radius:10px;margin:0 auto 10px}.p1fwmfaj .logo img{display:inline;height:40px;object-fit:contain}.p1fwmfaj .title{text-align:center;font-size:18px;color:#fff;margin-bottom:30px}.p1fwmfaj .login_btn{background-color:#e35757;color:#fff}.p1fwmfaj .login_btn:hover{border-color:#e35757}

+ 1 - 0
pack-nrhe/nginx/www/assets/index-f34e8151.js

@@ -0,0 +1 @@
+import{g as v}from"./image-e1abec51.js";import{u as w}from"./index-f79a4cc5.js";import{d as h,f as u,c as e,k as l,D as s,I as n,B as x}from"./main-4801cc52.js";import{F as o,R as I,a as c}from"./Form-46ad1153.js";import"./useFlexGapSupport-310043de.js";import"./Col-7508b53a.js";import"./collapseMotion-14d9ada7.js";const y={wrapperCol:{span:24}},B={wrapperCol:{span:24}},N=h({setup(){const d=w(),i=u({loading:!1,loginType:"default"}),t=u({account:"",password:"",role:"admin"}),m=u({account:[{required:!0,message:"请输入正确的账号",trigger:"change"}],password:[{required:!0,message:"请输入正确的密码",trigger:"change"}],role:[{required:!0,message:"角色不能为空",trigger:"change"}]}),{validate:p,validateInfos:r}=o.useForm(t,m);async function g(){p().then(a=>{const f={password:a.password,role:a.role,loginName:a.account};d.passwordLogin(f)})}return()=>e("div",{class:F},[e("div",{class:"content"},[e("div",{class:"logo"},[e("img",{src:v("logo.png")},null)]),e("div",{class:"title"},[l("后台管理系统")]),e(o,s(y,{name:"basic"}),{default:()=>[e(o.Item,s({name:"account"},r.account),{default:()=>[e(n,{placeholder:"请输入账号",value:t.account,"onUpdate:value":a=>t.account=a,maxlength:30},null)]}),e(o.Item,s({name:"password"},r.password),{default:()=>[e(n.Password,{placeholder:"请输入密码",value:t.password,"onUpdate:value":a=>t.password=a,maxlength:18},null)]}),e(o.Item,s({name:"role"},r.role),{default:()=>[e(I,{class:"flex justify-center w-full ",value:t.role,"onUpdate:value":a=>t.role=a},{default:()=>[e("div",{class:"flex-1 text-center"},[e(c,{value:"teacher"},{default:()=>[l("教员")]})]),e("div",{class:"flex-1 text-center"},[e(c,{value:"admin"},{default:()=>[l("管理员")]})])]})]}),e(o.Item,s(B,{style:{marginBottom:0}}),{default:()=>[e(x,{htmlType:"submit",block:!0,class:"login_btn",size:"large",loading:i.loading,onClick:g},{default:()=>[l("登录")]})]})]})])])}}),F="p1fwmfaj";export{N as default};

File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-f79a4cc5.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/index-fae1c727.js


TEMPAT SAMPAH
pack-nrhe/nginx/www/assets/login_bg-090e5069.png


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/main-4801cc52.js


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/main-f8bd3d55.css


TEMPAT SAMPAH
pack-nrhe/nginx/www/assets/starter_bg-f0e05934.png


File diff ditekan karena terlalu besar
+ 0 - 0
pack-nrhe/nginx/www/assets/useFlexGapSupport-310043de.js


TEMPAT SAMPAH
pack-nrhe/nginx/www/favicon.ico


+ 53 - 0
pack-nrhe/nginx/www/index.html

@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <link rel="shortcut icon " type="images/x-icon" href="./favicon.ico" />
+    <meta
+      name="viewport"
+      content="width=device-width, initial-scale=1.0,user-scalable=no"
+    />
+    <title>中国中车--成都7号线虚拟仿真教学系统</title>
+    <script>
+      (function setRootFont() {
+        var _self = window;
+        _self.selfFontSize = undefined;
+        _self.width = 1120; //设置默认最大宽度
+        _self.fontSize = 100; //默认字体大小
+        _self.widthProportion = function () {
+          var clientWidth =
+            document.documentElement.clientWidth > 1120
+              ? 1120
+              : document.documentElement.clientWidth;
+          var p = clientWidth / _self.width;
+          return p;
+        };
+
+        _self.changePage = function () {
+          var w = _self.widthProportion();
+          _self.selfFontSize = w * _self.fontSize;
+
+          document
+            .getElementsByTagName("html")[0]
+            .setAttribute("style", "font-size:" + _self.selfFontSize + "px");
+        };
+
+        _self.changePage();
+        window.addEventListener(
+          "resize",
+          function () {
+            _self.changePage();
+          },
+          false
+        );
+      })();
+    </script>
+    <script type="module" crossorigin src="./assets/index-700f8bec.js"></script>
+    <link rel="modulepreload" crossorigin href="./assets/main-4801cc52.js">
+    <link rel="stylesheet" href="./assets/main-f8bd3d55.css">
+  </head>
+  <body>
+    <div id="app"></div>
+    
+  </body>
+</html>

+ 1 - 0
pack-nrhe/readme.md

@@ -0,0 +1 @@
+# 部署目录

+ 4 - 4
src/Dockerfile

@@ -5,10 +5,10 @@ RUN mkdir -p /root/projects
 
 WORKDIR /root/projects
 
-ADD ./package ./package
+ADD ./template ./package
 ADD ./app.yaml ./app.yaml
-ADD ./cr-svc ./cr-svc
+ADD ./nrhe-train ./nrhe-train
 
-EXPOSE 6123
+EXPOSE 6124
 
-ENTRYPOINT ["./cr-svc"]
+ENTRYPOINT ["./nrhe-train"]

+ 1 - 1
src/app.yaml

@@ -1,4 +1,4 @@
-port: 6123
+port: 6124
 name: nrhe
 version: 1.0.0
 masterIp: ""

+ 4 - 4
src/build.sh

@@ -2,11 +2,11 @@
 
 # 编译应用
 echo "building..."
-go build -o cr-svc
+go build -o nrhe-train
 
 # 命名镜像
-local_imge="pack-cr:v1.0.1"
-repository_image="registry.cn-chengdu.aliyuncs.com/infish/pack-cr:v1.0.1"
+local_imge="pack-nrhe:v1.0.0"
+repository_image="registry.cn-chengdu.aliyuncs.com/infish/pack-nrhe:v1.0.0"
 
 # 删除本地已存在的镜像
 docker rmi $repository_image
@@ -21,7 +21,7 @@ docker tag $local_imge $repository_image
 docker push $repository_image
 
 # 删除编译的文件
-rm -rf cr-svc
+rm -rf nrhe-train
 
 # 运行示例
 # docker run  -itd -p 20001:20001 --name comm-pay-service pay-service:1.0.0

+ 0 - 1
src/main.go

@@ -31,7 +31,6 @@ func BuildApp() *dig.Container {
 }
 
 func main() {
-
 	flag.Parse()
 	app := BuildApp()
 	err := app.Invoke(func(svc *api.Service, bus *comm.NatsBus) error {

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini