@dytsou/intern-corner-scheduler 1.2.8 → 1.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 +46 -40
- package/index.html +6 -1
- package/package.json +26 -17
- package/src/App.css +846 -233
- package/src/App.jsx +113 -17
- package/src/components/ErrorMessage.jsx +3 -2
- package/src/components/GenerationLoadingScreen.jsx +48 -0
- package/src/components/Header.jsx +23 -5
- package/src/components/LoadingSpinner.jsx +11 -0
- package/src/components/PairInput.jsx +19 -5
- package/src/components/ScheduleForm.jsx +167 -107
- package/src/index.css +153 -26
- package/src/services/cpSatScheduler.js +551 -0
- package/src/services/schedulerClient.js +96 -0
- package/vite.config.js +18 -0
- package/src/config.js +0 -21
- package/src/services/api.js +0 -31
package/src/index.css
CHANGED
|
@@ -1,38 +1,165 @@
|
|
|
1
|
-
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: light;
|
|
3
|
+
font-synthesis: none;
|
|
4
|
+
text-rendering: optimizeLegibility;
|
|
5
|
+
-webkit-font-smoothing: antialiased;
|
|
6
|
+
|
|
7
|
+
--paper: #f4f6ff;
|
|
8
|
+
--sheet: #ffffff;
|
|
9
|
+
--surface: #f8f9ff;
|
|
10
|
+
--input: #fbfcff;
|
|
11
|
+
--ink: #27334d;
|
|
12
|
+
--muted: #596780;
|
|
13
|
+
--line: #e0e5f1;
|
|
14
|
+
--line-strong: #c5cee0;
|
|
15
|
+
--accent: #5369dc;
|
|
16
|
+
--accent-hover: #4358c5;
|
|
17
|
+
--accent-ink: #3348ad;
|
|
18
|
+
--accent-soft: #edf0ff;
|
|
19
|
+
--accent-line: #d8defb;
|
|
20
|
+
--accent-ring: rgb(83 105 220 / 20%);
|
|
21
|
+
--accent-shadow: rgb(83 105 220 / 23%);
|
|
22
|
+
--coral: #e86e7b;
|
|
23
|
+
--coral-soft: #fff0f2;
|
|
24
|
+
--coral-line: #f5d3d8;
|
|
25
|
+
--danger: #ad4050;
|
|
26
|
+
--danger-ink: #963746;
|
|
27
|
+
--lavender: #8372d5;
|
|
28
|
+
--lavender-ink: #5c4eaa;
|
|
29
|
+
--lavender-soft: #f1efff;
|
|
30
|
+
--lavender-line: #dfdaf8;
|
|
31
|
+
--mint: #39977f;
|
|
32
|
+
--mint-ink: #277760;
|
|
33
|
+
--mint-soft: #e7f6f1;
|
|
34
|
+
--mint-line: #c8e8dd;
|
|
35
|
+
--gold-ink: #795417;
|
|
36
|
+
--gold-soft: #fff5df;
|
|
37
|
+
--gold-line: #f1dfb8;
|
|
38
|
+
--shadow: 0 14px 38px rgb(49 63 105 / 8%);
|
|
39
|
+
--shadow-small: 0 6px 18px rgb(49 63 105 / 7%);
|
|
40
|
+
}
|
|
41
|
+
|
|
2
42
|
* {
|
|
3
|
-
margin: 0;
|
|
4
|
-
padding: 0;
|
|
5
43
|
box-sizing: border-box;
|
|
6
44
|
}
|
|
7
45
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
--secondary-color: #64748b;
|
|
12
|
-
--success-color: #10b981;
|
|
13
|
-
--danger-color: #ef4444;
|
|
14
|
-
--warning-color: #f59e0b;
|
|
15
|
-
--bg-color: #f8fafc;
|
|
16
|
-
--card-bg: #ffffff;
|
|
17
|
-
--text-primary: #1e293b;
|
|
18
|
-
--text-secondary: #64748b;
|
|
19
|
-
--border-color: #e2e8f0;
|
|
20
|
-
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
21
|
-
--shadow-lg:
|
|
22
|
-
0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
23
|
-
--border-radius: 8px;
|
|
24
|
-
--transition: all 0.2s ease;
|
|
46
|
+
html {
|
|
47
|
+
min-width: 320px;
|
|
48
|
+
scroll-behavior: smooth;
|
|
25
49
|
}
|
|
26
50
|
|
|
27
51
|
body {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
52
|
+
min-width: 320px;
|
|
53
|
+
min-height: 100vh;
|
|
54
|
+
margin: 0;
|
|
55
|
+
color: var(--ink);
|
|
56
|
+
background:
|
|
57
|
+
radial-gradient(circle at 92% 7%, rgb(131 114 213 / 8%), transparent 23rem),
|
|
58
|
+
var(--paper);
|
|
59
|
+
font-family: Inter, 'Avenir Next', 'Segoe UI', 'Trebuchet MS', sans-serif;
|
|
60
|
+
font-size: 1rem;
|
|
61
|
+
line-height: 1.55;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
button,
|
|
65
|
+
input {
|
|
66
|
+
font: inherit;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
button {
|
|
70
|
+
color: inherit;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
button:focus-visible,
|
|
74
|
+
a:focus-visible,
|
|
75
|
+
input:focus-visible {
|
|
76
|
+
outline: 3px solid var(--lavender);
|
|
77
|
+
outline-offset: 3px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
::selection {
|
|
81
|
+
color: white;
|
|
82
|
+
background: var(--accent);
|
|
34
83
|
}
|
|
35
84
|
|
|
36
85
|
#root {
|
|
37
86
|
min-height: 100vh;
|
|
38
87
|
}
|
|
88
|
+
|
|
89
|
+
@media (prefers-color-scheme: dark) {
|
|
90
|
+
:root {
|
|
91
|
+
color-scheme: dark;
|
|
92
|
+
--paper: #171c2b;
|
|
93
|
+
--sheet: #222a3c;
|
|
94
|
+
--surface: #273047;
|
|
95
|
+
--input: #20283a;
|
|
96
|
+
--ink: #f2f4ff;
|
|
97
|
+
--muted: #c1c9dc;
|
|
98
|
+
--line: #3b4660;
|
|
99
|
+
--line-strong: #58647d;
|
|
100
|
+
--accent: #91a2ff;
|
|
101
|
+
--accent-hover: #a9b6ff;
|
|
102
|
+
--accent-ink: #d4daff;
|
|
103
|
+
--accent-soft: #2b3453;
|
|
104
|
+
--accent-line: #414d77;
|
|
105
|
+
--accent-ring: rgb(145 162 255 / 25%);
|
|
106
|
+
--accent-shadow: rgb(83 105 220 / 20%);
|
|
107
|
+
--coral: #f18a96;
|
|
108
|
+
--coral-soft: #422d3a;
|
|
109
|
+
--coral-line: #67404b;
|
|
110
|
+
--danger: #f08b9a;
|
|
111
|
+
--danger-ink: #ffc4cd;
|
|
112
|
+
--lavender: #b2a5ff;
|
|
113
|
+
--lavender-ink: #d5ccff;
|
|
114
|
+
--lavender-soft: #332f50;
|
|
115
|
+
--lavender-line: #514979;
|
|
116
|
+
--mint: #70c9ad;
|
|
117
|
+
--mint-ink: #b0f0d9;
|
|
118
|
+
--mint-soft: #263e3d;
|
|
119
|
+
--mint-line: #3e645b;
|
|
120
|
+
--gold-ink: #f2d28f;
|
|
121
|
+
--gold-soft: #433a2b;
|
|
122
|
+
--gold-line: #665638;
|
|
123
|
+
--shadow: 0 14px 38px rgb(0 0 0 / 24%);
|
|
124
|
+
--shadow-small: 0 6px 18px rgb(0 0 0 / 18%);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
body {
|
|
128
|
+
background:
|
|
129
|
+
radial-gradient(
|
|
130
|
+
circle at 92% 7%,
|
|
131
|
+
rgb(178 165 255 / 8%),
|
|
132
|
+
transparent 23rem
|
|
133
|
+
),
|
|
134
|
+
var(--paper);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.hero-panel {
|
|
138
|
+
background:
|
|
139
|
+
radial-gradient(
|
|
140
|
+
circle at 85% 18%,
|
|
141
|
+
rgb(178 165 255 / 10%),
|
|
142
|
+
transparent 17rem
|
|
143
|
+
),
|
|
144
|
+
linear-gradient(140deg, var(--sheet), var(--accent-soft));
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@media (prefers-reduced-motion: reduce) {
|
|
149
|
+
html {
|
|
150
|
+
scroll-behavior: auto;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
*,
|
|
154
|
+
*::before,
|
|
155
|
+
*::after {
|
|
156
|
+
animation-duration: 0.01ms !important;
|
|
157
|
+
animation-iteration-count: 1 !important;
|
|
158
|
+
transition-duration: 0.01ms !important;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.button-spinner {
|
|
162
|
+
animation-duration: 6s !important;
|
|
163
|
+
animation-iteration-count: infinite !important;
|
|
164
|
+
}
|
|
165
|
+
}
|