update 0.0.4

This commit is contained in:
Timi
2026-04-10 12:47:50 +08:00
parent 4ae8904697
commit 73496f7768
4 changed files with 5 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
"module": "./dist/timi-web.mjs",
"style": "./dist/timi-web.css",
"private": false,
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",
"scripts": {
"dev": "vite",

View File

@@ -1,6 +1,7 @@
import { TemplateBizType } from "../types";
import Toolkit from "../utils/Toolkit";
import { axios } from "./BaseAPI";
import TextFormat from "../utils/TextFormat";
const getCaptchaAPI = () => axios.defaults.baseURL + "/captcha";
@@ -11,7 +12,7 @@ async function getTemplate(bizType: TemplateBizType, code: string): Promise<stri
}
async function getSetting(key: string, args?: { [key: string]: any }): Promise<string> {
return axios.get(`/setting/${key}?${Toolkit.toURLArgs(args)}`);
return axios.get(`/setting/${key}?${TextFormat.urlArgs(args)}`);
}
async function listSetting(keyMap: Map<string, object | undefined>): Promise<Map<string, string>> {

View File

@@ -1,6 +1,6 @@
import IOSize from "./IOSize";
export default class FormatText {
export default class TextFormat {
public static keyValue(obj: object, assign: string, split: string): string {
let result = "";

View File

@@ -7,7 +7,7 @@ export { default as Prismjs } from "./Prismjs";
export { default as Resizer } from "./Resizer";
export { default as Scroller } from "./Scroller";
export { default as Storage } from "./Storage";
export { default as Format } from "./FormatText";
export { default as Format } from "./TextFormat";
export { default as Time } from "./Time";
export { default as Toolkit } from "./Toolkit";
export { default as IconMapper } from "./IconMapper";