@akanjs/config 0.0.40 → 0.0.41
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/index.d.ts +132 -3
- package/index.js +358 -67
- package/package.json +5 -2
- package/src/akanConfig.d.ts +7 -140
- package/src/akanConfig.ts +141 -0
- package/src/baseConfigEnv.d.ts +2 -3
- package/src/baseConfigEnv.ts +21 -0
- package/src/capacitor.base.config.ts +39 -0
- package/src/nextConfig.d.ts +7 -10
- package/src/nextConfig.ts +195 -0
- package/src/postcss.config.base.js +20 -19
- package/src/styles.css +165 -5
- package/src/akanConfig.js +0 -141
- package/src/baseConfigEnv.js +0 -42
- package/src/capacitor.base.config.d.ts +0 -5
- package/src/capacitor.base.config.js +0 -74
- package/src/nextConfig.js +0 -277
package/src/styles.css
CHANGED
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
@plugin "tailwindcss-animation-delay";
|
|
2
2
|
@plugin "tailwind-scrollbar";
|
|
3
3
|
@plugin "tailwindcss-radix";
|
|
4
|
+
|
|
4
5
|
html,
|
|
5
6
|
body {
|
|
6
7
|
margin: 0;
|
|
8
|
+
/* -webkit-touch-callout: none;
|
|
9
|
+
-webkit-user-select: none; */
|
|
7
10
|
}
|
|
11
|
+
|
|
12
|
+
/* invisible scrollbar */
|
|
8
13
|
::-webkit-scrollbar {
|
|
9
14
|
display: none;
|
|
10
15
|
}
|
|
16
|
+
|
|
11
17
|
a {
|
|
12
18
|
color: inherit;
|
|
13
19
|
text-decoration: none;
|
|
14
20
|
}
|
|
21
|
+
|
|
22
|
+
/* *,
|
|
23
|
+
::before,
|
|
24
|
+
::after {
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
border-width: 0;
|
|
27
|
+
border-style: solid;
|
|
28
|
+
border-color: currentColor;
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
} */
|
|
31
|
+
|
|
32
|
+
/* .body {
|
|
33
|
+
-webkit-touch-callout: none;
|
|
34
|
+
-webkit-user-select: none;
|
|
35
|
+
} */
|
|
15
36
|
.img {
|
|
16
37
|
-webkit-user-drag: none;
|
|
17
38
|
}
|
|
@@ -30,6 +51,8 @@ a {
|
|
|
30
51
|
.animate-delay-5000 {
|
|
31
52
|
animation-delay: 5000ms;
|
|
32
53
|
}
|
|
54
|
+
|
|
55
|
+
/* 게시판 상세보기시 유튜브 */
|
|
33
56
|
.btn-ghost:hover {
|
|
34
57
|
opacity: 0.5;
|
|
35
58
|
transition: all 0.3s;
|
|
@@ -42,7 +65,13 @@ a {
|
|
|
42
65
|
.page-content {
|
|
43
66
|
@apply overflow-y-auto h-screen;
|
|
44
67
|
}
|
|
45
|
-
|
|
68
|
+
|
|
69
|
+
@property --percentage {
|
|
70
|
+
initial-value: 100%;
|
|
71
|
+
inherits: false;
|
|
72
|
+
syntax: "<percentage>";
|
|
73
|
+
}
|
|
74
|
+
|
|
46
75
|
.chart {
|
|
47
76
|
background: conic-gradient(rgb(244, 62, 21) var(--percentage), white 0);
|
|
48
77
|
border-radius: 50%;
|
|
@@ -50,19 +79,33 @@ a {
|
|
|
50
79
|
height: 30px;
|
|
51
80
|
animation: timer 10s infinite linear;
|
|
52
81
|
}
|
|
82
|
+
|
|
53
83
|
@keyframes timer {
|
|
54
84
|
to {
|
|
55
85
|
--percentage: 0%;
|
|
56
86
|
}
|
|
57
87
|
}
|
|
88
|
+
|
|
58
89
|
@layer base {
|
|
59
90
|
button:not(:disabled),
|
|
60
|
-
[role=button]:not(:disabled) {
|
|
91
|
+
[role="button"]:not(:disabled) {
|
|
61
92
|
cursor: pointer;
|
|
62
93
|
}
|
|
63
94
|
}
|
|
64
|
-
|
|
65
|
-
@utility
|
|
95
|
+
|
|
96
|
+
@utility centric {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
align-items: center;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@utility container {
|
|
104
|
+
margin-inline: auto;
|
|
105
|
+
padding-inline: 2rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Always-included keyframes (non-theme animations) */
|
|
66
109
|
@keyframes smaller {
|
|
67
110
|
0% {
|
|
68
111
|
scale: 1;
|
|
@@ -73,6 +116,7 @@ a {
|
|
|
73
116
|
height: 0;
|
|
74
117
|
}
|
|
75
118
|
}
|
|
119
|
+
|
|
76
120
|
@keyframes bigger {
|
|
77
121
|
0% {
|
|
78
122
|
transform: scale(0.5);
|
|
@@ -81,6 +125,7 @@ a {
|
|
|
81
125
|
transform: scale(1);
|
|
82
126
|
}
|
|
83
127
|
}
|
|
128
|
+
|
|
84
129
|
@keyframes fadeIn {
|
|
85
130
|
0% {
|
|
86
131
|
opacity: 0;
|
|
@@ -89,6 +134,7 @@ a {
|
|
|
89
134
|
opacity: 1;
|
|
90
135
|
}
|
|
91
136
|
}
|
|
137
|
+
|
|
92
138
|
@keyframes flyOut {
|
|
93
139
|
0% {
|
|
94
140
|
opacity: 1;
|
|
@@ -99,6 +145,7 @@ a {
|
|
|
99
145
|
transform: translate(-50%, -140%);
|
|
100
146
|
}
|
|
101
147
|
}
|
|
148
|
+
|
|
102
149
|
@keyframes drop {
|
|
103
150
|
0% {
|
|
104
151
|
opacity: 0;
|
|
@@ -109,6 +156,7 @@ a {
|
|
|
109
156
|
transform: translate(-50%, -100%);
|
|
110
157
|
}
|
|
111
158
|
}
|
|
159
|
+
|
|
112
160
|
@keyframes fadeOut {
|
|
113
161
|
0% {
|
|
114
162
|
opacity: 1;
|
|
@@ -117,6 +165,7 @@ a {
|
|
|
117
165
|
opacity: 0;
|
|
118
166
|
}
|
|
119
167
|
}
|
|
168
|
+
|
|
120
169
|
@keyframes flash {
|
|
121
170
|
0% {
|
|
122
171
|
opacity: 1;
|
|
@@ -128,6 +177,7 @@ a {
|
|
|
128
177
|
opacity: 1;
|
|
129
178
|
}
|
|
130
179
|
}
|
|
180
|
+
|
|
131
181
|
@keyframes spin {
|
|
132
182
|
0% {
|
|
133
183
|
transform: rotate(0deg);
|
|
@@ -136,6 +186,7 @@ a {
|
|
|
136
186
|
transform: rotate(360deg);
|
|
137
187
|
}
|
|
138
188
|
}
|
|
189
|
+
|
|
139
190
|
@keyframes pop {
|
|
140
191
|
0% {
|
|
141
192
|
transform: scale(0, 0);
|
|
@@ -147,6 +198,7 @@ a {
|
|
|
147
198
|
transform: scale(1, 1);
|
|
148
199
|
}
|
|
149
200
|
}
|
|
201
|
+
|
|
150
202
|
@keyframes slideDown {
|
|
151
203
|
from {
|
|
152
204
|
height: 0;
|
|
@@ -155,6 +207,7 @@ a {
|
|
|
155
207
|
height: var(--radix-accordion-content-height);
|
|
156
208
|
}
|
|
157
209
|
}
|
|
210
|
+
|
|
158
211
|
@keyframes slideUp {
|
|
159
212
|
from {
|
|
160
213
|
height: var(--radix-accordion-content-height);
|
|
@@ -163,6 +216,7 @@ a {
|
|
|
163
216
|
height: 0;
|
|
164
217
|
}
|
|
165
218
|
}
|
|
219
|
+
|
|
166
220
|
@keyframes menuOpen {
|
|
167
221
|
0% {
|
|
168
222
|
opacity: 0;
|
|
@@ -173,6 +227,7 @@ a {
|
|
|
173
227
|
width: 80px;
|
|
174
228
|
}
|
|
175
229
|
}
|
|
230
|
+
|
|
176
231
|
@keyframes menuClose {
|
|
177
232
|
0% {
|
|
178
233
|
opacity: 1;
|
|
@@ -183,6 +238,7 @@ a {
|
|
|
183
238
|
width: 0;
|
|
184
239
|
}
|
|
185
240
|
}
|
|
241
|
+
|
|
186
242
|
@keyframes backdrop-blur {
|
|
187
243
|
0% {
|
|
188
244
|
backdrop-filter: blur(0);
|
|
@@ -191,6 +247,7 @@ a {
|
|
|
191
247
|
backdrop-filter: blur(5px);
|
|
192
248
|
}
|
|
193
249
|
}
|
|
250
|
+
|
|
194
251
|
@keyframes zoomIn {
|
|
195
252
|
0% {
|
|
196
253
|
opacity: 0;
|
|
@@ -201,6 +258,7 @@ a {
|
|
|
201
258
|
transform: scale(1);
|
|
202
259
|
}
|
|
203
260
|
}
|
|
261
|
+
|
|
204
262
|
@keyframes bottomUp {
|
|
205
263
|
0% {
|
|
206
264
|
transform: translateY(100%);
|
|
@@ -209,6 +267,7 @@ a {
|
|
|
209
267
|
transform: translateY(0);
|
|
210
268
|
}
|
|
211
269
|
}
|
|
270
|
+
|
|
212
271
|
@keyframes bottomDown {
|
|
213
272
|
0% {
|
|
214
273
|
transform: translateY(0);
|
|
@@ -217,6 +276,7 @@ a {
|
|
|
217
276
|
transform: translateY(100%);
|
|
218
277
|
}
|
|
219
278
|
}
|
|
279
|
+
|
|
220
280
|
@keyframes wave {
|
|
221
281
|
0% {
|
|
222
282
|
box-shadow:
|
|
@@ -233,6 +293,7 @@ a {
|
|
|
233
293
|
0 0 0 4em rgba(219, 39, 119, 0);
|
|
234
294
|
}
|
|
235
295
|
}
|
|
296
|
+
|
|
236
297
|
@keyframes translateUp {
|
|
237
298
|
0% {
|
|
238
299
|
transform: translateY(0);
|
|
@@ -241,6 +302,7 @@ a {
|
|
|
241
302
|
transform: translateY(-60%);
|
|
242
303
|
}
|
|
243
304
|
}
|
|
305
|
+
|
|
244
306
|
@keyframes tranlateLeft {
|
|
245
307
|
0% {
|
|
246
308
|
transform: translateX(100%);
|
|
@@ -249,6 +311,7 @@ a {
|
|
|
249
311
|
transform: translateX(0);
|
|
250
312
|
}
|
|
251
313
|
}
|
|
314
|
+
|
|
252
315
|
@keyframes tranlateRight {
|
|
253
316
|
0% {
|
|
254
317
|
transform: translateX(-100%);
|
|
@@ -257,6 +320,7 @@ a {
|
|
|
257
320
|
transform: translateX(0);
|
|
258
321
|
}
|
|
259
322
|
}
|
|
323
|
+
|
|
260
324
|
@keyframes floatUpDown {
|
|
261
325
|
0% {
|
|
262
326
|
transform: translateY(0%);
|
|
@@ -268,6 +332,7 @@ a {
|
|
|
268
332
|
transform: translateY(0%);
|
|
269
333
|
}
|
|
270
334
|
}
|
|
335
|
+
|
|
271
336
|
@keyframes floatDownUp {
|
|
272
337
|
0% {
|
|
273
338
|
transform: translateY(10%);
|
|
@@ -279,6 +344,7 @@ a {
|
|
|
279
344
|
transform: translateY(10%);
|
|
280
345
|
}
|
|
281
346
|
}
|
|
347
|
+
|
|
282
348
|
@keyframes scanDown {
|
|
283
349
|
0% {
|
|
284
350
|
top: -100%;
|
|
@@ -287,6 +353,8 @@ a {
|
|
|
287
353
|
top: 200%;
|
|
288
354
|
}
|
|
289
355
|
}
|
|
356
|
+
|
|
357
|
+
/* Programmatic Animations */
|
|
290
358
|
@keyframes fadeInRight5 {
|
|
291
359
|
0% {
|
|
292
360
|
opacity: 0;
|
|
@@ -327,6 +395,7 @@ a {
|
|
|
327
395
|
translate: 0 0;
|
|
328
396
|
}
|
|
329
397
|
}
|
|
398
|
+
|
|
330
399
|
@keyframes fadeInLeft5 {
|
|
331
400
|
0% {
|
|
332
401
|
opacity: 0;
|
|
@@ -367,6 +436,7 @@ a {
|
|
|
367
436
|
translate: 0 0;
|
|
368
437
|
}
|
|
369
438
|
}
|
|
439
|
+
|
|
370
440
|
@keyframes fadeInUp5 {
|
|
371
441
|
0% {
|
|
372
442
|
opacity: 0;
|
|
@@ -407,6 +477,7 @@ a {
|
|
|
407
477
|
translate: 0 0;
|
|
408
478
|
}
|
|
409
479
|
}
|
|
480
|
+
|
|
410
481
|
@keyframes fadeInDown5 {
|
|
411
482
|
0% {
|
|
412
483
|
opacity: 0;
|
|
@@ -447,4 +518,93 @@ a {
|
|
|
447
518
|
translate: 0 0;
|
|
448
519
|
}
|
|
449
520
|
}
|
|
450
|
-
|
|
521
|
+
|
|
522
|
+
@theme {
|
|
523
|
+
/* Theme Extensions */
|
|
524
|
+
--color-primary-light: hsl(var(--primary-light) / <alpha-value>);
|
|
525
|
+
--color-primary-dark: hsl(var(--primary-dark) / <alpha-value>);
|
|
526
|
+
--color-secondary-light: hsl(var(--secondary-light) / <alpha-value>);
|
|
527
|
+
--color-secondary-dark: hsl(var(--secondary-dark) / <alpha-value>);
|
|
528
|
+
|
|
529
|
+
/* Animation Variables */
|
|
530
|
+
--animate-smaller: smaller 0.15s ease-in-out forwards;
|
|
531
|
+
--animate-bigger: bigger 1s ease-in-out forwards;
|
|
532
|
+
--animate-fadeIn: fadeIn 0.15s ease-in-out forwards;
|
|
533
|
+
--animate-fadeIn_750ms: fadeIn 0.75s ease-in-out forwards;
|
|
534
|
+
--animate-fadeOut: fadeOut 0.15s ease-in-out forwards;
|
|
535
|
+
--animate-flyOut: flyOut 0.15s ease-in-out forwards;
|
|
536
|
+
--animate-drop: drop 0.15s ease-in-out forwards;
|
|
537
|
+
--animate-flash: flash 1s linear infinite;
|
|
538
|
+
--animate-spin: spin 1s linear infinite;
|
|
539
|
+
--animate-backdrop-blur: backdrop-blur-sm 2s ease-in-out forwards;
|
|
540
|
+
--animate-pop: pop 0.15s ease-in-out forwards;
|
|
541
|
+
--animate-menuOpen: menuOpen 0.3s ease-in-out forwards;
|
|
542
|
+
--animate-menuClose: menuClose 0.3s ease-in-out forwards;
|
|
543
|
+
--animate-slideDown: slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1);
|
|
544
|
+
--animate-slideUp: slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1);
|
|
545
|
+
--animate-zoomIn: zoomIn 0.15s ease-in-out forwards;
|
|
546
|
+
--animate-wave: wave 1s linear infinite;
|
|
547
|
+
--animate-translateUp: translateUp 0.5s ease-in-out 0.5s forwards;
|
|
548
|
+
--animate-bottomUp: bottomUp 0.5s ease-in-out 0.5s forwards;
|
|
549
|
+
--animate-translateLeft: tranlateLeft 0.15s ease-in-out forwards;
|
|
550
|
+
--animate-translateRight: tranlateRight 0.15s ease-in-out forwards;
|
|
551
|
+
--animate-floatUpDown: floatUpDown 3s linear forwards infinite;
|
|
552
|
+
--animate-floatDownUp: floatDownUp 3s linear forwards infinite;
|
|
553
|
+
--animate-scanDown: scanDown 3s ease-in-out infinite;
|
|
554
|
+
|
|
555
|
+
/* Programmatic Animation Variables */
|
|
556
|
+
--animate-fadeInRight5-150ms: fadeInRight5 0.15s ease-in-out forwards;
|
|
557
|
+
--animate-fadeInRight5-500ms: fadeInRight5 0.5s ease-in-out forwards;
|
|
558
|
+
--animate-fadeInRight5-1000ms: fadeInRight5 1s ease-in-out forwards;
|
|
559
|
+
--animate-fadeInRight15-150ms: fadeInRight15 0.15s ease-in-out forwards;
|
|
560
|
+
--animate-fadeInRight15-500ms: fadeInRight15 0.5s ease-in-out forwards;
|
|
561
|
+
--animate-fadeInRight15-1000ms: fadeInRight15 1s ease-in-out forwards;
|
|
562
|
+
--animate-fadeInRight30-150ms: fadeInRight30 0.15s ease-in-out forwards;
|
|
563
|
+
--animate-fadeInRight30-500ms: fadeInRight30 0.5s ease-in-out forwards;
|
|
564
|
+
--animate-fadeInRight30-1000ms: fadeInRight30 1s ease-in-out forwards;
|
|
565
|
+
--animate-fadeInRight100-150ms: fadeInRight100 0.15s ease-in-out forwards;
|
|
566
|
+
--animate-fadeInRight100-500ms: fadeInRight100 0.5s ease-in-out forwards;
|
|
567
|
+
--animate-fadeInRight100-1000ms: fadeInRight100 1s ease-in-out forwards;
|
|
568
|
+
|
|
569
|
+
--animate-fadeInLeft5-150ms: fadeInLeft5 0.15s ease-in-out forwards;
|
|
570
|
+
--animate-fadeInLeft5-500ms: fadeInLeft5 0.5s ease-in-out forwards;
|
|
571
|
+
--animate-fadeInLeft5-1000ms: fadeInLeft5 1s ease-in-out forwards;
|
|
572
|
+
--animate-fadeInLeft15-150ms: fadeInLeft15 0.15s ease-in-out forwards;
|
|
573
|
+
--animate-fadeInLeft15-500ms: fadeInLeft15 0.5s ease-in-out forwards;
|
|
574
|
+
--animate-fadeInLeft15-1000ms: fadeInLeft15 1s ease-in-out forwards;
|
|
575
|
+
--animate-fadeInLeft30-150ms: fadeInLeft30 0.15s ease-in-out forwards;
|
|
576
|
+
--animate-fadeInLeft30-500ms: fadeInLeft30 0.5s ease-in-out forwards;
|
|
577
|
+
--animate-fadeInLeft30-1000ms: fadeInLeft30 1s ease-in-out forwards;
|
|
578
|
+
--animate-fadeInLeft100-150ms: fadeInLeft100 0.15s ease-in-out forwards;
|
|
579
|
+
--animate-fadeInLeft100-500ms: fadeInLeft100 0.5s ease-in-out forwards;
|
|
580
|
+
--animate-fadeInLeft100-1000ms: fadeInLeft100 1s ease-in-out forwards;
|
|
581
|
+
|
|
582
|
+
--animate-fadeInUp5-150ms: fadeInUp5 0.15s ease-in-out forwards;
|
|
583
|
+
--animate-fadeInUp5-500ms: fadeInUp5 0.5s ease-in-out forwards;
|
|
584
|
+
--animate-fadeInUp5-1000ms: fadeInUp5 1s ease-in-out forwards;
|
|
585
|
+
--animate-fadeInUp15-150ms: fadeInUp15 0.15s ease-in-out forwards;
|
|
586
|
+
--animate-fadeInUp15-500ms: fadeInUp15 0.5s ease-in-out forwards;
|
|
587
|
+
--animate-fadeInUp15-1000ms: fadeInUp15 1s ease-in-out forwards;
|
|
588
|
+
--animate-fadeInUp30-150ms: fadeInUp30 0.15s ease-in-out forwards;
|
|
589
|
+
--animate-fadeInUp30-500ms: fadeInUp30 0.5s ease-in-out forwards;
|
|
590
|
+
--animate-fadeInUp30-1000ms: fadeInUp30 1s ease-in-out forwards;
|
|
591
|
+
--animate-fadeInUp100-150ms: fadeInUp100 0.15s ease-in-out forwards;
|
|
592
|
+
--animate-fadeInUp100-500ms: fadeInUp100 0.5s ease-in-out forwards;
|
|
593
|
+
--animate-fadeInUp100-1000ms: fadeInUp100 1s ease-in-out forwards;
|
|
594
|
+
|
|
595
|
+
--animate-fadeInDown5-150ms: fadeInDown5 0.15s ease-in-out forwards;
|
|
596
|
+
--animate-fadeInDown5-500ms: fadeInDown5 0.5s ease-in-out forwards;
|
|
597
|
+
--animate-fadeInDown5-1000ms: fadeInDown5 1s ease-in-out forwards;
|
|
598
|
+
--animate-fadeInDown15-150ms: fadeInDown15 0.15s ease-in-out forwards;
|
|
599
|
+
--animate-fadeInDown15-500ms: fadeInDown15 0.5s ease-in-out forwards;
|
|
600
|
+
--animate-fadeInDown15-1000ms: fadeInDown15 1s ease-in-out forwards;
|
|
601
|
+
--animate-fadeInDown30-150ms: fadeInDown30 0.15s ease-in-out forwards;
|
|
602
|
+
--animate-fadeInDown30-500ms: fadeInDown30 0.5s ease-in-out forwards;
|
|
603
|
+
--animate-fadeInDown30-1000ms: fadeInDown30 1s ease-in-out forwards;
|
|
604
|
+
--animate-fadeInDown100-150ms: fadeInDown100 0.15s ease-in-out forwards;
|
|
605
|
+
--animate-fadeInDown100-500ms: fadeInDown100 0.5s ease-in-out forwards;
|
|
606
|
+
--animate-fadeInDown100-1000ms: fadeInDown100 1s ease-in-out forwards;
|
|
607
|
+
|
|
608
|
+
/* Transition Property */
|
|
609
|
+
--transition-property-all: all;
|
|
610
|
+
}
|
package/src/akanConfig.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var akanConfig_exports = {};
|
|
30
|
-
__export(akanConfig_exports, {
|
|
31
|
-
getAppConfig: () => getAppConfig,
|
|
32
|
-
getLibConfig: () => getLibConfig,
|
|
33
|
-
getNextConfig: () => getNextConfig,
|
|
34
|
-
makeAppConfig: () => makeAppConfig,
|
|
35
|
-
makeLibConfig: () => makeLibConfig
|
|
36
|
-
});
|
|
37
|
-
module.exports = __toCommonJS(akanConfig_exports);
|
|
38
|
-
var import_fs = __toESM(require("fs"));
|
|
39
|
-
var import_path = __toESM(require("path"));
|
|
40
|
-
var import_baseConfigEnv = require("./baseConfigEnv");
|
|
41
|
-
var import_nextConfig = require("./nextConfig");
|
|
42
|
-
const makeAppConfig = /* @__PURE__ */ __name((config, props = {}) => {
|
|
43
|
-
const baseConfigEnv = (0, import_baseConfigEnv.getBaseConfigEnv)(props.appName);
|
|
44
|
-
const { appName = baseConfigEnv.appName, repoName = baseConfigEnv.repoName, serveDomain = baseConfigEnv.serveDomain, env = baseConfigEnv.env, command = "build" } = props;
|
|
45
|
-
return {
|
|
46
|
-
rootLib: config.rootLib,
|
|
47
|
-
libs: config.libs ?? [],
|
|
48
|
-
backend: {
|
|
49
|
-
dockerfile: config.backend?.dockerfile ?? `FROM node:22-slim
|
|
50
|
-
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
|
|
51
|
-
RUN apt-get update && apt-get upgrade -y
|
|
52
|
-
RUN apt-get install -y ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils udev
|
|
53
|
-
ARG TARGETARCH
|
|
54
|
-
RUN if [ "$TARGETARCH" = "amd64" ]; then wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian92-x86_64-100.3.1.deb && apt-get install -y ./mongodb-database-tools-*.deb && rm -f mongodb-database-tools-*.deb; fi
|
|
55
|
-
RUN apt-get install -y git redis build-essential python3
|
|
56
|
-
RUN rm -rf /var/lib/apt/lists/*
|
|
57
|
-
RUN mkdir -p /workspace
|
|
58
|
-
WORKDIR /workspace
|
|
59
|
-
COPY ./package.json ./package.json
|
|
60
|
-
RUN npx pnpm i --prod
|
|
61
|
-
COPY . .
|
|
62
|
-
ENV PORT 8080
|
|
63
|
-
ENV NODE_OPTIONS=--max_old_space_size=8192
|
|
64
|
-
ENV NEXT_PUBLIC_REPO_NAME=${repoName}
|
|
65
|
-
ENV NEXT_PUBLIC_SERVE_DOMAIN=${serveDomain}
|
|
66
|
-
ENV NEXT_PUBLIC_APP_NAME=${appName}
|
|
67
|
-
ENV NEXT_PUBLIC_ENV=${env}
|
|
68
|
-
ENV NEXT_PUBLIC_OPERATION_MODE=cloud
|
|
69
|
-
CMD ["node", "main.js"]`,
|
|
70
|
-
explicitDependencies: config.backend?.explicitDependencies ?? []
|
|
71
|
-
},
|
|
72
|
-
frontend: {
|
|
73
|
-
dockerfile: config.frontend?.dockerfile ?? `FROM node:22-alpine
|
|
74
|
-
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
|
|
75
|
-
RUN apk --no-cache add git
|
|
76
|
-
RUN mkdir -p /workspace
|
|
77
|
-
WORKDIR /workspace
|
|
78
|
-
COPY ./package.json ./package.json
|
|
79
|
-
RUN npx pnpm i --prod
|
|
80
|
-
COPY . .
|
|
81
|
-
ENV PORT 4200
|
|
82
|
-
ENV NODE_OPTIONS=--max_old_space_size=8192
|
|
83
|
-
ENV NEXT_PUBLIC_REPO_NAME=${repoName}
|
|
84
|
-
ENV NEXT_PUBLIC_SERVE_DOMAIN=${serveDomain}
|
|
85
|
-
ENV NEXT_PUBLIC_APP_NAME=${appName}
|
|
86
|
-
ENV NEXT_PUBLIC_ENV=${env}
|
|
87
|
-
ENV NEXT_PUBLIC_OPERATION_MODE=cloud
|
|
88
|
-
CMD ["npm", "start"]`,
|
|
89
|
-
nextConfig: (0, import_nextConfig.withBase)(appName, config.frontend?.nextConfig ? typeof config.frontend.nextConfig === "function" ? config.frontend.nextConfig() : config.frontend.nextConfig : {}, config.libs ?? [], config.frontend?.routes),
|
|
90
|
-
explicitDependencies: config.frontend?.explicitDependencies ?? []
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
}, "makeAppConfig");
|
|
94
|
-
const getAppConfig = /* @__PURE__ */ __name(async (appRoot, props) => {
|
|
95
|
-
const akanConfigPath = import_path.default.join(appRoot, "akan.config.ts");
|
|
96
|
-
if (!import_fs.default.existsSync(akanConfigPath)) throw new Error(`application akan.config.ts is not found ${appRoot}`);
|
|
97
|
-
const configImp = (await import(`${appRoot}/akan.config.ts`)).default;
|
|
98
|
-
const config = typeof configImp === "function" ? configImp(props) : configImp;
|
|
99
|
-
return makeAppConfig(config, props);
|
|
100
|
-
}, "getAppConfig");
|
|
101
|
-
const makeLibConfig = /* @__PURE__ */ __name((config, props = {}) => {
|
|
102
|
-
return {
|
|
103
|
-
rootLib: config.rootLib,
|
|
104
|
-
libs: config.libs ?? [],
|
|
105
|
-
backend: {
|
|
106
|
-
explicitDependencies: config.backend?.explicitDependencies ?? []
|
|
107
|
-
},
|
|
108
|
-
frontend: {
|
|
109
|
-
explicitDependencies: config.frontend?.explicitDependencies ?? []
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
}, "makeLibConfig");
|
|
113
|
-
const getLibConfig = /* @__PURE__ */ __name(async (libRoot, props) => {
|
|
114
|
-
const akanConfigPath = import_path.default.join(libRoot, "akan.config.ts");
|
|
115
|
-
if (!import_fs.default.existsSync(akanConfigPath)) throw new Error(`library akan.config.ts is not found ${libRoot}`);
|
|
116
|
-
const configImp = (await import(`${libRoot}/akan.config.ts`)).default;
|
|
117
|
-
const config = typeof configImp === "function" ? configImp(props) : configImp;
|
|
118
|
-
return makeLibConfig(config, props);
|
|
119
|
-
}, "getLibConfig");
|
|
120
|
-
const getNextConfig = /* @__PURE__ */ __name((configImp, appData) => {
|
|
121
|
-
const appInfo = appData;
|
|
122
|
-
const baseConfigEnv = (0, import_baseConfigEnv.getBaseConfigEnv)(appInfo.name);
|
|
123
|
-
const props = {
|
|
124
|
-
appName: baseConfigEnv.appName,
|
|
125
|
-
repoName: baseConfigEnv.repoName,
|
|
126
|
-
serveDomain: baseConfigEnv.serveDomain,
|
|
127
|
-
env: baseConfigEnv.env,
|
|
128
|
-
command: "build"
|
|
129
|
-
};
|
|
130
|
-
const config = typeof configImp === "function" ? configImp(props) : configImp;
|
|
131
|
-
const akanConfig = makeAppConfig(config, props);
|
|
132
|
-
return akanConfig.frontend.nextConfig;
|
|
133
|
-
}, "getNextConfig");
|
|
134
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
135
|
-
0 && (module.exports = {
|
|
136
|
-
getAppConfig,
|
|
137
|
-
getLibConfig,
|
|
138
|
-
getNextConfig,
|
|
139
|
-
makeAppConfig,
|
|
140
|
-
makeLibConfig
|
|
141
|
-
});
|
package/src/baseConfigEnv.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var baseConfigEnv_exports = {};
|
|
20
|
-
__export(baseConfigEnv_exports, {
|
|
21
|
-
getBaseConfigEnv: () => getBaseConfigEnv
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(baseConfigEnv_exports);
|
|
24
|
-
const getBaseConfigEnv = /* @__PURE__ */ __name((appName = process.env.NEXT_PUBLIC_APP_NAME) => {
|
|
25
|
-
if (!appName) throw new Error("NEXT_PUBLIC_APP_NAME is not set");
|
|
26
|
-
const repoName = process.env.NEXT_PUBLIC_REPO_NAME;
|
|
27
|
-
if (!repoName) throw new Error("NEXT_PUBLIC_REPO_NAME is not set");
|
|
28
|
-
const serveDomain = process.env.NEXT_PUBLIC_SERVE_DOMAIN;
|
|
29
|
-
if (!serveDomain) throw new Error("NEXT_PUBLIC_SERVE_DOMAIN is not set");
|
|
30
|
-
const env = process.env.NEXT_PUBLIC_ENV ?? "debug";
|
|
31
|
-
if (!env) throw new Error("NEXT_PUBLIC_ENV is not set");
|
|
32
|
-
return {
|
|
33
|
-
appName,
|
|
34
|
-
repoName,
|
|
35
|
-
serveDomain,
|
|
36
|
-
env
|
|
37
|
-
};
|
|
38
|
-
}, "getBaseConfigEnv");
|
|
39
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
-
0 && (module.exports = {
|
|
41
|
-
getBaseConfigEnv
|
|
42
|
-
});
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var capacitor_base_config_exports = {};
|
|
30
|
-
__export(capacitor_base_config_exports, {
|
|
31
|
-
withBase: () => withBase
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(capacitor_base_config_exports);
|
|
34
|
-
var import_os = __toESM(require("os"));
|
|
35
|
-
const getLocalIP = /* @__PURE__ */ __name(() => {
|
|
36
|
-
const interfaces = import_os.default.networkInterfaces();
|
|
37
|
-
for (const interfaceName in interfaces) {
|
|
38
|
-
const iface = interfaces[interfaceName];
|
|
39
|
-
if (!iface) continue;
|
|
40
|
-
for (const alias of iface) {
|
|
41
|
-
if (alias.family === "IPv4" && !alias.internal) return alias.address;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return "127.0.0.1";
|
|
45
|
-
}, "getLocalIP");
|
|
46
|
-
const withBase = /* @__PURE__ */ __name((applyConfig) => {
|
|
47
|
-
const projectName = process.env.NEXT_PUBLIC_APP_NAME;
|
|
48
|
-
if (!projectName) throw new Error("projectName is not defined, please run with nx command");
|
|
49
|
-
const ip = getLocalIP();
|
|
50
|
-
const baseConfig = {
|
|
51
|
-
appId: `com.${projectName}`,
|
|
52
|
-
appName: projectName,
|
|
53
|
-
webDir: `../../dist/apps/${projectName}/csr/`,
|
|
54
|
-
// bundledWebRuntime: false, !not used
|
|
55
|
-
server: process.env.APP_OPERATION_MODE !== "release" ? {
|
|
56
|
-
androidScheme: "http",
|
|
57
|
-
url: `http://${ip}:4201`,
|
|
58
|
-
cleartext: true,
|
|
59
|
-
allowNavigation: [
|
|
60
|
-
`http://${ip}:8080/*`
|
|
61
|
-
]
|
|
62
|
-
} : void 0,
|
|
63
|
-
plugins: {
|
|
64
|
-
CapacitorCookies: {
|
|
65
|
-
enabled: true
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
return applyConfig(baseConfig);
|
|
70
|
-
}, "withBase");
|
|
71
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
72
|
-
0 && (module.exports = {
|
|
73
|
-
withBase
|
|
74
|
-
});
|