Compare commits

..

1 Commits

Author SHA1 Message Date
Timi
73496f7768 update 0.0.4 2026-04-10 12:47:50 +08:00
4 changed files with 5 additions and 4 deletions

View File

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

View File

@@ -1,6 +1,7 @@
import { TemplateBizType } from "../types"; import { TemplateBizType } from "../types";
import Toolkit from "../utils/Toolkit"; import Toolkit from "../utils/Toolkit";
import { axios } from "./BaseAPI"; import { axios } from "./BaseAPI";
import TextFormat from "../utils/TextFormat";
const getCaptchaAPI = () => axios.defaults.baseURL + "/captcha"; 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> { 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>> { async function listSetting(keyMap: Map<string, object | undefined>): Promise<Map<string, string>> {

View File

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

View File

@@ -7,7 +7,7 @@ export { default as Prismjs } from "./Prismjs";
export { default as Resizer } from "./Resizer"; export { default as Resizer } from "./Resizer";
export { default as Scroller } from "./Scroller"; export { default as Scroller } from "./Scroller";
export { default as Storage } from "./Storage"; 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 Time } from "./Time";
export { default as Toolkit } from "./Toolkit"; export { default as Toolkit } from "./Toolkit";
export { default as IconMapper } from "./IconMapper"; export { default as IconMapper } from "./IconMapper";