Giter VIP home page Giter VIP logo

solitudes's People

Contributors

dependabot[bot] avatar fossabot avatar naiba 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

Watchers

 avatar  avatar  avatar  avatar

solitudes's Issues

全文搜索这块的逻辑有问题

  1. 现在全文搜索搜到内容之后返回的是最新版本的文章,还是搜到内容的版本的文章?

  2. 为什么带有标点符号的句子被拆成了,单个的字?

优化建议

1.可以借鉴hexo的某些不错的特性

  • hexo new post
    • 本地写作,一键上传
    • 分类,日期,标签都写在文章Front-matter信息中,无须手动配置

      tags | 标签(不适用于分页) |  
      categories | 分类(不适用于分页) |  

    • 数据迁移方便,没有数据库,都是以文件夹格式存储在github上

2.待优化功能

  • blog应该有自己的命令行工具,用于创建文件,上传文件,备份文件。
  • blog应该摒弃关系型数据库,文章内容直接以文件形式存储,参考hexo存储在github上,但是图片资源不应该存储在github上
  • blog应该让用户专注的写文章,能够不联网就能写文章,且不局限用户写文章所用客户端,用户只关心他的文章内容
  • blog界面应该尽最大努力美观,且用户可以切换自己界面

。。。

Delete file in article issue.

function deleteFile(file, articleId) {
        if (articleId !== '0') {
            alert("You have to delete file usage in article.")
            return
        }
        if (!confirm("Confirm delete?")) {
            return
        }
        $.ajax({
            url: "/admin/media?_csrf=EJeHhtdS7ZgoL3oSvXG1wr2cMrA=&name=" + file,
            type: 'DELETE',
            success: () => {
                window.location.reload()
            },
            error: (e) => {
                alert(e.responseText)
            },
        })
    }
deleteFile('1563296404584388936.jpg','');

ID is not a number.

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.