Giter VIP home page Giter VIP logo

Comments (5)

mikegioia avatar mikegioia commented on June 14, 2024

I just submitted a pull request for this: #24

from rest-easy.

set-killer avatar set-killer commented on June 14, 2024

Since the pull request of @mikegioia is outdated, i've tryed to implenet the json preview.
Everything looks fine but i have a hard time using the localization strings.
Here is everything i have made for now:
https://github.com/set-killer/REST-Easy/commit/ca3e2f7ed6aa99d4d1a59e9bc57a4913693b7d67

@nathan-osman could you please give me support on this localization strings?
They are just 2 strings that can't call inside resteasy.html and application.js
response.jsonn.title
response.jsonn.error
If you have any other remarks on the code, please tell me to fix them. Then i can make pull request.

from rest-easy.

nathan-osman avatar nathan-osman commented on June 14, 2024

To answer your first question, you can access localized strings using:

tr(string_name)

For example:

var username = tr('request.auth.username');

However, I'm not sure that adding a new tab is the best way to present the prettified JSON. The Raw tab is supposed to display the content exactly the way it was received over-the-wire. The Preview tab would probably be a more appropriate place to display the prettified JSON.

from rest-easy.

set-killer avatar set-killer commented on June 14, 2024

Thank you for the comment. That way it was much easier to implement. I've tryed to keep the code consistent.
The pull request is here:
https://github.com/nathan-osman/REST-Easy/pull/33/files

If there are is anything that i have to change on the code, please tell me to fix it.

from rest-easy.

nathan-osman avatar nathan-osman commented on June 14, 2024

Looks good, thanks!

from rest-easy.

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.