@skillcdn/console 0.1.24 → 0.3.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/README.md +6 -5
- package/dist/api.d.ts +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +64 -65
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +4 -28
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +7 -261
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +6 -6
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/pack.d.ts +46 -0
- package/dist/cli/pack.d.ts.map +1 -0
- package/dist/cli/pack.js +250 -0
- package/dist/cli/pack.js.map +1 -0
- package/dist/compat.d.ts +1 -1
- package/dist/compat.js +1 -1
- package/dist/components/decision-list.d.ts +13 -1
- package/dist/components/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +74 -29
- package/dist/components/decision-list.js.map +1 -1
- package/dist/components/paged.d.ts +24 -0
- package/dist/components/paged.d.ts.map +1 -1
- package/dist/components/paged.js +40 -4
- package/dist/components/paged.js.map +1 -1
- package/dist/components/skills.d.ts.map +1 -1
- package/dist/components/skills.js +8 -4
- package/dist/components/skills.js.map +1 -1
- package/dist/components/ui.d.ts +2 -0
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +7 -2
- package/dist/components/ui.js.map +1 -1
- package/dist/console.css +112 -5
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +2 -2
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +27 -2
- package/dist/data.js.map +1 -1
- package/dist/i18n/en.d.ts +13 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +15 -0
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +15 -0
- package/dist/i18n/ko.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/router.d.ts +6 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +13 -7
- package/dist/router.js.map +1 -1
- package/dist/schemas.d.ts +321 -159
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +61 -154
- package/dist/schemas.js.map +1 -1
- package/docs/specs/cli.md +3 -3
- package/docs/specs/rest.md +5 -13
- package/package.json +2 -1
- package/skills/deploying-a-console/SKILL.md +2 -2
- package/skills/working-the-board/SKILL.md +3 -3
- package/src/api.ts +2 -7
- package/src/cli/cli.ts +92 -76
- package/src/cli/format.ts +10 -328
- package/src/cli/help.ts +7 -6
- package/src/cli/pack.ts +356 -0
- package/src/compat.ts +1 -1
- package/src/components/decision-list.tsx +227 -94
- package/src/components/paged.tsx +72 -3
- package/src/components/skills.tsx +51 -33
- package/src/components/ui.tsx +16 -3
- package/src/console.tsx +3 -0
- package/src/data.ts +32 -2
- package/src/i18n/en.ts +18 -0
- package/src/i18n/ko.ts +17 -0
- package/src/index.ts +9 -1
- package/src/router.ts +20 -9
- package/src/schemas.ts +76 -180
- package/src/styles/console.css +112 -5
package/src/styles/console.css
CHANGED
|
@@ -875,7 +875,8 @@ table {
|
|
|
875
875
|
color var(--sc-transition);
|
|
876
876
|
}
|
|
877
877
|
|
|
878
|
-
.sc-button:disabled
|
|
878
|
+
.sc-button:disabled,
|
|
879
|
+
.sc-button[aria-disabled="true"] {
|
|
879
880
|
opacity: 0.55;
|
|
880
881
|
cursor: not-allowed;
|
|
881
882
|
}
|
|
@@ -1573,6 +1574,10 @@ table {
|
|
|
1573
1574
|
}
|
|
1574
1575
|
|
|
1575
1576
|
.sc-answer-option {
|
|
1577
|
+
display: flex;
|
|
1578
|
+
flex-wrap: wrap;
|
|
1579
|
+
align-items: center;
|
|
1580
|
+
gap: var(--sc-space-2);
|
|
1576
1581
|
font-weight: var(--sc-weight-bold);
|
|
1577
1582
|
}
|
|
1578
1583
|
|
|
@@ -1619,6 +1624,17 @@ table {
|
|
|
1619
1624
|
accent-color: var(--sc-color-accent);
|
|
1620
1625
|
}
|
|
1621
1626
|
|
|
1627
|
+
/* The last choice is the person's own words: the radio, its label, and the line they write on. */
|
|
1628
|
+
.sc-option-own {
|
|
1629
|
+
flex-wrap: wrap;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
.sc-option-own .sc-input {
|
|
1633
|
+
flex: 1 1 12rem;
|
|
1634
|
+
min-width: 0;
|
|
1635
|
+
min-height: 2rem;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1622
1638
|
/* The feed: a line per event, newest first. */
|
|
1623
1639
|
|
|
1624
1640
|
.sc-feed {
|
|
@@ -3020,7 +3036,7 @@ table {
|
|
|
3020
3036
|
}
|
|
3021
3037
|
}
|
|
3022
3038
|
|
|
3023
|
-
/* The
|
|
3039
|
+
/* The decisions waiting on a person's plate: a row each. */
|
|
3024
3040
|
.sc-decision-log {
|
|
3025
3041
|
display: grid;
|
|
3026
3042
|
gap: var(--sc-space-2);
|
|
@@ -3060,18 +3076,109 @@ table {
|
|
|
3060
3076
|
color: var(--sc-color-accent);
|
|
3061
3077
|
}
|
|
3062
3078
|
|
|
3063
|
-
.sc-decision-row-
|
|
3064
|
-
|
|
3079
|
+
.sc-decision-row-meta {
|
|
3080
|
+
display: flex;
|
|
3081
|
+
flex-wrap: wrap;
|
|
3082
|
+
align-items: center;
|
|
3083
|
+
gap: var(--sc-space-2);
|
|
3084
|
+
color: var(--sc-color-text-muted);
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
/* The record of the decisions: a row each, what was asked on the left and what was answered on
|
|
3088
|
+
the right, each with who and when under it; one column where the window is narrow. */
|
|
3089
|
+
.sc-decision-record {
|
|
3090
|
+
display: grid;
|
|
3091
|
+
gap: var(--sc-space-2);
|
|
3092
|
+
margin: 0;
|
|
3093
|
+
padding: 0;
|
|
3094
|
+
list-style: none;
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
.sc-decision-record-row {
|
|
3098
|
+
display: grid;
|
|
3099
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3100
|
+
gap: var(--sc-space-3) var(--sc-space-6);
|
|
3101
|
+
padding: var(--sc-space-3) var(--sc-space-4);
|
|
3102
|
+
border: var(--sc-border);
|
|
3103
|
+
border-radius: var(--sc-radius-md);
|
|
3104
|
+
background: var(--sc-color-sheet);
|
|
3105
|
+
font-size: var(--sc-text-sm);
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
@media (min-width: 40rem) {
|
|
3109
|
+
.sc-decision-record-row {
|
|
3110
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
.sc-decision-record-asked,
|
|
3115
|
+
.sc-decision-record-answer {
|
|
3116
|
+
display: grid;
|
|
3117
|
+
align-content: start;
|
|
3118
|
+
gap: var(--sc-space-1);
|
|
3119
|
+
min-width: 0;
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
.sc-decision-record-question {
|
|
3065
3123
|
font-weight: var(--sc-weight-medium);
|
|
3066
3124
|
overflow-wrap: anywhere;
|
|
3067
3125
|
}
|
|
3068
3126
|
|
|
3069
|
-
.sc-decision-
|
|
3127
|
+
.sc-decision-record-question a {
|
|
3128
|
+
color: var(--sc-color-text);
|
|
3129
|
+
text-decoration: none;
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
.sc-decision-record-question a:hover {
|
|
3133
|
+
color: var(--sc-color-accent);
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
.sc-decision-record-question .sc-card-number {
|
|
3137
|
+
margin-left: var(--sc-space-2);
|
|
3138
|
+
}
|
|
3139
|
+
|
|
3140
|
+
.sc-decision-record-chosen {
|
|
3070
3141
|
display: flex;
|
|
3071
3142
|
flex-wrap: wrap;
|
|
3072
3143
|
align-items: center;
|
|
3073
3144
|
gap: var(--sc-space-2);
|
|
3145
|
+
color: var(--sc-color-success);
|
|
3146
|
+
font-weight: var(--sc-weight-medium);
|
|
3147
|
+
overflow-wrap: anywhere;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
/* The word given with the answer: a few lines of it here, the whole on the decision's page. */
|
|
3151
|
+
.sc-decision-record-note {
|
|
3152
|
+
display: -webkit-box;
|
|
3153
|
+
-webkit-box-orient: vertical;
|
|
3154
|
+
-webkit-line-clamp: 3;
|
|
3155
|
+
overflow: hidden;
|
|
3074
3156
|
color: var(--sc-color-text-muted);
|
|
3157
|
+
overflow-wrap: anywhere;
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
.sc-decision-record-meta {
|
|
3161
|
+
display: flex;
|
|
3162
|
+
flex-wrap: wrap;
|
|
3163
|
+
align-items: center;
|
|
3164
|
+
gap: var(--sc-space-1) var(--sc-space-2);
|
|
3165
|
+
color: var(--sc-color-text-muted);
|
|
3166
|
+
font-size: var(--sc-text-xs);
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
/* The way between the pages of the record: the step before, what is shown of how many, the step after. */
|
|
3170
|
+
.sc-pager {
|
|
3171
|
+
display: flex;
|
|
3172
|
+
flex-wrap: wrap;
|
|
3173
|
+
align-items: center;
|
|
3174
|
+
justify-content: space-between;
|
|
3175
|
+
gap: var(--sc-space-3);
|
|
3176
|
+
margin-top: var(--sc-space-3);
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
.sc-pager-range {
|
|
3180
|
+
color: var(--sc-color-text-muted);
|
|
3181
|
+
font-size: var(--sc-text-sm);
|
|
3075
3182
|
}
|
|
3076
3183
|
|
|
3077
3184
|
/* Who has what: a small table, the late numbers in the danger colour. */
|