Comparing version
@@ -38,2 +38,4 @@ "use strict"; | ||
this.bottom = false; | ||
this.ym = ''; | ||
this.hm = ''; | ||
} | ||
@@ -40,0 +42,0 @@ settime() { |
@@ -39,3 +39,4 @@ "use strict"; | ||
this.start = false; | ||
this.yearmonth = ''; | ||
this.ym = ''; | ||
this.hm = ''; | ||
} | ||
@@ -42,0 +43,0 @@ settime() { |
@@ -62,2 +62,9 @@ "use strict"; | ||
{ | ||
'type': 0, | ||
'name': 'Appraise3', | ||
'path': 'Bob >> folder >> Appraise3', | ||
'src': '/package/res/r-2.svg', | ||
'unavailable': true | ||
}, | ||
{ | ||
'control': 'split' | ||
@@ -64,0 +71,0 @@ }, |
@@ -114,2 +114,3 @@ "use strict"; | ||
this.disabledList = []; | ||
this.unavailableList = []; | ||
this.padding = false; | ||
@@ -116,0 +117,0 @@ this.fontSize = false; |
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.zip = exports.tool = exports.theme = exports.task = exports.storage = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0; | ||
const version = '3.14.5'; | ||
const version = '3.14.6'; | ||
function getVersion() { | ||
@@ -30,0 +30,0 @@ return version; |
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
const version = '3.14.5'; | ||
const version = '3.14.6'; | ||
export function getVersion(): string { | ||
@@ -19,0 +19,0 @@ return version; |
@@ -290,3 +290,3 @@ "use strict"; | ||
]); | ||
loader.loadStyle('.jodit-container:not(.jodit_inline){border:none;display:flex;flex-direction:column;}.jodit-container:not(.jodit_inline) .jodit-workplace{cursor:text;flex:1;}'); | ||
loader.loadStyle('.jodit-container:not(.jodit_inline){border:none;display:flex;flex-direction:column;}.jodit-container:not(.jodit_inline) .jodit-workplace{cursor:text;flex:1;}.jodit-wysiwyg a{color:unset;}'); | ||
return window.Jodit; | ||
@@ -293,0 +293,0 @@ }); |
@@ -358,3 +358,3 @@ /** | ||
]); | ||
loader.loadStyle('.jodit-container:not(.jodit_inline){border:none;display:flex;flex-direction:column;}.jodit-container:not(.jodit_inline) .jodit-workplace{cursor:text;flex:1;}'); | ||
loader.loadStyle('.jodit-container:not(.jodit_inline){border:none;display:flex;flex-direction:column;}.jodit-container:not(.jodit_inline) .jodit-workplace{cursor:text;flex:1;}.jodit-wysiwyg a{color:unset;}'); | ||
return (window as any).Jodit; | ||
@@ -361,0 +361,0 @@ }, |
@@ -12,3 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.queryParse = exports.queryStringify = exports.formatSecond = exports.compar = exports.execCommand = exports.blob2DataUrl = exports.blob2Text = exports.urlAtom = exports.urlResolve = exports.parseUrl = exports.postResponseJson = exports.getResponseJson = exports.post = exports.get = exports.fetch = exports.request = exports.rgb2hsl = exports.escapeHTML = exports.getArray = exports.getNumber = exports.getBoolean = exports.random = exports.RANDOM_LUNS = exports.RANDOM_V = exports.RANDOM_LUN = exports.RANDOM_LU = exports.RANDOM_LN = exports.RANDOM_UN = exports.RANDOM_L = exports.RANDOM_U = exports.RANDOM_N = exports.rand = exports.getMimeByPath = exports.stylePrepend = exports.teleportGlue = exports.eventsAttrWrap = exports.layoutClassPrepend = exports.layoutInsertAttr = exports.layoutAddTagClassAndReTagName = exports.styleUrl2DataUrl = exports.match = exports.purify = exports.sleepFrame = exports.nextFrame = exports.sleep = exports.clone = exports.blob2ArrayBuffer = exports.getClassPrototype = void 0; | ||
exports.queryParse = exports.queryStringify = exports.formatTime = exports.formatSecond = exports.compar = exports.execCommand = exports.blob2DataUrl = exports.blob2Text = exports.urlAtom = exports.urlResolve = exports.parseUrl = exports.postResponseJson = exports.getResponseJson = exports.post = exports.get = exports.fetch = exports.request = exports.rgb2hsl = exports.escapeHTML = exports.getArray = exports.getNumber = exports.getBoolean = exports.random = exports.RANDOM_LUNS = exports.RANDOM_V = exports.RANDOM_LUN = exports.RANDOM_LU = exports.RANDOM_LN = exports.RANDOM_UN = exports.RANDOM_L = exports.RANDOM_U = exports.RANDOM_N = exports.rand = exports.getMimeByPath = exports.stylePrepend = exports.teleportGlue = exports.eventsAttrWrap = exports.layoutClassPrepend = exports.layoutInsertAttr = exports.layoutAddTagClassAndReTagName = exports.styleUrl2DataUrl = exports.match = exports.purify = exports.sleepFrame = exports.nextFrame = exports.sleep = exports.clone = exports.blob2ArrayBuffer = exports.getClassPrototype = void 0; | ||
function getClassPrototype(obj, over = [], level = 0) { | ||
@@ -723,2 +723,31 @@ var _a; | ||
exports.formatSecond = formatSecond; | ||
function formatTime(ts, opts = {}) { | ||
var _a; | ||
if (opts.time === undefined) { | ||
opts.time = true; | ||
} | ||
if (opts.date === undefined) { | ||
opts.date = true; | ||
} | ||
if (opts.zone === undefined) { | ||
opts.zone = false; | ||
} | ||
const dateTxt = []; | ||
if (typeof ts === 'number') { | ||
ts = new Date(ts * 1000); | ||
} | ||
const tz = (_a = opts.tz) !== null && _a !== void 0 ? _a : -(ts.getTimezoneOffset() / 60); | ||
ts.setTime(ts.getTime() + tz * 60 * 60000); | ||
if (opts.date) { | ||
dateTxt.push(ts.getUTCFullYear().toString() + '-' + (ts.getUTCMonth() + 1).toString().padStart(2, '0') + '-' + ts.getUTCDate().toString().padStart(2, '0')); | ||
} | ||
if (opts.time) { | ||
dateTxt.push(ts.getUTCHours().toString().padStart(2, '0') + ':' + ts.getUTCMinutes().toString().padStart(2, '0') + ':' + ts.getUTCSeconds().toString().padStart(2, '0')); | ||
} | ||
if (opts.zone) { | ||
dateTxt.push('UTC' + (tz >= 0 ? '+' : '') + tz.toString()); | ||
} | ||
return dateTxt.join(' '); | ||
} | ||
exports.formatTime = formatTime; | ||
function queryStringify(query) { | ||
@@ -725,0 +754,0 @@ return Object.entries(query).map(([k, v]) => { |
@@ -925,2 +925,46 @@ /** | ||
/** | ||
* --- 将日期对象或秒级时间戳转换为字符串 --- | ||
* @param ts 时间戳或日期对象 | ||
* @param opts 选项 | ||
*/ | ||
export function formatTime(ts: number | Date, opts: { | ||
/** --- 是否显示时间,默认显示 --- */ | ||
'time'?: boolean; | ||
/** --- 是否显示日期,默认显示 --- */ | ||
'date'?: boolean; | ||
/** --- 是否显示时区,默认不显示 --- */ | ||
'zone'?: boolean; | ||
/** --- 传入要显示的时区,小时,如 8,默认以当前客户端时区为准 --- */ | ||
'tz'?: number; | ||
} = {}): string { | ||
if (opts.time === undefined) { | ||
opts.time = true; | ||
} | ||
if (opts.date === undefined) { | ||
opts.date = true; | ||
} | ||
if (opts.zone === undefined) { | ||
opts.zone = false; | ||
} | ||
// --- 代码开始 --- | ||
const dateTxt: string[] = []; | ||
if (typeof ts === 'number') { | ||
ts = new Date(ts * 1000); | ||
} | ||
/** --- 当前设定的时区 --- */ | ||
const tz = opts.tz ?? -(ts.getTimezoneOffset() / 60); | ||
ts.setTime(ts.getTime() + tz * 60 * 60_000); | ||
if (opts.date) { | ||
dateTxt.push(ts.getUTCFullYear().toString() + '-' + (ts.getUTCMonth() + 1).toString().padStart(2, '0') + '-' + ts.getUTCDate().toString().padStart(2, '0')); | ||
} | ||
if (opts.time) { | ||
dateTxt.push(ts.getUTCHours().toString().padStart(2, '0') + ':' + ts.getUTCMinutes().toString().padStart(2, '0') + ':' + ts.getUTCSeconds().toString().padStart(2, '0')); | ||
} | ||
if (opts.zone) { | ||
dateTxt.push('UTC' + (tz >= 0 ? '+' : '') + tz.toString()); | ||
} | ||
return dateTxt.join(' '); | ||
} | ||
/** | ||
* --- 将对象转换为 query string --- | ||
@@ -927,0 +971,0 @@ * @param query 要转换的对象 |
{ | ||
"name": "clickgo", | ||
"version": "3.14.5", | ||
"version": "3.14.6", | ||
"description": "Background interface, software interface, mobile phone APP interface operation library.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -28,3 +28,3 @@ # ClickGo | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.14.5'}"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.14.6'}"></script> | ||
``` | ||
@@ -31,0 +31,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4542158
0.1%33616
0.28%