fix compile error and webdav
This commit is contained in:
parent
ef8949d2ac
commit
44c8206049
@ -4,7 +4,7 @@ backend:
|
|||||||
accessToken: ""
|
accessToken: ""
|
||||||
|
|
||||||
# Enable the function to save to a webdav-server (check README for more info) -- boolean
|
# Enable the function to save to a webdav-server (check README for more info) -- boolean
|
||||||
enableWebdav: false
|
enableWebdav: true
|
||||||
|
|
||||||
# Backend performance tweaks
|
# Backend performance tweaks
|
||||||
performance:
|
performance:
|
||||||
|
@ -19,6 +19,7 @@ import {
|
|||||||
faLock,
|
faLock,
|
||||||
faLockOpen,
|
faLockOpen,
|
||||||
faInfoCircle,
|
faInfoCircle,
|
||||||
|
faGlobe,
|
||||||
} from "@fortawesome/free-solid-svg-icons";
|
} from "@fortawesome/free-solid-svg-icons";
|
||||||
import {
|
import {
|
||||||
faSquare,
|
faSquare,
|
||||||
@ -52,7 +53,8 @@ library.add(
|
|||||||
faPlusSquare,
|
faPlusSquare,
|
||||||
faLock,
|
faLock,
|
||||||
faLockOpen,
|
faLockOpen,
|
||||||
faInfoCircle
|
faInfoCircle,
|
||||||
|
faGlobe
|
||||||
);
|
);
|
||||||
|
|
||||||
dom.i2svg();
|
dom.i2svg();
|
||||||
|
@ -4,7 +4,7 @@ import whiteboard from "./whiteboard";
|
|||||||
import keybinds from "./keybinds";
|
import keybinds from "./keybinds";
|
||||||
import Picker from "vanilla-picker";
|
import Picker from "vanilla-picker";
|
||||||
import { dom } from "@fortawesome/fontawesome-svg-core";
|
import { dom } from "@fortawesome/fontawesome-svg-core";
|
||||||
import pdfjsLib from "pdfjs-dist/webpack";
|
import pdfjsLib from "pdfjs-dist";
|
||||||
import shortcutFunctions from "./shortcutFunctions";
|
import shortcutFunctions from "./shortcutFunctions";
|
||||||
import ReadOnlyService from "./services/ReadOnlyService";
|
import ReadOnlyService from "./services/ReadOnlyService";
|
||||||
import InfoService from "./services/InfoService";
|
import InfoService from "./services/InfoService";
|
||||||
@ -815,7 +815,7 @@ function initWhiteboard() {
|
|||||||
var date = +new Date();
|
var date = +new Date();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: document.URL.substr(0, document.URL.lastIndexOf("/")) + "api/upload",
|
url: document.URL.substr(0, document.URL.lastIndexOf("/")) + "/api/upload",
|
||||||
data: {
|
data: {
|
||||||
imagedata: base64data,
|
imagedata: base64data,
|
||||||
whiteboardId: whiteboardId,
|
whiteboardId: whiteboardId,
|
||||||
@ -827,10 +827,11 @@ function initWhiteboard() {
|
|||||||
showBasicAlert("Whiteboard was saved to Webdav!", {
|
showBasicAlert("Whiteboard was saved to Webdav!", {
|
||||||
headercolor: "#5c9e5c",
|
headercolor: "#5c9e5c",
|
||||||
});
|
});
|
||||||
console.log("Image uploaded for webdav!");
|
console.log("Image uploaded to webdav!");
|
||||||
callback();
|
callback();
|
||||||
},
|
},
|
||||||
error: function (err) {
|
error: function (err) {
|
||||||
|
console.error(err);
|
||||||
if (err.status == 403) {
|
if (err.status == 403) {
|
||||||
showBasicAlert(
|
showBasicAlert(
|
||||||
"Could not connect to Webdav folder! Please check the credentials and paths and try again!"
|
"Could not connect to Webdav folder! Please check the credentials and paths and try again!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user