lightnet 3.9.1 → 3.10.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.
- package/CHANGELOG.md +10 -0
- package/README.md +4 -0
- package/__e2e__/fixtures/basics/node_modules/.bin/astro +2 -2
- package/__e2e__/fixtures/basics/node_modules/.bin/tailwind +2 -2
- package/__e2e__/fixtures/basics/node_modules/.bin/tailwindcss +2 -2
- package/__e2e__/fixtures/basics/node_modules/.bin/tsc +2 -2
- package/__e2e__/fixtures/basics/node_modules/.bin/tsserver +2 -2
- package/__e2e__/fixtures/basics/package.json +8 -8
- package/package.json +9 -9
- package/src/astro-integration/config.ts +4 -0
- package/src/i18n/translations/ar.yml +1 -0
- package/src/i18n/translations/bn.yml +1 -0
- package/src/i18n/translations/de.yml +1 -0
- package/src/i18n/translations/en.yml +3 -0
- package/src/i18n/translations/es.yml +1 -0
- package/src/i18n/translations/fi.yml +1 -0
- package/src/i18n/translations/fr.yml +1 -0
- package/src/i18n/translations/hi.yml +1 -0
- package/src/i18n/translations/kk.yml +1 -0
- package/src/i18n/translations/pt.yml +1 -0
- package/src/i18n/translations/ru.yml +1 -0
- package/src/i18n/translations/uk.yml +1 -0
- package/src/i18n/translations/zh.yml +1 -0
- package/src/i18n/translations.ts +1 -0
- package/src/layouts/Page.astro +2 -1
- package/src/layouts/components/Footer.astro +24 -0
- package/src/layouts/components/LightNetLogo.svg +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# lightnet
|
|
2
2
|
|
|
3
|
+
## 3.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#315](https://github.com/LightNetDev/LightNet/pull/315) [`f01fd72`](https://github.com/LightNetDev/LightNet/commit/f01fd728efe1577248db40111b9dfe5bd1a33423) Thanks [@smn-cds](https://github.com/smn-cds)! - Add optional LightNet credits footer
|
|
8
|
+
- Adds `credits: boolean` to LightNet config to show a “Built with LightNet” footer; default is `false`
|
|
9
|
+
- Footer includes LightNet logo/text and appears when no `CustomFooter` is provided
|
|
10
|
+
- Adds i18n key `ln.footer.powered-by-lightnet` (English + AI generated translations provided)
|
|
11
|
+
- Enable via `astro.config.mjs`, lightnet config: `credits: true` (PR #315)
|
|
12
|
+
|
|
3
13
|
## 3.9.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -19,6 +19,10 @@ to see how it powers a live site.
|
|
|
19
19
|
|
|
20
20
|
Take a look at the [LightNet developer docs](https://docs.lightnet.community).
|
|
21
21
|
|
|
22
|
+
## 🛟 Getting support
|
|
23
|
+
|
|
24
|
+
If you have questions about using LightNet or need guidance, visit [Getting support & getting involved](https://docs.lightnet.community/concepts/collaboration/#getting-support--getting-involved).
|
|
25
|
+
|
|
22
26
|
## 🤝 Contributing
|
|
23
27
|
|
|
24
28
|
Got ideas or improvements? We’d love your help! [See the contribution guide](https://github.com/LightNetDev/lightnet/blob/main/CONTRIBUTING.md) to get started.
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.
|
|
13
|
+
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.14.4_@types+node@24.3.0_jiti@2.4.2_lightningcss@1.29.1_rollup@4.52.4_terser@5.39.0_typescript@5.9.3_yaml@2.8.1/node_modules/astro/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.14.4_@types+node@24.3.0_jiti@2.4.2_lightningcss@1.29.1_rollup@4.52.4_terser@5.39.0_typescript@5.9.3_yaml@2.8.1/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.
|
|
15
|
+
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.14.4_@types+node@24.3.0_jiti@2.4.2_lightningcss@1.29.1_rollup@4.52.4_terser@5.39.0_typescript@5.9.3_yaml@2.8.1/node_modules/astro/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.14.4_@types+node@24.3.0_jiti@2.4.2_lightningcss@1.29.1_rollup@4.52.4_terser@5.39.0_typescript@5.9.3_yaml@2.8.1/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../astro/astro.js" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.
|
|
13
|
+
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.
|
|
15
|
+
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../tailwindcss/lib/cli.js" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.
|
|
13
|
+
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.
|
|
15
|
+
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../tailwindcss/lib/cli.js" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.
|
|
13
|
+
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.
|
|
15
|
+
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.
|
|
13
|
+
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.
|
|
15
|
+
export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
"version": "0.0.1",
|
|
5
5
|
"private": "true",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@astrojs/react": "^4.
|
|
7
|
+
"@astrojs/react": "^4.4.0",
|
|
8
8
|
"@astrojs/tailwind": "^6.0.2",
|
|
9
9
|
"@lightnet/decap-admin": "^3.1.2",
|
|
10
|
-
"astro": "^5.
|
|
11
|
-
"lightnet": "^3.
|
|
12
|
-
"react": "^19.
|
|
13
|
-
"react-dom": "^19.
|
|
14
|
-
"sharp": "^0.34.
|
|
15
|
-
"tailwindcss": "^3.4.
|
|
16
|
-
"typescript": "^5.9.
|
|
10
|
+
"astro": "^5.14.4",
|
|
11
|
+
"lightnet": "^3.10.0",
|
|
12
|
+
"react": "^19.2.0",
|
|
13
|
+
"react-dom": "^19.2.0",
|
|
14
|
+
"sharp": "^0.34.4",
|
|
15
|
+
"tailwindcss": "^3.4.18",
|
|
16
|
+
"typescript": "^5.9.3"
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=22"
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "lightnet",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.10.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/LightNetDev/lightnet",
|
|
@@ -40,25 +40,25 @@
|
|
|
40
40
|
"tailwindcss": ">=3.4.0 <4.0.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@astrojs/react": "^4.
|
|
43
|
+
"@astrojs/react": "^4.4.0",
|
|
44
44
|
"@astrojs/tailwind": "^6.0.2",
|
|
45
45
|
"@iconify-json/mdi": "^1.2.3",
|
|
46
46
|
"@iconify/tailwind": "^1.2.0",
|
|
47
|
-
"@tailwindcss/typography": "^0.5.
|
|
47
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
48
48
|
"@tanstack/react-virtual": "^3.13.12",
|
|
49
49
|
"daisyui": "^4.12.24",
|
|
50
50
|
"embla-carousel": "^8.6.0",
|
|
51
51
|
"embla-carousel-wheel-gestures": "^8.1.0",
|
|
52
52
|
"fuse.js": "^7.1.0",
|
|
53
|
-
"i18next": "^25.
|
|
54
|
-
"marked": "^16.
|
|
53
|
+
"i18next": "^25.6.0",
|
|
54
|
+
"marked": "^16.4.0",
|
|
55
55
|
"yaml": "^2.8.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@playwright/test": "^1.
|
|
59
|
-
"@types/node": "^22.18.
|
|
60
|
-
"@types/react": "^19.
|
|
61
|
-
"typescript": "^5.9.
|
|
58
|
+
"@playwright/test": "^1.56.0",
|
|
59
|
+
"@types/node": "^22.18.10",
|
|
60
|
+
"@types/react": "^19.2.2",
|
|
61
|
+
"typescript": "^5.9.3",
|
|
62
62
|
"vitest": "^3.2.4"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
@@ -132,6 +132,10 @@ export const configSchema = z.object({
|
|
|
132
132
|
* Favicons for your site.
|
|
133
133
|
*/
|
|
134
134
|
favicon: faviconSchema.array().optional(),
|
|
135
|
+
/**
|
|
136
|
+
* Enable displaying a “Powered by LightNet” link in your site’s footer.
|
|
137
|
+
*/
|
|
138
|
+
credits: z.boolean().default(false),
|
|
135
139
|
/**
|
|
136
140
|
* Link to manifest file within public/ folder
|
|
137
141
|
*/
|
|
@@ -143,3 +143,6 @@ ln.404.page-not-found: Page not found
|
|
|
143
143
|
# English: Go to Home page
|
|
144
144
|
# Used on: https://sk8-ministries.pages.dev/unexisting-path
|
|
145
145
|
ln.404.go-to-the-home-page: Go to Home page
|
|
146
|
+
|
|
147
|
+
# Footer text to give credits to LightNet
|
|
148
|
+
ln.footer.powered-by-lightnet: Powered by LightNet
|
|
@@ -22,3 +22,4 @@ ln.details.download: Transferir
|
|
|
22
22
|
ln.share.url-copied-to-clipboard: Ligação copiada para a área de transferência
|
|
23
23
|
ln.404.page-not-found: Página não encontrada
|
|
24
24
|
ln.404.go-to-the-home-page: Ir para a página inicial
|
|
25
|
+
ln.footer.powered-by-lightnet: Com tecnologia LightNet
|
|
@@ -22,3 +22,4 @@ ln.details.download: Завантажити
|
|
|
22
22
|
ln.share.url-copied-to-clipboard: Посилання скопійовано до буферу обміну
|
|
23
23
|
ln.404.page-not-found: Сторінку не знайдено
|
|
24
24
|
ln.404.go-to-the-home-page: Перейти на Головну сторінку
|
|
25
|
+
ln.footer.powered-by-lightnet: Працює на платформі LightNet
|
package/src/i18n/translations.ts
CHANGED
package/src/layouts/Page.astro
CHANGED
|
@@ -5,6 +5,7 @@ import config from "virtual:lightnet/config"
|
|
|
5
5
|
|
|
6
6
|
import { resolveLanguage } from "../i18n/resolve-language"
|
|
7
7
|
import Favicon from "./components/Favicon.astro"
|
|
8
|
+
import Footer from "./components/Footer.astro"
|
|
8
9
|
import Header from "./components/Header.astro"
|
|
9
10
|
import PreloadReact from "./components/PreloadReact"
|
|
10
11
|
import ViewTransition from "./components/ViewTransition.astro"
|
|
@@ -41,7 +42,7 @@ const language = resolveLanguage(currentLocale)
|
|
|
41
42
|
<main class="grow pb-8 pt-14 sm:py-20">
|
|
42
43
|
<slot />
|
|
43
44
|
</main>
|
|
44
|
-
{CustomFooter
|
|
45
|
+
{CustomFooter ? <CustomFooter /> : <Footer />}
|
|
45
46
|
<PreloadReact client:idle />
|
|
46
47
|
</body>
|
|
47
48
|
</html>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
import config from "virtual:lightnet/config"
|
|
3
|
+
|
|
4
|
+
import LightNetLogo from "./LightNetLogo.svg"
|
|
5
|
+
|
|
6
|
+
if (!config.credits) {
|
|
7
|
+
return
|
|
8
|
+
}
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<footer class="w-full border-t border-gray-300">
|
|
12
|
+
<div
|
|
13
|
+
class="mx-auto flex w-full max-w-screen-xl justify-end px-4 py-4 md:px-8"
|
|
14
|
+
>
|
|
15
|
+
<a
|
|
16
|
+
class="flex items-center gap-2 py-2 text-sm text-gray-800 hover:underline"
|
|
17
|
+
href="https://lightnet.community"
|
|
18
|
+
target="_blank"
|
|
19
|
+
>
|
|
20
|
+
<img src={LightNetLogo.src} alt="" class="h-5 w-auto" loading="lazy" />
|
|
21
|
+
{Astro.locals.i18n.t("ln.footer.powered-by-lightnet")}
|
|
22
|
+
</a>
|
|
23
|
+
</div>
|
|
24
|
+
</footer>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="16 16 141 173" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M88.007 180.642c-21.767-5.846-39.688-19.304-40.574-42.862-.887-23.558 17.751-43.334 45.426-40.84v-7.844c.011-4.03 4.977-5.495 8.021-2.928l29.136 23.729c2.155 1.821 2.15 5.16-.019 7.08l-29.117 24.152c-3.059 2.72-8.031.681-8.02-3.349v-8.005c-2.916-.453-5.137-.579-6.708-.453-25.207 2.016-23.083 44.6 20.454 42.388 18.705-.951 49.148-21.73 50.394-53.985 0-48.62-60.4-64.433-45.205-97.762 1.529-3.354-4.627-4.867-8.501-3.393-15.573 4.29-32.752 13.714-42.526 41.693-1.251 3.581-2.824 12.038-4.168 15.558-1.242 3.533-3.034 11.445-7.996 11.025-6.501-.55-4.236-11.168-2.815-15.74 1.197-3.854-4.14-7.109-9.028-2.073-8.3 8.549-16.598 19.982-19.804 37.823-1.259 7.001-1.327 16.903.101 25.208 6.204 36.183 37.705 59.276 68.356 58.915 7.58-.09 7.787-6.942 2.593-8.337Z" fill="#374151"/></svg>
|