diff --git a/.gitattributes b/.gitattributes index ec5cc2e047f89ca8252fb5d2f675cd56f5c2bf64..fbf28025e25d25fa87f5d3cd265ff05a2fc02516 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,3 +8,8 @@ dengtaishan-src/public/fonts/serif-900.woff2 filter=lfs diff=lfs merge=lfs -text dengtaishan-src/public/fonts/kai.woff2 filter=lfs diff=lfs merge=lfs -text dengtaishan-src/public/fonts/serif-500.woff2 filter=lfs diff=lfs merge=lfs -text dengtaishan-src/public/fonts/xing.woff2 filter=lfs diff=lfs merge=lfs -text +dengtaishan/fonts/cao.woff2 filter=lfs diff=lfs merge=lfs -text +dengtaishan/fonts/serif-900.woff2 filter=lfs diff=lfs merge=lfs -text +dengtaishan/fonts/kai.woff2 filter=lfs diff=lfs merge=lfs -text +dengtaishan/fonts/serif-500.woff2 filter=lfs diff=lfs merge=lfs -text +dengtaishan/fonts/xing.woff2 filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md index 49a05e52a1307140e9470e7efb93407359f83377..5b4f30c69b11d146a529cd0798e99dcde5d09621 100644 --- a/README.md +++ b/README.md @@ -60,11 +60,11 @@ pinned: false - [x] 1. 编写本计划(README)并推送 - [x] 2. 撰写旁白脚本,生成逐句旁白音频与时长清单;字体子集化 → 推送 -- [ ] 3. 渲染引擎:时间轴、宣纸/水墨/山峦/云海/粒子等基础图层、字幕系统 → 推送 -- [ ] 4. 九个篇章的场景动画(横屏 + 竖屏) → 推送 -- [ ] 5. 程序化配乐与音效、混音与闪避、播放器(播放/暂停/拖动/章节跳转/全屏) → 推送 -- [ ] 6. MP4 本地导出(分辨率 / 帧率 / 背景音乐选项) → 推送 -- [ ] 7. 发布文案面板 + 多比例多款封面生成器 → 推送 +- [x] 3. 渲染引擎:时间轴、宣纸/水墨/山峦/云海/粒子等基础图层、字幕系统 → 推送 +- [x] 4. 九个篇章的场景动画(横屏 + 竖屏) → 推送 +- [x] 5. 程序化配乐与音效、混音与闪避、播放器(播放/暂停/拖动/章节跳转/全屏) → 推送 +- [x] 6. MP4 本地导出(分辨率 / 帧率 / 背景音乐选项) → 推送 +- [x] 7. 发布文案面板 + 多比例多款封面生成器 → 推送 - [ ] 8. 全面检查(构建、播放、导出、竖屏)、修正细节,最终推送 ## 五、浏览器要求 diff --git a/dengtaishan-src/index.html b/dengtaishan-src/index.html index 8a3cc6a2a58863802426a9b21ef8102f5963857b..6ec73a81523902b4c30e9169beea84abba4041b2 100644 --- a/dengtaishan-src/index.html +++ b/dengtaishan-src/index.html @@ -4,7 +4,8 @@ - App + 登泰山记 · 五个镜头 — 课文精讲视频 + diff --git a/dengtaishan-src/public/fonts/cao.woff2 b/dengtaishan-src/public/fonts/cao.woff2 index e319c68c85444706ada2cc2b9f2e73ba978b51ab..726840c6e46ab2d5f39a118c91673b7b6057eeb9 100644 --- a/dengtaishan-src/public/fonts/cao.woff2 +++ b/dengtaishan-src/public/fonts/cao.woff2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b9c738b21e85cb8e1d446616dc397b6c5022151561fd36858d36ce86efc94bdb -size 157584 +oid sha256:c5f095603d55d8915cec5b2b7245007d79869e0aed2a0d9e0cf472fd432ac0bf +size 286124 diff --git a/dengtaishan-src/public/fonts/kai.woff2 b/dengtaishan-src/public/fonts/kai.woff2 index 020c0c541d86627001ccff814b855bfea0573f67..5f620f78cbeba75cecb044858b057194dd8c196b 100644 --- a/dengtaishan-src/public/fonts/kai.woff2 +++ b/dengtaishan-src/public/fonts/kai.woff2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8d5b00f1017f8a2cc3bce26f41cae84b22d19b976b91c2eeec0168960f9c6eb5 -size 210396 +oid sha256:18815e6c8d04056dd0e6aa0eb9118ba4554c784bb0ab8591573be9ba0de0d51c +size 388432 diff --git a/dengtaishan-src/public/fonts/serif-500.woff2 b/dengtaishan-src/public/fonts/serif-500.woff2 index b841f06796c11849e344799f4da55a9abf67df38..0897fe9499a3d9ab3a552c554b751ec83946c280 100644 --- a/dengtaishan-src/public/fonts/serif-500.woff2 +++ b/dengtaishan-src/public/fonts/serif-500.woff2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a98e26a44e05f22c40bf6b6fc3fecb7421d43fc3721c8e95875f9199b2d257ce -size 129180 +oid sha256:7005a509e538bc26ddce2dafe2e954c7b44ae5462eba923e2dc8979a493b8091 +size 205856 diff --git a/dengtaishan-src/public/fonts/serif-900.woff2 b/dengtaishan-src/public/fonts/serif-900.woff2 index ce3d68b55a9c23d62326839323c54d94f90363ac..4b3b773e640b4a38340e493c49707e84c832ec5d 100644 --- a/dengtaishan-src/public/fonts/serif-900.woff2 +++ b/dengtaishan-src/public/fonts/serif-900.woff2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aefb1a52f29c12d8c410953d688c62b02b0daa53e0129f6dfbc23b8a6bfcc086 -size 129788 +oid sha256:854198438c107e72cf532a80bf11fecc3204bba4978d3fc0f50af126773cd450 +size 205200 diff --git a/dengtaishan-src/public/fonts/xing.woff2 b/dengtaishan-src/public/fonts/xing.woff2 index bc7f6dc73487e43a384fea0a3136c464e13a2a0e..4d178ff789832f5e93c69e06a750a50c9e6bfeda 100644 --- a/dengtaishan-src/public/fonts/xing.woff2 +++ b/dengtaishan-src/public/fonts/xing.woff2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:62ca6088670065e52a9d48836b4dde3d3404e5a7a2d22fabbce3f8e64628b6f5 -size 154916 +oid sha256:12aa8e1d088fc00def54513213a29e75e73152cf581c5516829e23851d3f5811 +size 283124 diff --git a/dengtaishan-src/public/voice/a1.mp3 b/dengtaishan-src/public/voice/a1.mp3 index a3674bbb2b312120dc4ff474e52dba32e7320cbb..0763fcf1398aaf16829334f95e68ec112ed7bb79 100644 Binary files a/dengtaishan-src/public/voice/a1.mp3 and b/dengtaishan-src/public/voice/a1.mp3 differ diff --git a/dengtaishan-src/public/voice/a2.mp3 b/dengtaishan-src/public/voice/a2.mp3 index b30bbb995dffc790cd0f899a8d69313a8dfa5e8e..fad206b39817b306c41bb47bc8ce24a8a27c8d1d 100644 Binary files a/dengtaishan-src/public/voice/a2.mp3 and b/dengtaishan-src/public/voice/a2.mp3 differ diff --git a/dengtaishan-src/public/voice/a3.mp3 b/dengtaishan-src/public/voice/a3.mp3 index 628e7e572a220eed37677aab623a7a21c72a8332..22e8e8743ae5e26c5273322220582662b2ef8733 100644 Binary files a/dengtaishan-src/public/voice/a3.mp3 and b/dengtaishan-src/public/voice/a3.mp3 differ diff --git a/dengtaishan-src/public/voice/a4.mp3 b/dengtaishan-src/public/voice/a4.mp3 index 0707a49bd4e0c36f05ca5db49e3a7ba169a4c454..28ed1b0974163b9a771010f54809b4eafd5aa720 100644 Binary files a/dengtaishan-src/public/voice/a4.mp3 and b/dengtaishan-src/public/voice/a4.mp3 differ diff --git a/dengtaishan-src/public/voice/a5.mp3 b/dengtaishan-src/public/voice/a5.mp3 index 2f5ccf26fe3477a6b3ae226f79a84def5ebb1e09..bbff4dfd67ab74c3927105c7b18319812e46b71a 100644 Binary files a/dengtaishan-src/public/voice/a5.mp3 and b/dengtaishan-src/public/voice/a5.mp3 differ diff --git a/dengtaishan-src/public/voice/a6.mp3 b/dengtaishan-src/public/voice/a6.mp3 index 93163f80d9533d8404b7910362e88cd1b9ded98e..f7d1de4b1080a91ba9e6d45e76eaa1914ad5e344 100644 Binary files a/dengtaishan-src/public/voice/a6.mp3 and b/dengtaishan-src/public/voice/a6.mp3 differ diff --git a/dengtaishan-src/public/voice/a7.mp3 b/dengtaishan-src/public/voice/a7.mp3 index 850949e5b61c935296c6c273189b810d73301c0e..fbce1bbb8e39c3a1f50f37e4f69d1c37456245c9 100644 Binary files a/dengtaishan-src/public/voice/a7.mp3 and b/dengtaishan-src/public/voice/a7.mp3 differ diff --git a/dengtaishan-src/public/voice/a8.mp3 b/dengtaishan-src/public/voice/a8.mp3 index d81a7b9ea85c18d41f985cafc15d959a9881651e..8ad4460c9da77cde641daf637bc3158533e3c6cc 100644 Binary files a/dengtaishan-src/public/voice/a8.mp3 and b/dengtaishan-src/public/voice/a8.mp3 differ diff --git a/dengtaishan-src/public/voice/a9.mp3 b/dengtaishan-src/public/voice/a9.mp3 index e05ff3dbd36296d3ceb7eea9a89849c42c79acdf..f0188b2a68671ecf603a62bbd907a833de84e6bb 100644 Binary files a/dengtaishan-src/public/voice/a9.mp3 and b/dengtaishan-src/public/voice/a9.mp3 differ diff --git a/dengtaishan-src/public/voice/b1.mp3 b/dengtaishan-src/public/voice/b1.mp3 index d70a1bf7d59d728d1ee192436a913ce9a03c749c..680ebf7494a87796576be218a6faa62d957effc2 100644 Binary files a/dengtaishan-src/public/voice/b1.mp3 and b/dengtaishan-src/public/voice/b1.mp3 differ diff --git a/dengtaishan-src/public/voice/b10.mp3 b/dengtaishan-src/public/voice/b10.mp3 index a8ca1935c13742e7c997bf334d1aae0e20c9a87f..7ebfe649e723cd42f83f92b514893bf89f847c90 100644 Binary files a/dengtaishan-src/public/voice/b10.mp3 and b/dengtaishan-src/public/voice/b10.mp3 differ diff --git a/dengtaishan-src/public/voice/b11.mp3 b/dengtaishan-src/public/voice/b11.mp3 index 506d12fc8554f5f7a22f1a2d5ce76bf2fb3aa8dd..c9a28e679f342214b5f947e5655c7ba9c243d8da 100644 Binary files a/dengtaishan-src/public/voice/b11.mp3 and b/dengtaishan-src/public/voice/b11.mp3 differ diff --git a/dengtaishan-src/public/voice/b12.mp3 b/dengtaishan-src/public/voice/b12.mp3 index e4367b2759cb09530390c3a449b062062718b02e..d1e489b2b175ab84f58f9add785381d4915f4fc3 100644 Binary files a/dengtaishan-src/public/voice/b12.mp3 and b/dengtaishan-src/public/voice/b12.mp3 differ diff --git a/dengtaishan-src/public/voice/b13.mp3 b/dengtaishan-src/public/voice/b13.mp3 index 6b5c09f345fa18b41f2daf71d5401b1bd60fd145..9c6fd39c7e5e7f926755492823cc500f4cfa9072 100644 Binary files a/dengtaishan-src/public/voice/b13.mp3 and b/dengtaishan-src/public/voice/b13.mp3 differ diff --git a/dengtaishan-src/public/voice/b14.mp3 b/dengtaishan-src/public/voice/b14.mp3 index 8d1eb119defa6bbdad63308ae4fb66e60d1e508f..4f166dc72c0fd00cca0dd08cde7caea483a17941 100644 Binary files a/dengtaishan-src/public/voice/b14.mp3 and b/dengtaishan-src/public/voice/b14.mp3 differ diff --git a/dengtaishan-src/public/voice/b15.mp3 b/dengtaishan-src/public/voice/b15.mp3 index 6674c11cc16f1b5b3fa998af6324ab28fcd58f46..6611756d1b5dea6775fbf00cdf3c2d51f7bfd38a 100644 Binary files a/dengtaishan-src/public/voice/b15.mp3 and b/dengtaishan-src/public/voice/b15.mp3 differ diff --git a/dengtaishan-src/public/voice/b16.mp3 b/dengtaishan-src/public/voice/b16.mp3 index 0b8cf7d501b189a25eebc31e5a6ed30296d64fea..a554a41ecb4ce5ef318ff6fb739613d75ea7bdf2 100644 Binary files a/dengtaishan-src/public/voice/b16.mp3 and b/dengtaishan-src/public/voice/b16.mp3 differ diff --git a/dengtaishan-src/public/voice/b2.mp3 b/dengtaishan-src/public/voice/b2.mp3 index 19d2a54b3511707b540ee34945f90fe52cb9620e..5461150e99b9dd08f9ec85f0fb16e33f54ccbd4b 100644 Binary files a/dengtaishan-src/public/voice/b2.mp3 and b/dengtaishan-src/public/voice/b2.mp3 differ diff --git a/dengtaishan-src/public/voice/b3.mp3 b/dengtaishan-src/public/voice/b3.mp3 index c7b5f8b85ebe28e2b558d195cc61af628786de35..e2b57469952922fb0ecb6eb765ec6ad404df03fa 100644 Binary files a/dengtaishan-src/public/voice/b3.mp3 and b/dengtaishan-src/public/voice/b3.mp3 differ diff --git a/dengtaishan-src/public/voice/b4.mp3 b/dengtaishan-src/public/voice/b4.mp3 index e9e768286a287434c247811491ab2a48e0568ef9..fabf1f2a18cf75f8bb5270be0ee6e70d040d4f69 100644 Binary files a/dengtaishan-src/public/voice/b4.mp3 and b/dengtaishan-src/public/voice/b4.mp3 differ diff --git a/dengtaishan-src/public/voice/b5.mp3 b/dengtaishan-src/public/voice/b5.mp3 index 26dd8332a5af81e940ad1ec976db1406f2e604e0..5b678a533f17bb1dae68deda1d253ba31c7cd991 100644 Binary files a/dengtaishan-src/public/voice/b5.mp3 and b/dengtaishan-src/public/voice/b5.mp3 differ diff --git a/dengtaishan-src/public/voice/b6.mp3 b/dengtaishan-src/public/voice/b6.mp3 index 644e7dbe4c3e77f0947159ef9993362800688b94..399bc604c0f0ecc6daeda30f25c64c799a802496 100644 Binary files a/dengtaishan-src/public/voice/b6.mp3 and b/dengtaishan-src/public/voice/b6.mp3 differ diff --git a/dengtaishan-src/public/voice/b7.mp3 b/dengtaishan-src/public/voice/b7.mp3 index 57981e39bb764e9004d5cff66da283c3d893638b..5f95a3fa14f855f157bb9aeffbbf941679f5a433 100644 Binary files a/dengtaishan-src/public/voice/b7.mp3 and b/dengtaishan-src/public/voice/b7.mp3 differ diff --git a/dengtaishan-src/public/voice/b8.mp3 b/dengtaishan-src/public/voice/b8.mp3 index 659bff1fd6559c8e2f6c97d644206c6dd75eed35..18f5dec6c096cd199a3bfd936a6402e04259f942 100644 Binary files a/dengtaishan-src/public/voice/b8.mp3 and b/dengtaishan-src/public/voice/b8.mp3 differ diff --git a/dengtaishan-src/public/voice/b9.mp3 b/dengtaishan-src/public/voice/b9.mp3 index d7a43d597d8dbc57a671bcee2b12e36bc3b7b27a..d9cd8f510033f0755133e94d9c47672c41e5aac5 100644 Binary files a/dengtaishan-src/public/voice/b9.mp3 and b/dengtaishan-src/public/voice/b9.mp3 differ diff --git a/dengtaishan-src/public/voice/c1.mp3 b/dengtaishan-src/public/voice/c1.mp3 index 0feada0e01be186b61ceadee70226e7e93c99817..bbd93390ad83507ad86532c845f9433043b871dc 100644 Binary files a/dengtaishan-src/public/voice/c1.mp3 and b/dengtaishan-src/public/voice/c1.mp3 differ diff --git a/dengtaishan-src/public/voice/c10.mp3 b/dengtaishan-src/public/voice/c10.mp3 index e772d493721e55c57bbc3e1d34dc35eea10a7ce3..d7f033dcadd498a964db46bf0c1d8cbdcabdf7d5 100644 Binary files a/dengtaishan-src/public/voice/c10.mp3 and b/dengtaishan-src/public/voice/c10.mp3 differ diff --git a/dengtaishan-src/public/voice/c11.mp3 b/dengtaishan-src/public/voice/c11.mp3 index 5626f299bc5521f43bc55053ab1d0cfab5311ef4..d24dded508ee913b665409a187d15df6669270c7 100644 Binary files a/dengtaishan-src/public/voice/c11.mp3 and b/dengtaishan-src/public/voice/c11.mp3 differ diff --git a/dengtaishan-src/public/voice/c12.mp3 b/dengtaishan-src/public/voice/c12.mp3 index fb4713c831da01afd1766b8d69d8597ab161e2a5..786e61546c26af13c2ed905d25ea84da9cf7cc62 100644 Binary files a/dengtaishan-src/public/voice/c12.mp3 and b/dengtaishan-src/public/voice/c12.mp3 differ diff --git a/dengtaishan-src/public/voice/c13.mp3 b/dengtaishan-src/public/voice/c13.mp3 index cb6bdaac9e2f9f0950250af2e392daea2df21c0a..a50ebe03cf9a2e953e12cb2d80d57246fecaf411 100644 Binary files a/dengtaishan-src/public/voice/c13.mp3 and b/dengtaishan-src/public/voice/c13.mp3 differ diff --git a/dengtaishan-src/public/voice/c14.mp3 b/dengtaishan-src/public/voice/c14.mp3 index 428c07de555ea567e2686d7d61e3ca6983aacb3a..a3650113bff35eef00ec74d6f624f5e59fec3302 100644 Binary files a/dengtaishan-src/public/voice/c14.mp3 and b/dengtaishan-src/public/voice/c14.mp3 differ diff --git a/dengtaishan-src/public/voice/c15.mp3 b/dengtaishan-src/public/voice/c15.mp3 index 49430ec1ffc94540a91703e03729bd8a9f9e64ba..fd32c01fb5aa6832c16cde4f3ae417dc42060315 100644 Binary files a/dengtaishan-src/public/voice/c15.mp3 and b/dengtaishan-src/public/voice/c15.mp3 differ diff --git a/dengtaishan-src/public/voice/c16.mp3 b/dengtaishan-src/public/voice/c16.mp3 index a28d799dd759495d003df75b6c5606101cd7b872..593eec27aa457aad229e1a0218dcef0095c67eb4 100644 Binary files a/dengtaishan-src/public/voice/c16.mp3 and b/dengtaishan-src/public/voice/c16.mp3 differ diff --git a/dengtaishan-src/public/voice/c17.mp3 b/dengtaishan-src/public/voice/c17.mp3 index 55115b2f893fd0c73c5c74b495be48f3b096855a..ac39f659b3eb5b2342a87854826cc4c72daba28b 100644 Binary files a/dengtaishan-src/public/voice/c17.mp3 and b/dengtaishan-src/public/voice/c17.mp3 differ diff --git a/dengtaishan-src/public/voice/c18.mp3 b/dengtaishan-src/public/voice/c18.mp3 index f60437f2168cfbb919db2971910321d75e8e2731..9d54e3fdc39418c8fb0bdcf5443cc90e9b58bae7 100644 Binary files a/dengtaishan-src/public/voice/c18.mp3 and b/dengtaishan-src/public/voice/c18.mp3 differ diff --git a/dengtaishan-src/public/voice/c19.mp3 b/dengtaishan-src/public/voice/c19.mp3 index ade2a26cc16c02409f2e097b2a5fa6a240e5947f..8ee39622db2965d9181f0fbf09c370f6a544b0f6 100644 Binary files a/dengtaishan-src/public/voice/c19.mp3 and b/dengtaishan-src/public/voice/c19.mp3 differ diff --git a/dengtaishan-src/public/voice/c2.mp3 b/dengtaishan-src/public/voice/c2.mp3 index 4aa71fedf3de4659254d1d714081fa1b737b3c76..dab60199dcbe336ec5c9092f52642f916ef0fc86 100644 Binary files a/dengtaishan-src/public/voice/c2.mp3 and b/dengtaishan-src/public/voice/c2.mp3 differ diff --git a/dengtaishan-src/public/voice/c20.mp3 b/dengtaishan-src/public/voice/c20.mp3 index 896251df01f379496075615b70a2dd0055e8d721..7e24083e75763958447f318937a0c33ecb0b0d81 100644 Binary files a/dengtaishan-src/public/voice/c20.mp3 and b/dengtaishan-src/public/voice/c20.mp3 differ diff --git a/dengtaishan-src/public/voice/c21.mp3 b/dengtaishan-src/public/voice/c21.mp3 index e4a652847de667433b6501e9835517fcd5c23dfd..a3e40fb09c6bd34c60517b1ec17f9f3a62f8d659 100644 Binary files a/dengtaishan-src/public/voice/c21.mp3 and b/dengtaishan-src/public/voice/c21.mp3 differ diff --git a/dengtaishan-src/public/voice/c22.mp3 b/dengtaishan-src/public/voice/c22.mp3 index 4e6b5e6056457b9361e8d062b558c71193ea2968..4d421442214bf947b9638b8261b90366c96eaad6 100644 Binary files a/dengtaishan-src/public/voice/c22.mp3 and b/dengtaishan-src/public/voice/c22.mp3 differ diff --git a/dengtaishan-src/public/voice/c3.mp3 b/dengtaishan-src/public/voice/c3.mp3 index 16cf20426de8630135521f8e09e8fe52fd19e23d..3ef74835393f016560d67d8d4d139ce427b1571c 100644 Binary files a/dengtaishan-src/public/voice/c3.mp3 and b/dengtaishan-src/public/voice/c3.mp3 differ diff --git a/dengtaishan-src/public/voice/c4.mp3 b/dengtaishan-src/public/voice/c4.mp3 index ac3ca5db9f521aa983ebeef89fb5772f48d883c4..4cedf9b417013eb1c8021335103f8b1984ea55c4 100644 Binary files a/dengtaishan-src/public/voice/c4.mp3 and b/dengtaishan-src/public/voice/c4.mp3 differ diff --git a/dengtaishan-src/public/voice/c5.mp3 b/dengtaishan-src/public/voice/c5.mp3 index 30824305122f46422e51d7104c08e331b4f2a89e..dfc1c7ce649bf9ed5f421ca52411afe7d854f787 100644 Binary files a/dengtaishan-src/public/voice/c5.mp3 and b/dengtaishan-src/public/voice/c5.mp3 differ diff --git a/dengtaishan-src/public/voice/c6.mp3 b/dengtaishan-src/public/voice/c6.mp3 index 07f9029a7c073d4d096521036a87b20cfd521550..522cfa8c55d22fac9067d040e7a4941389fb668b 100644 Binary files a/dengtaishan-src/public/voice/c6.mp3 and b/dengtaishan-src/public/voice/c6.mp3 differ diff --git a/dengtaishan-src/public/voice/c7.mp3 b/dengtaishan-src/public/voice/c7.mp3 index 7b31b7847a1217d8371277dc69f00fe0f1b743d9..efd76df60e4dde3377a6dd5a6e6ca2f24103b0ab 100644 Binary files a/dengtaishan-src/public/voice/c7.mp3 and b/dengtaishan-src/public/voice/c7.mp3 differ diff --git a/dengtaishan-src/public/voice/c8.mp3 b/dengtaishan-src/public/voice/c8.mp3 index ade5fd736214c4c9d22157458a379c9aa39222d7..4737deb38a8835d54d1e39dae1e7356c8c9a7926 100644 Binary files a/dengtaishan-src/public/voice/c8.mp3 and b/dengtaishan-src/public/voice/c8.mp3 differ diff --git a/dengtaishan-src/public/voice/c9.mp3 b/dengtaishan-src/public/voice/c9.mp3 index 9713ffbd8b897d044de13523e748b6c008811124..6db044ecf3ca593a72aee8dcebfaec0c673cde83 100644 Binary files a/dengtaishan-src/public/voice/c9.mp3 and b/dengtaishan-src/public/voice/c9.mp3 differ diff --git a/dengtaishan-src/public/voice/d1.mp3 b/dengtaishan-src/public/voice/d1.mp3 index 4a656d0515f721ef827dea789be465121a2f23ba..38445110d9012caa8a0513e6705345278c65e601 100644 Binary files a/dengtaishan-src/public/voice/d1.mp3 and b/dengtaishan-src/public/voice/d1.mp3 differ diff --git a/dengtaishan-src/public/voice/d2.mp3 b/dengtaishan-src/public/voice/d2.mp3 index d24b6b35e0adb9aa3bba638ab947ca4cf7e24e6d..9a2f54649a7cf8b449a1484c60b9bbc0c1efe65e 100644 Binary files a/dengtaishan-src/public/voice/d2.mp3 and b/dengtaishan-src/public/voice/d2.mp3 differ diff --git a/dengtaishan-src/public/voice/d3.mp3 b/dengtaishan-src/public/voice/d3.mp3 index 98e524825fe7193c66ba67a2beabe9b2f1fe4d0c..3175a5a5e432c7d532c6dcec82d1987d227a8213 100644 Binary files a/dengtaishan-src/public/voice/d3.mp3 and b/dengtaishan-src/public/voice/d3.mp3 differ diff --git a/dengtaishan-src/public/voice/d4.mp3 b/dengtaishan-src/public/voice/d4.mp3 index 636337f404b5c4419b1fd7a58b4d64500f012fc4..a83af6004496a3abf6067d75be687d53fcae8910 100644 Binary files a/dengtaishan-src/public/voice/d4.mp3 and b/dengtaishan-src/public/voice/d4.mp3 differ diff --git a/dengtaishan-src/public/voice/d5.mp3 b/dengtaishan-src/public/voice/d5.mp3 index fd082dc0f22edcc3c6dcd6a12a3370a160aee4db..b99e38d4b7c1e01dfd2b4ca6172071f00312ecbd 100644 Binary files a/dengtaishan-src/public/voice/d5.mp3 and b/dengtaishan-src/public/voice/d5.mp3 differ diff --git a/dengtaishan-src/public/voice/d6.mp3 b/dengtaishan-src/public/voice/d6.mp3 index 1696d7cb318e76b39ba3997a88b866a290326a27..2d14629848fe6a983690b04eb54d46f8adcbf8d8 100644 Binary files a/dengtaishan-src/public/voice/d6.mp3 and b/dengtaishan-src/public/voice/d6.mp3 differ diff --git a/dengtaishan-src/public/voice/d7.mp3 b/dengtaishan-src/public/voice/d7.mp3 index 6c5150d33f94a50947528003d1e3809f31aefb9e..f3e136cf7347648bec773e755d9233fa03a98ec5 100644 Binary files a/dengtaishan-src/public/voice/d7.mp3 and b/dengtaishan-src/public/voice/d7.mp3 differ diff --git a/dengtaishan-src/public/voice/e1.mp3 b/dengtaishan-src/public/voice/e1.mp3 index 757e2e9392af93dbe5e2cb5f3575014aa01e1d93..ce3b17d2e809f0d9fdcaf55ea882b611e85c8b11 100644 Binary files a/dengtaishan-src/public/voice/e1.mp3 and b/dengtaishan-src/public/voice/e1.mp3 differ diff --git a/dengtaishan-src/public/voice/e2.mp3 b/dengtaishan-src/public/voice/e2.mp3 index 6ddc7b89797083b52683052bb5e923e8b874e805..49a80b79cfee0c3444f2d2c41e81734a715be389 100644 Binary files a/dengtaishan-src/public/voice/e2.mp3 and b/dengtaishan-src/public/voice/e2.mp3 differ diff --git a/dengtaishan-src/public/voice/e3.mp3 b/dengtaishan-src/public/voice/e3.mp3 index edc36a1d994032a0a02e2a83b7df194433717b31..7ffcf7ab381897183663c0e268f7467769937e49 100644 Binary files a/dengtaishan-src/public/voice/e3.mp3 and b/dengtaishan-src/public/voice/e3.mp3 differ diff --git a/dengtaishan-src/public/voice/e4.mp3 b/dengtaishan-src/public/voice/e4.mp3 index b1635aeb8f234a6dfac049820eb016b7b389724f..a977a614cdbffa455678c582ce7e7589274f4b75 100644 Binary files a/dengtaishan-src/public/voice/e4.mp3 and b/dengtaishan-src/public/voice/e4.mp3 differ diff --git a/dengtaishan-src/public/voice/e5.mp3 b/dengtaishan-src/public/voice/e5.mp3 index 6ffadf4ca75a38a33ed08d0a442d4454319c3ed3..f396c920f8c9d610448196227ce8ca03a71dc4f9 100644 Binary files a/dengtaishan-src/public/voice/e5.mp3 and b/dengtaishan-src/public/voice/e5.mp3 differ diff --git a/dengtaishan-src/public/voice/e6.mp3 b/dengtaishan-src/public/voice/e6.mp3 index 844c4f116a63692e421d35e7b6772ccc8d06d625..03421c52a2da5db66b2c4d83b5598d0669c29b44 100644 Binary files a/dengtaishan-src/public/voice/e6.mp3 and b/dengtaishan-src/public/voice/e6.mp3 differ diff --git a/dengtaishan-src/public/voice/e7.mp3 b/dengtaishan-src/public/voice/e7.mp3 index 25a9fec8949ea6b0d53d861cc6e5d32012fd5a38..0264e88caee33258a7b7e61f019797216ea76631 100644 Binary files a/dengtaishan-src/public/voice/e7.mp3 and b/dengtaishan-src/public/voice/e7.mp3 differ diff --git a/dengtaishan-src/public/voice/e8.mp3 b/dengtaishan-src/public/voice/e8.mp3 index fc770ba8d84a3732ec9adb2eae8595715c2a22ae..40fdc9e193eaa329566c573d23b71ec03c975dd3 100644 Binary files a/dengtaishan-src/public/voice/e8.mp3 and b/dengtaishan-src/public/voice/e8.mp3 differ diff --git a/dengtaishan-src/public/voice/f1.mp3 b/dengtaishan-src/public/voice/f1.mp3 index 84b53d144bd3843fa9092da06a835815b36f99a3..4258c791d7306a8e3eedfa22fb095f13dee2ec8f 100644 Binary files a/dengtaishan-src/public/voice/f1.mp3 and b/dengtaishan-src/public/voice/f1.mp3 differ diff --git a/dengtaishan-src/public/voice/f2.mp3 b/dengtaishan-src/public/voice/f2.mp3 index 91e65dbbdf81bbf2d1b9ec8d54baaba98ed3502a..0dba5ed40c534064bd748b2195c11426e2049540 100644 Binary files a/dengtaishan-src/public/voice/f2.mp3 and b/dengtaishan-src/public/voice/f2.mp3 differ diff --git a/dengtaishan-src/public/voice/f3.mp3 b/dengtaishan-src/public/voice/f3.mp3 index 1b132844f8e54183440760e14a2c1f902e4d935a..08366fa1baef520d15b1d51ce94ef5cb38a04776 100644 Binary files a/dengtaishan-src/public/voice/f3.mp3 and b/dengtaishan-src/public/voice/f3.mp3 differ diff --git a/dengtaishan-src/public/voice/f4.mp3 b/dengtaishan-src/public/voice/f4.mp3 index 53e06d3d906736a0ab04d2e04775b18cbc919785..4da559b3fe3562ac811da0382b01fb5551ca21a3 100644 Binary files a/dengtaishan-src/public/voice/f4.mp3 and b/dengtaishan-src/public/voice/f4.mp3 differ diff --git a/dengtaishan-src/public/voice/f5.mp3 b/dengtaishan-src/public/voice/f5.mp3 index 268e330bfe0d6f3cc439e27030e09af109216b2e..fd6a30f19b19d691c002b626ac534243ceee844e 100644 Binary files a/dengtaishan-src/public/voice/f5.mp3 and b/dengtaishan-src/public/voice/f5.mp3 differ diff --git a/dengtaishan-src/public/voice/f6.mp3 b/dengtaishan-src/public/voice/f6.mp3 index f3e7eb83bb23e7e1c001ea4490db61f15cdc436b..482ac4e351e3098a6e81e67b842eb5de1d9937a7 100644 Binary files a/dengtaishan-src/public/voice/f6.mp3 and b/dengtaishan-src/public/voice/f6.mp3 differ diff --git a/dengtaishan-src/public/voice/f7.mp3 b/dengtaishan-src/public/voice/f7.mp3 index 0d734b67e1ea4b478efcb8061b90e00d10d2b4c3..73baf2feb702b03f664bfff5373acf4f0250b2c2 100644 Binary files a/dengtaishan-src/public/voice/f7.mp3 and b/dengtaishan-src/public/voice/f7.mp3 differ diff --git a/dengtaishan-src/public/voice/g1.mp3 b/dengtaishan-src/public/voice/g1.mp3 index 57cf49ce04424e24521aa7dd9145353d0fcc2529..034e66df0a19b3eb91e2a6c03d9d8c5edf5484ab 100644 Binary files a/dengtaishan-src/public/voice/g1.mp3 and b/dengtaishan-src/public/voice/g1.mp3 differ diff --git a/dengtaishan-src/public/voice/g10.mp3 b/dengtaishan-src/public/voice/g10.mp3 index c708957cf896f7cb69b2196d545295696d0e328b..1ad9771334b6ee8ff25e9060cd2df720aa58ed2d 100644 Binary files a/dengtaishan-src/public/voice/g10.mp3 and b/dengtaishan-src/public/voice/g10.mp3 differ diff --git a/dengtaishan-src/public/voice/g11.mp3 b/dengtaishan-src/public/voice/g11.mp3 index d9b4e326be70e69eab262b04f3c805ef6be7915e..0a61cbf70467b6ce9d10e722385d9e0e03580489 100644 Binary files a/dengtaishan-src/public/voice/g11.mp3 and b/dengtaishan-src/public/voice/g11.mp3 differ diff --git a/dengtaishan-src/public/voice/g2.mp3 b/dengtaishan-src/public/voice/g2.mp3 index 1a7e924749fa99f7906a739b9f0185fd7a3b3908..d55e67e71b48191bce5d264211a450b6787b0a5a 100644 Binary files a/dengtaishan-src/public/voice/g2.mp3 and b/dengtaishan-src/public/voice/g2.mp3 differ diff --git a/dengtaishan-src/public/voice/g3.mp3 b/dengtaishan-src/public/voice/g3.mp3 index 5435aa50418ab89ddc3d695f03cf4d8d8ed9ad39..43a6e02c2a0af32169dd3e3b1670fe2e901e988c 100644 Binary files a/dengtaishan-src/public/voice/g3.mp3 and b/dengtaishan-src/public/voice/g3.mp3 differ diff --git a/dengtaishan-src/public/voice/g4.mp3 b/dengtaishan-src/public/voice/g4.mp3 index 9aa8e8a3dac23daa9b87f5f0fc705e3922c86e6d..b5897c097d83b10a212fcf6c3d2fb4d7006185d0 100644 Binary files a/dengtaishan-src/public/voice/g4.mp3 and b/dengtaishan-src/public/voice/g4.mp3 differ diff --git a/dengtaishan-src/public/voice/g5.mp3 b/dengtaishan-src/public/voice/g5.mp3 index cc4d5d957ddc0c0ce35e65c360d487abb30a403f..427848c22e9a83e88108c4f70a5576494df1ae25 100644 Binary files a/dengtaishan-src/public/voice/g5.mp3 and b/dengtaishan-src/public/voice/g5.mp3 differ diff --git a/dengtaishan-src/public/voice/g6.mp3 b/dengtaishan-src/public/voice/g6.mp3 index 28ac814cd2ae241fbc75e1f7fec682a6cb85ce78..1ab7f902e2be52722a2674241eb6aa95744daa2f 100644 Binary files a/dengtaishan-src/public/voice/g6.mp3 and b/dengtaishan-src/public/voice/g6.mp3 differ diff --git a/dengtaishan-src/public/voice/g7.mp3 b/dengtaishan-src/public/voice/g7.mp3 index 553c26a6946a25476dc6ec7d5a0cd4a1eb69058d..58a9d6778e9105b3f72a120f45d00f6bf8b45a53 100644 Binary files a/dengtaishan-src/public/voice/g7.mp3 and b/dengtaishan-src/public/voice/g7.mp3 differ diff --git a/dengtaishan-src/public/voice/g8.mp3 b/dengtaishan-src/public/voice/g8.mp3 index 8e0919d7071c2055583ae4aa3255b82f6d624890..91161a3f7e30b3bb5242cf12c44a16aaef534bff 100644 Binary files a/dengtaishan-src/public/voice/g8.mp3 and b/dengtaishan-src/public/voice/g8.mp3 differ diff --git a/dengtaishan-src/public/voice/g9.mp3 b/dengtaishan-src/public/voice/g9.mp3 index fad2d30e051b05c4e3b66dd99868cfd097cde1c5..3497357e649b1d05d2ca0ac5d48b574093365404 100644 Binary files a/dengtaishan-src/public/voice/g9.mp3 and b/dengtaishan-src/public/voice/g9.mp3 differ diff --git a/dengtaishan-src/public/voice/h1.mp3 b/dengtaishan-src/public/voice/h1.mp3 index 1e9474f432ecf4248634bc5c68b92a8e6dc06e2e..f4e24735ffbc6929773f083ee459ae66b8c4f17f 100644 Binary files a/dengtaishan-src/public/voice/h1.mp3 and b/dengtaishan-src/public/voice/h1.mp3 differ diff --git a/dengtaishan-src/public/voice/h2.mp3 b/dengtaishan-src/public/voice/h2.mp3 index a7a72d2fc579f897f1be130d29209cff5a87e127..86dd29174365f2ed4ddb818d2b4a9d8672b35253 100644 Binary files a/dengtaishan-src/public/voice/h2.mp3 and b/dengtaishan-src/public/voice/h2.mp3 differ diff --git a/dengtaishan-src/public/voice/h3.mp3 b/dengtaishan-src/public/voice/h3.mp3 index 7aace8fa400b1e02c70f2c8a077723e2db9c47d9..8250129f2ed55d65e978e7a1ba0e97bfc55304d6 100644 Binary files a/dengtaishan-src/public/voice/h3.mp3 and b/dengtaishan-src/public/voice/h3.mp3 differ diff --git a/dengtaishan-src/public/voice/h4.mp3 b/dengtaishan-src/public/voice/h4.mp3 index b3b3cf821d4a101bc7913d7c252e8f75975273d7..8bd39eddca96be688c3cacea165e207d7d6ee958 100644 Binary files a/dengtaishan-src/public/voice/h4.mp3 and b/dengtaishan-src/public/voice/h4.mp3 differ diff --git a/dengtaishan-src/public/voice/p1.mp3 b/dengtaishan-src/public/voice/p1.mp3 index 145fbfa8f86b2543d342f06794502dd487e35d9c..099401fb00cc5ca1a92ce89a19b54c7b891611ac 100644 Binary files a/dengtaishan-src/public/voice/p1.mp3 and b/dengtaishan-src/public/voice/p1.mp3 differ diff --git a/dengtaishan-src/public/voice/p2.mp3 b/dengtaishan-src/public/voice/p2.mp3 index f9be0c3249d258b6f49971bac9919a8a7bb87c53..8edad93e44204c10e94748c6e285d8174a50c4f4 100644 Binary files a/dengtaishan-src/public/voice/p2.mp3 and b/dengtaishan-src/public/voice/p2.mp3 differ diff --git a/dengtaishan-src/public/voice/p3.mp3 b/dengtaishan-src/public/voice/p3.mp3 index 65091a2eb4502ceaf1e8830eea9b6c6693568382..2350ddf1af408db316c725a9770e51c3dd7b9beb 100644 Binary files a/dengtaishan-src/public/voice/p3.mp3 and b/dengtaishan-src/public/voice/p3.mp3 differ diff --git a/dengtaishan-src/public/voice/p4.mp3 b/dengtaishan-src/public/voice/p4.mp3 index d9bcb985f10bd07b4f6334be7aa9979a4b8e7355..cc6a21362f313b3b1031b37168abe41b7c3ee2da 100644 Binary files a/dengtaishan-src/public/voice/p4.mp3 and b/dengtaishan-src/public/voice/p4.mp3 differ diff --git a/dengtaishan-src/public/voice/p5.mp3 b/dengtaishan-src/public/voice/p5.mp3 index 1cf127d09495839281e52e6a751dee9f7100dc67..919e1314e67f34ddf13bd68520d87b2c2f10221e 100644 Binary files a/dengtaishan-src/public/voice/p5.mp3 and b/dengtaishan-src/public/voice/p5.mp3 differ diff --git a/dengtaishan-src/public/voice/p6.mp3 b/dengtaishan-src/public/voice/p6.mp3 index 089248504834a3edc6044df5a1c76e54e11ddfc4..33b301611f21a303867ccbd7f9695dae82680a9a 100644 Binary files a/dengtaishan-src/public/voice/p6.mp3 and b/dengtaishan-src/public/voice/p6.mp3 differ diff --git a/dengtaishan-src/public/voice/p7.mp3 b/dengtaishan-src/public/voice/p7.mp3 index 511fdea92f1166720449671c792e5d078a1217df..204e5b70c046d3ff3aada12bbe88861e25f9af31 100644 Binary files a/dengtaishan-src/public/voice/p7.mp3 and b/dengtaishan-src/public/voice/p7.mp3 differ diff --git a/dengtaishan-src/public/voice/p8.mp3 b/dengtaishan-src/public/voice/p8.mp3 index e59408a7a2766e532b33a3eea343edf0677505bd..b62614cc651592e8d9737d52ad3dcdee9dfeca7b 100644 Binary files a/dengtaishan-src/public/voice/p8.mp3 and b/dengtaishan-src/public/voice/p8.mp3 differ diff --git a/dengtaishan-src/public/voice/p9.mp3 b/dengtaishan-src/public/voice/p9.mp3 index 193e4911ace785f4c759bd120cd7de354d7b3651..06b2d4a4c9929225a9f29e7120e064ca33540396 100644 Binary files a/dengtaishan-src/public/voice/p9.mp3 and b/dengtaishan-src/public/voice/p9.mp3 differ diff --git a/dengtaishan-src/src/App.tsx b/dengtaishan-src/src/App.tsx index 9f12606de706e7d27baae53e89f18955d586f3be..be04fe59d39b71f6637b9792c306916328f771cc 100644 --- a/dengtaishan-src/src/App.tsx +++ b/dengtaishan-src/src/App.tsx @@ -1,24 +1,7 @@ -const SURF_LOGO_PATH = "M14.6875 13.333C15.0977 13.333 15.4859 13.5196 15.7422 13.8398L17.8721 16.502C17.9009 16.538 17.9308 16.5721 17.9619 16.6035C18.3091 16.9542 18.7529 17.3405 18.7529 17.834C18.7528 18.3399 18.3428 18.75 17.8369 18.75H17.5713C17.2123 18.75 16.8727 18.5869 16.6484 18.3066L15.4678 16.8311C14.761 15.9479 13.3369 16.4478 13.3369 17.5791V18.6494C13.3369 18.7062 13.2882 18.75 13.2314 18.75H11.3584C10.7127 18.75 10.1016 18.4564 9.69824 17.9521L8.80176 16.8311C8.09497 15.9477 6.66993 16.4478 6.66992 17.5791V18.6494C6.66991 18.7062 6.62124 18.75 6.56445 18.75H4.69141C4.04589 18.75 3.43548 18.4562 3.03223 17.9521L2.13477 16.8311C1.77885 16.3862 1.25293 15.931 1.25293 15.3613V13.4395C1.253 13.3822 1.29729 13.3331 1.35449 13.333C1.7646 13.3332 2.15295 13.5196 2.40918 13.8398L4.53809 16.502C5.24478 17.3853 6.66962 16.886 6.66992 15.7549V14.6836C6.67018 13.9379 7.27483 13.3332 8.02051 13.333C8.43065 13.333 8.81884 13.5197 9.0752 13.8398L11.2051 16.502C11.9097 17.3827 13.3282 16.8887 13.3369 15.7646V14.6836C13.3372 13.9378 13.9417 13.3331 14.6875 13.333ZM14.6875 6.66699C15.0978 6.66702 15.4859 6.85347 15.7422 7.17383L17.8721 9.83594C18.2276 10.2801 18.7526 10.7339 18.7529 11.3027V13.2266C18.7528 13.2833 18.7091 13.333 18.6523 13.333C18.2421 13.3329 17.8539 13.1465 17.5977 12.8262L15.4678 10.1641C14.7609 9.28113 13.3369 9.78089 13.3369 10.9121V11.9824C13.3369 12.7282 12.7321 13.3328 11.9863 13.333C11.5761 13.3329 11.187 13.1465 10.9307 12.8262L8.80176 10.1641C8.09497 9.28072 6.66993 9.78076 6.66992 10.9121V11.9824C6.66992 12.7284 6.06525 13.3329 5.31934 13.333C4.90908 13.3329 4.52094 13.1465 4.26465 12.8262L2.13477 10.1641C1.7788 9.71925 1.25293 9.26403 1.25293 8.69434V6.77344C1.253 6.71621 1.29728 6.6671 1.35449 6.66699C1.76461 6.66714 2.15295 6.85359 2.40918 7.17383L4.53809 9.83594C5.24487 10.7193 6.66989 10.2192 6.66992 9.08789V8.01758C6.66992 7.27168 7.27467 6.66722 8.02051 6.66699C8.43082 6.66699 8.81885 6.85345 9.0752 7.17383L11.2051 9.83594C11.9097 10.7163 13.3279 10.2223 13.3369 9.09863V8.01758C13.3369 7.27161 13.9416 6.6671 14.6875 6.66699ZM2.43555 1.25C2.79488 1.25 3.13499 1.41367 3.35938 1.69434L4.53809 3.16895C5.24485 4.05241 6.66991 3.55228 6.66992 2.4209V1.35059C6.66993 1.29391 6.71874 1.25017 6.77539 1.25H8.64844C9.29394 1.25 9.90438 1.5438 10.3076 2.04785L11.2051 3.16895C11.9097 4.04967 13.3282 3.55564 13.3369 2.43164V1.35059C13.3369 1.29391 13.3857 1.25017 13.4424 1.25H15.3154C15.9609 1.25 16.5714 1.5438 16.9746 2.04785L17.8721 3.16895C18.2275 3.61314 18.7526 4.06689 18.7529 4.63574V6.56055C18.7528 6.61728 18.7091 6.66699 18.6523 6.66699C18.2421 6.66688 17.8539 6.4795 17.5977 6.15918L15.4678 3.49805C14.761 2.61474 13.3371 3.11388 13.3369 4.24512V5.31543C13.3369 6.06126 12.7321 6.66673 11.9863 6.66699C11.5761 6.66693 11.187 6.47955 10.9307 6.15918L8.80176 3.49805C8.095 2.61474 6.67006 3.11388 6.66992 4.24512V5.31543C6.66992 6.06137 6.06525 6.66691 5.31934 6.66699C4.90908 6.66693 4.52094 6.47955 4.26465 6.15918L2.13477 3.49805C2.10558 3.46158 2.07543 3.42725 2.04395 3.39551C1.6966 3.04528 1.25293 2.6583 1.25293 2.16504C1.25317 1.65963 1.66348 1.25 2.16895 1.25H2.43555Z" +import Still from './app/Still' +import Studio from './app/Studio' -function SurfLogo() { - return ( - - - - ) -} - -// Frontend API calls should use `src/lib/api.ts`, not absolute `/api/...` URLs. export default function App() { - return ( -
- -

- GM, Builder. -

-

- Start your crypto project here! -

-
- ) + const still = typeof location !== 'undefined' && new URLSearchParams(location.search).has('still') + return still ? : } diff --git a/dengtaishan-src/src/app/CoverPanel.tsx b/dengtaishan-src/src/app/CoverPanel.tsx new file mode 100644 index 0000000000000000000000000000000000000000..cbc7b0597ad02a63f764d68dfbd4aa6acd574f22 --- /dev/null +++ b/dengtaishan-src/src/app/CoverPanel.tsx @@ -0,0 +1,129 @@ +// 封面:4:3 / 3:4 / 16:9 多款可多选,单张 PNG 或打包 ZIP 下载 +import { useEffect, useMemo, useState } from 'react' +import { zipSync } from 'fflate' +import { COVER_DEFS, RATIO_SIZE, Ratio, renderCover } from '../video/covers' +import { cx, Chip, toast } from './ui' + +interface Item { key: string; ratio: Ratio; def: (typeof COVER_DEFS)[number] } +const RATIOS: Ratio[] = ['16:9', '4:3', '3:4'] +const ITEMS: Item[] = RATIOS.flatMap((ratio) => COVER_DEFS.map((def) => ({ key: `${def.id}-${ratio}`, ratio, def }))) +const fname = (it: Item) => `登泰山记_封面_${it.def.name.replace(/[??]/g, '')}_${it.ratio.replace(':', 'x')}.png` + +function toBlob(c: HTMLCanvasElement): Promise { + return new Promise((res, rej) => c.toBlob((b) => (b ? res(b) : rej(new Error('toBlob failed'))), 'image/png')) +} +function download(blob: Blob, name: string) { + const url = URL.createObjectURL(blob) + const a = document.createElement('a') + a.href = url + a.download = name + document.body.appendChild(a) + a.click() + a.remove() + setTimeout(() => URL.revokeObjectURL(url), 4000) +} + +export default function CoverPanel({ ready }: { ready: boolean }) { + const [filter, setFilter] = useState('all') + const [sel, setSel] = useState>(new Set()) + const [thumbs, setThumbs] = useState>({}) + const [busy, setBusy] = useState(false) + const list = useMemo(() => ITEMS.filter((it) => filter === 'all' || it.ratio === filter), [filter]) + + useEffect(() => { + if (!ready) return + let cancel = false + let i = 0 + const next = () => { + if (cancel || i >= ITEMS.length) return + const it = ITEMS[i++] + const c = renderCover(it.def, it.ratio, 0.34) + const url = c.toDataURL('image/jpeg', 0.86) + setThumbs((t) => ({ ...t, [it.key]: url })) + setTimeout(next, 30) + } + const id = setTimeout(next, 600) + return () => { + cancel = true + clearTimeout(id) + } + }, [ready]) + + const toggle = (k: string) => setSel((s) => { + const n = new Set(s) + if (n.has(k)) n.delete(k) + else n.add(k) + return n + }) + const one = async (it: Item) => { + const b = await toBlob(renderCover(it.def, it.ratio, 1)) + download(b, fname(it)) + } + const zipSel = async () => { + const items = ITEMS.filter((it) => sel.has(it.key)) + if (!items.length) return toast('请先选择封面') + setBusy(true) + try { + if (items.length === 1) { + await one(items[0]) + } else { + const files: Record = {} + for (const it of items) { + const b = await toBlob(renderCover(it.def, it.ratio, 1)) + files[fname(it)] = new Uint8Array(await b.arrayBuffer()) + } + const z = zipSync(files, { level: 0 }) + download(new Blob([z as BlobPart], { type: 'application/zip' }), `登泰山记_封面_${items.length}张.zip`) + } + } finally { + setBusy(false) + } + } + + return ( +
+
+
+ setFilter('all')}>全部比例 + {RATIOS.map((r) => ( + setFilter(r)}>{r} · {RATIO_SIZE[r][0]}×{RATIO_SIZE[r][1]} + ))} +
+
+ + + +
+
+ {RATIOS.filter((r) => filter === 'all' || filter === r).map((r) => ( +
+
{r} 封面 · {r === '3:4' ? '小红书 / 视频号竖版' : r === '4:3' ? '小红书 / B站动态' : 'B站 / 抖音横版 / 视频号横版'}
+
+ {list.filter((it) => it.ratio === r).map((it) => { + const on = sel.has(it.key) + return ( +
toggle(it.key)}> +
+ {thumbs[it.key] ? {it.def.name} :
} +
+
+ {on && } +
+
+
+
{it.def.name}
+
{it.def.desc}
+
+ +
+
+ ) + })} +
+
+ ))} +
+ ) +} diff --git a/dengtaishan-src/src/app/ExportPanel.tsx b/dengtaishan-src/src/app/ExportPanel.tsx new file mode 100644 index 0000000000000000000000000000000000000000..2120a31d04a5deeb9647286c88d8d329f7a0847e --- /dev/null +++ b/dengtaishan-src/src/app/ExportPanel.tsx @@ -0,0 +1,163 @@ +// 导出面板:画幅 / 分辨率 / 帧率 / 背景音乐 +import { useEffect, useRef, useState } from 'react' +import { exportMp4, pickSaveFile, ExportOpts, ExportProgress, RES, Res, Fps, dims, estimateMB, canStreamToDisk, webCodecsOK, fileName } from '../video/export' +import { DURATION } from '../video/timeline' +import { Chip, Switch, cx, fmtTime } from './ui' + +export default function ExportPanel({ orient }: { orient: 'l' | 'p' }) { + const [o, setO] = useState({ orient, res: '1080', fps: 30, music: true, toDisk: false }) + const [prog, setProg] = useState(null) + const [busy, setBusy] = useState(false) + const [err, setErr] = useState(null) + const [result, setResult] = useState<{ url: string | null; name: string; size: number; codec: string; disk: boolean } | null>(null) + const abortRef = useRef(null) + const [supported, setSupported] = useState(true) + const [disk, setDisk] = useState(false) + + useEffect(() => { + setSupported(webCodecsOK()) + setDisk(canStreamToDisk()) + }, []) + useEffect(() => setO((x) => ({ ...x, orient })), [orient]) + const est = estimateMB(o) + useEffect(() => { + if (disk) setO((x) => ({ ...x, toDisk: estimateMB(x) > 450 })) + }, [o.res, o.fps, disk]) + useEffect(() => () => { if (result?.url) URL.revokeObjectURL(result.url) }, [result]) + + const start = async () => { + setErr(null) + let fw: FileSystemWritableFileStream | undefined + if (o.toDisk && disk) { + try { + fw = await pickSaveFile(o) + } catch { + return // 用户取消了保存对话框 + } + } + if (result?.url) URL.revokeObjectURL(result.url) + setResult(null) + setBusy(true) + const ac = new AbortController() + abortRef.current = ac + try { + const r = await exportMp4(o, setProg, ac.signal, fw) + const name = fileName(o) + if (r.blob) { + const url = URL.createObjectURL(r.blob) + setResult({ url, name, size: r.blob.size, codec: r.codec, disk: false }) + const a = document.createElement('a') + a.href = url + a.download = name + document.body.appendChild(a) + a.click() + a.remove() + } else setResult({ url: null, name, size: 0, codec: r.codec, disk: true }) + } catch (e) { + const m = e instanceof Error ? e.message : String(e) + if ((e as DOMException)?.name === 'AbortError') setErr('导出已取消') + else setErr(m) + } finally { + setBusy(false) + abortRef.current = null + } + } + const { W, H } = dims(o) + const pct = prog ? Math.round(prog.p * 1000) / 10 : 0 + + return ( +
+
+ + setO({ ...o, orient: 'l' })} disabled={busy}>横屏 16:9 + setO({ ...o, orient: 'p' })} disabled={busy}>竖屏 9:16(手机) + + + {(['1440', '1080', '720'] as Res[]).map((r) => ( + setO({ ...o, res: r })} disabled={busy}>{RES[r].label} + ))} + + + {([24, 30, 60] as Fps[]).map((f) => ( + setO({ ...o, fps: f })} disabled={busy}>{f} fps + ))} + + + !busy && setO({ ...o, music: v })} label={o.music ? '导出背景音乐' : '不导出背景音乐(保留旁白与音效)'} /> + + {disk && ( + + !busy && setO({ ...o, toDisk: v })} label={o.toDisk ? '边渲染边写入磁盘(大文件推荐)' : '渲染完成后下载'} /> + + )} +
+ + + +
+
+ +
+
+ 视频在你的浏览器里逐帧渲染并编码成 MP4,不上传任何服务器。导出时请保持本页面在前台。2K / 60 帧画面更细腻,但耗时更长、文件更大。 +
+ {!supported &&
当前浏览器不支持本地视频编码(WebCodecs)。请使用最新版 Chrome 或 Edge 电脑浏览器导出。
} + {busy || prog?.phase === 'done' ? ( +
+
+
{prog?.phase === 'prepare' ? '准备素材与编码器…' : prog?.phase === 'finalize' ? '正在封装 MP4…' : prog?.phase === 'done' ? '导出完成' : '正在渲染'}
+
{pct.toFixed(1)}%
+
+
+
+
+ {prog && prog.phase === 'render' && ( +
+
帧 {prog.frame}/{prog.frames}
+
速度 {prog.fpsNow.toFixed(1)} 帧/秒
+
剩余约 {fmtTime(prog.eta)}
+
+ )} + {prog?.codec &&
编码:{prog.codec}
} +
+ ) : null} + {err &&
{err}
} + {result && ( +
+
{result.disk ? '已保存到你选择的位置' : '已生成,下载已开始'}
+
{result.name}{result.size ? ` · ${(result.size / 1024 / 1024).toFixed(1)} MB` : ''} · {result.codec}
+ {result.url && ( + 再次下载 + )} +
+ )} +
+ {!busy ? ( + + ) : ( + + )} +
+
+
+ ) +} + +function Row({ label, children }: { label: string; children: React.ReactNode }) { + return ( +
+
{label}
+
{children}
+
+ ) +} +function Stat({ k, v }: { k: string; v: string }) { + return ( +
+
{k}
+
{v}
+
+ ) +} diff --git a/dengtaishan-src/src/app/PlayerView.tsx b/dengtaishan-src/src/app/PlayerView.tsx new file mode 100644 index 0000000000000000000000000000000000000000..112b84a4d1f66f6e66faeb60af6b919d9c1954c4 --- /dev/null +++ b/dengtaishan-src/src/app/PlayerView.tsx @@ -0,0 +1,234 @@ +// 视频预览播放器 +import { useCallback, useEffect, useRef, useState } from 'react' +import { Renderer } from '../video/render' +import { AudioClock } from '../video/player' +import { TL, DURATION, sceneIndexAt } from '../video/timeline' +import { loadVoices, renderSegment } from '../video/audio' +import { cx, fmtTime, Switch } from './ui' + +const CH_LABEL: Record = { + prologue: '序章', shot1: '镜头一 航拍', shot2: '镜头二 跟拍', shot3: '镜头三 延时', shot4: '镜头四 特写', shot5: '镜头五 空镜', depth: '深读', recite: '背诵', epilogue: '尾声', +} + +export default function PlayerView({ orient, setOrient, ready }: { orient: 'l' | 'p'; setOrient: (o: 'l' | 'p') => void; ready: boolean }) { + const wrapRef = useRef(null) + const boxRef = useRef(null) + const canvasRef = useRef(null) + const rendRef = useRef(null) + const clockRef = useRef(new AudioClock()) + const dirty = useRef(true) + const [t, setT] = useState(0) + const [playing, setPlaying] = useState(false) + const [buffering, setBuffering] = useState(false) + const [music, setMusic] = useState(true) + const [vol, setVol] = useState(1) + const [size, setSize] = useState<[number, number]>([0, 0]) + const [voicePct, setVoicePct] = useState(0) + + useEffect(() => { + loadVoices((p) => setVoicePct(p)) + .then(() => renderSegment(0, true)) + .catch(() => undefined) + const c = clockRef.current + c.onEnded = () => setPlaying(false) + c.onBuffering = (b) => setBuffering(b) + return () => c.dispose() + }, []) + + // 画布尺寸 + useEffect(() => { + const el = boxRef.current + if (!el) return + let tm: number | undefined + const ro = new ResizeObserver(() => { + clearTimeout(tm) + tm = window.setTimeout(() => { + const r = el.getBoundingClientRect() + const dpr = Math.min(window.devicePixelRatio || 1, 2) + let w = Math.round(r.width * dpr) + let h = Math.round(r.height * dpr) + const cap = orient === 'l' ? [1920, 1080] : [1080, 1920] + const k = Math.min(1, cap[0] / w, cap[1] / h) + w = Math.round(w * k) + h = Math.round(h * k) + setSize((s) => (s[0] === w && s[1] === h ? s : [w, h])) + }, 120) + }) + ro.observe(el) + return () => { + ro.disconnect() + clearTimeout(tm) + } + }, [orient]) + + useEffect(() => { + if (!size[0] || !ready) return + const c = canvasRef.current! + c.width = size[0] + c.height = size[1] + rendRef.current?.dispose() + rendRef.current = new Renderer(size[0], size[1]) + dirty.current = true + // 空闲时预热各场景素材,避免播放时卡顿 + const r = rendRef.current + const scratch = document.createElement('canvas') + scratch.width = size[0] + scratch.height = size[1] + const sg = scratch.getContext('2d')! + const times = TL.scenes.flatMap((s) => [s.start + s.intro + 1, s.start + s.dur * 0.6]) + let i = 0 + let cancel = false + const step = () => { + if (cancel || i >= times.length || rendRef.current !== r) return + if (!clockRef.current.playing) r.render(sg, times[i++]) + setTimeout(step, 60) + } + const id = window.setTimeout(step, 800) + return () => { + cancel = true + clearTimeout(id) + } + }, [size, ready]) + + // 渲染循环 + useEffect(() => { + let raf = 0 + let lastUi = 0 + const loop = (now: number) => { + raf = requestAnimationFrame(loop) + const r = rendRef.current + const c = canvasRef.current + if (!r || !c) return + const clock = clockRef.current + if (clock.playing || dirty.current) { + const tt = clock.now() + r.render(c.getContext('2d')!, tt) + dirty.current = false + if (now - lastUi > 120) { + lastUi = now + setT(tt) + } + } + } + raf = requestAnimationFrame(loop) + return () => cancelAnimationFrame(raf) + }, []) + + const toggle = useCallback(async () => { + const c = clockRef.current + if (c.playing) { + c.pause() + setPlaying(false) + setT(c.now()) + } else { + setPlaying(true) + try { + await c.play() + } catch (e) { + console.error(e) + setPlaying(false) + } + } + }, []) + const seek = useCallback((v: number) => { + clockRef.current.seek(v) + setT(v) + dirty.current = true + }, []) + + useEffect(() => { + const onKey = (e: KeyboardEvent) => { + const tag = (e.target as HTMLElement)?.tagName + if (tag === 'INPUT' || tag === 'TEXTAREA') return + if (e.code === 'Space') { + e.preventDefault() + toggle() + } else if (e.code === 'ArrowRight') seek(clockRef.current.now() + 5) + else if (e.code === 'ArrowLeft') seek(clockRef.current.now() - 5) + } + window.addEventListener('keydown', onKey) + return () => window.removeEventListener('keydown', onKey) + }, [toggle, seek]) + + const fs = () => { + const el = wrapRef.current as (HTMLElement & { webkitRequestFullscreen?: () => void }) | null + if (!el) return + if (document.fullscreenElement) document.exitFullscreen() + else if (el.requestFullscreen) el.requestFullscreen() + else el.webkitRequestFullscreen?.() + } + const cur = sceneIndexAt(t) + + return ( +
+
+
+ {(['l', 'p'] as const).map((o) => ( + + ))} +
+
+ { setMusic(v); clockRef.current.setMusic(v) }} label="背景音乐" /> + +
+
+ +
+
+ + {(!ready || buffering) && ( +
+
{!ready ? '正在加载字体…' : `正在合成声音… ${voicePct < 1 ? Math.round(voicePct * 100) + '%' : ''}`}
+
+ )} + {ready && !playing && !buffering && ( + + )} +
+ {/* 控制条 */} +
+ +
+
+
+
+ {TL.scenes.slice(1).map((s) => ( +
+ ))} + seek(Number(e.target.value))} className="absolute inset-0 w-full opacity-0 cursor-pointer" aria-label="进度" /> +
+
{fmtTime(t)} / {fmtTime(DURATION)}
+ +
+
+ +
+ {TL.scenes.map((s, i) => ( + + ))} +
+
+ ) +} diff --git a/dengtaishan-src/src/app/PublishPanel.tsx b/dengtaishan-src/src/app/PublishPanel.tsx new file mode 100644 index 0000000000000000000000000000000000000000..aedca7bac66c7755523c5924d8059e8d834168d1 --- /dev/null +++ b/dengtaishan-src/src/app/PublishPanel.tsx @@ -0,0 +1,81 @@ +// 多平台发布文案:标题 / 描述 / 话题,一键复制,实时字数校验 +import { useState } from 'react' +import { PLATFORMS, count, tagText } from '../video/publish' +import { cx, useCopy } from './ui' + +export default function PublishPanel() { + const [pid, setPid] = useState(PLATFORMS[0].id) + const [ti, setTi] = useState>({}) + const copy = useCopy() + const p = PLATFORMS.find((x) => x.id === pid)! + const sel = ti[p.id] ?? 0 + const tags = tagText(p) + const all = `${p.titles[sel]}\n\n${p.desc}\n\n${tags}` + return ( +
+
+ {PLATFORMS.map((x) => ( + + ))} +
+
+
+ + {p.titles.map((s, i) => { + const n = count(s) + const ok = n <= p.titleMax + return ( +
setTi({ ...ti, [p.id]: i })} + className={cx('group flex items-start gap-3 rounded-xl border p-3 cursor-pointer transition-colors', sel === i ? 'border-[#c9a86a] bg-[#c9a86a]/[0.07]' : 'border-white/10 hover:border-white/25')} + > + +
{s}
+
+ {n}/{p.titleMax} + +
+
+ ) + })} +
+
+
+ + +
+