Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update page.tsx #87

Open
wants to merge 1,092 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1092 commits
Select commit Hold shift + click to select a range
4faccbd
Merge pull request #50 from sawq375/patch-11
kenos1 Jan 17, 2024
6b8fdc2
Merge pull request #52 from sawq375/patch-13
kenos1 Jan 17, 2024
840dc11
Merge pull request #53 from sawq375/patch-14
kenos1 Jan 17, 2024
438a85d
fix: fix the inconsistent equipment articles
1092384 Jan 18, 2024
cce13dd
fix: oil_tanker_ship_tanks are not a thing
Compositr Jan 18, 2024
9ba0b40
Merge branch 'main' of https://github.com/hasangergames/suroi-wiki
Compositr Jan 18, 2024
6f8b763
style: one space
Compositr Jan 18, 2024
8e57a0d
fix: fix the melee articles the other guy made btw other guy work on …
1092384 Jan 18, 2024
054ed3b
fix: massive 109 moment
1092384 Jan 18, 2024
6cb5f73
wip: stub fences article
Compositr Jan 18, 2024
ced2abd
enhance: add tear gas side effect to article
1092384 Jan 18, 2024
16c743c
feat: porta potty door stuff in doors article
1092384 Jan 18, 2024
976241b
Added river rock
Viswas-Programs Jan 18, 2024
3c1a008
feat: cabinet article
1092384 Jan 18, 2024
2d692ed
fix: fix outdated info on metal shelf article
1092384 Jan 18, 2024
179fb83
fix: massive 109 moment part 2 :)
1092384 Jan 18, 2024
6f70dab
feat: improve C's fence article
1092384 Jan 18, 2024
19bd4b4
Merge pull request #54 from Viswas-Programs/main
1092384 Jan 18, 2024
4b63ac9
Create button.md
sawq375 Jan 18, 2024
2396312
Update Collapsible.tsx
pythoncat1 Jan 18, 2024
eb51ec3
Create viking_chest.md
sawq375 Jan 18, 2024
6c9b8e7
Update bush.md
sawq375 Jan 18, 2024
c963cc3
Merge pull request #57 from sawq375/patch-17
1092384 Jan 18, 2024
6e816bc
Update button.md
sawq375 Jan 18, 2024
a767359
Update viking_chest.md
sawq375 Jan 18, 2024
2c0408e
Merge pull request #56 from sawq375/patch-15
1092384 Jan 18, 2024
0a6bc10
fix: fix the button article
1092384 Jan 18, 2024
f39bf3d
Merge pull request #55 from sawq375/patch-16
1092384 Jan 18, 2024
4855587
fix: fix the viking CHEST article
1092384 Jan 18, 2024
3af5693
a
SovietNuclearFridgeBomb Jan 19, 2024
33e4cb8
a
SovietNuclearFridgeBomb Jan 19, 2024
3dca162
Create mobile_home_tire.md
SovietNuclearFridgeBomb Jan 19, 2024
3c72b13
enhance: grenade related gallery images
kenos1 Jan 19, 2024
667d884
lint: format collapsible.tsx
kenos1 Jan 19, 2024
0a47e18
enhance: wiki team and contributor section
kenos1 Jan 19, 2024
dcf9bb8
Create mobile_home.md
sawq375 Jan 19, 2024
3e3f579
Update mobile_home.md
sawq375 Jan 19, 2024
fa87522
Update stove.md
SovietNuclearFridgeBomb Jan 20, 2024
31cc84f
Merge branch 'HasangerGames:main' into main
SovietNuclearFridgeBomb Jan 20, 2024
7dcf381
Update armory_meta.md
SovietNuclearFridgeBomb Jan 20, 2024
5439a81
Update containers.md
SovietNuclearFridgeBomb Jan 20, 2024
294e967
Update crane.md
SovietNuclearFridgeBomb Jan 20, 2024
97c7397
Update house.md
SovietNuclearFridgeBomb Jan 20, 2024
14ecaa3
Update port.md
SovietNuclearFridgeBomb Jan 20, 2024
e836e04
Update port_meta.md
SovietNuclearFridgeBomb Jan 20, 2024
90f8878
Update port_warehouse.md
SovietNuclearFridgeBomb Jan 20, 2024
c8ee06d
Update port_shed.md
SovietNuclearFridgeBomb Jan 20, 2024
9d1b7db
Update porta_potty.md
SovietNuclearFridgeBomb Jan 20, 2024
6bbfa44
Update refinery.md
SovietNuclearFridgeBomb Jan 20, 2024
4ab3101
Update ship.md
SovietNuclearFridgeBomb Jan 20, 2024
137b45e
Update small_house.md
SovietNuclearFridgeBomb Jan 20, 2024
058a030
Update warehouse.md
SovietNuclearFridgeBomb Jan 20, 2024
e9369b5
Update basic_helmet.md
SovietNuclearFridgeBomb Jan 20, 2024
248b629
Update basic_vest.md
SovietNuclearFridgeBomb Jan 20, 2024
d593d72
Update regular_helmet.md
SovietNuclearFridgeBomb Jan 20, 2024
a81c2a0
Update regular_vest.md
SovietNuclearFridgeBomb Jan 20, 2024
e231405
Update and rename tactical_helmet.md to tactical_vesta.md
SovietNuclearFridgeBomb Jan 20, 2024
5d47b0d
Update and rename tactical_vest.md to tactical_helmet.md
SovietNuclearFridgeBomb Jan 20, 2024
cdc20f9
Rename tactical_vesta.md to tactical_vest.md
SovietNuclearFridgeBomb Jan 20, 2024
53db26f
Update basic_pack.md
SovietNuclearFridgeBomb Jan 20, 2024
ea61db0
Update regular_pack.md
SovietNuclearFridgeBomb Jan 20, 2024
ead1fcf
Update tactical_pack.md
SovietNuclearFridgeBomb Jan 20, 2024
601083b
Update cola.md
SovietNuclearFridgeBomb Jan 20, 2024
ecbc90a
Update gauze.md
SovietNuclearFridgeBomb Jan 20, 2024
5147e67
Update medikit.md
SovietNuclearFridgeBomb Jan 20, 2024
d0952db
Update tablets.md
SovietNuclearFridgeBomb Jan 20, 2024
6c839d8
Update airdrops.md
SovietNuclearFridgeBomb Jan 20, 2024
75c5f65
Update ammo_crate.md
SovietNuclearFridgeBomb Jan 20, 2024
5638236
Update barrels.md
SovietNuclearFridgeBomb Jan 20, 2024
e3e7b00
Update barrier.md
SovietNuclearFridgeBomb Jan 20, 2024
756a250
Update bollard.md
SovietNuclearFridgeBomb Jan 20, 2024
94f0944
Update bush.md
SovietNuclearFridgeBomb Jan 20, 2024
eec7a25
Update christmas_tree.md
SovietNuclearFridgeBomb Jan 20, 2024
fc88abb
Update crates.md
SovietNuclearFridgeBomb Jan 20, 2024
b2c5219
Update flint_stone.md
SovietNuclearFridgeBomb Jan 20, 2024
e8dbcff
Update fridge.md
SovietNuclearFridgeBomb Jan 20, 2024
ffb4767
Update generator.md
SovietNuclearFridgeBomb Jan 20, 2024
3cdfb3a
Update gold_rock.md
SovietNuclearFridgeBomb Jan 20, 2024
7d700fd
Update gun_mounts.md
SovietNuclearFridgeBomb Jan 20, 2024
739b1c2
Update large_refinery_barrel.md
SovietNuclearFridgeBomb Jan 20, 2024
d71e736
Update m1117.md
SovietNuclearFridgeBomb Jan 20, 2024
3c2312f
Update metal_shelf.md
SovietNuclearFridgeBomb Jan 20, 2024
66fff74
Update oil_tank.md
SovietNuclearFridgeBomb Jan 20, 2024
72740ce
Update pumpkin.md
SovietNuclearFridgeBomb Jan 20, 2024
f02b0e4
Update regular_crate.md
SovietNuclearFridgeBomb Jan 20, 2024
b643d81
Update river_rock.md
SovietNuclearFridgeBomb Jan 20, 2024
a743d98
Update rock.md
SovietNuclearFridgeBomb Jan 20, 2024
06ce87c
Update sandbags.md
SovietNuclearFridgeBomb Jan 20, 2024
c7fe8e2
Update small_refinery_barrel.md
SovietNuclearFridgeBomb Jan 20, 2024
24c33e2
Update smokestack.md
SovietNuclearFridgeBomb Jan 20, 2024
195031b
Update table.md
SovietNuclearFridgeBomb Jan 20, 2024
b1fcbd9
Update tango_crate.md
SovietNuclearFridgeBomb Jan 20, 2024
59d4d9a
Update trees.md
SovietNuclearFridgeBomb Jan 20, 2024
dbb5304
Update tv.md
SovietNuclearFridgeBomb Jan 20, 2024
bba76be
Update viking_chest.md
SovietNuclearFridgeBomb Jan 20, 2024
1a142aa
Update washing_machine.md
SovietNuclearFridgeBomb Jan 20, 2024
60ec15d
Update acr.md
SovietNuclearFridgeBomb Jan 20, 2024
e7d5c3f
Update ak47.md
SovietNuclearFridgeBomb Jan 20, 2024
f32cd18
Update arx160.md
SovietNuclearFridgeBomb Jan 20, 2024
ff0684f
Update aug.md
SovietNuclearFridgeBomb Jan 20, 2024
20c0035
Update barrett.md
SovietNuclearFridgeBomb Jan 20, 2024
035be25
Update cz75a.md
SovietNuclearFridgeBomb Jan 20, 2024
46ec7f5
Update deathray.md
SovietNuclearFridgeBomb Jan 20, 2024
3ca7cb4
Update flues.md
SovietNuclearFridgeBomb Jan 20, 2024
dd42f59
Update g19.md
SovietNuclearFridgeBomb Jan 20, 2024
d6cc607
Update hp18.md
SovietNuclearFridgeBomb Jan 20, 2024
fa477f5
Update lewis_gun.md
SovietNuclearFridgeBomb Jan 20, 2024
8e09824
Update m1895.md
SovietNuclearFridgeBomb Jan 20, 2024
4d563cb
Update m1_garand.md
SovietNuclearFridgeBomb Jan 20, 2024
dc7f498
Update m3k.md
SovietNuclearFridgeBomb Jan 20, 2024
08cf522
Update mini14.md
SovietNuclearFridgeBomb Jan 20, 2024
209bd99
Update model_37.md
SovietNuclearFridgeBomb Jan 20, 2024
fcb3d52
Update mosin.md
SovietNuclearFridgeBomb Jan 20, 2024
920fc3b
Update mp40.md
SovietNuclearFridgeBomb Jan 20, 2024
657cef3
Update radio.md
SovietNuclearFridgeBomb Jan 20, 2024
765cfbc
Update revitalizer.md
SovietNuclearFridgeBomb Jan 20, 2024
3f1e700
Update s_g17.md
SovietNuclearFridgeBomb Jan 20, 2024
e914b7e
Update saf_200.md
SovietNuclearFridgeBomb Jan 20, 2024
0fd32b1
Update sr25.md
SovietNuclearFridgeBomb Jan 20, 2024
b4754c6
Update stoner_63.md
SovietNuclearFridgeBomb Jan 20, 2024
81432e0
Update vector.md
SovietNuclearFridgeBomb Jan 20, 2024
9f12aec
Update vepr12.md
SovietNuclearFridgeBomb Jan 20, 2024
53eb750
Update vss.md
SovietNuclearFridgeBomb Jan 20, 2024
2b4afc6
Update baseball_bat.md
SovietNuclearFridgeBomb Jan 20, 2024
b40c4b2
Update fists.md
SovietNuclearFridgeBomb Jan 20, 2024
f13ec55
Update kbar.md
SovietNuclearFridgeBomb Jan 20, 2024
5d57874
Update maul.md
SovietNuclearFridgeBomb Jan 20, 2024
8bdfdf4
Update seax.md
SovietNuclearFridgeBomb Jan 20, 2024
31c99df
Update seax.md
SovietNuclearFridgeBomb Jan 20, 2024
39026de
Update frag_grenade.md
SovietNuclearFridgeBomb Jan 20, 2024
c28fd3d
Update smoke_grenade.md
SovietNuclearFridgeBomb Jan 20, 2024
33711cb
fix: 109 moment: i named them wrong
1092384 Jan 20, 2024
f9b58c9
fix: 109 moments
1092384 Jan 20, 2024
b5c7510
oil_tanker.md
valdiboi Jan 20, 2024
54d7c7e
enhance: add chrsper website
kenos1 Jan 20, 2024
faed727
Merge pull request #59 from sawq375/patch-18
1092384 Jan 20, 2024
1b33e55
fix: fix the mobile home article
1092384 Jan 20, 2024
962c8cc
feat: articles for the mobile home stuff
1092384 Jan 20, 2024
3941875
chore: add suroiwiki to allowed words
Compositr Jan 21, 2024
18fbe5c
fix: 109 moments & indentation
Compositr Jan 21, 2024
ce6e436
lint: weird apostrophes
Compositr Jan 21, 2024
9ed7324
feat: add isWeapon, export asserts
Compositr Jan 21, 2024
07cb955
chore: add names
Compositr Jan 21, 2024
bca318d
fix: various type errors
Compositr Jan 21, 2024
428d280
Create briefcase.md
SovietNuclearFridgeBomb Jan 21, 2024
f76a967
Create mobile_home_sink.md
SovietNuclearFridgeBomb Jan 21, 2024
99f4eb8
enhance: emerald told me to do it so blame them
1092384 Jan 21, 2024
d8e779b
fml
Katloo24 Jan 21, 2024
a219b38
feat: tire article
1092384 Jan 22, 2024
ca5312f
fix: remove croissant
1092384 Jan 22, 2024
b880576
feat: fat oil tank
1092384 Jan 22, 2024
0b7b16a
Merge pull request #61 from valdiboi/patch-3
1092384 Jan 22, 2024
58fcb40
feat: fat oil tank article (real)
1092384 Jan 22, 2024
c4da088
fix: avacado moments
1092384 Jan 22, 2024
dbb8055
Update drawers.md
valdiboi Jan 22, 2024
af2c2f1
enhance: add frag grenade video from lava
kenos1 Jan 22, 2024
140efe9
enhance: gallery ui
kenos1 Jan 22, 2024
8885b64
feat: throwable explosion killfeed image
kenos1 Jan 22, 2024
8e26ba7
lint: i like to lint it lint it
kenos1 Jan 22, 2024
e445826
bleh
kenos1 Jan 22, 2024
2958f77
Merge pull request #62 from valdiboi/patch-4
1092384 Jan 23, 2024
312134b
feat: briefcase article
1092384 Jan 23, 2024
3cf9016
fix: fixes
1092384 Jan 23, 2024
b7dedc7
feat: image for briefcase
1092384 Jan 23, 2024
cc0edfa
fix: bruh (thanks 5cm dude)
1092384 Jan 23, 2024
550207f
Merge branch 'main' into main
1092384 Jan 24, 2024
f5269d5
Merge pull request #64 from SovietNuclearFridgeBomb/main
1092384 Jan 24, 2024
0591b73
Update flint_stone.md
sawq375 Jan 24, 2024
e3cf839
Merge pull request #65 from sawq375/patch-19
1092384 Jan 25, 2024
1c88a3a
fix: broken vss link
Compositr Jan 25, 2024
78a511d
fix: link goffy
Compositr Jan 25, 2024
8b795d8
mobile home window (#66)
SovietNuclearFridgeBomb Jan 30, 2024
974dbf3
chore: organize imports
kenos1 Jan 30, 2024
9cc59cf
fix: fix the mobile home article
1092384 Jan 30, 2024
1eda14a
fix: katie moment
Compositr Jan 31, 2024
3481784
fix: katie moment number 2
Compositr Jan 31, 2024
48c9184
fix: spelling in code file
Compositr Feb 2, 2024
6124d31
feat: sitemap
Compositr Feb 2, 2024
152e19f
lint: prettier ci complaint
Compositr Feb 2, 2024
8a4b73e
fix art guide images
ei-pi Feb 4, 2024
6f2e4c5
fix: text-align => textAlign
Zollo757347 Feb 8, 2024
f704168
enhance: improve smoke grenade article
1092384 Feb 26, 2024
c87458c
enhance: added v0.16.0 info to garand
1092384 Feb 26, 2024
e172e26
Model 89 article
Katloo24 Feb 26, 2024
5b6d020
least fuckup
Katloo24 Feb 26, 2024
dbb6734
Wrong bunk bed creator it seems
Viswas-Programs Feb 28, 2024
fbbe3c7
fix: right designer for bunk bed
1092384 Feb 29, 2024
db66fb3
fix: what the frick do i write here lmfao
1092384 Mar 1, 2024
7ffae0e
Merge pull request #72 from Viswas-Programs/patch-1
Compositr Mar 1, 2024
d681aae
Merge pull request #70 from Zollo757347/fix
Compositr Mar 1, 2024
12f2f0f
feat: 4 new articles
1092384 Mar 6, 2024
4aa4abc
fix: rename articles
1092384 Mar 6, 2024
bcd56a9
fix: spelling
1092384 Mar 7, 2024
91ddeb4
Create cz600.md (#76)
sawq375 Mar 7, 2024
615ad50
fix: fix grammar and delete duplicate articles
1092384 Mar 7, 2024
edb14bf
Create pp19 (#74)
sawq375 Mar 7, 2024
5647663
fix: minor wording in pp19 article
1092384 Mar 7, 2024
57901f0
Create river_chest.md (#75)
sawq375 Mar 7, 2024
a8bfe27
fix: fix the river chest article
1092384 Mar 7, 2024
7e03ba7
Sea Traffic Control, Control Panel (normal and tugboat version) (#78)
Viswas-Programs Mar 7, 2024
90da829
fix: fix new articles
1092384 Mar 7, 2024
1e607ab
fix: spelling
1092384 Mar 7, 2024
0c51475
fix: stop lint from failing
1092384 Mar 8, 2024
1872202
fix: i promise this is the last one
1092384 Mar 8, 2024
ee1f54b
Merge branch 'main' into art-guide-fix
ei-pi Mar 9, 2024
6761dbd
petty inane prettier fixes
ei-pi Mar 9, 2024
16a93ba
Merge pull request #73 from HasangerGames/art-guide-fix
kenos1 Mar 9, 2024
8a0f14e
Update model_89.md
EagleEye2010 Mar 10, 2024
bb82644
Merge pull request #79 from EagleEye2010/main
kenos1 Mar 10, 2024
9f43f28
feat: lily pad article
1092384 Mar 11, 2024
bdc6355
fix: fixes to multiple articles
1092384 Mar 11, 2024
c1fa694
feat: item count in loot tables
1092384 Mar 11, 2024
f3d5582
Update pp19.md (#80)
EagleEye2010 Mar 11, 2024
8f67c46
Added Vepr-12 images (#81)
EagleEye2010 Mar 12, 2024
bf10ed8
feat: speed and recoil info to gun details
kenos1 Mar 16, 2024
ddae6a5
fix: broken link
Compositr Mar 17, 2024
71b8079
enhance: add credits to new stuff
1092384 Mar 17, 2024
6dabe98
fix: fix cz600 article
1092384 Mar 19, 2024
e2ac749
damage per second number
emeraldn30 Mar 20, 2024
c524dc6
wait i also changed the mosin article can you also change that
emeraldn30 Mar 20, 2024
0c9bba3
Merge pull request #82 from emeraldn30/patch-1
kenos1 Mar 20, 2024
8069c42
idk
Katloo24 Mar 29, 2024
acdc54c
tomato
Katloo24 Mar 29, 2024
5d679bc
fix: katie cant spell
DamienVesper Mar 30, 2024
405c5b7
chore: bump deps
DamienVesper Mar 30, 2024
6cce399
feat: update some old articles
1092384 Mar 30, 2024
d8076b3
feat: update some articles
1092384 Apr 4, 2024
b11168a
funny
Katloo24 Apr 5, 2024
744abcd
the most important one
Katloo24 Apr 5, 2024
babc9c1
Negev article
Katloo24 Apr 5, 2024
d94a10b
some sillies
Katloo24 Apr 5, 2024
733243a
refactor: clean up objectcategorymapping
hsanger Apr 5, 2024
7da5bd6
fix: breaking definition changes
hsanger Apr 5, 2024
2557126
fix: weapons page
hsanger Apr 5, 2024
8038e45
fix: GenericMDXPageFactory
hsanger Apr 5, 2024
9334e10
fix: GenericLayoutFactory
hsanger Apr 5, 2024
1190ebf
fix: ArmorCalc
hsanger Apr 5, 2024
e77005c
fix: buildings page
hsanger Apr 5, 2024
c29f028
fix: gun pages
hsanger Apr 5, 2024
5add5c9
fix: kitchen-sink
hsanger Apr 5, 2024
46eb80d
fix: throwable pages
hsanger Apr 5, 2024
ecda278
mg5 article
Katloo24 Apr 5, 2024
cd37265
need 2 push rn
Katloo24 Apr 5, 2024
fdbf12f
Finished article
BearHey Apr 5, 2024
663750a
Merge pull request #83 from BearHey/patch-1
kenos1 Apr 5, 2024
0a4c95a
fix: fix your articles
1092384 Apr 6, 2024
bf59a8b
feat: update gun mount article
1092384 Apr 6, 2024
7bfa6a6
fix: link fix
1092384 Apr 7, 2024
7bdce34
enhance: article enhancements
1092384 Apr 7, 2024
8a193fe
Update page.tsx
elvin-ntk Apr 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.gitignore
node_modules
.eslintrc.json
shell.nix
.next
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
pull_request:
push:
workflow_dispatch:

jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Lint
run: pnpm ci:lint
spellcheck:
name: "Spell Check"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Spellcheck
run: pnpm spellcheck
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
/build

# misc
.idea
.vscode/*
!.vscode/tasks.json
!.vscode/extensions.json
.DS_Store
*.pem

Expand All @@ -34,3 +38,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
/.vs
2 changes: 2 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[submodule "vendor/suroi"]
path = vendor/suroi
url = https://github.com/HasangerGames/suroi
branch = master

9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
vendor
.git
.github
.next
.vscode
node_modules
*.md
package.json
pnpm-lock.yaml
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["prettier-plugin-organize-imports"]
}
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-next",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"streetsidesoftware.code-spell-checker"
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cSpell.words": ["lucide", "Suroi"],
"editor.tabSize": 2
}
31 changes: 31 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Development Server",
"command": ["pnpm", "dev", "--turbo"],
"problemMatcher": []
},
{
"type": "shell",
"label": "Lint",
"command": ["pnpm", "lint"],
"problemMatcher": []
},
{
"type": "shell",
"label": "Build",
"command": ["pnpm", "build"],
"group": "build",
"problemMatcher": []
},
{
"type": "shell",
"label": "Production Server",
"command": ["pnpm", "start"],
"group": "build",
"problemMatcher": []
}
]
}
54 changes: 54 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
FROM node:20-alpine AS base

### Rebuild deps only when needed ###
FROM base AS deps

RUN apk add --no-cache libc6-compat git

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN corepack prepare pnpm@latest --activate

WORKDIR /app

COPY package.json pnpm-lock.yaml ./
RUN pnpm i

### Rebuild source only when needed ###
FROM base AS builder

RUN corepack enable
RUN corepack prepare pnpm@latest --activate

WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

RUN git submodule init
RUN git submodule update --remote
RUN pnpm build

### Production image ###
FROM base AS runner

# Set correct permissions
RUN addgroup nodejs
RUN adduser -SDH nextjs
RUN mkdir .next
RUN chown nextjs:nodejs .next

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /app/public ./public

USER nextjs

EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"

CMD ["node", "server.js"]

35 changes: 35 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
pipeline {
agent {
docker {
image 'node:20-slim'
args '-u root:root'
}
}

stages {
stage('Setup pnpm') {
steps {
sh 'corepack enable'
sh 'corepack prepare --activate pnpm@8'
}
}

stage('Install dependencies') {
steps {
sh 'pnpm i'
}
}

stage('Check spelling') {
steps {
sh 'pnpm spellcheck'
}
}

stage('Build') {
steps {
sh 'pnpm build'
}
}
}
}
Loading