nodestatus-server 1.2.4-beta → 1.2.5-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/app.js +88450 -1348
- package/build/dist/hotaru-admin/assets/LayoutHandler.e276d20c.js +61 -0
- package/build/dist/hotaru-admin/assets/{Login.cddd19f0.js → Login.1e56d0ea.js} +1 -1
- package/build/dist/hotaru-admin/assets/{index.eba21208.js → index.71c368a8.js} +1 -1
- package/build/dist/hotaru-admin/index.html +1 -1
- package/build/dist/hotaru-theme/assets/{index.1d664531.js → index.54c6e9ed.js} +1 -1
- package/build/dist/hotaru-theme/index.html +1 -1
- package/package.json +7 -7
- package/build/dist/hotaru-admin/assets/LayoutHandler.abe611c2.js +0 -61
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,A as p,_ as
|
|
1
|
+
import{r as l,A as p,_ as i,u as g,f as x,a as v,j as e,g as o,F as a,I as n,h as w}from"./vendor.62e15ed6.js";import{n as b}from"./index.71c368a8.js";import{U as y}from"./UserOutlined.4d9e5b4c.js";var k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},j=k,d=function(s,t){return l.exports.createElement(p,i(i({},s),{},{ref:t,icon:j}))};d.displayName="LockOutlined";var N=l.exports.forwardRef(d),O="/admin/assets/cherry.d242b139.jpg",I="/admin/assets/bg_howatama.73b3a663.png";const U=()=>{const r=g(),{mutate:s}=x(),t=l.exports.useCallback(async m=>{const{username:u,password:h}=m,f=await v.post("/api/session",{username:u,password:h}),{data:c}=f;c.code||(b("Success",void 0,"success"),localStorage.setItem("token",c.data),s("/api/session",{code:0,msg:"OK",data:null},!1).then(()=>r.push("/dashboard")))},[r,s]);return e("div",{className:"flex items-center min-h-screen p-6 bg-violet-50",style:{backgroundImage:`url(${I})`},children:e("div",{className:"flex-1 h-full max-w-xl md:max-w-4xl mx-auto overflow-hidden bg-white rounded-lg shadow-xl",children:o("div",{className:"flex flex-col md:flex-row",children:[e("div",{className:"h-60 md:h-auto md:w-1/2",children:e("img",{"aria-hidden":"true",className:"object-cover w-full h-full",src:O,alt:"Office"})}),o("div",{className:"flex flex-col items-center justify-center p-6 sm:p-16 md:w-1/2",children:[e("h1",{className:"text-2xl font-semibold text-gray-700 mb-6",children:"NodeStatus"}),o(a,{className:"w-full",initialValues:{remember:!0},onFinish:t,children:[e(a.Item,{name:"username",rules:[{required:!0,message:"Please input your Username!"}],children:e(n,{size:"large",prefix:e(y,{}),placeholder:"Username"})}),e(a.Item,{name:"password",rules:[{required:!0,message:"Please input your Password!"}],children:e(n,{size:"large",prefix:e(N,{}),type:"password",placeholder:"Password"})}),e(a.Item,{children:e(w,{type:"primary",size:"large",htmlType:"submit",block:!0,children:"Log in"})})]})]})]})})})};export{U as default};
|