Giter Site home page Giter Site logo

a3s1ltw's People

Contributors

fabiodrg avatar mehr-licht avatar tejinaco avatar

Watchers

 avatar  avatar

a3s1ltw's Issues

Enhance comment submission on posts

When submit is pressed, the request to API is done and the comment is inserted on the database.
However it's still not rendered on the client side.
Instead of doing so immediately with javascript, we can improve the API call and make usage of the response.
We can have an id containing the last comment available since the page was called. The API, in addition to post id, comment can also support the last comment id. The response, if successful, returns not only the new submitted comment, but also comments added by other users in the meantime.

Truncate long title and content when listing posts

At the moment, when listing all published posts, the title and content aren't truncated yet.
Probably, the easiest way to handle this is via PHP. When the query to the database is done, we can truncate the title and post content to a specific length defined by us before the function returns.

CSS also has some interesting features to limit width and height based on characters size, but the first approach is likely better.

Create a REST API for voting

We require at least two REST API calls support:

  • One to enable voting on posts (api/post_vote)
  • The second one for voting on comments (api/comment_vote)

Function to <Escape scripts>

...and call it for Avery input before storing the information. Information to be stored is the parsec one and not the input

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.