mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 05:20:01 -04:00
inital commit
This commit is contained in:
parent
7c4c9bcfa5
commit
9256abebb1
59 changed files with 5172 additions and 6797 deletions
|
@ -1,12 +0,0 @@
|
|||
FROM node:18
|
||||
|
||||
# Install basic development tools
|
||||
RUN apt update && apt install -y less man-db sudo
|
||||
|
||||
# Ensure default `node` user has access to `sudo`
|
||||
ARG USERNAME=node
|
||||
RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
|
||||
&& chmod 0440 /etc/sudoers.d/$USERNAME
|
||||
|
||||
# Set `DEVCONTAINER` environment variable to help with orientation
|
||||
ENV DEVCONTAINER=true
|
|
@ -1,9 +0,0 @@
|
|||
// See https://containers.dev/implementors/json_reference/ for configuration reference
|
||||
{
|
||||
"name": "Nebula",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"remoteUser": "node",
|
||||
"postCreateCommand": "npm install"
|
||||
}
|
4
.github/FUNDING.yml
vendored
4
.github/FUNDING.yml
vendored
|
@ -1,4 +0,0 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
patreon: nebuladevs
|
||||
ko_fi: nebulaa
|
11
.github/dependabot.yaml
vendored
11
.github/dependabot.yaml
vendored
|
@ -1,11 +0,0 @@
|
|||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "" # See documentation for possible values
|
||||
directory: "/" # Location of package manifests
|
||||
schedule:
|
||||
interval: "weekly"
|
30
.gitignore
vendored
30
.gitignore
vendored
|
@ -1,10 +1,24 @@
|
|||
# dependencies
|
||||
/node_modules
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# System Files
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
.breakpoints
|
||||
|
||||
memory.txt
|
||||
old.app.js
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
node_modules
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"singleQuote": false,
|
||||
"trailingComma": "none"
|
||||
}
|
10
.vscode/settings.json
vendored
10
.vscode/settings.json
vendored
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"editor.tabSize": 2,
|
||||
"editor.insertSpaces": true,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnPaste": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"[javascript]": {
|
||||
"editor.defaultFormatter": "vscode.typescript-language-features"
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
FROM node:20.4-bookworm-slim
|
||||
WORKDIR /usr/src/app
|
||||
COPY . .
|
||||
RUN npm install
|
||||
RUN npm ci
|
||||
EXPOSE 3000
|
||||
CMD ["npm", "start"]
|
661
LICENSE
661
LICENSE
|
@ -1,661 +0,0 @@
|
|||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2022 Nebula Services
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are 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.
|
||||
|
||||
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.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
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 Affero 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. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
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 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 work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero 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 Affero 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 Affero 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 Affero 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
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
214
README.md
214
README.md
|
@ -1,214 +0,0 @@
|
|||
# Nebula
|
||||
|
||||
NebulaWeb is an official flagship of Nebula Services and Nebula Developer Labs. NebulaWeb is a stunning, sleek, and functional web-proxy with support for thousands of popular sites. With NebulaWeb, the sky is the limit.
|
||||
|
||||
Quick note: If you are a system administrator, and have questions, our email is always open `chloe@nebulaproxy.io`
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## Features
|
||||
|
||||
- Stunning and highly functional UI with multiple themes
|
||||
- XOR/b64 encoding all traffic
|
||||
- Hides your IP from sites
|
||||
- [List of officially supported sites](https://github.com/NebulaServices/Nebula/blob/dev/docs/officially-supported-sites.md)
|
||||
- _limited_ mobile support
|
||||
- Stealth Mode (buffed `about:blank` cloaking)
|
||||
- **NEW** Clickoff cloaking
|
||||
- **NEW** Email OTP verification
|
||||
|
||||
# Deployment
|
||||
|
||||
Table of contents
|
||||
|
||||
- Quick & easy deployment
|
||||
- Deployment configuration explaination
|
||||
- how to use email OTP Verification mode
|
||||
- Advanced Deployment
|
||||
- Filesystem
|
||||
|
||||
## Quick & Easy Deployment Options
|
||||
|
||||
## PLEASE READ THIS NOTICE: IF YOU ARE USING NODE VERSION 20 (HEROKU, RAILWAY), YOU WILL NEED TO TEMPORARILY DOWNGRADE TO 19 OR EARLIER.
|
||||
|
||||
|
||||
[](https://cloud.ibm.com/devops/setup/deploy?repository=https://github.com/NebulaServices/Nebula)
|
||||
<br>
|
||||
[](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/NebulaServices/Nebula)
|
||||
<br>
|
||||
[](https://deploy.cloud.run/?git_repo=https://github.com/NebulaServices/Nebula)
|
||||
<br>
|
||||
[](https://railway.app/new/template/pBzeiN)
|
||||
<br>
|
||||
[](https://app.koyeb.com/deploy?type=git&repository=github.com/NebulaServices/Nebula&branch=main&name=NebulaProxy)
|
||||
|
||||
---
|
||||
|
||||
## Deployment Configuration Guide
|
||||
|
||||
(Example configuration with none-json notes)
|
||||
|
||||
```json
|
||||
{
|
||||
"sendgrid_verification": false,
|
||||
"sendgrid_options": {
|
||||
"api_key": "YOUR_SENDGRID_API_KEY",
|
||||
"sendFromEmail": "THE EMAIL THE CODES WILL BE SENT FROM (MUST BE VERIFIED IN SENDGRID)",
|
||||
"to_email": "THE EMAIL YOU WANT THE CODES SENT TO"
|
||||
},
|
||||
|
||||
"discord_verification": false,
|
||||
"webhook_url": "YOUR DISCORD WEBHOOK URL",
|
||||
|
||||
"smtp_verification": false,
|
||||
"smtp_options": {
|
||||
"to_email": "THE EMAIL YOU WANT THE CODES SENT TO",
|
||||
"sendFromEmail": "THE EMAIL THE CODES ARE SENT FROM",
|
||||
"host": "YOUR SMTP HOST",
|
||||
"port": 465,
|
||||
"auth": {
|
||||
"user": "SMTP USER",
|
||||
"pass": "YOUR PASSWORD"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Email Verification OTP
|
||||
|
||||
### What is this?
|
||||
|
||||
Email verification is a new and unique feature that we've implemented in the event that someone wants to keep their deployment of Nebula private and secure.
|
||||
|
||||
### What does it do
|
||||
|
||||
When a user tries to access the website, before allowed access they will be asked for a One time password sent to an email set in the deployment configuration. Once verified, they will have 15 day access to the site.
|
||||
|
||||
#### SendGrid Setup Instructions
|
||||
|
||||
- Firstly, We need to enable verification within the deployment configuration
|
||||
|
||||
- change `"sendgrid_verification":false,` to `"sendgrid_verification":true,` above the SendGrid Section
|
||||
|
||||
- _Note: You have to reboot the node app for any changes to take place._
|
||||
|
||||
- Now, we need to use an api to send a message
|
||||
- Make an account at Sendgrid (https://app.sendgrid.com/)
|
||||
- _Note: It is likely that other versions of Nebula will use a different package to send emails._
|
||||
- Verify the email you want to recieve emails from (Create a sender identity)
|
||||
- Go to settings -> Sender authentication and click Verify a Single Sender
|
||||
- Now, We need to get the API key to connect to the API
|
||||
- Go to settings -> API Keys -> and make an API key.
|
||||
- Complete the information in the deployment config `deployment.config.json` under the `sendgrid_options` section such as: sendFromEmail, to_email and api_key
|
||||
|
||||
#### Discord Webhook Setup Instructions
|
||||
|
||||
- Set discord_verification to true in the deployment configuration.
|
||||
- Create a channel in a discord server you have admin in.
|
||||
- Click the Edit Channel button.
|
||||
- Click Integrations
|
||||
- Click create web hook and copy the URL.
|
||||
- Paste it under the `webhook_url` section in the deployment configuration.
|
||||
|
||||
#### SMTP Setup Instructions
|
||||
|
||||
- Set `smtp_verification` to true.
|
||||
- Change `to_email` to the email address you want the codes to be sent to.
|
||||
- Change `sendFromEmail to the email address that is going to send the codes.
|
||||
- Get the host and port from your email provider's documentation.
|
||||
- Fill in your username and password under the `user` and `pass` section under auth.
|
||||
|
||||
## Advanced Deployment
|
||||
|
||||
### Initial configuration
|
||||
|
||||
credits to @ProgrammerIn-wonderland for writing this wonderful tutorial (which can also be found in the docs :)
|
||||
|
||||
- Create an account at https://www.cloudflare.com/
|
||||
- Create an account at https://www.freenom.com/ (or any registrars)
|
||||
- Find a free domain name at Freenom
|
||||
- Click checkout
|
||||
- Select (12 Months @ FREE)
|
||||
- Select "Use DNS"
|
||||
- Select Use your own DNS
|
||||
- Go to cloudflare, click add new site, and enter the free domain name
|
||||
- Select "Free Plan"
|
||||
- Click continue, ignore DNS
|
||||
- Copy the name servers cloudflare gives you
|
||||
- Go back to your Freenom tab, enter in the name servers which cloudflare gave you
|
||||
- You can keep IP blank
|
||||
- Click continue
|
||||
- Click complete order
|
||||
- Go back to cloudflare tab, click "Check Nameservers"
|
||||
- Select DNS on your right bar
|
||||
- Enter in the IP of the server which will be hosting Nebula
|
||||
- Target will be `@`
|
||||
- Click Enable proxy (little gray cloud icon, if active its orange)
|
||||
- Select SSL/TLS in your right bar
|
||||
- Click "Flexible"
|
||||
|
||||
---
|
||||
|
||||
### Server configuration
|
||||
|
||||
- SSH into the server you'll be using, I'll assume its running Ubuntu 22.04 (though the commands are the same for debian 10+ versions, and Ubuntu versions 20.04+)
|
||||
- run
|
||||
|
||||
```
|
||||
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - \ &&
|
||||
sudo apt-get install -y nodejs npm
|
||||
git clone https://github.com/NebulaServices/Nebula.git
|
||||
cd Nebula
|
||||
npm i
|
||||
npm ci
|
||||
sudo nohup PORT=80 node . &
|
||||
```
|
||||
|
||||
**Make sure your firewall is configured to let through port 80 traffic!** \
|
||||
_Note: Server will need to run` cd Nebula && sudo nohup PORT=80 node . &` on reboot_
|
||||
|
||||
## File Structure
|
||||
|
||||
| **File** | Purpose | |
|
||||
| -------------------------------- | -------------------------------------------------------------------------------------------------------- | --- |
|
||||
| `src/index.html` | The main frontend visuals for NebulaWEB. | |
|
||||
| `src/unv.html` | The verification-required frontend/visuals. | |
|
||||
| `src/options.html` | The frontend for Nebula's options, settings, and preferences. | |
|
||||
| `public/resources/v.js` | Client verification system for the OTP system. | |
|
||||
| `public/resources/nebulamain.js` | All of the DOM/client code for NebulaWEB. Includes options, themeSystem, cloak, stealthengine, and more. | |
|
||||
| `app.js` | The backend server for Nebula. Contains Nodestatic, Bare, HTTP, and more. | |
|
||||
|
||||
## Tech Stack
|
||||
|
||||
- HTML, JS, CSS
|
||||
- Partical.JS (Specifically v4, 5, 6.1 &< only)
|
||||
- Ultraviolet (proxy)
|
||||
- Osana (proxy)
|
||||
- TompHTTP Bare Server Node
|
||||
- ExpressJS
|
||||
|
||||
## Support
|
||||
|
||||
For support, email chloe@nebula.bio or join our discord: discord.gg/unblocker
|
||||
|
||||
## Demo
|
||||
|
||||
[Click here to see a demo of Nebula](https://nebulaproxy.io/)
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
- [UV (one of the proxies use)](https://github.com/titaniumnetwork-dev/Ultraviolet)
|
||||
- [Osana (one of the proxies we use)](https://github.com/NebulaServices/Osana)
|
||||
- [Bare Server Node](https://github.com/tomphttp/bare-server-node)
|
||||
- [Partical.JS (v4, 5, 6.1 &< only)](https://github.com/VincentGarreau/particles.js)
|
||||
|
||||
## License
|
||||
|
||||
(Nebula's license is now GNU AGPL V3 as of v7.10)
|
||||
Copyright Nebula Services 2021 - Present
|
||||
<br>
|
||||
This project uses the AGLP GNU V3 license.
|
249
app.js
249
app.js
|
@ -1,249 +0,0 @@
|
|||
import express from "express";
|
||||
import cookieParser from "cookie-parser";
|
||||
import http from "node:http";
|
||||
import createBareServer from "@tomphttp/bare-server-node";
|
||||
import { uvPath } from "@titaniumnetwork-dev/ultraviolet";
|
||||
import path from "node:path";
|
||||
import config from "./deployment.config.json" assert { type: "json" };
|
||||
import sgMail from "@sendgrid/mail";
|
||||
import nodemailer from "nodemailer";
|
||||
import * as uuid from "uuid";
|
||||
import fs from "node:fs";
|
||||
import bcrypt from "bcrypt";
|
||||
// fx
|
||||
const PORT = process.env.PORT || 3000;
|
||||
const __dirname = process.cwd();
|
||||
const ACTIVE_CODES = new Set();
|
||||
if (!fs.existsSync("./tmp/memory.txt")) {
|
||||
fs.writeFileSync("./tmp/memory.txt", "", "utf-8");
|
||||
}
|
||||
let TOKENS = fs
|
||||
.readFileSync("./tmp/memory.txt", "utf-8")
|
||||
.trim()
|
||||
.split("\n")
|
||||
.map((token) => {
|
||||
const parts = token.split(":");
|
||||
return {
|
||||
id: parts[0],
|
||||
token: parts[1],
|
||||
expiration: parts[2]
|
||||
};
|
||||
});
|
||||
|
||||
const server = http.createServer();
|
||||
const app = express(server);
|
||||
const bareServer = createBareServer("/bare/");
|
||||
|
||||
// Middleware
|
||||
app.use(cookieParser());
|
||||
app.use(express.json());
|
||||
app.use(
|
||||
express.urlencoded({
|
||||
extended: true
|
||||
})
|
||||
);
|
||||
|
||||
// Verification
|
||||
app.patch("/generate-otp", async (req, res) => {
|
||||
if (
|
||||
config.sendgrid_verification ||
|
||||
config.discord_verification ||
|
||||
config.smtp_verificaton
|
||||
) {
|
||||
const OTP = generateCode();
|
||||
ACTIVE_CODES.add(OTP);
|
||||
|
||||
setTimeout(() => {
|
||||
ACTIVE_CODES.delete(OTP);
|
||||
}, 1000 * 60 * 5);
|
||||
|
||||
let email = {
|
||||
to: "",
|
||||
from: "",
|
||||
subject: `NebulaWEB personal access code ${OTP}`,
|
||||
text: `
|
||||
####### ACCESS CODE (OTP) ${OTP} #######
|
||||
####### DO NOT SHARE THIS CODE! #######
|
||||
(this message is automated)`
|
||||
};
|
||||
|
||||
if (config.sendgrid_verification) {
|
||||
sgMail.setApiKey(config.sendgrid_options.api_key);
|
||||
|
||||
email.to = config.sendgrid_options.to_email;
|
||||
email.from = config.sendgrid_options.sendFromEmail;
|
||||
try {
|
||||
await sgMail.send(msg);
|
||||
} catch {
|
||||
return res.status(504).end();
|
||||
}
|
||||
}
|
||||
|
||||
if (config.smtp_verification) {
|
||||
const smtpMailerAgent = nodemailer.createTransport(config.smtp_options);
|
||||
|
||||
email.to = config.smtp_options.to_email;
|
||||
email.from = config.smtp_options.sendFromEmail;
|
||||
try {
|
||||
smtpMailerAgent.sendMail(email);
|
||||
} catch {
|
||||
return res.status(504).end();
|
||||
}
|
||||
}
|
||||
|
||||
if (config.discord_verification) {
|
||||
try {
|
||||
await fetch(config.webhook_url, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: JSON.stringify({
|
||||
content: `Your NebulaWEB access code is \`${OTP}\``
|
||||
})
|
||||
});
|
||||
} catch {
|
||||
return res.status(500).end();
|
||||
}
|
||||
}
|
||||
|
||||
res.status(200).end();
|
||||
} else {
|
||||
res.status(404).end();
|
||||
}
|
||||
});
|
||||
|
||||
function generateCode() {
|
||||
const code = Math.floor(Math.random() * 1000000);
|
||||
return code.toString().padStart(6, "0");
|
||||
}
|
||||
|
||||
app.post("/validate-otp", (req, res) => {
|
||||
if (
|
||||
config.sendgrid_verification ||
|
||||
config.discord_verification ||
|
||||
config.smtp_verificaton
|
||||
) {
|
||||
const OTP = req.body.otp;
|
||||
|
||||
if (ACTIVE_CODES.has(OTP)) {
|
||||
ACTIVE_CODES.delete(OTP);
|
||||
|
||||
const token = uuid.v4();
|
||||
|
||||
TOKENS.push({
|
||||
id: OTP,
|
||||
token: hash(token),
|
||||
expiration: Date.now() + 1000 * 60 * 60 * 24 * 30
|
||||
});
|
||||
|
||||
fs.writeFileSync(
|
||||
"./tmp/memory.txt",
|
||||
TOKENS.map((token) => {
|
||||
return `${token.id}:${token.token}:${token.expiration}`;
|
||||
}).join("\n"),
|
||||
"utf-8"
|
||||
);
|
||||
|
||||
res.status(200).json({
|
||||
success: true,
|
||||
validation: `${OTP}:${token}`
|
||||
});
|
||||
} else {
|
||||
res.status(401).json({
|
||||
success: false
|
||||
});
|
||||
}
|
||||
} else {
|
||||
res.status(404).end();
|
||||
}
|
||||
});
|
||||
|
||||
// Static files
|
||||
app.use(express.static(path.join(__dirname, "public")));
|
||||
app.use("/uv/", express.static(uvPath));
|
||||
|
||||
// Login route
|
||||
app.get("/login", (req, res) => {
|
||||
if (
|
||||
config.sendgrid_verification ||
|
||||
config.discord_verification ||
|
||||
config.smtp_verificaton
|
||||
) {
|
||||
res.sendFile(path.join(__dirname, "src", "unv.html"));
|
||||
} else {
|
||||
res.redirect("/");
|
||||
}
|
||||
});
|
||||
|
||||
// General Routes
|
||||
app.use((req, res, next) => {
|
||||
if (
|
||||
config.sendgrid_verification ||
|
||||
config.discord_verification ||
|
||||
config.smtp_verificaton
|
||||
) {
|
||||
const verification = req.cookies["validation"];
|
||||
if (!verification || !validateToken(verification)) {
|
||||
return res.redirect("/login");
|
||||
}
|
||||
}
|
||||
next();
|
||||
});
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
res.sendFile(path.join(__dirname, "src", "index.html"));
|
||||
});
|
||||
|
||||
app.get("/options", (req, res) => {
|
||||
res.sendFile(path.join(__dirname, "src", "options.html"));
|
||||
});
|
||||
|
||||
app.get("/privacy", (req, res) => {
|
||||
res.sendFile(path.join(__dirname, "src", "privacy.html"));
|
||||
});
|
||||
|
||||
// Bare Server
|
||||
server.on("request", (req, res) => {
|
||||
if (bareServer.shouldRoute(req)) {
|
||||
bareServer.routeRequest(req, res);
|
||||
} else {
|
||||
app(req, res);
|
||||
}
|
||||
});
|
||||
|
||||
server.on("upgrade", (req, socket, head) => {
|
||||
if (bareServer.shouldRoute(req)) {
|
||||
bareServer.routeUpgrade(req, socket, head);
|
||||
} else {
|
||||
socket.end();
|
||||
}
|
||||
});
|
||||
|
||||
server.on("listening", () => {
|
||||
console.log(`Server running at http://localhost:${PORT}/.`);
|
||||
});
|
||||
|
||||
server.listen({
|
||||
port: PORT
|
||||
});
|
||||
|
||||
function hash(token) {
|
||||
const salt = bcrypt.genSaltSync(10);
|
||||
return bcrypt.hashSync(token, salt);
|
||||
}
|
||||
|
||||
function validateToken(verification) {
|
||||
const [id, token] = verification.split(":");
|
||||
const tokenData = TOKENS.find((token) => token.id == id);
|
||||
|
||||
if (!tokenData) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tokenData.expiration < Date.now()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return bcrypt.compareSync(token, tokenData.token);
|
||||
}
|
7
app.json
7
app.json
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"name": "NebulaWEB",
|
||||
"description": "Explore the web. Freely. ",
|
||||
"repository": "https://github.com/NebulaServices/Nebula",
|
||||
"logo": "https://avatars.githubusercontent.com/u/86420004?v=4",
|
||||
"keywords": ["educational", "science", "math"]
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
"sendgrid_verification": false,
|
||||
"sendgrid_options": {
|
||||
"api_key": "YOUR_SENDGRID_API_KEY",
|
||||
"sendFromEmail": "THE EMAIL THE CODES WILL BE SENT FROM (MUST BE VERIFIED IN SENDGRID)",
|
||||
"to_email": "THE EMAIL YOU WANT THE CODES SENT TO"
|
||||
},
|
||||
|
||||
"discord_verification": false,
|
||||
"webhook_url": "YOUR DISCORD WEBHOOK URL",
|
||||
|
||||
"smtp_verification": false,
|
||||
"smtp_options": {
|
||||
"to_email": "THE EMAIL YOU WANT THE CODES SENT TO",
|
||||
"sendFromEmail": "THE EMAIL THE CODES ARE SENT FROM",
|
||||
"host": "YOUR SMTP HOST",
|
||||
"port": 465,
|
||||
"auth": {
|
||||
"user": "SMTP USER",
|
||||
"pass": "YOUR PASSWORD"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
version: "3"
|
||||
services:
|
||||
nebula:
|
||||
image: nebula:latest
|
||||
build: .
|
||||
container_name: nebula
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
# DO NOT CHANGE 3000!
|
||||
- your port here:3000
|
|
@ -1,8 +0,0 @@
|
|||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "Site",
|
||||
script: "proxysocks node app.js"
|
||||
}
|
||||
]
|
||||
};
|
14
index.html
Normal file
14
index.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<title>Vite + Preact</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/index.tsx"></script>
|
||||
</body>
|
||||
</html>
|
6730
package-lock.json
generated
6730
package-lock.json
generated
File diff suppressed because it is too large
Load diff
37
package.json
37
package.json
|
@ -1,28 +1,25 @@
|
|||
{
|
||||
"name": "nebula-web",
|
||||
"version": "7.11.6",
|
||||
"description": "Explore the web. Freely.",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
"start": "node app.js"
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"keywords": [
|
||||
"proxy"
|
||||
],
|
||||
"author": "Nebula Services",
|
||||
"license": "AGPL-3.0-only",
|
||||
"dependencies": {
|
||||
"@sendgrid/mail": "^7.7.0",
|
||||
"@tomphttp/bare-server-node": "^1.2.5",
|
||||
"@titaniumnetwork-dev/ultraviolet": "^1.0.11",
|
||||
"bcrypt": "^5.1.0",
|
||||
"cookie-parser": "^1.4.6",
|
||||
"express": "^4.18.2",
|
||||
"nodemailer": "^6.9.2",
|
||||
"uuid": "^9.0.0"
|
||||
"million": "^2.6.4",
|
||||
"preact": "^10.13.1",
|
||||
"preact-iso": "^2.3.2",
|
||||
"preact-render-to-string": "^6.3.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.x"
|
||||
"devDependencies": {
|
||||
"@preact/preset-vite": "^2.5.0",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"eslint": "^8.55.0",
|
||||
"eslint-config-preact": "^1.3.0",
|
||||
"postcss": "^8.4.32",
|
||||
"tailwindcss": "^3.3.6",
|
||||
"typescript": "^5.3.3",
|
||||
"vite": "^4.3.2"
|
||||
}
|
||||
}
|
||||
|
|
6
postcss.config.js
Normal file
6
postcss.config.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
export default {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 34 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,2 +0,0 @@
|
|||
(()=>{"use strict";self.__osana$config={bare:`${location.origin}/bare/`,prefix:"/service/~osana/",codec:self.__osana$bundle.codecs.none,files:{config:"/osana/osana.config.js",client:"/osana/osana.client.js",bundle:"/osana/osana.bundle.js",worker:"/osana/osana.worker.js"},blacklist:[/^(www\.)?netflix\.com/,/^accounts\.google\.com/]}})();
|
||||
//# sourceMappingURL=osana.config.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"osana.config.js","mappings":"mBAAAA,KAAKC,eAAiB,CAClBC,KAAM,GAAGC,SAASC,eAClBC,OAAQ,WACRC,MAAON,KAAKO,eAAeC,OAAOC,KAClCC,MAAO,CACHC,OAAQ,mBACRC,OAAQ,mBACRC,OAAQ,mBACRC,OAAQ,oBAEZC,UAAW,CACP,wBACA,0B","sources":["webpack://osana/./src/config.ts"],"sourcesContent":["self.__osana$config = {\n bare: `${location.origin}/bare/`,\n prefix: \"/~osana/\",\n codec: self.__osana$bundle.codecs.none,\n files: {\n config: \"/osana.config.js\",\n client: \"/osana.client.js\",\n bundle: \"/osana.bundle.js\",\n worker: \"/osana.worker.js\"\n },\n blacklist: [\n /^(www\\.)?netflix\\.com/,\n /^accounts\\.google\\.com/,\n ]\n};\nexport {};\n"],"names":["self","__osana$config","bare","location","origin","prefix","codec","__osana$bundle","codecs","none","files","config","client","bundle","worker","blacklist"],"sourceRoot":""}
|
|
@ -1,2 +0,0 @@
|
|||
(()=>{"use strict";importScripts("/osana/osana.bundle.js?1"),importScripts("/osana/osana.config.js?1"),self.OsanaServiceWorker=class{constructor(){this.config=self.__osana$config,this.bundle=self.__osana$bundle,this.bareClient=new this.bundle.BareClient(this.config.bare)}fetch(t){return s=this,n=void 0,r=function*(){const s=this.config.codec.decode(new URL(t.request.url).pathname.replace(this.config.prefix,""))+new URL(t.request.url).search;if(!/^https?:\/\//.test(s))return fetch(t.request.url);const n=new URL(s),i=this.bundle.rewrite.headers.request(Object.fromEntries(t.request.headers.entries()),n);if(this.config.blacklist&&this.config.blacklist.some((e=>e.test(n.host))))return new e;const r={method:t.request.method,headers:i};["GET","HEAD"].includes(t.request.method)||(r.body=yield t.request.blob());const o=yield this.bareClient.fetch(n,r);let a=o.rawResponse.status;const c=this.bundle.rewrite.headers.response(o.rawHeaders,n);let l="";return/text\/html/.test(c["Content-Type"])?(l=`<head><script src="${this.config.files.bundle}?1"><\/script><script src="${this.config.files.config}?1"><\/script><script src="${this.config.files.client}?1"><\/script><link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdjYGBkZAAAAAoAAx9k7/gAAAAASUVORK5CYIIA"><link rel="icon" href="${n.origin}/favicon.ico">`+(301===a&&c.location?`<meta http-equiv="refresh" content="0; url=${this.bundle.rewrite.url(c.location)}">`:"")+"</head>",l+=this.bundle.rewrite.html(yield o.text(),n.origin+n.pathname)):l=/text\/css/.test(c["Content-Type"])||"style"===t.request.destination?this.bundle.rewrite.css(yield o.text(),n.origin+n.pathname):/application\/javascript/.test(c["Content-Type"])||"script"===t.request.destination?this.bundle.rewrite.js(yield o.text()):yield o.arrayBuffer(),new Response(l,{status:o.rawResponse.status,statusText:o.rawResponse.statusText,headers:c})},new((i=void 0)||(i=Promise))((function(e,t){function o(e){try{c(r.next(e))}catch(e){t(e)}}function a(e){try{c(r.throw(e))}catch(e){t(e)}}function c(t){var s;t.done?e(t.value):(s=t.value,s instanceof i?s:new i((function(e){e(s)}))).then(o,a)}c((r=r.apply(s,n||[])).next())}));var s,n,i,r}};class e extends Response{constructor(){super("Forbidden",{status:403,statusText:"Forbidden",headers:{"Content-Type":"text/plain"}})}}})();
|
||||
//# sourceMappingURL=osana.worker.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,154 +0,0 @@
|
|||
{
|
||||
"adjectives": [
|
||||
"admiring",
|
||||
"adoring",
|
||||
"affectionate",
|
||||
"agitated",
|
||||
"amazing",
|
||||
"angry",
|
||||
"awesome",
|
||||
"beautiful",
|
||||
"blissful",
|
||||
"bold",
|
||||
"boring",
|
||||
"brave",
|
||||
"busy",
|
||||
"charming",
|
||||
"clever",
|
||||
"cool",
|
||||
"compassionate",
|
||||
"competent",
|
||||
"condescending",
|
||||
"confident",
|
||||
"cranky",
|
||||
"crazy",
|
||||
"dazzling",
|
||||
"determined",
|
||||
"distracted",
|
||||
"dreamy",
|
||||
"eager",
|
||||
"ecstatic",
|
||||
"elastic",
|
||||
"elated",
|
||||
"elegant",
|
||||
"eloquent",
|
||||
"epic",
|
||||
"exciting",
|
||||
"fervent",
|
||||
"festive",
|
||||
"flamboyant",
|
||||
"focused",
|
||||
"friendly",
|
||||
"frosty",
|
||||
"funny",
|
||||
"gallant",
|
||||
"gifted",
|
||||
"goofy",
|
||||
"gracious",
|
||||
"great",
|
||||
"happy",
|
||||
"hardcore",
|
||||
"heuristic",
|
||||
"hopeful",
|
||||
"hungry",
|
||||
"infallible",
|
||||
"inspiring",
|
||||
"interesting",
|
||||
"intelligent",
|
||||
"jolly",
|
||||
"jovial",
|
||||
"keen",
|
||||
"kind",
|
||||
"laughing",
|
||||
"loving",
|
||||
"lucid",
|
||||
"magical",
|
||||
"mystifying",
|
||||
"modest",
|
||||
"musing",
|
||||
"naughty",
|
||||
"nervous",
|
||||
"nice",
|
||||
"nifty",
|
||||
"nostalgic",
|
||||
"objective",
|
||||
"optimistic",
|
||||
"peaceful",
|
||||
"pedantic",
|
||||
"pensive",
|
||||
"practical",
|
||||
"priceless",
|
||||
"quirky",
|
||||
"quizzical",
|
||||
"recursing",
|
||||
"relaxed",
|
||||
"reverent",
|
||||
"romantic",
|
||||
"sad",
|
||||
"serene",
|
||||
"sharp",
|
||||
"silly",
|
||||
"sleepy",
|
||||
"stoic",
|
||||
"strange",
|
||||
"stupefied",
|
||||
"suspicious",
|
||||
"sweet",
|
||||
"tender",
|
||||
"thirsty",
|
||||
"trusting",
|
||||
"unruffled",
|
||||
"upbeat",
|
||||
"vibrant",
|
||||
"vigilant",
|
||||
"vigorous",
|
||||
"wizardly",
|
||||
"wonderful",
|
||||
"xenodochial",
|
||||
"youthful",
|
||||
"zealous",
|
||||
"zen"
|
||||
],
|
||||
"surnames": [
|
||||
"albattani",
|
||||
"allen",
|
||||
"almeida",
|
||||
"antonelli",
|
||||
"agnesi",
|
||||
"archimedes",
|
||||
"ardinghelli",
|
||||
"aryabhata",
|
||||
"austin",
|
||||
"babbage",
|
||||
"banach",
|
||||
"banzai",
|
||||
"bardeen",
|
||||
"bartik",
|
||||
"bassi",
|
||||
"beaver",
|
||||
"bell",
|
||||
"benz",
|
||||
"bhabha",
|
||||
"bhaskara",
|
||||
"black",
|
||||
"blackburn",
|
||||
"blackwell",
|
||||
"bohr",
|
||||
"booth",
|
||||
"borg",
|
||||
"bose",
|
||||
"bouman",
|
||||
"boyd",
|
||||
"brahmagupta",
|
||||
"brattain",
|
||||
"brown",
|
||||
"buck",
|
||||
"burnell",
|
||||
"cannon",
|
||||
"carson",
|
||||
"cartwright",
|
||||
"carver",
|
||||
"cerf",
|
||||
"chandrasekhar"
|
||||
]
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
// Get's the current day using the Date function built in.
|
||||
// A dependency for displaying time - displayTime(void)
|
||||
function getDayName(dateStr, locale) {
|
||||
var date = new Date(dateStr);
|
||||
return date.toLocaleDateString(locale, { weekday: "long" });
|
||||
}
|
||||
|
||||
// The main function to show the time on the main page
|
||||
// needs to be initialized by a call (only one)
|
||||
// Dependent on getDayName function
|
||||
function displayTime() {
|
||||
var date = new Date();
|
||||
var h = date.getHours(); // 0 - 23
|
||||
var m = date.getMinutes(); // 0 - 59
|
||||
var s = date.getSeconds(); // 0 - 59
|
||||
var session = "AM";
|
||||
h = h == 12 ? 24 : h;
|
||||
|
||||
if (h == 0) {
|
||||
h = 12;
|
||||
} else if (h >= 12) {
|
||||
h = h - 12;
|
||||
session = "PM";
|
||||
}
|
||||
h = h < 10 ? "0" + h : h;
|
||||
m = m < 10 ? "0" + m : m;
|
||||
s = s < 10 ? "0" + s : s;
|
||||
// Repeat itself every second
|
||||
setTimeout(displayTime, 1000);
|
||||
// Get today's date
|
||||
var today = new Date();
|
||||
var dd = String(today.getDate()).padStart(2, "0");
|
||||
var mm = String(today.getMonth() + 1).padStart(2, "0"); //January is 0!
|
||||
var yyyy = today.getFullYear();
|
||||
today = mm + "/" + dd + "/" + yyyy;
|
||||
var time = h + "<span style='opacity:100%;' class='clockColon'>:</span>" + m;
|
||||
try {
|
||||
document.getElementById("digitalClock").innerHTML =
|
||||
getDayName(today, "us-US") + ", " + time + " " + session + ".";
|
||||
} catch {}
|
||||
|
||||
return time;
|
||||
}
|
||||
// initialize the time function
|
||||
|
||||
displayTime();
|
|
@ -1,359 +0,0 @@
|
|||
// Welcome to the main Nebula script
|
||||
// This script handles all the tasks neccesary for a proxy.
|
||||
// What this doesn't include is the actual proxies, just the neccesary tasks in order for the proxies to be able to preform, such as registering the service worker required by Interception proxies.
|
||||
|
||||
// Documentation Writers/Contributors:
|
||||
// GreenWorld#0001 (Discord) / GreenyDev (Github)
|
||||
// If you would like to contribute, feel free to open a pull request.
|
||||
// These docs are not finished
|
||||
|
||||
// Navigation controls for smaller devices
|
||||
// Executed in the inline HTML
|
||||
function openNav() {
|
||||
document.getElementById("sidenav").style.width = "260px";
|
||||
}
|
||||
function closeNav() {
|
||||
document.getElementById("sidenav").style.width = "0px";
|
||||
}
|
||||
|
||||
function setLoaderText() {
|
||||
document.getElementById("connectorText").textContent =
|
||||
"connecting to service";
|
||||
const loader = document.getElementById("lpoader");
|
||||
|
||||
const loadConstructer = loader.style;
|
||||
loadConstructer.display = "flex";
|
||||
loadConstructer.justifyContent = "center";
|
||||
// Changing the text over multiple periods of time creates character, and aliveness (is that even a word?)
|
||||
setTimeout(() => {
|
||||
document.getElementById("connectorText").style.fontSize = "12px";
|
||||
document.getElementById("connectorText").textContent =
|
||||
"Due to high server load, this may take a while.";
|
||||
}, 3200);
|
||||
setTimeout(() => {
|
||||
document.getElementById("connectorText").style.fontSize = "14px";
|
||||
document.getElementById("connectorText").textContent =
|
||||
"Hmmm.. Something isn't right..";
|
||||
}, 17000);
|
||||
}
|
||||
|
||||
window.stealthEngineLoaded = false;
|
||||
|
||||
window.addEventListener("load", () => {
|
||||
// Register the service workers for Osana and Ultraviolet proxy protocols
|
||||
// This is a better method than registering onsubmit because this allows the ability to use proxied links on the main page.
|
||||
|
||||
navigator.serviceWorker.register("./sw.js", {
|
||||
scope: "/service/"
|
||||
});
|
||||
|
||||
// Link evaluation
|
||||
// This functions' purpose is to check a string of text (the argument)
|
||||
// it recognizes whether a string is a URL or not, and it returns a true or false value
|
||||
function isUrl(val = "") {
|
||||
if (
|
||||
/^http(s?):\/\//.test(val) ||
|
||||
(val.includes(".") && val.substr(0, 1) !== " ")
|
||||
)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
const proxy = localStorage.getItem("proxy") || "uv";
|
||||
const inpbox = document.querySelector("form");
|
||||
// Display the "loading" indicators on the main page, looks much better than a static/still screen.
|
||||
|
||||
const hasLoadedElement = document.createElement("div");
|
||||
hasLoadedElement.id = "hasLoaded";
|
||||
hasLoadedElement.style.display = "none";
|
||||
document.body.appendChild(hasLoadedElement);
|
||||
|
||||
inpbox.addEventListener("submit", (event) => {
|
||||
// Prevents the default event tasks
|
||||
event.preventDefault();
|
||||
console.log("Connecting to service -> loading");
|
||||
setLoaderText();
|
||||
});
|
||||
|
||||
// Form submission
|
||||
const form = document.querySelector("form");
|
||||
form.addEventListener("submit", (event) => {
|
||||
event.preventDefault();
|
||||
// Check if the service worker (commonly called SW) is registered
|
||||
if (typeof navigator.serviceWorker === "undefined")
|
||||
alert(
|
||||
"An error occured registering your service worker. Please contact support - discord.gg/unblocker"
|
||||
);
|
||||
//
|
||||
if (proxy === "uv" || proxy === "osana") {
|
||||
// Re-register the service worker incase it failed to onload
|
||||
navigator.serviceWorker
|
||||
.register("./sw.js", {
|
||||
scope: "/service/"
|
||||
})
|
||||
.then(() => {
|
||||
const value = event.target.firstElementChild.value;
|
||||
let url = value.trim();
|
||||
if (!isUrl(url)) url = "https://www.google.com/search?q=" + url;
|
||||
if (!(url.startsWith("https://") || url.startsWith("http://")))
|
||||
url = "http://" + url;
|
||||
// encode the URL for UltraViolet
|
||||
let redirectTo =
|
||||
proxy === "uv"
|
||||
? __uv$config.prefix + __uv$config.encodeUrl(url)
|
||||
: __osana$config.prefix + __osana$config.codec.encode(url);
|
||||
const option = localStorage.getItem("nogg");
|
||||
if (option === "on") {
|
||||
if (window.stealthEngineLoaded !== false) {
|
||||
stealthEngine(redirectTo);
|
||||
} else {
|
||||
console.error(
|
||||
"Stealth Engine failed to load! Please contact support - discord.gg/unblocker"
|
||||
);
|
||||
}
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
// If StealthMode is off, this is the enabled option.
|
||||
const _popout = window.open("/blob", "_self");
|
||||
const blob = _popout.document;
|
||||
// Write all of the neccesary page elements, and the Options including the cloak (if enabled)
|
||||
// The blob writing is just the background elements, like the "Nebula is loading your content, please wait" screen. It does not carry proxied content, or even the iframe.
|
||||
blob.write(`
|
||||
<script>
|
||||
function handleTabLeave(activeInfo) {
|
||||
var link = document.querySelector("link[rel~='icon']");
|
||||
if (localStorage.getItem('ADVcloak') == "on") {
|
||||
if (document.title == "Nebula") {
|
||||
document.title = "Google"
|
||||
if (!link) {
|
||||
link = document.createElement('link');
|
||||
link.rel = 'icon';
|
||||
document.getElementsByTagName('head')[0].appendChild(link);
|
||||
}
|
||||
link.href = 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQo7AE3IF34XPGyseQjkXIOsWXpkZiLlMjSAwySjcJSPAwlv3hnGKi1&usqp=CAU';
|
||||
document.title = "Google"
|
||||
} else if (document.title == "Google") {
|
||||
document.title = "Nebula"
|
||||
if (!link) {
|
||||
link = document.createElement('link');
|
||||
link.rel = 'icon';
|
||||
document.getElementsByTagName('head')[0].appendChild(link);
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
document.addEventListener("visibilitychange", handleTabLeave)
|
||||
</script>
|
||||
|
||||
<style>@import "https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap"; body{background:#191724;color:#fff}div{margin-top:30px;font-size:100px;text-align:center;font-family:"Roboto";font-weight:700}.loader .b1{left:42%}.loader .b2{left:50%;animation-delay:100ms}.loader .b3{left:58%;animation-delay:200ms;color:#eb6f92}.loader .b1,.loader .b2,.loader .b3{width:10px;height:30px;position:absolute;top:50%;transform:rotate(0);animation-name:spinify;animation-duration:1600ms;animation-iteration-count:infinite;color:#eb6f92;background-color:#eb6f92}@keyframes spinify{0%{transform:translate(0px,0px)}33%{transform:translate(0px,24px);border-radius:100%;width:10px;height:10px}66%{transform:translate(0px,-16px)}88%{transform:translate(0px,4px)}100%{transform:translate(0px,0px)}}</style>
|
||||
<div class="loader">
|
||||
<div>Nebula is loading your content!</div>
|
||||
<div style='font-size:35px;'>Please wait</div>
|
||||
<div class="b1"></div>
|
||||
<div class="b2"></div>
|
||||
<div class="b3"></div>
|
||||
</div>
|
||||
`);
|
||||
// inside of the blob, create and append the Iframe element which WILL carry the proxied content.
|
||||
const iframe = blob.createElement("iframe");
|
||||
const style = iframe.style;
|
||||
const img = blob.createElement("link");
|
||||
const link = location.href;
|
||||
// We attach ARC because it supports us, keeping our arc link there would be greatly appreciated :)
|
||||
const arcSrc = blob.createElement("script");
|
||||
arcSrc.setAttribute(
|
||||
"src",
|
||||
"https://arc.io/widget.min.js#BgaWcYfi"
|
||||
);
|
||||
// Arc requires the Async attribute
|
||||
// Async means not running parallel to other tasks, so it loads seperately to everything else (in a sense)
|
||||
// Aysnchronous and Synchronous are somewhat difficult topics, so we recommend you
|
||||
arcSrc.setAttribute("async", "");
|
||||
blob.head.appendChild(arcSrc);
|
||||
img.rel = "icon";
|
||||
img.href =
|
||||
"https://static.nebulacdn.xyz/content/images/nebula_logo_619x619.png";
|
||||
blob.title = getRandomName();
|
||||
// slice the link like some nice fruit :)
|
||||
// Removing the '/' from 'whateverthislinkis.gay/'
|
||||
// ^
|
||||
var currentLink = link.slice(0, link.length - 1);
|
||||
// To attribute the iframe to a source, we need to + the current link (post-slice) to the requested website, which is passed through the functions argument
|
||||
iframe.src = currentLink + redirectTo;
|
||||
|
||||
// Style the Iframe to fill the entire screen and remove the bessels.
|
||||
style.position = "fixed";
|
||||
style.top = style.bottom = style.left = style.right = 0;
|
||||
style.border = style.outline = "none";
|
||||
style.width = style.height = "100%";
|
||||
// finally, append the iframe to the blob's (window) body
|
||||
blob.body.appendChild(iframe);
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Set the option
|
||||
var option = localStorage.getItem("nogg");
|
||||
if (localStorage.getItem("theme") == null) {
|
||||
localStorage.setItem("theme", "dark");
|
||||
}
|
||||
|
||||
// Extra logging for support
|
||||
function log() {
|
||||
setTimeout(
|
||||
console.log.bind(
|
||||
console,
|
||||
"%cWelcome To Nebula!",
|
||||
"background: #3F51B5;color:#FFF;padding:5px;border-radius: 5px;line-height: 26px; font-size:24px;"
|
||||
)
|
||||
);
|
||||
setTimeout(
|
||||
console.log.bind(
|
||||
console,
|
||||
"%cIf you are seeing this, Nebula's main script has succesfully loaded!",
|
||||
"background: green;color:#FFF;padding:5px;border-radius: 5px;line-height: 26px; font-size:16px;"
|
||||
)
|
||||
);
|
||||
setTimeout(
|
||||
console.log.bind(
|
||||
console,
|
||||
"%cIf you encounter an error, contact our support team on discord. Copy and paste the information below and send it in the ticket",
|
||||
"background: red;color:#FFF;padding:5px;border-radius: 5px;line-height: 26px; font-size:12px;"
|
||||
)
|
||||
);
|
||||
let online = navigator.onLine;
|
||||
let userAgent = navigator.userAgent;
|
||||
let browserName;
|
||||
let diagnosticDomain = window.location.href;
|
||||
if (userAgent.match(/chrome|chromium|crios/i)) {
|
||||
browserName = "Chrome";
|
||||
} else if (userAgent.match(/firefox|fxios/i)) {
|
||||
browserName = "Firefox";
|
||||
} else if (userAgent.match(/safari/i)) {
|
||||
browserName = "Safari";
|
||||
} else if (userAgent.match(/opr\//i)) {
|
||||
browserName = "Opera";
|
||||
} else if (userAgent.match(/edg/i)) {
|
||||
browserName = "Edge";
|
||||
} else {
|
||||
browserName = "Browser not detected!";
|
||||
}
|
||||
setTimeout(
|
||||
console.log.bind(
|
||||
console,
|
||||
`%c Information: \n Online: ${online} \n URL: ${diagnosticDomain} \n Browser: ${browserName} \n UA: ${userAgent}`,
|
||||
"background: gray;color:#FFF;padding:5px;line-height: 26px; font-size:14px;"
|
||||
)
|
||||
)
|
||||
|
||||
}
|
||||
log();
|
||||
|
||||
// Adjectives and surnames for a more advanced stealth engine.
|
||||
// Used together to generate random names for the tab name
|
||||
let adjectives;
|
||||
let surnames;
|
||||
|
||||
async function surnameAdjectivesData() {
|
||||
await fetch("/resources/adjectives_surnames.json")
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
adjectives = data.adjectives;
|
||||
surnames = data.surnames;
|
||||
});
|
||||
}
|
||||
surnameAdjectivesData();
|
||||
|
||||
// Random number generator
|
||||
// Dependency of getRandomName function
|
||||
function getRandomNumber(min, max) {
|
||||
return Math.floor(Math.random() * (max - min) + min);
|
||||
}
|
||||
|
||||
// Random name generator
|
||||
function getRandomName() {
|
||||
const random1 = getRandomNumber(0, adjectives.length);
|
||||
const random2 = getRandomNumber(0, surnames.length);
|
||||
const adjective = adjectives[random1];
|
||||
const surname = surnames[random2];
|
||||
// Connect the adjective and surname together to create a random name
|
||||
const randomName = adjective + "-" + surname;
|
||||
return randomName;
|
||||
}
|
||||
|
||||
// Clickoff cloaking
|
||||
// This is used to cloak the tab when it is not active
|
||||
function handleTabLeave() {
|
||||
var link = document.querySelector("link[rel~='icon']");
|
||||
if (localStorage.getItem("ADVcloak") == "on") {
|
||||
if (document.title == "Nebula") {
|
||||
if (!link) {
|
||||
link = document.createElement("link");
|
||||
link.rel = "icon";
|
||||
document.getElementsByTagName("head")[0].appendChild(link);
|
||||
}
|
||||
link.href = "https://www.google.com/favicon.ico";
|
||||
document.title = "Google";
|
||||
} else if (document.title == "Google") {
|
||||
document.title = "Nebula";
|
||||
if (!link) {
|
||||
link = document.createElement("link");
|
||||
link.rel = "icon";
|
||||
document.getElementsByTagName("head")[0].appendChild(link);
|
||||
}
|
||||
link.href =
|
||||
"https://camo.githubusercontent.com/b565ae2e136e0ac6023e7099288a62382de7c2b8cdce86a8b90449b86649434c/68747470733a2f2f6e6562756c6170726f78792e6e6562756c612e62696f2f696d616765732f6c6f676f2e706e67";
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Create and Add the event listener
|
||||
document.addEventListener("visibilitychange", handleTabLeave);
|
||||
|
||||
const stealthStored = localStorage.getItem("nogg");
|
||||
function link(_link) {
|
||||
if (stealthStored == "on") {
|
||||
let inFrame;
|
||||
try {
|
||||
inFrame = window !== top;
|
||||
} catch (e) {
|
||||
inFrame = true;
|
||||
}
|
||||
setTimeout(() => {
|
||||
if (!inFrame && !navigator.userAgent.includes("Firefox")) {
|
||||
const popup = open("about:blank", "_blank");
|
||||
if (!popup || popup.closed) {
|
||||
alert("Popups are disabled!");
|
||||
} else {
|
||||
const doc = popup.document;
|
||||
const iframe = doc.createElement("iframe");
|
||||
const style = iframe.style;
|
||||
const img = doc.createElement("link");
|
||||
img.rel = "icon";
|
||||
img.href =
|
||||
"https://ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png";
|
||||
doc.title = getRandomName();
|
||||
var currentLink = _link.slice(0, _link.length - 1);
|
||||
iframe.src =
|
||||
location.origin +
|
||||
"/service/go/" +
|
||||
__uv$config.encodeUrl(currentLink);
|
||||
style.position = "fixed";
|
||||
style.top = style.bottom = style.left = style.right = 0;
|
||||
style.border = style.outline = "none";
|
||||
style.width = style.height = "100%";
|
||||
doc.body.appendChild(iframe);
|
||||
}
|
||||
}
|
||||
}, 200);
|
||||
} else {
|
||||
location.href =
|
||||
"service/go/" + __uv$config.encodeUrl("https://radon.games/");
|
||||
}
|
||||
}
|
|
@ -1,124 +0,0 @@
|
|||
// OPTIONS
|
||||
|
||||
const storedSetTheme = localStorage.getItem("theme");
|
||||
|
||||
function switchProxy() {
|
||||
var selecter = document.getElementById("proxySwitcher");
|
||||
var selectedOption = selecter.value;
|
||||
|
||||
localStorage.setItem("proxy", selectedOption);
|
||||
var storedChoice = localStorage.getItem("proxy");
|
||||
}
|
||||
|
||||
function setDefaultsIfUndefined() {
|
||||
if (localStorage.ADVcloak == undefined) localStorage.setItem("ADVcloak", "off")
|
||||
if (localStorage.nogg == undefined) localStorage.setItem("nogg", "off")
|
||||
if (localStorage.ABtitle == undefined) localStorage.setItem("ABtitle", "")
|
||||
if (localStorage.ABfaviconURL == undefined) localStorage.setItem("ABfaviconURL", "")
|
||||
if (localStorage.theme == undefined) localStorage.setItem("theme", "dark")
|
||||
if (localStorage.proxy == undefined) localStorage.setItem("proxy", "uv")
|
||||
}
|
||||
setDefaultsIfUndefined();
|
||||
|
||||
function resetViews() {
|
||||
changeCSS("--background-primary", "#191724", true);
|
||||
changeCSS("--navbar-color", "#26233a", true);
|
||||
changeCSS("--navbar-height", "60px", true);
|
||||
changeCSS("--navbar-text-color", "rgb(121 103 221)", true);
|
||||
changeCSS("--navbar-link-color", "#e0def4", true);
|
||||
changeCSS("--navbar-font", '"Roboto"', true);
|
||||
changeCSS("--input-text-color", "#e0def4", true);
|
||||
changeCSS("--input-placeholder-color", "#6e6a86", true);
|
||||
changeCSS("--input-background-color", "#1f1d2e", true);
|
||||
changeCSS("--input-placeholder-color", "white", true);
|
||||
changeCSS("--input-border-color", "#eb6f92", true);
|
||||
changeCSS("--input-border-size", "1.3px", true);
|
||||
return "All views reset";
|
||||
}
|
||||
function saveIc() {
|
||||
var notification = `
|
||||
<div class="notification-container" id="notification-container">
|
||||
<div class="notification notification-success">
|
||||
<strong>Success!</strong> Your settings have been saved!
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
document.getElementById("notifhere").innerHTML = notification;
|
||||
setTimeout(() => {
|
||||
var NotificationOBJ = document.getElementById("notifhere");
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
function unsavedChanges() {
|
||||
var notification = `
|
||||
<div class="notification-container" id="notification-container">
|
||||
<div class="notification notification-danger" id="notification-container">
|
||||
<strong>Danger!</strong> You have unsaved changes!
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
document.getElementById("notifhere").innerHTML = notification;
|
||||
setTimeout(() => {
|
||||
var NotificationOBJ = document.getElementById("notifhere");
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
var option = localStorage.getItem("nogg");
|
||||
|
||||
function toggleNoGG() {
|
||||
if (option === "on") {
|
||||
option = "off";
|
||||
localStorage.setItem("nogg", "off");
|
||||
} else {
|
||||
option = "on";
|
||||
localStorage.setItem("nogg", "on");
|
||||
}
|
||||
}
|
||||
var option2 = localStorage.ADVcloak;
|
||||
function toggleClickoff() {
|
||||
if (option2 == undefined) return console.error("ADVcloak key unset!")
|
||||
if (option2 === "on") {
|
||||
option2 = "off";
|
||||
localStorage.setItem("ADVcloak", "off");
|
||||
} else {
|
||||
option2 = "on";
|
||||
localStorage.setItem("ADVcloak", "on");
|
||||
}
|
||||
}
|
||||
|
||||
function toggleSetting(localStorageKey, value) {
|
||||
localStorage.setItem(localStorageKey, value);
|
||||
}
|
||||
|
||||
window.onload = function () {
|
||||
if (localStorage.getItem("ABfaviconURL") === null) {
|
||||
} else if (localStorage.getItem("ABfaviconURL") == "") {
|
||||
} else {
|
||||
document.querySelector("#faviconInput").value =
|
||||
localStorage.getItem("ABfaviconURL");
|
||||
}
|
||||
if (localStorage.getItem("ABtitle") === null) {
|
||||
} else if (localStorage.getItem("ABtitle") == "") {
|
||||
} else {
|
||||
document.querySelector("#titleInput").value =
|
||||
localStorage.getItem("ABtitle");
|
||||
}
|
||||
};
|
||||
|
||||
function saveAbInfo() {
|
||||
var faviconURL = document.getElementById("faviconInput").value;
|
||||
var title = document.getElementById("titleInput").value;
|
||||
localStorage.setItem("ABfaviconURL", faviconURL);
|
||||
localStorage.setItem("ABtitle", title);
|
||||
var notification = `
|
||||
<div class="notification-container" id="notification-container">
|
||||
<div class="notification notification-success">
|
||||
<strong>Success!</strong> Your settings have been saved!
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
document.getElementById("notifhere").innerHTML = notification;
|
||||
setTimeout(() => {
|
||||
var NotificationOBJ = document.getElementById("notifhere");
|
||||
}, 2000);
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
window.onload = function () {
|
||||
changeCSS(
|
||||
"--background-primary",
|
||||
localStorage.getItem("--background-primary")
|
||||
);
|
||||
changeCSS("--navbar-color", localStorage.getItem("--navbar-color"));
|
||||
changeCSS("--navbar-height", localStorage.getItem("--navbar-height"));
|
||||
changeCSS("--navbar-text-color", localStorage.getItem("--navbar-text-color"));
|
||||
changeCSS("--input-text-color", localStorage.getItem("--input-text-color"));
|
||||
changeCSS(
|
||||
"--input-placeholder-color",
|
||||
localStorage.getItem("--input-placeholder-color")
|
||||
);
|
||||
changeCSS(
|
||||
"--input-background-color",
|
||||
localStorage.getItem("--input-background-color")
|
||||
);
|
||||
changeCSS(
|
||||
"--input-border-color",
|
||||
localStorage.getItem("--input-border-color")
|
||||
);
|
||||
changeCSS("--input-border-size", localStorage.getItem("--input-border-size"));
|
||||
changeCSS("--navbar-link-color", localStorage.getItem("--navbar-link-color"));
|
||||
changeCSS("--navbar-font", localStorage.getItem("--navbar-font"));
|
||||
changeCSS(
|
||||
"--navbar-logo-filter",
|
||||
localStorage.getItem("--navbar-logo-filter")
|
||||
);
|
||||
changeCSS(
|
||||
"--text-color-primary",
|
||||
localStorage.getItem("--text-color-primary")
|
||||
);
|
||||
};
|
|
@ -1,103 +0,0 @@
|
|||
// Stealth engine, a dependency for everything above.
|
||||
|
||||
// ensures that the js file is loaded
|
||||
window.stealthEngineLoaded = true;
|
||||
function stealthEngine(encodedURL) {
|
||||
// Remember that the EncodedURL argument must be pre-encoded, or encoded before the function is called.
|
||||
// This function does not encode the argument at all!
|
||||
|
||||
// Initialize the variable
|
||||
let inFrame;
|
||||
// make sure there isn't a window open already
|
||||
try {
|
||||
inFrame = window !== top;
|
||||
} catch (e) {
|
||||
inFrame = true;
|
||||
}
|
||||
setTimeout(() => {
|
||||
// Basically, a checklist to make sure that an error won't occur.
|
||||
// In this if statement, we're checking if an iframe is already being opened, if popups are disabled, and if the user agent IS NOT firefox (firefox sucks, sorry Moz)
|
||||
if (!inFrame && !navigator.userAgent.includes("Firefox")) {
|
||||
const popup = open("about:blank", "_blank");
|
||||
if (!popup || popup.closed) {
|
||||
alert(
|
||||
"StealthEngine was unable to open a popup. (do you have popups disabled?)"
|
||||
);
|
||||
} else {
|
||||
const doc = popup.document;
|
||||
const iframe = doc.createElement("iframe");
|
||||
const style = iframe.style;
|
||||
popup.onload = () => {
|
||||
document.getElementById("lpoader").style.display = "none";
|
||||
document.getElementById("connectorText").textContent =
|
||||
"connecting to service";
|
||||
setTimeout(() => {
|
||||
document.getElementById("connectorText").textContent =
|
||||
"connecting to service";
|
||||
}, 17500);
|
||||
};
|
||||
var isClosed = setInterval(function () {
|
||||
if (popup.closed) {
|
||||
clearInterval(isClosed);
|
||||
document.getElementById("lpoader").style.display = "none";
|
||||
document.getElementById("connectorText").textContent =
|
||||
"connecting to service";
|
||||
}
|
||||
}, 1000);
|
||||
// Favicon attachment
|
||||
const img = doc.createElement("link");
|
||||
const arcSrc = doc.createElement("script");
|
||||
// We attach ARC because it supports us, keeping our arc link there would be greatly appreciated :)
|
||||
arcSrc.setAttribute("src", "https://arc.io/widget.min.js#BgaWcYfi");
|
||||
arcSrc.setAttribute("async", "");
|
||||
doc.head.appendChild(arcSrc);
|
||||
const link = location.href;
|
||||
img.rel = "icon";
|
||||
img.href =
|
||||
ABFavicon ||
|
||||
"https://ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png";
|
||||
if (localStorage.nogg == "on") {
|
||||
doc.title = ABTitle || getRandomName();
|
||||
} else {
|
||||
doc.title = ABTitle || "Nebula";
|
||||
}
|
||||
|
||||
var currentLink = link.slice(0, link.length - 1);
|
||||
|
||||
iframe.src = currentLink + encodedURL;
|
||||
|
||||
style.position = "fixed";
|
||||
style.top = style.bottom = style.left = style.right = 0;
|
||||
style.border = style.outline = "none";
|
||||
style.width = style.height = "100%";
|
||||
|
||||
doc.body.appendChild(iframe);
|
||||
doc.head.appendChild(img);
|
||||
}
|
||||
}
|
||||
}, 1500);
|
||||
}
|
||||
|
||||
let tryAbFavi = localStorage.getItem("ABfaviconURL");
|
||||
let ABFavicon = "";
|
||||
if (tryAbFavi === null) {
|
||||
console.warn("ABfaviconURL is null, Defaulting");
|
||||
ABFavicon = "";
|
||||
} else if (tryAbFavi == "") {
|
||||
console.warn("ABfaviconURL is empty, Defaulting");
|
||||
ABFavicon = "";
|
||||
} else {
|
||||
ABFavicon = tryAbFavi;
|
||||
}
|
||||
|
||||
let tryAbTitle = localStorage.getItem("ABtitle");
|
||||
let ABTitle = "";
|
||||
if (tryAbTitle === null) {
|
||||
console.warn("ABtitle is null, Defaulting");
|
||||
ABTitle = "";
|
||||
} else if (tryAbTitle == "") {
|
||||
console.warn("ABtitle is empty, Defaulting");
|
||||
ABTitle = "";
|
||||
} else {
|
||||
ABTitle = tryAbTitle;
|
||||
}
|
|
@ -1,189 +0,0 @@
|
|||
const THEME_OPTIONS = {
|
||||
dark: {
|
||||
"--background-primary": "#191724",
|
||||
"--navbar-color": "#26233a",
|
||||
"--navbar-height": "60px",
|
||||
"--navbar-text-color": "#7967dd",
|
||||
"--input-text-color": "#e0def4",
|
||||
"--input-placeholder-color": "#6e6a86",
|
||||
"--input-background-color": "#1f1d2e",
|
||||
"--input-placeholder-color": "white",
|
||||
"--input-border-color": "#eb6f92",
|
||||
"--input-border-size": "1.3px",
|
||||
"--navbar-link-color": "#e0def4",
|
||||
"--navbar-font": '"Roboto"',
|
||||
"--navbar-logo-filter": "invert(0%)",
|
||||
"--text-color-primary": "#e0def4"
|
||||
},
|
||||
light: {
|
||||
"--background-primary": "#d8d8d8",
|
||||
"--navbar-color": "#a2a2a2",
|
||||
"--navbar-height": "4em",
|
||||
"--navbar-text-color": "#000000",
|
||||
"--input-text-color": "#e0def4",
|
||||
"--input-placeholder-color": "white",
|
||||
"--input-background-color": "black",
|
||||
"--input-border-color": "#eb6f92",
|
||||
"--input-border-size": "1.3px",
|
||||
"--navbar-link-color": "#000000",
|
||||
"--navbar-font": '"Roboto"',
|
||||
"--navbar-logo-filter": "invert(30%)",
|
||||
"--text-color-primary": "#303030"
|
||||
},
|
||||
suit: {
|
||||
"--background-primary": "#0c0c0c",
|
||||
"--navbar-color": "#ff2e4e",
|
||||
"--navbar-height": "4em",
|
||||
"--navbar-text-color": "#000000",
|
||||
"--input-text-color": "#e0def4",
|
||||
"--input-placeholder-color": "white",
|
||||
"--input-background-color": "#00000000",
|
||||
"--input-border-color": "#ff346e",
|
||||
"--input-border-size": "1.3px",
|
||||
"--navbar-link-color": "#000000",
|
||||
"--navbar-font": '"Roboto"',
|
||||
"--navbar-logo-filter": "brightness(30)",
|
||||
"--text-color-primary": "#00000"
|
||||
},
|
||||
metallic: {
|
||||
"--background-primary": "#171717",
|
||||
"--navbar-color": "#004953",
|
||||
"--navbar-height": "4em",
|
||||
"--navbar-text-color": "#ffffff",
|
||||
"--input-text-color": "#e0def4",
|
||||
"--input-placeholder-color": "white",
|
||||
"--input-background-color": "#004953",
|
||||
"--input-border-color": "#000000",
|
||||
"--input-border-size": "1.3px",
|
||||
"--navbar-link-color": "#e0def4",
|
||||
"--navbar-font": '"Roboto"',
|
||||
"--navbar-logo-filter": "invert(50%)",
|
||||
"--text-color-primary": "#e0def4"
|
||||
},
|
||||
dante: {
|
||||
"--background-primary": "#131313",
|
||||
"--navbar-color": "#e4ff8b",
|
||||
"--navbar-height": "3.5em",
|
||||
"--navbar-text-color": "#000000",
|
||||
"--input-text-color": "#000000",
|
||||
"--input-placeholder-color": "000000",
|
||||
"--input-background-color": "#e4ff8b",
|
||||
"--input-border-color": "#00000000",
|
||||
"--input-border-size": "1.3px",
|
||||
"--navbar-link-color": "#000000",
|
||||
"--navbar-font": '"Roboto"',
|
||||
"--navbar-logo-filter": "brightness(0%)",
|
||||
"--text-color-primary": "#000"
|
||||
}
|
||||
};
|
||||
|
||||
function changeCSS(property, value, isRoot = false) {
|
||||
const root = document.documentElement;
|
||||
isRoot
|
||||
? root.style.setProperty(property, value)
|
||||
: root.style.setProperty(property, value, "important");
|
||||
}
|
||||
|
||||
function saveCSS(variable, value) {
|
||||
localStorage.setItem(variable, value);
|
||||
}
|
||||
function applyTheme(theme) {
|
||||
Object.entries(theme).forEach(([property, value]) => {
|
||||
changeCSS(property, value);
|
||||
localStorage.setItem(property, value);
|
||||
});
|
||||
}
|
||||
|
||||
function switchTheme() {
|
||||
const selecter = document.getElementById("themeSwitcher");
|
||||
const selectedOption = selecter.value;
|
||||
console.log(selectedOption);
|
||||
const theme = THEME_OPTIONS[selectedOption];
|
||||
|
||||
if (!theme) {
|
||||
return;
|
||||
}
|
||||
|
||||
applyTheme(theme);
|
||||
localStorage.setItem("theme", selectedOption);
|
||||
|
||||
if (selectedOption == "custom") {
|
||||
let startCustom = prompt(
|
||||
"Would you like to have an interactive setup? Y/N",
|
||||
""
|
||||
);
|
||||
if (startCustom == "Y" || startCustom == "y") {
|
||||
alert(
|
||||
"Welcome to the interactive setup. Please enter the following values. If you don't know what to enter, just press enter. They will default to Dark Mode."
|
||||
);
|
||||
let background = prompt(
|
||||
"Background color || Possible Types: Keywords, RGB, RBBA, HSL, HSLA, Hexadecimal. || Default Value: #191724",
|
||||
""
|
||||
);
|
||||
let navbar = prompt(
|
||||
"Navbar color || Possible Types: Keywords, RGB, RBBA, HSL, HSLA, Hexadecimal. || Default Value: #26233a",
|
||||
""
|
||||
);
|
||||
let navbarHeight = prompt(
|
||||
"Navbar height || Possible Types: ABSOLUTE: cm, mm, Q, in, pc, pt, px RELATIVE: em, ex, ch, rem, lh, rlh, vw, vh, vb, vi || Default Value: 60px",
|
||||
""
|
||||
);
|
||||
let navbarText = prompt(
|
||||
"Navbar text color || Possible Types: Keywords, RGB, RBBA, HSL, HSLA, Hexadecimal. || Default Value: #7967dd",
|
||||
""
|
||||
);
|
||||
let inputText = prompt(
|
||||
"Input text color || Possible Types: Keywords, RGB, RBBA, HSL, HSLA, Hexadecimal. || Default Value: #e0def4",
|
||||
""
|
||||
);
|
||||
let inputPlaceholder = prompt(
|
||||
"Input placeholder color || Possible Types: Keywords, RGB, RBBA, HSL, HSLA, Hexadecimal. || Default Value: #6e6a86",
|
||||
""
|
||||
);
|
||||
let inputBackground = prompt(
|
||||
"Input background color || Possible Types: Keywords, RGB, RBBA, HSL, HSLA, Hexadecimal. || Default Value: #1f1d2e",
|
||||
""
|
||||
);
|
||||
let inputBorder = prompt(
|
||||
"Input border color || Possible Types: Keywords, RGB, RBBA, HSL, HSLA, Hexadecimal. || Default Value: #eb6f92",
|
||||
""
|
||||
);
|
||||
let inputBorderSize = prompt(
|
||||
"Input border size || Possible Types: ABSOLUTE: cm, mm, Q, in, pc, pt, px RELATIVE: em, ex, ch, rem, lh, rlh, vw, vh, vb, vi || Default Value: 1.3px",
|
||||
""
|
||||
);
|
||||
let navbarFont = prompt(
|
||||
'Navbar font || Enter a default font name, custom ones will likely not work. || Default Value: "Roboto"',
|
||||
""
|
||||
);
|
||||
let navbarLink = prompt(
|
||||
"Navbar link color || Possible Types: Keywords, RGB, RBBA, HSL, HSLA, Hexadecimal. || Default Value: #e0def4",
|
||||
""
|
||||
);
|
||||
let navbarLogoFilter = prompt(
|
||||
"Navbar logo filter || Adjust the NavBar-Logo-Filter. || Default Value: invert(0%)",
|
||||
""
|
||||
);
|
||||
let textColorPrimary = prompt(
|
||||
"Text color primary || Possible Types: Keywords, RGB, RBBA, HSL, HSLA, Hexadecimal. || Default Value: #e0def4",
|
||||
""
|
||||
);
|
||||
localStorage.setItem("theme", "custom");
|
||||
changeCSS("--background-primary", background, true);
|
||||
changeCSS("--navbar-color", navbar, true);
|
||||
changeCSS("--navbar-height", navbarHeight, true);
|
||||
changeCSS("--navbar-text-color", navbarText, true);
|
||||
changeCSS("--input-text-color", inputText, true);
|
||||
changeCSS("--input-placeholder-color", inputPlaceholder, true);
|
||||
changeCSS("--input-background-color", inputBackground, true);
|
||||
changeCSS("--input-border-color", inputBorder, true);
|
||||
changeCSS("--input-border-size", inputBorderSize, true);
|
||||
changeCSS("--navbar-link-color", navbarLink, true);
|
||||
changeCSS("--navbar-font", navbarFont, true);
|
||||
changeCSS("--navbar-logo-filter", navbarLogoFilter, true);
|
||||
changeCSS("--text-color-primary", textColorPrimary, true);
|
||||
} else {
|
||||
alert("Non-Interactive Setup Not supported yet.");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
const generateOTP = document.getElementById("generate-otp");
|
||||
|
||||
generateOTP.onclick = () => {
|
||||
fetch("/generate-otp", { method: "PATCH" });
|
||||
};
|
||||
|
||||
const validateOTP = document.getElementById("validate-otp");
|
||||
|
||||
validateOTP.onclick = () => {
|
||||
fetch("/validate-otp", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"content-type": "application/json"
|
||||
},
|
||||
body: JSON.stringify({
|
||||
otp: document.getElementById("otp").value
|
||||
})
|
||||
})
|
||||
.then((response) => {
|
||||
return response.json();
|
||||
})
|
||||
.then((data) => {
|
||||
if (data.success) {
|
||||
setCookie("validation", data.validation, 30);
|
||||
location.href = "/";
|
||||
} else {
|
||||
alert("Invalid OTP.");
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
alert("An error occurred while validating your OTP.");
|
||||
});
|
||||
};
|
||||
|
||||
function setCookie(name, value, days) {
|
||||
var expires = "";
|
||||
if (days) {
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
||||
expires = "; expires=" + date.toUTCString();
|
||||
}
|
||||
document.cookie = name + "=" + (value || "") + expires + "; path=/";
|
||||
}
|
|
@ -1,500 +0,0 @@
|
|||
@import url("https://fonts.googleapis.com/css2?family=Dongle&family=Roboto:wght@100&display=swap");
|
||||
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@1,100&display=swap");
|
||||
|
||||
:root {
|
||||
--background-primary: #191724;
|
||||
--navbar-color: #26233a;
|
||||
--navbar-height: 60px;
|
||||
--navbar-text-color: #7967dd;
|
||||
--navbar-link-color: #e0def4;
|
||||
--navbar-font: "Roboto";
|
||||
--input-text-color: #e0def4;
|
||||
--input-placeholder-color: white;
|
||||
--input-background-color: #1f1d2e;
|
||||
--input-border-color: #eb6f92;
|
||||
--input-border-size: 1.3px;
|
||||
--navbar-logo-filter: none;
|
||||
}
|
||||
|
||||
::-webkit-input-placeholder {
|
||||
text-align: center;
|
||||
font-family: "Roboto";
|
||||
}
|
||||
|
||||
:-moz-placeholder {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#navbar {
|
||||
height: var(--navbar-height);
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: var(--navbar-color);
|
||||
}
|
||||
|
||||
.sidenav-btn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidenav {
|
||||
height: 100%;
|
||||
width: 0;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: #232133;
|
||||
padding-top: 60px;
|
||||
-webkit-transition: 0.5s;
|
||||
transition: 0.5s;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sidenav a {
|
||||
padding: 8px 16px 16px 32px;
|
||||
text-decoration: none;
|
||||
width: 100vw;
|
||||
font-size: 24px;
|
||||
color: #cfcfcf;
|
||||
display: block;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.sidenav .closebtn {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 25px;
|
||||
font-size: 36px;
|
||||
margin-left: 50px;
|
||||
z-index: 2;
|
||||
left: 140px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 690px) {
|
||||
/* funny number */
|
||||
|
||||
#navbar > ul > li {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidenav-btn {
|
||||
display: flex;
|
||||
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
left: 90vw;
|
||||
width: var(--navbar-height);
|
||||
height: var(--navbar-height);
|
||||
}
|
||||
|
||||
.sidenav-btn > svg {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
#digitalCLOContainerLI {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#navbar > ul > li > a > svg {
|
||||
min-width: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--navbar-link-color);
|
||||
text-decoration: none !important;
|
||||
font-family: "Roboto";
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: grey;
|
||||
transition: 0.5s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.down {
|
||||
background-color: rgb(90, 24, 154);
|
||||
left: inherit !important;
|
||||
font-family: "Helvetica";
|
||||
background-color: var(--navbar-color);
|
||||
/* box-shadow: 2px 2px rgb(0 0 0 / 20%); */
|
||||
color: white;
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
list-style-type: none;
|
||||
position: fixed;
|
||||
border-bottom-right-radius: 10px;
|
||||
border-bottom-left-radius: 10px;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#navbar ul:not(.down) {
|
||||
font-family: "Helvetica";
|
||||
/* box-shadow: 2px 2px rgb(0 0 0 / 20%); */
|
||||
color: white;
|
||||
margin-left: auto;
|
||||
list-style-type: none;
|
||||
float: right !important;
|
||||
margin-right: 2.3%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#navbar ul li {
|
||||
float: left;
|
||||
padding-top: 1em;
|
||||
padding-bottom: 1em;
|
||||
padding-right: 1em;
|
||||
padding-left: 1em;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
::placeholder,
|
||||
input[type="text"] {
|
||||
color: var(--input-placeholder-color);
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
font-family: "Roboto";
|
||||
}
|
||||
|
||||
#navbar ul p,
|
||||
ul a {
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
*/
|
||||
/*
|
||||
#navbar ul li p, ul li a {
|
||||
font-weight: normal;
|
||||
}
|
||||
*/
|
||||
|
||||
#navbar ul li ul {
|
||||
border-bottom-right-radius: 10px;
|
||||
border-bottom-left-radius: 10px;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
margin-top: 1rem;
|
||||
left: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#navbar ul li:hover ul,
|
||||
ul li ul:hover {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#navbar ul li p {
|
||||
color: white;
|
||||
font-family: "Calibri";
|
||||
z-index: 3 !important;
|
||||
}
|
||||
|
||||
#navbar ul li ul li {
|
||||
clear: both;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#content {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 98%;
|
||||
color: white;
|
||||
flex-direction: column;
|
||||
font-family: "Roboto";
|
||||
}
|
||||
|
||||
#content h1 {
|
||||
padding-bottom: 0.5em;
|
||||
font-weight: 100;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#content img {
|
||||
padding-left: 0.5em;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
|
||||
#content input {
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
font-family: "Calibri";
|
||||
border-style: solid !important;
|
||||
border: var(--input-border-size) solid var(--input-border-color);
|
||||
border-width: 1px;
|
||||
border-radius: 15px;
|
||||
background-color: var(--input-background-color);
|
||||
color: var(--input-text-color);
|
||||
width: 300px;
|
||||
height: 50px;
|
||||
box-shadow: none !important;
|
||||
outline: none;
|
||||
text-align: center;
|
||||
font-family: "Roboto";
|
||||
}
|
||||
|
||||
#content input:focus {
|
||||
outline: none;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
@keyframes inputwide {
|
||||
0% {
|
||||
width: 0px;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
100% {
|
||||
width: 300px;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
}
|
||||
|
||||
.loader {
|
||||
width: 283px;
|
||||
text-align: center;
|
||||
display: none;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
transition: 0.1s;
|
||||
}
|
||||
|
||||
svg path,
|
||||
svg rect {
|
||||
fill: #eb6f92;
|
||||
}
|
||||
|
||||
.connector {
|
||||
color: white;
|
||||
margin-left: 10px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
@keyframes popout {
|
||||
0% {
|
||||
height: -20px;
|
||||
}
|
||||
|
||||
100% {
|
||||
height: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.nebHeader {
|
||||
font-family: var(--navbar-font);
|
||||
color: var(--navbar-text-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
align-content: center;
|
||||
flex-wrap: nowrap;
|
||||
flex-direction: row;
|
||||
margin-left: 0.5%;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--background-primary);
|
||||
color: var(--text-color-primary);
|
||||
animation: fadeInAnimation ease 1s;
|
||||
animation-iteration-count: 1;
|
||||
animation-fill-mode: forwards;
|
||||
}
|
||||
|
||||
@keyframes fadeInAnimation {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
input:focus::placeholder {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
#navbar #thumbImg {
|
||||
transition: width 2s, height 2s, transform 2s;
|
||||
filter: var(--navbar-logo-filter);
|
||||
}
|
||||
|
||||
#navbar #thumbImg:hover {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
|
||||
.stamp {
|
||||
text-align: right;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
font-family: "Montserrat", sans-serif;
|
||||
font-style: italic;
|
||||
font-weight: lighter;
|
||||
color: whitesmoke;
|
||||
opacity: 90%;
|
||||
user-select: none;
|
||||
font-size: 13px;
|
||||
padding-left: 5px;
|
||||
padding-bottom: 1px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.stamp:hover {
|
||||
text-align: right;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
font-family: "Montserrat", sans-serif;
|
||||
font-style: italic;
|
||||
font-weight: lighter;
|
||||
color: whitesmoke;
|
||||
opacity: 38%;
|
||||
user-select: none;
|
||||
font-size: 13px;
|
||||
padding-left: 5px;
|
||||
padding-bottom: 1px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.github {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.tos {
|
||||
position: fixed;
|
||||
right: 67px;
|
||||
bottom: 0;
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
.privacy {
|
||||
position: fixed;
|
||||
right: 114px;
|
||||
bottom: 0;
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
.modal-window {
|
||||
position: fixed;
|
||||
background-color: rgba(255, 255, 255, 0.25);
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 999;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: all 0.3s;
|
||||
font-family: "Montserrat", sans-serif;
|
||||
}
|
||||
|
||||
.modal-window:target {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.modal-window > div {
|
||||
width: 400px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
padding: 2em;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.modal-window header {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.modal-window h1 {
|
||||
font-size: 150%;
|
||||
margin: 0 0 15px;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
color: #aaa;
|
||||
line-height: 50px;
|
||||
font-size: 80%;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
top: 0;
|
||||
width: 70px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.modal-window > div {
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
.modal-window div:not(:last-of-type) {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
max-width: 150px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
small {
|
||||
color: lightgray;
|
||||
}
|
||||
|
||||
.btn {
|
||||
background-color: white;
|
||||
padding: 1em 1.5em;
|
||||
border-radius: 0.5rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.btn i {
|
||||
padding-right: 0.3em;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1190px) {
|
||||
#digitalClock {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.clockColon {
|
||||
opacity: 100%;
|
||||
|
||||
animation: blink 0.5s step-end infinite alternate;
|
||||
transition: 0.2s;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
50% {
|
||||
opacity: 0%;
|
||||
}
|
||||
}
|
|
@ -1,556 +0,0 @@
|
|||
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@300&display=swap");
|
||||
|
||||
:root {
|
||||
--background-primary: #191724;
|
||||
--sidebar-color: #191724;
|
||||
--sidebar-text-color: #e0def4;
|
||||
--text-color-primary: #e0def4;
|
||||
--text-color-secondary: #6e6a86;
|
||||
--focus-color: #eb6f92;
|
||||
--header-height: 10vh;
|
||||
--section-font-size: 20pt;
|
||||
--section-font: 'Calibri';
|
||||
--section-padding: 0.5em;
|
||||
--setting-distance-from-sidebar: 1em;
|
||||
--setting-distance-from-right: 1em;
|
||||
--setting-name-font: 'Calibri';
|
||||
--setting-desc-font: 'Calibri';
|
||||
}
|
||||
|
||||
* {
|
||||
user-select: none;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
body {
|
||||
background-color: var(--background-primary);
|
||||
}*/
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-content: center;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-evenly;
|
||||
align-items: flex-end;
|
||||
margin-top: 75px;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
animation: fadeIn 700ms ease-in 30ms forwards;
|
||||
-webkit-animation: fadeIn 700ms ease-in 300ms forwards;
|
||||
position: absolute;
|
||||
top: var(--header-height);
|
||||
left: 0;
|
||||
background-color: var(--sidebar-color);
|
||||
transition: width 0.5s;
|
||||
width: var(--sidebar-width);
|
||||
}
|
||||
|
||||
.setting li a {
|
||||
background-color: #2e2828;
|
||||
padding: 10px 16px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.settings-div li a ul {
|
||||
border-bottom-right-radius: 10px;
|
||||
border-bottom-left-radius: 10px;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
margin-top: 10px;
|
||||
left: 0 !important;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.settings-div li a:hover ul,
|
||||
ul li:hover {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
.settings-div ul li p{
|
||||
color: white;
|
||||
font-family: 'Calibri';
|
||||
z-index: 3 !important;
|
||||
|
||||
}*/
|
||||
|
||||
li {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.settings-div li a ul li {
|
||||
clear: both;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.section {
|
||||
background-color: transparent;
|
||||
color: var(--sidebar-text-color);
|
||||
font-size: var(--section-font-size);
|
||||
font-family: var(--section-font);
|
||||
width: 100%;
|
||||
transition: background-color 0.5s;
|
||||
padding-top: var(--section-padding);
|
||||
padding-bottom: var(--section-padding);
|
||||
}
|
||||
|
||||
.section:hover {
|
||||
background-color: #ffffff20;
|
||||
}
|
||||
|
||||
.settings-div {
|
||||
position: absolute;
|
||||
left: calc(var(--sidebar-width) + var(--setting-distance-from-sidebar));
|
||||
top: 0;
|
||||
width: calc(100vw - var(--sidebar-width) - var(--setting-distance-from-sidebar));
|
||||
padding-top: 5%;
|
||||
}
|
||||
|
||||
.setting-input {
|
||||
/* left: 100%; */
|
||||
color: black !important;
|
||||
position: relative;
|
||||
/* right: 0; */
|
||||
transform: translateY(-1.5em);
|
||||
float: right;
|
||||
margin-right: 5%;
|
||||
}
|
||||
|
||||
.setting-input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300&display=swap');
|
||||
|
||||
.toogle-button {
|
||||
font-weight: bold;
|
||||
font-size: 10PX;
|
||||
display: inline-block;
|
||||
width: 75px;
|
||||
height: 35px;
|
||||
background-color: #dfddf3;
|
||||
border-radius: 30px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.toogle-button::after {
|
||||
content: 'Off';
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: #E7E2CD;
|
||||
background-color: #e14343;
|
||||
border: 2px solid #E7E2CD;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 5px rgb(0 0 0 / 25%);
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
left: 0;
|
||||
line-height: 0;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
transition: all .5s;
|
||||
transform: 1s ease-in;
|
||||
font-family: 'Mulish', sans-serif;
|
||||
}
|
||||
|
||||
.setting-input:checked+.toogle-button::after {
|
||||
content: 'On';
|
||||
background-color: #53b357;
|
||||
transform: translateX(35px) rotate(360deg);
|
||||
}
|
||||
|
||||
ul li {
|
||||
float: left;
|
||||
padding-top: 1em;
|
||||
padding-bottom: 1em;
|
||||
padding-right: 1em;
|
||||
padding-left: 1em;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
transform: translateY(-30px);
|
||||
font-family: var(--setting-desc-font);
|
||||
color: white;
|
||||
}
|
||||
|
||||
@-webkit-keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0.01;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0.01;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');
|
||||
|
||||
.notification-container {
|
||||
position: fixed;
|
||||
top: 4px;
|
||||
right: 5px;
|
||||
width: 500px;
|
||||
max-width: calc(100% - 30px);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
.notification {
|
||||
background-color: #fff;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
padding: 15px 20px;
|
||||
line-height: 20px;
|
||||
margin-bottom: 15px;
|
||||
animation: grow 0.5s ease-in forwards;
|
||||
}
|
||||
|
||||
@keyframes grow {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
.notification.hide {
|
||||
animation: shrink 0.3s ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes shrink {
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
}
|
||||
|
||||
.notification strong {
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
letter-spacing: 0.5px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.notification-info {
|
||||
background-color: #00cae3;
|
||||
}
|
||||
|
||||
.notification-success {
|
||||
background-color: #3d3571;
|
||||
}
|
||||
|
||||
.notification-warning {
|
||||
background-color: #ff9e0f;
|
||||
}
|
||||
|
||||
.notification-danger {
|
||||
background-color: #f55145;
|
||||
}
|
||||
|
||||
.stamp {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.bk-btn {
|
||||
height: 52px;
|
||||
width: 52px;
|
||||
background-color: black;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.bk-btn .bk-btn-triangle {
|
||||
position: relative;
|
||||
top: 13px;
|
||||
left: 10.4px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 13px solid transparent;
|
||||
border-bottom: 13px solid transparent;
|
||||
border-right: 13px solid white;
|
||||
}
|
||||
|
||||
.bk-btn .bk-btn-bar {
|
||||
position: relative;
|
||||
background-color: white;
|
||||
height: 7.8px;
|
||||
width: 13px;
|
||||
top: -3.64px;
|
||||
left: 22.88px;
|
||||
}
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap');
|
||||
|
||||
.settings-cont {
|
||||
background: #45454521;
|
||||
box-sizing: border-box;
|
||||
width: 300px;
|
||||
height: 246px;
|
||||
padding: 30px;
|
||||
border: 2px solid rgb(0 0 0 / 64%);
|
||||
border-radius: 9px;
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.name {
|
||||
color: var(--text-color-primary);
|
||||
font-size: 27px;
|
||||
margin: 0;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
font-weight: 700;
|
||||
font-style: bold;
|
||||
}
|
||||
|
||||
.description {
|
||||
color: var(--text-color-secondary);
|
||||
margin: 0;
|
||||
font-size: 17px;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
font-weight: 300;
|
||||
/* font-style: Italic; */
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.secondary-desc {
|
||||
color: var(--text-color-primary);
|
||||
margin: 0;
|
||||
margin-top: 0.3em;
|
||||
font-size: 18px;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
font-weight: 300;
|
||||
/* font-style: Italic; */
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@700&display=swap');
|
||||
|
||||
.new-tag {
|
||||
font-size: 16px;
|
||||
color: rgb(226, 68, 68);
|
||||
font-family: 'Oxygen', sans-serif;
|
||||
}
|
||||
|
||||
.square {
|
||||
width: .7em;
|
||||
height: .7em;
|
||||
margin: .5em;
|
||||
}
|
||||
|
||||
|
||||
/* Custom dropdown */
|
||||
|
||||
.custom-dropdown {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 10px;
|
||||
/* demo only */
|
||||
}
|
||||
|
||||
.custom-dropdown select {
|
||||
background-color: rgb(121 103 221);
|
||||
color: var(--text-color-primary);
|
||||
font-size: inherit;
|
||||
padding: .5em;
|
||||
padding-right: 2.5em;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
border-radius: 3px;
|
||||
text-indent: 0.01px;
|
||||
text-overflow: '';
|
||||
-webkit-appearance: button;
|
||||
/* hide default arrow in chrome OSX */
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.custom-dropdown::before,
|
||||
.custom-dropdown::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.custom-dropdown::after {
|
||||
/* Custom dropdown arrow */
|
||||
content: "\25BC";
|
||||
height: 1em;
|
||||
font-size: .625em;
|
||||
line-height: 1;
|
||||
right: 1.2em;
|
||||
top: 50%;
|
||||
margin-top: -.5em;
|
||||
}
|
||||
|
||||
.custom-dropdown::before {
|
||||
/* Custom dropdown arrow cover */
|
||||
width: 2em;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
border-radius: 0 3px 3px 0;
|
||||
}
|
||||
|
||||
.custom-dropdown select[disabled] {
|
||||
color: rgba(0, 0, 0, .3);
|
||||
}
|
||||
|
||||
.custom-dropdown select[disabled]::after {
|
||||
color: rgba(0, 0, 0, .1);
|
||||
}
|
||||
|
||||
.custom-dropdown::before {
|
||||
background-color: rgba(0, 0, 0, .15);
|
||||
}
|
||||
|
||||
.custom-dropdown::after {
|
||||
color: rgba(0, 0, 0, .4);
|
||||
}
|
||||
|
||||
.button-save {
|
||||
background-color: #5e18eb;
|
||||
color: #fff;
|
||||
font-size: inherit;
|
||||
padding: 0.5em;
|
||||
padding-right: -0.5em;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
border-radius: 3px;
|
||||
text-indent: 0.01px;
|
||||
text-overflow: '';
|
||||
-webkit-appearance: button;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.button-save-alt {
|
||||
background-color: #5e18eb;
|
||||
color: #fff;
|
||||
font-size: inherit;
|
||||
padding: 0.3em;
|
||||
padding-right: -0.5em;
|
||||
border: 0;
|
||||
margin: 0.2vh;
|
||||
border-radius: 3px;
|
||||
text-indent: 0.01px;
|
||||
text-overflow: '';
|
||||
-webkit-appearance: button;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');
|
||||
|
||||
.expiramental {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 10px;
|
||||
color: rgb(184, 0, 0);
|
||||
font-weight: 400;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
input[type=checkbox] {
|
||||
height: 0;
|
||||
width: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
label {
|
||||
cursor: pointer;
|
||||
/* text-indent: -10049px; */
|
||||
width: 85px;
|
||||
height: 37px;
|
||||
background: #504e58;
|
||||
display: block;
|
||||
border-radius: 100px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
label:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
width: 35px;
|
||||
height: 28px;
|
||||
background: #3d3571;
|
||||
border-radius: 90px;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
input:checked+label {
|
||||
background: #7967dd;
|
||||
|
||||
}
|
||||
|
||||
input:checked+label:after {
|
||||
left: calc(100% - 5px);
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
label:active:after {
|
||||
width: 38px;
|
||||
}
|
||||
|
||||
.bareLocationInput {
|
||||
border-style: solid !important;
|
||||
border: var(--input-border-size) solid #5e18eb;
|
||||
border-width: 0px;
|
||||
border-radius: 6px;
|
||||
background-color: #191724;
|
||||
color: var(--input-text-color);
|
||||
width: auto;
|
||||
height: auto;
|
||||
box-shadow: none !important;
|
||||
outline: none;
|
||||
text-align: center;
|
||||
width: 220px;
|
||||
font-size: 16px;
|
||||
font-family: 'Roboto';
|
||||
height: 29px;
|
||||
transition: 0.06s;
|
||||
}
|
||||
|
||||
.bareLocationInput:hover {
|
||||
border: var(--input-border-size) solid #5e18eb;
|
||||
border-width: 1px;
|
||||
border-radius: 6px;
|
||||
|
||||
}
|
||||
|
||||
.bareValidSignal {
|
||||
margin-top: -13px;
|
||||
color: #f45145bd;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
font-weight: lighter;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
body {
|
||||
color: white;
|
||||
font-family: "Roboto";
|
||||
margin-left: 20px;
|
||||
}
|
14
public/sw.js
14
public/sw.js
|
@ -1,14 +0,0 @@
|
|||
importScripts("./uv/uv.bundle.js");
|
||||
importScripts("./uv/uv.config.js");
|
||||
importScripts("./uv/uv.sw.js");
|
||||
importScripts("./osana/osana.worker.js");
|
||||
|
||||
const UV = new UVServiceWorker();
|
||||
const Osana = new OsanaServiceWorker();
|
||||
|
||||
self.addEventListener("fetch", (event) => {
|
||||
if (event.request.url.startsWith(location.origin + "/service/go/"))
|
||||
event.respondWith(UV.fetch(event));
|
||||
if (event.request.url.startsWith(location.origin + "/service/~osana/"))
|
||||
event.respondWith(Osana.fetch(event));
|
||||
});
|
|
@ -1,10 +0,0 @@
|
|||
self.__uv$config = {
|
||||
prefix: "/service/go/",
|
||||
bare: "/bare/",
|
||||
encodeUrl: Ultraviolet.codec.xor.encode,
|
||||
decodeUrl: Ultraviolet.codec.xor.decode,
|
||||
handler: "/uv/uv.handler.js",
|
||||
bundle: "/uv/uv.bundle.js",
|
||||
config: "/uv/uv.config.js",
|
||||
sw: "/uv/uv.sw.js"
|
||||
};
|
1
public/vite.svg
Normal file
1
public/vite.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
After Width: | Height: | Size: 1.5 KiB |
1
src/assets/preact.svg
Normal file
1
src/assets/preact.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="27.68" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 296"><path fill="#673AB8" d="m128 0l128 73.9v147.8l-128 73.9L0 221.7V73.9z"></path><path fill="#FFF" d="M34.865 220.478c17.016 21.78 71.095 5.185 122.15-34.704c51.055-39.888 80.24-88.345 63.224-110.126c-17.017-21.78-71.095-5.184-122.15 34.704c-51.055 39.89-80.24 88.346-63.224 110.126Zm7.27-5.68c-5.644-7.222-3.178-21.402 7.573-39.253c11.322-18.797 30.541-39.548 54.06-57.923c23.52-18.375 48.303-32.004 69.281-38.442c19.922-6.113 34.277-5.075 39.92 2.148c5.644 7.223 3.178 21.403-7.573 39.254c-11.322 18.797-30.541 39.547-54.06 57.923c-23.52 18.375-48.304 32.004-69.281 38.441c-19.922 6.114-34.277 5.076-39.92-2.147Z"></path><path fill="#FFF" d="M220.239 220.478c17.017-21.78-12.169-70.237-63.224-110.126C105.96 70.464 51.88 53.868 34.865 75.648c-17.017 21.78 12.169 70.238 63.224 110.126c51.055 39.889 105.133 56.485 122.15 34.704Zm-7.27-5.68c-5.643 7.224-19.998 8.262-39.92 2.148c-20.978-6.437-45.761-20.066-69.28-38.441c-23.52-18.376-42.74-39.126-54.06-57.923c-10.752-17.851-13.218-32.03-7.575-39.254c5.644-7.223 19.999-8.261 39.92-2.148c20.978 6.438 45.762 20.067 69.281 38.442c23.52 18.375 42.739 39.126 54.06 57.923c10.752 17.85 13.218 32.03 7.574 39.254Z"></path><path fill="#FFF" d="M127.552 167.667c10.827 0 19.603-8.777 19.603-19.604c0-10.826-8.776-19.603-19.603-19.603c-10.827 0-19.604 8.777-19.604 19.603c0 10.827 8.777 19.604 19.604 19.604Z"></path></svg>
|
After Width: | Height: | Size: 1.6 KiB |
18
src/components/Header.tsx
Normal file
18
src/components/Header.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { useLocation } from 'preact-iso';
|
||||
|
||||
export function Header() {
|
||||
const { url } = useLocation();
|
||||
|
||||
return (
|
||||
<header>
|
||||
<nav>
|
||||
<a href="/" class={url == '/' && 'active'}>
|
||||
Home
|
||||
</a>
|
||||
<a href="/404" class={url == '/404' && 'active'}>
|
||||
404
|
||||
</a>
|
||||
</nav>
|
||||
</header>
|
||||
);
|
||||
}
|
374
src/index.html
374
src/index.html
|
@ -1,374 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title>Nebula</title>
|
||||
<link rel="icon" type="image/x-icon" href="/images/logo.png"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<!-- MetaData -->
|
||||
<meta name="title" content="NebulaWEB" />
|
||||
<meta
|
||||
name="description"
|
||||
content="NebulaWeb by Nebula Services. NebulaWeb is a stunning, sleek, and functional web-proxy/unblocker with support for thousands of popular sites. "
|
||||
/>
|
||||
<meta
|
||||
name="keywords"
|
||||
content="unblocked, dispenser, proxies, nebulaservices, nebula services, discord, web dev, unblocker, web unblocker, tutorial, proxy, free"
|
||||
/>
|
||||
<meta name="robots" content="index, nofollow" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="language" content="English" />
|
||||
<meta name="revisit-after" content="10 days" />
|
||||
<meta name="author" content="Nebula Services" />
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="resources/preload.js"></script>
|
||||
<script src="resources/theme.js"></script>
|
||||
<script src="resources/nebulamain.js"></script>
|
||||
<script src="resources/nebulaclock.js"></script>
|
||||
<script src="resources/stealthEngine.js"></script>
|
||||
<!-- Stylesheet -->
|
||||
<link rel="stylesheet" href="style/main.css" />
|
||||
<!-- Embed -->
|
||||
<meta name="theme-color" content="#eb6f92" />
|
||||
<meta property="og:title" content="Nebula" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:image" content="/images/logo.png"/>
|
||||
<meta property="og:description" content="Nebula Web" />
|
||||
</head>
|
||||
<body>
|
||||
<!-- Scripts -->
|
||||
<script src="uv/uv.bundle.js"></script>
|
||||
<script src="uv/uv.config.js"></script>
|
||||
<script src="osana/osana.bundle.js"></script>
|
||||
<script src="osana/osana.config.js"></script>
|
||||
<div id="leaving-nebula-to-external" class="modal-window">
|
||||
<div>
|
||||
<a href="#" title="Close" class="modal-close">Close</a>
|
||||
<h1 style="color: black">Heads up!</h1>
|
||||
<div style="color: black">You're leaving Nebula to SITE</div>
|
||||
<br />
|
||||
<div style="color: black">Go! Stay here</div>
|
||||
<div style="color: black"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="reset-all" class="modal-window">
|
||||
<div>
|
||||
<a href="#" title="Close" class="modal-close">Close</a>
|
||||
<h1 style="color: black">Heads up!</h1>
|
||||
<div style="color: black">
|
||||
You're about to reset all of your settings...
|
||||
</div>
|
||||
<br />
|
||||
<div style="color: black">Do it! Wait, No!</div>
|
||||
<div style="color: black"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="nebula-out-of-date" class="modal-window">
|
||||
<div>
|
||||
<a href="#" title="Close" class="modal-close">Close</a>
|
||||
<h1 style="color: black">Hold up!</h1>
|
||||
<div style="color: black">
|
||||
This deployment of Nebula Web is out of date with the current
|
||||
release... <br />
|
||||
</div>
|
||||
<br />
|
||||
</div>
|
||||
</div>
|
||||
<div id="navbar">
|
||||
<img
|
||||
alt="Nebula Logo"
|
||||
src="/images/logo.png"
|
||||
id="thumbImg"
|
||||
style="height: 62px; width: 62px; margin-left: 5%; border-radius: 5px"
|
||||
/>
|
||||
<h1 class="nebHeader">nebula.</h1>
|
||||
<ul>
|
||||
<li id="digitalCLOContainerLI">
|
||||
<h2
|
||||
id="digitalCLOContainer"
|
||||
style="
|
||||
user-select: none;
|
||||
cursor: default;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
color: white;
|
||||
font-weight: 100;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: -4px;
|
||||
"
|
||||
>
|
||||
<span
|
||||
id="digitalClock"
|
||||
style="
|
||||
user-select: none;
|
||||
cursor: default;
|
||||
opacity: 50%;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
color: white;
|
||||
"
|
||||
></span>
|
||||
</h2>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
id="gamesRadon"
|
||||
class="a-navbutton"
|
||||
onclick='link("https://radon.games/")'
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="w-6 h-6"
|
||||
style="width: 23px"
|
||||
>
|
||||
<path
|
||||
style="fill: #ffffff00"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"
|
||||
/>
|
||||
</svg>
|
||||
Games
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="a-navbutton" href="options">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="w-6 h-6"
|
||||
style="width: 23px"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M6 13.5V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 9.75V10.5"
|
||||
/>
|
||||
</svg>
|
||||
Settings <b style="color: red">NEW</b>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="a-navbutton" href="https://discord.gg/unblocker">
|
||||
<svg
|
||||
style="width: 23px"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="w-6 h-6"
|
||||
>
|
||||
<path
|
||||
style="fill: #ffffff00"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"
|
||||
/>
|
||||
</svg>
|
||||
Want More Links?
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<span class="sidenav-btn" id="sidenav-btn" onclick="openNav()">
|
||||
<svg
|
||||
class="menu-bar"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 448 512"
|
||||
>
|
||||
<!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
||||
<path
|
||||
d="M0 96C0 78.33 14.33 64 32 64H416C433.7 64 448 78.33 448 96C448 113.7 433.7 128 416 128H32C14.33 128 0 113.7 0 96zM0 256C0 238.3 14.33 224 32 224H416C433.7 224 448 238.3 448 256C448 273.7 433.7 288 416 288H32C14.33 288 0 273.7 0 256zM416 448H32C14.33 448 0 433.7 0 416C0 398.3 14.33 384 32 384H416C433.7 384 448 398.3 448 416C448 433.7 433.7 448 416 448z"
|
||||
></path>
|
||||
</svg>
|
||||
</span>
|
||||
<div id="sidenav" class="sidenav">
|
||||
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()"
|
||||
>×</a
|
||||
>
|
||||
<a href="" class="a-navbutton">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="w-6 h-6"
|
||||
style="width: 23px"
|
||||
>
|
||||
<path
|
||||
style="fill: #ffffff00"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"
|
||||
/>
|
||||
</svg>
|
||||
Games
|
||||
</a>
|
||||
<a class="a-navbutton" href="options">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="w-6 h-6"
|
||||
style="width: 23px"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M6 13.5V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 9.75V10.5"
|
||||
/>
|
||||
</svg>
|
||||
Settings
|
||||
</a>
|
||||
<a class="a-navbutton" href="https://discord.gg/unblocker">
|
||||
<svg
|
||||
style="width: 23px"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="w-6 h-6"
|
||||
>
|
||||
<path
|
||||
style="fill: #ffffff00"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"
|
||||
/>
|
||||
</svg>
|
||||
Want More Links?
|
||||
</a>
|
||||
</div>
|
||||
<div id="content">
|
||||
<form class="url" action="" method="POST" id="unblocker-form">
|
||||
<input
|
||||
class="omnibox"
|
||||
type="text"
|
||||
id="url"
|
||||
name="url"
|
||||
autocomplete="off"
|
||||
placeholder="Explore the web freely"
|
||||
/>
|
||||
</form>
|
||||
<div id="lpoader" class="loader loader--style8" title="7">
|
||||
<svg
|
||||
version="1.1"
|
||||
id="Layer_1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
x="0px"
|
||||
y="0px"
|
||||
width="24px"
|
||||
height="30px"
|
||||
viewBox="0 0 24 30"
|
||||
style="enable-background: new 0 0 50 50"
|
||||
xml:space="preserve"
|
||||
>
|
||||
<rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2">
|
||||
<animate
|
||||
attributeName="opacity"
|
||||
attributeType="XML"
|
||||
values="0.2; 1; .2"
|
||||
begin="0s"
|
||||
dur="0.6s"
|
||||
repeatCount="indefinite"
|
||||
/>
|
||||
<animate
|
||||
attributeName="height"
|
||||
attributeType="XML"
|
||||
values="10; 20; 10"
|
||||
begin="0s"
|
||||
dur="0.6s"
|
||||
repeatCount="indefinite"
|
||||
/>
|
||||
<animate
|
||||
attributeName="y"
|
||||
attributeType="XML"
|
||||
values="10; 5; 10"
|
||||
begin="0s"
|
||||
dur="0.6s"
|
||||
repeatCount="indefinite"
|
||||
/>
|
||||
</rect>
|
||||
<rect x="8" y="10" width="4" height="10" fill="#333" opacity="0.2">
|
||||
<animate
|
||||
attributeName="opacity"
|
||||
attributeType="XML"
|
||||
values="0.2; 1; .2"
|
||||
begin="0.15s"
|
||||
dur="0.6s"
|
||||
repeatCount="indefinite"
|
||||
/>
|
||||
<animate
|
||||
attributeName="height"
|
||||
attributeType="XML"
|
||||
values="10; 20; 10"
|
||||
begin="0.15s"
|
||||
dur="0.6s"
|
||||
repeatCount="indefinite"
|
||||
/>
|
||||
<animate
|
||||
attributeName="y"
|
||||
attributeType="XML"
|
||||
values="10; 5; 10"
|
||||
begin="0.15s"
|
||||
dur="0.6s"
|
||||
repeatCount="indefinite"
|
||||
/>
|
||||
</rect>
|
||||
<rect x="16" y="10" width="4" height="10" fill="#333" opacity="0.2">
|
||||
<animate
|
||||
attributeName="opacity"
|
||||
attributeType="XML"
|
||||
values="0.2; 1; .2"
|
||||
begin="0.3s"
|
||||
dur="0.6s"
|
||||
repeatCount="indefinite"
|
||||
/>
|
||||
<animate
|
||||
attributeName="height"
|
||||
attributeType="XML"
|
||||
values="10; 20; 10"
|
||||
begin="0.3s"
|
||||
dur="0.6s"
|
||||
repeatCount="indefinite"
|
||||
/>
|
||||
<animate
|
||||
attributeName="y"
|
||||
attributeType="XML"
|
||||
values="10; 5; 10"
|
||||
begin="0.3s"
|
||||
dur="0.6s"
|
||||
repeatCount="indefinite"
|
||||
/>
|
||||
</rect>
|
||||
</svg>
|
||||
<p id="connectorText" class="connector"></p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Stamp -->
|
||||
<div>
|
||||
<a href="#" class="stamp"> Nebula © Nebula Services 2022 </a>
|
||||
<a class="github" href="https://github.com/NebulaServices/Nebula"
|
||||
>GitHub</a
|
||||
>
|
||||
<a
|
||||
class="tos"
|
||||
href="/privacy"
|
||||
>Privacy</a
|
||||
>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
23
src/index.tsx
Normal file
23
src/index.tsx
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { render } from 'preact';
|
||||
import { LocationProvider, Router, Route } from 'preact-iso';
|
||||
|
||||
import { Header } from './components/Header.jsx';
|
||||
import { Home } from './pages/Home';
|
||||
import { NotFound } from './pages/_404.jsx';
|
||||
import './style.css';
|
||||
|
||||
export function App() {
|
||||
return (
|
||||
<LocationProvider>
|
||||
<Header />
|
||||
<main>
|
||||
<Router>
|
||||
<Route path="/" component={Home} />
|
||||
<Route default component={NotFound} />
|
||||
</Router>
|
||||
</main>
|
||||
</LocationProvider>
|
||||
);
|
||||
}
|
||||
|
||||
render(<App />, document.getElementById('app'));
|
197
src/options.html
197
src/options.html
File diff suppressed because one or more lines are too long
8
src/pages/Home.tsx
Normal file
8
src/pages/Home.tsx
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
export function Home() {
|
||||
return (
|
||||
<div>
|
||||
We've enabled nebula servicessssss
|
||||
</div>
|
||||
);
|
||||
}
|
8
src/pages/_404.tsx
Normal file
8
src/pages/_404.tsx
Normal file
|
@ -0,0 +1,8 @@
|
|||
export function NotFound() {
|
||||
return (
|
||||
<section>
|
||||
<h1>404: Not Found</h1>
|
||||
<p>It's gone :(</p>
|
||||
</section>
|
||||
);
|
||||
}
|
104
src/privacy.html
104
src/privacy.html
|
@ -1,104 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<title>Nebula Privacy Policy</title>
|
||||
<link rel="icon" type="image/x-icon" href="/images/logo.png"/>
|
||||
<meta name="description" content="Privacy Policy for Nebula Services"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" href="style/main.css"/>
|
||||
<link rel="stylesheet" href="style/privacy.css"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h2>Privacy Policy</h2>
|
||||
<p>
|
||||
Your privacy is important to us. It is Nebula Services' policy to
|
||||
respect your privacy and comply with any applicable law and regulation
|
||||
regarding any personal information we may collect about you, including
|
||||
across our website, <a href="https://nebulaproxy.io">https://nebulaproxy.io</a>,
|
||||
and other sites we own and operate.
|
||||
</p>
|
||||
<p>
|
||||
This policy is effective as of 8 June 2022 and was last updated on 8 June
|
||||
2022.
|
||||
</p>
|
||||
<h3>Information We Collect</h3>
|
||||
<p>
|
||||
Information we collect includes both information you knowingly and
|
||||
actively provide us when using or participating in any of our services and
|
||||
promotions, and any information automatically sent by your devices in the
|
||||
course of accessing our products and services.
|
||||
</p>
|
||||
<h4>Log Data</h4>
|
||||
<p>
|
||||
When you visit our website, our servers may automatically log the standard
|
||||
data provided by your web browser. It may include your device’s Internet
|
||||
Protocol (IP) address, your browser type and version, the pages you visit,
|
||||
the time and date of your visit, the time spent on each page, other
|
||||
details about your visit, and technical details that occur in conjunction
|
||||
with any errors you may encounter.
|
||||
</p>
|
||||
<p>
|
||||
Please be aware that while this information may not be personally
|
||||
identifying by itself, it may be possible to combine it with other data to
|
||||
personally identify individual persons.
|
||||
</p>
|
||||
<h4>Collection and Use of Information</h4>
|
||||
<p>
|
||||
We may collect personal information from you when you do any of the
|
||||
following on our website:
|
||||
</p>
|
||||
<ul>
|
||||
<li>Use a mobile device or web browser to access our content</li>
|
||||
<li>
|
||||
Contact us via email, social media, or on any similar technologies
|
||||
</li>
|
||||
<li>When you mention us on social media</li>
|
||||
</ul>
|
||||
<h3>Children's Privacy</h3>
|
||||
<p>
|
||||
We do not aim any of our products or services directly at children under
|
||||
the age of 13, and we do not knowingly collect personal information about
|
||||
children under 13.
|
||||
</p>
|
||||
<h3>Use of Cookies</h3>
|
||||
<p>
|
||||
We use “cookies” to collect information about you and your
|
||||
activity across our site. A cookie is a small piece of data that our
|
||||
website stores on your computer, and accesses each time you visit, so we
|
||||
can understand how you use our site. This helps us serve you content based
|
||||
on preferences you have specified.
|
||||
</p>
|
||||
<h3>Limits of Our Policy</h3>
|
||||
<p>
|
||||
Our website may link to external sites that are not operated by us. Please
|
||||
be aware that we have no control over the content and policies of those
|
||||
sites, and cannot accept responsibility or liability for their respective
|
||||
privacy practices.
|
||||
</p>
|
||||
<h3>Changes to This Policy</h3>
|
||||
<p>
|
||||
At our discretion, we may change our privacy policy to reflect updates to
|
||||
our business processes, current acceptable practices, or legislative or
|
||||
regulatory changes. If we decide to change this privacy policy, we will
|
||||
post the changes here at the same link by which you are accessing this
|
||||
privacy policy.
|
||||
</p>
|
||||
<p>
|
||||
If required by law, we will get your permission or give you the
|
||||
opportunity to opt in to or opt out of, as applicable, any new uses of
|
||||
your personal information.
|
||||
</p>
|
||||
<h3>Contact Us</h3>
|
||||
<p>
|
||||
For any questions or concerns regarding your privacy, you may contact us
|
||||
using the following details:
|
||||
</p>
|
||||
<p>
|
||||
Chloe B<br />
|
||||
chloe@nebula.bio
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
3
src/style.css
Normal file
3
src/style.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
138
src/unv.html
138
src/unv.html
|
@ -1,138 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@1,700&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
</head>
|
||||
<body style="background: #26233a">
|
||||
<div
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: nowrap;
|
||||
flex-direction: row;
|
||||
"
|
||||
>
|
||||
<button
|
||||
id="generate-otp"
|
||||
style="
|
||||
background: #eb6f92;
|
||||
border-radius: 3px;
|
||||
border: transparent;
|
||||
width: 268px;
|
||||
font-size: 18px;
|
||||
height: 69px;
|
||||
cursor: pointer;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
"
|
||||
>
|
||||
Send Verification Code
|
||||
</button>
|
||||
<svg
|
||||
style="color: white; font-size: 10px; width: 53px"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="w-6 h-6"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M4.5 12h15m0 0l-6.75-6.75M19.5 12l-6.75 6.75"
|
||||
/>
|
||||
</svg>
|
||||
<input
|
||||
id="otp"
|
||||
type="text"
|
||||
placeholder="Enter the code sent to your email"
|
||||
style="
|
||||
width: 268px;
|
||||
font-size: 18px;
|
||||
height: 69px;
|
||||
background: #1f1d2e;
|
||||
border-color: #eb6f92;
|
||||
border-width: 1px;
|
||||
color: white;
|
||||
font-style: italic;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
"
|
||||
/>
|
||||
<svg
|
||||
style="color: white; font-size: 10px; width: 53px"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="w-6 h-6"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M4.5 12h15m0 0l-6.75-6.75M19.5 12l-6.75 6.75"
|
||||
/>
|
||||
</svg>
|
||||
<button
|
||||
id="validate-otp"
|
||||
style="
|
||||
background: #eb6f92;
|
||||
border-radius: 3px;
|
||||
border: transparent;
|
||||
width: 268px;
|
||||
font-size: 18px;
|
||||
height: 69px;
|
||||
cursor: pointer;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
"
|
||||
>
|
||||
Submit
|
||||
</button>
|
||||
</div>
|
||||
<br />
|
||||
<div
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
align-content: center;
|
||||
flex-wrap: nowrap;
|
||||
flex-direction: row;
|
||||
color: white;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
"
|
||||
>
|
||||
<p id="checked"></p>
|
||||
</div>
|
||||
<hr />
|
||||
<div
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
align-content: center;
|
||||
flex-wrap: nowrap;
|
||||
flex-direction: row;
|
||||
color: white;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
"
|
||||
>
|
||||
<p id="checked">
|
||||
You are seeing this screen because the owner of this website has set
|
||||
this site to require email one time password upon entry.
|
||||
</p>
|
||||
</div>
|
||||
<script src="resources/v.js"></script>
|
||||
</body>
|
||||
</html>
|
12
tailwind.config.js
Normal file
12
tailwind.config.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: [
|
||||
"./index.html",
|
||||
"./src/**/*.{js,ts,jsx,tsx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
epic
|
20
tsconfig.json
Normal file
20
tsconfig.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"noEmit": true,
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
|
||||
/* Preact Config */
|
||||
"jsx": "react-jsx",
|
||||
"jsxImportSource": "preact",
|
||||
"skipLibCheck": true,
|
||||
"paths": {
|
||||
"react": ["./node_modules/preact/compat/"],
|
||||
"react-dom": ["./node_modules/preact/compat/"]
|
||||
}
|
||||
},
|
||||
"include": ["node_modules/vite/client.d.ts", "**/*"]
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
{}
|
8
vite.config.ts
Normal file
8
vite.config.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import million from 'million/compiler';
|
||||
import { defineConfig } from 'vite';
|
||||
import preact from '@preact/preset-vite';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [million.vite({ auto: true }), preact()],
|
||||
});
|
20
watch.json
20
watch.json
|
@ -1,20 +0,0 @@
|
|||
{
|
||||
"install": {
|
||||
"include": [
|
||||
"^package\\.json$",
|
||||
"^\\.env$"
|
||||
]
|
||||
},
|
||||
"restart": {
|
||||
"exclude": [
|
||||
"^public/",
|
||||
"^dist/"
|
||||
],
|
||||
"include": [
|
||||
"\\.js$",
|
||||
"\\.coffee$",
|
||||
"\\.json"
|
||||
]
|
||||
},
|
||||
"throttle": 100
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue