Skip to content

Commit

Permalink
update React-Puppeteer develop
Browse files Browse the repository at this point in the history
  • Loading branch information
snowtafir committed Aug 11, 2024
1 parent 620860e commit 6bb0f4c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
5 changes: 5 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"exec": "node --no-warnings=ExperimentalWarning --loader ts-node/esm routes.server.ts",
"ext": "js,json,ts,jsx,tsx",
"watch": ["./**/*"]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "module",
"scripts": {
"build": "rollup --config ./rollup.config.js",
"image": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ./server.ts"
"image": "npx nodemon"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -51,6 +51,7 @@
"chokidar": "^3.6.0",
"jsdom": "^24.1.1",
"md5": "^2.3.0",
"nodemon":"3.1.4",
"node-fetch": "^3.3.2",
"puppeteer": "^23.0.2",
"qrcode": "^1.5.4",
Expand Down
25 changes: 8 additions & 17 deletions routes.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const props = {
category: "文章动态",
created: `2024-06-29 12:00:00`,
pics: [
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
{ url: 'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg' },
{ url: 'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg' },
{ url: 'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg' },
],
/* orig: {
appName: "bilibili",
Expand All @@ -37,20 +37,11 @@ const props = {
urlImgData: await (QRCode.toDataURL("https://m.bilibili.com/opus/949167878184108051")),
category: "文章动态",
created: `2024-06-29 12:00:00`,
pics: ['http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg',
pics: [
{url:'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg'},
{url:'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg'},
{url:'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg'},
{url:'http://i0.hdslb.com/bfs/archive/e74c63cfec570974157be8d1f5e3582b355ad991.jpg'},
]
} */
}
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"models/**/*.ts",
"utils/*",
"index.ts",
"routes.server.ts",
"routes.config.tsx"
],
"exclude": ["node_modules", "yunzai", "../../../lib/plugins/plugin.js"]
}

0 comments on commit 6bb0f4c

Please sign in to comment.