mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
4b17a29244
3 changed files with 5 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -475,6 +475,7 @@ func NewAssetsSearcher() *AssetsSearcher {
|
|||
".opml": txtAssetParser,
|
||||
".org": txtAssetParser,
|
||||
".wiki": txtAssetParser,
|
||||
".cs": txtAssetParser,
|
||||
".docx": &DocxAssetParser{},
|
||||
".pptx": &PptxAssetParser{},
|
||||
".xlsx": &XlsxAssetParser{},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue