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>
This commit is contained in:
2
backend/node_modules/@alicloud/endpoint-util/ChangeLog.txt
generated
vendored
Normal file
2
backend/node_modules/@alicloud/endpoint-util/ChangeLog.txt
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
2020-04-07 Version: 0.0.1
|
||||
1. Release version 0.0.1
|
||||
29
backend/node_modules/@alicloud/endpoint-util/README.md
generated
vendored
Normal file
29
backend/node_modules/@alicloud/endpoint-util/README.md
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
English | [简体中文](README-CN.md)
|
||||

|
||||
|
||||
## Alibaba Cloud Endpoint Util SDK for TypeScript/Node.js
|
||||
|
||||
## Prerequisite
|
||||
|
||||
Node.js >= 8.x
|
||||
|
||||
## Installation
|
||||
If you use `npm` to manage your dependence, you can use the following command to install it and write into package.json dependences:
|
||||
|
||||
```sh
|
||||
$ npm install @alicloud/endpoint-util -S
|
||||
```
|
||||
|
||||
## Issues
|
||||
[Opening an Issue](https://github.com/aliyun/endpoint-util/issues/new), Issues not conforming to the guidelines may be closed immediately.
|
||||
|
||||
## Changelog
|
||||
Detailed changes for each release are documented in the [release notes](./ChangeLog.txt).
|
||||
|
||||
## References
|
||||
* [Latest Release](https://github.com/aliyun/endpoint-util/tree/master/ts)
|
||||
|
||||
## License
|
||||
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
||||
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
||||
3
backend/node_modules/@alicloud/endpoint-util/dist/client.d.ts
generated
vendored
Normal file
3
backend/node_modules/@alicloud/endpoint-util/dist/client.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export default class Client {
|
||||
static getEndpointRules(product: string, regionId: string, endpointType: string, network: string, suffix: string): string;
|
||||
}
|
||||
32
backend/node_modules/@alicloud/endpoint-util/dist/client.js
generated
vendored
Normal file
32
backend/node_modules/@alicloud/endpoint-util/dist/client.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var Client = /** @class */ (function () {
|
||||
function Client() {
|
||||
}
|
||||
Client.getEndpointRules = function (product, regionId, endpointType, network, suffix) {
|
||||
var result;
|
||||
if (network && network.length && network != "public") {
|
||||
network = "-" + network;
|
||||
}
|
||||
else {
|
||||
network = "";
|
||||
}
|
||||
suffix = suffix || "";
|
||||
if (suffix.length) {
|
||||
suffix = "-" + suffix;
|
||||
}
|
||||
if (endpointType == "regional") {
|
||||
if (!regionId || !regionId.length) {
|
||||
throw new Error("RegionId is empty, please set a valid RegionId");
|
||||
}
|
||||
result = "" + product + suffix + network + "." + regionId + ".aliyuncs.com";
|
||||
}
|
||||
else {
|
||||
result = "" + product + suffix + network + ".aliyuncs.com";
|
||||
}
|
||||
return result;
|
||||
};
|
||||
return Client;
|
||||
}());
|
||||
exports.default = Client;
|
||||
//# sourceMappingURL=client.js.map
|
||||
1
backend/node_modules/@alicloud/endpoint-util/dist/client.js.map
generated
vendored
Normal file
1
backend/node_modules/@alicloud/endpoint-util/dist/client.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;AASA;IAAA;IAwBA,CAAC;IAtBQ,uBAAgB,GAAvB,UAAwB,OAAe,EAAE,QAAgB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc;QAC9G,IAAI,MAAM,CAAC;QACX,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,IAAI,QAAQ,EAAE;YACpD,OAAO,GAAG,GAAG,GAAG,OAAO,CAAC;SACzB;aAAM;YACL,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;QACtB,IAAI,MAAM,CAAC,MAAM,EAAE;YACjB,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC;SACvB;QACD,IAAI,YAAY,IAAI,UAAU,EAAE;YAC9B,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;gBACjC,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;aACnE;YACD,MAAM,GAAG,KAAG,OAAO,GAAG,MAAM,GAAG,OAAO,SAAI,QAAQ,kBAAe,CAAC;SACnE;aAAM;YACL,MAAM,GAAG,KAAG,OAAO,GAAG,MAAM,GAAG,OAAO,kBAAe,CAAC;SACvD;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAEH,aAAC;AAAD,CAAC,AAxBD,IAwBC"}
|
||||
30
backend/node_modules/@alicloud/endpoint-util/package.json
generated
vendored
Normal file
30
backend/node_modules/@alicloud/endpoint-util/package.json
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "@alicloud/endpoint-util",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"main": "dist/client.js",
|
||||
"scripts": {
|
||||
"test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts",
|
||||
"test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test",
|
||||
"ci": "npm run test-cov && codecov",
|
||||
"build": "tsc",
|
||||
"prepublishOnly": "tsc"
|
||||
},
|
||||
"author": "Jackson Tian",
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^7.0.1",
|
||||
"@types/node": "^12.12.26",
|
||||
"mocha": "^7.0.1",
|
||||
"ts-node": "^8.6.2",
|
||||
"typescript": "^3.7.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@alicloud/tea-typescript": "^1.5.1",
|
||||
"kitx": "^2.0.0"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src"
|
||||
]
|
||||
}
|
||||
34
backend/node_modules/@alicloud/endpoint-util/src/client.ts
generated
vendored
Normal file
34
backend/node_modules/@alicloud/endpoint-util/src/client.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
// This file is auto-generated, don't edit it
|
||||
/**
|
||||
* Get endpoint
|
||||
* @return string
|
||||
*/
|
||||
import { Readable } from 'stream';
|
||||
import * as $tea from '@alicloud/tea-typescript';
|
||||
|
||||
|
||||
export default class Client {
|
||||
|
||||
static getEndpointRules(product: string, regionId: string, endpointType: string, network: string, suffix: string): string {
|
||||
let result;
|
||||
if (network && network.length && network != "public") {
|
||||
network = "-" + network;
|
||||
} else {
|
||||
network = "";
|
||||
}
|
||||
suffix = suffix || "";
|
||||
if (suffix.length) {
|
||||
suffix = "-" + suffix;
|
||||
}
|
||||
if (endpointType == "regional") {
|
||||
if (!regionId || !regionId.length) {
|
||||
throw new Error("RegionId is empty, please set a valid RegionId");
|
||||
}
|
||||
result = `${product}${suffix}${network}.${regionId}.aliyuncs.com`;
|
||||
} else {
|
||||
result = `${product}${suffix}${network}.aliyuncs.com`;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user