Skip to content

Commit

Permalink
skibidi
Browse files Browse the repository at this point in the history
  • Loading branch information
Notplayingallday383 committed Feb 26, 2024
1 parent c1f707c commit c3b804f
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function () {
export default function Footer() {
return (
<div>
<div id="footer" class="fullwidth">
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{
"name": "sodium-instance",
"version": "2.1.0",
"version": "2.2.0",
"description": "Sodium is a site used for evading internet censorship",
"type": "module",
"engines": {
"npm": ">=9.8.1"
},
"scripts": {
"start": "vite build && tsx server.ts"
"start": "vite build && tsx server.ts",
"build": "vite build",
"dev": "vite"
},
"keywords": [
"proxy"
],
"author": "z1g Project",
"license": "MIT",
"dependencies": {
"@mercuryworkshop/alicejs": "^2.1.2",
"@tomphttp/bare-server-node": "^2.0.1",
"@types/axios": "^0.14.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
Expand All @@ -25,6 +28,7 @@
"eslint": "^8.56.0",
"express": "^4.18.2",
"ip": "^1.1.8",
"path": "^0.12.7",
"tsx": "4.7.1",
"typescript": "^5.2.2",
"vite": "^5.0.8",
Expand Down
32 changes: 32 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import Nav from "../components/Nav"
import Footer from "../components/Footer"
import "@mercuryworkshop/alicejs"
// @ts-expect-error stfu
import Nav from "@components/nav.tsx"
// @ts-expect-error stfu
import Footer from "@components/footer"
import "../public/assets/css/home.css"
export default function home() {
export default function Home() {
return (
<div>
<Nav />
Expand Down Expand Up @@ -52,4 +55,8 @@ export default function home() {
<Footer />
</div>
)
}
}

window.addEventListener('load', () => {
document.body.appendChild(<Home />);
})
28 changes: 28 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"jsx": "react",
"jsxFactory": "h",
"jsxFragmentFactory": "YOU_CANT_USE_FRAGMENTS",
"types": ["@mercuryworkshop/alicejs"],
"paths": {
"@/*": ["./*"],
}
},
"include": ["src"],
"exclude": ["public/", "node_modules/"]
}

1 change: 1 addition & 0 deletions vite.config.js → vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"@components": path.resolve(__dirname, "./components"),
},
},
});

0 comments on commit c3b804f

Please sign in to comment.