Compare commits
156 Commits
2d86be0c8f
...
2.2.1
| Author | SHA1 | Date | |
|---|---|---|---|
| bc5f023883 | |||
| 5e272108d4 | |||
| babf0d40cd | |||
| 3925f35c47 | |||
| 3f2c6da690 | |||
| 01ee8fac98 | |||
| c8306e414b | |||
| 42d3891c6b | |||
|
21c08d6853
|
|||
| 6aa62ad76d | |||
|
a95908736b
|
|||
| 6ddec3a558 | |||
|
24a20c4a7e
|
|||
| ecfc907744 | |||
|
44d4837b8e
|
|||
| 6b46e943e3 | |||
|
606424972a
|
|||
| d2a8c007e5 | |||
|
3ac2a5ea1f
|
|||
| 7ef13d8437 | |||
|
4ed5ab769c
|
|||
| ec31419b81 | |||
|
083a5e77da
|
|||
| 4c065f99ab | |||
|
f6cccca140
|
|||
| eedddca9a1 | |||
|
556647977f
|
|||
| d1f189818f | |||
|
5c461d64e2
|
|||
| 6371705b9c | |||
|
92aa4a614c
|
|||
| 6e20d4b8c8 | |||
|
f187c341f6
|
|||
| 16cf8ae2d1 | |||
|
d07b8ab73e
|
|||
| 52ba1108c0 | |||
|
54601905da
|
|||
| 88713b9738 | |||
| 83817cc1b6 | |||
|
0ef1a97f51
|
|||
|
a84e7a1675
|
|||
| fcffbffc02 | |||
|
a2af3015a2
|
|||
| e64e72df0e | |||
|
17dbf719a5
|
|||
| ecb3a2be8b | |||
|
2e0fbff172
|
|||
| cd4bbdea50 | |||
|
98608fba4d
|
|||
| 859d892ba9 | |||
| 797a12f1b6 | |||
|
2ef4429901
|
|||
|
f071535034
|
|||
| 119c570771 | |||
|
c474ed52c1
|
|||
| 4b24da83cb | |||
|
892a333e0e
|
|||
| ab4630fdd1 | |||
|
c318eb9fbb
|
|||
| 310d9779fe | |||
|
63134978b9
|
|||
| 099c4fb251 | |||
|
fa4f31b933
|
|||
| 835ba15cc7 | |||
| eb74233bfb | |||
|
1bb1b0571e
|
|||
|
f569a12edb
|
|||
| 3caee230f2 | |||
|
282d909cfd
|
|||
| 7548131847 | |||
|
ddf42a2d09
|
|||
| f88195b97d | |||
|
daf5acc335
|
|||
| b2246f6858 | |||
|
e424616e12
|
|||
| da20872a1e | |||
|
b43dff833f
|
|||
| 9248b76d8e | |||
|
019413a325
|
|||
| d94e490846 | |||
|
0d6e21618b
|
|||
| 0b03499f81 | |||
|
f9a62cad1c
|
|||
| 2014d0b87a | |||
| 24f237b795 | |||
|
1c985bca47
|
|||
|
291d436c1f
|
|||
| 08c8cb15ca | |||
|
d2b01a7bd3
|
|||
| aa75da2ecb | |||
|
0093b92b23
|
|||
| 6e0253f849 | |||
| 06ada51c0f | |||
|
1cf72e72b5
|
|||
|
181d4b56ac
|
|||
| c5870eba4a | |||
| 8242f153d8 | |||
| 117d2567e5 | |||
| a400c3187c | |||
|
15fb351504
|
|||
| fb492a1028 | |||
|
c427c5ddb7
|
|||
| 9a686eb9f5 | |||
|
2e0e52bdf9
|
|||
| f7a2bb1205 | |||
|
90b00872ee
|
|||
| 7dd5778c89 | |||
|
a062974f45
|
|||
| a7a14dfce5 | |||
|
51cdbd8b0b
|
|||
| f0e52d2f20 | |||
|
c79631cf7d
|
|||
| 6ef9380126 | |||
|
acea361723
|
|||
| c4c33ac9ad | |||
|
1d51d01be7
|
|||
| e9b783a83c | |||
|
d20c93fb8d
|
|||
| 8070cb6636 | |||
|
3f56f7ed2a
|
|||
| 825736458d | |||
|
6016ff4bf0
|
|||
| 9388a90a9d | |||
| 9b0dc6f3ca | |||
| 5203aeb96e | |||
|
94c2e8ded8
|
|||
| fcc0b9fea4 | |||
|
d0a1e6a91a
|
|||
| 62c1996e17 | |||
|
e3aca00d75
|
|||
| fe2bf96b33 | |||
|
8ccc69fe83
|
|||
| 5d5464426f | |||
|
d4be2547ec
|
|||
| 9fbf9b0864 | |||
|
2c5ab270a4
|
|||
| 0b83f7a573 | |||
|
a902c23821
|
|||
| e8a2000b4d | |||
|
c47976bd94
|
|||
| 3aba851dca | |||
|
7d8441c126
|
|||
| 6a1af4515f | |||
|
9995b84cc8
|
|||
| a9d0416576 | |||
|
fb89c5f501
|
|||
| 9a76654ee1 | |||
|
a5d6080b31
|
|||
| d9339214bc | |||
| e40e60023d | |||
| baa979d475 | |||
| 6d854c04a5 | |||
| 019c544d57 | |||
|
1874cb6dba
|
|||
|
218797577e
|
|||
|
96e4670f49
|
@@ -1,4 +1,4 @@
|
|||||||
name: release-image
|
name: release-image-gitea
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -8,8 +8,35 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-js
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 10.x
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: 24.13.0
|
||||||
|
cache: pnpm
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Lint Code
|
||||||
|
run: pnpm lint
|
||||||
|
|
||||||
|
- name: Build Project
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-js
|
runs-on: ubuntu-js
|
||||||
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
@@ -21,13 +48,6 @@ jobs:
|
|||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.REPOSITORY_TOKEN }}
|
password: ${{ secrets.REPOSITORY_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ vars.REGISTRY_HOST }}
|
|
||||||
username: ${{ vars.REGISTRY_USER }}
|
|
||||||
password: ${{ secrets.REGISTRY_SECRET }}
|
|
||||||
|
|
||||||
- name: Create Kubeconfig
|
- name: Create Kubeconfig
|
||||||
run: |
|
run: |
|
||||||
mkdir $HOME/.kube
|
mkdir $HOME/.kube
|
||||||
@@ -55,9 +75,23 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
|
type=sha,format=long
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
type=semver,pattern={{major}}
|
||||||
images: |
|
images: |
|
||||||
${{ vars.REPOSITORY_HOST }}/${{ gitea.repository }}
|
${{ vars.REPOSITORY_HOST }}/${{ gitea.repository }}
|
||||||
${{ vars.REGISTRY_HOST }}/images/site-profile
|
|
||||||
|
- name: Get Version Info
|
||||||
|
id: version
|
||||||
|
run: |
|
||||||
|
echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT
|
||||||
|
echo "commit=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
if git describe --tags --exact-match HEAD 2>/dev/null; then
|
||||||
|
echo "is_release=true" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "is_release=false" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build and Push Image
|
- name: Build and Push Image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -67,6 +101,10 @@ jobs:
|
|||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{ steps.version.outputs.version }}
|
||||||
|
COMMIT_SHA=${{ steps.version.outputs.commit }}
|
||||||
|
IS_RELEASE=${{ steps.version.outputs.is_release }}
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
|
|
||||||
- name: ntfy Success
|
- name: ntfy Success
|
||||||
@@ -0,0 +1,136 @@
|
|||||||
|
name: release-image-harbor
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 2.*
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-js
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 10.x
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: 24.13.0
|
||||||
|
cache: pnpm
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Lint Code
|
||||||
|
run: pnpm lint
|
||||||
|
|
||||||
|
- name: Build Project
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-js
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.REGISTRY_HOST }}
|
||||||
|
username: ${{ vars.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_SECRET }}
|
||||||
|
|
||||||
|
- name: Create Kubeconfig
|
||||||
|
run: |
|
||||||
|
mkdir $HOME/.kube
|
||||||
|
echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver: kubernetes
|
||||||
|
driver-opts: |
|
||||||
|
namespace=gitea
|
||||||
|
qemu.install=true
|
||||||
|
buildkitd-config-inline: |
|
||||||
|
[registry."docker.io"]
|
||||||
|
mirrors = ["harbor.alexlebens.net/proxy-hub.docker/"]
|
||||||
|
|
||||||
|
- name: Available Platforms
|
||||||
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||||
|
|
||||||
|
- name: Extract Metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=tag
|
||||||
|
type=sha,format=long
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
type=semver,pattern={{major}}
|
||||||
|
images: |
|
||||||
|
${{ vars.REGISTRY_HOST }}/images/site-profile
|
||||||
|
|
||||||
|
- name: Get Version Info
|
||||||
|
id: version
|
||||||
|
run: |
|
||||||
|
echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT
|
||||||
|
echo "commit=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
if git describe --tags --exact-match HEAD 2>/dev/null; then
|
||||||
|
echo "is_release=true" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "is_release=false" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Build and Push Image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{ steps.version.outputs.version }}
|
||||||
|
COMMIT_SHA=${{ steps.version.outputs.commit }}
|
||||||
|
IS_RELEASE=${{ steps.version.outputs.is_release }}
|
||||||
|
file: ./Dockerfile
|
||||||
|
|
||||||
|
- name: ntfy Success
|
||||||
|
uses: niniyas/ntfy-action@master
|
||||||
|
if: success()
|
||||||
|
with:
|
||||||
|
url: '${{ secrets.NTFY_URL }}'
|
||||||
|
topic: '${{ secrets.NTFY_TOPIC }}'
|
||||||
|
title: 'Release Success - Site Profile'
|
||||||
|
priority: 3
|
||||||
|
headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}'
|
||||||
|
tags: action,successfully,completed
|
||||||
|
details: 'Image for Site Profile has been released!'
|
||||||
|
icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png'
|
||||||
|
|
||||||
|
- name: ntfy Failed
|
||||||
|
uses: niniyas/ntfy-action@master
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
url: '${{ secrets.NTFY_URL }}'
|
||||||
|
topic: '${{ secrets.NTFY_TOPIC }}'
|
||||||
|
title: 'Release Failure - Site Profile'
|
||||||
|
priority: 4
|
||||||
|
headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}'
|
||||||
|
tags: action,failed
|
||||||
|
details: 'Image for Site Profile has failed to be released.'
|
||||||
|
icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png'
|
||||||
|
actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/actions?workflow=release-image.yml", "clear": true}]'
|
||||||
|
image: true
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: 24.11.1
|
node-version: 24.13.0
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
|||||||
+4
-4
@@ -1,8 +1,5 @@
|
|||||||
ARG REGISTRY=docker.io
|
ARG REGISTRY=docker.io
|
||||||
FROM ${REGISTRY}/node:24.11.1-alpine3.22 AS base
|
FROM ${REGISTRY}/node:24.13.0-alpine3.22 AS base
|
||||||
|
|
||||||
LABEL version="2.1.0"
|
|
||||||
LABEL description="Astro based personal website"
|
|
||||||
|
|
||||||
ENV PNPM_HOME="/pnpm"
|
ENV PNPM_HOME="/pnpm"
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
@@ -32,5 +29,8 @@ ENV SITE_URL=https://www.alexlebens.dev
|
|||||||
ENV DIRECTUS_URL=https://directus.alexlebens.dev
|
ENV DIRECTUS_URL=https://directus.alexlebens.dev
|
||||||
ENV PORT=4321
|
ENV PORT=4321
|
||||||
|
|
||||||
|
LABEL version="2.2.1"
|
||||||
|
LABEL description="Astro based personal website"
|
||||||
|
|
||||||
EXPOSE $PORT
|
EXPOSE $PORT
|
||||||
CMD ["node", "./dist/server/entry.mjs"]
|
CMD ["node", "./dist/server/entry.mjs"]
|
||||||
|
|||||||
+26
-26
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "site-profile",
|
"name": "site-profile",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.1.0",
|
"version": "2.2.1",
|
||||||
"homepage": "https://www.alexlebens.dev",
|
"homepage": "https://www.alexlebens.dev",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues",
|
"url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues",
|
||||||
@@ -27,58 +27,58 @@
|
|||||||
"lint:fix": "eslint --fix \"src/**/*.{js,ts,jsx,tsx,astro}\""
|
"lint:fix": "eslint --fix \"src/**/*.{js,ts,jsx,tsx,astro}\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.9.5",
|
"@astrojs/check": "^0.9.6",
|
||||||
"@astrojs/mdx": "^4.3.10",
|
"@astrojs/mdx": "^4.3.13",
|
||||||
"@astrojs/node": "^9.5.0",
|
"@astrojs/node": "^9.5.2",
|
||||||
"@astrojs/partytown": "^2.1.4",
|
"@astrojs/partytown": "^2.1.4",
|
||||||
"@astrojs/react": "^4.4.2",
|
"@astrojs/react": "^4.4.2",
|
||||||
"@astrojs/rss": "^4.0.13",
|
"@astrojs/rss": "^4.0.15",
|
||||||
"@astrojs/sitemap": "^3.6.0",
|
"@astrojs/sitemap": "^3.7.0",
|
||||||
"@directus/sdk": "^20.1.1",
|
"@directus/sdk": "^21.0.0",
|
||||||
"@giscus/react": "^3.1.0",
|
"@giscus/react": "^3.1.0",
|
||||||
"@iconify-json/mdi": "^1.2.3",
|
"@iconify-json/mdi": "^1.2.3",
|
||||||
"@iconify-json/pajamas": "^1.2.15",
|
"@iconify-json/pajamas": "^1.2.15",
|
||||||
"@iconify-json/simple-icons": "^1.2.58",
|
"@iconify-json/simple-icons": "^1.2.67",
|
||||||
"@playform/compress": "^0.2.0",
|
"@playform/compress": "^0.2.1",
|
||||||
"@rehype-pretty/transformers": "^0.13.2",
|
"@rehype-pretty/transformers": "^0.13.2",
|
||||||
"@swup/astro": "1.7.0",
|
"@swup/astro": "1.7.0",
|
||||||
"@tailwindcss/postcss": "^4.1.17",
|
"@tailwindcss/postcss": "^4.1.18",
|
||||||
"@tailwindcss/vite": "^4.1.17",
|
"@tailwindcss/vite": "^4.1.18",
|
||||||
"@types/react": "^19.2.2",
|
"@types/react": "^19.2.9",
|
||||||
"@types/unist": "^3.0.3",
|
"@types/unist": "^3.0.3",
|
||||||
"astro": "^5.15.5",
|
"astro": "^5.16.15",
|
||||||
"astro-compressor": "^1.2.0",
|
"astro-compressor": "^1.2.0",
|
||||||
"astro-icon": "^1.1.5",
|
"astro-icon": "^1.1.5",
|
||||||
"mdast-util-to-string": "^4.0.0",
|
"mdast-util-to-string": "^4.0.0",
|
||||||
"motion": "^12.23.24",
|
"motion": "^12.29.0",
|
||||||
"preline": "^3.2.3",
|
"preline": "^3.2.3",
|
||||||
"react": "^19.2.0",
|
"react": "^19.2.3",
|
||||||
"react-dom": "^19.2.0",
|
"react-dom": "^19.2.3",
|
||||||
"reading-time": "^1.5.0",
|
"reading-time": "^1.5.0",
|
||||||
"rehype-pretty-code": "^0.14.1",
|
"rehype-pretty-code": "^0.14.1",
|
||||||
"sharp": "^0.34.5",
|
"sharp": "^0.34.5",
|
||||||
"sharp-ico": "^0.1.5",
|
"sharp-ico": "^0.1.5",
|
||||||
"shiki": "^3.15.0",
|
"shiki": "^3.21.0",
|
||||||
"tailwindcss": "^4.1.17",
|
"tailwindcss": "^4.1.18",
|
||||||
"ultrahtml": "^1.6.0"
|
"ultrahtml": "^1.6.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint-react/eslint-plugin": "^2.3.4",
|
"@eslint-react/eslint-plugin": "^2.7.2",
|
||||||
"@tailwindcss/forms": "^0.5.10",
|
"@tailwindcss/forms": "^0.5.11",
|
||||||
"@tailwindcss/typography": "^0.5.19",
|
"@tailwindcss/typography": "^0.5.19",
|
||||||
"astro-icon": "^1.1.5",
|
"astro-icon": "^1.1.5",
|
||||||
"eslint": "^9.39.1",
|
"eslint": "^9.39.2",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-astro": "^1.5.0",
|
"eslint-plugin-astro": "^1.5.0",
|
||||||
"eslint-plugin-format": "^1.0.2",
|
"eslint-plugin-format": "^1.3.1",
|
||||||
"eslint-plugin-react": "^7.37.5",
|
"eslint-plugin-react": "^7.37.5",
|
||||||
"eslint-plugin-react-hooks": "^7.0.1",
|
"eslint-plugin-react-hooks": "^7.0.1",
|
||||||
"eslint-plugin-react-refresh": "^0.4.24",
|
"eslint-plugin-react-refresh": "^0.4.26",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.8.1",
|
||||||
"prettier-plugin-astro": "^0.14.1",
|
"prettier-plugin-astro": "^0.14.1",
|
||||||
"prettier-plugin-tailwindcss": "^0.7.1",
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
||||||
"timeago.js": "^4.0.2",
|
"timeago.js": "^4.0.2",
|
||||||
"typescript": "5.9.3",
|
"typescript": "5.9.3",
|
||||||
"typescript-eslint": "8.47.0"
|
"typescript-eslint": "8.53.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+1733
-2448
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@ const posts = await directus.request(
|
|||||||
);
|
);
|
||||||
|
|
||||||
const recentPosts = posts
|
const recentPosts = posts
|
||||||
.sort((a: Post, b: Post) => b.published_date.getTime() - a.published_date.getTime())
|
.sort((a: Post, b: Post) => (new Date(b.published_date).getTime()) - (new Date(a.published_date).getTime()))
|
||||||
.slice(0, 3);
|
.slice(0, 3);
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user