Felix Zedén Yverås
cdecf7c633
feat: add basic touchscreen support
...
This is basically a migration from mouse events to
[pointer events](
https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events
).
The `PointerEvent` interface inherits all of the `MouseEvent`
properties, meaning that existing code can essentially be left
as-is. The only major change is making sure we only respond to the
"primary" pointer.
Known issues include:
* stylus hover is not detected
* touchscreens do not have a concept of hover, making it difficult
to e.g. resize areas
* no touch gesture support, e.g. "pinch-to-zoom"
2024-07-14 15:36:54 +02:00
Felix Zedén Yverås
075a98d444
fix: remove unused ref
2024-07-14 15:36:54 +02:00
Felix Zedén Yverås
caae8e7385
fix: improve support for browsers with collapsing url bars
...
Some mobile browsers (e.g. chrome) uses collapsing url bars (the
bar collapses when you scroll). In such cases, `100vh` typically
refers to the full height of the viewport when the url bar is
collapsed (see also `svh`, `lvh` and `dvh`, e.g. at
<https://ishadeed.com/article/new-viewport-units/#the-small-large-and-dynamic-viewport-units >
). This meant that on my tablet, the editor would extend below the
visible page until I scrolled it into view.
This commit re-uses a fix from some of my other projects
(specifically
<5c7e788d40/src/styles/globals.css (L14-L28)
>
) where the root element is set to fill 100% height. This avoids
dealing with viewport units altogether. On my tablet, this means
that the url bar is visible and that the editor does not extend
below the visible page.
2024-07-14 15:36:54 +02:00
1ilit
a459f36f58
Fix increment being deleted when type is updated
2024-07-10 21:23:30 +03:00
1ilit
84abae7d06
Save database type and enums for templates
2024-07-08 11:54:04 +03:00
1ilit
6fee6553f1
Remove unnecessary commas in export index statements
2024-07-08 04:22:44 +03:00
1ilit
159dcca4dc
Fix import diagram
2024-07-08 04:03:41 +03:00
1ilit
09f9117b72
Remove unused console.logs
2024-07-08 03:39:01 +03:00
1ilit
f682abdafe
Fix import index for postgres
2024-07-08 03:34:01 +03:00
1ilit
52455a75d0
Make databases a proxy
2024-07-08 03:21:43 +03:00
1ilit
c84990ca6d
Fix loading the diagram on open to load in types and enums
2024-07-08 02:18:12 +03:00
1ilit
c907cfea47
Add database icon to diagrams
2024-07-08 02:09:51 +03:00
1ilit
7c7177c402
Update landing page
2024-07-08 01:58:16 +03:00
1ilit
aecc5a134e
Fix choose database not showing on first ever diagram
2024-07-08 01:42:48 +03:00
1ilit
322bb6e988
Merge branch 'main' into select-db
...
# Conflicts:
# src/i18n/locales/en.js
# src/utils/exportSQL/generic.js
2024-07-07 17:57:33 +03:00
1ilit
d5568c42bf
Fix scrollbar height and corner
2024-07-07 17:21:54 +03:00
1ilit
9e2bb48fb8
Fix quotes on columns in checks
2024-07-07 16:55:04 +03:00
1ilit
897c125e3b
Import from mssql
2024-07-06 21:45:51 +03:00
1ilit
982cac1d3a
Remove types from mssql
2024-07-06 16:12:09 +03:00
1ilit
a3976bf250
Export mssql
2024-07-06 14:52:42 +03:00
1ilit
1580641e97
Delete types and enums on clear
2024-07-05 22:29:42 +03:00
1ilit
c005020048
Add option to declare an array
2024-07-05 22:28:44 +03:00
1ilit
9b606114df
Rename TablesContext to DiagramContext
2024-07-04 23:18:20 +03:00
1ilit
3b1af3772e
Add empty enums illustration
2024-07-04 23:06:09 +03:00
1ilit
a7fd4ec416
Fix select db modal opening after close
2024-07-04 20:57:06 +03:00
1ilit
d00c21b2e3
Add MSSQL types
2024-07-04 19:42:11 +03:00
1ilit
d7025e1ff1
Add error checking for enums
2024-07-04 02:10:24 +03:00
1ilit
d48ccfff4b
Add enums to select types
2024-07-03 21:54:46 +03:00
1ilit
7c1eecd7a0
Undo and redo enum editing
2024-07-03 21:21:44 +03:00
1ilit
1430db881c
Export and import enums in diagrams
2024-07-03 13:25:24 +03:00
1ilit
219a5a877b
Fix UNIQUE not added in postgres
2024-07-03 03:27:36 +03:00
1ilit
61d97e8143
Import implicit foreign keys
2024-07-03 03:08:53 +03:00
1ilit
c1f651cb54
Clean up postgres export
2024-07-03 00:33:23 +03:00
1ilit
3c1e72fbdd
Export enums to sql
2024-07-02 23:26:45 +03:00
1ilit
dd2aafe80b
Import enums from source
2024-06-30 15:38:25 +03:00
1ilit
5b18b02946
Fix db names on open modal
2024-06-30 13:36:57 +03:00
1ilit
85ccb19d8f
Show info icon only for generic diagrams
2024-06-30 13:22:34 +03:00
1ilit
810afe4bc0
Add enums tab
2024-06-30 13:19:21 +03:00
lilit
9acc619d47
Merge pull request #137 from huyjs9/feat/search-nested-fields-tables
...
Search nested fields in tables
2024-06-27 11:55:48 +03:00
1ilit
259835892a
Fix add field for types to work with dbToTypes
2024-06-27 11:34:21 +03:00
1ilit
d79b0c205d
Return types after import
2024-06-27 11:12:09 +03:00
1ilit
9e2684e7a9
Swap INTEGER for INT in generic diagrams to maintain backward compatibility
2024-06-25 02:07:57 +03:00
1ilit
d8128f5010
Import from postgres
2024-06-22 04:13:44 +03:00
1ilit
0899b2c453
Fix extra comma being added after index on export ( #141 )
2024-06-19 19:22:07 +03:00
lilit
c43adae561
Merge pull request #139 from huyjs9/feat/table-info-color
...
Add color for table info
2024-06-19 04:31:36 +03:00
Huy Bui
e5a09042b3
fix: add area on side panel
2024-06-17 12:42:10 +07:00
Huy Bui
d925d16615
feat: add color for table info
2024-06-17 12:39:41 +07:00
Huy Bui
960d8feec3
feat: search nested fields in tables
2024-06-17 00:43:43 +07:00
Huy Bui
43e4744afa
fix: todo details value
2024-06-16 22:42:44 +07:00
1ilit
a4fe117c80
Move export sql above export as in menubar
2024-06-16 05:08:28 +03:00
1ilit
9ddc4316ea
Export mysql for mysql diagrams
2024-06-16 05:06:16 +03:00
1ilit
3f6dfe6437
Import and export to mariadb in mariadb diagrams
2024-06-16 04:54:03 +03:00
1ilit
8441d3db73
Accept 0 or 1 for bool values
2024-06-16 01:54:20 +03:00
1ilit
4ba0e5af8b
Fix checkDefault
2024-06-16 01:49:26 +03:00
1ilit
490cb738de
Convert unsupported types in generic diagrams on import
2024-06-16 01:38:22 +03:00
1ilit
0a108fc33a
Import from mysql
2024-06-16 00:23:48 +03:00
1ilit
1d1dde27e7
Crop long types
2024-06-15 22:46:19 +03:00
1ilit
77d1a9ea41
Fill in datatypes for mysql
2024-06-15 20:37:39 +03:00
1ilit
bff10e6fe9
Remove unnecessary fields in datatype
2024-06-15 04:41:06 +03:00
1ilit
7953b7fdc0
Add hasDefault and canIncrement to types
2024-06-14 23:32:58 +03:00
1ilit
e61757f93d
Import SQLite source
2024-06-14 01:00:47 +03:00
1ilit
c0584f11c6
Show database type on open
2024-06-11 07:30:30 +03:00
1ilit
6c1ff1518f
Set up multiple imports for generic diagrams
2024-06-10 22:57:21 +03:00
lilit
7716980be4
Fix title on json export
2024-06-10 18:27:38 +03:00
1ilit
73dff50f14
Export sqlite
2024-06-10 15:23:57 +03:00
1ilit
9c31e2be52
Move all type data to datatypes.js
2024-06-10 02:17:43 +03:00
1ilit
0908d040e0
Load database type on open
2024-06-09 20:18:12 +03:00
1ilit
b13d576c5e
Require selecting a db on new diagrams
2024-06-09 18:10:51 +03:00
1ilit
77bdb77a9e
Enable editing index names
2024-06-07 14:18:05 +03:00
1ilit
be6ecb066c
Load types for selected db
2024-06-06 20:24:05 +03:00
1ilit
1283f66a86
Fix hyphenated languages not having a border when selected
2024-06-01 21:23:48 +03:00
1ilit
23d0f13a59
Fix table name not showing in default error
2024-06-01 21:22:48 +03:00
1ilit
3988b8d990
Recover relationships after undoing table delete
2024-05-31 20:17:21 +03:00
1ilit
679f6b05e5
Recover relationships after undoing 'field_delete'
2024-05-31 19:19:58 +03:00
1ilit
9c820664dc
Fix label for cannot connect toast
2024-05-31 17:18:03 +03:00
1ilit
1768c39d43
Move links to navbar
2024-05-31 00:14:37 +03:00
Artem Makarov
0b26f030fe
feat: Add Russian locale
2024-05-29 12:20:52 +03:00
Oleksandr Korotash
5b3364c1d8
feat: Add Ukrainian locale
2024-05-28 16:18:11 +03:00
1ilit
6774a8f1e1
Fix parsing default function names
2024-05-25 23:20:51 +03:00
aniketjadhav16
3c35c0488d
feat: Add hindi locale
2024-05-24 01:52:40 +05:30
lilit
bf744630c0
Merge pull request #123 from AyshaHakeem/main
...
Update en.js To Fix Spelling
2024-05-21 05:08:47 +03:00
Aysha
5cac5d140a
Update en.js To Fix Spelling
...
Fix spelling error in editor's navbar submenu Item: 'Ask us on Github'
2024-05-21 05:17:15 +05:30
Atieh
4aa179c86d
feat: Add persian locale
2024-05-19 15:32:14 +00:00
pvhieu
e30a84398f
Fix: load name of lastest modified diagram
2024-05-19 10:17:01 +07:00
Jean Franz
6865a44e72
fix: edit type field locale
2024-05-17 17:22:19 -03:00
Jean Franz
d336b63956
feat. add Portguese locale
2024-05-17 17:15:18 -03:00
lilit
d3170b1966
Merge branch 'main' into feat/add_locale_german
2024-05-17 19:03:42 +03:00
SoraXV
f3621194d9
Added german localization regarding issue #115
2024-05-17 17:52:34 +02:00
Pham Hieu
91c4528b16
feat: Add vietnamese locale
2024-05-17 18:02:22 +07:00
lilit
002e240b7e
Merge pull request #110 from drawdb-io/i18n
...
Configure i18n and add simplified Chinese (#99 )
2024-05-17 04:00:43 +03:00
1ilit
4e93212cf9
Sort languages alphabetically
2024-05-17 03:49:18 +03:00
1ilit
cd050a59f9
Fix styling for overflowing elements
2024-05-17 03:45:42 +03:00
lilit
2b5312eac9
Merge branch 'i18n' into i18n
2024-05-17 02:57:59 +03:00
lilit
3ded8fb37f
Merge pull request #111 from LovelessCodes/patch-1
...
Add danish translation
2024-05-17 02:54:56 +03:00
1ilit
cb3a41361e
Fix Simplified Chinese translation
2024-05-17 02:52:55 +03:00
DNLRQ
39c88ac277
Spanish added
2024-05-16 09:10:15 -07:00
LovelessCodes
466c9ed1a2
changed: updated i18n.js to include danish translation
2024-05-16 09:44:07 +02:00
LovelessCodes
6edc2c7ce3
feat: Danish translation file to locales
2024-05-16 09:40:54 +02:00
lilit
0371606829
Merge branch 'main' into i18n
2024-05-16 07:01:55 +03:00
1ilit
2b4b01c358
Configure i18n and add simplified chinese ( #99 )
2024-05-16 06:45:47 +03:00