no message

This commit is contained in:
kuaifan 2021-07-09 23:50:20 +08:00
parent 87f7953eb9
commit 5afbc8b6d9
31 changed files with 60 additions and 9201 deletions

17
electron/main.js vendored
View File

@ -1,6 +1,7 @@
const fs = require('fs')
const path = require('path')
const {app, BrowserWindow, ipcMain} = require('electron')
const XLSX = require('xlsx');
const {app, BrowserWindow, ipcMain, dialog} = require('electron')
let willQuitApp = false,
devloadCachePath = path.resolve(__dirname, ".devload"),
@ -79,3 +80,17 @@ ipcMain.on('setDockBadge', (event, arg) => {
app.dock.setBadge("")
}
});
ipcMain.on('saveSheet', (event, data, filename, opts) => {
const EXTENSIONS = "xls|xlsx|xlsm|xlsb|xml|csv|txt|dif|sylk|slk|prn|ods|fods|htm|html".split("|");
dialog.showSaveDialog({
title: 'Save file as',
defaultPath: filename,
filters: [{
name: "Spreadsheets",
extensions: EXTENSIONS
}]
}).then(o => {
XLSX.writeFile(data, o.filePath, opts);
});
});

View File

@ -1,6 +1,6 @@
{
"name": "DooTask",
"version": "0.2.82",
"version": "0.2.84",
"description": "DooTask is task management system.",
"main": "main.js",
"license": "MIT",
@ -23,7 +23,8 @@
"@electron-forge/maker-zip": "^6.0.0-beta.57",
"dotenv": "^9.0.2",
"electron": "^13.1.6",
"electron-builder": "^22.11.7"
"electron-builder": "^22.11.7",
"xlsx": "^0.17.0"
},
"dependencies": {
"electron-squirrel-startup": "^1.0.0"

View File

@ -1,6 +1,6 @@
{
"name": "DooTask",
"version": "0.2.82",
"version": "0.2.84",
"description": "DooTask is task management system.",
"scripts": {
"start": "./cmd dev",

9172
public/css/app.css vendored

File diff suppressed because one or more lines are too long

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

1
public/js/build/104.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
/*!
* html2canvas 1.0.0-rc.7 <https://html2canvas.hertzen.com>
* Copyright (c) 2020 Niklas von Hertzen <https://hertzen.com>
* html2canvas 1.0.0 <https://html2canvas.hertzen.com>
* Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
public/js/build/189.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -7,14 +7,14 @@
/*!
* TOAST UI Date Picker
* @version 4.2.0
* @version 4.2.2
* @author NHN. FE Development Lab <dl_javascript@nhn.com>
* @license MIT
*/
/*!
* TOAST UI Time Picker
* @version 2.0.3
* @version 2.1.2
* @author NHN FE Development Lab <dl_javascript@nhn.com>
* @license MIT
*/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
public/js/build/552.js vendored Normal file

File diff suppressed because one or more lines are too long

2
public/js/build/553.js vendored Normal file

File diff suppressed because one or more lines are too long

1
public/js/build/603.js vendored Normal file
View File

@ -0,0 +1 @@
(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[603],{88064:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var s=a(23645),n=a.n(s)()((function(e){return e[1]}));n.push([e.id,".page-404[data-v-1f590918]{background-color:#fff;color:#636b6f;font-weight:400;margin:0}.page-404[data-v-1f590918],.page-404 .full-height[data-v-1f590918]{height:100vh}.page-404 .flex-center[data-v-1f590918]{align-items:center;display:flex;justify-content:center}.page-404 .position-ref[data-v-1f590918]{position:relative}.page-404 .code[data-v-1f590918]{border-right:2px solid;font-size:26px;padding:0 15px;text-align:center}.page-404 .message[data-v-1f590918]{font-size:18px;padding:10px;text-align:center}",""]);const i=n},98603:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>o});var s=a(93379),n=a.n(s),i=a(88064),l={insert:"head",singleton:!1};n()(i.Z,l);i.Z.locals;const o=(0,a(51900).Z)({},(function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)}),[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-404"},[a("div",{staticClass:"flex-center position-ref full-height"},[a("div",{staticClass:"code"},[e._v("404")]),e._v(" "),a("div",{staticClass:"message"},[e._v("Not Found")])])])}],!1,null,"1f590918",null).exports}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[673],{36829:(n,e,t)=>{"use strict";t.d(e,{Z:()=>i});var a=t(23645),s=t.n(a)()((function(n){return n[1]}));s.push([n.id,".page-404[data-v-1f590918] {\n background-color: #fff;\n color: #636b6f;\n font-weight: 400;\n height: 100vh;\n margin: 0;\n}\n.page-404 .full-height[data-v-1f590918] {\n height: 100vh;\n}\n.page-404 .flex-center[data-v-1f590918] {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n.page-404 .position-ref[data-v-1f590918] {\n position: relative;\n}\n.page-404 .code[data-v-1f590918] {\n border-right: 2px solid;\n font-size: 26px;\n padding: 0 15px 0 15px;\n text-align: center;\n}\n.page-404 .message[data-v-1f590918] {\n font-size: 18px;\n padding: 10px;\n text-align: center;\n}\n",""]);const i=s},62673:(n,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>o});var a=t(93379),s=t.n(a),i=t(36829),l={insert:"head",singleton:!1};s()(i.Z,l);i.Z.locals;const o=(0,t(51900).Z)({},(function(){var n=this,e=n.$createElement;n._self._c;return n._m(0)}),[function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"page-404"},[t("div",{staticClass:"flex-center position-ref full-height"},[t("div",{staticClass:"code"},[n._v("404")]),n._v(" "),t("div",{staticClass:"message"},[n._v("Not Found")])])])}],!1,null,"1f590918",null).exports}}]);

1
public/js/build/76.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
/*! @license DOMPurify 2.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.0/LICENSE */

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -97,6 +97,12 @@ export default {
plugins: [
'chart'
],
showtoolbarConfig: {
chart: false
},
cellRightClickConfig: {
chart: false
},
lang: lang,
loading: {
image: 'image://' + $A.originUrl('js/luckysheet/css/loading.gif')
@ -258,12 +264,19 @@ export default {
}
});
//
XLSX.writeFile({
const data = {
SheetNames: SheetNames,
Sheets: Sheets
}, bookName + "." + (bookType == 'xlml' ? 'xls' : bookType), {
}
const opts = {
bookType: bookType || "xlsx"
});
}
const filename = bookName + "." + (bookType == 'xlml' ? 'xls' : bookType);
if (this.isElectron) {
this.$electron.ipcRenderer.send('saveSheet', data, filename, opts);
} else {
XLSX.writeFile(data, filename, opts);
}
},
isPercentage(value) {

File diff suppressed because one or more lines are too long