Before implementing inbox-based endpoints, you need to set up a Jazz server worker.
Server workers have Jazz accounts with static credentials. Generate new credentials by running:
#!/usr/bin/env node | |
import { execSync } from "child_process" | |
import { createHash } from "crypto" | |
import { mkdir, readFile, writeFile } from "fs/promises" | |
const cacheDir = "./node_modules/.cache" | |
const cachePath = `${cacheDir}/deps_check_lock_hash.txt` | |
await mkdir(cacheDir, { recursive: true }).catch(() => {}) |
You need to implement a STUNNING landing page for Reatom state manager [email protected]. Sections (screens):
import { performance } from 'node:perf_hooks' | |
const measure = (name: string, cb: () => void) => { | |
const start = performance.now() | |
cb() | |
console.log(name, performance.now() - start) | |
} | |
class LLNode { | |
value = 0 |
import { atom, reatomAsync, withStatusesAtom } from '@reatom/framework'; | |
import { | |
FunnelMinorFileType, | |
FileType, | |
type FunnelMinorFile as AssetFile, | |
type UpdateFunnelDataInput, | |
} from 'src/__generated__/graphql'; | |
import { t } from 'src/admin/i18n'; | |
import { type FormFieldOptions, reatomForm } from 'src/reatom-form'; | |
import { reatomObjectUrl } from 'src/shared/reatomObjectUrl'; |
export const listResource = reatomResource( | |
(ctx) => request("api/list", ctx.controller), | |
"listResource" | |
).pipe(withCache(), withDataAtom([])); | |
export const updateList = reatomAction(async () => { | |
/* */ | |
}, "updateList").pipe(withVariables()); | |
export const List = reatomComponent(({ ctx }) => ( |
npx cloc compiler | |
3668 text files. | |
2905 unique files. | |
767 files ignored. | |
github.com/AlDanial/cloc v 2.00 T=1.10 s (2642.9 files/s, 139378.2 lines/s) | |
------------------------------------------------------------------------------- | |
Language files blank comment code | |
------------------------------------------------------------------------------- |
/* eslint-disable */ | |
// https://github.com/Chronstruct/display-primitives/issues/1#issuecomment-1518496207 | |
// declare global { | |
// namespace JSX { | |
// interface IntrinsicElements<T extends string> { | |
// input: React.DetailedHTMLProps< | |
// React.InputHTMLAttributes<HTMLInputElement>, | |
// HTMLInputElement |
import { | |
type AsyncAction, | |
action, | |
atom, | |
spawn, | |
take, | |
toAbortError, | |
isCausedBy, | |
} from '@reatom/framework'; | |
import { reatomComponent } from '@reatom/npm-react'; |