198 files
This commit is contained in:
1 parent
4a64770282
commit
669d229519
198 files changed
+4891
-2815
No files matched your search
@@ -3,11 +3,12 @@
|
||||
import { LitElement, html, css, nothing } from "lit";
|
||||
import { applySubscriptionEvent, type SubscriptionEvent } from "./helpers/subscription-merge";
|
||||
import { hydrateObjects } from "./helpers/hydrate-objects";
|
||||
import { taskIsFor } from "./helpers/assignees";
|
||||
import { property, state } from "lit/decorators.js";
|
||||
import { syncLocaleFromHass, sharedStyles, STATUS_COLORS, t, ensureLocale, isLocaleLoaded, setProfilePrefs, formatDueDays, formatLastDone, formatDate, langOf, currencySymbolOf, syncCurrencyDecimals} from "./styles";
|
||||
import { openSignedDocument } from "./helpers/document-url";
|
||||
import { isPhotoDocument } from "./helpers/document-categories";
|
||||
import { isSafeHttpUrl } from "./helpers/url";
|
||||
import { isSafeLink } from "./helpers/url";
|
||||
import { registerCustomCard } from "./helpers/register-card";
|
||||
import { healCardRegistry } from "./helpers/registry-heal";
|
||||
import { localizePickerWhenReady } from "./helpers/picker-i18n";
|
||||
@@ -315,9 +316,9 @@ export class MaintenanceSupporterCard extends LitElement {
|
||||
private async _openDoc(doc: CardDoc): Promise<void> {
|
||||
if (doc.kind === "weblink" && doc.url) {
|
||||
// Same guarded sink as every other weblink opener: never hand a
|
||||
// non-http(s) URL to window.open (defense-in-depth against a link
|
||||
// blocked scheme to window.open (defense-in-depth against a link
|
||||
// stored before the server-side scheme check existed).
|
||||
if (isSafeHttpUrl(doc.url)) window.open(doc.url, "_blank", "noopener");
|
||||
if (isSafeLink(doc.url)) window.open(doc.url, "_blank", "noopener");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
@@ -439,7 +440,7 @@ export class MaintenanceSupporterCard extends LitElement {
|
||||
if (vf.status && task.status !== vf.status) continue;
|
||||
if (vf.label && !(task.labels || []).includes(vf.label)) continue;
|
||||
if (vf.priority && (task.priority || "normal") !== vf.priority) continue;
|
||||
if (viewUser && task.responsible_user_id !== viewUser) continue;
|
||||
if (viewUser && !taskIsFor(task, viewUser)) continue;
|
||||
}
|
||||
tasks.push({ entry_id: obj.entry_id, object_name: obj.object.name, task });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user