Showing preview only (5,982K chars total). Download the full file or copy to clipboard to get everything.
Repository: GitSquared/edex-ui
Branch: master
Commit: 04a00c407990
Files: 103
Total size: 5.7 MB
Directory structure:
gitextract_5fyty_j9/
├── .github/
│ ├── FUNDING.yml
│ ├── ISSUE_TEMPLATE/
│ │ ├── config.yml
│ │ └── issue_template.md
│ └── workflows/
│ ├── build-binaries.yaml
│ └── codeql-analysis.yml
├── .gitignore
├── .gitmodules
├── LICENSE
├── README.md
├── SECURITY.md
├── file-icons-generator.js
├── media/
│ └── icon.icns
├── package.json
├── prebuild-minify.js
└── src/
├── _boot.js
├── _multithread.js
├── _renderer.js
├── assets/
│ ├── css/
│ │ ├── boot_screen.css
│ │ ├── extra_ratios.css
│ │ ├── filesystem.css
│ │ ├── keyboard.css
│ │ ├── main.css
│ │ ├── main_shell.css
│ │ ├── media_player.css
│ │ ├── mod_clock.css
│ │ ├── mod_column.css
│ │ ├── mod_conninfo.css
│ │ ├── mod_cpuinfo.css
│ │ ├── mod_fuzzyFinder.css
│ │ ├── mod_globe.css
│ │ ├── mod_hardwareInspector.css
│ │ ├── mod_netstat.css
│ │ ├── mod_processlist.css
│ │ ├── mod_ramwatcher.css
│ │ ├── mod_sysinfo.css
│ │ ├── mod_toplist.css
│ │ └── modal.css
│ ├── icons/
│ │ ├── file-icons.json
│ │ └── icon.icns
│ ├── kb_layouts/
│ │ ├── da-DK.json
│ │ ├── de-DE.json
│ │ ├── en-COLEMAK.json
│ │ ├── en-DVORAK.json
│ │ ├── en-GB.json
│ │ ├── en-NORMAN.json
│ │ ├── en-US.json
│ │ ├── en-WORKMAN.json
│ │ ├── es-ES.json
│ │ ├── es-LAT.json
│ │ ├── fr-BEPO.json
│ │ ├── fr-FR.json
│ │ ├── hu-HU.json
│ │ ├── it-IT.json
│ │ ├── nl-BE.json
│ │ ├── pt-BR.json
│ │ ├── sv-SE.json
│ │ ├── tr-TR-F.json
│ │ └── tr-TR-Q.json
│ ├── misc/
│ │ ├── boot_log.txt
│ │ ├── file-icons-match.js
│ │ └── grid.json
│ ├── themes/
│ │ ├── apollo-notype.json
│ │ ├── apollo.json
│ │ ├── blade.json
│ │ ├── chalkboard-ligatures.json
│ │ ├── chalkboard-notype.json
│ │ ├── chalkboard.json
│ │ ├── cyborg-focus.json
│ │ ├── cyborg.json
│ │ ├── interstellar.json
│ │ ├── matrix.json
│ │ ├── navy-disrupted.json
│ │ ├── navy-notype.json
│ │ ├── navy.json
│ │ ├── nord.json
│ │ ├── red.json
│ │ ├── tron-colorfilter.json
│ │ ├── tron-disrupted.json
│ │ ├── tron-fulltype.json
│ │ ├── tron-notype.json
│ │ ├── tron-typeleft.json
│ │ └── tron.json
│ └── vendor/
│ └── encom-globe.js
├── classes/
│ ├── audiofx.class.js
│ ├── clock.class.js
│ ├── conninfo.class.js
│ ├── cpuinfo.class.js
│ ├── docReader.class.js
│ ├── filesystem.class.js
│ ├── fuzzyFinder.class.js
│ ├── hardwareInspector.class.js
│ ├── keyboard.class.js
│ ├── locationGlobe.class.js
│ ├── mediaPlayer.class.js
│ ├── modal.class.js
│ ├── netstat.class.js
│ ├── ramwatcher.class.js
│ ├── sysinfo.class.js
│ ├── terminal.class.js
│ ├── toplist.class.js
│ └── updateChecker.class.js
├── package.json
└── ui.html
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms
github: GitSquared
custom: ['https://gaby.dev/donate']
================================================
FILE: .github/ISSUE_TEMPLATE/config.yml
================================================
blank_issues_enabled: true
contact_links:
- name: Feature Ideas
url: https://github.com/GitSquared/edex-ui/discussions/new?category=ideas
about: Have a crazy idea for eDEX you'd like to share? Please do so here!
- name: Questions
url: https://github.com/GitSquared/edex-ui/discussions/new?category=questions
about: Confused? Ask all your questions here.
================================================
FILE: .github/ISSUE_TEMPLATE/issue_template.md
================================================
---
name: Bug report
about: Something's broken or screaming error messages at you? Let's fix it.
title: ''
labels: investigation
---
<!--
The following (lightweight) template is made to avoid recurring questions in new bug reports
and to facilitate problem diagnosis. You are free to ignore it, but filling it correctly will
help a lot. Either way, thanks for taking the time to write a report.
Checked checkbox should look like this: [x]
-->
## Technical information
**Using version:**
- [ ] `master` (running from GitHub-published source code, currently `v2.2.8-pre`)
- [ ] `latest` (latest release, currently `v2.2.7`)
- [ ] `vX.X.X` (specify other version)
**Running on:**
- [ ] Linux
- [ ] Windows
- [ ] macOS
**How comfortable you are with your system and/or IT in general:**
- [ ] I'm kind of lost, honestly
- [ ] I know what's up, I could help you run some commands or checks
- [ ] My machine is fully under my control, tell me what you need
- [ ] I attended [Defcon](https://defcon.org) last year
---
## Problem
(Write your report here. Screenshots and step-by-step instructions can help a lot!)
================================================
FILE: .github/workflows/build-binaries.yaml
================================================
name: Build packaged binaries
on: [push, pull_request, create]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Cache Electron binaries
uses: actions/cache@v2
env:
cache-name: cache-electron-bins
with:
# cache location is described here:
# https://github.com/electron/get#how-it-works
path: ~/.cache/electron
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install system dependencies for x64->x32 cross-build
run: |
sudo apt update
sudo apt install libc6-dev-i386 gcc-multilib g++-multilib
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Setup npm
run: sudo npm i -g npm@7
- name: Install build deps
run: npm install
- name: Run prebuild script
run: npm run prebuild-linux
- name: Build for x64 / ia32
run: ./node_modules/.bin/electron-builder build -l --x64 --ia32
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
with:
name: Linux-AppImages
path: dist/*.AppImage
if-no-files-found: error
build-linux-arm32:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: arm
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Cache Electron binaries
uses: actions/cache@v2
env:
cache-name: cache-electron-bins
with:
# cache location is described here:
# https://github.com/electron/get#how-it-works
path: ~/.cache/electron
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Run prebuild outside of QEMU emulator
run: sudo npm i -g npm@7 && npm install && rsync -a --info=progress2 src/ prebuild-src --exclude node_modules && node prebuild-minify.js && rm -rf node_modules
- name: Build for arm32v7 (aka armv7l)
uses: docker://arm32v7/node:14-buster
with:
args: bash -c "npm i -g npm@7 && npm install && ./node_modules/.bin/electron-builder build -l --armv7l"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
with:
name: Linux-arm32-AppImage
path: dist/*.AppImage
if-no-files-found: error
build-linux-arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: arm64
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Cache Electron binaries
uses: actions/cache@v2
env:
cache-name: cache-electron-bins
with:
# cache location is described here:
# https://github.com/electron/get#how-it-works
path: ~/.cache/electron
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Run prebuild outside of QEMU emulator
run: sudo npm i -g npm@7 && npm install && rsync -a --info=progress2 src/ prebuild-src --exclude node_modules && node prebuild-minify.js && rm -rf node_modules
- name: Build for arm64 (aka arm64v8)
uses: docker://arm64v8/node:14-buster
with:
args: bash -c "npm i -g npm@7 && npm install && ./node_modules/.bin/electron-builder build -l --arm64"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
with:
name: Linux-arm64-AppImage
path: dist/*.AppImage
if-no-files-found: error
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Cache Electron binaries
uses: actions/cache@v2
env:
cache-name: cache-electron-bins
with:
# cache location is described here:
# https://github.com/electron/get#how-it-works
path: ~/AppData/Local/electron/Cache
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Setup npm
run: npm i -g npm@7
- name: npm install
run: npm install
- name: npm build
run: npm run build-windows
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
with:
name: Windows-Installer
path: dist/*.exe
if-no-files-found: error
build-darwin:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Cache Electron binaries
uses: actions/cache@v2
env:
cache-name: cache-electron-bins
with:
# cache location is described here:
# https://github.com/electron/get#how-it-works
path: ~/Library/Caches/electron
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Setup npm
run: sudo npm i -g npm@7
- name: npm install
run: npm install
- name: npm build
run: npm run build-darwin
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
with:
name: MacOS-Image
path: dist/*.dmg
if-no-files-found: error
================================================
FILE: .github/workflows/codeql-analysis.yml
================================================
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '20 1 * * 5'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
steps:
- name: Checkout repository
uses: actions/checkout@v2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
================================================
FILE: .gitignore
================================================
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules
jspm_packages
# Optional npm cache directory
.npm
# Optional REPL history
.node_repl_history
# JetBrains IDE project folder (e.g. WebStorm)
.idea
dist
prebuild-src
src/node_modules
================================================
FILE: .gitmodules
================================================
[submodule "file-icons/atom"]
path = file-icons/atom
url = https://github.com/file-icons/atom.git
[submodule "file-icons/devopicons"]
path = file-icons/devopicons
url = https://github.com/file-icons/DevOpicons.git
[submodule "file-icons/mfixx"]
path = file-icons/mfixx
url = https://github.com/file-icons/MFixx.git
[submodule "file-icons/source"]
path = file-icons/source
url = https://github.com/file-icons/source.git
[submodule "file-icons/font-awesome"]
path = file-icons/font-awesome
url = https://github.com/FortAwesome/Font-Awesome.git
[submodule "file-icons/bytesize-icons"]
path = file-icons/bytesize-icons
url = git@github.com:danklammer/bytesize-icons.git
================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
================================================
FILE: README.md
================================================
<p align="center">
<br>
<img alt="Logo" src="media/logo.png">
<br><br>
<a href="https://lgtm.com/projects/g/GitSquared/edex-ui/context:javascript"><img alt="undefined" src="https://img.shields.io/lgtm/grade/javascript/g/GitSquared/edex-ui.svg?logo=lgtm&logoWidth=18"/></a>
<br>
<a href="https://github.com/GitSquared/edex-ui/releases/latest"><img alt="undefined" src="https://img.shields.io/github/release/GitSquared/edex-ui.svg?style=popout"></a>
<a href="#featured-in"><img alt="undefined" src="https://img.shields.io/github/downloads/GitSquared/edex-ui/total.svg?style=popout"></a>
<a href="https://github.com/GitSquared/edex-ui/blob/master/LICENSE"><img alt="undefined" src="https://img.shields.io/github/license/GitSquared/edex-ui.svg?style=popout"></a>
<br>
<a href="https://github.com/GitSquared/edex-ui/releases/download/v2.2.8/eDEX-UI-Windows.exe" target="_blank"><img alt="undefined" src="https://badgen.net/badge/Download/Windows/?color=blue&icon=windows&label"></a>
<a href="https://github.com/GitSquared/edex-ui/releases/download/v2.2.8/eDEX-UI-macOS.dmg" target="_blank"><img alt="undefined" src="https://badgen.net/badge/Download/macOS/?color=grey&icon=apple&label"></a>
<a href="https://github.com/GitSquared/edex-ui/releases/download/v2.2.8/eDEX-UI-Linux-x86_64.AppImage" target="_blank"><img alt="undefined" src="https://badgen.net/badge/Download/Linux64/?color=orange&icon=terminal&label"></a>
<a href="https://github.com/GitSquared/edex-ui/releases/download/v2.2.8/eDEX-UI-Linux-arm64-AppImage" target="_blank"><img alt="undefined" src="https://badgen.net/badge/Download/LinuxArm64/?color=orange&icon=terminal&label"></a>
<a href="https://aur.archlinux.org/packages/edex-ui" target="_blank"><img alt="undefined" src="https://badgen.net/badge/AUR/Package/cyan"></a>
<br>
<a href="https://github.com/GitSquared/edex-ui/releases/tag/v2.2.8"><strong><i>(Project archived oct. 18th 2021)</i></strong></a>
<br><br><br>
</p>
eDEX-UI is a fullscreen, cross-platform terminal emulator and system monitor that looks and feels like a sci-fi computer interface.
---
<a href="https://youtu.be/BGeY1rK19zA">
<img align="right" width="400" alt="Demo on YouTube" src="media/youtube-demo-teaser.gif">
</a>
Heavily inspired from the [TRON Legacy movie effects](https://web.archive.org/web/20170511000410/http://jtnimoy.com/blogs/projects/14881671) (especially the [Board Room sequence](https://gmunk.com/TRON-Board-Room)), the eDEX-UI project was originally meant to be *"[DEX-UI](https://github.com/seenaburns/dex-ui) with less « art » and more « distributable software »"*.
While keeping a futuristic look and feel, it strives to maintain a certain level of functionality and to be usable in real-life scenarios, with the larger goal of bringing science-fiction UXs to the mainstream.
<br>
It might or might not be a joke taken too seriously.
---
<p align="center">
<em>Jump to: <br><a href="#features">Features</a> — <a href="#screenshots">Screenshots</a> — <a href="#qa">Questions & Answers</a> — <strong><a href="#how-do-i-get-it">Download</a></strong> — <a href="#featured-in">Featured In</a> — <a href="#useful-commands-for-the-nerds">Contributor Instructions</a> — <a href="#credits">Credits</a></em>
</p>
## Sponsor
**Want to help support my open-source experiments and learn some cool JavaScript tricks at the same time?**
Click the banner below and sign up to **Bytes**, the only newsletter cool enough to be recommended by eDEX-UI.
[](https://ui.dev/bytes/?r=gabriel)
## Features
- Fully featured terminal emulator with tabs, colors, mouse events, and support for `curses` and `curses`-like applications.
- Real-time system (CPU, RAM, swap, processes) and network (GeoIP, active connections, transfer rates) monitoring.
- Full support for touch-enabled displays, including an on-screen keyboard.
- Directory viewer that follows the CWD (current working directory) of the terminal.
- Advanced customization using themes, on-screen keyboard layouts, CSS injections. See the [wiki](https://github.com/GitSquared/edex-ui/wiki) for more info.
- Optional sound effects made by a talented sound designer for maximum hollywood hacking vibe.
## Screenshots

_[neofetch](https://github.com/dylanaraps/neofetch) on eDEX-UI 2.2 with the default "tron" theme & QWERTY keyboard_

_Checking out available themes in [eDEX's config dir](https://github.com/GitSquared/edex-ui/wiki/userData) with [`ranger`](https://github.com/ranger/ranger) on eDEX-UI 2.2 with the "blade" theme_

_[cmatrix](https://github.com/abishekvashok/cmatrix) on eDEX-UI 2.2 with the experimental "tron-disrupted" theme, and the user-contributed DVORAK keyboard_

_Editing eDEX-UI source code with `nvim` on eDEX-UI 2.2 with the custom [`horizon-full`](https://github.com/GitSquared/horizon-edex-theme) theme_
## Q&A
#### How do I get it?
Click on the little badges under the eDEX logo at the top of this page, or go to the [Releases](https://github.com/GitSquared/edex-ui/releases) tab, or download it through [one of the available repositories](https://repology.org/project/edex-ui/versions) (Homebrew, AUR...).
Public release binaries are unsigned ([why](https://gaby.dev/posts/code-signing)). On Linux, you will need to `chmod +x` the AppImage file in order to run it.
#### I have a problem!
Search through the [Issues](https://github.com/GitSquared/edex-ui/issues) to see if yours has already been reported. If you're confident it hasn't been reported yet, feel free to open up a new one. If you see your issue and it's been closed, it probably means that the fix for it will ship in the next version, and you'll have to wait a bit.
#### Can you disable the keyboard/the filesystem display?
You can't disable them (yet) but you can hide them. See the `tron-notype` theme.
#### Why is the file browser saying that "Tracking Failed"? (Windows only)
On Linux and macOS, eDEX tracks where you're going in your terminal tab to display the content of the current folder on-screen.
Sadly, this is technically impossible to do on Windows right now, so the file browser reverts back to a "detached" mode. You can still use it to browse files & directories and click on files to input their path in the terminal.
#### Can this run on a Raspberry Pi / ARM device?
We provide prebuilt arm64 builds. For other platforms, see [this issue comment](https://github.com/GitSquared/edex-ui/issues/313#issuecomment-443465345), and the thread on issue [#818](https://github.com/GitSquared/edex-ui/issues/818).
#### Is this repo actively maintained?
No, after a 3 years run, this project has been archived. See the [announcement](https://github.com/GitSquared/edex-ui/releases/tag/v2.2.8).
#### How did you make this?
Glad you're interested! See [#272](https://github.com/GitSquared/edex-ui/issues/272).
#### This is so cool.
Thanks! If you feel like it, you can [follow me on Twitter](https://gaby.dev/twitter) to hear about new stuff I'm making.
<img width="220" src="https://78.media.tumblr.com/35d4ef4447e0112f776b629bffd99188/tumblr_mk4gf8zvyC1s567uwo1_500.gif" />
## Featured in...
- [Linux Uprising Blog](https://www.linuxuprising.com/2018/11/edex-ui-fully-functioning-sci-fi.html)
- [My post on r/unixporn](https://www.reddit.com/r/unixporn/comments/9ysbx7/oc_a_little_project_that_ive_been_working_on/)
- [Korben article (in french)](https://korben.info/une-interface-futuriste-pour-vos-ecrans-tactiles.html)
- [Hacker News](https://news.ycombinator.com/item?id=18509828)
- [This tweet that made me smile](https://twitter.com/mikemaccana/status/1065615451940667396)
- [BoingBoing article](https://boingboing.net/2018/11/23/simulacrum-sf.html) - Apparently i'm a "French hacker"
- [OReilly 4 short links](https://www.oreilly.com/ideas/four-short-links-23-november-2018)
- [Hackaday](https://hackaday.com/2018/11/23/look-like-a-movie-hacker/)
- [Developpez.com (another french link)](https://www.developpez.com/actu/234808/Une-application-de-bureau-ressemble-a-une-interface-d-ordinateur-de-science-fiction-inspiree-des-effets-du-film-TRON-Legacy/)
- [GitHub Blog's Release Radar November 2018](https://blog.github.com/2018-12-21-release-radar-november-2018/)
- [opensource.com Productive Tools for 2019](https://opensource.com/article/19/1/productivity-tool-edex-ui)
- [O'Reilly 4 short links (again)](https://www.oreilly.com/radar/four-short-links-7-july-2020/)
- [LinuxLinks](https://www.linuxlinks.com/linux-candy-edex-ui-sci-fi-computer-terminal-emulator-system-monitor/)
- [Linux For Everyone (Youtube)](https://www.youtube.com/watch?v=gbzqCAjm--g)
- [BestOfJS Rising Stars 2020](https://risingstars.js.org/2020/en#edex-ui)
- [The Geek Freaks (Youtube/German)](https://youtu.be/TSjMIeLG0Sk)
- [JSNation Open Source Awards 2021](https://osawards.com/javascript/#nominees) (Nominee - Fun Side Project of the Year)
## Useful commands for the nerds
**IMPORTANT NOTE:** the following instructions are meant for running eDEX from the latest unoptimized, unreleased, development version. If you'd like to get stable software instead, refer to [these](#how-do-i-get-it) instructions.
#### Starting from source:
on *nix systems (You'll need the Xcode command line tools on macOS):
- clone the repository
- `npm run install-linux`
- `npm run start`
on Windows:
- start cmd or powershell **as administrator**
- clone the repository
- `npm run install-windows`
- `npm run start`
#### Building
Note: Due to native modules, you can only build targets for the host OS you are using.
- `npm install` (NOT `install-linux` or `install-windows`)
- `npm run build-linux` or `build-windows` or `build-darwin`
The script will minify the source code, recompile native dependencies and create distributable assets in the `dist` folder.
#### Getting the bleeding edge
If you're interested in running the latest in-development version but don't want to compile source code yourself, you can can get pre-built nightly binaries on [GitHub Actions](https://github.com/GitSquared/edex-ui/actions): click the latest commits, and download the artifacts bundle for your OS.
## Credits
eDEX-UI's source code was primarily written by me, [Squared](https://github.com/GitSquared). If you want to get in touch with me or find other projects I'm involved in, check out [my website](https://gaby.dev).
[PixelyIon](https://github.com/PixelyIon) helped me get started with Windows compatibility and offered some precious advice when I started to work on this project seriously.
[IceWolf](https://soundcloud.com/iamicewolf) composed the sound effects on v2.1.x and above. He makes really cool stuff, check out his music!
## Thanks
Of course, eDEX would never have existed if I hadn't stumbled upon the amazing work of [Seena](https://github.com/seenaburns) on [r/unixporn](https://reddit.com/r/unixporn).
This project uses a bunch of open-source libraries, frameworks and tools, see [the full dependency graph](https://github.com/GitSquared/edex-ui/network/dependencies).
I want to namely thank the developers behind [xterm.js](https://github.com/xtermjs/xterm.js), [systeminformation](https://github.com/sebhildebrandt/systeminformation) and [SmoothieCharts](https://github.com/joewalnes/smoothie).
Huge thanks to [Rob "Arscan" Scanlon](https://github.com/arscan) for making the fantastic [ENCOM Globe](https://github.com/arscan/encom-globe), also inspired by the TRON: Legacy movie, and distributing it freely. His work really puts the icing on the cake.
## Licensing
Licensed under the [GPLv3.0](https://github.com/GitSquared/edex-ui/blob/master/LICENSE).
================================================
FILE: SECURITY.md
================================================
# Security Policy
## Supported Versions
We support the [latest released version](https://github.com/GitSquared/edex-ui/releases/latest), and the current development version (`master` branch).
## Reporting a Vulnerability
If you're concerned about a potential or proven security vulnerability in this software, please get in touch by sending an email at [`gabriel@saillard.dev`](mailto:%22Gabriel%20SAILLARD%22%20%3Cgabriel%40saillard.dev%3E?subject=%5BSECURITY%5D%20eDEX-UI%20vulnerability%20concern&body=(Please%20describe%20what%20code%20you%20think%20is%20vulnerable%2C%20and%20provide%20a%20way%20to%20reproduce%20the%20issue%20if%20possible)).
If your email subject contains the `[SECURITY]` tag, you will be surfaced to the front of my inbox and should expect a response in 24 hours or less. The link above will set you up with a subject template.
================================================
FILE: file-icons-generator.js
================================================
// This is an helper script to generate the resources used by eDEX to display file-specific icons in fsDisp, from a fresh file-icons/source GitHub clone.
// Generated files are:
// - src/assets/icons/file-icons.json: monolithic JSON files containing SVG data needed to draw all the icons.
// - src/assets/misc/file-icons-match.js: script to match filenames to icons by using regex expressions.
//
// The generated files are pretty-printed. See prebuild-minify.js for automatic, on-CI minification of source files before bundling them in binary release assets.
// BEFORE RUNNING THIS SCRIPT:
// - npm run init-file-icons
// You can then use `npm run update-file-icons` which will pull the git submodules and run this script.
const fs = require("fs");
const path = require("path");
const CSON = require("cson-parser");
var fileIconsObject = {};
// Get file icons from fontawesome
fs.readdirSync(path.join(__dirname, "file-icons", "font-awesome", "svgs", "brands")).forEach(icon => {
let iconName = icon.replace(".svg", "");
let text = fs.readFileSync(path.join(__dirname, "file-icons", "font-awesome", "svgs", "brands", icon), {encoding: "utf8"});
let width = text.substr(text.indexOf('viewBox="0 0 ')+13);
width = Number(width.slice(0, width.indexOf(" ")));
let height = text.substr(text.indexOf('viewBox="0 0 ')+13+width.toString().length+1);
height = Number(height.slice(0, height.indexOf('"')));
let svg = text.substr(text.indexOf(">")+1);
svg = svg.replace("</svg>", "");
if (width === null || height === null) console.log(icon);
fileIconsObject[iconName] = {
width,
height,
svg
};
});
// Get file icons from file-icons/source
fs.readdirSync(path.join(__dirname, "file-icons", "source", "svg")).forEach(icon => {
let iconName = icon.toLowerCase().replace(".svg", "").replace("-1", "");
let text = fs.readFileSync(path.join(__dirname, "file-icons", "source", "svg", icon), {encoding: "utf8"});
let width = text.substr(text.indexOf('width="')+7);
width = Number(width.slice(0, width.indexOf("px")));
let height = text.substr(text.indexOf('height="')+8);
height = Number(height.slice(0, height.indexOf("px")));
let svg = text.substr(text.indexOf(">")+1);
svg = svg.replace("</svg>", "");
if (width === null || height === null) console.log(icon);
fileIconsObject[iconName] = {
width,
height,
svg
};
});
// Get file icons from file-icons/devopicons
fs.readdirSync(path.join(__dirname, "file-icons", "devopicons", "svg")).forEach(icon => {
if (!icon.endsWith(".svg")) return;
let iconName = icon.toLowerCase().replace(".svg", "").replace("-1", "");
let text = fs.readFileSync(path.join(__dirname, "file-icons", "devopicons", "svg", icon), {encoding: "utf8"});
let width = text.substr(text.indexOf('width="')+7);
width = Number(width.slice(0, width.indexOf("px")));
let height = text.substr(text.indexOf('height="')+8);
height = Number(height.slice(0, height.indexOf("px")));
let svg = text.substr(text.indexOf(">")+1);
svg = svg.replace("</svg>", "");
if (width === null || height === null) console.log(icon);
fileIconsObject[iconName] = {
width,
height,
svg
};
});
// Get file icons from file-icons/mfixx
fs.readdirSync(path.join(__dirname, "file-icons", "mfixx", "svg")).forEach(icon => {
if (!icon.endsWith(".svg")) return;
let iconName = icon.toLowerCase().replace(".svg", "").replace("-1", "");
let text = fs.readFileSync(path.join(__dirname, "file-icons", "mfixx", "svg", icon), {encoding: "utf8"});
let width = text.substr(text.indexOf('width="')+7);
width = Number(width.slice(0, width.indexOf("px")));
let height = text.substr(text.indexOf('height="')+8);
height = Number(height.slice(0, height.indexOf("px")));
let svg = text.substr(text.indexOf(">")+1);
svg = svg.replace("</svg>", "");
if (width === null || height === null) console.log(icon);
fileIconsObject[iconName] = {
width,
height,
svg
};
});
// Get file icons from file-icons/bytesize-icons
fs.readdirSync(path.join(__dirname, "file-icons", "bytesize-icons", "dist", "icons")).forEach(icon => {
if (!icon.endsWith(".svg")) return;
let iconName = icon.toLowerCase().replace(".svg", "");
let text = fs.readFileSync(path.join(__dirname, "file-icons", "bytesize-icons", "dist", "icons", icon), {encoding: "utf8"});
let dimensions = text.match(/viewBox="0 0 (\d+) (\d+)"/);
let width = dimensions[1];
let height = dimensions[2];
let svg = text.substr(text.indexOf(">")+1);
svg = svg.replace("</svg>", "");
if (width === null || height === null) console.log(icon);
fileIconsObject[iconName] = {
width,
height,
svg
};
});
// Override with eDEX-specific icons
fileIconsObject.showDisks = {
width: 24,
height: 24,
svg: '<path d="M 15.9994,19.9981L 19.9994,19.9981L 19.9994,15.9981L 15.9994,15.9981M 15.9994,13.9981L 19.9994,13.9981L 19.9994,9.99807L 15.9994,9.99807M 9.99938,7.99807L 13.9994,7.99807L 13.9994,3.99807L 9.99938,3.99807M 15.9994,7.99807L 19.9994,7.99807L 19.9994,3.99807L 15.9994,3.99807M 9.99938,13.9981L 13.9994,13.9981L 13.9994,9.99807L 9.99938,9.99807M 3.99938,13.9981L 7.99938,13.9981L 7.99938,9.99807L 3.99938,9.99807M 3.99938,19.9981L 7.99938,19.9981L 7.99938,15.9981L 3.99938,15.9981M 9.99938,19.9981L 13.9994,19.9981L 13.9994,15.9981L 9.99938,15.9981M 3.99938,7.99807L 7.99938,7.99807L 7.99938,3.99807L 3.99938,3.99807L 3.99938,7.99807 Z"/>'
};
fileIconsObject.up = {
width: 24,
height: 24,
svg: '<path d="M 22,4L 14,4L 12,2L 6,2C 4.9,2 4.01,2.9 4.01,4L 4,16C 4,17.1 4.9,18 6,18L 22,18C 23.1,18 24,17.1 24,16L 24,6C 24,4.9 23.1,4 22,4 Z M 2,6L -2.98023e-008,6L -2.98023e-008,11L 0.0100021,11L -2.98023e-008,20C -2.98023e-008,21.1 0.900001,22 2,22L 20,22L 20,20L 2,20L 2,6 Z"/>'
};
fileIconsObject.dir = {
width: 24,
height: 24,
svg: '<path d="M 9.99936,3.99807L 3.99936,3.99807C 2.89436,3.99807 2.00936,4.89406 2.00936,5.99807L 1.99936,17.9981C 1.99936,19.1021 2.89436,19.9981 3.99936,19.9981L 19.9994,19.9981C 21.1029,19.9981 21.9994,19.1021 21.9994,17.9981L 21.9994,7.99807C 21.9994,6.89406 21.1029,5.99807 19.9994,5.99807L 11.9994,5.99807L 9.99936,3.99807 Z"/>'
};
fileIconsObject.symlink = {
width: 24,
height: 24,
svg: '<path d="M 15.9995,5.99817L 12.9995,5.99817L 12.9995,7.89813L 15.9995,7.89813C 18.2635,7.89813 20.0995,9.73413 20.0995,11.9982C 20.0995,14.2621 18.2635,16.0981 15.9995,16.0981L 12.9995,16.0981L 12.9995,17.9982L 15.9995,17.9982C 19.3145,17.9982 21.9995,15.3121 21.9995,11.9982C 21.9995,8.68414 19.3145,5.99817 15.9995,5.99817 Z M 3.89948,11.9982C 3.89948,9.73413 5.7355,7.89813 7.99948,7.89813L 10.9995,7.89813L 10.9995,5.99817L 7.99948,5.99817C 4.68649,5.99817 1.99948,8.68414 1.99948,11.9982C 1.99948,15.3121 4.68649,17.9982 7.99948,17.9982L 10.9995,17.9982L 10.9995,16.0981L 7.99948,16.0981C 5.7355,16.0981 3.89948,14.2621 3.89948,11.9982 Z M 7.99948,12.9982L 15.9995,12.9982L 15.9995,10.9982L 7.99948,10.9982L 7.99948,12.9982 Z"/>'
};
fileIconsObject.file = {
width: 24,
height: 24,
svg: '<path d="M 12.9994,8.99807L 12.9994,3.49807L 18.4994,8.99807M 5.99939,1.99807C 4.89438,1.99807 4.0094,2.89406 4.0094,3.99807L 3.99939,19.9981C 3.99939,21.1021 4.88538,21.9981 5.98938,21.9981L 17.9994,21.9981C 19.1034,21.9981 19.9994,21.1021 19.9994,19.9981L 19.9994,7.99807L 13.9994,1.99807L 5.99939,1.99807 Z"/>'
};
fileIconsObject.other = {
width: 24,
height: 24,
svg: '<path d="M 11,18L 13,18L 13,16L 11,16L 11,18 Z M 12,6C 9.79,6 8,7.79 8,10L 10,10C 10,8.9 10.9,8 12,8C 13.1,8 14,8.9 14,10C 14,12 11,11.75 11,15L 13,15C 13,12.75 16,12.5 16,10C 16,7.79 14.21,6 12,6 Z M 5,3L 19,3C 20.1046,3 21,3.89543 21,5L 21,19C 21,20.1046 20.1046,21 19,21L 5,21C 3.89543,21 3,20.1046 3,19L 3,5C 3,3.89543 3.89543,3 5,3 Z"/>'
};
fileIconsObject.disk = {
width: 24,
height: 24,
svg: '<path d="M 6,2L 18,2C 19.1046,2 20,2.89543 20,4L 20,20C 20,21.1046 19.1046,22 18,22L 6,22C 4.89543,22 4,21.1046 4,20L 4,4C 4,2.89543 4.89543,2 6,2 Z M 12,4.00001C 8.68629,4.00001 5.99999,6.6863 5.99999,10C 5.99999,13.3137 8.68629,16 12.1022,15.9992L 11.2221,13.7674C 10.946,13.2891 11.1099,12.6775 11.5882,12.4013L 12.4542,11.9013C 12.9325,11.6252 13.5441,11.7891 13.8202,12.2674L 15.7446,14.6884C 17.1194,13.5889 18,11.8973 18,10C 18,6.6863 15.3137,4.00001 12,4.00001 Z M 12,9.00001C 12.5523,9.00001 13,9.44773 13,10C 13,10.5523 12.5523,11 12,11C 11.4477,11 11,10.5523 11,10C 11,9.44773 11.4477,9.00001 12,9.00001 Z M 7,18C 6.44771,18 6,18.4477 6,19C 6,19.5523 6.44771,20 7,20C 7.55228,20 8,19.5523 8,19C 8,18.4477 7.55228,18 7,18 Z M 12.0882,13.2674L 14.5757,19.5759L 17.1738,18.0759L 12.9542,12.7674L 12.0882,13.2674 Z"/>'
};
fileIconsObject.rom = {
width: 24,
height: 24,
svg: '<path d="M 11.9975,13.9987C 10.8938,13.9987 10,13.1 10,11.9975C 10,10.8938 10.8938,10 11.9975,10C 13.105,10 13.9987,10.8938 13.9987,11.9975C 13.9987,13.1 13.105,13.9987 11.9975,13.9987 Z M 11.9975,3.99875C 7.5825,3.99875 3.99875,7.5775 3.99875,11.9975C 3.99875,16.4162 7.5825,20 11.9975,20C 16.4163,20 20,16.4162 20,11.9975C 20,7.5775 16.4163,3.99875 11.9975,3.99875 Z"/>'
};
fileIconsObject.usb = {
width: 24,
height: 24,
svg: '<path d="M 14.9994,6.99807L 14.9994,10.9981L 15.9994,10.9981L 15.9994,12.9981L 12.9994,12.9981L 12.9994,4.99807L 14.9994,4.99807L 11.9994,0.998068L 8.9994,4.99807L 10.9994,4.99807L 10.9994,12.9981L 7.9994,12.9981L 7.9994,10.9281C 8.7034,10.5611 9.1994,9.84707 9.1994,8.99807C 9.1994,7.78307 8.2144,6.79807 6.9994,6.79807C 5.7844,6.79807 4.7994,7.78307 4.7994,8.99807C 4.7994,9.84707 5.2954,10.5611 5.9994,10.9281L 5.9994,12.9981C 5.9994,14.1031 6.8934,14.9981 7.9994,14.9981L 10.9994,14.9981L 10.9994,18.0491C 10.2894,18.4141 9.7994,19.1451 9.7994,19.9981C 9.7994,21.2131 10.7844,22.1981 11.9994,22.1981C 13.2144,22.1981 14.1994,21.2131 14.1994,19.9981C 14.1994,19.1451 13.7084,18.4141 12.9994,18.0491L 12.9994,14.9981L 15.9994,14.9981C 17.1044,14.9981 17.9994,14.1031 17.9994,12.9981L 17.9994,10.9981L 18.9994,10.9981L 18.9994,6.99807L 14.9994,6.99807 Z"/>'
};
fileIconsObject.audio = fileIconsObject.volume;
// Write the file
fs.writeFileSync(path.join(__dirname, "src", "assets", "icons", "file-icons.json"), JSON.stringify(fileIconsObject, "", 4));
console.log("Wrote file-icons.json");
var fileIconsMatchScript = `/*
* Thanks everyone for pointing out this is probably on of the ugliest source code files on GitHub
* This is script-generated code, however, so it might disqualify
* See file-icons-generator.js at root dir of git tree
*/
function matchIcon(filename) {\n`;
// Parse the configuration file of file-icons/atom
let atomConfig = CSON.parse(fs.readFileSync(path.join(__dirname, "file-icons", "atom", "config.cson"), {encoding: "utf8"}));
Object.keys(atomConfig.directoryIcons).forEach(key => {
let config = atomConfig.directoryIcons[key];
if (config.icon.startsWith("_")) config.icon = config.icon.substr(1);
if (Array.isArray(config.match)) {
config.match.forEach(key => {
let match = key[0];
if (typeof match === "string") match = new RegExp(match.replace(/\./g, "\\.")+"$", "i"); // lgtm [js/incomplete-sanitization]
fileIconsMatchScript += ` if (${match}.test(filename)) { return "${config.icon}"; }\n`;
});
} else {
if (typeof config.match === "string") config.match = new RegExp(config.match.replace(/\./g, "\\.")+"$", "i"); // lgtm [js/incomplete-sanitization]
fileIconsMatchScript += ` if (${config.match}.test(filename)) { return "${config.icon}"; }\n`;
if (config.alias) {
if (typeof config.alias === "string") config.alias = new RegExp(config.alias.replace(/\./g, "\\.")+"$", "i"); // lgtm [js/incomplete-sanitization]
fileIconsMatchScript += ` if (${config.alias}.test(filename)) { return "${config.icon}"; }\n`;
}
}
});
Object.keys(atomConfig.fileIcons).forEach(key => {
let config = atomConfig.fileIcons[key];
if (config.icon.startsWith("_")) config.icon = config.icon.substr(1);
if (Array.isArray(config.match)) {
config.match.forEach(key => {
let match = key[0];
if (typeof match === "string") match = new RegExp(match.replace(/\./g, "\\.")+"$", "i"); // lgtm [js/incomplete-sanitization]
fileIconsMatchScript += ` if (${match}.test(filename)) { return "${config.icon}"; }\n`;
});
} else {
if (typeof config.match === "string") config.match = new RegExp(config.match.replace(/\./g, "\\.")+"$", "i"); // lgtm [js/incomplete-sanitization]
fileIconsMatchScript += ` if (${config.match}.test(filename)) { return "${config.icon}"; }\n`;
if (config.alias) {
if (typeof config.alias === "string") config.alias = new RegExp(config.alias.replace(/\./g, "\\.")+"$", "i"); // lgtm [js/incomplete-sanitization]
fileIconsMatchScript += ` if (${config.alias}.test(filename)) { return "${config.icon}"; }\n`;
}
}
});
// End script
fileIconsMatchScript += "}\nmodule.exports = matchIcon;";
// Write the script
fs.writeFileSync(path.join(__dirname, "src", "assets", "misc", "file-icons-match.js"), fileIconsMatchScript);
console.log("Wrote file-icons-match.js");
================================================
FILE: package.json
================================================
{
"name": "edex-ui",
"productName": "eDEX-UI",
"version": "2.2.8",
"description": "A science fiction desktop running everywhere. Awesome.",
"keywords": [
"desktop",
"sci-fi",
"gui",
"portable",
"tty",
"terminal"
],
"main": "src/_boot.js",
"scripts": {
"start": "electron src --nointro",
"install-linux": "npm install && cd src && npm install && ./../node_modules/.bin/electron-rebuild -f -w node-pty && cd ..",
"preinstall-windows": "npm install --global --production windows-build-tools && npm install --global node-gyp && setx PYTHON \"%USERPROFILE%\\.windows-build-tools\\python27\\python.exe\"",
"install-windows": "npm install && cd src && npm install && ..\\node_modules\\.bin\\electron-rebuild -f -w node-pty && cd ..",
"prebuild-linux": "rsync -a --info=progress2 src/ prebuild-src --exclude node_modules && node prebuild-minify.js && cd prebuild-src && npm install",
"prebuild-darwin": "rsync -a src/ prebuild-src --exclude node_modules && node prebuild-minify.js && cd prebuild-src && npm install",
"prebuild-windows": "mkdir prebuild-src && xcopy src\\* prebuild-src\\ /E /C /Q /Y && node prebuild-minify.js && cd prebuild-src && npm install",
"build-linux": "./node_modules/.bin/electron-builder build -l --x64 --ia32 --arm64 --armv7l",
"build-darwin": "./node_modules/.bin/electron-builder build -m",
"build-windows": "node_modules\\.bin\\electron-builder build -w",
"postbuild-linux": "rm -R prebuild-src",
"postbuild-darwin": "rm -R prebuild-src",
"postbuild-windows": "rmdir /S /Q prebuild-src",
"test": "rsync -a --info=progress2 src/ prebuild-src --exclude node_modules && node prebuild-minify.js && cd prebuild-src && npm install && snyk test && cd .. && rm -R prebuild-src",
"init-file-icons": "git submodule update --init",
"update-file-icons": "git submodule foreach git pull origin master && node file-icons-generator.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/GitSquared/edex-ui.git"
},
"author": "Gabriel 'Squared' SAILLARD <gabriel@saillard.dev> (https://gaby.dev)",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/GitSquared/edex-ui/issues"
},
"homepage": "https://github.com/GitSquared/edex-ui#readme",
"build": {
"appId": "com.edex.ui",
"productName": "eDEX-UI",
"publish": "github",
"asar": true,
"compression": "normal",
"copyright": "Copyright © 2017-2021 Gabriel 'Squared' SAILLARD <gabriel@saillard.dev> (https://gaby.dev)",
"directories": {
"output": "dist",
"app": "prebuild-src"
},
"forceCodeSigning": false,
"npmRebuild": true,
"artifactName": "eDEX-UI-${os}-${arch}.${ext}",
"linux": {
"target": [
"AppImage"
],
"category": "System",
"icon": "media/linuxIcons"
},
"appImage": {
"artifactName": "eDEX-UI-Linux-${arch}.AppImage"
},
"mac": {
"target": [
{
"target": "dmg",
"arch": [
"x64"
]
}
],
"category": "public.app-category.utilities",
"icon": "media/icon.icns"
},
"dmg": {
"artifactName": "eDEX-UI-macOS-${arch}.dmg"
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
],
"icon": "media/icon.ico"
},
"nsis": {
"artifactName": "eDEX-UI-Windows-${arch}.exe",
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": true
}
},
"dependencies": {
"clean-css": "5.2.1",
"electron": "^12.1.0",
"electron-builder": "^22.14.5",
"electron-rebuild": "^2.3.5",
"mime-types": "^2.1.33",
"node-abi": "2.30.1",
"node-json-minify": "1.0.0",
"terser": "^5.9.0"
},
"optionalDependencies": {
"cson-parser": "4.0.9"
}
}
================================================
FILE: prebuild-minify.js
================================================
const fs = require("fs");
const path = require("path");
const stdout = process.stdout;
const UglifyJS = require("terser");
const CleanCSS = require("clean-css");
JSON.minify = require("node-json-minify");
function writeMinified(path, data) {
return new Promise((res, rej) => {
fs.writeFile(path, data, (err) => {
if (err) {
stdout.write(" - ❌\n\n\n", () => {
rej(err);
});
}
stdout.write(" - ✓\n", () => {
res();
});
});
});
}
async function recursiveMinify(dirPath) {
try { var files = fs.readdirSync(dirPath); }
catch(e) { return; }
if (files.length > 0) {
for (let i = 0; i < files.length; i++) {
let filePath = dirPath + '/' + files[i];
if (fs.statSync(filePath).isFile()) {
// Do not process grid.json because it's heavy and pre-minified, and themes and keyboard files to leave them in a human-readable state
if (filePath.endsWith(".json") && !filePath.endsWith("icons.json")) return;
// See #446
if (filePath.endsWith("file-icons-match.js")) return;
await stdout.write(filePath.slice(filePath.indexOf('prebuild-src/')+13)+'...');
switch (filePath.split(".").pop()) {
case "js":
let minified = await UglifyJS.minify(fs.readFileSync(filePath, {encoding: "utf-8"}), {
compress: {
dead_code: false,
unused: false,
warnings: true
},
output: {
beautify: false,
ecma: 6
}
});
if (!minified.error) {
await writeMinified(filePath, minified.code).catch(e => {
throw e;
});
} else {
stdout.write(" - ❌\n\n\n");
throw minified.error;
}
break;
case "css":
let output = new CleanCSS({level:2}).minify(fs.readFileSync(filePath, {encoding:"utf-8"}));
if (output.errors.length >= 1) {
stdout.write(" - ❌\n\n\n");
throw output.errors;
} else {
await writeMinified(filePath, output.styles).catch(e => {
throw e;
});
}
break;
case "json":
let out;
try {
out = JSON.minify(fs.readFileSync(filePath, {encoding:"utf-8"}));
} catch(err) {
stdout.write(" - ❌\n\n\n");
throw err;
}
await writeMinified(filePath, out).catch(e => {
throw e;
});
break;
default:
stdout.write("\n");
}
} else {
await recursiveMinify(filePath);
}
}
}
}
recursiveMinify(path.join(__dirname, "prebuild-src"));
================================================
FILE: src/_boot.js
================================================
const signale = require("signale");
const {app, BrowserWindow, dialog, shell} = require("electron");
process.on("uncaughtException", e => {
signale.fatal(e);
dialog.showErrorBox("eDEX-UI crashed", e.message || "Cannot retrieve error message.");
if (tty) {
tty.close();
}
if (extraTtys) {
Object.keys(extraTtys).forEach(key => {
if (extraTtys[key] !== null) {
extraTtys[key].close();
}
});
}
process.exit(1);
});
signale.start(`Starting eDEX-UI v${app.getVersion()}`);
signale.info(`With Node ${process.versions.node} and Electron ${process.versions.electron}`);
signale.info(`Renderer is Chrome ${process.versions.chrome}`);
const gotLock = app.requestSingleInstanceLock();
if (!gotLock) {
signale.fatal("Error: Another instance of eDEX is already running. Cannot proceed.");
app.exit(1);
}
signale.time("Startup");
const electron = require("electron");
require('@electron/remote/main').initialize()
const ipc = electron.ipcMain;
const path = require("path");
const url = require("url");
const fs = require("fs");
const which = require("which");
const Terminal = require("./classes/terminal.class.js").Terminal;
ipc.on("log", (e, type, content) => {
signale[type](content);
});
var win, tty, extraTtys;
const settingsFile = path.join(electron.app.getPath("userData"), "settings.json");
const shortcutsFile = path.join(electron.app.getPath("userData"), "shortcuts.json");
const lastWindowStateFile = path.join(electron.app.getPath("userData"), "lastWindowState.json");
const themesDir = path.join(electron.app.getPath("userData"), "themes");
const innerThemesDir = path.join(__dirname, "assets/themes");
const kblayoutsDir = path.join(electron.app.getPath("userData"), "keyboards");
const innerKblayoutsDir = path.join(__dirname, "assets/kb_layouts");
const fontsDir = path.join(electron.app.getPath("userData"), "fonts");
const innerFontsDir = path.join(__dirname, "assets/fonts");
// Unset proxy env variables to avoid connection problems on the internal websockets
// See #222
if (process.env.http_proxy) delete process.env.http_proxy;
if (process.env.https_proxy) delete process.env.https_proxy;
// Bypass GPU acceleration blocklist, trading a bit of stability for a great deal of performance, mostly on Linux
app.commandLine.appendSwitch("ignore-gpu-blocklist");
app.commandLine.appendSwitch("enable-gpu-rasterization");
app.commandLine.appendSwitch("enable-video-decode");
// Fix userData folder not setup on Windows
try {
fs.mkdirSync(electron.app.getPath("userData"));
signale.info(`Created config dir at ${electron.app.getPath("userData")}`);
} catch(e) {
signale.info(`Base config dir is ${electron.app.getPath("userData")}`);
}
// Create default settings file
if (!fs.existsSync(settingsFile)) {
fs.writeFileSync(settingsFile, JSON.stringify({
shell: (process.platform === "win32") ? "powershell.exe" : "bash",
shellArgs: '',
cwd: electron.app.getPath("userData"),
keyboard: "en-US",
theme: "tron",
termFontSize: 15,
audio: true,
audioVolume: 1.0,
disableFeedbackAudio: false,
clockHours: 24,
pingAddr: "1.1.1.1",
port: 3000,
nointro: false,
nocursor: false,
forceFullscreen: true,
allowWindowed: false,
excludeThreadsFromToplist: true,
hideDotfiles: false,
fsListView: false,
experimentalGlobeFeatures: false,
experimentalFeatures: false
}, "", 4));
signale.info(`Default settings written to ${settingsFile}`);
}
// Create default shortcuts file
if (!fs.existsSync(shortcutsFile)) {
fs.writeFileSync(shortcutsFile, JSON.stringify([
{ type: "app", trigger: "Ctrl+Shift+C", action: "COPY", enabled: true },
{ type: "app", trigger: "Ctrl+Shift+V", action: "PASTE", enabled: true },
{ type: "app", trigger: "Ctrl+Tab", action: "NEXT_TAB", enabled: true },
{ type: "app", trigger: "Ctrl+Shift+Tab", action: "PREVIOUS_TAB", enabled: true },
{ type: "app", trigger: "Ctrl+X", action: "TAB_X", enabled: true },
{ type: "app", trigger: "Ctrl+Shift+S", action: "SETTINGS", enabled: true },
{ type: "app", trigger: "Ctrl+Shift+K", action: "SHORTCUTS", enabled: true },
{ type: "app", trigger: "Ctrl+Shift+F", action: "FUZZY_SEARCH", enabled: true },
{ type: "app", trigger: "Ctrl+Shift+L", action: "FS_LIST_VIEW", enabled: true },
{ type: "app", trigger: "Ctrl+Shift+H", action: "FS_DOTFILES", enabled: true },
{ type: "app", trigger: "Ctrl+Shift+P", action: "KB_PASSMODE", enabled: true },
{ type: "app", trigger: "Ctrl+Shift+I", action: "DEV_DEBUG", enabled: false },
{ type: "app", trigger: "Ctrl+Shift+F5", action: "DEV_RELOAD", enabled: true },
{ type: "shell", trigger: "Ctrl+Shift+Alt+Space", action: "neofetch", linebreak: true, enabled: false }
], "", 4));
signale.info(`Default keymap written to ${shortcutsFile}`);
}
//Create default window state file
if(!fs.existsSync(lastWindowStateFile)) {
fs.writeFileSync(lastWindowStateFile, JSON.stringify({
useFullscreen: true
}, "", 4));
signale.info(`Default last window state written to ${lastWindowStateFile}`);
}
// Copy default themes & keyboard layouts & fonts
signale.pending("Mirroring internal assets...");
try {
fs.mkdirSync(themesDir);
} catch(e) {
// Folder already exists
}
fs.readdirSync(innerThemesDir).forEach(e => {
fs.writeFileSync(path.join(themesDir, e), fs.readFileSync(path.join(innerThemesDir, e), {encoding:"utf-8"}));
});
try {
fs.mkdirSync(kblayoutsDir);
} catch(e) {
// Folder already exists
}
fs.readdirSync(innerKblayoutsDir).forEach(e => {
fs.writeFileSync(path.join(kblayoutsDir, e), fs.readFileSync(path.join(innerKblayoutsDir, e), {encoding:"utf-8"}));
});
try {
fs.mkdirSync(fontsDir);
} catch(e) {
// Folder already exists
}
fs.readdirSync(innerFontsDir).forEach(e => {
fs.writeFileSync(path.join(fontsDir, e), fs.readFileSync(path.join(innerFontsDir, e)));
});
// Version history logging
const versionHistoryPath = path.join(electron.app.getPath("userData"), "versions_log.json");
var versionHistory = fs.existsSync(versionHistoryPath) ? require(versionHistoryPath) : {};
var version = app.getVersion();
if (typeof versionHistory[version] === "undefined") {
versionHistory[version] = {
firstSeen: Date.now(),
lastSeen: Date.now()
};
} else {
versionHistory[version].lastSeen = Date.now();
}
fs.writeFileSync(versionHistoryPath, JSON.stringify(versionHistory, 0, 2), {encoding:"utf-8"});
function createWindow(settings) {
signale.info("Creating window...");
let display;
if (!isNaN(settings.monitor)) {
display = electron.screen.getAllDisplays()[settings.monitor] || electron.screen.getPrimaryDisplay();
} else {
display = electron.screen.getPrimaryDisplay();
}
let {x, y, width, height} = display.bounds;
width++; height++;
win = new BrowserWindow({
title: "eDEX-UI",
x,
y,
width,
height,
show: false,
resizable: true,
movable: settings.allowWindowed || false,
fullscreen: settings.forceFullscreen || false,
autoHideMenuBar: true,
frame: settings.allowWindowed || false,
backgroundColor: '#000000',
webPreferences: {
devTools: true,
enableRemoteModule: true,
contextIsolation: false,
backgroundThrottling: false,
webSecurity: true,
nodeIntegration: true,
nodeIntegrationInSubFrames: false,
allowRunningInsecureContent: false,
experimentalFeatures: settings.experimentalFeatures || false
}
});
win.loadURL(url.format({
pathname: path.join(__dirname, 'ui.html'),
protocol: 'file:',
slashes: true
}));
signale.complete("Frontend window created!");
win.show();
if (!settings.allowWindowed) {
win.setResizable(false);
} else if (!require(lastWindowStateFile)["useFullscreen"]) {
win.setFullScreen(false);
}
signale.watch("Waiting for frontend connection...");
}
app.on('ready', async () => {
signale.pending(`Loading settings file...`);
let settings = require(settingsFile);
signale.pending(`Resolving shell path...`);
settings.shell = await which(settings.shell).catch(e => { throw(e) });
signale.info(`Shell found at ${settings.shell}`);
signale.success(`Settings loaded!`);
if (!require("fs").existsSync(settings.cwd)) throw new Error("Configured cwd path does not exist.");
// See #366
let cleanEnv = await require("shell-env")(settings.shell).catch(e => { throw e; });
Object.assign(cleanEnv, {
TERM: "xterm-256color",
COLORTERM: "truecolor",
TERM_PROGRAM: "eDEX-UI",
TERM_PROGRAM_VERSION: app.getVersion()
}, settings.env);
signale.pending(`Creating new terminal process on port ${settings.port || '3000'}`);
tty = new Terminal({
role: "server",
shell: settings.shell,
params: settings.shellArgs || '',
cwd: settings.cwd,
env: cleanEnv,
port: settings.port || 3000
});
signale.success(`Terminal back-end initialized!`);
tty.onclosed = (code, signal) => {
tty.ondisconnected = () => {};
signale.complete("Terminal exited", code, signal);
app.quit();
};
tty.onopened = () => {
signale.success("Connected to frontend!");
signale.timeEnd("Startup");
};
tty.onresized = (cols, rows) => {
signale.info("Resized TTY to ", cols, rows);
};
tty.ondisconnected = () => {
signale.error("Lost connection to frontend");
signale.watch("Waiting for frontend connection...");
};
// Support for multithreaded systeminformation calls
signale.pending("Starting multithreaded calls controller...");
require("./_multithread.js");
createWindow(settings);
// Support for more terminals, used for creating tabs (currently limited to 4 extra terms)
extraTtys = {};
let basePort = settings.port || 3000;
basePort = Number(basePort) + 2;
for (let i = 0; i < 4; i++) {
extraTtys[basePort+i] = null;
}
ipc.on("ttyspawn", (e, arg) => {
let port = null;
Object.keys(extraTtys).forEach(key => {
if (extraTtys[key] === null && port === null) {
extraTtys[key] = {};
port = key;
}
});
if (port === null) {
signale.error("TTY spawn denied (Reason: exceeded max TTYs number)");
e.sender.send("ttyspawn-reply", "ERROR: max number of ttys reached");
} else {
signale.pending(`Creating new TTY process on port ${port}`);
let term = new Terminal({
role: "server",
shell: settings.shell,
params: settings.shellArgs || '',
cwd: tty.tty._cwd || settings.cwd,
env: cleanEnv,
port: port
});
signale.success(`New terminal back-end initialized at ${port}`);
term.onclosed = (code, signal) => {
term.ondisconnected = () => {};
term.wss.close();
signale.complete(`TTY exited at ${port}`, code, signal);
extraTtys[term.port] = null;
term = null;
};
term.onopened = pid => {
signale.success(`TTY ${port} connected to frontend (process PID ${pid})`);
};
term.onresized = () => {};
term.ondisconnected = () => {
term.onclosed = () => {};
term.close();
term.wss.close();
extraTtys[term.port] = null;
term = null;
};
extraTtys[port] = term;
e.sender.send("ttyspawn-reply", "SUCCESS: "+port);
}
});
// Backend support for theme and keyboard hotswitch
let themeOverride = null;
let kbOverride = null;
ipc.on("getThemeOverride", (e, arg) => {
e.sender.send("getThemeOverride", themeOverride);
});
ipc.on("getKbOverride", (e, arg) => {
e.sender.send("getKbOverride", kbOverride);
});
ipc.on("setThemeOverride", (e, arg) => {
themeOverride = arg;
});
ipc.on("setKbOverride", (e, arg) => {
kbOverride = arg;
});
});
app.on('web-contents-created', (e, contents) => {
// Prevent creating more than one window
contents.on('new-window', (e, url) => {
e.preventDefault();
shell.openExternal(url);
});
// Prevent loading something else than the UI
contents.on('will-navigate', (e, url) => {
if (url !== contents.getURL()) e.preventDefault();
});
});
app.on('window-all-closed', () => {
signale.info("All windows closed");
app.quit();
});
app.on('before-quit', () => {
tty.close();
Object.keys(extraTtys).forEach(key => {
if (extraTtys[key] !== null) {
extraTtys[key].close();
}
});
signale.complete("Shutting down...");
});
================================================
FILE: src/_multithread.js
================================================
const cluster = require("cluster");
if (cluster.isMaster) {
const electron = require("electron");
const ipc = electron.ipcMain;
const signale = require("signale");
// Also, leave a core available for the renderer process
const osCPUs = require("os").cpus().length - 1;
// See #904
const numCPUs = (osCPUs > 7) ? 7 : osCPUs;
const si = require("systeminformation");
cluster.setupMaster({
exec: require("path").join(__dirname, "_multithread.js")
});
let workers = [];
cluster.on("fork", worker => {
workers.push(worker.id);
});
for (let i = 0; i < numCPUs; i++) {
cluster.fork();
}
signale.success("Multithreaded controller ready");
var lastID = 0;
function dispatch(type, id, arg) {
let selectedID = lastID+1;
if (selectedID > numCPUs-1) selectedID = 0;
cluster.workers[workers[selectedID]].send(JSON.stringify({
id,
type,
arg
}));
lastID = selectedID;
}
var queue = {};
ipc.on("systeminformation-call", (e, type, id, ...args) => {
if (!si[type]) {
signale.warn("Illegal request for systeminformation");
return;
}
if (args.length > 1 || workers.length <= 0) {
si[type](...args).then(res => {
if (e.sender) {
e.sender.send("systeminformation-reply-"+id, res);
}
});
} else {
queue[id] = e.sender;
dispatch(type, id, args[0]);
}
});
cluster.on("message", (worker, msg) => {
msg = JSON.parse(msg);
try {
if (!queue[msg.id].isDestroyed()) {
queue[msg.id].send("systeminformation-reply-"+msg.id, msg.res);
delete queue[msg.id];
}
} catch(e) {
// Window has been closed, ignore.
}
});
} else if (cluster.isWorker) {
const signale = require("signale");
const si = require("systeminformation");
signale.info("Multithread worker started at "+process.pid);
process.on("message", msg => {
msg = JSON.parse(msg);
si[msg.type](msg.arg).then(res => {
process.send(JSON.stringify({
id: msg.id,
res
}));
});
});
}
================================================
FILE: src/_renderer.js
================================================
// Disable eval()
window.eval = global.eval = function () {
throw new Error("eval() is disabled for security reasons.");
};
// Security helper :)
window._escapeHtml = text => {
let map = {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
"'": '''
};
return text.replace(/[&<>"']/g, m => {return map[m];});
};
window._encodePathURI = uri => {
return encodeURI(uri).replace(/#/g, "%23");
};
window._purifyCSS = str => {
if (typeof str === "undefined") return "";
if (typeof str !== "string") {
str = str.toString();
}
return str.replace(/[<]/g, "");
};
window._delay = ms => {
return new Promise((resolve, reject) => {
setTimeout(resolve, ms);
});
};
// Initiate basic error handling
window.onerror = (msg, path, line, col, error) => {
document.getElementById("boot_screen").innerHTML += `${error} : ${msg}<br/>==> at ${path} ${line}:${col}`;
};
const path = require("path");
const fs = require("fs");
const electron = require("electron");
const remote = require("@electron/remote");
const ipc = electron.ipcRenderer;
const settingsDir = remote.app.getPath("userData");
const themesDir = path.join(settingsDir, "themes");
const keyboardsDir = path.join(settingsDir, "keyboards");
const fontsDir = path.join(settingsDir, "fonts");
const settingsFile = path.join(settingsDir, "settings.json");
const shortcutsFile = path.join(settingsDir, "shortcuts.json");
const lastWindowStateFile = path.join(settingsDir, "lastWindowState.json");
// Load config
window.settings = require(settingsFile);
window.shortcuts = require(shortcutsFile);
window.lastWindowState = require(lastWindowStateFile);
// Load CLI parameters
if (remote.process.argv.includes("--nointro")) {
window.settings.nointroOverride = true;
} else {
window.settings.nointroOverride = false;
}
if (electron.remote.process.argv.includes("--nocursor")) {
window.settings.nocursorOverride = true;
} else {
window.settings.nocursorOverride = false;
}
// Retrieve theme override (hotswitch)
ipc.once("getThemeOverride", (e, theme) => {
if (theme !== null) {
window.settings.theme = theme;
window.settings.nointroOverride = true;
_loadTheme(require(path.join(themesDir, window.settings.theme+".json")));
} else {
_loadTheme(require(path.join(themesDir, window.settings.theme+".json")));
}
});
ipc.send("getThemeOverride");
// Same for keyboard override/hotswitch
ipc.once("getKbOverride", (e, layout) => {
if (layout !== null) {
window.settings.keyboard = layout;
window.settings.nointroOverride = true;
}
});
ipc.send("getKbOverride");
// Load UI theme
window._loadTheme = theme => {
if (document.querySelector("style.theming")) {
document.querySelector("style.theming").remove();
}
// Load fonts
let mainFont = new FontFace(theme.cssvars.font_main, `url("${path.join(fontsDir, theme.cssvars.font_main.toLowerCase().replace(/ /g, '_')+'.woff2').replace(/\\/g, '/')}")`);
let lightFont = new FontFace(theme.cssvars.font_main_light, `url("${path.join(fontsDir, theme.cssvars.font_main_light.toLowerCase().replace(/ /g, '_')+'.woff2').replace(/\\/g, '/')}")`);
let termFont = new FontFace(theme.terminal.fontFamily, `url("${path.join(fontsDir, theme.terminal.fontFamily.toLowerCase().replace(/ /g, '_')+'.woff2').replace(/\\/g, '/')}")`);
document.fonts.add(mainFont);
document.fonts.load("12px "+theme.cssvars.font_main);
document.fonts.add(lightFont);
document.fonts.load("12px "+theme.cssvars.font_main_light);
document.fonts.add(termFont);
document.fonts.load("12px "+theme.terminal.fontFamily);
document.querySelector("head").innerHTML += `<style class="theming">
:root {
--font_main: "${window._purifyCSS(theme.cssvars.font_main)}";
--font_main_light: "${window._purifyCSS(theme.cssvars.font_main_light)}";
--font_mono: "${window._purifyCSS(theme.terminal.fontFamily)}";
--color_r: ${window._purifyCSS(theme.colors.r)};
--color_g: ${window._purifyCSS(theme.colors.g)};
--color_b: ${window._purifyCSS(theme.colors.b)};
--color_black: ${window._purifyCSS(theme.colors.black)};
--color_light_black: ${window._purifyCSS(theme.colors.light_black)};
--color_grey: ${window._purifyCSS(theme.colors.grey)};
/* Used for error and warning modals */
--color_red: ${window._purifyCSS(theme.colors.red) || "red"};
--color_yellow: ${window._purifyCSS(theme.colors.yellow) || "yellow"};
}
body {
font-family: var(--font_main), sans-serif;
cursor: ${(window.settings.nocursorOverride || window.settings.nocursor) ? "none" : "default"} !important;
}
* {
${(window.settings.nocursorOverride || window.settings.nocursor) ? "cursor: none !important;" : ""}
}
${window._purifyCSS(theme.injectCSS || "")}
</style>`;
window.theme = theme;
window.theme.r = theme.colors.r;
window.theme.g = theme.colors.g;
window.theme.b = theme.colors.b;
};
function initGraphicalErrorHandling() {
window.edexErrorsModals = [];
window.onerror = (msg, path, line, col, error) => {
let errorModal = new Modal({
type: "error",
title: error,
message: `${msg}<br/> at ${path} ${line}:${col}`
});
window.edexErrorsModals.push(errorModal);
ipc.send("log", "error", `${error}: ${msg}`);
ipc.send("log", "debug", `at ${path} ${line}:${col}`);
};
}
function waitForFonts() {
return new Promise(resolve => {
if (document.readyState !== "complete" || document.fonts.status !== "loaded") {
document.addEventListener("readystatechange", () => {
if (document.readyState === "complete") {
if (document.fonts.status === "loaded") {
resolve();
} else {
document.fonts.onloadingdone = () => {
if (document.fonts.status === "loaded") resolve();
};
}
}
});
} else {
resolve();
}
});
}
// A proxy function used to add multithreading to systeminformation calls - see backend process manager @ _multithread.js
function initSystemInformationProxy() {
const { nanoid } = require("nanoid/non-secure");
window.si = new Proxy({}, {
apply: () => {throw new Error("Cannot use sysinfo proxy directly as a function")},
set: () => {throw new Error("Cannot set a property on the sysinfo proxy")},
get: (target, prop, receiver) => {
return function(...args) {
let callback = (typeof args[args.length - 1] === "function") ? true : false;
return new Promise((resolve, reject) => {
let id = nanoid();
ipc.once("systeminformation-reply-"+id, (e, res) => {
if (callback) {
args[args.length - 1](res);
}
resolve(res);
});
ipc.send("systeminformation-call", prop, id, ...args);
});
};
}
});
}
// Init audio
window.audioManager = new AudioManager();
// See #223
electron.remote.app.focus();
let i = 0;
if (window.settings.nointro || window.settings.nointroOverride) {
initGraphicalErrorHandling();
initSystemInformationProxy();
document.getElementById("boot_screen").remove();
document.body.setAttribute("class", "");
waitForFonts().then(initUI);
} else {
displayLine();
}
// Startup boot log
function displayLine() {
let bootScreen = document.getElementById("boot_screen");
let log = fs.readFileSync(path.join(__dirname, "assets", "misc", "boot_log.txt")).toString().split('\n');
function isArchUser() {
return require("os").platform() === "linux"
&& fs.existsSync("/etc/os-release")
&& fs.readFileSync("/etc/os-release").toString().includes("arch");
}
if (typeof log[i] === "undefined") {
setTimeout(displayTitleScreen, 300);
return;
}
if (log[i] === "Boot Complete") {
window.audioManager.granted.play();
} else {
window.audioManager.stdout.play();
}
bootScreen.innerHTML += log[i]+"<br/>";
i++;
switch(true) {
case i === 2:
bootScreen.innerHTML += `eDEX-UI Kernel version ${electron.remote.app.getVersion()} boot at ${Date().toString()}; root:xnu-1699.22.73~1/RELEASE_X86_64`;
case i === 4:
setTimeout(displayLine, 500);
break;
case i > 4 && i < 25:
setTimeout(displayLine, 30);
break;
case i === 25:
setTimeout(displayLine, 400);
break;
case i === 42:
setTimeout(displayLine, 300);
break;
case i > 42 && i < 82:
setTimeout(displayLine, 25);
break;
case i === 83:
if (isArchUser())
bootScreen.innerHTML += "btw i use arch<br/>";
setTimeout(displayLine, 25);
break;
case i >= log.length-2 && i < log.length:
setTimeout(displayLine, 300);
break;
default:
setTimeout(displayLine, Math.pow(1 - (i/1000), 3)*25);
}
}
// Show "logo" and background grid
async function displayTitleScreen() {
let bootScreen = document.getElementById("boot_screen");
if (bootScreen === null) {
bootScreen = document.createElement("section");
bootScreen.setAttribute("id", "boot_screen");
bootScreen.setAttribute("style", "z-index: 9999999");
document.body.appendChild(bootScreen);
}
bootScreen.innerHTML = "";
window.audioManager.theme.play();
await _delay(400);
document.body.setAttribute("class", "");
bootScreen.setAttribute("class", "center");
bootScreen.innerHTML = "<h1>eDEX-UI</h1>";
let title = document.querySelector("section > h1");
await _delay(200);
document.body.setAttribute("class", "solidBackground");
await _delay(100);
title.setAttribute("style", `background-color: rgb(${window.theme.r}, ${window.theme.g}, ${window.theme.b});border-bottom: 5px solid rgb(${window.theme.r}, ${window.theme.g}, ${window.theme.b});`);
await _delay(300);
title.setAttribute("style", `border: 5px solid rgb(${window.theme.r}, ${window.theme.g}, ${window.theme.b});`);
await _delay(100);
title.setAttribute("style", "");
title.setAttribute("class", "glitch");
await _delay(500);
document.body.setAttribute("class", "");
title.setAttribute("class", "");
title.setAttribute("style", `border: 5px solid rgb(${window.theme.r}, ${window.theme.g}, ${window.theme.b});`);
await _delay(1000);
if (window.term) {
bootScreen.remove();
return true;
}
initGraphicalErrorHandling();
initSystemInformationProxy();
waitForFonts().then(() => {
bootScreen.remove();
initUI();
});
}
// Returns the user's desired display name
async function getDisplayName() {
let user = settings.username || null;
if (user)
return user;
try {
user = await require("username")();
} catch (e) {}
return user;
}
// Create the UI's html structure and initialize the terminal client and the keyboard
async function initUI() {
document.body.innerHTML += `<section class="mod_column" id="mod_column_left">
<h3 class="title"><p>PANEL</p><p>SYSTEM</p></h3>
</section>
<section id="main_shell" style="height:0%;width:0%;opacity:0;margin-bottom:30vh;" augmented-ui="bl-clip tr-clip exe">
<h3 class="title" style="opacity:0;"><p>TERMINAL</p><p>MAIN SHELL</p></h3>
<h1 id="main_shell_greeting"></h1>
</section>
<section class="mod_column" id="mod_column_right">
<h3 class="title"><p>PANEL</p><p>NETWORK</p></h3>
</section>`;
await _delay(10);
window.audioManager.expand.play();
document.getElementById("main_shell").setAttribute("style", "height:0%;margin-bottom:30vh;");
await _delay(500);
document.getElementById("main_shell").setAttribute("style", "margin-bottom: 30vh;");
document.querySelector("#main_shell > h3.title").setAttribute("style", "");
await _delay(700);
document.getElementById("main_shell").setAttribute("style", "opacity: 0;");
document.body.innerHTML += `
<section id="filesystem" style="width: 0px;" class="${window.settings.hideDotfiles ? "hideDotfiles" : ""} ${window.settings.fsListView ? "list-view" : ""}">
</section>
<section id="keyboard" style="opacity:0;">
</section>`;
window.keyboard = new Keyboard({
layout: path.join(keyboardsDir, settings.keyboard+".json"),
container: "keyboard"
});
await _delay(10);
document.getElementById("main_shell").setAttribute("style", "");
await _delay(270);
let greeter = document.getElementById("main_shell_greeting");
getDisplayName().then(user => {
if (user) {
greeter.innerHTML += `Welcome back, <em>${user}</em>`;
} else {
greeter.innerHTML += "Welcome back";
}
});
greeter.setAttribute("style", "opacity: 1;");
document.getElementById("filesystem").setAttribute("style", "");
document.getElementById("keyboard").setAttribute("style", "");
document.getElementById("keyboard").setAttribute("class", "animation_state_1");
window.audioManager.keyboard.play();
await _delay(100);
document.getElementById("keyboard").setAttribute("class", "animation_state_1 animation_state_2");
await _delay(1000);
greeter.setAttribute("style", "opacity: 0;");
await _delay(100);
document.getElementById("keyboard").setAttribute("class", "");
await _delay(400);
greeter.remove();
// Initialize modules
window.mods = {};
// Left column
window.mods.clock = new Clock("mod_column_left");
window.mods.sysinfo = new Sysinfo("mod_column_left");
window.mods.hardwareInspector = new HardwareInspector("mod_column_left");
window.mods.cpuinfo = new Cpuinfo("mod_column_left");
window.mods.ramwatcher = new RAMwatcher("mod_column_left");
window.mods.toplist = new Toplist("mod_column_left");
// Right column
window.mods.netstat = new Netstat("mod_column_right");
window.mods.globe = new LocationGlobe("mod_column_right");
window.mods.conninfo = new Conninfo("mod_column_right");
// Fade-in animations
document.querySelectorAll(".mod_column").forEach(e => {
e.setAttribute("class", "mod_column activated");
});
let i = 0;
let left = document.querySelectorAll("#mod_column_left > div");
let right = document.querySelectorAll("#mod_column_right > div");
let x = setInterval(() => {
if (!left[i] && !right[i]) {
clearInterval(x);
} else {
window.audioManager.panels.play();
if (left[i]) {
left[i].setAttribute("style", "animation-play-state: running;");
}
if (right[i]) {
right[i].setAttribute("style", "animation-play-state: running;");
}
i++;
}
}, 500);
await _delay(100);
// Initialize the terminal
let shellContainer = document.getElementById("main_shell");
shellContainer.innerHTML += `
<ul id="main_shell_tabs">
<li id="shell_tab0" onclick="window.focusShellTab(0);" class="active"><p>MAIN SHELL</p></li>
<li id="shell_tab1" onclick="window.focusShellTab(1);"><p>EMPTY</p></li>
<li id="shell_tab2" onclick="window.focusShellTab(2);"><p>EMPTY</p></li>
<li id="shell_tab3" onclick="window.focusShellTab(3);"><p>EMPTY</p></li>
<li id="shell_tab4" onclick="window.focusShellTab(4);"><p>EMPTY</p></li>
</ul>
<div id="main_shell_innercontainer">
<pre id="terminal0" class="active"></pre>
<pre id="terminal1"></pre>
<pre id="terminal2"></pre>
<pre id="terminal3"></pre>
<pre id="terminal4"></pre>
</div>`;
window.term = {
0: new Terminal({
role: "client",
parentId: "terminal0",
port: window.settings.port || 3000
})
};
window.currentTerm = 0;
window.term[0].onprocesschange = p => {
document.getElementById("shell_tab0").innerHTML = `<p>MAIN - ${p}</p>`;
};
// Prevent losing hardware keyboard focus on the terminal when using touch keyboard
window.onmouseup = e => {
if (window.keyboard.linkedToTerm) window.term[window.currentTerm].term.focus();
};
window.term[0].term.writeln("\033[1m"+`Welcome to eDEX-UI v${electron.remote.app.getVersion()} - Electron v${process.versions.electron}`+"\033[0m");
await _delay(100);
window.fsDisp = new FilesystemDisplay({
parentId: "filesystem"
});
await _delay(200);
document.getElementById("filesystem").setAttribute("style", "opacity: 1;");
// Resend terminal CWD to fsDisp if we're hot reloading
if (window.performance.navigation.type === 1) {
window.term[window.currentTerm].resendCWD();
}
await _delay(200);
window.updateCheck = new UpdateChecker();
}
window.themeChanger = theme => {
ipc.send("setThemeOverride", theme);
setTimeout(() => {
window.location.reload(true);
}, 100);
};
window.remakeKeyboard = layout => {
document.getElementById("keyboard").innerHTML = "";
window.keyboard = new Keyboard({
layout: path.join(keyboardsDir, layout+".json" || settings.keyboard+".json"),
container: "keyboard"
});
ipc.send("setKbOverride", layout);
};
window.focusShellTab = number => {
window.audioManager.folder.play();
if (number !== window.currentTerm && window.term[number]) {
window.currentTerm = number;
document.querySelectorAll(`ul#main_shell_tabs > li:not(:nth-child(${number+1}))`).forEach(e => {
e.setAttribute("class", "");
});
document.getElementById("shell_tab"+number).setAttribute("class", "active");
document.querySelectorAll(`div#main_shell_innercontainer > pre:not(:nth-child(${number+1}))`).forEach(e => {
e.setAttribute("class", "");
});
document.getElementById("terminal"+number).setAttribute("class", "active");
window.term[number].fit();
window.term[number].term.focus();
window.term[number].resendCWD();
window.fsDisp.followTab();
} else if (number > 0 && number <= 4 && window.term[number] !== null && typeof window.term[number] !== "object") {
window.term[number] = null;
document.getElementById("shell_tab"+number).innerHTML = "<p>LOADING...</p>";
ipc.send("ttyspawn", "true");
ipc.once("ttyspawn-reply", (e, r) => {
if (r.startsWith("ERROR")) {
document.getElementById("shell_tab"+number).innerHTML = "<p>ERROR</p>";
} else if (r.startsWith("SUCCESS")) {
let port = Number(r.substr(9));
window.term[number] = new Terminal({
role: "client",
parentId: "terminal"+number,
port
});
window.term[number].onclose = e => {
delete window.term[number].onprocesschange;
document.getElementById("shell_tab"+number).innerHTML = "<p>EMPTY</p>";
document.getElementById("terminal"+number).innerHTML = "";
window.term[number].term.dispose();
delete window.term[number];
window.useAppShortcut("PREVIOUS_TAB");
};
window.term[number].onprocesschange = p => {
document.getElementById("shell_tab"+number).innerHTML = `<p>#${number+1} - ${p}</p>`;
};
document.getElementById("shell_tab"+number).innerHTML = `<p>::${port}</p>`;
setTimeout(() => {
window.focusShellTab(number);
}, 500);
}
});
}
};
// Settings editor
window.openSettings = async () => {
if (document.getElementById("settingsEditor")) return;
// Build lists of available keyboards, themes, monitors
let keyboards, themes, monitors, ifaces;
fs.readdirSync(keyboardsDir).forEach(kb => {
if (!kb.endsWith(".json")) return;
kb = kb.replace(".json", "");
if (kb === window.settings.keyboard) return;
keyboards += `<option>${kb}</option>`;
});
fs.readdirSync(themesDir).forEach(th => {
if (!th.endsWith(".json")) return;
th = th.replace(".json", "");
if (th === window.settings.theme) return;
themes += `<option>${th}</option>`;
});
for (let i = 0; i < electron.remote.screen.getAllDisplays().length; i++) {
if (i !== window.settings.monitor) monitors += `<option>${i}</option>`;
}
let nets = await window.si.networkInterfaces();
nets.forEach(net => {
if (net.iface !== window.mods.netstat.iface) ifaces += `<option>${net.iface}</option>`;
});
// Unlink the tactile keyboard from the terminal emulator to allow filling in the settings fields
window.keyboard.detach();
new Modal({
type: "custom",
title: `Settings <i>(v${electron.remote.app.getVersion()})</i>`,
html: `<table id="settingsEditor">
<tr>
<th>Key</th>
<th>Description</th>
<th>Value</th>
</tr>
<tr>
<td>shell</td>
<td>The program to run as a terminal emulator</td>
<td><input type="text" id="settingsEditor-shell" value="${window.settings.shell}"></td>
</tr>
<tr>
<td>shellArgs</td>
<td>Arguments to pass to the shell</td>
<td><input type="text" id="settingsEditor-shellArgs" value="${window.settings.shellArgs || ''}"></td>
</tr>
<tr>
<td>cwd</td>
<td>Working Directory to start in</td>
<td><input type="text" id="settingsEditor-cwd" value="${window.settings.cwd}"></td>
</tr>
<tr>
<td>env</td>
<td>Custom shell environment override</td>
<td><input type="text" id="settingsEditor-env" value="${window.settings.env}"></td>
</tr>
<tr>
<td>username</td>
<td>Custom username to display at boot</td>
<td><input type="text" id="settingsEditor-username" value="${window.settings.username}"></td>
</tr>
<tr>
<td>keyboard</td>
<td>On-screen keyboard layout code</td>
<td><select id="settingsEditor-keyboard">
<option>${window.settings.keyboard}</option>
${keyboards}
</select></td>
</tr>
<tr>
<td>theme</td>
<td>Name of the theme to load</td>
<td><select id="settingsEditor-theme">
<option>${window.settings.theme}</option>
${themes}
</select></td>
</tr>
<tr>
<td>termFontSize</td>
<td>Size of the terminal text in pixels</td>
<td><input type="number" id="settingsEditor-termFontSize" value="${window.settings.termFontSize}"></td>
</tr>
<tr>
<td>audio</td>
<td>Activate audio sound effects</td>
<td><select id="settingsEditor-audio">
<option>${window.settings.audio}</option>
<option>${!window.settings.audio}</option>
</select></td>
</tr>
<tr>
<td>audioVolume</td>
<td>Set default volume for sound effects (0.0 - 1.0)</td>
<td><input type="number" id="settingsEditor-audioVolume" value="${window.settings.audioVolume || '1.0'}"></td>
</tr>
<tr>
<td>disableFeedbackAudio</td>
<td>Disable recurring feedback sound FX (input/output, mostly)</td>
<td><select id="settingsEditor-disableFeedbackAudio">
<option>${window.settings.disableFeedbackAudio}</option>
<option>${!window.settings.disableFeedbackAudio}</option>
</select></td>
</tr>
<tr>
<td>port</td>
<td>Local port to use for UI-shell connection</td>
<td><input type="number" id="settingsEditor-port" value="${window.settings.port}"></td>
</tr>
<tr>
<td>pingAddr</td>
<td>IPv4 address to test Internet connectivity</td>
<td><input type="text" id="settingsEditor-pingAddr" value="${window.settings.pingAddr || "1.1.1.1"}"></td>
</tr>
<tr>
<td>clockHours</td>
<td>Clock format (12/24 hours)</td>
<td><select id="settingsEditor-clockHours">
<option>${(window.settings.clockHours === 12) ? "12" : "24"}</option>
<option>${(window.settings.clockHours === 12) ? "24" : "12"}</option>
</select></td>
<tr>
<td>monitor</td>
<td>Which monitor to spawn the UI in (defaults to primary display)</td>
<td><select id="settingsEditor-monitor">
${(typeof window.settings.monitor !== "undefined") ? "<option>"+window.settings.monitor+"</option>" : ""}
${monitors}
</select></td>
</tr>
<tr>
<td>nointro</td>
<td>Skip the intro boot log and logo${(window.settings.nointroOverride) ? " (Currently overridden by CLI flag)" : ""}</td>
<td><select id="settingsEditor-nointro">
<option>${window.settings.nointro}</option>
<option>${!window.settings.nointro}</option>
</select></td>
</tr>
<tr>
<td>nocursor</td>
<td>Hide the mouse cursor${(window.settings.nocursorOverride) ? " (Currently overridden by CLI flag)" : ""}</td>
<td><select id="settingsEditor-nocursor">
<option>${window.settings.nocursor}</option>
<option>${!window.settings.nocursor}</option>
</select></td>
</tr>
<tr>
<td>iface</td>
<td>Override the interface used for network monitoring</td>
<td><select id="settingsEditor-iface">
<option>${window.mods.netstat.iface}</option>
${ifaces}
</select></td>
</tr>
<tr>
<td>allowWindowed</td>
<td>Allow using F11 key to set the UI in windowed mode</td>
<td><select id="settingsEditor-allowWindowed">
<option>${window.settings.allowWindowed}</option>
<option>${!window.settings.allowWindowed}</option>
</select></td>
</tr>
<tr>
<td>keepGeometry</td>
<td>Try to keep a 16:9 aspect ratio in windowed mode</td>
<td><select id="settingsEditor-keepGeometry">
<option>${(window.settings.keepGeometry === false) ? 'false' : 'true'}</option>
<option>${(window.settings.keepGeometry === false) ? 'true' : 'false'}</option>
</select></td>
</tr>
<tr>
<td>excludeThreadsFromToplist</td>
<td>Display threads in the top processes list</td>
<td><select id="settingsEditor-excludeThreadsFromToplist">
<option>${window.settings.excludeThreadsFromToplist}</option>
<option>${!window.settings.excludeThreadsFromToplist}</option>
</select></td>
</tr>
<tr>
<td>hideDotfiles</td>
<td>Hide files and directories starting with a dot in file display</td>
<td><select id="settingsEditor-hideDotfiles">
<option>${window.settings.hideDotfiles}</option>
<option>${!window.settings.hideDotfiles}</option>
</select></td>
</tr>
<tr>
<td>fsListView</td>
<td>Show files in a more detailed list instead of an icon grid</td>
<td><select id="settingsEditor-fsListView">
<option>${window.settings.fsListView}</option>
<option>${!window.settings.fsListView}</option>
</select></td>
</tr>
<tr>
<td>experimentalGlobeFeatures</td>
<td>Toggle experimental features for the network globe</td>
<td><select id="settingsEditor-experimentalGlobeFeatures">
<option>${window.settings.experimentalGlobeFeatures}</option>
<option>${!window.settings.experimentalGlobeFeatures}</option>
</select></td>
</tr>
<tr>
<td>experimentalFeatures</td>
<td>Toggle Chrome's experimental web features (DANGEROUS)</td>
<td><select id="settingsEditor-experimentalFeatures">
<option>${window.settings.experimentalFeatures}</option>
<option>${!window.settings.experimentalFeatures}</option>
</select></td>
</tr>
</table>
<h6 id="settingsEditorStatus">Loaded values from memory</h6>
<br>`,
buttons: [
{label: "Open in External Editor", action:`electron.shell.openPath('${settingsFile}');electronWin.minimize();`},
{label: "Save to Disk", action: "window.writeSettingsFile()"},
{label: "Reload UI", action: "window.location.reload(true);"},
{label: "Restart eDEX", action: "electron.remote.app.relaunch();electron.remote.app.quit();"}
]
}, () => {
// Link the keyboard back to the terminal
window.keyboard.attach();
// Focus back on the term
window.term[window.currentTerm].term.focus();
});
};
window.writeFile = (path) => {
fs.writeFile(path, document.getElementById("fileEdit").value, "utf-8", () => {
document.getElementById("fedit-status").innerHTML = "<i>File saved.</i>";
});
};
window.writeSettingsFile = () => {
window.settings = {
shell: document.getElementById("settingsEditor-shell").value,
shellArgs: document.getElementById("settingsEditor-shellArgs").value,
cwd: document.getElementById("settingsEditor-cwd").value,
env: document.getElementById("settingsEditor-env").value,
username: document.getElementById("settingsEditor-username").value,
keyboard: document.getElementById("settingsEditor-keyboard").value,
theme: document.getElementById("settingsEditor-theme").value,
termFontSize: Number(document.getElementById("settingsEditor-termFontSize").value),
audio: (document.getElementById("settingsEditor-audio").value === "true"),
audioVolume: Number(document.getElementById("settingsEditor-audioVolume").value),
disableFeedbackAudio: (document.getElementById("settingsEditor-disableFeedbackAudio").value === "true"),
pingAddr: document.getElementById("settingsEditor-pingAddr").value,
clockHours: Number(document.getElementById("settingsEditor-clockHours").value),
port: Number(document.getElementById("settingsEditor-port").value),
monitor: Number(document.getElementById("settingsEditor-monitor").value),
nointro: (document.getElementById("settingsEditor-nointro").value === "true"),
nocursor: (document.getElementById("settingsEditor-nocursor").value === "true"),
iface: document.getElementById("settingsEditor-iface").value,
allowWindowed: (document.getElementById("settingsEditor-allowWindowed").value === "true"),
forceFullscreen: window.settings.forceFullscreen,
keepGeometry: (document.getElementById("settingsEditor-keepGeometry").value === "true"),
excludeThreadsFromToplist: (document.getElementById("settingsEditor-excludeThreadsFromToplist").value === "true"),
hideDotfiles: (document.getElementById("settingsEditor-hideDotfiles").value === "true"),
fsListView: (document.getElementById("settingsEditor-fsListView").value === "true"),
experimentalGlobeFeatures: (document.getElementById("settingsEditor-experimentalGlobeFeatures").value === "true"),
experimentalFeatures: (document.getElementById("settingsEditor-experimentalFeatures").value === "true")
};
Object.keys(window.settings).forEach(key => {
if (window.settings[key] === "undefined") {
delete window.settings[key];
}
});
fs.writeFileSync(settingsFile, JSON.stringify(window.settings, "", 4));
document.getElementById("settingsEditorStatus").innerText = "New values written to settings.json file at "+new Date().toTimeString();
};
window.toggleFullScreen = () => {
let useFullscreen = (electronWin.isFullScreen() ? false : true);
electronWin.setFullScreen(useFullscreen);
//Update settings
window.lastWindowState["useFullscreen"] = useFullscreen;
fs.writeFileSync(lastWindowStateFile, JSON.stringify(window.lastWindowState, "", 4));
};
// Display available keyboard shortcuts and custom shortcuts helper
window.openShortcutsHelp = () => {
if (document.getElementById("settingsEditor")) return;
const shortcutsDefinition = {
"COPY": "Copy selected buffer from the terminal.",
"PASTE": "Paste system clipboard to the terminal.",
"NEXT_TAB": "Switch to the next opened terminal tab (left to right order).",
"PREVIOUS_TAB": "Switch to the previous opened terminal tab (right to left order).",
"TAB_X": "Switch to terminal tab <strong>X</strong>, or create it if it hasn't been opened yet.",
"SETTINGS": "Open the settings editor.",
"SHORTCUTS": "List and edit available keyboard shortcuts.",
"FUZZY_SEARCH": "Search for entries in the current working directory.",
"FS_LIST_VIEW": "Toggle between list and grid view in the file browser.",
"FS_DOTFILES": "Toggle hidden files and directories in the file browser.",
"KB_PASSMODE": "Toggle the on-screen keyboard's \"Password Mode\", which allows you to safely<br>type sensitive information even if your screen might be recorded (disable visual input feedback).",
"DEV_DEBUG": "Open Chromium Dev Tools, for debugging purposes.",
"DEV_RELOAD": "Trigger front-end hot reload."
};
let appList = "";
window.shortcuts.filter(e => e.type === "app").forEach(cut => {
let action = (cut.action.startsWith("TAB_")) ? "TAB_X" : cut.action;
appList += `<tr>
<td>${(cut.enabled) ? 'YES' : 'NO'}</td>
<td><input disabled type="text" maxlength=25 value="${cut.trigger}"></td>
<td>${shortcutsDefinition[action]}</td>
</tr>`;
});
let customList = "";
window.shortcuts.filter(e => e.type === "shell").forEach(cut => {
customList += `<tr>
<td>${(cut.enabled) ? 'YES' : 'NO'}</td>
<td><input disabled type="text" maxlength=25 value="${cut.trigger}"></td>
<td>
<input disabled type="text" placeholder="Run terminal command..." value="${cut.action}">
<input disabled type="checkbox" name="shortcutsHelpNew_Enter" ${(cut.linebreak) ? 'checked' : ''}>
<label for="shortcutsHelpNew_Enter">Enter</label>
</td>
</tr>`;
});
window.keyboard.detach();
new Modal({
type: "custom",
title: `Available Keyboard Shortcuts <i>(v${electron.remote.app.getVersion()})</i>`,
html: `<h5>Using either the on-screen or a physical keyboard, you can use the following shortcuts:</h5>
<details open id="shortcutsHelpAccordeon1">
<summary>Emulator shortcuts</summary>
<table class="shortcutsHelp">
<tr>
<th>Enabled</th>
<th>Trigger</th>
<th>Action</th>
</tr>
${appList}
</table>
</details>
<br>
<details id="shortcutsHelpAccordeon2">
<summary>Custom command shortcuts</summary>
<table class="shortcutsHelp">
<tr>
<th>Enabled</th>
<th>Trigger</th>
<th>Command</th>
<tr>
${customList}
</table>
</details>
<br>`,
buttons: [
{label: "Open Shortcuts File", action:`electron.shell.openPath('${shortcutsFile}');electronWin.minimize();`},
{label: "Reload UI", action: "window.location.reload(true);"},
]
}, () => {
window.keyboard.attach();
window.term[window.currentTerm].term.focus();
});
let wrap1 = document.getElementById('shortcutsHelpAccordeon1');
let wrap2 = document.getElementById('shortcutsHelpAccordeon2');
wrap1.addEventListener('toggle', e => {
wrap2.open = !wrap1.open;
});
wrap2.addEventListener('toggle', e => {
wrap1.open = !wrap2.open;
});
};
window.useAppShortcut = action => {
switch(action) {
case "COPY":
window.term[window.currentTerm].clipboard.copy();
return true;
case "PASTE":
window.term[window.currentTerm].clipboard.paste();
return true;
case "NEXT_TAB":
if (window.term[window.currentTerm+1]) {
window.focusShellTab(window.currentTerm+1);
} else if (window.term[window.currentTerm+2]) {
window.focusShellTab(window.currentTerm+2);
} else if (window.term[window.currentTerm+3]) {
window.focusShellTab(window.currentTerm+3);
} else if (window.term[window.currentTerm+4]) {
window.focusShellTab(window.currentTerm+4);
} else {
window.focusShellTab(0);
}
return true;
case "PREVIOUS_TAB":
let i = window.currentTerm || 4;
if (window.term[i] && i !== window.currentTerm) {
window.focusShellTab(i);
} else if (window.term[i-1]) {
window.focusShellTab(i-1);
} else if (window.term[i-2]) {
window.focusShellTab(i-2);
} else if (window.term[i-3]) {
window.focusShellTab(i-3);
} else if (window.term[i-4]) {
window.focusShellTab(i-4);
}
return true;
case "TAB_1":
window.focusShellTab(0);
return true;
case "TAB_2":
window.focusShellTab(1);
return true;
case "TAB_3":
window.focusShellTab(2);
return true;
case "TAB_4":
window.focusShellTab(3);
return true;
case "TAB_5":
window.focusShellTab(4);
return true;
case "SETTINGS":
window.openSettings();
return true;
case "SHORTCUTS":
window.openShortcutsHelp();
return true;
case "FUZZY_SEARCH":
window.activeFuzzyFinder = new FuzzyFinder();
return true;
case "FS_LIST_VIEW":
window.fsDisp.toggleListview();
return true;
case "FS_DOTFILES":
window.fsDisp.toggleHidedotfiles();
return true;
case "KB_PASSMODE":
window.keyboard.togglePasswordMode();
return true;
case "DEV_DEBUG":
electron.remote.getCurrentWindow().webContents.toggleDevTools();
return true;
case "DEV_RELOAD":
window.location.reload(true);
return true;
default:
console.warn(`Unknown "${action}" app shortcut action`);
return false;
}
};
// Global keyboard shortcuts
const globalShortcut = electron.remote.globalShortcut;
globalShortcut.unregisterAll();
window.registerKeyboardShortcuts = () => {
window.shortcuts.forEach(cut => {
if (!cut.enabled) return;
if (cut.type === "app") {
if (cut.action === "TAB_X") {
for (let i = 1; i <= 5; i++) {
let trigger = cut.trigger.replace("X", i);
let dfn = () => { window.useAppShortcut(`TAB_${i}`) };
globalShortcut.register(trigger, dfn);
}
} else {
globalShortcut.register(cut.trigger, () => {
window.useAppShortcut(cut.action);
});
}
} else if (cut.type === "shell") {
globalShortcut.register(cut.trigger, () => {
let fn = (cut.linebreak) ? "writelr" : "write";
window.term[window.currentTerm][fn](cut.action);
});
} else {
console.warn(`${cut.trigger} has unknown type`);
}
});
};
window.registerKeyboardShortcuts();
// See #361
window.addEventListener("focus", () => {
window.registerKeyboardShortcuts();
});
window.addEventListener("blur", () => {
globalShortcut.unregisterAll();
});
// Prevent showing menu, exiting fullscreen or app with keyboard shortcuts
document.addEventListener("keydown", e => {
if (e.key === "Alt") {
e.preventDefault();
}
if (e.code.startsWith("Alt") && e.ctrlKey && e.shiftKey) {
e.preventDefault();
}
if (e.key === "F11" && !settings.allowWindowed) {
e.preventDefault();
}
if (e.code === "KeyD" && e.ctrlKey) {
e.preventDefault();
}
if (e.code === "KeyA" && e.ctrlKey) {
e.preventDefault();
}
});
// Fix #265
window.addEventListener("keyup", e => {
if (require("os").platform() === "win32" && e.key === "F4" && e.altKey === true) {
electron.remote.app.quit();
}
});
// Fix double-tap zoom on touchscreens
electron.webFrame.setVisualZoomLevelLimits(1, 1);
// Resize terminal with window
window.onresize = () => {
if (typeof window.currentTerm !== "undefined") {
if (typeof window.term[window.currentTerm] !== "undefined") {
window.term[window.currentTerm].fit();
}
}
};
// See #413
window.resizeTimeout = null;
let electronWin = electron.remote.getCurrentWindow();
electronWin.on("resize", () => {
if (settings.keepGeometry === false) return;
clearTimeout(window.resizeTimeout);
window.resizeTimeout = setTimeout(() => {
let win = electron.remote.getCurrentWindow();
if (win.isFullScreen()) return false;
if (win.isMaximized()) {
win.unmaximize();
win.setFullScreen(true);
return false;
}
let size = win.getSize();
if (size[0] >= size[1]) {
win.setSize(size[0], parseInt(size[0] * 9 / 16));
} else {
win.setSize(size[1], parseInt(size[1] * 9 / 16));
}
}, 100);
});
electronWin.on("leave-full-screen", () => {
electron.remote.getCurrentWindow().setSize(960, 540);
});
================================================
FILE: src/assets/css/boot_screen.css
================================================
section#boot_screen {
position: fixed;
top: 0vh;
left: 0vh;
width: 100%;
height: 100%;
padding: 0vh;
margin: 0vh;
overflow: hidden;
font-family: monospace;
font-size: 1.4vh;
text-align: left;
display: flex;
align-items: flex-end;
justify-content: flex-start;
}
section#boot_screen.center {
align-items: center;
justify-content: center;
}
section#boot_screen h1 {
font-family: var(--font_main);
font-size: 10vh;
text-align: center;
border-bottom: 0.46vh solid rgb(var(--color_r), var(--color_g), var(--color_b));
padding-top: 2vh;
padding-right: 2vh;
padding-left: 1.5vh;
background-color: transparent;
opacity: 0;
animation-name: fadeInTitle;
animation-duration: 300ms;
animation-timing-function: linear;
animation-fill-mode: forwards;
animation-iteration-count: 1;
}
section#boot_screen h1.glitch {
border: none;
color: transparent;
}
@keyframes fadeInTitle {
from { opacity: 0; }
to { opacity: 1; }
}
section#boot_screen h1::before {
content: "eDEX-UI";
display: block;
transform: translateY(100%) translateX(-2%);
clip-path: polygon(100% 0%, 100% 40%, 0% 40%, 0% 0%);
color: rgba(var(--color_r), var(--color_g), var(--color_b), 0.8);
animation-name: derezzer_top;
animation-duration: 50ms;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate-reverse;
animation-play-state: paused;
height: 0px;
opacity: 0;
}
section#boot_screen h1.glitch::before {
height: auto;
opacity: 1;
animation-play-state: running;
}
@keyframes derezzer_top {
from {transform: translateY(100%) translateX(-1%);}
to {transform: translateY(100%) translateX(-5%);}
}
section#boot_screen h1::after {
content: "eDEX-UI";
display: block;
transform: translateY(-100%) translateX(2%);
clip-path: polygon(100% 40%, 100% 100%, 0% 100%, 0% 40%);
color: rgba(var(--color_r), var(--color_g), var(--color_b), 0.9);
animation-name: derezzer_bottom;
animation-duration: 50ms;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate-reverse;
animation-play-state: paused;
height: 0px;
opacity: 0;
}
section#boot_screen h1.glitch::after {
height: auto;
opacity: 1;
animation-play-state: running;
}
@keyframes derezzer_bottom {
from {transform: translateY(-100%) translateX(1%);}
to {transform: translateY(-100%) translateX(3%);}
}
================================================
FILE: src/assets/css/extra_ratios.css
================================================
/* Support for other screen ratios than 16:9 */
@media (aspect-ratio: 16/10) {
section#filesystem > h3.title {
width: 43.5vw;
}
div.keyboard_key {
height: 2.5vw;
min-width: 2.5vw;
}
div.keyboard_row:last-child {
left: 0.8vh;
}
div.keyboard_row:last-child div {
white-space: nowrap;
}
div.keyboard_row:last-child div:first-child {
width: 6.5vh;
min-width: 6.5vh;
}
div.keyboard_row:last-child div#keyboard_spacebar {
width: 45vh;
min-width: 45vh;
}
div.keyboard_row#row_2 > div.keyboard_enter {
top: -0.9vh;
right: -0.9vh;
}
/* See #317 */
section.mod_column {
width: 17.5%;
}
div#mod_toplist i {
font-size: 1.10vh;
}
table#mod_toplist_table {
padding-left: 0.2vh;
}
div#mod_toplist::after {
right: -15.6vw;
}
div#mod_netstat_innercontainer {
font-size: 1vh;
}
div#mod_conninfo canvas {
height: 10vh;
}
}
@media (aspect-ratio: 64/27) { /* Commercial name of 64/27 ratio is 21:9 */
div.keyboard_row#row_1 > div.keyboard_enter {
height: 2.1vw;
margin-top: 0.2vh;
}
div.keyboard_row#row_2 > div.keyboard_enter {
height: 6vh;
}
div.keyboard_key#keyboard_spacebar {
width: 60vh;
}
div.keyboard_row#row_space {
left: 1.6vw;
}
div#mod_cpuinfo > div > div {
width: 94%;
}
table#mod_toplist_table {
margin-top: -1vh;
}
div#mod_netstat_inner {
width: 100%;
}
div#mod_globe canvas {
width: 85%;
}
div#mod_conninfo canvas {
height: 8vh;
}
}
@media (aspect-ratio: 5/4), (aspect-ratio: 4/3) {
section#filesystem {
display: none;
}
div.keyboard_row#row_1 > div.keyboard_enter {
height: 4.9vh;
left: 0.1vh
}
section#keyboard div.keyboard_key {
margin: 0vh 1vh;
}
section#keyboard div.keyboard_key#keyboard_spacebar {
min-width: 36vw;
width: 36vw;
}
div.keyboard_key > *:not(h1) {
font-size: 1.2vh;
}
div.keyboard_key > h2 {
top: 0.1vh;
left: 0.1vh;
}
div.keyboard_key > h3 {
bottom: 0.1vh;
right: 0.1vh;
}
div#mod_clock h1 > * {
margin: 0vh -0.1vh;
}
div#mod_sysinfo h1 {
font-size: 1vh;
}
div#mod_sysinfo h2 {
font-size: 1.1vh;
}
div#mod_cpuinfo_innercontainer > h1:first-child > i {
font-size: 0.8vh;
}
div#mod_cpuinfo h1 {
font-size: 1.1vh;
}
div#mod_cpuinfo i {
font-size: 1vh;
}
div#mod_ramwatcher_inner > h1:first-child > i {
font-size: 0.8vh;
}
div#mod_toplist i {
opacity: 0;
}
table#mod_toplist_table td {
font-size: 1.1vh;
}
table#mod_toplist_table td:nth-child(2) {
min-width: 4vw;
max-width: 4vw;
}
div#mod_netstat_inner > h1:first-child > i {
opacity: 0;
}
div#mod_netstat_innercontainer {
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
grid-template-areas: "state ping"
"ip ip";
}
div#mod_netstat_innercontainer div:nth-child(1) {
grid-area: state;
}
div#mod_netstat_innercontainer div:nth-child(2) {
grid-area: ip;
border-top: 2px solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.2);
}
div#mod_netstat_innercontainer div:nth-child(2) > * {
position: relative;
top: 1vh;
}
div#mod_netstat_innercontainer div:nth-child(3) {
grid-area: ping;
}
div#mod_netstat_innercontainer div {
align-items: center;
}
div#mod_globe_innercontainer > h1 > i {
opacity: 0
}
div#mod_globe_innercontainer > h2 {
font-size: 0.9vh;
color: rgba(0,0,0,0);
}
div#mod_globe_innercontainer > h2 > i {
font-size: 1.1vh;
color: rgb(var(--color_r), var(--color_g), var(--color_b));
text-align: left;
}
div#mod_conninfo_innercontainer > h1 > i {
opacity: 0;
}
div#mod_conninfo_innercontainer > h2 {
font-size: 0.9vh;
color: rgba(0,0,0,0);
}
div#mod_conninfo_innercontainer > h2 > i {
font-size: 1.1vh;
color: rgb(var(--color_r), var(--color_g), var(--color_b));
text-align: left;
}
}
================================================
FILE: src/assets/css/filesystem.css
================================================
section#filesystem {
position: relative;
top: -0.925vh;
width: 43vw;
height: 30vh;
margin-right: 0.5vw;
opacity: 0;
transition: opacity .5s cubic-bezier(0.4, 0, 1, 1);
}
section#filesystem > h3.title {
width: 43vw;
padding-right: 0;
}
section#filesystem.hideDotfiles > h3.title > p#fs_disp_title_dir::before {
content: "dotfiles hidden - ";
}
h2#fs_disp_error {
font-weight: bold;
text-align: center;
padding-top: 12vh;
}
div#fs_disp_container {
position: relative;
left: .35vw;
top: 1.5vh;
height: 25.5vh;
width: 43vw;
overflow: auto;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(8.5vh, 1fr));
grid-auto-rows: 8.5vh;
grid-gap: 1vh;
box-sizing: border-box;
}
div#fs_disp_container > * {
overflow: hidden;
width: 8.5vh;
height: 8.5vh;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 1;
transition: opacity .2s linear;
}
div#fs_disp_container > *.animationWait {
opacity: 0 !important;
}
div#fs_disp_container > *:active {
animation-name: blink;
animation-iteration-count: infinite;
animation-duration: .1s;
}
@keyframes blink {
0% {background-color: rgba(var(--color_r), var(--color_g), var(--color_b), 0.0);}
50% {background-color: rgba(var(--color_r), var(--color_g), var(--color_b), 1);}
100% {background-color: rgba(var(--color_r), var(--color_g), var(--color_b), 0.0);}
}
div#fs_disp_container > *.hidden {
opacity: 0.7;
}
section#filesystem.hideDotfiles > div#fs_disp_container > *.hidden {
display: none;
}
div#fs_disp_container > * > svg {
width: 5vh;
}
/* Add padding around non-edex icons */
div#fs_disp_container > * > svg:not([viewBox="0 0 24 24"]) {
padding: 0.5vh;
box-sizing: border-box;
}
div#fs_disp_container > * > h3 {
font-size: 1.3vh;
max-width: 100%;
max-height: 30%;
margin: 0px;
padding-top: .5vh;
box-sizing: border-box;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
section#filesystem:not(.list-view) > div#fs_disp_container > div > h4 {
display: none;
}
div#fs_disp_container.disks > div > h4 {
display: none;
}
section#filesystem.list-view > div#fs_disp_container {
grid-template-columns: 1fr;
grid-auto-rows: 2vh;
grid-gap: 0.5vh;
padding-right: 0.5vh;
}
section#filesystem.list-view > div#fs_disp_container:not(.disks) > * {
width: auto;
height: 2vh;
flex-direction: row;
justify-content: flex-start;
}
section#filesystem.list-view > div#fs_disp_container:not(.disks) > div > svg {
height: 2vh;
margin: 0;
width: auto;
margin-right: 2%;
}
section#filesystem.list-view > div#fs_disp_container:not(.disks) > div > h3 {
max-height: unset;
padding-top: .2vh;
text-align: left;
width: 32%;
}
section#filesystem.list-view > div#fs_disp_container:not(.disks) > div > h4 {
font-size: 1.3vh;
font-weight: normal;
padding-top: .2vh;
text-align: right;
overflow: hidden;
}
section#filesystem.list-view > div#fs_disp_container:not(.disks) > div > h4:nth-of-type(1) { width: 15%; }
section#filesystem.list-view > div#fs_disp_container:not(.disks) > div > h4:nth-of-type(2) { width: 10%; }
section#filesystem.list-view > div#fs_disp_container:not(.disks) > div > h4:nth-of-type(3) { width: 38%; }
div#fs_disp_container.disks {
display: flex;
align-items: center;
justify-content: space-evenly;
border: 0.4vh double rgba(var(--color_r), var(--color_g), var(--color_b), 0.8);
flex-wrap: wrap;
}
div#fs_disp_container.disks > * {
width: auto;
max-width: 8vw;
}
section#filesystem:not(.list-view) div.fs_disp_showDisks > svg, section#filesystem:not(.list-view) div.fs_disp_up > svg {
width: 4vh !important;
margin-bottom: 0.5vh;
margin-top: 0.5vh;
}
div.fs_disp_file > h3 {
font-weight: normal;
}
div.fs_disp_symlink > h3 {
font-weight: normal;
text-decoration: underline;
}
div.fs_disp_other > h3 {
font-style: italic;
}
div#fs_space_bar {
position: relative;
top: 1.5vh;
left: .15vw;
}
div#fs_space_bar > h1 {
display: none;
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.1);
height: 3.2vh;
width: 100%;
position: relative;
bottom: .7vh;
left: .3vh;
align-items: center;
justify-content: center;
box-sizing: border-box;
border: 2px solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.5);
border-radius: 2px;
font-family: var(--font_main);
font-weight: bold;
font-size: 1.5vh;
cursor: pointer;
}
div#fs_disp_container.disks+div#fs_space_bar > h1 {
display: flex;
}
div#fs_disp_container.disks+div#fs_space_bar > *:not(h1) {
display: none;
}
div#fs_space_bar > h3 {
width: 30%;
margin: 0;
display: inline-block;
font-size: 1.4vh;
font-weight: normal;
white-space: nowrap;
position: relative;
bottom: .4vh;
}
div#fs_space_bar > progress {
width: 70%;
height: 2.2vh;
padding-top: .5vh;
-webkit-appearance: none;
}
div#fs_space_bar > progress::after {
content: "";
position: absolute;
right: -.1vh;
top: .45vh;
width: .1vh;
height: 1.7vh;
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.8);
}
div#fs_space_bar > progress:not([value])::after {
animation: space_bar_working 1.7s ease-in-out alternate infinite;
background: rgba(var(--color_r), var(--color_g), var(--color_b), 1);
}
@keyframes space_bar_working {
0% { right: 0%; }
100% { right: 70%; }
}
div#fs_space_bar > progress::-webkit-progress-bar {
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.4);
height: .7vh;
position: relative;
top: .7vh;
}
div#fs_space_bar > progress::-webkit-progress-value {
background: rgb(var(--color_r), var(--color_g), var(--color_b));
height: .7vh;
position: relative;
bottom: .7vh;
transition: width .5s cubic-bezier(0.4, 0, 1, 1);
}
.pdf_container {
text-align: center;
background: var(--color_light_black);
color: rgb(var(--color_r), var(--color_g), var(--color_b));
border: 0.15vh solid rgb(var(--color_r), var(--color_g), var(--color_b));
padding: 0.4vh 0.2vh;
font-size: 1.4vh;
resize: none;
overflow: auto;
width: 50vw;
height: 50vh;
}
.pdf_options button {
width: 40px;
height: 40px;
padding: 5px;
}
.pdf_options span {
margin-left: 1.5vh;
font-size: 24px;
}
================================================
FILE: src/assets/css/keyboard.css
================================================
section#keyboard {
display: flex;
flex-direction: column;
align-items: center;
width: 55.5vw;
position: relative;
top: -0.925vh;
}
section#keyboard[data-password-mode="true"] {
opacity: 0.5 !important;
cursor: none !important;
}
div.keyboard_row {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
flex-wrap: nowrap;
margin: 0.46vh 0vh;
height: 5.28vh;
}
section#keyboard.animation_state_2 > div.keyboard_row:nth-child(1) {
transition: width .7s cubic-bezier(0.4, 0, 1, 1) .3s, filter .1s linear .8s;
}
section#keyboard.animation_state_2 > div.keyboard_row:nth-child(2) {
transition: width .7s cubic-bezier(0.4, 0, 1, 1) .2s, filter .1s linear .6s;
}
section#keyboard.animation_state_2 > div.keyboard_row:nth-child(3) {
transition: width .7s cubic-bezier(0.4, 0, 1, 1), filter .1s linear .5s;
}
section#keyboard.animation_state_2 > div.keyboard_row:nth-child(4) {
transition: width .7s cubic-bezier(0.4, 0, 1, 1) .25s, filter .1s linear .8s;
}
section#keyboard.animation_state_2 > div.keyboard_row:nth-child(5) {
transition: width .6s cubic-bezier(0.4, 0, 1, 1) .2s, filter .1s linear .6s;
}
section#keyboard.animation_state_1 > * {
filter: brightness(170%);
width: 0vh;
overflow: hidden;
}
section#keyboard.animation_state_2 > * {
filter: brightness(100%);
width: 100vw;
overflow: hidden;
}
div.keyboard_row:last-child {
position: relative;
left: 2.4vh;
}
div.keyboard_key {
height: 2.7vw;
min-width: 2.7vw;
overflow: hidden;
border-radius: 0.46vh;
background-color: rgba(var(--color_r), var(--color_g), var(--color_b), 0.0);
border: 0.18vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.0);
margin: 0vh 0.46vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
cursor: pointer;
}
section#keyboard:not([data-password-mode="true"]) div.keyboard_key:active, section#keyboard:not([data-password-mode="true"]) div.keyboard_key.active {
border: 0.18vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.0);
background-color: rgba(var(--color_r), var(--color_g), var(--color_b), 1);
}
section#keyboard:not([data-password-mode="true"]) div.keyboard_key.blink {
animation-name: blink;
animation-duration: .5s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes blink {
0% {background-color: rgba(var(--color_r), var(--color_g), var(--color_b), 0.0);}
50% {background-color: rgba(var(--color_r), var(--color_g), var(--color_b), 1);}
100% {background-color: rgba(var(--color_r), var(--color_g), var(--color_b), 0.0);}
}
div.keyboard_key > * {
margin: 0vh 0.46vh;
padding: 0vh;
-webkit-margin-after: 0vh;
-webkit-margin-before: 0vh;
}
div.keyboard_key > h1, div.keyboard_key > h4, div.keyboard_row > .keyboard_key:last-child > *, div.keyboard_row > .keyboard_key:first-child > * {
position: relative;
top: 0.278vh;
font-size: 2.4vh;
}
div.keyboard_row:not(:nth-child(4)) > .keyboard_key:last-child > *, div.keyboard_row > .keyboard_key:first-child > *, div.keyboard_row:last-child > .keyboard_key > *, div.keyboard_row:nth-child(4) > .keyboard_key:nth-last-child(2) > * {
font-size: 1.85vh;
}
div.keyboard_row:last-child > .keyboard_key:nth-last-child(-n+3) > * {
font-size: 2.4vh;
}
div.keyboard_key > svg {
width: calc(100% - 1vh);
height: calc(100% - 1vh);
top: .5vh !important;
opacity: 1 !important;
fill: rgb(var(--color_r), var(--color_g), var(--color_b));
}
div.keyboard_key > *:not(h1) {
margin: 0vh;
font-size: 1.67vh;
position: absolute;
}
div.keyboard_key > h2 {
top: 0.278vh;
left: 0.278vh;
}
div.keyboard_key > h3 {
bottom: 0.278vh;
right: 0.278vh;
}
div.keyboard_key > h5 {
top: 0.278vh;
right: 0.278vh;
}
div.keyboard_key > h4, div.keyboard_row > .keyboard_key:last-child > *:not(h1), div.keyboard_row > .keyboard_key:first-child > *:not(h1) {
opacity: 0;
position: absolute;
}
div.keyboard_row:not(:nth-child(4)):not(:last-child) > .keyboard_key:last-child, div.keyboard_row > .keyboard_key:first-child {
width: 8.33vh;
min-width: 8.33vh;
}
div.keyboard_key#keyboard_spacebar {
border: 0.19vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.5);
}
div.keyboard_row#row_1 > div.keyboard_enter {
border: 0.19vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.5);
border-bottom-right-radius: 0vh;
width: 9.72vh;
min-width: 9.72vh;
}
div.keyboard_row#row_2 > div.keyboard_enter {
border: 0.19vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.5);
border-top-left-radius: 0vh;
border-top: 0.3vh solid var(--color_light_black);
width: 7.78vh;
min-width: 7.78vh;
margin-top: 0vh;
height: 6.389vh;
top: -0.37vh;
right: -1vh;
}
div.keyboard_row#row_2 > div.keyboard_enter:active, div.keyboard_row#row_2 > div.keyboard_enter.active {
border-top: 0.3vh solid rgb(var(--color_r), var(--color_g), var(--color_b));
}
div.keyboard_key#keyboard_spacebar {
width: 47.68vh;
min-width: 47.68vh;
height: 3.52vh;
}
div.keyboard_row:nth-child(4) > div.keyboard_key:last-child {
position: relative;
top: 0.278vh;
}
div.keyboard_row:last-child > div.keyboard_key:nth-last-child(-n+3) {
margin: 0vh;
position: relative;
bottom: 0.278vh;
}
section#keyboard[data-is-caps-lck-on="true"] div.keyboard_key[data-cmd="ESCAPED|-- CAPSLCK: ON"] {
background-color: rgb(var(--color_r), var(--color_g), var(--color_b));
color: var(--color_black);
}
section#keyboard[data-is-shift-on="true"] > div.keyboard_row > div.keyboard_key > h2:not(:empty), section#keyboard[data-is-caps-lck-on="true"] > div.keyboard_row > div.keyboard_key > h2:not(:empty) {
position: relative;
top: 0.278vh;
font-size: 2.4vh;
margin: 0vh 0.46vh;
}
section#keyboard[data-is-shift-on="true"] > div.keyboard_row:first-child > div.keyboard_key:last-child > h2, section#keyboard[data-is-caps-lck-on="true"] > div.keyboard_row:first-child > div.keyboard_key:last-child > h2 {
font-size: 1.85vh;
opacity: 1;
}
section#keyboard[data-is-shift-on="true"] > div.keyboard_row > div.keyboard_key > h2:not(:empty) + h1, section#keyboard[data-is-caps-lck-on="true"] > div.keyboard_row > div.keyboard_key > h2:not(:empty) + h1 {
margin: 0vh;
font-size: 1.67vh;
position: absolute;
top: 0.278vh;
left: 0.278vh;
}
section#keyboard[data-is-shift-on="true"] > div.keyboard_row:first-child > div.keyboard_key:last-child > h2 + h1, section#keyboard[data-is-caps-lck-on="true"] > div.keyboard_row:first-child > div.keyboard_key:last-child > h2 + h1 {
opacity: 0;
}
section#keyboard[data-is-fn-on="true"] div.keyboard_key[data-cmd="ESCAPED|-- FN: ON"] {
background-color: rgb(var(--color_r), var(--color_g), var(--color_b));
color: var(--color_black);
}
section#keyboard[data-is-fn-on="true"] > div.keyboard_row > div.keyboard_key > h4:not(:empty) {
position: relative;
top: 0.278vh;
font-size: 2.4vh;
margin: 0vh 0.46vh;
opacity: 1;
}
section#keyboard[data-is-fn-on="true"] > div.keyboard_row > div.keyboard_key > h4:not(:empty) + h3, section#keyboard[data-is-fn-on="true"] > div.keyboard_row > div.keyboard_key > h4:not(:empty) + h3 + h2, section#keyboard[data-is-fn-on="true"] > div.keyboard_row > div.keyboard_key > h4:not(:empty) + h3 + h2 + h1 {
position: absolute;
opacity: 0;
}
================================================
FILE: src/assets/css/main.css
================================================
html, body {
width: 100%;
height: 100%;
margin: 0vh;
padding: 0vh;
overflow: hidden;
}
body {
user-select: none !important;
padding-top: 1.85vh;
color: rgb(var(--color_r), var(--color_g), var(--color_b));
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
flex-wrap: wrap;
background: linear-gradient(90deg, var(--color_light_black) 1.85vh, transparent 1%) center, linear-gradient(var(--color_light_black) 1.85vh, transparent 1%) center, var(--color_grey);
background-size: 2.04vh 2.04vh;
}
body.solidBackground {
background: var(--color_light_black);
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-button {
display: none;
}
::-webkit-scrollbar-track {
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.4);
border: 3px solid var(--color_light_black);
}
::-webkit-scrollbar-thumb {
background: rgb(var(--color_r), var(--color_g), var(--color_b));
height: auto;
}
section > h3.title:first-child {
position: fixed;
margin: 0vh;
padding: 0vh 0.925vh;
font-size: 1.02vh;
border-bottom: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
}
section > h3.title:first-child > p {
display: inline-block;
margin: 0vh;
width: 49.4%;
}
section > h3.title:first-child > p:last-child {
text-align: right;
white-space: nowrap;
}
section > h3.title:first-child::before {
content: "";
border-left: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
left: -0.925vh;
bottom: -0.555vh;
height: 0.46vh;
}
section > h3.title:first-child::after {
content: "";
border-right: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
right: -1.2vh;
bottom: -0.555vh;
height: 0.46vh;
}
================================================
FILE: src/assets/css/main_shell.css
================================================
section#main_shell {
width: 65%;
height: 60.3%;
padding: 0.74vh;
/* border: 0.18vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.5); */
/* border-radius: 0.278vh; */
--aug-border: 0.18vh;
--aug-border-bg: rgb(var(--color_r), var(--color_g), var(--color_b));
--aug-border-opacity: 0.5;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
overflow: hidden;
transition: width .5s cubic-bezier(0.85, 0.5, 0.85, 0.5), height .5s cubic-bezier(0.85, 0.5, 0.85, 0.5);
}
h1#main_shell_greeting {
font-size: 3.9vh;
font-weight: normal;
margin: auto;
opacity: 0;
transition: opacity .5s cubic-bezier(0.4, 0, 1, 1);
}
h1#main_shell_greeting > em {
font-style: normal;
font-weight: bold;
}
section#main_shell > h3.title {
top: 0.74vh;
left: 16.5vw;
width: 66%;
transition: opacity .5s cubic-bezier(0.4, 0, 1, 1) .5s;
}
section#main_shell > h3.title > p {
width: 49.8%;
}
ul#main_shell_tabs {
margin: 0;
margin-top: -0.70vh;
margin-left: -0.74vh;
padding: 0;
width: calc(100% + 1.48vh);
display: flex;
box-sizing: border-box;
border-bottom: 0.18vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.5);
border-top-left-radius: 0.278vh;
border-top-right-radius: 0.278vh;
flex-direction: row;
align-items: center;
justify-content: space-evenly;
flex-wrap: nowrap;
overflow: hidden;
}
ul#main_shell_tabs > li {
cursor: pointer;
display: block;
font-family: var(--font_main);
font-weight: normal;
width: 100%;
padding-top: 0.7vh;
padding-bottom: 0.4vh;
text-align: center;
box-sizing: border-box;
background: var(--color_light_black);
transform: skewX(35deg);
}
ul#main_shell_tabs > li > p {
margin: 0;
transform: skewX(-35deg);
}
ul#main_shell_tabs > li:not(:first-child) {
border-left: 0.18vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.5);
}
ul#main_shell_tabs > li.active {
background: rgb(var(--color_r), var(--color_g), var(--color_b));
color: var(--color_light_black);
font-weight: bold;
transform: skewX(35deg) scale(1.2);
z-index: -1;
}
div#main_shell_innercontainer, div#main_shell_innercontainer pre {
height: 100%;
width: 100%;
margin: 0vh;
overflow: hidden;
}
div#main_shell_innercontainer pre {
z-index: -999;
opacity: 0;
position: relative;
}
div#main_shell_innercontainer pre.active {
z-index: inherit;
opacity: 1;
}
div#main_shell_innercontainer pre#terminal1 {
top: -100%;
}
div#main_shell_innercontainer pre#terminal2 {
top: -200%;
}
div#main_shell_innercontainer pre#terminal3 {
top: -300%;
}
div#main_shell_innercontainer pre#terminal4 {
top: -400%;
}
.terminal .xterm-viewport {
overflow: hidden;
cursor: default;
position: absolute;
right: 0;
left: 0;
top: 0;
bottom: 0;
padding-bottom: 10px;
}
.xterm {
font-family: monospace;
font-feature-settings: "liga" 0;
position: relative;
user-select: none;
-webkit-user-select: none;
}
.xterm.focus,
.xterm:focus {
outline: none;
}
.xterm .xterm-helpers {
position: absolute;
top: 0;
z-index: 10;
}
.xterm .xterm-helper-textarea {
position: absolute;
opacity: 0;
left: -9999em;
top: 0;
width: 0;
height: 0;
z-index: -10;
white-space: nowrap;
overflow: hidden;
resize: none;
}
.xterm .composition-view {
background: #000;
color: #FFF;
display: none;
position: absolute;
white-space: nowrap;
z-index: 1;
}
.xterm .composition-view.active {
display: block;
}
.xterm .xterm-viewport {
background-color: #000;
overflow-y: hidden;
}
.xterm .xterm-screen {
position: relative;
}
.xterm canvas {
position: absolute;
left: 0;
top: 0;
}
.xterm .xterm-scroll-area {
visibility: hidden;
}
.xterm .xterm-char-measure-element {
display: inline-block;
visibility: hidden;
position: absolute;
left: -9999em;
line-height: normal;
}
.xterm.enable-mouse-events {
/* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
cursor: default;
}
.xterm:not(.enable-mouse-events) {
cursor: text;
}
================================================
FILE: src/assets/css/media_player.css
================================================
.media_container[data-fullscreen=true] .media {
height: 95%;
width: 100%;
max-width: none;
max-height: none;
}
.media_controls {
border: 2px solid rgb(var(--color_r), var(--color_g), var(--color_b));
background: var(--color_light_black);
}
.media_controls>div {
text-align: center;
display: inline-block;
vertical-align: middle;
padding-left: 0.1em;
padding-right: 0.1em;
}
.media_controls .media_button {
font-size: 1.5em;
height: 1em;
width: 1em;
}
.media_controls .media_button:hover {
cursor: pointer;
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.5);
}
.media_controls .media_time {
margin-right: 2vw;
width: 4vw;
}
.media_controls .volume_icon {
font-size: 1.5em;
height: 1em;
width: 1em;
}
.media_controls .volume {
height: 2vh;
z-index: 100;
width: 5vw;
cursor: pointer;
}
.media_controls .volume_bkg {
position: absolute;
border-style: solid;
border-width: 0 0 2vh 5vw;
border-color: transparent transparent rgba(var(--color_r), var(--color_g), var(--color_b), 0.7) transparent;
}
.media_controls .volume_bar {
position: absolute;
clip: rect(0px, 5vw, 2vh, 0px);
width: 5vw;
border-style: solid;
border-width: 0 0 2vh 5vw;
border-color: transparent transparent rgb(var(--color_r), var(--color_g), var(--color_b)) transparent;
}
.fs {
float: right;
}
.media_controls .progress_container {
min-width: 20vw;
}
.media_controls .progress {
display: block;
cursor: pointer;
width: 100%;
background-color: rgba(var(--color_r), var(--color_g), var(--color_b), 0.5);
height: 5px;
}
.media_controls .progress_bar {
width: 0%;
height: 100%;
display: block;
background-color: rgb(var(--color_r), var(--color_g), var(--color_b));
}
.fullscreen_hidden {
visibility: hidden;
opacity: 0;
transition: visibility 0s 2s, opacity 2s linear;
}
.volume_icon:hover {
cursor: pointer;
}
================================================
FILE: src/assets/css/mod_clock.css
================================================
div#mod_clock {
display: flex;
height: 7.41vh;
padding-top: 0.645vh;
border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
font-family: var(--font_main_light);
}
div#mod_clock::before {
content: "";
border-left: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
left: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_clock::after {
content: "";
border-right: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
right: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_clock h1 {
margin: auto;
font-size: 4vh;
}
div#mod_clock span, div#mod_clock em {
display: inline-block;
text-align: center;
}
div#mod_clock span {
margin: 0vh 0.2vh;
width: 2.3vh;
}
div#mod_clock em {
font-style: normal;
margin: 0vh 0.3vh;
width: 2.5vh;
}
div#mod_clock.mod_clock_twelve h1 span:last-child {
font-size: 1.5vh;
}
================================================
FILE: src/assets/css/mod_column.css
================================================
section.mod_column {
width: 17%;
top: 2.5vh;
min-height: 10%;
max-height: 96%;
padding: 1.39vh;
padding-bottom: 0vh;
box-sizing: border-box;
position: absolute;
display: flex;
flex-direction: column;
justify-content: space-between;
opacity: 0;
transition: opacity .5s cubic-bezier(0.4, 0, 1, 1);
}
section.mod_column.activated {
opacity: 1;
}
section.mod_column > h3.title {
top: 0.74vh;
width: 14.8%;
}
section.mod_column > div {
width: 100%;
opacity: 0;
animation-name: fadeIn;
animation-duration: .5s;
animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
animation-delay: 0s;
animation-iteration-count: 1;
animation-fill-mode: forwards;
animation-play-state: paused;
}
@keyframes fadeIn {
from {opacity: 0;}
to {opacity: 1;}
}
section#mod_column_left {
left: -0.555vh;
align-items: flex-end;
}
section#mod_column_left > h3.title {
left: 0.555vh;
}
section#mod_column_right {
right: -0.555vh;
align-items: flex-start;
}
section#mod_column_right > h3.title {
right: 0.555vh;
}
================================================
FILE: src/assets/css/mod_conninfo.css
================================================
div#mod_conninfo {
border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
font-family: var(--font_main_light);
letter-spacing: 0.092vh;
padding: 0.645vh 0vh;
display: flex;
}
div#mod_conninfo::before {
content: "";
border-left: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
align-self: flex-start;
position: relative;
left: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_conninfo::after {
content: "";
border-right: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
right: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_conninfo_innercontainer {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
}
div#mod_conninfo h1 {
font-size: 1.48vh;
margin: 0vh;
margin-bottom: -1vh;
width: 98%;
}
div#mod_conninfo h2 {
font-size: 1.4vh;
margin: 0vh;
margin-bottom: -0.7vh;
width: 98%;
opacity: .5;
}
div#mod_conninfo i {
font-style: normal;
font-size: 1.20vh;
opacity: 0.5;
text-align: right;
display: inline-block;
position: relative;
bottom: 1.5vh;
width: 100%;
}
div#mod_conninfo canvas {
width: 100%;
height: 8.7vh;
z-index: 10;
border-top: 0.092vh dashed rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
border-bottom: 0.092vh dashed rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
margin: 0.46vh 0vh;
opacity: 1;
}
div#mod_conninfo canvas#mod_conninfo_canvas_top {
border-bottom: none;
margin-bottom: 0vh;
}
div#mod_conninfo canvas#mod_conninfo_canvas_bottom {
border-top: 0.139vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.4);
margin-top: -0.092vh;
}
div#mod_conninfo h3:last-child {
position: absolute;
font-size: 2vh;
z-index: 15;
opacity: 0;
}
div#mod_conninfo.offline canvas {
opacity: 0.3;
}
div#mod_conninfo.offline h3:last-child {
opacity: 1;
}
================================================
FILE: src/assets/css/mod_cpuinfo.css
================================================
div#mod_cpuinfo {
border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
font-family: var(--font_main_light);
letter-spacing: 0.092vh;
padding: 0.645vh 0vh;
display: flex;
}
div#mod_cpuinfo::before {
content: "";
border-left: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
align-self: flex-start;
position: relative;
left: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_cpuinfo::after {
content: "";
border-right: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
right: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_cpuinfo > div#mod_cpuinfo_innercontainer {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
width: 100%;
}
div#mod_cpuinfo_innercontainer > h1:first-child {
font-size: 1.48vh;
margin: 0vh;
width: 98%;
padding-left: 2%;
margin-bottom: -1.5vh;
}
div#mod_cpuinfo_innercontainer > h1:first-child > i {
font-style: normal;
font-size: 1.20vh;
opacity: 0.5;
text-align: right;
display: inline-block;
position: relative;
bottom: 1.9vh;
width: 100%;
}
div#mod_cpuinfo > div > div {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 100%;
margin: 0.278vh 0vh;
}
div#mod_cpuinfo > div > div:last-child {
width: 95%;
border-top: 0.092vh dashed rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
padding-top: 0.838vh;
}
div#mod_cpuinfo > div > div:last-child > div {
width: 20%;
text-align: center;
}
div#mod_cpuinfo h1 {
font-size: 1.3vh;
line-height: 1.5vh;
margin: 0vh;
}
div#mod_cpuinfo em {
font-family: var(--font_main);
font-style: normal;
}
div#mod_cpuinfo span {
width: 1em;
position: relative;
top: 0.37vh;
right: 0.278vh;
text-align: center;
overflow: hidden;
display: inline-block;
}
div#mod_cpuinfo i {
font-style: normal;
font-size: 1.3vh;
opacity: 0.5;
margin-top: 0.5vh;
}
div#mod_cpuinfo canvas {
width: 76%;
height: 4.167vh;
border-top: 0.092vh dashed rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
border-bottom: 0.092vh dashed rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
margin: 0.46vh 0vh;
}
================================================
FILE: src/assets/css/mod_fuzzyFinder.css
================================================
input#fuzzyFinder {
width: 100%;
background: var(--color_light_black);
color: rgb(var(--color_r), var(--color_g), var(--color_b));
border: 0.15vh solid rgb(var(--color_r), var(--color_g), var(--color_b));
padding: 0.4vh 0.2vh;
font-size: 1.4vh;
box-sizing: border-box;
margin-bottom: 1.5vh;
}
input#fuzzyFinder:active, input#fuzzyFinder:focus {
outline: none !important;
background: rgb(var(--color_r), var(--color_g), var(--color_b));
color: var(--color_light_black);
}
ul#fuzzyFinder-results {
padding: 0;
}
ul#fuzzyFinder-results li {
display: block;
min-width: 50vw;
font-family: var(--font_main);
background: var(--color_light_black);
color: rgb(var(--color_r), var(--color_g), var(--color_b));
height: 1.6vh;
font-size: 1.5vh;
padding: 0.2vh 0.4vh;
padding-top: 0.4vh;
}
ul#fuzzyFinder-results li.fuzzyFinderMatchSelected {
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.75);
color: var(--color_light_black);
}
================================================
FILE: src/assets/css/mod_globe.css
================================================
div#mod_globe {
border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
font-family: var(--font_main_light);
letter-spacing: 0.092vh;
padding: 0.645vh 0vh;
display: flex;
}
div#mod_globe::before {
content: "";
border-left: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
align-self: flex-start;
position: relative;
left: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_globe::after {
content: "";
border-right: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
right: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_globe_innercontainer {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
}
div#mod_globe h1 {
font-size: 1.48vh;
margin: 0vh;
margin-bottom: -1vh;
width: 98%;
}
div#mod_globe h2 {
font-size: 1.4vh;
margin: 0vh;
margin-bottom: -0.7vh;
width: 98%;
opacity: .5;
}
div#mod_globe i {
font-style: normal;
font-size: 1.20vh;
opacity: 0.5;
text-align: right;
display: inline-block;
position: relative;
bottom: 1.5vh;
width: 100%;
}
div#mod_globe i.mod_globe_headerInfo {
padding-top: .2vh;
}
div#mod_globe canvas {
width: 109%;
margin: 0px;
margin-top: -1.5vh;
}
div#mod_globe_canvas_placeholder {
width: 109%;
height: 0px;
padding-bottom: 100%;
margin: 0px;
margin-top: -1.5vh;
}
div#mod_globe h3 {
position: absolute;
font-size: 2vh;
z-index: 15;
opacity: 0;
}
div#mod_globe.offline canvas {
opacity: 0.3;
}
div#mod_globe.offline h3 {
opacity: 1;
}
================================================
FILE: src/assets/css/mod_hardwareInspector.css
================================================
div#mod_hardwareInspector {
border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
font-family: var(--font_main_light);
letter-spacing: 0.092vh;
padding: 0.645vh 0vh;
display: flex;
}
div#mod_hardwareInspector::before {
content: "";
border-left: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
align-self: flex-start;
position: relative;
left: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_hardwareInspector::after {
content: "";
border-right: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
right: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_hardwareInspector_inner {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-evenly;
flex-wrap: wrap;
width: 100%;
}
div#mod_hardwareInspector_inner > div {
text-align: left;
}
div#mod_hardwareInspector_inner > div > * {
font-size: 1.3vh;
line-height: 1.5vh;
margin: 0vh;
}
div#mod_hardwareInspector_inner > div > h2 {
opacity: 0.5;
}
================================================
FILE: src/assets/css/mod_netstat.css
================================================
div#mod_netstat {
border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
font-family: var(--font_main_light);
letter-spacing: 0.092vh;
font-size: 1.111vh;
padding: 0vh;
padding-top: 0.645vh;
display: flex;
}
div#mod_netstat::before {
content: "";
border-left: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
align-self: flex-start;
position: relative;
left: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_netstat::after {
content: "";
border-right: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
right: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_netstat_inner > h1:first-child {
font-size: 1.48vh;
margin: 0vh;
width: 98%;
padding-left: 2%;
}
div#mod_netstat_inner > h1:first-child > i {
font-style: normal;
font-size: 1.20vh;
opacity: 0.5;
text-align: right;
display: inline-block;
position: relative;
bottom: 1.6vh;
right: 0.3vw;
width: 100%;
}
div#mod_netstat_innercontainer {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 1fr;
grid-gap: 0.46vh;
position: relative;
top: -1.5vh;
}
div#mod_netstat_innercontainer div {
padding: 0.925vh 0.46vh;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-around;
}
div#mod_netstat_innercontainer div:nth-child(2) {
grid-column: 2 / 4;
}
div#mod_netstat_innercontainer h1 {
margin: 0vh;
opacity: 0.5;
}
div#mod_netstat_innercontainer h2 {
margin: 0vh;
}
================================================
FILE: src/assets/css/mod_processlist.css
================================================
table#processContainer {
display: block;
max-height: 60vh;
overflow: auto;
}
table#processContainer td.header {
font-weight: bold;
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.6);
color: var(--color_light_black);
text-align: center;
}
table#processContainer td.header:hover {
cursor: pointer;
}
table#processContainer td.pid {
width: 5vw;
}
table#processContainer td.name {
width: 12vw;
}
table#processContainer td.user {
width: 7vw;
}
table#processContainer td.cpu {
width: 3vw;
text-align: center;
}
table#processContainer td.mem{
width: 3vw;
text-align: center;
}
table#processContainer td.state {
width: 6vw;
text-align: center;
}
table#processContainer td.started {
width: 11vw;
}
table#processContainer td.runtime {
width: 5vw;
}
================================================
FILE: src/assets/css/mod_ramwatcher.css
================================================
div#mod_ramwatcher {
border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
font-family: var(--font_main_light);
letter-spacing: 0.092vh;
font-size: 1.111vh;
padding: 0vh;
padding-top: 0.645vh;
display: flex;
}
div#mod_ramwatcher::before {
content: "";
border-left: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
align-self: flex-start;
position: relative;
left: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_ramwatcher::after {
content: "";
border-right: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
right: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_ramwatcher_inner {
width: 100%;
}
div#mod_ramwatcher_inner > h1:first-child {
font-size: 1.48vh;
margin: 0vh;
width: 98%;
padding-left: 2%;
margin-bottom: -1.5vh;
}
div#mod_ramwatcher_inner > h1:first-child > i {
font-style: normal;
font-size: 1.20vh;
opacity: 0.5;
text-align: right;
display: inline-block;
position: relative;
bottom: 1.6vh;
width: 100%;
}
div#mod_ramwatcher_pointmap {
display: grid;
grid-template-columns: repeat(40, 1fr);
grid-template-rows: repeat(11, 1fr);
grid-auto-flow: column;
grid-gap: 0.23vh;
padding-top: 0.5vh;
padding-left: 0.5vh;
margin-bottom: 0.8vh;
}
div.mod_ramwatcher_point {
width: 0.2vh;
height: 0.25vh;
background: rgb(var(--color_r), var(--color_g), var(--color_b));
}
div.mod_ramwatcher_point.free {
opacity: 0.1;
}
div.mod_ramwatcher_point.available {
opacity: 0.3;
}
div.mod_ramwatcher_point.active {
opacity: 1;
}
div#mod_ramwatcher_swapcontainer {
display: grid;
grid-template-columns: 15% 65% 20%;
padding-left: 0.5vh;
margin-bottom: 0.5vh;
}
div#mod_ramwatcher_swapcontainer h1 {
font-size: 1.3vh;
line-height: 1.5vh;
margin: 0vh;
align-self: center;
}
progress#mod_ramwatcher_swapbar {
width: 100%;
align-self: center;
-webkit-appearance: none;
border-right: .1vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.8);
}
progress#mod_ramwatcher_swapbar::-webkit-progress-bar {
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.4);
height: .25vh;
position: relative;
top: .55vh;
}
progress#mod_ramwatcher_swapbar::-webkit-progress-value {
background: rgb(var(--color_r), var(--color_g), var(--color_b));
height: .4vh;
transition: width .5s cubic-bezier(0.4, 0, 1, 1);
position: relative;
bottom: .4vh;
}
h3#mod_ramwatcher_swaptext {
font-style: normal;
font-size: 1.3vh;
line-height: 1.5vh;
opacity: 0.5;
margin: 0vh;
white-space: nowrap;
align-self: center;
text-align: right;
}
================================================
FILE: src/assets/css/mod_sysinfo.css
================================================
div#mod_sysinfo {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 5.556vh;
border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
font-size: 1.111vh;
font-family: var(--font_main_light);
letter-spacing: 0.092vh;
}
div#mod_sysinfo::before {
content: "";
border-left: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
left: -0.092vh;
top: -2.87vh;
height: 0.833vh;
}
div#mod_sysinfo::after {
content: "";
border-right: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
right: -0.092vh;
top: -2.87vh;
height: 0.833vh;
}
div#mod_sysinfo div {
height: 100%;
box-sizing: border-box;
padding: 0.925vh 0.46vh;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-around;
}
div#mod_sysinfo h1 {
margin: 0vh;
opacity: 0.5;
}
div#mod_sysinfo h2 {
margin: 0vh;
}
================================================
FILE: src/assets/css/mod_toplist.css
================================================
div#mod_toplist {
border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
font-family: var(--font_main_light);
letter-spacing: 0.092vh;
padding: 0.645vh 0vh;
display: flex;
flex-wrap: wrap;
}
div#mod_toplist::before {
content: "";
border-left: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
align-self: flex-start;
position: relative;
left: -0.092vh;
top: -1.111vh;
height: 0.833vh;
}
div#mod_toplist:hover {
cursor: pointer;
}
div#mod_toplist::after {
content: "";
border-right: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);
position: relative;
right: -15.4vw;
top: -12.7vh;
height: 0.833vh;
}
div#mod_toplist h1 {
font-size: 1.48vh;
margin: 0vh;
margin-bottom: -1vh;
width: 97%;
padding-left: 0.5vh;
}
div#mod_toplist i {
font-style: normal;
font-size: 1.20vh;
opacity: 0.5;
text-align: right;
display: inline-block;
position: relative;
bottom: 1.6vh;
width: 100%;
}
table#mod_toplist_table {
margin: 0px;
margin-top: 0.2vh;
width: 99%;
padding-left: 0.5vh;
}
table#mod_toplist_table td {
font-size: 1.50vh;
}
table#mod_toplist_table td:nth-child(2) {
max-width: 7vw;
min-width: 7vw;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
table#mod_toplist_table td:nth-child(3), table#mod_toplist_table td:nth-child(4) {
text-align: right;
max-width: 2.4vw;
min-width: 2.4vw;
}
================================================
FILE: src/assets/css/modal.css
================================================
div.modal_popup {
position: absolute;
min-width: 38vh;
background: var(--color_light_black);
border-color: rgb(var(--color_r), var(--color_g), var(--color_b));
padding: 2vh;
padding-bottom: 0vh;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
cursor: default;
--aug-border: 0.2vh;
--aug-border-bg: rgb(var(--color_r), var(--color_g), var(--color_b));
--aug-inset: 5px;
--aug-inset-bg: var(--color_light_black);
}
div.modal_popup.error {
--aug-bl-height: 3vh;
--aug-bl-width: 30%;
border-top: 0.2vh solid var(--color_red);
border-bottom: 0.2vh solid transparent;
padding-bottom: 0.2vh;
}
div.modal_popup.warning {
--aug-b-width: 20%;
--aug-b-origin-x: 30%;
border-top: 0.2vh solid var(--color_yellow);
border-bottom: 0.2vh solid transparent;
padding-bottom: 0.2vh;
}
div.modal_popup.info {
--aug-border: 0.2vh;
}
div.modal_popup.focus {
z-index: 2500 !important;
}
div.modal_popup.blink {
border: none;
animation-name: blink;
animation-duration: .1s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes blink {
0% {background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.0);}
100% {background: rgba(var(--color_r), var(--color_g), var(--color_b), 1);}
}
div.modal_popup > h1 {
width: 100%;
cursor: move;
font-size: 4vh;
margin: 0vh;
margin-bottom: 2vh;
}
div.modal_popup > h1 i {
font-size: 2.3vh;
opacity: 0.6;
font-style: normal;
}
div.modal_popup > h5 {
font-size: 2vh;
font-weight: normal;
margin: 0vh;
margin-bottom: 2vh;
}
div.modal_popup > h5 > a {
color: inherit;
}
div.modal_popup > h5 > a:hover {
font-weight: bold;
}
div.modal_popup > div:last-child {
width: 100%;
display: flex;
align-items: stretch;
justify-content: flex-end;
position: relative;
top: 0.2vh;
}
div.modal_popup button {
background: transparent;
border: 0.19vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.7);
border-radius: 0.278vh;
color: rgb(var(--color_r), var(--color_g), var(--color_b));
font-size: 1.85vh;
font-weight: bold;
padding: 0.5vh 0.9vh;
margin-left: 1.5vh;
border-bottom-left-radius: 0vh;
border-bottom-right-radius: 0vh;
padding-bottom: 0.7vh;
cursor: pointer;
}
div.modal_popup button:hover {
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.5);
}
div.modal_popup table, div.modal_popup table th, div.modal_popup table td {
border: 0.15vh solid rgb(var(--color_r), var(--color_g), var(--color_b));
border-collapse: collapse;
}
div.modal_popup table th, div.modal_popup table td {
padding: 0.3vh;
}
div.modal_popup table th {
font-size: 2vh;
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.6);
color: var(--color_light_black);
}
div.modal_popup table td {
font-size: 1.7vh;
}
div.modal_popup table#settingsEditor tbody {
display: block;
position: relative;
max-height: 60vh;
overflow: auto;
}
div.modal_popup table#settingsEditor tbody tr:first-child {
position: sticky;
top: 0px;
}
div.modal_popup table:not(#settingsEditor) td:first-child {
text-align: center;
}
div.modal_popup textarea {
background: var(--color_light_black);
color: rgb(var(--color_r), var(--color_g), var(--color_b));
border: 0.15vh solid rgb(var(--color_r), var(--color_g), var(--color_b));
padding: 0.4vh 0.2vh;
font-size: 1.4vh;
resize: none;
}
div.modal_popup textarea:active, div.modal_popup textarea:focus {
outline: none !important;
}
div.modal_popup td input {
width: 100%;
background: var(--color_light_black);
color: rgb(var(--color_r), var(--color_g), var(--color_b));
border: 0.15vh solid rgb(var(--color_r), var(--color_g), var(--color_b));
padding: 0.4vh 0.2vh;
font-size: 1.4vh;
box-sizing: border-box;
}
div.modal_popup td input::placeholder {
color: rgb(var(--color_r), var(--color_g), var(--color_b));
opacity: 0.7;
}
div.modal_popup td input:active, div.modal_popup td input:focus {
outline: none !important;
background: rgb(var(--color_r), var(--color_g), var(--color_b));
color: var(--color_light_black);
}
div.modal_popup td input:active::placeholder, div.modal_popup td input:focus::placeholder {
color: var(--color_light_black);
}
div.modal_popup td select {
cursor: pointer;
width: 100%;
background: var(--color_light_black);
color: rgb(var(--color_r), var(--color_g), var(--color_b));
border: 0.15vh solid rgb(var(--color_r), var(--color_g), var(--color_b));
padding: 0.4vh;
font-size: 1.4vh;
}
div.modal_popup summary {
font-size: 1.9vh;
font-weight: normal;
outline: none !important;
cursor: pointer;
}
div.modal_popup summary+table {
margin-top: 1.5vh;
}
/* Settings editor modal */
h6#settingsEditorStatus {
margin: 0;
margin-top: 1vh;
font-size: 1.5vh;
font-style: italic;
}
/* Keyboard shortcuts modal */
table.shortcutsHelp td:nth-child(2) input {
border: none;
}
table.shortcutsHelp td:first-child {
word-spacing: .3vh;
font-weight: bold;
padding: .8vh;
}
table.shortcutsHelp td:nth-child(3) {
max-width: 40vw;
}
details#shortcutsHelpAccordeon2 table td:nth-child(3) {
display: flex;
align-items: center;
}
details#shortcutsHelpAccordeon2 table td:nth-child(3) input:first-child {
font-family: var(--font_mono);
min-width: 30vw;
}
details#shortcutsHelpAccordeon2 table td:nth-child(3) input[type="checkbox"] {
width: auto;
}
/* fsDisp media displayer */
.fsDisp_mediaDisp {
max-width: 50vw;
max-height: 50vh;
outline: none !important;
}
================================================
FILE: src/assets/icons/file-icons.json
================================================
{
"500px": {
"width": 448,
"height": 512,
"svg": "<!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d=\"M103.3 344.3c-6.5-14.2-6.9-18.3 7.4-23.1 25.6-8 8 9.2 43.2 49.2h.3v-93.9c1.2-50.2 44-92.2 97.7-92.2 53.9 0 97.7 43.5 97.7 96.8 0 63.4-60.8 113.2-128.5 93.3-10.5-4.2-2.1-31.7 8.5-28.6 53 0 89.4-10.1 89.4-64.4 0-61-77.1-89.6-116.9-44.6-23.5 26.4-17.6 42.1-17.6 157.6 50.7 31 118.3 22 160.4-20.1 24.8-24.8 38.5-58 38.5-93 0-35.2-13.8-68.2-38.8-93.3-24.8-24.8-57.8-38.5-93.3-38.5s-68.8 13.8-93.5 38.5c-.3.3-16 16.5-21.2 23.9l-.5.6c-3.3 4.7-6.3 9.1-20.1 6.1-6.9-1.7-14.3-5.8-14.3-11.8V20c0-5 3.9-10.5 10.5-10.5h241.3c8.3 0 8.3 11.6
gitextract_5fyty_j9/
├── .github/
│ ├── FUNDING.yml
│ ├── ISSUE_TEMPLATE/
│ │ ├── config.yml
│ │ └── issue_template.md
│ └── workflows/
│ ├── build-binaries.yaml
│ └── codeql-analysis.yml
├── .gitignore
├── .gitmodules
├── LICENSE
├── README.md
├── SECURITY.md
├── file-icons-generator.js
├── media/
│ └── icon.icns
├── package.json
├── prebuild-minify.js
└── src/
├── _boot.js
├── _multithread.js
├── _renderer.js
├── assets/
│ ├── css/
│ │ ├── boot_screen.css
│ │ ├── extra_ratios.css
│ │ ├── filesystem.css
│ │ ├── keyboard.css
│ │ ├── main.css
│ │ ├── main_shell.css
│ │ ├── media_player.css
│ │ ├── mod_clock.css
│ │ ├── mod_column.css
│ │ ├── mod_conninfo.css
│ │ ├── mod_cpuinfo.css
│ │ ├── mod_fuzzyFinder.css
│ │ ├── mod_globe.css
│ │ ├── mod_hardwareInspector.css
│ │ ├── mod_netstat.css
│ │ ├── mod_processlist.css
│ │ ├── mod_ramwatcher.css
│ │ ├── mod_sysinfo.css
│ │ ├── mod_toplist.css
│ │ └── modal.css
│ ├── icons/
│ │ ├── file-icons.json
│ │ └── icon.icns
│ ├── kb_layouts/
│ │ ├── da-DK.json
│ │ ├── de-DE.json
│ │ ├── en-COLEMAK.json
│ │ ├── en-DVORAK.json
│ │ ├── en-GB.json
│ │ ├── en-NORMAN.json
│ │ ├── en-US.json
│ │ ├── en-WORKMAN.json
│ │ ├── es-ES.json
│ │ ├── es-LAT.json
│ │ ├── fr-BEPO.json
│ │ ├── fr-FR.json
│ │ ├── hu-HU.json
│ │ ├── it-IT.json
│ │ ├── nl-BE.json
│ │ ├── pt-BR.json
│ │ ├── sv-SE.json
│ │ ├── tr-TR-F.json
│ │ └── tr-TR-Q.json
│ ├── misc/
│ │ ├── boot_log.txt
│ │ ├── file-icons-match.js
│ │ └── grid.json
│ ├── themes/
│ │ ├── apollo-notype.json
│ │ ├── apollo.json
│ │ ├── blade.json
│ │ ├── chalkboard-ligatures.json
│ │ ├── chalkboard-notype.json
│ │ ├── chalkboard.json
│ │ ├── cyborg-focus.json
│ │ ├── cyborg.json
│ │ ├── interstellar.json
│ │ ├── matrix.json
│ │ ├── navy-disrupted.json
│ │ ├── navy-notype.json
│ │ ├── navy.json
│ │ ├── nord.json
│ │ ├── red.json
│ │ ├── tron-colorfilter.json
│ │ ├── tron-disrupted.json
│ │ ├── tron-fulltype.json
│ │ ├── tron-notype.json
│ │ ├── tron-typeleft.json
│ │ └── tron.json
│ └── vendor/
│ └── encom-globe.js
├── classes/
│ ├── audiofx.class.js
│ ├── clock.class.js
│ ├── conninfo.class.js
│ ├── cpuinfo.class.js
│ ├── docReader.class.js
│ ├── filesystem.class.js
│ ├── fuzzyFinder.class.js
│ ├── hardwareInspector.class.js
│ ├── keyboard.class.js
│ ├── locationGlobe.class.js
│ ├── mediaPlayer.class.js
│ ├── modal.class.js
│ ├── netstat.class.js
│ ├── ramwatcher.class.js
│ ├── sysinfo.class.js
│ ├── terminal.class.js
│ ├── toplist.class.js
│ └── updateChecker.class.js
├── package.json
└── ui.html
SYMBOL INDEX (316 symbols across 25 files)
FILE: file-icons-generator.js
constant CSON (line 15) | const CSON = require("cson-parser");
FILE: prebuild-minify.js
function writeMinified (line 8) | function writeMinified(path, data) {
function recursiveMinify (line 23) | async function recursiveMinify(dirPath) {
FILE: src/_boot.js
function createWindow (line 169) | function createWindow(settings) {
FILE: src/_multithread.js
function dispatch (line 31) | function dispatch(type, id, arg) {
FILE: src/_renderer.js
function initGraphicalErrorHandling (line 142) | function initGraphicalErrorHandling() {
function waitForFonts (line 157) | function waitForFonts() {
function initSystemInformationProxy (line 178) | function initSystemInformationProxy() {
function displayLine (line 221) | function displayLine() {
function displayTitleScreen (line 276) | async function displayTitleScreen() {
function getDisplayName (line 331) | async function getDisplayName() {
function initUI (line 344) | async function initUI() {
FILE: src/assets/misc/file-icons-match.js
function matchIcon (line 6) | function matchIcon(filename) {
FILE: src/assets/vendor/encom-globe.js
function s (line 5) | function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&re...
function normalize360 (line 405) | function normalize360(v)
function unsigned (line 411) | function unsigned(i)
function trimLc (line 417) | function trimLc(s)
function slice (line 422) | function slice(obj, index)
function append (line 427) | function append(arr, value)
function clamp (line 433) | function clamp(x,a,b)
function mix (line 438) | function mix(x,y,a)
function f2b (line 444) | function f2b(f)
function b2f (line 453) | function b2f(b)
function rgbToHsl (line 473) | function rgbToHsl(r, g, b)
function hslToRgb (line 509) | function hslToRgb(h, s, l)
function hex4ToRgba (line 538) | function hex4ToRgba(color)
function hex7ToRgba (line 551) | function hex7ToRgba(color)
function rgbaToHsva (line 716) | function rgbaToHsva(rgba)
function hsvaToRgba (line 761) | function hsvaToRgba (hsva)
function rgbaToHsl (line 795) | function rgbaToHsl(c)
function rgbaToHsla (line 804) | function rgbaToHsla(c)
function hslToRgba (line 811) | function hslToRgba(c)
function hslaToRgba (line 825) | function hslaToRgba(c)
function Color (line 991) | function Color(value)
function modifyComponent (line 1080) | function modifyComponent(index, arg)
function modifyHsva (line 1119) | function modifyHsva(i)
function hex (line 1471) | function hex(d, max) {
function hex (line 1478) | function hex(d, max) {
function Vec2 (line 1563) | function Vec2(x, y) {
method x (line 3504) | get x () {
method x (line 3510) | set x ( value ) {
method y (line 3517) | get y () {
method y (line 3523) | set y ( value ) {
method z (line 3530) | get z () {
method z (line 3536) | set z ( value ) {
method w (line 3543) | get w () {
method w (line 3549) | set w ( value ) {
method x (line 5755) | get x () {
method x (line 5761) | set x ( value ) {
method y (line 5768) | get y () {
method y (line 5774) | set y ( value ) {
method z (line 5781) | get z () {
method z (line 5787) | set z ( value ) {
method order (line 5794) | get order () {
method order (line 5800) | set order ( value ) {
function clamp (line 5852) | function clamp( x ) {
function clamp (line 5981) | function clamp( x ) {
function interpolate (line 9430) | function interpolate( p0, p1, p2, p3, t, t2, t3 ) {
method rotation (line 10349) | get rotation () {
method rotation (line 10353) | set rotation ( value ) {
method quaternion (line 10362) | get quaternion () {
method quaternion (line 10366) | set quaternion ( value ) {
method eulerOrder (line 10375) | get eulerOrder () {
method eulerOrder (line 10383) | set eulerOrder ( value ) {
method useQuaternion (line 10391) | get useQuaternion () {
method useQuaternion (line 10397) | set useQuaternion ( value ) {
function getNextObjectInPool (line 11514) | function getNextObjectInPool() {
function getNextVertexInPool (line 11530) | function getNextVertexInPool() {
function getNextFaceInPool (line 11546) | function getNextFaceInPool() {
function getNextLineInPool (line 11563) | function getNextLineInPool() {
function getNextSpriteInPool (line 11579) | function getNextSpriteInPool() {
function painterSort (line 11597) | function painterSort( a, b ) {
function clipLine (line 11615) | function clipLine( s1, s2 ) {
function handleTriangle (line 12158) | function handleTriangle( a, b, c ) {
function handleVertex (line 12248) | function handleVertex( v ) {
function handleTriangle (line 12870) | function handleTriangle( context, a, b, c, ua, ub, uc ) {
function is_pow2 (line 13813) | function is_pow2( n ) {
function nearest_pow2 (line 13820) | function nearest_pow2( n ) {
function load_image (line 13827) | function load_image( where, url ) {
function create_texture (line 13857) | function create_texture( where, name, sourceFile, repeat, offset, wrap, ...
function rgb2hex (line 13920) | function rgb2hex( rgb ) {
function parseModel (line 14406) | function parseModel( scale ) {
function parseSkin (line 14706) | function parseSkin() {
function parseMorphing (line 14755) | function parseMorphing( scale ) {
function get_url (line 15568) | function get_url( source_url, url_type ) {
function handle_objects (line 15584) | function handle_objects() {
function handle_children (line 15592) | function handle_children( parent, children ) {
function handle_mesh (line 15957) | function handle_mesh( geo, mat, id ) {
function handle_hierarchy (line 15965) | function handle_hierarchy( node, id, parent, material, obj ) {
function create_callback_geometry (line 16019) | function create_callback_geometry( id ) {
function create_callback_hierachy (line 16037) | function create_callback_hierachy( id, parent, material, obj ) {
function create_callback_embed (line 16076) | function create_callback_embed( id ) {
function async_callback_gate (line 16089) | function async_callback_gate() {
function finalize (line 16113) | function finalize() {
function traverse_json_hierarchy (line 16166) | function traverse_json_hierarchy( objJSON, callback ) {
method needsUpdate (line 17777) | get needsUpdate () {
method needsUpdate (line 17783) | set needsUpdate ( value ) {
function calculateLights (line 19238) | function calculateLights() {
function calculateLight (line 19271) | function calculateLight( position, normal, color ) {
function renderSprite (line 19313) | function renderSprite( v1, element, material ) {
function renderLine (line 19419) | function renderLine( v1, v2, element, material ) {
function renderFace3 (line 19493) | function renderFace3( v1, v2, v3, uv1, uv2, uv3, element, material ) {
function drawTriangle (line 19655) | function drawTriangle( x0, y0, x1, y1, x2, y2 ) {
function strokePath (line 19665) | function strokePath( color, linewidth, linecap, linejoin ) {
function fillPath (line 19678) | function fillPath( color ) {
function onTextureUpdate (line 19685) | function onTextureUpdate ( event ) {
function textureToPattern (line 19691) | function textureToPattern( texture ) {
function patternPath (line 19718) | function patternPath( x0, y0, x1, y1, x2, y2, u0, v0, u1, v1, u2, v2, te...
function clipImage (line 19793) | function clipImage( x0, y0, x1, y1, x2, y2, u0, v0, u1, v1, u2, v2, imag...
function getGradientTexture (line 19831) | function getGradientTexture( color1, color2, color3, color4 ) {
function expand (line 19860) | function expand( v1, v2, pixels ) {
function setOpacity (line 19878) | function setOpacity( value ) {
function setBlending (line 19889) | function setBlending( value ) {
function setLineWidth (line 19913) | function setLineWidth( value ) {
function setLineCap (line 19924) | function setLineCap( value ) {
function setLineJoin (line 19937) | function setLineJoin( value ) {
function setStrokeStyle (line 19950) | function setStrokeStyle( value ) {
function setFillStyle (line 19961) | function setFillStyle( value ) {
function setDashAndGap (line 19972) | function setDashAndGap( dashSizeValue, gapSizeValue ) {
function createParticleBuffers (line 23492) | function createParticleBuffers ( geometry ) {
function createLineBuffers (line 23501) | function createLineBuffers ( geometry ) {
function createMeshBuffers (line 23511) | function createMeshBuffers ( geometryGroup ) {
function initCustomAttributes (line 23809) | function initCustomAttributes ( geometry, object ) {
function initParticleBuffers (line 23857) | function initParticleBuffers ( geometry, object ) {
function initLineBuffers (line 23872) | function initLineBuffers ( geometry, object ) {
function initMeshBuffers (line 23886) | function initMeshBuffers ( geometryGroup, object ) {
function getBufferMaterial (line 24037) | function getBufferMaterial( object, geometryGroup ) {
function materialNeedsSmoothNormals (line 24045) | function materialNeedsSmoothNormals ( material ) {
function bufferGuessNormalType (line 24051) | function bufferGuessNormalType ( material ) {
function bufferGuessVertexColorType (line 24073) | function bufferGuessVertexColorType( material ) {
function bufferGuessUVType (line 24085) | function bufferGuessUVType( material ) {
function initDirectBuffers (line 24106) | function initDirectBuffers( geometry ) {
function setParticleBuffers (line 24135) | function setParticleBuffers ( geometry, hint, object ) {
function setLineBuffers (line 24457) | function setLineBuffers ( geometry, hint ) {
function setMeshBuffers (line 24629) | function setMeshBuffers( geometryGroup, object, hint, dispose, material ) {
function setupLinesVertexAttributes (line 25433) | function setupLinesVertexAttributes( material, programAttributes, geomet...
function setDirectBuffers (line 25471) | function setDirectBuffers( geometry, hint ) {
function enableAttribute (line 26094) | function enableAttribute( attribute ) {
function disableAttributes (line 26105) | function disableAttributes() {
function setupMorphTargets (line 26120) | function setupMorphTargets ( material, geometryGroup, object ) {
function painterSortStable (line 26267) | function painterSortStable ( a, b ) {
function numericalSort (line 26281) | function numericalSort ( a, b ) {
function renderPlugins (line 26470) | function renderPlugins( plugins, scene, camera ) {
function renderObjects (line 26512) | function renderObjects( renderList, reverse, materialType, camera, light...
function renderObjectsImmediate (line 26574) | function renderObjectsImmediate ( renderList, materialType, camera, ligh...
function unrollImmediateBufferMaterial (line 26631) | function unrollImmediateBufferMaterial ( globject ) {
function unrollBufferMaterial (line 26650) | function unrollBufferMaterial ( globject ) {
function addObject (line 26753) | function addObject( object, scene ) {
function addBuffer (line 26893) | function addBuffer( objlist, buffer, object ) {
function addBufferImmediate (line 26908) | function addBufferImmediate( objlist, object ) {
function updateObject (line 26924) | function updateObject( object ) {
function areCustomAttributesDirty (line 27015) | function areCustomAttributesDirty( material ) {
function clearCustomAttributes (line 27027) | function clearCustomAttributes( material ) {
function removeObject (line 27039) | function removeObject( object, scene ) {
function removeInstances (line 27065) | function removeInstances( objlist, object ) {
function removeInstancesDirect (line 27079) | function removeInstancesDirect( objlist, object ) {
function setMaterialShaders (line 27249) | function setMaterialShaders( material, shaders ) {
function setProgram (line 27257) | function setProgram( camera, lights, fog, material, object ) {
function refreshUniformsCommon (line 27474) | function refreshUniformsCommon ( uniforms, material ) {
function refreshUniformsLine (line 27561) | function refreshUniformsLine ( uniforms, material ) {
function refreshUniformsDash (line 27568) | function refreshUniformsDash ( uniforms, material ) {
function refreshUniformsParticle (line 27576) | function refreshUniformsParticle ( uniforms, material ) {
function refreshUniformsFog (line 27587) | function refreshUniformsFog ( uniforms, fog ) {
function refreshUniformsPhong (line 27604) | function refreshUniformsPhong ( uniforms, material ) {
function refreshUniformsLambert (line 27630) | function refreshUniformsLambert ( uniforms, material ) {
function refreshUniformsLights (line 27652) | function refreshUniformsLights ( uniforms, lights ) {
function refreshUniformsShadow (line 27676) | function refreshUniformsShadow ( uniforms, lights ) {
function loadUniformsMatrices (line 27710) | function loadUniformsMatrices ( uniforms, object ) {
function getTextureUnit (line 27722) | function getTextureUnit() {
function loadUniformsGeneric (line 27738) | function loadUniformsGeneric ( program, uniforms ) {
function setupMatrices (line 27939) | function setupMatrices ( object, camera ) {
function setColorGamma (line 27948) | function setColorGamma( array, offset, color, intensitySq ) {
function setColorLinear (line 27956) | function setColorLinear( array, offset, color, intensity ) {
function setupLights (line 27964) | function setupLights ( program, lights ) {
function setLineWidth (line 28311) | function setLineWidth ( width ) {
function setPolygonOffset (line 28323) | function setPolygonOffset ( polygonoffset, factor, units ) {
function generateDefines (line 28427) | function generateDefines ( defines ) {
function buildProgram (line 28447) | function buildProgram( shaderID, fragmentShader, vertexShader, uniforms,...
function cacheUniformLocations (line 28782) | function cacheUniformLocations ( program, identifiers ) {
function cacheAttributeLocations (line 28795) | function cacheAttributeLocations ( program, identifiers ) {
function addLineNumbers (line 28808) | function addLineNumbers ( string ) {
function getShader (line 28825) | function getShader ( type, string ) {
function setTextureParameters (line 28856) | function setTextureParameters ( textureType, texture, isImagePowerOfTwo ) {
function clampToMaxSize (line 28997) | function clampToMaxSize ( image, maxSize ) {
function setCubeTexture (line 29023) | function setCubeTexture ( texture, slot ) {
function setCubeTextureDynamic (line 29115) | function setCubeTextureDynamic ( texture, slot ) {
function setupFrameBuffer (line 29124) | function setupFrameBuffer ( framebuffer, renderTarget, textureTarget ) {
function setupRenderBuffer (line 29131) | function setupRenderBuffer ( renderbuffer, renderTarget ) {
function updateRenderTargetMipmap (line 29308) | function updateRenderTargetMipmap ( renderTarget ) {
function filterFallback (line 29328) | function filterFallback ( f ) {
function paramThreeToGL (line 29342) | function paramThreeToGL ( p ) {
function allocateBones (line 29406) | function allocateBones ( object ) {
function allocateLights (line 29445) | function allocateLights( lights ) {
function allocateShadows (line 29469) | function allocateShadows( lights ) {
function initGL (line 29490) | function initGL() {
function setDefaultGLState (line 29563) | function setDefaultGLState () {
function binarySearchIndices (line 29994) | function binarySearchIndices( value ) {
function fourCCToInt32 (line 30481) | function fourCCToInt32( value ) {
function int32ToFourCC (line 30490) | function int32ToFourCC( value ) {
function loadARGBMip (line 30500) | function loadARGBMip( buffer, dataOffset, width, height ) {
function isPointInsidePolygon (line 32459) | function isPointInsidePolygon( inPt, inPolygon ) {
function point_in_segment_2D_colin (line 32773) | function point_in_segment_2D_colin( inSegPt1, inSegPt2, inOtherPt ) {
function intersect_segments_2D (line 32790) | function intersect_segments_2D( inSeg1Pt1, inSeg1Pt2, inSeg2Pt1, inSeg2P...
function isPointInsideAngle (line 32914) | function isPointInsideAngle( inVertex, inLegFromPt, inLegToPt, inOtherPt...
function removeHoles (line 32945) | function removeHoles( contour, holes ) {
function buildPlane (line 34894) | function buildPlane( u, v, udir, vdir, width, height, depth, materialInd...
function scalePt2 (line 35377) | function scalePt2 ( pt, vec, size ) {
function getBevelVec (line 35396) | function getBevelVec( inPt, inPrev, inNext ) {
function buildLidFaces (line 35691) | function buildLidFaces() {
function buildSideFaces (line 35744) | function buildSideFaces() {
function sidewalls (line 35762) | function sidewalls( contour, layeroffset ) {
function v (line 35795) | function v( x, y, z ) {
function f3 (line 35801) | function f3( a, b, c, isBottom ) {
function f4 (line 35816) | function f4( a, b, c, d, wallContour, stepIndex, stepsLength, contourInd...
function getPos (line 36607) | function getPos( u, in_q, in_p, radius, heightScale ) {
function vert (line 36679) | function vert( x, y, z ) {
function initialNormal1 (line 36796) | function initialNormal1(lastBinormal) {
function initialNormal2 (line 36805) | function initialNormal2() {
function initialNormal3 (line 36818) | function initialNormal3() {
function prepare (line 36985) | function prepare( vector ) {
function make (line 37003) | function make( v1, v2, v3 ) {
function subdivide (line 37022) | function subdivide(face, detail ) {
function azimuth (line 37092) | function azimuth( vector ) {
function inclination (line 37101) | function inclination( vector ) {
function correctUV (line 37110) | function correctUV( uv, vector, azimuth ) {
function addLine (line 37584) | function addLine( a, b, hex ) {
function addPoint (line 37591) | function addPoint( id, hex ) {
function setPoint (line 37674) | function setPoint( point, x, y, z ) {
function createProgram (line 39206) | function createProgram ( shader, precision ) {
function createVirtualLight (line 39582) | function createVirtualLight( light, cascade ) {
function updateVirtualLight (line 39639) | function updateVirtualLight( light, cascade ) {
function updateShadowCamera (line 39671) | function updateShadowCamera( camera, light ) {
function getObjectMaterial (line 39716) | function getObjectMaterial( object ) {
function createProgram (line 39965) | function createProgram () {
function painterSortStable (line 40072) | function painterSortStable ( a, b ) {
function getObjectMaterial (line 40277) | function getObjectMaterial( object ) {
function Vec2 (line 41261) | function Vec2(x, y) {
function Globe (line 41970) | function Globe(width, height, opts){
FILE: src/classes/audiofx.class.js
class AudioManager (line 1) | class AudioManager {
method constructor (line 2) | constructor() {
FILE: src/classes/clock.class.js
class Clock (line 1) | class Clock {
method constructor (line 2) | constructor(parentId) {
method updateClock (line 21) | updateClock() {
FILE: src/classes/conninfo.class.js
class Conninfo (line 1) | class Conninfo {
method constructor (line 2) | constructor(parentId) {
method updateInfo (line 64) | updateInfo() {
FILE: src/classes/cpuinfo.class.js
class Cpuinfo (line 1) | class Cpuinfo {
method constructor (line 2) | constructor(parentId) {
method updateCPUload (line 123) | updateCPUload() {
method updateCPUtemp (line 152) | updateCPUtemp() {
method updateCPUspeed (line 161) | updateCPUspeed() {
method updateCPUtasks (line 174) | updateCPUtasks() {
FILE: src/classes/docReader.class.js
class DocReader (line 1) | class DocReader {
method constructor (line 2) | constructor(opts) {
FILE: src/classes/filesystem.class.js
class FilesystemDisplay (line 1) | class FilesystemDisplay {
method constructor (line 2) | constructor(opts) {
FILE: src/classes/fuzzyFinder.class.js
class FuzzyFinder (line 1) | class FuzzyFinder {
method constructor (line 2) | constructor() {
method search (line 79) | search(text) {
method submit (line 119) | submit() {
FILE: src/classes/hardwareInspector.class.js
class HardwareInspector (line 1) | class HardwareInspector {
method constructor (line 2) | constructor(parentId) {
method updateInfo (line 31) | updateInfo() {
method _trimDataString (line 40) | _trimDataString(str, ...filters) {
FILE: src/classes/keyboard.class.js
class Keyboard (line 1) | class Keyboard {
method constructor (line 2) | constructor(opts) {
method pressKey (line 360) | pressKey(key) {
method togglePasswordMode (line 559) | togglePasswordMode() {
method addCircum (line 566) | addCircum(char) {
method addTrema (line 645) | addTrema(char) {
method addAcute (line 690) | addAcute(char) {
method addGrave (line 780) | addGrave(char) {
method addCaron (line 830) | addCaron(char) {
method addBar (line 923) | addBar(char) {
method addBreve (line 997) | addBreve(char) {
method addTilde (line 1031) | addTilde(char) {
method addMacron (line 1073) | addMacron(char) {
method addCedilla (line 1115) | addCedilla(char) {
method addOverring (line 1165) | addOverring(char) {
method toGreek (line 1183) | toGreek(char) {
method addIotasub (line 1261) | addIotasub(char) {
FILE: src/classes/locationGlobe.class.js
class LocationGlobe (line 1) | class LocationGlobe {
method constructor (line 2) | constructor(parentId) {
method addRandomConnectedMarkers (line 136) | addRandomConnectedMarkers() {
method addTemporaryConnectedMarker (line 142) | addTemporaryConnectedMarker(ip) {
method removeMarkers (line 159) | removeMarkers() {
method removePins (line 163) | removePins() {
method getRandomInRange (line 169) | getRandomInRange(from, to, fixed) {
method updateLoc (line 172) | updateLoc() {
method updateConOnlineConnection (line 192) | async updateConOnlineConnection() {
method updateConns (line 212) | updateConns() {
FILE: src/classes/mediaPlayer.class.js
class MediaPlayer (line 1) | class MediaPlayer {
method constructor (line 2) | constructor(opts) {
FILE: src/classes/modal.class.js
class Modal (line 3) | class Modal {
method constructor (line 4) | constructor(options, onclose) {
FILE: src/classes/netstat.class.js
class Netstat (line 1) | class Netstat {
method constructor (line 2) | constructor(parentId) {
method updateInfo (line 59) | updateInfo() {
method ping (line 156) | ping(target, port, local) {
FILE: src/classes/ramwatcher.class.js
class RAMwatcher (line 1) | class RAMwatcher {
method constructor (line 2) | constructor(parentId) {
method updateInfo (line 38) | updateInfo() {
method shuffleArray (line 80) | shuffleArray(array) {
FILE: src/classes/sysinfo.class.js
class Sysinfo (line 1) | class Sysinfo {
method constructor (line 2) | constructor(parentId) {
method updateDate (line 49) | updateDate() {
method updateUptime (line 100) | updateUptime() {
method updateBattery (line 119) | updateBattery() {
FILE: src/classes/terminal.class.js
class Terminal (line 1) | class Terminal {
method constructor (line 2) | constructor(opts) {
FILE: src/classes/toplist.class.js
class Toplist (line 1) | class Toplist {
method constructor (line 2) | constructor(parentId) {
method updateList (line 22) | updateList() {
method processList (line 60) | processList(){
FILE: src/classes/updateChecker.class.js
class UpdateChecker (line 1) | class UpdateChecker {
method constructor (line 2) | constructor() {
Condensed preview — 103 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (6,340K chars).
[
{
"path": ".github/FUNDING.yml",
"chars": 102,
"preview": "# These are supported funding model platforms\n\ngithub: GitSquared\ncustom: ['https://gaby.dev/donate']\n"
},
{
"path": ".github/ISSUE_TEMPLATE/config.yml",
"chars": 368,
"preview": "blank_issues_enabled: true\ncontact_links:\n - name: Feature Ideas\n url: https://github.com/GitSquared/edex-ui/discussio"
},
{
"path": ".github/ISSUE_TEMPLATE/issue_template.md",
"chars": 1132,
"preview": "---\nname: Bug report\nabout: Something's broken or screaming error messages at you? Let's fix it.\ntitle: ''\nlabels: inves"
},
{
"path": ".github/workflows/build-binaries.yaml",
"chars": 6939,
"preview": "name: Build packaged binaries\n\non: [push, pull_request, create]\n\njobs:\n build-linux:\n runs-on: ubuntu-latest\n ste"
},
{
"path": ".github/workflows/codeql-analysis.yml",
"chars": 2440,
"preview": "# For most projects, this workflow file will not need changing; you simply need\n# to commit it to your repository.\n#\n# Y"
},
{
"path": ".gitignore",
"chars": 668,
"preview": "# Logs\nlogs\n*.log\nnpm-debug.log*\n\n# Runtime data\npids\n*.pid\n*.seed\n\n# Directory for instrumented libs generated by jscov"
},
{
"path": ".gitmodules",
"chars": 678,
"preview": "[submodule \"file-icons/atom\"]\n\tpath = file-icons/atom\n\turl = https://github.com/file-icons/atom.git\n[submodule \"file-ico"
},
{
"path": "LICENSE",
"chars": 32472,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "README.md",
"chars": 11820,
"preview": "<p align=\"center\">\n <br>\n <img alt=\"Logo\" src=\"media/logo.png\">\n <br><br>\n <a href=\"https://lgtm.com/projects/g/GitS"
},
{
"path": "SECURITY.md",
"chars": 859,
"preview": "# Security Policy\n\n## Supported Versions\n\nWe support the [latest released version](https://github.com/GitSquared/edex-ui"
},
{
"path": "file-icons-generator.js",
"chars": 13421,
"preview": "// This is an helper script to generate the resources used by eDEX to display file-specific icons in fsDisp, from a fres"
},
{
"path": "package.json",
"chars": 3955,
"preview": "{\n \"name\": \"edex-ui\",\n \"productName\": \"eDEX-UI\",\n \"version\": \"2.2.8\",\n \"description\": \"A science fiction desktop run"
},
{
"path": "prebuild-minify.js",
"chars": 3632,
"preview": "const fs = require(\"fs\");\nconst path = require(\"path\");\nconst stdout = process.stdout;\nconst UglifyJS = require(\"terser\""
},
{
"path": "src/_boot.js",
"chars": 13324,
"preview": "const signale = require(\"signale\");\nconst {app, BrowserWindow, dialog, shell} = require(\"electron\");\n\nprocess.on(\"uncaug"
},
{
"path": "src/_multithread.js",
"chars": 2372,
"preview": "const cluster = require(\"cluster\");\n\nif (cluster.isMaster) {\n const electron = require(\"electron\");\n const ipc = e"
},
{
"path": "src/_renderer.js",
"chars": 46120,
"preview": "// Disable eval()\nwindow.eval = global.eval = function () {\n throw new Error(\"eval() is disabled for security reasons"
},
{
"path": "src/assets/css/boot_screen.css",
"chars": 2583,
"preview": "section#boot_screen {\n position: fixed;\n top: 0vh;\n left: 0vh;\n width: 100%;\n height: 100%;\n padding: "
},
{
"path": "src/assets/css/extra_ratios.css",
"chars": 4520,
"preview": "/* Support for other screen ratios than 16:9 */\n@media (aspect-ratio: 16/10) {\n section#filesystem > h3.title {\n "
},
{
"path": "src/assets/css/filesystem.css",
"chars": 6633,
"preview": "section#filesystem {\n position: relative;\n top: -0.925vh;\n width: 43vw;\n height: 30vh;\n margin-right: 0.5"
},
{
"path": "src/assets/css/keyboard.css",
"chars": 7592,
"preview": "section#keyboard {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 55.5vw;\n positi"
},
{
"path": "src/assets/css/main.css",
"chars": 1895,
"preview": "html, body {\n width: 100%;\n height: 100%;\n margin: 0vh;\n padding: 0vh;\n overflow: hidden;\n}\nbody {\n us"
},
{
"path": "src/assets/css/main_shell.css",
"chars": 4348,
"preview": "section#main_shell {\n width: 65%;\n height: 60.3%;\n padding: 0.74vh;\n /* border: 0.18vh solid rgba(var(--colo"
},
{
"path": "src/assets/css/media_player.css",
"chars": 2008,
"preview": ".media_container[data-fullscreen=true] .media {\n height: 95%;\n width: 100%;\n max-width: none;\n max-height: n"
},
{
"path": "src/assets/css/mod_clock.css",
"chars": 1032,
"preview": "div#mod_clock {\n display: flex;\n height: 7.41vh;\n padding-top: 0.645vh;\n border-top: 0.092vh solid rgba(var("
},
{
"path": "src/assets/css/mod_column.css",
"chars": 1121,
"preview": "section.mod_column {\n width: 17%;\n top: 2.5vh;\n min-height: 10%;\n max-height: 96%;\n padding: 1.39vh;\n "
},
{
"path": "src/assets/css/mod_conninfo.css",
"chars": 2086,
"preview": "div#mod_conninfo {\n border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);\n font-fam"
},
{
"path": "src/assets/css/mod_cpuinfo.css",
"chars": 2435,
"preview": "div#mod_cpuinfo {\n border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);\n font-fami"
},
{
"path": "src/assets/css/mod_fuzzyFinder.css",
"chars": 1021,
"preview": "input#fuzzyFinder {\n\twidth: 100%;\n background: var(--color_light_black);\n color: rgb(var(--color_r), var(--color_g"
},
{
"path": "src/assets/css/mod_globe.css",
"chars": 1744,
"preview": "div#mod_globe {\n border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);\n font-family"
},
{
"path": "src/assets/css/mod_hardwareInspector.css",
"chars": 1143,
"preview": "div#mod_hardwareInspector {\n border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);\n "
},
{
"path": "src/assets/css/mod_netstat.css",
"chars": 1675,
"preview": "div#mod_netstat {\n border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);\n font-fami"
},
{
"path": "src/assets/css/mod_processlist.css",
"chars": 845,
"preview": "table#processContainer {\n display: block;\n max-height: 60vh;\n overflow: auto;\n}\n\ntable#processContainer td.head"
},
{
"path": "src/assets/css/mod_ramwatcher.css",
"chars": 2850,
"preview": "div#mod_ramwatcher {\n border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);\n font-f"
},
{
"path": "src/assets/css/mod_sysinfo.css",
"chars": 1079,
"preview": "div#mod_sysinfo {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-betwee"
},
{
"path": "src/assets/css/mod_toplist.css",
"chars": 1571,
"preview": "div#mod_toplist {\n border-top: 0.092vh solid rgba(var(--color_r), var(--color_g), var(--color_b), 0.3);\n font-fami"
},
{
"path": "src/assets/css/modal.css",
"chars": 5818,
"preview": "div.modal_popup {\n position: absolute;\n min-width: 38vh;\n background: var(--color_light_black);\n border-colo"
},
{
"path": "src/assets/icons/file-icons.json",
"chars": 3241912,
"preview": "{\n \"500px\": {\n \"width\": 448,\n \"height\": 512,\n \"svg\": \"<!-- Font Awesome Free 5.15.4 by @fontawes"
},
{
"path": "src/assets/kb_layouts/da-DK.json",
"chars": 11095,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/de-DE.json",
"chars": 10700,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/en-COLEMAK.json",
"chars": 10785,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/en-DVORAK.json",
"chars": 10766,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/en-GB.json",
"chars": 8795,
"preview": "{\n \"row_numbers\": [{\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n }, {\n \"name\": \"`\",\n \"cm"
},
{
"path": "src/assets/kb_layouts/en-NORMAN.json",
"chars": 10774,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/en-US.json",
"chars": 10773,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/en-WORKMAN.json",
"chars": 10772,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/es-ES.json",
"chars": 11145,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/es-LAT.json",
"chars": 11113,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/fr-BEPO.json",
"chars": 14429,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/fr-FR.json",
"chars": 11324,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/hu-HU.json",
"chars": 8618,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n \"name\": \"0\",\n \"cmd"
},
{
"path": "src/assets/kb_layouts/it-IT.json",
"chars": 11169,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/nl-BE.json",
"chars": 11374,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/pt-BR.json",
"chars": 8873,
"preview": "{\n \"row_numbers\": [{\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n }, {\n \"name\": \"'\",\n \"cm"
},
{
"path": "src/assets/kb_layouts/sv-SE.json",
"chars": 11095,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/tr-TR-F.json",
"chars": 11016,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/kb_layouts/tr-TR-Q.json",
"chars": 11134,
"preview": "{\n \"row_numbers\": [\n {\n \"name\": \"ESC\",\n \"cmd\": \"~~~CTRLSEQ1~~~\"\n },\n {\n "
},
{
"path": "src/assets/misc/boot_log.txt",
"chars": 4205,
"preview": "Welcome to eDEX-UI!\nvm_page_bootstrap: 987323 free pages and 53061 wired pages\nkext submap [0xffffff7f8072e000 - 0xfffff"
},
{
"path": "src/assets/misc/file-icons-match.js",
"chars": 150085,
"preview": "/*\n * Thanks everyone for pointing out this is probably on of the ugliest source code files on GitHub\n * This is script-"
},
{
"path": "src/assets/misc/grid.json",
"chars": 961795,
"preview": "{\"tiles\":[{\"lat\":-31.72,\"lon\":90,\"b\":[{\"x\":0,\"y\":265.52,\"z\":423.63},{\"x\":-3,\"y\":263.67,\"z\":424.77},{\"x\":-1.85,\"y\":260.67"
},
{
"path": "src/assets/themes/apollo-notype.json",
"chars": 837,
"preview": "{\n \"colors\": {\n \"r\": 235,\n \"g\": 235,\n \"b\": 235,\n \"black\": \"#000000\",\n \"light_black"
},
{
"path": "src/assets/themes/apollo.json",
"chars": 684,
"preview": "{\n \"colors\": {\n \"r\": 235,\n \"g\": 235,\n \"b\": 235,\n \"black\": \"#000000\",\n \"light_black"
},
{
"path": "src/assets/themes/blade.json",
"chars": 684,
"preview": "{\n \"colors\": {\n \"r\": 204,\n \"g\": 94,\n \"b\": 55,\n \"black\": \"#000000\",\n \"light_black\":"
},
{
"path": "src/assets/themes/chalkboard-ligatures.json",
"chars": 1150,
"preview": "{\n \"colors\": {\n \"r\": 239,\n \"g\": 240,\n \"b\": 235,\n \"black\": \"#282a36\",\n \"light_black"
},
{
"path": "src/assets/themes/chalkboard-notype.json",
"chars": 1303,
"preview": "{\n \"colors\": {\n \"r\": 239,\n \"g\": 240,\n \"b\": 235,\n \"black\": \"#282a36\",\n \"light_black"
},
{
"path": "src/assets/themes/chalkboard.json",
"chars": 1150,
"preview": "{\n \"colors\": {\n \"r\": 239,\n \"g\": 240,\n \"b\": 235,\n \"black\": \"#282a36\",\n \"light_black"
},
{
"path": "src/assets/themes/cyborg-focus.json",
"chars": 2815,
"preview": "{\n \"colors\": {\n \"r\": 95,\n \"g\": 215,\n \"b\": 215,\n \"black\": \"#011f1f\",\n \"light_black\""
},
{
"path": "src/assets/themes/cyborg.json",
"chars": 1156,
"preview": "{\n \"colors\": {\n \"r\": 95,\n \"g\": 215,\n \"b\": 215,\n \"black\": \"#011f1f\",\n \"light_black\""
},
{
"path": "src/assets/themes/interstellar.json",
"chars": 678,
"preview": "{\n \"colors\": {\n \"r\": 3,\n \"g\": 169,\n \"b\": 244,\n \"black\": \"#f3f3f3\",\n \"light_black\":"
},
{
"path": "src/assets/themes/matrix.json",
"chars": 671,
"preview": "{\n \"colors\": {\n \"r\": 0,\n \"g\": 143,\n \"b\": 17,\n \"black\": \"#0D0208\",\n \"light_black\": "
},
{
"path": "src/assets/themes/navy-disrupted.json",
"chars": 1882,
"preview": "{\n \"colors\": {\n \"r\": 20,\n \"g\": 119,\n \"b\": 205,\n \"black\": \"#282a36\",\n \"light_black\""
},
{
"path": "src/assets/themes/navy-notype.json",
"chars": 1302,
"preview": "{\n \"colors\": {\n \"r\": 20,\n \"g\": 119,\n \"b\": 205,\n \"black\": \"#282a36\",\n \"light_black\""
},
{
"path": "src/assets/themes/navy.json",
"chars": 1149,
"preview": "{\n \"colors\": {\n \"r\": 20,\n \"g\": 119,\n \"b\": 205,\n \"black\": \"#282a36\",\n \"light_black\""
},
{
"path": "src/assets/themes/nord.json",
"chars": 1107,
"preview": "{\n \"colors\": {\n \"r\": 216,\n \"g\": 222,\n \"b\": 233,\n \"black\": \"#3B4252\",\n \"red\": \"#BF6"
},
{
"path": "src/assets/themes/red.json",
"chars": 682,
"preview": "{\n \"colors\": {\n \"r\": 204,\n \"g\": 0,\n \"b\": 34,\n \"black\": \"#000000\",\n \"light_black\": "
},
{
"path": "src/assets/themes/tron-colorfilter.json",
"chars": 799,
"preview": "{\n \"colors\": {\n \"r\": 170,\n \"g\": 207,\n \"b\": 209,\n \"black\": \"#000000\",\n \"light_black"
},
{
"path": "src/assets/themes/tron-disrupted.json",
"chars": 1417,
"preview": "{\n \"colors\": {\n \"r\": 170,\n \"g\": 207,\n \"b\": 209,\n \"black\": \"#000000\",\n \"light_black"
},
{
"path": "src/assets/themes/tron-fulltype.json",
"chars": 876,
"preview": "{\n \"colors\": {\n \"r\": 170,\n \"g\": 207,\n \"b\": 209,\n \"black\": \"#000000\",\n \"light_black"
},
{
"path": "src/assets/themes/tron-notype.json",
"chars": 841,
"preview": "{\n \"colors\": {\n \"r\": 170,\n \"g\": 207,\n \"b\": 209,\n \"black\": \"#000000\",\n \"light_black"
},
{
"path": "src/assets/themes/tron-typeleft.json",
"chars": 767,
"preview": "{\n \"colors\": {\n \"r\": 170,\n \"g\": 207,\n \"b\": 209,\n \"black\": \"#000000\",\n \"light_black"
},
{
"path": "src/assets/themes/tron.json",
"chars": 684,
"preview": "{\n \"colors\": {\n \"r\": 170,\n \"g\": 207,\n \"b\": 209,\n \"black\": \"#000000\",\n \"light_black"
},
{
"path": "src/assets/vendor/encom-globe.js",
"chars": 997442,
"preview": "/**\n* This is a fork of the Encom Globe by Rob \"arscan\" Scanlon (https://robscanlon.com)\n* Original Source: https://gith"
},
{
"path": "src/classes/audiofx.class.js",
"chars": 2603,
"preview": "class AudioManager {\n constructor() {\n const path = require(\"path\");\n const {Howl, Howler} = require(\"h"
},
{
"path": "src/classes/clock.class.js",
"chars": 1737,
"preview": "class Clock {\n constructor(parentId) {\n if (!parentId) throw \"Missing parameters\";\n\n // Load settings\n "
},
{
"path": "src/classes/conninfo.class.js",
"chars": 3925,
"preview": "class Conninfo {\n constructor(parentId) {\n if (!parentId) throw \"Missing parameters\";\n\n // Create DOM\n "
},
{
"path": "src/classes/cpuinfo.class.js",
"chars": 7013,
"preview": "class Cpuinfo {\n constructor(parentId) {\n if (!parentId) throw \"Missing parameters\";\n\n // Create initia"
},
{
"path": "src/classes/docReader.class.js",
"chars": 3362,
"preview": "class DocReader {\n constructor(opts) {\n pdfjsLib.GlobalWorkerOptions.workerSrc = './node_modules/pdfjs-dist/bu"
},
{
"path": "src/classes/filesystem.class.js",
"chars": 37103,
"preview": "class FilesystemDisplay {\n constructor(opts) {\n if (!opts.parentId) throw \"Missing options\";\n\n const fs"
},
{
"path": "src/classes/fuzzyFinder.class.js",
"chars": 5381,
"preview": "class FuzzyFinder {\n constructor() {\n if (document.getElementById(\"fuzzyFinder\") || document.getElementById(\"s"
},
{
"path": "src/classes/hardwareInspector.class.js",
"chars": 1765,
"preview": "class HardwareInspector {\n constructor(parentId) {\n if (!parentId) throw \"Missing parameters\";\n\n // Cre"
},
{
"path": "src/classes/keyboard.class.js",
"chars": 45761,
"preview": "class Keyboard {\n constructor(opts) {\n if (!opts.layout || !opts.container) throw \"Missing options\";\n\n "
},
{
"path": "src/classes/locationGlobe.class.js",
"chars": 9288,
"preview": "class LocationGlobe {\n constructor(parentId) {\n if (!parentId) throw \"Missing parameters\";\n\n const path"
},
{
"path": "src/classes/mediaPlayer.class.js",
"chars": 7725,
"preview": "class MediaPlayer {\n constructor(opts) {\n const modalElementId = \"modal_\" + opts.modalId;\n const type ="
},
{
"path": "src/classes/modal.class.js",
"chars": 7832,
"preview": "window.modals = {};\n\nclass Modal {\n constructor(options, onclose) {\n if (!options || !options.type) throw \"Mis"
},
{
"path": "src/classes/netstat.class.js",
"chars": 7775,
"preview": "class Netstat {\n constructor(parentId) {\n if (!parentId) throw \"Missing parameters\";\n\n // Create DOM\n "
},
{
"path": "src/classes/ramwatcher.class.js",
"chars": 3723,
"preview": "class RAMwatcher {\n constructor(parentId) {\n if (!parentId) throw \"Missing parameters\";\n\n // Create DOM"
},
{
"path": "src/classes/sysinfo.class.js",
"chars": 4080,
"preview": "class Sysinfo {\n constructor(parentId) {\n if (!parentId) throw \"Missing parameters\";\n\n // See #255\n "
},
{
"path": "src/classes/terminal.class.js",
"chars": 20732,
"preview": "class Terminal {\n constructor(opts) {\n if (opts.role === \"client\") {\n if (!opts.parentId) throw \"Mi"
},
{
"path": "src/classes/toplist.class.js",
"chars": 9508,
"preview": "class Toplist {\n constructor(parentId) {\n if (!parentId) throw \"Missing parameters\";\n\n // Create DOM\n "
},
{
"path": "src/classes/updateChecker.class.js",
"chars": 2937,
"preview": "class UpdateChecker {\n constructor() {\n let https = require(\"https\");\n let electron = require(\"electron"
},
{
"path": "src/package.json",
"chars": 1350,
"preview": "{\n \"name\": \"edex-ui\",\n \"productName\": \"eDEX-UI\",\n \"version\": \"2.2.8\",\n \"description\": \"eDEX-UI sci-fi interface\",\n "
},
{
"path": "src/ui.html",
"chars": 3423,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-Security-Policy\" co"
}
]
// ... and 2 more files (download for full content)
About this extraction
This page contains the full source code of the GitSquared/edex-ui GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 103 files (5.7 MB), approximately 1.5M tokens, and a symbol index with 316 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.