From 56f9ac52bb7102d3898c67fd4d32a1a372079362 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Mon, 28 Jul 2025 21:35:35 +0800 Subject: [PATCH] Initial commit --- .github/FUNDING.yml | 1 + LICENSE | 674 ++++++++++++++++++++++++++++++++++++++++ README.md | 153 +++++++++ index.html | 381 +++++++++++++++++++++++ logo.ico | Bin 0 -> 166776 bytes logo.png | Bin 0 -> 39536 bytes script.js | 733 ++++++++++++++++++++++++++++++++++++++++++++ styles.css | 322 +++++++++++++++++++ 8 files changed, 2264 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 LICENSE create mode 100644 README.md create mode 100644 index.html create mode 100644 logo.ico create mode 100644 logo.png create mode 100644 script.js create mode 100644 styles.css diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..74f5794 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: https://xi-xu.me/#sponsorships diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/README.md b/README.md new file mode 100644 index 0000000..006e4b8 --- /dev/null +++ b/README.md @@ -0,0 +1,153 @@ +# DeepLX App + +A modern, free web-based translation app powered by the DeepLX API. This app provides a clean, responsive interface for translating text between 30+ languages with features like auto-detection, translation history, and RTL (Right-to-Left) language support. + +## 🌟 Features + +- **Multi-language Support**: Translate between 30+ languages with automatic language detection +- **Auto-translation**: Automatically translates text as you type (with customizable delay) +- **Translation History**: Keeps track of your translation history with local storage +- **Language Swapping**: Quick swap between source and target languages +- **Copy to Clipboard**: One-click copying of translation results +- **Responsive Design**: Works seamlessly on desktop, tablet, and mobile devices +- **RTL Language Support**: Proper support for right-to-left languages +- **Dark Theme**: Modern dark UI design for comfortable usage +- **Keyboard Shortcuts**: + - `Ctrl+Enter`: Manual translation + - `Esc`: Close panels +- **Customizable Settings**: + - Custom API endpoint configuration + - Adjustable auto-translate delay + - Toggle auto-translate on/off + +## πŸš€ Live Demo + +Visit the live app at: [https://deeplx.xi-xu.me](https://deeplx.xi-xu.me) + +## πŸ“‹ Prerequisites + +- A modern web browser with JavaScript enabled +- Internet connection for API calls +- DeepLX API endpoint (default provided) + +## πŸ› οΈ Installation + +### Option 1: Direct Usage + +Simply open `index.html` in your web browser. The app will work with the default API endpoint. + +### Option 2: Local Development + +1. Clone the repository: + + ```bash + git clone https://github.com/xixu-me/DeepLX-App.git + cd DeepLX-App + ``` + +2. Open `index.html` in your preferred web browser or serve it using a local web server: + + ```bash + # Using Python 3 + python -m http.server 8000 + + # Using Node.js (with http-server) + npx http-server + + # Using PHP + php -S localhost:8000 + ``` + +3. Navigate to `http://localhost:8000` in your browser. + +## πŸ”§ Configuration + +### API Endpoint + +The app uses a default DeepLX API endpoint, but you can configure your own: + +1. Click the **Settings** button (βš™οΈ) +2. Enter your custom API endpoint URL +3. The setting will be saved automatically in your browser's local storage + +### Auto-translate Settings + +- **Delay**: Adjust the delay (100-5000ms) before auto-translation starts +- **Toggle**: Enable or disable auto-translation feature + +## 🎨 Technologies Used + +- **HTML5**: Semantic markup and modern web standards +- **CSS3**: Custom styles with animations and responsive design +- **JavaScript (ES6+)**: Modern JavaScript for app functionality +- **Tailwind CSS**: Utility-first CSS framework for rapid UI development +- **Lucide Icons**: Beautiful, customizable SVG icons +- **DeepLX API**: Translation service backend + +## πŸ”Œ API Integration + +The app integrates with the DeepLX API, which is a free alternative to DeepL's official API. The default endpoint is pre-configured, but you can use your own DeepLX instance. + +### API Request Format + +```javascript +{ + "text": "Hello, world!", + "source_lang": "EN", + "target_lang": "ES" +} +``` + +### API Response Format + +```javascript +{ + "code": 200, + "data": "Β‘Hola, mundo!", + "source_lang": "EN", + "target_lang": "ES" +} +``` + +## 🌐 Supported Languages + +The app supports translation between the following languages: + +- Auto-detect, English, Chinese +- Spanish, French, German, Italian, Portuguese, Russian +- Japanese, Korean, Arabic, Dutch, Polish, Turkish +- Swedish, Danish, Norwegian, Finnish, Greek, Czech +- Hungarian, Romanian, Bulgarian, Croatian, Slovak +- Slovenian, Estonian, Latvian, Lithuanian, Ukrainian +- And more... + +## πŸ“± Mobile Support + +The app is fully responsive and includes: + +- Touch-friendly interface +- Mobile-optimized layouts +- Apple Touch Icon support +- Progressive Web App (PWA) capabilities +- Mobile web app meta tags + +## πŸ”’ Privacy & Security + +- **No Data Collection**: All translations are processed through the API without storing personal data +- **Local Storage Only**: Settings and history are stored locally in your browser +- **HTTPS Ready**: Designed to work with secure HTTPS endpoints +- **No Registration Required**: Use the app immediately without creating accounts + +## πŸ“„ License + +This repository is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. + +## πŸ™ Acknowledgments + +- [DeepLX](https://github.com/xixu-me/DeepLX) - The translation API backend +- [Tailwind CSS](https://tailwindcss.com/) - For the beautiful UI framework +- [Lucide Icons](https://lucide.dev/) - For the clean, modern icons + +--- + +**Made with ❀️ by [Xi Xu](https://xi-xu.me)** diff --git a/index.html b/index.html new file mode 100644 index 0000000..ba79e7c --- /dev/null +++ b/index.html @@ -0,0 +1,381 @@ + + + + + + + + DeepLX App - Free DeepL Translation Alternative + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

+ DeepLX App +

+

+ The web app using the DeepLX API +

+
+ +
+ +
+ +
+ + +
+ +
+ + +
+
+ + +
+ +
+ + +
+ 0/5000 +
+
+ +
+ + + +
+
+ + +
+
+ + + +
+
+ +
+
+
+ + +
+
+
+ + Auto-translation activates after you stop typing +
+
+ + Press Ctrl+Enter to translate manually β€’ Esc to close + panels +
+
+ + Translation history is automatically saved +
+
+
+
+ + + + + + + + +
+ + + + diff --git a/logo.ico b/logo.ico new file mode 100644 index 0000000000000000000000000000000000000000..146a3a4ef483b5603274f3dc9d23b7f6512ee210 GIT binary patch literal 166776 zcmeI52V4|K8^#a2v7p!`iY>AC7AvUO61#v3Dwf#0v7n-0j4jq^>|T!i6jZC*t3eNSvLe;qw_u>P$3}(3pOuViJjsLk>wb93v^5Nj;B^M1p*r zM%qNjmRrsApq|7QOa(bq@IgVEfj!_8_#5N|%2*`?S^}PfWGOM&E&`~jbgdt*-T{n< zT9QOd_XR(JIPL`$88z|(4EqlB1~b8HAjIePAV5w2pXJ4wV}N0jz-@3AuBb#c)J$m$-4W0s{BP{ye5kAU^z2|9wb@{CJqS^-@7Ce5oF zxR7Klk;H>A)V?#G5NA9&%E0jPW|EY422Gs=%~?wOlaeJowOQ28Xh0E-yHND3X(AES znq)Mv*Mu_}AG}ZT_W9fv%$K>A+1=W3uo>`q5}wPInRSZzWxy;D4g|l#_A$;)10{i~ z#^=utTmphWMO(JFY-{nhmgED>L4k_~nua9uCK#2bl z`^+EP6Sm31dHF5hS=B*C)&v1$>oF0>%Rv{wx?sEa2FUy8d$kV8$eJR+Di6Egm8S%DC7SJgp>C#_z<>-5QfihOCY=t=)W$=$kOu9GSC;_d;T2|(&6*P z`@aFugt6^n8{rF%fo>oV(6kkTL$(k06J>YsS>_8AJ7M!2YlZR z2D&gKB+?x01+woZdmSWR8EGs9^6yH%114%Q{i5(a2HXb1`$m3y57&MMg@LAw?;G|r z_zp?{@@dK+e?pj}pgmA_jt4>i&sfKNkMe!0sNW=?uKaN<;;jR0i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zbbdDyl#*Si_kTi?gVi!(1frE22^wOq)~d*`>o z6WRA<30OPQPCc88`fOJb9iDwNi+k7}M{bKHocWNV>`&1`v2XPznZ0Jv5$*9Z7xNWY zeZu-NmBV-nj}oT`>JL)USoSlgM>U<#U`0IVcX-|D#?=-1wlIXMk5sjeN=yD{HCg4} zzw7J|(E5uaEU-ZNMRvsF)99*FaD=RAlNPH}6xq@nLzVWN5?btkwQT;}$mGRu{?_b-+b~~%Zwy(}l zRdnt9$PEB9c0@cTV>z$!T5Q=V)v7BFdccqjp06xLF2QJ-0_p~ z#AvFd%ZTozTXt^a{Jm>$$6kHC5FsO81iX&xUhfeYNu%m#=D$2Ub6G!T1eveQ;LZBf zhWrc8trLA(zMhEy7=LIogSSLx;p8x9gP(0GXe9G^Ccpg8#4bsQ0Xe^zRPg52A7dCv zR>hXtd02@gp`oDx9l(49ol1p=8xC+UBbqFp@T`dcuvtp7i23uU9%eiK?F%$_{BxX! zz(0#fQ{$h#JdOI!as2=PKJY&p5MTU{5B^7k|M3B7@BgoS(B-o3rhLLT$0y#Rf!T%b L3ogtPef9qUyQk-a literal 0 HcmV?d00001 diff --git a/script.js b/script.js new file mode 100644 index 0000000..fc16e39 --- /dev/null +++ b/script.js @@ -0,0 +1,733 @@ +/** + * DeepLX Translation App + * A modern web app for DeepL translation using the DeepLX API + * + * Features: + * - Auto-translation with configurable delay + * - Translation history with local storage + * - RTL/LTR text direction support + * - Responsive design with modern UI + * - Keyboard shortcuts and accessibility + * + * @author Xi Xu + * @version 1.0.0 + * @license MIT + */ + +document.addEventListener("DOMContentLoaded", () => { + // Configuration constants + const CONFIG = { + MAX_CHARS: 5000, + DEFAULT_API_URL: "https://dplx.xi-xu.me/translate", + DEFAULT_DELAY: 1000, + MAX_HISTORY_ITEMS: 50, + CORS_PROXY: "https://corsproxy.io/?", + }; + + // Supported languages list - DeepL API compatible language codes + const languages = { + AR: "Arabic", + BG: "Bulgarian", + CS: "Czech", + DA: "Danish", + DE: "German", + EL: "Greek", + EN: "English", + ES: "Spanish", + ET: "Estonian", + FI: "Finnish", + FR: "French", + HU: "Hungarian", + ID: "Indonesian", + IT: "Italian", + JA: "Japanese", + KO: "Korean", + LT: "Lithuanian", + LV: "Latvian", + NB: "Norwegian (bokmΓ₯l)", + NL: "Dutch", + PL: "Polish", + PT: "Portuguese", + RO: "Romanian", + RU: "Russian", + SK: "Slovak", + SL: "Slovenian", + SV: "Swedish", + TR: "Turkish", + UK: "Ukrainian", + ZH: "Chinese", + }; + + // Get DOM elements + // DOM element references - cached for performance + const elements = { + sourceLangSelect: document.getElementById("sourceLang"), + targetLangSelect: document.getElementById("targetLang"), + inputText: document.getElementById("inputText"), + outputText: document.getElementById("outputText"), + swapButton: document.getElementById("swapButton"), + copyButton: document.getElementById("copyButton"), + loadingSpinner: document.getElementById("loadingSpinner"), + statusMessage: document.getElementById("statusMessage"), + apiUrlInput: document.getElementById("apiUrlInput"), + historyButton: document.getElementById("historyButton"), + settingsButton: document.getElementById("settingsButton"), + historyPanel: document.getElementById("historyPanel"), + settingsPanel: document.getElementById("settingsPanel"), + closeHistoryButton: document.getElementById("closeHistoryButton"), + closeSettingsButton: document.getElementById("closeSettingsButton"), + historyList: document.getElementById("historyList"), + historyCount: document.getElementById("historyCount"), + clearHistoryButton: document.getElementById("clearHistoryButton"), + delayInput: document.getElementById("delayInput"), + autoTranslateToggle: document.getElementById("autoTranslateToggle"), + charCount: document.getElementById("charCount"), + }; + + // Application state + let translateTimeout; + let translationHistory = []; + + // Function to detect Arabic text + /** + * Utility Functions + */ + + /** + * Detects if text contains Arabic characters + * @param {string} text - Text to analyze + * @returns {boolean} True if text contains Arabic characters + */ + function isArabicText(text) { + const arabicRegex = + /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/; + return arabicRegex.test(text); + } + + /** + * Applies appropriate text direction (RTL/LTR) based on text content + * @param {HTMLElement} element - Element to apply direction to + * @param {string} text - Text content to analyze + */ + function applyTextDirection(element, text) { + if (isArabicText(text)) { + element.classList.add("rtl-text"); + element.classList.remove("ltr-text"); + } else { + element.classList.add("ltr-text"); + element.classList.remove("rtl-text"); + } + } + + // Character counter function + /** + * UI Update Functions + */ + + /** + * Updates character counter and input field styling + * Handles RTL/LTR text direction and placeholder updates + */ + function updateCharCount() { + const count = elements.inputText.value.length; + elements.charCount.textContent = count; + + // Apply RTL/LTR direction based on input text + applyTextDirection(elements.inputText, elements.inputText.value); + + // Update color based on character count + elements.charCount.className = "transition-colors duration-200"; + if (count > 4500) { + elements.charCount.classList.add("char-danger"); + } else if (count > 4000) { + elements.charCount.classList.add("char-warning"); + } + + // Update placeholder based on auto-translate status + if (elements.autoTranslateToggle.checked) { + elements.inputText.placeholder = + count === 0 + ? "Enter text to translate here... (Auto-translate enabled)" + : "Auto-translate will start after you stop typing..."; + } else { + elements.inputText.placeholder = + "Enter text to translate here... (Auto-translate disabled)"; + } + } + + // Populate language dropdown menus + /** + * Language Management Functions + */ + + /** + * Populates language dropdown menus with sorted language options + * Sets default values for source (AUTO) and target (EN) languages + */ + function populateLanguages() { + elements.sourceLangSelect.innerHTML = + ''; + + // Sort languages alphabetically by name for better UX + const sortedLanguages = Object.entries(languages).sort(([, a], [, b]) => + a.localeCompare(b) + ); + + sortedLanguages.forEach(([code, name]) => { + elements.sourceLangSelect.add(new Option(name, code)); + }); + + elements.targetLangSelect.innerHTML = ""; + sortedLanguages.forEach(([code, name]) => { + elements.targetLangSelect.add(new Option(name, code)); + }); + + // Set default language selections + elements.sourceLangSelect.value = "AUTO"; + elements.targetLangSelect.value = "EN"; + } + + // Load and save settings + /** + * Settings Management Functions + */ + + /** + * Initializes app settings from localStorage + * Sets up event listeners for settings changes + */ + function setupSettings() { + // Load saved settings with fallback defaults + const savedUrl = localStorage.getItem("deeplxApiUrl"); + const savedDelay = + localStorage.getItem("autoTranslateDelay") || + CONFIG.DEFAULT_DELAY.toString(); + const savedAutoTranslate = + localStorage.getItem("autoTranslateEnabled") !== "false"; + + elements.apiUrlInput.value = savedUrl || CONFIG.DEFAULT_API_URL; + elements.delayInput.value = savedDelay; + elements.autoTranslateToggle.checked = savedAutoTranslate; + + // Set up event listeners for settings persistence + elements.apiUrlInput.addEventListener("input", () => { + const urlToSave = elements.apiUrlInput.value.trim(); + if (urlToSave) { + localStorage.setItem("deeplxApiUrl", urlToSave); + showStatus("API endpoint saved.", "success"); + } + }); + + elements.delayInput.addEventListener("input", () => { + const delay = elements.delayInput.value; + localStorage.setItem("autoTranslateDelay", delay); + showStatus("Delay setting saved.", "success"); + }); + + elements.autoTranslateToggle.addEventListener("change", () => { + localStorage.setItem( + "autoTranslateEnabled", + elements.autoTranslateToggle.checked + ); + showStatus( + `Auto-translate ${ + elements.autoTranslateToggle.checked ? "enabled" : "disabled" + }.`, + "success" + ); + updateCharCount(); // Update placeholder when toggle changes + }); + } + + // Load translation history + /** + * History Management Functions + */ + + /** + * Loads translation history from localStorage + */ + function loadHistory() { + const saved = localStorage.getItem("translationHistory"); + if (saved) { + translationHistory = JSON.parse(saved); + } + updateHistoryDisplay(); + } + + /** + * Saves translation history to localStorage + */ + function saveHistory() { + localStorage.setItem( + "translationHistory", + JSON.stringify(translationHistory) + ); + } + + /** + * Adds a new translation to history + * @param {string} sourceText - Original text + * @param {string} targetText - Translated text + * @param {string} sourceLang - Source language code + * @param {string} targetLang - Target language code + */ + function addToHistory(sourceText, targetText, sourceLang, targetLang) { + const historyItem = { + id: Date.now(), + sourceText, + targetText, + sourceLang, + targetLang, + timestamp: new Date().toISOString(), + }; + + // Remove duplicate if exists + translationHistory = translationHistory.filter( + (item) => + item.sourceText !== sourceText || + item.sourceLang !== sourceLang || + item.targetLang !== targetLang + ); + + // Add to beginning of array + translationHistory.unshift(historyItem); + + // Keep only last items as per config + if (translationHistory.length > CONFIG.MAX_HISTORY_ITEMS) { + translationHistory = translationHistory.slice( + 0, + CONFIG.MAX_HISTORY_ITEMS + ); + } + + saveHistory(); + updateHistoryDisplay(); + } + + /** + * Updates the history display panel + */ + function updateHistoryDisplay() { + elements.historyCount.textContent = `${translationHistory.length} records`; + elements.historyList.innerHTML = ""; + + translationHistory.forEach((item) => { + const historyItem = document.createElement("div"); + historyItem.className = "history-item"; + + const sourceTextClass = isArabicText(item.sourceText) + ? "source-text rtl-text" + : "source-text"; + const targetTextClass = isArabicText(item.targetText) + ? "target-text rtl-text" + : "target-text"; + + historyItem.innerHTML = ` +
${item.sourceText.substring(0, 100)}${ + item.sourceText.length > 100 ? "..." : "" + }
+
${item.targetText.substring(0, 100)}${ + item.targetText.length > 100 ? "..." : "" + }
+
${ + languages[item.sourceLang] || item.sourceLang + } β†’ ${languages[item.targetLang] || item.targetLang}
+ `; + + historyItem.addEventListener("click", () => { + elements.inputText.value = item.sourceText; + elements.outputText.value = item.targetText; + elements.sourceLangSelect.value = item.sourceLang; + elements.targetLangSelect.value = item.targetLang; + + // Apply text direction for loaded history items + applyTextDirection(elements.inputText, item.sourceText); + applyTextDirection(elements.outputText, item.targetText); + + elements.historyPanel.classList.add("hidden"); + showStatus("History item loaded.", "success"); + }); + + elements.historyList.appendChild(historyItem); + }); + } + + // Display status message with enhanced animation + /** + * Status and Feedback Functions + */ + + /** + * Displays status message with enhanced animation + * @param {string} message - Message to display + * @param {string} type - Message type ('error' or 'success') + */ + function showStatus(message, type = "error") { + elements.statusMessage.textContent = message; + elements.statusMessage.className = `text-sm h-5 text-right transition-all duration-300 ${ + type === "error" ? "text-red-400" : "text-green-400" + }`; + + // Add fade-in animation + elements.statusMessage.style.opacity = "0"; + elements.statusMessage.style.transform = "translateY(10px)"; + + setTimeout(() => { + elements.statusMessage.style.opacity = "1"; + elements.statusMessage.style.transform = "translateY(0)"; + }, 50); + + // Auto-hide message after 4 seconds + if (message) { + setTimeout(() => { + elements.statusMessage.style.opacity = "0"; + setTimeout(() => { + elements.statusMessage.textContent = ""; + elements.statusMessage.style.opacity = "1"; + }, 300); + }, 4000); + } + } + + // Translation function + /** + * Translation Functions + */ + + /** + * Main translation function that handles API requests + * @param {boolean} isAutoTranslate - Whether this is an automatic translation + */ + async function translateText(isAutoTranslate = false) { + const originalApiUrl = elements.apiUrlInput.value.trim(); + if (!originalApiUrl) { + showStatus("Please enter API endpoint."); + return; + } + + // Using CORS proxy to handle POST requests correctly + const API_URL = `${CONFIG.CORS_PROXY}${encodeURIComponent(originalApiUrl)}`; + + const text = elements.inputText.value.trim(); + if (!text) { + if (!isAutoTranslate) { + showStatus("Please enter text to translate."); + } + elements.outputText.value = ""; + return; + } + + setLoading(true); + showStatus("", "success"); // Clear status + + try { + const payload = { + text: text, + source_lang: + elements.sourceLangSelect.value === "AUTO" + ? undefined + : elements.sourceLangSelect.value, + target_lang: elements.targetLangSelect.value, + }; + + const response = await fetch(API_URL, { + method: "POST", + body: JSON.stringify(payload), + headers: { "Content-Type": "application/json" }, + }); + + if (response.status === 404) { + throw new Error( + `Proxy cannot find API endpoint (404). Please check if URL is correct.` + ); + } + if (!response.ok) { + throw new Error( + `Network or proxy error: ${response.status} ${response.statusText}` + ); + } + + const result = await response.json(); + + if (result.code === 200) { + elements.outputText.value = result.data; + + // Apply RTL/LTR direction to output text + applyTextDirection(elements.outputText, result.data); + + // Add to history if translation was successful + if (result.data && text) { + addToHistory( + text, + result.data, + elements.sourceLangSelect.value, + elements.targetLangSelect.value + ); + } + } else { + // Provide more specific error message from API response + throw new Error(`API error: ${result.message || "Unknown error"}`); + } + } catch (error) { + console.error("Translation request failed:", error); + let errorMessage = `Error: ${error.message}`; + if (error instanceof TypeError) { + // This often indicates a network-level failure + errorMessage = + "Error: Request failed. Please check network connection and browser console."; + } + showStatus(errorMessage); + elements.outputText.value = ""; + } finally { + setLoading(false); + } + } + + // Auto-translate with debounce + /** + * Auto-translation Functions + */ + + /** + * Schedules auto-translation with debounce + */ + function scheduleAutoTranslate() { + if (!elements.autoTranslateToggle.checked) return; + + clearTimeout(translateTimeout); + const delay = parseInt(elements.delayInput.value) || CONFIG.DEFAULT_DELAY; + + translateTimeout = setTimeout(() => { + translateText(true); + }, delay); + } + + /** + * UI State Management Functions + */ + + /** + * Sets loading state for the app + * @param {boolean} isLoading - Whether app is in loading state + */ + function setLoading(isLoading) { + elements.loadingSpinner.classList.toggle("hidden", !isLoading); + } + + /** + * Language Management Functions + */ + + /** + * Swaps source and target languages + */ + function swapLanguages() { + const source = elements.sourceLangSelect.value; + const target = elements.targetLangSelect.value; + + // Don't swap if source is auto-detect + if (source === "AUTO") { + return; + } + + elements.sourceLangSelect.value = target; + elements.targetLangSelect.value = source; + + const inputTextValue = elements.inputText.value; + elements.inputText.value = elements.outputText.value; + elements.outputText.value = inputTextValue; + + // Apply text direction after swapping + applyTextDirection(elements.inputText, elements.inputText.value); + applyTextDirection(elements.outputText, elements.outputText.value); + + showStatus("", "success"); + } + + /** + * Updates swap button state based on source language selection + */ + function updateSwapButtonState() { + const isAutoDetect = elements.sourceLangSelect.value === "AUTO"; + elements.swapButton.disabled = isAutoDetect; + + if (isAutoDetect) { + elements.swapButton.classList.add("opacity-50", "cursor-not-allowed"); + elements.swapButton.classList.remove("hover:bg-gray-600"); + elements.swapButton.title = "Cannot swap when using Auto Detect"; + } else { + elements.swapButton.classList.remove("opacity-50", "cursor-not-allowed"); + elements.swapButton.classList.add("hover:bg-gray-600"); + elements.swapButton.title = "Swap languages"; + } + } + + /** + * Clipboard and UI Interaction Functions + */ + + /** + * Copies translation result to clipboard with visual feedback + */ + function copyToClipboard() { + if (!elements.outputText.value) { + showStatus("No content to copy."); + return; + } + + const textarea = document.createElement("textarea"); + textarea.value = elements.outputText.value; + document.body.appendChild(textarea); + textarea.select(); + try { + document.execCommand("copy"); + showStatus("Copied to clipboard!", "success"); + + // Add pulse animation to copy button + elements.copyButton.classList.add("copy-success"); + setTimeout(() => { + elements.copyButton.classList.remove("copy-success"); + }, 300); + } catch (err) { + showStatus("Copy failed."); + console.error("Copy failed:", err); + } + document.body.removeChild(textarea); + } + + /** + * Panel Management Functions + */ + + /** + * Shows the history panel + */ + function showHistoryPanel() { + elements.historyPanel.classList.remove("hidden"); + updateHistoryDisplay(); + } + + /** + * Hides the history panel + */ + function hideHistoryPanel() { + elements.historyPanel.classList.add("hidden"); + } + + /** + * Shows the settings panel + */ + function showSettingsPanel() { + elements.settingsPanel.classList.remove("hidden"); + } + + /** + * Hides the settings panel + */ + function hideSettingsPanel() { + elements.settingsPanel.classList.add("hidden"); + } + + /** + * Clears all translation history after confirmation + */ + function clearHistory() { + if (confirm("Are you sure you want to clear all translation history?")) { + translationHistory = []; + saveHistory(); + updateHistoryDisplay(); + showStatus("History cleared.", "success"); + } + } + + /** + * Animation and Visual Feedback Functions + */ + + /** + * Adds visual feedback for successful operations + * @param {HTMLElement} element - Element to animate + */ + function addSuccessFeedback(element) { + element.style.transform = "scale(1.05)"; + element.style.transition = "transform 0.2s ease"; + setTimeout(() => { + element.style.transform = "scale(1)"; + }, 200); + } + + /** + * Enhanced swap function with animation + */ + function swapLanguagesWithAnimation() { + addSuccessFeedback(elements.swapButton); + swapLanguages(); + } + + // Initialize + /** + * Application Initialization + */ + + // Initialize core app components + populateLanguages(); + setupSettings(); + loadHistory(); + updateCharCount(); // Initialize character counter + updateSwapButtonState(); // Initialize swap button state + lucide.createIcons(); // Initialize Lucide icons + + // Initial auto-translate if there's existing text + if (elements.inputText.value.trim()) { + scheduleAutoTranslate(); + } + + /** + * Event Listeners Setup + */ + + // Button event listeners + elements.swapButton.addEventListener("click", swapLanguagesWithAnimation); + elements.copyButton.addEventListener("click", copyToClipboard); + elements.historyButton.addEventListener("click", showHistoryPanel); + elements.settingsButton.addEventListener("click", showSettingsPanel); + elements.closeHistoryButton.addEventListener("click", hideHistoryPanel); + elements.closeSettingsButton.addEventListener("click", hideSettingsPanel); + elements.clearHistoryButton.addEventListener("click", clearHistory); + + // Auto-translate triggers + elements.inputText.addEventListener("input", () => { + updateCharCount(); + scheduleAutoTranslate(); + }); + elements.sourceLangSelect.addEventListener("change", () => { + updateSwapButtonState(); + scheduleAutoTranslate(); + }); + elements.targetLangSelect.addEventListener("change", scheduleAutoTranslate); + + // Panel management - close when clicking outside + elements.historyPanel.addEventListener("click", (e) => { + if (e.target === elements.historyPanel) { + hideHistoryPanel(); + } + }); + + elements.settingsPanel.addEventListener("click", (e) => { + if (e.target === elements.settingsPanel) { + hideSettingsPanel(); + } + }); + + // Keyboard shortcuts + document.addEventListener("keydown", (e) => { + if (e.ctrlKey && e.key === "Enter") { + translateText(); + } + if (e.key === "Escape") { + hideHistoryPanel(); + hideSettingsPanel(); + } + }); +}); diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..05f0654 --- /dev/null +++ b/styles.css @@ -0,0 +1,322 @@ +/** + * DeepLX Translation App - Custom Styles + * + * This stylesheet provides custom styling for the DeepLX translation app, + * including RTL/LTR text support, animations, and enhanced UI components. + * + * @author Xi Xu + * @version 1.0.0 + */ + +/* ========================================================================== + Base Styles + ========================================================================== */ + +body { + font-family: "Inter", sans-serif; +} + +/* ========================================================================== + Text Direction Support (RTL/LTR) + ========================================================================== */ + +/* RTL support for Arabic and other right-to-left languages */ +.rtl-text { + direction: rtl; + text-align: right; + unicode-bidi: embed; +} + +/* LTR support for left-to-right languages */ +.ltr-text { + direction: ltr; + text-align: left; + unicode-bidi: embed; +} + +/* Smooth transition for direction changes */ +.translate-textarea { + transition: direction 0.3s ease, text-align 0.3s ease; +} + +/* ========================================================================== + Form Elements and Inputs + ========================================================================== */ + +/* Translation textarea styling */ +.translate-textarea { + background-color: #2d3748; /* Dark gray background */ + color: #e2e8f0; /* Light gray text */ + border: 1px solid #4a5568; /* Border color */ + min-height: 200px; /* Minimum height for better UX */ + resize: vertical; /* Allow vertical resizing only */ +} + +/* Focus states for input elements */ +.translate-textarea:focus, +.api-input:focus { + outline: none; + border-color: #4299e1; /* Blue border on focus */ + box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.5); +} + +/* Enhanced textarea focus effects */ +.translate-textarea:focus { + outline: none; + border-color: #4299e1; + box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1); + transform: scale(1.01); + transition: all 0.2s ease; +} + +/* Language selector styling */ +.lang-select { + background-color: #4a5568; + color: #e2e8f0; + border: 1px solid #718096; +} + +/* API input field styling */ +.api-input { + background-color: #2d3748; + border: 1px solid #4a5568; +} + +/* Input field enhancements */ +.api-input:focus, +.lang-select:focus { + outline: none; + border-color: #4299e1; + box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2); + transition: all 0.2s ease; +} + +/* ========================================================================== + Interactive Elements and Buttons + ========================================================================== */ + +/* Action button base styling */ +.action-btn { + transition: all 0.2s ease-in-out; +} + +.action-btn:hover:not(:disabled) { + background-color: #4a5568; + transform: translateY(-1px); + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); +} + +.action-btn:active:not(:disabled) { + transform: translateY(0); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); +} + +.action-btn:disabled { + opacity: 0.5; + cursor: not-allowed; + pointer-events: none; +} + +/* Loading spinner animation */ +#loadingSpinner { + border-top-color: #4299e1; + animation: spin 1s linear infinite; + box-shadow: 0 0 10px rgba(66, 153, 225, 0.3); +} + +@keyframes spin { + to { + transform: rotate(360deg); + } +} + +/* ========================================================================== + History Panel and Components + ========================================================================== */ + +/* History item container styling */ +.history-item { + background-color: #374151; + border: 1px solid #4b5563; + border-radius: 0.5rem; + padding: 0.75rem; + cursor: pointer; + transition: all 0.2s ease; +} + +.history-item:hover { + background-color: #4b5563; + transform: translateX(4px); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); +} + +/* History item text elements */ +.history-item .source-text { + color: #d1d5db; + font-size: 0.875rem; + margin-bottom: 0.25rem; +} + +.history-item .target-text { + color: #9ca3af; + font-size: 0.875rem; +} + +.history-item .lang-info { + color: #6b7280; + font-size: 0.75rem; + margin-top: 0.25rem; +} + +/* RTL support for history items */ +.history-item .source-text.rtl-text, +.history-item .target-text.rtl-text { + direction: rtl; + text-align: right; +} + +/* ========================================================================== + UI Components and Controls + ========================================================================== */ + +/* Toggle switch styles */ +.peer:checked ~ .peer-checked\:bg-blue-600 { + background-color: #2563eb; +} + +/* Enhanced toggle switch */ +.peer:checked ~ div { + background-color: #2563eb; + box-shadow: 0 0 10px rgba(37, 99, 235, 0.3); +} + +/* Scrollbar styles for history list */ +#historyList::-webkit-scrollbar { + width: 6px; +} + +#historyList::-webkit-scrollbar-track { + background: #374151; + border-radius: 3px; +} + +#historyList::-webkit-scrollbar-thumb { + background: #6b7280; + border-radius: 3px; +} + +#historyList::-webkit-scrollbar-thumb:hover { + background: #9ca3af; +} + +/* Panel backdrop blur effect */ +#historyPanel, +#settingsPanel { + backdrop-filter: blur(4px); +} + +/* Status message animations */ +#statusMessage { + transition: all 0.3s ease; +} + +/* Quick tips styling */ +.bg-gray-700 { + background: linear-gradient(135deg, #374151 0%, #4b5563 100%); + border: 1px solid #6b7280; +} + +/* ========================================================================== + Animations and Effects + ========================================================================== */ + +/* Animation keyframes */ +@keyframes fadeIn { + from { + opacity: 0; + transform: translateY(10px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +@keyframes slideUp { + from { + opacity: 0; + transform: translateY(30px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +@keyframes pulse { + 0% { + transform: scale(1); + } + 50% { + transform: scale(1.1); + background-color: #10b981; + } + 100% { + transform: scale(1); + } +} + +/* Animation classes */ +.animate-fade-in { + animation: fadeIn 0.6s ease-out; +} + +.animate-fade-in-delay { + animation: fadeIn 0.6s ease-out 0.2s both; +} + +.animate-fade-in-delay-3 { + animation: fadeIn 0.6s ease-out 0.6s both; +} + +.animate-slide-up { + animation: slideUp 0.5s ease-out; +} + +/* Copy button pulse effect when clicked */ +.copy-success { + animation: pulse 0.3s ease-in-out; +} + +/* ========================================================================== + Character Counter and Status + ========================================================================== */ + +/* Character counter styling */ +#charCount { + transition: color 0.2s ease; +} + +.char-warning { + color: #fbbf24 !important; +} + +.char-danger { + color: #ef4444 !important; +} + +/* ========================================================================== + Responsive Design + ========================================================================== */ + +/* Responsive improvements */ +@media (max-width: 768px) { + .animate-slide-up { + animation: slideUp 0.3s ease-out; + } + + .action-btn:hover { + transform: none; + box-shadow: none; + } +}