Skip to content

Commit

Permalink
- fix api key
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-silakov committed Sep 29, 2023
1 parent 5fc5ce7 commit 0fb3ed5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22440,6 +22440,13 @@ class MainView {
this.canvas.add(r);
r.bringToFront();
}
removeAllRegions() {
const regions = this.allRects;
console.log("\u2764\uFE0F", regions);
regions.forEach((region) => {
this.canvas.remove(region);
});
}
get allRects() {
return this.canvas.getObjects().filter((r) => r.name === "ignore_rect" || r.name === "bound_rect");
}
Expand Down Expand Up @@ -22542,6 +22549,7 @@ class MainView {
return null;
}
async getSnapshotIgnoreRegionsDataAndDrawRegions(id) {
this.removeAllRegions();
const regionData = await MainView.getRegionsData(id);
this.drawRegions(regionData.ignoreRegions);
}
Expand Down Expand Up @@ -24353,7 +24361,7 @@ function CheckDetails({
checkQuery,
closeHandler
}) {
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
useDocumentTitle(initCheckData == null ? void 0 : initCheckData.name);
const canvasElementRef = react.exports.useRef(null);
const {
Expand Down Expand Up @@ -24456,7 +24464,7 @@ function CheckDetails({
const actualImage = await imageFromUrl(actualImg.src);
const diffImgSrc = `${config.baseUri}/snapshoots/${(_c2 = currentCheck == null ? void 0 : currentCheck.diffId) == null ? void 0 : _c2.filename}?diffImg`;
const diffImage = ((_d2 = currentCheck == null ? void 0 : currentCheck.diffId) == null ? void 0 : _d2.filename) ? await imageFromUrl(diffImgSrc) : null;
await setMainView((prev) => {
setMainView((prev) => {
var _a3, _b3;
if (prev)
return prev;
Expand All @@ -24479,9 +24487,12 @@ function CheckDetails({
if (!baselineId)
return;
if (mainView) {
console.log("\u{1F480}REGIONS");
mainView.getSnapshotIgnoreRegionsDataAndDrawRegions(baselineId);
}
}, [(_k = baselineQuery.data) == null ? void 0 : _k.timestamp, mainView == null ? void 0 : mainView.toString(), query.checkId]);
}, [
mainView == null ? void 0 : mainView.toString()
]);
return /* @__PURE__ */ jsx(Group, {
style: {
width: "96vw"
Expand Down
2 changes: 1 addition & 1 deletion mvc/views/react/index2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<link rel="icon" href="/assets/favicon.bf5828d5.svg">
<title>Syngrisi</title>
<script type="module" crossorigin src="/assets/root.b4fde692.js"></script>
<script type="module" crossorigin src="/assets/root.fd49d5bd.js"></script>
<link rel="modulepreload" crossorigin href="/assets/use-form.9c88e2e2.js">
<link rel="modulepreload" crossorigin href="/assets/LogicalGroup.6a98bdb4.js">
<link rel="stylesheet" href="/assets/use-form.ecb4391b.css">
Expand Down

0 comments on commit 0fb3ed5

Please sign in to comment.