Coder Social home page Coder Social logo

Support adding static pages about hexo-admin HOT 7 CLOSED

jaredly avatar jaredly commented on August 22, 2024 3
Support adding static pages

from hexo-admin.

Comments (7)

oeway avatar oeway commented on August 22, 2024

+1

from hexo-admin.

nkoehring avatar nkoehring commented on August 22, 2024

+1

I see pages in the menu but I need to create/delete them via console at the moment. Is the implementation planned?

from hexo-admin.

jaredly avatar jaredly commented on August 22, 2024

not actively :) I don't tend to create/delete static pages too often

from hexo-admin.

jaredly avatar jaredly commented on August 22, 2024

Useful starting points:

Server:
This is the current endpoint for getting/updating pages link. You can see below it the posts/new endpoint -- we'll need a pages/new endpoint that will just take a title, and then return the page model. Here's the call on the front-end that will use the endpoint.

Frontend:
The frontend is mostly implemented for it (see this commented out line) -- I think you'll only need to uncomment that line.

from hexo-admin.

jaredly avatar jaredly commented on August 22, 2024

Delete isn't even supported for posts yet :D but it also shouldn't be too hard. If someone wants to put together the backend endpoint, I can put a button somewhere.

from hexo-admin.

yfsoftcom avatar yfsoftcom commented on August 22, 2024

i fix the 'new page' feature
plz accept my pr:
32dea78

from hexo-admin.

pirtleshell avatar pirtleshell commented on August 22, 2024

Added and merged in #120

from hexo-admin.

Related Issues (20)

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.