-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
151 lines (118 loc) · 6.92 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<head>
@manifest {
title: "q";
lang: "en";
style: "flat";
theme: "dark";
accent: "deep-orange";
favicon: /logo.svg;
}
@resources {
ls-js: tiny, tooltips, select, modal, tabs, color, dragdrop, toast, resize, progress;
ls-css: base, select, ls-flat, tooltips, loader, modal, tabs, dragdrop, toast, resize, progress;
bootstrap-icons;
fonts: Poppins, "JetBrains Mono";
css: /assets/main.css;
js: /assets/main.js;
}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/xterm.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/xterm.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/xterm-addon-fit.min.js"></script>
</head>
<page>
<div %preload>
<h1>
<i class="bi-three-dots"></i>
</h1>
</div>
<div %viewport hidden>
<div %initSetup>
<div style="text-align: center">
<div style="font-size: 2.5em; font-weight: 900">
<span style="color: var(--accent)">FOSS</span><span style="color: var(--accent-light)">Home</span>
</div>
<h3 style="margin: 0">Select how you want to continue:</h3><br>
<ls-box style="display: flex; flex-direction: column">
<button %lstvLoginButton>Login with LSTV</button>
<button %localDeviceButton ls-accent="rich-black">Local device</button>
<button ls-accent="rich-black">Custom server</button>
</ls-box> <br>
<div style="width: 390px;font-size: .8em;color: var(--elevate-3);text-align: left;">
<li>When you select <b>local device</b>, the app will work in offline mode and keep content (filesystem and kdb) stored locally. To use a server later, you may export a filesystem copy.<br><b>PLEASE NOTE:</b> Some features or 3rd party applications may not work in offline mode.</li><br>
<li>With a <b>custom server</b>, the app will connect directly to your self-hosted Akeno instance.</li><br>
<li>When you <b>login with a LSTV account</b>, you will get the full experience. Everything (files, settings, installed applications, remote server instances) will be synchronized in real-time and privately stored in an encrypted remote filesystem. You will also be able to easily access your environment from anywhere.</li>
</div>
</div>
<script>
document.querySelector("#lstvLoginButton").addEventListener("click", () => {
location.href = `https://beta.lstv.space/sso?app=3&ref=${encodeURIComponent(location.origin)}&permissions=1c`
})
</script>
</div>
<div %mainWorkspace>
<div %statusBar>
<div>
<div .statusBarItem .interactive>
<span %statusBarTime></span>
</div>
<script>
function updateClock() {
var now = new Date();
var timeString = `${padZero(now.getHours())}:${padZero(now.getMinutes())}:${padZero(now.getSeconds())}`;
var dateString = `${now.getDate()}/${now.getMonth() + 1}/${now.getFullYear()}`;
// Display the time and date
O("#statusBarTime").textContent = timeString + " " + dateString;
// Update every second
setTimeout(updateClock, 1000);
}
function padZero(num) {
return (num < 10 ? '0' : '') + num;
}
// Initial call to update the clock
updateClock();
</script>
</div>
<div>
<div .statusBarItem .interactive>
<i class="bi-gear-fill"></i>
</div>
<hr>
<div .statusBarItem .interactive>
<i class="bi-person-fill"></i>
<span %userName></span>
</div>
</div>
</div>
<div %desktop>
<img class="aGVudGFp" draggable="false" hidden data-src="h/l/0.gif" style="position: absolute;inset: 0;image-rendering:pixelated;filter: brightness(0.2);width: 100%;height: 100%;object-fit: cover;">
<div style="text-align: center; opacity: .6;">
<div style="font-size: min(8vw, 100px); font-weight: 900; position: relative">
<span style="color: var(--accent)">FOSS</span><span style="color: var(--accent-light)">Home</span>
<h2 style="color: rgb(var(--accent-light-raw), .1);margin: 0;position: absolute;right: -0.5em;font-size: 2.5em;font-weight: 900;top: -0.5em;">V2</h2>
</div>
</div>
</div>
<div %q></div>
<!-- <img .aGVudGFp hidden draggable="false" data-src="hentai.gif" style="image-rendering: pixelated">
<img .aGVudGFp hidden draggable="false" data-src="h/w.gif" style="image-rendering: pixelated">
<img .aGVudGFp hidden draggable="false" data-src="h/hentai.gif" style="image-rendering: pixelated"> -->
<div %commandWrapper style="z-index: 99999999999999">
<img width="180" .aGVudGFp hidden draggable="false" data-src="h/p.gif" style="position:absolute;bottom:6px;right: -52px; image-rendering: pixelated">
<div %commandConsole>Welcome to the quick access console. Simply start typing and output will be shown here.<br></div>
<ls-box %command>
<span %hint>Simply start typing to enjoy a seamless, cloud-synced and private web-os experience.</span>
<ls-menu %completionMenu></ls-menu>
<!-- <img width="240" .aGVudGFp hidden draggable="false" data-src="h/teen.gif" style="position:absolute;bottom:12px; image-rendering: pixelated"> -->
<img width="280" .aGVudGFp hidden draggable="false" data-src="h/w.gif" style="position:absolute;bottom:28px; image-rendering: pixelated">
<i class="bi-terminal" %commandIcon></i>
<div onclick="commandInput.focus()" .textContainer style="position: relative;">
<span %commandSelection></span>
<span %commandPointer></span>
<span %commandText></span><span %commandHint></span>
</div>
<input placeholder="command" type="text" name="command" id="commandInput">
</ls-box>
</div>
</div>
</div>
</page>