histoire 0.1.3 → 0.2.0
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/client/app/App.vue +16 -1
- package/dist/client/app/components/app/AppHeader.vue +7 -6
- package/dist/client/app/components/app/Breadcrumb.vue +98 -0
- package/dist/client/app/components/app/MobileOverlay.vue +34 -0
- package/dist/client/app/components/base/BaseCheckbox.vue +76 -0
- package/dist/client/app/components/misc/HatchedPattern.vue +11 -23
- package/dist/client/app/components/search/SearchItem.vue +5 -2
- package/dist/client/app/components/search/SearchModal.vue +6 -6
- package/dist/client/app/components/story/StoryControls.vue +1 -1
- package/dist/client/app/components/story/StoryDocs.vue +1 -0
- package/dist/client/app/components/story/StoryListFolder.vue +3 -3
- package/dist/client/app/components/story/StoryListItem.vue +6 -3
- package/dist/client/app/components/story/StoryResponsivePreview.vue +53 -8
- package/dist/client/app/components/story/StorySidePanel.vue +69 -0
- package/dist/client/app/components/story/StorySourceCode.vue +4 -1
- package/dist/client/app/components/story/StoryVariantListItem.vue +6 -3
- package/dist/client/app/components/story/StoryVariantSingleView.vue +14 -10
- package/dist/client/app/components/story/StoryView.vue +10 -121
- package/dist/client/app/components/story/StoryViewer.vue +175 -0
- package/dist/client/app/stores/story.d.ts +6 -6
- package/dist/client/app/stores/story.js +2 -1
- package/dist/client/app/stores/story.ts +6 -2
- package/dist/client/app/style/{floating-vue.css → floating-vue.pcss} +0 -0
- package/dist/client/app/style/{main.css → main.pcss} +13 -3
- package/dist/client/app/style/transitions.pcss +26 -0
- package/dist/client/app/types.d.ts +1 -1
- package/dist/client/app/types.ts +1 -1
- package/dist/client/app/util/responsive.d.ts +1 -0
- package/dist/client/app/util/responsive.js +2 -0
- package/dist/client/app/util/responsive.ts +3 -0
- package/dist/node/bin.js +7 -0
- package/dist/node/build.js +1 -1
- package/dist/node/{collect.d.ts → collect/index.d.ts} +2 -2
- package/dist/node/{collect.js → collect/index.js} +37 -27
- package/dist/node/collect/worker.d.ts +14 -0
- package/dist/node/collect/worker.js +36 -0
- package/dist/node/commands/preview.d.ts +4 -0
- package/dist/node/commands/preview.js +36 -0
- package/dist/node/server.js +1 -1
- package/dist/node/types.d.ts +1 -1
- package/dist/style.css +231 -104
- package/package.json +8 -4
- package/src/client/app/App.vue +16 -1
- package/src/client/app/components/app/AppHeader.vue +7 -6
- package/src/client/app/components/app/Breadcrumb.vue +98 -0
- package/src/client/app/components/app/MobileOverlay.vue +34 -0
- package/src/client/app/components/base/BaseCheckbox.vue +76 -0
- package/src/client/app/components/misc/HatchedPattern.vue +11 -23
- package/src/client/app/components/search/SearchItem.vue +5 -2
- package/src/client/app/components/search/SearchModal.vue +6 -6
- package/src/client/app/components/story/StoryControls.vue +1 -1
- package/src/client/app/components/story/StoryDocs.vue +1 -0
- package/src/client/app/components/story/StoryListFolder.vue +3 -3
- package/src/client/app/components/story/StoryListItem.vue +6 -3
- package/src/client/app/components/story/StoryResponsivePreview.vue +53 -8
- package/src/client/app/components/story/StorySidePanel.vue +69 -0
- package/src/client/app/components/story/StorySourceCode.vue +4 -1
- package/src/client/app/components/story/StoryVariantListItem.vue +6 -3
- package/src/client/app/components/story/StoryVariantSingleView.vue +14 -10
- package/src/client/app/components/story/StoryView.vue +10 -121
- package/src/client/app/components/story/StoryViewer.vue +175 -0
- package/src/client/app/stores/story.ts +6 -2
- package/src/client/app/style/{floating-vue.css → floating-vue.pcss} +0 -0
- package/src/client/app/style/{main.css → main.pcss} +13 -3
- package/src/client/app/style/transitions.pcss +26 -0
- package/src/client/app/types.ts +1 -1
- package/src/client/app/util/responsive.ts +3 -0
- package/src/node/bin.ts +8 -0
- package/src/node/build.ts +1 -1
- package/src/node/{collect.ts → collect/index.ts} +48 -30
- package/src/node/collect/worker.ts +61 -0
- package/src/node/commands/preview.ts +50 -0
- package/src/node/server.ts +1 -1
- package/src/node/types.ts +1 -1
- package/dist/client/app/style/transitions.css +0 -12
- package/src/client/app/style/transitions.css +0 -12
package/dist/style.css
CHANGED
|
@@ -249,6 +249,18 @@
|
|
|
249
249
|
opacity: 0;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
+
.__histoire-fade-enter-active,
|
|
253
|
+
.__histoire-fade-leave-active {
|
|
254
|
+
transition: transform .15s, opacity .15s;
|
|
255
|
+
transform: translateY(0px);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.__histoire-fade-enter-from,
|
|
259
|
+
.__histoire-fade-leave-to {
|
|
260
|
+
transform: translateY(32px);
|
|
261
|
+
opacity: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
252
264
|
*,
|
|
253
265
|
::before,
|
|
254
266
|
::after {
|
|
@@ -848,14 +860,14 @@ button {
|
|
|
848
860
|
isolation:isolate
|
|
849
861
|
}
|
|
850
862
|
|
|
851
|
-
.htw-z-20{
|
|
852
|
-
z-index:20
|
|
853
|
-
}
|
|
854
|
-
|
|
855
863
|
.htw-z-10{
|
|
856
864
|
z-index:10
|
|
857
865
|
}
|
|
858
866
|
|
|
867
|
+
.htw-z-20{
|
|
868
|
+
z-index:20
|
|
869
|
+
}
|
|
870
|
+
|
|
859
871
|
.htw-m-1{
|
|
860
872
|
margin:0.25rem
|
|
861
873
|
}
|
|
@@ -868,6 +880,11 @@ button {
|
|
|
868
880
|
margin:1rem
|
|
869
881
|
}
|
|
870
882
|
|
|
883
|
+
.-htw-my-1{
|
|
884
|
+
margin-top:-0.25rem;
|
|
885
|
+
margin-bottom:-0.25rem
|
|
886
|
+
}
|
|
887
|
+
|
|
871
888
|
.htw-mt-2{
|
|
872
889
|
margin-top:0.5rem
|
|
873
890
|
}
|
|
@@ -932,10 +949,26 @@ button {
|
|
|
932
949
|
height:4rem
|
|
933
950
|
}
|
|
934
951
|
|
|
952
|
+
.htw-h-6{
|
|
953
|
+
height:1.5rem
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.htw-h-12{
|
|
957
|
+
height:3rem
|
|
958
|
+
}
|
|
959
|
+
|
|
935
960
|
.htw-h-5{
|
|
936
961
|
height:1.25rem
|
|
937
962
|
}
|
|
938
963
|
|
|
964
|
+
.htw-h-8{
|
|
965
|
+
height:2rem
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.htw-h-\[16px\]{
|
|
969
|
+
height:16px
|
|
970
|
+
}
|
|
971
|
+
|
|
939
972
|
.htw-h-\[2px\]{
|
|
940
973
|
height:2px
|
|
941
974
|
}
|
|
@@ -952,18 +985,10 @@ button {
|
|
|
952
985
|
height:1px
|
|
953
986
|
}
|
|
954
987
|
|
|
955
|
-
.htw-h-8{
|
|
956
|
-
height:2rem
|
|
957
|
-
}
|
|
958
|
-
|
|
959
988
|
.htw-h-10{
|
|
960
989
|
height:2.5rem
|
|
961
990
|
}
|
|
962
991
|
|
|
963
|
-
.htw-h-\[16px\]{
|
|
964
|
-
height:16px
|
|
965
|
-
}
|
|
966
|
-
|
|
967
992
|
.htw-max-h-full{
|
|
968
993
|
max-height:100%
|
|
969
994
|
}
|
|
@@ -972,6 +997,10 @@ button {
|
|
|
972
997
|
max-height:400px
|
|
973
998
|
}
|
|
974
999
|
|
|
1000
|
+
.htw-min-h-\[26px\]{
|
|
1001
|
+
min-height:26px
|
|
1002
|
+
}
|
|
1003
|
+
|
|
975
1004
|
.htw-w-64{
|
|
976
1005
|
width:16rem
|
|
977
1006
|
}
|
|
@@ -980,18 +1009,30 @@ button {
|
|
|
980
1009
|
width:100%
|
|
981
1010
|
}
|
|
982
1011
|
|
|
983
|
-
.htw-w-
|
|
984
|
-
width:1.
|
|
1012
|
+
.htw-w-6{
|
|
1013
|
+
width:1.5rem
|
|
985
1014
|
}
|
|
986
1015
|
|
|
987
|
-
.htw-w-
|
|
988
|
-
width:
|
|
1016
|
+
.htw-w-5{
|
|
1017
|
+
width:1.25rem
|
|
989
1018
|
}
|
|
990
1019
|
|
|
991
1020
|
.htw-w-screen{
|
|
992
1021
|
width:100vw
|
|
993
1022
|
}
|
|
994
1023
|
|
|
1024
|
+
.htw-w-8{
|
|
1025
|
+
width:2rem
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
.htw-w-\[16px\]{
|
|
1029
|
+
width:16px
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
.htw-w-4{
|
|
1033
|
+
width:1rem
|
|
1034
|
+
}
|
|
1035
|
+
|
|
995
1036
|
.htw-w-px{
|
|
996
1037
|
width:1px
|
|
997
1038
|
}
|
|
@@ -1010,8 +1051,8 @@ button {
|
|
|
1010
1051
|
width:5rem
|
|
1011
1052
|
}
|
|
1012
1053
|
|
|
1013
|
-
.htw-w
|
|
1014
|
-
width:
|
|
1054
|
+
.htw-w-28{
|
|
1055
|
+
width:7rem
|
|
1015
1056
|
}
|
|
1016
1057
|
|
|
1017
1058
|
.htw-min-w-0{
|
|
@@ -1042,6 +1083,14 @@ button {
|
|
|
1042
1083
|
flex:1 1 0%
|
|
1043
1084
|
}
|
|
1044
1085
|
|
|
1086
|
+
.htw-shrink-0{
|
|
1087
|
+
flex-shrink:0
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.htw-grow{
|
|
1091
|
+
flex-grow:1
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1045
1094
|
.htw-rotate-90{
|
|
1046
1095
|
--tw-rotate:90deg;
|
|
1047
1096
|
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))
|
|
@@ -1082,10 +1131,22 @@ button {
|
|
|
1082
1131
|
resize:none
|
|
1083
1132
|
}
|
|
1084
1133
|
|
|
1134
|
+
.htw-resize-y{
|
|
1135
|
+
resize:vertical
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1085
1138
|
.htw-flex-col{
|
|
1086
1139
|
flex-direction:column
|
|
1087
1140
|
}
|
|
1088
1141
|
|
|
1142
|
+
.htw-flex-wrap{
|
|
1143
|
+
flex-wrap:wrap
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.htw-place-content-between{
|
|
1147
|
+
place-content:space-between
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1089
1150
|
.htw-items-center{
|
|
1090
1151
|
align-items:center
|
|
1091
1152
|
}
|
|
@@ -1134,6 +1195,11 @@ button {
|
|
|
1134
1195
|
border-bottom-width:calc(1px * var(--tw-divide-y-reverse))
|
|
1135
1196
|
}
|
|
1136
1197
|
|
|
1198
|
+
.htw-divide-gray-100 > :not([hidden]) ~ :not([hidden]){
|
|
1199
|
+
--tw-divide-opacity:1;
|
|
1200
|
+
border-color:rgb(var(--_histoire-color-gray-100) / var(--tw-divide-opacity))
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1137
1203
|
.htw-divide-gray-200 > :not([hidden]) ~ :not([hidden]){
|
|
1138
1204
|
--tw-divide-opacity:1;
|
|
1139
1205
|
border-color:rgb(var(--_histoire-color-gray-200) / var(--tw-divide-opacity))
|
|
@@ -1151,12 +1217,24 @@ button {
|
|
|
1151
1217
|
overflow-y:auto
|
|
1152
1218
|
}
|
|
1153
1219
|
|
|
1220
|
+
.htw-overflow-y-scroll{
|
|
1221
|
+
overflow-y:scroll
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1154
1224
|
.htw-truncate{
|
|
1155
1225
|
overflow:hidden;
|
|
1156
1226
|
text-overflow:ellipsis;
|
|
1157
1227
|
white-space:nowrap
|
|
1158
1228
|
}
|
|
1159
1229
|
|
|
1230
|
+
.htw-text-ellipsis{
|
|
1231
|
+
text-overflow:ellipsis
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
.htw-whitespace-nowrap{
|
|
1235
|
+
white-space:nowrap
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1160
1238
|
.htw-rounded-sm{
|
|
1161
1239
|
border-radius:0.25rem
|
|
1162
1240
|
}
|
|
@@ -1195,6 +1273,10 @@ button {
|
|
|
1195
1273
|
border-bottom-width:2px
|
|
1196
1274
|
}
|
|
1197
1275
|
|
|
1276
|
+
.htw-border-b{
|
|
1277
|
+
border-bottom-width:1px
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1198
1280
|
.htw-border-r{
|
|
1199
1281
|
border-right-width:1px
|
|
1200
1282
|
}
|
|
@@ -1207,8 +1289,8 @@ button {
|
|
|
1207
1289
|
border-left-width:2px
|
|
1208
1290
|
}
|
|
1209
1291
|
|
|
1210
|
-
.htw-border-
|
|
1211
|
-
border-
|
|
1292
|
+
.htw-border-solid{
|
|
1293
|
+
border-style:solid
|
|
1212
1294
|
}
|
|
1213
1295
|
|
|
1214
1296
|
.htw-border-gray-600{
|
|
@@ -1216,6 +1298,20 @@ button {
|
|
|
1216
1298
|
border-color:rgb(var(--_histoire-color-gray-600) / var(--tw-border-opacity))
|
|
1217
1299
|
}
|
|
1218
1300
|
|
|
1301
|
+
.htw-border-gray-100{
|
|
1302
|
+
--tw-border-opacity:1;
|
|
1303
|
+
border-color:rgb(var(--_histoire-color-gray-100) / var(--tw-border-opacity))
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.htw-border-primary-500{
|
|
1307
|
+
--tw-border-opacity:1;
|
|
1308
|
+
border-color:rgb(var(--_histoire-color-primary-500) / var(--tw-border-opacity))
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
.htw-border-black\/25{
|
|
1312
|
+
border-color:rgb(0 0 0 / 0.25)
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1219
1315
|
.htw-border-gray-200{
|
|
1220
1316
|
--tw-border-opacity:1;
|
|
1221
1317
|
border-color:rgb(var(--_histoire-color-gray-200) / var(--tw-border-opacity))
|
|
@@ -1225,11 +1321,6 @@ button {
|
|
|
1225
1321
|
border-color:transparent
|
|
1226
1322
|
}
|
|
1227
1323
|
|
|
1228
|
-
.htw-border-gray-100{
|
|
1229
|
-
--tw-border-opacity:1;
|
|
1230
|
-
border-color:rgb(var(--_histoire-color-gray-100) / var(--tw-border-opacity))
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
1324
|
.htw-border-gray-500\/10{
|
|
1234
1325
|
border-color:rgb(var(--_histoire-color-gray-500) / 0.1)
|
|
1235
1326
|
}
|
|
@@ -1243,14 +1334,9 @@ button {
|
|
|
1243
1334
|
border-color:rgb(0 0 0 / 0.2)
|
|
1244
1335
|
}
|
|
1245
1336
|
|
|
1246
|
-
.htw-
|
|
1247
|
-
--tw-
|
|
1248
|
-
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
.htw-border-gray-300{
|
|
1252
|
-
--tw-border-opacity:1;
|
|
1253
|
-
border-color:rgb(var(--_histoire-color-gray-300) / var(--tw-border-opacity))
|
|
1337
|
+
.htw-bg-white{
|
|
1338
|
+
--tw-bg-opacity:1;
|
|
1339
|
+
background-color:rgb(255 255 255 / var(--tw-bg-opacity))
|
|
1254
1340
|
}
|
|
1255
1341
|
|
|
1256
1342
|
.htw-bg-gray-500{
|
|
@@ -1271,11 +1357,6 @@ button {
|
|
|
1271
1357
|
background-color:rgb(255 255 255 / 0.8)
|
|
1272
1358
|
}
|
|
1273
1359
|
|
|
1274
|
-
.htw-bg-white{
|
|
1275
|
-
--tw-bg-opacity:1;
|
|
1276
|
-
background-color:rgb(255 255 255 / var(--tw-bg-opacity))
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
1360
|
.htw-bg-transparent{
|
|
1280
1361
|
background-color:transparent
|
|
1281
1362
|
}
|
|
@@ -1308,16 +1389,16 @@ button {
|
|
|
1308
1389
|
stroke-width:2
|
|
1309
1390
|
}
|
|
1310
1391
|
|
|
1311
|
-
.htw-p-
|
|
1312
|
-
padding:0.
|
|
1392
|
+
.htw-p-2{
|
|
1393
|
+
padding:0.5rem
|
|
1313
1394
|
}
|
|
1314
1395
|
|
|
1315
1396
|
.htw-p-4{
|
|
1316
1397
|
padding:1rem
|
|
1317
1398
|
}
|
|
1318
1399
|
|
|
1319
|
-
.htw-p-
|
|
1320
|
-
padding:0.
|
|
1400
|
+
.htw-p-1{
|
|
1401
|
+
padding:0.25rem
|
|
1321
1402
|
}
|
|
1322
1403
|
|
|
1323
1404
|
.htw-p-2\.5{
|
|
@@ -1334,9 +1415,14 @@ button {
|
|
|
1334
1415
|
padding-right:1rem
|
|
1335
1416
|
}
|
|
1336
1417
|
|
|
1337
|
-
.htw-py-
|
|
1338
|
-
padding-top:
|
|
1339
|
-
padding-bottom:
|
|
1418
|
+
.htw-py-3{
|
|
1419
|
+
padding-top:0.75rem;
|
|
1420
|
+
padding-bottom:0.75rem
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
.htw-px-6{
|
|
1424
|
+
padding-left:1.5rem;
|
|
1425
|
+
padding-right:1.5rem
|
|
1340
1426
|
}
|
|
1341
1427
|
|
|
1342
1428
|
.htw-py-12{
|
|
@@ -1344,9 +1430,9 @@ button {
|
|
|
1344
1430
|
padding-bottom:3rem
|
|
1345
1431
|
}
|
|
1346
1432
|
|
|
1347
|
-
.htw-
|
|
1348
|
-
padding-
|
|
1349
|
-
padding-
|
|
1433
|
+
.htw-py-4{
|
|
1434
|
+
padding-top:1rem;
|
|
1435
|
+
padding-bottom:1rem
|
|
1350
1436
|
}
|
|
1351
1437
|
|
|
1352
1438
|
.htw-px-0\.5{
|
|
@@ -1354,9 +1440,9 @@ button {
|
|
|
1354
1440
|
padding-right:0.125rem
|
|
1355
1441
|
}
|
|
1356
1442
|
|
|
1357
|
-
.htw-py-
|
|
1358
|
-
padding-top:0.
|
|
1359
|
-
padding-bottom:0.
|
|
1443
|
+
.htw-py-2{
|
|
1444
|
+
padding-top:0.5rem;
|
|
1445
|
+
padding-bottom:0.5rem
|
|
1360
1446
|
}
|
|
1361
1447
|
|
|
1362
1448
|
.htw-px-0{
|
|
@@ -1364,11 +1450,6 @@ button {
|
|
|
1364
1450
|
padding-right:0px
|
|
1365
1451
|
}
|
|
1366
1452
|
|
|
1367
|
-
.htw-py-1{
|
|
1368
|
-
padding-top:0.25rem;
|
|
1369
|
-
padding-bottom:0.25rem
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
1453
|
.htw-px-2{
|
|
1373
1454
|
padding-left:0.5rem;
|
|
1374
1455
|
padding-right:0.5rem
|
|
@@ -1384,9 +1465,9 @@ button {
|
|
|
1384
1465
|
padding-bottom:0px
|
|
1385
1466
|
}
|
|
1386
1467
|
|
|
1387
|
-
.htw-py-
|
|
1388
|
-
padding-top:0.
|
|
1389
|
-
padding-bottom:0.
|
|
1468
|
+
.htw-py-1{
|
|
1469
|
+
padding-top:0.25rem;
|
|
1470
|
+
padding-bottom:0.25rem
|
|
1390
1471
|
}
|
|
1391
1472
|
|
|
1392
1473
|
.htw-pr-2{
|
|
@@ -1413,6 +1494,10 @@ button {
|
|
|
1413
1494
|
padding-left:1.25rem
|
|
1414
1495
|
}
|
|
1415
1496
|
|
|
1497
|
+
.htw-pl-2{
|
|
1498
|
+
padding-left:0.5rem
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1416
1501
|
.htw-text-left{
|
|
1417
1502
|
text-align:left
|
|
1418
1503
|
}
|
|
@@ -1444,24 +1529,24 @@ button {
|
|
|
1444
1529
|
color:rgb(255 255 255 / 0.4)
|
|
1445
1530
|
}
|
|
1446
1531
|
|
|
1447
|
-
.htw-text-
|
|
1532
|
+
.htw-text-primary-500{
|
|
1448
1533
|
--tw-text-opacity:1;
|
|
1449
|
-
color:rgb(var(--_histoire-color-
|
|
1534
|
+
color:rgb(var(--_histoire-color-primary-500) / var(--tw-text-opacity))
|
|
1450
1535
|
}
|
|
1451
1536
|
|
|
1452
|
-
.htw-text-
|
|
1537
|
+
.htw-text-gray-500{
|
|
1453
1538
|
--tw-text-opacity:1;
|
|
1454
|
-
color:rgb(
|
|
1539
|
+
color:rgb(var(--_histoire-color-gray-500) / var(--tw-text-opacity))
|
|
1455
1540
|
}
|
|
1456
1541
|
|
|
1457
|
-
.htw-text-
|
|
1542
|
+
.htw-text-white{
|
|
1458
1543
|
--tw-text-opacity:1;
|
|
1459
|
-
color:rgb(
|
|
1544
|
+
color:rgb(255 255 255 / var(--tw-text-opacity))
|
|
1460
1545
|
}
|
|
1461
1546
|
|
|
1462
|
-
.htw-text-gray-
|
|
1547
|
+
.htw-text-gray-400{
|
|
1463
1548
|
--tw-text-opacity:1;
|
|
1464
|
-
color:rgb(var(--_histoire-color-gray-
|
|
1549
|
+
color:rgb(var(--_histoire-color-gray-400) / var(--tw-text-opacity))
|
|
1465
1550
|
}
|
|
1466
1551
|
|
|
1467
1552
|
.htw-text-black\/\[2\%\]{
|
|
@@ -1525,20 +1610,6 @@ button {
|
|
|
1525
1610
|
outline-offset:2px
|
|
1526
1611
|
}
|
|
1527
1612
|
|
|
1528
|
-
.htw-transition-colors{
|
|
1529
|
-
transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
|
|
1530
|
-
transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
1531
|
-
transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
|
|
1532
|
-
transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
|
|
1533
|
-
transition-duration:150ms
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
|
-
.htw-transition-transform{
|
|
1537
|
-
transition-property:transform;
|
|
1538
|
-
transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
|
|
1539
|
-
transition-duration:150ms
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
1613
|
.htw-transition-border{
|
|
1543
1614
|
transition-property:border;
|
|
1544
1615
|
transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -1555,6 +1626,20 @@ button {
|
|
|
1555
1626
|
transition-property:none
|
|
1556
1627
|
}
|
|
1557
1628
|
|
|
1629
|
+
.htw-transition-colors{
|
|
1630
|
+
transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
|
|
1631
|
+
transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
1632
|
+
transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
|
|
1633
|
+
transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
|
|
1634
|
+
transition-duration:150ms
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
.htw-transition-transform{
|
|
1638
|
+
transition-property:transform;
|
|
1639
|
+
transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
|
|
1640
|
+
transition-duration:150ms
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1558
1643
|
.htw-delay-150{
|
|
1559
1644
|
transition-delay:150ms
|
|
1560
1645
|
}
|
|
@@ -1585,7 +1670,16 @@ body,
|
|
|
1585
1670
|
#app {
|
|
1586
1671
|
height: 100%;
|
|
1587
1672
|
font-family: 'Lato', sans-serif;
|
|
1588
|
-
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
body {
|
|
1676
|
+
font-size: 18px;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
@media (min-width: 640px) {
|
|
1680
|
+
body {
|
|
1681
|
+
font-size: 14px;
|
|
1682
|
+
}
|
|
1589
1683
|
}
|
|
1590
1684
|
|
|
1591
1685
|
.__histoire-sandbox {
|
|
@@ -1600,14 +1694,14 @@ body,
|
|
|
1600
1694
|
visibility: hidden;
|
|
1601
1695
|
}
|
|
1602
1696
|
|
|
1603
|
-
.hover\:htw-bg-primary-
|
|
1697
|
+
.hover\:htw-bg-primary-100:hover{
|
|
1604
1698
|
--tw-bg-opacity:1;
|
|
1605
|
-
background-color:rgb(var(--_histoire-color-primary-
|
|
1699
|
+
background-color:rgb(var(--_histoire-color-primary-100) / var(--tw-bg-opacity))
|
|
1606
1700
|
}
|
|
1607
1701
|
|
|
1608
|
-
.hover\:htw-bg-primary-
|
|
1702
|
+
.hover\:htw-bg-primary-600:hover{
|
|
1609
1703
|
--tw-bg-opacity:1;
|
|
1610
|
-
background-color:rgb(var(--_histoire-color-primary-
|
|
1704
|
+
background-color:rgb(var(--_histoire-color-primary-600) / var(--tw-bg-opacity))
|
|
1611
1705
|
}
|
|
1612
1706
|
|
|
1613
1707
|
.hover\:htw-bg-primary-500\/50:hover{
|
|
@@ -1675,14 +1769,14 @@ body,
|
|
|
1675
1769
|
--tw-prose-td-borders:var(--tw-prose-invert-td-borders)
|
|
1676
1770
|
}
|
|
1677
1771
|
|
|
1678
|
-
.htw-dark .dark\:htw-divide-gray-
|
|
1772
|
+
.htw-dark .dark\:htw-divide-gray-800 > :not([hidden]) ~ :not([hidden]){
|
|
1679
1773
|
--tw-divide-opacity:1;
|
|
1680
|
-
border-color:rgb(var(--_histoire-color-gray-
|
|
1774
|
+
border-color:rgb(var(--_histoire-color-gray-800) / var(--tw-divide-opacity))
|
|
1681
1775
|
}
|
|
1682
1776
|
|
|
1683
|
-
.htw-dark .dark\:htw-
|
|
1684
|
-
--tw-
|
|
1685
|
-
border-color:rgb(var(--_histoire-color-gray-850) / var(--tw-
|
|
1777
|
+
.htw-dark .dark\:htw-divide-gray-850 > :not([hidden]) ~ :not([hidden]){
|
|
1778
|
+
--tw-divide-opacity:1;
|
|
1779
|
+
border-color:rgb(var(--_histoire-color-gray-850) / var(--tw-divide-opacity))
|
|
1686
1780
|
}
|
|
1687
1781
|
|
|
1688
1782
|
.htw-dark .dark\:htw-border-gray-800{
|
|
@@ -1690,17 +1784,17 @@ body,
|
|
|
1690
1784
|
border-color:rgb(var(--_histoire-color-gray-800) / var(--tw-border-opacity))
|
|
1691
1785
|
}
|
|
1692
1786
|
|
|
1693
|
-
.htw-dark .dark\:htw-border-
|
|
1694
|
-
border-color:rgb(
|
|
1787
|
+
.htw-dark .dark\:htw-border-white\/25{
|
|
1788
|
+
border-color:rgb(255 255 255 / 0.25)
|
|
1695
1789
|
}
|
|
1696
1790
|
|
|
1697
|
-
.htw-dark .dark\:htw-border-
|
|
1791
|
+
.htw-dark .dark\:htw-border-gray-850{
|
|
1698
1792
|
--tw-border-opacity:1;
|
|
1699
|
-
border-color:rgb(var(--_histoire-color-
|
|
1793
|
+
border-color:rgb(var(--_histoire-color-gray-850) / var(--tw-border-opacity))
|
|
1700
1794
|
}
|
|
1701
1795
|
|
|
1702
|
-
.htw-dark .dark\:htw-border-
|
|
1703
|
-
border-color:rgb(
|
|
1796
|
+
.htw-dark .dark\:htw-border-gray-700\/30{
|
|
1797
|
+
border-color:rgb(var(--_histoire-color-gray-700) / 0.3)
|
|
1704
1798
|
}
|
|
1705
1799
|
|
|
1706
1800
|
.htw-dark .dark\:htw-border-gray-750{
|
|
@@ -1708,9 +1802,13 @@ body,
|
|
|
1708
1802
|
border-color:rgb(var(--_histoire-color-gray-750) / var(--tw-border-opacity))
|
|
1709
1803
|
}
|
|
1710
1804
|
|
|
1711
|
-
.htw-dark .dark\:htw-border-
|
|
1805
|
+
.htw-dark .dark\:htw-border-primary-900{
|
|
1712
1806
|
--tw-border-opacity:1;
|
|
1713
|
-
border-color:rgb(var(--_histoire-color-
|
|
1807
|
+
border-color:rgb(var(--_histoire-color-primary-900) / var(--tw-border-opacity))
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
.htw-dark .dark\:htw-border-white\/20{
|
|
1811
|
+
border-color:rgb(255 255 255 / 0.2)
|
|
1714
1812
|
}
|
|
1715
1813
|
|
|
1716
1814
|
.htw-dark .dark\:htw-bg-gray-700{
|
|
@@ -1771,6 +1869,11 @@ body,
|
|
|
1771
1869
|
color:rgb(var(--_histoire-color-primary-200) / var(--tw-text-opacity))
|
|
1772
1870
|
}
|
|
1773
1871
|
|
|
1872
|
+
.htw-dark .dark\:hover\:htw-bg-primary-700:hover{
|
|
1873
|
+
--tw-bg-opacity:1;
|
|
1874
|
+
background-color:rgb(var(--_histoire-color-primary-700) / var(--tw-bg-opacity))
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1774
1877
|
.htw-dark .dark\:hover\:htw-bg-primary-900:hover{
|
|
1775
1878
|
--tw-bg-opacity:1;
|
|
1776
1879
|
background-color:rgb(var(--_histoire-color-primary-900) / var(--tw-bg-opacity))
|
|
@@ -1786,11 +1889,6 @@ body,
|
|
|
1786
1889
|
background-color:rgb(var(--_histoire-color-gray-800) / var(--tw-bg-opacity))
|
|
1787
1890
|
}
|
|
1788
1891
|
|
|
1789
|
-
.htw-dark .dark\:hover\:htw-bg-primary-700:hover{
|
|
1790
|
-
--tw-bg-opacity:1;
|
|
1791
|
-
background-color:rgb(var(--_histoire-color-primary-700) / var(--tw-bg-opacity))
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
1892
|
.htw-dark .dark\:hover\:htw-text-primary-400:hover{
|
|
1795
1893
|
--tw-text-opacity:1;
|
|
1796
1894
|
color:rgb(var(--_histoire-color-primary-400) / var(--tw-text-opacity))
|
|
@@ -1801,6 +1899,25 @@ body,
|
|
|
1801
1899
|
border-color:rgb(var(--_histoire-color-primary-500) / var(--tw-border-opacity))
|
|
1802
1900
|
}
|
|
1803
1901
|
|
|
1902
|
+
@media (min-width: 640px){
|
|
1903
|
+
.sm\:htw-h-4{
|
|
1904
|
+
height:1rem
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
.sm\:htw-w-4{
|
|
1908
|
+
width:1rem
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
.sm\:htw-p-1{
|
|
1912
|
+
padding:0.25rem
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
.sm\:htw-py-4{
|
|
1916
|
+
padding-top:1rem;
|
|
1917
|
+
padding-bottom:1rem
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1804
1921
|
@media (min-width: 768px){
|
|
1805
1922
|
.md\:htw-mx-auto{
|
|
1806
1923
|
margin-left:auto;
|
|
@@ -1810,4 +1927,14 @@ body,
|
|
|
1810
1927
|
.md\:htw-mt-16{
|
|
1811
1928
|
margin-top:4rem
|
|
1812
1929
|
}
|
|
1930
|
+
|
|
1931
|
+
.md\:htw-py-1\.5{
|
|
1932
|
+
padding-top:0.375rem;
|
|
1933
|
+
padding-bottom:0.375rem
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
.md\:htw-py-1{
|
|
1937
|
+
padding-top:0.25rem;
|
|
1938
|
+
padding-bottom:0.25rem
|
|
1939
|
+
}
|
|
1813
1940
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "histoire",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A fast story book powered by Vite",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -34,11 +34,13 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@iconify/vue": "^3.1.3",
|
|
37
|
-
"@histoire/controls": "^0.
|
|
37
|
+
"@histoire/controls": "^0.2.0",
|
|
38
38
|
"@vitejs/plugin-vue": "^2.2.0",
|
|
39
39
|
"@vueuse/core": "^8.1.1",
|
|
40
|
+
"birpc": "^0.1.0",
|
|
40
41
|
"case": "^1.6.3",
|
|
41
42
|
"chokidar": "^3.5.3",
|
|
43
|
+
"connect": "^3.7.0",
|
|
42
44
|
"defu": "^5.0.1",
|
|
43
45
|
"diacritics": "^1.3.0",
|
|
44
46
|
"floating-vue": "^2.0.0-beta.6",
|
|
@@ -56,7 +58,9 @@
|
|
|
56
58
|
"sade": "^1.8.1",
|
|
57
59
|
"scroll-into-view-if-needed": "^2.2.29",
|
|
58
60
|
"shiki": "^0.10.1",
|
|
59
|
-
"
|
|
61
|
+
"sirv": "^2.0.2",
|
|
62
|
+
"tinypool": "^0.1.2",
|
|
63
|
+
"vite-node": "=0.7.6",
|
|
60
64
|
"vue-router": "^4.0.12"
|
|
61
65
|
},
|
|
62
66
|
"peerDependencies": {
|
|
@@ -80,7 +84,7 @@
|
|
|
80
84
|
},
|
|
81
85
|
"scripts": {
|
|
82
86
|
"build": "rimraf dist && tsc -d && pnpm run build:css && node ./scripts/copy.mjs",
|
|
83
|
-
"build:css": "tailwindcss -i src/client/app/style/main.
|
|
87
|
+
"build:css": "tailwindcss -i src/client/app/style/main.pcss -o ./dist/style.css -c tailwind.config.cjs --postcss postcss.config.cjs",
|
|
84
88
|
"watch": "concurrently \"tsc -d -w --sourceMap\" \"pnpm run build:css -- --watch\" \"node ./scripts/watchAndCopy.mjs\"",
|
|
85
89
|
"test:open": "peeky open",
|
|
86
90
|
"test": "peeky run"
|
package/src/client/app/App.vue
CHANGED
|
@@ -11,6 +11,8 @@ import { mapFile } from './util/mapping'
|
|
|
11
11
|
import { useTitle } from '@vueuse/core'
|
|
12
12
|
import { histoireConfig } from './util/config.js'
|
|
13
13
|
import { onKeyboardShortcut } from './util/keyboard.js'
|
|
14
|
+
import { isMobile } from './util/responsive'
|
|
15
|
+
import Breadcrumb from './components/app/Breadcrumb.vue'
|
|
14
16
|
|
|
15
17
|
const SearchModal = defineAsyncComponent(() => import('./components/search/SearchModal.vue'))
|
|
16
18
|
|
|
@@ -78,8 +80,21 @@ onKeyboardShortcut(['ctrl+k', 'meta+k'], (event) => {
|
|
|
78
80
|
/>
|
|
79
81
|
</div>
|
|
80
82
|
|
|
81
|
-
<div class="htw-h-screen dark:htw-bg-gray-700 dark:htw-text-gray-100">
|
|
83
|
+
<div class="htw-h-screen htw-bg-white dark:htw-bg-gray-700 dark:htw-text-gray-100">
|
|
84
|
+
<div
|
|
85
|
+
v-if="isMobile"
|
|
86
|
+
class="htw-h-full htw-flex htw-flex-col htw-divide-y htw-divide-gray-100 dark:htw-divide-gray-800"
|
|
87
|
+
>
|
|
88
|
+
<AppHeader @search="isSearchOpen = true" />
|
|
89
|
+
<Breadcrumb
|
|
90
|
+
:tree="tree"
|
|
91
|
+
:stories="stories"
|
|
92
|
+
/>
|
|
93
|
+
<RouterView class="htw-grow" />
|
|
94
|
+
</div>
|
|
95
|
+
|
|
82
96
|
<BaseSplitPane
|
|
97
|
+
v-else
|
|
83
98
|
save-id="main-horiz"
|
|
84
99
|
:min="5"
|
|
85
100
|
:max="50"
|