Skip to content

Commit 4dc04c0

Browse files
author
djinni-hppro
committed
Merge branch 'dev' of github.com:royalgarter/feathernote into dev
2 parents 1b670f8 + b132dfa commit 4dc04c0

201 files changed

Lines changed: 9696 additions & 18562 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.

.github/workflows/deploy.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches: alpine
5+
pull_request:
6+
branches: alpine
7+
8+
jobs:
9+
deploy:
10+
name: Deploy
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
id-token: write # Needed for auth with Deno Deploy
15+
contents: read # Needed to clone the repository
16+
17+
steps:
18+
- name: Clone repository
19+
uses: actions/checkout@v4
20+
21+
- name: Install Deno
22+
uses: denoland/setup-deno@v2
23+
with:
24+
deno-version: v2.x
25+
26+
- name: Install Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: lts/*
30+
31+
- name: Install step
32+
run: "npm install"
33+
34+
- name: Upload to Deno Deploy
35+
uses: denoland/deployctl@v1
36+
with:
37+
project: "feathernote"
38+
entrypoint: "src/server.js"
39+
root: ""
40+
41+

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ next-env.d.ts
4040
.genkit/*
4141
.env*
4242

43+
package-lock.json
44+
4345
# firebase
4446
firebase-debug.log
45-
firestore-debug.log
47+
firestore-debug.log
48+
src/published_notes/*.json

.idx/icon.svg

Lines changed: 1 addition & 0 deletions
Loading

GEMINI.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Gemini Guidelines
2+
3+
## Development Workflow
4+
5+
- **Plan First:** Before implementing, draft a plan in `docs/<feature_name>.md`.
6+
- **Iterate:** Implement changes step-by-step. Avoid large, sweeping modifications.
7+
- **Preserve Code:** When removing code, comment it out with a `DEPRECATED` notice instead of deleting it outright.
8+
9+
## Core Principles
10+
11+
- **Simplicity & Readability:** Write simple, straightforward, and easy-to-understand code.
12+
- **Performance:** Consider performance without sacrificing readability.
13+
- **Maintainability & Testability:** Write code that is easy to update and test.
14+
- **Reusability:** Create reusable components and functions.
15+
- **Minimalism:** Less code is less debt. Keep the footprint small.
16+
- **Clarification & Specificity:** Ask for more details and provide open-ended suggestions if the request is ambiguous.
17+
18+
## Best Practices
19+
20+
- **Vanilla JavaScript First:** Avoid introducing new frameworks (e.g., React, Vue) or large libraries (e.g., jQuery).
21+
- **Leverage Alpine.js:** Use the existing `mainApp` data object for UI logic and state.
22+
- **Global Scope Awareness:** All JavaScript is loaded via `<script>` tags; be mindful of the global scope.
23+
- **Functional Style:** Prefer functional, immutable, and stateless approaches where they improve clarity.
24+
- **Early Returns:** Use early returns to avoid nested conditions.
25+
- **Descriptive Naming:** Use clear names for variables and functions (e.g., `handle` prefix for handlers).
26+
- **Constants:** Use constants instead of functions where possible.
27+
- **DRY (Don't Repeat Yourself):** Avoid code duplication.
28+
- **Minimal Changes:** Only modify code relevant to the current task.
29+
- **TODOs:** Mark issues in existing code with a `TODO:` prefix.
30+
- **Clean Logic:** Keep core logic clean and push implementation details to the edges.
31+
32+
## Formatting
33+
34+
- **Indentation:** Use tabs.
35+
- **Semicolons:** Always use semicolons.
36+
- **Braces:** Use One True Brace Style (1TBS).
37+
38+
## Naming Conventions
39+
40+
- **camelCase:** For variables and functions (e.g., `noteEditorVisible`, `fetchNotes`).
41+
- **UPPER_SNAKE_CASE:** For constants and globals (e.g., `DB_NAME`, `NOTE_STORE`).
42+
- **\_prefix:** Consider for internal/private functions (e.g., `_doSomethingInternal`).

0 commit comments

Comments
 (0)