@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,165 +1,165 @@
1
- import { bibliography } from '../bibliography';
2
- import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
3
- import type { EyepieceCalculatorLocaleContent } from '../entry';
4
-
5
- const title = '目镜计算器与视觉模拟器';
6
- const description = '为您的望远镜计算任何目镜的放大倍数、实际视野 (TFOV) 和出瞳直径。包含交互式视觉模拟器。';
7
-
8
- const ui = {
9
- toolTitle: '智能目镜计算器',
10
- telescopeTitle: '您的望远镜',
11
- apertureLabel: '口径 (mm)',
12
- focalLabel: '焦距 (mm)',
13
- presetsLabel: '常见型号',
14
- presetsPlaceholder: '选择望远镜...',
15
- addEyepieceBtn: '+ 添加目镜',
16
- eyepiecesTitle: '您的目镜',
17
- eyepieceFocal: '焦距 (mm)',
18
- eyepieceAfov: '表观视野 (°)',
19
- removeEyepiece: '删除',
20
- magLabel: '放大倍数',
21
- tfovLabel: '实际视野',
22
- pupilLabel: '出瞳直径',
23
- simulatorTitle: '视野模拟器',
24
- targetLabel: '您想看什么?',
25
- targetMoon: '月球',
26
- targetSaturn: '土星',
27
- targetPleiades: '昴星团',
28
- targetAndromeda: '仙女座星系',
29
- targetM13: 'M13 球状星团',
30
- statusDangerHighMag: '浪费钱:您正在强行让望远镜超出其物理极限。',
31
- statusDangerPupil: '光线浪费:出瞳直径超过 7mm。您的眼睛无法处理这么多光线。',
32
- statusWarningHighMag: '注意:此放大倍数需要极其稳定的天气(良好的视宁度)。',
33
- statusWarningLowMag: '放大倍数过低:低于推荐的最小值。您可能会看到副镜的影子或失去对比度。',
34
- statusPerfectDeepSky: '完美结合!非常适合观测弥散天体和深空(星团、星云)。',
35
- statusPerfectPlanetary: '完美结合!非常适合观测行星细节(土星环、木星条纹)。',
36
- statusPerfectGeneral: '出色的全能组合!适合各种天体的常规观测。',
37
- ctaText: '根据您目前的设备,我们建议使用放大倍数在 {min}x 到 {max}x 之间的目镜。',
38
- compareText: '比较目镜',
39
- apertureHelp: '镜筒的直径,通常可以在原厂标签或包装盒上找到。',
40
- focalHelp: '望远镜的焦距。',
41
- afovHelp: '目镜的表观视野。普罗索 (Plössl) 目镜通常为 52°,广角目镜为 68° 或更高。',
42
- };
43
-
44
- const faq: EyepieceCalculatorLocaleContent['faq'] = [
45
- {
46
- question: '望远镜的放大倍数是如何计算的?',
47
- answer: '公式很简单:将望远镜的焦距除以目镜的焦距。例如,焦距为 1000mm 的望远镜搭配 10mm 的目镜,其放大倍数为 100x。',
48
- },
49
- {
50
- question: '什么是出瞳直径,为什么它很重要?',
51
- answer: '它是从目镜射出并进入你眼睛的光束直径。计算方法是将望远镜口径除以放大倍数。如果它超过 7mm,你的眼睛将无法捕获所有光线,从而浪费望远镜的性能。',
52
- },
53
- {
54
- question: '我如何知道目镜的实际视野?',
55
- answer: '实际视野 (TFOV) 的计算方法是将目镜的表观视野 (AFOV) 除以放大倍数。这会告诉你在望远镜中实际能看到多少度的天空。',
56
- },
57
- ];
58
-
59
- const howTo: EyepieceCalculatorLocaleContent['howTo'] = [
60
- { name: '1. 输入望远镜数据', text: '输入镜筒的口径和焦距,或从列表中选择一个常见型号。' },
61
- { name: '2. 添加您的目镜', text: '输入目镜的焦距和表观视野以比较它们的性能。' },
62
- { name: '3. 模拟视野', text: '选择一个天体(月球、土星等)并点击目镜,查看图像如何变化以及是否在光学极限之内。' },
63
- ];
64
-
65
- const seo: EyepieceCalculatorLocaleContent['seo'] = [
66
- {
67
- type: 'summary',
68
- title: '选择理想目镜的关键因素',
69
- items: [
70
- '实际最大放大倍数:口径(毫米)的 2 倍(但受视宁度限制,通常为 200-250x)。',
71
- '最小有效放大倍数:口径除以 7(人类瞳孔的极限)。',
72
- '最佳范围:出瞳直径在 0.5mm 到 7mm 之间。',
73
- ],
74
- },
75
- { type: 'title', text: '如何为您的望远镜选择目镜:实用指南', level: 2 },
76
- {
77
- type: 'paragraph',
78
- html: '不要凭直觉购买目镜。良好观测的关键在于平衡望远镜的分辨率与人眼的生理极限。选择不当的目镜即使让世界上最好的望远镜也可能看起来模糊或太暗。',
79
- },
80
- { type: 'title', text: '1. 放大倍数的计算 (M)', level: 3 },
81
- {
82
- type: 'paragraph',
83
- html: '公式很简单:将望远镜焦距除以目镜焦距。 <br/><strong>公式:</strong> 望远镜焦距 / 目镜焦距 = 放大倍数。 <br/>例子:一个 1000mm 焦距的望远镜搭配 10mm 目镜,放大倍数为 100x。',
84
- },
85
- { type: 'title', text: '2. 最大放大倍数的迷思', level: 3 },
86
- {
87
- type: 'paragraph',
88
- html: '实际极限不是由目镜决定的,而是由望远镜的口径(直径)决定的。 <br/>- <strong>理论极限:</strong> 口径(毫米)的 2 倍。 <br/>- <strong>实际极限(平均视宁度):</strong> 无论使用何种望远镜,由于大气湍流的影响,放大倍数很少能超过 200x - 250x。强行提高放大倍数只会得到一个放大的模糊光斑。',
89
- },
90
- { type: 'title', text: '3. 出瞳直径:亮度因素', level: 3 },
91
- {
92
- type: 'paragraph',
93
- html: '出瞳直径是从目镜射向你眼睛的光束。 <br/>- <strong>如果大于 7mm:</strong> 你的眼睛无法张开那么大;你会损失光线,字面上就是在浪费钱。 <br/>- <strong>如果小于 0.5mm:</strong> 图像会变得非常暗,以至于你几乎看不到细节,并会开始看到自己眼中的\"浮游物\"。',
94
- },
95
- {
96
- type: 'table',
97
- headers: ['观测对象', '推荐放大倍数', '理想出瞳', '视觉体验'],
98
- rows: [
99
- ['星系与星云', '低倍 (25x - 50x)', '5mm - 7mm', '图像明亮,视野最大化。'],
100
- ['星团', '中倍 (80x - 120x)', '2mm', '恒星呈点状,背景天空黑暗。'],
101
- ['行星与月球', '高倍 (150x 或更高)', '0.7mm - 1mm', '细节最清晰,图像更小且更暗。'],
102
- ],
103
- },
104
- {
105
- type: 'diagnostic',
106
- variant: 'warning',
107
- title: '目视观测还是天体摄影?',
108
- icon: 'mdi:camera-off',
109
- badge: '技术提示',
110
- html: '至关重要的是要明确这些计算仅适用于 <strong>目视观测</strong>。许多初学者试图将这些放大倍数应用于天文相机,结果感到沮丧;在摄影中,计算取决于像素大小和角秒分辨率,而不是目镜。',
111
- },
112
- {
113
- type: 'diagnostic',
114
- variant: 'info',
115
- title: '大气视宁度的影响',
116
- icon: 'mdi:weather-windy',
117
- badge: '观测技巧',
118
- html: '即使拥有顶级的目镜,如果大气层不稳定(星光闪烁剧烈),高倍观测的效果也会大打折扣。这种现象被称为\"视宁度\"。在观测行星时,建议先从低倍率开始,观察图像的垂直稳定性。如果图像像是在水底一样晃动,那么降低倍率反而能看到更多细节。在大多数城市环境下,150x 到 200x 是最实用的上限。',
119
- },
120
- ];
121
-
122
- const faqSchema: WithContext<FAQPage> = {
123
- '@context': 'https://schema.org',
124
- '@type': 'FAQPage',
125
- mainEntity: faq.map((item) => ({
126
- '@type': 'Question',
127
- name: item.question,
128
- acceptedAnswer: { '@type': 'Answer', text: item.answer },
129
- })),
130
- };
131
-
132
- const howToSchema: WithContext<HowTo> = {
133
- '@context': 'https://schema.org',
134
- '@type': 'HowTo',
135
- name: title,
136
- description,
137
- step: howTo.map((step) => ({
138
- '@type': 'HowToStep',
139
- name: step.name,
140
- text: step.text,
141
- })),
142
- };
143
-
144
- const appSchema: WithContext<SoftwareApplication> = {
145
- '@context': 'https://schema.org',
146
- '@type': 'SoftwareApplication',
147
- name: title,
148
- description,
149
- applicationCategory: 'UtilitiesApplication',
150
- operatingSystem: 'Web',
151
- offers: { '@type': 'Offer', price: '0', priceCurrency: 'CNY' },
152
- inLanguage: 'zh',
153
- };
154
-
155
- export const content: EyepieceCalculatorLocaleContent = {
156
- slug: 'smart-eyepiece-calculator',
157
- title,
158
- description,
159
- ui,
160
- faq,
161
- howTo,
162
- seo,
163
- bibliography,
164
- schemas: [faqSchema as any, howToSchema as any, appSchema],
165
- };
1
+ import { bibliography } from '../bibliography';
2
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
3
+ import type { EyepieceCalculatorLocaleContent } from '../entry';
4
+
5
+ const title = '目镜计算器与视觉模拟器';
6
+ const description = '为您的望远镜计算任何目镜的放大倍数、实际视野 (TFOV) 和出瞳直径。包含交互式视觉模拟器。';
7
+
8
+ const ui = {
9
+ toolTitle: '智能目镜计算器',
10
+ telescopeTitle: '您的望远镜',
11
+ apertureLabel: '口径 (mm)',
12
+ focalLabel: '焦距 (mm)',
13
+ presetsLabel: '常见型号',
14
+ presetsPlaceholder: '选择望远镜...',
15
+ addEyepieceBtn: '+ 添加目镜',
16
+ eyepiecesTitle: '您的目镜',
17
+ eyepieceFocal: '焦距 (mm)',
18
+ eyepieceAfov: '表观视野 (°)',
19
+ removeEyepiece: '删除',
20
+ magLabel: '放大倍数',
21
+ tfovLabel: '实际视野',
22
+ pupilLabel: '出瞳直径',
23
+ simulatorTitle: '视野模拟器',
24
+ targetLabel: '您想看什么?',
25
+ targetMoon: '月球',
26
+ targetSaturn: '土星',
27
+ targetPleiades: '昴星团',
28
+ targetAndromeda: '仙女座星系',
29
+ targetM13: 'M13 球状星团',
30
+ statusDangerHighMag: '浪费钱:您正在强行让望远镜超出其物理极限。',
31
+ statusDangerPupil: '光线浪费:出瞳直径超过 7mm。您的眼睛无法处理这么多光线。',
32
+ statusWarningHighMag: '注意:此放大倍数需要极其稳定的天气(良好的视宁度)。',
33
+ statusWarningLowMag: '放大倍数过低:低于推荐的最小值。您可能会看到副镜的影子或失去对比度。',
34
+ statusPerfectDeepSky: '完美结合!非常适合观测弥散天体和深空(星团、星云)。',
35
+ statusPerfectPlanetary: '完美结合!非常适合观测行星细节(土星环、木星条纹)。',
36
+ statusPerfectGeneral: '出色的全能组合!适合各种天体的常规观测。',
37
+ ctaText: '根据您目前的设备,我们建议使用放大倍数在 {min}x 到 {max}x 之间的目镜。',
38
+ compareText: '比较目镜',
39
+ apertureHelp: '镜筒的直径,通常可以在原厂标签或包装盒上找到。',
40
+ focalHelp: '望远镜的焦距。',
41
+ afovHelp: '目镜的表观视野。普罗索 (Plössl) 目镜通常为 52°,广角目镜为 68° 或更高。',
42
+ };
43
+
44
+ const faq: EyepieceCalculatorLocaleContent['faq'] = [
45
+ {
46
+ question: '望远镜的放大倍数是如何计算的?',
47
+ answer: '公式很简单:将望远镜的焦距除以目镜的焦距。例如,焦距为 1000mm 的望远镜搭配 10mm 的目镜,其放大倍数为 100x。',
48
+ },
49
+ {
50
+ question: '什么是出瞳直径,为什么它很重要?',
51
+ answer: '它是从目镜射出并进入你眼睛的光束直径。计算方法是将望远镜口径除以放大倍数。如果它超过 7mm,你的眼睛将无法捕获所有光线,从而浪费望远镜的性能。',
52
+ },
53
+ {
54
+ question: '我如何知道目镜的实际视野?',
55
+ answer: '实际视野 (TFOV) 的计算方法是将目镜的表观视野 (AFOV) 除以放大倍数。这会告诉你在望远镜中实际能看到多少度的天空。',
56
+ },
57
+ ];
58
+
59
+ const howTo: EyepieceCalculatorLocaleContent['howTo'] = [
60
+ { name: '1. 输入望远镜数据', text: '输入镜筒的口径和焦距,或从列表中选择一个常见型号。' },
61
+ { name: '2. 添加您的目镜', text: '输入目镜的焦距和表观视野以比较它们的性能。' },
62
+ { name: '3. 模拟视野', text: '选择一个天体(月球、土星等)并点击目镜,查看图像如何变化以及是否在光学极限之内。' },
63
+ ];
64
+
65
+ const seo: EyepieceCalculatorLocaleContent['seo'] = [
66
+ {
67
+ type: 'summary',
68
+ title: '选择理想目镜的关键因素',
69
+ items: [
70
+ '实际最大放大倍数:口径(毫米)的 2 倍(但受视宁度限制,通常为 200-250x)。',
71
+ '最小有效放大倍数:口径除以 7(人类瞳孔的极限)。',
72
+ '最佳范围:出瞳直径在 0.5mm 到 7mm 之间。',
73
+ ],
74
+ },
75
+ { type: 'title', text: '如何为您的望远镜选择目镜:实用指南', level: 2 },
76
+ {
77
+ type: 'paragraph',
78
+ html: '不要凭直觉购买目镜。良好观测的关键在于平衡望远镜的分辨率与人眼的生理极限。选择不当的目镜即使让世界上最好的望远镜也可能看起来模糊或太暗。',
79
+ },
80
+ { type: 'title', text: '1. 放大倍数的计算 (M)', level: 3 },
81
+ {
82
+ type: 'paragraph',
83
+ html: '公式很简单:将望远镜焦距除以目镜焦距。 <br/><strong>公式:</strong> 望远镜焦距 / 目镜焦距 = 放大倍数。 <br/>例子:一个 1000mm 焦距的望远镜搭配 10mm 目镜,放大倍数为 100x。',
84
+ },
85
+ { type: 'title', text: '2. 最大放大倍数的迷思', level: 3 },
86
+ {
87
+ type: 'paragraph',
88
+ html: '实际极限不是由目镜决定的,而是由望远镜的口径(直径)决定的。 <br/>- <strong>理论极限:</strong> 口径(毫米)的 2 倍。 <br/>- <strong>实际极限(平均视宁度):</strong> 无论使用何种望远镜,由于大气湍流的影响,放大倍数很少能超过 200x - 250x。强行提高放大倍数只会得到一个放大的模糊光斑。',
89
+ },
90
+ { type: 'title', text: '3. 出瞳直径:亮度因素', level: 3 },
91
+ {
92
+ type: 'paragraph',
93
+ html: '出瞳直径是从目镜射向你眼睛的光束。 <br/>- <strong>如果大于 7mm:</strong> 你的眼睛无法张开那么大;你会损失光线,字面上就是在浪费钱。 <br/>- <strong>如果小于 0.5mm:</strong> 图像会变得非常暗,以至于你几乎看不到细节,并会开始看到自己眼中的\"浮游物\"。',
94
+ },
95
+ {
96
+ type: 'table',
97
+ headers: ['观测对象', '推荐放大倍数', '理想出瞳', '视觉体验'],
98
+ rows: [
99
+ ['星系与星云', '低倍 (25x - 50x)', '5mm - 7mm', '图像明亮,视野最大化。'],
100
+ ['星团', '中倍 (80x - 120x)', '2mm', '恒星呈点状,背景天空黑暗。'],
101
+ ['行星与月球', '高倍 (150x 或更高)', '0.7mm - 1mm', '细节最清晰,图像更小且更暗。'],
102
+ ],
103
+ },
104
+ {
105
+ type: 'diagnostic',
106
+ variant: 'warning',
107
+ title: '目视观测还是天体摄影?',
108
+ icon: 'mdi:camera-off',
109
+ badge: '技术提示',
110
+ html: '至关重要的是要明确这些计算仅适用于 <strong>目视观测</strong>。许多初学者试图将这些放大倍数应用于天文相机,结果感到沮丧;在摄影中,计算取决于像素大小和角秒分辨率,而不是目镜。',
111
+ },
112
+ {
113
+ type: 'diagnostic',
114
+ variant: 'info',
115
+ title: '大气视宁度的影响',
116
+ icon: 'mdi:weather-windy',
117
+ badge: '观测技巧',
118
+ html: '即使拥有顶级的目镜,如果大气层不稳定(星光闪烁剧烈),高倍观测的效果也会大打折扣。这种现象被称为\"视宁度\"。在观测行星时,建议先从低倍率开始,观察图像的垂直稳定性。如果图像像是在水底一样晃动,那么降低倍率反而能看到更多细节。在大多数城市环境下,150x 到 200x 是最实用的上限。',
119
+ },
120
+ ];
121
+
122
+ const faqSchema: WithContext<FAQPage> = {
123
+ '@context': 'https://schema.org',
124
+ '@type': 'FAQPage',
125
+ mainEntity: faq.map((item) => ({
126
+ '@type': 'Question',
127
+ name: item.question,
128
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
129
+ })),
130
+ };
131
+
132
+ const howToSchema: WithContext<HowTo> = {
133
+ '@context': 'https://schema.org',
134
+ '@type': 'HowTo',
135
+ name: title,
136
+ description,
137
+ step: howTo.map((step) => ({
138
+ '@type': 'HowToStep',
139
+ name: step.name,
140
+ text: step.text,
141
+ })),
142
+ };
143
+
144
+ const appSchema: WithContext<SoftwareApplication> = {
145
+ '@context': 'https://schema.org',
146
+ '@type': 'SoftwareApplication',
147
+ name: title,
148
+ description,
149
+ applicationCategory: 'UtilitiesApplication',
150
+ operatingSystem: 'Web',
151
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'CNY' },
152
+ inLanguage: 'zh',
153
+ };
154
+
155
+ export const content: EyepieceCalculatorLocaleContent = {
156
+ slug: 'smart-eyepiece-calculator',
157
+ title,
158
+ description,
159
+ ui,
160
+ faq,
161
+ howTo,
162
+ seo,
163
+ bibliography,
164
+ schemas: [faqSchema as any, howToSchema as any, appSchema],
165
+ };
@@ -1,14 +1,14 @@
1
- ---
2
- import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
- import { starExposureCalculator } from './index';
4
- import type { KnownLocale } from '../../types';
5
-
6
- interface Props {
7
- locale?: KnownLocale;
8
- }
9
-
10
- const { locale = 'es' } = Astro.props;
11
- const content = await starExposureCalculator.i18n[locale]?.();
12
- ---
13
-
14
- {content && <SharedBibliography links={content.bibliography} />}
1
+ ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { starExposureCalculator } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await starExposureCalculator.i18n[locale]?.();
12
+ ---
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,7 +1,7 @@
1
- import type { BibliographyEntry } from '../../types';
2
-
3
- export const bibliography: BibliographyEntry[] = [
4
- { name: 'Règle NPF ou Nightscape Photography Formula', url: 'https://sahavre.fr/wp/regle-npf-rule/' },
5
- { name: 'Why the 500 Rule is No Longer Enough', url: 'https://petapixel.com/2015/01/06/avoid-star-trails-following-500-rule/' },
6
- { name: 'Lonely Speck: Belichtungsrechner für Astrofotografie', url: 'https://www.lonelyspeck.com/advanced-astrophotography-shutter-time-calculator/' },
7
- ];
1
+ import type { BibliographyEntry } from '../../types';
2
+
3
+ export const bibliography: BibliographyEntry[] = [
4
+ { name: 'Règle NPF ou Nightscape Photography Formula', url: 'https://sahavre.fr/wp/regle-npf-rule/' },
5
+ { name: 'Why the 500 Rule is No Longer Enough', url: 'https://petapixel.com/2015/01/06/avoid-star-trails-following-500-rule/' },
6
+ { name: 'Lonely Speck: Belichtungsrechner für Astrofotografie', url: 'https://www.lonelyspeck.com/advanced-astrophotography-shutter-time-calculator/' },
7
+ ];