Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a raw version of the feeds #60

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Show a raw version of the feeds #60

merged 2 commits into from
Jan 4, 2024

Conversation

Xpirix
Copy link
Collaborator

@Xpirix Xpirix commented Dec 19, 2023

Currently, the result of the request on the root URL depends on the agent, i.e it returns a raw json if the request is made from qgis and a web page if it's from a browser.
This PR proposes to show both the preview and the raw json on the home web page.

Changes summary

  • Implement highlight.js
  • Add tabs Preview for the feeds preview and Raw for the feeds JSON raw view

Requirement

  • These changes require a build on the server side

Please find below a screenshot of the raw view on the home page:
image

@haubourg
Copy link
Member

Nice!
I expected only a link to the url with the feed, you did a lot more !

Thanks ! LGTM

@Xpirix
Copy link
Collaborator Author

Xpirix commented Dec 19, 2023

You're welcome.

else:
args = {
"data": data,
"form": form
"form": form,
"data_json": data_json
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Xpirix, shouldn't we use indented JSON data here for non-debug purposes, since it will be displayed on the frontend?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dimasciput You're right. I've made the change.

@dimasciput dimasciput merged commit 5e0b1b9 into qgis:master Jan 4, 2024
2 checks passed
@Xpirix Xpirix deleted the raw_feed branch January 30, 2024 11:39
@Xpirix
Copy link
Collaborator Author

Xpirix commented Jan 30, 2024

This PR has been deployed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants