Commit Graph

148 Commits (dependabot/npm_and_yarn/nanoid-3.3.8)

Author SHA1 Message Date
Luo d3c3894108
Fix "Copy | Look Up" popup issue on mobile device (#2406) 4 years ago
Lipis 4371c29f0c
Update to Analytics 4 (#2374) 4 years ago
Aakansha Doshi 1034ec91b8
fix(fonts): move fonts to public folder so that its served as static assets via cra & works in export (#2264) 4 years ago
Aakansha Doshi 12b73aaac6
fix(app.scss): Move fonts from public to fonts directory so that it can be included in bundle as well (#2251) 4 years ago
Aakansha Doshi a61b212220
scope css under name space excalidraw (#1983) 4 years ago
Thomas Steiner b2822f3538
Make File Handling actually work (#2181)
Follow-up from #1736
4 years ago
Thomas Steiner 31f7e2b8b2
Remove Native File System OT token for good (#2157) 4 years ago
Thomas Steiner b9d584714a
Temporarily disable OT (#2155) 4 years ago
Thomas Steiner ea020f2c50
Update Native File System API Origin Trial token (#2152) 4 years ago
dependabot-preview[bot] dd0c44864d
Bump prettier from 2.0.5 to 2.1.1 (#2119)
* Bump prettier from 2.0.5 to 2.1.1

Bumps [prettier](https://github.com/prettier/prettier) from 2.0.5 to 2.1.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.0.5...2.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* fix

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
4 years ago
David Luzar 546e13571d
reintroduce index CSS as interim solution to SW caching issues (#2085) 4 years ago
David Luzar ab7073abdb
add excalidraw_embed into base repo (#2040)
Co-authored-by: Lipis <lipiridis@gmail.com>
5 years ago
David Luzar 930813387b
make loading message account for dark mode & add i18n (#2033)
* make loading message account for dark mode & add i18n

* use app color scheme
5 years ago
Thomas Steiner 0eff9d525d
Update origin trial token (#2005) 5 years ago
Lipis f0ac606ed7
Add robots.txt (#1965) 5 years ago
Minh Nguyen 93137c0bb2
Parameterise socket preconnect (#1867) 5 years ago
Aakansha Doshi b21f723eee
use absolute positioning instead of fixed (#1860) 5 years ago
Thomas Steiner ecc3a72583
Native File System API OT refresh (#1852) 5 years ago
Kostas Bariotis f1ceeab8d9
Prepare for Docker publishing (#1771)
* prepare for docker publishing

* fix links

* remove that

* update README

* test publish worklofw

* build and push on master

* include gtag by default
5 years ago
Thomas Steiner 6b87278a0f
Add file handling (#1736)
* Add file handling
https://github.com/WICG/file-handling/blob/master/explainer.md#example

* Only trigger on `.excalidraw` for now
5 years ago
Aakansha Doshi 60973f6dc5
rename container class to excalidraw and move css from index.html to app.css (#1729)
Moved the css from index.html to app.css so it can be included in upstream app as well
5 years ago
Thomas Steiner 2867af6528
Update OT trial token (#1649) 5 years ago
Thomas Steiner d9b8dcfbb4
Remove no longer needed Native File System API v1 origin trial token (#1592) 5 years ago
Thomas Steiner c4e9a3c480
Renew origin trial token (#1547) 5 years ago
Thomas Steiner fe5e71a4e5
Add PWACompat (#1433)
* Add PWACompat (attempt)
Fixes #1425

* Fix CSS, use custom splash screen font

* Respect bottom safe area
5 years ago
Thomas Steiner fbcb3ee6ff
Sign us up for Native File System API v2 Origin Trial (#1432) 5 years ago
Thomas Steiner fcf2a73ffb
Remove superfluous meta tag (#1424) 5 years ago
Faustino Kialungila 51ccf61cc6
Bring root fonts back (#1422)
* redirect font loading

* bring preloading back

* change paths

* add css type

* move fonts to root

* correct paths

* remove redirects

* correct ext

* remove fonts from main CSS

* remove unneeded fonts

Co-authored-by: kbariotis <konmpar@gmail.com>
5 years ago
David Luzar 0b971ea570
Remove CSP (#1418)
* remove csp

* remove csp from now.json
5 years ago
Timur Khazamov 4228c2e094
[POC] use serviceWorker from create-react-app (#1286)
* Service worker with toast notifications

* Update CSP to allow fetches from now.sh

* Fixed clearing timers

* rounded icon for pwa (#1301)

* rounded icon for pwa

* cirle pwa app icon

* fix fonts caching

* fix app

* fix css import

* Updated csp tp inlcude worker-src: self

* add worker CSP rule

* use square icon

Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru>
Co-authored-by: Faustino Kialungila <Faustino.kialungila@gmail.com>
Co-authored-by: kbariotis <konmpar@gmail.com>
5 years ago
David Luzar d79c859cd9
CSP: fix codesandbox (#1401)
* add csb to csp whitelist

* add csb.app

* allow child-src csp

* add cdnjs.cloudflare

* allow unsafe-eval
5 years ago
Shriram Balaji 93087192c8
Support http: ws: for self in connect-src csp (#1392) 5 years ago
Shriram Balaji af09c977bf
Add Content Security Policy Header Tag (#1379)
* Add Content Security Policy Header Tag

* Update CSP for connect-src with https, wss
5 years ago
Sanghyeon Lee bd32a26653
Move GitHub corner and visually-hidden class (#1336)
* Move visually-hidden class to index.html

* Replace github corner with component

* Momoize GitHubCorner

* Simplify component return
5 years ago
Timur Khazamov ed378170b7
Use woff2 instead ttf (#1307)
* Use woff2 instead ttf

* Update font in svg-exported files to use woff2

Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru>
5 years ago
Lipis 98ea88262f
Shorter title (#1293) 5 years ago
Lipis 1a5048195a
Better title, for better look in search results, SEO (#1278) 5 years ago
Lipis 00c5823a5e
Add Security Headers (#1200) 5 years ago
wei c67b0c59c2
Adding preconnect for the socket (#1075)
* Update index.html

* fix formatting
5 years ago
Jed Fox 663526129a
Proper RTL support (#1154)
* Add RTL styles. Most of the work is done by the browser 💖

* Refactor getLanguage

* Additional fixes

* Mirror the mouse pointer icon

* Move the vertical scrollbar to the left on RTL

* Revert "Mirror the mouse pointer icon"

This reverts commit f69b132538.
5 years ago
Thomas Steiner 54355f1391
Renew origin trial token (#1130) 5 years ago
David Luzar cac2dda5ac
Add loading state (#1027)
* add loading state

* update snapshots

* add border radius

* fix comment breaking build jsx
5 years ago
dependabot-preview[bot] 722c498abe
Bump prettier from 1.19.1 to 2.0.1 (#1060)
* Bump prettier from 1.19.1 to 2.0.1

Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update formatting

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
5 years ago
Lipis f9edb1b4ac
Remove www from open graph images (#884)
* Remove www from open graph images

* Lint
5 years ago
Joe Previte 30434e3e6c
fix: update og images (#878)
* fix: change og images to absolute urls

Co-authored-by: Justin E. Samuels <js1599.msu@gmail.com>

* fix: width and height of image

Also added og:image:secure_url for security purposes

Co-authored-by: Justin E. Samuels <js1599.msu@gmail.com>

* fix: enlarge image for og

Co-authored-by: Justin E. Samuels <js1599.msu@gmail.com>

Co-authored-by: Justin E. Samuels <js1599.msu@gmail.com>
5 years ago
Lipis 562b388326
Use relative path for static files (#855) 5 years ago
Faustino Kialungila 9953cc03b3
Add Manifest File (#842)
* manifest

* splashscreen
5 years ago
Thomas Steiner 277eeb47cc
Update expiring origin trial token (#800) 5 years ago
Jed Fox ab176937e6
Add touch support (#788)
* Add touch support

* Mock media query

* Mock media query pt 2

* Fix tests

* Allow installing as an app on iOS

* Fix type error

* Math.hypot

* delete and finalize buttons, hint viewer

* skip failing tests

* skip the rest of the failing tests

* Hide the selected shape actions when nothing is selected

* Don’t go into mobile view on short-but-wide viewports

* lol
5 years ago
Lipis c2855e2cb8
Add new favicon (#786) 5 years ago
Jed Fox 7a7a73b78d
Initial support for mobile devices (#787)
* Initial support for mobile devices

No editing yet, but UI looks nice and you can open the canvas menu

* Add support for editing shape color, etc

* Allow the mobile menus to cover the shape selector

* Hopefully fix test error

* Fix touch on canvas

* Fix safe area handling & remove unused Island
5 years ago
Christopher Chedeau dd2d7e1a88
Updates on the font (#764)
* Updates on the font

See discussion in #747

Fixes #747

* another update
5 years ago
Christopher Chedeau b64fe9aae4
Update FG_Virgil to support Russian and Greek characters (#720)
* Update FG_Virgil to support Russian and Greek characters

Fixes #469

* more symbols
5 years ago
Lipis e79d9f5676
Add white background to og-image (#702) 5 years ago
Faustino Kialungila 814299321e
Add missing locales for scrollBackToContent (#663)
* Add missing locales for scrollToContent

* remove duplicated locales
5 years ago
Faustino Kialungila 92deb033a3
Update logo (#665) 5 years ago
Gasim Gasimzada 1e4ce77612
Reintroduce multi-point arrows and add migration for it (#635)
* Revert "Revert "Feature: Multi Point Arrows (#338)" (#634)"

This reverts commit 3d2e59bfed.

* Convert old arrow spec to new one

* Remove unnecessary failchecks and fix context transform issue in retina displays

* Remove old points failcheck from getArrowAbsoluteBounds

* Remove all failchecks for old arrow

* remove the rest of unnecessary checks

* Set default values for the arrow during import

* Add translations

* fix restore using unmigrated elements for state computation

* don't use width/height when migrating from new arrow spec

Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: Christopher Chedeau <vjeuxx@gmail.com>
5 years ago
Christopher Chedeau f261d6f2fc
Fix font preloading (#649)
Thanks to this stack overflow answer ( https://stackoverflow.com/a/41678350/232122 ) I was able to fix the font preloading!

If we put fonts.css in the public/folder and include it with normal html, we can avoid going through the build pipeline!
5 years ago
Christopher Chedeau e4919e2e6c
Replace i18n by a custom implementation (#638)
There are two problems with the current localization strategy:
- We download the translations on-demand, which means that it does a serial roundtrip for nothing.
- withTranslation helper actually renders the app 3 times on startup, instead of once (I haven't tried to debug it)
5 years ago
Robinson Marquez 4ad38e317e
485: Ability to switch to previously loaded ids in UI (#583) 5 years ago
Bakhtiiar Muzakparov 63c685af73
Add russian translation (#612) 5 years ago
Preet 97b11b0f53
SVG export (#598)
* first draft of export to SVG. WIP

* enabled text rendeing - which is not quite right atm

* placeholder svg icon

* size the canvas based on the bounding box of elements

* Do not add opacity attributes if default

* render background rect

* Ensure arrows are in the same SVG group

* parse font-size from font

* export web fonts

* use fixed locations for fonts

* Rename export functions

* renamed export file

* oops broke the icon.
5 years ago
Lipis 321e4022b0
Add headers for Netlify (#602) 5 years ago
Guillermo Peralta Scura 2363afa864
Fix Spanish translation (#585) 5 years ago
Guillermo Peralta Scura 67eca2bda1
Add landmarks (#564)
Use HTML semantic elements to set the landmarks of the page.

This is helpful for assistive technologies to determine the different regions of content. In our case it's useful for jumping between the different islands that we use to group the form controls.
5 years ago
Lipis 81d169e90c Add tool tip for shape lock (#551)
* Add tool tip for shape lock

* tweak label & fix master rebase

Co-authored-by: David Luzar <luzar.david@gmail.com>
5 years ago
Christopher Chedeau 1d9cdf4d46 Use local fonts (#573)
This updates the way fonts are handled to not have to download the font from the internet.

If you do `./public/font.ttf` in the .scss file, unfortunately the bundle packages them somewhere that's different from the public folder that is used by the index.html to preload them.

The fix I used is to use absolute path `/font.ttf` so that both work. Unfortunately, this means that the website will only work if at the root of the domain. That's the case so far so it's okay but still annoying if we want to embed it somewhere.
5 years ago
Guillermo Peralta Scura e4ff408f23
Accessible modals (#560)
Improve the accessibility of our modals (the color picker and the export dialog)

Implement a focus trap so that tapping through the controls inside them don't escape to outer elements, it also allows to close the modals with the "Escape" key.
5 years ago
Guillermo Peralta Scura 69061e20ac Some a11y fixes (#534)
* Rename ToolIcon to ToolButton

It makes more semantic sense

* Label and keyboard shortcuts announcement

* Refactor common props for ToolButton

* Better doc outline and form controls

* Adjust color picker

* Styling fixes

Co-authored-by: Christopher Chedeau <vjeuxx@gmail.com>
5 years ago
Marco Kaul 5fd6c4d853 Add german translation (#550)
* Add german translation

* Add german language option

* Fix missing german translation

* Alphabetical order for languages

* Sort

Co-authored-by: Lipis <lipiridis@gmail.com>
5 years ago
Faustino Kialungila 25202aec11
Adding Portuguese Translation (#528)
* Add Portuguese Translation

Adding PT translations

* Update src/i18n.ts

Co-Authored-By: Lipis <lipiridis@gmail.com>

Co-authored-by: Lipis <lipiridis@gmail.com>
5 years ago
Thibaut SABOT 990e064c13 Add french translation (#522)
* Add french translation

* improve fill translation

* forget accent on select translation
5 years ago
Fernando Alava Zambrano a436e70764 Internationalization followup (#500)
* add translations in data.ts

* add language list
add spanish version

* fixes pr review

* add more translations

* remove unused label

Co-authored-by: David Luzar <luzar.david@gmail.com>
5 years ago
Max Stoiber e657372ae4 Fix typo in "Opacity" (#489) 5 years ago
Lipis 885b9c1483 Delete comments (#487) 5 years ago
Lipis a2b88a67b4 Delete CNAME, as we don't host on GitHub anymore (#486) 5 years ago
Fernando Alava Zambrano ff7a340d2f Internationalization support (#477)
* add i18next lib
add some translations

* add translations

* fix font-family

* fix pin versions
5 years ago
wei 37e082fcdc feat: Add Cascadia font (#465)
* adding cascadia font

* adding font file
5 years ago
Lipis 1923607112
Remove www from URLs (#437)
* Remove www from URLs

* typo

* slash
5 years ago
David Luzar 6892348c3d Revert 400 and 420 (#422)
* revert #400 font file

* Revert "Revert "Set scale for export images (#416)" (#420)"

This reverts commit d603921234.
5 years ago
tomayac 71570a325b Make Prettier happy 5 years ago
Thomas Steiner 7ddc206b8c
Add Native File System API saving/exporting and opening (#388)
* Add Native File System API saving/exporting

* Add Native File System API opening

* Add origin trial token placeholder

* Reuse an opened file handle for better saving experience

* Fix file handle reuse to only kick in for Excalidraw files

* Remove reference
5 years ago
Lipis 4234cd849c
Fix linting (#403) 5 years ago
JavaScript Joe 03e4a70be2
fix: use full url for og:image (#401)
* fix: use full url for og:image

* fix: add twitter card tags

* fix: update og:image to use full URL

* fix: add twitter card tags again

* fix: remove twitter creator meta tag
5 years ago
JavaScript Joe e5e0e37f23 feat: update font file and add meta tags (#400)
* fix: add new, smaller FG_Virgil file

* fix: update with new codesandbox font file link

* feat: add og-image and meta tags

* feat: add pr template

* fix: update pr template

* fix: remove pr template

* refactor: remove twitter meta in favor of og:image

* fix: add og:image:width

* refactor: update image

* refactor: use image in readme
5 years ago
Lipis 8154ccd907 No named colors and lowercase hex (#395)
* No named colors and lowercase hex

* consistent
5 years ago
JavaScript Joe 1ae3c64860 fix(font): modify exclamation point in font (#394)
* fix: add new modified FG_Virgil font

* fix: update codesandbox links to use modified virgil font

* fix: typo in Contributing
5 years ago
Christopher Chedeau 3605250426
Move octocat to the front (#160) 5 years ago
Giovanni Giordano 731136a3d0 Test deploy 5 years ago
Christopher Chedeau 60b06dab73
Remove manifest.json (#131) 5 years ago
anishagg17 1ef66441c3 Added excalidraw icon as application icon (#126) 5 years ago
Christopher Chedeau 85cd2f114a
Add github corner (#90) 5 years ago
Christopher Chedeau c027ddc134
Add analytics tag (#89) 5 years ago
Giovanni Giordano e80d755c92 Add crossorigin attribute 5 years ago
Giovanni Giordano 02bf6f0f14 Add preload to font 5 years ago
hazam f1143fb236 Added CNAME file 5 years ago
Faustino Kialungila 4fa55222fd Rename excalibur to excalidraw 5 years ago
Christopher Chedeau 6278cd9366 Initial commit 5 years ago