mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🎨 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": "使用固定端口",
|
"useFixedPort": "使用固定端口",
|
||||||
"useFixedPortTip": "开启后将仅使用固定端口 <code class='fn__code'>6806</code>,关闭时同时使用随机端口和 <code class='fn__code'>6806</code>。修改后会自动关闭应用,请手动重启",
|
"useFixedPortTip": "开启后将仅使用固定端口 <code class='fn__code'>6806</code>,关闭时同时使用随机端口和 <code class='fn__code'>6806</code>。修改后会自动关闭应用,请手动重启",
|
||||||
"expandDown": "向下扩选",
|
"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 {
|
interface Window {
|
||||||
siyuan: ISiyuan
|
siyuan: ISiyuan
|
||||||
webkit: any
|
webkit: any
|
||||||
|
|
||||||
JSAndroid: {
|
JSAndroid: {
|
||||||
returnDesktop(): void
|
returnDesktop(): void
|
||||||
openExternal(url: string): void
|
openExternal(url: string): void
|
||||||
|
|
@ -42,6 +43,8 @@ interface Window {
|
||||||
showKeyboardToolbar(bottom?: number): void
|
showKeyboardToolbar(bottom?: number): void
|
||||||
|
|
||||||
hideKeyboardToolbar(): void
|
hideKeyboardToolbar(): void
|
||||||
|
|
||||||
|
gtag(name: string, key: string, value: IObject): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ITextOption {
|
interface ITextOption {
|
||||||
|
|
|
||||||
|
|
@ -160,8 +160,8 @@ export const onGetConfig = (isStart: boolean) => {
|
||||||
mountHelp();
|
mountHelp();
|
||||||
}
|
}
|
||||||
|
|
||||||
gtag("event", "config", {
|
window.gtag("event", "config", {
|
||||||
|
a: "1"
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -399,7 +399,10 @@ const initWindow = () => {
|
||||||
}
|
}
|
||||||
const msgId = showMessage(window.siyuan.languages.exporting, -1);
|
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));
|
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 {
|
try {
|
||||||
window.siyuan.printWin.webContents.printToPDF(ipcData.pdfOptions).then((pdfData) => {
|
window.siyuan.printWin.webContents.printToPDF(ipcData.pdfOptions).then((pdfData) => {
|
||||||
fetchPost("/api/export/exportHTML", {
|
fetchPost("/api/export/exportHTML", {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue