🎨 ga
This commit is contained in:
parent
50835bc6ce
commit
ad90e378ab
3 changed files with 11 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"codeSnippet": "代码片段",
|
||||
"useFixedPort": "使用固定端口",
|
||||
"useFixedPortTip": "开启后将仅使用固定端口 <code class='fn__code'>6806</code>,关闭时同时使用随机端口和 <code class='fn__code'>6806</code>。修改后会自动关闭应用,请手动重启",
|
||||
"expandDown": "向下扩选",
|
||||
|
|
3
app/src/types/index.d.ts
vendored
3
app/src/types/index.d.ts
vendored
|
@ -28,6 +28,7 @@ declare module "blueimp-md5"
|
|||
interface Window {
|
||||
siyuan: ISiyuan
|
||||
webkit: any
|
||||
|
||||
JSAndroid: {
|
||||
returnDesktop(): void
|
||||
openExternal(url: string): void
|
||||
|
@ -42,6 +43,8 @@ interface Window {
|
|||
showKeyboardToolbar(bottom?: number): void
|
||||
|
||||
hideKeyboardToolbar(): void
|
||||
|
||||
gtag(name: string, key: string, value: IObject): void;
|
||||
}
|
||||
|
||||
interface ITextOption {
|
||||
|
|
|
@ -160,8 +160,8 @@ export const onGetConfig = (isStart: boolean) => {
|
|||
mountHelp();
|
||||
}
|
||||
|
||||
gtag("event", "config", {
|
||||
|
||||
window.gtag("event", "config", {
|
||||
a: "1"
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -207,7 +207,7 @@ const initBar = () => {
|
|||
goForward();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
}else if (target.id === "barSync") {
|
||||
} else if (target.id === "barSync") {
|
||||
syncGuide(target);
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
@ -399,7 +399,10 @@ const initWindow = () => {
|
|||
}
|
||||
const msgId = showMessage(window.siyuan.languages.exporting, -1);
|
||||
const filePath = result.filePaths[0].endsWith(ipcData.rootTitle) ? result.filePaths[0] : path.join(result.filePaths[0], replaceLocalPath(ipcData.rootTitle));
|
||||
localStorage.setItem(Constants.LOCAL_EXPORTPDF, JSON.stringify(Object.assign(ipcData.pdfOptions, {removeAssets: ipcData.removeAssets, keepFold: ipcData.keepFold})));
|
||||
localStorage.setItem(Constants.LOCAL_EXPORTPDF, JSON.stringify(Object.assign(ipcData.pdfOptions, {
|
||||
removeAssets: ipcData.removeAssets,
|
||||
keepFold: ipcData.keepFold
|
||||
})));
|
||||
try {
|
||||
window.siyuan.printWin.webContents.printToPDF(ipcData.pdfOptions).then((pdfData) => {
|
||||
fetchPost("/api/export/exportHTML", {
|
||||
|
|
Loading…
Add table
Reference in a new issue