Skip to content

Commit 52e3e76

Browse files
committed
add vibed code
1 parent f317204 commit 52e3e76

142 files changed

Lines changed: 26088 additions & 0 deletions

File tree

Some content is hidden

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

.cursorrules

Lines changed: 991 additions & 0 deletions
Large diffs are not rendered by default.

.gemini/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"mcpServers": {
3+
"nostr": {
4+
"type": "stdio",
5+
"command": "npx",
6+
"args": ["-y", "xjsr", "@nostrbook/mcp"]
7+
}
8+
}
9+
}

.github/copilot-instructions.md

Lines changed: 991 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/deploy.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["main"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
# Single deploy job
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: "22"
38+
cache: npm
39+
40+
- name: Install dependencies and build
41+
run: |
42+
npm install
43+
npm run build
44+
cp dist/index.html dist/404.html
45+
46+
- name: Setup Pages
47+
uses: actions/configure-pages@v5
48+
49+
- name: Upload artifact
50+
uses: actions/upload-pages-artifact@v3
51+
with:
52+
path: dist
53+
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: "22"
23+
24+
- name: Clean install dependencies
25+
run: |
26+
rm -rf node_modules package-lock.json
27+
npm install
28+
29+
- name: Run tests
30+
run: npm run test

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.idea
17+
.DS_Store
18+
*.suo
19+
*.ntvs*
20+
*.njsproj
21+
*.sln
22+
*.sw?
23+
24+
# Vercel
25+
.vercel
26+
27+
# Secrets
28+
.env
29+
.env.*
30+
!.env.example

.gitlab-ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
image: node:22
2+
3+
default:
4+
interruptible: true
5+
timeout: 1 minute
6+
7+
stages:
8+
- test
9+
- deploy
10+
11+
test:
12+
stage: test
13+
script:
14+
- npm run test
15+
16+
pages:
17+
stage: deploy
18+
script:
19+
- npm run build
20+
- rm -rf public
21+
- mv dist public
22+
artifacts:
23+
paths:
24+
- public
25+
only:
26+
variables:
27+
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME

0 commit comments

Comments
 (0)