mirror of
https://github.com/ruvnet/RuView
synced 2026-08-07 20:01:43 +00:00
f49c722764
The Rust port lived two directories deep (rust-port/wifi-densepose-rs/) without any sibling under rust-port/ that warranted the extra level. Move the whole workspace up to v2/ to match v1/ (Python) at the same depth and shorten every cd / build command across the repo. git mv preserves history for all tracked files. 60 files updated for path references (CI workflows, ADRs, docs, scripts, READMEs, internal .claude-flow state). Two manual fixes for relative-cd paths in CLAUDE.md and ADR-043 that became wrong after the depth change (cd ../.. → cd ..). Validated: - cargo check --workspace --no-default-features → clean (after target/ nuke; the gitignored target/ was carried by the OS rename and had hard-coded old paths in build scripts) - cargo test --workspace --no-default-features → 1,539 passed, 0 failed, 8 ignored (same totals as pre-rename) - ESP32-S3 on COM7 → still streaming live CSI (cb #40300, RSSI -64 dBm) After-merge follow-up: contributors should `rm -rf v2/target` once and let cargo regenerate from the new path.
77 lines
2.6 KiB
JavaScript
77 lines
2.6 KiB
JavaScript
import {
|
|
invoke
|
|
} from "./chunk-YQTFE5VL.js";
|
|
import "./chunk-BUSYA2B4.js";
|
|
|
|
// node_modules/@tauri-apps/plugin-dialog/dist-js/index.js
|
|
function buttonsToRust(buttons) {
|
|
if (buttons === void 0) {
|
|
return void 0;
|
|
}
|
|
if (typeof buttons === "string") {
|
|
return buttons;
|
|
} else if ("ok" in buttons && "cancel" in buttons) {
|
|
return { OkCancelCustom: [buttons.ok, buttons.cancel] };
|
|
} else if ("yes" in buttons && "no" in buttons && "cancel" in buttons) {
|
|
return {
|
|
YesNoCancelCustom: [buttons.yes, buttons.no, buttons.cancel]
|
|
};
|
|
} else if ("ok" in buttons) {
|
|
return { OkCustom: buttons.ok };
|
|
}
|
|
return void 0;
|
|
}
|
|
async function open(options = {}) {
|
|
if (typeof options === "object") {
|
|
Object.freeze(options);
|
|
}
|
|
return await invoke("plugin:dialog|open", { options });
|
|
}
|
|
async function save(options = {}) {
|
|
if (typeof options === "object") {
|
|
Object.freeze(options);
|
|
}
|
|
return await invoke("plugin:dialog|save", { options });
|
|
}
|
|
async function message(message2, options) {
|
|
var _a, _b;
|
|
const opts = typeof options === "string" ? { title: options } : options;
|
|
return invoke("plugin:dialog|message", {
|
|
message: message2.toString(),
|
|
title: (_a = opts == null ? void 0 : opts.title) == null ? void 0 : _a.toString(),
|
|
kind: opts == null ? void 0 : opts.kind,
|
|
okButtonLabel: (_b = opts == null ? void 0 : opts.okLabel) == null ? void 0 : _b.toString(),
|
|
buttons: buttonsToRust(opts == null ? void 0 : opts.buttons)
|
|
});
|
|
}
|
|
async function ask(message2, options) {
|
|
var _a, _b, _c;
|
|
const opts = typeof options === "string" ? { title: options } : options;
|
|
return await invoke("plugin:dialog|ask", {
|
|
message: message2.toString(),
|
|
title: (_a = opts == null ? void 0 : opts.title) == null ? void 0 : _a.toString(),
|
|
kind: opts == null ? void 0 : opts.kind,
|
|
yesButtonLabel: (_b = opts == null ? void 0 : opts.okLabel) == null ? void 0 : _b.toString(),
|
|
noButtonLabel: (_c = opts == null ? void 0 : opts.cancelLabel) == null ? void 0 : _c.toString()
|
|
});
|
|
}
|
|
async function confirm(message2, options) {
|
|
var _a, _b, _c;
|
|
const opts = typeof options === "string" ? { title: options } : options;
|
|
return await invoke("plugin:dialog|confirm", {
|
|
message: message2.toString(),
|
|
title: (_a = opts == null ? void 0 : opts.title) == null ? void 0 : _a.toString(),
|
|
kind: opts == null ? void 0 : opts.kind,
|
|
okButtonLabel: (_b = opts == null ? void 0 : opts.okLabel) == null ? void 0 : _b.toString(),
|
|
cancelButtonLabel: (_c = opts == null ? void 0 : opts.cancelLabel) == null ? void 0 : _c.toString()
|
|
});
|
|
}
|
|
export {
|
|
ask,
|
|
confirm,
|
|
message,
|
|
open,
|
|
save
|
|
};
|
|
//# sourceMappingURL=@tauri-apps_plugin-dialog.js.map
|