Git Product home page Git Product logo

blog_vue's People

Contributors

aalug avatar

Watchers

 avatar  avatar

blog_vue's Issues

Add an option to change color theme

Add an option to change the color theme by adding a color picker to the navbar. Users can then choose two colors which will be sent to the App.vue component. Appropriate styles should be changed to the ones chosen by the user.

The chosen color values should be stored in the local storage for persistence.

Add navigation guards

Add navigation guards so the:

  • not logged-in users cannot enter the profile page
  • logged-in user cannot enter the sign-up and login page
  • user that is not a staff member (user.isStaff == false) cannot enter the create-post page

Add an all-posts page

Add an all-posts page. There should be an option to sort posts and filter them by tags - both of these are already set up in the backend.
There should also be pagination present.

Handle password reset

Handle password reset. Add a 'forgot password?' link to the login page. Then take the given email and send it to the server. The server will send an email with a link that will take the user to the new reset password page where they will enter a new password and if the encoded pk and token are valid, a new password will be set.

Create sign up page

Create a page where users can create an account.
Use Pinia's store to handle user registration.

Create a 'create a new post' page

Create a 'create a new post' page where staff members can add new posts. (endpoint /api/post/posts/)
There should be an option to add as many post images as the user wants - send them one by one to a different endpoint than the post itself (/api/post/postimages/)

Create a post details page

Create a post details page. There should be a post details section and comments section. The comments section should be divided into add a comment and already written comments.

Add a user profile page

Add a user profile page where the user should be able to update their password and user profile information.

Handle editing post comments

Handle editing post comments. There should be an edit button on a comment if the comment author is a logged-in user.
After clicking on this button, a dialog should pop up where old text is displayed and the user is able to edit the comment's text.

Add an option to log out

Add an option to log out by creating a function in the users store. This function should just remove the token from the local storage and refresh the page to reflect the changes.

Add edit post feature.

An option should be provided on the post detail page to navigate to the edit post page. On this page, all fields should be pre-filled with the initial post data. If at least one field is modified by the user, a function should be triggered to send a patch request to the server with the updated data.

Furthermore, on the edit post page, the post images should be editable by the user by allowing them to set a new title or delete the image.

Handle deleting comments

Handle deleting post comments. There should be a delete button on a comment if the comment author is a logged-in user.

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.