tjsky / pikpak Goto Github PK
View Code? Open in Web Editor NEWThis project forked from xiaokaixuan/pikpak
pikpak web
This project forked from xiaokaixuan/pikpak
pikpak web
Chrome can save aria2 url but Safari can't save when using url http://localhost:16800/jsonrpc , error:
[Warning] [blocked] The page at https://tjsky.github.io/pikpak/#/setting was not allowed to display insecure content from http://localhost:16800/jsonrpc. (setting.6bf411e3.js, line 1)
[Error] Not allowed to request resource
S (setting.6bf411e3.js:1:3175)
c (vendor.64da71ad.js:1004:1427)
Mr (vendor.64da71ad.js:1:46573)
Kt (vendor.64da71ad.js:1:46653)
r (vendor.64da71ad.js:1:53615)
[Error] Fetch API cannot load http://localhost:16800/jsonrpc due to access control checks.
S (setting.6bf411e3.js:1:3175)
c (vendor.64da71ad.js:1004:1427)
Mr (vendor.64da71ad.js:1:46573)
Kt (vendor.64da71ad.js:1:46653)
r (vendor.64da71ad.js:1:53615)
[Error] Error: – TypeError: Load failed
TypeError: Load failed
promiseReactionJob
最初我是想给这个项目写一个dockerfile方便部署
//config.sh
[ $CF_DOMAIN ] && {
[ "$CF_DOMAIN" == "DIRECT" ] && sed -i "/\[/,/]/cexport const proxy = []" src/config/index.ts || \
sed -i "/\[/,/]/cexport const proxy = ['https://$CF_DOMAIN']" src/config/index.ts;
}
[ $BASE_PATH ] || BASE_PATH="/${REPO_NAME}"
[ "$BASE_PATH" != "/pikpak" ] && sed -i "s|/pikpak|$BASE_PATH|g" vite.config.ts
[ $INVITE_CODE ] && sed -i "s|apk/url/225815|apk/url/$INVITE_CODE|g" src/views/login.vue
[ $CF_INVITE ] && sed -i "s/invite.z7.workers.dev/$CF_INVITE/g" src/views/register.vue src/views/sms.vue src/views/testtest.vue
[ $CNAME_DOMAIN ] && echo "$CNAME_DOMAIN" > public/CNAME
//Dockerfile
# 构建应用
FROM node:18 AS builder
# 使用了 ENV 指令来设置默认的环境变量值。
# 如果在运行容器时没有设置这些环境变量,它们将采用这些默认值。
# CF反代的域名(写DIRECT就是不走反代)
ENV CF_DOMAIN=DIRECT
ENV REPO_NAME=/pikpak
# 设置你的专属邀请链接
ENV INVITE_CODE=62619818
# # 这个没看懂是啥 好像是开发者自己某的小福利,may 挣点邀请天数
# ENV CF_INVITE=
# # 如果你设置了CNAME这里写你的域名
ENV CNAME_DOMAIN=pikpak-hqk9.onrender.com
WORKDIR /app
COPY . .
RUN npm install
# 执行配置脚本 主要是懒得改了~~
RUN chmod a+x config.sh
RUN /bin/bash config.sh
RUN npm run build
# 最小化镜像
FROM node:18-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
RUN npm install -g http-server
# 默认端口
EXPOSE 12445
CMD ["http-server", "dist", "-p", "12445"]
上面是我编写的文件,应该是没问题的(成功部署),但测试时候我发现一些问题
后来我在本地试了一下
$env:CF_DOMAIN="DIRECT"
$env:REPO_NAME="/"
sed -i "/\[/,/]/cexport const proxy = []" src/config/index.ts
sed -i "s|/pikpak|$BASE_PATH|g" vite.config.ts
npm run serve
是我写错了配置吗?求帮助
之前可以登录,现在不可以了,登录时会提示「Please add captcha before you register」
pikpak的文件如果不开会员只能小批量小批量保存并且费时,请问各位大大有什么好方法一次性下载吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.