Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
grymmy authored Oct 22, 2024
2 parents dbcbec6 + 4b5e6ee commit 5627805
Show file tree
Hide file tree
Showing 11 changed files with 367 additions and 185 deletions.
13 changes: 12 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,15 @@ GRAPHITE_HOST=
STUCK_AIRTABLE_BASE=
SENDGRID_API_KEY=
LOOPS_API_KEY=
DEV_CODE=
DEV_CODE=

PUBLIC_SPRIG_LLM_API=
EMAIL_FROM=
EMAIL_REPLY_TO=
PUBLIC_SIGNALING_SERVER_HOST=
GITHUB_CLIENT_SECRET=
PUBLIC_GITHUB_CLIENT_ID=
PUBLIC_GITHUB_REDIRECT_URI=
PUBLIC_GALLERY_API=
MAX_ATTEMPTS=
LOCKOUT_DURATION_MS=
8 changes: 8 additions & 0 deletions src/components/big-interactive-pages/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ const minHelpAreaHeight = 32;
let defaultHelpAreaHeight = 350;
const helpAreaHeightMargin = 0; // The margin between the screen and help area

export const foldTemplateLiteral = (from: number, to: number) => {
if (!codeMirror.value) return;
collapseRanges(
codeMirror.value,
[[from, to]]
);
}

export const foldAllTemplateLiterals = () => {
if (!codeMirror.value) return;
const code = codeMirror.value.state.doc.toString() ?? "";
Expand Down
Loading

0 comments on commit 5627805

Please sign in to comment.