Commit 9386a5af authored by CarlosGC1989's avatar CarlosGC1989
Browse files

Elimina welcome

parent 6eea2c27
Loading
Loading
Loading
Loading

welcome/index.css

deleted100644 → 0
+0 −62
Original line number Diff line number Diff line
body {
	min-width: 220px;
	margin: 0;
}

a {
	text-decoration: none;
	color: inherit;
}

.page-title {
	text-align: center;
	margin: 20px 0;
}

.page-title h1 {
	margin: 0;
}

.box-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	padding: 10px;
}

.box {
	display: flex;
	flex-direction: column;
	width: 180px;
	min-width: 180px;
	height: 300px;
	margin: 10px;
	border-radius: 10px;
	border: solid 2px lightgray;
	background-color: floralwhite;
}

.box-title {
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 40%;
	padding: 5px;
	border-bottom: solid 2px lightgray;
}

.box-title img {
	max-width: 100px;
	max-height: 100px;
}

.box-content {
	height: 60%;
	padding: 5px;
	overflow: auto;
}

.box-content h2 {
	margin: 0;
	text-align: center;
}
 No newline at end of file

welcome/index.html

deleted100644 → 0
+0 −12
Original line number Diff line number Diff line
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" href="index.css" type="text/css">
		<script type="text/javascript" language="javascript" src="oagdev/config.json"></script>
		<script type="text/javascript" language="javascript" src="index.js"></script>
	</head>
	<body onload="createContent(config)">
		<div class="page-title" id="title"></div>
		<div class="box-container" id="boxContainer"></div>
	</body>
</html>

welcome/index.js

deleted100644 → 0
+0 −86
Original line number Diff line number Diff line
function createItemTitle(config, item) {

	var node = document.createElement('div'),
		img = document.createElement('img'),
		imgPath = config.resourcesPath + item.img;

	node.setAttribute('class', 'box-title');
	img.setAttribute('src', imgPath);
	node.appendChild(img);

	return node;
}

function createItemContent(item) {

	var node = document.createElement('div'),
		h2 = document.createElement('h2'),
		h2Content = document.createTextNode(item.title || '');
		p = document.createElement('p'),
		pContent = document.createTextNode(item.description || '');

	node.setAttribute('class', 'box-content');

	h2.appendChild(h2Content);
	node.appendChild(h2);

	p.appendChild(pContent);
	node.appendChild(p);

	return node;
}

function getItemHref(config, item) {

	var href;

	if (item.subdomain) {
		href = config.protocol + '://' + item.subdomain + '.' + config.domain;
	} else {
		href = item.href;
	}

	return href;
}

function createItemBox(config, item) {

	var boxNode = document.createElement('a'),
		titleNode = createItemTitle(config, item),
		contentNode = createItemContent(item);

	boxNode.setAttribute('class', 'box');
	boxNode.setAttribute('href', getItemHref(config, item));

	boxNode.appendChild(titleNode);
	boxNode.appendChild(contentNode);

	return boxNode;
}

function createTitle(config) {

	var parentNode = document.getElementById('title'),
		titleNode = document.createElement('h1'),
		titleText = config.title || '',
		contentNode = document.createTextNode(titleText);

	document.title = titleText;
	titleNode.appendChild(contentNode);
	parentNode.appendChild(titleNode);
}

function createContent(config) {

	createTitle(config);

	var items = config.items,
		boxContainerNode = document.getElementById('boxContainer');

	for (var i = 0; i < items.length; i++) {
		var item = items[i],
			itemBox = createItemBox(config, item);

		boxContainerNode.appendChild(itemBox);
	}
}

welcome/oagdev/config.json

deleted100644 → 0
+0 −82
Original line number Diff line number Diff line
var config = {
	"domain": "redmic.net",
	"protocol": "https",
	"resourcesPath": "oagdev/resources/",
	"title": "Bienvenido a OAGdev",
	"items": [{
		"subdomain": "appdev",
		"img": "redmic.png",
		"title": "REDMIC",
		"description": "Versión de desarrollo de REDMIC (Repositorio de Datos Marinos Integrados de Canarias)"
	},{
		"subdomain": "git",
		"img": "gitlab.png",
		"title": "GitLab",
		"description": "Gestor de repositorios de desarrollo"
	},{
		"subdomain": "pgadmin",
		"img": "pgadmin.png",
		"title": "pgAdmin",
		"description": "Administrador para bases de datos de PostgreSQL"
	},{
		"subdomain": "portainer",
		"img": "portainer.png",
		"title": "Portainer",
		"description": "Gestor de dockers"
	},{
		"subdomain": "webmail",
		"img": "rainloop.png",
		"title": "Email",
		"description": "Correo"
	},{
		"subdomain": "postfixadmin",
		"img": "postfixadmin.png",
		"title": "Postfix Admin",
		"description": "Gestor de cuentas de correo"
	},{
		"subdomain": "spam",
		"img": "rspamd.png",
		"title": "RSpamd",
		"description": "Gestor de spam"
	},{
		"subdomain": "minio",
		"img": "minio.svg",
		"title": "Minio",
		"description": "Alamacenamieto de cache"
	},{
		"subdomain": "artifactory",
		"img": "artifactory.png",
		"title": "Artifactory",
		"description": "Repositorio de artefactos universal"
	},{
		"subdomain": "kafkatopicsui",
		"img": "kafka.png",
		"title": "Kafka Topics UI",
		"description": "Topics (temas/canales de comunicación) presentes en los brokers de Kafka"
	},{
		"subdomain": "schemaregistryui",
		"img": "avro.png",
		"title": "Schema Registry UI",
		"description": "Repositorio de esquemas con soporte Avro"
	},{
		"subdomain": "kafkaconnectui",
		"img": "kafka-connect.png",
		"title": "Kafka Connect UI",
		"description": "Conectores registrados para topics de Kafka"
	},{
		"subdomain": "kafkamanager",
		"img": "kafka-manager.png",
		"title": "Kafka Manager",
		"description": "Gestión avanzada de topics de Kafka"
	},{
		"subdomain": "prometheus",
		"img": "prometheus.svg",
		"title": "Prometheus",
		"description": "Recolección de métricas"
	},{
		"subdomain": "grafana",
		"img": "grafana.png",
		"title": "Grafana",
		"description": "Representación gráfica de métricas"
	}]
}
−26.6 KiB
Loading image diff...
Loading