Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (50 sloc) 2.03 KB
@model Aiursoft.Developer.Models.ToolsViewModels.JsonFormatViewModel
@{
ViewData["Title"] = "Json Format";
ViewData["Des"] = "Detect, format or compress your JSON.";
Layout = "../Home/_Layout";
}
<div class="jumbotron">
<div class="container">
<h3>@ViewBag.Title</h3>
<p>@ViewBag.Des</p>
<div class="btn-group" role="group">
<a class="btn btn-primary btn-lg" href="https://github.com/AiursoftWeb/Nexus/blob/master/Developer/Views/Tools/JsonFormat.cshtml" target="_blank" role="button">
<i class="fa fa-github"></i>
View it on github
</a>
</div>
</div>
</div>
<div class="container">
<div class="col-lg-12 col-md-12">
<div class="card mb-5 mt-4">
<div class="card-header">
<i class="fa fa-network"></i>
Enter your json
</div>
<div class="card-body">
<form method="post">
<h4>Enter the json you wanna format or compress.</h4>
<hr />
<div asp-validation-summary="All" class="text-danger"></div>
<div class="form-group">
<label asp-for="SourceString"></label>
<textarea asp-for="SourceString" placeholder="Any string" class="form-control" rows="5"></textarea>
</div>
<div class="form-group">
<button class="btn btn-success" name="Format" value="true" type="submit">Format</button>
<button class="btn btn-secondary" name="Format" value="false" type="submit">Compress</button>
</div>
<textarea readonly="readonly" class="form-control" rows="5">@Model.ResultString</textarea>
</form>
</div>
</div>
</div>
</div>
@section js{
<script src="https://rawgit.com/jackmoore/autosize/master/dist/autosize.min.js"></script>
<script>
autosize($('textarea'));
</script>
}
You can’t perform that action at this time.