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

174 lines
5.5 KiB
JavaScript

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InterceptorContextResponse = exports.InterceptorContextConfiguration = exports.InterceptorContextRequest = exports.AttributeMap = exports.InterceptorContext = void 0;
// This file is auto-generated, don't edit it
const credentials_1 = __importDefault(require("@alicloud/credentials"));
const $tea = __importStar(require("@alicloud/tea-typescript"));
class InterceptorContext extends $tea.Model {
constructor(map) {
super(map);
}
static names() {
return {
request: 'request',
configuration: 'configuration',
response: 'response',
};
}
static types() {
return {
request: InterceptorContextRequest,
configuration: InterceptorContextConfiguration,
response: InterceptorContextResponse,
};
}
}
exports.InterceptorContext = InterceptorContext;
class AttributeMap extends $tea.Model {
constructor(map) {
super(map);
}
static names() {
return {
attributes: 'attributes',
key: 'key',
};
}
static types() {
return {
attributes: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
key: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
};
}
}
exports.AttributeMap = AttributeMap;
class InterceptorContextRequest extends $tea.Model {
constructor(map) {
super(map);
}
static names() {
return {
headers: 'headers',
query: 'query',
body: 'body',
stream: 'stream',
hostMap: 'hostMap',
pathname: 'pathname',
productId: 'productId',
action: 'action',
version: 'version',
protocol: 'protocol',
method: 'method',
authType: 'authType',
bodyType: 'bodyType',
reqBodyType: 'reqBodyType',
style: 'style',
credential: 'credential',
signatureVersion: 'signatureVersion',
signatureAlgorithm: 'signatureAlgorithm',
userAgent: 'userAgent',
};
}
static types() {
return {
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
query: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
body: 'any',
stream: 'Readable',
hostMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
pathname: 'string',
productId: 'string',
action: 'string',
version: 'string',
protocol: 'string',
method: 'string',
authType: 'string',
bodyType: 'string',
reqBodyType: 'string',
style: 'string',
credential: credentials_1.default,
signatureVersion: 'string',
signatureAlgorithm: 'string',
userAgent: 'string',
};
}
}
exports.InterceptorContextRequest = InterceptorContextRequest;
class InterceptorContextConfiguration extends $tea.Model {
constructor(map) {
super(map);
}
static names() {
return {
regionId: 'regionId',
endpoint: 'endpoint',
endpointRule: 'endpointRule',
endpointMap: 'endpointMap',
endpointType: 'endpointType',
network: 'network',
suffix: 'suffix',
};
}
static types() {
return {
regionId: 'string',
endpoint: 'string',
endpointRule: 'string',
endpointMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
endpointType: 'string',
network: 'string',
suffix: 'string',
};
}
}
exports.InterceptorContextConfiguration = InterceptorContextConfiguration;
class InterceptorContextResponse extends $tea.Model {
constructor(map) {
super(map);
}
static names() {
return {
statusCode: 'statusCode',
headers: 'headers',
body: 'body',
deserializedBody: 'deserializedBody',
};
}
static types() {
return {
statusCode: 'number',
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
body: 'Readable',
deserializedBody: 'any',
};
}
}
exports.InterceptorContextResponse = InterceptorContextResponse;
class Client {
constructor() {
}
}
exports.default = Client;
//# sourceMappingURL=client.js.map