lightnet 2.15.2

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 (122) hide show
  1. package/CHANGELOG.md +428 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1 -0
  4. package/__e2e__/detailPage.spec.ts +0 -0
  5. package/__e2e__/fixtures/basics/astro.config.mjs +38 -0
  6. package/__e2e__/fixtures/basics/node_modules/.bin/astro +17 -0
  7. package/__e2e__/fixtures/basics/node_modules/.bin/astro-check +17 -0
  8. package/__e2e__/fixtures/basics/node_modules/.bin/tailwind +17 -0
  9. package/__e2e__/fixtures/basics/node_modules/.bin/tailwindcss +17 -0
  10. package/__e2e__/fixtures/basics/node_modules/.bin/tsc +17 -0
  11. package/__e2e__/fixtures/basics/node_modules/.bin/tsserver +17 -0
  12. package/__e2e__/fixtures/basics/package.json +19 -0
  13. package/__e2e__/fixtures/basics/public/favicon.svg +1 -0
  14. package/__e2e__/fixtures/basics/public/files/example.pdf +0 -0
  15. package/__e2e__/fixtures/basics/src/assets/logo.png +0 -0
  16. package/__e2e__/fixtures/basics/src/content/categories/christian-living.json +3 -0
  17. package/__e2e__/fixtures/basics/src/content/categories/teens.json +3 -0
  18. package/__e2e__/fixtures/basics/src/content/categories/theology.json +3 -0
  19. package/__e2e__/fixtures/basics/src/content/media/faithful-freestyle--en.json +13 -0
  20. package/__e2e__/fixtures/basics/src/content/media/how-to-kickflip--de.json +12 -0
  21. package/__e2e__/fixtures/basics/src/content/media/images/cover.jpg +0 -0
  22. package/__e2e__/fixtures/basics/src/content/media/images/how-to-kickflip--en.webp +0 -0
  23. package/__e2e__/fixtures/basics/src/content/media-collections/how-to-articles.json +3 -0
  24. package/__e2e__/fixtures/basics/src/content/media-types/book.json +9 -0
  25. package/__e2e__/fixtures/basics/src/content/media-types/video.json +7 -0
  26. package/__e2e__/fixtures/basics/src/content.config.ts +3 -0
  27. package/__e2e__/fixtures/basics/src/pages/[locale]/index.astro +14 -0
  28. package/__e2e__/fixtures/basics/src/translations/de.json +10 -0
  29. package/__e2e__/fixtures/basics/src/translations/en.json +10 -0
  30. package/__e2e__/fixtures/basics/tailwind.config.mjs +8 -0
  31. package/__e2e__/homepage.spec.ts +108 -0
  32. package/__e2e__/search.spec.ts +16 -0
  33. package/__e2e__/test-utils.ts +80 -0
  34. package/__tests__/pages/details-page/create-content-metadata.spec.ts +104 -0
  35. package/__tests__/utils/markdown.spec.ts +33 -0
  36. package/exports/components.ts +9 -0
  37. package/exports/content.ts +8 -0
  38. package/exports/details-page.ts +1 -0
  39. package/exports/i18n.ts +2 -0
  40. package/exports/index.ts +6 -0
  41. package/exports/utils.ts +2 -0
  42. package/package.json +54 -0
  43. package/playwright.config.ts +30 -0
  44. package/src/astro-integration/config.ts +185 -0
  45. package/src/astro-integration/integration.ts +74 -0
  46. package/src/astro-integration/project-context.ts +5 -0
  47. package/src/astro-integration/virtual.d.ts +14 -0
  48. package/src/astro-integration/vite-plugin-lightnet-config.ts +55 -0
  49. package/src/components/CategoriesOverview.astro +37 -0
  50. package/src/components/Gallery.astro +121 -0
  51. package/src/components/Hero.astro +82 -0
  52. package/src/components/HighlightSection.astro +71 -0
  53. package/src/components/Icon.tsx +27 -0
  54. package/src/components/MediaItemList.astro +84 -0
  55. package/src/components/Section.astro +49 -0
  56. package/src/content/astro-image.ts +14 -0
  57. package/src/content/content-schema-internal.ts +52 -0
  58. package/src/content/content-schema.ts +263 -0
  59. package/src/content/external-api.ts +7 -0
  60. package/src/content/get-categories.ts +15 -0
  61. package/src/content/get-languages.ts +14 -0
  62. package/src/content/get-media-items.ts +27 -0
  63. package/src/content/get-media-types.ts +23 -0
  64. package/src/content/query-media-items.ts +89 -0
  65. package/src/content/resolve-category-label.ts +20 -0
  66. package/src/i18n/get-locale-paths.ts +8 -0
  67. package/src/i18n/languages.ts +10 -0
  68. package/src/i18n/locals.d.ts +38 -0
  69. package/src/i18n/locals.ts +28 -0
  70. package/src/i18n/resolve-default-locale.ts +30 -0
  71. package/src/i18n/resolve-language.ts +25 -0
  72. package/src/i18n/resolve-locales.ts +5 -0
  73. package/src/i18n/translate.ts +64 -0
  74. package/src/i18n/translations/de.json +25 -0
  75. package/src/i18n/translations/en.json +25 -0
  76. package/src/layouts/MarkdownPage.astro +11 -0
  77. package/src/layouts/Page.astro +54 -0
  78. package/src/layouts/components/Favicon.astro +32 -0
  79. package/src/layouts/components/LanguagePicker.astro +38 -0
  80. package/src/layouts/components/Menu.astro +28 -0
  81. package/src/layouts/components/MenuItem.astro +21 -0
  82. package/src/layouts/components/PageNavigation.astro +65 -0
  83. package/src/layouts/components/PageTitle.astro +44 -0
  84. package/src/layouts/components/PreloadReact.tsx +3 -0
  85. package/src/pages/404.astro +14 -0
  86. package/src/pages/RedirectToDefaultLocale.astro +3 -0
  87. package/src/pages/api/search-response.ts +14 -0
  88. package/src/pages/api/search.ts +47 -0
  89. package/src/pages/details-page/DefaultDetails.astro +44 -0
  90. package/src/pages/details-page/DetailsPage.astro +53 -0
  91. package/src/pages/details-page/VideoDetails.astro +43 -0
  92. package/src/pages/details-page/components/Authors.astro +19 -0
  93. package/src/pages/details-page/components/Content.astro +73 -0
  94. package/src/pages/details-page/components/Cover.astro +35 -0
  95. package/src/pages/details-page/components/Description.astro +26 -0
  96. package/src/pages/details-page/components/MediaCollection.astro +39 -0
  97. package/src/pages/details-page/components/MediaCollections.astro +21 -0
  98. package/src/pages/details-page/components/OpenButton.astro +34 -0
  99. package/src/pages/details-page/components/SectionTitle.astro +8 -0
  100. package/src/pages/details-page/components/ShareButton.astro +58 -0
  101. package/src/pages/details-page/components/Title.astro +18 -0
  102. package/src/pages/details-page/components/VideoPlayer.astro +78 -0
  103. package/src/pages/details-page/components/details/Categories.astro +31 -0
  104. package/src/pages/details-page/components/details/Details.astro +17 -0
  105. package/src/pages/details-page/components/details/Label.astro +3 -0
  106. package/src/pages/details-page/components/details/Languages.astro +46 -0
  107. package/src/pages/details-page/utils/create-content-metadata.ts +78 -0
  108. package/src/pages/search-page/Search.tsx +71 -0
  109. package/src/pages/search-page/SearchPage.astro +51 -0
  110. package/src/pages/search-page/components/ResultList.tsx +135 -0
  111. package/src/pages/search-page/components/SearchFilter.tsx +189 -0
  112. package/src/pages/search-page/hooks/use-debounce.ts +17 -0
  113. package/src/pages/search-page/hooks/use-search.ts +95 -0
  114. package/src/pages/search-page/types.ts +9 -0
  115. package/src/pages/search-page/utils/search-translations.ts +22 -0
  116. package/src/pages/search-page/utils/use-provided-translations.ts +5 -0
  117. package/src/utils/markdown.ts +41 -0
  118. package/src/utils/paths.ts +45 -0
  119. package/src/utils/urls.ts +29 -0
  120. package/src/utils/verify-schema.ts +38 -0
  121. package/tailwind.config.ts +56 -0
  122. package/vitest.config.js +19 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,428 @@
1
+ # @lightnet/library
2
+
3
+ ## 2.15.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#189](https://github.com/LightNetDev/lightnet/pull/189) [`1e4458a`](https://github.com/LightNetDev/lightnet/commit/1e4458a000684273337b7f9705c0e59fd98b36d2) Thanks [@si-fab](https://github.com/si-fab)! - Rename "LightNet Library" to "LightNet"
8
+
9
+ ## 2.15.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#185](https://github.com/LightNetDev/lightnet-library/pull/185) [`c04b9eb`](https://github.com/LightNetDev/lightnet-library/commit/c04b9ebb263aaab89d6d4a79862a7b0eb6dfcf33) Thanks [@si-fab](https://github.com/si-fab)! - Fix missing logo was failing the build.
14
+
15
+ ## 2.15.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Makes logo config optional.
20
+
21
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Rename `Section` component properties
22
+
23
+ - change property name `width` to `maxWidth`
24
+ - change property value `content` to `prose`
25
+
26
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Add config option to change the size of the header logo.
27
+
28
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Improve validation of label properties.
29
+
30
+ This adds more validation to `label` properties. They all support fixed strings. Currently we are not able to identify if a label value is a translation key or a fixed string. With this release, labels that start with `custom.` or `ln.` prefix will be treated as translation keys. They will fail the build if no translation is found.
31
+
32
+ Prefixing custom translation strings with `custom.` is non mandatory but recommended as it improves validation.
33
+
34
+ This is changed:
35
+
36
+ - rename translate parameter `fallbackToKey` to `allowFixedStrings`.
37
+ - change behavior of the translate function. If `allowFixedStrings` is set to `true`, return the translation key if no translation is found. But fail if the key starts with `custom.` or `ln.` prefix.
38
+ - change example to reflect the new convention of prefixing custom translation keys with `custom.`.
39
+
40
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Implement `landscape` layout for Gallery component.
41
+
42
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Add Right-to-Left support
43
+
44
+ ### Patch Changes
45
+
46
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Remove unused `withoutDefaultTopMargin` option from Section Component.
47
+
48
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Make Icon `className` a required property.
49
+
50
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Adds option to flip an icon.
51
+
52
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Improves error message for missing translations.
53
+
54
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Remove `lang` property from Section component.
55
+
56
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Improve visibility of Primary Button on Hightlight Section
57
+
58
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Require `ariaLabel` param on icons.
59
+
60
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Support fixed strings for category labels.
61
+
62
+ - [#183](https://github.com/LightNetDev/lightnet-library/pull/183) [`9c0bb8d`](https://github.com/LightNetDev/lightnet-library/commit/9c0bb8d2508f8bfbb18dd224a36e7f5d75f89268) Thanks [@si-fab](https://github.com/si-fab)! - Support fixed strings for media types.
63
+
64
+ ## 2.14.2
65
+
66
+ ### Patch Changes
67
+
68
+ - [#181](https://github.com/LightNetDev/lightnet-library/pull/181) [`d5ab239`](https://github.com/LightNetDev/lightnet-library/commit/d5ab239ae4ebae45d50c40c47c62e7891d316585) Thanks [@si-fab](https://github.com/si-fab)! - Rename HightlightSection link.label to link.text.
69
+
70
+ - [#181](https://github.com/LightNetDev/lightnet-library/pull/181) [`d5ab239`](https://github.com/LightNetDev/lightnet-library/commit/d5ab239ae4ebae45d50c40c47c62e7891d316585) Thanks [@si-fab](https://github.com/si-fab)! - Change language 'name' to be a 'label' that can be translated.
71
+
72
+ ## 2.14.1
73
+
74
+ ### Patch Changes
75
+
76
+ - [#180](https://github.com/LightNetDev/lightnet-library/pull/180) [`fcf7414`](https://github.com/LightNetDev/lightnet-library/commit/fcf741427c247c09412e58a3e255294f7b0e69cd) Thanks [@si-fab](https://github.com/si-fab)! - Rename media-type detailsPage.type to detailPage.layout
77
+
78
+ - [#178](https://github.com/LightNetDev/lightnet-library/pull/178) [`71bf2cf`](https://github.com/LightNetDev/lightnet-library/commit/71bf2cf92450c74c1521dd235e2c87bf827c9cc6) Thanks [@si-fab](https://github.com/si-fab)! - Breaking Change: Renames media-collection `name` property to `label`.
79
+
80
+ ## 2.14.0
81
+
82
+ ### Minor Changes
83
+
84
+ - [#176](https://github.com/LightNetDev/lightnet-library/pull/176) [`6b4a664`](https://github.com/LightNetDev/lightnet-library/commit/6b4a66490079b0688577e6052ab9d7f2d0686170) Thanks [@si-fab](https://github.com/si-fab)! - Rename `ImageSection` to `HighlightSection`
85
+
86
+ - [#176](https://github.com/LightNetDev/lightnet-library/pull/176) [`6b4a664`](https://github.com/LightNetDev/lightnet-library/commit/6b4a66490079b0688577e6052ab9d7f2d0686170) Thanks [@si-fab](https://github.com/si-fab)! - Breaking Change: Changes how translations are used.
87
+
88
+ Previously you would do something like this:
89
+
90
+ ```js
91
+ const t = useTranslate(Astro.currentLocale)
92
+
93
+ const translatedString = t("key")
94
+ ```
95
+
96
+ Now you do this:
97
+
98
+ ```js
99
+ const translatedString = Astro.locals.i18n.t("key")
100
+ ```
101
+
102
+ - [#176](https://github.com/LightNetDev/lightnet-library/pull/176) [`6b4a664`](https://github.com/LightNetDev/lightnet-library/commit/6b4a66490079b0688577e6052ab9d7f2d0686170) Thanks [@si-fab](https://github.com/si-fab)! - Extend Astro.locals.i18n object
103
+
104
+ Provide:
105
+
106
+ - `defaultLocale`
107
+ - `currentLocale`
108
+ - `locales`
109
+
110
+ ### Patch Changes
111
+
112
+ - [#176](https://github.com/LightNetDev/lightnet-library/pull/176) [`6b4a664`](https://github.com/LightNetDev/lightnet-library/commit/6b4a66490079b0688577e6052ab9d7f2d0686170) Thanks [@si-fab](https://github.com/si-fab)! - Renamed default images folder from `\_images` to `images`.
113
+
114
+ To update your project, rename the folder `src/\_images` to `src/images`.
115
+ Also update all image paths inside your media content files.
116
+
117
+ Alternatively, you can keep the old name `_images`. In this case, you need to set the `imagesFolder` config option in your `astro.config.mjs` file to `_images`.
118
+
119
+ ## 2.13.0
120
+
121
+ ### Minor Changes
122
+
123
+ - [#174](https://github.com/LightNetDev/lightnet-library/pull/174) [`bb011bf`](https://github.com/LightNetDev/lightnet-library/commit/bb011bfef8c2d7745e3c3417f7f6ef608867e184) Thanks [@si-fab](https://github.com/si-fab)! - Update Astro to version 5.
124
+
125
+ Fix your project by doing this:
126
+
127
+ - move `/src/content/config.ts` to `/src/content.config.ts`.
128
+ - update tsconfig.json to match the following:
129
+
130
+ ```json
131
+ {
132
+ "extends": "astro/tsconfigs/strict",
133
+ "include": [".astro/types.d.ts", "**/*"],
134
+ "exclude": ["dist"]
135
+ }
136
+ ```
137
+
138
+ - remove `src/env.d.ts`
139
+ - add `// @ts-check` on top of `astro.config.mjs`
140
+
141
+ ### Patch Changes
142
+
143
+ - [#174](https://github.com/LightNetDev/lightnet-library/pull/174) [`bb011bf`](https://github.com/LightNetDev/lightnet-library/commit/bb011bfef8c2d7745e3c3417f7f6ef608867e184) Thanks [@si-fab](https://github.com/si-fab)! - Improve typings of `Hero` component.
144
+
145
+ ## 2.12.1
146
+
147
+ ### Patch Changes
148
+
149
+ - [#166](https://github.com/LightNetDev/lightnet-library/pull/166) [`41f92d3`](https://github.com/LightNetDev/lightnet-library/commit/41f92d3c21447623fd0545933087dbbcb790fb09) Thanks [@si-fab](https://github.com/si-fab)! - Allow fixed strings for main menu items.
150
+
151
+ - [#166](https://github.com/LightNetDev/lightnet-library/pull/166) [`41f92d3`](https://github.com/LightNetDev/lightnet-library/commit/41f92d3c21447623fd0545933087dbbcb790fb09) Thanks [@si-fab](https://github.com/si-fab)! - Automatically infer `isExternal` for main menu items.
152
+
153
+ ## 2.12.0
154
+
155
+ ### Minor Changes
156
+
157
+ - [#162](https://github.com/LightNetDev/lightnet-library/pull/162) [`c6aea9a`](https://github.com/LightNetDev/lightnet-library/commit/c6aea9acb836024da9f7bf5a8e474dfbf9aaec73) Thanks [@si-fab](https://github.com/si-fab)! - Adds `internalDomains` config option. To include domains that should not show as external e.g. for a large file server.
158
+
159
+ ### Patch Changes
160
+
161
+ - [#162](https://github.com/LightNetDev/lightnet-library/pull/162) [`c6aea9a`](https://github.com/LightNetDev/lightnet-library/commit/c6aea9acb836024da9f7bf5a8e474dfbf9aaec73) Thanks [@si-fab](https://github.com/si-fab)! - Removes unused config openAction label for video details page.
162
+
163
+ ## 2.11.3
164
+
165
+ ### Patch Changes
166
+
167
+ - [#158](https://github.com/LightNetDev/lightnet-library/pull/158) [`c7e752d`](https://github.com/LightNetDev/lightnet-library/commit/c7e752d0af37d3b8d70cfc4fba14e767537aec9e) Thanks [@si-fab](https://github.com/si-fab)! - Simplify config format.
168
+
169
+ This changes the structure of the language config. `locales`, `defaultLocale`, `translations` have been moved into
170
+ the `languages` array.
171
+
172
+ The redirecting `index.astro` on root level can now be removed.
173
+
174
+ ## 2.11.2
175
+
176
+ ### Patch Changes
177
+
178
+ - [#147](https://github.com/LightNetDev/lightnet-library/pull/147) [`4e4b6e3`](https://github.com/LightNetDev/lightnet-library/commit/4e4b6e356400ce548e014ee824e87845651bc9f8) Thanks [@si-fab](https://github.com/si-fab)! - Improved details page layout/behavior.
179
+
180
+ ## 2.11.1
181
+
182
+ ### Patch Changes
183
+
184
+ - [#141](https://github.com/LightNetDev/lightnet-library/pull/141) [`cd1a9a1`](https://github.com/LightNetDev/lightnet-library/commit/cd1a9a1fc7f85a503207d333c7cb0b17825782ef) Thanks [@si-fab](https://github.com/si-fab)! - Fixes missing download attribute in content section.
185
+
186
+ ## 2.11.0
187
+
188
+ ### Minor Changes
189
+
190
+ - [#135](https://github.com/LightNetDev/lightnet-library/pull/135) [`f67143d`](https://github.com/LightNetDev/lightnet-library/commit/f67143d500dc81760b740c4f27d04ad5f41d240f) Thanks [@si-fab](https://github.com/si-fab)! - Improve details page design. Allow for any number of content links on all pages.
191
+
192
+ ### Patch Changes
193
+
194
+ - [#135](https://github.com/LightNetDev/lightnet-library/pull/135) [`f67143d`](https://github.com/LightNetDev/lightnet-library/commit/f67143d500dc81760b740c4f27d04ad5f41d240f) Thanks [@si-fab](https://github.com/si-fab)! - Restructure media types config.
195
+
196
+ - [#140](https://github.com/LightNetDev/lightnet-library/pull/140) [`079dfdc`](https://github.com/LightNetDev/lightnet-library/commit/079dfdc54c9be4a71f890846ce1e82dd3d98699f) Thanks [@si-fab](https://github.com/si-fab)! - Cleanup details pages export.
197
+
198
+ - [#135](https://github.com/LightNetDev/lightnet-library/pull/135) [`f67143d`](https://github.com/LightNetDev/lightnet-library/commit/f67143d500dc81760b740c4f27d04ad5f41d240f) Thanks [@si-fab](https://github.com/si-fab)! - Do not use Array.toSorted function as this is not widely available with nodejs.
199
+
200
+ ## 2.10.1
201
+
202
+ ### Patch Changes
203
+
204
+ - [#133](https://github.com/LightNetDev/lightnet-library/pull/133) [`ed8d0f4`](https://github.com/LightNetDev/lightnet-library/commit/ed8d0f41feb787e6cd36e38b6d4feb3b64053fa9) Thanks [@si-fab](https://github.com/si-fab)! - Vertically center align search result item content.
205
+
206
+ ## 2.10.0
207
+
208
+ ### Minor Changes
209
+
210
+ - [#130](https://github.com/LightNetDev/lightnet-library/pull/130) [`43f3aa2`](https://github.com/LightNetDev/lightnet-library/commit/43f3aa283f494daaa90708fac196ceaba5393545) Thanks [@si-fab](https://github.com/si-fab)! - Simplifies astro collection config by introducing a shared `LIGHTNET_COLLECTIONS` object.
211
+
212
+ ## 2.9.8
213
+
214
+ ### Patch Changes
215
+
216
+ - [#128](https://github.com/LightNetDev/lightnet-library/pull/128) [`46af0e3`](https://github.com/LightNetDev/lightnet-library/commit/46af0e3ad00b16f60ad541e3c9d0a36647bf6bcd) Thanks [@si-fab](https://github.com/si-fab)! - Renames collection `title` to `name`.
217
+
218
+ - [#128](https://github.com/LightNetDev/lightnet-library/pull/128) [`46af0e3`](https://github.com/LightNetDev/lightnet-library/commit/46af0e3ad00b16f60ad541e3c9d0a36647bf6bcd) Thanks [@si-fab](https://github.com/si-fab)! - Improves search config.
219
+
220
+ ## 2.9.7
221
+
222
+ ### Patch Changes
223
+
224
+ - [#125](https://github.com/LightNetDev/lightnet-library/pull/125) [`bf6ea58`](https://github.com/LightNetDev/lightnet-library/commit/bf6ea58e7bf02e2066e283ced97cc18423777071) Thanks [@si-fab](https://github.com/si-fab)! - Makes type icons on gallery even bigger.
225
+
226
+ - [#127](https://github.com/LightNetDev/lightnet-library/pull/127) [`0adf355`](https://github.com/LightNetDev/lightnet-library/commit/0adf3555c21bd19120ef8982ca3f5d7e139f433b) Thanks [@si-fab](https://github.com/si-fab)! - Support rtl text fragments.
227
+
228
+ ## 2.9.6
229
+
230
+ ### Patch Changes
231
+
232
+ - [#123](https://github.com/LightNetDev/lightnet-library/pull/123) [`a45a6dd`](https://github.com/LightNetDev/lightnet-library/commit/a45a6dd47e88f610ce1c81e943628dc1a073e5a5) Thanks [@si-fab](https://github.com/si-fab)! - Increases gallery type icon size.
233
+
234
+ ## 2.9.5
235
+
236
+ ### Patch Changes
237
+
238
+ - [#121](https://github.com/LightNetDev/lightnet-library/pull/121) [`4c6fed3`](https://github.com/LightNetDev/lightnet-library/commit/4c6fed36dea2ea26325bc847487860b419e299e0) Thanks [@si-fab](https://github.com/si-fab)! - Add type indicator on gallery titles.
239
+
240
+ ## 2.9.4
241
+
242
+ ### Patch Changes
243
+
244
+ - [#118](https://github.com/LightNetDev/lightnet-library/pull/118) [`7c406a0`](https://github.com/LightNetDev/lightnet-library/commit/7c406a0c4a555804249951a7a91dee3545b308b8) Thanks [@si-fab](https://github.com/si-fab)! - Adds more spacing on HomePage + makes it more consistent
245
+
246
+ - [#118](https://github.com/LightNetDev/lightnet-library/pull/118) [`7c406a0`](https://github.com/LightNetDev/lightnet-library/commit/7c406a0c4a555804249951a7a91dee3545b308b8) Thanks [@si-fab](https://github.com/si-fab)! - Fixes search is resetting the all languages filter on browser back navigation.
247
+
248
+ - [#118](https://github.com/LightNetDev/lightnet-library/pull/118) [`7c406a0`](https://github.com/LightNetDev/lightnet-library/commit/7c406a0c4a555804249951a7a91dee3545b308b8) Thanks [@si-fab](https://github.com/si-fab)! - Sorts UI language picker alphabetically.
249
+
250
+ - [#118](https://github.com/LightNetDev/lightnet-library/pull/118) [`7c406a0`](https://github.com/LightNetDev/lightnet-library/commit/7c406a0c4a555804249951a7a91dee3545b308b8) Thanks [@si-fab](https://github.com/si-fab)! - Sorts language, categories, types filter alphabetically
251
+
252
+ ## 2.9.3
253
+
254
+ ### Patch Changes
255
+
256
+ - [#116](https://github.com/LightNetDev/lightnet-library/pull/116) [`f913b5c`](https://github.com/LightNetDev/lightnet-library/commit/f913b5c200fd60333513120c10f76a5ee48336cd) Thanks [@si-fab](https://github.com/si-fab)! - Hides obsolete metadata and filter for types,categories,languages.
257
+
258
+ ## 2.9.2
259
+
260
+ ### Patch Changes
261
+
262
+ - [#114](https://github.com/LightNetDev/lightnet-library/pull/114) [`65acd41`](https://github.com/LightNetDev/lightnet-library/commit/65acd4154bd791f14d59e3842ad1d4a29774120c) Thanks [@si-fab](https://github.com/si-fab)! - Adds indicator of currently hovered gallery item.
263
+
264
+ - [#114](https://github.com/LightNetDev/lightnet-library/pull/114) [`65acd41`](https://github.com/LightNetDev/lightnet-library/commit/65acd4154bd791f14d59e3842ad1d4a29774120c) Thanks [@si-fab](https://github.com/si-fab)! - Changes border radius of gallery items.
265
+
266
+ - [#114](https://github.com/LightNetDev/lightnet-library/pull/114) [`65acd41`](https://github.com/LightNetDev/lightnet-library/commit/65acd4154bd791f14d59e3842ad1d4a29774120c) Thanks [@si-fab](https://github.com/si-fab)! - Increase title fonts on home screen, make them more consistent.
267
+
268
+ ## 2.9.1
269
+
270
+ ### Patch Changes
271
+
272
+ - [#112](https://github.com/LightNetDev/lightnet-library/pull/112) [`47bbd2b`](https://github.com/LightNetDev/lightnet-library/commit/47bbd2b7c10e6e3f0342109384a8fa7203e3ff2c) Thanks [@si-fab](https://github.com/si-fab)! - Renames searchPage config option from `filterByUILanguage` to `filterByLocale`.
273
+
274
+ ## 2.9.0
275
+
276
+ ### Minor Changes
277
+
278
+ - [#110](https://github.com/LightNetDev/lightnet-library/pull/110) [`eabc739`](https://github.com/LightNetDev/lightnet-library/commit/eabc739977a33d4921c68ddbe73eca3611a739e0) Thanks [@si-fab](https://github.com/si-fab)! - Adds option to filter search page by ui language by default.
279
+
280
+ - [#110](https://github.com/LightNetDev/lightnet-library/pull/110) [`eabc739`](https://github.com/LightNetDev/lightnet-library/commit/eabc739977a33d4921c68ddbe73eca3611a739e0) Thanks [@si-fab](https://github.com/si-fab)! - Adds details page export.
281
+
282
+ ### Patch Changes
283
+
284
+ - [#110](https://github.com/LightNetDev/lightnet-library/pull/110) [`eabc739`](https://github.com/LightNetDev/lightnet-library/commit/eabc739977a33d4921c68ddbe73eca3611a739e0) Thanks [@si-fab](https://github.com/si-fab)! - Adds additional line for title on gallery view.
285
+
286
+ ## 2.8.0
287
+
288
+ ### Minor Changes
289
+
290
+ - [#108](https://github.com/LightNetDev/lightnet-library/pull/108) [`a4fa683`](https://github.com/LightNetDev/lightnet-library/commit/a4fa68330eb6a677a6e0826b8ba084962c977548) Thanks [@si-fab](https://github.com/si-fab)! - Adds support for filtering media items by language.
291
+
292
+ ### Patch Changes
293
+
294
+ - [#108](https://github.com/LightNetDev/lightnet-library/pull/108) [`a4fa683`](https://github.com/LightNetDev/lightnet-library/commit/a4fa68330eb6a677a6e0826b8ba084962c977548) Thanks [@si-fab](https://github.com/si-fab)! - Adds support for translation keys as page titles and logo alts
295
+
296
+ - [#108](https://github.com/LightNetDev/lightnet-library/pull/108) [`a4fa683`](https://github.com/LightNetDev/lightnet-library/commit/a4fa68330eb6a677a6e0826b8ba084962c977548) Thanks [@si-fab](https://github.com/si-fab)! - Add customization options for Hero and ImageSection.
297
+
298
+ ## 2.7.0
299
+
300
+ ### Minor Changes
301
+
302
+ - [#102](https://github.com/LightNetDev/lightnet-library/pull/102) [`61a47b8`](https://github.com/LightNetDev/lightnet-library/commit/61a47b8562c992b7e7906a2e77bdf015315912e0) Thanks [@si-fab](https://github.com/si-fab)! - Adds media collections feature.
303
+
304
+ - [#102](https://github.com/LightNetDev/lightnet-library/pull/102) [`61a47b8`](https://github.com/LightNetDev/lightnet-library/commit/61a47b8562c992b7e7906a2e77bdf015315912e0) Thanks [@si-fab](https://github.com/si-fab)! - Removes sortBy and maxItems on gallery.
305
+
306
+ - [#106](https://github.com/LightNetDev/lightnet-library/pull/106) [`3d1d4a3`](https://github.com/LightNetDev/lightnet-library/commit/3d1d4a3306c25e907810c9ae684d5078ac753213) Thanks [@si-fab](https://github.com/si-fab)! - Adds custom details pages
307
+
308
+ - [#102](https://github.com/LightNetDev/lightnet-library/pull/102) [`61a47b8`](https://github.com/LightNetDev/lightnet-library/commit/61a47b8562c992b7e7906a2e77bdf015315912e0) Thanks [@si-fab](https://github.com/si-fab)! - Adds LightNet API layer.
309
+
310
+ ## 2.6.0
311
+
312
+ ### Minor Changes
313
+
314
+ - [#94](https://github.com/LightNetDev/lightnet-library/pull/94) [`4b26988`](https://github.com/LightNetDev/lightnet-library/commit/4b2698865fd70a153dd5f5313f3b4f1c71f34e42) Thanks [@si-fab](https://github.com/si-fab)! - Removes categories from the core and moves them into a content collection.
315
+
316
+ ## 2.5.1
317
+
318
+ ### Patch Changes
319
+
320
+ - [#92](https://github.com/LightNetDev/lightnet-library/pull/92) [`3ea503d`](https://github.com/LightNetDev/lightnet-library/commit/3ea503d3bee4d6de57f777d470965d880fa12b88) Thanks [@si-fab](https://github.com/si-fab)! - Use astro:content `reference` for a media item`s `type` attribute.
321
+
322
+ ## 2.5.0
323
+
324
+ ### Minor Changes
325
+
326
+ - [#81](https://github.com/LightNetDev/lightnet-library/pull/81) [`3c82584`](https://github.com/LightNetDev/lightnet-library/commit/3c82584f894b7df04823edde7c8d78c20ce402e6) Thanks [@si-fab](https://github.com/si-fab)! - Add gallery options: maxItems, sortBy, new layouts
327
+
328
+ ## 2.4.5
329
+
330
+ ### Patch Changes
331
+
332
+ - [#80](https://github.com/LightNetDev/lightnet-library/pull/80) [`16e1369`](https://github.com/LightNetDev/lightnet-library/commit/16e1369a7d65f077a83b3de567aab3c9245b3a35) Thanks [@si-fab](https://github.com/si-fab)! - Update dependencies
333
+
334
+ - [#75](https://github.com/LightNetDev/lightnet-library/pull/75) [`3f9088c`](https://github.com/LightNetDev/lightnet-library/commit/3f9088cc15f93a0005e9c53f417ec9ee3db69667) Thanks [@si-fab](https://github.com/si-fab)! - Allows to rewrite root to /[locale] without requiring a trailing slash.
335
+
336
+ ## 2.4.4
337
+
338
+ ### Patch Changes
339
+
340
+ - [#73](https://github.com/LightNetDev/lightnet-library/pull/73) [`2576496`](https://github.com/LightNetDev/lightnet-library/commit/25764969ba354dd4a57ed96cba61b5395b775d45) Thanks [@si-fab](https://github.com/si-fab)! - Fixes categories filter not beeing translated on search page.
341
+
342
+ ## 2.4.3
343
+
344
+ ### Patch Changes
345
+
346
+ - [#70](https://github.com/LightNetDev/lightnet-library/pull/70) [`01ff2fb`](https://github.com/LightNetDev/lightnet-library/commit/01ff2fb5a9b89ff9296cc597eedd59d99de03974) Thanks [@si-fab](https://github.com/si-fab)! - Refactoring & dependency updates
347
+
348
+ ## 2.4.2
349
+
350
+ ### Patch Changes
351
+
352
+ - [#68](https://github.com/LightNetDev/lightnet-library/pull/68) [`2792858`](https://github.com/LightNetDev/lightnet-library/commit/2792858d4bb3bc6589f563c86ff6d35ce19a48e7) Thanks [@si-fab](https://github.com/si-fab)! - Updates external dependencies.
353
+
354
+ ## 2.4.1
355
+
356
+ ### Patch Changes
357
+
358
+ - [#55](https://github.com/LightNetDev/lightnet-library/pull/55) [`61b158b`](https://github.com/LightNetDev/lightnet-library/commit/61b158ba4e3ceccb955f838e1adededfd889cbb0) Thanks [@si-fab](https://github.com/si-fab)! - Improve header title style.
359
+
360
+ ## 2.4.0
361
+
362
+ ### Minor Changes
363
+
364
+ - [#53](https://github.com/LightNetDev/lightnet-library/pull/53) [`b33cb3f`](https://github.com/LightNetDev/lightnet-library/commit/b33cb3f01aee824b45a7ca362d414dd2b8731073) Thanks [@si-fab](https://github.com/si-fab)! - Add `document` details page.
365
+
366
+ ## 2.3.3
367
+
368
+ ### Patch Changes
369
+
370
+ - [#44](https://github.com/LightNetDev/lightnet-library/pull/44) [`c76d792`](https://github.com/LightNetDev/lightnet-library/commit/c76d79257efa98e4eaf78ef7aa4e49d4d31b586d) Thanks [@si-fab](https://github.com/si-fab)! - Fix more results button styling.
371
+
372
+ - [#46](https://github.com/LightNetDev/lightnet-library/pull/46) [`e94dfc9`](https://github.com/LightNetDev/lightnet-library/commit/e94dfc9cbc97b20dbdf9eac25d56e6dec1c97c37) Thanks [@si-fab](https://github.com/si-fab)! - Fix share button margin was using old `class` prop.
373
+
374
+ ## 2.3.2
375
+
376
+ ### Patch Changes
377
+
378
+ - [#42](https://github.com/LightNetDev/lightnet-library/pull/42) [`033b41d`](https://github.com/LightNetDev/lightnet-library/commit/033b41dacd9d6247dd182099848b23e33482f0a8) Thanks [@si-fab](https://github.com/si-fab)! - Add keys for categories in result list.
379
+
380
+ - [#42](https://github.com/LightNetDev/lightnet-library/pull/42) [`033b41d`](https://github.com/LightNetDev/lightnet-library/commit/033b41dacd9d6247dd182099848b23e33482f0a8) Thanks [@si-fab](https://github.com/si-fab)! - Fix search input debounce.
381
+
382
+ - [#42](https://github.com/LightNetDev/lightnet-library/pull/42) [`033b41d`](https://github.com/LightNetDev/lightnet-library/commit/033b41dacd9d6247dd182099848b23e33482f0a8) Thanks [@si-fab](https://github.com/si-fab)! - Prefetch /api/search.json from all sites.
383
+
384
+ ## 2.3.1
385
+
386
+ ### Patch Changes
387
+
388
+ - [#40](https://github.com/LightNetDev/lightnet-library/pull/40) [`016269c`](https://github.com/LightNetDev/lightnet-library/commit/016269c6532b282551b689e434ff62af4fc31574) Thanks [@si-fab](https://github.com/si-fab)! - Add `/` to absolute paths for favicons and webmanifest.
389
+
390
+ - [#40](https://github.com/LightNetDev/lightnet-library/pull/40) [`016269c`](https://github.com/LightNetDev/lightnet-library/commit/016269c6532b282551b689e434ff62af4fc31574) Thanks [@si-fab](https://github.com/si-fab)! - Better support svg logos.
391
+
392
+ ## 2.3.0
393
+
394
+ ### Minor Changes
395
+
396
+ - [#38](https://github.com/LightNetDev/lightnet-library/pull/38) [`6b8e9dc`](https://github.com/LightNetDev/lightnet-library/commit/6b8e9dc997ef3c3cc5d02bbcceb7592d78c4f32d) Thanks [@si-fab](https://github.com/si-fab)! - Add support for favicons & webmanifest
397
+
398
+ ### Patch Changes
399
+
400
+ - [#38](https://github.com/LightNetDev/lightnet-library/pull/38) [`6b8e9dc`](https://github.com/LightNetDev/lightnet-library/commit/6b8e9dc997ef3c3cc5d02bbcceb7592d78c4f32d) Thanks [@si-fab](https://github.com/si-fab)! - Rename `class` props to be called `className`. This will make our Astro components more consistent with React components.
401
+
402
+ ## 2.2.0
403
+
404
+ ### Minor Changes
405
+
406
+ - [#36](https://github.com/LightNetDev/lightnet-library/pull/36) [`d67316d`](https://github.com/LightNetDev/lightnet-library/commit/d67316da049dd0477dda901cacefac8a8e7db3cd) Thanks [@si-fab](https://github.com/si-fab)! - Provide path utils.
407
+
408
+ ## 2.1.0
409
+
410
+ ### Minor Changes
411
+
412
+ - [#34](https://github.com/LightNetDev/lightnet-library/pull/34) [`148d75e`](https://github.com/LightNetDev/lightnet-library/commit/148d75e602fe9b065cc9f984a7650e988baf400f) Thanks [@si-fab](https://github.com/si-fab)! - Add categories overview component.
413
+
414
+ ### Patch Changes
415
+
416
+ - [#33](https://github.com/LightNetDev/lightnet-library/pull/33) [`eb11791`](https://github.com/LightNetDev/lightnet-library/commit/eb11791d2df3473d788c18876826f6eb0d150ad0) Thanks [@si-fab](https://github.com/si-fab)! - Remove media query export.
417
+
418
+ - [#28](https://github.com/LightNetDev/lightnet-library/pull/28) [`9ef7b82`](https://github.com/LightNetDev/lightnet-library/commit/9ef7b829484b279433cb2bd993de928dc7d86038) Thanks [@si-fab](https://github.com/si-fab)! - Preload react when a user visits any page.
419
+
420
+ - [#32](https://github.com/LightNetDev/lightnet-library/pull/32) [`66d7f11`](https://github.com/LightNetDev/lightnet-library/commit/66d7f11ddd93eb9aa84e0d0f56f72a5c52daaa1b) Thanks [@si-fab](https://github.com/si-fab)! - Hide translations menu when there is only one locale.
421
+
422
+ - [#30](https://github.com/LightNetDev/lightnet-library/pull/30) [`55deef9`](https://github.com/LightNetDev/lightnet-library/commit/55deef90e13048ac08aecd7c3b1799f9d7ed2a65) Thanks [@si-fab](https://github.com/si-fab)! - Load result images immediatelly when visiting the search page.
423
+
424
+ ## 2.0.22
425
+
426
+ ### Patch Changes
427
+
428
+ - [#27](https://github.com/LightNetDev/lightnet-library/pull/27) [`cc2aa25`](https://github.com/LightNetDev/lightnet-library/commit/cc2aa25d83547091072d9d963804b057bef4c488) Thanks [@si-fab](https://github.com/si-fab)! - Replace preact with react
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 LightNet
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # LightNet SDK
File without changes
@@ -0,0 +1,38 @@
1
+ // @ts-check
2
+ import { defineConfig } from "astro/config"
3
+ import lightnet from "lightnet"
4
+
5
+ import de from "./src/translations/de.json"
6
+ import en from "./src/translations/en.json"
7
+
8
+ // https://astro.build/config
9
+ export default defineConfig({
10
+ site: "https://test.com",
11
+ integrations: [
12
+ lightnet({
13
+ title: "Basic Test",
14
+ logo: { src: "./src/assets/logo.png" },
15
+ languages: [
16
+ {
17
+ code: "en",
18
+ label: "English",
19
+ translations: en,
20
+ isDefaultLocale: true,
21
+ },
22
+ {
23
+ code: "de",
24
+ label: "Deutsch",
25
+ translations: de,
26
+ },
27
+ ],
28
+ favicon: [{ href: "favicon.svg" }],
29
+ mainMenu: [
30
+ {
31
+ href: "/",
32
+ label: "ln.home.title",
33
+ },
34
+ { href: "/media", label: "ln.search.title" },
35
+ ],
36
+ }),
37
+ ],
38
+ })
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.1.9_@types+node@22.10.10_jiti@1.21.7_rollup@4.32.0_terser@5.37.0_typescript@5.7.3_yaml@2.7.0/node_modules/astro/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.1.9_@types+node@22.10.10_jiti@1.21.7_rollup@4.32.0_terser@5.37.0_typescript@5.7.3_yaml@2.7.0/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.1.9_@types+node@22.10.10_jiti@1.21.7_rollup@4.32.0_terser@5.37.0_typescript@5.7.3_yaml@2.7.0/node_modules/astro/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.1.9_@types+node@22.10.10_jiti@1.21.7_rollup@4.32.0_terser@5.37.0_typescript@5.7.3_yaml@2.7.0/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../astro/astro.js" "$@"
15
+ else
16
+ exec node "$basedir/../astro/astro.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/@astrojs+check@0.9.4_prettier-plugin-astro@0.14.1_prettier@3.4.2_typescript@5.7.3/node_modules/@astrojs/check/dist/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/@astrojs+check@0.9.4_prettier-plugin-astro@0.14.1_prettier@3.4.2_typescript@5.7.3/node_modules/@astrojs/check/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/@astrojs+check@0.9.4_prettier-plugin-astro@0.14.1_prettier@3.4.2_typescript@5.7.3/node_modules/@astrojs/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/@astrojs+check@0.9.4_prettier-plugin-astro@0.14.1_prettier@3.4.2_typescript@5.7.3/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/@astrojs+check@0.9.4_prettier-plugin-astro@0.14.1_prettier@3.4.2_typescript@5.7.3/node_modules/@astrojs/check/dist/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/@astrojs+check@0.9.4_prettier-plugin-astro@0.14.1_prettier@3.4.2_typescript@5.7.3/node_modules/@astrojs/check/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/@astrojs+check@0.9.4_prettier-plugin-astro@0.14.1_prettier@3.4.2_typescript@5.7.3/node_modules/@astrojs/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/@astrojs+check@0.9.4_prettier-plugin-astro@0.14.1_prettier@3.4.2_typescript@5.7.3/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../@astrojs/check/dist/bin.js" "$@"
15
+ else
16
+ exec node "$basedir/../@astrojs/check/dist/bin.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../tailwindcss/lib/cli.js" "$@"
15
+ else
16
+ exec node "$basedir/../tailwindcss/lib/cli.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../tailwindcss/lib/cli.js" "$@"
15
+ else
16
+ exec node "$basedir/../tailwindcss/lib/cli.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/bin/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/bin/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
15
+ else
16
+ exec node "$basedir/../typescript/bin/tsc" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/bin/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/bin/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.7.3/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
15
+ else
16
+ exec node "$basedir/../typescript/bin/tsserver" "$@"
17
+ fi