2024-09-18 18:29:21 +08:00
|
|
|
// just for develop
|
|
|
|
|
|
|
|
export default {
|
|
|
|
json,
|
|
|
|
jsonP,
|
|
|
|
unJson,
|
|
|
|
yaml,
|
|
|
|
unYaml,
|
2024-09-29 21:20:28 +08:00
|
|
|
load,
|
|
|
|
save,
|
2024-09-18 18:29:21 +08:00
|
|
|
base64,
|
|
|
|
unBase64,
|
|
|
|
urlBase64,
|
|
|
|
unUrlBase64,
|
|
|
|
hex,
|
|
|
|
unHex,
|
|
|
|
aes,
|
|
|
|
unAes,
|
|
|
|
gzip,
|
|
|
|
gunzip,
|
|
|
|
id,
|
|
|
|
uniqueId,
|
|
|
|
token,
|
|
|
|
md5,
|
|
|
|
sha1,
|
|
|
|
sha256,
|
|
|
|
sha512,
|
2024-09-20 16:50:35 +08:00
|
|
|
tpl,
|
2024-09-29 21:20:28 +08:00
|
|
|
shell,
|
|
|
|
toDatetime,
|
|
|
|
fromDatetime,
|
|
|
|
toDate,
|
|
|
|
fromDate
|
2024-09-18 18:29:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function json(data:any): string {return ''}
|
|
|
|
function jsonP(data:any): string {return ''}
|
|
|
|
function unJson(data:string): any {return null}
|
|
|
|
function yaml(data:any): string {return ''}
|
|
|
|
function unYaml(data:string): any {return null}
|
2024-09-29 21:20:28 +08:00
|
|
|
function load(filename:string): any {return null}
|
|
|
|
function save(filename:string, data:any) {}
|
2024-09-18 18:29:21 +08:00
|
|
|
function base64(data:any): string {return ''}
|
|
|
|
function unBase64(data:string): any {return null}
|
|
|
|
function urlBase64(data:any): string {return ''}
|
|
|
|
function unUrlBase64(data:string): any {return null}
|
|
|
|
function hex(data:any): string {return ''}
|
|
|
|
function unHex(data:string): any {return null}
|
|
|
|
function aes(data:any, key:string, iv:string): string {return ''}
|
|
|
|
function unAes(data:string, key:string, iv:string): any {return null}
|
|
|
|
function gzip(data:any): string {return ''}
|
|
|
|
function gunzip(data:string): any {return null}
|
|
|
|
function id(): string {return ''}
|
|
|
|
function uniqueId(): string {return ''}
|
|
|
|
function token(size:number): string {return ''}
|
|
|
|
function md5(data:any): string {return ''}
|
|
|
|
function sha1(data:any): string {return ''}
|
|
|
|
function sha256(data:any): string {return ''}
|
|
|
|
function sha512(data:any): string {return ''}
|
2024-09-23 18:15:02 +08:00
|
|
|
function tpl(text:string, data:any, functions?:Object): string {return ''}
|
2024-09-20 16:50:35 +08:00
|
|
|
function shell(cmd:string, ...args:string[]): string[] {return []}
|
2024-09-29 21:20:28 +08:00
|
|
|
function toDatetime(timestamp:number): string {return ''}
|
|
|
|
function fromDatetime(datetimeStr:string): number {return 0}
|
|
|
|
function toDate(timestamp:number): string {return ''}
|
|
|
|
function fromDate(dateStr:string): number {return 0}
|