Procházet zdrojové kódy

修改登录样式

root před 2 roky
rodič
revize
b3465d525b
100 změnil soubory, kde provedl 472 přidání a 84 odebrání
  1. 131 5
      app.html
  2. 49 0
      headertest.html
  3. 2 0
      lang/en-US.js
  4. 1 1
      lang/zh-CN.js
  5. 144 78
      login.html
  6. 145 0
      login.htmlback
  7. 0 0
      public/static/amis-sdk/PaxHeader/ang-ie11.css
  8. 0 0
      public/static/amis-sdk/PaxHeader/ang.css
  9. 0 0
      public/static/amis-sdk/PaxHeader/antd-ie11.css
  10. 0 0
      public/static/amis-sdk/PaxHeader/antd.css
  11. 0 0
      public/static/amis-sdk/PaxHeader/barcode.js
  12. 0 0
      public/static/amis-sdk/PaxHeader/charts.js
  13. 0 0
      public/static/amis-sdk/PaxHeader/codemirror.js
  14. 0 0
      public/static/amis-sdk/PaxHeader/color-picker.js
  15. 0 0
      public/static/amis-sdk/PaxHeader/cropperjs.js
  16. 0 0
      public/static/amis-sdk/PaxHeader/cxd-ie11.css
  17. 0 0
      public/static/amis-sdk/PaxHeader/cxd.css
  18. 0 0
      public/static/amis-sdk/PaxHeader/dark-ie11.css
  19. 0 0
      public/static/amis-sdk/PaxHeader/dark.css
  20. 0 0
      public/static/amis-sdk/PaxHeader/exceljs.js
  21. 0 0
      public/static/amis-sdk/PaxHeader/helper.css
  22. 0 0
      public/static/amis-sdk/PaxHeader/iconfont.css
  23. 0 0
      public/static/amis-sdk/PaxHeader/iconfont.eot
  24. 0 0
      public/static/amis-sdk/PaxHeader/iconfont.svg
  25. 0 0
      public/static/amis-sdk/PaxHeader/iconfont.ttf
  26. 0 0
      public/static/amis-sdk/PaxHeader/iconfont.woff
  27. 0 0
      public/static/amis-sdk/PaxHeader/ie11-patch.css
  28. 0 0
      public/static/amis-sdk/PaxHeader/locale
  29. 0 0
      public/static/amis-sdk/PaxHeader/markdown.js
  30. 0 0
      public/static/amis-sdk/PaxHeader/papaparse.js
  31. 0 0
      public/static/amis-sdk/PaxHeader/rest.js
  32. 0 0
      public/static/amis-sdk/PaxHeader/rich-text.js
  33. 0 0
      public/static/amis-sdk/PaxHeader/sdk-ie11.css
  34. 0 0
      public/static/amis-sdk/PaxHeader/sdk.css
  35. 0 0
      public/static/amis-sdk/PaxHeader/sdk.js
  36. 0 0
      public/static/amis-sdk/PaxHeader/thirds
  37. 0 0
      public/static/amis-sdk/PaxHeader/tinymce.js
  38. 0 0
      public/static/amis-sdk/ang-ie11.css
  39. 0 0
      public/static/amis-sdk/ang.css
  40. 0 0
      public/static/amis-sdk/antd-ie11.css
  41. 0 0
      public/static/amis-sdk/antd.css
  42. 0 0
      public/static/amis-sdk/barcode.js
  43. 0 0
      public/static/amis-sdk/charts.js
  44. 0 0
      public/static/amis-sdk/codemirror.js
  45. 0 0
      public/static/amis-sdk/color-picker.js
  46. 0 0
      public/static/amis-sdk/cropperjs.js
  47. 0 0
      public/static/amis-sdk/cxd-ie11.css
  48. 0 0
      public/static/amis-sdk/cxd.css
  49. 0 0
      public/static/amis-sdk/dark-ie11.css
  50. 0 0
      public/static/amis-sdk/dark.css
  51. 0 0
      public/static/amis-sdk/exceljs.js
  52. 0 0
      public/static/amis-sdk/helper.css
  53. 0 0
      public/static/amis-sdk/iconfont.css
  54. 0 0
      public/static/amis-sdk/iconfont.eot
  55. 0 0
      public/static/amis-sdk/iconfont.svg
  56. 0 0
      public/static/amis-sdk/iconfont.ttf
  57. 0 0
      public/static/amis-sdk/iconfont.woff
  58. 0 0
      public/static/amis-sdk/ie11-patch.css
  59. 0 0
      public/static/amis-sdk/locale/PaxHeader/de-DE.js
  60. 0 0
      public/static/amis-sdk/locale/de-DE.js
  61. 0 0
      public/static/amis-sdk/markdown.js
  62. 0 0
      public/static/amis-sdk/papaparse.js
  63. 0 0
      public/static/amis-sdk/rest.js
  64. 0 0
      public/static/amis-sdk/rich-text.js
  65. 0 0
      public/static/amis-sdk/sdk-ie11.css
  66. 0 0
      public/static/amis-sdk/sdk.css
  67. 0 0
      public/static/amis-sdk/sdk.js
  68. 0 0
      public/static/amis-sdk/thirds/@fortawesome/PaxHeader/fontawesome-free
  69. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/PaxHeader/webfonts
  70. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-brands-400.ttf
  71. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-brands-400.woff2
  72. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-regular-400.ttf
  73. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-regular-400.woff2
  74. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-solid-900.ttf
  75. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-solid-900.woff2
  76. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-v4compatibility.ttf
  77. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-v4compatibility.woff2
  78. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf
  79. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2
  80. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf
  81. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2
  82. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf
  83. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2
  84. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.ttf
  85. 0 0
      public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.woff2
  86. 0 0
      public/static/amis-sdk/thirds/PaxHeader/@fortawesome
  87. 0 0
      public/static/amis-sdk/thirds/PaxHeader/hls.js
  88. 0 0
      public/static/amis-sdk/thirds/PaxHeader/markdown-it
  89. 0 0
      public/static/amis-sdk/thirds/PaxHeader/monaco-editor
  90. 0 0
      public/static/amis-sdk/thirds/PaxHeader/mpegts.js
  91. 0 0
      public/static/amis-sdk/thirds/hls.js/PaxHeader/hls.js
  92. 0 0
      public/static/amis-sdk/thirds/hls.js/hls.js
  93. 0 0
      public/static/amis-sdk/thirds/markdown-it/PaxHeader/node_modules
  94. 0 0
      public/static/amis-sdk/thirds/markdown-it/node_modules/PaxHeader/entities
  95. 0 0
      public/static/amis-sdk/thirds/markdown-it/node_modules/entities/PaxHeader/lib
  96. 0 0
      public/static/amis-sdk/thirds/markdown-it/node_modules/entities/lib/PaxHeader/maps
  97. 0 0
      public/static/amis-sdk/thirds/markdown-it/node_modules/entities/lib/maps/PaxHeader/entities.json
  98. 0 0
      public/static/amis-sdk/thirds/markdown-it/node_modules/entities/lib/maps/entities.json
  99. 0 0
      public/static/amis-sdk/thirds/monaco-editor/PaxHeader/min
  100. 0 0
      public/static/amis-sdk/thirds/monaco-editor/min/PaxHeader/vs

+ 131 - 5
app.html

@@ -38,6 +38,12 @@
             margin: 0;
             padding: 0;
         }
+        .amis-scope .cxd-Layout--headerFixed .cxd-Layout-header .cxd-Page {
+          background: none;
+        }
+        .amis-scope .cxd-Page-body .cxd-DropDown--alignRight .cxd-DropDown-menu {
+          text-align: center;
+        }
     </style>
 </head>
 <body>
@@ -69,22 +75,138 @@
           langReplaceTextIgnoreKeys: zhCNLocale.langReplaceTextIgnoreKeys
         }
       }
+      // 缓存中设置的语言
+      let lang = localStorage.getItem('language')
+      //内置组件的翻译信息
+      let langRegister = {}
+      //json配置的全文翻译信息
+      let langReplaceText = {}
+      //需要忽略json配置的全文替换key
+      let langReplaceTextIgnoreKeys = {}
+      if (undefined !== languageMap[lang]) {
+        langRegister = languageMap[lang].register
+        langReplaceText = languageMap[lang].replaceText
+        langReplaceTextIgnoreKeys = languageMap[lang].langReplaceTextIgnoreKeys
+      } else {
+        lang = 'zh-CN'
+      }
+      if (undefined !== langReplaceText && Object.keys(langReplaceText).length !== 0) {
+      } else {
+        langReplaceText = {}
+      }
+
+      if (undefined !== langReplaceTextIgnoreKeys && Object.keys(langReplaceTextIgnoreKeys).length !== 0) {
+      } else {
+        langReplaceTextIgnoreKeys = {}
+      }
+      
 
 
       // 如果想用 browserHistory 请切换下这处代码, 其他不用变
       // const history = History.createBrowserHistory();
       const history = History.createHashHistory();
-
+      const header = {
+  "type": "page",
+  "initApi": "/api/sys_user_info",
+  "body": [
+    {
+      "type": "flex",
+      "justify": "flex-end",
+      "items": [
+        {
+          "type": "dropdown-button",
+          "label": "切换语言",
+          "className": "header-menu",
+          "buttons": [
+            {
+              "type": "button",
+              "label": "中文",
+              "id": "u:6911502c8fcc",
+              "onEvent": {
+                "click": {
+                  "actions": [
+                    {
+                      "script": "localStorage.setItem('language', 'zh-CN')\nlocation.reload()",
+                      "actionType": "custom",
+                      "args": {
+                      }
+                    }
+                  ],
+                  "weight": 0
+                }
+              }
+            },
+            {
+              "type": "button",
+              "label": "English",
+              "id": "u:e702685a7a45",
+              "onEvent": {
+                "click": {
+                  "actions": [
+                    {
+                      "script": "localStorage.setItem('language', 'en-US')\r\nlocation.reload()",
+                      "actionType": "custom"
+                    }
+                  ],
+                  "weight": 0
+                }
+              },
+              "actionType": "",
+              "link": "/view/user_info"
+            }
+          ],
+          "id": "u:4fedf7a987bf",
+          "size": "md",
+          "level": "default",
+          "align": "right",
+          "block": true,
+          "hideCaret": false
+        },
+        {
+          "type": "dropdown-button",
+          "label": "名字e",
+          "className": "header-menu",
+          "buttons": [
+            {
+              "type": "button",
+              "label": "个人信息",
+              "actionType": "link",
+              "link": "/view/user_info",
+              "id": "u:57cf3ed9c568"
+            },
+            {
+              "type": "button",
+              "actionType": "url",
+              "url": "/login/out",
+              "blank": false,
+              "confirmText": "确定要退出吗",
+              "label": "退出登录",
+              "id": "u:88d8afc464b5"
+            }
+          ],
+          "id": "u:d324269526b9",
+          "size": "md",
+          "level": "default",
+          "align": "right",
+          "block": true
+        }
+      ],
+      "id": "u:e7752d0c1dbe"
+    }
+  ],
+  "id": "u:d16525b6aae6"
+}
       const app = {
         type: 'app',
-        // brandName: 'ROMA',
-        logo: './public/static/images/logo.jpg',
+        brandName: 'ROMA',
+        // logo: './public/static/images/logo.jpg',
         
         // footer: '<div class="p-2 text-center bg-light">底部区域</div>',
         // asideBefore: '<div class="p-2 text-center">菜单前面区域</div>',
         // asideAfter: '<div class="p-2 text-center">菜单后面区域</div>',
         // // api: '/pages/site.json'
-        api: 'http://192.168.115.39:8051/demomenu'
+        header,
+        api: 'http://172.20.118.83:8051/demomenu'
       };
 
       function normalizeLink(to, location = history.location) {
@@ -151,9 +273,13 @@
         '#root',
         app,
         {
-          location: history.location
+          location: history.location,
+          locale: lang
         },
         {
+          replaceText: langReplaceText,
+          langReplaceTextIgnoreKeys: langReplaceTextIgnoreKeys,
+
           // watchRouteChange: fn => {
           //   return history.listen(fn);
           // },

+ 49 - 0
headertest.html

@@ -0,0 +1,49 @@
+{
+    "type": "page",
+    "initApi": "/api/sys_user_info",
+    "body": [
+      {
+        "type": "flex",
+        "justify": "flex-end",
+        "items": [
+          {
+            "size": 30,
+            "type": "avatar",
+            "fit": "contain",
+            "src": "${avatar}",
+            "id": "u:20b0d53266be"
+          },
+          {
+            "type": "dropdown-button",
+            "label": "名字e",
+            "className": "header-menu",
+            "buttons": [
+              {
+                "type": "button",
+                "label": "个人信息",
+                "actionType": "link",
+                "link": "/view/user_info",
+                "id": "u:a3011c84be15"
+              },
+              {
+                "type": "button",
+                "actionType": "url",
+                "url": "/login/out",
+                "blank": false,
+                "confirmText": "确定要退出吗",
+                "label": "退出登录",
+                "id": "u:4e435f2c13f9"
+              }
+            ],
+            "id": "u:a4b02d9f8f31",
+            "size": "md",
+            "level": "default",
+            "align": "right",
+            "block": true
+          }
+        ],
+        "id": "u:e7752d0c1dbe"
+      }
+    ],
+    "id": "u:d16525b6aae6"
+  }

+ 2 - 0
lang/en-US.js

@@ -3,6 +3,8 @@ function enUs() {
     replaceTextIgnoreKeys: [],
     replaceText: {
       '会员编号':'USER NUMBER en-US',
+      '个人信息':'User Info',
+      '名字e':'show name'
     },
     register: {
         'Action.countDown': 'Wait for ${timeLeft}s',

+ 1 - 1
lang/zh-CN.js

@@ -2,7 +2,7 @@ function zhCn() {
     let zhcn = {
         replaceTextIgnoreKeys: [],
         replaceText: {
-        '会员编号':'会员编号zh-CN',
+        '会员编号':'会员编号zh-CN'
         },
         register: {
             'Action.countDown': '请等待 ${timeLeft} 秒',

+ 144 - 78
login.html

@@ -14,12 +14,13 @@
         html,
         body,
         .app-wrapper {
-            position: relative;
+            /* position: relative; */
             width: 100%;
             height: 100%;
             margin: 0;
             padding: 0;
             touch-action: pan-y;
+            overflow: hidden;
         }
         :root {
             --Form-item-gap: 1.3rem;
@@ -31,21 +32,48 @@
         }
 
         .app-wrapper {
-            position: relative;
+            /* position: relative; */
             width: 100%;
             height: 100%;
             margin: 0;
             padding: 0;
         }
 
-        .loginTitle {
-            text-align: center;
-        }
+        .amis-scope .cxd-Icon{height: 1rem}
+        .amis-scope .cxd-TextControl-input input{height: 100% !important;}
+        .amis-scope .cxd-TextControl-input:hover{border:var(--Form-input-borderWidth) solid var(--Form-input-borderColor)}
+        .amis-scope .cxd-InputGroup .cxd-TextControl-input{border-left-width: 0;padding-left: 0;}
+        .code_img{cursor: pointer;}
 
-        .loginTitle p {
-            margin: 10px auto;
-            color: black;
-            font-size: 25px;
+        .amis-scope .cxd-Form{
+            font-size: var(--Form-fontSize);
+            position: none !important;
+            max-width: 700px;
+            margin: 0 auto;
+            margin-top: 10vh;
+            /* position:; */
+        }
+        .amis-scope .cxd-Wrapper--md, .amis-scope .cxd-Container--md {
+            width: 100%;
+            height: 100%;
+        }
+        .change-language {
+            float: right;
+        }
+        .amis-scope h1 {
+            font-size: 5vw;
+        }
+        @media (max-width: 768px) {
+            .amis-scope .cxd-Form{
+                font-size: var(--Form-fontSize);
+                position: none !important;
+                margin: 0 auto;
+                margin-top: 0vh;
+                /* position:; */
+            }
+            .amis-scope .cxd-Wrapper--md, .amis-scope .cxd-Container--md {
+                padding: 0;
+            }
         }
     </style>
 </head>
@@ -58,87 +86,125 @@
         let amis = amisRequire('amis/embed');
 
         const amisJSON = {
-            type: 'page',
-            title: "",
-            style: {
-                "backgroundImage": "linear-gradient(180deg, #86a4e9, transparent)"
-            },
-            cssVars: {
-                "--Form-input-onFocused-borderColor": "#e8e9eb",
-                "--Form-input-onHover-borderColor": "#e8e9eb",
-            },
-            body: {
-                "type": "grid-2d",
-                "cols": 12,
-                "grids": [{
-                    x: 5,
-                    y: 5,
-                    h: 1,
-                    w: 4,
-                    width: 200,
-                    type: 'form',
-                    mode: 'horizontal',
-                    title: "",
-                    api: {
-                        url: "/api/new-login",
-                        method: "post",
-                        dataType: "form-data",
-                        adaptor: function(payload, response, api) {
-
+            "type": "wrapper",
+            "className": "fixed login_layout m:h-screen m:w-full bg-gray-50",
+            "body": {
+                "type": "form",
+                "className": "h-full pc:p-9 m:p-4 m:pt-20",
+                "api": {
+                    "method":"post",
+                    "url":"/login",
+                    "adaptor": function (data) {
+                        if (data.status !== 0) {
+                            // 登录请求提交后,刷新验证码
+                            refresh_code();
                         }
+                        return data;
+                    },
+                },
+                "redirect": "/",
+                "wrapWithPanel": false,
+                "body": [
+                    {
+                        "type":"html",
+                        "className":"text-center",
+                        "html":"<img class='change-language' src='./public/static/icon/shield-user-line.svg'/>"
                     },
-                    panelClassName: "p-r p-l p-b-md",
-                    redirect: "/admins",
-                    body: [{
-                        "type": "tpl",
-                        "tpl": "<div class='loginTitle'><p>管理后台</p></div>"
+                    {
+                        "type":"html",
+                        "className":"text-center",
+                        "html":"<h1 class='title-name'>Roma管理后台</h1>"
                     },
-                        {
-                            type: "input-text",
-                            label: false,
-                            name: "userName",
-                            size: "full",
-                            placeholder: "登录名",
-                            addOn: {
-                                "label": "",
-                                "type": "text",
-                                "position": "left",
-                                "icon": "fa fa-user"
+                    {
+                        "type": "input-group",
+                        "label": "",
+                        "body": [
+                            {
+                                "type": "icon",
+                                "icon": "./public/static/icon/shield-user-line.svg"
                             },
-                        },
-                        {
-                            type: "input-password",
-                            label: false,
-                            name: "password",
-                            size: "full",
-                            placeholder: "密码",
-                            addOn: {
-                                "label": "",
-                                "type": "text",
-                                "position": "left",
-                                "icon": "fa fa-lock"
+                            {
+                                "type": "input-text",
+                                "label": false,
+                                "placeholder": "用户名",
+                                "name": "name",
+                                "required": true
+                            }
+                        ]
+                    },
+                    {
+                        "type": "input-group",
+                        "label": "",
+                        "body": [
+                            {
+                                "type": "icon",
+                                "icon": "./public/static/icon/lock-password-line.svg",
                             },
-                        },
-                        {
-                            type: "control",
-                            label: false,
-                            body: {
-                                "type": "button",
-                                "level": "primary",
-                                "actionType": "submit",
-                                "block": true,
-                                "label": "登陆"
+                            {
+                                "type": "input-password",
+                                "label": false,
+                                "placeholder": "密码",
+                                "name": "pwd",
+                                "required": true
                             }
-                        }
-                    ]
-                }
-
+                        ]
+                    },
+                    {
+                        "type": "input-group",
+                        "label": "",
+                        "body": [
+                            {
+                                "type": "icon",
+                                "icon": "./public/static/icon/shield-check-line.svg"
+                            },
+                            {
+                                "type": "input-text",
+                                "label": false,
+                                "placeholder": "验证码",
+                                "name": "code",
+                                "required": true
+                            },
+                            {
+                                "type": "action",
+                                "body": {
+                                    "type": "image",
+                                "height": "38px",
+                                "width": "110px",
+                                "name":"codeUrl",
+                                "imageClassName":"code_img b-none",
+                                "imageMode":"original",
+                                "src": "/login/verify"
+                                },
+                                // 点击图片 刷新二维码
+                                "onClick": "refresh_code()"
+                            }
+                        ]
+                    },
+                    {
+                        "label": "登 录",
+                        "type": "action",
+                        "actionType": "submit",
+                        "level": "primary",
+                        "className":"w-full h-2.5",
+                    },
+                    // {
+                    //     "type":"html",
+                    //     "className":"text-center",
+                    //     "html":"<p class='mt-10 text-gray-600'>Roma平台</p>"
+                    // },
                 ]
+
             }
+
         };
 
         let amisScoped = amis.embed('#root', amisJSON);
     })();
+    // 刷新验证码
+    function refresh_code()
+    {
+        document.querySelector('.code_img').src = '/login/verify?' + Math.random();
+    }
 </script>
 </body>
 </html>

+ 145 - 0
login.htmlback

@@ -0,0 +1,145 @@
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+    <meta charset="UTF-8" />
+    <title>登录</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <link rel="icon" type="image/x-ico" href=""/>
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
+    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
+    <link rel="stylesheet" href="./public/static/amis-sdk/helper.css">
+
+    <link rel="stylesheet" href="./public/static/amis-sdk/sdk.css">
+    <style>
+        html,
+        body,
+        .app-wrapper {
+            position: relative;
+            width: 100%;
+            height: 100%;
+            margin: 0;
+            padding: 0;
+            touch-action: pan-y;
+        }
+        :root {
+            --Form-item-gap: 1.3rem;
+            --InputGroup-height: 2.5rem;
+            --Button-height: 2.5rem;
+            --InputGroup-paddingX: .6rem;
+            --InputGroup-addOn-bg: var(--Form-input-bg);
+            /* --fontSizeBase: .9rem; */
+        }
+
+        .app-wrapper {
+            position: relative;
+            width: 100%;
+            height: 100%;
+            margin: 0;
+            padding: 0;
+        }
+
+        .loginTitle {
+            text-align: center;
+        }
+
+        .loginTitle p {
+            margin: 10px auto;
+            color: black;
+            font-size: 25px;
+        }
+    </style>
+</head>
+<body>
+<div id="root" class="app-wrapper"></div>
+<script type='text/javascript' src='./public/static/amis-sdk/sdk.js'></script>
+
+<script type="text/javascript">
+    (function () {
+        let amis = amisRequire('amis/embed');
+
+        const amisJSON = {
+            type: 'page',
+            title: "",
+            style: {
+                "backgroundImage": "linear-gradient(180deg, #86a4e9, transparent)"
+            },
+            cssVars: {
+                "--Form-input-onFocused-borderColor": "#e8e9eb",
+                "--Form-input-onHover-borderColor": "#e8e9eb",
+            },
+            body: {
+                "type": "grid-2d",
+                "cols": 12,
+                "grids": [{
+                    x: 5,
+                    y: 5,
+                    h: 1,
+                    w: 4,
+                    width: 200,
+                    type: 'form',
+                    mode: 'horizontal',
+                    title: "",
+                    api: {
+                        url: "/api/new-login",
+                        method: "post",
+                        dataType: "form-data",
+                        adaptor: function(payload, response, api) {
+
+                        }
+                    },
+                    panelClassName: "p-r p-l p-b-md",
+                    redirect: "/admins",
+                    body: [{
+                        "type": "tpl",
+                        "tpl": "<div class='loginTitle'><p>管理后台</p></div>"
+                    },
+                        {
+                            type: "input-text",
+                            label: false,
+                            name: "userName",
+                            size: "full",
+                            placeholder: "登录名",
+                            addOn: {
+                                "label": "",
+                                "type": "text",
+                                "position": "left",
+                                "icon": "fa fa-user"
+                            },
+                        },
+                        {
+                            type: "input-password",
+                            label: false,
+                            name: "password",
+                            size: "full",
+                            placeholder: "密码",
+                            addOn: {
+                                "label": "",
+                                "type": "text",
+                                "position": "left",
+                                "icon": "fa fa-lock"
+                            },
+                        },
+                        {
+                            type: "control",
+                            label: false,
+                            body: {
+                                "type": "button",
+                                "level": "primary",
+                                "actionType": "submit",
+                                "block": true,
+                                "label": "登录"
+                            }
+                        }
+                    ]
+                }
+
+                ]
+            }
+        };
+
+        let amisScoped = amis.embed('#root', amisJSON);
+    })();
+</script>
+</body>
+</html>
+

+ 0 - 0
public/static/amis-sdk/PaxHeader/ang-ie11.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/ang.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/antd-ie11.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/antd.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/barcode.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/charts.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/codemirror.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/color-picker.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/cropperjs.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/cxd-ie11.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/cxd.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/dark-ie11.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/dark.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/exceljs.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/helper.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/iconfont.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/iconfont.eot


+ 0 - 0
public/static/amis-sdk/PaxHeader/iconfont.svg


+ 0 - 0
public/static/amis-sdk/PaxHeader/iconfont.ttf


+ 0 - 0
public/static/amis-sdk/PaxHeader/iconfont.woff


+ 0 - 0
public/static/amis-sdk/PaxHeader/ie11-patch.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/locale


+ 0 - 0
public/static/amis-sdk/PaxHeader/markdown.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/papaparse.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/rest.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/rich-text.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/sdk-ie11.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/sdk.css


+ 0 - 0
public/static/amis-sdk/PaxHeader/sdk.js


+ 0 - 0
public/static/amis-sdk/PaxHeader/thirds


+ 0 - 0
public/static/amis-sdk/PaxHeader/tinymce.js


+ 0 - 0
public/static/amis-sdk/ang-ie11.css


+ 0 - 0
public/static/amis-sdk/ang.css


+ 0 - 0
public/static/amis-sdk/antd-ie11.css


+ 0 - 0
public/static/amis-sdk/antd.css


+ 0 - 0
public/static/amis-sdk/barcode.js


+ 0 - 0
public/static/amis-sdk/charts.js


+ 0 - 0
public/static/amis-sdk/codemirror.js


+ 0 - 0
public/static/amis-sdk/color-picker.js


+ 0 - 0
public/static/amis-sdk/cropperjs.js


+ 0 - 0
public/static/amis-sdk/cxd-ie11.css


+ 0 - 0
public/static/amis-sdk/cxd.css


+ 0 - 0
public/static/amis-sdk/dark-ie11.css


+ 0 - 0
public/static/amis-sdk/dark.css


+ 0 - 0
public/static/amis-sdk/exceljs.js


+ 0 - 0
public/static/amis-sdk/helper.css


+ 0 - 0
public/static/amis-sdk/iconfont.css


+ 0 - 0
public/static/amis-sdk/iconfont.eot


+ 0 - 0
public/static/amis-sdk/iconfont.svg


+ 0 - 0
public/static/amis-sdk/iconfont.ttf


+ 0 - 0
public/static/amis-sdk/iconfont.woff


+ 0 - 0
public/static/amis-sdk/ie11-patch.css


+ 0 - 0
public/static/amis-sdk/locale/PaxHeader/de-DE.js


+ 0 - 0
public/static/amis-sdk/locale/de-DE.js


+ 0 - 0
public/static/amis-sdk/markdown.js


+ 0 - 0
public/static/amis-sdk/papaparse.js


+ 0 - 0
public/static/amis-sdk/rest.js


+ 0 - 0
public/static/amis-sdk/rich-text.js


+ 0 - 0
public/static/amis-sdk/sdk-ie11.css


+ 0 - 0
public/static/amis-sdk/sdk.css


+ 0 - 0
public/static/amis-sdk/sdk.js


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/PaxHeader/fontawesome-free


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/PaxHeader/webfonts


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-brands-400.ttf


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-brands-400.woff2


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-regular-400.ttf


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-regular-400.woff2


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-solid-900.ttf


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-solid-900.woff2


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-v4compatibility.ttf


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-v4compatibility.woff2


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.ttf


+ 0 - 0
public/static/amis-sdk/thirds/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.woff2


+ 0 - 0
public/static/amis-sdk/thirds/PaxHeader/@fortawesome


+ 0 - 0
public/static/amis-sdk/thirds/PaxHeader/hls.js


+ 0 - 0
public/static/amis-sdk/thirds/PaxHeader/markdown-it


+ 0 - 0
public/static/amis-sdk/thirds/PaxHeader/monaco-editor


+ 0 - 0
public/static/amis-sdk/thirds/PaxHeader/mpegts.js


+ 0 - 0
public/static/amis-sdk/thirds/hls.js/PaxHeader/hls.js


+ 0 - 0
public/static/amis-sdk/thirds/hls.js/hls.js


+ 0 - 0
public/static/amis-sdk/thirds/markdown-it/PaxHeader/node_modules


+ 0 - 0
public/static/amis-sdk/thirds/markdown-it/node_modules/PaxHeader/entities


+ 0 - 0
public/static/amis-sdk/thirds/markdown-it/node_modules/entities/PaxHeader/lib


+ 0 - 0
public/static/amis-sdk/thirds/markdown-it/node_modules/entities/lib/PaxHeader/maps


+ 0 - 0
public/static/amis-sdk/thirds/markdown-it/node_modules/entities/lib/maps/PaxHeader/entities.json


+ 0 - 0
public/static/amis-sdk/thirds/markdown-it/node_modules/entities/lib/maps/entities.json


+ 0 - 0
public/static/amis-sdk/thirds/monaco-editor/PaxHeader/min


+ 0 - 0
public/static/amis-sdk/thirds/monaco-editor/min/PaxHeader/vs


Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů