Compare commits
No commits in common. "main" and "master" have entirely different histories.
|
@ -1,132 +1,24 @@
|
|||
# ---> Node
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
.pnpm-debug.log*
|
||||
node_modules
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
# Output
|
||||
.output
|
||||
.vercel
|
||||
.netlify
|
||||
.wrangler
|
||||
/.svelte-kit
|
||||
*/build
|
||||
*/dist
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
# OS
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# Snowpack dependency directory (https://snowpack.dev/)
|
||||
web_modules/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional stylelint cache
|
||||
.stylelintcache
|
||||
|
||||
# Microbundle cache
|
||||
.rpt2_cache/
|
||||
.rts2_cache_cjs/
|
||||
.rts2_cache_es/
|
||||
.rts2_cache_umd/
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variable files
|
||||
# Env
|
||||
.env
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.env.local
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
.parcel-cache
|
||||
|
||||
# Next.js build output
|
||||
.next
|
||||
out
|
||||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# Gatsby files
|
||||
.cache/
|
||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# public
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# vuepress v2.x temp and cache directory
|
||||
.temp
|
||||
.cache
|
||||
|
||||
# Docusaurus cache and generated files
|
||||
.docusaurus
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
# Stores VSCode versions used for testing VSCode extensions
|
||||
.vscode-test
|
||||
|
||||
# yarn v2
|
||||
.yarn/cache
|
||||
.yarn/unplugged
|
||||
.yarn/build-state.yml
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
.env.*
|
||||
!.env.example
|
||||
!.env.test
|
||||
|
||||
# Vite
|
||||
vite.config.js.timestamp-*
|
||||
vite.config.ts.timestamp-*
|
||||
|
|
235
LICENSE
235
LICENSE
|
@ -1,235 +0,0 @@
|
|||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
queueb
|
||||
Copyright (C) 2025 Maxwell
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.
|
39
README.md
39
README.md
|
@ -1,3 +1,38 @@
|
|||
# queueb
|
||||
# sv
|
||||
|
||||
The Game of Queueb
|
||||
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
|
||||
|
||||
## Creating a project
|
||||
|
||||
If you're seeing this, you've probably already done this step. Congrats!
|
||||
|
||||
```bash
|
||||
# create a new project in the current directory
|
||||
npx sv create
|
||||
|
||||
# create a new project in my-app
|
||||
npx sv create my-app
|
||||
```
|
||||
|
||||
## Developing
|
||||
|
||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
|
||||
# or start the server and open the app in a new browser tab
|
||||
npm run dev -- --open
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To create a production version of your app:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
You can preview the production build with `npm run preview`.
|
||||
|
||||
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"name": "queueb",
|
||||
"private": true,
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"prepare": "svelte-kit sync || echo ''",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "^4.0.0",
|
||||
"@sveltejs/kit": "^2.16.0",
|
||||
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
||||
"svelte": "^5.0.0",
|
||||
"svelte-check": "^4.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"vite": "^6.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sveltejs/adapter-static": "^3.0.8",
|
||||
"axios": "^1.7.9"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
#FROM node:18-alpine
|
||||
FROM alpine:latest
|
||||
RUN apk add curl npm bash && \
|
||||
rm -rf /var/cache/apk/*
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm install
|
||||
CMD ["npm", "start"]
|
|
@ -0,0 +1,37 @@
|
|||
services:
|
||||
scylla:
|
||||
image: scylladb/scylla:latest
|
||||
container_name: scylla
|
||||
restart: always
|
||||
ports:
|
||||
- "9042:9042"
|
||||
volumes:
|
||||
- /mnt/temp:/var/lib/scylla
|
||||
networks:
|
||||
- scylla-network
|
||||
# healthcheck:
|
||||
# test: ["CMD-SHELL", "curl -f http://localhost:10000/metrics || exit 1"]
|
||||
# interval: 30s
|
||||
# timeout: 10s
|
||||
# retries: 5
|
||||
|
||||
# queueb:
|
||||
# image: maxwellmichael/paradisbend:QB-Latest
|
||||
# container_name: queueb
|
||||
# restart: always
|
||||
# ports:
|
||||
# - "3014:3014"
|
||||
# networks:
|
||||
# - scylla-network
|
||||
# environment:
|
||||
# - SCYLLA_HOST=scylla
|
||||
# depends_on:
|
||||
# - scylla
|
||||
# scylla:
|
||||
# condition: service_healthy
|
||||
|
||||
# volumes:
|
||||
# scylla_data1:
|
||||
|
||||
networks:
|
||||
scylla-network:
|
|
@ -0,0 +1,37 @@
|
|||
//DB SETUP
|
||||
async function sydb(client) {
|
||||
let keyspace =
|
||||
"CREATE KEYSPACE IF NOT EXISTS qb WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};";
|
||||
let users =
|
||||
"CREATE TABLE IF NOT EXISTS qb.users (id UUID PRIMARY KEY, username TEXT, email TEXT);";
|
||||
let scores =
|
||||
"CREATE TABLE IF NOT EXISTS qb.scores (id UUID, username TEXT, email TEXT, day INT, count INT, score INT, cube TEXT, PRIMARY KEY (day, score, username, id));";
|
||||
let blocks =
|
||||
"CREATE TABLE IF NOT EXISTS qb.blocks (day INT PRIMARY KEY, blocks list<int>);";
|
||||
//let drop = "DROP TABLE qb.blocks;"
|
||||
|
||||
let queries = [keyspace, users, blocks, scores];
|
||||
|
||||
async function executeQueries() {
|
||||
for (const query of queries) {
|
||||
try {
|
||||
await client.execute(query);
|
||||
console.log("Data written successfully");
|
||||
} catch (err) {
|
||||
console.error("Write error:", err);
|
||||
console.log("Failed to write data");
|
||||
}
|
||||
}
|
||||
}
|
||||
await executeQueries();
|
||||
}
|
||||
|
||||
module.exports = { sydb };
|
||||
|
||||
// try {
|
||||
// await client.execute(query, params, { prepare: true });
|
||||
// res.status(200).send('Data written successfully');
|
||||
// } catch (err) {
|
||||
// console.error('Write error:', err);
|
||||
// res.status(500).send('Failed to write data');
|
||||
// }
|
|
@ -0,0 +1,850 @@
|
|||
{
|
||||
"name": "foobleserver",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "foobleserver",
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"cassandra-driver": "^4.7.2",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.4.7",
|
||||
"express": "^4.21.2",
|
||||
"uuid": "^11.0.3"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "18.19.84",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.84.tgz",
|
||||
"integrity": "sha512-ACYy2HGcZPHxEeWTqowTF7dhXN+JU1o7Gr4b41klnn6pj2LD6rsiGqSZojMdk1Jh2ys3m76ap+ae1vvE4+5+vg==",
|
||||
"dependencies": {
|
||||
"undici-types": "~5.26.4"
|
||||
}
|
||||
},
|
||||
"node_modules/accepts": {
|
||||
"version": "1.3.8",
|
||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
||||
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
||||
"dependencies": {
|
||||
"mime-types": "~2.1.34",
|
||||
"negotiator": "0.6.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/adm-zip": {
|
||||
"version": "0.5.16",
|
||||
"resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.16.tgz",
|
||||
"integrity": "sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==",
|
||||
"engines": {
|
||||
"node": ">=12.0"
|
||||
}
|
||||
},
|
||||
"node_modules/array-flatten": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
||||
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
|
||||
},
|
||||
"node_modules/body-parser": {
|
||||
"version": "1.20.3",
|
||||
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
|
||||
"integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
|
||||
"dependencies": {
|
||||
"bytes": "3.1.2",
|
||||
"content-type": "~1.0.5",
|
||||
"debug": "2.6.9",
|
||||
"depd": "2.0.0",
|
||||
"destroy": "1.2.0",
|
||||
"http-errors": "2.0.0",
|
||||
"iconv-lite": "0.4.24",
|
||||
"on-finished": "2.4.1",
|
||||
"qs": "6.13.0",
|
||||
"raw-body": "2.5.2",
|
||||
"type-is": "~1.6.18",
|
||||
"unpipe": "1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8",
|
||||
"npm": "1.2.8000 || >= 1.4.16"
|
||||
}
|
||||
},
|
||||
"node_modules/bytes": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
||||
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/call-bind-apply-helpers": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
||||
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0",
|
||||
"function-bind": "^1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/call-bound": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
|
||||
"integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
|
||||
"dependencies": {
|
||||
"call-bind-apply-helpers": "^1.0.2",
|
||||
"get-intrinsic": "^1.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/cassandra-driver": {
|
||||
"version": "4.8.0",
|
||||
"resolved": "https://registry.npmjs.org/cassandra-driver/-/cassandra-driver-4.8.0.tgz",
|
||||
"integrity": "sha512-HritfMGq9V7SuESeSodHvArs0mLuMk7uh+7hQK2lqdvXrvm50aWxb4RPxkK3mPDdsgHjJ427xNRFITMH2ei+Sw==",
|
||||
"dependencies": {
|
||||
"@types/node": "^18.11.18",
|
||||
"adm-zip": "~0.5.10",
|
||||
"long": "~5.2.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/content-disposition": {
|
||||
"version": "0.5.4",
|
||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
||||
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
||||
"dependencies": {
|
||||
"safe-buffer": "5.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/content-type": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
||||
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/cookie": {
|
||||
"version": "0.7.1",
|
||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
|
||||
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/cookie-signature": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
||||
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
|
||||
},
|
||||
"node_modules/cors": {
|
||||
"version": "2.8.5",
|
||||
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
|
||||
"integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
|
||||
"dependencies": {
|
||||
"object-assign": "^4",
|
||||
"vary": "^1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"node_modules/debug": {
|
||||
"version": "2.6.9",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
||||
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
||||
"dependencies": {
|
||||
"ms": "2.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/depd": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
||||
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/destroy": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
|
||||
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
|
||||
"engines": {
|
||||
"node": ">= 0.8",
|
||||
"npm": "1.2.8000 || >= 1.4.16"
|
||||
}
|
||||
},
|
||||
"node_modules/dotenv": {
|
||||
"version": "16.4.7",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
|
||||
"integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://dotenvx.com"
|
||||
}
|
||||
},
|
||||
"node_modules/dunder-proto": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
||||
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
||||
"dependencies": {
|
||||
"call-bind-apply-helpers": "^1.0.1",
|
||||
"es-errors": "^1.3.0",
|
||||
"gopd": "^1.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/ee-first": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
||||
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
|
||||
},
|
||||
"node_modules/encodeurl": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
|
||||
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/es-define-property": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
||||
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/es-errors": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
||||
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/es-object-atoms": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
|
||||
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/escape-html": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
||||
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
|
||||
},
|
||||
"node_modules/etag": {
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
||||
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/express": {
|
||||
"version": "4.21.2",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
|
||||
"integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
|
||||
"dependencies": {
|
||||
"accepts": "~1.3.8",
|
||||
"array-flatten": "1.1.1",
|
||||
"body-parser": "1.20.3",
|
||||
"content-disposition": "0.5.4",
|
||||
"content-type": "~1.0.4",
|
||||
"cookie": "0.7.1",
|
||||
"cookie-signature": "1.0.6",
|
||||
"debug": "2.6.9",
|
||||
"depd": "2.0.0",
|
||||
"encodeurl": "~2.0.0",
|
||||
"escape-html": "~1.0.3",
|
||||
"etag": "~1.8.1",
|
||||
"finalhandler": "1.3.1",
|
||||
"fresh": "0.5.2",
|
||||
"http-errors": "2.0.0",
|
||||
"merge-descriptors": "1.0.3",
|
||||
"methods": "~1.1.2",
|
||||
"on-finished": "2.4.1",
|
||||
"parseurl": "~1.3.3",
|
||||
"path-to-regexp": "0.1.12",
|
||||
"proxy-addr": "~2.0.7",
|
||||
"qs": "6.13.0",
|
||||
"range-parser": "~1.2.1",
|
||||
"safe-buffer": "5.2.1",
|
||||
"send": "0.19.0",
|
||||
"serve-static": "1.16.2",
|
||||
"setprototypeof": "1.2.0",
|
||||
"statuses": "2.0.1",
|
||||
"type-is": "~1.6.18",
|
||||
"utils-merge": "1.0.1",
|
||||
"vary": "~1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/finalhandler": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
|
||||
"integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
|
||||
"dependencies": {
|
||||
"debug": "2.6.9",
|
||||
"encodeurl": "~2.0.0",
|
||||
"escape-html": "~1.0.3",
|
||||
"on-finished": "2.4.1",
|
||||
"parseurl": "~1.3.3",
|
||||
"statuses": "2.0.1",
|
||||
"unpipe": "~1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/forwarded": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
||||
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/fresh": {
|
||||
"version": "0.5.2",
|
||||
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
||||
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/function-bind": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/get-intrinsic": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
|
||||
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
|
||||
"dependencies": {
|
||||
"call-bind-apply-helpers": "^1.0.2",
|
||||
"es-define-property": "^1.0.1",
|
||||
"es-errors": "^1.3.0",
|
||||
"es-object-atoms": "^1.1.1",
|
||||
"function-bind": "^1.1.2",
|
||||
"get-proto": "^1.0.1",
|
||||
"gopd": "^1.2.0",
|
||||
"has-symbols": "^1.1.0",
|
||||
"hasown": "^2.0.2",
|
||||
"math-intrinsics": "^1.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/get-proto": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
||||
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
||||
"dependencies": {
|
||||
"dunder-proto": "^1.0.1",
|
||||
"es-object-atoms": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/gopd": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
||||
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/has-symbols": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
||||
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/hasown": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
||||
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
||||
"dependencies": {
|
||||
"function-bind": "^1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/http-errors": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
||||
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
||||
"dependencies": {
|
||||
"depd": "2.0.0",
|
||||
"inherits": "2.0.4",
|
||||
"setprototypeof": "1.2.0",
|
||||
"statuses": "2.0.1",
|
||||
"toidentifier": "1.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/iconv-lite": {
|
||||
"version": "0.4.24",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
||||
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
||||
"dependencies": {
|
||||
"safer-buffer": ">= 2.1.2 < 3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/inherits": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
||||
},
|
||||
"node_modules/ipaddr.js": {
|
||||
"version": "1.9.1",
|
||||
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
||||
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"node_modules/long": {
|
||||
"version": "5.2.5",
|
||||
"resolved": "https://registry.npmjs.org/long/-/long-5.2.5.tgz",
|
||||
"integrity": "sha512-e0r9YBBgNCq1D1o5Dp8FMH0N5hsFtXDBiVa0qoJPHpakvZkmDKPRoGffZJII/XsHvj9An9blm+cRJ01yQqU+Dw=="
|
||||
},
|
||||
"node_modules/math-intrinsics": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
||||
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/media-typer": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
||||
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/merge-descriptors": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
|
||||
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/methods": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
||||
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/mime": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
||||
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
||||
"bin": {
|
||||
"mime": "cli.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/mime-db": {
|
||||
"version": "1.52.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
||||
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/mime-types": {
|
||||
"version": "2.1.35",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
||||
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
||||
"dependencies": {
|
||||
"mime-db": "1.52.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/ms": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
|
||||
},
|
||||
"node_modules/negotiator": {
|
||||
"version": "0.6.3",
|
||||
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
||||
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/object-assign": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
||||
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/object-inspect": {
|
||||
"version": "1.13.4",
|
||||
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
|
||||
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/on-finished": {
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
||||
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
||||
"dependencies": {
|
||||
"ee-first": "1.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/parseurl": {
|
||||
"version": "1.3.3",
|
||||
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
||||
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/path-to-regexp": {
|
||||
"version": "0.1.12",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
||||
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="
|
||||
},
|
||||
"node_modules/proxy-addr": {
|
||||
"version": "2.0.7",
|
||||
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
||||
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
||||
"dependencies": {
|
||||
"forwarded": "0.2.0",
|
||||
"ipaddr.js": "1.9.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"node_modules/qs": {
|
||||
"version": "6.13.0",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
|
||||
"integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
|
||||
"dependencies": {
|
||||
"side-channel": "^1.0.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.6"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/range-parser": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
||||
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/raw-body": {
|
||||
"version": "2.5.2",
|
||||
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
|
||||
"integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
|
||||
"dependencies": {
|
||||
"bytes": "3.1.2",
|
||||
"http-errors": "2.0.0",
|
||||
"iconv-lite": "0.4.24",
|
||||
"unpipe": "1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
]
|
||||
},
|
||||
"node_modules/safer-buffer": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
||||
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
||||
},
|
||||
"node_modules/send": {
|
||||
"version": "0.19.0",
|
||||
"resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
|
||||
"integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
|
||||
"dependencies": {
|
||||
"debug": "2.6.9",
|
||||
"depd": "2.0.0",
|
||||
"destroy": "1.2.0",
|
||||
"encodeurl": "~1.0.2",
|
||||
"escape-html": "~1.0.3",
|
||||
"etag": "~1.8.1",
|
||||
"fresh": "0.5.2",
|
||||
"http-errors": "2.0.0",
|
||||
"mime": "1.6.0",
|
||||
"ms": "2.1.3",
|
||||
"on-finished": "2.4.1",
|
||||
"range-parser": "~1.2.1",
|
||||
"statuses": "2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/send/node_modules/encodeurl": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
||||
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/send/node_modules/ms": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
||||
},
|
||||
"node_modules/serve-static": {
|
||||
"version": "1.16.2",
|
||||
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
|
||||
"integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
|
||||
"dependencies": {
|
||||
"encodeurl": "~2.0.0",
|
||||
"escape-html": "~1.0.3",
|
||||
"parseurl": "~1.3.3",
|
||||
"send": "0.19.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/setprototypeof": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
||||
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
|
||||
},
|
||||
"node_modules/side-channel": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
|
||||
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0",
|
||||
"object-inspect": "^1.13.3",
|
||||
"side-channel-list": "^1.0.0",
|
||||
"side-channel-map": "^1.0.1",
|
||||
"side-channel-weakmap": "^1.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/side-channel-list": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
|
||||
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0",
|
||||
"object-inspect": "^1.13.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/side-channel-map": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
|
||||
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
|
||||
"dependencies": {
|
||||
"call-bound": "^1.0.2",
|
||||
"es-errors": "^1.3.0",
|
||||
"get-intrinsic": "^1.2.5",
|
||||
"object-inspect": "^1.13.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/side-channel-weakmap": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
|
||||
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
|
||||
"dependencies": {
|
||||
"call-bound": "^1.0.2",
|
||||
"es-errors": "^1.3.0",
|
||||
"get-intrinsic": "^1.2.5",
|
||||
"object-inspect": "^1.13.3",
|
||||
"side-channel-map": "^1.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/statuses": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
||||
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/toidentifier": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
||||
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
||||
"engines": {
|
||||
"node": ">=0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/type-is": {
|
||||
"version": "1.6.18",
|
||||
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
||||
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
||||
"dependencies": {
|
||||
"media-typer": "0.3.0",
|
||||
"mime-types": "~2.1.24"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/undici-types": {
|
||||
"version": "5.26.5",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
|
||||
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
|
||||
},
|
||||
"node_modules/unpipe": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
||||
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/utils-merge": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
||||
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
|
||||
"engines": {
|
||||
"node": ">= 0.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/uuid": {
|
||||
"version": "11.1.0",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz",
|
||||
"integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==",
|
||||
"funding": [
|
||||
"https://github.com/sponsors/broofa",
|
||||
"https://github.com/sponsors/ctavan"
|
||||
],
|
||||
"bin": {
|
||||
"uuid": "dist/esm/bin/uuid"
|
||||
}
|
||||
},
|
||||
"node_modules/vary": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
||||
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "foobleserver",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"cassandra-driver": "^4.7.2",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.4.7",
|
||||
"express": "^4.21.2",
|
||||
"uuid": "^11.0.3"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,219 @@
|
|||
const express = require("express");
|
||||
const cassandra = require("cassandra-driver");
|
||||
const { v4: uuidv4 } = require("uuid");
|
||||
|
||||
const { sydb } = require("./db");
|
||||
|
||||
const app = express();
|
||||
const port = process.env.PORT || 3014;
|
||||
|
||||
let pScore = [];
|
||||
let hof = [];
|
||||
|
||||
let blockList = [
|
||||
[0, 1, 1, 0, 1, 1, 1, 3, 1, 1, 1, 1, 0, 1, 1, 0],
|
||||
[1, 1, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0, 1, 0, 0, 0],
|
||||
[0, 0, 1, 0, 1, 1, 3, 1, 0, 0, 1, 0, 0, 0, 1, 1],
|
||||
[1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 3, 1],
|
||||
[0, 0, 1, 0, 0, 1, 1, 0, 0, 3, 1, 0, 1, 1, 1, 1],
|
||||
[1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 3, 1, 1, 1, 1],
|
||||
[1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 3, 1, 0, 1, 0, 0],
|
||||
[1, 1, 0, 0, 1, 0, 0, 1, 3, 1, 1, 1, 0, 1, 1, 0],
|
||||
[0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 3, 0],
|
||||
[0, 0, 1, 0, 0, 0, 3, 0, 1, 1, 1, 1, 0, 1, 1, 1],
|
||||
[3, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1],
|
||||
[0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 3, 0],
|
||||
[1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 3, 1, 1],
|
||||
[0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 1, 1, 1, 0, 0],
|
||||
[1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 3, 1, 1, 0],
|
||||
[1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 3, 1, 0, 0, 1, 0],
|
||||
[0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 3, 1, 1, 0, 1, 0],
|
||||
[1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 3, 0, 1, 0, 1, 0],
|
||||
[3, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1],
|
||||
[1, 1, 3, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0],
|
||||
[0, 1, 1, 0, 0, 3, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0],
|
||||
[1, 0, 0, 1, 3, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0],
|
||||
[1, 1, 1, 3, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1],
|
||||
[1, 3, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1],
|
||||
[1, 1, 1, 3, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0],
|
||||
[0, 0, 0, 1, 1, 1, 3, 1, 1, 0, 0, 0, 1, 1, 1, 0],
|
||||
[1, 1, 0, 0, 1, 3, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1],
|
||||
[1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 3],
|
||||
[1, 3, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1],
|
||||
[1, 1, 0, 3, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0],
|
||||
[0, 0, 0, 1, 1, 1, 3, 1, 0, 0, 0, 1, 1, 1, 1, 1],
|
||||
[0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0],
|
||||
[1, 0, 0, 1, 1, 3, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0]
|
||||
];
|
||||
|
||||
let dailyBlocks = [];
|
||||
|
||||
app.use(express.static("dist"));
|
||||
app.use(express.json());
|
||||
|
||||
// ScyllaDB configuration
|
||||
const client = new cassandra.Client({
|
||||
contactPoints: [process.env.SCYLLA_HOST || "localhost"],
|
||||
localDataCenter: "datacenter1", // Replace with your data center name
|
||||
});
|
||||
|
||||
async function connectToScylla() {
|
||||
try {
|
||||
await client.connect();
|
||||
console.log("Connected to ScyllaDB");
|
||||
await sydb(client);
|
||||
} catch (err) {
|
||||
console.error("Failed to connect to ScyllaDB", err);
|
||||
}
|
||||
}
|
||||
|
||||
function getDay(add) {
|
||||
const date = new Date();
|
||||
date.setDate(date.getDate() + add);
|
||||
const year = date.getFullYear() % 100; // Get the last two digits of the year
|
||||
const month = String(date.getMonth() + 1).padStart(2, "0"); // Months are 0-indexed, pad to 2 digits
|
||||
const day = String(date.getDate()).padStart(2, "0"); // Pad day to 2 digits
|
||||
|
||||
return parseInt(`${year}${month}${day}`, 10); // Concatenate and convert to a number
|
||||
}
|
||||
|
||||
async function getBlocks(date) {
|
||||
const query = "SELECT * FROM qb.blocks WHERE day = ?";
|
||||
const params = [date];
|
||||
const options = { hints: ["int"] };
|
||||
|
||||
let { rows } = await client.execute(query, params, options);
|
||||
|
||||
return rows;
|
||||
}
|
||||
|
||||
async function makeBlocks(date) {
|
||||
const randomInts = [];
|
||||
for (let i = 0; i < 25; i++) {
|
||||
const randInt = Math.floor(Math.random() * (blockList.length - 1)); // Generates a random integer between 0 and 50
|
||||
randomInts.push(randInt);
|
||||
}
|
||||
//return randomInts;
|
||||
|
||||
let b = randomInts;
|
||||
const query = "INSERT INTO qb.blocks(day, blocks) VALUES(?,?);";
|
||||
const params = [date, b];
|
||||
const options = { hints: ["int", "list<int>"] };
|
||||
|
||||
await client.execute(query, params, options);
|
||||
}
|
||||
|
||||
async function initBlocks() {
|
||||
let blocks = await getBlocks(getDay(0));
|
||||
if (!blocks[0]) {
|
||||
await makeBlocks(getDay(0));
|
||||
blocks = await getBlocks(getDay(0));
|
||||
}
|
||||
|
||||
let blocks1 = await getBlocks(getDay(1));
|
||||
if (!blocks1[0]) await makeBlocks(getDay(1));
|
||||
|
||||
let blockIds = blocks[0].blocks;
|
||||
dailyBlocks = blockIds.map((n) => blockList[n]);
|
||||
//console.log(dailyBlocks);
|
||||
}
|
||||
|
||||
async function prevScore(){
|
||||
let day = getDay(-1);
|
||||
let query = "SELECT * FROM qb.scores WHERE day = ? ORDER BY score DESC LIMIT 10;";
|
||||
let params = [day];
|
||||
let options = {hints: ['int']};
|
||||
try {
|
||||
let {rows} = await client.execute(query, params, options);
|
||||
pScore = rows;
|
||||
} catch (err) {
|
||||
console.error('Prev Score Error:', err);
|
||||
}
|
||||
// let hoQuery = "SELECT * FROM qb.scores ORDER BY score DESC LIMIT 10;";
|
||||
// try {
|
||||
// let {rows} = await client.execute(hoQuery);
|
||||
// hof = rows;
|
||||
// } catch (err) {
|
||||
// console.error('HoF Score Error:', err);
|
||||
// }
|
||||
}
|
||||
|
||||
async function initServer() {
|
||||
await connectToScylla();
|
||||
|
||||
initBlocks();
|
||||
prevScore();
|
||||
}
|
||||
|
||||
initServer();
|
||||
|
||||
setInterval(
|
||||
() => {
|
||||
initBlocks();
|
||||
prevScore();
|
||||
},
|
||||
60 * 60 * 1000,
|
||||
);
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
res.sendFile(path.resolve(__dirname, "dist", "index.html"));
|
||||
});
|
||||
|
||||
app.get("/api/blocks", (req, res) => {
|
||||
//console.log(dailyBlocks[0]);
|
||||
let data = {blocks: dailyBlocks, day: getDay(0)}
|
||||
res.send(data);
|
||||
});
|
||||
|
||||
app.get("/api/scoreboard", async (req, res) => {
|
||||
let day = getDay(0);
|
||||
let query = "SELECT * FROM qb.scores WHERE day = ? ORDER BY score DESC LIMIT 10;";
|
||||
let params = [day];
|
||||
let options = {hints: ['int']};
|
||||
try {
|
||||
let {rows} = await client.execute(query, params, options);
|
||||
//console.log(rows);
|
||||
let data = {
|
||||
'now': rows,
|
||||
'prev': pScore,
|
||||
'hof': hof,
|
||||
}
|
||||
res.json(data);
|
||||
} catch (err) {
|
||||
console.error('Write error:', err);
|
||||
console.log('Failed to write data');
|
||||
res.status(500).send("Failed to retrieve data: " + err.message);
|
||||
}
|
||||
});
|
||||
|
||||
app.post("/api/score", async (req, res) => {
|
||||
const { username, count, score, cube } = req.body;
|
||||
const id = uuidv4();
|
||||
console.log(username, count, score);
|
||||
let day = getDay(0);
|
||||
let query = "INSERT INTO qb.scores(id, username, email, day, count, score, cube) VALUES(?,?,?,?,?,?,?)";
|
||||
let params = [id, username, "NA", day, count, score, cube];
|
||||
let options = { hints: ['uuid', 'text', 'text', 'int', 'int', 'int', 'text'] };
|
||||
try {
|
||||
await client.execute(query, params, options);
|
||||
console.log('Score written successfully');
|
||||
} catch (err) {
|
||||
console.error('Write error:', err);
|
||||
console.log('Failed to write data');
|
||||
}
|
||||
res.send("Score Recorded");
|
||||
});
|
||||
|
||||
app.get("/api/test", async (req, res) => {
|
||||
try {
|
||||
const query = "SELECT release_version FROM system.local";
|
||||
const result = await client.execute(query);
|
||||
res.send(`ScyllaDB version: ${result.rows[0].release_version}`);
|
||||
} catch (err) {
|
||||
res.status(500).send(`Error querying ScyllaDB: ${err.message}`);
|
||||
}
|
||||
});
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`App running at http://localhost:${port}`);
|
||||
});
|
|
@ -0,0 +1,13 @@
|
|||
// See https://svelte.dev/docs/kit/types#app.d.ts
|
||||
// for information about these interfaces
|
||||
declare global {
|
||||
namespace App {
|
||||
// interface Error {}
|
||||
// interface Locals {}
|
||||
// interface PageData {}
|
||||
// interface PageState {}
|
||||
// interface Platform {}
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="%sveltekit.assets%/PBS_LOGO_NT.svg" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@900&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/app.css" />
|
||||
<title>Queueb!</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
// place files you want to import through the `$lib` alias in this folder.
|
|
@ -0,0 +1,774 @@
|
|||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
import axios from "axios";
|
||||
|
||||
let username: string = "PLACEHOLDER";
|
||||
|
||||
let dev = true;
|
||||
|
||||
let checkGo = false;
|
||||
|
||||
let showRules = false;
|
||||
|
||||
let start: boolean = false;
|
||||
|
||||
let promptInput: string;
|
||||
|
||||
let locked: boolean = false;
|
||||
|
||||
let shareBoard: boolean = false;
|
||||
let sbi: number = 0;
|
||||
let shareTarget: string = 'now';
|
||||
//let shareBlock: any[] = [];
|
||||
|
||||
let score: number = 0;
|
||||
let gameEnding: boolean = false;
|
||||
let gameOver: boolean = false;
|
||||
let day: number = 100000;
|
||||
|
||||
let fdef: any[] = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3];
|
||||
let cdef: any[] = [3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3];
|
||||
let mdef: any[] = [3, 1, 1, 1, 1, 3, 3, 3, 3, 1, 1, 1, 1, 3];
|
||||
let cubeDefault: any[] = [
|
||||
[...fdef],
|
||||
[...cdef],
|
||||
[...cdef],
|
||||
[...cdef],
|
||||
[...cdef],
|
||||
[...mdef],
|
||||
[...mdef],
|
||||
[...mdef],
|
||||
[...mdef],
|
||||
[...cdef],
|
||||
[...cdef],
|
||||
[...cdef],
|
||||
[...cdef],
|
||||
[...fdef],
|
||||
];
|
||||
|
||||
let cube: any[] = [...cubeDefault];
|
||||
let futureCube: any[] = [...cube];
|
||||
|
||||
//let block:any[] = [[0,0,1,0, 0,0,3,0, 1,1,1,1, 0,1,1,1],[0,1,0,0, 1,1,0,0, 1,1,3,1, 1,1,0,0],[1,1,1,0, 1,1,1,1, 0,3,0,0, 0,1,0,0],[0,0,1,1, 1,3,1,1, 0,0,1,1, 0,0,1,0]]
|
||||
let blocks: any[] = [
|
||||
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
||||
];
|
||||
|
||||
let defBlock: any[] = [
|
||||
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
||||
];
|
||||
|
||||
let root: any[] = [7, 7];
|
||||
let current: number = 0;
|
||||
|
||||
let block: any[] = [defBlock, defBlock, defBlock, defBlock];
|
||||
|
||||
let rotation: number = 0;
|
||||
|
||||
let colors: any[] = [
|
||||
"255,255,0",
|
||||
"255,0,255",
|
||||
"0,255,255",
|
||||
"255,0,0",
|
||||
"0,0,255",
|
||||
"255,0,255",
|
||||
"0,255,0",
|
||||
"255,191,0",
|
||||
"128,255,0",
|
||||
"0,128,255",
|
||||
"0,255,128",
|
||||
"0,255,64",
|
||||
"191,0,255",
|
||||
"0,255,192",
|
||||
"255,128,128",
|
||||
"128,0,255",
|
||||
"255,128,0",
|
||||
"128,255,255",
|
||||
];
|
||||
|
||||
let sbs: any[] = [];
|
||||
let scoreboard = {now: sbs, prev: sbs, hof: sbs };
|
||||
|
||||
export let daily: any[] = Array.from({ length: 25 }, (_, index) => index);
|
||||
|
||||
function makeRot(b: any) {
|
||||
let rotated = [];
|
||||
for (let col = 0; col < 4; col++) {
|
||||
for (let row = 3; row >= 0; row--) {
|
||||
//console.log(b);
|
||||
rotated.push(b[row * 4 + col]);
|
||||
}
|
||||
}
|
||||
return rotated;
|
||||
}
|
||||
|
||||
function genBlock(b: any) {
|
||||
let rotations = [b]; // Start with the original block (0-degree rotation)
|
||||
let rotated90 = makeRot(b);
|
||||
rotations.push(rotated90); // 90-degree rotation
|
||||
let rotated180 = makeRot(rotated90);
|
||||
rotations.push(rotated180); // 180-degree rotation
|
||||
let rotated270 = makeRot(rotated180);
|
||||
rotations.push(rotated270); // 270-degree rotation
|
||||
//console.log(rotations);
|
||||
return rotations;
|
||||
}
|
||||
|
||||
async function gameSetup() {
|
||||
await axios.get('/api/blocks').then((res) => {
|
||||
blocks = res.data.blocks;
|
||||
day = res.data.day;
|
||||
//console.log(day);
|
||||
})
|
||||
.catch((error) => {
|
||||
if(error.code != 'ERR_INVALID_URL') console.error('Error fetching data:', error);
|
||||
});
|
||||
|
||||
let cacheData = localStorage.getItem("gameState");
|
||||
let cacheGame = cacheData
|
||||
? JSON.parse(cacheData)
|
||||
: {
|
||||
daily: Array.from({ length: 25 }, (_, index) => index),
|
||||
day: 100000,
|
||||
};
|
||||
if (cacheGame.day == day) {
|
||||
//playing = cacheGame.playing; gameOver instead of playing
|
||||
cube = cacheGame.cube || cube;
|
||||
current = cacheGame.current || 0;
|
||||
gameOver = cacheGame.gameOver || false;
|
||||
if (gameOver) score = cacheGame.score || 0;
|
||||
}
|
||||
//console.log(current, blocks[current]);
|
||||
block = genBlock(blocks[current]);
|
||||
}
|
||||
|
||||
let makeCube = (x: number) => {
|
||||
//console.log(x);
|
||||
let c = colors[x % 100];
|
||||
let a = 1 - x / 1400;
|
||||
let val = "background-color: rgba(255, 255, 255, .9)";
|
||||
if (x == 3) val = "background-color: rgba(255, 255, 255, .5)";
|
||||
if (x > 99) val = `background-color: rgba(${c}, ${a})`;
|
||||
return val;
|
||||
};
|
||||
|
||||
let onShare = (i: number, x: string) => {
|
||||
if(sbi == i && shareTarget == x && shareBoard) {
|
||||
shareBoard = false;
|
||||
}else{
|
||||
sbi = i;
|
||||
shareTarget = x;
|
||||
shareBoard = true;
|
||||
//console.log(sbi, shareTarget);
|
||||
//console.log(scoreboard[shareTarget][sbi].cube);
|
||||
}
|
||||
}
|
||||
|
||||
let onEnter = (pI: string) => {
|
||||
username = pI;
|
||||
localStorage.setItem("username", username);
|
||||
start = true;
|
||||
};
|
||||
|
||||
let nudgeY = (n: number) => {
|
||||
root[0] = root[0] + n;
|
||||
if (root[0] > 10) root[0] = 10;
|
||||
if (root[0] < 0) root[0] = 0;
|
||||
};
|
||||
|
||||
let nudgeX = (n: number) => {
|
||||
root[1] = root[1] + n;
|
||||
if (root[1] > 10) root[1] = 10;
|
||||
if (root[1] < 0) root[1] = 0;
|
||||
};
|
||||
|
||||
let rotate = (n: number) => {
|
||||
rotation = rotation + n;
|
||||
if (rotation < 0) rotation = 3;
|
||||
if (rotation > 3) rotation = 0;
|
||||
};
|
||||
|
||||
let place = (n: number) => {
|
||||
let checkPlace = true;
|
||||
let placeCube: any[] = [];
|
||||
if (locked) {
|
||||
locked = false;
|
||||
} else {
|
||||
placeCube = cube.map((row) => [...row]);
|
||||
block[rotation].forEach((v: number, i: number) => {
|
||||
let x = 0;
|
||||
let y = 0;
|
||||
if ([4, 5, 6, 7].includes(i)) x = 1;
|
||||
if ([1, 5, 9, 13].includes(i)) y = 1;
|
||||
if ([8, 9, 10, 11].includes(i)) x = 2;
|
||||
if ([2, 6, 10, 14].includes(i)) y = 2;
|
||||
if ([12, 13, 14, 15].includes(i)) x = 3;
|
||||
if ([3, 7, 11, 15].includes(i)) y = 3;
|
||||
let r = root[0] + x;
|
||||
let c = root[1] + y;
|
||||
if (v != 0) {
|
||||
if (cube[r][c] > 9) checkPlace = false;
|
||||
//console.log(cube[r][c]);
|
||||
placeCube[r][c] = placeCube[r][c] * v * 100 + current;
|
||||
//console.log(futureCube[r][c] * v * 100);
|
||||
//console.log(r,c);
|
||||
}
|
||||
});
|
||||
if (checkPlace) {
|
||||
futureCube = placeCube;
|
||||
locked = true;
|
||||
} else {
|
||||
locked = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
let commit = (n: number) => {
|
||||
locked = false;
|
||||
cube = [];
|
||||
cube = [...futureCube];
|
||||
root = [7, 7];
|
||||
current++;
|
||||
block = genBlock(blocks[current]);
|
||||
let gameState = {
|
||||
cube: cube,
|
||||
current: current,
|
||||
gameOver: gameOver,
|
||||
daily: daily,
|
||||
score: score,
|
||||
day: day,
|
||||
};
|
||||
localStorage.setItem("gameState", JSON.stringify(gameState));
|
||||
};
|
||||
|
||||
let endGame = () => {
|
||||
locked = true;
|
||||
gameOver = true;
|
||||
let total = cube.flat().reduce((acc, num) => acc + num, 0);
|
||||
score = total;
|
||||
let gameState = {
|
||||
cube: cube,
|
||||
current: current,
|
||||
gameOver: gameOver,
|
||||
daily: daily,
|
||||
score: score,
|
||||
day: day,
|
||||
};
|
||||
localStorage.setItem("gameState", JSON.stringify(gameState));
|
||||
let data = {
|
||||
"username": username,
|
||||
"count": current,
|
||||
"score": score,
|
||||
"cube": JSON.stringify(cube),
|
||||
}
|
||||
axios.post('/api/score', data).then((res) => {
|
||||
console.log(res.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Error fetching data:', error);
|
||||
});
|
||||
};
|
||||
|
||||
let reset = () => {
|
||||
cube = cubeDefault;
|
||||
current = 0;
|
||||
gameOver = false;
|
||||
score = 0;
|
||||
day = 0;
|
||||
|
||||
|
||||
let gameState = {
|
||||
cube: cube,
|
||||
current: current,
|
||||
gameOver: gameOver,
|
||||
daily: daily,
|
||||
score: score,
|
||||
day: day,
|
||||
};
|
||||
localStorage.setItem("gameState", JSON.stringify(gameState));
|
||||
gameSetup();
|
||||
};
|
||||
|
||||
axios.get('/api/scoreboard').then((res) => {
|
||||
scoreboard = res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
if(error.code != 'ERR_INVALID_URL') console.error('Error fetching scoreboard:', error);
|
||||
});
|
||||
|
||||
onMount(() => {
|
||||
username = localStorage.getItem("username") || "";
|
||||
if (username.length > 2) promptInput = username;
|
||||
|
||||
gameSetup();
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="queueb">
|
||||
{#if !start}
|
||||
<div class="fullscreen-prompt">
|
||||
<div class="prompt-content">
|
||||
<div class="footer">
|
||||
<img
|
||||
style="height: 1.5em; margin: 1.7em 2px 2px 2px"
|
||||
src="/PBS_LOGO_NT.svg"
|
||||
alt="LOGO"
|
||||
/>
|
||||
<h1 class="prompt-text">QueueB Beta</h1>
|
||||
</div>
|
||||
|
||||
<p class="prompt-text">
|
||||
Welcome! QueueB is a daily spacial puzzle game. Each day everyone
|
||||
recieves the daily queue of blocks and you must decide
|
||||
where to place them to maximize your score! Future updates will
|
||||
include an all time top scores chart and a 1 vs 1 challenge mode where
|
||||
you can take turns with a friend competing for the most points on a shared
|
||||
board!
|
||||
</p>
|
||||
|
||||
<button
|
||||
class="prompt-input"
|
||||
on:click={() => (showRules = !showRules)}
|
||||
>
|
||||
{#if showRules}
|
||||
<p class="prompt-text">
|
||||
Nudge and rotate each block you are given
|
||||
into position. Once satisfied with a blocks location
|
||||
click Place and then Confirm! Each square on the blocks
|
||||
you confirm will be added to the board scoring at least
|
||||
100pts. Your blocks cannot be placed on colored squares that you already
|
||||
occupy and placement will be prevented. The dark grey squares
|
||||
on the board multiply your colored block squares by 3x when stacked.
|
||||
Blocks may also have a unique multiplier square which also rewards 3x.
|
||||
When the unique block square is placed on a grey board square, these
|
||||
two multipliers can stack for 9x points! You must balance
|
||||
maximizing the number of blocks you place on the board with the
|
||||
position of those multiplier squares on both the board and your blocks
|
||||
to get the most points! Once you can no longer place any blocks click
|
||||
Review Board and then Score Your Game!
|
||||
</p>
|
||||
{:else}
|
||||
<div class="prompt-text">How To Play? Touch Here!</div>
|
||||
{/if}
|
||||
</button>
|
||||
|
||||
<h1 class="prompt-text">Your Username</h1>
|
||||
|
||||
<input
|
||||
type="text"
|
||||
maxlength="12"
|
||||
placeholder="INPUT NAME HERE"
|
||||
bind:value={promptInput}
|
||||
class="prompt-input"
|
||||
/>
|
||||
<button
|
||||
disabled={promptInput == undefined ||
|
||||
promptInput.length < 3}
|
||||
class="prompt-input prompt-button"
|
||||
on:click={() => onEnter(promptInput)}
|
||||
>
|
||||
ENTER
|
||||
</button>
|
||||
|
||||
<a href="https://studio.paradisbend.com">
|
||||
<p class="prompt-text">Created By Paradis Bend Studio</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<h1>Welcome {username}</h1>
|
||||
|
||||
<div class="cubeGrid" style="--col-count: {cube[0].length}">
|
||||
{#each cube as c, index}
|
||||
{#each c as x, i}
|
||||
<div class="cube" style={makeCube(x)}>
|
||||
{#if root[0] == index && root[1] == i && !gameEnding && !gameOver && start}
|
||||
<div class="activeBlock">
|
||||
{#each block[rotation] as b}
|
||||
<div
|
||||
class="{b > 0 ? 'blocks' : 'noblocks'} {b ==
|
||||
3
|
||||
? 'b2'
|
||||
: null}"
|
||||
style={b > 0
|
||||
? `background-color: rgba(${colors[current]}, 0.7)`
|
||||
: ""}
|
||||
>
|
||||
{#if b == 2}{/if}
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/each}
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
{#if gameOver}
|
||||
<h1>Score: {score}</h1>
|
||||
<h1>Thanks For Playing!</h1>
|
||||
{/if}
|
||||
|
||||
<div class="controls">
|
||||
<div class="controlRow">
|
||||
<button
|
||||
class="control"
|
||||
on:click={() => rotate(-1)}
|
||||
disabled={locked}>Rotate L</button
|
||||
>
|
||||
<button
|
||||
class="control"
|
||||
on:click={() => nudgeY(-1)}
|
||||
disabled={locked}>Up</button
|
||||
>
|
||||
<button class="control" on:click={() => rotate(1)} disabled={locked}
|
||||
>Rotate R</button
|
||||
>
|
||||
</div>
|
||||
<div class="controlRow">
|
||||
<button
|
||||
class="control"
|
||||
on:click={() => nudgeX(-1)}
|
||||
disabled={locked}>Left</button
|
||||
>
|
||||
<button class="control" on:click={() => nudgeY(1)} disabled={locked}
|
||||
>Down</button
|
||||
>
|
||||
<button class="control" on:click={() => nudgeX(1)} disabled={locked}
|
||||
>Right</button
|
||||
>
|
||||
</div>
|
||||
<div class="controlRow">
|
||||
<button
|
||||
class="control"
|
||||
disabled={gameOver}
|
||||
on:click={() => place(0)}
|
||||
>{!locked ? "Place" : "Pick Up"}</button
|
||||
>
|
||||
<button
|
||||
class="control"
|
||||
disabled={!locked || gameOver}
|
||||
on:click={() => commit(0)}>Confirm</button
|
||||
>
|
||||
</div>
|
||||
<div class="controlRow">
|
||||
<button
|
||||
class="control"
|
||||
disabled={gameOver}
|
||||
on:click={() => (gameEnding = !gameEnding)}
|
||||
>{gameEnding ? 'Keep Playing':'Review Board'}: {current}</button
|
||||
>
|
||||
<button
|
||||
class="control"
|
||||
disabled={!gameEnding || gameOver}
|
||||
on:click={endGame}>Score Your Game</button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='scores'>
|
||||
<div class="fifty">
|
||||
<h2>Todays Top 10</h2>
|
||||
<div>
|
||||
<div class='scoreTile underline'>
|
||||
<div class="username">Player</div>
|
||||
<div class="score">Count</div>
|
||||
<div class="score">Score</div>
|
||||
</div>
|
||||
{#each scoreboard.now as sc, i}
|
||||
<div class='scoreTile'
|
||||
tabindex="0"
|
||||
role="button"
|
||||
style="cursor: pointer;"
|
||||
on:click={()=>onShare(i,'now')}
|
||||
on:keydown={(e) => {
|
||||
if (e.key === 'Enter' || e.key === ' ') {
|
||||
onShare(i,'now');
|
||||
}
|
||||
}}>
|
||||
<div class="username">{sc.username}</div>
|
||||
<div class="score">{sc.count}</div>
|
||||
<div class="score">{sc.score}</div>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fifty">
|
||||
<h2>Last Top 10</h2>
|
||||
<div>
|
||||
<div class='scoreTile underline'>
|
||||
<div class="username">Player</div>
|
||||
<div class="score">Count</div>
|
||||
<div class="score">Score</div>
|
||||
</div>
|
||||
{#each scoreboard.prev as sc, i}
|
||||
<div class='scoreTile'
|
||||
tabindex="0"
|
||||
role="button"
|
||||
style="cursor: pointer;"
|
||||
on:click={()=>onShare(i,'prev')}
|
||||
on:keydown={(e) => {
|
||||
if (e.key === 'Enter' || e.key === ' ') {
|
||||
onShare(i,'prev');
|
||||
}
|
||||
}}>
|
||||
<div class="username">{sc.username}</div>
|
||||
<div class="score">{sc.count}</div>
|
||||
<div class="score">{sc.score}</div>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#if gameOver}
|
||||
<div tabindex="0"
|
||||
role="button"
|
||||
style="cursor: pointer;"
|
||||
on:click={() => { if (shareBoard) onShare(sbi, shareTarget); }}
|
||||
on:keydown={(e) => {
|
||||
if ((e.key === 'Enter' || e.key === ' ') && shareBoard) {
|
||||
onShare(sbi, shareTarget);
|
||||
}
|
||||
}}>
|
||||
<h3>{shareBoard ? 'Click Here to Hide Board Below!' : 'Click Someones Score To View Their Board!'}</h3>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if gameOver && shareBoard && scoreboard[shareTarget].length > 0}
|
||||
<h2>{`${scoreboard[shareTarget][sbi].username}'s #${sbi+1} Board ${shareTarget == 'now' ? 'Today' : 'Yesterday'}: ${scoreboard[shareTarget][sbi].count} Blocks`}</h2>
|
||||
<div class="cubeGrid" style="--col-count: {cube[0].length}">
|
||||
{#each JSON.parse(scoreboard[shareTarget][sbi].cube) as c, index}
|
||||
{#each c as x, i}
|
||||
<div class="cube" style={makeCube(x)}></div>
|
||||
{/each}
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="scores hof">
|
||||
<h2>Hall Of Fame</h2>
|
||||
<div class='scoreTile underline hof2'>
|
||||
<div class="username">Player</div>
|
||||
<div class="score">Date</div>
|
||||
<div class="score">Count</div>
|
||||
<div class="score">Score</div>
|
||||
</div>
|
||||
{#each scoreboard.hof as sc}
|
||||
<div class='scoreTile hof2'>
|
||||
<div class="username">{sc.username}</div>
|
||||
<div class="score">{sc.day}</div>
|
||||
<div class="score">{sc.count}</div>
|
||||
<div class="score">{sc.score}</div>
|
||||
</div>
|
||||
{/each}
|
||||
<p>**WIP - Hall of Fame Updates Daily**</p>
|
||||
</div>
|
||||
|
||||
<div class="controls">
|
||||
<div class="controlRow">
|
||||
<button class="control" on:click={reset}>Dev Reset</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<img
|
||||
style="height: 1rem; margin: 1rem 2px 2px 2px"
|
||||
src="/PBS_LOGO_NT.svg"
|
||||
alt="LOGO"
|
||||
/>
|
||||
<a href="https://studio.paradisbend.com">
|
||||
<p>Paradis Bend Studio | QueueB</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p, .scores{
|
||||
font-family: "Roboto", sans-serif;
|
||||
text-align: center;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.queueb {
|
||||
margin: auto;
|
||||
width: 30rem;
|
||||
max-width: 100vw;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cubeGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--col-count), minmax(1rem, 1fr));
|
||||
width: 100%;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.cube {
|
||||
border: 1px solid rgb(88, 88, 88);
|
||||
background-color: rgba(255, 255, 255, 0.7);
|
||||
max-width: 2.2rem;
|
||||
height: 2rem;
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.activeBlock {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(1rem, 1fr));
|
||||
width: 100%;
|
||||
gap: 0;
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
z-index: 9998;
|
||||
width: 420%;
|
||||
height: 420%;
|
||||
}
|
||||
|
||||
.blocks {
|
||||
z-index: 9999;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.noblocks {
|
||||
z-index: 9999;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.b2 {
|
||||
outline: 8px solid rgba(1, 1, 1, 0.208);
|
||||
outline-offset: -12px;
|
||||
}
|
||||
|
||||
.controls {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
.controlRow {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.control {
|
||||
flex-grow: 1;
|
||||
width: 8rem;
|
||||
height: 4rem;
|
||||
}
|
||||
|
||||
.footer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.fullscreen-prompt {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
z-index: 1000; /* Ensure it's on top of other elements */
|
||||
}
|
||||
|
||||
.prompt-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: white;
|
||||
width: 80vw;
|
||||
padding: 2rem;
|
||||
margin: 1rem;
|
||||
margin-bottom: auto;
|
||||
border-radius: 10px;
|
||||
text-align: center;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
max-height: 70vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.prompt-text {
|
||||
color: rgb(40, 60, 80);
|
||||
}
|
||||
|
||||
.prompt-input {
|
||||
color: rgb(40, 60, 80);
|
||||
border: 1px solid rgb(55, 83, 124);
|
||||
margin-bottom: 1rem;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
min-width: 50vw;
|
||||
}
|
||||
|
||||
.prompt-button {
|
||||
background-color: rgb(40, 60, 80);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.prompt-button:disabled {
|
||||
background-color: grey;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.scores {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-basis: auto;
|
||||
width: 100%;
|
||||
padding-bottom: 2em;
|
||||
margin-bottom: 5em;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.fifty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.scoreTile {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 80vw;
|
||||
max-width: 12em;
|
||||
}
|
||||
.score {
|
||||
text-align: right;
|
||||
width: 30%;
|
||||
}
|
||||
.username {
|
||||
flex-grow: 3;
|
||||
text-align: left;
|
||||
}
|
||||
.underline {
|
||||
border-bottom: 2px solid #ccc;
|
||||
}
|
||||
|
||||
.hof{
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.hof2{
|
||||
width: 90%;
|
||||
max-width: 90%;
|
||||
align-self: center;
|
||||
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,154 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="195.50867mm"
|
||||
height="195.50867mm"
|
||||
viewBox="0 0 195.50865 195.50865"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs1">
|
||||
<rect
|
||||
x="32.480461"
|
||||
y="30.450434"
|
||||
width="558.27716"
|
||||
height="146.69051"
|
||||
id="rect10" />
|
||||
<rect
|
||||
x="32.480461"
|
||||
y="30.450434"
|
||||
width="858.10406"
|
||||
height="134.81934"
|
||||
id="rect11" />
|
||||
<rect
|
||||
x="32.480461"
|
||||
y="30.450434"
|
||||
width="631.388"
|
||||
height="132.91058"
|
||||
id="rect12" />
|
||||
<rect
|
||||
x="32.480461"
|
||||
y="30.450434"
|
||||
width="558.27716"
|
||||
height="146.69051"
|
||||
id="rect16" />
|
||||
</defs>
|
||||
<g
|
||||
id="layer1"
|
||||
transform="translate(7.3405282,-2.6855591)">
|
||||
<path
|
||||
style="fill:#162530;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:0"
|
||||
d="m -7.3405282,198.19424 38.2697802,-0.0385 0.111286,-21.13897 c 0.137826,-26.18018 21.368838,-47.33955 47.549294,-47.27258 L 188.16815,130.0245 188.16232,2.6855591 69.627792,3.3627357 C 27.150813,3.6054027 -7.1677648,38.085362 -7.2135997,80.563009 Z"
|
||||
id="path4" />
|
||||
<path
|
||||
style="display:inline;fill:#a6a6a6;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
d="m 73.807334,193.93232 c -1.639601,-11.54527 4.62143,-22.63434 3.665342,-33.32858 -0.297047,-3.32259 -2.375926,-8.40173 -3.625321,-11.50719 l -2.305334,-5.73008 c -1.54692,-3.84498 -1.219071,-8.19052 0.887223,-11.75989 1.802417,-2.86134 5.724623,-3.45613 8.29432,-1.2578 3.63566,2.93191 5.821587,13.90934 9.40479,23.31746 3.972461,10.43017 11.495196,8.92317 19.200826,4.59958 4.88785,-2.74255 12.16811,-8.27281 17.11685,-10.90169 12.55965,-6.67197 17.82441,-3.20583 28.54331,-0.35312 5.69381,1.51535 15.14183,0.95346 20.89479,-0.34486 l 0.0274,-0.006 c 5.34383,-1.20599 11.7998,2.97848 11.79799,8.45672 l -0.015,45.40734 -108.513062,-0.026 c -2.422592,0.0153 -5.033845,-4.17015 -5.374044,-6.56567 z"
|
||||
id="path1"
|
||||
transform="matrix(1.0755781,0,0,0.64625316,-13.733827,68.57362)" />
|
||||
<g
|
||||
id="g4"
|
||||
transform="matrix(2.6263015,0,0,4.9405572,-277.84724,-578.21708)"
|
||||
style="display:inline">
|
||||
<rect
|
||||
style="fill:#4b443b;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
id="rect4"
|
||||
width="2.152174"
|
||||
height="4.9373403"
|
||||
x="166.32558"
|
||||
y="146.98083" />
|
||||
<path
|
||||
style="fill:#3b4b3c;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
d="m 158.07541,149.16934 8.98368,-8.81627 8.98368,8.71831 z"
|
||||
id="path2-3-3-8" />
|
||||
<path
|
||||
style="fill:#3b4b3c;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
d="m 161.4021,136.60544 5.81871,-8.05668 5.81871,7.96716 z"
|
||||
id="path2" />
|
||||
<path
|
||||
style="fill:#3b4b3c;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
d="m 159.99915,140.73765 7.15103,-8.22964 7.27155,8.14012 z"
|
||||
id="path2-3" />
|
||||
<path
|
||||
style="fill:#3b4b3c;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
d="m 159.12236,145.20971 7.84429,-8.72291 7.84429,8.63339 z"
|
||||
id="path2-3-3" />
|
||||
</g>
|
||||
<g
|
||||
id="g5"
|
||||
style="display:inline">
|
||||
<path
|
||||
d="m 108.94585,72.569778 c 0,-7.360023 -5.97335,-13.440042 -13.333376,-13.440042 H 43.13231 V 126.11661 H 56.465685 V 99.343195 h 39.146789 c 8.853356,0 13.333376,-4.373347 13.333376,-13.333375 z M 56.465685,86.00982 V 72.569778 H 95.612474 V 86.00982 Z M 183.5061,72.569778 c 0,-7.786691 -5.54668,-13.440042 -13.44004,-13.440042 H 116.6259 v 13.440042 h 53.44016 V 86.00982 h -40.10679 c -7.78669,0 -13.33337,5.546684 -13.33337,13.333375 v 13.440045 c 0,7.68002 5.54668,13.33337 13.33337,13.33337 H 183.5061 Z M 129.95927,112.78324 V 99.343195 h 40.10679 V 112.78324 Z M 256.03974,72.569778 c 0,-8.960028 -4.48001,-13.440042 -13.44004,-13.440042 h -47.78682 v 66.986874 h 13.33338 V 72.569778 H 242.5997 V 86.00982 h 13.44004 z m 74.13348,0 c 0,-7.786691 -5.54668,-13.440042 -13.44004,-13.440042 h -53.44017 v 13.440042 h 53.44017 V 86.00982 h -40.10679 c -7.7867,0 -13.33338,5.546684 -13.33338,13.333375 v 13.440045 c 0,7.68002 5.54668,13.33337 13.33338,13.33337 h 53.54683 z M 276.62639,112.78324 V 99.343195 h 40.10679 V 112.78324 Z M 406.22687,39.929676 h -13.33338 v 19.20006 h -39.04012 c -7.14669,0 -13.33338,5.760018 -13.33338,13.120041 v 40.533463 c 0,7.89335 5.54669,13.33337 13.33338,13.33337 h 52.3735 z m -52.3735,72.853564 V 72.569778 h 39.04012 v 40.213462 z m 77.44035,-53.653504 h -13.33338 v 66.986874 h 13.33338 z M 504.254,99.343195 c 0,-8.106692 -5.33335,-13.333375 -13.5467,-13.333375 H 455.18718 V 72.569778 h 45.76015 V 59.129736 h -45.76015 c -8.10669,0 -13.33337,4.906682 -13.33337,13.440042 V 86.00982 c 0,8.746694 5.44002,13.333375 13.33337,13.333375 h 35.52012 v 13.440045 h -47.89349 v 13.33337 h 47.89349 c 8.64002,0 13.5467,-4.69335 13.5467,-13.33337 z"
|
||||
id="text2"
|
||||
style="font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';white-space:pre;shape-padding:4.78483;fill:#a6a6a6"
|
||||
transform="matrix(0.2898684,0,0,0.45729312,36.8963,-12.701143)"
|
||||
aria-label="Paradis " />
|
||||
<path
|
||||
d="m 104.35917,99.343195 c 0,-8.106692 -5.333352,-13.333375 -13.546711,-13.333375 H 55.292348 V 72.569778 H 101.05249 V 59.129736 H 55.292348 c -8.106692,0 -13.333375,4.906682 -13.333375,13.440042 V 86.00982 c 0,8.746694 5.440017,13.333375 13.333375,13.333375 H 90.812459 V 112.78324 H 42.918976 v 13.33337 h 47.893483 c 8.640027,0 13.546711,-4.69335 13.546711,-13.33337 z m 37.01342,13.440045 H 127.93255 V 71.503108 h 13.44004 V 59.129736 H 127.93255 V 40.14301 h -13.33338 v 72.64023 c 0,7.68002 5.54669,13.33337 13.33338,13.33337 h 13.44004 z M 215.82615,59.129736 H 202.49278 V 112.78324 H 162.27932 V 59.129736 h -13.22671 v 53.653504 c 0,7.68002 5.44002,13.33337 13.22671,13.33337 h 40.21346 c 7.89336,0 13.33337,-5.44002 13.33337,-13.33337 z m 76.05364,-19.20006 h -13.33338 v 19.20006 h -39.04012 c -7.14669,0 -13.33337,5.760018 -13.33337,13.120041 v 40.533463 c 0,7.89335 5.54668,13.33337 13.33337,13.33337 h 52.3735 z m -52.3735,72.853564 V 72.569778 h 39.04012 v 40.213462 z m 77.44035,-53.653504 h -13.33337 v 66.986874 h 13.33337 z m 77.54697,13.440042 c 0,-7.360023 -5.97335,-13.440042 -13.33338,-13.440042 h -40.10679 c -7.14669,0 -13.33337,5.866685 -13.33337,13.440042 v 40.213462 c 0,8.96002 4.48001,13.33337 13.33337,13.33337 h 40.10679 c 8.85336,0 13.33338,-4.37335 13.33338,-13.33337 z M 341.05344,112.78324 V 72.569778 h 40.10679 v 40.213462 z"
|
||||
id="text2-9"
|
||||
style="font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';white-space:pre;shape-padding:4.78483;fill:#a6a6a6"
|
||||
transform="matrix(0.26435029,0,0,0.45729312,55.345179,65.224104)"
|
||||
aria-label="Studio" />
|
||||
<path
|
||||
d="m 110.01252,72.249777 c 0,-7.253356 -6.40002,-13.120041 -13.226709,-13.120041 H 56.465685 V 39.929676 H 43.13231 v 86.186934 h 53.653501 c 7.786689,0 13.226709,-5.44002 13.226709,-13.33337 z M 56.465685,112.78324 V 72.569778 H 96.785811 V 112.78324 Z M 172.83945,99.236528 c 7.89335,0 13.2267,-5.33335 13.2267,-13.333375 V 72.463111 c 0,-7.680024 -5.44001,-13.333375 -13.2267,-13.333375 h -39.78679 c -8.4267,0 -13.22671,5.546684 -13.22671,13.333375 v 40.320129 c 0,7.57335 5.44001,13.33337 13.22671,13.33337 h 49.70682 V 112.78324 H 133.05266 V 99.236528 Z M 133.05266,85.903153 V 72.463111 h 39.78679 V 85.903153 Z M 259.45304,72.569778 c 0,-8.960028 -4.48001,-13.440042 -13.44004,-13.440042 h -50.02682 v 66.986874 h 13.33337 V 72.569778 H 246.013 v 53.546832 h 13.44004 z m 75.94698,-32.640102 h -13.33337 v 19.20006 h -39.04012 c -7.14669,0 -13.33338,5.760018 -13.33338,13.120041 v 40.533463 c 0,7.89335 5.54668,13.33337 13.33338,13.33337 h 52.37349 z M 283.02653,112.78324 V 72.569778 h 39.04012 v 40.213462 z"
|
||||
id="text2-5"
|
||||
style="font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';white-space:pre;shape-padding:4.78483;fill:#a6a6a6"
|
||||
transform="matrix(0.28441105,0,0,0.45729312,37.163429,26.160737)"
|
||||
aria-label="bend " />
|
||||
</g>
|
||||
<g
|
||||
id="g5-7"
|
||||
style="display:none"
|
||||
transform="translate(-32.927022,100.57922)">
|
||||
<path
|
||||
d="m 108.94585,72.569778 c 0,-7.360023 -5.97335,-13.440042 -13.333376,-13.440042 H 43.13231 V 126.11661 H 56.465685 V 99.343195 h 39.146789 c 8.853356,0 13.333376,-4.373347 13.333376,-13.333375 z M 56.465685,86.00982 V 72.569778 H 95.612474 V 86.00982 Z M 184.78611,72.249777 c 0,-7.253356 -6.40002,-13.120041 -13.22671,-13.120041 H 131.23928 V 39.929676 H 117.9059 v 86.186934 h 53.6535 c 7.78669,0 13.22671,-5.44002 13.22671,-13.33337 z M 131.23928,112.78324 V 72.569778 H 171.5594 V 112.78324 Z M 256.7864,99.343195 c 0,-8.106692 -5.33335,-13.333375 -13.54671,-13.333375 H 207.71958 V 72.569778 h 45.76014 V 59.129736 h -45.76014 c -8.10669,0 -13.33338,4.906682 -13.33338,13.440042 V 86.00982 c 0,8.746694 5.44002,13.333375 13.33338,13.333375 h 35.52011 v 13.440045 h -47.89348 v 13.33337 h 47.89348 c 8.64003,0 13.54671,-4.69335 13.54671,-13.33337 z"
|
||||
id="text2-3"
|
||||
style="font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';white-space:pre;shape-padding:4.78483;fill:#a6a6a6"
|
||||
transform="matrix(0.56377489,0,0,0.78605051,75.803284,-2.0915626)"
|
||||
aria-label="Pbs " />
|
||||
</g>
|
||||
<g
|
||||
id="g9"
|
||||
style="display:none">
|
||||
<text
|
||||
xml:space="preserve"
|
||||
transform="matrix(0.2898684,0,0,0.45729312,36.8963,-12.701143)"
|
||||
id="text7"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect10);shape-padding:4.78483;display:inline;fill:#a6a6a6;fill-opacity:1"><tspan
|
||||
x="37.265625"
|
||||
y="126.11661"
|
||||
id="tspan1">Paradis </tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
transform="matrix(0.26435029,0,0,0.45729312,55.345179,65.224104)"
|
||||
id="text8"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect11);shape-padding:4.78483;display:inline;fill:#a6a6a6;fill-opacity:1"><tspan
|
||||
x="37.265625"
|
||||
y="126.11661"
|
||||
id="tspan2">Studio</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
transform="matrix(0.28441105,0,0,0.45729312,37.163429,26.160737)"
|
||||
id="text9"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect12);shape-padding:4.78483;display:inline;fill:#a6a6a6;fill-opacity:1"><tspan
|
||||
x="37.265625"
|
||||
y="126.11661"
|
||||
id="tspan3">bend </tspan></text>
|
||||
</g>
|
||||
<g
|
||||
id="g16"
|
||||
style="display:none"
|
||||
transform="translate(-32.927022,100.57922)">
|
||||
<text
|
||||
xml:space="preserve"
|
||||
transform="matrix(0.56377489,0,0,0.78605051,75.803284,-2.0915626)"
|
||||
id="text16"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect16);shape-padding:4.78483;display:inline;fill:#a6a6a6;fill-opacity:1"><tspan
|
||||
x="37.265625"
|
||||
y="126.11661"
|
||||
id="tspan4">Pbs </tspan></text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 12 KiB |
|
@ -0,0 +1,154 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="195.50867mm"
|
||||
height="195.50867mm"
|
||||
viewBox="0 0 195.50865 195.50865"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs1">
|
||||
<rect
|
||||
x="32.480461"
|
||||
y="30.450434"
|
||||
width="558.27716"
|
||||
height="146.69051"
|
||||
id="rect10" />
|
||||
<rect
|
||||
x="32.480461"
|
||||
y="30.450434"
|
||||
width="858.10406"
|
||||
height="134.81934"
|
||||
id="rect11" />
|
||||
<rect
|
||||
x="32.480461"
|
||||
y="30.450434"
|
||||
width="631.388"
|
||||
height="132.91058"
|
||||
id="rect12" />
|
||||
<rect
|
||||
x="32.480461"
|
||||
y="30.450434"
|
||||
width="558.27716"
|
||||
height="146.69051"
|
||||
id="rect16" />
|
||||
</defs>
|
||||
<g
|
||||
id="layer1"
|
||||
transform="translate(7.3405282,-2.6855591)">
|
||||
<path
|
||||
style="fill:#162530;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:0"
|
||||
d="m -7.3405282,198.19424 38.2697802,-0.0385 0.111286,-21.13897 c 0.137826,-26.18018 21.368838,-47.33955 47.549294,-47.27258 L 188.16815,130.0245 188.16232,2.6855591 69.627792,3.3627357 C 27.150813,3.6054027 -7.1677648,38.085362 -7.2135997,80.563009 Z"
|
||||
id="path4" />
|
||||
<path
|
||||
style="display:none;fill:#a6a6a6;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
d="m 73.807334,193.93232 c -1.639601,-11.54527 4.62143,-22.63434 3.665342,-33.32858 -0.297047,-3.32259 -2.375926,-8.40173 -3.625321,-11.50719 l -2.305334,-5.73008 c -1.54692,-3.84498 -1.219071,-8.19052 0.887223,-11.75989 1.802417,-2.86134 5.724623,-3.45613 8.29432,-1.2578 3.63566,2.93191 5.821587,13.90934 9.40479,23.31746 3.972461,10.43017 11.495196,8.92317 19.200826,4.59958 4.88785,-2.74255 12.16811,-8.27281 17.11685,-10.90169 12.55965,-6.67197 17.82441,-3.20583 28.54331,-0.35312 5.69381,1.51535 15.14183,0.95346 20.89479,-0.34486 l 0.0274,-0.006 c 5.34383,-1.20599 11.7998,2.97848 11.79799,8.45672 l -0.015,45.40734 -108.513062,-0.026 c -2.422592,0.0153 -5.033845,-4.17015 -5.374044,-6.56567 z"
|
||||
id="path1"
|
||||
transform="matrix(1.0755781,0,0,0.64625316,-13.733827,68.57362)" />
|
||||
<g
|
||||
id="g4"
|
||||
transform="matrix(2.6263015,0,0,4.9405572,-277.84724,-578.21708)"
|
||||
style="display:none">
|
||||
<rect
|
||||
style="fill:#4b443b;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
id="rect4"
|
||||
width="2.152174"
|
||||
height="4.9373403"
|
||||
x="166.32558"
|
||||
y="146.98083" />
|
||||
<path
|
||||
style="fill:#3b4b3c;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
d="m 158.07541,149.16934 8.98368,-8.81627 8.98368,8.71831 z"
|
||||
id="path2-3-3-8" />
|
||||
<path
|
||||
style="fill:#3b4b3c;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
d="m 161.4021,136.60544 5.81871,-8.05668 5.81871,7.96716 z"
|
||||
id="path2" />
|
||||
<path
|
||||
style="fill:#3b4b3c;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
d="m 159.99915,140.73765 7.15103,-8.22964 7.27155,8.14012 z"
|
||||
id="path2-3" />
|
||||
<path
|
||||
style="fill:#3b4b3c;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-opacity:0"
|
||||
d="m 159.12236,145.20971 7.84429,-8.72291 7.84429,8.63339 z"
|
||||
id="path2-3-3" />
|
||||
</g>
|
||||
<g
|
||||
id="g5"
|
||||
style="display:none">
|
||||
<path
|
||||
d="m 108.94585,72.569778 c 0,-7.360023 -5.97335,-13.440042 -13.333376,-13.440042 H 43.13231 V 126.11661 H 56.465685 V 99.343195 h 39.146789 c 8.853356,0 13.333376,-4.373347 13.333376,-13.333375 z M 56.465685,86.00982 V 72.569778 H 95.612474 V 86.00982 Z M 183.5061,72.569778 c 0,-7.786691 -5.54668,-13.440042 -13.44004,-13.440042 H 116.6259 v 13.440042 h 53.44016 V 86.00982 h -40.10679 c -7.78669,0 -13.33337,5.546684 -13.33337,13.333375 v 13.440045 c 0,7.68002 5.54668,13.33337 13.33337,13.33337 H 183.5061 Z M 129.95927,112.78324 V 99.343195 h 40.10679 V 112.78324 Z M 256.03974,72.569778 c 0,-8.960028 -4.48001,-13.440042 -13.44004,-13.440042 h -47.78682 v 66.986874 h 13.33338 V 72.569778 H 242.5997 V 86.00982 h 13.44004 z m 74.13348,0 c 0,-7.786691 -5.54668,-13.440042 -13.44004,-13.440042 h -53.44017 v 13.440042 h 53.44017 V 86.00982 h -40.10679 c -7.7867,0 -13.33338,5.546684 -13.33338,13.333375 v 13.440045 c 0,7.68002 5.54668,13.33337 13.33338,13.33337 h 53.54683 z M 276.62639,112.78324 V 99.343195 h 40.10679 V 112.78324 Z M 406.22687,39.929676 h -13.33338 v 19.20006 h -39.04012 c -7.14669,0 -13.33338,5.760018 -13.33338,13.120041 v 40.533463 c 0,7.89335 5.54669,13.33337 13.33338,13.33337 h 52.3735 z m -52.3735,72.853564 V 72.569778 h 39.04012 v 40.213462 z m 77.44035,-53.653504 h -13.33338 v 66.986874 h 13.33338 z M 504.254,99.343195 c 0,-8.106692 -5.33335,-13.333375 -13.5467,-13.333375 H 455.18718 V 72.569778 h 45.76015 V 59.129736 h -45.76015 c -8.10669,0 -13.33337,4.906682 -13.33337,13.440042 V 86.00982 c 0,8.746694 5.44002,13.333375 13.33337,13.333375 h 35.52012 v 13.440045 h -47.89349 v 13.33337 h 47.89349 c 8.64002,0 13.5467,-4.69335 13.5467,-13.33337 z"
|
||||
id="text2"
|
||||
style="font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';white-space:pre;shape-padding:4.78483;fill:#a6a6a6"
|
||||
transform="matrix(0.2898684,0,0,0.45729312,36.8963,-12.701143)"
|
||||
aria-label="Paradis " />
|
||||
<path
|
||||
d="m 104.35917,99.343195 c 0,-8.106692 -5.333352,-13.333375 -13.546711,-13.333375 H 55.292348 V 72.569778 H 101.05249 V 59.129736 H 55.292348 c -8.106692,0 -13.333375,4.906682 -13.333375,13.440042 V 86.00982 c 0,8.746694 5.440017,13.333375 13.333375,13.333375 H 90.812459 V 112.78324 H 42.918976 v 13.33337 h 47.893483 c 8.640027,0 13.546711,-4.69335 13.546711,-13.33337 z m 37.01342,13.440045 H 127.93255 V 71.503108 h 13.44004 V 59.129736 H 127.93255 V 40.14301 h -13.33338 v 72.64023 c 0,7.68002 5.54669,13.33337 13.33338,13.33337 h 13.44004 z M 215.82615,59.129736 H 202.49278 V 112.78324 H 162.27932 V 59.129736 h -13.22671 v 53.653504 c 0,7.68002 5.44002,13.33337 13.22671,13.33337 h 40.21346 c 7.89336,0 13.33337,-5.44002 13.33337,-13.33337 z m 76.05364,-19.20006 h -13.33338 v 19.20006 h -39.04012 c -7.14669,0 -13.33337,5.760018 -13.33337,13.120041 v 40.533463 c 0,7.89335 5.54668,13.33337 13.33337,13.33337 h 52.3735 z m -52.3735,72.853564 V 72.569778 h 39.04012 v 40.213462 z m 77.44035,-53.653504 h -13.33337 v 66.986874 h 13.33337 z m 77.54697,13.440042 c 0,-7.360023 -5.97335,-13.440042 -13.33338,-13.440042 h -40.10679 c -7.14669,0 -13.33337,5.866685 -13.33337,13.440042 v 40.213462 c 0,8.96002 4.48001,13.33337 13.33337,13.33337 h 40.10679 c 8.85336,0 13.33338,-4.37335 13.33338,-13.33337 z M 341.05344,112.78324 V 72.569778 h 40.10679 v 40.213462 z"
|
||||
id="text2-9"
|
||||
style="font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';white-space:pre;shape-padding:4.78483;fill:#a6a6a6"
|
||||
transform="matrix(0.26435029,0,0,0.45729312,55.345179,65.224104)"
|
||||
aria-label="Studio" />
|
||||
<path
|
||||
d="m 110.01252,72.249777 c 0,-7.253356 -6.40002,-13.120041 -13.226709,-13.120041 H 56.465685 V 39.929676 H 43.13231 v 86.186934 h 53.653501 c 7.786689,0 13.226709,-5.44002 13.226709,-13.33337 z M 56.465685,112.78324 V 72.569778 H 96.785811 V 112.78324 Z M 172.83945,99.236528 c 7.89335,0 13.2267,-5.33335 13.2267,-13.333375 V 72.463111 c 0,-7.680024 -5.44001,-13.333375 -13.2267,-13.333375 h -39.78679 c -8.4267,0 -13.22671,5.546684 -13.22671,13.333375 v 40.320129 c 0,7.57335 5.44001,13.33337 13.22671,13.33337 h 49.70682 V 112.78324 H 133.05266 V 99.236528 Z M 133.05266,85.903153 V 72.463111 h 39.78679 V 85.903153 Z M 259.45304,72.569778 c 0,-8.960028 -4.48001,-13.440042 -13.44004,-13.440042 h -50.02682 v 66.986874 h 13.33337 V 72.569778 H 246.013 v 53.546832 h 13.44004 z m 75.94698,-32.640102 h -13.33337 v 19.20006 h -39.04012 c -7.14669,0 -13.33338,5.760018 -13.33338,13.120041 v 40.533463 c 0,7.89335 5.54668,13.33337 13.33338,13.33337 h 52.37349 z M 283.02653,112.78324 V 72.569778 h 39.04012 v 40.213462 z"
|
||||
id="text2-5"
|
||||
style="font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';white-space:pre;shape-padding:4.78483;fill:#a6a6a6"
|
||||
transform="matrix(0.28441105,0,0,0.45729312,37.163429,26.160737)"
|
||||
aria-label="bend " />
|
||||
</g>
|
||||
<g
|
||||
id="g5-7"
|
||||
style="display:inline"
|
||||
transform="translate(-32.927022,100.57922)">
|
||||
<path
|
||||
d="m 108.94585,72.569778 c 0,-7.360023 -5.97335,-13.440042 -13.333376,-13.440042 H 43.13231 V 126.11661 H 56.465685 V 99.343195 h 39.146789 c 8.853356,0 13.333376,-4.373347 13.333376,-13.333375 z M 56.465685,86.00982 V 72.569778 H 95.612474 V 86.00982 Z M 184.78611,72.249777 c 0,-7.253356 -6.40002,-13.120041 -13.22671,-13.120041 H 131.23928 V 39.929676 H 117.9059 v 86.186934 h 53.6535 c 7.78669,0 13.22671,-5.44002 13.22671,-13.33337 z M 131.23928,112.78324 V 72.569778 H 171.5594 V 112.78324 Z M 256.7864,99.343195 c 0,-8.106692 -5.33335,-13.333375 -13.54671,-13.333375 H 207.71958 V 72.569778 h 45.76014 V 59.129736 h -45.76014 c -8.10669,0 -13.33338,4.906682 -13.33338,13.440042 V 86.00982 c 0,8.746694 5.44002,13.333375 13.33338,13.333375 h 35.52011 v 13.440045 h -47.89348 v 13.33337 h 47.89348 c 8.64003,0 13.54671,-4.69335 13.54671,-13.33337 z"
|
||||
id="text2-3"
|
||||
style="font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';white-space:pre;shape-padding:4.78483;fill:#a6a6a6"
|
||||
transform="matrix(0.56377489,0,0,0.78605051,75.803284,-2.0915626)"
|
||||
aria-label="Pbs " />
|
||||
</g>
|
||||
<g
|
||||
id="g9"
|
||||
style="display:none">
|
||||
<text
|
||||
xml:space="preserve"
|
||||
transform="matrix(0.2898684,0,0,0.45729312,36.8963,-12.701143)"
|
||||
id="text7"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect10);shape-padding:4.78483;display:inline;fill:#a6a6a6;fill-opacity:1"><tspan
|
||||
x="37.265625"
|
||||
y="126.11661"
|
||||
id="tspan1">Paradis </tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
transform="matrix(0.26435029,0,0,0.45729312,55.345179,65.224104)"
|
||||
id="text8"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect11);shape-padding:4.78483;display:inline;fill:#a6a6a6;fill-opacity:1"><tspan
|
||||
x="37.265625"
|
||||
y="126.11661"
|
||||
id="tspan2">Studio</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
transform="matrix(0.28441105,0,0,0.45729312,37.163429,26.160737)"
|
||||
id="text9"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect12);shape-padding:4.78483;display:inline;fill:#a6a6a6;fill-opacity:1"><tspan
|
||||
x="37.265625"
|
||||
y="126.11661"
|
||||
id="tspan3">bend </tspan></text>
|
||||
</g>
|
||||
<g
|
||||
id="g16"
|
||||
style="display:none"
|
||||
transform="translate(-32.927022,100.57922)">
|
||||
<text
|
||||
xml:space="preserve"
|
||||
transform="matrix(0.56377489,0,0,0.78605051,75.803284,-2.0915626)"
|
||||
id="text16"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:106.667px;font-family:'Zeroes 2';-inkscape-font-specification:'Zeroes 2, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;white-space:pre;shape-inside:url(#rect16);shape-padding:4.78483;display:inline;fill:#a6a6a6;fill-opacity:1"><tspan
|
||||
x="37.265625"
|
||||
y="126.11661"
|
||||
id="tspan4">Pbs </tspan></text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 12 KiB |
|
@ -0,0 +1,23 @@
|
|||
html, body {
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
body{
|
||||
background-color: rgb(44, 45, 46);
|
||||
margin: 0;
|
||||
padding: .5vw;
|
||||
}
|
||||
|
||||
button{
|
||||
background-color: #eee;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
button:disabled{
|
||||
background-color: grey;
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
|
@ -0,0 +1,34 @@
|
|||
// import adapter from '@sveltejs/adapter-auto';
|
||||
// import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
// /** @type {import('@sveltejs/kit').Config} */
|
||||
// const config = {
|
||||
// // Consult https://svelte.dev/docs/kit/integrations
|
||||
// // for more information about preprocessors
|
||||
// preprocess: vitePreprocess(),
|
||||
|
||||
// kit: {
|
||||
// // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
|
||||
// // If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
||||
// // See https://svelte.dev/docs/kit/adapters for more information about adapters.
|
||||
// adapter: adapter()
|
||||
// }
|
||||
// };
|
||||
|
||||
// export default config;
|
||||
|
||||
import adapter from "@sveltejs/adapter-static";
|
||||
|
||||
export default {
|
||||
kit: {
|
||||
adapter: adapter({
|
||||
// default options are shown. On some platforms
|
||||
// these options are set automatically — see below
|
||||
pages: "queuebServer/dist",
|
||||
assets: "queuebServer/dist",
|
||||
fallback: "index.html",
|
||||
precompress: false,
|
||||
strict: true,
|
||||
}),
|
||||
},
|
||||
};
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"extends": "./.svelte-kit/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": true,
|
||||
"sourceMap": true,
|
||||
"strict": true,
|
||||
"moduleResolution": "bundler"
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"queuebServer/dist" // Add the build folder to be ignored by TypeScript
|
||||
]
|
||||
// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
|
||||
// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
|
||||
//
|
||||
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
|
||||
// from the referenced tsconfig.json - TypeScript does not merge them in
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit()],
|
||||
server: {
|
||||
proxy: {
|
||||
// Forward API requests starting with "/api" to your backend server
|
||||
"/api": {
|
||||
target: "http://localhost:3000", // Your Node.js server's address
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path, // Remove the "/api" prefix when forwarding
|
||||
},
|
||||
},
|
||||
},
|
||||
// build: {
|
||||
// minify: false, // Disable minification
|
||||
// sourcemap: true, // Generate sourcemaps for debugging
|
||||
// },
|
||||
});
|
Loading…
Reference in New Issue