Remove the old legacy diagnosis thing

This commit is contained in:
Alexandre Aubin 2019-11-06 22:19:07 +01:00
parent b84d948611
commit 3c9c3fc926
4 changed files with 0 additions and 51 deletions

View file

@ -251,21 +251,6 @@
}); });
}); });
// Diagnosis
app.get('#/tools/diagnosis(/:private)?', function (c) {
// See http://sammyjs.org/docs/routes for splat documentation
var private = (c.params.splat[0] == 'private');
var endurl = (private) ? '?private' : '';
c.api('GET', '/diagnosis'+endurl, {}, function(diagnosis) {
c.view('tools/tools_diagnosis', {
'diagnosis' : JSON.stringify(diagnosis, undefined, 4),
'raw' : diagnosis,
'private' : private
});
});
});
// Migrations // Migrations
app.get('#/tools/migrations', function (c) { app.get('#/tools/migrations', function (c) {
c.api('GET', '/migrations?pending', {}, function(pending_migrations) { c.api('GET', '/migrations?pending', {}, function(pending_migrations) {

View file

@ -91,9 +91,6 @@
"details": "Details", "details": "Details",
"domain_dns_conf_is_just_a_recommendation": "This page shows you the *recommended* configuration. It does *not* configure the DNS for you. It is your responsability to configure your DNS zone in your DNS registrar according to this recommendation.", "domain_dns_conf_is_just_a_recommendation": "This page shows you the *recommended* configuration. It does *not* configure the DNS for you. It is your responsability to configure your DNS zone in your DNS registrar according to this recommendation.",
"diagnosis": "Diagnosis", "diagnosis": "Diagnosis",
"diagnosis_hide_private": "Show diagnostic information without private data",
"diagnosis_view_private": "Show diagnostic information including private data",
"diagnosis_with_private": "Diagnosis with private data",
"disable": "Disable", "disable": "Disable",
"disabled": "Disabled", "disabled": "Disabled",
"dns": "DNS", "dns": "DNS",
@ -230,10 +227,6 @@
"passwords_dont_match": "Passwords don't match", "passwords_dont_match": "Passwords don't match",
"passwords_too_short": "Password is too short", "passwords_too_short": "Password is too short",
"path": "Path", "path": "Path",
"diagnosis": "Diagnosis",
"diagnosis_with_private": "Diagnosis with private data",
"diagnosis_view_private": "Show diagnosis with private data",
"diagnosis_hide_private": "Show diagnosis without private data",
"logs": "Logs", "logs": "Logs",
"logs_operation": "Operations made on system with YunoHost", "logs_operation": "Operations made on system with YunoHost",
"logs_history": "History of command run on system", "logs_history": "History of command run on system",

View file

@ -1,25 +0,0 @@
<div class="btn-breadcrumb">
<a href="#/" ><i class="fa-home"></i><span class="sr-only">{{t 'home'}}</span></a>
<a href="#/tools">{{t 'tools'}}</a>
<a href="#/tools/diagnosis">{{t 'diagnosis'}}</a>
{{#private}}
<a href="#/tools/diagnosis/private">{{t 'diagnosis_with_private'}}</a>
{{/private}}
</div>
<div class="separator"></div>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title"><span class="fa-fw fa-stethoscope"></span> {{t 'diagnosis'}}</h2>
</div>
<div class="panel-body">
<pre id="diagnosis">{{ diagnosis }}</pre>
{{#if private}}
<a class="btn btn-primary" role="button" href="#/tools/diagnosis"><i class="fa-eye-slash"></i> {{t 'diagnosis_hide_private'}}</a>
{{else}}
<a class="btn btn-primary" role="button" href="#/tools/diagnosis/private"><i class="fa-eye"></i> {{t 'diagnosis_view_private'}}</a>
{{/if}}
<button data-paste-content="#diagnosis"><i class="fa-cloud-upload"></i> {{t 'upload'}}</button>
</div>
</div>

View file

@ -6,10 +6,6 @@
<div class="separator"></div> <div class="separator"></div>
<div class="list-group"> <div class="list-group">
<a href="#/tools/diagnosis" class="list-group-item slide clearfix">
<span class="pull-right fa-chevron-right"></span>
<h2 class="list-group-item-heading">{{t 'diagnosis'}}</h2>
</a>
<a href="#/tools/logs" class="list-group-item slide clearfix"> <a href="#/tools/logs" class="list-group-item slide clearfix">
<span class="pull-right fa-chevron-right"></span> <span class="pull-right fa-chevron-right"></span>
<h2 class="list-group-item-heading">{{t 'logs'}}</h2> <h2 class="list-group-item-heading">{{t 'logs'}}</h2>