-
Notifications
You must be signed in to change notification settings - Fork 277
Commit 3e1a31f
Add a filter to the New Data Source modal
add a filter to make it easier to find the data source you're looking
for in the New Data Source modal found in both the lower pane when
creating an app, and the Data Source page when in Home.
The filtering ignores case and diacritics, but is not a fuzzy filter as
I thought that would be too confusing for a simple search like this.
The localeContains function comes from StackOverflow user Jan Turoň, https://stackoverflow.com/a/69623589/1394698
The function sacrifices complete compatibility with the localeCompare
function for a simplified diacritics check which should suffice for the
majority of lowcoder use cases. I initially tried to get the npm library
locale-includes working, but Vite really doesn't like it, and it failed
to compile no matter what I tried.1 parent f830bd5 commit 3e1a31f
File tree
1 file changed
+49
-0
lines changed- client/packages/lowcoder/src/pages/datasource
1 file changed
+49
-0
lines changedLines changed: 49 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | + | ||
15 | + | ||
16 | + | ||
14 | 17 |
| |
15 | 18 |
| |
16 | 19 |
| |
| |||
66 | 69 |
| |
67 | 70 |
| |
68 | 71 |
| |
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
69 | 106 |
| |
70 | 107 |
| |
71 | 108 |
| |
109 | + | ||
72 | 110 |
| |
111 | + | ||
73 | 112 |
| |
74 | 113 |
| |
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
75 | 122 |
| |
76 | 123 |
| |
77 | 124 |
| |
78 | 125 |
| |
79 | 126 |
| |
127 | + | ||
80 | 128 |
| |
81 | 129 |
| |
82 | 130 |
| |
| |||
92 | 140 |
| |
93 | 141 |
| |
94 | 142 |
| |
143 | + | ||
95 | 144 |
| |
96 | 145 |
| |
97 | 146 |
| |
|
0 commit comments