Skip to content

Commit fedbd88

Browse files
authored
Merge pull request #765 from filamentphp/4.x
4.x-beta
2 parents 79942db + 91d65b6 commit fedbd88

26 files changed

+1396
-102
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ composer.lock
66
docs/dist
77
docs/filament
88
docs/node_modules
9+
docs/preserved-dist
910
docs/src/navigation.json
1011
docs/src/pages
1112
docs/torchlight-cache

app/Providers/AppServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ public function boot(): void
4949
'plugin' => Plugin::class,
5050
]);
5151

52-
URL::forceScheme('https');
52+
if ($this->app->environment('production')) {
53+
URL::forceScheme('https');
54+
}
5355

5456
RateLimiter::for('vpn_api', function (CheckIfIpIsVpn $job): Limit {
5557
if (

content/articles/leandrocfe-filament-v4-beta-feature-overview.md

Lines changed: 456 additions & 0 deletions
Large diffs are not rendered by default.

docs/bin/checkout-latest-filament

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ DOCS_VERSIONS=(
44
1.x
55
2.x
66
3.x
7+
4.x
78
)
89

910
for v in "${DOCS_VERSIONS[@]}"; do
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
DOCS_VERSIONS=(
4+
1.x
5+
2.x
6+
3.x
7+
)
8+
9+
for v in "${DOCS_VERSIONS[@]}"; do
10+
if [ ! -d "filament/$v" ]; then
11+
echo "Cloning $v..."
12+
git clone --single-branch --branch "$v" [email protected]:filamentphp/filament.git "filament/$v"
13+
fi;
14+
done
15+
16+
rm -rf filament/4.x
17+
ln -sf ../../../filament filament/4.x

docs/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
"checkout": "bin/checkout-latest-filament",
88
"sync": "node sync.mjs",
99
"dev": "astro dev",
10+
"dev:checkout-4.x": "bin/checkout-local-filament-4.x",
11+
"dev:generate-4.x": "npm run dev:checkout-4.x && npm run sync && npm run build && npm run publicize-assets",
1012
"start": "astro dev",
1113
"build": "astro build",
12-
"publicize-assets": "rm -rf ../public/docs && cp -R dist ../public/docs && rm ../public/docs/index.html && rm -rf ../public/docs/1.x && rm -rf ../public/docs/2.x && rm -rf ../public/docs/3.x && rm -rf ../public/docs/4.x && rm -rf ./preserved-dist && cp -R dist ./preserved-dist && mkdir -p ../public/docs/3.x && cp -R filament/3.x/docs-assets/screenshots/images ../public/docs/3.x/images",
14+
"publicize-assets": "rm -rf ../public/docs && cp -R dist ../public/docs && rm ../public/docs/index.html && rm -rf ../public/docs/1.x && rm -rf ../public/docs/2.x && rm -rf ../public/docs/3.x && rm -rf ../public/docs/4.x && rm -rf ./preserved-dist && cp -R dist ./preserved-dist && mkdir -p ../public/docs/3.x && cp -R filament/3.x/docs-assets/screenshots/images ../public/docs/3.x/images && mkdir -p ../public/docs/4.x && cp -R filament/4.x/docs-assets/screenshots/images ../public/docs/4.x/images",
1315
"generate": "npm run checkout && npm run sync && npm run build && npm run publicize-assets",
14-
"generate-dev": "npm run sync && npm run build && npm run publicize-assets",
1516
"preview": "astro preview",
1617
"astro": "astro"
1718
},

docs/src/components/Aside.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { variant } = Astro.props as Props;
1010

1111
<div
1212
class:list={[
13-
"my-3 rounded-lg border-s-4 px-4 py-3 prose-p:my-0",
13+
"mb-6 rounded-lg border-s-4 px-4 py-3 prose-p:my-0",
1414
{
1515
"border-purple-400 bg-purple-400/10 text-purple-950 dark:bg-purple-500/20 dark:text-purple-100 prose-code:[p_&]:bg-purple-600/10 prose-code:dark:[p_&]:bg-white/20":
1616
variant === "tip",

docs/src/components/AutoScreenshot.astro

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ const dimensions = probe.sync(image);
1212
---
1313

1414
<div style={`aspect-ratio: ${dimensions.width} / ${dimensions.height}`} class="rounded-xl mb-6 ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10">
15-
<img
16-
src={`/docs/${version}/images/light/${name}.jpg`}
17-
alt={alt}
18-
loading="lazy"
19-
decoding="async"
20-
class="rounded-xl dark:hidden"
21-
/>
15+
<img
16+
src={`/docs/${version}/images/light/${name}.jpg`}
17+
alt={alt}
18+
loading="lazy"
19+
decoding="async"
20+
class="rounded-xl dark:hidden"
21+
/>
2222

23-
<img
24-
src={`/docs/${version}/images/dark/${name}.jpg`}
25-
alt={alt}
26-
loading="lazy"
27-
decoding="async"
28-
class="rounded-xl hidden dark:block"
29-
/>
23+
<img
24+
src={`/docs/${version}/images/dark/${name}.jpg`}
25+
alt={alt}
26+
loading="lazy"
27+
decoding="async"
28+
class="rounded-xl hidden dark:block"
29+
/>
3030
</div>
3131

docs/src/components/Disclosure.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<details
22
{...Astro.props}
3-
class="rounded-lg bg-[#ffede0] dark:bg-[#100f1b] border-2 border-[#ffd6b6] dark:border-[#282732] px-4 py-2 mb-3"
3+
class="rounded-lg bg-[#ffede0] dark:bg-[#100f1b] border-2 border-[#ffd6b6] dark:border-[#282732] px-4 py-2 mb-6"
44
>
55
<summary class="font-medium">
66
<slot name="summary" />

0 commit comments

Comments
 (0)