• 主题模板
  • 【Joe2.0】Halo-theme-joe2.0 主题发布 🚀🚀🚀

还有发现一个就是代码块如果是“plain text”,复制按钮会失效,如果是“bash”,则可以正常复制。

    gugu 这个代码块复制按钮的问题也是升级halo1.5后出现的吗?

    • gugu 回复了此帖

      gugu
      通过查看这篇文章,了解到是由于 Halo 1.5 中对中文锚点进行了编码,导致前台无法通过元素 id 获取相应元素,从而无法得到相关元素的滚动位置导致的。

      只要在获取之前使用 decodeURIComponent 方法解码一下即可。后续一并做适配。

      qinhua 现在是升级了1.5.0出现的,不过我之前也没注意过...

      gugu 还有发现一个就是代码块如果是“plain text”,复制按钮会失效,如果是“bash”,则可以正常复制。

      刚刚我又测试了一下,比如这篇文章:https://blog.laoda.de/archives/useful-script 电脑上均可复制(chrome与Safari都没问题),手机端无法复制(Safari不可以,Chrome可以) 手机是iOS15.4

      • gugu 回复了此帖

        gugu 貌似是我自己这边的问题,我刷新了一下之后,又都可以正常复制了😵

        20 天 后

        请问一下,气球背景卡顿是什么原因呢

          最新版halo用docker部署,使用此主题。测试邮件发送成功,但是评论不会发邮件通知。查看日志信息:

          # 这里是测试成功了
          2022-04-19 15:50:05.854  INFO 8 --- [pool-5-thread-2] run.halo.app.mail.AbstractMailService    : Sent an email to [[xxxxxxxxxxx@qq.com]] successfully, subject: [hahha], sent date: [Tue Apr 19 15:50:05 CST 2022]
          # 这里是评论发送邮件失败信息
          2022-04-19 15:51:09.281 ERROR 8 --- [        task-53] .a.i.SimpleAsyncUncaughtExceptionHandler : Unexpected exception occurred invoking async method: public void run.halo.app.listener.comment.CommentEventListener.handleCommentNewEvent(run.halo.app.event.comment.CommentNewEvent)
          
          run.halo.app.exception.NotFoundException: PostComment was not found or has been deleted
          	at run.halo.app.service.base.AbstractCrudService.lambda$getById$0(AbstractCrudService.java:139) ~[classes/:1.5.2]
          	at java.base/java.util.Optional.orElseThrow(Unknown Source) ~[na:na]
          	at run.halo.app.service.base.AbstractCrudService.getById(AbstractCrudService.java:138) ~[classes/:1.5.2]
          	at run.halo.app.service.base.AbstractCrudService$$FastClassBySpringCGLIB$$d181db6d.invoke(<generated>) ~[classes/:1.5.2]
          	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.18.jar:5.3.18]
          	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689) ~[spring-aop-5.3.18.jar:5.3.18]
          	at run.halo.app.service.impl.PostCommentServiceImpl$$EnhancerBySpringCGLIB$$27d79334.getById(<generated>) ~[classes/:1.5.2]
          	at run.halo.app.listener.comment.CommentEventListener.handleCommentNewEvent(CommentEventListener.java:117) ~[classes/:1.5.2]
          	at run.halo.app.listener.comment.CommentEventListener$$FastClassBySpringCGLIB$$7fe2191c.invoke(<generated>) ~[classes/:1.5.2]
          	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.18.jar:5.3.18]
          	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783) ~[spring-aop-5.3.18.jar:5.3.18]
          	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.18.jar:5.3.18]
          	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) ~[spring-aop-5.3.18.jar:5.3.18]
          	at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.3.18.jar:5.3.18]
          	at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
          	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
          	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
          	at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]

          蹲个大佬求解释,感谢。

            libo-sober run.halo.app.exception.NotFoundException: PostComment was not found or has been deleted

            这里run.halo.app.listener.comment.CommentEventListener的这个postcomment函数有问题吗,我也没动,直接docker拉的最新版镜像。

            宇生 目前canvas动画没做优化,可能会存在页面掉帧现象,后续会抽版本做性能优化

            一个问题,评论模块一定要填qq邮箱什么的吗?能不能去掉这些,我没找到在哪去除这个的

              King 邮箱接口中是必传的吧,当然也可以在评论组件中写死

              • King 回复了此帖