Compare commits
6 Commits
aef10f706c
...
a983696153
| Author | SHA1 | Date | |
|---|---|---|---|
| a983696153 | |||
| 6908964df5 | |||
| 159587f545 | |||
| c02b49644e | |||
| 313fa14c56 | |||
| 052be7d1c9 |
@@ -43,9 +43,20 @@ jobs:
|
|||||||
- name: 🧹 Maintenance (High Density Cleanup)
|
- name: 🧹 Maintenance (High Density Cleanup)
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
echo "=== System Disk Usage ==="
|
||||||
|
df -h || true
|
||||||
|
echo "=== Tool Cache Usage ==="
|
||||||
|
du -sh /opt/hostedtoolcache/* || true
|
||||||
|
du -sh /opt/hostedtoolcache/.[!.]* || true
|
||||||
|
echo "Purging old tool caches..."
|
||||||
|
rm -rf /opt/hostedtoolcache/* || true
|
||||||
|
rm -rf /opt/hostedtoolcache/.[!.]* || true
|
||||||
echo "Purging old build layers and dangling images..."
|
echo "Purging old build layers and dangling images..."
|
||||||
docker image prune -f
|
docker builder prune -a -f || true
|
||||||
docker builder prune -f --filter "until=24h"
|
docker image prune -a -f || true
|
||||||
|
docker system prune -f || true
|
||||||
|
echo "=== System Disk Usage After Prune ==="
|
||||||
|
df -h || true
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -34,6 +34,17 @@ export async function generateMetadata({ params }: PageProps): Promise<Metadata>
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function cleanLocation(location?: string): string {
|
||||||
|
if (!location) return '';
|
||||||
|
// Remove 5 digit postal codes
|
||||||
|
let cleaned = location.replace(/\b\d{5}\b/g, '');
|
||||||
|
// Clean up multiple spaces, slashes and commas
|
||||||
|
cleaned = cleaned.replace(/\s*,\s*/g, ', ').replace(/\s*\/\s*/g, ' / ').trim();
|
||||||
|
// Remove leading/trailing slash/comma residues
|
||||||
|
cleaned = cleaned.replace(/^[,/\s]+|[,/\s]+$/g, '').trim();
|
||||||
|
return cleaned || location;
|
||||||
|
}
|
||||||
|
|
||||||
export default async function ReferenzenOverview(props: { params: Promise<{ locale: string }> }) {
|
export default async function ReferenzenOverview(props: { params: Promise<{ locale: string }> }) {
|
||||||
const { locale } = await props.params;
|
const { locale } = await props.params;
|
||||||
setRequestLocale(locale);
|
setRequestLocale(locale);
|
||||||
|
|||||||
Reference in New Issue
Block a user