Skip to content

Commit

Permalink
tldraw merge (#10)
Browse files Browse the repository at this point in the history
* [improvement] Add `getContent` and `insertContent` methods (tldraw#726)

* Add insertContent method, update copyJson

* Add more tests

* Update TldrawApp.spec.ts

* Adds option object for select, point, and uses in paste

* 1.17.0

* Add overwrite option to insertContent (tldraw#730)

* fix clipboard.read error on Firefox (tldraw#729)

See more @ https://stackoverflow.com/questions/67440036/navigator-clipboard-readtext-is-not-working-in-js/67442777#67442777

* 1.7.2, add Vec.distanceTo / Vec.nearestPointOnBounds

* Update Vec

* Update MultiplayerMenu.tsx

* Update MultiplayerMenu.tsx

* 1.17.2

* Adding Arabic Language (tldraw#732)

* Create ar.json

* Update Tldraw.tsx

* Update types.ts

* Update LanguageMenu.tsx

* Update Tldraw.tsx

* Update LanguageMenu.tsx

* [fix] bug with images that have the same name (tldraw#743)

* add unique id to file names to avoid name clashes

* Add event callbacks for `onSessionStart` and `onSessionEnd`

* arrows ignore locked shapes (tldraw#745)

* Upgrade Liveblocks to 0.17 (tldraw#738)

* Upgrade Liveblocks packages to 0.17

* Convert app to recommended Liveblocks 0.17 setup

* Convert multiplayer example to recommended Liveblocks 0.17 setup

* Convert multiplayer-with-images example to recommended Liveblocks 0.17 setup

* Fix React rendering issue for multiplayer app

This bug could manifest after _navigating_ internally to the Multiplayer
example app. Liveblocks Storage would seem to remain empty, but Presence
would still seem to work. In other words, you'd see cursors flying, but
no document contents.

This did not happen when doing a full page load.

This bug only occurs in React strict mode.

* update onPatch and onCommand

* "Add event callbacks for `onSessionStart` and `onSessionEnd`"

* Adds edit state

* Pass callbacks to app

* Remove console logs

* interpolate cursor only when not in session

* Update multiplayer icon

* Fix a few things

Co-authored-by: Steve Ruiz <[email protected]>

* add translation guide (tldraw#746)

* update example

* 1.18.0

* Update translation.md

* Bump electron from 17.0.0 to 17.2.0 (tldraw#749)

Bumps [electron](https://github.com/electron/electron) from 17.0.0 to 17.2.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](electron/electron@v17.0.0...v17.2.0)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump electron from 17.0.0 to 17.2.0 in /apps/electron (tldraw#748)

Bumps [electron](https://github.com/electron/electron) from 17.0.0 to 17.2.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](electron/electron@v17.0.0...v17.2.0)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump next-auth from 4.3.3 to 4.5.0 (tldraw#747)

Bumps [next-auth](https://github.com/nextauthjs/next-auth) from 4.3.3 to 4.5.0.
- [Release notes](https://github.com/nextauthjs/next-auth/releases)
- [Changelog](https://github.com/nextauthjs/next-auth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nextauthjs/next-auth/compare/[email protected]@v4.5.0)

---
updated-dependencies:
- dependency-name: next-auth
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: add korean translation (tldraw#752)

* feat: add korean translation

* chore: fix typo

* chore: fix typo (tldraw#753)

* Fix bugs

- local server bug
- improve types for translations
- fix missing italian translation
- fix double ungroup label

* Add locked indicator

* refactor translations

* Update translation.md

* Update translation.md

* rename translations

* Japanese translation (tldraw#756)

* Japanese translation

* fix: replace empty string to space.

* fix: improve Japanese

* Add norwegian translation (tldraw#757)

* feat: add norwegian translation

* arrange text in alphabetical order

* sort by code

* rename en.json to main.json

Co-authored-by: Steve Ruiz <[email protected]>

* feat: spanish language (tldraw#755)

* feat: spanish language

* Update translations.ts

Co-authored-by: Steve Ruiz <[email protected]>

* Turkish Language (tldraw#754)

* Turkish Language Added

* Turkish changed to Türkçe

* Update translations.ts

Co-authored-by: Steve Ruiz <[email protected]>

* Polish translations (tldraw#758)

* polish translations

* translations guide typo fix

* 1.18.1

* Improve UX for renaming text fields (tldraw#761)

* Update DrawSession.ts (tldraw#762)

* Add Nepali translation (tldraw#760)

* Add nepali language json

* Add nepali translation

* fix: add `preventDefault` (tldraw#764)

* fix: correct translation term (tldraw#763)

* feat: spanish language

* Update translations.ts

* fix: correct translation term

Co-authored-by: Steve Ruiz <[email protected]>

* Added translations to Portuguese (pt-br) (tldraw#759)

* Added translations to Portuguese (pt-br)

* Update translations.ts

Co-authored-by: Steve Ruiz <[email protected]>

* Added Danish translation (tldraw#765)

* Update TldrawApp.ts (tldraw#766)

* Added page rearranging by dragging (desktop only) (tldraw#768)

* Added page rearranging by dragging (desktop only)

* Increment page names correctly, create drop indicator

Co-authored-by: Steve Ruiz <[email protected]>

* Translation german (tldraw#771)

* Translated to German

Translated the page to German.
There may be some inaccurate translations, because some phrases depend on context i.e. "to fit" or "binding handles", but it is comprehensible in German.

* Update de.json

* fix bugs on page move

Update TldrawApp.ts

* Update PageMenu.tsx

* Update PageMenu.tsx

* 1.18.2

* Update PageMenu.tsx

* Translation german (tldraw#772)

* Translated to German

Translated the page to German.
There may be some inaccurate translations, because some phrases depend on context i.e. "to fit" or "binding handles", but it is comprehensible in German.

* Update de.json

* Update de.json

Updated some translations with respect to their context

Co-authored-by: Steve Ruiz <[email protected]>

* new tab extension (tldraw#773)

* Add new tab extension

* Update package.json

* Update package.json

* Update screenshot / manifest

* Delete dist.crx

* prevent escape from undoing text change

* 1.18.3

* Add Farsi translations (tldraw#778)

* Add Farsi translations

* fix translations.ts

* Update translations.ts

Co-authored-by: Saeed Alipoor <[email protected]>
Co-authored-by: Steve Ruiz <[email protected]>

* Add a Russian translation (tldraw#777)

* Add Russian translation

* Update translations.ts

Co-authored-by: Steve Ruiz <[email protected]>

* Revise the Russian translation (tldraw#784)

I'm sorry for not catching some unnatural-sounding strings in it earlier, but I guess it's better late than never.

* Implemented better page numbering (tldraw#779)

* Implemented better page numbering

* Added spanish and french translation

* Add tests, fix regex

* Improve page naming logic

Co-authored-by: Steve Ruiz <[email protected]>

* 1.19.0 (tldraw#789)

* Edit Farsi translations (tldraw#788)

* Add a Ukrainian translation (tldraw#786)

* Add a Ukrainian translation

* Clarify some strings in the Ukrainian translation

* feat: change dock position (tldraw#774)

* feat: change dock position

* fix grid row and column

* add top position

* fix responsive for the top position

* change content side

* fix overflowing menu

* [improvement] theme on body (tldraw#790)

* Update Tldraw.tsx

* Add theme on body, adjust dark page options dialog

* fix test

* Preparing for global integration (tldraw#775)

* Update translations.ts

* Create en.json

* Make main translation default

* Remove unused locale property of translation

Co-authored-by: Steve Ruiz <[email protected]>

* Fix language menu

* Update ar.json (tldraw#793)

* feature/add Hebrew translations (tldraw#792)

* hebrew translations

* pr fixes

Co-authored-by: Steve Ruiz <[email protected]>

* fix toolspanel item position (tldraw#791)

* fix toolspanel item position

* add translation

Co-authored-by: Steve Ruiz <[email protected]>

* Add remote caching

* Adds link to translation guide (tldraw#794)

Co-authored-by: Baahar Ebrahimi <[email protected]>
Co-authored-by: walking-octopus <[email protected]>
Co-authored-by: Judicael <[email protected]>
Co-authored-by: Ali Alhaidary <[email protected]>
Co-authored-by: gadi246 <[email protected]>

* 1.19.0

* 1.20.0 (tldraw#797)

* Edit Farsi translations (tldraw#788)

* Add a Ukrainian translation (tldraw#786)

* Add a Ukrainian translation

* Clarify some strings in the Ukrainian translation

* feat: change dock position (tldraw#774)

* feat: change dock position

* fix grid row and column

* add top position

* fix responsive for the top position

* change content side

* fix overflowing menu

* [improvement] theme on body (tldraw#790)

* Update Tldraw.tsx

* Add theme on body, adjust dark page options dialog

* fix test

* Preparing for global integration (tldraw#775)

* Update translations.ts

* Create en.json

* Make main translation default

* Remove unused locale property of translation

Co-authored-by: Steve Ruiz <[email protected]>

* Fix language menu

* Update ar.json (tldraw#793)

* feature/add Hebrew translations (tldraw#792)

* hebrew translations

* pr fixes

Co-authored-by: Steve Ruiz <[email protected]>

* fix toolspanel item position (tldraw#791)

* fix toolspanel item position

* add translation

Co-authored-by: Steve Ruiz <[email protected]>

* Add remote caching

* Adds link to translation guide (tldraw#794)

* Update ar.json (tldraw#795)

* [feature] readonly link (tldraw#796)

* Copy readonly link

* Update [id].tsx

* Add readonly label

* update psuedohash

* Update utils.ts

Co-authored-by: Baahar Ebrahimi <[email protected]>
Co-authored-by: walking-octopus <[email protected]>
Co-authored-by: Judicael <[email protected]>
Co-authored-by: Ali Alhaidary <[email protected]>
Co-authored-by: gadi246 <[email protected]>

* add dock position to migrate, cleanup code

* Update MultiplayerMenu.tsx

* Fix link

* Update utils.ts

* Update main.json

* Fix panel position on mobile

* 1.19.1

* [feature] Iframe warning (tldraw#800)

* erp

* Update ToolsPanel.tsx

* Restore fixes

* fix browser zoom while editing text (tldraw#802)

* Move radix UI to dev deps. export core as core. add padding argument to zoomToFit

* export vec

version bump

remove curve

* revert export of core packages

* export shapeStyleHelpers

* shapesShared

* Disable image box shadow

* Disable image box shadow

* Add attrs for shape styles

* Expose colors on text labels

* cleanup

* Add deploy step for core (#9)

* Add deploy step for core

* Alias tldraw core

* Pin core version

* First deploy core

* Deploy core script

* Fix core permissions

* Consume core from tldraw

* yarnrc

* .yarnrc

* .yarnrc for child packages

* try workspace

* Revert "try workspace"

This reverts commit 1999219.

* add top level npmrc

* Increase line height, bump versions

Revert "yarnrc"

This reverts commit 48b0625.

core first ugh

Revert "Revert "yarnrc""

This reverts commit 8dd73bb.

* restore yarn.lock

* bump tldraw to use new core

* fix merge, version bump, fix tests

* remove yarn line

Co-authored-by: Steve Ruiz <[email protected]>
Co-authored-by: Jack Bauer <[email protected]>
Co-authored-by: Ali Alhaidary <[email protected]>
Co-authored-by: Vincent Driessen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cog25 <[email protected]>
Co-authored-by: Sugit <[email protected]>
Co-authored-by: Sigve Hansen <[email protected]>
Co-authored-by: Juan Carlos Acosta Perabá <[email protected]>
Co-authored-by: Oğuzhan Durgut <[email protected]>
Co-authored-by: Daniel Alberski <[email protected]>
Co-authored-by: pramitmarattha <[email protected]>
Co-authored-by: Mark Ladyshau <[email protected]>
Co-authored-by: Victor Novais <[email protected]>
Co-authored-by: Anders Bech Mellson <[email protected]>
Co-authored-by: Enrico <[email protected]>
Co-authored-by: Jan Bessler <[email protected]>
Co-authored-by: Baahar Ebrahimi <[email protected]>
Co-authored-by: Saeed Alipoor <[email protected]>
Co-authored-by: walking-octopus <[email protected]>
Co-authored-by: Judicael <[email protected]>
Co-authored-by: gadi246 <[email protected]>
Co-authored-by: James Fox <[email protected]>
  • Loading branch information
1 parent 59c9bf4 commit a86ca1a
Show file tree
Hide file tree
Showing 155 changed files with 6,939 additions and 1,562 deletions.
17 changes: 16 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,22 @@
// enable the rule specifically for TypeScript files
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": [0]
"@typescript-eslint/explicit-module-boundary-types": [0],
"no-non-null-assertion": "off",
"no-fallthrough": "off",
"@typescript-eslint/no-fallthrough": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
}
}
]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ apps/www/public/sw.js.map
.envrc
firebase.config.*.turbo
.turbo
apps/new-tab-extension/tsconfig.tsbuildinfo
2 changes: 1 addition & 1 deletion .turbo/config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{"teamId":"team_MjXkk3MAaGtBFaHcssVUiMgd","apiUrl":"https://api.vercel.com"}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Thanks to our corporate sponsors:

<a href="https://blindsidenetworks.com/"><img src="./assets/blindside.png" width="212"></img></a>

<a href="https://www.100ms.live/"><img src="./assets/100ms.png" width="212"></img></a>

</div>

...and to our [individual sponsors](https://github.com/sponsors/steveruizok#sponsors)!
Expand Down
2 changes: 1 addition & 1 deletion apps/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@types/react": "^18.0.12",
"@types/react-dom": "^18.0.5",
"@types/react-router-dom": "^5.1.8",
"electron": "17.0.0",
"electron": "17.2.0",
"electron-builder": "^22.13.1",
"electron-esbuild": "^5.0.0",
"electron-util": "^0.17.2",
Expand Down
332 changes: 212 additions & 120 deletions apps/electron/yarn.lock

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions apps/new-tab-extension/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
26 changes: 26 additions & 0 deletions apps/new-tab-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# @tldraw/new-tab-extension

## 0.1.0

### Minor Changes

- - Adds Ukrainian translations
- Adds Farsi translation
- Adds Hebrew translation
- Adds option for dock position
- Improves page numbering
- Support dark mode in menus
- Make language menu scrollable
- Adds link to translation guide

### Patch Changes

- Updated dependencies
- @tldraw/tldraw@1.19.0

## 0.0.2

### Patch Changes

- Updated dependencies
- @tldraw/tldraw@1.18.3
13 changes: 13 additions & 0 deletions apps/new-tab-extension/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>New Tab - tldraw</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
41 changes: 41 additions & 0 deletions apps/new-tab-extension/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "@tldraw/new-tab-extension",
"private": true,
"version": "0.1.0",
"description": "A tiny little new tab extension for tldraw.",
"author": "@steveruizok",
"repository": {
"type": "git",
"url": "https://github.com/tldraw/tldraw.git"
},
"license": "MIT",
"scripts": {
"dev:extension": "vite --host",
"build:extension": "yarn build",
"build": "tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"@tldraw/tldraw": "*",
"mobx": "^6.5.0",
"mobx-react-lite": "^3.3.0",
"mobx-utils": "^6.0.5",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-router-dom": "^6.3.0"
},
"resolutions": {
"@types/react": "^18.0.11",
"@types/react-dom": "^18.0.5"
},
"devDependencies": {
"@types/react": "^18.0.11",
"@types/react-dom": "^18.0.5",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^1.0.7",
"config": "*",
"tsconfig": "*",
"typescript": "^4.7.2",
"vite": "^2.9.8"
}
}
Binary file added apps/new-tab-extension/public/128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/new-tab-extension/public/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/new-tab-extension/public/32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/new-tab-extension/public/48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions apps/new-tab-extension/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "tldraw",
"description": "A tiny little drawing app for your new tab screen.",
"version": "1.0",
"manifest_version": 3,
"permissions": [
"unlimitedStorage"
],
"default_icon": {
"16": "16.png",
"32": "32.png",
"48": "48.png",
"128": "128.png"
},
"icons": {
"16": "16.png",
"32": "32.png",
"48": "48.png",
"128": "128.png"
},
"chrome_url_overrides": {
"newtab": "index.html"
}
}
Binary file added apps/new-tab-extension/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions apps/new-tab-extension/src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { Tldraw, TldrawApp, TldrawProps, useFileSystem } from '@tldraw/tldraw'
import { useUploadAssets } from './hooks/useUploadAssets'
import * as React from 'react'

declare const window: Window & { app: TldrawApp }

interface EditorProps {
id?: string
isUser?: boolean
isSponsor?: boolean
}

const Editor = ({
id = 'home',
isUser = false,
isSponsor = false,
...rest
}: EditorProps & Partial<TldrawProps>) => {
const handleMount = React.useCallback((app: TldrawApp) => {
window.app = app
}, [])

const fileSystemEvents = useFileSystem()

const { onAssetUpload } = useUploadAssets()

return (
<div className="tldraw">
<Tldraw
id={id}
autofocus
onMount={handleMount}
showSponsorLink={!isSponsor}
onAssetUpload={onAssetUpload}
{...fileSystemEvents}
{...rest}
/>
</div>
)
}

export default Editor
Binary file added apps/new-tab-extension/src/favicon.ico
Binary file not shown.
38 changes: 38 additions & 0 deletions apps/new-tab-extension/src/hooks/useUploadAssets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { Utils } from '@tldraw/core'
import { TldrawApp } from '@tldraw/tldraw'
import { useCallback } from 'react'

export function useUploadAssets() {
const onAssetUpload = useCallback(
// Send the asset to our upload endpoint, which in turn will send it to AWS and
// respond with the URL of the uploaded file.

async (app: TldrawApp, file: File, id: string): Promise<string | false> => {
const filename = encodeURIComponent((id ?? Utils.uniqueId()) + file.name)

const fileType = encodeURIComponent(file.type)

const res = await fetch(`https://tldraw.com/api/upload?file=${filename}&fileType=${fileType}`)

const { url, fields } = await res.json()

const formData = new FormData()

Object.entries({ ...fields, file }).forEach(([key, value]) => {
formData.append(key, value as any)
})

const upload = await fetch(url, {
method: 'POST',
body: formData,
})

if (!upload.ok) return false

return url + '/' + filename
},
[]
)

return { onAssetUpload }
}
59 changes: 59 additions & 0 deletions apps/new-tab-extension/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
@font-face {
font-family: 'Recursive';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(https://fonts.gstatic.com/s/recursive/v23/8vI-7wMr0mhh-RQChyHEH06TlXhq_gukbYrFMk1QuAIcyEwG_X-dpEfaE5YaERmK-CImKsvxvU-MXGX2fSqasNfUlTGZnI14ZeY.woff2)
format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Recursive';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/recursive/v23/8vI-7wMr0mhh-RQChyHEH06TlXhq_gukbYrFMk1QuAIcyEwG_X-dpEfaE5YaERmK-CImKsvxvU-MXGX2fSqasNfUlTGZnI14ZeY.woff2)
format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Recursive Mono';
font-style: normal;
font-weight: 420;
font-display: swap;
src: url(https://fonts.gstatic.com/s/recursive/v23/8vI-7wMr0mhh-RQChyHEH06TlXhq_gukbYrFMk1QuAIcyEwG_X-dpEfaE5YaERmK-CImqvTxvU-MXGX2fSqasNfUlTGZnI14ZeY.woff2)
format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html,
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

a {
color: inherit;
text-decoration: none;
}

* {
box-sizing: border-box;
}

.tldraw {
position: fixed;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
width: 100%;
height: 100%;
}
10 changes: 10 additions & 0 deletions apps/new-tab-extension/src/main.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>
)
1 change: 1 addition & 0 deletions apps/new-tab-extension/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
41 changes: 41 additions & 0 deletions apps/new-tab-extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"Display": "Vite",
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": false,
"sourceMap": false,
"importHelpers": true,
"incremental": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": false,
"strictFunctionTypes": true,
"strictNullChecks": true,
"stripInternal": true,
"target": "ESNext",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"types": ["vite/client"],
"useDefineForClassFields": true,
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"emitDeclarationOnly": false,
"experimentalDecorators": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src"],
"ignore": ["_archive"],
"exclude": ["node_modules"],
"references": [{ "path": "../../packages/tldraw" }]
}
9 changes: 9 additions & 0 deletions apps/new-tab-extension/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"composite": true,
"module": "esnext",
"moduleResolution": "node",
"experimentalDecorators": true
},
"include": ["vite.config.ts"]
}
1 change: 1 addition & 0 deletions apps/new-tab-extension/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

Loading

0 comments on commit a86ca1a

Please sign in to comment.