Merge branch 'main' into main

This commit is contained in:
medProgAyat 2025-10-13 13:40:23 +03:30 committed by GitHub
commit c589d95d7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 20 deletions

View file

@ -249,7 +249,8 @@ Toby Penner <tobypenner01@gmail.com>
Danilo Spillebeen <spillebeendanilo@gmail.com>
Matbe766 <matildabergstrom01@gmail.com>
Amanda Sternberg <mandis.sternberg@gmail.com>
arold0 <arold0@icloud.com>
arold0 <arold0@icloud.com>
nav1s <nav1s@proton.me>
medProgAyat <hosseinmehriyari1383@gmail.com>
********************

View file

@ -80,7 +80,7 @@ class SidebarItem:
self.search_node = search_node
self.on_expanded = on_expanded
self.children: list[SidebarItem] = []
self.tooltip: str | None = None
self.tooltip: str = name
self._parent_item: SidebarItem | None = None
self._expanded = expanded
self._row_in_parent: int | None = None

View file

@ -31,7 +31,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
</script>
<script lang="ts">
import { randomUUID } from "@tslib/uuid";
import { onDestroy } from "svelte";
import { writable } from "svelte/store";
@ -66,7 +65,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
$: empty = title === "MathJax";
$: encoded = encodeURIComponent(converted);
const uuid = randomUUID();
const uuid = crypto.randomUUID();
const imageHeight = writable(0);
imageToHeightMap.set(uuid, imageHeight);

View file

@ -1,16 +0,0 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
/**
* TODO replace with crypto.randomUUID
*/
export function randomUUID(): string {
const value = `${1e7}-${1e3}-${4e3}-${8e3}-${1e11}`;
return value.replace(/[018]/g, (character: string): string =>
(
Number(character)
^ (crypto.getRandomValues(new Uint8Array(1))[0]
& (15 >> (Number(character) / 4)))
).toString(16));
}