-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
Describe the solution you'd like
Minor setup - settings dialog
- in the main header component add another control with the
gearicon - to be placed between the theme control and search
- to have a class of
settings - on click to open up a new modal created in the
partialsfolder namedsettings-dialog - the settings dialog should have a brief text explaining that users can try the live demo with their own Hashnode Blog URL
- it should have conditional rendering to show an input and a
changebutton if the blog url has not been changed - if the url is the default another view should show with a
resetbutton - the input should be connected to a
[(ngModel)]to collect the value
Now the actual task
- update every query in the
graphql.operations.tsto take ahostparameter which is going to be the blog URL - remove the
${BLOG_HOST}variable from that file - update every method within the
blogServiceto take thehostparameter - add an initial value for
blogURL - add a set url and get url methods in the blogService that set
userBlogURLin local storage - update every component where the
blogServiceis used to add thehostparameter - add an on click event for the
changebutton to call a method in theblogServiceand set the user input in local storage - add an on click event for the
resetbutton to call a method in theblogServicethat clears the item from local storage - test the functionality by changing the blog url and troubleshoot if needed, make sure everything works fine
- have a look for things that do not display right and add new issues