This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { promises as fs } from 'node:fs' | |
import * as path from 'node:path' | |
import { exec } from 'node:child_process' | |
import os from 'node:os' | |
interface PackageJson { | |
profile?: { [key: string]: any } | |
[key: string]: any | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AnimatedNumbers = () => { | |
const [numbers, setNumbers] = useState(100_000) | |
const len = `${numbers}`.length | |
return ( | |
<YStack gap="$5"> | |
<XStack gap="$2"> | |
<Button | |
onPress={() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
blue, | |
blueDark, | |
gray, | |
grayDark, | |
green, | |
greenDark, | |
orange, | |
orangeDark, | |
pink, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"apc.activityBar": { | |
"position": "bottom", | |
"hideSettings": true, | |
"size": 20 | |
}, | |
"apc.statusBar": { | |
"position": "editor-bottom", | |
"height": 22, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { animation, Button, Card, Geometry, Row, Title, View } from '@o/ui' | |
import React from 'react' | |
export const TestCarousel = () => { | |
const apps = [{ title: 'ok' }, { title: 'ok2' }, { title: 'ok3' }, { title: 'o4' }] | |
const carousel = animation(() => ({ | |
scrollLeft: 0, | |
zoomed: false, | |
})) | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { always, AppDefinition, AppIcon, createUsableStore, ensure, getAppDefinition, react, shallow, Templates, useReaction } from '@o/kit' | |
import { AppBit } from '@o/models' | |
import { Card, CardProps, fuzzyFilter, idFn, Row, useIntersectionObserver, useNodeSize, useParentNodeSize, useTheme, View } from '@o/ui' | |
import { numberBounder, numberScaler } from '@o/utils' | |
import React, { createRef, memo, useEffect, useLayoutEffect, useRef, useState } from 'react' | |
import { to, useSpring, useSprings } from 'react-spring' | |
import { useGesture } from 'react-use-gesture' | |
import { om, useOm } from '../../om/om' | |
import { queryStore } from '../../om/stores' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ensure, useReaction } from '@mcro/use-store' | |
import { getTargetValue, List, searchBits, TreeList, useTreeList } from '@o/kit' | |
import { Button, InputRow, Panel, preventDefault, useToggle, View } from '@o/ui' | |
import { flow } from 'lodash' | |
import React, { useState } from 'react' | |
export function ListsAppIndex() { | |
const treeList = useTreeList('list') | |
const [addQuery, setAddQuery] = useState('') | |
const [showSearch, toggleShowSearch] = useToggle(false) |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ orbit-app git:(nate/dev) ✗ PUNDLE=true npm start | |
> @mcro/orbit-app@2.2.1 start /Users/nw/projects/motion/orbit/app/orbit-app | |
> ./scripts/start.sh | |
Process on port 3002 killed | |
start w pundle | |
Starting Dev Server at http://localhost:3002/ (with resetted cache) | |
Static mappings: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import r2 from '@mcro/r2' | |
import puppeteer from 'puppeteer' | |
import * as _ from 'lodash' | |
const sleep = ms => new Promise(res => setTimeout(res, ms)) | |
const onFocus = page => { | |
return page.evaluate(() => { | |
return new Promise(res => { | |
if (document.hasFocus()) { | |
res() |
NewerOlder