Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StephenHaney/dear-diary-ai
/ functions
Functions
27 in github.com/StephenHaney/dear-diary-ai
⨍
Functions
27
◇
Types & classes
2
↓ 3 callers
Function
getServerTimestamp
()
src/firebase/getServerTimestamp.ts:3
↓ 2 callers
Function
persistEventIsKey
(event: dbKeyPress | dbSelectionEvent)
src/firebase/persistKeys.ts:25
↓ 2 callers
Function
persistEventIsSelection
(event: dbKeyPress | dbSelectionEvent)
src/firebase/persistKeys.ts:29
↓ 1 callers
Function
generateEntry
()
src/firebase/createEntry.ts:14
↓ 1 callers
Function
handlePlayClick
()
src/pages/entry/[entryId].tsx:79
↓ 1 callers
Function
handleStartClick
()
src/pages/index.tsx:110
↓ 1 callers
Function
midiToPitchClass
* Convert a midi note to a pitch class (just the pitch no octave) * Credit: https://github.com/Tonejs/Midi/blob/master/src/Note.ts
src/components/utils/midiHelpers.ts:20
↓ 1 callers
Function
persistKeys
(entryId: string, persistEvents: Array<dbKeyPress | dbSelectionEvent>)
src/firebase/persistKeys.ts:33
↓ 1 callers
Function
toNote
(midi: number)
src/components/utils/midiHelpers.ts:29
Function
AboutOverlay
({ setIsOpen }: Props)
src/components/AboutOverlay.tsx:77
Function
EntryPlayback
()
src/pages/entry/[entryId].tsx:26
Function
Home
()
src/pages/privacy.tsx:27
Function
Home
()
src/pages/index.tsx:27
Function
JournalScreen
({ readonly = false, sampler }: Props)
src/components/JournalScreen.tsx:95
Function
MidiConvert
()
src/components/MidiConvert.tsx:4
Function
MidiConvert
()
src/components/GenerateMelodies.tsx:5
Function
Output
()
src/pages/generate-melodies.tsx:4
Function
Output
()
src/pages/midi-convert.tsx:4
Function
ProductHuntBadge
()
src/components/ProductHuntBadge.tsx:21
Function
ShareAndAbout
({ readonly }: Props)
src/components/ShareAndAbout.tsx:61
Function
ShareOverlay
({ setIsOpen }: Props)
src/components/ShareOverlay.tsx:8
Function
Tree
()
src/components/Tree.tsx:3
Function
WinnerBadge
()
src/components/WinnerBadge.tsx:53
Method
getInitialProps
(ctx)
src/pages/_document.js:4
Method
render
()
src/pages/_document.js:9
Function
startAfterLoaded
()
src/pages/index.tsx:138
Function
toMidi
(note: string | number)
src/components/utils/midiHelpers.ts:12