Skip to content

Commit c8a8f41

Browse files
committed
feat: redesign homepage
1 parent 76d6ed9 commit c8a8f41

40 files changed

+692
-137
lines changed

β€Ž.gitattributesβ€Ž

Lines changed: 317 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,317 @@
1+
# Common settings that generally should always be used with your language specific settings
2+
3+
# Auto detect text files and perform LF normalization
4+
* text=auto
5+
6+
#
7+
# The above will handle all files NOT found below
8+
#
9+
10+
# Documents
11+
*.bibtex text diff=bibtex
12+
*.doc diff=astextplain
13+
*.DOC diff=astextplain
14+
*.docx diff=astextplain
15+
*.DOCX diff=astextplain
16+
*.dot diff=astextplain
17+
*.DOT diff=astextplain
18+
*.pdf diff=astextplain
19+
*.PDF diff=astextplain
20+
*.rtf diff=astextplain
21+
*.RTF diff=astextplain
22+
*.md text diff=markdown
23+
*.mdx text diff=markdown
24+
*.tex text diff=tex
25+
*.adoc text
26+
*.textile text
27+
*.mustache text
28+
*.csv text eol=crlf
29+
*.tab text
30+
*.tsv text
31+
*.txt text
32+
*.sql text
33+
*.epub diff=astextplain
34+
35+
# Graphics
36+
*.png binary
37+
*.jpg binary
38+
*.jpeg binary
39+
*.gif binary
40+
*.tif binary
41+
*.tiff binary
42+
*.ico binary
43+
# SVG treated as text by default.
44+
*.svg text
45+
# If you want to treat it as binary,
46+
# use the following line instead.
47+
# *.svg binary
48+
*.eps binary
49+
50+
# Scripts
51+
*.bash text eol=lf
52+
*.fish text eol=lf
53+
*.ksh text eol=lf
54+
*.sh text eol=lf
55+
*.zsh text eol=lf
56+
# These are explicitly windows files and should use crlf
57+
*.bat text eol=crlf
58+
*.cmd text eol=crlf
59+
*.ps1 text eol=crlf
60+
61+
# Serialisation
62+
*.json text
63+
*.toml text
64+
*.xml text
65+
*.yaml text
66+
*.yml text
67+
68+
# Archives
69+
*.7z binary
70+
*.bz binary
71+
*.bz2 binary
72+
*.bzip2 binary
73+
*.gz binary
74+
*.lz binary
75+
*.lzma binary
76+
*.rar binary
77+
*.tar binary
78+
*.taz binary
79+
*.tbz binary
80+
*.tbz2 binary
81+
*.tgz binary
82+
*.tlz binary
83+
*.txz binary
84+
*.xz binary
85+
*.Z binary
86+
*.zip binary
87+
*.zst binary
88+
89+
# Text files where line endings should be preserved
90+
*.patch -text
91+
92+
#
93+
# Exclude files from exporting
94+
#
95+
96+
.gitattributes export-ignore
97+
.gitignore export-ignore
98+
.gitkeep export-ignore
99+
100+
## GITATTRIBUTES FOR WEB PROJECTS
101+
#
102+
# These settings are for any web project.
103+
#
104+
# Details per file setting:
105+
# text These files should be normalized (i.e. convert CRLF to LF).
106+
# binary These files are binary and should be left untouched.
107+
#
108+
# Note that binary is a macro for -text -diff.
109+
######################################################################
110+
111+
# Auto detect
112+
## Handle line endings automatically for files detected as
113+
## text and leave all files detected as binary untouched.
114+
## This will handle all files NOT defined below.
115+
* text=auto
116+
117+
# Source code
118+
*.bash text eol=lf
119+
*.bat text eol=crlf
120+
*.cmd text eol=crlf
121+
*.coffee text
122+
*.css text diff=css
123+
*.htm text diff=html
124+
*.html text diff=html
125+
*.inc text
126+
*.ini text
127+
*.js text
128+
*.mjs text
129+
*.cjs text
130+
*.json text
131+
*.jsx text
132+
*.less text
133+
*.ls text
134+
*.map text -diff
135+
*.od text
136+
*.onlydata text
137+
*.php text diff=php
138+
*.pl text
139+
*.ps1 text eol=crlf
140+
*.py text diff=python
141+
*.rb text diff=ruby
142+
*.sass text
143+
*.scm text
144+
*.scss text diff=css
145+
*.sh text eol=lf
146+
.husky/* text eol=lf
147+
*.sql text
148+
*.styl text
149+
*.tag text
150+
*.ts text
151+
*.tsx text
152+
*.xml text
153+
*.xhtml text diff=html
154+
155+
# Docker
156+
Dockerfile text
157+
158+
# Documentation
159+
*.ipynb text eol=lf
160+
*.markdown text diff=markdown
161+
*.md text diff=markdown
162+
*.mdwn text diff=markdown
163+
*.mdown text diff=markdown
164+
*.mkd text diff=markdown
165+
*.mkdn text diff=markdown
166+
*.mdtxt text
167+
*.mdtext text
168+
*.txt text
169+
AUTHORS text
170+
CHANGELOG text
171+
CHANGES text
172+
CONTRIBUTING text
173+
COPYING text
174+
copyright text
175+
*COPYRIGHT* text
176+
INSTALL text
177+
license text
178+
LICENSE text
179+
NEWS text
180+
readme text
181+
*README* text
182+
TODO text
183+
184+
# Templates
185+
*.dot text
186+
*.ejs text
187+
*.erb text
188+
*.haml text
189+
*.handlebars text
190+
*.hbs text
191+
*.hbt text
192+
*.jade text
193+
*.latte text
194+
*.mustache text
195+
*.njk text
196+
*.phtml text
197+
*.svelte text
198+
*.tmpl text
199+
*.tpl text
200+
*.twig text
201+
*.vue text
202+
203+
# Configs
204+
*.cnf text
205+
*.conf text
206+
*.config text
207+
.editorconfig text
208+
.env text
209+
.gitattributes text
210+
.gitconfig text
211+
.htaccess text
212+
*.lock text -diff
213+
package.json text eol=lf
214+
package-lock.json text eol=lf -diff
215+
pnpm-lock.yaml text eol=lf -diff
216+
.prettierrc text
217+
yarn.lock text -diff
218+
*.toml text
219+
*.yaml text
220+
*.yml text
221+
browserslist text
222+
Makefile text
223+
makefile text
224+
# Fixes syntax highlighting on GitHub to allow comments
225+
tsconfig.json linguist-language=JSON-with-Comments
226+
227+
# Heroku
228+
Procfile text
229+
230+
# Graphics
231+
*.ai binary
232+
*.bmp binary
233+
*.eps binary
234+
*.gif binary
235+
*.gifv binary
236+
*.ico binary
237+
*.jng binary
238+
*.jp2 binary
239+
*.jpg binary
240+
*.jpeg binary
241+
*.jpx binary
242+
*.jxr binary
243+
*.pdf binary
244+
*.png binary
245+
*.psb binary
246+
*.psd binary
247+
# SVG treated as an asset (binary) by default.
248+
*.svg text
249+
# If you want to treat it as binary,
250+
# use the following line instead.
251+
# *.svg binary
252+
*.svgz binary
253+
*.tif binary
254+
*.tiff binary
255+
*.wbmp binary
256+
*.webp binary
257+
258+
# Audio
259+
*.kar binary
260+
*.m4a binary
261+
*.mid binary
262+
*.midi binary
263+
*.mp3 binary
264+
*.ogg binary
265+
*.ra binary
266+
267+
# Video
268+
*.3gpp binary
269+
*.3gp binary
270+
*.as binary
271+
*.asf binary
272+
*.asx binary
273+
*.avi binary
274+
*.fla binary
275+
*.flv binary
276+
*.m4v binary
277+
*.mng binary
278+
*.mov binary
279+
*.mp4 binary
280+
*.mpeg binary
281+
*.mpg binary
282+
*.ogv binary
283+
*.swc binary
284+
*.swf binary
285+
*.webm binary
286+
287+
# Archives
288+
*.7z binary
289+
*.gz binary
290+
*.jar binary
291+
*.rar binary
292+
*.tar binary
293+
*.zip binary
294+
295+
# Fonts
296+
*.ttf binary
297+
*.eot binary
298+
*.otf binary
299+
*.woff binary
300+
*.woff2 binary
301+
302+
# Executables
303+
*.exe binary
304+
*.pyc binary
305+
# Prevents massive diffs caused by vendored, minified files
306+
**/.yarn/releases/** binary
307+
**/.yarn/plugins/** binary
308+
309+
# RC files (like .babelrc or .eslintrc)
310+
*.*rc text
311+
312+
# Ignore files (like .npmignore or .gitignore)
313+
*.*ignore text
314+
315+
# Prevents massive diffs from built files
316+
dist/* binary
317+

β€Ž.prettierignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
**/*.md
2+
!docs/index.md
23
pnpm-lock.yaml
34
.turbo
45
.cache

β€Žbiome.jsonβ€Ž

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,26 @@
1111
"formatter": {
1212
"enabled": false
1313
},
14+
"css": {
15+
"linter": {
16+
"enabled": false
17+
},
18+
"formatter": {
19+
"enabled": false
20+
}
21+
},
22+
"json": {
23+
"formatter": {
24+
"enabled": false
25+
},
26+
"linter": {
27+
"enabled": false
28+
}
29+
},
30+
"vcs": {
31+
"enabled": true,
32+
"clientKind": "git"
33+
},
1434
"javascript": {
1535
"globals": [
1636
"defineNitroConfig",

β€Ždocs/.vitepress/config.mtsβ€Ž

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import consola from 'consola'
22
import UnoCSS from 'unocss/vite'
33
import AutoImport from 'unplugin-auto-import/vite'
4+
import OptimizeExclude from 'vite-plugin-optimize-exclude'
5+
import Terminal from 'vite-plugin-terminal'
46
import { defineConfig } from 'vitepress'
57
import {
68
commitRef,
@@ -53,8 +55,16 @@ export default defineConfig({
5355
.finally(() => consola.success('Success!'))
5456
},
5557
vite: {
58+
ssr: {
59+
noExternal: ['@fmhy/components']
60+
},
5661
optimizeDeps: { exclude: ['workbox-window'] },
5762
plugins: [
63+
OptimizeExclude(),
64+
Terminal({
65+
console: 'terminal',
66+
output: ['console', 'terminal']
67+
}),
5868
UnoCSS({
5969
configFile: '../unocss.config.ts'
6070
}),
@@ -112,7 +122,6 @@ export default defineConfig({
112122
outline: 'deep',
113123
logo: '/fmhy.ico',
114124
nav: [
115-
{ text: 'πŸ“š Beginners Guide', link: '/beginners-guide' },
116125
{ text: 'πŸ”– Glossary', link: 'https://rentry.org/The-Piracy-Glossary' },
117126
{ text: 'πŸ“‘ Guides', link: 'https://rentry.co/fmhy-guides' },
118127
{
@@ -122,10 +131,8 @@ export default defineConfig({
122131
{
123132
text: 'πŸͺ… Ecosystem',
124133
items: [
134+
{ text: 'πŸ’™ Feedback', link: '/feedback' },
125135
{ text: '🌐 Search', link: '/posts/search' },
126-
{ text: 'πŸ“° Posts', link: '/posts' },
127-
{ text: 'πŸ’¬ Feedback', link: '/feedback' },
128-
{ text: 'πŸ’™ Contribute', link: 'other/contributing' },
129136
{ text: '🏞 Wallpapers', link: '/other/wallpapers' },
130137
{ text: 'πŸ“‹ snowbin', link: 'https://pastes.fmhy.net' },
131138
{ text: 'πŸ” SearXNG', link: 'https://searx.fmhy.net/' },

0 commit comments

Comments
Β (0)