shell: Remove simple.html and index-no-machines.js

This is not used anywhere in Cockpit. It used to be used with Kubernetes.
If this is actually needed feel free to close.

Closes #13155
This commit is contained in:
Matej Marusak 2019-11-15 13:15:45 +01:00 committed by Martin Pitt
parent d1ea17988c
commit 936b0c79e5
4 changed files with 0 additions and 197 deletions

View File

@ -1,43 +0,0 @@
/*
* This file is part of Cockpit.
*
* Copyright (C) 2016 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* Cockpit is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
*/
import $ from "jquery";
import cockpit from "cockpit";
import * as indexes from "./indexes";
var default_title = "Cockpit";
var manifest = cockpit.manifests.shell || { };
if (manifest.title)
default_title = manifest.title;
indexes.simple_index({
brand_sel: "#index-brand",
logout_sel: "#go-logout",
oops_sel: "#navbar-oops",
language_sel: "#display-language",
about_sel: "#about-version",
default_title: default_title
});
var login_data = cockpit.localStorage.getItem('login-data', true);
if (login_data) {
var data = JSON.parse(login_data);
$("#content-user-name").text(data.displayName);
}

View File

@ -1,149 +0,0 @@
<!DOCTYPE html>
<html class="index-page">
<head>
<title>Cockpit</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../base1/patternfly.css" rel="stylesheet">
<link href="index.css" rel="stylesheet">
<link href="../../static/branding.css" rel="stylesheet">
<script src="../base1/jquery.js"></script>
<script src="../base1/cockpit.js"></script>
<script src="../manifests.js"></script>
<script src="../*/po.js"></script>
</head>
<body hidden>
<div class="area-ct-layout">
<nav id="topnav" class="navbar navbar-default navbar-pf navbar-pf-vertical area-ct-navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-1">
<i class="fa fa-bars" alt="Toggle navigation"></i>
</button>
<div class="navbar-brand">
<div id="index-brand"></div>
</div>
</div>
<div class="collapse navbar-collapse navbar-collapse-1">
<ul class="nav navbar-nav navbar-utility">
<li id="navbar-oops" hidden>
<a tabindex="0"><span class="oops-status" translate="yes">Ooops!</span></a>
</li>
<li class="dropdown">
<a tabindex="0" id="navbar-dropdown" class="dropdown-toggle" data-toggle="dropdown">
<span class="pficon pficon-user"></span>
<span id="content-user-name"></span><i class="fa fa-caret-down pf-c-context-selector__toggle-icon" aria-hidden="true"></i>
</a>
<ul class="dropdown-menu">
<li class="display-language-menu">
<a tabindex="0" data-toggle="modal" data-target="#display-language" translate="yes">Display Language</a>
</li>
<li class="divider display-language-menu"></li>
<li>
<a tabindex="0" data-toggle="modal" data-target="#about" translate="yes">About Cockpit</a>
</li>
<li class="divider"></li>
<li>
<a tabindex="0" id="go-logout" translate="yes">Log Out</a>
</li>
</ul>
</li>
</ul>
</div>
</nav>
<div class="modal" id="about" tabindex="-1" role="dialog" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" translate="yes">About Cockpit</h4>
</div>
<div class="modal-body">
<div translate="yes">Cockpit is an interactive Linux server admin interface.</div>
<div><a rel="noopener noreferrer" target="_blank" href="https://cockpit-project.org/" translate>Project website</a></div>
<div>
<span translate="yes">Version</span> <span id="about-version"></span>.
</div>
<div><span translate>Licensed under:</span>
<a href="https://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html"
rel="noopener noreferrer" target="_blank">GNU LGPL version 2.1</a>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" data-dismiss="modal" translate>Close</button>
</div>
</div>
</div>
</div>
<div class="modal" id="display-language" tabindex="-1" role="dialog" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" translate="yes">Display Language</h4>
</div>
<div class="modal-body">
<p translate="yes">Choose the language to be used in the application</p>
<select id="display-language-list" size="5" data-role="none">
</select>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal" translate="yes">Cancel</button>
<button class="btn btn-primary" id="display-language-select-button" translate="yes">Select</button>
</div>
</div>
</div>
</div>
<div class="modal" id="disconnected-dialog" tabindex="-1" role="dialog" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" translate="yes">Disconnected</h4>
</div>
<div class="modal-body">
<div id="disconnected-error"></div>
</div>
<div class="modal-footer">
<button class="btn btn-default" id="disconnected-reconnect" translate="yes">Try to reconnect</button>
<button class="btn btn-default" id="disconnected-logout" translate="yes">Log in again</button>
</div>
</div>
</div>
</div>
<div class="area-ct-body">
<div class="nav-sidebar-wrap expanded multi-dashboard">
<nav class="nav-sidebar nav-pf-vertical">
<ul id="main-navbar" class="main-navbar list-group">
<li id="host-nav-item" class="list-group-item dashboard-link has-menu">
<a tabindex="0" id="host-nav-link">
<span class="fa pficon-container-node"></span>
<span class="list-group-item-value"></span>
</a>
</li>
</ul>
</nav>
</div>
<div id="content" role="main" class="area-ct-content">
<div class="curtains-ct blank-slate-pf" role="alertdialog" aria-labelledby="machine-error-heading" aria-describedby="machine-error-desc" hidden>
<div class="blank-slate-pf-icon">
<div class="spinner spinner-lg" hidden></div>
<i class="fa fa-exclamation-circle"></i>
</div>
<h1 id="machine-error-heading"></h1>
<p id="machine-error-desc"></p>
<div class="blank-slate-pf-main-action">
<button id="machine-reconnect" class="btn btn-primary btn-lg" translate="yes">Reconnect</button>
<button id="machine-troubleshoot" class="btn btn-primary btn-lg" translate="yes">Troubleshoot</button>
</div>
</div>
</div>
</div>
</div>
<script src="index-no-machines.js"></script>
</body>
</html>

View File

@ -137,7 +137,6 @@ function generateDeps(makefile, stats) {
if (!endsWith(output, "manifest.json") &&
!endsWith(output, "override.json") &&
!endsWith(output, "shell/index.html") &&
!endsWith(output, "shell/simple.html") &&
!endsWith(output, ".png") &&
!endsWith(output, ".map") &&
!endsWith(output, ".ttf") &&

View File

@ -91,9 +91,6 @@ var info = {
"shell/index.js",
"shell/shell.less",
],
"shell/index-no-machines": [
"shell/index-no-machines.js",
],
"sosreport/sosreport": [
"sosreport/index.js",
@ -197,7 +194,6 @@ var info = {
"shell/images/server-large.png",
"shell/images/server-small.png",
"shell/index.html",
"shell/simple.html",
"shell/shell.html",
"sosreport/index.html",