YunYouJun / hexo-theme-yun

☁️ A fast & light & lovely theme for Hexo. 一个对可爱自以为是的 Hexo 主题。
https://yun.yunyoujun.cn
MIT License
1.38k stars 168 forks source link

pjax开启后部分冲突问题(meting播放器和相册我的私密解锁界面) #195

Open showmaker-hub opened 2 years ago

showmaker-hub commented 2 years ago

pjax和界面部分元素的冲突问题

  我是引入了你主题配置文档里有个隐藏的load-aplayer(底部播放器),实现了切换界面音乐不会停止,同时看板娘也能实现切换界面不刷新,但是出现了几个问题

我网上搜了解决办法,只有一条,但是我不太会用,如果能实现即可完美。点我转到,小云可以去看看

呜呜! 希望能解决呀 呜呜,主要我加了播放器和看板娘,如果不用pjax的话,一卡一卡的,希望小云能想想办法 QQ截图20211026180605

zizhaolaisuimuqu commented 2 years ago

那个aplayer咋用……我将值修改成true好像没啥反应诶

showmaker-hub commented 2 years ago

修改true是meting播放器,就是我图一的那个可以用,还有一个load-aplayer,就是底部播放器

---原始邮件--- 发件人: @.> 发送时间: 2021年11月1日(周一) 凌晨1:10 收件人: @.>; 抄送: @.**@.>; 主题: Re: [YunYouJun/hexo-theme-yun] pjax和界面部分元素的冲突问题 (Issue #195)

那个aplayer咋用……我将值修改成true好像没啥反应诶

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

zizhaolaisuimuqu commented 2 years ago

修改true是meting播放器,就是我图一的那个可以用,还有一个load-aplayer,就是底部播放器

噢噢,我用上了aplayer,但是这个aplayer似乎只要切换页面歌曲就会重新播放,就……很烦 我看您似乎没有这个问题。

showmaker-hub commented 2 years ago

vscode搜索pjax,yun.yml里面改成true就可以了,虽然可以全局播放器,但是会出现我这个issue里反馈的一系列问题

---原始邮件--- 发件人: @.> 发送时间: 2021年11月1日(周一) 中午11:59 收件人: @.>; 抄送: @.**@.>; 主题: Re: [YunYouJun/hexo-theme-yun] pjax和界面部分元素的冲突问题 (Issue #195)

修改true是meting播放器,就是我图一的那个可以用,还有一个load-aplayer,就是底部播放器

噢噢,我用上了aplayer,但是这个aplayer似乎只要切换页面歌曲就会重新播放,就……很烦 我看您似乎没有这个问题。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

zizhaolaisuimuqu commented 2 years ago

vscode搜索pjax,yun.yml里面改成true就可以了,虽然可以全局播放器,但是会出现我这个issue里反馈的一系列问题 ---原始邮件--- 发件人: @.> 发送时间: 2021年11月1日(周一) 中午11:59 收件人: @.>; 抄送: @.**@.>; 主题: Re: [YunYouJun/hexo-theme-yun] pjax和界面部分元素的冲突问题 (Issue #195) 修改true是meting播放器,就是我图一的那个可以用,还有一个load-aplayer,就是底部播放器 噢噢,我用上了aplayer,但是这个aplayer似乎只要切换页面歌曲就会重新播放,就……很烦 我看您似乎没有这个问题。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

image

image 请问我设置对了么?我这样切换页面时还是会中断重来。我是否有哪一步遗漏了呢?

showmaker-hub commented 2 years ago

load-aplayer打开,aplayer里的meting打开。前者需要引入load-aplayer.js。还有这是两个播放器,前者是底部播放器,后者是插件形式,后者目前没法配合pjax,前者可以

------------------ 原始邮件 ------------------ 发件人: "YunYouJun/hexo-theme-yun" @.>; 发送时间: 2021年11月1日(星期一) 中午12:34 @.>; @.**@.>; 主题: Re: [YunYouJun/hexo-theme-yun] pjax和界面部分元素的冲突问题 (Issue #195)

vscode搜索pjax,yun.yml里面改成true就可以了,虽然可以全局播放器,但是会出现我这个issue里反馈的一系列问题 … ---原始邮件--- 发件人: @.> 发送时间: 2021年11月1日(周一) 中午11:59 收件人: @.>; 抄送: @.@.>; 主题: Re: [YunYouJun/hexo-theme-yun] pjax和界面部分元素的冲突问题 (Issue #195) 修改true是meting播放器,就是我图一的那个可以用,还有一个load-aplayer,就是底部播放器 噢噢,我用上了aplayer,但是这个aplayer似乎只要切换页面歌曲就会重新播放,就……很烦 我看您似乎没有这个问题。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

请问我设置对了么?我这样切换页面时还是会中断重来。我是否有哪一步遗漏了呢?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

showmaker-hub commented 2 years ago

小云呐,感觉要彻底解决需要重写/js/pjax.js代码,我本来是想着用add.windows 新跳转一个界面,虽然可以成功实现打开的新网页元素都能加载(meting播放器),但是原网页刷新pjax就会失效

YunYouJun commented 2 years ago

全局播放器需要开启 PJAX。(不过我们真的需要全局播放器吗?)

YunYouJun commented 2 years ago

小云呐,感觉要彻底解决需要重写/js/pjax.js代码,我本来是想着用add.windows 新跳转一个界面,虽然可以成功实现打开的新网页元素都能加载(meting播放器),但是原网页刷新pjax就会失效

没明白,失效的具体是哪里。

showmaker-hub commented 2 years ago

小云呐,感觉要彻底解决需要重写/js/pjax.js代码,我本来是想着用add.windows 新跳转一个界面,虽然可以成功实现打开的新网页元素都能加载(meting播放器),但是原网页刷新pjax就会失效

没明白,失效的具体是哪里。

设置新跳转网页,新网页打开后元素正常加载,但是原网页的pjax开跟没开一样,跳转看板娘还有播放器都会刷新。所以我觉得这个工作还是你亲自来吧

YunYouJun commented 2 years ago

我本地测试无异常……是否有在线复现案例。

showmaker-hub commented 2 years ago

tianhao.ltd

------------------ 原始邮件 ------------------ 发件人: "YunYouJun/hexo-theme-yun" @.>; 发送时间: 2021年11月3日(星期三) 晚上6:42 @.>; @.**@.>; 主题: Re: [YunYouJun/hexo-theme-yun] pjax开启后部分冲突问题(meting播放器和相册我的私密解锁界面) (Issue #195)

我本地测试无异常……是否有在线复现案例。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

YunYouJun commented 2 years ago

aplayer 可设置 asset_inject 来避免资源重复插入。

此处为站点的 _config.yml 而非主题配置 yun.yml

aplayer:
  cdn: https://cdn.jsdelivr.net/npm/aplayer@latest/dist/APlayer.min.js
  style_cdn: https://cdn.jsdelivr.net/npm/aplayer@latest/dist/APlayer.min.css
  meting: true
  meting_cdn: https://cdn.jsdelivr.net/npm/meting@1/dist/Meting.min.js
  asset_inject: false
showmaker-hub commented 2 years ago

可是我就是这样设置的,跟你一样,连cdn的版本都一样

---原始邮件--- 发件人: @.> 发送时间: 2021年12月12日(周日) 下午5:40 收件人: @.>; 抄送: @.**@.>; 主题: Re: [YunYouJun/hexo-theme-yun] pjax开启后部分冲突问题(meting播放器和相册我的私密解锁界面) (Issue #195)

aplayer 可设置 asset_inject 来避免资源重复插入。 aplayer: cdn: @./dist/APlayer.min.js style_cdn: @./dist/APlayer.min.css meting: true meting_cdn: @.***/dist/Meting.min.js asset_inject: false

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

YunYouJun commented 2 years ago

😖 放弃

showmaker-hub commented 2 years ago

呜呜好的,我还是用嵌入的iframe吧

------------------ 原始邮件 ------------------ 发件人: "YunYouJun/hexo-theme-yun" @.>; 发送时间: 2021年12月12日(星期天) 晚上6:29 @.>; @.**@.>; 主题: Re: [YunYouJun/hexo-theme-yun] pjax开启后部分冲突问题(meting播放器和相册我的私密解锁界面) (Issue #195)

😖 放弃

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Ezgx commented 1 year ago

你这个伊斯特瓦尔看板娘的模型和安装方式给下,我想把miku换成这个

showmaker-hub commented 1 year ago

这个好看是好看,但是这个是很早的了,看板娘会影响网站加载速度,后面我就去掉了

---原始邮件--- 发件人: @.> 发送时间: 2022年10月12日(周三) 晚上10:36 收件人: @.>; 抄送: @.**@.>; 主题: Re: [YunYouJun/hexo-theme-yun] pjax开启后部分冲突问题(meting播放器和相册我的私密解锁界面) (Issue #195)

你这个伊斯特瓦尔看板娘的模型和安装方式给下,我想把miku换成这个

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Sayafx commented 10 months ago

我本地测试无异常……是否有在线复现案例。

我也遇到了相同的情况,开启pjax后 用4everland和vercel部署 全局播放器,只要切换页面就会暂停需要重新播放 相册部分可以打开gallery但是无法点击图片放大,刷新页面后恢复,没有使用密码所以不知道密码什么情况 本地测试 相册一切正常 全局播放器的问题依然存在 我这里有复现案例,不知道问题能否解决呢 相册在侧边栏进入

pjax开启

pjax开启

https://kawa2split-4qovsxec-sayafxblog.4everland.app/

pjax关闭

pjax关闭

https://kawa2split-qmurtih0-sayafxblog.4everland.app/

YunYouJun commented 10 months ago

由于 hexo 的过于静态设计,我已放弃使用 hexo 维护 pjax 版本。 并开发了 valaxyvalaxy-theme-yun 作为替代。 可访问 yunyoujun.cn 测试页面切换效果。