statedict2pytree 0.5.0__py3-none-any.whl → 0.5.3__py3-none-any.whl
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.
- client/.gitignore +3 -0
- client/package-lock.json +4540 -0
- client/package.json +36 -0
- client/public/bundle.js +10072 -0
- client/public/bundle.js.map +1 -0
- client/public/index.html +14 -0
- {statedict2pytree/static → client/public}/output.css +184 -109
- client/rollup.config.mjs +44 -0
- client/src/App.svelte +583 -0
- client/src/empty.ts +0 -0
- client/src/main.js +8 -0
- client/tailwind.config.js +8 -0
- client/tsconfig.json +5 -0
- statedict2pytree-0.5.3.dist-info/METADATA +77 -0
- statedict2pytree-0.5.3.dist-info/RECORD +17 -0
- statedict2pytree/__init__.py +0 -7
- statedict2pytree/statedict2pytree.py +0 -219
- statedict2pytree/templates/index.html +0 -308
- statedict2pytree-0.5.0.dist-info/METADATA +0 -147
- statedict2pytree-0.5.0.dist-info/RECORD +0 -8
- {statedict2pytree/static → client/public}/input.css +0 -0
- {statedict2pytree-0.5.0.dist-info → statedict2pytree-0.5.3.dist-info}/WHEEL +0 -0
client/public/index.html
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" data-theme="light">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width" />
|
|
6
|
+
|
|
7
|
+
<title>Svelte app</title>
|
|
8
|
+
|
|
9
|
+
<link rel="stylesheet" href="/output.css" />
|
|
10
|
+
<script defer src="/bundle.js"></script>
|
|
11
|
+
</head>
|
|
12
|
+
|
|
13
|
+
<body></body>
|
|
14
|
+
</html>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
! tailwindcss v3.4.
|
|
2
|
+
! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -508,6 +508,10 @@ html {
|
|
|
508
508
|
-webkit-tap-highlight-color: transparent;
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
+
* {
|
|
512
|
+
scrollbar-color: currentColor transparent;
|
|
513
|
+
}
|
|
514
|
+
|
|
511
515
|
:root {
|
|
512
516
|
color-scheme: light;
|
|
513
517
|
--in: 72.06% 0.191 231.6;
|
|
@@ -750,70 +754,6 @@ html {
|
|
|
750
754
|
--tw-contain-style: ;
|
|
751
755
|
}
|
|
752
756
|
|
|
753
|
-
.container {
|
|
754
|
-
width: 100%;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
@media (min-width: 640px) {
|
|
758
|
-
.container {
|
|
759
|
-
max-width: 640px;
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
@media (min-width: 768px) {
|
|
764
|
-
.container {
|
|
765
|
-
max-width: 768px;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
@media (min-width: 1024px) {
|
|
770
|
-
.container {
|
|
771
|
-
max-width: 1024px;
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
@media (min-width: 1280px) {
|
|
776
|
-
.container {
|
|
777
|
-
max-width: 1280px;
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
@media (min-width: 1536px) {
|
|
782
|
-
.container {
|
|
783
|
-
max-width: 1536px;
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
.alert {
|
|
788
|
-
display: grid;
|
|
789
|
-
width: 100%;
|
|
790
|
-
grid-auto-flow: row;
|
|
791
|
-
align-content: flex-start;
|
|
792
|
-
align-items: center;
|
|
793
|
-
justify-items: center;
|
|
794
|
-
gap: 1rem;
|
|
795
|
-
text-align: center;
|
|
796
|
-
border-radius: var(--rounded-box, 1rem);
|
|
797
|
-
border-width: 1px;
|
|
798
|
-
--tw-border-opacity: 1;
|
|
799
|
-
border-color: var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));
|
|
800
|
-
padding: 1rem;
|
|
801
|
-
--tw-text-opacity: 1;
|
|
802
|
-
color: var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));
|
|
803
|
-
--alert-bg: var(--fallback-b2,oklch(var(--b2)/1));
|
|
804
|
-
--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1));
|
|
805
|
-
background-color: var(--alert-bg);
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
@media (min-width: 640px) {
|
|
809
|
-
.alert {
|
|
810
|
-
grid-auto-flow: column;
|
|
811
|
-
grid-template-columns: auto minmax(auto,1fr);
|
|
812
|
-
justify-items: start;
|
|
813
|
-
text-align: start;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
|
|
817
757
|
.avatar.placeholder > div {
|
|
818
758
|
display: flex;
|
|
819
759
|
align-items: center;
|
|
@@ -913,6 +853,16 @@ html {
|
|
|
913
853
|
--glass-border-opacity: 15%;
|
|
914
854
|
}
|
|
915
855
|
|
|
856
|
+
.btn-ghost:hover {
|
|
857
|
+
border-color: transparent;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
@supports (color: oklch(0% 0 0)) {
|
|
861
|
+
.btn-ghost:hover {
|
|
862
|
+
background-color: var(--fallback-bc,oklch(var(--bc)/0.2));
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
916
866
|
.btn-outline.btn-secondary:hover {
|
|
917
867
|
--tw-text-opacity: 1;
|
|
918
868
|
color: var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)));
|
|
@@ -937,6 +887,18 @@ html {
|
|
|
937
887
|
}
|
|
938
888
|
}
|
|
939
889
|
|
|
890
|
+
.btn-outline.btn-warning:hover {
|
|
891
|
+
--tw-text-opacity: 1;
|
|
892
|
+
color: var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
@supports (color: color-mix(in oklab, black, black)) {
|
|
896
|
+
.btn-outline.btn-warning:hover {
|
|
897
|
+
background-color: color-mix(in oklab, var(--fallback-wa,oklch(var(--wa)/1)) 90%, black);
|
|
898
|
+
border-color: color-mix(in oklab, var(--fallback-wa,oklch(var(--wa)/1)) 90%, black);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
|
|
940
902
|
.btn-disabled:hover,
|
|
941
903
|
.btn[disabled]:hover,
|
|
942
904
|
.btn:disabled:hover {
|
|
@@ -980,9 +942,38 @@ html {
|
|
|
980
942
|
margin-inline-end: -1rem;
|
|
981
943
|
}
|
|
982
944
|
|
|
983
|
-
.
|
|
945
|
+
.select {
|
|
946
|
+
display: inline-flex;
|
|
984
947
|
cursor: pointer;
|
|
985
|
-
|
|
948
|
+
-webkit-user-select: none;
|
|
949
|
+
-moz-user-select: none;
|
|
950
|
+
user-select: none;
|
|
951
|
+
-webkit-appearance: none;
|
|
952
|
+
-moz-appearance: none;
|
|
953
|
+
appearance: none;
|
|
954
|
+
height: 3rem;
|
|
955
|
+
min-height: 3rem;
|
|
956
|
+
padding-left: 1rem;
|
|
957
|
+
padding-right: 2.5rem;
|
|
958
|
+
font-size: 0.875rem;
|
|
959
|
+
line-height: 1.25rem;
|
|
960
|
+
line-height: 2;
|
|
961
|
+
border-radius: var(--rounded-btn, 0.5rem);
|
|
962
|
+
border-width: 1px;
|
|
963
|
+
border-color: transparent;
|
|
964
|
+
--tw-bg-opacity: 1;
|
|
965
|
+
background-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));
|
|
966
|
+
background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
|
|
967
|
+
linear-gradient(135deg, currentColor 50%, transparent 50%);
|
|
968
|
+
background-position: calc(100% - 20px) calc(1px + 50%),
|
|
969
|
+
calc(100% - 16.1px) calc(1px + 50%);
|
|
970
|
+
background-size: 4px 4px,
|
|
971
|
+
4px 4px;
|
|
972
|
+
background-repeat: no-repeat;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.select[multiple] {
|
|
976
|
+
height: auto;
|
|
986
977
|
}
|
|
987
978
|
|
|
988
979
|
.toast {
|
|
@@ -996,14 +987,6 @@ html {
|
|
|
996
987
|
padding: 1rem;
|
|
997
988
|
}
|
|
998
989
|
|
|
999
|
-
.alert-error {
|
|
1000
|
-
border-color: var(--fallback-er,oklch(var(--er)/0.2));
|
|
1001
|
-
--tw-text-opacity: 1;
|
|
1002
|
-
color: var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));
|
|
1003
|
-
--alert-bg: var(--fallback-er,oklch(var(--er)/1));
|
|
1004
|
-
--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1));
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
990
|
@media (prefers-reduced-motion: no-preference) {
|
|
1008
991
|
.btn {
|
|
1009
992
|
animation: button-pop var(--animation-btn, 0.25s) ease-out;
|
|
@@ -1029,6 +1012,10 @@ html {
|
|
|
1029
1012
|
.btn-accent {
|
|
1030
1013
|
--btn-color: var(--fallback-a);
|
|
1031
1014
|
}
|
|
1015
|
+
|
|
1016
|
+
.btn-warning {
|
|
1017
|
+
--btn-color: var(--fallback-wa);
|
|
1018
|
+
}
|
|
1032
1019
|
}
|
|
1033
1020
|
|
|
1034
1021
|
@supports (color: color-mix(in oklab, black, black)) {
|
|
@@ -1041,6 +1028,11 @@ html {
|
|
|
1041
1028
|
background-color: color-mix(in oklab, var(--fallback-a,oklch(var(--a)/1)) 90%, black);
|
|
1042
1029
|
border-color: color-mix(in oklab, var(--fallback-a,oklch(var(--a)/1)) 90%, black);
|
|
1043
1030
|
}
|
|
1031
|
+
|
|
1032
|
+
.btn-outline.btn-warning.btn-active {
|
|
1033
|
+
background-color: color-mix(in oklab, var(--fallback-wa,oklch(var(--wa)/1)) 90%, black);
|
|
1034
|
+
border-color: color-mix(in oklab, var(--fallback-wa,oklch(var(--wa)/1)) 90%, black);
|
|
1035
|
+
}
|
|
1044
1036
|
}
|
|
1045
1037
|
|
|
1046
1038
|
.btn:focus-visible {
|
|
@@ -1057,6 +1049,10 @@ html {
|
|
|
1057
1049
|
.btn-accent {
|
|
1058
1050
|
--btn-color: var(--a);
|
|
1059
1051
|
}
|
|
1052
|
+
|
|
1053
|
+
.btn-warning {
|
|
1054
|
+
--btn-color: var(--wa);
|
|
1055
|
+
}
|
|
1060
1056
|
}
|
|
1061
1057
|
|
|
1062
1058
|
.btn-secondary {
|
|
@@ -1071,6 +1067,12 @@ html {
|
|
|
1071
1067
|
outline-color: var(--fallback-a,oklch(var(--a)/1));
|
|
1072
1068
|
}
|
|
1073
1069
|
|
|
1070
|
+
.btn-warning {
|
|
1071
|
+
--tw-text-opacity: 1;
|
|
1072
|
+
color: var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));
|
|
1073
|
+
outline-color: var(--fallback-wa,oklch(var(--wa)/1));
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1074
1076
|
.btn.glass {
|
|
1075
1077
|
--tw-shadow: 0 0 #0000;
|
|
1076
1078
|
--tw-shadow-colored: 0 0 #0000;
|
|
@@ -1083,6 +1085,22 @@ html {
|
|
|
1083
1085
|
--glass-border-opacity: 15%;
|
|
1084
1086
|
}
|
|
1085
1087
|
|
|
1088
|
+
.btn-ghost {
|
|
1089
|
+
border-width: 1px;
|
|
1090
|
+
border-color: transparent;
|
|
1091
|
+
background-color: transparent;
|
|
1092
|
+
color: currentColor;
|
|
1093
|
+
--tw-shadow: 0 0 #0000;
|
|
1094
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
1095
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1096
|
+
outline-color: currentColor;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
.btn-ghost.btn-active {
|
|
1100
|
+
border-color: transparent;
|
|
1101
|
+
background-color: var(--fallback-bc,oklch(var(--bc)/0.2));
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1086
1104
|
.btn-outline.btn-secondary {
|
|
1087
1105
|
--tw-text-opacity: 1;
|
|
1088
1106
|
color: var(--fallback-s,oklch(var(--s)/var(--tw-text-opacity)));
|
|
@@ -1103,6 +1121,16 @@ html {
|
|
|
1103
1121
|
color: var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)));
|
|
1104
1122
|
}
|
|
1105
1123
|
|
|
1124
|
+
.btn-outline.btn-warning {
|
|
1125
|
+
--tw-text-opacity: 1;
|
|
1126
|
+
color: var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity)));
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
.btn-outline.btn-warning.btn-active {
|
|
1130
|
+
--tw-text-opacity: 1;
|
|
1131
|
+
color: var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1106
1134
|
.btn.btn-disabled,
|
|
1107
1135
|
.btn[disabled],
|
|
1108
1136
|
.btn:disabled {
|
|
@@ -1225,16 +1253,6 @@ html {
|
|
|
1225
1253
|
text-align: inherit;
|
|
1226
1254
|
}
|
|
1227
1255
|
|
|
1228
|
-
.link:focus {
|
|
1229
|
-
outline: 2px solid transparent;
|
|
1230
|
-
outline-offset: 2px;
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
.link:focus-visible {
|
|
1234
|
-
outline: 2px solid currentColor;
|
|
1235
|
-
outline-offset: 2px;
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
1256
|
.mockup-browser .mockup-browser-toolbar .input {
|
|
1239
1257
|
position: relative;
|
|
1240
1258
|
margin-left: auto;
|
|
@@ -1324,6 +1342,50 @@ html {
|
|
|
1324
1342
|
}
|
|
1325
1343
|
}
|
|
1326
1344
|
|
|
1345
|
+
.select:focus {
|
|
1346
|
+
box-shadow: none;
|
|
1347
|
+
border-color: var(--fallback-bc,oklch(var(--bc)/0.2));
|
|
1348
|
+
outline-style: solid;
|
|
1349
|
+
outline-width: 2px;
|
|
1350
|
+
outline-offset: 2px;
|
|
1351
|
+
outline-color: var(--fallback-bc,oklch(var(--bc)/0.2));
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.select-disabled,
|
|
1355
|
+
.select:disabled,
|
|
1356
|
+
.select[disabled] {
|
|
1357
|
+
cursor: not-allowed;
|
|
1358
|
+
--tw-border-opacity: 1;
|
|
1359
|
+
border-color: var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));
|
|
1360
|
+
--tw-bg-opacity: 1;
|
|
1361
|
+
background-color: var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));
|
|
1362
|
+
color: var(--fallback-bc,oklch(var(--bc)/0.4));
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
.select-disabled::-moz-placeholder, .select:disabled::-moz-placeholder, .select[disabled]::-moz-placeholder {
|
|
1366
|
+
color: var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));
|
|
1367
|
+
--tw-placeholder-opacity: 0.2;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
.select-disabled::placeholder,
|
|
1371
|
+
.select:disabled::placeholder,
|
|
1372
|
+
.select[disabled]::placeholder {
|
|
1373
|
+
color: var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));
|
|
1374
|
+
--tw-placeholder-opacity: 0.2;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
.select-multiple,
|
|
1378
|
+
.select[multiple],
|
|
1379
|
+
.select[size].select:not([size="1"]) {
|
|
1380
|
+
background-image: none;
|
|
1381
|
+
padding-right: 1rem;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
[dir="rtl"] .select {
|
|
1385
|
+
background-position: calc(0% + 12px) calc(1px + 50%),
|
|
1386
|
+
calc(0% + 16px) calc(1px + 50%);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1327
1389
|
@keyframes skeleton {
|
|
1328
1390
|
from {
|
|
1329
1391
|
background-position: 150%;
|
|
@@ -1432,8 +1494,9 @@ html {
|
|
|
1432
1494
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1433
1495
|
}
|
|
1434
1496
|
|
|
1435
|
-
.
|
|
1436
|
-
|
|
1497
|
+
.mx-2 {
|
|
1498
|
+
margin-left: 0.5rem;
|
|
1499
|
+
margin-right: 0.5rem;
|
|
1437
1500
|
}
|
|
1438
1501
|
|
|
1439
1502
|
.mx-auto {
|
|
@@ -1451,36 +1514,34 @@ html {
|
|
|
1451
1514
|
margin-bottom: 0.5rem;
|
|
1452
1515
|
}
|
|
1453
1516
|
|
|
1454
|
-
.
|
|
1455
|
-
|
|
1517
|
+
.my-4 {
|
|
1518
|
+
margin-top: 1rem;
|
|
1519
|
+
margin-bottom: 1rem;
|
|
1456
1520
|
}
|
|
1457
1521
|
|
|
1458
|
-
.
|
|
1459
|
-
|
|
1522
|
+
.my-auto {
|
|
1523
|
+
margin-top: auto;
|
|
1524
|
+
margin-bottom: auto;
|
|
1460
1525
|
}
|
|
1461
1526
|
|
|
1462
|
-
.
|
|
1463
|
-
display:
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
.h-6 {
|
|
1467
|
-
height: 1.5rem;
|
|
1527
|
+
.flex {
|
|
1528
|
+
display: flex;
|
|
1468
1529
|
}
|
|
1469
1530
|
|
|
1470
|
-
.
|
|
1471
|
-
|
|
1531
|
+
.grid {
|
|
1532
|
+
display: grid;
|
|
1472
1533
|
}
|
|
1473
1534
|
|
|
1474
|
-
.
|
|
1475
|
-
|
|
1535
|
+
.h-12 {
|
|
1536
|
+
height: 3rem;
|
|
1476
1537
|
}
|
|
1477
1538
|
|
|
1478
1539
|
.w-full {
|
|
1479
1540
|
width: 100%;
|
|
1480
1541
|
}
|
|
1481
1542
|
|
|
1482
|
-
.
|
|
1483
|
-
flex
|
|
1543
|
+
.flex-1 {
|
|
1544
|
+
flex: 1 1 0%;
|
|
1484
1545
|
}
|
|
1485
1546
|
|
|
1486
1547
|
.cursor-pointer {
|
|
@@ -1499,11 +1560,21 @@ html {
|
|
|
1499
1560
|
justify-content: center;
|
|
1500
1561
|
}
|
|
1501
1562
|
|
|
1563
|
+
.justify-evenly {
|
|
1564
|
+
justify-content: space-evenly;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1502
1567
|
.gap-x-2 {
|
|
1503
1568
|
-moz-column-gap: 0.5rem;
|
|
1504
1569
|
column-gap: 0.5rem;
|
|
1505
1570
|
}
|
|
1506
1571
|
|
|
1572
|
+
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
|
|
1573
|
+
--tw-space-x-reverse: 0;
|
|
1574
|
+
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
|
1575
|
+
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1507
1578
|
.overflow-x-scroll {
|
|
1508
1579
|
overflow-x: scroll;
|
|
1509
1580
|
}
|
|
@@ -1512,9 +1583,17 @@ html {
|
|
|
1512
1583
|
white-space: nowrap;
|
|
1513
1584
|
}
|
|
1514
1585
|
|
|
1515
|
-
.
|
|
1586
|
+
.rounded-xl {
|
|
1587
|
+
border-radius: 0.75rem;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
.border {
|
|
1591
|
+
border-width: 1px;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
.bg-accent {
|
|
1516
1595
|
--tw-bg-opacity: 1;
|
|
1517
|
-
background-color: var(--fallback-
|
|
1596
|
+
background-color: var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)));
|
|
1518
1597
|
}
|
|
1519
1598
|
|
|
1520
1599
|
.bg-blue-400 {
|
|
@@ -1527,10 +1606,6 @@ html {
|
|
|
1527
1606
|
background-color: var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)));
|
|
1528
1607
|
}
|
|
1529
1608
|
|
|
1530
|
-
.stroke-current {
|
|
1531
|
-
stroke: currentColor;
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
1609
|
.text-2xl {
|
|
1535
1610
|
font-size: 1.5rem;
|
|
1536
1611
|
line-height: 2rem;
|
client/rollup.config.mjs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import svelte from "rollup-plugin-svelte";
|
|
2
|
+
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
3
|
+
import commonjs from "@rollup/plugin-commonjs";
|
|
4
|
+
import livereload from "rollup-plugin-livereload";
|
|
5
|
+
import terser from "@rollup/plugin-terser";
|
|
6
|
+
import { sveltePreprocess } from "svelte-preprocess";
|
|
7
|
+
import typescript from "@rollup/plugin-typescript";
|
|
8
|
+
|
|
9
|
+
const production = !process.env.ROLLUP_WATCH;
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
input: "src/main.js",
|
|
13
|
+
output: {
|
|
14
|
+
sourcemap: true,
|
|
15
|
+
format: "iife",
|
|
16
|
+
name: "app",
|
|
17
|
+
file: "public/bundle.js",
|
|
18
|
+
},
|
|
19
|
+
plugins: [
|
|
20
|
+
svelte({
|
|
21
|
+
compilerOptions: {
|
|
22
|
+
dev: !production,
|
|
23
|
+
css: (css) => {
|
|
24
|
+
css.write("public/bundle.css");
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
preprocess: sveltePreprocess(),
|
|
28
|
+
}),
|
|
29
|
+
|
|
30
|
+
typescript({ sourceMap: !production }),
|
|
31
|
+
nodeResolve({
|
|
32
|
+
browser: true,
|
|
33
|
+
dedupe: (importee) =>
|
|
34
|
+
importee === "svelte" || importee.startsWith("svelte/"),
|
|
35
|
+
}),
|
|
36
|
+
commonjs(),
|
|
37
|
+
|
|
38
|
+
!production && livereload("public"),
|
|
39
|
+
production && terser(),
|
|
40
|
+
],
|
|
41
|
+
watch: {
|
|
42
|
+
clearScreen: false,
|
|
43
|
+
},
|
|
44
|
+
};
|