whats-up-dug 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49686,7 +49686,7 @@ async function saveConnection(url, username) {
|
|
|
49686
49686
|
}
|
|
49687
49687
|
var TAGLINE = Math.random() < 0.1 ? "SQUIRREL!!!" : "I have just met your data and I LOVE it!";
|
|
49688
49688
|
var DEFAULT_URL = "http://localhost:9925";
|
|
49689
|
-
var DEFAULT_USER = "
|
|
49689
|
+
var DEFAULT_USER = "admin";
|
|
49690
49690
|
function ConnectScreen({
|
|
49691
49691
|
client,
|
|
49692
49692
|
onConnect,
|
|
@@ -49827,11 +49827,11 @@ function ConnectScreen({
|
|
|
49827
49827
|
activeField === 1 ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(build_default, {
|
|
49828
49828
|
value: username,
|
|
49829
49829
|
onChange: setUsername,
|
|
49830
|
-
placeholder: "
|
|
49830
|
+
placeholder: "admin"
|
|
49831
49831
|
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
|
|
49832
49832
|
children: username || /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
|
|
49833
49833
|
dimColor: true,
|
|
49834
|
-
children: "
|
|
49834
|
+
children: "admin"
|
|
49835
49835
|
}, undefined, false, undefined, this)
|
|
49836
49836
|
}, undefined, false, undefined, this)
|
|
49837
49837
|
]
|
|
@@ -52711,6 +52711,11 @@ function TableScreen({
|
|
|
52711
52711
|
return;
|
|
52712
52712
|
return Math.max(1, Math.ceil(schema.record_count / tablePageSize));
|
|
52713
52713
|
}, [schema, tablePageSize]);
|
|
52714
|
+
import_react32.useEffect(() => {
|
|
52715
|
+
if (totalPages != null && page >= totalPages) {
|
|
52716
|
+
setPage(totalPages - 1);
|
|
52717
|
+
}
|
|
52718
|
+
}, [totalPages, page]);
|
|
52714
52719
|
const schemaInfoLines = import_react32.useMemo(() => {
|
|
52715
52720
|
if (!schema)
|
|
52716
52721
|
return [];
|
|
@@ -52774,7 +52779,7 @@ function TableScreen({
|
|
|
52774
52779
|
return;
|
|
52775
52780
|
}
|
|
52776
52781
|
if (input === "n") {
|
|
52777
|
-
setPage((p2) => p2 + 1);
|
|
52782
|
+
setPage((p2) => totalPages != null && p2 + 1 >= totalPages ? p2 : p2 + 1);
|
|
52778
52783
|
return;
|
|
52779
52784
|
}
|
|
52780
52785
|
if (input === "p" && page > 0) {
|