Настольная гоночная игра для 2-4 игроков в возрасте от 6 лет.
- Игровое поле (6 секций карты)
- Фигурки машинок (Hot Wheels или аналогичные)
- Кубик с 6 гранями
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'; |
// in the app root | |
export const ROUTES = reatomRoutes({ | |
auth: { | |
login: {}, | |
registration: {}, | |
}, | |
goods: { | |
':id': { | |
edit: {}, | |
}, |
import { | |
type Atom, | |
type Action, | |
type Ctx, | |
type Rec, | |
atom, | |
action, | |
type Fn, | |
type CtxSpy, | |
isCausedBy, |
export type UrlSearchParamsInit = ConstructorParameters< | |
typeof URLSearchParams | |
>[0]; | |
export interface FetchRequestInit< | |
Result = unknown, | |
Params = unknown, | |
Body = unknown | |
> extends RequestInit { | |
url?: string | URL; |