hashicorp / consul

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
https://www.consul.io
Other
28.31k stars 4.42k forks source link

add .toml support for kv #12668

Open KaymeKaydex opened 2 years ago

KaymeKaydex commented 2 years ago

Many people store configuration files in toml format and it will be useful to add support for this format

jkirschner-hashicorp commented 2 years ago

Hi @KaymeKaydex,

I see this is your first post on Consul - welcome to the community!

Can you clarify what you mean by "support .toml format"? Do you mean supporting syntax highlighting for TOML-formatted values when viewing KV in the Consul GUI? Or something else?

KaymeKaydex commented 2 years ago

yes, that's what I mean

jkirschner-hashicorp commented 2 years ago

Hello Consul community members,

We would welcome a PR contributed by the community for this UI enhancement!

If you're interested, please comment here so anyone interested can stay informed.

The task

image

Getting started with Consul UI development To launch the UI in development mode, follow the directions in the UI readme.

When running the development app (make start), any changes you save in the website source files will be recompiled and reloaded in your browser pages pointed at the app (e.g., http://localhost:4200/ui/).

Please name your branch according to these guidelines to ensure that the PR you submit triggers CI execution of the frontend test suite.

Accessing the KV code editor You should be able to access the key-value screen at http://localhost:4200/ui/dc1/kv. The UI should be pre-populated with some key-value entries, but if not, you can create one using the blue button on the top-right of the page. Click on a KV entry to access the edit screen (with the code editor).

Implementation guidance Follow the example of the PR which added XML syntax highlighting to KV entries (via the CoreMirror Code Editor component).

Ghvstcode commented 2 years ago

Hi @jkirschner-hashicorp! I created a PR for this. https://github.com/hashicorp/consul/pull/13089

sriramr98 commented 1 year ago

Hi @jkirschner-hashicorp . Can I pick this up as I see that the old PR raised for this has been closed?