From ed87544a632d7beb0a11e786371381fc58daf76d Mon Sep 17 00:00:00 2001 From: C191239 Date: Tue, 2 Apr 2024 21:59:55 +0800 Subject: [PATCH 1/6] done static file server --- .gitignore | 9 +++++++ Cargo.lock | 59 +++++++++++++++++++++++++++++++++++++++++++- Cargo.toml | 1 + config-template.toml | 1 + src/main.rs | 5 +++- src/tests.rs | 1 + 6 files changed, 74 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ea8c4bf..04183f7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,10 @@ +# Dev /target + +# Prod +config.toml +db/ +static/ + +# Misc +.DS_Store \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 3fb8db9..d6aa577 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -163,6 +163,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" + [[package]] name = "bumpalo" version = "3.14.0" @@ -511,6 +517,12 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "http-range-header" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ce4ef31cda248bbdb6e6820603b82dfcd9e833db65a43e997a0ccec777d11fe" + [[package]] name = "httparse" version = "1.8.0" @@ -677,6 +689,16 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +[[package]] +name = "mime_guess" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4192263c238a5f0d0c6bfd21f336a313a4ce1c450542449ca191bb657b4642ef" +dependencies = [ + "mime", + "unicase", +] + [[package]] name = "miniz_oxide" version = "0.7.1" @@ -847,7 +869,7 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ - "bitflags", + "bitflags 1.3.2", ] [[package]] @@ -1025,6 +1047,7 @@ dependencies = [ "tokio", "toml", "tower", + "tower-http", "tracing", "tracing-subscriber", ] @@ -1185,6 +1208,31 @@ dependencies = [ "tracing", ] +[[package]] +name = "tower-http" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" +dependencies = [ + "bitflags 2.5.0", + "bytes", + "futures-util", + "http", + "http-body", + "http-body-util", + "http-range-header", + "httpdate", + "mime", + "mime_guess", + "percent-encoding", + "pin-project-lite", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", + "tracing", +] + [[package]] name = "tower-layer" version = "0.3.2" @@ -1261,6 +1309,15 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" +[[package]] +name = "unicase" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89" +dependencies = [ + "version_check", +] + [[package]] name = "unicode-bidi" version = "0.3.14" diff --git a/Cargo.toml b/Cargo.toml index b315f53..08af814 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,7 @@ bincode = "1.3" toml = "0.8" thiserror = "1.0" fastrand = "2.0" +tower-http = { version = "0.5", features = ["fs"] } [dev-dependencies] tower = "0.4" diff --git a/config-template.toml b/config-template.toml index 2cdc2d2..353d0f1 100644 --- a/config-template.toml +++ b/config-template.toml @@ -1,4 +1,5 @@ db_path = "./db" +static_path = "./static" port = 8080 # Secret mappings diff --git a/src/main.rs b/src/main.rs index 110f6a4..7334151 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,6 +9,7 @@ use dmds_tokio_fs::FsHandle; use paper::Paper; use question::Question; use serde::Deserialize; +use tower_http::services::ServeDir; mod paper; mod question; @@ -38,6 +39,7 @@ impl Clone for Global { struct Config { db_path: PathBuf, port: u32, + static_path: PathBuf, /// Root secret mapping. mng_secret: String, @@ -105,7 +107,8 @@ async fn main() { &format!("/{}/{}", config.mng_secret, config.mng_reject_papers_secret), post(paper::reject::), ) - .with_state(state.clone()); + .with_state(state.clone()) + .nest_service("/", ServeDir::new(config.static_path.clone())); tokio::spawn(dmds_tokio_fs::daemon( state.papers.clone(), diff --git a/src/tests.rs b/src/tests.rs index a910f77..3a28da7 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -17,6 +17,7 @@ fn router() -> (Global, Router) { let config = Config { db_path: PathBuf::new(), port: 8080, + static_path: PathBuf::new(), mng_secret: "secret".to_owned(), mng_get_papers_secret: "get_papers".to_owned(), mng_approve_papers_secret: "approve_papers".to_owned(), From 15c8e5b9ea06352f9f8eff0e7cdaf18ed0c0af3c Mon Sep 17 00:00:00 2001 From: C191239 Date: Wed, 24 Apr 2024 20:40:17 +0800 Subject: [PATCH 2/6] fix static --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7334151..569deac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -108,7 +108,7 @@ async fn main() { post(paper::reject::), ) .with_state(state.clone()) - .nest_service("/", ServeDir::new(config.static_path.clone())); + .fallback_service(ServeDir::new(config.static_path.clone())); tokio::spawn(dmds_tokio_fs::daemon( state.papers.clone(), From b67e6b7e8cd75551b89439d468257f0e49fa9dce Mon Sep 17 00:00:00 2001 From: C191239 Date: Wed, 24 Apr 2024 20:41:02 +0800 Subject: [PATCH 3/6] vendor static files --- .gitignore | 1 - static/LICENSE | 661 +++++++++++++++++++++++++++++++++++ static/assets/button.css | 141 ++++++++ static/assets/chest.css | 327 +++++++++++++++++ static/assets/common.css | 11 + static/assets/index.css | 76 ++++ static/assets/paper.css | 56 +++ static/assets/pin_red.png | Bin 0 -> 2216 bytes static/assets/pin_shadow.png | Bin 0 -> 800 bytes static/assets/questions.css | 51 +++ static/assets/sticky.css | 165 +++++++++ static/assets/subit.svg | 1 + static/assets/toprowbg.gif | Bin 0 -> 620 bytes static/favicon.ico | Bin 0 -> 1293 bytes static/index.html | 55 +++ static/paper.html | 258 ++++++++++++++ static/questions.html | 136 +++++++ 17 files changed, 1938 insertions(+), 1 deletion(-) create mode 100644 static/LICENSE create mode 100644 static/assets/button.css create mode 100644 static/assets/chest.css create mode 100644 static/assets/common.css create mode 100644 static/assets/index.css create mode 100644 static/assets/paper.css create mode 100644 static/assets/pin_red.png create mode 100644 static/assets/pin_shadow.png create mode 100644 static/assets/questions.css create mode 100644 static/assets/sticky.css create mode 100644 static/assets/subit.svg create mode 100644 static/assets/toprowbg.gif create mode 100644 static/favicon.ico create mode 100644 static/index.html create mode 100644 static/paper.html create mode 100644 static/questions.html diff --git a/.gitignore b/.gitignore index 6f54bef..1325076 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ # Prod config.toml db/ -static/ # Misc .DS_Store diff --git a/static/LICENSE b/static/LICENSE new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/static/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 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 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. + + + Copyright (C) + + 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 . + +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 +. diff --git a/static/assets/button.css b/static/assets/button.css new file mode 100644 index 0000000..b04515e --- /dev/null +++ b/static/assets/button.css @@ -0,0 +1,141 @@ +.btn-gradient { + margin: 5px; +} + +/* Here you can change the button sizes */ +.btn-gradient.small { + padding: 8px 18px; + font-size: 14px; +} + +.btn-gradient.mini { + padding: 4px 12px; + font-size: 12px; +} + +.btn-gradient.block { + display: block; + width: 60%; + margin-left: auto; + margin-right: auto; + text-align: center; +} + +.btn-gradient.large { + padding: 15px 45px; + font-size: 22px; +} + +/* Gradient buttons */ +.btn-gradient { + text-decoration: none; + color: white; + padding: 10px 30px; + display: inline-block; + position: relative; + border: 1px solid rgba(0, 0, 0, 0.21); + border-bottom: 4px solid rgba(0, 0, 0, 0.21); + border-radius: 4px; + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15); +} + +/* Gradient - ugly css is ugly */ +.btn-gradient.cyan { + background: rgba(27, 188, 194, 1); + background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(27, 188, 194, 1)), to(rgba(24, 163, 168, 1))); + background: -webkit-linear-gradient(rgba(27, 188, 194, 1) 0%, rgba(24, 163, 168, 1) 100%); + background: -moz-linear-gradient(rgba(27, 188, 194, 1) 0%, rgba(24, 163, 168, 1) 100%); + background: -o-linear-gradient(rgba(27, 188, 194, 1) 0%, rgba(24, 163, 168, 1) 100%); + background: linear-gradient(rgba(27, 188, 194, 1) 0%, rgba(24, 163, 168, 1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1bbcc2', endColorstr='#18a3a8', GradientType=0); +} + +.btn-gradient.red { + background: rgba(250, 90, 90, 1); + background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(250, 90, 90, 1)), to(rgba(232, 81, 81, 1))); + background: -webkit-linear-gradient(rgba(250, 90, 90, 1) 0%, rgba(232, 81, 81, 1) 100%); + background: -moz-linear-gradient(rgba(250, 90, 90, 1) 0%, rgba(232, 81, 81, 1) 100%); + background: -o-linear-gradient(rgba(250, 90, 90, 1) 0%, rgba(232, 81, 81, 1) 100%); + background: linear-gradient(rgba(250, 90, 90, 1) 0%, rgba(232, 81, 81, 1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fa5a5a', endColorstr='#e85151', GradientType=0); +} + +.btn-gradient.orange { + background: rgba(255, 105, 30, 1); + background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255, 105, 30, 1)), to(rgba(230, 95, 28, 1))); + background: -webkit-linear-gradient(rgba(255, 105, 30, 1) 0%, rgba(230, 95, 28, 1) 100%); + background: -moz-linear-gradient(rgba(255, 105, 30, 1) 0%, rgba(230, 95, 28, 1) 100%); + background: -o-linear-gradient(rgba(255, 105, 30, 1) 0%, rgba(230, 95, 28, 1) 100%); + background: linear-gradient(rgba(255, 105, 30, 1) 0%, rgba(230, 95, 28, 1) 100%); +} + +.btn-gradient.blue { + background: rgba(102, 152, 203, 1); + background: -moz-linear-gradient(top, rgba(102, 152, 203, 1) 0%, rgba(92, 138, 184, 1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(102, 152, 203, 1)), color-stop(100%, rgba(92, 138, 184, 1))); + background: -webkit-linear-gradient(top, rgba(102, 152, 203, 1) 0%, rgba(92, 138, 184, 1) 100%); + background: -o-linear-gradient(top, rgba(102, 152, 203, 1) 0%, rgba(92, 138, 184, 1) 100%); + background: -ms-linear-gradient(top, rgba(102, 152, 203, 1) 0%, rgba(92, 138, 184, 1) 100%); + background: linear-gradient(to bottom, rgba(102, 152, 203, 1) 0%, rgba(92, 138, 184, 1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6698cb', endColorstr='#5c8ab8', GradientType=0); +} + +.btn-gradient.purple { + background: rgba(203, 153, 197, 1); + background: -moz-linear-gradient(top, rgba(203, 153, 197, 1) 0%, rgba(181, 134, 176, 1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(203, 153, 197, 1)), color-stop(100%, rgba(181, 134, 176, 1))); + background: -webkit-linear-gradient(top, rgba(203, 153, 197, 1) 0%, rgba(181, 134, 176, 1) 100%); + background: -o-linear-gradient(top, rgba(203, 153, 197, 1) 0%, rgba(181, 134, 176, 1) 100%); + background: -ms-linear-gradient(top, rgba(203, 153, 197, 1) 0%, rgba(181, 134, 176, 1) 100%); + background: linear-gradient(to bottom, rgba(203, 153, 197, 1) 0%, rgba(181, 134, 176, 1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cb99c5', endColorstr='#b586b0', GradientType=0); +} + +.btn-gradient.yellow { + background: rgba(240, 210, 100, 1); + background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(240, 210, 100, 1)), to(rgba(229, 201, 96, 1))); + background: -webkit-linear-gradient(rgba(240, 210, 100, 1) 0%, rgba(229, 201, 96, 1) 100%); + background: -moz-linear-gradient(rgba(240, 210, 100, 1) 0%, rgba(229, 201, 96, 1) 100%); + background: -o-linear-gradient(rgba(240, 210, 100, 1) 0%, rgba(229, 201, 96, 1) 100%); + background: linear-gradient(rgba(240, 210, 100, 1) 0%, rgba(229, 201, 96, 1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f0d264', endColorstr='#e5c960', GradientType=0); +} + +.btn-gradient.green { + background: rgba(130, 200, 160, 1); + background: -moz-linear-gradient(top, rgba(130, 200, 160, 1) 0%, rgba(130, 199, 158, 1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(130, 200, 160, 1)), color-stop(100%, rgba(130, 199, 158, 1))); + background: -webkit-linear-gradient(top, rgba(130, 200, 160, 1) 0%, rgba(130, 199, 158, 1) 100%); + background: -o-linear-gradient(top, rgba(130, 200, 160, 1) 0%, rgba(130, 199, 158, 1) 100%); + background: -ms-linear-gradient(top, rgba(130, 200, 160, 1) 0%, rgba(130, 199, 158, 1) 100%); + background: linear-gradient(to bottom, rgba(130, 200, 160, 1) 0%, rgba(124, 185, 149, 1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#82c8a0', endColorstr='#82c79e', GradientType=0); +} + +.btn-gradient.red:active { + background: #E35252; +} + +.btn-gradient.orange:active { + background: #E8601B; +} + +.btn-gradient.cyan:active { + background: #169499; +} + +.btn-gradient.blue:active { + background: #608FBF; +} + +.btn-gradient.purple:active { + background: #BD8EB7; +} + +.btn-gradient.yellow:active { + background: #DBC05B; +} + +.btn-gradient.green:active { + background: #72B08E; +} \ No newline at end of file diff --git a/static/assets/chest.css b/static/assets/chest.css new file mode 100644 index 0000000..eb58abb --- /dev/null +++ b/static/assets/chest.css @@ -0,0 +1,327 @@ +* { + box-sizing: border-box; +} + +:root { + --height: 150; + --width: 100; + --depth: 75; + --drawerSize: calc((var(--height) / 3) - 10); + --drawerHole: calc((var(--height) - ((10 * 4) + (10 + 30))) / 3); +} + +.chest { + height: calc(var(--height) * 1px); + -webkit-transform: rotateX(-30deg) rotateY(40deg); + transform: rotateX(-30deg) rotateY(40deg); + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; + width: calc(var(--width) * 1px); +} + +.chest__panel { + height: 100%; + position: absolute; + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; + width: 100%; +} + +.chest__panel:after { + content: ''; + display: block; + height: 100%; + width: 100%; +} + +.chest__panel--front { + -webkit-transform: translate3d(0, 0, calc(var(--depth) / 2 * 1px)); + transform: translate3d(0, 0, calc(var(--depth) / 2 * 1px)); +} + +.chest__panel--front:after { + background: #5b5b5b; + content: ''; + height: 4px; + position: absolute; + top: -2px; + width: 100%; +} + +.chest__panel--front-frame { + border: 10px solid #5b5b5b; + border-bottom-width: 30px; + border-top-width: 10px; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} + +.chest__panel--front-frame:before { + background: #5b5b5b; + content: ''; + height: 20px; + left: 0; + position: absolute; + top: calc(var(--drawerHole) * 1px); + width: 100%; +} + +.chest__panel--front-frame:after { + background: #5b5b5b; + content: ''; + height: 20px; + left: 0; + position: absolute; + top: calc(var(--drawerHole) * 2px + 20px); + width: 100%; +} + +.chest__panel--back { + background: #5b5b5b; + -webkit-transform: translate3d(0, 0, calc(var(--depth) / 2 * -1px)); + transform: translate3d(0, 0, calc(var(--depth) / 2 * -1px)); +} + +.chest__panel--back:after { + background: #000; + -webkit-transform: translate3d(0, 0, 1px); + transform: translate3d(0, 0, 1px); +} + +.chest__panel--top { + background: #474747; + bottom: 100%; + height: calc(var(--depth) * 1px); + left: 0; + -webkit-transform: rotateX(90deg) translate3d(0, 50%, 1px); + transform: rotateX(90deg) translate3d(0, 50%, 1px); + -webkit-transform-origin: bottom; + transform-origin: bottom; + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; +} + +.chest__panel--top:after { + background: #1a1a1a; + -webkit-transform: translate3d(0, 0, -1px); + transform: translate3d(0, 0, -1px); +} + +.chest__panel--bottom { + background: #474747; + height: calc(var(--depth) * 1px); + left: 0; + top: 100%; + -webkit-transform: translateY(-50%) rotateX(90deg); + transform: translateY(-50%) rotateX(90deg); +} + +.chest__panel--bottom:after { + background: #0d0d0d; + -webkit-transform: translate3d(0, 0, 1px); + transform: translate3d(0, 0, 1px); +} + +.chest__panel--right { + background: #323232; + right: 0; + -webkit-transform: translate3d(0, 0, calc(var(--depth) / 2 * 1px)) rotateY(-90deg); + transform: translate3d(0, 0, calc(var(--depth) / 2 * 1px)) rotateY(-90deg); + -webkit-transform-origin: right center; + transform-origin: right center; + width: calc(var(--depth) * 1px); +} + +.chest__panel--right:after { + background: #1a1a1a; + -webkit-transform: translate3d(0, 0, 1px); + transform: translate3d(0, 0, 1px); +} + +.chest__panel--left { + width: calc(var(--depth) * 1px); + left: 0; + background: #323232; + -webkit-transform-origin: left center; + transform-origin: left center; + -webkit-transform: translate3d(0, -1px, calc(var(--depth) / 2 * 1px)) rotateY(90deg); + transform: translate3d(0, -1px, calc(var(--depth) / 2 * 1px)) rotateY(90deg); +} + +.chest__panel--left:after { + background: #1a1a1a; + -webkit-transform: translate3d(0, 0, 1px); + transform: translate3d(0, 0, 1px); +} + +.chest-drawer { + height: calc(var(--drawerSize) * 1px); + left: 0; + position: absolute; + top: 0; + transition: -webkit-transform 0.25s; + transition: transform 0.25s; + transition: transform 0.25s, -webkit-transform 0.25s; + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; + width: 100%; +} + +.chest-drawer--top, +.chest-drawer--middle, +.chest-drawer--bottom { + -webkit-transform: translate3d(0, 0, calc(var(--depth) * 0.51px)); + transform: translate3d(0, 0, calc(var(--depth) * 0.51px)); +} + +.chest-drawer--top { + top: 5px; + z-index: 3; +} + +.chest-drawer--middle { + top: calc((var(--drawerSize) + 10) * 1px); + z-index: 2; +} + +.chest-drawer--bottom { + top: calc((var(--drawerSize) * 2 + 15) * 1px); + z-index: 1; +} + +.chest-drawer details, +.chest-drawer summary { + background: #303030; + cursor: pointer; + height: 100%; + left: 0; + list-style: none; + position: absolute; + outline: 0; + top: 0; + transition: -webkit-transform 0.25s; + transition: transform 0.25s; + transition: transform 0.25s, -webkit-transform 0.25s; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); + width: 100%; +} + +.chest-drawer details:after, +.chest-drawer summary:after { + background: #adadad; + content: ''; + height: 5%; + left: 50%; + position: absolute; + top: 10%; + -webkit-transform: translate(-50%, 0); + transform: translate(-50%, 0); + width: 40%; +} + +.chest-drawer details::-webkit-details-marker, +.chest-drawer summary::-webkit-details-marker { + display: none; +} + +/* Animation starts*/ + +/* +.chest-drawer details:hover:not([open]) { + -webkit-transform: translate3d(0, 0, calc(var(--depth) * 0.05px)); + transform: translate3d(0, 0, calc(var(--depth) * 0.05px)); +} +*/ + +.chest-drawer details.open, +.chest-drawer details.open~.chest-drawer__structure { + -webkit-transform: translate3d(0, 0, calc(var(--depth) * 0.9px)); + transform: translate3d(0, 0, calc(var(--depth) * 0.9px)); +} + +/* Animation ends*/ + +.chest-drawer__panel { + height: 100%; + position: absolute; + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; + width: 100%; +} + +.chest-drawer__panel--left { + background: #e6e6e6; + bottom: 0; + height: calc(var(--drawerHole) * 0.65px); + left: 10px; + -webkit-transform: translate3d(0, -16px, -2px) rotateY(90deg); + transform: translate3d(0, -16px, -2px) rotateY(90deg); + -webkit-transform-origin: left; + transform-origin: left; + width: calc(var(--depth) * 1px); +} + +.chest-drawer__panel--right { + background: #e6e6e6; + bottom: 0; + height: calc(var(--drawerHole) * 0.65px); + right: 10px; + -webkit-transform: translate3d(0, -16px, -2px) rotateY(-90deg); + transform: translate3d(0, -16px, -2px) rotateY(-90deg); + -webkit-transform-origin: right; + transform-origin: right; + width: calc((var(--depth) - 3) * 1px); +} + +.chest-drawer__panel--bottom { + background: #fff; + bottom: 18px; + height: calc(var(--depth) * 1px); + left: 10px; + -webkit-transform: rotateX(90deg) translate3d(0, -2px, 0); + transform: rotateX(90deg) translate3d(0, -2px, 0); + -webkit-transform-origin: bottom center; + transform-origin: bottom center; + width: calc(100% - (2px * 10)); +} + +.chest-drawer__panel--back { + align-items: center; + background: #d9d9d9; + bottom: 16px; + display: flex; + font-size: calc(var(--drawerHole) * 0.35px); + font-weight: bold; + height: calc(var(--drawerHole) * 0.65px); + justify-content: center; + left: 10px; + -webkit-transform: translate3d(0, 0, calc((var(--depth) - 2) * -1px)); + transform: translate3d(0, 0, calc((var(--depth) - 2) * -1px)); + width: calc(100% - (2px * 10)); +} + +.chest-drawer__structure { + height: 100%; + left: 0; + position: absolute; + top: 0; + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; + transition: -webkit-transform 0.25s; + transition: transform 0.25s; + transition: transform 0.25s, -webkit-transform 0.25s; + width: 100%; +} + +.chest-drawer--top .chest-drawer__panel--back { + color: #e74c3c; +} + +.chest-drawer--middle .chest-drawer__panel--back { + color: #6bb9f0; +} + +.chest-drawer--bottom .chest-drawer__panel--back { + color: #00e640; +} \ No newline at end of file diff --git a/static/assets/common.css b/static/assets/common.css new file mode 100644 index 0000000..43737fb --- /dev/null +++ b/static/assets/common.css @@ -0,0 +1,11 @@ +body { + background-image: url(toprowbg.gif); + --magenta: #fcf; + --yellow: #ffc; + --blue: #cff; + --purple: #ccf; + --green: #cfc; + --red: #fcc; + overflow: hidden; + font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; +} \ No newline at end of file diff --git a/static/assets/index.css b/static/assets/index.css new file mode 100644 index 0000000..fd0cee9 --- /dev/null +++ b/static/assets/index.css @@ -0,0 +1,76 @@ +.bg1 { + width: 30%; + height: 30%; + position: fixed; + top: 5%; + left: -10%; + z-index: 27; + background-color: var(--yellow); + text-align: center; +} + +.bg2 { + width: 10%; + height: 30%; + position: fixed; + left: 20%; + top: 15%; + z-index: 26; + background-color: var(--red); + text-align: center; +} + +/*.bg3*/ +.main { + width: 40%; + height: 45%; + position: fixed; + left: 30%; + top: 20%; + z-index: 36; + background-color: var(--blue); +} + +/*bg4*/ +.questions { + width: 25%; + height: 36%; + position: fixed; + left: 5%; + bottom: 3%; + z-index: 25; + background-color: var(--green); +} + +.bg5 { + width: 25%; + height: 30%; + position: fixed; + right: 5%; + top: 12%; + z-index: -1; + background-color: var(--purple); + text-align: center; +} + +.bg6 { + width: 18%; + height: 50%; + position: fixed; + right: -5%; + bottom: 10%; + z-index: -2; + background-color: var(--magenta); + text-align: center; + color: darkgray; +} + +.bg7 { + width: 12%; + height: 10%; + position: fixed; + right: 30%; + bottom: 2%; + z-index: 41; + background-color: var(--yellow); +} \ No newline at end of file diff --git a/static/assets/paper.css b/static/assets/paper.css new file mode 100644 index 0000000..3ad88c8 --- /dev/null +++ b/static/assets/paper.css @@ -0,0 +1,56 @@ +.main { + position: relative; + width: 100%; + height: 100%; +} + +.settings { + position: fixed; + width: 20%; + height: 20%; + left: 10%; + bottom: 10%; + background-color: var(--yellow); +} + +.submit { + position: fixed; + right: 2%; + bottom: 2%; +} + +.container { + position: fixed; + width: 60%; + height: 60%; + left: 15%; + top: 5%; + transition: transform 1s; + z-index: 100; +} + +.shrink { + transform: scale(0.05) translate(1400%, 1400%); +} + +.success { + background-color: var(--yellow); + position: fixed; + width: 30%; + height: 30%; + left: 30%; + top: 20%; +} + +.random { + position: fixed; + right: 2%; + bottom: 2%; + ; +} + +.return { + position: fixed; + right: 2%; + bottom: 2%; +} \ No newline at end of file diff --git a/static/assets/pin_red.png b/static/assets/pin_red.png new file mode 100644 index 0000000000000000000000000000000000000000..bed992324b4b194c0055103deedf2c8239db77f5 GIT binary patch literal 2216 zcmV;Z2v_%sP)sfZF@c;Qi^kr)%B zR#2mf1mBE_KA0GzKx(k16v`AzxER3-h6X_rtX%BS+g$2Q=W?!lul4(I_Bm&txujF2 zgq^Ic^{=z`-rxEE^a`jd*yt?y+-$s z6@O=pZgCLAcpOmgbuPvqcku9S#1DL^fd8<41F`7KLF~3Tlo(~DK7oDHp|{+DKc0S$ zIUjI)doCOl;oV&9w-`VWY^pa17QrBxL^jA3g1q?%=CkJ=a6p;J#lBmbFd&!&&LmLv zX4_$V0(g2iX5)DS+%vfGv5V)*NTRVu-_VpKPz^Xq;B0eVdVr_T3*dK#MmAqOTiNC@ zsh74|8nV8k1uN~am;Dj>?gtJy68T#@JU!9|lh$Hu51K`N%hb)aUws7A6?~9@#_R1_ z?-SDqiedpx#tL`@gQ5wnCfZfNpjZU0%R_>0I48h|Ak1TLR@koSr#)=(=%5Gn=tRl6 zUZbt}W!ix1pbfYNuxY~4gsW>+Gak8g)qwj6ZxGlcP*Bur@-UC$K)|glYkOd=o2~)G z5{)+CePUYQf@@e{)2aXuNbbQv-CgOI*I!TvZ1gp2s9GWCHI)fk8uV?l!QfF07Qe{U zl4w?k&kFdIEsS-#Xh;&TBYB9XAY(jTWLOZPf{w+KM934cmMm+^HQvvMZJ|M0nPQRWwtkb;yiNUXF)IUp zX0G(RHBr1R#8L;Ww`|htvL%ZlkEMjCw^ZScT!eJc%L3+{ zzrEnpScG7aIYVm*ttEqyMJVGbHsKtl1lIX7L*tVi?Cs=mUycB6z9^leTaEz%pkf%$ z=YArE!DkvgOTvu8tsM$s0%%1rxd7?QK$opAs(5rRB0C*XYzChC*W$X|c&@uRQ66e|K67Y@Q`MpKRkH7UDyJ53i{fKCn0K5$MU>6)Y?vWGkf*~2bXVj0TJMMhbEp*9-Ou)P z?%I9i$mC+4r5Y6a8)`Sb8DwJ)*5;8y7m^7<1dSr-Dsw>~xYN@tMDZd$(k5%Qgs+xh z;S3$X9F{7sbPsej7mu${fGnQy2+kO+7#PeV{hgSe0;abIyM6=qqK%loK1_E3)0gMQ zkwHqpJWx#9LLx6DZ4T%|Sl0|L4u#w=AUtb@w9IGJ>s2GrX^`#!Iez7evaSZ=nF!IT@2Gm+i zU=d?6y#v^x%Q2mK{LBQLI11K4Xy~^YzCka4r^GQlwZv6AFkA%WFqB*Fb57TCUcCEc zSLQ2QOBKX<)Oqj@Kl>lt@waecCw^uMq6nOW*rQS1sjei)$53hsWRw~&-J#4ZH@Ocp zT7zXa<$R?2{EPj$n{Jq>;0hsx0p2^bT&{a@EkcVWbf$!!uHuVvTYcE5{TgGMJ?TI4 z+_zQ%xWq~BJ2~b8c;LOzFjZ0XSP4BfhfdDor>5~!)9BP0bYc!YRzy!#lA5qtT_;6s z3)D4%Td~r?-i84%7h<)Su zB7Kz6K8{f$lo%43=k9@@t?EN;xyhejbFJKWa_r6%9pTj9`Z{n65pJxA|JNM;$UOeN zB5t}yO&b6t2SW7-=Mvc^vTxHa)x&V(YQ1>HP&9hrz>a9@#AC02?+2MHs{vQdEZ~#n znlhPdYO7xQ*R_@QV5NqmhH4e0hP~}>;{B`slwEG}$K;y=Ggu_WITh+kW%v;nM$- zNhD>~?bg~SMmCLvUOkWR+c*BoUk_ci?}_~<(l^|{et5ly>%5UKcR2rrPUri>*kQFE zSR8^^dB+Fl(aC(*=ueNn{o?;~oFWO_jn>*{8k*a?XV2vK@4fdzSX~0WfBo?1ldW00 z@8sAUALMyY@bE(q-eSb;-!!~QRaKtYx9{XDFTZ^CYT=UL{vzk;3i>Y?JTNjcf-#0a z?Ao=kd)I@*ZytF!<|A^MxKh5mR;%&oo;|03{i|Po^X+$zUfmgn_M-wQ0C(KFW5=Hl q9qOB#oj)TY0?bt6_@$2m;C}&dKMF#PEEiG$0000*0-(SgPy;T2Gync+YE}yZ=ofwrJO^4(r>WU~+y8UG zj)#!}zHh+S)a)QDVEotDoI6#K25`$inpcscij-C4A@CBI>fBf#5nx$G?yE?}oU4zd z!9JS21PVZN1Zy>cx2f5AW({^|(g8)ki8zqIKT(lmbM9g!Ko5DMBDaAgU{E%JH5K`6 z&JFA%^f2?L*I;Ow1$G(2iMzqg1KU0dLyH5}64l};8hkopKn!B)dzklv<+sK|QY z>d{YwD=M<6BA9cvK>>?C!t#)5-%s9Akqs3onRAWn05!)*ZZ~%U*iw-bbMCyK50=MN z;s!Cf0lSInQa`{tP@Uj0M1WU`>U38Vn{%j09e9wlnL8VbMHMOaYFKM3GM8hp^h)AK zJsVaP`R1F3nF#?ZaMG`%Mny`#Eh@TYy&-0kuSh6|7gmW#Mocz^H>xRupEWla-zBetOs%h0p5o;S2>^tQ{ZQ4z^boA zA>=GIOM?RXNmeC*7Ms8UV~WU+UW?HPzV|LQ`%R#k%Rgz!=g##E30{CtsoBxBvzZYg z8@>u{4!OpDYF6sZHDi@Tb(^b6?5tm}*|v7X)l~L7aFCi^c1woj09gR${k71l68_MX ere;0Iaen~&PS#-@XX{J=0000 \ No newline at end of file diff --git a/static/assets/toprowbg.gif b/static/assets/toprowbg.gif new file mode 100644 index 0000000000000000000000000000000000000000..ebd416d79c4aff6472b190ee9ac26a42894a9cb6 GIT binary patch literal 620 zcmZ?wbhEHbRA5kG_`t|;?kNZ;{$ybQ0UZzll3`%_$HF0?;LyOp$b^UCGs7V9Pz$H9 r8Xg87?QkhP+Tl`g#dsKS#dsKaw8N!*X8aqj9wW|QuGENmRt9STDyWOD literal 0 HcmV?d00001 diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..5ebc74d3a668bff3b9a27fe27ba6c9408129ac71 GIT binary patch literal 1293 zcmcIiX;4!K5Pkt#33616h#Zo7REwixN19QDq@5sUs)5l^jSQf*cnnp;6>bx-K&b-b zLD33@dVqq8TDhfoRR%CZN%9gBViH0U5|Th}l6R!=tL^Z+-|o(SyF0V{{a66N%-aGm z01mLZ0f65;FOQ?dczFbP%u_G&9@74W=|Z@>&ZpG-hp6*KbKG8PwA1OFgHV+b;;QBb zWmf*woZ19AV06j|H4M%q+>(FxqsXsN@Nog(w}9_|PO$l>@nd%t_l6C6D-0p%V~#QM z%KHy9dB9l?K<8o^yqIg!UZEL9ot4kEKpHoYC8!^qK~U$FSGuLyU?Y3BZ`{0!DFDuL z*Ov;1CvC<#B(6?&qFM1#9zUpPjH8-kc4}PGxj(N(0me8kgtuW9uf` zK$B+<$m-I(m0KybGP50d!ZmtkgF_S6*gBcbfj;FKzo-&74;vnFi~_aY4x=x{mV$P* zdlt_vgSRA$SJI==THvUw5-bD6q;Z*@>hLP@5f6%`l}-X0RbK*QH0A zCQm<5p6}K)zMJ*QV<-l><)jt!qv@f4USZ?b4%LM>Tow-_hsusaa*vRB$D5s3PMCY9nXnZ=e*G$usq{) zn%>!{!KN~>9}3AsWh-NzG^-Bh(VV3tKp;MPJM-77Gw+u((3tncXq}wu>=BX1yeA5*4;DdsuAJI76hm$JxSgu;=$IG+T1RlLv)(g048^ zk?IyhC+_G|2+hQUoxQ=kuJT+O3~4Xg%Af>HWsp}#$FcrYmoOS#hh21orBpUjN=2f~ zAAqrYoPMEgpy`8_+8sUZ$O?|?xN!<;hDQQ3N+R~u zoYSnv5Y_RY{;|={_gu95|7#GZ!LOfXF;=x)wYYe?ebqG&aRe};bYBPk)6_>iYuv-+wnfs0I5jN0;c;ec;lcbDNO#H zkYFLEsFM9XJm|=qlf1Rnn-E!l127Pq;e2 zi(uxjF~jWoqR6GEeBEfm{1dxin4F&K&bArY&3Z& literal 0 HcmV?d00001 diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..07e7681 --- /dev/null +++ b/static/index.html @@ -0,0 +1,55 @@ + + + + + + 2024开放日小纸条 + + + + + + + + +
+
+
+ 开发人员 +
+ 朱舜中 +
+ 虞杰宁 +
+
+
向陌生人说句话吧!
+
+
~会收到回复哦~
+
~别人也会收到你的留言~
+ 立即参与 +
+
+
对SubIT有什么意见吗?
+
+
和我们说说吧!
+
你的意见对我们来说很重要
+ 立即参与 +
+
+ 随机掉落来自各位老师的祝福 +
+
+





+ 这个颜色的 +
+ 纸条只会在 +
+ 这里出现一次 +
+
+ Powered by +
+ + + \ No newline at end of file diff --git a/static/paper.html b/static/paper.html new file mode 100644 index 0000000..8c67c50 --- /dev/null +++ b/static/paper.html @@ -0,0 +1,258 @@ + + + + + + 2024开放日小纸条 + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
SubIT
+
+
+
+
+ +
+
+
+
+
+
Inbox
+
+
+
+
+ +
+
+
+
+
+
Outbox
+
+
+
+ +
+
+
+ 昵称*: +
20个字以内
+
+ E-mail: +
+ 请使用有效的E-mail格式
+
+
+ 正文*: +
+
+ 200个字以内,尽量不要超过5行
+
+ 提交 +
+ +
+
+
+ 便签颜色
+
+ 黄色 + 蓝色 + 紫色 + 绿色 + 红色 +
+
+
+ 小纸条提交成功,谢谢你的参与! +
+ 点击按钮可以抽一张来自其他人的小纸条 + 抽一张 +
+ + + \ No newline at end of file diff --git a/static/questions.html b/static/questions.html new file mode 100644 index 0000000..5478a5e --- /dev/null +++ b/static/questions.html @@ -0,0 +1,136 @@ + + + + + + 2024开放日小纸条 + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
SubIT
+
+
+
+
+ +
+
+
+
+
+
Inbox
+
+
+
+
+ +
+
+
+
+
+
Outbox
+
+
+
+ +
+
+
+ 昵称*: +
20个字以内
+
+ E-mail: +
+ 请使用有效的E-mail格式
+
+ 正文*: +
+
+ 200个字以内,尽量不要超过5行
+ 提交 +
+
+
+ 提交成功,谢谢你! +
+ 你的疑问(如有)将很快有社员通过你填写的电子邮件进行解答。 + 返回主页 +
+
+ Tip +
+ 如果你需要帮助,请务必留下你的邮箱以便联系 +
+ + + \ No newline at end of file From 8b8796dee286d4387f35c0a2b3a3283987e98849 Mon Sep 17 00:00:00 2001 From: C191239 Date: Wed, 24 Apr 2024 20:47:12 +0800 Subject: [PATCH 4/6] bump dmds --- Cargo.lock | 18 ++++++++---------- Cargo.toml | 4 ++-- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1be09c7..d03318b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -52,9 +52,9 @@ dependencies = [ [[package]] name = "async-lock" -version = "3.2.0" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7125e42787d53db9dd54261812ef17e937c95a51e4d291373b670342fa44310c" +checksum = "d034b430882f8381900d3fe6f0aaa3ad94f2cb4ac519b429692a1bc2dda4ae7b" dependencies = [ "event-listener", "event-listener-strategy", @@ -260,12 +260,11 @@ dependencies = [ [[package]] name = "dmds" -version = "0.2.2" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "378c5c867d4f71ce0ba34d27982d9783ee405fd77e7c58317e71e6dcc830d6a5" +checksum = "80365beb994e31522b7d67b389986618a89570feb004192c2d4ba5ef334e11c7" dependencies = [ "async-lock", - "async-trait", "bytes", "dashmap", "futures-lite", @@ -274,11 +273,10 @@ dependencies = [ [[package]] name = "dmds-tokio-fs" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8ed854a5d73c95b951344d433f0ba3f04f0c41a550e44cf401e815c68cca8f" +checksum = "b40a4829bfe78f05567e3a8711f221aa80faefd7cf88f5e136ffd3077fd79259" dependencies = [ - "async-trait", "bytes", "dashmap", "dmds", @@ -390,9 +388,9 @@ checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" [[package]] name = "futures-lite" -version = "2.1.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aeee267a1883f7ebef3700f262d2d54de95dfaf38189015a74fdc4e0c7ad8143" +checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" dependencies = [ "fastrand", "futures-core", diff --git a/Cargo.toml b/Cargo.toml index e8a74c9..4107751 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,8 +7,8 @@ edition = "2021" [dependencies] axum = "0.7" -dmds = "0.2" -dmds-tokio-fs = "0.2" +dmds = "0.4.0" +dmds-tokio-fs = "0.3.0" tokio = { version = "1.37", features = ["full"] } tracing = "0.1" tracing-subscriber = "0.3" From 1d0fcc381b6ff9fcd157032b40884d798eb7bea7 Mon Sep 17 00:00:00 2001 From: JieningYu Date: Thu, 9 May 2024 15:21:20 +0800 Subject: [PATCH 5/6] bump version commit from v7 --- Cargo.lock | 353 +++++++++++++++++++++++++++-------------------------- 1 file changed, 178 insertions(+), 175 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d03318b..35a53ff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "ahash" -version = "0.8.7" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", "once_cell", @@ -31,9 +31,9 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.16" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" +checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" [[package]] name = "android-tzdata" @@ -63,9 +63,9 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.76" +version = "0.1.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "531b97fb4cd3dfdce92c35dedbfdc1f0b9d8091c8ca943d6dae340ef5012d514" +checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", @@ -74,9 +74,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "axum" @@ -104,7 +104,7 @@ dependencies = [ "serde_json", "serde_path_to_error", "serde_urlencoded", - "sync_wrapper 1.0.0", + "sync_wrapper 1.0.1", "tokio", "tower", "tower-layer", @@ -135,9 +135,9 @@ dependencies = [ [[package]] name = "backtrace" -version = "0.3.69" +version = "0.3.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" +checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" dependencies = [ "addr2line", "cc", @@ -157,12 +157,6 @@ dependencies = [ "serde", ] -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - [[package]] name = "bitflags" version = "2.5.0" @@ -171,9 +165,9 @@ checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" [[package]] name = "bumpalo" -version = "3.14.0" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "bytes" @@ -183,12 +177,9 @@ checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" [[package]] name = "cc" -version = "1.0.83" +version = "1.0.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" -dependencies = [ - "libc", -] +checksum = "099a5357d84c4c61eb35fc8eafa9a79a902c2f76911e5747ced4e032edd8d9b4" [[package]] name = "cfg-if" @@ -198,9 +189,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.37" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a0d04d43504c61aa6c7531f1871dd0d418d91130162063b789da00fd7057a5e" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ "android-tzdata", "iana-time-zone", @@ -208,7 +199,7 @@ dependencies = [ "num-traits", "serde", "wasm-bindgen", - "windows-targets 0.52.0", + "windows-targets 0.52.5", ] [[package]] @@ -223,9 +214,9 @@ dependencies = [ [[package]] name = "concurrent-queue" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d16048cd947b08fa32c24458a22f5dc5e835264f689f4f5653210c69fd107363" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" dependencies = [ "crossbeam-utils", ] @@ -238,12 +229,9 @@ checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "crossbeam-utils" -version = "0.8.18" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3a430a770ebd84726f584a90ee7f020d28db52c6d02138900f22341f866d39c" -dependencies = [ - "cfg-if", -] +checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" [[package]] name = "dashmap" @@ -298,9 +286,9 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "event-listener" -version = "4.0.2" +version = "4.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "218a870470cce1469024e9fb66b901aa983929d81304a1cdb299f28118e550d5" +checksum = "67b215c49b2b248c855fb73579eb1f4f26c38ffdc12973e20e07b91d78d5646e" dependencies = [ "concurrent-queue", "parking", @@ -319,9 +307,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.0.2" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984" +checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "fnv" @@ -448,9 +436,9 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "h2" -version = "0.4.2" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31d030e59af851932b72ceebadf4a2b5986dba4c3b99dd2493f8273a0f151943" +checksum = "816ec7294445779408f36fe57bc5b7fc1cf59664059096c65f905c1c61f58069" dependencies = [ "bytes", "fnv", @@ -467,9 +455,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.14.3" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash", "allocator-api2", @@ -477,15 +465,15 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.3.3" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] name = "http" -version = "1.0.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b32afd38673a8016f7c9ae69e5af41a58f81b1d31689040f2f1959594ce194ea" +checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" dependencies = [ "bytes", "fnv", @@ -517,9 +505,9 @@ dependencies = [ [[package]] name = "http-range-header" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ce4ef31cda248bbdb6e6820603b82dfcd9e833db65a43e997a0ccec777d11fe" +checksum = "08a397c49fec283e3d6211adbe480be95aae5f304cfb923e9970e08956d5168a" [[package]] name = "httparse" @@ -535,9 +523,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "1.2.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "186548d73ac615b32a73aafe38fb4f56c0d340e110e5a200bcadbaf2e199263a" +checksum = "fe575dd17d0862a9a33781c8c4696a55c320909004a67a00fb286ba8b1bc496d" dependencies = [ "bytes", "futures-channel", @@ -572,9 +560,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.59" +version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6a67363e2aa4443928ce15e57ebae94fd8949958fd1223c4cfc0cd473ad7539" +checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -605,9 +593,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.1.0" +version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" +checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", "hashbrown", @@ -615,15 +603,15 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "js-sys" -version = "0.3.66" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cee9c64da59eae3b50095c18d3e74f8b73c0b86d2792824ff01bbce68ba229ca" +checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" dependencies = [ "wasm-bindgen", ] @@ -636,9 +624,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "lettre" -version = "0.11.6" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47460276655930189e0919e4fbf46e46476b14f934f18a63dd726a5fb7b60e2e" +checksum = "1a62049a808f1c4e2356a2a380bd5f2aca3b011b0b482cf3b914ba1731426969" dependencies = [ "chumsky", "email_address", @@ -648,15 +636,15 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.151" +version = "0.2.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4" +checksum = "ae743338b92ff9146ce83992f766a31066a91a8c84a45e0e9f21e7cf6de6d346" [[package]] name = "lock_api" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ "autocfg", "scopeguard", @@ -664,9 +652,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.20" +version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "matchit" @@ -676,9 +664,9 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" [[package]] name = "memchr" -version = "2.7.1" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" +checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" [[package]] name = "mime" @@ -698,9 +686,9 @@ dependencies = [ [[package]] name = "miniz_oxide" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" +checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" dependencies = [ "adler", ] @@ -713,7 +701,7 @@ checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ "libc", "wasi", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] @@ -728,9 +716,9 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.17" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ "autocfg", ] @@ -774,9 +762,9 @@ checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae" [[package]] name = "parking_lot" -version = "0.12.1" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +checksum = "7e4af0ca4f6caed20e900d564c242b8e5d4903fdacf31d3daf527b66fe6f42fb" dependencies = [ "lock_api", "parking_lot_core", @@ -784,15 +772,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.9" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", - "windows-targets 0.48.5", + "windows-targets 0.52.5", ] [[package]] @@ -803,18 +791,18 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pin-project" -version = "1.1.3" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" +checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.3" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" +checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", @@ -823,9 +811,9 @@ dependencies = [ [[package]] name = "pin-project-lite" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" [[package]] name = "pin-utils" @@ -835,9 +823,9 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "proc-macro2" -version = "1.0.74" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2de98502f212cfcea8d0bb305bd0f49d7ebdd75b64ba0a68f937d888f4e0d6db" +checksum = "8ad3d49ab951a01fbaafe34f2ec74122942fe18a3f9814c3268f1bb72042131b" dependencies = [ "unicode-ident", ] @@ -853,39 +841,39 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.35" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] [[package]] name = "redox_syscall" -version = "0.4.1" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +checksum = "469052894dcb553421e483e4209ee581a45100d31b4018de03e5a7ad86374a7e" dependencies = [ - "bitflags 1.3.2", + "bitflags", ] [[package]] name = "rustc-demangle" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustversion" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" +checksum = "092474d1a01ea8278f69e6a358998405fae5b8b963ddaeb2b0b04a128bf1dfb0" [[package]] name = "ryu" -version = "1.0.16" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "scopeguard" @@ -895,18 +883,18 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "serde" -version = "1.0.197" +version = "1.0.201" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" +checksum = "780f1cebed1629e4753a1a38a3c72d30b97ec044f0aef68cb26650a3c5cf363c" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.197" +version = "1.0.201" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" +checksum = "c5e405930b9796f1c00bee880d03fc7e0bb4b9a11afc776885ffe84320da2865" dependencies = [ "proc-macro2", "quote", @@ -915,9 +903,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.115" +version = "1.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd" +checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" dependencies = [ "itoa", "ryu", @@ -926,9 +914,9 @@ dependencies = [ [[package]] name = "serde_path_to_error" -version = "0.1.14" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4beec8bce849d58d06238cb50db2e1c417cfeafa4c63f692b15c82b7c80f8335" +checksum = "af99884400da37c88f5e9146b7f1fd0fbcae8f6eec4e9da38b67d05486f814a6" dependencies = [ "itoa", "serde", @@ -936,9 +924,9 @@ dependencies = [ [[package]] name = "serde_repr" -version = "0.1.18" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b2e6b945e9d3df726b65d6ee24060aff8e3533d431f677a9695db04eff9dfdb" +checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", @@ -977,9 +965,9 @@ dependencies = [ [[package]] name = "signal-hook-registry" -version = "1.4.1" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" dependencies = [ "libc", ] @@ -1001,18 +989,18 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.13.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "socket2" -version = "0.5.5" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9" +checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" dependencies = [ "libc", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] @@ -1058,9 +1046,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.46" +version = "2.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89456b690ff72fddcecf231caedbe615c59480c93358a93dfae7fc29e3ebbf0e" +checksum = "c993ed8ccba56ae856363b1845da7266a7cb78e1d146c8a32d54b45a8b831fc9" dependencies = [ "proc-macro2", "quote", @@ -1075,24 +1063,24 @@ checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" [[package]] name = "sync_wrapper" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "384595c11a4e2969895cad5a8c4029115f5ab956a9e5ef4de79d11a426e5f20c" +checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" [[package]] name = "thiserror" -version = "1.0.58" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297" +checksum = "579e9083ca58dd9dcf91a9923bb9054071b9ebbd800b342194c9feb0ee89fc18" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.58" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" +checksum = "e2470041c06ec3ac1ab38d0356a6119054dedaea53e12fbefc0de730a1c08524" dependencies = [ "proc-macro2", "quote", @@ -1101,9 +1089,9 @@ dependencies = [ [[package]] name = "thread_local" -version = "1.1.7" +version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" +checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" dependencies = [ "cfg-if", "once_cell", @@ -1140,7 +1128,7 @@ dependencies = [ "signal-hook-registry", "socket2", "tokio-macros", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] @@ -1156,16 +1144,15 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.10" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" +checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" dependencies = [ "bytes", "futures-core", "futures-sink", "pin-project-lite", "tokio", - "tracing", ] [[package]] @@ -1191,9 +1178,9 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.22.9" +version = "0.22.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e40bb779c5187258fd7aad0eb68cb8706a0a81fa712fbea808ab43c4b8374c4" +checksum = "d3328d4f68a705b2a4498da1d580585d39a6510f98318a2cec3018a7ec61ddef" dependencies = [ "indexmap", "serde", @@ -1224,7 +1211,7 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" dependencies = [ - "bitflags 2.5.0", + "bitflags", "bytes", "futures-util", "http", @@ -1330,9 +1317,9 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" @@ -1342,9 +1329,9 @@ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unicode-normalization" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" +checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" dependencies = [ "tinyvec", ] @@ -1378,9 +1365,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ed0d4f68a3015cc185aff4db9506a015f4b96f95303897bfa23f846db54064e" +checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -1388,9 +1375,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b56f625e64f3a1084ded111c4d5f477df9f8c92df113852fa5a374dbda78826" +checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" dependencies = [ "bumpalo", "log", @@ -1403,9 +1390,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0162dbf37223cd2afce98f3d0785506dcb8d266223983e4b5b525859e6e182b2" +checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1413,9 +1400,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" +checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", @@ -1426,9 +1413,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f" +checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" [[package]] name = "winapi" @@ -1458,7 +1445,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.52.0", + "windows-targets 0.52.5", ] [[package]] @@ -1470,6 +1457,15 @@ dependencies = [ "windows-targets 0.48.5", ] +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.5", +] + [[package]] name = "windows-targets" version = "0.48.5" @@ -1487,17 +1483,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" +checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ - "windows_aarch64_gnullvm 0.52.0", - "windows_aarch64_msvc 0.52.0", - "windows_i686_gnu 0.52.0", - "windows_i686_msvc 0.52.0", - "windows_x86_64_gnu 0.52.0", - "windows_x86_64_gnullvm 0.52.0", - "windows_x86_64_msvc 0.52.0", + "windows_aarch64_gnullvm 0.52.5", + "windows_aarch64_msvc 0.52.5", + "windows_i686_gnu 0.52.5", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.5", + "windows_x86_64_gnu 0.52.5", + "windows_x86_64_gnullvm 0.52.5", + "windows_x86_64_msvc 0.52.5", ] [[package]] @@ -1508,9 +1505,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" +checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" [[package]] name = "windows_aarch64_msvc" @@ -1520,9 +1517,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" +checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" [[package]] name = "windows_i686_gnu" @@ -1532,9 +1529,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" +checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" [[package]] name = "windows_i686_msvc" @@ -1544,9 +1547,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" +checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" [[package]] name = "windows_x86_64_gnu" @@ -1556,9 +1559,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" +checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" [[package]] name = "windows_x86_64_gnullvm" @@ -1568,9 +1571,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" +checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" [[package]] name = "windows_x86_64_msvc" @@ -1580,33 +1583,33 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.0" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" +checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "winnow" -version = "0.6.5" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8" +checksum = "c3c52e9c97a68071b23e836c9380edae937f17b9c4667bd021973efc689f618d" dependencies = [ "memchr", ] [[package]] name = "zerocopy" -version = "0.7.32" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" +checksum = "ae87e3fcd617500e5d106f0380cf7b77f3c6092aae37191433159dda23cfb087" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.32" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" +checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" dependencies = [ "proc-macro2", "quote", From 1c298d4f462330aa46df8fde78f3551057a07b3e Mon Sep 17 00:00:00 2001 From: JieningYu Date: Sat, 18 May 2024 12:55:42 +0800 Subject: [PATCH 6/6] fatlto +fix --- Cargo.toml | 4 ++-- src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f4c5208..aac46b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ bincode = "1.3" toml = "0.8" thiserror = "1.0" fastrand = "2.1" -tower-http = { version = "0.5", features = ["fs"] } +tower-http = { version = "0.5", features = ["fs", "trace"] } siphasher = "1.0" [dev-dependencies] @@ -32,4 +32,4 @@ hyper = { version = "1.2", features = ["full"] } http-body-util = "0.1" [profile.release] -lto = "thin" +lto = "fat" diff --git a/src/main.rs b/src/main.rs index 8725166..73788ec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,7 @@ use dmds_tokio_fs::FsHandle; use paper::Paper; use question::Question; use serde::Deserialize; -use tower_http::services::ServeDir; +use tower_http::{services::ServeDir, trace::TraceLayer}; mod paper; mod question;