V2.0.8 #10

Merged
leiyuee merged 3 commits from dev into master 2 months ago
  1. 1
      .env
  2. 2
      .env.prod
  3. 1
      .env.stage
  4. 12
      .gitignore
  5. BIN
      dist/assets/AiCategories_template-dHOG787i.png
  6. BIN
      dist/assets/action-mimic-card-icon-JPmDktJb.png
  7. BIN
      dist/assets/action-mimic-play-icon-D_NQO8o_.png
  8. BIN
      dist/assets/addImage-Do8_T8na.png
  9. BIN
      dist/assets/app-store-BlyKpUQK.png
  10. 21
      dist/assets/arco-vendor-gN7EHfgO.js
  11. 1
      dist/assets/arco-vendor-gN7EHfgO.js.map
  12. BIN
      dist/assets/audio-BZsuuTiT.png
  13. BIN
      dist/assets/avatar-r7rg3o8a.png
  14. BIN
      dist/assets/certificate_reference-BsqxqSLN.png
  15. BIN
      dist/assets/characters-Dtf0OKDB.png
  16. BIN
      dist/assets/check-BjHNtjc2.png
  17. BIN
      dist/assets/contact-C00dM-Nn.png
  18. BIN
      dist/assets/create-BT4qOn9k.png
  19. BIN
      dist/assets/cta-create-bg-DDICEBBC.png
  20. BIN
      dist/assets/cta-upload-bg-CaK81ZLB.png
  21. 23
      dist/assets/data-vendor-BOGugMqL.js
  22. 1
      dist/assets/data-vendor-BOGugMqL.js.map
  23. BIN
      dist/assets/diy-role-card-BoNp16Az.png
  24. BIN
      dist/assets/dot-IoaK_mL7.png
  25. BIN
      dist/assets/download-DJQLDZDb.png
  26. BIN
      dist/assets/explore-cat-icon-DkebMSwE.png
  27. BIN
      dist/assets/explore-qImK4wSe.png
  28. BIN
      dist/assets/fav-BgmBsCxi.png
  29. BIN
      dist/assets/flash-BEP2h4Ww.png
  30. BIN
      dist/assets/footer-logo-CjGF6_-J.png
  31. BIN
      dist/assets/google-play-CmY6ooQq.png
  32. BIN
      dist/assets/hero-cert-D4ms52bk.png
  33. BIN
      dist/assets/hero-chevron-CtRISfYu.png
  34. BIN
      dist/assets/hero-image1-CKYMumeE.png
  35. BIN
      dist/assets/hero-image2-CxuiT-yq.png
  36. BIN
      dist/assets/heroTitleIcon1-BJUREaJu.png
  37. BIN
      dist/assets/heroTitleIcon2-CLoPUkJh.png
  38. BIN
      dist/assets/ic_AI-0ZKPbvsZ.png
  39. BIN
      dist/assets/ic_AI_active-x0vrVjFD.png
  40. BIN
      dist/assets/ic_arrow_bottom_white-CUyO9U1y.png
  41. BIN
      dist/assets/ic_arrow_right_gray-DM6GPP4g.png
  42. BIN
      dist/assets/ic_arrow_right_purple-DkZ9_5le.png
  43. BIN
      dist/assets/ic_artist-PE9NnTO-.png
  44. BIN
      dist/assets/ic_avatar_add-DSbJ8ACW.png
  45. BIN
      dist/assets/ic_character_edit-C9-cdJQU.png
  46. BIN
      dist/assets/ic_character_edit_white-CmAKdWOq.png
  47. BIN
      dist/assets/ic_checkbox-XedLjJlZ.png
  48. BIN
      dist/assets/ic_checkbox_agreement_off-DYbDLFis.png
  49. BIN
      dist/assets/ic_checkbox_agreement_on-CfQo_XPS.png
  50. BIN
      dist/assets/ic_checkbox_checked-kEFZj2gE.png
  51. BIN
      dist/assets/ic_close-C0Ltcj9g.png
  52. BIN
      dist/assets/ic_collect-DFmRIhYQ.png
  53. BIN
      dist/assets/ic_collect_active-HS4fh2AW.png
  54. BIN
      dist/assets/ic_copyright-C5KY3Ol4.png
  55. BIN
      dist/assets/ic_crop-7RinYXMI.png
  56. BIN
      dist/assets/ic_delete-Dxt-lDnW.png
  57. BIN
      dist/assets/ic_deposit-BEwFgdJ_.png
  58. BIN
      dist/assets/ic_deposit_active-DqitDVNN.png
  59. BIN
      dist/assets/ic_download-C1q43Nig.png
  60. BIN
      dist/assets/ic_empty-C6qZWQhL.png
  61. BIN
      dist/assets/ic_eye-DgY2Ilhv.png
  62. BIN
      dist/assets/ic_eye_gray-Bzgu21ZL.png
  63. BIN
      dist/assets/ic_gout-UiOWXfMx.png
  64. BIN
      dist/assets/ic_help-DuaHUVam.png
  65. BIN
      dist/assets/ic_key-strAS893.png
  66. BIN
      dist/assets/ic_lamp-Bik1SzgE.png
  67. BIN
      dist/assets/ic_language-DeyHNFa_.png
  68. BIN
      dist/assets/ic_like-BLnjUBb1.png
  69. BIN
      dist/assets/ic_like_active-C1GDW4GU.png
  70. BIN
      dist/assets/ic_like_white-DdFasbWY.png
  71. BIN
      dist/assets/ic_link-BaYntrUJ.png
  72. BIN
      dist/assets/ic_look-B3mblBMS.png
  73. BIN
      dist/assets/ic_make_same-hXfG5_wE.png
  74. BIN
      dist/assets/ic_menu-D7Z617JJ.png
  75. BIN
      dist/assets/ic_model-CaxouWY8.png
  76. BIN
      dist/assets/ic_model_gray-CF0c-D8R.png
  77. BIN
      dist/assets/ic_more-DTi0294v.png
  78. BIN
      dist/assets/ic_play_gray-Bw0AiFae.png
  79. BIN
      dist/assets/ic_plus-DsKUbTM-.png
  80. BIN
      dist/assets/ic_publish-DapJ7hcy.png
  81. BIN
      dist/assets/ic_refresh-DGXw8T7J.png
  82. BIN
      dist/assets/ic_regenerate-wYWUyv4U.png
  83. BIN
      dist/assets/ic_search-DREI2NzL.png
  84. BIN
      dist/assets/ic_share-DNIc1nf_.png
  85. BIN
      dist/assets/ic_stars_active-qa63FBqE.png
  86. BIN
      dist/assets/ic_stars_white-CxqAv7TF.png
  87. BIN
      dist/assets/ic_template_chip-CWZEuWV8.png
  88. BIN
      dist/assets/ic_use_character-C9-8sFEF.png
  89. BIN
      dist/assets/ic_user-BLK-BFPI.png
  90. BIN
      dist/assets/icon-version-BXUx9Tuk.png
  91. BIN
      dist/assets/iconfont-DD4Q8r92.woff2
  92. BIN
      dist/assets/iconfont-DiQjXL4c.woff
  93. BIN
      dist/assets/iconfont-DojQABcm.ttf
  94. 2
      dist/assets/imageDragTransfer-apm0lmHd.js
  95. 1
      dist/assets/imageDragTransfer-apm0lmHd.js.map
  96. 1
      dist/assets/index-2zgKzmDo.css
  97. 2
      dist/assets/index-3jBeF7Sc.js
  98. 1
      dist/assets/index-3jBeF7Sc.js.map
  99. 2
      dist/assets/index-5rXb67Va.js
  100. 1
      dist/assets/index-5rXb67Va.js.map

1
.env

@ -1,4 +1,5 @@
VITE_API_URL=https://wwwskillhub.popi.art
VITE_SKILLHUB_URL=https://wwwtestskillhub.popi.art
VITE_CANVAS_URL=https://wwwtestcanvas.popi.art/

2
.env.prod

@ -1,4 +1,4 @@
VITE_API_URL=https://popi.yuanzoo.cn/
VITE_SKILLHUB_URL=https://skillhub.popi.art
VITE_CANVAS_URL=https://canvas.popi.art/

1
.env.stage

@ -1,4 +1,5 @@
VITE_API_URL=https://wwwtest.popi.art/
VITE_SKILLHUB_URL=https://wwwtestskillhub.popi.art
VITE_CANVAS_URL=https://wwwtestcanvas.popi.art/

12
.gitignore

@ -1 +1,13 @@
node_modules
# Vite build output
dist/
# vite-plugin-compression (gzip / brotli)
*.gz
*.br
# Local deploy archives (repo root)
/*.zip
/*.tar.gz
/*.tgz

BIN
dist/assets/AiCategories_template-dHOG787i.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

BIN
dist/assets/action-mimic-card-icon-JPmDktJb.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 KiB

BIN
dist/assets/action-mimic-play-icon-D_NQO8o_.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

BIN
dist/assets/addImage-Do8_T8na.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

BIN
dist/assets/app-store-BlyKpUQK.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

21
dist/assets/arco-vendor-gN7EHfgO.js

File diff suppressed because one or more lines are too long

1
dist/assets/arco-vendor-gN7EHfgO.js.map

File diff suppressed because one or more lines are too long

BIN
dist/assets/audio-BZsuuTiT.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
dist/assets/avatar-r7rg3o8a.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
dist/assets/certificate_reference-BsqxqSLN.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

BIN
dist/assets/characters-Dtf0OKDB.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

BIN
dist/assets/check-BjHNtjc2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
dist/assets/contact-C00dM-Nn.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 311 KiB

BIN
dist/assets/create-BT4qOn9k.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

BIN
dist/assets/cta-create-bg-DDICEBBC.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

BIN
dist/assets/cta-upload-bg-CaK81ZLB.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

23
dist/assets/data-vendor-BOGugMqL.js

File diff suppressed because one or more lines are too long

1
dist/assets/data-vendor-BOGugMqL.js.map

File diff suppressed because one or more lines are too long

BIN
dist/assets/diy-role-card-BoNp16Az.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

BIN
dist/assets/dot-IoaK_mL7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
dist/assets/download-DJQLDZDb.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

BIN
dist/assets/explore-cat-icon-DkebMSwE.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

BIN
dist/assets/explore-qImK4wSe.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
dist/assets/fav-BgmBsCxi.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

BIN
dist/assets/flash-BEP2h4Ww.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
dist/assets/footer-logo-CjGF6_-J.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 KiB

BIN
dist/assets/google-play-CmY6ooQq.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

BIN
dist/assets/hero-cert-D4ms52bk.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

BIN
dist/assets/hero-chevron-CtRISfYu.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

BIN
dist/assets/hero-image1-CKYMumeE.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

BIN
dist/assets/hero-image2-CxuiT-yq.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1003 KiB

BIN
dist/assets/heroTitleIcon1-BJUREaJu.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
dist/assets/heroTitleIcon2-CLoPUkJh.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
dist/assets/ic_AI-0ZKPbvsZ.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
dist/assets/ic_AI_active-x0vrVjFD.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
dist/assets/ic_arrow_bottom_white-CUyO9U1y.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

BIN
dist/assets/ic_arrow_right_gray-DM6GPP4g.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
dist/assets/ic_arrow_right_purple-DkZ9_5le.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
dist/assets/ic_artist-PE9NnTO-.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 KiB

BIN
dist/assets/ic_avatar_add-DSbJ8ACW.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

BIN
dist/assets/ic_character_edit-C9-cdJQU.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
dist/assets/ic_character_edit_white-CmAKdWOq.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

BIN
dist/assets/ic_checkbox-XedLjJlZ.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

BIN
dist/assets/ic_checkbox_agreement_off-DYbDLFis.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

BIN
dist/assets/ic_checkbox_agreement_on-CfQo_XPS.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

BIN
dist/assets/ic_checkbox_checked-kEFZj2gE.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
dist/assets/ic_close-C0Ltcj9g.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

BIN
dist/assets/ic_collect-DFmRIhYQ.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

BIN
dist/assets/ic_collect_active-HS4fh2AW.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
dist/assets/ic_copyright-C5KY3Ol4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 KiB

BIN
dist/assets/ic_crop-7RinYXMI.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
dist/assets/ic_delete-Dxt-lDnW.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

BIN
dist/assets/ic_deposit-BEwFgdJ_.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

BIN
dist/assets/ic_deposit_active-DqitDVNN.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

BIN
dist/assets/ic_download-C1q43Nig.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
dist/assets/ic_empty-C6qZWQhL.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

BIN
dist/assets/ic_eye-DgY2Ilhv.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
dist/assets/ic_eye_gray-Bzgu21ZL.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

BIN
dist/assets/ic_gout-UiOWXfMx.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
dist/assets/ic_help-DuaHUVam.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

BIN
dist/assets/ic_key-strAS893.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
dist/assets/ic_lamp-Bik1SzgE.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

BIN
dist/assets/ic_language-DeyHNFa_.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

BIN
dist/assets/ic_like-BLnjUBb1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
dist/assets/ic_like_active-C1GDW4GU.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
dist/assets/ic_like_white-DdFasbWY.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
dist/assets/ic_link-BaYntrUJ.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

BIN
dist/assets/ic_look-B3mblBMS.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

BIN
dist/assets/ic_make_same-hXfG5_wE.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

BIN
dist/assets/ic_menu-D7Z617JJ.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

BIN
dist/assets/ic_model-CaxouWY8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
dist/assets/ic_model_gray-CF0c-D8R.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
dist/assets/ic_more-DTi0294v.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

BIN
dist/assets/ic_play_gray-Bw0AiFae.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

BIN
dist/assets/ic_plus-DsKUbTM-.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

BIN
dist/assets/ic_publish-DapJ7hcy.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
dist/assets/ic_refresh-DGXw8T7J.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

BIN
dist/assets/ic_regenerate-wYWUyv4U.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

BIN
dist/assets/ic_search-DREI2NzL.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

BIN
dist/assets/ic_share-DNIc1nf_.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
dist/assets/ic_stars_active-qa63FBqE.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
dist/assets/ic_stars_white-CxqAv7TF.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

BIN
dist/assets/ic_template_chip-CWZEuWV8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

BIN
dist/assets/ic_use_character-C9-8sFEF.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

BIN
dist/assets/ic_user-BLK-BFPI.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

BIN
dist/assets/icon-version-BXUx9Tuk.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

BIN
dist/assets/iconfont-DD4Q8r92.woff2

Binary file not shown.

BIN
dist/assets/iconfont-DiQjXL4c.woff

Binary file not shown.

BIN
dist/assets/iconfont-DojQABcm.ttf

Binary file not shown.

2
dist/assets/imageDragTransfer-apm0lmHd.js

@ -1,2 +0,0 @@
function v(p){return String(p??"").trim()}function N(p){const f=p.currentTarget;if(!f)return null;if(f instanceof HTMLImageElement)return f.complete&&f.naturalWidth>0&&f.naturalHeight>0?f:null;const g=f.querySelector("img");return g&&g.complete&&g.naturalWidth>0&&g.naturalHeight>0?g:null}function L(p){const f=Math.max(8,Number(p?.maxCacheCount??32)),g=p?.enableCanvasWarmup??!0,W=Math.max(1,Number(p?.maxWarmupPerCall??24)),y=p?.disableCanvasPreview??!1,l=new Map,w=new Map,c=new Map,x=new Set,d=document.createElement("div");d.style.width="1px",d.style.height="1px",d.style.position="fixed",d.style.top="-9999px",d.style.left="-9999px",d.style.opacity="0",document.body.appendChild(d);const E=e=>{const t=l.get(e);t?.parentNode&&t.parentNode.removeChild(t),l.delete(e),w.delete(e)},b=e=>{const t=c.get(e);t?.parentNode&&t.parentNode.removeChild(t),c.delete(e)},k=()=>{for(;l.size>f;){const e=l.keys().next().value;if(!e)break;E(e),b(e)}},C=e=>{if(!e.complete||e.naturalWidth<=0||e.naturalHeight<=0)return null;const t=120,a=document.createElement("canvas");a.width=t,a.height=t,a.style.width=`${t}px`,a.style.height=`${t}px`,a.style.position="fixed",a.style.top="-9999px",a.style.left="-9999px";const r=a.getContext("2d");if(!r)return null;const n=e.naturalWidth,s=e.naturalHeight,m=n/s,u=1;let o=0,i=0,h=n,P=s;return m>u?(h=s*u,o=(n-h)/2):m<u&&(P=n/u,i=(s-P)/2),r.drawImage(e,o,i,h,P,0,0,t,t),a},I=e=>{const t=v(e);if(!t)return null;const a=l.get(t);if(a)return l.delete(t),l.set(t,a),a;const r=new Image;return r.src=t,r.style.width="120px",r.style.height="120px",r.style.objectFit="cover",r.decoding="async",r.loading="eager",l.set(t,r),k(),r},T=e=>{const t=v(e);if(!t)return Promise.resolve();const a=w.get(t);if(a)return a;const r=I(t);if(!r)return Promise.resolve();const n=new Promise(s=>{if(r.complete&&r.naturalWidth>0){s();return}const m=()=>{r.removeEventListener("load",m),r.removeEventListener("error",m),s()};r.addEventListener("load",m,{once:!0}),r.addEventListener("error",m,{once:!0})}).then(async()=>{try{typeof r.decode=="function"&&await r.decode()}catch{}});return w.set(t,n),n},D=e=>{const t=v(e);return!t||c.has(t)?Promise.resolve():T(t).then(()=>{if(c.has(t))return;const a=l.get(t);if(!a)return;const r=C(a);r&&(document.body.appendChild(r),c.set(t,r))})};return{ensurePreviewImage:I,warmupPreviewImages:e=>{let t=0;e.forEach(a=>{if(t>=W)return;const r=v(a);if(!r||x.has(r))return;x.add(r),t+=1;const n=()=>{T(r),g&&!y&&D(r)};"requestIdleCallback"in window?window.requestIdleCallback(n,{timeout:1200}):setTimeout(n,0)})},startImageDrag:({evt:e,dragUrl:t,previewUrl:a,preferDomDragImage:r})=>{const n=v(t);if(!n||!e.dataTransfer)return!1;if(e.dataTransfer.clearData(),e.dataTransfer.setData("text/plain",n),e.dataTransfer.setData("text/uri-list",n),e.dataTransfer.setData("text/html",`<img src="${n}" />`),r){const o=N(e);if(o){const i=C(o);if(i){document.body.appendChild(i);const h=`__dom_preview__:${n}`;return b(h),c.set(h,i),e.dataTransfer.setDragImage(i,60,60),!0}}}const s=v(a??n),m=I(s);let u=y?null:c.get(s);if(!u&&!y&&m){const o=C(m);o?(document.body.appendChild(o),c.set(s,o),u=o):D(s)}if(!u){const o=N(e);if(o){const i=C(o);i&&(document.body.appendChild(i),c.set(s,i),u=i)}}return u?e.dataTransfer.setDragImage(u,60,60):e.dataTransfer.setDragImage(d,0,0),!0},dispose:()=>{l.forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),c.forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),l.clear(),w.clear(),c.clear(),x.clear(),d.parentNode&&d.parentNode.removeChild(d)}}}export{L as c};
//# sourceMappingURL=imageDragTransfer-apm0lmHd.js.map

1
dist/assets/imageDragTransfer-apm0lmHd.js.map

File diff suppressed because one or more lines are too long

1
dist/assets/index-2zgKzmDo.css

@ -1 +0,0 @@
@charset "UTF-8";.createPage__myCreationsWrap{padding:0 29px;box-sizing:border-box}.createPage__myCreationsGrouped{display:flex;flex-direction:column;gap:24px}.createPage__myCreationsDaySection{margin:0;padding:0}.createPage__myCreationsDayTitle{margin:0 0 20px;padding:0;font-size:16px;font-weight:500;line-height:1.4;color:#666}.createPage__myCreationsList{display:flex;flex-wrap:wrap;gap:15px;margin:0;padding:0;list-style:none}@media (max-width: 640px){.createPage__myCreationsList{grid-template-columns:repeat(2,minmax(0,1fr))}}.createPage__myCreationsListItem{width:260px;height:260px;margin-bottom:20px;padding:0;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#f5f5f5;cursor:pointer}.createPage__myCreationsListItem_video{position:relative}.createPage__myCreationsVideoHoverOverlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;background:#00000073;opacity:1;transition:opacity .18s ease;pointer-events:none}.createPage__myCreationsListItem_video:hover .createPage__myCreationsVideoHoverOverlay{opacity:0;background:transparent}.createPage__myCreationsVideoHoverIcon{width:56px;height:56px;display:block;max-width:100%;max-height:100%}@keyframes createPage__myCreationsPendingSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.createPage__myCreationsListItem_pending{border-radius:9px;background:linear-gradient(136deg,#f0f0f0 36.14%,#d6ceef 99.52%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.createPage__myCreationsListItem_pending .createPage__myCreationsPendingIcon{width:70px;height:70px;display:block;animation:createPage__myCreationsPendingSpin 4s linear infinite}.createPage__myCreationsListItem_pending .createPage__myCreationsPendingLabel{color:#6841ea4d;text-align:center;font-family:Source Han Sans CN;font-size:12px;font-style:normal;font-weight:500;line-height:normal}.createPage__myCreationsThumb{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.createPage__myCreationsThumb_empty{width:100%;height:100%;min-height:80px;background:#ebebeb}.createPage__myCreationsSentinel{height:1px;margin-top:8px;pointer-events:none}.createPage__myCreationsLoadMore{margin-top:8px;text-align:center}@media (max-width: 520px){.createPage__myCreationsWrap{padding-left:16px;padding-right:16px}.createPage__filters{justify-content:flex-start}.createPage__batchBtn{align-self:flex-end}}

2
dist/assets/index-3jBeF7Sc.js

@ -1,2 +0,0 @@
import{j as a}from"./markdown-vendor-BZI_VWzW.js";import{u as i,r as o}from"./data-vendor-BOGugMqL.js";import{e as c,O as n}from"./react-vendor-CmPQC3tV.js";const l=["myCreations","inspiration","favorite"],m={myCreations:"my-creations",inspiration:"inspiration",favorite:"favorite"};function x(){const{t:r}=i(),t=o.useId();return a.jsxs("div",{className:"createPage",children:[a.jsx("header",{className:"createPage__toolbar createPage__toolbar_primary_only",children:a.jsx("div",{className:"createPage__primaryTabs",role:"tablist","aria-label":r("pages.create.toolbarAria"),children:l.map(e=>a.jsx(c,{id:`${t}-tab-${e}`,to:m[e],end:!0,role:"tab",className:({isActive:s})=>classNames("createPage__primaryTab",s&&"createPage__primaryTab_active"),children:r(`pages.create.tabs.${e}`)},e))})}),a.jsx("div",{className:"createPage__outlet",children:a.jsx(n,{context:t})})]})}export{x as default};
//# sourceMappingURL=index-3jBeF7Sc.js.map

1
dist/assets/index-3jBeF7Sc.js.map

@ -1 +0,0 @@
{"version":3,"file":"index-3jBeF7Sc.js","sources":["../../src/pages/Create/index.tsx"],"sourcesContent":["import { useId } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { NavLink, Outlet } from \"react-router-dom\";\nimport \"./index.scss\";\n\ntype PrimaryTabId = \"myCreations\" | \"inspiration\" | \"favorite\";\n\nconst PRIMARY_TAB_ORDER: PrimaryTabId[] = [\n \"myCreations\",\n \"inspiration\",\n \"favorite\",\n];\n\n/** 与 router 子 path 一致(相对 ROUTES.CREATE) */\nconst PRIMARY_TAB_PATH: Record<PrimaryTabId, string> = {\n myCreations: \"my-creations\",\n inspiration: \"inspiration\",\n favorite: \"favorite\",\n};\n\n\nexport default function Create() {\n const { t } = useTranslation();\n const tabIdPrefix = useId();\n\n return (\n <div className=\"createPage\">\n <header className=\"createPage__toolbar createPage__toolbar_primary_only\">\n <div className=\"createPage__primaryTabs\" role=\"tablist\" aria-label={t(\"pages.create.toolbarAria\")}>\n {PRIMARY_TAB_ORDER.map((id) => (\n <NavLink\n key={id}\n id={`${tabIdPrefix}-tab-${id}`}\n to={PRIMARY_TAB_PATH[id]}\n end\n role=\"tab\"\n className={({ isActive }) => classNames(\"createPage__primaryTab\", isActive && \"createPage__primaryTab_active\")}\n >\n {t(`pages.create.tabs.${id}`)}\n </NavLink>\n ))}\n </div>\n </header>\n\n <div className=\"createPage__outlet\">\n <Outlet context={tabIdPrefix} />\n </div>\n </div>\n );\n}\n"],"names":["PRIMARY_TAB_ORDER","PRIMARY_TAB_PATH","Create","t","useTranslation","tabIdPrefix","useId","jsxs","jsx","id","NavLink","isActive","Outlet"],"mappings":"6JAOA,MAAMA,EAAoC,CACxC,cACA,cACA,UACF,EAGMC,EAAiD,CACrD,YAAa,eACb,YAAa,cACb,SAAU,UACZ,EAGA,SAAwBC,GAAS,CAC/B,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAA,EACRC,EAAcC,EAAAA,MAAA,EAEpB,OACEC,EAAAA,KAAC,MAAA,CAAI,UAAU,aACb,SAAA,CAAAC,MAAC,UAAO,UAAU,uDAChB,SAAAA,MAAC,MAAA,CAAI,UAAU,0BAA0B,KAAK,UAAU,aAAYL,EAAE,0BAA0B,EAC7F,SAAAH,EAAkB,IAAKS,GACtBD,EAAAA,IAACE,EAAA,CAEC,GAAI,GAAGL,CAAW,QAAQI,CAAE,GAC5B,GAAIR,EAAiBQ,CAAE,EACvB,IAAG,GACH,KAAK,MACL,UAAW,CAAC,CAAE,SAAAE,CAAA,IAAe,WAAW,yBAA0BA,GAAY,+BAA+B,EAE5G,SAAAR,EAAE,qBAAqBM,CAAE,EAAE,CAAA,EAPvBA,CAAA,CASR,EACH,CAAA,CACF,EAEAD,EAAAA,IAAC,OAAI,UAAU,qBACb,eAACI,EAAA,CAAO,QAASP,EAAa,CAAA,CAChC,CAAA,EACF,CAEJ"}

2
dist/assets/index-5rXb67Va.js

@ -1,2 +0,0 @@
import{j as r}from"./markdown-vendor-BZI_VWzW.js";import{u as U,r as a}from"./data-vendor-BOGugMqL.js";import{g as Y}from"./react-vendor-CmPQC3tV.js";import{T as q,U as G,o as V,e as Z}from"./index-BxSU1Bs1.js";import"./arco-vendor-gN7EHfgO.js";const h=20,M=[{title:"image",assetType:"1"},{title:"video",assetType:"2"},{title:"template",assetType:"4"},{title:"character",assetType:"5"}];function A(o){const s=o;return s?.data?.list??s?.list??[]}function B(o){let s=o?.parentElement??null;for(;s!=null;){const g=window.getComputedStyle(s).overflowY;if((g==="auto"||g==="scroll")&&s.scrollHeight>s.clientHeight)return s;s=s.parentElement}return null}function J(o){const s=o?.id??o?.assetId;return s==null||s===""?null:String(s)}function te({tabIdPrefix:o}){const{t:s}=U(),[v,g]=Y(),[l,N]=a.useState("1"),[u,p]=a.useState([]),[b,j]=a.useState(1),[f,d]=a.useState(!0),[m,F]=a.useState(!1),[P,w]=a.useState(!1),[y,C]=a.useState(null),E=a.useRef(null),S=a.useRef(!1),i=a.useRef(0),I=a.useRef(async()=>{});a.useEffect(()=>{const e=v.get("type");e!=null&&M.some(t=>t.assetType===e)&&N(e)},[v]);const L=a.useCallback(e=>({assetType:l,page:e,pageSize:h}),[l]),_=a.useCallback(e=>l==="5"?q({page:e,pageSize:h}):G(L(e)),[L,l]);a.useEffect(()=>{let e=!1;i.current+=1;const t=i.current;return j(1),d(!0),p([]),F(!0),C(null),_(1).then(n=>{if(e||i.current!==t)return;const c=A(n);p(c),d(c.length>=h)}).catch(n=>{e||i.current!==t||(C(n instanceof Error?n:new Error(String(n))),p([]),d(!1))}).finally(()=>{!e&&i.current===t&&F(!1)}),()=>{e=!0}},[_,l]);const D=a.useCallback(async()=>{if(!f||S.current||m||P)return;S.current=!0,w(!0);const e=i.current,t=b+1;try{const n=await _(t);if(i.current!==e)return;const c=A(n);c.length===0?d(!1):(p(H=>[...H,...c]),j(t),d(c.length>=h))}catch{i.current===e&&d(!1)}finally{S.current=!1,w(!1)}},[_,f,m,P,b]);I.current=D,a.useEffect(()=>{const e=E.current;if(!e||!f||m)return;const t=B(e),n=new IntersectionObserver(c=>{c[0]?.isIntersecting&&I.current()},{root:t,rootMargin:"200px",threshold:0});return n.observe(e),()=>n.disconnect()},[f,m,u.length]);const z=a.useCallback(e=>{N(e),g(t=>{const n=new URLSearchParams(t);return n.set("type",String(e)),n},{replace:!0})},[g]),x=a.useCallback(async e=>{const t=e.assetId;t!=null&&await V({assetId:t})},[]),k=a.useCallback(async e=>{Z({id:e.id})},[]),R=a.useCallback(e=>{e.currentTarget.querySelector("video")?.play()},[]),T=a.useCallback(e=>{e.currentTarget.querySelector("video")?.pause()},[]),O=a.useMemo(()=>M.map(({title:e,assetType:t})=>({assetType:t,label:s(`pages.create.filters.${e}`)})),[s]),$=a.useMemo(()=>u.map(e=>{const t=J(e)??`row-${l}`;return l=="2"?r.jsx("li",{className:"myFavoritePanel__item",onClick:()=>void x(e),onMouseEnter:R,onMouseLeave:T,children:r.jsx("video",{className:"myFavoritePanel__media",src:e.asset.video,muted:!0,playsInline:!0,loop:!0,preload:"metadata",poster:e.asset.cover,"aria-hidden":!0})},t):l=="1"||l=="4"?r.jsx("li",{className:"myFavoritePanel__item",onClick:()=>void x(e),children:r.jsx("img",{className:"myFavoritePanel__media",src:e?.asset?.images?.[0],loading:"lazy"})},t):l=="5"?r.jsx("li",{className:"myFavoritePanel__item",onClick:()=>void k(e),children:r.jsx("img",{className:"myFavoritePanel__media",src:e.avatar,loading:"lazy"})},t):r.jsx("li",{className:"myFavoritePanel__item myFavoritePanel__item_empty",children:r.jsx("span",{className:"myFavoritePanel__emptyLabel",children:s("pages.create.panels.favorite.noPreview")})},t)}),[x,k,u,R,T,l,s]);return r.jsxs("div",{className:"createPage__panelShell myFavoritePanel",children:[r.jsx("div",{className:"createPage__subRow myFavoritePanel__subRow",children:r.jsx("div",{className:"createPage__filters",role:"group","aria-label":s("pages.create.filtersAria"),"data-active-tab":l,children:O.map(({assetType:e,label:t})=>r.jsx("button",{type:"button","data-type":e,"data-selected":l===e,"aria-pressed":l===e,className:classNames("createPage__filterPill",l===e&&"createPage__filterPill_active"),onClick:()=>z(e),children:t},e))})}),r.jsxs("section",{className:"createPage__panel createPage__panelScroll createPage__panel_below_filters",id:`${o}-panel-favorite`,role:"tabpanel","aria-labelledby":`${o}-tab-favorite`,children:[m&&u.length===0?r.jsx("p",{className:"createPage__panelStatus",children:s("common.loading")}):null,y?r.jsx("p",{className:"createPage__panelStatus createPage__panelStatus_error",children:y.message}):null,!m&&!y&&u.length===0?r.jsx("p",{className:"createPage__panelPlaceholder",children:s("pages.create.panels.favorite.placeholder")}):null,u.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{className:"myFavoritePanel__list",role:"list",children:$}),f?r.jsx("div",{ref:E,className:"myFavoritePanel__sentinel","aria-hidden":!0}):null,P?r.jsx("p",{className:"createPage__panelStatus myFavoritePanel__loadMore",children:s("common.loading")}):null]}):null]})]})}export{te as default};
//# sourceMappingURL=index-5rXb67Va.js.map

1
dist/assets/index-5rXb67Va.js.map

File diff suppressed because one or more lines are too long

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save