Compare commits
No commits in common. "main" and "e34564ffc5b2638d939ff53d2c2d1cf6499de830" have entirely different histories.
main
...
e34564ffc5
|
@ -9,7 +9,6 @@
|
|||
!.yarn/plugins
|
||||
!.yarn/releases
|
||||
!.yarn/versions
|
||||
/package-lock.json
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
@ -40,11 +39,3 @@ yarn-error.log*
|
|||
# typescript
|
||||
*.tsbuildinfo
|
||||
next-env.d.ts
|
||||
|
||||
# editor
|
||||
/.vscode/
|
||||
/.trae/
|
||||
/.vs/
|
||||
|
||||
# config
|
||||
/peas.config.ts
|
||||
|
|
659
LICENSE
|
@ -1,659 +0,0 @@
|
|||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2025 Last2014
|
||||
|
||||
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/>.
|
32
README.md
|
@ -1,30 +1,2 @@
|
|||
# Peas
|
||||
|
||||
<img width="140" src="./src/asset/peas.svg">
|
||||
|
||||
## Technologys
|
||||
|
||||
<img width="30" src="./src/asset/simpleicons/html5.svg">
|
||||
<img width="30" src="./src/asset/simpleicons/css.svg">
|
||||
<img width="30" src="./src/asset/simpleicons/js.svg">
|
||||
<img width="30" src="./src/asset/simpleicons/ts.svg">
|
||||
<img width="30" src="./src/asset/simpleicons/react.svg">
|
||||
<img width="30" src="./src/asset/simpleicons/next.svg">
|
||||
<br />
|
||||
<img width="30" src="./src/asset/simpleicons/mysql.svg">
|
||||
<img width="30" src="./src/asset/simpleicons/npm.svg">
|
||||
<img width="30" src="./src/asset/simpleicons/nodejs.svg">
|
||||
<img width="30" src="./src/asset/simpleicons/gitea.svg">
|
||||
<img width="30" src="./src/asset/simpleicons/git.svg">
|
||||
<img width="30" src="./src/asset/simpleicons/svg.svg">
|
||||
|
||||
## About Peas
|
||||
|
||||
Peas is a SNS designed for sharing profiles.
|
||||
You can register and share your user profile.
|
||||
You can freely create profile sections suitable for use at school or work, and also change the privacy settings.
|
||||
It also supports printing QR codes, making sharing easy.
|
||||
|
||||
## LICENSE
|
||||
|
||||
AGPL-v3.0
|
||||
# Last2014
|
||||
Hi!
|
|
@ -1,29 +0,0 @@
|
|||
import { PeasConfigType } from "@/lib/peas.config";
|
||||
|
||||
const PeasConfig: PeasConfigType = {
|
||||
// Server Config
|
||||
serverName: "Peas Server",
|
||||
serverDescription: "Peas SNS",
|
||||
serverHost: "peas.example.com",
|
||||
|
||||
// SSL Config
|
||||
ssl: {
|
||||
ssl: false,
|
||||
},
|
||||
|
||||
// SMTP Config
|
||||
smtpHost: "mail.example.com",
|
||||
smtpPort: 587,
|
||||
smtpSecure: false,
|
||||
smtpUser: "info@mail.example.com",
|
||||
smtpPassword: "SMTPMailPassword",
|
||||
|
||||
// Database Config
|
||||
databaseHost: "db.example.com",
|
||||
databasePort: 3306,
|
||||
databaseUser: "peas",
|
||||
databasePassword: "DatabasePassword",
|
||||
databaseDB: "peas",
|
||||
};
|
||||
|
||||
export default PeasConfig;
|
|
@ -1,7 +1,10 @@
|
|||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
output: "export",
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
|
44
package.json
|
@ -1,13 +1,7 @@
|
|||
{
|
||||
"type": "module",
|
||||
"name": "peas",
|
||||
"version": "nonerelease",
|
||||
"license": "AGPL-3.0-later",
|
||||
"author": {
|
||||
"name": "Last2014",
|
||||
"email": "info@last2014.net",
|
||||
"url": "https://last2014.net"
|
||||
},
|
||||
"name": "last2014",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --turbopack",
|
||||
"build": "next build",
|
||||
|
@ -15,35 +9,23 @@
|
|||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@iconify/react": "^6.0.0",
|
||||
"@types/dotenv": "^6.1.1",
|
||||
"@icons-pack/react-simple-icons": "^13.0.0",
|
||||
"@types/eslint": "^9.6.1",
|
||||
"@types/js-cookie": "^3.0.6",
|
||||
"@types/next": "^8.0.7",
|
||||
"@types/nodemailer": "^6.4.17",
|
||||
"bcrypt": "^6.0.0",
|
||||
"@types/next": "^9.0.0",
|
||||
"bulma": "^1.0.4",
|
||||
"dotenv": "^16.5.0",
|
||||
"js-cookie": "^3.0.5",
|
||||
"mysql2": "^3.14.1",
|
||||
"next": "^15.3.4",
|
||||
"nodemailer": "^7.0.3",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"ts-node": "^10.9.2"
|
||||
"next": "^15.3.3",
|
||||
"react": "^19.1.0",
|
||||
"react-dom": "^19.1.0",
|
||||
"react-fast-marquee": "^1.6.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3",
|
||||
"@types/bcrypt": "^5.0.2",
|
||||
"@iconify/react": "^6.0.0",
|
||||
"@types/node": "^20",
|
||||
"@types/react": "^19.1.5",
|
||||
"@types/react-dom": "^19.1.5",
|
||||
"cross-env": "^7.0.3",
|
||||
"@types/react": "^18.3.12",
|
||||
"@types/react-dom": "^18.3.1",
|
||||
"eslint": "^9",
|
||||
"eslint-config-next": "15.3.1",
|
||||
"eslint-config-next": "15.3.3",
|
||||
"typescript": "^5"
|
||||
},
|
||||
"ts-node": {
|
||||
"esm": true
|
||||
}
|
||||
}
|
||||
|
|
After Width: | Height: | Size: 121 KiB |
After Width: | Height: | Size: 10 KiB |
|
@ -1,33 +0,0 @@
|
|||
import pool from "@/lib/database";
|
||||
import type { RowDataPacket } from "mysql2";
|
||||
|
||||
import { NextResponse, NextRequest } from "next/server";
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
const body = await request.json();
|
||||
const { code } = body;
|
||||
|
||||
const [rows] = await pool.query<RowDataPacket[]>(
|
||||
"SELECT * FROM mailverifiedcode WHERE code = ?",
|
||||
[code],
|
||||
);
|
||||
|
||||
if (rows.length === 0) {
|
||||
return NextResponse.json(
|
||||
{ status: "error", message: "Code not found" },
|
||||
{ status: 401 },
|
||||
);
|
||||
} else {
|
||||
if (rows[0].code === code) {
|
||||
await pool.query<RowDataPacket[]>(
|
||||
"UPDATE `users` SET `mailverified` = 1 WHERE `users`.`id` = ?",
|
||||
[rows[0].user],
|
||||
);
|
||||
|
||||
return NextResponse.json(
|
||||
{ status: "success", message: "Code verified" },
|
||||
{ status: 200 },
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,78 +0,0 @@
|
|||
import pool from "@/lib/database";
|
||||
import type { RowDataPacket } from "mysql2";
|
||||
|
||||
import { sendMail } from "@/lib/mailsend";
|
||||
import PeasConfig from "@/../peas.config";
|
||||
|
||||
import { NextResponse, NextRequest } from "next/server";
|
||||
|
||||
// コード生成
|
||||
async function createCode(maxAttempts = 10) {
|
||||
for (let i = 0; i < maxAttempts; i++) {
|
||||
const code = Math.floor(100000 + Math.random() * 900000).toString();
|
||||
const [existingCodes] = await pool.execute<RowDataPacket[]>(
|
||||
"SELECT * FROM mailverifiedcode WHERE code = ?",
|
||||
[code],
|
||||
);
|
||||
if (existingCodes.length === 0) {
|
||||
return code;
|
||||
}
|
||||
}
|
||||
throw new Error("Failed to generate unique code after maximum attempts");
|
||||
}
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
// body取得
|
||||
const body = await request.json();
|
||||
const { email, user } = body;
|
||||
|
||||
const code = await createCode();
|
||||
|
||||
// コードが存在する場合
|
||||
const [existingCodes] = await pool.execute<RowDataPacket[]>(
|
||||
"SELECT * FROM mailverifiedcode WHERE user = ?",
|
||||
[user],
|
||||
);
|
||||
|
||||
let row: RowDataPacket[] = [];
|
||||
|
||||
if (existingCodes.length !== 0) {
|
||||
[row] = await pool.execute<RowDataPacket[]>(
|
||||
"UPDATE `mailverifiedcode` SET `code` = ?, `time` = current_timestamp(3) WHERE `mailverifiedcode`.`user` = ?",
|
||||
[code, user],
|
||||
);
|
||||
} else {
|
||||
// コードが存在しない場合
|
||||
[row] = await pool.execute<RowDataPacket[]>(
|
||||
"INSERT INTO `mailverifiedcode` (`code`, `user`, `email`, `time`, `num`) VALUES (?, ?, ?, current_timestamp(3), NULL);",
|
||||
[code, user, email],
|
||||
);
|
||||
}
|
||||
|
||||
// メール送信
|
||||
if ((row as RowDataPacket).affectedRows === 1) {
|
||||
await sendMail({
|
||||
to: email,
|
||||
subject: `【${PeasConfig.serverName}】メール認証`,
|
||||
text: `
|
||||
${user}さんこんにちは。\n
|
||||
${PeasConfig.serverName}ではメール認証が必要となっています。\n
|
||||
メール認証をすることで${PeasConfig.serverName}の機能を利用することができます。\n
|
||||
${request.nextUrl.origin}/mailverify?code=${code} にアクセスしてください。`,
|
||||
});
|
||||
|
||||
return NextResponse.json({
|
||||
status: "success",
|
||||
code: code,
|
||||
});
|
||||
} else {
|
||||
// コード保存失敗
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "error",
|
||||
error: "Failed to Save Code",
|
||||
},
|
||||
{ status: 400 },
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,57 +0,0 @@
|
|||
import pool from "@/lib/database";
|
||||
import type { RowDataPacket } from "mysql2";
|
||||
|
||||
import bcrypt from "bcrypt";
|
||||
|
||||
import { NextResponse, NextRequest } from "next/server";
|
||||
import { cookies } from "next/headers";
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
// body取得
|
||||
const body = await request.json();
|
||||
const { email, password } = body;
|
||||
|
||||
// ユーザー取得
|
||||
const [existingUsers] = await pool.execute<RowDataPacket[]>(
|
||||
"SELECT * FROM users WHERE email = ?",
|
||||
[email],
|
||||
);
|
||||
|
||||
// ユーザーが存在しない場合
|
||||
if (existingUsers.length === 0) {
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "error",
|
||||
error: "User not found",
|
||||
},
|
||||
{ status: 404 },
|
||||
);
|
||||
}
|
||||
|
||||
const user = existingUsers[0];
|
||||
const passwordMatch = await bcrypt.compare(password, user.password);
|
||||
|
||||
// パスワード確認
|
||||
if (!passwordMatch) {
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "error",
|
||||
error: "Incorrect password",
|
||||
},
|
||||
{ status: 401 },
|
||||
);
|
||||
} else {
|
||||
// 成功
|
||||
const sessionCookie = await cookies();
|
||||
sessionCookie.set("user", user.id);
|
||||
sessionCookie.set("password", password);
|
||||
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "success",
|
||||
message: "Login successful",
|
||||
},
|
||||
{ status: 200 },
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,114 +0,0 @@
|
|||
import pool from "@/lib/database";
|
||||
import type { RowDataPacket } from "mysql2";
|
||||
|
||||
import bcrypt from "bcrypt";
|
||||
|
||||
import { NextResponse, NextRequest } from "next/server";
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
const body = await request.json();
|
||||
const { email, password, id, rule } = body;
|
||||
|
||||
try {
|
||||
if (!rule || rule === false) {
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "error",
|
||||
error: "Please read and accept the terms and conditions",
|
||||
},
|
||||
{ status: 400 },
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
// bodyが空になっていないか
|
||||
if (!email || !password || !id || !rule) {
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "error",
|
||||
error: "Body Required",
|
||||
},
|
||||
{ status: 400 },
|
||||
);
|
||||
}
|
||||
|
||||
// パスワードが8文字以上か
|
||||
if (password.length < 8) {
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "error",
|
||||
error: "Password must be at least 8 characters long",
|
||||
},
|
||||
{ status: 400 },
|
||||
);
|
||||
}
|
||||
|
||||
// ユーザー名が英数字3文字以上か
|
||||
if (!/^[a-zA-Z0-9]{3,}$/.test(id)) {
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "error",
|
||||
error: "Username must be at least 3 alphanumeric characters",
|
||||
},
|
||||
{ status: 400 },
|
||||
);
|
||||
}
|
||||
|
||||
const [existingUsers] = await pool.execute<RowDataPacket[]>(
|
||||
"SELECT * FROM users WHERE id = ?",
|
||||
[id],
|
||||
);
|
||||
|
||||
if (existingUsers.length === 0) {
|
||||
const passwordHash = await bcrypt.hash(password, 10);
|
||||
|
||||
const [result] = await pool.execute<RowDataPacket[]>(
|
||||
"INSERT INTO `users` (`id`, `password`, `email`, `mailverified`, `time`, `num`) VALUES (?, ?, ?, '0', current_timestamp(3), NULL)",
|
||||
[id, passwordHash, email],
|
||||
);
|
||||
|
||||
if ((result as RowDataPacket).affectedRows === 1) {
|
||||
await fetch(
|
||||
request.nextUrl.protocol +
|
||||
request.nextUrl.host +
|
||||
"/api/mailverified/send",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
email: email,
|
||||
user: id,
|
||||
}),
|
||||
},
|
||||
);
|
||||
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "success",
|
||||
message: "User created successfully",
|
||||
},
|
||||
{ status: 201 },
|
||||
);
|
||||
} else {
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "error",
|
||||
error: "Failed to create user",
|
||||
},
|
||||
{ status: 500 },
|
||||
);
|
||||
}
|
||||
} else {
|
||||
return NextResponse.json(
|
||||
{
|
||||
status: "error",
|
||||
error: "User already exists",
|
||||
},
|
||||
{ status: 400 },
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
@import "bulma/css/bulma.min.css";
|
Before Width: | Height: | Size: 15 KiB |
|
@ -1,19 +0,0 @@
|
|||
html,body{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light){
|
||||
.header{
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark){
|
||||
.header{
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
@import "bulma/css/bulma.min.css";
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
}
|
|
@ -1,12 +1,9 @@
|
|||
import type { Metadata } from "next";
|
||||
import "./bulma.css";
|
||||
import "./global.css";
|
||||
|
||||
import PeasConfig from "@/../peas.config";
|
||||
import "./globals.css";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: PeasConfig.serverName,
|
||||
description: PeasConfig.serverDescription,
|
||||
title: "Last2014",
|
||||
description: "Last2014 Website",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
|
@ -15,8 +12,10 @@ export default function RootLayout({
|
|||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html>
|
||||
<body>{children}</body>
|
||||
<html data-theme="dark">
|
||||
<body>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,90 +0,0 @@
|
|||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { useSearchParams } from "next/navigation";
|
||||
import { Icon } from "@iconify/react";
|
||||
import { MessageLang } from "@/lang/component/client";
|
||||
import { MessageLangVar } from "@/lang/component/variable";
|
||||
|
||||
export default function MailVerify() {
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
const searchParams = useSearchParams();
|
||||
const URLCode = searchParams.get("code");
|
||||
|
||||
let code: string = "";
|
||||
|
||||
if (URLCode !== null) {
|
||||
code = URLCode;
|
||||
}
|
||||
|
||||
const verify = async (e: React.FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
setLoading(true);
|
||||
|
||||
if (code === "") {
|
||||
code = e.currentTarget.code.value;
|
||||
}
|
||||
|
||||
if (code.length !== 6) {
|
||||
alert(MessageLangVar({text: "codeCharacterCount"}));
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const res = await fetch(`${location.origin}/api/mailverified/check`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
code,
|
||||
}),
|
||||
});
|
||||
|
||||
const data = await res.text();
|
||||
const result = JSON.parse(data);
|
||||
|
||||
if (result.status === "success") {
|
||||
alert(MessageLangVar({ text: "emailVerificationSuccess" }));
|
||||
window.location.href = "/signin";
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<h1 className="title has-text-centered"><MessageLang text="mailVerify" /></h1>
|
||||
|
||||
{loading && (
|
||||
<div style={{ marginBottom: "1rem" }}>
|
||||
<Icon icon="svg-spinners:6-dots-scale" width={32} height={32} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<form onSubmit={verify} className="has-text-centered">
|
||||
<label className="label"><MessageLang text="code" />:</label>
|
||||
<input
|
||||
type="text"
|
||||
name="code"
|
||||
defaultValue={code}
|
||||
className="input"
|
||||
placeholder="123456"
|
||||
style={{
|
||||
width: "10rem",
|
||||
marginBottom: "10px"
|
||||
}}
|
||||
maxLength={6}
|
||||
/>
|
||||
<br />
|
||||
<button className="button" type="submit">
|
||||
<MessageLang text="submit" />
|
||||
</button>
|
||||
</form>
|
||||
</>
|
||||
);
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
import type { MetadataRoute } from "next";
|
||||
import PeasConfig from "@/../peas.config";
|
||||
|
||||
export default function manifest(): MetadataRoute.Manifest {
|
||||
return {
|
||||
name: PeasConfig.serverName,
|
||||
description: PeasConfig.serverDescription,
|
||||
start_url: "/",
|
||||
display: "standalone",
|
||||
background_color: "#fff",
|
||||
theme_color: "#fff",
|
||||
icons: [
|
||||
{
|
||||
src: "/favicon.ico",
|
||||
sizes: "any",
|
||||
type: "image/x-icon",
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
import Link from "next/link";
|
||||
|
||||
export default function NotFound() {
|
||||
return(
|
||||
<div className="has-text-centered">
|
||||
|
||||
<h1 className="title">NotFound - HTTP404</h1>
|
||||
|
||||
<div className="notification is-warning"
|
||||
style={{
|
||||
width: "15em",
|
||||
margin: "0 auto",
|
||||
}}
|
||||
>
|
||||
<h3>
|
||||
{"The page you requested"}
|
||||
<br />
|
||||
{"could not be found"}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<Link
|
||||
className="button"
|
||||
style={{marginTop: "5px"}}
|
||||
href="/"
|
||||
>
|
||||
Go to Home
|
||||
</Link>
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
|
@ -1,55 +1,24 @@
|
|||
"use client";
|
||||
|
||||
import "./style.css";
|
||||
|
||||
import Link from "next/link";
|
||||
import { Icon } from "@iconify/react";
|
||||
|
||||
import PeasConfig from "@/../peas.config";
|
||||
import { MessageLang } from "@/lang/component/client";
|
||||
// Cards
|
||||
import TopProfile from "@/cards/topProfile";
|
||||
import AboutMe from "@/cards/aboutMe";
|
||||
import Skill from "@/cards/skill";
|
||||
import Links from "@/cards/links";
|
||||
import Details from "@/cards/details";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<h1 className="has-text-centered title">{PeasConfig.serverName}</h1>
|
||||
<TopProfile />
|
||||
|
||||
<div className="message about">
|
||||
<h1 className="message-header">
|
||||
<Icon icon="ix:about-filled" />
|
||||
<MessageLang className="peasAboutTitle" text="ServerAboutTitle" />
|
||||
</h1>
|
||||
<AboutMe />
|
||||
|
||||
<p className="message-body">{PeasConfig.serverDescription}</p>
|
||||
</div>
|
||||
<Skill />
|
||||
|
||||
<div className="message about">
|
||||
<h1 className="message-header">
|
||||
<Icon icon="ix:about-filled" />
|
||||
<MessageLang className="peasAboutTitle" text="PeasAboutTitle" />
|
||||
</h1>
|
||||
<Links />
|
||||
|
||||
<p className="message-body">
|
||||
<MessageLang text="PeasAboutText" />
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="has-text-centered">
|
||||
<Link
|
||||
href="/signup"
|
||||
className="card card-footer card-footer-item signup"
|
||||
>
|
||||
<MessageLang text="Start" />
|
||||
</Link>
|
||||
<p className="has-text-centered">
|
||||
<MessageLang text="or" />
|
||||
</p>
|
||||
<Link
|
||||
href="/signin"
|
||||
className="card card-footer card-footer-item signin"
|
||||
>
|
||||
<MessageLang text="Signin" />
|
||||
</Link>
|
||||
</div>
|
||||
<Details />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
import type { MetadataRoute } from "next";
|
||||
import PeasConfig from "../../peas.config";
|
||||
|
||||
let protocol: string;
|
||||
|
||||
if (PeasConfig.ssl.ssl) {
|
||||
protocol = "https";
|
||||
} else {
|
||||
protocol = "http";
|
||||
}
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
return {
|
||||
rules: {
|
||||
userAgent: "*",
|
||||
allow: "/",
|
||||
},
|
||||
sitemap: `${protocol}://${PeasConfig.serverHost}/sitemap.xml`,
|
||||
};
|
||||
}
|
|
@ -1,93 +0,0 @@
|
|||
"use client";
|
||||
|
||||
import "./style.css";
|
||||
import { useState } from "react";
|
||||
|
||||
import { MessageLang } from "@/lang/component/client";
|
||||
import { Icon } from "@iconify/react";
|
||||
|
||||
export default function SignIn() {
|
||||
const [error, setError] = useState(false);
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
const FormSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
setLoading(true);
|
||||
|
||||
try {
|
||||
const res = await fetch("/api/signin", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
email: e.currentTarget.email.value,
|
||||
password: e.currentTarget.password.value,
|
||||
}),
|
||||
});
|
||||
const data = await res.text();
|
||||
const json = JSON.parse(data);
|
||||
|
||||
if (json.status === "success") {
|
||||
window.location.href = "/";
|
||||
} else {
|
||||
setError(true);
|
||||
window.location.replace("/signin?error=true");
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
setError(true);
|
||||
window.location.replace("/signin?error=true");
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
useState(() => {
|
||||
const locationURL = new URL(window.location.href);
|
||||
if (locationURL.searchParams.get("error")) {
|
||||
setError(true);
|
||||
}
|
||||
});
|
||||
|
||||
return (
|
||||
<form onSubmit={FormSubmit} className="has-text-centered">
|
||||
{error && (
|
||||
<div className="message is-danger">
|
||||
<div className="message-body">
|
||||
<Icon icon="iconoir:warning-circle-solid" />
|
||||
<MessageLang text="signinError" />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<h1 className="title">
|
||||
<MessageLang text="Signin" />
|
||||
</h1>
|
||||
|
||||
{loading && (
|
||||
<div style={{ marginBottom: "1rem" }}>
|
||||
<Icon icon="svg-spinners:6-dots-scale" width={32} height={32} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<label className="label">
|
||||
<MessageLang text="email" />
|
||||
</label>
|
||||
<input type="email" name="email" className="input" required />
|
||||
|
||||
<br />
|
||||
|
||||
<label className="label">
|
||||
<MessageLang text="password" />
|
||||
</label>
|
||||
<input type="password" name="password" className="input" required />
|
||||
|
||||
<br />
|
||||
|
||||
<button type="submit" className="button">
|
||||
<MessageLang text="Signin" />
|
||||
</button>
|
||||
</form>
|
||||
);
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
.input {
|
||||
width: 20rem;
|
||||
}
|
||||
|
||||
.button {
|
||||
margin-top: 5px;
|
||||
}
|
|
@ -1,174 +0,0 @@
|
|||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { useState } from "react";
|
||||
import { Icon } from "@iconify/react";
|
||||
|
||||
import "./style.css";
|
||||
|
||||
import { MessageLang } from "@/lang/component/client";
|
||||
import { MessageLangVar } from "@/lang/component/variable";
|
||||
|
||||
export default function SignUp() {
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
const FormSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
setLoading(true);
|
||||
|
||||
try {
|
||||
const res = await fetch("/api/signup", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
email: e.currentTarget.email.value,
|
||||
password: e.currentTarget.password.value,
|
||||
id: e.currentTarget.username.value,
|
||||
rule: e.currentTarget.ruleCheck.checked,
|
||||
}),
|
||||
});
|
||||
|
||||
const data = await res.text();
|
||||
const json = JSON.parse(data);
|
||||
|
||||
if (json.status === "success") {
|
||||
alert(MessageLangVar({ text: "accountCreateSuccess" }));
|
||||
window.location.href = "/";
|
||||
} else {
|
||||
if (json.error === "User already exists") {
|
||||
alert(MessageLangVar({ text: "sameUsername" }));
|
||||
} else if (
|
||||
json.error === "Please read and accept the terms and conditions"
|
||||
) {
|
||||
alert(MessageLangVar({ text: "termsAgreement" }));
|
||||
} else if (json.error === "Body Required") {
|
||||
alert(MessageLangVar({ text: "bodyRequired" }));
|
||||
} else if (
|
||||
json.error === "Password must be at least 8 characters long"
|
||||
) {
|
||||
alert(MessageLangVar({ text: "passwordCharacterLimit" }));
|
||||
} else if (
|
||||
json.error === "Username must be at least 3 alphanumeric characters"
|
||||
) {
|
||||
alert(MessageLangVar({ text: "usernameRestriction" }));
|
||||
} else if (json.error === "Failed to create user") {
|
||||
alert(MessageLangVar({ text: "userCreationFailed" }));
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
alert(`${MessageLangVar({ text: "connectionError" })}: ${err}`);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
className="has-text-centered"
|
||||
style={{ maxWidth: "400px", margin: "2rem auto" }}
|
||||
>
|
||||
<form onSubmit={FormSubmit} style={{ width: "100%" }}>
|
||||
<h1 className="title">
|
||||
<MessageLang text="Signup" />
|
||||
</h1>
|
||||
|
||||
{loading && (
|
||||
<div style={{ marginBottom: "1rem" }}>
|
||||
<Icon icon="svg-spinners:6-dots-scale" width={32} height={32} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<label className="label">
|
||||
<MessageLang text="username" />
|
||||
</label>
|
||||
<div className="field" style={{ position: "relative", width: "100%" }}>
|
||||
<span
|
||||
className="input-out"
|
||||
style={{
|
||||
position: "absolute",
|
||||
left: "10px",
|
||||
top: "50%",
|
||||
transform: "translateY(-50%)",
|
||||
pointerEvents: "none",
|
||||
}}
|
||||
>
|
||||
@
|
||||
</span>
|
||||
<input
|
||||
type="text"
|
||||
name="username"
|
||||
placeholder="username"
|
||||
className="input"
|
||||
style={{ paddingLeft: "30px", width: "100%" }}
|
||||
required
|
||||
disabled={loading}
|
||||
/>
|
||||
</div>
|
||||
<p className="help">
|
||||
<MessageLang text="idHelp" />
|
||||
</p>
|
||||
|
||||
<label className="label">
|
||||
<MessageLang text="email" />
|
||||
</label>
|
||||
<input
|
||||
className="input"
|
||||
type="email"
|
||||
name="email"
|
||||
placeholder="info@example.com"
|
||||
style={{ width: "100%" }}
|
||||
required
|
||||
disabled={loading}
|
||||
/>
|
||||
<p className="help">
|
||||
<MessageLang text="mailHelp" />
|
||||
</p>
|
||||
|
||||
<label className="label">
|
||||
<MessageLang text="password" />
|
||||
</label>
|
||||
<input
|
||||
type="password"
|
||||
name="password"
|
||||
className="input"
|
||||
placeholder="password"
|
||||
style={{ width: "100%" }}
|
||||
required
|
||||
disabled={loading}
|
||||
/>
|
||||
<p className="help">
|
||||
<MessageLang text="passwordHelp" />
|
||||
</p>
|
||||
|
||||
<span style={{ margin: "5px" }} />
|
||||
|
||||
<label className="label checkbox" style={{ justifyContent: "center" }}>
|
||||
<input type="checkbox" name="ruleCheck" required disabled={loading} />
|
||||
|
||||
<MessageLang text="agree" />
|
||||
{": "}
|
||||
|
||||
<Link href="/terms">
|
||||
<MessageLang text="terms" />
|
||||
</Link>
|
||||
<MessageLang text="and" />
|
||||
<Link href="/privacypolicy">
|
||||
<MessageLang text="privacypolicy" />
|
||||
</Link>
|
||||
</label>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
className="button is-primary"
|
||||
style={{ width: "100%" }}
|
||||
id="signup"
|
||||
disabled={loading}
|
||||
>
|
||||
<MessageLang text="Signup" />
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
);
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
.input {
|
||||
width: 20rem;
|
||||
}
|
||||
|
||||
.button {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.input-out {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
background-color: transparent;
|
||||
font-size: 1rem;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.inputout-email {
|
||||
z-index: 1;
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
import type { MetadataRoute } from "next";
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
return [];
|
||||
}
|
|
@ -1,16 +1,21 @@
|
|||
.about {
|
||||
.card {
|
||||
width: 40em;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
margin-top: 10px;
|
||||
max-width: 40rem;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.signup,
|
||||
.signin {
|
||||
margin: 10px;
|
||||
display: inline-block;
|
||||
.topCard {
|
||||
margin-top: 3em;
|
||||
}
|
||||
|
||||
.peasAboutTitle {
|
||||
position: absolute;
|
||||
margin-left: 16px;
|
||||
.media-content {
|
||||
overflow: hidden;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
#icon {
|
||||
border-radius: 100%;
|
||||
}
|
|
@ -1,96 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="512px"
|
||||
height="512px"
|
||||
viewBox="0 0 210 297"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
inkscape:version="1.4 (86a8ad7, 2024-10-11)"
|
||||
sodipodi:docname="peas.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<defs
|
||||
id="defs1" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.3"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1.4"
|
||||
inkscape:cx="244.28571"
|
||||
inkscape:cy="228.92857"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1094"
|
||||
inkscape:window-x="-11"
|
||||
inkscape:window-y="-11"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg1" />
|
||||
<metadata
|
||||
id="metadata1">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<rect
|
||||
style="fill:#99ff55;stroke-width:2.22859"
|
||||
id="rect1"
|
||||
width="297"
|
||||
height="297"
|
||||
x="-43.5"
|
||||
y="-3.5527137e-15" />
|
||||
<g
|
||||
id="g2"
|
||||
transform="matrix(1.1469899,0,0,1.1469899,-26.767316,-13.251856)">
|
||||
<path
|
||||
style="fill:#119b20;fill-opacity:1;stroke:#147202;stroke-width:1.83106;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 35.7551,61.017585 c -8.783005,22.596126 -5.761437,69.762885 16.492646,91.222475 l 21.858215,23.82446 c 41.098899,35.55484 90.612599,67.5229 124.660009,21.58881"
|
||||
id="path9"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<g
|
||||
id="g1"
|
||||
transform="matrix(0.85872413,0.14665947,-0.14081857,0.89434245,34.95914,6.2378533)">
|
||||
<ellipse
|
||||
style="fill:#11bd20;fill-opacity:1;stroke:#147202;stroke-width:1.65397;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path2"
|
||||
cx="-78.743805"
|
||||
cy="102.15148"
|
||||
rx="22.052917"
|
||||
ry="22.052916"
|
||||
transform="rotate(-60.606551)" />
|
||||
<ellipse
|
||||
style="fill:#11bd20;fill-opacity:1;stroke:#147202;stroke-width:1.48433;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="circle2"
|
||||
cx="-81.856644"
|
||||
cy="158.49173"
|
||||
rx="19.791082"
|
||||
ry="19.79108"
|
||||
transform="rotate(-60.606551)" />
|
||||
<ellipse
|
||||
style="fill:#11bd20;fill-opacity:1;stroke:#147202;stroke-width:1.59035;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="circle4"
|
||||
cx="-81.383789"
|
||||
cy="218.60431"
|
||||
rx="21.204731"
|
||||
ry="21.204727"
|
||||
transform="rotate(-60.606551)" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 3.1 KiB |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#663399"><title>CSS</title><path d="M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63"/></svg>
|
Before Width: | Height: | Size: 1.5 KiB |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#F05032"><title>Git</title><path d="M23.546 10.93L13.067.452c-.604-.603-1.582-.603-2.188 0L8.708 2.627l2.76 2.76c.645-.215 1.379-.07 1.889.441.516.515.658 1.258.438 1.9l2.658 2.66c.645-.223 1.387-.078 1.9.435.721.72.721 1.884 0 2.604-.719.719-1.881.719-2.6 0-.539-.541-.674-1.337-.404-1.996L12.86 8.955v6.525c.176.086.342.203.488.348.713.721.713 1.883 0 2.6-.719.721-1.889.721-2.609 0-.719-.719-.719-1.879 0-2.598.182-.18.387-.316.605-.406V8.835c-.217-.091-.424-.222-.6-.401-.545-.545-.676-1.342-.396-2.009L7.636 3.7.45 10.881c-.6.605-.6 1.584 0 2.189l10.48 10.477c.604.604 1.582.604 2.186 0l10.43-10.43c.605-.603.605-1.582 0-2.187"/></svg>
|
Before Width: | Height: | Size: 717 B |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#609926"><title>Gitea</title><path d="M4.209 4.603c-.247 0-.525.02-.84.088-.333.07-1.28.283-2.054 1.027C-.403 7.25.035 9.685.089 10.052c.065.446.263 1.687 1.21 2.768 1.749 2.141 5.513 2.092 5.513 2.092s.462 1.103 1.168 2.119c.955 1.263 1.936 2.248 2.89 2.367 2.406 0 7.212-.004 7.212-.004s.458.004 1.08-.394c.535-.324 1.013-.893 1.013-.893s.492-.527 1.18-1.73c.21-.37.385-.729.538-1.068 0 0 2.107-4.471 2.107-8.823-.042-1.318-.367-1.55-.443-1.627-.156-.156-.366-.153-.366-.153s-4.475.252-6.792.306c-.508.011-1.012.023-1.512.027v4.474l-.634-.301c0-1.39-.004-4.17-.004-4.17-1.107.016-3.405-.084-3.405-.084s-5.399-.27-5.987-.324c-.187-.011-.401-.032-.648-.032zm.354 1.832h.111s.271 2.269.6 3.597C5.549 11.147 6.22 13 6.22 13s-.996-.119-1.641-.348c-.99-.324-1.409-.714-1.409-.714s-.73-.511-1.096-1.52C1.444 8.73 2.021 7.7 2.021 7.7s.32-.859 1.47-1.145c.395-.106.863-.12 1.072-.12zm8.33 2.554c.26.003.509.127.509.127l.868.422-.529 1.075a.686.686 0 0 0-.614.359.685.685 0 0 0 .072.756l-.939 1.924a.69.69 0 0 0-.66.527.687.687 0 0 0 .347.763.686.686 0 0 0 .867-.206.688.688 0 0 0-.069-.882l.916-1.874a.667.667 0 0 0 .237-.02.657.657 0 0 0 .271-.137 8.826 8.826 0 0 1 1.016.512.761.761 0 0 1 .286.282c.073.21-.073.569-.073.569-.087.29-.702 1.55-.702 1.55a.692.692 0 0 0-.676.477.681.681 0 1 0 1.157-.252c.073-.141.141-.282.214-.431.19-.397.515-1.16.515-1.16.035-.066.218-.394.103-.814-.095-.435-.48-.638-.48-.638-.467-.301-1.116-.58-1.116-.58s0-.156-.042-.27a.688.688 0 0 0-.148-.241l.516-1.062 2.89 1.401s.48.218.583.619c.073.282-.019.534-.069.657-.24.587-2.1 4.317-2.1 4.317s-.232.554-.748.588a1.065 1.065 0 0 1-.393-.045l-.202-.08-4.31-2.1s-.417-.218-.49-.596c-.083-.31.104-.691.104-.691l2.073-4.272s.183-.37.466-.497a.855.855 0 0 1 .35-.077z"/></svg>
|
Before Width: | Height: | Size: 1.8 KiB |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#E34F26"><title>HTML5</title><path d="M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438L1.5 0zm7.031 9.75l-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157H8.531z"/></svg>
|
Before Width: | Height: | Size: 342 B |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#F7DF1E"><title>JavaScript</title><path d="M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179l.004-.056z"/></svg>
|
Before Width: | Height: | Size: 989 B |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#4479A1"><title>MySQL</title><path d="M16.405 5.501c-.115 0-.193.014-.274.033v.013h.014c.054.104.146.18.214.273.054.107.1.214.154.32l.014-.015c.094-.066.14-.172.14-.333-.04-.047-.046-.094-.08-.14-.04-.067-.126-.1-.18-.153zM5.77 18.695h-.927a50.854 50.854 0 00-.27-4.41h-.008l-1.41 4.41H2.45l-1.4-4.41h-.01a72.892 72.892 0 00-.195 4.41H0c.055-1.966.192-3.81.41-5.53h1.15l1.335 4.064h.008l1.347-4.064h1.095c.242 2.015.384 3.86.428 5.53zm4.017-4.08c-.378 2.045-.876 3.533-1.492 4.46-.482.716-1.01 1.073-1.583 1.073-.153 0-.34-.046-.566-.138v-.494c.11.017.24.026.386.026.268 0 .483-.075.647-.222.197-.18.295-.382.295-.605 0-.155-.077-.47-.23-.944L6.23 14.615h.91l.727 2.36c.164.536.233.91.205 1.123.4-1.064.678-2.227.835-3.483zm12.325 4.08h-2.63v-5.53h.885v4.85h1.745zm-3.32.135l-1.016-.5c.09-.076.177-.158.255-.25.433-.506.648-1.258.648-2.253 0-1.83-.718-2.746-2.155-2.746-.704 0-1.254.232-1.65.697-.43.508-.646 1.256-.646 2.245 0 .972.19 1.686.574 2.14.35.41.877.615 1.583.615.264 0 .506-.033.725-.098l1.325.772.36-.622zM15.5 17.588c-.225-.36-.337-.94-.337-1.736 0-1.393.424-2.09 1.27-2.09.443 0 .77.167.977.5.224.362.336.936.336 1.723 0 1.404-.424 2.108-1.27 2.108-.445 0-.77-.167-.978-.5zm-1.658-.425c0 .47-.172.856-.516 1.156-.344.3-.803.45-1.384.45-.543 0-1.064-.172-1.573-.515l.237-.476c.438.22.833.328 1.19.328.332 0 .593-.073.783-.22a.754.754 0 00.3-.615c0-.33-.23-.61-.648-.845-.388-.213-1.163-.657-1.163-.657-.422-.307-.632-.636-.632-1.177 0-.45.157-.81.47-1.085.315-.278.72-.415 1.22-.415.512 0 .98.136 1.4.41l-.213.476a2.726 2.726 0 00-1.064-.23c-.283 0-.502.068-.654.206a.685.685 0 00-.248.524c0 .328.234.61.666.85.393.215 1.187.67 1.187.67.433.305.648.63.648 1.168zm9.382-5.852c-.535-.014-.95.04-1.297.188-.1.04-.26.04-.274.167.055.053.063.14.11.214.08.134.218.313.346.407.14.11.28.216.427.31.26.16.555.255.81.416.145.094.293.213.44.313.073.05.12.14.214.172v-.02c-.046-.06-.06-.147-.105-.214-.067-.067-.134-.127-.2-.193a3.223 3.223 0 00-.695-.675c-.214-.146-.682-.35-.77-.595l-.013-.014c.146-.013.32-.066.46-.106.227-.06.435-.047.67-.106.106-.027.213-.06.32-.094v-.06c-.12-.12-.21-.283-.334-.395a8.867 8.867 0 00-1.104-.823c-.21-.134-.476-.22-.697-.334-.08-.04-.214-.06-.26-.127-.12-.146-.19-.34-.275-.514a17.69 17.69 0 01-.547-1.163c-.12-.262-.193-.523-.34-.763-.69-1.137-1.437-1.826-2.586-2.5-.247-.14-.543-.2-.856-.274-.167-.008-.334-.02-.5-.027-.11-.047-.216-.174-.31-.235-.38-.24-1.364-.76-1.644-.072-.18.434.267.862.422 1.082.115.153.26.328.34.5.047.116.06.235.107.356.106.294.207.622.347.897.073.14.153.287.247.413.054.073.146.107.167.227-.094.136-.1.334-.154.5-.24.757-.146 1.693.194 2.25.107.166.362.534.703.393.3-.12.234-.5.32-.835.02-.08.007-.133.048-.187v.015c.094.188.188.367.274.555.206.328.566.668.867.895.16.12.287.328.487.402v-.02h-.015c-.043-.058-.1-.086-.154-.133a3.445 3.445 0 01-.35-.4 8.76 8.76 0 01-.747-1.218c-.11-.21-.202-.436-.29-.643-.04-.08-.04-.2-.107-.24-.1.146-.247.273-.32.453-.127.288-.14.642-.188 1.01-.027.007-.014 0-.027.014-.214-.052-.287-.274-.367-.46-.2-.475-.233-1.238-.06-1.785.047-.14.247-.582.167-.716-.042-.127-.174-.2-.247-.303a2.478 2.478 0 01-.24-.427c-.16-.374-.24-.788-.414-1.162-.08-.173-.22-.354-.334-.513-.127-.18-.267-.307-.368-.52-.033-.073-.08-.194-.027-.274.014-.054.042-.075.094-.09.088-.072.335.022.422.062.247.1.455.194.662.334.094.066.195.193.315.226h.14c.214.047.455.014.655.073.355.114.675.28.962.46a5.953 5.953 0 012.085 2.286c.08.154.115.295.188.455.14.33.313.663.455.982.14.315.275.636.476.897.1.14.502.213.682.286.133.06.34.115.46.188.23.14.454.3.67.454.11.076.443.243.463.378z"/></svg>
|
Before Width: | Height: | Size: 3.6 KiB |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#ffffff"><title>Next.js</title><path d="M18.665 21.978C16.758 23.255 14.465 24 12 24 5.377 24 0 18.623 0 12S5.377 0 12 0s12 5.377 12 12c0 3.583-1.574 6.801-4.067 9.001L9.219 7.2H7.2v9.596h1.615V9.251l9.85 12.727Zm-3.332-8.533 1.6 2.061V7.2h-1.6v6.245Z"/></svg>
|
Before Width: | Height: | Size: 337 B |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#5FA04E"><title>Node.js</title><path d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></svg>
|
Before Width: | Height: | Size: 1.6 KiB |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#CB3837"><title>npm</title><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg>
|
Before Width: | Height: | Size: 332 B |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#61DAFB"><title>React</title><path d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></svg>
|
Before Width: | Height: | Size: 2.9 KiB |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#FFB13B"><title>SVG</title><path d="M12 0c-1.497 0-2.749.965-3.248 2.17a3.45 3.45 0 00-.238 1.416 3.459 3.459 0 00-1.168-.834 3.508 3.508 0 00-1.463-.256 3.513 3.513 0 00-2.367 1.02c-1.06 1.058-1.263 2.625-.764 3.83.179.432.47.82.82 1.154a3.49 3.49 0 00-1.402.252C.965 9.251 0 10.502 0 12c0 1.497.965 2.749 2.17 3.248.437.181.924.25 1.414.236-.357.338-.65.732-.832 1.17-.499 1.205-.295 2.772.764 3.83 1.058 1.06 2.625 1.263 3.83.764.437-.181.83-.476 1.168-.832-.014.49.057.977.238 1.414C9.251 23.035 10.502 24 12 24c1.497 0 2.749-.965 3.248-2.17a3.45 3.45 0 00.238-1.416c.338.356.73.653 1.168.834 1.205.499 2.772.295 3.83-.764 1.06-1.058 1.263-2.625.764-3.83a3.459 3.459 0 00-.834-1.168 3.45 3.45 0 001.416-.238C23.035 14.749 24 13.498 24 12c0-1.497-.965-2.749-2.17-3.248a3.455 3.455 0 00-1.414-.236c.357-.338.65-.732.832-1.17.499-1.205.295-2.772-.764-3.83a3.513 3.513 0 00-2.367-1.02 3.508 3.508 0 00-1.463.256c-.437.181-.83.475-1.168.832a3.45 3.45 0 00-.238-1.414C14.749.965 13.498 0 12 0zm-.041 1.613a1.902 1.902 0 011.387 3.246v3.893L16.098 6A1.902 1.902 0 1118 7.902l-2.752 2.752h3.893a1.902 1.902 0 110 2.692h-3.893L18 16.098A1.902 1.902 0 1116.098 18l-2.752-2.752v3.893a1.902 1.902 0 11-2.692 0v-3.893L7.902 18A1.902 1.902 0 116 16.098l2.752-2.752H4.859a1.902 1.902 0 110-2.692h3.893L6 7.902A1.902 1.902 0 117.902 6l2.752 2.752V4.859a1.902 1.902 0 011.305-3.246z"/></svg>
|
Before Width: | Height: | Size: 1.4 KiB |
|
@ -1 +0,0 @@
|
|||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#3178C6"><title>TypeScript</title><path d="M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"/></svg>
|
Before Width: | Height: | Size: 1.3 KiB |
|
@ -0,0 +1,18 @@
|
|||
import { Icon } from "@iconify/react";
|
||||
|
||||
export default function AboutMe() {
|
||||
return(
|
||||
<div className="card card-content aboutme">
|
||||
<div className="media media-content">
|
||||
<p className="title is-4">
|
||||
<Icon icon="iconoir:people-tag" />
|
||||
About Me
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="content">
|
||||
{"A programmer in elementary school. I'm playing around with Next.js and home servers."}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { Icon } from "@iconify/react";
|
||||
|
||||
export default function Details() {
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
type DetailItem = {
|
||||
icon: string,
|
||||
name: string,
|
||||
value?: string,
|
||||
};
|
||||
|
||||
const details: DetailItem[] = [
|
||||
{
|
||||
icon: "iconoir:calendar",
|
||||
name: "Birthday",
|
||||
value: "2014-12-08",
|
||||
},
|
||||
{
|
||||
icon: "iconoir:map-pin",
|
||||
name: "Location",
|
||||
value: "Kanagawa, Japan",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div className="card card-content links">
|
||||
<div className="is-flex is-align-items-center" style={{ gap: "0.5em" }}>
|
||||
<Icon className="title is-4" style={{margin: "0"}} icon="iconoir:info-circle" />
|
||||
<span className="title is-4" style={{ margin: 0 }}>Details</span>
|
||||
<span
|
||||
style={{ marginLeft: "auto", cursor: "pointer" }}
|
||||
onClick={() => setOpen((prev) => !prev)}
|
||||
>
|
||||
<Icon className="title is-4" icon={open ? "iconoir:nav-arrow-down" : "iconoir:nav-arrow-right"} />
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{open && (
|
||||
<div className="content links-content" style={{ marginTop: "1em" }}>
|
||||
{details.map((item, idx) => (
|
||||
<div
|
||||
key={idx}
|
||||
className="card card-content links"
|
||||
style={{marginBottom: "0.5em"}}
|
||||
>
|
||||
<div className="is-flex is-align-items-center" style={{ gap: "0.5em" }}>
|
||||
<Icon className="title is-4" style={{margin: "0"}} icon={item.icon} />
|
||||
<span className="title is-4" style={{ margin: 0 }}>{item.name}</span>
|
||||
{item.value && (
|
||||
<span style={{ marginLeft: "auto", fontSize: "0.9em", color: "#888" }}>
|
||||
{item.value}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
|
@ -0,0 +1,113 @@
|
|||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { Icon } from "@iconify/react";
|
||||
|
||||
import {
|
||||
SiQiita,
|
||||
SiGitea
|
||||
} from "@icons-pack/react-simple-icons";
|
||||
import { IconType } from "@icons-pack/react-simple-icons";
|
||||
|
||||
type LinkItem = {
|
||||
icon: string;
|
||||
iconType: "iconify" | "simpleicons";
|
||||
name: string;
|
||||
about?: string;
|
||||
url?: string;
|
||||
};
|
||||
|
||||
const links: LinkItem[] = [
|
||||
{
|
||||
icon: "iconoir:home",
|
||||
iconType: "iconify",
|
||||
name: "Home Page",
|
||||
about: "This Page",
|
||||
url: "/",
|
||||
},
|
||||
{
|
||||
icon: "carbon:blog",
|
||||
iconType: "iconify",
|
||||
name: "Blog",
|
||||
about: "Coming soon...",
|
||||
url: "https://blog.last2014.f5.si"
|
||||
},
|
||||
{
|
||||
icon: "SiQiita",
|
||||
iconType: "simpleicons",
|
||||
name: "Qiita",
|
||||
about: "Qiita Profile",
|
||||
url: "https://qiita.com/last2014",
|
||||
},
|
||||
{
|
||||
icon: "SiGitea",
|
||||
iconType: "simpleicons",
|
||||
name: "Gitea",
|
||||
about: "Public Sourcecode",
|
||||
url: "https://gitea.last2014.f5.si/last2014",
|
||||
},
|
||||
];
|
||||
|
||||
const simpleIconMap: { [key: string]: IconType } = {
|
||||
SiQiita,
|
||||
SiGitea,
|
||||
};
|
||||
|
||||
export default function Link() {
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
return (
|
||||
<div className="card card-content links">
|
||||
<div className="is-flex is-align-items-center" style={{ gap: "0.5em" }}>
|
||||
<Icon className="title is-4" style={{ margin: "0" }} icon="iconoir:link" />
|
||||
<span className="title is-4" style={{ margin: 0 }}>Links</span>
|
||||
<span
|
||||
style={{ marginLeft: "auto", cursor: "pointer" }}
|
||||
onClick={() => setOpen((prev) => !prev)}
|
||||
>
|
||||
<Icon className="title is-4" icon={open ? "iconoir:nav-arrow-down" : "iconoir:nav-arrow-right"} />
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{open && (
|
||||
<div className="content links-content" style={{ marginTop: "1em" }}>
|
||||
{links.map((item, idx) => {
|
||||
let iconElement;
|
||||
if (item.iconType === "iconify") {
|
||||
iconElement = <Icon className="title is-4" style={{ margin: "0" }} icon={item.icon} />;
|
||||
} else if (item.iconType === "simpleicons") {
|
||||
const SimpleIcon = simpleIconMap[item.icon];
|
||||
iconElement = SimpleIcon ? <SimpleIcon className="title is-4" style={{ margin: "0" }} /> : null;
|
||||
}
|
||||
|
||||
return (
|
||||
<a
|
||||
key={idx}
|
||||
href={item.url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="card card-content links"
|
||||
style={{
|
||||
marginBottom: "0.5em",
|
||||
display: "block",
|
||||
textDecoration: "none",
|
||||
color: "inherit",
|
||||
}}
|
||||
>
|
||||
<div className="is-flex is-align-items-center" style={{ gap: "0.5em" }}>
|
||||
{iconElement}
|
||||
<span className="title is-4" style={{ margin: 0 }}>{item.name}</span>
|
||||
{item.about && (
|
||||
<span style={{ marginLeft: "auto", fontSize: "0.9em", color: "#888" }}>
|
||||
{item.about}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
</a>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
.SkillIcon {
|
||||
--SkillIconMargin: 5px;
|
||||
margin-right: var(--SkillIconMargin);
|
||||
margin-left: var(--SkillIconMargin);
|
||||
}
|
||||
|
||||
.skillsContainer {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
import {
|
||||
SiHtml5,
|
||||
SiCss,
|
||||
SiJavascript,
|
||||
SiTypescript,
|
||||
SiPhp,
|
||||
SiReact,
|
||||
SiNextdotjs,
|
||||
SiNodedotjs,
|
||||
SiBulma,
|
||||
SiGit,
|
||||
SiGitea,
|
||||
SiCloudflare,
|
||||
} from "@icons-pack/react-simple-icons";
|
||||
|
||||
// アイコン配列を作成
|
||||
const icons = [
|
||||
SiHtml5,
|
||||
SiCss,
|
||||
SiJavascript,
|
||||
SiTypescript,
|
||||
SiPhp,
|
||||
SiReact,
|
||||
SiNextdotjs,
|
||||
SiNodedotjs,
|
||||
SiBulma,
|
||||
SiGit,
|
||||
SiGitea,
|
||||
SiCloudflare
|
||||
];
|
||||
|
||||
const repeat = 3;
|
||||
const iconList = Array.from({ length: repeat })
|
||||
.flatMap(() => icons);
|
||||
|
||||
import { Icon } from "@iconify/react";
|
||||
|
||||
import Marquee from "react-fast-marquee";
|
||||
|
||||
import "./skill.css";
|
||||
|
||||
export default function Skill() {
|
||||
return (
|
||||
<div className="card card-content">
|
||||
<h1 className="title is-4">
|
||||
<Icon icon="iconoir:terminal-tag" />
|
||||
Skills
|
||||
</h1>
|
||||
<div className="content skillsContainer">
|
||||
<div className="content">
|
||||
Use these to create websites etc.
|
||||
</div>
|
||||
|
||||
<Marquee
|
||||
gradientWidth={70}
|
||||
gradientColor="#14161a"
|
||||
gradient
|
||||
className="has-text-centered"
|
||||
>
|
||||
{iconList.map((Icon, i) => (
|
||||
<Icon className="SkillIcon" size={30} key={i} />
|
||||
))}
|
||||
</Marquee>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
import Image from "next/image";
|
||||
|
||||
export default function TopProfile() {
|
||||
return(
|
||||
<div className="card card-content topCard profile">
|
||||
<div className="media">
|
||||
<div className="media-left">
|
||||
<figure className="image is-48x48">
|
||||
<Image
|
||||
id="icon"
|
||||
src="/last2014.png"
|
||||
alt="Last2014 Icon"
|
||||
width="100"
|
||||
height="100"
|
||||
/>
|
||||
</figure>
|
||||
</div>
|
||||
|
||||
<div className="media-content">
|
||||
<p className="title is-4">Last2014</p>
|
||||
<p className="subtitle is-6">@last2014</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="content">
|
||||
Web Developer
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
"use client";
|
||||
import { useEffect, useState } from "react";
|
||||
import Cookies from "js-cookie";
|
||||
import { messages } from "../messages";
|
||||
import { MessageLangProps, SupportedLanguage, isValidLanguage } from "../types";
|
||||
|
||||
interface MessageLangPropsWithStyle
|
||||
extends MessageLangProps,
|
||||
React.HTMLAttributes<HTMLSpanElement> {}
|
||||
|
||||
export function MessageLang({
|
||||
text,
|
||||
data = [],
|
||||
...htmlProps
|
||||
}: MessageLangPropsWithStyle) {
|
||||
const [lang, setLang] = useState<SupportedLanguage>("ja");
|
||||
|
||||
useEffect(() => {
|
||||
const browserLang = navigator.language.split("-")[0];
|
||||
const savedLang = Cookies.get("lang") || browserLang || "ja";
|
||||
if (isValidLanguage(savedLang)) {
|
||||
setLang(savedLang);
|
||||
Cookies.set("lang", savedLang);
|
||||
}
|
||||
}, []);
|
||||
|
||||
let message = messages[lang][text];
|
||||
data.forEach((value, index) => {
|
||||
message = message.replace(new RegExp("\\{" + index + "\\}", "g"), value);
|
||||
});
|
||||
|
||||
return <span dangerouslySetInnerHTML={{ __html: message }} {...htmlProps} />;
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
import { cookies } from 'next/headers';
|
||||
import { messages } from '../messages';
|
||||
import { MessageLangProps, isValidLanguage } from '../types';
|
||||
|
||||
export async function MessageLang({ text, data = [] }: MessageLangProps) {
|
||||
const cookieStore = await cookies();
|
||||
const savedLang = cookieStore.get('lang')?.value || 'ja';
|
||||
const lang = isValidLanguage(savedLang) ? savedLang : 'ja';
|
||||
|
||||
let message = messages[lang][text];
|
||||
|
||||
data.forEach((value, index) => {
|
||||
message = message.replace(new RegExp('\\{' + index + '\\}', 'g'), value);
|
||||
});
|
||||
|
||||
return <span dangerouslySetInnerHTML={{__html: message}} />;
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
import { messages } from '../messages';
|
||||
import { MessageLangProps, SupportedLanguage } from '../types';
|
||||
|
||||
export function MessageLangVar({
|
||||
text, data = [],
|
||||
variables = {}
|
||||
}: MessageLangProps & {
|
||||
variables?: Record<string, string>;
|
||||
}, langFunc?: string) {
|
||||
const lang: SupportedLanguage = (langFunc as SupportedLanguage) || 'ja';
|
||||
|
||||
let message = messages[lang][text];
|
||||
|
||||
data.forEach((value, index) => {
|
||||
message = message.replace(new RegExp('\\{' + index + '\\}', 'g'), value);
|
||||
});
|
||||
|
||||
if (variables) {
|
||||
Object.keys(variables).forEach(key => {
|
||||
message = message.replace(new RegExp('\\{' + key + '\\}', 'g'), variables[key]);
|
||||
});
|
||||
}
|
||||
|
||||
return message;
|
||||
}
|
|
@ -1,95 +0,0 @@
|
|||
export const messages = {
|
||||
ja: {
|
||||
PeasAboutTitle: "Peasについて",
|
||||
PeasAboutText: `
|
||||
Peasはプロフィール共有を目的としたSNSです。<br />
|
||||
ユーザーのプロフィールを登録し、共有することが出来ます。<br />
|
||||
学校や職場で使用できるようなプロフィール欄も自由に作成でき、公開設定も変更できます。<br />
|
||||
QRコードの印刷にも対応していて共有にも最適です。
|
||||
`,
|
||||
ServerAboutTitle: "このサーバーについて",
|
||||
or: "または",
|
||||
and: "と",
|
||||
agree: "同意",
|
||||
Start: "今すぐ始める",
|
||||
Signin: "サインイン",
|
||||
Signup: "サインアップ",
|
||||
email: "メールアドレス",
|
||||
password: "パスワード",
|
||||
username: "ユーザー名",
|
||||
idHelp: "@から始まる英数字のID(3文字以上)",
|
||||
mailHelp: "メールアドレスは受信できるものを使用してください",
|
||||
passwordHelp: "8文字以上のパスワードを使用してください",
|
||||
signinError: "サインインに失敗しました",
|
||||
mailVerify: "メール認証",
|
||||
code: "コード",
|
||||
submit: "送信",
|
||||
codeCharacterCount: "コードは6桁で入力してください",
|
||||
emailVerificationSuccess: `
|
||||
メール認証に成功しました。
|
||||
ログインしてください。
|
||||
`,
|
||||
connectionError: "通信エラー",
|
||||
accountCreateSuccess: `
|
||||
アカウントの作成に成功しました。
|
||||
ご登録いただいたメールアドレスに確認用メールを送信しました。
|
||||
確認メールをクリックしてアカウントを有効化してください。
|
||||
`,
|
||||
sameUsername: "同じユーザー名が既に使用されています",
|
||||
termsAgreement: "利用規約とプライバシーポリシーに同意してください",
|
||||
bodyRequired: "フォーム内容が送信されていません",
|
||||
passwordCharacterLimit: "パスワードは8文字以上にしてください",
|
||||
usernameRestriction: "ユーザー名は3文字以上の英数字のIDにしてください",
|
||||
userCreationFailed: "ユーザーの作成に失敗しました",
|
||||
terms: "利用規約",
|
||||
privacypolicy: "プライバシーポリシー",
|
||||
},
|
||||
en: {
|
||||
PeasAboutTitle: "About Peas",
|
||||
PeasAboutText: `
|
||||
Peas is a SNS designed for sharing profiles.<br />
|
||||
You can register and share your user profile.<br />
|
||||
You can freely create profile sections suitable for use at school or work, and also change the privacy settings.<br />
|
||||
It also supports printing QR codes, making sharing easy.
|
||||
`,
|
||||
ServerAboutTitle: "About this server",
|
||||
or: "or",
|
||||
and: "and",
|
||||
agree: "Agree",
|
||||
Start: "Get started now",
|
||||
Signin: "Sign In",
|
||||
Signup: "Sign Up",
|
||||
email: "Email",
|
||||
password: "Password",
|
||||
username: "Username",
|
||||
idHelp:
|
||||
"ID starting with @ and consisting of English numbers (at least 3 characters)",
|
||||
mailHelp: "Use an email address that can be received",
|
||||
passwordHelp: "Use a password of at least 8 characters",
|
||||
signinError: "Sign in failed",
|
||||
mailVerify: "Mail Verify",
|
||||
code: "Code",
|
||||
submit: "Submit",
|
||||
codeCharacterCount: "Please enter a 6-digit code",
|
||||
emailVerificationSuccess: `
|
||||
Email verification successful.
|
||||
Please log in.
|
||||
`,
|
||||
connectionError: "Connection Error",
|
||||
accountCreateSuccess: `
|
||||
Your account has been successfully created.
|
||||
We have sent a confirmation email to the email address you registered.
|
||||
Please click the confirmation email to activate your account.
|
||||
`,
|
||||
sameUsername: "That username is already taken",
|
||||
termsAgreement: "Please agree to the Terms of Service and Privacy Policy",
|
||||
bodyRequired: "Form contents have not been submitted",
|
||||
passwordCharacterLimit:
|
||||
"Please make your password at least 8 characters long.",
|
||||
usernameRestriction:
|
||||
"Please make your username an alphanumeric ID with at least 3 characters.",
|
||||
userCreationFailed: "Failed to create the user.",
|
||||
terms: "Terms of Service",
|
||||
privacypolicy: "Privacy Policy",
|
||||
},
|
||||
};
|
|
@ -1,21 +0,0 @@
|
|||
import { messages } from './messages';
|
||||
|
||||
// 言語取得
|
||||
export type SupportedLanguage = keyof typeof messages;
|
||||
|
||||
// メッセージキー取得
|
||||
export type MessageKey = keyof typeof messages['ja'];
|
||||
|
||||
// メッセージ定義
|
||||
export type Messages = typeof messages;
|
||||
|
||||
// コンポーネント定義
|
||||
export type MessageLangProps = {
|
||||
text: MessageKey;
|
||||
data?: string[];
|
||||
};
|
||||
|
||||
// 言語コード確認関数
|
||||
export function isValidLanguage(lang: string): lang is SupportedLanguage {
|
||||
return Object.keys(messages).includes(lang);
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
import mysql from "mysql2/promise";
|
||||
import PeasConfig from "@/../peas.config";
|
||||
|
||||
const pool = mysql.createPool({
|
||||
host: PeasConfig.databaseHost,
|
||||
port: PeasConfig.databasePort,
|
||||
user: PeasConfig.databaseUser,
|
||||
password: PeasConfig.databasePassword,
|
||||
database: PeasConfig.databaseDB,
|
||||
waitForConnections: true,
|
||||
connectionLimit: 10,
|
||||
});
|
||||
|
||||
export default pool;
|
|
@ -1,51 +0,0 @@
|
|||
import * as nodemailer from "nodemailer";
|
||||
import type SMTPTransport from "nodemailer/lib/smtp-transport";
|
||||
import PeasConfig from "@/../peas.config";
|
||||
|
||||
export interface EmailMessage {
|
||||
to: string | string[];
|
||||
subject: string;
|
||||
text?: string;
|
||||
html?: string;
|
||||
}
|
||||
|
||||
export async function createTransporter() {
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: PeasConfig.smtpHost,
|
||||
port: PeasConfig.smtpPort,
|
||||
secure: PeasConfig.smtpSecure,
|
||||
auth: {
|
||||
user: PeasConfig.smtpUser,
|
||||
pass: PeasConfig.smtpPassword,
|
||||
},
|
||||
debug: process.env.DEBUG === "true",
|
||||
} as SMTPTransport.Options);
|
||||
|
||||
// 接続テスト
|
||||
try {
|
||||
await transporter.verify();
|
||||
console.log("SMTPサーバーに接続できました");
|
||||
} catch (error) {
|
||||
console.error("SMTP接続テストに失敗:", error);
|
||||
throw error;
|
||||
}
|
||||
|
||||
return transporter;
|
||||
}
|
||||
|
||||
export async function sendMail(message: EmailMessage): Promise<void> {
|
||||
try {
|
||||
const transporter = await createTransporter();
|
||||
await transporter.sendMail({
|
||||
from: PeasConfig.smtpUser,
|
||||
to: Array.isArray(message.to) ? message.to.join(",") : message.to,
|
||||
subject: message.subject,
|
||||
text: message.text,
|
||||
html: message.html,
|
||||
});
|
||||
console.log("メール送信成功");
|
||||
} catch (error) {
|
||||
console.error("メール送信に失敗しました:", error);
|
||||
throw error;
|
||||
}
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
interface SSLConfig {
|
||||
ssl: boolean;
|
||||
}
|
||||
|
||||
export interface PeasConfigType {
|
||||
// Server Config
|
||||
serverName: string;
|
||||
serverDescription: string;
|
||||
serverHost: string;
|
||||
// SSL Config
|
||||
ssl: SSLConfig;
|
||||
// SMTP Config
|
||||
smtpHost: string;
|
||||
smtpPort: number;
|
||||
smtpSecure: boolean;
|
||||
smtpUser: string;
|
||||
smtpPassword: string;
|
||||
// Database Config
|
||||
databaseHost: string;
|
||||
databasePort: number;
|
||||
databaseUser: string;
|
||||
databasePassword: string;
|
||||
databaseDB: string;
|
||||
}
|
|
@ -8,7 +8,7 @@
|
|||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
|
|