Fixed working version
|
@ -0,0 +1,3 @@
|
|||
application/node_modules
|
||||
application/npm-debug.log
|
||||
application/src/.next
|
|
@ -0,0 +1,2 @@
|
|||
application/node_modules
|
||||
application/src/.next
|
|
@ -0,0 +1,25 @@
|
|||
FROM node:16-bullseye AS build
|
||||
ENV POSTGRES_URL='postgresql://fedisearch:passwd@postgres:5432/fedisearch?schema=public' \
|
||||
NEXT_PUBLIC_MATOMO_URL='' \
|
||||
NEXT_PUBLIC_MATOMO_SITE_ID=''
|
||||
WORKDIR /srv
|
||||
COPY application/package*.json ./
|
||||
COPY application/prisma ./prisma/
|
||||
RUN npm install --frozen-lockfile
|
||||
COPY application/. .
|
||||
RUN npm run build
|
||||
|
||||
FROM build as dev
|
||||
CMD npm run dev
|
||||
|
||||
FROM node:16-bullseye AS prod
|
||||
RUN groupadd -g 1001 nodejs
|
||||
RUN useradd -u 1001 -g 1001 nextjs
|
||||
USER nextjs
|
||||
EXPOSE 3000
|
||||
WORKDIR /srv
|
||||
COPY --from=build /srv/node_modules ./node_modules
|
||||
COPY --from=build /srv/package*.json ./
|
||||
COPY --from=build --chown=nextjs:nodejs /srv/src/.next ./.next
|
||||
COPY --from=build /srv/src/public ./public
|
||||
CMD node_modules/.bin/next start
|
|
@ -0,0 +1,674 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
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 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 General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU 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 the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
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 GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
|
@ -0,0 +1,25 @@
|
|||
# FediSearch
|
||||
|
||||
Search accounts and channels to follow on Fediverse
|
||||
|
||||
App makes queries to database of collected Fediverse feeds and nodes.
|
||||
|
||||
Only fulltext search is currently supported. More precise filtering is planned for one of the future releases.
|
||||
|
||||
## Config
|
||||
|
||||
Configuration is done using environmental variables:
|
||||
|
||||
| Variable | Description | Value example |
|
||||
|------------------------------|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|
|
||||
| `POSTGRES_URL` | Postgres database uri | `postgresql://fedisearch:passwd@postgres:5432/fedisearch?schema=public` |
|
||||
| `NEXT_PUBLIC_MATOMO_URL` | Optional url of Matomo server for collecting usage statistics. Leaving it empty disables collecting analytics. | `https://matomo.myserver.tld` |
|
||||
| `NEXT_PUBLIC_MATOMO_SITE_ID` | Optional Matomo site id parameter for collecting usage statistics. Leaving it empty disables collecting analytics. | `8` |
|
||||
|
||||
## Deploy
|
||||
|
||||
App is designed to be run in docker container and deployed using docker-compose. More info can be found
|
||||
in [FediSearch example docker-compose](https://github.com/Stopka/fedisearch-compose) project
|
||||
|
||||
For crawling Fediverse network and collecting feeds to database there is a companion
|
||||
app [FediCrawl](https://github.com/Stopka/fedicrawl)
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:react/recommended",
|
||||
"eslint:recommended",
|
||||
"plugin:@next/next/recommended",
|
||||
"standard"
|
||||
],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"ecmaVersion": 12,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"react",
|
||||
"@typescript-eslint",
|
||||
"react",
|
||||
"react-hooks",
|
||||
"jsx-a11y",
|
||||
"import",
|
||||
"@next/next"
|
||||
],
|
||||
"rules": {
|
||||
"no-use-before-define": "off",
|
||||
"@typescript-eslint/no-use-before-define": ["error"]
|
||||
},
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "detect"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"printWidth": 100,
|
||||
"singleQuote": true
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"name": "fedisearch",
|
||||
"version": "1.0.0",
|
||||
"description": "FediSearch",
|
||||
"main": "app.js",
|
||||
"private": true,
|
||||
"author": "Štěpán Škorpil",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"dev": "next dev ./src --hostname 0.0.0.0",
|
||||
"build": "next build ./src",
|
||||
"start": "next start ./src",
|
||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@datapunt/matomo-tracker-js": "^0.5.1",
|
||||
"@hookform/resolvers": "^2.8.5",
|
||||
"@prisma/client": "^3.6.0",
|
||||
"axios": "^0.21.1",
|
||||
"next": "^12.0.7",
|
||||
"npmlog": "^6.0.0",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2",
|
||||
"sass": "^1.45.1",
|
||||
"striptags": "^3.2.0",
|
||||
"typescript-collections": "^1.3.3",
|
||||
"zod": "^3.11.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/eslint-plugin-next": "^12.0.7",
|
||||
"@types/jest": "^27.0.2",
|
||||
"@types/node": "^16.11.10",
|
||||
"@types/npmlog": "^4.1.3",
|
||||
"@types/react": "^17.0.14",
|
||||
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
||||
"@typescript-eslint/parser": "^5.4.0",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-standard": "^16.0.3",
|
||||
"eslint-plugin-import": "^2.25.3",
|
||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^5.1.1",
|
||||
"eslint-plugin-react": "^7.27.1",
|
||||
"eslint-plugin-react-hooks": "^4.3.0",
|
||||
"jest": "^27.3.0",
|
||||
"prisma": "^3.6.0",
|
||||
"standard": "*",
|
||||
"ts-jest": "^27.0.7",
|
||||
"typescript": "^4.3.5"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,115 @@
|
|||
datasource db {
|
||||
url = env("POSTGRES_URL")
|
||||
provider = "postgresql"
|
||||
}
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
previewFeatures = ["extendedIndexes","fullTextSearch"]
|
||||
}
|
||||
|
||||
model Tag {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
name String @unique
|
||||
feedToTag FeedToTag[]
|
||||
}
|
||||
|
||||
model Email {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
address String
|
||||
feed Feed @relation(fields: [feedId], references: [id])
|
||||
feedId String @db.Uuid
|
||||
|
||||
@@index([address])
|
||||
}
|
||||
|
||||
model FeedToTag {
|
||||
feed Feed @relation(fields: [feedId], references: [id])
|
||||
feedId String @db.Uuid
|
||||
tag Tag @relation(fields: [tagId], references: [id])
|
||||
tagId String @db.Uuid
|
||||
|
||||
@@id([feedId, tagId])
|
||||
}
|
||||
|
||||
model Field {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
name String
|
||||
value String
|
||||
feed Feed @relation(fields: [feedId], references: [id])
|
||||
feedId String @db.Uuid
|
||||
|
||||
@@index([name])
|
||||
@@index([value])
|
||||
}
|
||||
|
||||
enum FeedTypeBadge{
|
||||
account
|
||||
channel
|
||||
}
|
||||
|
||||
model Feed {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
node Node @relation(fields: [nodeId], references: [id])
|
||||
nodeId String @db.Uuid
|
||||
foundAt DateTime @default(now())
|
||||
refreshedAt DateTime @updatedAt
|
||||
name String
|
||||
displayName String
|
||||
description String
|
||||
feedToTags FeedToTag[]
|
||||
fields Field[]
|
||||
emails Email[]
|
||||
followersCount Int
|
||||
followingCount Int
|
||||
statusesCount Int?
|
||||
bot Boolean?
|
||||
url String
|
||||
avatar String?
|
||||
locked Boolean
|
||||
lastStatusAt DateTime?
|
||||
createdAt DateTime
|
||||
type FeedTypeBadge @default(account)
|
||||
parentFeedName String?
|
||||
parentFeedDomain String?
|
||||
fulltext String @default("")
|
||||
|
||||
@@index([displayName])
|
||||
@@index([description])
|
||||
@@index([bot])
|
||||
@@index([locked])
|
||||
@@index([lastStatusAt])
|
||||
@@index([createdAt])
|
||||
@@index([refreshedAt])
|
||||
@@index([parentFeedName,parentFeedDomain])
|
||||
@@index([type])
|
||||
@@index([fulltext])
|
||||
@@unique([name, nodeId])
|
||||
}
|
||||
|
||||
model Node {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
softwareName String?
|
||||
softwareVersion String?
|
||||
totalUserCount Int?
|
||||
monthActiveUserCount Int?
|
||||
halfYearActiveUserCount Int?
|
||||
statusesCount Int?
|
||||
openRegistrations Boolean?
|
||||
foundAt DateTime @default(now())
|
||||
refreshedAt DateTime?
|
||||
refreshAttemptedAt DateTime?
|
||||
domain String @unique
|
||||
feeds Feed[]
|
||||
|
||||
@@index([softwareName])
|
||||
@@index([softwareVersion])
|
||||
@@index([totalUserCount])
|
||||
@@index([monthActiveUserCount])
|
||||
@@index([halfYearActiveUserCount])
|
||||
@@index([statusesCount])
|
||||
@@index([openRegistrations])
|
||||
@@index([refreshedAt])
|
||||
@@index([refreshAttemptedAt])
|
||||
@@index([foundAt])
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
import React from 'react'
|
||||
import { FeedResponseItem } from '../types/FeedResponse'
|
||||
|
||||
const Avatar:React.FC<{feed:FeedResponseItem}> = ({ feed }) => {
|
||||
const fallbackImage = '/avatar.svg'
|
||||
|
||||
const handleAvatarImageError = (event) => {
|
||||
event.target.src = fallbackImage
|
||||
}
|
||||
|
||||
return (
|
||||
<img
|
||||
className={'avatar'}
|
||||
src={feed.avatar ?? fallbackImage}
|
||||
alt={'Avatar'}
|
||||
onError={handleAvatarImageError}
|
||||
/>
|
||||
)
|
||||
}
|
||||
export default Avatar
|
|
@ -0,0 +1,11 @@
|
|||
import React from 'react'
|
||||
|
||||
const Footer:React.FC = () => {
|
||||
return (
|
||||
<footer>
|
||||
©{(new Date()).getFullYear()} <a href={'https://skorpil.cz'}>skorpil.cz</a>
|
||||
</footer>
|
||||
)
|
||||
}
|
||||
|
||||
export default Footer
|
|
@ -0,0 +1,44 @@
|
|||
import React, { useEffect } from 'react'
|
||||
import Head from 'next/head'
|
||||
import { tracker } from '../lib/matomo'
|
||||
import Footer from './Footer'
|
||||
|
||||
export const siteTitle = 'FediSearch'
|
||||
|
||||
const Layout:React.FC<{ children: React.ReactNode }> = ({ children }) => {
|
||||
useEffect(() => {
|
||||
tracker.trackPageView()
|
||||
})
|
||||
return (
|
||||
<div className={'container'}>
|
||||
<Head>
|
||||
<link rel="icon" href="/fedisearch.png"/>
|
||||
<meta
|
||||
name="description"
|
||||
content="Learn how to build a personal website using Next.js"
|
||||
/>
|
||||
<meta
|
||||
property="og:image"
|
||||
content={'/fedisearch.png'}
|
||||
/>
|
||||
<meta name="og:title" content={siteTitle}/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
</Head>
|
||||
<header>
|
||||
<h1><a href={'/'}>FediSearch</a></h1>
|
||||
<a href={'/'} className={'logo'}>
|
||||
<img
|
||||
src="/fedisearch.svg"
|
||||
alt={'FediSearch logo'}
|
||||
/>
|
||||
</a>
|
||||
</header>
|
||||
<main>
|
||||
{children}
|
||||
</main>
|
||||
<Footer/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Layout
|
|
@ -0,0 +1,26 @@
|
|||
import React, { ReactNode } from 'react'
|
||||
|
||||
const Loader:React.FC<{ children: ReactNode, loading: boolean }> = ({ children, loading }) => {
|
||||
return (
|
||||
<div className={'loader' + (loading ? ' -loading' : '')}>
|
||||
<div className={'loader-content'}>
|
||||
{children}
|
||||
</div>
|
||||
<div className={'loader-visualisation'}>
|
||||
{loading
|
||||
? (
|
||||
<>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" className='loader-graphics' width="34" height="34">
|
||||
<path className="rail" d="m 16.977523,0.24095147 c -9.2629169,0 -16.73280045,7.51449143 -16.73280045,16.77740253 0,9.262912 7.46988355,16.777403 16.73280045,16.777403 9.262917,0 16.777413,-7.514491 16.777413,-16.777403 0,-9.2629111 -7.514496,-16.77740253 -16.777413,-16.77740253 z m 0,4.14972823 c 6.966927,0 12.627682,5.6607523 12.627682,12.6276743 0,6.966923 -5.660755,12.583053 -12.627682,12.583053 -6.966937,0 -12.5830596,-5.61613 -12.5830596,-12.583053 0,-6.966922 5.6161226,-12.6276743 12.5830596,-12.6276743 z" />
|
||||
<path className="train" d="M 31.677259,17.003529 A 14.680208,14.680199 0 0 1 20.796571,31.183505" />
|
||||
</svg>
|
||||
<span>Loading...</span>
|
||||
</>
|
||||
)
|
||||
: ''}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Loader
|
|
@ -0,0 +1,71 @@
|
|||
import React, { useEffect } from 'react'
|
||||
import striptags from 'striptags'
|
||||
import Avatar from './Avatar'
|
||||
import SoftwareBadge from './badges/SoftwareBadge'
|
||||
import FeedTypeBadge from './badges/FeedTypeBadge'
|
||||
import SubscriptionsBadge from './badges/SubscriptionsBadge'
|
||||
import CreatedAtBadge from './badges/CreatedAtBadge'
|
||||
import LastPostAtBadge from './badges/LastPostAtBadge'
|
||||
import BotBadge from './badges/BotBadge'
|
||||
import { FeedResponseField, FeedResponseItem } from '../types/FeedResponse'
|
||||
|
||||
const Result:React.FC<{ feed:FeedResponseItem }> = ({ feed }) => {
|
||||
const fallbackEmojiImage = '/emoji.svg'
|
||||
|
||||
const handleEmojiImageError = (event) => {
|
||||
event.target.src = fallbackEmojiImage
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
document.querySelectorAll('.with-emoji img').forEach(element => {
|
||||
if (element.attributes['data-error-handler']) {
|
||||
return
|
||||
}
|
||||
element.addEventListener('error', handleEmojiImageError)
|
||||
element.setAttribute('data-error-handler', 'attached')
|
||||
})
|
||||
})
|
||||
|
||||
return (
|
||||
<section className={'feed'}>
|
||||
<h3 className={'display-name with-emoji'}>
|
||||
<a href={feed.url}
|
||||
dangerouslySetInnerHTML={{ __html: striptags(feed.displayName, ['img']) }}
|
||||
/>
|
||||
</h3>
|
||||
<Avatar feed={feed}/>
|
||||
<div className={'address'}>
|
||||
<span>{feed.name}@{feed.node.domain}</span>
|
||||
</div>
|
||||
<div className={'badges'}>
|
||||
<SoftwareBadge softwareName={feed.node.softwareName}/>
|
||||
<FeedTypeBadge type={feed.type}/>
|
||||
<SubscriptionsBadge followingCount={feed.followingCount} followersCount={feed.followersCount}/>
|
||||
<CreatedAtBadge createdAt={feed.createdAt}/>
|
||||
<LastPostAtBadge lastStatusAt={feed.lastStatusAt}/>
|
||||
<BotBadge bot={feed.bot}/>
|
||||
</div>
|
||||
{feed.fields.length > 0
|
||||
? (
|
||||
<table className={'fields'}>
|
||||
{
|
||||
feed.fields.map((field:FeedResponseField, index:number):React.ReactNode => {
|
||||
return (
|
||||
<tr key={index}>
|
||||
<th className={'with-emoji'}
|
||||
dangerouslySetInnerHTML={{ __html: striptags(field.name, ['a', 'strong', 'em', 'img']) }}/>
|
||||
<td className={'with-emoji'}
|
||||
dangerouslySetInnerHTML={{ __html: striptags(field.value, ['a', 'strong', 'em', 'img']) }}/>
|
||||
</tr>
|
||||
)
|
||||
})
|
||||
}
|
||||
</table>
|
||||
)
|
||||
: ''}
|
||||
<div className={'description with-emoji'}
|
||||
dangerouslySetInnerHTML={{ __html: striptags(feed.description, ['img', 'p', 'strong', 'em', 'br', 'a']) }}/>
|
||||
</section>)
|
||||
}
|
||||
|
||||
export default Result
|
|
@ -0,0 +1,25 @@
|
|||
import React from 'react'
|
||||
import Result from './Result'
|
||||
import { FeedResponseItem } from '../types/FeedResponse'
|
||||
|
||||
const Results:React.FC<{feeds:FeedResponseItem[]}> = ({ feeds }) => {
|
||||
if (feeds.length === 0) {
|
||||
return (
|
||||
<>
|
||||
<h2>Nothing found</h2>
|
||||
<p className={'no-results'}>We have no results for your query.</p>
|
||||
</>
|
||||
)
|
||||
}
|
||||
return (<>
|
||||
<h2>Results</h2>
|
||||
{
|
||||
feeds.map((feed, index) => {
|
||||
console.info('feed', feed)
|
||||
return (<Result key={index} feed={feed}/>)
|
||||
})
|
||||
}
|
||||
</>)
|
||||
}
|
||||
|
||||
export default Results
|
|
@ -0,0 +1,17 @@
|
|||
import React from 'react'
|
||||
|
||||
const BotBadge:React.FC<{ bot: boolean | null }> = ({ bot }) => {
|
||||
return (
|
||||
<div className={' badge bot'} title={'Bot'}>
|
||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="robot"
|
||||
className="svg-inline--fa fa-robot fa-w-20" role="img" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 640 512">
|
||||
<path fill="currentColor"
|
||||
d="M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"/>
|
||||
</svg>
|
||||
<span className={'label'}>Bot</span>
|
||||
<span className={'value'}>{bot !== null ? (bot ? 'Yes' : 'No') : '?'}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default BotBadge
|
|
@ -0,0 +1,17 @@
|
|||
import React from 'react'
|
||||
|
||||
const CreatedAtBadge:React.FC<{ createdAt: string | null }> = ({ createdAt }) => {
|
||||
return (
|
||||
<div className={'badge created-at'} title={'Created at'}>
|
||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="star-of-life"
|
||||
className="svg-inline--fa fa-star-of-life fa-w-15" role="img" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 480 512">
|
||||
<path fill="currentColor"
|
||||
d="M471.99 334.43L336.06 256l135.93-78.43c7.66-4.42 10.28-14.2 5.86-21.86l-32.02-55.43c-4.42-7.65-14.21-10.28-21.87-5.86l-135.93 78.43V16c0-8.84-7.17-16-16.01-16h-64.04c-8.84 0-16.01 7.16-16.01 16v156.86L56.04 94.43c-7.66-4.42-17.45-1.79-21.87 5.86L2.15 155.71c-4.42 7.65-1.8 17.44 5.86 21.86L143.94 256 8.01 334.43c-7.66 4.42-10.28 14.21-5.86 21.86l32.02 55.43c4.42 7.65 14.21 10.27 21.87 5.86l135.93-78.43V496c0 8.84 7.17 16 16.01 16h64.04c8.84 0 16.01-7.16 16.01-16V339.14l135.93 78.43c7.66 4.42 17.45 1.8 21.87-5.86l32.02-55.43c4.42-7.65 1.8-17.43-5.86-21.85z"/>
|
||||
</svg>
|
||||
<span className={'label'}>Created at</span>
|
||||
<span className={'value'}>{createdAt !== null ? (new Date(createdAt)).toLocaleDateString() : '?'}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default CreatedAtBadge
|
|
@ -0,0 +1,34 @@
|
|||
import React from 'react'
|
||||
|
||||
const FeedTypeBadge:React.FC<{ type: 'account' | 'channel' }> = ({ type }) => {
|
||||
if (type === 'channel') {
|
||||
return (
|
||||
<div className={'badge feed-type'} title={'Feed type'}>
|
||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="rss"
|
||||
className="feed-type svg-inline--fa fa-rss fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 448 512">
|
||||
<path fill="currentColor"
|
||||
d="M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"/>
|
||||
<title>Channel</title>
|
||||
</svg>
|
||||
<span className={'label'}>Feed type</span>
|
||||
<span className={'value'}>Channel</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<div className={'badge feed-type'} title={'Feed type'}>
|
||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user"
|
||||
className="feed-type svg-inline--fa fa-user fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 448 512">
|
||||
<path fill="currentColor"
|
||||
d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"/>
|
||||
<title>Account</title>
|
||||
</svg>
|
||||
<span className={'label'}>Feed type</span>
|
||||
<span className={'value'}>Account</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default FeedTypeBadge
|
|
@ -0,0 +1,19 @@
|
|||
import React from 'react'
|
||||
|
||||
const LastPostAtBadge:React.FC<{ lastStatusAt: string | null }> = ({ lastStatusAt }) => {
|
||||
return (
|
||||
<div className={'badge last-status-at'} title={'Last status at'}>
|
||||
|
||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="comment-alt"
|
||||
className="svg-inline--fa fa-comment-alt fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512">
|
||||
<path fill="currentColor"
|
||||
d="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"/>
|
||||
</svg>
|
||||
<span className={'label'}>Last status at</span>
|
||||
<span className={'value'}>{lastStatusAt !== null ? (new Date(lastStatusAt)).toLocaleDateString() : '?'}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default LastPostAtBadge
|
|
@ -0,0 +1,21 @@
|
|||
import React from 'react'
|
||||
|
||||
const SoftwareBadge:React.FC<{softwareName:string|null}> = ({ softwareName }) => {
|
||||
const fallbackImage = '/software/fediverse.svg'
|
||||
|
||||
const handleSoftwareImageError = (event) => {
|
||||
event.target.src = fallbackImage
|
||||
}
|
||||
|
||||
return (<div className={'badge software-name'}>
|
||||
<img className={'icon'}
|
||||
src={softwareName !== null ? `/software/${softwareName}.svg` : fallbackImage}
|
||||
alt={softwareName}
|
||||
title={softwareName}
|
||||
onError={handleSoftwareImageError}
|
||||
/>
|
||||
<span className={'value'}>{softwareName}</span>
|
||||
</div>)
|
||||
}
|
||||
|
||||
export default SoftwareBadge
|
|
@ -0,0 +1,27 @@
|
|||
import React from 'react'
|
||||
|
||||
const SubscriptionsBadge:React.FC<{ followingCount: number | null, followersCount: number | null }> = (
|
||||
{ followingCount, followersCount }
|
||||
) => {
|
||||
return (
|
||||
<div className={'badge subscriptions'}>
|
||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="eye"
|
||||
className="svg-inline--fa fa-eye fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 576 512">
|
||||
<path fill="currentColor"
|
||||
d="M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"/>
|
||||
<title>Subscriptions</title>
|
||||
</svg>
|
||||
<div className={'following'} title={'Following'}>
|
||||
<span className={'label'}>Following</span>
|
||||
<span className={'value'}>{followingCount !== null ? followingCount : '?'}</span>
|
||||
</div>
|
||||
<div className={'followers'} title={'Followers'}>
|
||||
<span className={'label'}>Followers</span>
|
||||
<span className={'value'}>{followersCount !== null ? followersCount : '?'}</span>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default SubscriptionsBadge
|
|
@ -0,0 +1,12 @@
|
|||
import MatomoTracker from '@datapunt/matomo-tracker-js'
|
||||
|
||||
export const tracker = new MatomoTracker({
|
||||
urlBase: typeof process.env.NEXT_PUBLIC_MATOMO_URL === 'string' && process.env.NEXT_PUBLIC_MATOMO_URL !== ''
|
||||
? process.env.NEXT_PUBLIC_MATOMO_URL
|
||||
: 'https://dummy.url',
|
||||
siteId: parseInt(typeof process.env.NEXT_PUBLIC_MATOMO_SITE_ID === 'string' && process.env.NEXT_PUBLIC_MATOMO_SITE_ID !== ''
|
||||
? process.env.NEXT_PUBLIC_MATOMO_SITE_ID
|
||||
: '1'
|
||||
),
|
||||
disabled: !process.env.NEXT_PUBLIC_MATOMO_URL || !process.env.NEXT_PUBLIC_MATOMO_SITE_ID
|
||||
})
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
export const pageLimit = 20
|
|
@ -0,0 +1,19 @@
|
|||
import { PrismaClient } from '@prisma/client'
|
||||
|
||||
// PrismaClient is attached to the `global` object in development to prevent
|
||||
// exhausting your database connection pageLimit.
|
||||
//
|
||||
// Learn more:
|
||||
// https://pris.ly/d/help/next-js-best-practices
|
||||
|
||||
let prisma: PrismaClient
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
prisma = new PrismaClient()
|
||||
} else {
|
||||
if (!global.prisma) {
|
||||
global.prisma = new PrismaClient()
|
||||
}
|
||||
prisma = global.prisma
|
||||
}
|
||||
export default prisma
|
|
@ -0,0 +1,49 @@
|
|||
import { ZodSchema } from 'zod'
|
||||
|
||||
export function preserveUndefined<Source, Target> (cast: (value:Source)=>Target) {
|
||||
return (value:Source|undefined):Target|undefined => {
|
||||
if (value === undefined) {
|
||||
return undefined
|
||||
}
|
||||
return cast(value)
|
||||
}
|
||||
}
|
||||
|
||||
export function preserveNull<Source, Target> (cast: (value:Source)=>Target) {
|
||||
return (value:Source|null):Target|null => {
|
||||
if (value === null) {
|
||||
return null
|
||||
}
|
||||
return cast(value)
|
||||
}
|
||||
}
|
||||
|
||||
export function stringToInt (value: string): number {
|
||||
return parseInt(value)
|
||||
}
|
||||
|
||||
export function stringToBool (value:string):boolean {
|
||||
switch (value) {
|
||||
case 'true':
|
||||
case '1':
|
||||
case 'on':
|
||||
case 'yes':
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
export function transform<Target> (originalSchema:ZodSchema<any>, cast:(value:unknown)=>Target, newSchema:ZodSchema<any>) {
|
||||
return originalSchema.refine(
|
||||
value => {
|
||||
try {
|
||||
value = cast(value)
|
||||
newSchema.parse(value)
|
||||
} catch (err) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
).transform(cast)
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
|
@ -0,0 +1,9 @@
|
|||
import '../styles/global.scss'
|
||||
import { AppProps } from 'next/app'
|
||||
import React from 'react'
|
||||
|
||||
const App:React.FC<AppProps> = ({ Component, pageProps }) => {
|
||||
return <Component {...pageProps} />
|
||||
}
|
||||
|
||||
export default App
|
|
@ -0,0 +1,74 @@
|
|||
import prisma from '../../lib/prisma'
|
||||
import { pageLimit } from '../../lib/pageLimit'
|
||||
import { feedRequestSchema } from '../../types/FeedRequest'
|
||||
import { NextApiRequest, NextApiResponse } from 'next'
|
||||
import { FeedResponse } from '../../types/FeedResponse'
|
||||
|
||||
const handleFeedSearch = async (req:NextApiRequest, res:NextApiResponse<FeedResponse>):Promise<void> => {
|
||||
console.info('Searching feeds', { query: req.query })
|
||||
|
||||
const feedRequest = feedRequestSchema.parse(req.query)
|
||||
const phrases = feedRequest.search.trim().split(/[\s+]+/)
|
||||
const feeds = await prisma.feed.findMany({
|
||||
where: {
|
||||
OR: [
|
||||
{
|
||||
fulltext: {
|
||||
search: phrases.join(' & '),
|
||||
mode: 'insensitive'
|
||||
}
|
||||
},
|
||||
{
|
||||
AND: phrases.map(phrase => {
|
||||
return {
|
||||
fulltext: {
|
||||
contains: phrase,
|
||||
mode: 'insensitive'
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
]
|
||||
},
|
||||
take: pageLimit + 1,
|
||||
skip: (feedRequest.page ?? 0) * pageLimit,
|
||||
include: {
|
||||
emails: true,
|
||||
fields: true,
|
||||
node: true
|
||||
}
|
||||
})
|
||||
|
||||
res.status(200)
|
||||
.json({
|
||||
hasMore: typeof feeds[pageLimit] !== 'undefined',
|
||||
feeds: feeds.slice(0, pageLimit).map(feed => {
|
||||
return {
|
||||
avatar: feed.avatar,
|
||||
bot: feed.bot,
|
||||
createdAt: feed.createdAt.toISOString(),
|
||||
description: feed.description,
|
||||
displayName: feed.displayName,
|
||||
fields: feed.fields.map(field => {
|
||||
return {
|
||||
name: field.name,
|
||||
value: field.value
|
||||
}
|
||||
}),
|
||||
followersCount: feed.followersCount,
|
||||
followingCount: feed.followingCount,
|
||||
statusesCount: feed.statusesCount,
|
||||
lastStatusAt: feed.lastStatusAt?.toISOString() ?? null,
|
||||
name: feed.name,
|
||||
node: {
|
||||
domain: feed.node.domain,
|
||||
softwareName: feed.node.softwareName
|
||||
},
|
||||
type: feed.type,
|
||||
url: feed.url
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
export default handleFeedSearch
|
|
@ -0,0 +1,157 @@
|
|||
import Head from 'next/head'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import axios from 'axios'
|
||||
import { feedResponseSchema } from '../types/FeedResponse'
|
||||
import { tracker } from '../lib/matomo'
|
||||
import Loader from '../components/Loader'
|
||||
import Results from '../components/Results'
|
||||
import Layout, { siteTitle } from '../components/Layout'
|
||||
|
||||
let source = axios.CancelToken.source()
|
||||
|
||||
const Home:React.FC = () => {
|
||||
const [query, setQuery] = useState('')
|
||||
const [submitted, setSubmitted] = useState(null)
|
||||
const [loading, setLoading] = useState(false)
|
||||
const [results, setResults] = useState([])
|
||||
const [page, setPage] = useState(0)
|
||||
const [hasMore, setHasMore] = useState(false)
|
||||
const [loaded, setLoaded] = useState(false)
|
||||
|
||||
const search = async () => {
|
||||
setLoading(true)
|
||||
try {
|
||||
console.info('Retrieving results', { query, page })
|
||||
source = axios.CancelToken.source()
|
||||
const response = await axios.get('/api/feed', {
|
||||
params: { search: query, page },
|
||||
cancelToken: source.token
|
||||
})
|
||||
const responseData = await feedResponseSchema.parseAsync(response.data)
|
||||
setHasMore(responseData.hasMore)
|
||||
setResults([
|
||||
...(page > 0 ? results : []),
|
||||
...responseData.feeds
|
||||
])
|
||||
setLoaded(true)
|
||||
} catch (e) {
|
||||
console.warn('Search failed', e)
|
||||
setLoaded(true)
|
||||
}
|
||||
setLoading(false)
|
||||
}
|
||||
|
||||
const loadNewQueryResults = () => {
|
||||
console.info('Cancelling searches')
|
||||
source.cancel('New query on the way')
|
||||
setResults([])
|
||||
setHasMore(false)
|
||||
setLoaded(false)
|
||||
if (query.length < 3) {
|
||||
console.info('Query too short.')
|
||||
return
|
||||
}
|
||||
console.info('Loading new query search', { query, page })
|
||||
setLoading(true)
|
||||
setTimeout(search)
|
||||
tracker.trackEvent({
|
||||
category: 'feeds',
|
||||
action: 'new-search'
|
||||
})
|
||||
}
|
||||
|
||||
const loadNextPageResults = () => {
|
||||
setHasMore(false)
|
||||
if (page === 0) {
|
||||
return
|
||||
}
|
||||
console.info('Loading next page', { query, page })
|
||||
setTimeout(search)
|
||||
tracker.trackEvent({
|
||||
category: 'feeds',
|
||||
action: 'next-page',
|
||||
customDimensions: [
|
||||
{
|
||||
value: page.toString(),
|
||||
id: 1
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
|
||||
const handleQueryChange = (event) => {
|
||||
const value = event.target.value
|
||||
console.info('Query changed', { query: value })
|
||||
setQuery(value)
|
||||
setPage(0)
|
||||
}
|
||||
|
||||
const handleSearchSubmit = event => {
|
||||
event.preventDefault()
|
||||
setQuery(query)
|
||||
setSubmitted(new Date())
|
||||
setPage(0)
|
||||
}
|
||||
|
||||
const handleLoadMore = event => {
|
||||
event.preventDefault()
|
||||
setPage(page + 1)
|
||||
}
|
||||
|
||||
useEffect(loadNewQueryResults, [query, submitted])
|
||||
useEffect(loadNextPageResults, [page])
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Head>
|
||||
<title>{siteTitle}</title>
|
||||
</Head>
|
||||
<nav>
|
||||
<form onSubmit={handleSearchSubmit}>
|
||||
<label htmlFor={'query'}>Search on fediverse</label>
|
||||
<input
|
||||
name={'query'}
|
||||
id={'query'}
|
||||
type={'search'}
|
||||
onChange={handleQueryChange}
|
||||
onBlur={handleQueryChange}
|
||||
value={query}
|
||||
placeholder={'Search on fediverse'}
|
||||
/>
|
||||
<button type={'submit'}>
|
||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="search"
|
||||
className="svg-inline--fa fa-search fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512">
|
||||
<path fill="currentColor"
|
||||
d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"></path>
|
||||
<title>Search</title>
|
||||
</svg>
|
||||
<span>Search</span>
|
||||
</button>
|
||||
</form>
|
||||
</nav>
|
||||
<Loader loading={loading}>
|
||||
{
|
||||
loaded
|
||||
? <Results feeds={results}/>
|
||||
: ''
|
||||
}
|
||||
</Loader>
|
||||
{hasMore && !loading
|
||||
? (
|
||||
<button className={'next-page'} onClick={handleLoadMore}>
|
||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="angle-double-down"
|
||||
className="svg-inline--fa fa-angle-double-down fa-w-10" role="img"
|
||||
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
|
||||
<path fill="currentColor"
|
||||
d="M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"/>
|
||||
</svg>
|
||||
<span>Load more</span>
|
||||
</button>
|
||||
)
|
||||
: ''}
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
|
||||
export default Home
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#BDFDFF;" d="M0,488.727C0,501.58,10.42,512,23.273,512H256h232.727C501.58,512,512,501.58,512,488.727v-93.091
|
||||
V23.273C512,10.42,501.58,0,488.727,0H256H23.273C16.043,0,9.584,3.297,5.314,8.47c-1.896,2.298-3.361,4.968-4.268,7.883
|
||||
C0.366,18.538,0,20.863,0,23.273"/>
|
||||
<path style="fill:#A78966;" d="M507.412,381.763l-18.685-25.166l-74.406-100.214c-4.389-5.914-11.32-9.399-18.685-9.399
|
||||
s-14.296,3.486-18.685,9.399l-73.745,99.322L256,287.517l-73.956-106.826c-4.347-6.277-11.498-10.024-19.135-10.024
|
||||
s-14.787,3.747-19.135,10.026L46.545,321.134l-23.273,33.617L4.138,382.39C1.444,386.281,0,390.903,0,395.636v93.091
|
||||
C0,501.58,10.42,512,23.273,512H256h232.727C501.58,512,512,501.58,512,488.727v-93.091
|
||||
C512,390.639,510.391,385.775,507.412,381.763z"/>
|
||||
<path style="fill:#9BC9FF;" d="M23.273,0C10.42,0,0,10.42,0,23.273v372.364c0-4.734,1.444-9.356,4.138-13.247l19.135-27.64
|
||||
l23.273-33.617l97.229-140.442c4.347-6.277,11.498-10.024,19.135-10.024s14.787,3.747,19.135,10.026L256,287.517V183.128v-55.954V0
|
||||
H23.273z"/>
|
||||
<path style="fill:#806749;" d="M182.044,180.693c-4.347-6.279-11.498-10.026-19.135-10.026s-14.787,3.747-19.135,10.026
|
||||
L46.545,321.134l-23.273,33.617L4.138,382.39C1.444,386.281,0,390.903,0,395.636v93.091C0,501.58,10.42,512,23.273,512H256V287.517
|
||||
L182.044,180.693z"/>
|
||||
<circle style="fill:#FFB655;" cx="302.545" cy="155.152" r="54.303"/>
|
||||
</svg>
|
Po Szerokość: | Wysokość: | Rozmiar: 1.7 KiB |
|
@ -0,0 +1,11 @@
|
|||
<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="question-circle"
|
||||
class="svg-inline--fa fa-question-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512">
|
||||
<style>
|
||||
path{
|
||||
fill: grey;
|
||||
}
|
||||
</style>
|
||||
<path fill="currentColor"
|
||||
d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path>
|
||||
</svg>
|
Po Szerokość: | Wysokość: | Rozmiar: 1.1 KiB |
Po Szerokość: | Wysokość: | Rozmiar: 40 KiB |
|
@ -0,0 +1,138 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
|
||||
<svg
|
||||
version="1.1"
|
||||
id="Layer_1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
viewBox="0 0 512 512"
|
||||
style="enable-background:new 0 0 512 512;"
|
||||
xml:space="preserve"
|
||||
sodipodi:docname="search.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||
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"><defs
|
||||
id="defs55">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</defs><sodipodi:namedview
|
||||
id="namedview53"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="false"
|
||||
showguides="false"
|
||||
inkscape:zoom="0.58073907"
|
||||
inkscape:cx="219.54783"
|
||||
inkscape:cy="323.72542"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1043"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="Layer_1" />
|
||||
|
||||
|
||||
|
||||
<path
|
||||
style="fill:#58595b"
|
||||
d="M 91.321762,496.32631 254.19134,333.44389 C 371.49511,394.20555 511.98321,308.63614 511.97719,176.58314 511.97275,79.209145 432.74814,-0.00824478 335.37214,-0.0038073 203.30014,0.0022113 117.77655,140.51611 178.53789,257.79634 L 15.668314,420.68276 c -20.8530492,20.85495 -20.8545027,54.79195 0.0034,75.648 l 0,0.002 c 20.902952,20.90005 54.741953,20.90551 75.65,-0.006 z M 335.37332,25.852193 c 83.118,-0.0038 150.74308,67.61313 150.74687,150.732127 0.005,117.047 -127.93039,188.89783 -227.60109,129.72338 -21.71258,-12.87902 -40.07142,-31.30618 -52.84541,-52.8406 0,-0.002 -0.002,-0.003 -0.002,-0.003 0,-0.002 -0.002,-0.002 -0.002,-0.002 C 146.39615,153.6448 218.50932,25.857518 335.37332,25.852193 Z"
|
||||
id="path14"
|
||||
sodipodi:nodetypes="ccsscccccssccccs" /><path
|
||||
style="fill:#00a3ff;fill-opacity:0.99607843"
|
||||
d="M 91.321762,496.32631 254.19134,333.44389 C 371.49511,394.20555 511.98321,308.63614 511.97719,176.58314 511.97275,79.209145 432.74814,-0.00824478 335.37214,-0.0038073 203.30014,0.0022113 117.77655,140.51611 178.53789,257.79634 L 15.668314,420.68276 c -20.8530492,20.85495 -20.8545027,54.79195 0.0034,75.648 l 0,0.002 c 20.902952,20.90005 54.741953,20.90551 75.65,-0.006 z M 335.37332,25.852193 c 83.118,-0.0038 150.74308,67.61313 150.74687,150.732127 0.005,117.047 -127.93039,188.89783 -227.60109,129.72338 -21.71258,-12.87902 -40.07142,-31.30618 -52.84541,-52.8406 0,-0.002 -0.002,-0.003 -0.002,-0.003 0,-0.002 -0.002,-0.002 -0.002,-0.002 C 146.39615,153.6448 218.50932,25.857518 335.37332,25.852193 Z"
|
||||
id="path5180"
|
||||
sodipodi:nodetypes="ccsscccccssccccs" />
|
||||
|
||||
<g
|
||||
id="g22">
|
||||
</g>
|
||||
<g
|
||||
id="g24">
|
||||
</g>
|
||||
<g
|
||||
id="g26">
|
||||
</g>
|
||||
<g
|
||||
id="g28">
|
||||
</g>
|
||||
<g
|
||||
id="g30">
|
||||
</g>
|
||||
<g
|
||||
id="g32">
|
||||
</g>
|
||||
<g
|
||||
id="g34">
|
||||
</g>
|
||||
<g
|
||||
id="g36">
|
||||
</g>
|
||||
<g
|
||||
id="g38">
|
||||
</g>
|
||||
<g
|
||||
id="g40">
|
||||
</g>
|
||||
<g
|
||||
id="g42">
|
||||
</g>
|
||||
<g
|
||||
id="g44">
|
||||
</g>
|
||||
<g
|
||||
id="g46">
|
||||
</g>
|
||||
<g
|
||||
id="g48">
|
||||
</g>
|
||||
<g
|
||||
id="g50">
|
||||
</g>
|
||||
<path
|
||||
id="path9722"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#a730b8;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 260.86133 185.34961 C 257.19644 192.36846 251.45376 198.08454 244.41797 201.7168 L 334.6875 292.33789 L 356.44922 281.30859 L 260.86133 185.34961 z M 379.92773 304.87695 L 358.16602 315.90625 L 364.08008 321.8457 A 148.44389 148.13411 0 0 0 389.48047 314.4668 L 379.92773 304.87695 z " /><path
|
||||
id="path9729"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#5496be;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 475.37695 225.76562 L 433.26562 247.10547 L 437.0332 271.20898 L 457.60742 260.78125 A 148.44389 148.13411 0 0 0 475.37695 225.76562 z M 403.59766 262.14062 L 292.49805 318.44531 A 148.44389 148.13411 0 0 0 331.58594 324.65039 L 407.36523 286.24414 L 403.59766 262.14062 z " /><path
|
||||
id="path9713"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ce3d1a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 364.73828 111.29688 L 306.43359 225.12305 L 323.64844 242.4043 L 385.38086 121.88867 A 38.44558 38.44558 0 0 1 364.73828 111.29688 z M 291.26953 254.72852 L 264.74023 306.51758 A 148.44389 148.13411 0 0 0 285.94531 316.00586 L 308.48242 272.00781 L 291.26953 254.72852 z " /><path
|
||||
id="path1015"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#d0188f;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 243.91602 201.96875 A 38.44558 38.44558 0 0 1 224.71094 205.98438 A 38.44558 38.44558 0 0 1 221 205.5957 L 233.18164 283.51562 A 148.44389 148.13411 0 0 0 259.8418 303.84961 L 243.91602 201.96875 z " /><path
|
||||
id="path1678"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ebe305;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 425.81641 101.75 A 38.44558 38.44558 0 0 1 409.37109 118.11914 L 482.99805 192.03125 A 148.44389 148.13411 0 0 0 484.08984 176.80664 A 148.44389 148.13411 0 0 0 482.98633 159.13867 L 425.81641 101.75 z " /><path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#f47601;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 353.8637,90.198535 254.20883,140.7012 a 38.44558,38.44558 0 0 1 10.48746,20.69589 l 99.65378,-50.50484 A 38.44558,38.44558 0 0 1 353.8637,90.198535 Z"
|
||||
id="path1680"
|
||||
inkscape:connector-curvature="0" /><path
|
||||
id="path9758"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#57c115;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 409.1875 118.21094 C 403.16136 121.29682 396.42718 122.73664 389.66602 122.38477 C 388.53966 122.31697 387.41682 122.19972 386.30078 122.0332 L 395.12891 178.55859 L 419.21484 182.42383 L 409.1875 118.21094 z M 400.25977 211.41992 L 414.43945 302.2207 A 148.44389 148.13411 0 0 0 435.42188 286.19727 L 424.34766 215.2832 L 400.25977 211.41992 z " /><path
|
||||
id="path9760"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#dbb210;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 264.76758 161.82031 A 38.44558 38.44558 0 0 1 265.18945 169.6875 A 38.44558 38.44558 0 0 1 261.19336 184.74414 L 317.76367 193.83008 L 328.88281 172.11719 L 264.76758 161.82031 z M 361.7207 177.39062 L 350.60156 199.10547 L 477.71094 219.51953 A 148.44389 148.13411 0 0 0 482.6543 196.81445 L 361.7207 177.39062 z " /><circle
|
||||
style="display:inline;fill:#ffca00;fill-opacity:0.995968;stroke:none;stroke-width:1;stroke-opacity:0.960784"
|
||||
id="path817"
|
||||
cx="395.74576"
|
||||
cy="62.564941"
|
||||
transform="rotate(3.1178167)"
|
||||
r="34.950527" /><circle
|
||||
id="path827"
|
||||
style="display:inline;fill:#ff0000;fill-opacity:0.995968;stroke:none;stroke-width:1;stroke-opacity:0.960784"
|
||||
cx="235.58105"
|
||||
cy="155.0128"
|
||||
transform="rotate(3.1178167)"
|
||||
r="34.950527" /></svg>
|
Po Szerokość: | Wysokość: | Rozmiar: 15 KiB |
|
@ -0,0 +1,8 @@
|
|||
<svg class="svg-icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<style type="text/css">
|
||||
path{
|
||||
fill: red;
|
||||
}
|
||||
</style>
|
||||
<path d="M723.43 508.6c-54.123 47.75-125.977 77.056-205.163 77.056-80.364 0-153.4-30.259-207.765-79.421C184.05 539.325 105.81 652.308 105.81 787.277v68.782c0 160.968 812.39 160.968 812.39 0v-68.782c-0.005-131.415-74.22-242.509-194.77-278.677z m-205.163 28.13c140.165 0 254.095-109.44 254.095-244.64S658.668 47.218 518.267 47.218c-139.93 0-253.855 109.675-253.855 244.874 0 135.204 113.925 244.639 253.855 244.639z m0 0"/>
|
||||
</svg>
|
Po Szerokość: | Wysokość: | Rozmiar: 617 B |
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 24.332 24.332" style="enable-background:new 0 0 24.332 24.332;">
|
||||
<path d="M3.607,17.11C1.618,17.11,0,18.726,0,20.717c0,1.984,1.618,3.604,3.607,3.604s3.607-1.619,3.607-3.604
|
||||
C7.214,18.726,5.596,17.11,3.607,17.11z"/>
|
||||
<path d="M0.375,7.951C0.169,7.951,0,8.12,0,8.328v4.578c0,0.206,0.169,0.374,0.375,0.374c5.879,0,10.665,4.784,10.665,10.665
|
||||
c0,0.205,0.166,0.375,0.375,0.375h4.581h0.016c0.209,0,0.377-0.17,0.377-0.375l-0.018-0.117
|
||||
C16.305,15.064,9.152,7.951,0.375,7.951z"/>
|
||||
<path d="M24.311,23.828C24.246,10.681,13.531,0.01,0.375,0.01C0.169,0.01,0,0.179,0,0.387v4.711c0,0.207,0.169,0.375,0.375,0.375
|
||||
c10.186,0,18.472,8.287,18.472,18.473c0,0.205,0.168,0.375,0.373,0.375h4.713h0.02c0.205,0,0.379-0.17,0.379-0.375L24.311,23.828z
|
||||
"/>
|
||||
</svg>
|
Po Szerokość: | Wysokość: | Rozmiar: 917 B |
|
@ -0,0 +1,170 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="196.52mm"
|
||||
height="196.52mm"
|
||||
viewBox="0 0 196.52 196.52"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="0.92.2 2405546, 2018-03-11"
|
||||
sodipodi:docname="Logo_penta_connectat-imbrincat_retallats-color.svg"
|
||||
inkscape:export-filename="/home/nestor/Pictures/Fediversal/Logo_penta_connectat-imbrincat_retallats-color-512x.png"
|
||||
inkscape:export-xdpi="66.175453"
|
||||
inkscape:export-ydpi="66.175453">
|
||||
<defs
|
||||
id="defs2" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.50411932"
|
||||
inkscape:cx="-209.83484"
|
||||
inkscape:cy="399.15332"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer2"
|
||||
showgrid="false"
|
||||
inkscape:snap-smooth-nodes="true"
|
||||
inkscape:snap-midpoints="true"
|
||||
inkscape:snap-global="false"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="736"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="32"
|
||||
inkscape:window-maximized="1"
|
||||
fit-margin-top="5"
|
||||
fit-margin-left="5"
|
||||
fit-margin-right="5"
|
||||
fit-margin-bottom="5" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="Linies"
|
||||
style="display:inline"
|
||||
transform="translate(6.6789703,-32.495842)">
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#a730b8;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 181.13086,275.13672 a 68.892408,68.892408 0 0 1 -29.46484,29.32812 l 161.75781,162.38868 38.99805,-19.76368 z m 213.36328,214.1875 -38.99805,19.76367 81.96289,82.2832 a 68.892409,68.892409 0 0 1 29.47071,-29.33203 z"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"
|
||||
id="path9722"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#5496be;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 581.64648,339.39062 -91.57617,46.41016 6.75196,43.18945 103.61523,-52.51367 A 68.892409,68.892409 0 0 1 581.64648,339.39062 Z M 436.9082,412.74219 220.38281,522.47656 a 68.892408,68.892408 0 0 1 18.79492,37.08985 L 443.66016,455.93359 Z"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"
|
||||
id="path9729"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ce3d1a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 367.27539,142.4375 262.79492,346.4082 293.64258,377.375 404.26562,161.41797 A 68.892408,68.892408 0 0 1 367.27539,142.4375 Z m -131.6543,257.02148 -52.92187,103.31446 a 68.892409,68.892409 0 0 1 36.98633,18.97851 l 46.78125,-91.32812 z"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"
|
||||
id="path9713"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#d0188f;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 150.76758,304.91797 a 68.892408,68.892408 0 0 1 -34.41602,7.19531 68.892408,68.892408 0 0 1 -6.65039,-0.69531 l 30.90235,197.66211 a 68.892409,68.892409 0 0 1 34.41601,-7.19531 68.892409,68.892409 0 0 1 6.64649,0.69531 z"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"
|
||||
id="path1015"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#5b36e9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 239.3418,560.54492 a 68.892408,68.892408 0 0 1 0.7207,13.87696 68.892408,68.892408 0 0 1 -7.26758,27.17968 l 197.62891,31.71289 a 68.892409,68.892409 0 0 1 -0.72266,-13.8789 68.892409,68.892409 0 0 1 7.26953,-27.17774 z"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"
|
||||
id="path1674"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#30b873;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 601.13281,377.19922 -91.21875,178.08203 a 68.892408,68.892408 0 0 1 36.99414,18.98242 L 638.125,396.18359 a 68.892409,68.892409 0 0 1 -36.99219,-18.98437 z"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"
|
||||
id="path1676"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ebe305;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 476.72266,125.33008 a 68.892408,68.892408 0 0 1 -29.47071,29.33203 l 141.26563,141.81055 a 68.892409,68.892409 0 0 1 29.46875,-29.33204 z"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"
|
||||
id="path1678"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#f47601;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 347.78711,104.63086 -178.57617,90.49805 a 68.892409,68.892409 0 0 1 18.79297,37.08593 l 178.57421,-90.50195 a 68.892408,68.892408 0 0 1 -18.79101,-37.08203 z"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"
|
||||
id="path1680"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#57c115;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 446.92578,154.82617 a 68.892408,68.892408 0 0 1 -34.98242,7.48242 68.892408,68.892408 0 0 1 -6.0293,-0.63281 l 15.81836,101.29102 43.16211,6.92578 z m -16,167.02735 37.40039,239.48242 a 68.892409,68.892409 0 0 1 33.91406,-6.94336 68.892409,68.892409 0 0 1 7.20704,0.79101 L 474.08984,328.77734 Z"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"
|
||||
id="path9758"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#dbb210;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:41.5748024;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 188.13086,232.97461 a 68.892408,68.892408 0 0 1 0.75781,14.0957 68.892408,68.892408 0 0 1 -7.16015,26.98242 l 101.36914,16.28125 19.92382,-38.9082 z m 173.73633,27.90039 -19.92578,38.91211 239.51367,38.4668 a 68.892409,68.892409 0 0 1 -0.69531,-13.71875 68.892409,68.892409 0 0 1 7.34961,-27.32422 z"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"
|
||||
id="path9760"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer3"
|
||||
inkscape:label="Nodes"
|
||||
style="display:inline;opacity:1"
|
||||
transform="translate(6.6789703,-32.495842)">
|
||||
<circle
|
||||
style="fill:#ffca00;fill-opacity:0.99596773;stroke:none;stroke-width:0.26458332;stroke-opacity:0.96078431"
|
||||
id="path817"
|
||||
cx="106.26596"
|
||||
cy="51.535553"
|
||||
r="16.570711"
|
||||
transform="rotate(3.1178174)" />
|
||||
<circle
|
||||
id="path819"
|
||||
style="fill:#64ff00;fill-opacity:0.99596773;stroke:none;stroke-width:0.26458332;stroke-opacity:0.96078431"
|
||||
cx="171.42836"
|
||||
cy="110.19328"
|
||||
r="16.570711"
|
||||
transform="rotate(3.1178174)" />
|
||||
<circle
|
||||
id="path823"
|
||||
style="fill:#00a3ff;fill-opacity:0.99596773;stroke:none;stroke-width:0.26458332;stroke-opacity:0.96078431"
|
||||
cx="135.76379"
|
||||
cy="190.27704"
|
||||
r="16.570711"
|
||||
transform="rotate(3.1178174)" />
|
||||
<circle
|
||||
style="fill:#9500ff;fill-opacity:0.99596773;stroke:none;stroke-width:0.26458332;stroke-opacity:0.96078431"
|
||||
id="path825"
|
||||
cx="48.559471"
|
||||
cy="181.1138"
|
||||
r="16.570711"
|
||||
transform="rotate(3.1178174)" />
|
||||
<circle
|
||||
id="path827"
|
||||
style="fill:#ff0000;fill-opacity:0.99596773;stroke:none;stroke-width:0.26458332;stroke-opacity:0.96078431"
|
||||
cx="30.328812"
|
||||
cy="95.366837"
|
||||
r="16.570711"
|
||||
transform="rotate(3.1178174)" />
|
||||
</g>
|
||||
</svg>
|
Po Szerokość: | Wysokość: | Rozmiar: 19 KiB |
|
@ -0,0 +1,4 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="61.076954mm" height="65.47831mm" viewBox="0 0 216.4144 232.00976">
|
||||
<path fill="#2b90d9" d="M211.80734 139.0875c-3.18125 16.36625-28.4925 34.2775-57.5625 37.74875-15.15875 1.80875-30.08375 3.47125-45.99875 2.74125-26.0275-1.1925-46.565-6.2125-46.565-6.2125 0 2.53375.15625 4.94625.46875 7.2025 3.38375 25.68625 25.47 27.225 46.39125 27.9425 21.11625.7225 39.91875-5.20625 39.91875-5.20625l.8675 19.09s-14.77 7.93125-41.08125 9.39c-14.50875.7975-32.52375-.365-53.50625-5.91875C9.23234 213.82 1.40609 165.31125.20859 116.09125c-.365-14.61375-.14-28.39375-.14-39.91875 0-50.33 32.97625-65.0825 32.97625-65.0825C49.67234 3.45375 78.20359.2425 107.86484 0h.72875c29.66125.2425 58.21125 3.45375 74.8375 11.09 0 0 32.975 14.7525 32.975 65.0825 0 0 .41375 37.13375-4.59875 62.915"/>
|
||||
<path fill="#fff" d="M177.50984 80.077v60.94125h-24.14375v-59.15c0-12.46875-5.24625-18.7975-15.74-18.7975-11.6025 0-17.4175 7.5075-17.4175 22.3525v32.37625H96.20734V85.42325c0-14.845-5.81625-22.3525-17.41875-22.3525-10.49375 0-15.74 6.32875-15.74 18.7975v59.15H38.90484V80.077c0-12.455 3.17125-22.3525 9.54125-29.675 6.56875-7.3225 15.17125-11.07625 25.85-11.07625 12.355 0 21.71125 4.74875 27.8975 14.2475l6.01375 10.08125 6.015-10.08125c6.185-9.49875 15.54125-14.2475 27.8975-14.2475 10.6775 0 19.28 3.75375 25.85 11.07625 6.36875 7.3225 9.54 17.22 9.54 29.675"/>
|
||||
</svg>
|
Po Szerokość: | Wysokość: | Rozmiar: 1.4 KiB |
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg height="682.68799" viewBox="2799 -911 512 682.688" width="512" xmlns="http://www.w3.org/2000/svg"><g stroke-width="32"><path d="m2799-911v341.344l256-170.656" fill="#211f20"/><path d="m2799-569.656v341.344l256-170.656" fill="#737373"/><path d="m3055-740.344v341.344l256-170.656" fill="#f1680d"/></g></svg>
|
Po Szerokość: | Wysokość: | Rozmiar: 364 B |
|
@ -0,0 +1,356 @@
|
|||
:root {
|
||||
--shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.4);
|
||||
--shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
|
||||
--main-bg-color: #212224;
|
||||
--main-fg-color: #ededed;
|
||||
--accent-color: #00a2fe;
|
||||
--front-bg-color: #3a3c40;
|
||||
--front-fg-color: rgb(156, 156, 156);
|
||||
@media (prefers-color-scheme: light) {
|
||||
--main-bg-color: #ededed;
|
||||
--main-fg-color: #212224;
|
||||
--front-bg-color: rgb(204, 204, 204);
|
||||
--front-fg-color: #3a3c40;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
input,
|
||||
textarea,
|
||||
button {
|
||||
background-color: var(--front-bg-color);
|
||||
border-radius: 2em;
|
||||
border: none;
|
||||
box-shadow: var(--shadow-inset);
|
||||
height: 2em;
|
||||
font-size: 20px;
|
||||
color: var(--main-fg-color);
|
||||
padding: 1em;
|
||||
|
||||
&:hover {
|
||||
outline: 1px solid var(--front-fg-color);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: var(--front-fg-color);
|
||||
box-shadow: var(--shadow);
|
||||
color: var(--main-bg-color);
|
||||
padding: 0 1em;
|
||||
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
max-width: 1em;
|
||||
max-height: 1em;
|
||||
fill: var(--main-bg-color);
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
}
|
||||
|
||||
:focus {
|
||||
outline: 1px solid var(--main-fg-color) !important;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--main-fg-color);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
|
||||
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
||||
line-height: 1.6;
|
||||
font-size: 18px;
|
||||
background-color: var(--main-bg-color);
|
||||
color: var(--main-fg-color);
|
||||
&>div{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.container {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
padding: 1em;
|
||||
grid-template-columns: [start] auto [end];
|
||||
grid-template-rows: [start] auto [message] auto [form] auto [main] auto [end];
|
||||
max-width: 790px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
grid-gap: 1em;
|
||||
box-sizing: content-box;
|
||||
|
||||
header {
|
||||
grid-column: start / end;
|
||||
grid-row: start / message;
|
||||
display: grid;
|
||||
|
||||
grid-template-columns: [start] auto [text] auto [end];
|
||||
grid-template-rows: [start] auto [end];
|
||||
grid-gap: 1em;
|
||||
|
||||
font-weight: bold;
|
||||
font-size: 20px;
|
||||
|
||||
width: auto;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
height: fit-content;
|
||||
|
||||
h1 {
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
grid-column: text/ end;
|
||||
grid-row: start/end;
|
||||
margin: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.logo {
|
||||
grid-column: start/ text;
|
||||
grid-row: start/end;
|
||||
img{
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
form {
|
||||
label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input[type=search] {
|
||||
background-color: var(--front-bg-color);
|
||||
border-radius: 2em 0 0 2em;
|
||||
border: none;
|
||||
box-shadow: var(--shadow-inset);
|
||||
height: 2em;
|
||||
font-size: 20px;
|
||||
color: var(--main-fg-color);
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: var(--front-fg-color);
|
||||
border-radius: 0 2em 2em 0;
|
||||
border: none;
|
||||
box-shadow: var(--shadow);
|
||||
height: 2em;
|
||||
font-size: 20px;
|
||||
color: var(--main-bg-color);
|
||||
padding: 0 0.5em 0 0.3em;
|
||||
|
||||
span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
width: 1em;
|
||||
max-width: 1em;
|
||||
max-height: 1em;
|
||||
fill: var(--main-bg-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.loader {
|
||||
.loader-visualisation {
|
||||
margin: 1em 0;
|
||||
|
||||
svg {
|
||||
animation: spin 2s linear infinite;
|
||||
vertical-align: middle;
|
||||
|
||||
.rail {
|
||||
color: var(--main-bg-color);
|
||||
fill: var(--front-bg-color);
|
||||
stroke: none;
|
||||
}
|
||||
|
||||
.train {
|
||||
fill: none;
|
||||
stroke: var(--accent-color);
|
||||
stroke-width: 2.2583456;
|
||||
stroke-linecap: round
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.loader-content {
|
||||
transition: 1s top, left;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.feed {
|
||||
text-align: left;
|
||||
padding: 1em;
|
||||
border-radius: 1em;
|
||||
margin-bottom: 1em;
|
||||
background-color: var(--front-bg-color);
|
||||
display: grid;
|
||||
grid-template-columns: [start] min(20%) [main] auto [end];
|
||||
grid-template-rows: [start] auto [address] auto [badges];
|
||||
column-gap: 1em;
|
||||
row-gap: 1em;
|
||||
box-shadow: var(--shadow);
|
||||
position: relative;
|
||||
|
||||
> * {
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
border-radius: 0.5em;
|
||||
width: 100%;
|
||||
grid-column: start /main;
|
||||
grid-row: span 3 ;
|
||||
}
|
||||
|
||||
|
||||
.display-name {
|
||||
grid-column: main / end;
|
||||
grid-row: start ;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.address {
|
||||
grid-column: main / end;
|
||||
grid-row: address;
|
||||
}
|
||||
|
||||
.badges{
|
||||
grid-column: main /end;
|
||||
grid-row: badges;
|
||||
.label{
|
||||
display: none;
|
||||
}
|
||||
img,svg{
|
||||
max-width: 1em;
|
||||
max-height: 1em;
|
||||
display: inline;
|
||||
margin-right: 0.3em;
|
||||
vertical-align: baseline;
|
||||
fill: var(--main-fg-color);
|
||||
}
|
||||
|
||||
.badge{
|
||||
display: inline;
|
||||
margin-right: 1em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.subscriptions {
|
||||
&>*{
|
||||
display: inline;
|
||||
margin-right: 0.3em;
|
||||
&:last-child::before{
|
||||
content: '/';
|
||||
display: inline;
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.fields {
|
||||
grid-column: start / end;
|
||||
grid-row: span 1;
|
||||
|
||||
td, th {
|
||||
border: 1px solid var(--main-bg-color);
|
||||
border-radius: 0.3em;
|
||||
padding: 0.3em;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: var(--main-bg-color);
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
grid-column: start/end;
|
||||
grid-row: span 1;
|
||||
|
||||
p {
|
||||
margin: 0 0 1em 0;
|
||||
|
||||
&:last-child {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.display-name{
|
||||
grid-column-start: start;
|
||||
}
|
||||
.address{
|
||||
grid-column-start: start;
|
||||
margin-top: -1em;
|
||||
}
|
||||
.avatar{
|
||||
grid-row-start: badges ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.with-emoji {
|
||||
img {
|
||||
max-width: 1em;
|
||||
max-height: 1em;
|
||||
display: inline;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
}
|
||||
|
||||
footer{
|
||||
color: var(--front-fg-color);
|
||||
a{
|
||||
color: inherit;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"incremental": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve"
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
import { z } from 'zod'
|
||||
import { preserveUndefined, stringToInt, transform } from '../lib/transform'
|
||||
|
||||
export const feedRequestSchema = z.object({
|
||||
search: z.string(),
|
||||
page: transform(
|
||||
z.string().optional(),
|
||||
preserveUndefined(stringToInt),
|
||||
z.number().gte(0).optional()
|
||||
)
|
||||
/*
|
||||
softwareName: z.string().optional(),
|
||||
domain: z.string().optional(),
|
||||
name: z.string().optional(),
|
||||
displayName: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
followersCount: transform(
|
||||
z.string().optional(),
|
||||
preserveUndefined(stringToInt),
|
||||
z.number().gte(0).optional()
|
||||
),
|
||||
followingCount: transform(
|
||||
z.string().optional(),
|
||||
preserveUndefined(stringToInt),
|
||||
z.number().gte(0).optional()
|
||||
),
|
||||
statusesCount: transform(
|
||||
z.string().optional(),
|
||||
preserveUndefined(stringToInt),
|
||||
z.number().gte(0).optional()
|
||||
),
|
||||
bot: transform(
|
||||
z.string().optional(),
|
||||
preserveUndefined(stringToBool),
|
||||
z.boolean().optional()
|
||||
),
|
||||
lastStatusAt: z.string().optional(),
|
||||
createdAt: z.string().optional(),
|
||||
type: z.enum(['account', 'channel']).optional()
|
||||
*/
|
||||
})
|
||||
|
||||
export type FeedRequest = z.infer<typeof feedRequestSchema>
|
|
@ -0,0 +1,35 @@
|
|||
import { z } from 'zod'
|
||||
|
||||
export const feedResponseFieldSchema = z.object({
|
||||
name: z.string(),
|
||||
value: z.string()
|
||||
})
|
||||
|
||||
export const feedResponseItemSchema = z.object({
|
||||
avatar: z.string().url().nullable(),
|
||||
bot: z.boolean().nullable(),
|
||||
createdAt: z.string(),
|
||||
description: z.string(),
|
||||
displayName: z.string(),
|
||||
fields: z.array(feedResponseFieldSchema).nullable(),
|
||||
followersCount: z.number().nullable(),
|
||||
followingCount: z.number().nullable(),
|
||||
statusesCount: z.number().nullable(),
|
||||
lastStatusAt: z.string().nullable(),
|
||||
name: z.string(),
|
||||
node: z.object({
|
||||
domain: z.string(),
|
||||
softwareName: z.string()
|
||||
}),
|
||||
type: z.enum(['account', 'channel']),
|
||||
url: z.string().url()
|
||||
})
|
||||
|
||||
export const feedResponseSchema = z.object({
|
||||
hasMore: z.boolean(),
|
||||
feeds: z.array(feedResponseItemSchema)
|
||||
})
|
||||
|
||||
export type FeedResponse = z.infer<typeof feedResponseSchema>
|
||||
export type FeedResponseItem = z.infer<typeof feedResponseItemSchema>
|
||||
export type FeedResponseField = z.infer<typeof feedResponseFieldSchema>
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"defaultSeverity": "error",
|
||||
"extends": [
|
||||
"tslint:recommended"
|
||||
],
|
||||
"jsRules": {},
|
||||
"rules": {
|
||||
"no-console": false
|
||||
},
|
||||
"rulesDirectory": []
|
||||
}
|