@jjlmoya/utils-astronomy 1.24.0 → 1.26.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.
Files changed (70) hide show
  1. package/package.json +2 -2
  2. package/src/category/i18n/de.ts +57 -57
  3. package/src/category/i18n/en.ts +1 -1
  4. package/src/category/i18n/es.ts +1 -1
  5. package/src/category/i18n/fr.ts +58 -58
  6. package/src/category/i18n/it.ts +1 -1
  7. package/src/category/i18n/nl.ts +57 -57
  8. package/src/category/i18n/pl.ts +57 -57
  9. package/src/category/i18n/pt.ts +1 -1
  10. package/src/category/i18n/ru.ts +57 -57
  11. package/src/category/i18n/sv.ts +57 -57
  12. package/src/category/i18n/zh.ts +57 -57
  13. package/src/category/index.ts +30 -30
  14. package/src/category/seo.astro +15 -15
  15. package/src/components/PreviewNavSidebar.astro +116 -116
  16. package/src/components/PreviewToolbar.astro +143 -143
  17. package/src/data.ts +16 -16
  18. package/src/env.d.ts +5 -5
  19. package/src/index.ts +22 -22
  20. package/src/layouts/PreviewLayout.astro +122 -122
  21. package/src/pages/[locale].astro +251 -251
  22. package/src/pages/index.astro +4 -4
  23. package/src/tests/bibliography_wellformed_export.test.ts +46 -0
  24. package/src/tests/category_seo_quality.test.ts +74 -0
  25. package/src/tests/faq_count.test.ts +1 -1
  26. package/src/tests/mocks/astro_mock.js +2 -2
  27. package/src/tests/no_h1_in_components.test.ts +1 -1
  28. package/src/tests/seo_length.test.ts +1 -1
  29. package/src/tests/seo_parity.test.ts +2 -2
  30. package/src/tests/seo_translation_completeness.test.ts +75 -0
  31. package/src/tests/seo_wellformed_export.test.ts +65 -0
  32. package/src/tests/tool_structure.test.ts +71 -71
  33. package/src/tests/tool_validation.test.ts +146 -146
  34. package/src/tool/bortleVisualizer/bibliography.astro +14 -14
  35. package/src/tool/bortleVisualizer/bibliography.ts +8 -8
  36. package/src/tool/bortleVisualizer/i18n/pl.ts +159 -159
  37. package/src/tool/bortleVisualizer/i18n/ru.ts +159 -159
  38. package/src/tool/deepSpaceScope/bibliography.astro +14 -14
  39. package/src/tool/deepSpaceScope/component.astro +382 -382
  40. package/src/tool/deepSpaceScope/i18n/de.ts +172 -172
  41. package/src/tool/deepSpaceScope/i18n/ko.ts +172 -172
  42. package/src/tool/deepSpaceScope/i18n/pl.ts +172 -172
  43. package/src/tool/deepSpaceScope/i18n/ru.ts +172 -172
  44. package/src/tool/deepSpaceScope/i18n/zh.ts +172 -172
  45. package/src/tool/smartEyepieceCalculator/component.astro +125 -125
  46. package/src/tool/smartEyepieceCalculator/i18n/fr.ts +165 -165
  47. package/src/tool/smartEyepieceCalculator/i18n/ru.ts +165 -165
  48. package/src/tool/smartEyepieceCalculator/i18n/zh.ts +165 -165
  49. package/src/tool/starExposureCalculator/bibliography.astro +14 -14
  50. package/src/tool/starExposureCalculator/bibliography.ts +7 -7
  51. package/src/tool/starExposureCalculator/component.astro +249 -249
  52. package/src/tool/starExposureCalculator/i18n/pl.ts +156 -156
  53. package/src/tool/starExposureCalculator/i18n/ru.ts +156 -156
  54. package/src/tool/telescopeResolution/bibliography.astro +14 -14
  55. package/src/tool/telescopeResolution/component.astro +222 -222
  56. package/src/tool/telescopeResolution/i18n/de.ts +169 -169
  57. package/src/tool/telescopeResolution/i18n/en.ts +169 -169
  58. package/src/tool/telescopeResolution/i18n/es.ts +169 -169
  59. package/src/tool/telescopeResolution/i18n/fr.ts +169 -169
  60. package/src/tool/telescopeResolution/i18n/id.ts +169 -169
  61. package/src/tool/telescopeResolution/i18n/it.ts +169 -169
  62. package/src/tool/telescopeResolution/i18n/ja.ts +169 -169
  63. package/src/tool/telescopeResolution/i18n/ko.ts +169 -169
  64. package/src/tool/telescopeResolution/i18n/nl.ts +169 -169
  65. package/src/tool/telescopeResolution/i18n/pl.ts +169 -169
  66. package/src/tool/telescopeResolution/i18n/pt.ts +169 -169
  67. package/src/tool/telescopeResolution/i18n/ru.ts +169 -169
  68. package/src/tool/telescopeResolution/i18n/sv.ts +169 -169
  69. package/src/tool/telescopeResolution/i18n/tr.ts +169 -169
  70. package/src/tool/telescopeResolution/i18n/zh.ts +169 -169
@@ -1,122 +1,122 @@
1
- ---
2
- import "@jjlmoya/utils-shared/theme.css";
3
- import PreviewToolbar from "../components/PreviewToolbar.astro";
4
- import type { KnownLocale } from "../types";
5
-
6
- interface Props {
7
- title: string;
8
- currentLocale?: KnownLocale;
9
- localeUrls?: Partial<Record<KnownLocale, string>>;
10
- hasSidebar?: boolean;
11
- }
12
-
13
- const {
14
- title,
15
- currentLocale = "es",
16
- localeUrls = {},
17
- hasSidebar = false,
18
- } = Astro.props;
19
- ---
20
-
21
- <!doctype html>
22
- <html lang={currentLocale}>
23
- <head>
24
- <meta charset="UTF-8" />
25
- <meta name="viewport" content="width=device-width" />
26
- <title>{title} · preview</title>
27
- <link rel="preconnect" href="https://fonts.googleapis.com" />
28
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
29
- <link
30
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap"
31
- rel="stylesheet"
32
- />
33
-
34
- <script is:inline>
35
- (function () {
36
- const saved = localStorage.getItem("theme") || "theme-dark";
37
- document.documentElement.classList.add(saved);
38
- })();
39
- </script>
40
- <slot name="head" />
41
- </head>
42
- <body>
43
- <PreviewToolbar currentLocale={currentLocale} localeUrls={localeUrls} />
44
- <div class:list={["page-wrapper", { "with-sidebar": hasSidebar }]}>
45
- {
46
- hasSidebar && (
47
- <aside class="sidebar-area">
48
- <slot name="sidebar" />
49
- </aside>
50
- )
51
- }
52
- <main>
53
- <slot />
54
- </main>
55
- </div>
56
- </body>
57
- </html>
58
-
59
- <style is:global>
60
- :root {
61
- --accent: #f43f5e;
62
- --primary-base: #9f1239;
63
- --cyan: #06b6d4;
64
- }
65
-
66
- .theme-dark,
67
- .theme-light {
68
- --text-main: var(--text-base);
69
- --border-color: var(--border-base);
70
- }
71
-
72
- *,
73
- *::before,
74
- *::after {
75
- box-sizing: border-box;
76
- }
77
-
78
- body {
79
- background-color: var(--bg-page);
80
- color: var(--text-base);
81
- margin: 0;
82
- min-height: 100vh;
83
- transition:
84
- background-color 0.3s ease,
85
- color 0.3s ease;
86
- font-family: Inter, sans-serif;
87
- }
88
-
89
- main {
90
- padding: 0 2rem;
91
- }
92
-
93
- .page-wrapper {
94
- display: flex;
95
- flex-direction: column;
96
- }
97
-
98
- .page-wrapper.with-sidebar {
99
- display: grid;
100
- grid-template-columns: 240px 1fr;
101
- min-height: 100vh;
102
- }
103
-
104
- .sidebar-area {
105
- position: sticky;
106
- top: 0;
107
- height: 100vh;
108
- overflow-y: auto;
109
- border-right: 1px solid var(--border-color);
110
- background: var(--bg-page);
111
- }
112
-
113
- @media (max-width: 768px) {
114
- .page-wrapper.with-sidebar {
115
- grid-template-columns: 1fr;
116
- }
117
-
118
- .sidebar-area {
119
- display: none;
120
- }
121
- }
122
- </style>
1
+ ---
2
+ import "@jjlmoya/utils-shared/theme.css";
3
+ import PreviewToolbar from "../components/PreviewToolbar.astro";
4
+ import type { KnownLocale } from "../types";
5
+
6
+ interface Props {
7
+ title: string;
8
+ currentLocale?: KnownLocale;
9
+ localeUrls?: Partial<Record<KnownLocale, string>>;
10
+ hasSidebar?: boolean;
11
+ }
12
+
13
+ const {
14
+ title,
15
+ currentLocale = "es",
16
+ localeUrls = {},
17
+ hasSidebar = false,
18
+ } = Astro.props;
19
+ ---
20
+
21
+ <!doctype html>
22
+ <html lang={currentLocale}>
23
+ <head>
24
+ <meta charset="UTF-8" />
25
+ <meta name="viewport" content="width=device-width" />
26
+ <title>{title} · preview</title>
27
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
28
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
29
+ <link
30
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap"
31
+ rel="stylesheet"
32
+ />
33
+
34
+ <script is:inline>
35
+ (function () {
36
+ const saved = localStorage.getItem("theme") || "theme-dark";
37
+ document.documentElement.classList.add(saved);
38
+ })();
39
+ </script>
40
+ <slot name="head" />
41
+ </head>
42
+ <body>
43
+ <PreviewToolbar currentLocale={currentLocale} localeUrls={localeUrls} />
44
+ <div class:list={["page-wrapper", { "with-sidebar": hasSidebar }]}>
45
+ {
46
+ hasSidebar && (
47
+ <aside class="sidebar-area">
48
+ <slot name="sidebar" />
49
+ </aside>
50
+ )
51
+ }
52
+ <main>
53
+ <slot />
54
+ </main>
55
+ </div>
56
+ </body>
57
+ </html>
58
+
59
+ <style is:global>
60
+ :root {
61
+ --accent: #f43f5e;
62
+ --primary-base: #9f1239;
63
+ --cyan: #06b6d4;
64
+ }
65
+
66
+ .theme-dark,
67
+ .theme-light {
68
+ --text-main: var(--text-base);
69
+ --border-color: var(--border-base);
70
+ }
71
+
72
+ *,
73
+ *::before,
74
+ *::after {
75
+ box-sizing: border-box;
76
+ }
77
+
78
+ body {
79
+ background-color: var(--bg-page);
80
+ color: var(--text-base);
81
+ margin: 0;
82
+ min-height: 100vh;
83
+ transition:
84
+ background-color 0.3s ease,
85
+ color 0.3s ease;
86
+ font-family: Inter, sans-serif;
87
+ }
88
+
89
+ main {
90
+ padding: 0 2rem;
91
+ }
92
+
93
+ .page-wrapper {
94
+ display: flex;
95
+ flex-direction: column;
96
+ }
97
+
98
+ .page-wrapper.with-sidebar {
99
+ display: grid;
100
+ grid-template-columns: 240px 1fr;
101
+ min-height: 100vh;
102
+ }
103
+
104
+ .sidebar-area {
105
+ position: sticky;
106
+ top: 0;
107
+ height: 100vh;
108
+ overflow-y: auto;
109
+ border-right: 1px solid var(--border-color);
110
+ background: var(--bg-page);
111
+ }
112
+
113
+ @media (max-width: 768px) {
114
+ .page-wrapper.with-sidebar {
115
+ grid-template-columns: 1fr;
116
+ }
117
+
118
+ .sidebar-area {
119
+ display: none;
120
+ }
121
+ }
122
+ </style>