Files
237899745 b135987fe8 feat: 添加多项功能和修复
功能新增:
- OSS 存储使用情况显示(文件页面)
- OSS 当日流量统计(阿里云云监控API)
- 分享页面路由修复(/s/xxx 格式支持)

Bug修复:
- 修复分享页面资源路径(相对路径改绝对路径)
- 修复分享码获取逻辑(支持路径格式)
- 修复OSS配额undefined显示问题
- 修复登录流程OSS配置检查
- 修复文件数为null时的显示问题

依赖更新:
- 添加 @alicloud/cms20190101 云监控SDK
- 添加 @alicloud/openapi-client

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 21:04:22 +08:00

47 lines
1.2 KiB
TypeScript

/// <reference types="node" />
export default class Client {
/**
* Encode the URL
* @param url string
* @return encoded string
*/
static urlEncode(url: string): string;
/**
* Special encoding for url params.
* @param params string
* @return encoded string
*/
static percentEncode(raw: string): string;
/**
* Encode the partial path of url.
* @param path string
* @return encoded string
*/
static pathEncode(path: string): string;
/**
* Hex encode for byte array.
* @param raw byte array
* @return encoded string
*/
static hexEncode(raw: Buffer): string;
/**
* Hash the raw data with signatureAlgorithm.
* @param raw hashing data
* @param signatureAlgorithm the autograph method
* @return hashed bytes
*/
static hash(raw: Buffer, signatureAlgorithm: string): Buffer;
/**
* Base64 encoder for byte array.
* @param raw byte array
* @return encoded string
*/
static base64EncodeToString(raw: Buffer): string;
/**
* Base64 dncoder for string.
* @param src string
* @return dncoded byte array
*/
static base64Decode(src: string): Buffer;
}