Code Monkey home page Code Monkey logo

plugin-moments's People

Contributors

chengzhongxue avatar guqing avatar lilgg avatar ruibaby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

plugin-moments's Issues

希望支持标签功能

支持通过标签关联 moment,并能通过
最好是内容中包含 #标签 则自动创建或关联标签功能

瞬间 https请求报错block:mixed-content

瞬间无法正常访问,控制台输出错误

jquery.min.js:2  Mixed Content: The page at 'https://www.iamdt.cn/photos' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.iamdt.cn/apis/api.plugin.halo.run/v1alpha1/plugins/PluginPhotos/photos'. This request has been blocked; the content must be served over HTTPS.
send @ jquery.min.js:2
ajax @ jquery.min.js:2
S.<computed> @ jquery.min.js:2
getJSON @ jquery.min.js:2
t @ photos.min.js?v=1.1.6:1
(anonymous) @ photos.min.js?v=1.1.6:1
e @ jquery.min.js:2
t @ jquery.min.js:2
setTimeout(异步)
(anonymous) @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
fire @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
B @ jquery.min.js:2
jquery.min.js:2  Mixed Content: The page at 'https://www.iamdt.cn/photos' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.iamdt.cn/apis/api.plugin.halo.run/v1alpha1/plugins/PluginPhotos/photos'. This request has been blocked; the content must be served over HTTPS.
send @ jquery.min.js:2
ajax @ jquery.min.js:2
S.<computed> @ jquery.min.js:2
getJSON @ jquery.min.js:2
t @ photos.min.js?v=1.1.6:1
IntersectionObserver.threshold @ photos.min.js?v=1.1.6:1

疑似浏览器不允许在https页面里嵌入http的请求。

评论

瞬间目前支持喜欢、分享,后续是否支持像你博客一样支持评论
halo版本:2.7.0 插件版本:1.2.0

moments 预览优化

您好,我在使用瞬间碰到了一个问题想资讯一下,瞬间在后台预览的时候和编辑的时候呈现的格式不太一样,比如下图中编辑时有空行,预览时没有空行,没有空行的预览看起来文字太过紧密,这里能优化成增加空行的版本么?

感觉可以优化的方向有两个

  1. 预览时需要增加空行,否则文字多了看起来过于紧密
  2. 字体大小可以和编辑时保持一致,看起来可能会更舒适一些

备注:前台主题中看的时候也是带空行的

图片 图片 图片

升级编辑器

目前 @halo-dev/richtext-editor 已经更新了多个版本,且在 Console 中已经排除了这个库的依赖,期望更新到最新版本。

提供获取单个瞬间详情的接口

目前提供的接口中只有自动生成的 moment.halo.run/v1alpha1/Moment 分组中的接口可以获取单个 moment 详情,但是其中不包含点赞数、评论数等信息。
image

建议在 api.plugin.halo.run/v1alpha1/Moment 分组中增加获取单个 moment 详情的接口。
image

随机图片可以和图片库组合

不是使用外部api 直接使用自己图库出随机图片 可以免去大佬你服务器的压力 还有大佬我的标签云和分类雷达 显示不出来
1686739434048
1686739446311

关于瞬间的插件

希望在瞬间发的内容,可以在首页显示,这样大家也能看到,

瞬间有序列表 bug

瞬间有序列表在 编辑时,预览时,主题展示 出现不同的状态,编辑时是正常的 markdown,预览时 markdown 中的缩进消失了,主题展示时有的缩进有,有的缩进没有,序号出现了重复

下面的三张图片展示了同一段文字在不同场景时的效果

编辑时

图片

预览时

图片

主题展示

图片

编辑页面输入 # 号并输入检索内容后,选中的标签无法生效

问题描述

  1. 在编辑页面输入 # 号并输入检索内容,检索到两条以上数据时。

  2. 选中非首条数据,按下回车键。
    image

  3. 标签会将当前输入的检索内容变为标签,而不是选中的内容。
    image

此问题应该与 https://github.com/ueberdosis/tiptap/blob/1c5c087641162dc9d82814aaa84fcdc267469545/packages/core/src/InputRule.ts#L233C7-L233C20 有关。

当按下回车时,检索的内容符合输入规则,因此 tiptap 会将其转换为 Tag,并且不会再继续执行其他的 handleKeyDown 事件了。

/kind bug

更新halo到2.11.2后出现新增“瞬间”前台不显示问题

  • halo: 2.11.2
  • 瞬间: 1.4.0

问题描述

当halo更新到2.11.2 后,在瞬间中新增的瞬间内容在前台不会正常展示。只会展示历史的瞬间内容。
通过查看F12发现代码没有正常展示出来。是否存在新版本的兼容性问题?
通过查看halor日志发现后台没有报错。

相关截图

image image

无法移除已添加的图片

Halo 版本

2.4.1

插件版本

1.0.0

问题描述

在编辑器添加图片之后,点击删除按钮无效。

/kind bug
/assign

瞬间后台标签过滤异常

当前 moments 标签过滤与预期效果不符:

  1. 点击 moments,已经处于过滤状态并且路由也正确的情况下,未能显示过滤条件,如下所示:
    image

  2. 有过滤条件显示时,点击删除过滤条件,列表数据正常返回所有数据,但过滤条件和路由仍旧处于过滤状态,如下所示:
    image

/kind bug

请求多加入一种上传资源的方式。

瞬间这个插件,目前除了iframe,引入音视频资源只有一种方式,就是通过附件上传,通过附件不仅麻烦,还占用机器本地资源。能不能像halo后台编辑文章一样,直接通过链接来引入资源,这不更方便吗?大家用这个都是自备图床的人。或者说支持更多html标签也可以。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.