Skip to content

Commit a09c76b

Browse files
committed
Initial commit
0 parents  commit a09c76b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+8079
-0
lines changed

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This configuration only applies to the package manager root.
2+
/** @type {import("eslint").Linter.Config} */
3+
module.exports = {
4+
ignorePatterns: ["apps/**", "packages/**"],
5+
extends: ["@workspace/eslint-config/library.js"],
6+
parser: "@typescript-eslint/parser",
7+
parserOptions: {
8+
project: true,
9+
},
10+
}

.github/workflows/pages.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Pages
17+
id: setup_pages
18+
uses: actions/configure-pages@v5 # You need to add this step if you are NOT using custom domain
19+
20+
- name: Deploy docs to GitHub Pages
21+
uses: nicnocquee/speed-docs-github-action@v1
22+
with:
23+
content-path: "./docs"
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
base-path: ${{ steps.setup_pages.outputs.base_path }} # You need to add this step if you are NOT using custom domain

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# Dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
7+
8+
# Local env files
9+
.env
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
14+
15+
# Testing
16+
coverage
17+
18+
# Turbo
19+
.turbo
20+
21+
# Vercel
22+
.vercel
23+
24+
# Build Outputs
25+
.next/
26+
out/
27+
build
28+
dist
29+
30+
31+
# Debug
32+
npm-debug.log*
33+
34+
# Misc
35+
.DS_Store
36+
*.pem
37+
38+
docs-output

.npmrc

Whitespace-only changes.

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"tailwindCSS.experimental.configFile": "packages/ui/src/styles/globals.css"
3+
}

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Hyperjump Web Framework (WIP)
2+
3+
This is the monorepo for the Hyperjump Web Framework.
4+
5+
## Usage
6+
7+
```bash
8+
pnpm install
9+
```
10+
11+
## Running the docs
12+
13+
```bash
14+
pnpm docs:dev
15+
```
16+
17+
## Running the demo web app
18+
19+
```bash
20+
pnpm build --filter=web
21+
```

apps/web/app/env/client.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"use client";
2+
3+
import { env } from "@workspace/env";
4+
5+
export default function ClientEnvPage() {
6+
return (
7+
<div>
8+
<h1>Client Component</h1>
9+
<ul>
10+
<li>
11+
NEXT_PUBLIC_DEFAULT_LANGUAGE: {env.NEXT_PUBLIC_DEFAULT_LANGUAGE}
12+
</li>
13+
<li>
14+
timeout: {(env.NEXT_PUBLIC_DEFAULT_TIMEOUT_MS ?? 0) / 1000} seconds
15+
</li>
16+
{/* <li>DB_URL_NON_POOLING: {env.DB_URL_NON_POOLING}</li>
17+
<li>DB_POOLING_URL: {env.DB_POOLING_URL}</li> */}
18+
</ul>
19+
</div>
20+
);
21+
}

apps/web/app/env/page.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { env } from "@workspace/env";
2+
import ClientEnvPage from "./client";
3+
4+
export default function EnvPage() {
5+
return (
6+
<div>
7+
<h1>Env Demo</h1>
8+
<div>
9+
<h2>Server component</h2>
10+
<ul>
11+
<li>DB_URL: {env.DB_POOLING_URL}</li>
12+
<li>DB_URL_NON_POOLING: {env.DB_URL_NON_POOLING}</li>
13+
<li>
14+
NEXT_PUBLIC_DEFAULT_LANGUAGE: {env.NEXT_PUBLIC_DEFAULT_LANGUAGE}
15+
</li>
16+
<li>
17+
NEXT_PUBLIC_DEFAULT_TIMEOUT_MS: {env.NEXT_PUBLIC_DEFAULT_TIMEOUT_MS}
18+
</li>
19+
</ul>
20+
</div>
21+
<div>
22+
<ClientEnvPage />
23+
</div>
24+
</div>
25+
);
26+
}

apps/web/app/even/page.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { Button } from "@workspace/ui/components/button";
2+
import { connection } from "next/server";
3+
4+
export default async function Page() {
5+
await connection();
6+
const isEven = process.env.IS_EVEN;
7+
const shouldRender = isEven?.includes("_yo");
8+
return (
9+
<div className="flex items-center justify-center min-h-svh">
10+
<div className="flex flex-col items-center justify-center gap-4">
11+
<h1 className="text-2xl font-bold">Even page</h1>
12+
<Button size="sm">Button</Button>
13+
{shouldRender && <p>Is even yo</p>}
14+
</div>
15+
</div>
16+
);
17+
}

apps/web/app/favicon.ico

25.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)