MartialBE / one-hub

OpenAI 接口管理 & 分发系统,改自songquanpeng/one-api。支持更多模型,加入统计页面,完善非openai模型的函数调用。
https://one-api-martialbe.vercel.app/
Apache License 2.0
1.01k stars 201 forks source link

✨ feat: 添加新手引导 #260

Closed kalicyh closed 3 months ago

kalicyh commented 3 months ago

close #issue_number

我已确认该 PR 已自测通过,相关截图如下: 9f57402cc0c3c8368212cf866cef7232

MartialBE commented 3 months ago

这个包是否有问题? 测试和编译是疯狂报错,看错误信息好像是想要引用intro.js包的文件,使用了相对路径导致报错。

WARNING in ./node_modules/intro.js/intro.module.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/one-api/web/src/util/checkRight.ts' file: Error: ENOENT: no such file or directory, open '/Users/one-api/web/src/util/checkRight.ts'

WARNING in ./node_modules/intro.js/intro.module.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/one-api/web/src/util/cloneObject.ts' file: Error: ENOENT: no such file or directory, open '/Users/one-api/web/src/util/cloneObject.ts'

WARNING in ./node_modules/intro.js/intro.module.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/one-api/web/src/util/cookie.ts' file: Error: ENOENT: no such file or directory, open '/Users/one-api/web/src/util/cookie.ts'

WARNING in ./node_modules/intro.js/intro.module.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/one-api/web/src/util/createElement.ts' file: Error: ENOENT: no such file or directory, open '/Users/one-api/web/src/util/createElement.ts'

WARNING in ./node_modules/intro.js/intro.module.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/one-api/web/src/util/debounce.ts' file: Error: ENOENT: no such file or directory, open '/Users/one-api/web/src/util/debounce.ts'
kalicyh commented 3 months ago

先npm install一下,我这边删掉全部文件拉取后部署没问题,win11