-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·93 lines (92 loc) · 4.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#000">
<meta name="Description" content="lcarsde, LCARS Desktop Environment, Description, News">
<link rel="icon" href="images/icon-192.png">
<title>lcarsde - LCARS Desktop Environment</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header id="header">
<div class="bar--left header--left"></div>
<div class="bar--sep header--sep"></div>
<div class="bar--space header--space"></div>
<div class="header__logo">
<a class="header__link" href="index.html"><h1 class="header__header"><span class="header__name--short">lcarsde</span><span class="header__name--long">LCARS Desktop Environment - lcarsde</span></h1></a>
</div>
<div class="bar--right header--right"></div>
</header>
<div id="nav__container">
<div class="nav__bar--top"></div>
<nav class="nav">
<ul class="nav__list">
<li class="nav__entry"><a class="nav__link active" data-num="05" href="index.html">Home</a></li>
<li class="nav__entry"><a class="nav__link" data-num="73" href="installation.html">Installation</a></li>
<li class="nav__entry"><a class="nav__link" data-num="12" href="manual.html">Manual</a></li>
<li class="nav__entry"><a class="nav__link" data-num="58" href="links.html">Links</a></li>
<li class="nav__entry"><a class="nav__link" data-num="39" href="about.html">About</a></li>
</ul>
</nav>
<div class="nav__bar--bottom"></div>
</div>
<div class="bar__main-nav-separator">
<div class="bar--left bar__main-nav--left"></div>
<div class="bar--space bar__main-nav--space"></div>
<div class="bar--right bar__main-nav--right"></div>
</div>
<main id="main__container">
<h1>LCARS Desktop Environment</h1>
<section>
<h2>What is LCARS Desktop Environment?</h2>
<p><strong>LCARS Desktop Environment</strong> or short <strong>lcarsde</strong> is an open source desktop environment for Linux systems. The main goal for this project is to create a desktop experience that looks somewhat like a LCARS interface.</p>
<p>The desktop environment consists of a window manager that is based on Xlib as well as a set of tool applications, which are a menu of active open applications, the status bar, a program selection and an application for logout, shutdown, etc.</p>
<p><a href="https://github.com/lcarsde" rel="noreferrer noopener nofollow">This link brings you to the project sources.</a></p>
</section>
<section>
<h2>Help & Contribution</h2>
<p>You found a bug? Please file an issue in the <a href="https://github.com/lcarsde" rel="noreferrer noopener nofollow">lcarsde GitHub project.</a></p>
</section>
<script>
const versionSection = document.createElement('section');
const versionHeader = document.createElement('h2');
versionHeader.textContent = 'Current Versions';
const versionContent = document.createElement('p');
versionContent.textContent = 'Loading ...';
versionSection.appendChild(versionHeader);
versionSection.appendChild(versionContent);
document.getElementById('main__container')
.appendChild(versionSection);
fetch('https://api.github.com/orgs/lcarsde/repos')
.then(resp => resp.json())
.then(data => Promise.all(data
.filter(repo => repo.topics.indexOf('documentation') === -1)
.sort((a,b) => a.name.localeCompare(b.name))
.map(repo => fetch(repo.releases_url.slice(0, -5))
.then(resp => resp.json())
.then(releases => ({name: repo.name, release: releases[0]})))
))
.then(fetches => {
versionSection.removeChild(versionContent);
const versionList = document.createElement('ul');
fetches.forEach(item => {
const versionItem = document.createElement('li');
console.log(item);
versionItem.textContent = item.name + ': ' + (item.release?.tag_name ?? '-');
versionList.appendChild(versionItem);
});
versionSection.appendChild(versionList);
});
</script>
</main>
<footer id="footer">
<div class="bar--left footer--left"></div>
<div class="bar--sep footer--sep"></div>
<div class="bar--space footer--space"></div>
<div class="bar--right footer--right"></div>
</footer>
<script src="register_sw.js"></script>
</body>
</html>