This commit is contained in:
kuaifan 2022-12-09 10:22:53 +08:00
parent 8bbc1e8e4e
commit 51d878469f
13 changed files with 13 additions and 13 deletions

View File

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

2
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/230.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[230],{44369:(t,a,e)=>{e.d(a,{Z:()=>n});var s=e(1519),o=e.n(s)()((function(t){return t[1]}));o.push([t.id,".input-box[data-v-05084f56]{align-items:center;display:flex}.input-box .input-box-push[data-v-05084f56]{opacity:.5;padding:0 12px 0 8px}.input-box .input-box-key[data-v-05084f56]{width:80px}",""]);const n=o},27060:(t,a,e)=>{e.r(a),e.d(a,{default:()=>c});const s={data:function(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",formData:{screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},ruleData:{}}},mounted:function(){this.initData()},computed:{screenshotDisabled:function(){return!this.formData.screenshot_mate&&!this.formData.screenshot_shift}},methods:{initData:function(){this.formData=Object.assign({screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},$A.jsonParse(window.localStorage["__keyboard:data__"]||{})),this.formData_bak=$A.cloneJSON(this.formData)},onKeydown:function(t){var a=t.key;8!==t.keyCode&&(a=a&&1===a.length?a.trim().toUpperCase():"")&&(this.formData.screenshot_key=a)},submitForm:function(){var t=this;this.$refs.formData.validate((function(a){a&&(window.localStorage["__keyboard:data__"]=$A.jsonStringify(t.formData),$A.bindScreenshotKey(t.formData),$A.messageSuccess("保存成功"))}))},resetForm:function(){this.formData=$A.cloneJSON(this.formData_bak)}}};var o=e(93379),n=e.n(o),i=e(44369),r={insert:"head",singleton:!1};n()(i.Z,r);i.Z.locals;const c=(0,e(51900).Z)(s,(function(){var t=this,a=t._self._c;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"".concat(t.$L("截图快捷键")," (Beta)"),prop:"screenshot"}},[a("div",{staticClass:"input-box"},[a("Checkbox",{model:{value:t.formData.screenshot_mate,callback:function(a){t.$set(t.formData,"screenshot_mate",a)},expression:"formData.screenshot_mate"}},[t._v(t._s(t.mateName))]),t._v(" "),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(" "),a("Checkbox",{model:{value:t.formData.screenshot_shift,callback:function(a){t.$set(t.formData,"screenshot_shift",a)},expression:"formData.screenshot_shift"}},[t._v("Shift")]),t._v(" "),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(" "),a("Input",{staticClass:"input-box-key",attrs:{disabled:t.screenshotDisabled,value:t.formData.screenshot_key,maxlength:1},on:{"on-keydown":t.onKeydown}})],1),t._v(" "),t.screenshotDisabled?a("div",{staticClass:"form-tip red"},[t._v(t._s(t.$L("至少选择一个功能键!")))]):t._e()])],1),t._v(" "),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,disabled:t.screenshotDisabled,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("保存")))]),t._v(" "),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("重置")))])],1)],1)}),[],!1,null,"05084f56",null).exports}}]);

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

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 @@
d40c17ba3f504404
d6a533ebee5f479c

View File

@ -779,6 +779,7 @@
"/js/build/203.js": "/js/build/203.js",
"/js/build/203.js.LICENSE.txt": "/js/build/203.js.LICENSE.txt",
"/js/build/228.js": "/js/build/228.js",
"/js/build/230.js": "/js/build/230.js",
"/js/build/249.js": "/js/build/249.js",
"/js/build/27.js": "/js/build/27.js",
"/js/build/29.js": "/js/build/29.js",
@ -796,6 +797,7 @@
"/js/build/506.js.LICENSE.txt": "/js/build/506.js.LICENSE.txt",
"/js/build/575.js": "/js/build/575.js",
"/js/build/60.js": "/js/build/60.js",
"/js/build/60.js.LICENSE.txt": "/js/build/60.js.LICENSE.txt",
"/js/build/651.js": "/js/build/651.js",
"/js/build/66.js": "/js/build/66.js",
"/js/build/680.js": "/js/build/680.js",
@ -823,8 +825,6 @@
"/js/build/940.js": "/js/build/940.js",
"/js/build/940.js.LICENSE.txt": "/js/build/940.js.LICENSE.txt",
"/js/build/947.js": "/js/build/947.js",
"/js/build/968.js": "/js/build/968.js",
"/js/build/968.js.LICENSE.txt": "/js/build/968.js.LICENSE.txt",
"/js/build/977.js": "/js/build/977.js",
"/js/emoji.all.js": "/js/emoji.all.js",
"/js/emoticon.all.js": "/js/emoticon.all.js",