Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
livehigh committed May 24, 2024
2 parents 697391a + 90be9c1 commit 7bba1a9
Show file tree
Hide file tree
Showing 13 changed files with 1,043 additions and 91 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ npm i cos-js-sdk-v5 --save
1. git clone cos-js-sdk-v5 至本地
2. cd cos-js-sdk-v5 进入根目录后执行:npm install
3. 修改 server 文件夹中 sts.js 或 sts.php 中的 secretId、secretKey、bucket、region 配置;注意allowPrefix和allowActions需要设置适当的权限
4. npm run server # 用 node 启动服务
5. 浏览器输入 http://127.0.0.1:3000/ 即可进行 demo 演示
4. 修改 demo/index.html 中config的Bucket、Region 参数
5. npm run server # 用 node 启动服务
6. 浏览器输入 http://127.0.0.1:3000/ 即可进行 demo 演示
```

## 说明文档
Expand Down
8 changes: 8 additions & 0 deletions demo/CIDemos/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as docPreview from './docPreview.js';
import * as audit from './audit.js';
import * as fileProcess from './fileProcess.js';
import * as asr from './asr.js';
import * as meta from './meta.js';

// 函数集合
const moduleFn = {};
Expand Down Expand Up @@ -48,6 +49,10 @@ const contentMap = {
title: '智能语音',
functions: [],
},
// meta: {
// title: '元数据',
// functions: [],
// },
};

function setContent(fnName, module, moduleName) {
Expand Down Expand Up @@ -82,6 +87,9 @@ for (let fnName in fileProcess) {
for (let fnName in asr) {
setContent(fnName, asr, 'asr');
}
// for (let fnName in meta) {
// setContent(fnName, meta, 'meta');
// }

(function () {
const container = document.querySelector('.ci-main');
Expand Down
Loading

0 comments on commit 7bba1a9

Please sign in to comment.