Code Monkey home page Code Monkey logo

wehalo's People

Contributors

gxz-ngu avatar hualuoyixiao avatar pawnzzi avatar ruibaby avatar sav7ng avatar uknownothingsnow avatar xtanyu 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  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  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  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  avatar  avatar  avatar  avatar

wehalo's Issues

点子征集帖✨

有什么好想法和好提议可以在下面提出来哦,还有用了WeHalo发布小程序的可以贴在下面哦。

使用 WeHalo 部署的小程序在此列出

如果你不想被 Github 的通知邮件打扰,建议评论之后点击右侧的 Unsubscribe。

如果你是用的 WeHalo,以供其他正在观望的用户查看具体效果。

格式如下:

小程序名称:爱敲代码的猫(https://aquan.run)

小程序码:

gh_95b7370bf8c9_430.jpg

能不能发个针对 小白的教程啊

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

关于管理员的问题

在miniprogram\pages\index\index.js里的第116行处,云函数获取用户openID,作者写的是res.result.openid,应该是写错了,正确的:res.result.userInfo.openId,导致无法识别管理员,后面还有类似几处错误,可直接批量修改

微信小程序 查看文章详情增加浏览数功能

1、替换PostController.java 方法,然后重新编译halo 生成 PostController.class 文件,然后替换jar包里面的 PostController.class文件,最后重启jar就可以了。

@GetMapping("{postId:\d+}")
@ApiOperation("Gets a post")
public BasePostDetailDTO getBy(@PathVariable("postId") Integer postId,
@RequestParam(value = "formatDisabled", required = false, defaultValue = "true") Boolean formatDisabled,
@RequestParam(value = "sourceDisabled", required = false, defaultValue = "false") Boolean sourceDisabled) {
BasePostDetailDTO detailDTO = postService.convertToDetail(postService.getById(postId));

    if (formatDisabled) {
        // Clear the format content
        detailDTO.setFormatContent(null);
    }

    if (sourceDisabled) {
        // Clear the original content
        detailDTO.setOriginalContent(null);
    }
    postService.increaseVisit(postId);
    return detailDTO;
}

小程序名称:IT技术分享社区
IT技术分享社区
gh_32334eb097cd_430

如何获取halo的tocken呀,后台里没有找到

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

评论功能

博主有打算在WeHalo接入评论功能吗?

如何部署呢?是云开发吗?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

部署完报错

Describe the bug
A clear and concise description of what the bug is.
image

image

request合法域名已正确配置

image
上面参数已经正确配置,

Additional context
Add any other context about the problem here.
部署完成后报错 1.
VM699:1 Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./components/addTips/wh-addTips.wxss:33:9)
image

非常感谢作者

期望:

  1. 希望未来的版本能有文章的类别分类,本人直男审美不知道加在哪里好,就先不弄了。。。

ps

基于WeHalo的个人微信小程序刚刚申请上线了,名字:编程挺好玩。:smile:
在克隆下来的代码的基础上,做了些许细节上的改动,一些细节可以讨论下:

  1. 我把index页面和hola页面上利用getStorageSync和setStorageSync 保存了用户的openid,这样在一定程度上可以减少云函数的调用。
  2. 点赞,也是利用getStorageSync和setStorageSync 保存了用户是否点赞了该文章,调用halo 的接口实现likes+1(不过这个可以使用云开发的数据库来保存单篇文章所有的点赞用户,然后文章界面可以显示一排谁谁谁点赞了这篇文章,头像之类的)。

小程序增加点赞功能的方法

只需要在post.js 增加以下方法就可以了

//点赞功能
Likes: function () {
    var that = this;
    var urlLikeList = app.globalData.url + '/api/content/posts/'+that.data.postId+'/likes';
    var token = app.globalData.token;
    var params = {            
    };
    //@todo 网络请求API数据
    request.requestPostApi(urlLikeList, token, params, this, this.successSendLike, this.failSendLike);  
},
// 点赞成功回调
successSendLike: function (res, selfObj) {
    var that = this;        
    wx.showToast({
        title: '感谢你的点赞!',
        icon: 'none',
        duration: 2000
    });
    // 设置点赞数+1
    var likes = Number(parseInt(that.data.postLikes) + 1);   
    console.log(likes);
    that.setData({
         postLikes: likes       
    })
},
//点赞失败回调
failSendLike: function (res, selfObj) {
    wx.showToast({
        title: '点赞失败,请联系作者!',
        icon: 'none',
        duration: 2000
    })
},

小程序名称:IT技术分享社区
IT技术分享社区
gh_32334eb097cd_430

关于adminOpenid找不到问题

Describe the bug
RT,我在README.md中获取到了解决的方案
https://gitee.com/aquanrun/WeHalo/issues/I12J1G
但是现在这个方案失效了

在本地运行云函数的时候出现以下情况

DevTools failed to load SourceMap: Could not parse content for file:///E:/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F/WeHalo/cloudfunctions/get_wx_context/node_modules/bson/lib/bson.js.map: Unexpected end of JSON input
DevTools failed to load SourceMap: Could not parse content for file:///E:/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F/WeHalo/cloudfunctions/get_wx_context/node_modules/bson/lib/binary.js.map: Unexpected end of JSON input
DevTools failed to load SourceMap: Could not parse content for file:///E:/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F/WeHalo/cloudfunctions/get_wx_context/node_modules/bson/lib/ensure_buffer.js.map: Unexpected end of JSON input


QQ图片20210404172524

按类别查看文章的功能

也不知提出新功能需求是否合适,还是试一下。

不知能否在小程序里面增加上按类别显示文章的功能呢?现在对文章的显示,只是按照日期分页显示,但很多时候还是需要按类别去浏览的。

Wish to adapt halo v1.0

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

什么时候能接入typecho写的blog就好了

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

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.