Commit graph

934 commits

Author SHA1 Message Date
Steve Ruiz
d8e7a0b804 Update Loading.tsx 2022-07-19 15:56:35 +01:00
Judicael
77337b1281
feat: add help panel (#816)
* feat: add help panel

* feat: added all the shortcuts and responsive

* improve help panel

* add modal for the shortcut

* add grid

* fix language menu

* add responsive grid

* Styling keyboard shortcuts / panel

* fix links ts issue

* Improve styling

* Fix translation bug

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-07-19 10:04:38 +01:00
Gwenaël Gallon
240202bb81
feat: Added translation for "loading..." (#823)
* Added translation for "loading..."

* Resolve

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-07-18 18:04:16 +01:00
Gwenaël Gallon
b32750c43d
[Fix] French translation (#825)
* Only the first letter in capital

* Spelling corrections

* Correction of wrong translations

* Best common translation

* Specify the direction of rotation

* Translate to French

* Better translation for this actions

* Revert to preferring the use of "zoom"

* It's better to know on what it acts

* Missing of hyphen

* Better for user focus

- It's better for the user focus to not use the same action verb for two opposite actions (to.front/to.back)
- Specifies the unit of motion for (forward/backward)

* Removes the direction of rotation

* Better alternative for copy/export as

Also, this indicates that we will be able to choose the file format when copying/exporting.
2022-07-18 18:01:50 +01:00
Steve Ruiz
54b66246d6
Fix flips (#829) 2022-07-18 18:01:15 +01:00
Gwenaël Gallon
b6c4059791
Fix broken link for the translation guide (#824) 2022-07-18 17:52:30 +01:00
Judicael
20d4de02c4
fix: paste unicode (#819)
* fix: paste unicode

* fix unicode

* use html element to unencode

* Move to insertContent

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-07-14 19:30:03 +01:00
Gwenaël Gallon
cb00822404
feat: add new french translation (#820)
* [fr] add new translations

* Remove duplicate (page)
2022-07-14 13:06:34 +01:00
Ali Alhaidary
29fa3c54dc
Update ar.json (#821) 2022-07-14 13:06:22 +01:00
Gwenaël Gallon
6e5ba45ee5
feat: add "Back to content" missing translation (#809)
* feat: add "Back to content" missing translation

* fix: style

* reverted of translations except for main.json and fr

* Prefer declarative use with an html element
2022-07-13 14:18:59 +01:00
SiderealArt
7d6cc1f924
Create zh-tw.json (#811)
* Create zh-tw.json

* Update translations.ts

* new strings
2022-07-13 14:18:47 +01:00
Ali Alhaidary
8eabfa7a2b
Update ar.json (#815) 2022-07-13 14:18:19 +01:00
Judicael
e6d3074f90
fix browser zoom while editing text (#802) 2022-07-11 09:56:06 +01:00
Steve Ruiz
b0755d8def Restore fixes 2022-07-10 22:05:43 +01:00
Steve Ruiz
a4d980c290 Update ToolsPanel.tsx 2022-07-10 17:34:39 +01:00
Steve Ruiz
2352985e94
[feature] Iframe warning (#800) 2022-07-08 21:25:08 +01:00
Steve Ruiz
1e80d1ac21 1.19.1 2022-07-08 20:35:10 +01:00
Steve Ruiz
9785c1c924 Fix panel position on mobile 2022-07-08 20:03:53 +01:00
Steve Ruiz
167e5944fd Update main.json 2022-07-08 14:56:05 +01:00
Steve Ruiz
75e33d24cf Update utils.ts 2022-07-08 14:47:38 +01:00
Steve Ruiz
c95d52d077 Fix link 2022-07-08 14:46:45 +01:00
Steve Ruiz
7a2e8b1747 Update MultiplayerMenu.tsx 2022-07-08 14:39:43 +01:00
Steve Ruiz
47ba095c16 add dock position to migrate, cleanup code 2022-07-08 14:38:21 +01:00
Steve Ruiz
315112459c
1.20.0 (#797)
* Edit Farsi translations (#788)

* Add a Ukrainian translation (#786)

* Add a Ukrainian translation

* Clarify some strings in the Ukrainian translation

* feat: change dock position (#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 (#790)

* Update Tldraw.tsx

* Add theme on body, adjust dark page options dialog

* fix test

* Preparing for global integration (#775)

* Update translations.ts

* Create en.json

* Make main translation default

* Remove unused locale property of translation

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>

* Fix language menu

* Update ar.json (#793)

* feature/add Hebrew translations (#792)

* hebrew translations

* pr fixes

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>

* fix toolspanel item position (#791)

* fix toolspanel item position

* add translation

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>

* Add remote caching

* Adds link to translation guide (#794)

* Update ar.json (#795)

* [feature] readonly link (#796)

* Copy readonly link

* Update [id].tsx

* Add readonly label

* update psuedohash

* Update utils.ts

Co-authored-by: Baahar Ebrahimi <108254874+Baahaarmast@users.noreply.github.com>
Co-authored-by: walking-octopus <46994949+walking-octopus@users.noreply.github.com>
Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com>
Co-authored-by: Ali Alhaidary <75235623+ali-alhaidary@users.noreply.github.com>
Co-authored-by: gadi246 <gadi246@gmail.com>
2022-07-08 14:09:08 +01:00
Steve Ruiz
5ac091339a 1.19.0 2022-07-07 12:06:30 +01:00
Steve Ruiz
88fbdacaea
1.19.0 (#789)
* Edit Farsi translations (#788)

* Add a Ukrainian translation (#786)

* Add a Ukrainian translation

* Clarify some strings in the Ukrainian translation

* feat: change dock position (#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 (#790)

* Update Tldraw.tsx

* Add theme on body, adjust dark page options dialog

* fix test

* Preparing for global integration (#775)

* Update translations.ts

* Create en.json

* Make main translation default

* Remove unused locale property of translation

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>

* Fix language menu

* Update ar.json (#793)

* feature/add Hebrew translations (#792)

* hebrew translations

* pr fixes

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>

* fix toolspanel item position (#791)

* fix toolspanel item position

* add translation

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>

* Add remote caching

* Adds link to translation guide (#794)

Co-authored-by: Baahar Ebrahimi <108254874+Baahaarmast@users.noreply.github.com>
Co-authored-by: walking-octopus <46994949+walking-octopus@users.noreply.github.com>
Co-authored-by: Judicael <46365844+judicaelandria@users.noreply.github.com>
Co-authored-by: Ali Alhaidary <75235623+ali-alhaidary@users.noreply.github.com>
Co-authored-by: gadi246 <gadi246@gmail.com>
2022-07-07 11:59:47 +01:00
Enrico
4d900fb7fd
Implemented better page numbering (#779)
* Implemented better page numbering

* Added spanish and french translation

* Add tests, fix regex

* Improve page naming logic

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-07-04 15:17:47 +01:00
walking-octopus
1de57cffc0
Revise the Russian translation (#784)
I'm sorry for not catching some unnatural-sounding strings in it earlier, but I guess it's better late than never.
2022-07-04 15:15:43 +01:00
walking-octopus
44e49197f2
Add a Russian translation (#777)
* Add Russian translation

* Update translations.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-07-04 13:06:13 +01:00
Baahar Ebrahimi
908e829c0b
Add Farsi translations (#778)
* Add Farsi translations

* fix translations.ts

* Update translations.ts

Co-authored-by: Saeed Alipoor <alipoor.sa@gmail.com>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-07-04 12:38:01 +01:00
Steve Ruiz
10b653c13e 1.18.3 2022-07-03 18:58:50 +01:00
Steve Ruiz
1c753b73ac prevent escape from undoing text change 2022-07-03 18:44:16 +01:00
Jan Bessler
671684a749
Translation german (#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 <steveruizok@gmail.com>
2022-06-30 12:11:49 +01:00
Steve Ruiz
58195bd2ad Update PageMenu.tsx 2022-06-30 09:03:07 +01:00
Steve Ruiz
9ccec77634 1.18.2 2022-06-30 08:59:09 +01:00
Steve Ruiz
0a0536b438 Update PageMenu.tsx 2022-06-29 19:07:19 +01:00
Steve Ruiz
d27e7dc249 Update PageMenu.tsx 2022-06-29 19:06:56 +01:00
Steve Ruiz
80ed0bf27b fix bugs on page move
Update TldrawApp.ts
2022-06-29 19:05:47 +01:00
Jan Bessler
8b97e474d1
Translation german (#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
2022-06-29 18:26:32 +01:00
Enrico
489b5a1001
Added page rearranging by dragging (desktop only) (#768)
* Added page rearranging by dragging (desktop only)

* Increment page names correctly, create drop indicator

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-29 10:25:00 +01:00
Steve Ruiz
b9a4a6c36e
Update TldrawApp.ts (#766) 2022-06-28 17:55:50 +01:00
Anders Bech Mellson
639b6ced50
Added Danish translation (#765) 2022-06-28 17:41:43 +01:00
Victor Novais
2e70be511a
Added translations to Portuguese (pt-br) (#759)
* Added translations to Portuguese (pt-br)

* Update translations.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-28 08:17:01 +01:00
Juan Carlos Acosta Perabá
4bc0d8bb95
fix: correct translation term (#763)
* feat: spanish language

* Update translations.ts

* fix: correct translation term

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-27 18:58:41 +01:00
Mark Ladyshau
141dd2672e
fix: add preventDefault (#764) 2022-06-27 18:55:47 +01:00
pramitmarattha
780da17540
Add Nepali translation (#760)
* Add nepali language json

* Add nepali translation
2022-06-27 16:24:04 +01:00
Steve Ruiz
0d3bfd4eeb
Update DrawSession.ts (#762) 2022-06-27 16:04:38 +01:00
Steve Ruiz
ff471e0d6d
Improve UX for renaming text fields (#761) 2022-06-27 10:21:39 +01:00
Steve Ruiz
dd873014f2 1.18.1 2022-06-26 21:20:29 +01:00
Daniel Alberski
5046147a41
Polish translations (#758)
* polish translations

* translations guide typo fix
2022-06-26 19:47:58 +01:00
Oğuzhan Durgut
5c8fd8ac14
Turkish Language (#754)
* Turkish Language Added

* Turkish changed to Türkçe

* Update translations.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-26 16:47:23 +01:00
Juan Carlos Acosta Perabá
5598143b59
feat: spanish language (#755)
* feat: spanish language

* Update translations.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-26 16:44:25 +01:00
Sigve Hansen
1a3cfa0c81
Add norwegian translation (#757)
* feat: add norwegian translation

* arrange text in alphabetical order

* sort by code

* rename en.json to main.json

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-26 16:42:56 +01:00
Sugit
5e2e23e6ce
Japanese translation (#756)
* Japanese translation

* fix: replace empty string to space.

* fix: improve Japanese
2022-06-26 16:17:39 +01:00
Steve Ruiz
8869771400 rename translations 2022-06-26 16:14:11 +01:00
Steve Ruiz
026177a1e1 refactor translations 2022-06-26 08:27:26 +01:00
Steve Ruiz
93e774691d Add locked indicator 2022-06-26 08:11:00 +01:00
Steve Ruiz
3d936fd0a5 Fix bugs
- local server bug
- improve types for translations
- fix missing italian translation
- fix double ungroup label
2022-06-26 08:06:56 +01:00
cog25
13be05721e
chore: fix typo (#753) 2022-06-26 07:58:56 +01:00
cog25
1b7cea41a0
feat: add korean translation (#752)
* feat: add korean translation

* chore: fix typo
2022-06-26 07:34:18 +01:00
Steve Ruiz
3cba9712fd 1.18.0 2022-06-25 20:31:27 +01:00
Steve Ruiz
8d849719cf
add translation guide (#746) 2022-06-25 20:03:37 +01:00
Vincent Driessen
0acfd563fe
Upgrade Liveblocks to 0.17 (#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 <steveruizok@gmail.com>
2022-06-25 15:38:43 +01:00
Steve Ruiz
6183c41c18
arrows ignore locked shapes (#745) 2022-06-25 12:48:41 +01:00
Steve Ruiz
70e3c8bd45
[fix] bug with images that have the same name (#743)
* add unique id to file names to avoid name clashes

* Add event callbacks for `onSessionStart` and `onSessionEnd`
2022-06-25 12:28:18 +01:00
Ali Alhaidary
c1f94a0928
Adding Arabic Language (#732)
* Create ar.json

* Update Tldraw.tsx

* Update types.ts

* Update LanguageMenu.tsx

* Update Tldraw.tsx

* Update LanguageMenu.tsx
2022-06-25 10:47:32 +01:00
Steve Ruiz
a104d5a094 1.17.2 2022-06-24 16:06:36 +01:00
Steve Ruiz
dc1f21bdc0 Update MultiplayerMenu.tsx 2022-06-24 15:47:53 +01:00
Steve Ruiz
f48ce9962d Update MultiplayerMenu.tsx 2022-06-24 15:45:50 +01:00
Steve Ruiz
7555c22632 Update Vec 2022-06-21 08:56:49 +01:00
Steve Ruiz
a17bd18ae2 1.7.2, add Vec.distanceTo / Vec.nearestPointOnBounds 2022-06-21 08:49:45 +01:00
Jack Bauer
7c0e098b12
fix clipboard.read error on Firefox (#729)
See more @ https://stackoverflow.com/questions/67440036/navigator-clipboard-readtext-is-not-working-in-js/67442777#67442777
2022-06-20 20:37:01 +01:00
Steve Ruiz
0a52b5c317
Add overwrite option to insertContent (#730) 2022-06-20 20:36:23 +01:00
Steve Ruiz
65ff5075f0 1.17.0 2022-06-19 14:52:06 +01:00
Steve Ruiz
6d91916804
[improvement] Add getContent and insertContent methods (#726)
* Add insertContent method, update copyJson

* Add more tests

* Update TldrawApp.spec.ts

* Adds option object for select, point, and uses in paste
2022-06-19 14:47:43 +01:00
Jack Bauer
0cfa44f4d2
fix mandatory unique key in LanguageMenu list (#722) 2022-06-16 14:36:31 +01:00
Steve Ruiz
702016a3ef Replace lask with lfg 2022-06-16 14:23:27 +01:00
Steve Ruiz
6608b07ab0 Update README, lask 2022-06-16 14:15:35 +01:00
Steve Ruiz
ef9d457a14
[fix] typescript types (#721)
* fix types

* Update .eslintrc.json
2022-06-16 09:09:48 +01:00
Judicael
e8459adc6b
feat: translate page name when creating new page (#720)
* feat: translate page name when creating new page

* Update createPage.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-15 18:54:03 +01:00
Akshay Birajdar
27e0b8d96e
fix: broken screenshot image (#717) 2022-06-15 13:39:15 +01:00
yyyanghj
d298c550cd
[Translation] add Simplified Chinese translation (#715)
* feat: add Simplified Chinese translations

* feat: improve translation

* feat: improve translation

* feat: improve translation
2022-06-15 13:38:00 +01:00
Steve Ruiz
f8e2ba5b3b
Update MultiplayerMenu.tsx (#719) 2022-06-15 13:34:53 +01:00
Steve Ruiz
8419d7d227 1.16.0 2022-06-09 18:06:17 +01:00
Steve Ruiz
d52d91b367
Enforce readonly mode (#714)
* Enforce readonly mode

* Fix test for React 18

* Move to dev
2022-06-09 16:00:47 +01:00
Judicael
d919bd273e
feat: add translation (#704)
* feat: add translation

* modal, left menu translation

* primary tools translation

* render with intl provider for testing

restore file

* french translation done

* context menu translation and test

* added italian

* Add menu to select language

* translation for the word language

* bump dev deps

Bump react on www

* Fix types

* update dependencies

* pre-release

* Delete lask.config.json

Co-authored-by: Enrico <franciscono.enry@gmail.com>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-09 15:33:35 +01:00
Steve Ruiz
8c2e22b334 1.15.1 2022-06-02 17:18:48 +01:00
Steve Ruiz
c959006144
Make eraser line scale to zoom (#710) 2022-06-02 17:14:27 +01:00
Peng Xiao
87692eb7fe
fix: vec min function (#702) 2022-06-01 18:49:16 +01:00
Peng Xiao
b47fb729ee
fix: Pointer position is incorrect if Tldraw is drawing in a scrolling g container (#706)
* fix: Pointer position is incorrect if Tldraw is drawing in a scrolling container

fix https://github.com/tldraw/tldraw/issues/661

* Add example for scrolling

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-06-01 18:48:48 +01:00
Steve Ruiz
b3ad319518 1.15.0 2022-06-01 15:34:20 +01:00
Steve Ruiz
c126be5c50
[feature] add erase line (#708)
* Add erase line

* Fix erasing small dots

* bump perfect-freehand
2022-06-01 15:21:36 +01:00
Steve Ruiz
eca66b1c54 Fix keyboard events while menu is open. 2022-05-20 15:22:50 +01:00
Steve Ruiz
9d8c4888f3 move style panel to right-hand size 2022-05-20 15:10:54 +01:00
Steve Ruiz
c37a4a33d6 release 2022-05-20 14:45:10 +01:00
Steve Ruiz
ba0795c595
[improvement] adds option to keep style menu open (#697)
* Adds open to keep style menu open

* fix keyboard shortcuts, add button to menu
2022-05-20 13:56:16 +01:00
Steve Ruiz
a9750d9dc6 rename room to project 2022-05-19 12:01:31 +01:00
Steve Ruiz
be8c85eb5f cleanup 2022-05-19 11:45:59 +01:00
Steve Ruiz
0a23ad61b6 add filename to asset 2022-05-18 22:12:01 +01:00
Steve Ruiz
7e85d00c66 Merge branch 'main' of https://github.com/tldraw/tldraw 2022-05-18 22:06:05 +01:00