Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
> 1% or last 10 versions, not dead
44 changes: 6 additions & 38 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,44 +1,12 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

.next
.velite
.eslintcache
node_modules
dist
.source
public/static

next-env.d.ts

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# production
/build
/out

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
.wrangler
pages.gen.ts
worker-configuration.d.ts
71 changes: 71 additions & 0 deletions .husky/_/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/sh

if [ "$LEFTHOOK_VERBOSE" = "1" -o "$LEFTHOOK_VERBOSE" = "true" ]; then
set -x
fi

if [ "$LEFTHOOK" = "0" ]; then
exit 0
fi

call_lefthook()
{
if test -n "$LEFTHOOK_BIN"
then
"$LEFTHOOK_BIN" "$@"
elif lefthook -h >/dev/null 2>&1
then
lefthook "$@"
elif /home/hellolin/Projects/silvecor.dev/node_modules/.pnpm/lefthook-linux-x64@2.1.9/node_modules/lefthook-linux-x64/bin/lefthook -h >/dev/null 2>&1
then
/home/hellolin/Projects/silvecor.dev/node_modules/.pnpm/lefthook-linux-x64@2.1.9/node_modules/lefthook-linux-x64/bin/lefthook "$@"
else
dir="$(git rev-parse --show-toplevel)"
osArch=$(uname | tr '[:upper:]' '[:lower:]')
cpuArch=$(uname -m | sed 's/aarch64/arm64/;s/x86_64/x64/')
if test -f "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook"
then
"$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook" "$@"
elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook"
then
"$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook" "$@"
elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook"
then
"$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook" "$@"
elif test -f "$dir/node_modules/lefthook/bin/index.js"
then
"$dir/node_modules/lefthook/bin/index.js" "$@"
elif go tool lefthook -h >/dev/null 2>&1
then
go tool lefthook "$@"
elif bundle exec lefthook -h >/dev/null 2>&1
then
bundle exec lefthook "$@"
elif yarn lefthook -h >/dev/null 2>&1
then
yarn lefthook "$@"
elif pnpm lefthook -h >/dev/null 2>&1
then
pnpm lefthook "$@"
elif swift package lefthook >/dev/null 2>&1
then
swift package --build-path .build/lefthook --disable-sandbox lefthook "$@"
elif command -v mint >/dev/null 2>&1
then
mint run csjones/lefthook-plugin "$@"
elif uv run lefthook -h >/dev/null 2>&1
then
uv run lefthook "$@"
elif mise exec -- lefthook -h >/dev/null 2>&1
then
mise exec -- lefthook "$@"
elif devbox run lefthook -h >/dev/null 2>&1
then
devbox run lefthook "$@"
else
echo "Can't find lefthook in PATH"
fi
fi
}

call_lefthook run "prepare-commit-msg" "$@"
1 change: 0 additions & 1 deletion .husky/commit-msg

This file was deleted.

1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
26
6 changes: 4 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"prettier.enable": false,
"oxc.enable": false,
"editor.formatOnSave": false,

"editor.codeActionsOnSave": {
Expand All @@ -10,6 +11,8 @@
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "perfectionist/*", "severity": "off", "fixable": true },
{ "rule": "json/sort-*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
Expand Down Expand Up @@ -38,6 +41,5 @@
"scss",
"pcss",
"postcss"
],
"typescript.tsdk": "node_modules/typescript/lib"
]
}
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
This project stores the source code of [hellolin.top](https://hellolin.top/), my personal website.
# silvecor.dev

## Installation
This project stores the source code of [silvecor.dev](https://silvecor.dev/).

Make sure you have Node.js and pnpm installed.
Since it's a personal website, pirating (re-publishing, re-distributing) its content, branding, or visual identity is strictly prohibited.

That said, the code is licensed under an open source license (see below), thus you are free to use it under the restrictions of the license.

## Usage

``` shell
$ git clone https://github.com/VLTHellolin/hellolin.top.git --depth 1
$ cd hellolin.top
$ pnpm install
$ pnpm build
$ pnpm start
$ pnpm run preview
```

The project is now running on port 5173.

## Acknowledgements

This project is inspired by [jktrn/astro-erudite](https://github.com/jktrn/astro-erudite), [antfu/antfu.me](https://github.com/antfu/antfu.me), [fuma-nama/fumadocs](https://github.com/fuma-nama/fumadocs), and [squidfunk/mkdocs-material](https://github.com/squidfunk/mkdocs-material).

## License

![](./docs/agplv3.png) ![](./docs/cc-by-nc-nd.png)

Released under the [GNU Affero General Public License](./LICENSE) (for the code), and [CC BY-NC-ND 4.0](./LICENSE_CONTENT) (for articles and images).

Copyright © 2025 [hellolin](https://hellolin.top). All rights reserved.
Copyright © 2026 [silvecor](https://silvecor.dev). All rights reserved.
78 changes: 0 additions & 78 deletions content.config.ts

This file was deleted.

12 changes: 0 additions & 12 deletions env.d.ts

This file was deleted.

14 changes: 10 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import defineConfig from '@hellolin-eslint/config';
import silvecor from 'eslint-config-silvecor';

export default defineConfig({
export default silvecor({
env: {
browser: true,
node: true,
},
typescript: true,
react: {
next: true,
reactCompiler: true,
framework: 'vite',
reactFastRefresh: {
allowConstantExport: true,
allowExportNames: ['getConfig'],
},
rsc: true,
},
format: true,
});
11 changes: 11 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
output:
- summary
- execution
- skips

commit-msg:
jobs:
- run: pnpm exec commitlint --edit {1}
pre-commit:
jobs:
- run: pnpm exec lint-staged
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
'**/*.{?([cm])[jt]s?(x),json?([c5]),y?(a)ml,md}': [
'eslint --cache --fix',
'eslint --fix',
],
};
51 changes: 0 additions & 51 deletions next.config.ts

This file was deleted.

Loading