@jjlmoya/utils-astronomy 1.11.0 → 1.13.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.
@@ -1,54 +1,5 @@
1
- import type { AstronomyToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- export interface StarExposureCalculatorUI {
4
- [key: string]: string;
5
- toolTitle: string;
6
- modeLabel: string;
7
- classicMode: string;
8
- npfMode: string;
9
- sensorLabel: string;
10
- focalLabel: string;
11
- apertureLabel: string;
12
- megapixelsLabel: string;
13
- declinationLabel: string;
14
- equatorLabel: string;
15
- poleLabel: string;
16
- secondsUnit: string;
17
- resultText: string;
18
- simLabel: string;
19
- simRangeLabel: string;
20
- pointStars: string;
21
- trailStars: string;
22
- }
23
-
24
- export type StarExposureCalculatorLocaleContent = ToolLocaleContent<StarExposureCalculatorUI>;
25
-
26
- export const starExposureCalculator: AstronomyToolEntry<StarExposureCalculatorUI> = {
27
- id: 'star-exposure-calculator',
28
- icons: {
29
- bg: 'mdi:star-shooting',
30
- fg: 'mdi:timer-sand',
31
- },
32
- i18n: {
33
- de: () => import('./i18n/de').then((m) => m.content),
34
- en: () => import('./i18n/en').then((m) => m.content),
35
- es: () => import('./i18n/es').then((m) => m.content),
36
- fr: () => import('./i18n/fr').then((m) => m.content),
37
- id: () => import('./i18n/id').then((m) => m.content),
38
- it: () => import('./i18n/it').then((m) => m.content),
39
- ja: () => import('./i18n/ja').then((m) => m.content),
40
- ko: () => import('./i18n/ko').then((m) => m.content),
41
- nl: () => import('./i18n/nl').then((m) => m.content),
42
- pl: () => import('./i18n/pl').then((m) => m.content),
43
- pt: () => import('./i18n/pt').then((m) => m.content),
44
- ru: () => import('./i18n/ru').then((m) => m.content),
45
- sv: () => import('./i18n/sv').then((m) => m.content),
46
- tr: () => import('./i18n/tr').then((m) => m.content),
47
- zh: () => import('./i18n/zh').then((m) => m.content),
48
- },
49
- };
50
-
51
-
1
+ import { starExposureCalculator } from './entry';
2
+ export * from './entry';
52
3
  export const STAR_EXPOSURE_CALCULATOR_TOOL: ToolDefinition = {
53
4
  entry: starExposureCalculator,
54
5
  Component: () => import('./component.astro'),
@@ -220,337 +220,3 @@ const { ui } = Astro.props;
220
220
  updateSeeingAlert();
221
221
  </script>
222
222
 
223
- <style>
224
- .tscope-wrapper {
225
- width: 100%;
226
- max-width: 56rem;
227
- margin: 0 auto;
228
- padding: 2.5rem;
229
- background: var(--bg-surface);
230
- border: 1px solid var(--border-base);
231
- border-radius: 2rem;
232
- box-shadow: 0 40px 80px -20px var(--shadow-base);
233
- position: relative;
234
- overflow: hidden;
235
- }
236
-
237
- .tscope-grid {
238
- display: grid;
239
- grid-template-columns: 1fr;
240
- gap: 2.5rem;
241
- position: relative;
242
- z-index: 1;
243
- }
244
-
245
- @media (min-width: 850px) {
246
- .tscope-grid {
247
- grid-template-columns: 1.1fr 1fr;
248
- gap: 3.5rem;
249
- }
250
- }
251
-
252
- .tscope-controls {
253
- display: flex;
254
- flex-direction: column;
255
- gap: 2rem;
256
- }
257
-
258
- .tscope-control-group {
259
- display: flex;
260
- flex-direction: column;
261
- gap: 0.85rem;
262
- }
263
-
264
- .tscope-control-label {
265
- font-size: 0.85rem;
266
- font-weight: 700;
267
- color: var(--text-muted, #94a3b8);
268
- text-transform: uppercase;
269
- letter-spacing: 0.05em;
270
- display: flex;
271
- justify-content: space-between;
272
- }
273
-
274
- .tscope-stepper {
275
- display: flex;
276
- align-items: center;
277
- background: var(--bg-muted);
278
- border: 1px solid var(--border-base);
279
- border-radius: 1rem;
280
- overflow: hidden;
281
- transition: border-color 0.3s ease;
282
- }
283
-
284
- .tscope-stepper:focus-within {
285
- border-color: var(--color-purple, #a855f7);
286
- }
287
-
288
- .tscope-step-btn {
289
- width: 4rem;
290
- height: 4rem;
291
- border: none;
292
- background: var(--bg-muted);
293
- color: var(--color-purple, #a855f7);
294
- font-size: 1.8rem;
295
- cursor: pointer;
296
- transition: all 0.2s ease;
297
- display: flex;
298
- align-items: center;
299
- justify-content: center;
300
- }
301
-
302
- .tscope-step-btn:hover {
303
- background: var(--bg-page);
304
- color: var(--color-purple, #a855f7);
305
- }
306
-
307
- .tscope-stepper-input {
308
- flex: 1;
309
- background: transparent;
310
- border: none;
311
- color: var(--text-base);
312
- text-align: center;
313
- font-size: 1.5rem;
314
- font-weight: 700;
315
- outline: none;
316
- width: 100%;
317
- }
318
-
319
- .tscope-select-wrapper {
320
- position: relative;
321
- width: 100%;
322
- }
323
-
324
- .tscope-select-arrow {
325
- position: absolute;
326
- right: 0.875rem;
327
- top: 50%;
328
- transform: translateY(-50%);
329
- width: 1rem;
330
- height: 1rem;
331
- color: var(--color-purple, #a855f7);
332
- pointer-events: none;
333
- }
334
-
335
- .tscope-select {
336
- appearance: none;
337
- -webkit-appearance: none;
338
- width: 100%;
339
- background: var(--bg-muted);
340
- border: 1px solid var(--border-base);
341
- color: var(--text-base);
342
- padding: 1rem 3rem 1rem 1.25rem;
343
- border-radius: 1rem;
344
- font-size: 0.95rem;
345
- font-weight: 600;
346
- outline: none;
347
- cursor: pointer;
348
- transition: border-color 0.3s ease;
349
- }
350
-
351
- .tscope-select:hover {
352
- border-color: var(--color-purple, #a855f7);
353
- }
354
-
355
- .tscope-select:focus {
356
- border-color: var(--color-purple, #a855f7);
357
- }
358
-
359
- .tscope-select option {
360
- background: var(--bg-surface);
361
- color: var(--text-base);
362
- }
363
-
364
- .tscope-range {
365
- width: 100%;
366
- appearance: none;
367
- background: var(--bg-muted);
368
- height: 10px;
369
- border-radius: 20px;
370
- outline: none;
371
- cursor: pointer;
372
- border: 1px solid var(--border-base);
373
- accent-color: var(--color-purple, #a855f7);
374
- }
375
-
376
- .tscope-results {
377
- display: flex;
378
- flex-direction: column;
379
- gap: 2.5rem;
380
- padding: 0.5rem;
381
- }
382
-
383
- .tscope-main-result {
384
- text-align: center;
385
- background: var(--bg-muted);
386
- padding: 3rem 2rem;
387
- border-radius: 2rem;
388
- border: 1px solid var(--border-base);
389
- }
390
-
391
- .tscope-result-title {
392
- font-size: 0.9rem;
393
- color: var(--color-purple, #a855f7);
394
- text-transform: uppercase;
395
- letter-spacing: 0.2em;
396
- margin: 0 0 2rem;
397
- }
398
-
399
- .tscope-resolution-value {
400
- display: flex;
401
- flex-direction: column;
402
- align-items: center;
403
- gap: 0.5rem;
404
- }
405
-
406
- .tscope-resolution-number {
407
- font-size: 6rem;
408
- font-weight: 900;
409
- line-height: 0.9;
410
- background: linear-gradient(to bottom, var(--text-base), var(--color-purple, #a855f7));
411
- -webkit-background-clip: text;
412
- -webkit-text-fill-color: transparent;
413
- background-clip: text;
414
- filter: drop-shadow(0 10px 20px rgba(168, 85, 247, 0.4));
415
- }
416
-
417
- .tscope-resolution-unit {
418
- font-size: 1.15rem;
419
- color: var(--text-muted, #94a3b8);
420
- font-weight: 600;
421
- text-transform: lowercase;
422
- opacity: 0.8;
423
- }
424
-
425
- .tscope-comp-grid {
426
- display: grid;
427
- grid-template-columns: 1fr 1fr;
428
- gap: 1.5rem;
429
- }
430
-
431
- .tscope-comp-card {
432
- background: var(--bg-muted);
433
- padding: 1.25rem;
434
- border-radius: 1.25rem;
435
- text-align: center;
436
- border: 1px solid var(--border-base);
437
- transition: transform 0.3s ease, border-color 0.2s ease;
438
- }
439
-
440
- .tscope-comp-card:hover {
441
- transform: translateY(-5px);
442
- border-color: var(--color-purple, #a855f7);
443
- }
444
-
445
- .tscope-comp-title {
446
- font-size: 0.75rem;
447
- color: var(--text-muted, #64748b);
448
- margin: 0 0 0.75rem;
449
- text-transform: uppercase;
450
- letter-spacing: 0.1em;
451
- }
452
-
453
- .tscope-comp-value {
454
- font-size: 1.75rem;
455
- font-weight: 800;
456
- color: var(--color-pink, #ec4899);
457
- }
458
-
459
- .tscope-seeing-alert {
460
- padding: 1.25rem;
461
- background: var(--bg-muted);
462
- border-left: 4px solid var(--color-warning, #f59e0b);
463
- border-radius: 0.75rem;
464
- font-size: 0.85rem;
465
- color: var(--text-muted);
466
- line-height: 1.6;
467
- display: block;
468
- }
469
-
470
- .tscope-seeing-alert.visible {
471
- animation: tscope-slide-in 0.4s ease-out;
472
- }
473
-
474
- @keyframes tscope-slide-in {
475
- from {
476
- opacity: 0;
477
- transform: translateX(-10px);
478
- }
479
- to {
480
- opacity: 1;
481
- transform: translateX(0);
482
- }
483
- }
484
-
485
- .tscope-visualization {
486
- background: var(--bg-muted);
487
- padding: 2rem;
488
- border-radius: 1.5rem;
489
- border: 1px solid var(--border-base);
490
- }
491
-
492
- .tscope-vis-label {
493
- display: block;
494
- font-size: 0.75rem;
495
- font-weight: 800;
496
- color: var(--text-muted, #475569);
497
- text-transform: uppercase;
498
- letter-spacing: 0.15em;
499
- margin-bottom: 2rem;
500
- text-align: center;
501
- }
502
-
503
- .tscope-sim-container {
504
- height: 140px;
505
- background: radial-gradient(circle at center, #0f172a 0%, #000 100%);
506
- border-radius: 1rem;
507
- display: flex;
508
- align-items: center;
509
- justify-content: center;
510
- position: relative;
511
- border: 1px solid rgba(168, 85, 247, 0.1);
512
- }
513
-
514
- .tscope-binary-system {
515
- display: flex;
516
- align-items: center;
517
- position: relative;
518
- padding: 2rem;
519
- }
520
-
521
- .tscope-star {
522
- width: 8px;
523
- height: 8px;
524
- background: white;
525
- border-radius: 50%;
526
- filter: blur(var(--star-blur, 0)) drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px var(--color-purple, #a855f7));
527
- transition: all 0.5s ease;
528
- position: relative;
529
- z-index: 2;
530
- }
531
-
532
- .tscope-star::after {
533
- content: '';
534
- position: absolute;
535
- top: 50%;
536
- left: 50%;
537
- transform: translate(-50%, -50%);
538
- width: 200%;
539
- height: 200%;
540
- background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
541
- pointer-events: none;
542
- }
543
-
544
- .tscope-sim-explanation {
545
- margin-top: 1.5rem;
546
- font-size: 0.8rem;
547
- color: var(--text-muted);
548
- text-align: center;
549
- line-height: 1.6;
550
- letter-spacing: 0.02em;
551
- padding: 1rem;
552
- background: var(--bg-page);
553
- border-radius: 0.75rem;
554
- border: 1px dashed var(--border-base);
555
- }
556
- </style>
@@ -0,0 +1,49 @@
1
+ import type { AstronomyToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface TelescopeResolutionUI {
4
+ [key: string]: string | Array<{ value: string; label: string }>;
5
+ toolTitle: string;
6
+ apertureLabel: string;
7
+ unitLabel: string;
8
+ mmUnit: string;
9
+ inUnit: string;
10
+ presetsLabel: string;
11
+ presetsPlaceholder: string;
12
+ seeingLabel: string;
13
+ dawesLabel: string;
14
+ arcsecUnit: string;
15
+ rayleighLabel: string;
16
+ maxMagLabel: string;
17
+ seeingAlertPrefix: string;
18
+ seeingAlertSuffix: string;
19
+ simLabel: string;
20
+ simExplanation: string;
21
+ presets: Array<{ value: string; label: string }>;
22
+ }
23
+
24
+ export type TelescopeResolutionLocaleContent = ToolLocaleContent<TelescopeResolutionUI>;
25
+
26
+ export const telescopeResolution: AstronomyToolEntry<TelescopeResolutionUI> = {
27
+ id: 'telescope-resolution',
28
+ icons: {
29
+ bg: 'mdi:telescope',
30
+ fg: 'mdi:flare',
31
+ },
32
+ i18n: {
33
+ de: () => import('./i18n/de').then((m) => m.content),
34
+ en: () => import('./i18n/en').then((m) => m.content),
35
+ es: () => import('./i18n/es').then((m) => m.content),
36
+ fr: () => import('./i18n/fr').then((m) => m.content),
37
+ id: () => import('./i18n/id').then((m) => m.content),
38
+ it: () => import('./i18n/it').then((m) => m.content),
39
+ ja: () => import('./i18n/ja').then((m) => m.content),
40
+ ko: () => import('./i18n/ko').then((m) => m.content),
41
+ nl: () => import('./i18n/nl').then((m) => m.content),
42
+ pl: () => import('./i18n/pl').then((m) => m.content),
43
+ pt: () => import('./i18n/pt').then((m) => m.content),
44
+ ru: () => import('./i18n/ru').then((m) => m.content),
45
+ sv: () => import('./i18n/sv').then((m) => m.content),
46
+ tr: () => import('./i18n/tr').then((m) => m.content),
47
+ zh: () => import('./i18n/zh').then((m) => m.content),
48
+ },
49
+ };
@@ -1,54 +1,5 @@
1
- import type { AstronomyToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- export interface TelescopeResolutionUI {
4
- [key: string]: string | Array<{ value: string; label: string }>;
5
- toolTitle: string;
6
- apertureLabel: string;
7
- unitLabel: string;
8
- mmUnit: string;
9
- inUnit: string;
10
- presetsLabel: string;
11
- presetsPlaceholder: string;
12
- seeingLabel: string;
13
- dawesLabel: string;
14
- arcsecUnit: string;
15
- rayleighLabel: string;
16
- maxMagLabel: string;
17
- seeingAlertPrefix: string;
18
- seeingAlertSuffix: string;
19
- simLabel: string;
20
- simExplanation: string;
21
- presets: Array<{ value: string; label: string }>;
22
- }
23
-
24
- export type TelescopeResolutionLocaleContent = ToolLocaleContent<TelescopeResolutionUI>;
25
-
26
- export const telescopeResolution: AstronomyToolEntry<TelescopeResolutionUI> = {
27
- id: 'telescope-resolution',
28
- icons: {
29
- bg: 'mdi:telescope',
30
- fg: 'mdi:flare',
31
- },
32
- i18n: {
33
- de: () => import('./i18n/de').then((m) => m.content),
34
- en: () => import('./i18n/en').then((m) => m.content),
35
- es: () => import('./i18n/es').then((m) => m.content),
36
- fr: () => import('./i18n/fr').then((m) => m.content),
37
- id: () => import('./i18n/id').then((m) => m.content),
38
- it: () => import('./i18n/it').then((m) => m.content),
39
- ja: () => import('./i18n/ja').then((m) => m.content),
40
- ko: () => import('./i18n/ko').then((m) => m.content),
41
- nl: () => import('./i18n/nl').then((m) => m.content),
42
- pl: () => import('./i18n/pl').then((m) => m.content),
43
- pt: () => import('./i18n/pt').then((m) => m.content),
44
- ru: () => import('./i18n/ru').then((m) => m.content),
45
- sv: () => import('./i18n/sv').then((m) => m.content),
46
- tr: () => import('./i18n/tr').then((m) => m.content),
47
- zh: () => import('./i18n/zh').then((m) => m.content),
48
- },
49
- };
50
-
51
-
1
+ import { telescopeResolution } from './entry';
2
+ export * from './entry';
52
3
  export const TELESCOPE_RESOLUTION_TOOL: ToolDefinition = {
53
4
  entry: telescopeResolution,
54
5
  Component: () => import('./component.astro'),