Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2025-06-07 11:45:43 +08:00
commit 4b17a29244
3 changed files with 5 additions and 2 deletions

View file

@ -701,7 +701,7 @@ export abstract class Constants {
public static readonly SIYUAN_ASSETS_EXTS: string[] = [".pdf"].concat(Constants.SIYUAN_ASSETS_IMAGE).concat(Constants.SIYUAN_ASSETS_AUDIO).concat(Constants.SIYUAN_ASSETS_VIDEO);
public static readonly SIYUAN_ASSETS_SEARCH: string[] = [".txt", ".md", ".markdown", ".docx", ".xlsx", ".pptx", ".pdf", ".json", ".log", ".sql", ".html", ".xml", ".java", ".h", ".c",
".cpp", ".go", ".rs", ".swift", ".kt", ".py", ".php", ".js", ".css", ".ts", ".sh", ".bat", ".cmd", ".ini", ".yaml",
".rst", ".adoc", ".textile", ".opml", ".org", ".wiki", ".epub"];
".rst", ".adoc", ".textile", ".opml", ".org", ".wiki", ".epub", ".cs"];
// protyle
public static readonly SIYUAN_CONFIG_APPEARANCE_DARK_CODE: string[] = ["a11y-dark", "agate", "an-old-hope", "androidstudio",

View file

@ -521,13 +521,15 @@ export const initKeyboardToolbar = () => {
</div>
<div class="keyboard__util"></div>`;
let startY = 0;
let startX = 0;
let moved = false;
toolbarElement.addEventListener("touchstart", e => {
startY = e.touches[0].clientY;
startX = e.touches[0].clientX;
moved = false;
});
toolbarElement.addEventListener("touchmove", e => {
if (Math.abs(e.touches[0].clientY - startY) > 10) {
if (Math.abs(e.touches[0].clientY - startY) > 10 || Math.abs(e.touches[0].clientX - startX) > 10) {
moved = true;
}
});

View file

@ -475,6 +475,7 @@ func NewAssetsSearcher() *AssetsSearcher {
".opml": txtAssetParser,
".org": txtAssetParser,
".wiki": txtAssetParser,
".cs": txtAssetParser,
".docx": &DocxAssetParser{},
".pptx": &PptxAssetParser{},
".xlsx": &XlsxAssetParser{},