Commit Graph

64 Commits

Author SHA1 Message Date
1ilit
844b24100e Fix field type not updating when enum name is changed (#193 part2) 2024-07-31 19:12:28 +03:00
1ilit
52248f1016 Fix field type not updating when Type name is changed (#193 part1) 2024-07-31 14:50:06 +03:00
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
1ilit
a459f36f58 Fix increment being deleted when type is updated 2024-07-10 21:23:30 +03:00
1ilit
09f9117b72 Remove unused console.logs 2024-07-08 03:39:01 +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
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
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
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
9e2684e7a9 Swap INTEGER for INT in generic diagrams to maintain backward compatibility 2024-06-25 02:07:57 +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
1ilit
4ba0e5af8b Fix checkDefault 2024-06-16 01:49:26 +03:00
1ilit
7953b7fdc0 Add hasDefault and canIncrement to types 2024-06-14 23:32:58 +03:00
1ilit
9c31e2be52 Move all type data to datatypes.js 2024-06-10 02:17:43 +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
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
cd050a59f9 Fix styling for overflowing elements 2024-05-17 03:45:42 +03: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
Harris Zhang
fb17307a79
fix NoteInfo.jsx for undo 2024-05-15 17:40:51 +08:00
liao文禧
a33b68bfd0 place optional parameters of functions at the end(#104) 2024-05-14 11:22:13 +08:00
liao文禧
2695e5b8a2 Optimize the rendering logic for the Collapse and Tabs child components(#101) 2024-05-13 11:14:51 +08:00
liao文禧
9e489d602b Auto swap for foreign key name (#79) 2024-05-08 11:46:50 +08:00
1ilit
794e0c8868 Merge branch 'main' of https://github.com/drawdb-io/drawdb 2024-05-08 04:05:40 +03:00
1ilit
fc904fb740 Edit relationship on double click (#68) 2024-05-08 04:03:04 +03:00
lilit
b9215bcf3f
Merge pull request #77 from l123wx/enum-values-on-mobile
Fix enum values were not split on blur
2024-05-04 21:10:16 +03:00
lilit
d0572ee55a
Merge pull request #61 from HaecheonLee/enh/update-opacity-when-an-item-is-being-dragged-over
Update opacity style when an item is being hover after another item is dragged over
2024-05-02 17:56:26 +03:00
1ilit
8fdb5790c2 Merge branch 'enh/refresh-search-list-result-after-modification' 2024-05-02 17:07:23 +03:00
1ilit
f827145a27 Remove unused import 2024-05-02 16:44:20 +03:00
1ilit
62e4318592 Fix opening type and table at the same time 2024-05-02 16:23:18 +03:00
lilit
4424173a10
Merge pull request #52 from HaecheonLee/enh/open-note-when-note-title-is-clicked-in-search-in-note-tab
Open note when a note's title is clicked in search in note tab
2024-05-02 15:53:02 +03:00
liao文禧
3b0d03ed3b Fix enum values were not split on blur
close #73
2024-04-30 09:48:40 +08:00
1ilit
4cfd91d75b Merge branch 'fix-import-from-source' 2024-04-24 18:45:50 +03:00
1ilit
3c7c0eafde Change not null button title from nullable to not null (#66) 2024-04-24 18:45:30 +03:00
1ilit
4a87935412 Fix field precision and size input and parsing 2024-04-22 13:05:46 +03:00
haecheonlee
f87df3f9d5 Remove unused import 2024-04-22 01:34:35 -04:00
haecheonlee
f30efef747 Update opacity style when an item is being dragged over 2024-04-22 01:27:45 -04:00
1ilit
3a580149be Update relationships when fields get reordered 2024-04-21 09:40:56 +03:00
1ilit
c51bf5815f Accept empty precision input fields 2024-04-20 14:40:49 +03:00
haecheonlee
0347dbf4a2 Remove console 2024-04-16 22:32:08 -04:00