@dudousxd/nestjs-durable-dashboard 0.32.0 → 0.32.1
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/dist/server/index.cjs +63 -58
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +63 -58
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.cjs
CHANGED
|
@@ -606,7 +606,7 @@ function renderLoginPage(basePath) {
|
|
|
606
606
|
<meta name="robots" content="noindex, nofollow" />
|
|
607
607
|
<title>Sign in \u2014 Durable</title>
|
|
608
608
|
<style>
|
|
609
|
-
:root { color-scheme:
|
|
609
|
+
:root { color-scheme: dark; }
|
|
610
610
|
* { box-sizing: border-box; }
|
|
611
611
|
body {
|
|
612
612
|
margin: 0;
|
|
@@ -614,80 +614,85 @@ function renderLoginPage(basePath) {
|
|
|
614
614
|
display: flex;
|
|
615
615
|
align-items: center;
|
|
616
616
|
justify-content: center;
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
617
|
+
background: #09090b;
|
|
618
|
+
color: #e4e4e7;
|
|
619
|
+
font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
620
|
+
padding: 16px;
|
|
620
621
|
}
|
|
621
|
-
|
|
622
|
+
.card {
|
|
622
623
|
width: 100%;
|
|
623
|
-
max-width:
|
|
624
|
+
max-width: 384px;
|
|
625
|
+
border: 1px solid #27272a;
|
|
626
|
+
background: #18181b;
|
|
627
|
+
border-radius: 8px;
|
|
624
628
|
padding: 32px;
|
|
629
|
+
box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
|
|
625
630
|
}
|
|
626
|
-
|
|
631
|
+
.brand {
|
|
632
|
+
margin: 0 0 24px;
|
|
633
|
+
text-align: center;
|
|
627
634
|
font-size: 18px;
|
|
628
635
|
font-weight: 600;
|
|
629
|
-
|
|
636
|
+
color: #34d399;
|
|
630
637
|
}
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
font-size:
|
|
638
|
+
form { display: flex; flex-direction: column; gap: 16px; }
|
|
639
|
+
label { display: flex; flex-direction: column; gap: 6px; }
|
|
640
|
+
.field-label {
|
|
641
|
+
font-size: 11px;
|
|
642
|
+
text-transform: uppercase;
|
|
643
|
+
letter-spacing: 0.05em;
|
|
644
|
+
color: #71717a;
|
|
635
645
|
}
|
|
636
|
-
|
|
637
|
-
|
|
646
|
+
input {
|
|
647
|
+
border-radius: 4px;
|
|
648
|
+
border: 1px solid #3f3f46;
|
|
649
|
+
background: #09090b;
|
|
650
|
+
color: #f4f4f5;
|
|
651
|
+
padding: 8px 12px;
|
|
652
|
+
font: inherit;
|
|
653
|
+
outline: none;
|
|
654
|
+
}
|
|
655
|
+
input:focus { border-color: rgb(52 211 153 / 0.6); }
|
|
656
|
+
#error {
|
|
657
|
+
display: none;
|
|
658
|
+
margin: 0;
|
|
638
659
|
font-size: 12px;
|
|
639
|
-
|
|
640
|
-
margin-bottom: 6px;
|
|
641
|
-
color: #cbd5e1;
|
|
660
|
+
color: #fb7185;
|
|
642
661
|
}
|
|
643
|
-
input {
|
|
644
|
-
width: 100%;
|
|
645
|
-
padding: 8px 10px;
|
|
646
|
-
margin-bottom: 16px;
|
|
647
|
-
border-radius: 6px;
|
|
648
|
-
border: 1px solid #374151;
|
|
649
|
-
background: #111827;
|
|
650
|
-
color: #e5e7eb;
|
|
651
|
-
font-size: 14px;
|
|
652
|
-
}
|
|
653
|
-
input:focus { outline: 2px solid #3b82f6; outline-offset: 1px; }
|
|
654
662
|
button {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
border
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
font
|
|
662
|
-
font-
|
|
663
|
+
margin-top: 8px;
|
|
664
|
+
border-radius: 4px;
|
|
665
|
+
border: 1px solid rgb(52 211 153 / 0.4);
|
|
666
|
+
background: rgb(52 211 153 / 0.1);
|
|
667
|
+
color: #6ee7b7;
|
|
668
|
+
padding: 8px 12px;
|
|
669
|
+
font: inherit;
|
|
670
|
+
font-size: 12px;
|
|
671
|
+
font-weight: 500;
|
|
672
|
+
text-transform: uppercase;
|
|
673
|
+
letter-spacing: 0.05em;
|
|
663
674
|
cursor: pointer;
|
|
664
675
|
}
|
|
676
|
+
button:hover:not(:disabled) { background: rgb(52 211 153 / 0.2); }
|
|
665
677
|
button:disabled { opacity: 0.6; cursor: default; }
|
|
666
|
-
button:hover:not(:disabled) { background: #2563eb; }
|
|
667
|
-
#error {
|
|
668
|
-
display: none;
|
|
669
|
-
margin-bottom: 16px;
|
|
670
|
-
padding: 8px 10px;
|
|
671
|
-
border-radius: 6px;
|
|
672
|
-
background: #7f1d1d;
|
|
673
|
-
color: #fecaca;
|
|
674
|
-
font-size: 13px;
|
|
675
|
-
}
|
|
676
678
|
</style>
|
|
677
679
|
</head>
|
|
678
680
|
<body>
|
|
679
|
-
<
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
681
|
+
<div class="card">
|
|
682
|
+
<p class="brand">Durable</p>
|
|
683
|
+
<form id="login-form" autocomplete="on">
|
|
684
|
+
<label>
|
|
685
|
+
<span class="field-label">Username</span>
|
|
686
|
+
<input id="username" name="username" type="text" autocomplete="username" required autofocus />
|
|
687
|
+
</label>
|
|
688
|
+
<label>
|
|
689
|
+
<span class="field-label">Password</span>
|
|
690
|
+
<input id="password" name="password" type="password" autocomplete="current-password" />
|
|
691
|
+
</label>
|
|
692
|
+
<p id="error" role="alert">Invalid username or password.</p>
|
|
693
|
+
<button id="submit" type="submit">Sign in</button>
|
|
694
|
+
</form>
|
|
695
|
+
</div>
|
|
691
696
|
<script>
|
|
692
697
|
(function () {
|
|
693
698
|
var LOGIN_ACTION = ${JSON.stringify(loginAction)};
|