├── .gitignore ├── .vscode └── extensions.json ├── LICENSE ├── README.md ├── index.html ├── jsconfig.json ├── package-lock.json ├── package.json ├── public └── favicon.ico ├── src-tauri ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── build.rs ├── icons │ ├── 128x128.png │ ├── 128x128@2x.png │ ├── 32x32.png │ ├── Square107x107Logo.png │ ├── Square142x142Logo.png │ ├── Square150x150Logo.png │ ├── Square284x284Logo.png │ ├── Square30x30Logo.png │ ├── Square310x310Logo.png │ ├── Square44x44Logo.png │ ├── Square71x71Logo.png │ ├── Square89x89Logo.png │ ├── StoreLogo.png │ ├── icon.icns │ ├── icon.ico │ └── icon.png ├── src │ ├── main.rs │ ├── mod_downloader.rs │ ├── mod_downloader │ │ ├── core.rs │ │ ├── download.rs │ │ └── utils.rs │ ├── mod_manager.rs │ └── mod_manager │ │ ├── game.rs │ │ └── ofs.rs └── tauri.conf.json ├── src ├── App.vue ├── assets │ ├── logo.png │ └── supported-games.json ├── components │ ├── Download.vue │ ├── MainPanel.vue │ ├── Mod.vue │ ├── ModDownloader.vue │ ├── ModInstaller.vue │ ├── ModManager.vue │ └── SideBar.vue └── main.js └── vite.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": ["Vue.volar"] 3 | } 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tux Mod Manager 2 | TMM is a Linux native mod manager made with the Tauri toolkit. It can install, load, remove and deploy mods for both Linux native and WINE games. 3 | 4 | ## TMM Roadmap 5 | - [x] Move the current mod manager logic to rust 6 | - [x] Implement a OFS (Overlay File System, similar to VFS from MO2) 7 | - [x] Make remove button actually work. 8 | - [x] Add visual indication that a mod is installing 9 | - [x] Rewrite mod_manager.rs using the steamlocate lib instead of searching for steam directories and games intrusively 10 | - [x] Only create instance config files if a game is supported 11 | - [x] Read a game's config from an already existing config file 12 | - [x] Support storing game files in a user defined directory 13 | - [ ] Download manager for directly downloading mods from websites (e.g. Nexusmods) 14 | - [x] Front-End Design 15 | - [x] The actual file download 16 | - [x] Putting the file in the correct location 17 | - [x] Input download URL in Front-End 18 | - [ ] Implementing some kind of handshake with the Nexusmods API to allow seamless downlaods via the `Mod Manager Download` button on their website 19 | - [x] Displaying the current downloads in the Front-End 20 | - [ ] Improve Downloads Display: 21 | - [ ] Display ETA 22 | - [ ] Download Speed 23 | - [ ] Make `Install`, `Remove` and `Cancel` buttons actually work 24 | - [ ] Move `known_path_extensions.json` and `supported_games.json` into tauri's distribution directory, so they are bundled when building the application and aren't required to be in `%XDG_CONFIG_DIR%/tmm_stage/` 25 | - [ ] Implement a game launcher for native and proton games (for the OFS) 26 | - [ ] Implement a per-game load order 27 | - [ ] Implement mod profiles 28 | - [ ] Create cli commands, example to launch a game from steam with a specifc profile without having to use the mod manager 29 | 30 | ## Current indev issues 31 | - [ ] For games with path extensions, some mods may have the extension folder already in their archive, some may not. This means that sometimes a mod has the extension folder, sometimes it doesn't. In the end this would resoult in the Game not reading some mods, because they're essentially in the wrong folder (e.g. `data/data/`) 32 | - [ ] Download manager does not yet currently work entirely 33 | 34 | ## Dev environment 35 | If you want to help with the development of Tux Mod Manager you will need to setup a dev environment this is how you do that. 36 | (If you would rather just use the software without helping development please wait for a "stable" release) 37 | 38 | Install dev environment 39 | ``` 40 | git clone https://github.com/MathiewMay/tux-mod-manager 41 | cd ./tux-mod-manager 42 | npm install 43 | ``` 44 | 45 | Run dev environment 46 | ``` 47 | npm run tauri dev 48 | ``` 49 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Vite App 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "include": [ 3 | "./src/**/*" 4 | ] 5 | } -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tauri-mod-manager", 3 | "version": "0.0.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "tauri-mod-manager", 9 | "version": "0.0.0", 10 | "dependencies": { 11 | "@tauri-apps/api": "^1.0.0-rc.5", 12 | "vue": "^3.2.25" 13 | }, 14 | "devDependencies": { 15 | "@tauri-apps/cli": "^1.0.0-rc.10", 16 | "@vitejs/plugin-vue": "^2.3.3", 17 | "sass": "^1.52.2", 18 | "vite": "^2.9.9" 19 | } 20 | }, 21 | "node_modules/@babel/parser": { 22 | "version": "7.18.4", 23 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.4.tgz", 24 | "integrity": "sha512-FDge0dFazETFcxGw/EXzOkN8uJp0PC7Qbm+Pe9T+av2zlBpOgunFHkQPPn+eRuClU73JF+98D531UgayY89tow==", 25 | "bin": { 26 | "parser": "bin/babel-parser.js" 27 | }, 28 | "engines": { 29 | "node": ">=6.0.0" 30 | } 31 | }, 32 | "node_modules/@tauri-apps/api": { 33 | "version": "1.0.0-rc.6", 34 | "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-1.0.0-rc.6.tgz", 35 | "integrity": "sha512-/PbVs3/dUzid0/1XbML8tAkRSOmp+6Gv9ql02HGt3aIjNTvaL2902qEbiTX6xK++3oUoKJJ88t+V6IiNd1JUkw==", 36 | "dependencies": { 37 | "type-fest": "2.12.2" 38 | }, 39 | "engines": { 40 | "node": ">= 12.13.0", 41 | "npm": ">= 6.6.0", 42 | "yarn": ">= 1.19.1" 43 | }, 44 | "funding": { 45 | "type": "opencollective", 46 | "url": "https://opencollective.com/tauri" 47 | } 48 | }, 49 | "node_modules/@tauri-apps/cli": { 50 | "version": "1.0.0-rc.13", 51 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-1.0.0-rc.13.tgz", 52 | "integrity": "sha512-q7i45Mi1SMv5XllNoX09QS4Q/fYVFwD6piVYmqMSrKY/T5RwedQhytiVH60TxC2xk6o0akVHa7BdYiyJvXNR8A==", 53 | "dev": true, 54 | "bin": { 55 | "tauri": "tauri.js" 56 | }, 57 | "engines": { 58 | "node": ">= 10" 59 | }, 60 | "funding": { 61 | "type": "opencollective", 62 | "url": "https://opencollective.com/tauri" 63 | }, 64 | "optionalDependencies": { 65 | "@tauri-apps/cli-darwin-arm64": "1.0.0-rc.13", 66 | "@tauri-apps/cli-darwin-x64": "1.0.0-rc.13", 67 | "@tauri-apps/cli-linux-arm-gnueabihf": "1.0.0-rc.13", 68 | "@tauri-apps/cli-linux-arm64-gnu": "1.0.0-rc.13", 69 | "@tauri-apps/cli-linux-arm64-musl": "1.0.0-rc.13", 70 | "@tauri-apps/cli-linux-x64-gnu": "1.0.0-rc.13", 71 | "@tauri-apps/cli-linux-x64-musl": "1.0.0-rc.13", 72 | "@tauri-apps/cli-win32-ia32-msvc": "1.0.0-rc.13", 73 | "@tauri-apps/cli-win32-x64-msvc": "1.0.0-rc.13" 74 | } 75 | }, 76 | "node_modules/@tauri-apps/cli-darwin-arm64": { 77 | "version": "1.0.0-rc.13", 78 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-1.0.0-rc.13.tgz", 79 | "integrity": "sha512-/EqOz7ASHOU98H58Ibbkg12pLG/P5oyQz8OlueaMYryajkJdmi+bHTkJ05DfbS0owAaHkRJ6f+NmoW/AnyqUbg==", 80 | "cpu": [ 81 | "arm64" 82 | ], 83 | "dev": true, 84 | "optional": true, 85 | "os": [ 86 | "darwin" 87 | ], 88 | "engines": { 89 | "node": ">= 10" 90 | } 91 | }, 92 | "node_modules/@tauri-apps/cli-darwin-x64": { 93 | "version": "1.0.0-rc.13", 94 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-1.0.0-rc.13.tgz", 95 | "integrity": "sha512-bvZ0MBKFD1kc4gdVPXgwUA6tHNKj0EmlQK0Xolk6PYP9vZZeNTP1vejevW0bh2IqxC8DuqUArbG9USXwu+LFbQ==", 96 | "cpu": [ 97 | "x64" 98 | ], 99 | "dev": true, 100 | "optional": true, 101 | "os": [ 102 | "darwin" 103 | ], 104 | "engines": { 105 | "node": ">= 10" 106 | } 107 | }, 108 | "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": { 109 | "version": "1.0.0-rc.13", 110 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-1.0.0-rc.13.tgz", 111 | "integrity": "sha512-yODvfUkNvtYYdDTOJSDXMx9fpoEB66I2PTrYx1UKonKTEaLrQDcpw2exD/S9LPQzCYgyTuJ/kHRhG1uLdO/UUQ==", 112 | "cpu": [ 113 | "arm" 114 | ], 115 | "dev": true, 116 | "optional": true, 117 | "os": [ 118 | "linux" 119 | ], 120 | "engines": { 121 | "node": ">= 10" 122 | } 123 | }, 124 | "node_modules/@tauri-apps/cli-linux-arm64-gnu": { 125 | "version": "1.0.0-rc.13", 126 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-1.0.0-rc.13.tgz", 127 | "integrity": "sha512-kVDJHERD8CmTeMcd2VTnD/nVCHdnNAK8a6ur3l0KTR1iF8A1AtN/sPahMQjK4f7Ar00UDjIzTw74liqakOeiZg==", 128 | "cpu": [ 129 | "arm64" 130 | ], 131 | "dev": true, 132 | "optional": true, 133 | "os": [ 134 | "linux" 135 | ], 136 | "engines": { 137 | "node": ">= 10" 138 | } 139 | }, 140 | "node_modules/@tauri-apps/cli-linux-arm64-musl": { 141 | "version": "1.0.0-rc.13", 142 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.0.0-rc.13.tgz", 143 | "integrity": "sha512-PFHz+0xKCGMqqn2TmbOSPvTRS61xJQV7srwTZjs5sHBvK536mdBnF/6V6BPEvTn5LzfRnxMu2A5X5GFkYnrZ7w==", 144 | "cpu": [ 145 | "arm64" 146 | ], 147 | "dev": true, 148 | "optional": true, 149 | "os": [ 150 | "linux" 151 | ], 152 | "engines": { 153 | "node": ">= 10" 154 | } 155 | }, 156 | "node_modules/@tauri-apps/cli-linux-x64-gnu": { 157 | "version": "1.0.0-rc.13", 158 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-1.0.0-rc.13.tgz", 159 | "integrity": "sha512-EWhTOUNHaaMM7mxp/ue+Osnzn6/o9/7qVle3MSnNI9pGQzumc/dOtBs+sWS/NPXdVEiWKET2mFMK120KJlYcQQ==", 160 | "cpu": [ 161 | "x64" 162 | ], 163 | "dev": true, 164 | "optional": true, 165 | "os": [ 166 | "linux" 167 | ], 168 | "engines": { 169 | "node": ">= 10" 170 | } 171 | }, 172 | "node_modules/@tauri-apps/cli-linux-x64-musl": { 173 | "version": "1.0.0-rc.13", 174 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-1.0.0-rc.13.tgz", 175 | "integrity": "sha512-i8lsKw5iAGTAhqSQHeUCISLjhRXNrloHPoFCaSZtU0/GAPGbW/qST7u593h7cKWxRooeMwzo74ij4GhgmddClQ==", 176 | "cpu": [ 177 | "x64" 178 | ], 179 | "dev": true, 180 | "optional": true, 181 | "os": [ 182 | "linux" 183 | ], 184 | "engines": { 185 | "node": ">= 10" 186 | } 187 | }, 188 | "node_modules/@tauri-apps/cli-win32-ia32-msvc": { 189 | "version": "1.0.0-rc.13", 190 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-1.0.0-rc.13.tgz", 191 | "integrity": "sha512-rJxSqWIQXeeT2oLzSiQyqZPgDKSGH5sK7MUr8cOCBitqy3T0COlOMX4O7hhqF3cJ/5s0aX+MuNZBzF/D0QUcxA==", 192 | "cpu": [ 193 | "ia32" 194 | ], 195 | "dev": true, 196 | "optional": true, 197 | "os": [ 198 | "win32" 199 | ], 200 | "engines": { 201 | "node": ">= 10" 202 | } 203 | }, 204 | "node_modules/@tauri-apps/cli-win32-x64-msvc": { 205 | "version": "1.0.0-rc.13", 206 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-1.0.0-rc.13.tgz", 207 | "integrity": "sha512-ifOTrJVQoBAQUYX+EVnE4XJ/FCMHs4FQ8qxGNszqkSxrU24mmT7La6tzj77352q80KnxRa05xjjLL6GGhmzXRg==", 208 | "cpu": [ 209 | "x64" 210 | ], 211 | "dev": true, 212 | "optional": true, 213 | "os": [ 214 | "win32" 215 | ], 216 | "engines": { 217 | "node": ">= 10" 218 | } 219 | }, 220 | "node_modules/@vitejs/plugin-vue": { 221 | "version": "2.3.3", 222 | "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-2.3.3.tgz", 223 | "integrity": "sha512-SmQLDyhz+6lGJhPELsBdzXGc+AcaT8stgkbiTFGpXPe8Tl1tJaBw1A6pxDqDuRsVkD8uscrkx3hA7QDOoKYtyw==", 224 | "dev": true, 225 | "engines": { 226 | "node": ">=12.0.0" 227 | }, 228 | "peerDependencies": { 229 | "vite": "^2.5.10", 230 | "vue": "^3.2.25" 231 | } 232 | }, 233 | "node_modules/@vue/compiler-core": { 234 | "version": "3.2.37", 235 | "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.37.tgz", 236 | "integrity": "sha512-81KhEjo7YAOh0vQJoSmAD68wLfYqJvoiD4ulyedzF+OEk/bk6/hx3fTNVfuzugIIaTrOx4PGx6pAiBRe5e9Zmg==", 237 | "dependencies": { 238 | "@babel/parser": "^7.16.4", 239 | "@vue/shared": "3.2.37", 240 | "estree-walker": "^2.0.2", 241 | "source-map": "^0.6.1" 242 | } 243 | }, 244 | "node_modules/@vue/compiler-dom": { 245 | "version": "3.2.37", 246 | "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.2.37.tgz", 247 | "integrity": "sha512-yxJLH167fucHKxaqXpYk7x8z7mMEnXOw3G2q62FTkmsvNxu4FQSu5+3UMb+L7fjKa26DEzhrmCxAgFLLIzVfqQ==", 248 | "dependencies": { 249 | "@vue/compiler-core": "3.2.37", 250 | "@vue/shared": "3.2.37" 251 | } 252 | }, 253 | "node_modules/@vue/compiler-sfc": { 254 | "version": "3.2.37", 255 | "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.2.37.tgz", 256 | "integrity": "sha512-+7i/2+9LYlpqDv+KTtWhOZH+pa8/HnX/905MdVmAcI/mPQOBwkHHIzrsEsucyOIZQYMkXUiTkmZq5am/NyXKkg==", 257 | "dependencies": { 258 | "@babel/parser": "^7.16.4", 259 | "@vue/compiler-core": "3.2.37", 260 | "@vue/compiler-dom": "3.2.37", 261 | "@vue/compiler-ssr": "3.2.37", 262 | "@vue/reactivity-transform": "3.2.37", 263 | "@vue/shared": "3.2.37", 264 | "estree-walker": "^2.0.2", 265 | "magic-string": "^0.25.7", 266 | "postcss": "^8.1.10", 267 | "source-map": "^0.6.1" 268 | } 269 | }, 270 | "node_modules/@vue/compiler-ssr": { 271 | "version": "3.2.37", 272 | "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.2.37.tgz", 273 | "integrity": "sha512-7mQJD7HdXxQjktmsWp/J67lThEIcxLemz1Vb5I6rYJHR5vI+lON3nPGOH3ubmbvYGt8xEUaAr1j7/tIFWiEOqw==", 274 | "dependencies": { 275 | "@vue/compiler-dom": "3.2.37", 276 | "@vue/shared": "3.2.37" 277 | } 278 | }, 279 | "node_modules/@vue/reactivity": { 280 | "version": "3.2.37", 281 | "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.37.tgz", 282 | "integrity": "sha512-/7WRafBOshOc6m3F7plwzPeCu/RCVv9uMpOwa/5PiY1Zz+WLVRWiy0MYKwmg19KBdGtFWsmZ4cD+LOdVPcs52A==", 283 | "dependencies": { 284 | "@vue/shared": "3.2.37" 285 | } 286 | }, 287 | "node_modules/@vue/reactivity-transform": { 288 | "version": "3.2.37", 289 | "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.2.37.tgz", 290 | "integrity": "sha512-IWopkKEb+8qpu/1eMKVeXrK0NLw9HicGviJzhJDEyfxTR9e1WtpnnbYkJWurX6WwoFP0sz10xQg8yL8lgskAZg==", 291 | "dependencies": { 292 | "@babel/parser": "^7.16.4", 293 | "@vue/compiler-core": "3.2.37", 294 | "@vue/shared": "3.2.37", 295 | "estree-walker": "^2.0.2", 296 | "magic-string": "^0.25.7" 297 | } 298 | }, 299 | "node_modules/@vue/runtime-core": { 300 | "version": "3.2.37", 301 | "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.2.37.tgz", 302 | "integrity": "sha512-JPcd9kFyEdXLl/i0ClS7lwgcs0QpUAWj+SKX2ZC3ANKi1U4DOtiEr6cRqFXsPwY5u1L9fAjkinIdB8Rz3FoYNQ==", 303 | "dependencies": { 304 | "@vue/reactivity": "3.2.37", 305 | "@vue/shared": "3.2.37" 306 | } 307 | }, 308 | "node_modules/@vue/runtime-dom": { 309 | "version": "3.2.37", 310 | "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.2.37.tgz", 311 | "integrity": "sha512-HimKdh9BepShW6YozwRKAYjYQWg9mQn63RGEiSswMbW+ssIht1MILYlVGkAGGQbkhSh31PCdoUcfiu4apXJoPw==", 312 | "dependencies": { 313 | "@vue/runtime-core": "3.2.37", 314 | "@vue/shared": "3.2.37", 315 | "csstype": "^2.6.8" 316 | } 317 | }, 318 | "node_modules/@vue/server-renderer": { 319 | "version": "3.2.37", 320 | "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.2.37.tgz", 321 | "integrity": "sha512-kLITEJvaYgZQ2h47hIzPh2K3jG8c1zCVbp/o/bzQOyvzaKiCquKS7AaioPI28GNxIsE/zSx+EwWYsNxDCX95MA==", 322 | "dependencies": { 323 | "@vue/compiler-ssr": "3.2.37", 324 | "@vue/shared": "3.2.37" 325 | }, 326 | "peerDependencies": { 327 | "vue": "3.2.37" 328 | } 329 | }, 330 | "node_modules/@vue/shared": { 331 | "version": "3.2.37", 332 | "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.37.tgz", 333 | "integrity": "sha512-4rSJemR2NQIo9Klm1vabqWjD8rs/ZaJSzMxkMNeJS6lHiUjjUeYFbooN19NgFjztubEKh3WlZUeOLVdbbUWHsw==" 334 | }, 335 | "node_modules/anymatch": { 336 | "version": "3.1.2", 337 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 338 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 339 | "dev": true, 340 | "dependencies": { 341 | "normalize-path": "^3.0.0", 342 | "picomatch": "^2.0.4" 343 | }, 344 | "engines": { 345 | "node": ">= 8" 346 | } 347 | }, 348 | "node_modules/binary-extensions": { 349 | "version": "2.2.0", 350 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 351 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 352 | "dev": true, 353 | "engines": { 354 | "node": ">=8" 355 | } 356 | }, 357 | "node_modules/braces": { 358 | "version": "3.0.2", 359 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 360 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 361 | "dev": true, 362 | "dependencies": { 363 | "fill-range": "^7.0.1" 364 | }, 365 | "engines": { 366 | "node": ">=8" 367 | } 368 | }, 369 | "node_modules/chokidar": { 370 | "version": "3.5.3", 371 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 372 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 373 | "dev": true, 374 | "funding": [ 375 | { 376 | "type": "individual", 377 | "url": "https://paulmillr.com/funding/" 378 | } 379 | ], 380 | "dependencies": { 381 | "anymatch": "~3.1.2", 382 | "braces": "~3.0.2", 383 | "glob-parent": "~5.1.2", 384 | "is-binary-path": "~2.1.0", 385 | "is-glob": "~4.0.1", 386 | "normalize-path": "~3.0.0", 387 | "readdirp": "~3.6.0" 388 | }, 389 | "engines": { 390 | "node": ">= 8.10.0" 391 | }, 392 | "optionalDependencies": { 393 | "fsevents": "~2.3.2" 394 | } 395 | }, 396 | "node_modules/csstype": { 397 | "version": "2.6.20", 398 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.20.tgz", 399 | "integrity": "sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA==" 400 | }, 401 | "node_modules/esbuild": { 402 | "version": "0.14.43", 403 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.43.tgz", 404 | "integrity": "sha512-Uf94+kQmy/5jsFwKWiQB4hfo/RkM9Dh7b79p8yqd1tshULdr25G2szLz631NoH3s2ujnKEKVD16RmOxvCNKRFA==", 405 | "dev": true, 406 | "hasInstallScript": true, 407 | "bin": { 408 | "esbuild": "bin/esbuild" 409 | }, 410 | "engines": { 411 | "node": ">=12" 412 | }, 413 | "optionalDependencies": { 414 | "esbuild-android-64": "0.14.43", 415 | "esbuild-android-arm64": "0.14.43", 416 | "esbuild-darwin-64": "0.14.43", 417 | "esbuild-darwin-arm64": "0.14.43", 418 | "esbuild-freebsd-64": "0.14.43", 419 | "esbuild-freebsd-arm64": "0.14.43", 420 | "esbuild-linux-32": "0.14.43", 421 | "esbuild-linux-64": "0.14.43", 422 | "esbuild-linux-arm": "0.14.43", 423 | "esbuild-linux-arm64": "0.14.43", 424 | "esbuild-linux-mips64le": "0.14.43", 425 | "esbuild-linux-ppc64le": "0.14.43", 426 | "esbuild-linux-riscv64": "0.14.43", 427 | "esbuild-linux-s390x": "0.14.43", 428 | "esbuild-netbsd-64": "0.14.43", 429 | "esbuild-openbsd-64": "0.14.43", 430 | "esbuild-sunos-64": "0.14.43", 431 | "esbuild-windows-32": "0.14.43", 432 | "esbuild-windows-64": "0.14.43", 433 | "esbuild-windows-arm64": "0.14.43" 434 | } 435 | }, 436 | "node_modules/esbuild-android-64": { 437 | "version": "0.14.43", 438 | "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.43.tgz", 439 | "integrity": "sha512-kqFXAS72K6cNrB6RiM7YJ5lNvmWRDSlpi7ZuRZ1hu1S3w0zlwcoCxWAyM23LQUyZSs1PbjHgdbbfYAN8IGh6xg==", 440 | "cpu": [ 441 | "x64" 442 | ], 443 | "dev": true, 444 | "optional": true, 445 | "os": [ 446 | "android" 447 | ], 448 | "engines": { 449 | "node": ">=12" 450 | } 451 | }, 452 | "node_modules/esbuild-android-arm64": { 453 | "version": "0.14.43", 454 | "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.43.tgz", 455 | "integrity": "sha512-bKS2BBFh+7XZY9rpjiHGRNA7LvWYbZWP87pLehggTG7tTaCDvj8qQGOU/OZSjCSKDYbgY7Q+oDw8RlYQ2Jt2BA==", 456 | "cpu": [ 457 | "arm64" 458 | ], 459 | "dev": true, 460 | "optional": true, 461 | "os": [ 462 | "android" 463 | ], 464 | "engines": { 465 | "node": ">=12" 466 | } 467 | }, 468 | "node_modules/esbuild-darwin-64": { 469 | "version": "0.14.43", 470 | "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.43.tgz", 471 | "integrity": "sha512-/3PSilx011ttoieRGkSZ0XV8zjBf2C9enV4ScMMbCT4dpx0mFhMOpFnCHkOK0pWGB8LklykFyHrWk2z6DENVUg==", 472 | "cpu": [ 473 | "x64" 474 | ], 475 | "dev": true, 476 | "optional": true, 477 | "os": [ 478 | "darwin" 479 | ], 480 | "engines": { 481 | "node": ">=12" 482 | } 483 | }, 484 | "node_modules/esbuild-darwin-arm64": { 485 | "version": "0.14.43", 486 | "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.43.tgz", 487 | "integrity": "sha512-1HyFUKs8DMCBOvw1Qxpr5Vv/ThNcVIFb5xgXWK3pyT40WPvgYIiRTwJCvNs4l8i5qWF8/CK5bQxJVDjQvtv0Yw==", 488 | "cpu": [ 489 | "arm64" 490 | ], 491 | "dev": true, 492 | "optional": true, 493 | "os": [ 494 | "darwin" 495 | ], 496 | "engines": { 497 | "node": ">=12" 498 | } 499 | }, 500 | "node_modules/esbuild-freebsd-64": { 501 | "version": "0.14.43", 502 | "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.43.tgz", 503 | "integrity": "sha512-FNWc05TPHYgaXjbPZO5/rJKSBslfG6BeMSs8GhwnqAKP56eEhvmzwnIz1QcC9cRVyO+IKqWNfmHFkCa1WJTULA==", 504 | "cpu": [ 505 | "x64" 506 | ], 507 | "dev": true, 508 | "optional": true, 509 | "os": [ 510 | "freebsd" 511 | ], 512 | "engines": { 513 | "node": ">=12" 514 | } 515 | }, 516 | "node_modules/esbuild-freebsd-arm64": { 517 | "version": "0.14.43", 518 | "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.43.tgz", 519 | "integrity": "sha512-amrYopclz3VohqisOPR6hA3GOWA3LZC1WDLnp21RhNmoERmJ/vLnOpnrG2P/Zao+/erKTCUqmrCIPVtj58DRoA==", 520 | "cpu": [ 521 | "arm64" 522 | ], 523 | "dev": true, 524 | "optional": true, 525 | "os": [ 526 | "freebsd" 527 | ], 528 | "engines": { 529 | "node": ">=12" 530 | } 531 | }, 532 | "node_modules/esbuild-linux-32": { 533 | "version": "0.14.43", 534 | "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.43.tgz", 535 | "integrity": "sha512-KoxoEra+9O3AKVvgDFvDkiuddCds6q71owSQEYwjtqRV7RwbPzKxJa6+uyzUulHcyGVq0g15K0oKG5CFBcvYDw==", 536 | "cpu": [ 537 | "ia32" 538 | ], 539 | "dev": true, 540 | "optional": true, 541 | "os": [ 542 | "linux" 543 | ], 544 | "engines": { 545 | "node": ">=12" 546 | } 547 | }, 548 | "node_modules/esbuild-linux-64": { 549 | "version": "0.14.43", 550 | "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.43.tgz", 551 | "integrity": "sha512-EwINwGMyiJMgBby5/SbMqKcUhS5AYAZ2CpEBzSowsJPNBJEdhkCTtEjk757TN/wxgbu3QklqDM6KghY660QCUw==", 552 | "cpu": [ 553 | "x64" 554 | ], 555 | "dev": true, 556 | "optional": true, 557 | "os": [ 558 | "linux" 559 | ], 560 | "engines": { 561 | "node": ">=12" 562 | } 563 | }, 564 | "node_modules/esbuild-linux-arm": { 565 | "version": "0.14.43", 566 | "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.43.tgz", 567 | "integrity": "sha512-e6YzQUoDxxtyamuF12eVzzRC7bbEFSZohJ6igQB9tBqnNmIQY3fI6Cns3z2wxtbZ3f2o6idkD2fQnlvs2902Dg==", 568 | "cpu": [ 569 | "arm" 570 | ], 571 | "dev": true, 572 | "optional": true, 573 | "os": [ 574 | "linux" 575 | ], 576 | "engines": { 577 | "node": ">=12" 578 | } 579 | }, 580 | "node_modules/esbuild-linux-arm64": { 581 | "version": "0.14.43", 582 | "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.43.tgz", 583 | "integrity": "sha512-UlSpjMWllAc70zYbHxWuDS3FJytyuR/gHJYBr8BICcTNb/TSOYVBg6U7b3jZ3mILTrgzwJUHwhEwK18FZDouUQ==", 584 | "cpu": [ 585 | "arm64" 586 | ], 587 | "dev": true, 588 | "optional": true, 589 | "os": [ 590 | "linux" 591 | ], 592 | "engines": { 593 | "node": ">=12" 594 | } 595 | }, 596 | "node_modules/esbuild-linux-mips64le": { 597 | "version": "0.14.43", 598 | "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.43.tgz", 599 | "integrity": "sha512-f+v8cInPEL1/SDP//CfSYzcDNgE4CY3xgDV81DWm3KAPWzhvxARrKxB1Pstf5mB56yAslJDxu7ryBUPX207EZA==", 600 | "cpu": [ 601 | "mips64el" 602 | ], 603 | "dev": true, 604 | "optional": true, 605 | "os": [ 606 | "linux" 607 | ], 608 | "engines": { 609 | "node": ">=12" 610 | } 611 | }, 612 | "node_modules/esbuild-linux-ppc64le": { 613 | "version": "0.14.43", 614 | "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.43.tgz", 615 | "integrity": "sha512-5wZYMDGAL/K2pqkdIsW+I4IR41kyfHr/QshJcNpUfK3RjB3VQcPWOaZmc+74rm4ZjVirYrtz+jWw0SgxtxRanA==", 616 | "cpu": [ 617 | "ppc64" 618 | ], 619 | "dev": true, 620 | "optional": true, 621 | "os": [ 622 | "linux" 623 | ], 624 | "engines": { 625 | "node": ">=12" 626 | } 627 | }, 628 | "node_modules/esbuild-linux-riscv64": { 629 | "version": "0.14.43", 630 | "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.43.tgz", 631 | "integrity": "sha512-lYcAOUxp85hC7lSjycJUVSmj4/9oEfSyXjb/ua9bNl8afonaduuqtw7hvKMoKuYnVwOCDw4RSfKpcnIRDWq+Bw==", 632 | "cpu": [ 633 | "riscv64" 634 | ], 635 | "dev": true, 636 | "optional": true, 637 | "os": [ 638 | "linux" 639 | ], 640 | "engines": { 641 | "node": ">=12" 642 | } 643 | }, 644 | "node_modules/esbuild-linux-s390x": { 645 | "version": "0.14.43", 646 | "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.43.tgz", 647 | "integrity": "sha512-27e43ZhHvhFE4nM7HqtUbMRu37I/4eNSUbb8FGZWszV+uLzMIsHDwLoBiJmw7G9N+hrehNPeQ4F5Ujad0DrUKQ==", 648 | "cpu": [ 649 | "s390x" 650 | ], 651 | "dev": true, 652 | "optional": true, 653 | "os": [ 654 | "linux" 655 | ], 656 | "engines": { 657 | "node": ">=12" 658 | } 659 | }, 660 | "node_modules/esbuild-netbsd-64": { 661 | "version": "0.14.43", 662 | "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.43.tgz", 663 | "integrity": "sha512-2mH4QF6hHBn5zzAfxEI/2eBC0mspVsZ6UVo821LpAJKMvLJPBk3XJO5xwg7paDqSqpl7p6IRrAenW999AEfJhQ==", 664 | "cpu": [ 665 | "x64" 666 | ], 667 | "dev": true, 668 | "optional": true, 669 | "os": [ 670 | "netbsd" 671 | ], 672 | "engines": { 673 | "node": ">=12" 674 | } 675 | }, 676 | "node_modules/esbuild-openbsd-64": { 677 | "version": "0.14.43", 678 | "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.43.tgz", 679 | "integrity": "sha512-ZhQpiZjvqCqO8jKdGp9+8k9E/EHSA+zIWOg+grwZasI9RoblqJ1QiZqqi7jfd6ZrrG1UFBNGe4m0NFxCFbMVbg==", 680 | "cpu": [ 681 | "x64" 682 | ], 683 | "dev": true, 684 | "optional": true, 685 | "os": [ 686 | "openbsd" 687 | ], 688 | "engines": { 689 | "node": ">=12" 690 | } 691 | }, 692 | "node_modules/esbuild-sunos-64": { 693 | "version": "0.14.43", 694 | "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.43.tgz", 695 | "integrity": "sha512-DgxSi9DaHReL9gYuul2rrQCAapgnCJkh3LSHPKsY26zytYppG0HgkgVF80zjIlvEsUbGBP/GHQzBtrezj/Zq1Q==", 696 | "cpu": [ 697 | "x64" 698 | ], 699 | "dev": true, 700 | "optional": true, 701 | "os": [ 702 | "sunos" 703 | ], 704 | "engines": { 705 | "node": ">=12" 706 | } 707 | }, 708 | "node_modules/esbuild-windows-32": { 709 | "version": "0.14.43", 710 | "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.43.tgz", 711 | "integrity": "sha512-Ih3+2O5oExiqm0mY6YYE5dR0o8+AspccQ3vIAtRodwFvhuyGLjb0Hbmzun/F3Lw19nuhPMu3sW2fqIJ5xBxByw==", 712 | "cpu": [ 713 | "ia32" 714 | ], 715 | "dev": true, 716 | "optional": true, 717 | "os": [ 718 | "win32" 719 | ], 720 | "engines": { 721 | "node": ">=12" 722 | } 723 | }, 724 | "node_modules/esbuild-windows-64": { 725 | "version": "0.14.43", 726 | "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.43.tgz", 727 | "integrity": "sha512-8NsuNfI8xwFuJbrCuI+aBqNTYkrWErejFO5aYM+yHqyHuL8mmepLS9EPzAzk8rvfaJrhN0+RvKWAcymViHOKEw==", 728 | "cpu": [ 729 | "x64" 730 | ], 731 | "dev": true, 732 | "optional": true, 733 | "os": [ 734 | "win32" 735 | ], 736 | "engines": { 737 | "node": ">=12" 738 | } 739 | }, 740 | "node_modules/esbuild-windows-arm64": { 741 | "version": "0.14.43", 742 | "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.43.tgz", 743 | "integrity": "sha512-7ZlD7bo++kVRblJEoG+cepljkfP8bfuTPz5fIXzptwnPaFwGS6ahvfoYzY7WCf5v/1nX2X02HDraVItTgbHnKw==", 744 | "cpu": [ 745 | "arm64" 746 | ], 747 | "dev": true, 748 | "optional": true, 749 | "os": [ 750 | "win32" 751 | ], 752 | "engines": { 753 | "node": ">=12" 754 | } 755 | }, 756 | "node_modules/estree-walker": { 757 | "version": "2.0.2", 758 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", 759 | "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" 760 | }, 761 | "node_modules/fill-range": { 762 | "version": "7.0.1", 763 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 764 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 765 | "dev": true, 766 | "dependencies": { 767 | "to-regex-range": "^5.0.1" 768 | }, 769 | "engines": { 770 | "node": ">=8" 771 | } 772 | }, 773 | "node_modules/fsevents": { 774 | "version": "2.3.2", 775 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 776 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 777 | "dev": true, 778 | "hasInstallScript": true, 779 | "optional": true, 780 | "os": [ 781 | "darwin" 782 | ], 783 | "engines": { 784 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 785 | } 786 | }, 787 | "node_modules/function-bind": { 788 | "version": "1.1.1", 789 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 790 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 791 | "dev": true 792 | }, 793 | "node_modules/glob-parent": { 794 | "version": "5.1.2", 795 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 796 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 797 | "dev": true, 798 | "dependencies": { 799 | "is-glob": "^4.0.1" 800 | }, 801 | "engines": { 802 | "node": ">= 6" 803 | } 804 | }, 805 | "node_modules/has": { 806 | "version": "1.0.3", 807 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 808 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 809 | "dev": true, 810 | "dependencies": { 811 | "function-bind": "^1.1.1" 812 | }, 813 | "engines": { 814 | "node": ">= 0.4.0" 815 | } 816 | }, 817 | "node_modules/immutable": { 818 | "version": "4.1.0", 819 | "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.1.0.tgz", 820 | "integrity": "sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==", 821 | "dev": true 822 | }, 823 | "node_modules/is-binary-path": { 824 | "version": "2.1.0", 825 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 826 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 827 | "dev": true, 828 | "dependencies": { 829 | "binary-extensions": "^2.0.0" 830 | }, 831 | "engines": { 832 | "node": ">=8" 833 | } 834 | }, 835 | "node_modules/is-core-module": { 836 | "version": "2.9.0", 837 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", 838 | "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", 839 | "dev": true, 840 | "dependencies": { 841 | "has": "^1.0.3" 842 | }, 843 | "funding": { 844 | "url": "https://github.com/sponsors/ljharb" 845 | } 846 | }, 847 | "node_modules/is-extglob": { 848 | "version": "2.1.1", 849 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 850 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 851 | "dev": true, 852 | "engines": { 853 | "node": ">=0.10.0" 854 | } 855 | }, 856 | "node_modules/is-glob": { 857 | "version": "4.0.3", 858 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 859 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 860 | "dev": true, 861 | "dependencies": { 862 | "is-extglob": "^2.1.1" 863 | }, 864 | "engines": { 865 | "node": ">=0.10.0" 866 | } 867 | }, 868 | "node_modules/is-number": { 869 | "version": "7.0.0", 870 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 871 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 872 | "dev": true, 873 | "engines": { 874 | "node": ">=0.12.0" 875 | } 876 | }, 877 | "node_modules/magic-string": { 878 | "version": "0.25.9", 879 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", 880 | "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", 881 | "dependencies": { 882 | "sourcemap-codec": "^1.4.8" 883 | } 884 | }, 885 | "node_modules/nanoid": { 886 | "version": "3.3.4", 887 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", 888 | "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", 889 | "bin": { 890 | "nanoid": "bin/nanoid.cjs" 891 | }, 892 | "engines": { 893 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 894 | } 895 | }, 896 | "node_modules/normalize-path": { 897 | "version": "3.0.0", 898 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 899 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 900 | "dev": true, 901 | "engines": { 902 | "node": ">=0.10.0" 903 | } 904 | }, 905 | "node_modules/path-parse": { 906 | "version": "1.0.7", 907 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 908 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 909 | "dev": true 910 | }, 911 | "node_modules/picocolors": { 912 | "version": "1.0.0", 913 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 914 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" 915 | }, 916 | "node_modules/picomatch": { 917 | "version": "2.3.1", 918 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 919 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 920 | "dev": true, 921 | "engines": { 922 | "node": ">=8.6" 923 | }, 924 | "funding": { 925 | "url": "https://github.com/sponsors/jonschlinkert" 926 | } 927 | }, 928 | "node_modules/postcss": { 929 | "version": "8.4.14", 930 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz", 931 | "integrity": "sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==", 932 | "funding": [ 933 | { 934 | "type": "opencollective", 935 | "url": "https://opencollective.com/postcss/" 936 | }, 937 | { 938 | "type": "tidelift", 939 | "url": "https://tidelift.com/funding/github/npm/postcss" 940 | } 941 | ], 942 | "dependencies": { 943 | "nanoid": "^3.3.4", 944 | "picocolors": "^1.0.0", 945 | "source-map-js": "^1.0.2" 946 | }, 947 | "engines": { 948 | "node": "^10 || ^12 || >=14" 949 | } 950 | }, 951 | "node_modules/readdirp": { 952 | "version": "3.6.0", 953 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 954 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 955 | "dev": true, 956 | "dependencies": { 957 | "picomatch": "^2.2.1" 958 | }, 959 | "engines": { 960 | "node": ">=8.10.0" 961 | } 962 | }, 963 | "node_modules/resolve": { 964 | "version": "1.22.0", 965 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", 966 | "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", 967 | "dev": true, 968 | "dependencies": { 969 | "is-core-module": "^2.8.1", 970 | "path-parse": "^1.0.7", 971 | "supports-preserve-symlinks-flag": "^1.0.0" 972 | }, 973 | "bin": { 974 | "resolve": "bin/resolve" 975 | }, 976 | "funding": { 977 | "url": "https://github.com/sponsors/ljharb" 978 | } 979 | }, 980 | "node_modules/rollup": { 981 | "version": "2.75.6", 982 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.75.6.tgz", 983 | "integrity": "sha512-OEf0TgpC9vU6WGROJIk1JA3LR5vk/yvqlzxqdrE2CzzXnqKXNzbAwlWUXis8RS3ZPe7LAq+YUxsRa0l3r27MLA==", 984 | "dev": true, 985 | "bin": { 986 | "rollup": "dist/bin/rollup" 987 | }, 988 | "engines": { 989 | "node": ">=10.0.0" 990 | }, 991 | "optionalDependencies": { 992 | "fsevents": "~2.3.2" 993 | } 994 | }, 995 | "node_modules/sass": { 996 | "version": "1.52.2", 997 | "resolved": "https://registry.npmjs.org/sass/-/sass-1.52.2.tgz", 998 | "integrity": "sha512-mfHB2VSeFS7sZlPv9YohB9GB7yWIgQNTGniQwfQ04EoQN0wsQEv7SwpCwy/x48Af+Z3vDeFXz+iuXM3HK/phZQ==", 999 | "dev": true, 1000 | "dependencies": { 1001 | "chokidar": ">=3.0.0 <4.0.0", 1002 | "immutable": "^4.0.0", 1003 | "source-map-js": ">=0.6.2 <2.0.0" 1004 | }, 1005 | "bin": { 1006 | "sass": "sass.js" 1007 | }, 1008 | "engines": { 1009 | "node": ">=12.0.0" 1010 | } 1011 | }, 1012 | "node_modules/source-map": { 1013 | "version": "0.6.1", 1014 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1015 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1016 | "engines": { 1017 | "node": ">=0.10.0" 1018 | } 1019 | }, 1020 | "node_modules/source-map-js": { 1021 | "version": "1.0.2", 1022 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 1023 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 1024 | "engines": { 1025 | "node": ">=0.10.0" 1026 | } 1027 | }, 1028 | "node_modules/sourcemap-codec": { 1029 | "version": "1.4.8", 1030 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", 1031 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" 1032 | }, 1033 | "node_modules/supports-preserve-symlinks-flag": { 1034 | "version": "1.0.0", 1035 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1036 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1037 | "dev": true, 1038 | "engines": { 1039 | "node": ">= 0.4" 1040 | }, 1041 | "funding": { 1042 | "url": "https://github.com/sponsors/ljharb" 1043 | } 1044 | }, 1045 | "node_modules/to-regex-range": { 1046 | "version": "5.0.1", 1047 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1048 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1049 | "dev": true, 1050 | "dependencies": { 1051 | "is-number": "^7.0.0" 1052 | }, 1053 | "engines": { 1054 | "node": ">=8.0" 1055 | } 1056 | }, 1057 | "node_modules/type-fest": { 1058 | "version": "2.12.2", 1059 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.2.tgz", 1060 | "integrity": "sha512-qt6ylCGpLjZ7AaODxbpyBZSs9fCI9SkL3Z9q2oxMBQhs/uyY+VD8jHA8ULCGmWQJlBgqvO3EJeAngOHD8zQCrQ==", 1061 | "engines": { 1062 | "node": ">=12.20" 1063 | }, 1064 | "funding": { 1065 | "url": "https://github.com/sponsors/sindresorhus" 1066 | } 1067 | }, 1068 | "node_modules/vite": { 1069 | "version": "2.9.10", 1070 | "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.10.tgz", 1071 | "integrity": "sha512-TwZRuSMYjpTurLqXspct+HZE7ONiW9d+wSWgvADGxhDPPyoIcNywY+RX4ng+QpK30DCa1l/oZgi2PLZDibhzbQ==", 1072 | "dev": true, 1073 | "dependencies": { 1074 | "esbuild": "^0.14.27", 1075 | "postcss": "^8.4.13", 1076 | "resolve": "^1.22.0", 1077 | "rollup": "^2.59.0" 1078 | }, 1079 | "bin": { 1080 | "vite": "bin/vite.js" 1081 | }, 1082 | "engines": { 1083 | "node": ">=12.2.0" 1084 | }, 1085 | "optionalDependencies": { 1086 | "fsevents": "~2.3.2" 1087 | }, 1088 | "peerDependencies": { 1089 | "less": "*", 1090 | "sass": "*", 1091 | "stylus": "*" 1092 | }, 1093 | "peerDependenciesMeta": { 1094 | "less": { 1095 | "optional": true 1096 | }, 1097 | "sass": { 1098 | "optional": true 1099 | }, 1100 | "stylus": { 1101 | "optional": true 1102 | } 1103 | } 1104 | }, 1105 | "node_modules/vue": { 1106 | "version": "3.2.37", 1107 | "resolved": "https://registry.npmjs.org/vue/-/vue-3.2.37.tgz", 1108 | "integrity": "sha512-bOKEZxrm8Eh+fveCqS1/NkG/n6aMidsI6hahas7pa0w/l7jkbssJVsRhVDs07IdDq7h9KHswZOgItnwJAgtVtQ==", 1109 | "dependencies": { 1110 | "@vue/compiler-dom": "3.2.37", 1111 | "@vue/compiler-sfc": "3.2.37", 1112 | "@vue/runtime-dom": "3.2.37", 1113 | "@vue/server-renderer": "3.2.37", 1114 | "@vue/shared": "3.2.37" 1115 | } 1116 | } 1117 | }, 1118 | "dependencies": { 1119 | "@babel/parser": { 1120 | "version": "7.18.4", 1121 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.4.tgz", 1122 | "integrity": "sha512-FDge0dFazETFcxGw/EXzOkN8uJp0PC7Qbm+Pe9T+av2zlBpOgunFHkQPPn+eRuClU73JF+98D531UgayY89tow==" 1123 | }, 1124 | "@tauri-apps/api": { 1125 | "version": "1.0.0-rc.6", 1126 | "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-1.0.0-rc.6.tgz", 1127 | "integrity": "sha512-/PbVs3/dUzid0/1XbML8tAkRSOmp+6Gv9ql02HGt3aIjNTvaL2902qEbiTX6xK++3oUoKJJ88t+V6IiNd1JUkw==", 1128 | "requires": { 1129 | "type-fest": "2.12.2" 1130 | } 1131 | }, 1132 | "@tauri-apps/cli": { 1133 | "version": "1.0.0-rc.13", 1134 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-1.0.0-rc.13.tgz", 1135 | "integrity": "sha512-q7i45Mi1SMv5XllNoX09QS4Q/fYVFwD6piVYmqMSrKY/T5RwedQhytiVH60TxC2xk6o0akVHa7BdYiyJvXNR8A==", 1136 | "dev": true, 1137 | "requires": { 1138 | "@tauri-apps/cli-darwin-arm64": "1.0.0-rc.13", 1139 | "@tauri-apps/cli-darwin-x64": "1.0.0-rc.13", 1140 | "@tauri-apps/cli-linux-arm-gnueabihf": "1.0.0-rc.13", 1141 | "@tauri-apps/cli-linux-arm64-gnu": "1.0.0-rc.13", 1142 | "@tauri-apps/cli-linux-arm64-musl": "1.0.0-rc.13", 1143 | "@tauri-apps/cli-linux-x64-gnu": "1.0.0-rc.13", 1144 | "@tauri-apps/cli-linux-x64-musl": "1.0.0-rc.13", 1145 | "@tauri-apps/cli-win32-ia32-msvc": "1.0.0-rc.13", 1146 | "@tauri-apps/cli-win32-x64-msvc": "1.0.0-rc.13" 1147 | } 1148 | }, 1149 | "@tauri-apps/cli-darwin-arm64": { 1150 | "version": "1.0.0-rc.13", 1151 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-1.0.0-rc.13.tgz", 1152 | "integrity": "sha512-/EqOz7ASHOU98H58Ibbkg12pLG/P5oyQz8OlueaMYryajkJdmi+bHTkJ05DfbS0owAaHkRJ6f+NmoW/AnyqUbg==", 1153 | "dev": true, 1154 | "optional": true 1155 | }, 1156 | "@tauri-apps/cli-darwin-x64": { 1157 | "version": "1.0.0-rc.13", 1158 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-1.0.0-rc.13.tgz", 1159 | "integrity": "sha512-bvZ0MBKFD1kc4gdVPXgwUA6tHNKj0EmlQK0Xolk6PYP9vZZeNTP1vejevW0bh2IqxC8DuqUArbG9USXwu+LFbQ==", 1160 | "dev": true, 1161 | "optional": true 1162 | }, 1163 | "@tauri-apps/cli-linux-arm-gnueabihf": { 1164 | "version": "1.0.0-rc.13", 1165 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-1.0.0-rc.13.tgz", 1166 | "integrity": "sha512-yODvfUkNvtYYdDTOJSDXMx9fpoEB66I2PTrYx1UKonKTEaLrQDcpw2exD/S9LPQzCYgyTuJ/kHRhG1uLdO/UUQ==", 1167 | "dev": true, 1168 | "optional": true 1169 | }, 1170 | "@tauri-apps/cli-linux-arm64-gnu": { 1171 | "version": "1.0.0-rc.13", 1172 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-1.0.0-rc.13.tgz", 1173 | "integrity": "sha512-kVDJHERD8CmTeMcd2VTnD/nVCHdnNAK8a6ur3l0KTR1iF8A1AtN/sPahMQjK4f7Ar00UDjIzTw74liqakOeiZg==", 1174 | "dev": true, 1175 | "optional": true 1176 | }, 1177 | "@tauri-apps/cli-linux-arm64-musl": { 1178 | "version": "1.0.0-rc.13", 1179 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.0.0-rc.13.tgz", 1180 | "integrity": "sha512-PFHz+0xKCGMqqn2TmbOSPvTRS61xJQV7srwTZjs5sHBvK536mdBnF/6V6BPEvTn5LzfRnxMu2A5X5GFkYnrZ7w==", 1181 | "dev": true, 1182 | "optional": true 1183 | }, 1184 | "@tauri-apps/cli-linux-x64-gnu": { 1185 | "version": "1.0.0-rc.13", 1186 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-1.0.0-rc.13.tgz", 1187 | "integrity": "sha512-EWhTOUNHaaMM7mxp/ue+Osnzn6/o9/7qVle3MSnNI9pGQzumc/dOtBs+sWS/NPXdVEiWKET2mFMK120KJlYcQQ==", 1188 | "dev": true, 1189 | "optional": true 1190 | }, 1191 | "@tauri-apps/cli-linux-x64-musl": { 1192 | "version": "1.0.0-rc.13", 1193 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-1.0.0-rc.13.tgz", 1194 | "integrity": "sha512-i8lsKw5iAGTAhqSQHeUCISLjhRXNrloHPoFCaSZtU0/GAPGbW/qST7u593h7cKWxRooeMwzo74ij4GhgmddClQ==", 1195 | "dev": true, 1196 | "optional": true 1197 | }, 1198 | "@tauri-apps/cli-win32-ia32-msvc": { 1199 | "version": "1.0.0-rc.13", 1200 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-1.0.0-rc.13.tgz", 1201 | "integrity": "sha512-rJxSqWIQXeeT2oLzSiQyqZPgDKSGH5sK7MUr8cOCBitqy3T0COlOMX4O7hhqF3cJ/5s0aX+MuNZBzF/D0QUcxA==", 1202 | "dev": true, 1203 | "optional": true 1204 | }, 1205 | "@tauri-apps/cli-win32-x64-msvc": { 1206 | "version": "1.0.0-rc.13", 1207 | "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-1.0.0-rc.13.tgz", 1208 | "integrity": "sha512-ifOTrJVQoBAQUYX+EVnE4XJ/FCMHs4FQ8qxGNszqkSxrU24mmT7La6tzj77352q80KnxRa05xjjLL6GGhmzXRg==", 1209 | "dev": true, 1210 | "optional": true 1211 | }, 1212 | "@vitejs/plugin-vue": { 1213 | "version": "2.3.3", 1214 | "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-2.3.3.tgz", 1215 | "integrity": "sha512-SmQLDyhz+6lGJhPELsBdzXGc+AcaT8stgkbiTFGpXPe8Tl1tJaBw1A6pxDqDuRsVkD8uscrkx3hA7QDOoKYtyw==", 1216 | "dev": true, 1217 | "requires": {} 1218 | }, 1219 | "@vue/compiler-core": { 1220 | "version": "3.2.37", 1221 | "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.37.tgz", 1222 | "integrity": "sha512-81KhEjo7YAOh0vQJoSmAD68wLfYqJvoiD4ulyedzF+OEk/bk6/hx3fTNVfuzugIIaTrOx4PGx6pAiBRe5e9Zmg==", 1223 | "requires": { 1224 | "@babel/parser": "^7.16.4", 1225 | "@vue/shared": "3.2.37", 1226 | "estree-walker": "^2.0.2", 1227 | "source-map": "^0.6.1" 1228 | } 1229 | }, 1230 | "@vue/compiler-dom": { 1231 | "version": "3.2.37", 1232 | "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.2.37.tgz", 1233 | "integrity": "sha512-yxJLH167fucHKxaqXpYk7x8z7mMEnXOw3G2q62FTkmsvNxu4FQSu5+3UMb+L7fjKa26DEzhrmCxAgFLLIzVfqQ==", 1234 | "requires": { 1235 | "@vue/compiler-core": "3.2.37", 1236 | "@vue/shared": "3.2.37" 1237 | } 1238 | }, 1239 | "@vue/compiler-sfc": { 1240 | "version": "3.2.37", 1241 | "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.2.37.tgz", 1242 | "integrity": "sha512-+7i/2+9LYlpqDv+KTtWhOZH+pa8/HnX/905MdVmAcI/mPQOBwkHHIzrsEsucyOIZQYMkXUiTkmZq5am/NyXKkg==", 1243 | "requires": { 1244 | "@babel/parser": "^7.16.4", 1245 | "@vue/compiler-core": "3.2.37", 1246 | "@vue/compiler-dom": "3.2.37", 1247 | "@vue/compiler-ssr": "3.2.37", 1248 | "@vue/reactivity-transform": "3.2.37", 1249 | "@vue/shared": "3.2.37", 1250 | "estree-walker": "^2.0.2", 1251 | "magic-string": "^0.25.7", 1252 | "postcss": "^8.1.10", 1253 | "source-map": "^0.6.1" 1254 | } 1255 | }, 1256 | "@vue/compiler-ssr": { 1257 | "version": "3.2.37", 1258 | "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.2.37.tgz", 1259 | "integrity": "sha512-7mQJD7HdXxQjktmsWp/J67lThEIcxLemz1Vb5I6rYJHR5vI+lON3nPGOH3ubmbvYGt8xEUaAr1j7/tIFWiEOqw==", 1260 | "requires": { 1261 | "@vue/compiler-dom": "3.2.37", 1262 | "@vue/shared": "3.2.37" 1263 | } 1264 | }, 1265 | "@vue/reactivity": { 1266 | "version": "3.2.37", 1267 | "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.37.tgz", 1268 | "integrity": "sha512-/7WRafBOshOc6m3F7plwzPeCu/RCVv9uMpOwa/5PiY1Zz+WLVRWiy0MYKwmg19KBdGtFWsmZ4cD+LOdVPcs52A==", 1269 | "requires": { 1270 | "@vue/shared": "3.2.37" 1271 | } 1272 | }, 1273 | "@vue/reactivity-transform": { 1274 | "version": "3.2.37", 1275 | "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.2.37.tgz", 1276 | "integrity": "sha512-IWopkKEb+8qpu/1eMKVeXrK0NLw9HicGviJzhJDEyfxTR9e1WtpnnbYkJWurX6WwoFP0sz10xQg8yL8lgskAZg==", 1277 | "requires": { 1278 | "@babel/parser": "^7.16.4", 1279 | "@vue/compiler-core": "3.2.37", 1280 | "@vue/shared": "3.2.37", 1281 | "estree-walker": "^2.0.2", 1282 | "magic-string": "^0.25.7" 1283 | } 1284 | }, 1285 | "@vue/runtime-core": { 1286 | "version": "3.2.37", 1287 | "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.2.37.tgz", 1288 | "integrity": "sha512-JPcd9kFyEdXLl/i0ClS7lwgcs0QpUAWj+SKX2ZC3ANKi1U4DOtiEr6cRqFXsPwY5u1L9fAjkinIdB8Rz3FoYNQ==", 1289 | "requires": { 1290 | "@vue/reactivity": "3.2.37", 1291 | "@vue/shared": "3.2.37" 1292 | } 1293 | }, 1294 | "@vue/runtime-dom": { 1295 | "version": "3.2.37", 1296 | "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.2.37.tgz", 1297 | "integrity": "sha512-HimKdh9BepShW6YozwRKAYjYQWg9mQn63RGEiSswMbW+ssIht1MILYlVGkAGGQbkhSh31PCdoUcfiu4apXJoPw==", 1298 | "requires": { 1299 | "@vue/runtime-core": "3.2.37", 1300 | "@vue/shared": "3.2.37", 1301 | "csstype": "^2.6.8" 1302 | } 1303 | }, 1304 | "@vue/server-renderer": { 1305 | "version": "3.2.37", 1306 | "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.2.37.tgz", 1307 | "integrity": "sha512-kLITEJvaYgZQ2h47hIzPh2K3jG8c1zCVbp/o/bzQOyvzaKiCquKS7AaioPI28GNxIsE/zSx+EwWYsNxDCX95MA==", 1308 | "requires": { 1309 | "@vue/compiler-ssr": "3.2.37", 1310 | "@vue/shared": "3.2.37" 1311 | } 1312 | }, 1313 | "@vue/shared": { 1314 | "version": "3.2.37", 1315 | "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.37.tgz", 1316 | "integrity": "sha512-4rSJemR2NQIo9Klm1vabqWjD8rs/ZaJSzMxkMNeJS6lHiUjjUeYFbooN19NgFjztubEKh3WlZUeOLVdbbUWHsw==" 1317 | }, 1318 | "anymatch": { 1319 | "version": "3.1.2", 1320 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 1321 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 1322 | "dev": true, 1323 | "requires": { 1324 | "normalize-path": "^3.0.0", 1325 | "picomatch": "^2.0.4" 1326 | } 1327 | }, 1328 | "binary-extensions": { 1329 | "version": "2.2.0", 1330 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 1331 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 1332 | "dev": true 1333 | }, 1334 | "braces": { 1335 | "version": "3.0.2", 1336 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 1337 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 1338 | "dev": true, 1339 | "requires": { 1340 | "fill-range": "^7.0.1" 1341 | } 1342 | }, 1343 | "chokidar": { 1344 | "version": "3.5.3", 1345 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 1346 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 1347 | "dev": true, 1348 | "requires": { 1349 | "anymatch": "~3.1.2", 1350 | "braces": "~3.0.2", 1351 | "fsevents": "~2.3.2", 1352 | "glob-parent": "~5.1.2", 1353 | "is-binary-path": "~2.1.0", 1354 | "is-glob": "~4.0.1", 1355 | "normalize-path": "~3.0.0", 1356 | "readdirp": "~3.6.0" 1357 | } 1358 | }, 1359 | "csstype": { 1360 | "version": "2.6.20", 1361 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.20.tgz", 1362 | "integrity": "sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA==" 1363 | }, 1364 | "esbuild": { 1365 | "version": "0.14.43", 1366 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.43.tgz", 1367 | "integrity": "sha512-Uf94+kQmy/5jsFwKWiQB4hfo/RkM9Dh7b79p8yqd1tshULdr25G2szLz631NoH3s2ujnKEKVD16RmOxvCNKRFA==", 1368 | "dev": true, 1369 | "requires": { 1370 | "esbuild-android-64": "0.14.43", 1371 | "esbuild-android-arm64": "0.14.43", 1372 | "esbuild-darwin-64": "0.14.43", 1373 | "esbuild-darwin-arm64": "0.14.43", 1374 | "esbuild-freebsd-64": "0.14.43", 1375 | "esbuild-freebsd-arm64": "0.14.43", 1376 | "esbuild-linux-32": "0.14.43", 1377 | "esbuild-linux-64": "0.14.43", 1378 | "esbuild-linux-arm": "0.14.43", 1379 | "esbuild-linux-arm64": "0.14.43", 1380 | "esbuild-linux-mips64le": "0.14.43", 1381 | "esbuild-linux-ppc64le": "0.14.43", 1382 | "esbuild-linux-riscv64": "0.14.43", 1383 | "esbuild-linux-s390x": "0.14.43", 1384 | "esbuild-netbsd-64": "0.14.43", 1385 | "esbuild-openbsd-64": "0.14.43", 1386 | "esbuild-sunos-64": "0.14.43", 1387 | "esbuild-windows-32": "0.14.43", 1388 | "esbuild-windows-64": "0.14.43", 1389 | "esbuild-windows-arm64": "0.14.43" 1390 | } 1391 | }, 1392 | "esbuild-android-64": { 1393 | "version": "0.14.43", 1394 | "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.43.tgz", 1395 | "integrity": "sha512-kqFXAS72K6cNrB6RiM7YJ5lNvmWRDSlpi7ZuRZ1hu1S3w0zlwcoCxWAyM23LQUyZSs1PbjHgdbbfYAN8IGh6xg==", 1396 | "dev": true, 1397 | "optional": true 1398 | }, 1399 | "esbuild-android-arm64": { 1400 | "version": "0.14.43", 1401 | "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.43.tgz", 1402 | "integrity": "sha512-bKS2BBFh+7XZY9rpjiHGRNA7LvWYbZWP87pLehggTG7tTaCDvj8qQGOU/OZSjCSKDYbgY7Q+oDw8RlYQ2Jt2BA==", 1403 | "dev": true, 1404 | "optional": true 1405 | }, 1406 | "esbuild-darwin-64": { 1407 | "version": "0.14.43", 1408 | "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.43.tgz", 1409 | "integrity": "sha512-/3PSilx011ttoieRGkSZ0XV8zjBf2C9enV4ScMMbCT4dpx0mFhMOpFnCHkOK0pWGB8LklykFyHrWk2z6DENVUg==", 1410 | "dev": true, 1411 | "optional": true 1412 | }, 1413 | "esbuild-darwin-arm64": { 1414 | "version": "0.14.43", 1415 | "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.43.tgz", 1416 | "integrity": "sha512-1HyFUKs8DMCBOvw1Qxpr5Vv/ThNcVIFb5xgXWK3pyT40WPvgYIiRTwJCvNs4l8i5qWF8/CK5bQxJVDjQvtv0Yw==", 1417 | "dev": true, 1418 | "optional": true 1419 | }, 1420 | "esbuild-freebsd-64": { 1421 | "version": "0.14.43", 1422 | "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.43.tgz", 1423 | "integrity": "sha512-FNWc05TPHYgaXjbPZO5/rJKSBslfG6BeMSs8GhwnqAKP56eEhvmzwnIz1QcC9cRVyO+IKqWNfmHFkCa1WJTULA==", 1424 | "dev": true, 1425 | "optional": true 1426 | }, 1427 | "esbuild-freebsd-arm64": { 1428 | "version": "0.14.43", 1429 | "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.43.tgz", 1430 | "integrity": "sha512-amrYopclz3VohqisOPR6hA3GOWA3LZC1WDLnp21RhNmoERmJ/vLnOpnrG2P/Zao+/erKTCUqmrCIPVtj58DRoA==", 1431 | "dev": true, 1432 | "optional": true 1433 | }, 1434 | "esbuild-linux-32": { 1435 | "version": "0.14.43", 1436 | "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.43.tgz", 1437 | "integrity": "sha512-KoxoEra+9O3AKVvgDFvDkiuddCds6q71owSQEYwjtqRV7RwbPzKxJa6+uyzUulHcyGVq0g15K0oKG5CFBcvYDw==", 1438 | "dev": true, 1439 | "optional": true 1440 | }, 1441 | "esbuild-linux-64": { 1442 | "version": "0.14.43", 1443 | "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.43.tgz", 1444 | "integrity": "sha512-EwINwGMyiJMgBby5/SbMqKcUhS5AYAZ2CpEBzSowsJPNBJEdhkCTtEjk757TN/wxgbu3QklqDM6KghY660QCUw==", 1445 | "dev": true, 1446 | "optional": true 1447 | }, 1448 | "esbuild-linux-arm": { 1449 | "version": "0.14.43", 1450 | "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.43.tgz", 1451 | "integrity": "sha512-e6YzQUoDxxtyamuF12eVzzRC7bbEFSZohJ6igQB9tBqnNmIQY3fI6Cns3z2wxtbZ3f2o6idkD2fQnlvs2902Dg==", 1452 | "dev": true, 1453 | "optional": true 1454 | }, 1455 | "esbuild-linux-arm64": { 1456 | "version": "0.14.43", 1457 | "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.43.tgz", 1458 | "integrity": "sha512-UlSpjMWllAc70zYbHxWuDS3FJytyuR/gHJYBr8BICcTNb/TSOYVBg6U7b3jZ3mILTrgzwJUHwhEwK18FZDouUQ==", 1459 | "dev": true, 1460 | "optional": true 1461 | }, 1462 | "esbuild-linux-mips64le": { 1463 | "version": "0.14.43", 1464 | "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.43.tgz", 1465 | "integrity": "sha512-f+v8cInPEL1/SDP//CfSYzcDNgE4CY3xgDV81DWm3KAPWzhvxARrKxB1Pstf5mB56yAslJDxu7ryBUPX207EZA==", 1466 | "dev": true, 1467 | "optional": true 1468 | }, 1469 | "esbuild-linux-ppc64le": { 1470 | "version": "0.14.43", 1471 | "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.43.tgz", 1472 | "integrity": "sha512-5wZYMDGAL/K2pqkdIsW+I4IR41kyfHr/QshJcNpUfK3RjB3VQcPWOaZmc+74rm4ZjVirYrtz+jWw0SgxtxRanA==", 1473 | "dev": true, 1474 | "optional": true 1475 | }, 1476 | "esbuild-linux-riscv64": { 1477 | "version": "0.14.43", 1478 | "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.43.tgz", 1479 | "integrity": "sha512-lYcAOUxp85hC7lSjycJUVSmj4/9oEfSyXjb/ua9bNl8afonaduuqtw7hvKMoKuYnVwOCDw4RSfKpcnIRDWq+Bw==", 1480 | "dev": true, 1481 | "optional": true 1482 | }, 1483 | "esbuild-linux-s390x": { 1484 | "version": "0.14.43", 1485 | "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.43.tgz", 1486 | "integrity": "sha512-27e43ZhHvhFE4nM7HqtUbMRu37I/4eNSUbb8FGZWszV+uLzMIsHDwLoBiJmw7G9N+hrehNPeQ4F5Ujad0DrUKQ==", 1487 | "dev": true, 1488 | "optional": true 1489 | }, 1490 | "esbuild-netbsd-64": { 1491 | "version": "0.14.43", 1492 | "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.43.tgz", 1493 | "integrity": "sha512-2mH4QF6hHBn5zzAfxEI/2eBC0mspVsZ6UVo821LpAJKMvLJPBk3XJO5xwg7paDqSqpl7p6IRrAenW999AEfJhQ==", 1494 | "dev": true, 1495 | "optional": true 1496 | }, 1497 | "esbuild-openbsd-64": { 1498 | "version": "0.14.43", 1499 | "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.43.tgz", 1500 | "integrity": "sha512-ZhQpiZjvqCqO8jKdGp9+8k9E/EHSA+zIWOg+grwZasI9RoblqJ1QiZqqi7jfd6ZrrG1UFBNGe4m0NFxCFbMVbg==", 1501 | "dev": true, 1502 | "optional": true 1503 | }, 1504 | "esbuild-sunos-64": { 1505 | "version": "0.14.43", 1506 | "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.43.tgz", 1507 | "integrity": "sha512-DgxSi9DaHReL9gYuul2rrQCAapgnCJkh3LSHPKsY26zytYppG0HgkgVF80zjIlvEsUbGBP/GHQzBtrezj/Zq1Q==", 1508 | "dev": true, 1509 | "optional": true 1510 | }, 1511 | "esbuild-windows-32": { 1512 | "version": "0.14.43", 1513 | "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.43.tgz", 1514 | "integrity": "sha512-Ih3+2O5oExiqm0mY6YYE5dR0o8+AspccQ3vIAtRodwFvhuyGLjb0Hbmzun/F3Lw19nuhPMu3sW2fqIJ5xBxByw==", 1515 | "dev": true, 1516 | "optional": true 1517 | }, 1518 | "esbuild-windows-64": { 1519 | "version": "0.14.43", 1520 | "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.43.tgz", 1521 | "integrity": "sha512-8NsuNfI8xwFuJbrCuI+aBqNTYkrWErejFO5aYM+yHqyHuL8mmepLS9EPzAzk8rvfaJrhN0+RvKWAcymViHOKEw==", 1522 | "dev": true, 1523 | "optional": true 1524 | }, 1525 | "esbuild-windows-arm64": { 1526 | "version": "0.14.43", 1527 | "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.43.tgz", 1528 | "integrity": "sha512-7ZlD7bo++kVRblJEoG+cepljkfP8bfuTPz5fIXzptwnPaFwGS6ahvfoYzY7WCf5v/1nX2X02HDraVItTgbHnKw==", 1529 | "dev": true, 1530 | "optional": true 1531 | }, 1532 | "estree-walker": { 1533 | "version": "2.0.2", 1534 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", 1535 | "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" 1536 | }, 1537 | "fill-range": { 1538 | "version": "7.0.1", 1539 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1540 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1541 | "dev": true, 1542 | "requires": { 1543 | "to-regex-range": "^5.0.1" 1544 | } 1545 | }, 1546 | "fsevents": { 1547 | "version": "2.3.2", 1548 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 1549 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 1550 | "dev": true, 1551 | "optional": true 1552 | }, 1553 | "function-bind": { 1554 | "version": "1.1.1", 1555 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 1556 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 1557 | "dev": true 1558 | }, 1559 | "glob-parent": { 1560 | "version": "5.1.2", 1561 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1562 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1563 | "dev": true, 1564 | "requires": { 1565 | "is-glob": "^4.0.1" 1566 | } 1567 | }, 1568 | "has": { 1569 | "version": "1.0.3", 1570 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 1571 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 1572 | "dev": true, 1573 | "requires": { 1574 | "function-bind": "^1.1.1" 1575 | } 1576 | }, 1577 | "immutable": { 1578 | "version": "4.1.0", 1579 | "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.1.0.tgz", 1580 | "integrity": "sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==", 1581 | "dev": true 1582 | }, 1583 | "is-binary-path": { 1584 | "version": "2.1.0", 1585 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1586 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1587 | "dev": true, 1588 | "requires": { 1589 | "binary-extensions": "^2.0.0" 1590 | } 1591 | }, 1592 | "is-core-module": { 1593 | "version": "2.9.0", 1594 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", 1595 | "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", 1596 | "dev": true, 1597 | "requires": { 1598 | "has": "^1.0.3" 1599 | } 1600 | }, 1601 | "is-extglob": { 1602 | "version": "2.1.1", 1603 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1604 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1605 | "dev": true 1606 | }, 1607 | "is-glob": { 1608 | "version": "4.0.3", 1609 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1610 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1611 | "dev": true, 1612 | "requires": { 1613 | "is-extglob": "^2.1.1" 1614 | } 1615 | }, 1616 | "is-number": { 1617 | "version": "7.0.0", 1618 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1619 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1620 | "dev": true 1621 | }, 1622 | "magic-string": { 1623 | "version": "0.25.9", 1624 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", 1625 | "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", 1626 | "requires": { 1627 | "sourcemap-codec": "^1.4.8" 1628 | } 1629 | }, 1630 | "nanoid": { 1631 | "version": "3.3.4", 1632 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", 1633 | "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==" 1634 | }, 1635 | "normalize-path": { 1636 | "version": "3.0.0", 1637 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1638 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1639 | "dev": true 1640 | }, 1641 | "path-parse": { 1642 | "version": "1.0.7", 1643 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1644 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 1645 | "dev": true 1646 | }, 1647 | "picocolors": { 1648 | "version": "1.0.0", 1649 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 1650 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" 1651 | }, 1652 | "picomatch": { 1653 | "version": "2.3.1", 1654 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1655 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1656 | "dev": true 1657 | }, 1658 | "postcss": { 1659 | "version": "8.4.14", 1660 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz", 1661 | "integrity": "sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==", 1662 | "requires": { 1663 | "nanoid": "^3.3.4", 1664 | "picocolors": "^1.0.0", 1665 | "source-map-js": "^1.0.2" 1666 | } 1667 | }, 1668 | "readdirp": { 1669 | "version": "3.6.0", 1670 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1671 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1672 | "dev": true, 1673 | "requires": { 1674 | "picomatch": "^2.2.1" 1675 | } 1676 | }, 1677 | "resolve": { 1678 | "version": "1.22.0", 1679 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", 1680 | "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", 1681 | "dev": true, 1682 | "requires": { 1683 | "is-core-module": "^2.8.1", 1684 | "path-parse": "^1.0.7", 1685 | "supports-preserve-symlinks-flag": "^1.0.0" 1686 | } 1687 | }, 1688 | "rollup": { 1689 | "version": "2.75.6", 1690 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.75.6.tgz", 1691 | "integrity": "sha512-OEf0TgpC9vU6WGROJIk1JA3LR5vk/yvqlzxqdrE2CzzXnqKXNzbAwlWUXis8RS3ZPe7LAq+YUxsRa0l3r27MLA==", 1692 | "dev": true, 1693 | "requires": { 1694 | "fsevents": "~2.3.2" 1695 | } 1696 | }, 1697 | "sass": { 1698 | "version": "1.52.2", 1699 | "resolved": "https://registry.npmjs.org/sass/-/sass-1.52.2.tgz", 1700 | "integrity": "sha512-mfHB2VSeFS7sZlPv9YohB9GB7yWIgQNTGniQwfQ04EoQN0wsQEv7SwpCwy/x48Af+Z3vDeFXz+iuXM3HK/phZQ==", 1701 | "dev": true, 1702 | "requires": { 1703 | "chokidar": ">=3.0.0 <4.0.0", 1704 | "immutable": "^4.0.0", 1705 | "source-map-js": ">=0.6.2 <2.0.0" 1706 | } 1707 | }, 1708 | "source-map": { 1709 | "version": "0.6.1", 1710 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1711 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" 1712 | }, 1713 | "source-map-js": { 1714 | "version": "1.0.2", 1715 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 1716 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" 1717 | }, 1718 | "sourcemap-codec": { 1719 | "version": "1.4.8", 1720 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", 1721 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" 1722 | }, 1723 | "supports-preserve-symlinks-flag": { 1724 | "version": "1.0.0", 1725 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1726 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1727 | "dev": true 1728 | }, 1729 | "to-regex-range": { 1730 | "version": "5.0.1", 1731 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1732 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1733 | "dev": true, 1734 | "requires": { 1735 | "is-number": "^7.0.0" 1736 | } 1737 | }, 1738 | "type-fest": { 1739 | "version": "2.12.2", 1740 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.2.tgz", 1741 | "integrity": "sha512-qt6ylCGpLjZ7AaODxbpyBZSs9fCI9SkL3Z9q2oxMBQhs/uyY+VD8jHA8ULCGmWQJlBgqvO3EJeAngOHD8zQCrQ==" 1742 | }, 1743 | "vite": { 1744 | "version": "2.9.10", 1745 | "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.10.tgz", 1746 | "integrity": "sha512-TwZRuSMYjpTurLqXspct+HZE7ONiW9d+wSWgvADGxhDPPyoIcNywY+RX4ng+QpK30DCa1l/oZgi2PLZDibhzbQ==", 1747 | "dev": true, 1748 | "requires": { 1749 | "esbuild": "^0.14.27", 1750 | "fsevents": "~2.3.2", 1751 | "postcss": "^8.4.13", 1752 | "resolve": "^1.22.0", 1753 | "rollup": "^2.59.0" 1754 | } 1755 | }, 1756 | "vue": { 1757 | "version": "3.2.37", 1758 | "resolved": "https://registry.npmjs.org/vue/-/vue-3.2.37.tgz", 1759 | "integrity": "sha512-bOKEZxrm8Eh+fveCqS1/NkG/n6aMidsI6hahas7pa0w/l7jkbssJVsRhVDs07IdDq7h9KHswZOgItnwJAgtVtQ==", 1760 | "requires": { 1761 | "@vue/compiler-dom": "3.2.37", 1762 | "@vue/compiler-sfc": "3.2.37", 1763 | "@vue/runtime-dom": "3.2.37", 1764 | "@vue/server-renderer": "3.2.37", 1765 | "@vue/shared": "3.2.37" 1766 | } 1767 | } 1768 | } 1769 | } 1770 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tauri-mod-manager", 3 | "private": true, 4 | "version": "0.0.0", 5 | "scripts": { 6 | "dev": "vite", 7 | "build": "vite build", 8 | "preview": "vite preview", 9 | "tauri": "tauri" 10 | }, 11 | "dependencies": { 12 | "@tauri-apps/api": "^1.0.0-rc.5", 13 | "vue": "^3.2.25" 14 | }, 15 | "devDependencies": { 16 | "@tauri-apps/cli": "^1.0.0-rc.10", 17 | "@vitejs/plugin-vue": "^2.3.3", 18 | "sass": "^1.52.2", 19 | "vite": "^2.9.9" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/public/favicon.ico -------------------------------------------------------------------------------- /src-tauri/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | /target/ 4 | WixTools 5 | -------------------------------------------------------------------------------- /src-tauri/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "app" 3 | version = "0.1.0" 4 | description = "A Tauri App" 5 | authors = ["you"] 6 | license = "" 7 | repository = "" 8 | default-run = "app" 9 | edition = "2021" 10 | rust-version = "1.57" 11 | 12 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 13 | 14 | [build-dependencies] 15 | tauri-build = { version = "1.0.0-rc.12", features = [] } 16 | 17 | [dependencies] 18 | serde_json = "1.0" 19 | serde = { version = "1.0", features = ["derive"] } 20 | tauri = { version = "1.0.0-rc.14", features = ["api-all"] } 21 | compress-tools = "0.12.2" 22 | dirs = "4.0.0" 23 | steamlocate = "1.0.1" 24 | downloader = "0.2.6" 25 | threadpool = "1.8.1" 26 | failure = { version = "0.1.8", features = [] } 27 | url = "2.2.2" 28 | reqwest = { version = "0.11.10", features = ["blocking"] } 29 | tokio = "1.19.2" 30 | json = "0.12.4" 31 | webkit2gtk = "*" 32 | 33 | [features] 34 | # by default Tauri runs in production mode 35 | # when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL 36 | default = [ "custom-protocol" ] 37 | # this feature is used used for production builds where `devPath` points to the filesystem 38 | # DO NOT remove this 39 | custom-protocol = [ "tauri/custom-protocol" ] 40 | -------------------------------------------------------------------------------- /src-tauri/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | tauri_build::build() 3 | } 4 | -------------------------------------------------------------------------------- /src-tauri/icons/128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/128x128.png -------------------------------------------------------------------------------- /src-tauri/icons/128x128@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/128x128@2x.png -------------------------------------------------------------------------------- /src-tauri/icons/32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/32x32.png -------------------------------------------------------------------------------- /src-tauri/icons/Square107x107Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/Square107x107Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square142x142Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/Square142x142Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square150x150Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/Square150x150Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square284x284Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/Square284x284Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square30x30Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/Square30x30Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square310x310Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/Square310x310Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square44x44Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/Square44x44Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square71x71Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/Square71x71Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square89x89Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/Square89x89Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/StoreLogo.png -------------------------------------------------------------------------------- /src-tauri/icons/icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/icon.icns -------------------------------------------------------------------------------- /src-tauri/icons/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/icon.ico -------------------------------------------------------------------------------- /src-tauri/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src-tauri/icons/icon.png -------------------------------------------------------------------------------- /src-tauri/src/main.rs: -------------------------------------------------------------------------------- 1 | #![cfg_attr( 2 | all(not(debug_assertions), target_os = "windows"), 3 | windows_subsystem = "windows" 4 | )] 5 | 6 | mod mod_manager; 7 | mod mod_downloader; 8 | 9 | fn main() { 10 | tauri::Builder::default() 11 | .invoke_handler(tauri::generate_handler![ 12 | mod_manager::uncompress, 13 | mod_manager::scan_games, 14 | mod_manager::deploy, 15 | mod_manager::get_mods, 16 | mod_manager::remove_mod, 17 | mod_downloader::download, 18 | ]) 19 | .run(tauri::generate_context!()) 20 | .expect("error while running tauri application"); 21 | } 22 | 23 | -------------------------------------------------------------------------------- /src-tauri/src/mod_downloader.rs: -------------------------------------------------------------------------------- 1 | pub mod utils; 2 | pub mod download; 3 | pub mod core; 4 | 5 | use tokio::runtime::Handle; 6 | 7 | use tauri::{ Window }; 8 | 9 | use crate::mod_manager::game::Game; 10 | 11 | //if you are coming from the Vue side of this method call and are wondering at 12 | //what point the 'window' variable joins the mix, I don't know, but I had to dig 13 | //through a lot to find it, but it would probably have been easier if I knew where 14 | //to look in the documentation. Here is where I found it anyways: 15 | //https://medium.com/@marm.nakamura/trying-to-the-tauri-gui-on-rust-4-state-management-on-the-rust-side-8899bda08936 (at 22:28 on June 8th 2022) 16 | #[tauri::command] 17 | pub async fn download(url: String, game: Game, window: Window) { 18 | let handle = Handle::current(); 19 | handle.spawn_blocking(move || { 20 | let save_path = game.profile_path.join("downloads").clone(); 21 | let parsed_url; 22 | match utils::parse_url(url.as_str()) { 23 | Ok(url) => { parsed_url = url }, 24 | Err(e) => { 25 | eprintln!("Something went wrong while trying to parse the url: '{}' Error message: {}", url, e); 26 | return; 27 | } 28 | } 29 | match download::http_download(parsed_url, save_path, window, false, true, "0.1.0") { 30 | Ok(_) => {}, 31 | Err(e) => { 32 | eprintln!("Something went wrong while downloading: {}", e); 33 | } 34 | } 35 | }); 36 | } -------------------------------------------------------------------------------- /src-tauri/src/mod_downloader/core.rs: -------------------------------------------------------------------------------- 1 | use std::cell::RefCell; 2 | use std::fmt; 3 | use std::time::Duration; 4 | use std::io::Read; 5 | use std::sync::mpsc; 6 | use std::path::PathBuf; 7 | 8 | use reqwest::header::{self, HeaderMap, HeaderValue}; 9 | use reqwest::blocking::{Client, Request}; 10 | use url::Url; 11 | 12 | use failure::{Fallible}; 13 | 14 | use threadpool::ThreadPool; 15 | 16 | #[derive(Debug, Clone)] 17 | pub struct Config { 18 | pub user_agent: String, 19 | pub resume: bool, 20 | pub headers: HeaderMap, 21 | pub file: String, 22 | pub save_path: PathBuf, 23 | pub timeout: u64, 24 | pub concurrent: bool, 25 | pub max_retries: i32, 26 | pub num_workers: usize, 27 | pub bytes_on_disk: Option, 28 | pub content_len: Option, 29 | pub chunk_offsets: Option>, 30 | pub chunk_size: u64, 31 | } 32 | 33 | #[allow(unused_variables)] 34 | pub trait EventsHandler { 35 | fn on_resume_download(&mut self, bytes_on_disk: u64) {} 36 | 37 | fn on_headers(&mut self, headers: HeaderMap) {} 38 | 39 | fn on_content(&mut self, content: &[u8]) -> Fallible<()> { 40 | Ok(()) 41 | } 42 | 43 | fn on_concurrent_content(&mut self, content: (u64, u64, &[u8])) -> Fallible<()> { 44 | Ok(()) 45 | } 46 | 47 | fn on_content_length(&mut self, content_len: u64) {} 48 | 49 | fn on_success_status(&self) {} 50 | 51 | fn on_failure_status(&self, status_code: i32) {} 52 | 53 | fn on_finish(&mut self) {} 54 | 55 | fn on_max_retries(&mut self) {} 56 | 57 | fn on_server_supports_resume(&mut self) {} 58 | } 59 | 60 | pub struct HttpDownload { 61 | url: Url, 62 | hooks: Vec>>, 63 | conf: Config, 64 | retries: i32, 65 | client: Client, 66 | } 67 | 68 | impl fmt::Debug for HttpDownload { 69 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 70 | write!(f, "HttpDownload:\nurl: {}\nretries: {}\nConfig:\n{:#?}", self.url, self.retries, self.conf) 71 | } 72 | } 73 | 74 | impl HttpDownload { 75 | pub fn new(url: Url, conf: Config) -> HttpDownload { 76 | HttpDownload { 77 | url, 78 | hooks: Vec::new(), 79 | conf, 80 | retries: 0, 81 | client: Client::new(), 82 | } 83 | } 84 | 85 | pub fn download(&mut self) -> Fallible<()> { 86 | let resp = self 87 | .client 88 | .get(self.url.as_ref()) 89 | .timeout(Duration::from_secs(self.conf.timeout)) 90 | .headers(self.conf.headers.clone()) 91 | .header( 92 | header::USER_AGENT, 93 | HeaderValue::from_str(&self.conf.user_agent)?, 94 | ) 95 | .send()?; 96 | let headers = resp.headers(); 97 | 98 | let server_supports_bytes = match headers.get(header::ACCEPT_RANGES) { 99 | Some(val) => val == "bytes", 100 | None => false, 101 | }; 102 | 103 | if server_supports_bytes && self.conf.headers.contains_key(header::RANGE) { 104 | if self.conf.concurrent { 105 | self.conf.headers.remove(header::RANGE); 106 | } 107 | for hook in &self.hooks { 108 | hook.borrow_mut().on_server_supports_resume(); 109 | } 110 | } 111 | 112 | let req = self 113 | .client 114 | .get(self.url.as_ref()) 115 | .timeout(Duration::from_secs(self.conf.timeout)) 116 | .headers(self.conf.headers.clone()) 117 | .build()?; 118 | 119 | for hook in &self.hooks { 120 | hook.borrow_mut().on_headers(headers.clone()); 121 | } 122 | 123 | if server_supports_bytes && self.conf.concurrent && headers.contains_key(header::CONTENT_LENGTH) { 124 | self.concurrent_download(req, headers.get(header::CONTENT_LENGTH).unwrap())?; 125 | } else { 126 | self.singlethread_download(req)?; 127 | } 128 | 129 | for hook in &self.hooks { 130 | hook.borrow_mut().on_finish(); 131 | } 132 | 133 | Ok(()) 134 | } 135 | 136 | pub fn events_hook(&mut self, hk: E) -> &mut HttpDownload { 137 | self.hooks.push(RefCell::new(Box::new(hk))); 138 | self 139 | } 140 | 141 | fn singlethread_download(&mut self, req: Request) -> Fallible<()> { 142 | let mut resp = self.client.execute(req)?; 143 | let ct_len = if let Some(val) = resp.headers().get(header::CONTENT_LENGTH) { 144 | Some(val.to_str()?.parse::()?) 145 | } else { 146 | None 147 | }; 148 | let mut cnt = 0; 149 | loop { 150 | let mut buffer = vec![0; self.conf.chunk_size as usize]; 151 | let bcount = resp.read(&mut buffer)?; 152 | cnt += bcount; 153 | buffer.truncate(bcount); 154 | if !buffer.is_empty() { 155 | self.send_content(buffer.as_slice())?; 156 | } else { 157 | break; 158 | } 159 | if Some(cnt) == ct_len { 160 | break; 161 | } 162 | } 163 | Ok(()) 164 | } 165 | 166 | fn send_content(&mut self, contents: &[u8]) -> Fallible<()> { 167 | for hook in &self.hooks { 168 | hook.borrow_mut().on_content(contents)?; 169 | } 170 | 171 | Ok(()) 172 | } 173 | 174 | pub fn concurrent_download(&mut self, req: Request, ct_val: &HeaderValue) -> Fallible<()> { 175 | let (data_tx, data_rx) = mpsc::channel(); 176 | let (errors_tx, errors_rx) = mpsc::channel(); 177 | let content_len = ct_val.to_str()?.parse::()?; 178 | let chunk_offsets = self 179 | .conf 180 | .chunk_offsets 181 | .clone() 182 | .unwrap_or_else(|| self.get_chunk_offsets(content_len, self.conf.chunk_size)); 183 | let worker_pool = ThreadPool::new(self.conf.num_workers); 184 | 185 | for offsets in chunk_offsets { 186 | let data_tx = data_tx.clone(); 187 | let errors_tx = errors_tx.clone(); 188 | let req = req.try_clone().unwrap(); 189 | worker_pool.execute(move || download_chunk(req, offsets, data_tx.clone(), errors_tx)) 190 | } 191 | 192 | let mut count = self.conf.bytes_on_disk.unwrap_or(0); 193 | loop { 194 | if count == content_len { 195 | break; 196 | } 197 | let (byte_count, offset, buf) = data_rx.recv()?; 198 | count += byte_count; 199 | for hook in &self.hooks { 200 | hook.borrow_mut() 201 | .on_concurrent_content((byte_count, offset, &buf))?; 202 | } 203 | match errors_rx.recv_timeout(Duration::from_micros(1)) { 204 | Err(_) => {} 205 | Ok(offsets) => { 206 | if self.retries > self.conf.max_retries { 207 | for hook in &self.hooks { 208 | hook.borrow_mut().on_max_retries(); 209 | } 210 | } 211 | self.retries += 1; 212 | let data_tx = data_tx.clone(); 213 | let errors_tx = errors_tx.clone(); 214 | let req = req.try_clone().unwrap(); 215 | worker_pool.execute(move || download_chunk(req, offsets, data_tx, errors_tx)); 216 | } 217 | } 218 | } 219 | Ok(()) 220 | } 221 | 222 | fn get_chunk_offsets(&self, content_len: u64, chunk_size: u64) -> Vec<(u64, u64)> { 223 | let no_of_chunks = content_len / chunk_size; 224 | let mut sizes = Vec::new(); 225 | 226 | for chunk in 0..no_of_chunks { 227 | let bound = if chunk == no_of_chunks - 1 { 228 | content_len 229 | } else { 230 | ((chunk + 1) * chunk_size) - 1 231 | }; 232 | sizes.push((chunk * chunk_size, bound)); 233 | } 234 | if sizes.is_empty() { 235 | sizes.push((0, content_len)); 236 | } 237 | 238 | sizes 239 | } 240 | 241 | } 242 | 243 | fn download_chunk( 244 | req: Request, 245 | offsets: (u64, u64), 246 | sender: mpsc::Sender<(u64, u64, Vec)>, 247 | errors: mpsc::Sender<(u64, u64)> 248 | ) { 249 | fn inner( 250 | mut req: Request, 251 | offsets: (u64, u64), 252 | sender: mpsc::Sender<(u64, u64, Vec)>, 253 | start_offset: &mut u64 254 | ) -> Fallible<()> { 255 | let byte_range = format!("bytes={}-{}", offsets.0, offsets.1); 256 | let headers = req.headers_mut(); 257 | headers.insert(header::RANGE, HeaderValue::from_str(&byte_range)?); 258 | headers.insert(header::ACCEPT, HeaderValue::from_str("*/*")?); 259 | headers.insert(header::CONNECTION, HeaderValue::from_str("keep-alive")?); 260 | let mut resp = Client::new().execute(req)?; 261 | let chunk_sz = offsets.1 - offsets.0; 262 | let mut cnt = 0u64; 263 | loop { 264 | let mut buf = vec![0; chunk_sz as usize]; 265 | let byte_count = resp.read(&mut buf[..])?; 266 | cnt += byte_count as u64; 267 | buf.truncate(byte_count); 268 | if !buf.is_empty() { 269 | sender.send((byte_count as u64, *start_offset, buf.clone()))?; 270 | *start_offset += byte_count as u64; 271 | } else { 272 | break; 273 | } 274 | if cnt == (chunk_sz + 1) { 275 | break; 276 | } 277 | } 278 | 279 | Ok(()) 280 | } 281 | let mut start_offset = offsets.0; 282 | let end_offset = offsets.1; 283 | match inner(req, offsets, sender, &mut start_offset) { 284 | Ok(_) => {} 285 | Err(_) => match errors.send((start_offset, end_offset)) { 286 | _ => {} 287 | } 288 | } 289 | } -------------------------------------------------------------------------------- /src-tauri/src/mod_downloader/download.rs: -------------------------------------------------------------------------------- 1 | use std::time::Duration; 2 | use std::fs; 3 | use std::path::{Path, PathBuf}; 4 | use std::io::{BufRead, BufReader, BufWriter, Seek, SeekFrom, Write}; 5 | 6 | use serde::{Deserialize, Serialize}; 7 | use url::Url; 8 | use reqwest::header::{self, HeaderMap, HeaderValue}; 9 | use reqwest::blocking::Client; 10 | use failure::{format_err, Fallible}; 11 | 12 | use crate::mod_downloader::utils::{decode_percent_coded_string, get_file_handle}; 13 | use crate::mod_downloader::core::{Config, EventsHandler, HttpDownload}; 14 | 15 | #[derive(Debug, Serialize, Deserialize)] 16 | struct Progress { 17 | filename: String, 18 | filesize: Option, 19 | current: Option, 20 | finished: bool 21 | } 22 | 23 | pub fn http_download(url: Url, save_path: PathBuf, window: tauri::Window, resume_download: bool, concurrent_download: bool, version: &str) -> Fallible<()> { 24 | let user_agent = format!("TMM/{}", &version); 25 | let timeout = 30u64; 26 | let num_workers = 8usize; 27 | let headers = request_headers(&url, timeout, "TMM/0.1.0")?; 28 | let filename = gen_filename(&url, Some(&headers)); 29 | 30 | let content_len = match headers.get("Content-Length") { 31 | Some(val) => { 32 | Some(val.to_str()?.parse::().unwrap_or(0)) 33 | }, 34 | _ => { 35 | None 36 | } 37 | }; 38 | 39 | let headers = prep_headers(&filename, resume_download, &user_agent)?; 40 | 41 | let state_file_exists = Path::new(&format!("{}.st", filename)).exists(); 42 | let chunk_size = 512_000u64; 43 | 44 | let chunk_offsets = match content_len { 45 | Some(val) => { 46 | if state_file_exists && resume_download && concurrent_download && val != 0 { 47 | Some(get_resume_chunk_offsets(&filename, val, chunk_size)?) 48 | } else { 49 | None 50 | } 51 | }, 52 | None => { None } 53 | }; 54 | 55 | let bytes_on_disk = if resume_download { 56 | calc_bytes_on_disk(&filename)? 57 | } else { 58 | None 59 | }; 60 | 61 | let conf = Config { 62 | user_agent: user_agent.clone(), 63 | resume: resume_download, 64 | headers, 65 | file: filename.clone(), 66 | save_path: save_path.clone(), 67 | timeout, 68 | concurrent: concurrent_download, 69 | max_retries: 100, 70 | num_workers, 71 | bytes_on_disk, 72 | content_len, 73 | chunk_offsets, 74 | chunk_size, 75 | }; 76 | 77 | let file_handle = &save_path.join(&filename); 78 | let exists = file_handle.exists(); 79 | if exists { 80 | match window.emit("already-downloaded", &filename) { 81 | Ok(()) => {} 82 | Err(e) => { 83 | eprintln!("Something went wrong while trying to emit 'already-downloaded' to frontend: {}", e); 84 | } 85 | } 86 | return Ok(()); 87 | } 88 | 89 | let mut client = HttpDownload::new(url.clone(), conf.clone()); 90 | let events_handler = DefaultEventsHandler::new(&filename, &save_path.to_str().unwrap(), window, content_len, resume_download, concurrent_download)?; 91 | client.events_hook(events_handler).download()?; 92 | Ok(()) 93 | } 94 | 95 | fn request_headers(url: &Url, timeout: u64, ua: &str) -> Fallible { 96 | // let mut url_string = "".to_string(); 97 | // String::clone_from(&mut url_string, &url.as_ref().to_string()); 98 | // let copy: Url = Url::parse(url_string.as_str()).unwrap(); 99 | // let mut file = std::fs::File::create("image.png").unwrap(); 100 | // println!("{}, {}", &url, ©); 101 | // let result = spawn_blocking(move || {reqwest::blocking::get(copy.as_ref()).unwrap().copy_to(&mut file).unwrap()}); 102 | let response = Client::new() 103 | .get(url.as_ref()) 104 | .timeout(Duration::from_secs(timeout)) 105 | .header(header::USER_AGENT, HeaderValue::from_str(ua)?) 106 | .header(header::ACCEPT, HeaderValue::from_str("*/*")?) 107 | .send()?; 108 | Ok(response.headers().clone()) 109 | } 110 | 111 | fn gen_filename(url: &Url, headers: Option<&HeaderMap>) -> String { 112 | let content_disposition = headers 113 | .and_then(|hdrs| hdrs.get(header::CONTENT_DISPOSITION)) 114 | .and_then(|val| { 115 | let val = val.to_str().unwrap_or(""); 116 | if val.contains("filename=") { 117 | Some(val) 118 | } else { 119 | None 120 | } 121 | }) 122 | .and_then(|val| { 123 | let x = val 124 | .rsplit(';') 125 | .nth(0) 126 | .unwrap_or("") 127 | .rsplit('=') 128 | .nth(0) 129 | .unwrap_or("") 130 | .trim_start_matches('"') 131 | .trim_end_matches('"'); 132 | if !x.is_empty() { 133 | Some(x.to_string()) 134 | } else { 135 | None 136 | } 137 | }); 138 | match content_disposition { 139 | Some(val) => val, 140 | None => { 141 | let name = &url.path().split('/').last().unwrap_or(""); 142 | if !name.is_empty() { 143 | match decode_percent_coded_string(name) { 144 | Ok(val) => val, 145 | _ => name.to_string(), 146 | } 147 | } else { 148 | "index.html".to_owned() 149 | } 150 | } 151 | } 152 | } 153 | 154 | fn prep_headers(fname: &str, resume: bool, user_agent: &str) -> Fallible { 155 | let bytes_on_disk = calc_bytes_on_disk(fname)?; 156 | let mut headers = HeaderMap::new(); 157 | if let Some(bcount) = bytes_on_disk { 158 | if resume { 159 | let byte_range = format!("bytes={}-", bcount); 160 | headers.insert(header::RANGE, byte_range.parse()?); 161 | } 162 | } 163 | 164 | headers.insert(header::USER_AGENT, user_agent.parse()?); 165 | 166 | Ok(headers) 167 | } 168 | 169 | fn calc_bytes_on_disk(fname: &str) -> Fallible>{ 170 | //.st is a state file, use it if possible 171 | let st_fname = format!("{}.st", fname); 172 | if Path::new(&st_fname).exists() { 173 | let input = fs::File::open(st_fname)?; 174 | let buf = BufReader::new(input); 175 | let mut byte_count: u64 = 0; 176 | for line in buf.lines() { 177 | let num_of_bytes = line? 178 | .split(':') 179 | .nth(0) 180 | .ok_or_else(|| format_err!("failed to split state file line"))? 181 | .parse::()?; 182 | byte_count += num_of_bytes; 183 | } 184 | return Ok(Some(byte_count)); 185 | } 186 | match fs::metadata(fname) { 187 | Ok(metadata) => Ok(Some(metadata.len())), 188 | _ => Ok(None), 189 | } 190 | } 191 | 192 | fn get_resume_chunk_offsets(filename: &str, content_len: u64, chunk_size: u64) -> Fallible> { 193 | let st_fname = format!("{}.st", filename); 194 | let input = fs::File::open(st_fname)?; 195 | let buf = BufReader::new(input); 196 | let mut downloaded = vec![]; 197 | for line in buf.lines() { 198 | let l = line?; 199 | let l = l.split(':').collect::>(); 200 | let n = (l[0].parse::()?, l[1].parse::()?); 201 | downloaded.push(n); 202 | } 203 | downloaded.sort_by_key(|a| a.1); 204 | let mut chunks = vec![]; 205 | 206 | let mut i: u64 = 0; 207 | for (bc, offset) in downloaded { 208 | if i == offset { 209 | i = offset + bc; 210 | } else { 211 | chunks.push((i, offset -1)); 212 | i = offset + bc; 213 | } 214 | } 215 | 216 | while (content_len - i) > chunk_size { 217 | chunks.push((i, i + chunk_size - 1)); 218 | i += chunk_size; 219 | } 220 | 221 | chunks.push((i, content_len)); 222 | 223 | Ok(chunks) 224 | } 225 | 226 | pub struct DefaultEventsHandler { 227 | window: tauri::Window, 228 | progress: Option, 229 | bytes_on_disk: Option, 230 | content_len: Option, 231 | filename: String, 232 | save_path: String, 233 | file: BufWriter, 234 | st_file: Option>, 235 | server_supports_resume: bool 236 | } 237 | 238 | impl DefaultEventsHandler { 239 | pub fn new( 240 | filename: &str, 241 | save_path: &str, 242 | window: tauri::Window, 243 | content_len: Option, 244 | resume: bool, 245 | concurrent: bool 246 | ) -> Fallible { 247 | let st_file = if concurrent { 248 | Some(BufWriter::new(get_file_handle( 249 | &format!("{}.st", filename), save_path, &resume, &true 250 | )?)) 251 | } else { 252 | None 253 | }; 254 | let progress = Progress { 255 | filename: filename.to_owned(), 256 | filesize: content_len, 257 | current: None, 258 | finished: false, 259 | }; 260 | match window.emit("download-started", &progress) { 261 | Ok(()) => {} 262 | Err(e) => { 263 | eprintln!("Something went wrong while trying to emit 'download-started' to frontend: {}", e); 264 | } 265 | } 266 | Ok(DefaultEventsHandler { 267 | window, 268 | progress: Some(progress), 269 | bytes_on_disk: calc_bytes_on_disk(filename)?, 270 | content_len, 271 | filename: filename.to_owned(), 272 | save_path: save_path.to_owned(), 273 | file: BufWriter::new(get_file_handle(&filename, save_path, &resume, &!concurrent)?), 274 | st_file, 275 | server_supports_resume: false 276 | }) 277 | } 278 | 279 | pub fn inc(&mut self, byte_count: u64) { 280 | let self_progress = &self.progress; 281 | match self_progress { 282 | Some(p) => { 283 | match p.current { 284 | Some(val) => { 285 | self.progress = Some(Progress { filename: p.filename.as_str().to_owned(), filesize: p.filesize, current: Some(val + byte_count), finished: false }) 286 | } 287 | None => { 288 | self.progress = Some(Progress { filename: p.filename.as_str().to_owned(), filesize: p.filesize, current: Some(byte_count), finished: false }) 289 | } 290 | } 291 | }, 292 | None => { 293 | self.progress = Some(Progress { filename: self.filename.as_str().to_owned(), filesize: self.content_len, current: Some(byte_count), finished: false }); 294 | } 295 | } 296 | } 297 | } 298 | 299 | impl EventsHandler for DefaultEventsHandler { 300 | fn on_headers(&mut self, _headers: HeaderMap) { 301 | // TODO: This should probably be used to determine whether a download is of supported file type 302 | // let content_type = if let Some(val) = headers.get(header::CONTENT_TYPE) { 303 | // val.to_str().unwrap_or("") 304 | // } else { 305 | // "" 306 | // }; 307 | 308 | // println!("Type: {}", content_type); 309 | // println!("Saving to: {}", &self.filename); 310 | } 311 | 312 | fn on_server_supports_resume(&mut self) { 313 | self.server_supports_resume = true; 314 | } 315 | 316 | fn on_content(&mut self, content: &[u8]) -> Fallible<()> { 317 | let byte_count = content.len() as u64; 318 | self.file.write_all(content)?; 319 | 320 | self.inc(byte_count); 321 | match self.window.emit("download-progress", &self.progress) { 322 | Ok(()) => {} 323 | Err(e) => { 324 | eprintln!("Something went wrong while trying to emit 'download-progress' to frontend: {}", e); 325 | } 326 | } 327 | 328 | Ok(()) 329 | } 330 | 331 | fn on_concurrent_content(&mut self, content: (u64, u64, &[u8])) -> Fallible<()> { 332 | let (byte_count, offset, buf) = content; 333 | self.file.seek(SeekFrom::Start(offset))?; 334 | self.file.write_all(buf)?; 335 | self.file.flush()?; 336 | 337 | if let Some(ref mut file) = self.st_file { 338 | writeln!(file, "{}:{}", byte_count, offset)?; 339 | match file.flush() { 340 | Err(error) => { 341 | eprintln!("Failed to flush file (concurrent download); {}", error); 342 | }, 343 | Ok(_) => {} 344 | } 345 | } 346 | 347 | self.inc(byte_count); 348 | match self.window.emit("download-progress", &self.progress) { 349 | Ok(()) => {} 350 | Err(e) => { 351 | eprintln!("Something went wrong while trying to emit 'download-progress' to frontend: {}", e); 352 | } 353 | } 354 | 355 | Ok(()) 356 | } 357 | 358 | fn on_resume_download(&mut self, bytes_on_disk: u64) { 359 | self.bytes_on_disk = Some(bytes_on_disk); 360 | } 361 | 362 | fn on_finish(&mut self) { 363 | let st_file = format!("{}/{}.st", self.save_path.as_str(), self.filename); 364 | 365 | let self_progress = &self.progress; 366 | match self_progress { 367 | Some(p) => { 368 | self.progress = Some(Progress { filename: self.filename.as_str().to_owned(), filesize: p.filesize, current: p.current, finished: true}) 369 | }, 370 | None => { 371 | self.progress = Some(Progress { filename: self.filename.as_str().to_owned(), filesize: self.content_len, current: self.content_len, finished: true }); 372 | } 373 | } 374 | match self.window.emit("download-finished", &self.progress) { 375 | Ok(()) => {} 376 | Err(e) => { 377 | eprintln!("Something went wrong while trying to emit 'download-finished' to frontend: {}", e); 378 | } 379 | } 380 | 381 | match fs::remove_file(&st_file) { 382 | Ok(()) => {}, 383 | Err(e) => { 384 | eprintln!("Failed to remove '{}': {}", &st_file, e); 385 | } 386 | } 387 | } 388 | 389 | fn on_max_retries(&mut self) { 390 | // println!("Max retries exceeded, quitting!"); 391 | match self.file.flush() { 392 | _ => {} 393 | } 394 | if let Some(ref mut file) = self.st_file { 395 | match file.flush() { 396 | _ => {} 397 | } 398 | } 399 | ::std::process::exit(0); 400 | } 401 | 402 | fn on_failure_status(&self, status_code: i32) { 403 | if status_code == 416 { 404 | // println!("The file is already fully retrieved, nothing to do."); 405 | match self.window.emit("already-downloaded", &self.filename) { 406 | Ok(()) => {} 407 | Err(e) => { 408 | eprintln!("Something went wrong while trying to emit 'already-downloaded' to frontend: {}", e); 409 | } 410 | } 411 | } 412 | } 413 | } -------------------------------------------------------------------------------- /src-tauri/src/mod_downloader/utils.rs: -------------------------------------------------------------------------------- 1 | use std::fs::File; 2 | use std::fs::OpenOptions; 3 | use std::io; 4 | use std::path::Path; 5 | 6 | use failure::{Fallible}; 7 | 8 | use url::{ParseError, Url}; 9 | 10 | pub fn parse_url(url_as_string: &str) -> Result { 11 | match Url::parse(url_as_string) { 12 | Ok(url) => Ok(url), 13 | Err(error) if error == ParseError::RelativeUrlWithoutBase => { 14 | let url_with_base = format!("{}{}", "http://", url_as_string); 15 | parse_url(url_with_base.as_str()) 16 | } 17 | Err(error) => Err(error), 18 | } 19 | } 20 | 21 | pub fn decode_percent_coded_string(data: &str) -> Fallible { 22 | let mut decoded_bytes: Vec = Vec::new(); 23 | let mut bytes = data.bytes(); 24 | while let Some(b) = bytes.next() { 25 | match b as char { 26 | '%' => { 27 | let bytes_to_decode = &[bytes.next().unwrap(), bytes.next().unwrap()]; 28 | let hex_str = std::str::from_utf8(bytes_to_decode).unwrap(); 29 | decoded_bytes.push(u8::from_str_radix(hex_str, 16).unwrap()); 30 | } 31 | _ => { 32 | decoded_bytes.push(b); 33 | } 34 | } 35 | } 36 | Ok(String::from_utf8(decoded_bytes)?) 37 | } 38 | 39 | pub fn get_file_handle(filename: &str, save_path: &str, resume_download: &bool, append: &bool) -> io::Result { 40 | let path = format!("{}/{}", save_path, filename); 41 | // println!("Save Path: {}", path); 42 | if *resume_download && Path::new(&path).exists() { 43 | if *append { 44 | match OpenOptions::new().append(true).open(&path) { 45 | Ok(file) => Ok(file), 46 | Err(error) => Err(error) 47 | } 48 | } else { 49 | match OpenOptions::new().write(true).open(&path) { 50 | Ok(file) => Ok(file), 51 | Err(error) => Err(error) 52 | } 53 | } 54 | } else { 55 | match OpenOptions::new().write(true).create(true).open(&path) { 56 | Ok(file) => Ok(file), 57 | Err(error) => Err(error) 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /src-tauri/src/mod_manager.rs: -------------------------------------------------------------------------------- 1 | use std::{path::PathBuf, path::Path, collections::HashMap, fs}; 2 | 3 | use serde::{Deserialize, Serialize}; 4 | use dirs; 5 | use compress_tools::*; 6 | 7 | 8 | extern crate steamlocate; 9 | use steamlocate::SteamDir; 10 | 11 | mod ofs; 12 | pub mod game; 13 | 14 | use game::{Game, Executable}; 15 | 16 | // #[derive(Serialize, Deserialize)] 17 | // pub struct Game { 18 | // appid: u32, 19 | // name: String, 20 | // path: PathBuf, 21 | // stage_path: PathBuf, 22 | // work_path: PathBuf, 23 | // } 24 | 25 | #[derive(Serialize, Deserialize)] 26 | pub struct Mod { 27 | name: String, 28 | } 29 | 30 | #[tauri::command] 31 | pub fn deploy(mods: Vec, game: Game) { 32 | let ofs = ofs::OFSLogic{ game, mods }; 33 | ofs.exec(); 34 | } 35 | 36 | #[derive(Serialize, Deserialize)] 37 | pub struct SupportedGame { 38 | app_id: u32, 39 | public_name: String, 40 | known_binaries: Vec, 41 | path_extension: PathBuf 42 | } 43 | 44 | #[tauri::command] 45 | pub fn scan_games(supported_games: Vec) -> Vec { 46 | let mut steam_games: Vec = Vec::new(); 47 | let steam_apps = SteamDir::locate().unwrap().apps().clone(); 48 | 49 | // let known_path_extensions_json = dirs::config_dir().unwrap().join("tmm/known_path_extensions.json"); 50 | // let path_extension_contents = fs::read_to_string(known_path_extensions_json).unwrap(); 51 | // let known_path_extensions: Vec<(u32, PathBuf)> = serde_json::from_str(path_extension_contents.as_str()).unwrap(); 52 | 53 | // let supported_games_json = dirs::config_dir().unwrap().join("tmm/supported_games.json"); 54 | // let supported_games_contents = fs::read_to_string(supported_games_json).unwrap(); 55 | // let supported_games: Vec = serde_json::from_str(supported_games_contents.as_str()).unwrap(); 56 | 57 | // println!("Known Path Extensions: {:?}", known_path_extensions); 58 | for key in steam_apps.keys() { 59 | let app = steam_apps[key].as_ref().unwrap(); 60 | 61 | let pathbuf_to_game_config = dirs::config_dir().unwrap().join("tmm/").join(format!("{}.json", app.appid)); 62 | let path_to_game_config = Path::new(&pathbuf_to_game_config); 63 | let already_found = path_to_game_config.exists(); 64 | 65 | let mut supported = HashMap::new(); 66 | for game in &supported_games { 67 | supported.insert( 68 | game.app_id, 69 | game 70 | ); 71 | } 72 | 73 | if already_found { 74 | // println!("There already exists a config for game: '{}'", app.name.as_ref().unwrap()); 75 | let json = fs::read_to_string(path_to_game_config).unwrap(); 76 | steam_games.push(json); 77 | } else if !supported.contains_key(&app.appid) { 78 | // println!("Game: {} not currently supported.", app.name.as_ref().unwrap()); 79 | } else { 80 | let profile_path = dirs::config_dir().unwrap().join("tmm/profiles/").join(format!("{}", app.appid)); 81 | let components_count = app.path.to_path_buf().components().count(); 82 | let work_path = app.path.to_path_buf().components().take(components_count-4).collect::().join([".tmm_work/", app.appid.to_string().as_str()].join("")); 83 | // println!("Game work_directory: {}", &work_path.to_str().unwrap()); 84 | let path_extension = supported.get(&app.appid).unwrap().path_extension.clone(); 85 | // let path_extension = PathBuf::new(); 86 | let executables: Vec = supported.get(&app.appid).unwrap().known_binaries.clone(); 87 | let game = Game { 88 | public_name: app.name.as_ref().unwrap().to_owned(), 89 | appid: app.appid, 90 | install_path: app.path.to_path_buf(), 91 | profile_path, 92 | work_path, 93 | path_extension, 94 | executables 95 | }; 96 | 97 | let json = serde_json::to_string(&game).unwrap(); 98 | let mut app_config_path = dirs::config_dir().unwrap().join("tmm").join(format!("{}", app.appid)); 99 | app_config_path.set_extension("json"); 100 | match fs::create_dir_all(dirs::config_dir().unwrap().join("tmm")) { 101 | Ok(()) => {}, 102 | Err(e) => { 103 | eprintln!("Couldn't create config dir while working on game '{}'/{}\nError: {}", app.name.as_ref().unwrap(), app.appid, e); 104 | } 105 | } 106 | match fs::write(&app_config_path, &json) { 107 | Ok(()) => {}, 108 | Err(e) => { 109 | eprintln!("Couldn't write to config file for game '{}'/{}\nError: {}", app.name.as_ref().unwrap(), app.appid, e); 110 | } 111 | } 112 | make_tmm_game_directories(game); 113 | steam_games.push(json); 114 | } 115 | // let app = steam_apps[key].as_ref().unwrap(); 116 | // let stage_path = dirs::home_dir().unwrap().join([".config/tmm_stage/games/", app.appid.to_string().as_str()].join("")); 117 | // let components_count = app.path.to_path_buf().components().count(); 118 | // let work_path = app.path.to_path_buf().components().take(components_count-4).collect::().join([".tmm_work/", app.appid.to_string().as_str()].join("")); 119 | // let game = Game{ appid: app.appid, name: app.name.as_ref().unwrap().to_string(), path: app.path.to_path_buf(), stage_path, work_path }; 120 | // let json = serde_json::to_string(&game).unwrap(); 121 | // make_tmm_game_directories(game); 122 | // steam_games.push(json); 123 | } 124 | steam_games.into() 125 | } 126 | 127 | #[tauri::command] 128 | pub fn get_mods(game: Game) -> Vec{ 129 | let mut mods: Vec = Vec::new(); 130 | for path in get_directories(&game.profile_path.join("mods")) { 131 | let name = path.file_name().unwrap().to_str().unwrap().to_string(); 132 | let mod_struct: Mod = Mod { name }; 133 | let mod_json: String = serde_json::to_string(&mod_struct).unwrap(); 134 | mods.push(mod_json); 135 | } 136 | mods.into() 137 | } 138 | 139 | #[tauri::command] 140 | pub fn remove_mod(mod_struct: Mod, game: Game) { 141 | let mod_dir = game.profile_path.join("mods").join(mod_struct.name); 142 | fs::remove_dir_all(mod_dir).unwrap(); 143 | } 144 | 145 | pub(crate) fn make_tmm_game_directories(game: Game) { 146 | fs::create_dir_all(&game.profile_path).unwrap(); 147 | fs::create_dir_all(&game.work_path).unwrap(); 148 | fs::create_dir_all(&game.profile_path.join("downloads/")).unwrap(); 149 | fs::create_dir_all(&game.profile_path.join("mods/")).unwrap(); 150 | } 151 | 152 | fn get_directories(path: &PathBuf) -> Vec { 153 | let mut directories: Vec = Vec::new(); 154 | if path.exists() { 155 | for entry in path.read_dir().unwrap() { 156 | if let Ok (entry) = entry { 157 | if entry.path().is_dir() { 158 | directories.push(entry.path()); 159 | } 160 | } 161 | } 162 | } 163 | return directories; 164 | } 165 | 166 | #[tauri::command] 167 | pub async fn uncompress(file_path: String, file_name: String, game: Game) { 168 | let mut source_file = fs::File::open(file_path).unwrap(); 169 | let target = game.profile_path.join("mods/").join(file_name); 170 | uncompress_archive(&mut source_file,&target, Ownership::Ignore).unwrap(); 171 | } -------------------------------------------------------------------------------- /src-tauri/src/mod_manager/game.rs: -------------------------------------------------------------------------------- 1 | use serde::{Deserialize, Serialize}; 2 | 3 | use std::path::PathBuf; 4 | 5 | #[derive(Debug, Serialize, Deserialize)] 6 | pub struct Game { 7 | pub public_name: String, 8 | pub appid: u32, 9 | pub install_path: PathBuf, 10 | pub profile_path: PathBuf, 11 | pub work_path: PathBuf, 12 | //Basically if the content of mods should be put into 13 | //another subpath instead of the root install folder 14 | //e.g. on bethesda titles /Data/ 15 | pub path_extension: PathBuf, 16 | pub executables: Vec 17 | } 18 | 19 | #[derive(Debug, Clone, Serialize, Deserialize)] 20 | pub struct Executable { 21 | pub name: String, 22 | pub use_compatibility: bool, 23 | pub binary_path: PathBuf, 24 | pub startin_path: PathBuf, 25 | pub output_mod: String, 26 | } -------------------------------------------------------------------------------- /src-tauri/src/mod_manager/ofs.rs: -------------------------------------------------------------------------------- 1 | use crate::mod_manager::{Mod}; 2 | use crate::mod_manager::game::Game; 3 | use std::process::Command; 4 | use std::path::PathBuf; 5 | 6 | pub(crate) struct OFSLogic { 7 | pub(crate) game: Game, 8 | pub(crate) mods: Vec, 9 | } 10 | 11 | impl OFSLogic { 12 | pub fn exec(&self) { 13 | let mut mod_paths: Vec = Vec::new(); 14 | let upper_path: PathBuf = PathBuf::new().join(&self.game.install_path).join(&self.game.path_extension); 15 | let work_path: PathBuf = PathBuf::new().join(&self.game.work_path); 16 | 17 | for elem in &self.mods { 18 | mod_paths.push(PathBuf::new().join(&self.game.profile_path.join("mods").join(&elem.name))); 19 | } 20 | 21 | init_overlay_fs(mod_paths, &upper_path, &upper_path, &work_path); 22 | } 23 | } 24 | 25 | fn init_overlay_fs(lower: Vec, upper: &PathBuf, mount: &PathBuf, workdir: &PathBuf) { 26 | let mut lower_arg: String = String::from("lowerdir="); 27 | let upper_arg: String = String::from("upperdir=").to_owned()+upper.to_str().unwrap(); 28 | let work_arg: String = String::from("workdir=").to_owned()+workdir.to_str().unwrap(); 29 | 30 | let mut index = 0; 31 | for path in &lower { 32 | lower_arg.push_str(path.to_str().unwrap()); 33 | index = index + 1; 34 | if index < lower.len() { 35 | lower_arg.push(':'); 36 | } 37 | } 38 | 39 | Command::new("pkexec") 40 | .arg("mount") 41 | .arg("-t") 42 | .arg("overlay") 43 | .arg("overlay") 44 | .arg("-o") 45 | .arg(&lower_arg) 46 | .arg("-o") 47 | .arg(upper_arg) 48 | .arg("-o") 49 | .arg(work_arg) 50 | .arg(mount.to_str().unwrap()) 51 | .spawn() 52 | .unwrap(); 53 | } -------------------------------------------------------------------------------- /src-tauri/tauri.conf.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../node_modules/@tauri-apps/cli/schema.json", 3 | "build": { 4 | "beforeBuildCommand": "npm run build", 5 | "beforeDevCommand": "npm run dev", 6 | "devPath": "http://localhost:3000", 7 | "distDir": "../dist" 8 | }, 9 | "package": { 10 | "productName": "tux-mod-manager", 11 | "version": "0.1.0" 12 | }, 13 | "tauri": { 14 | "allowlist": { 15 | "all": true, 16 | "fs": { 17 | "scope": [ 18 | "$APP/", 19 | "$APP/*" 20 | ] 21 | } 22 | }, 23 | "bundle": { 24 | "active": true, 25 | "category": "DeveloperTool", 26 | "copyright": "", 27 | "deb": { 28 | "depends": [] 29 | }, 30 | "externalBin": [], 31 | "icon": [ 32 | "icons/32x32.png", 33 | "icons/128x128.png", 34 | "icons/128x128@2x.png", 35 | "icons/icon.icns", 36 | "icons/icon.ico" 37 | ], 38 | "identifier": "tux_mod_manager", 39 | "longDescription": "", 40 | "macOS": { 41 | "entitlements": null, 42 | "exceptionDomain": "", 43 | "frameworks": [], 44 | "providerShortName": null, 45 | "signingIdentity": null 46 | }, 47 | "resources": [], 48 | "shortDescription": "", 49 | "targets": "all", 50 | "windows": { 51 | "certificateThumbprint": null, 52 | "digestAlgorithm": "sha256", 53 | "timestampUrl": "" 54 | } 55 | }, 56 | "security": { 57 | "csp": null 58 | }, 59 | "updater": { 60 | "active": false 61 | }, 62 | "windows": [ 63 | { 64 | "fullscreen": false, 65 | "minHeight": 500, 66 | "resizable": true, 67 | "title": "Tux Mod Manager", 68 | "minWidth": 800 69 | } 70 | ] 71 | } 72 | } -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 36 | 37 | 44 | 45 | 52 | 53 | -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathiewMay/tux-mod-manager/507bdfeeb7b461932d769310b263048e8f471713/src/assets/logo.png -------------------------------------------------------------------------------- /src/assets/supported-games.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "app_id": 22330, 4 | "public_name": "The Elder Scrolls IV: Oblivion", 5 | "known_binaries": [ 6 | { 7 | "name": "Oblivion", 8 | "use_compatibility": true, 9 | "binary_path": "/Oblivion.exe", 10 | "startin_path": "", 11 | "output_mod": "overwrite" 12 | } 13 | ], 14 | "path_extension": "Data/" 15 | }, 16 | { 17 | "app_id": 489830, 18 | "public_name": "Skyrim Special Edition", 19 | "known_binaries": [ 20 | { 21 | "name": "SkyrimSE", 22 | "use_compatibility": true, 23 | "binary_path": "/SkyrimSE.exe", 24 | "startin_path": "", 25 | "output_mod": "overwrite" 26 | }, 27 | { 28 | "name": "SkyrimSELauncher", 29 | "use_compatibility": true, 30 | "binary_path": "/SkyrimSELauncher.exe", 31 | "startin_path": "", 32 | "output_mod": "overwrite" 33 | } 34 | ], 35 | "path_extension": "Data/" 36 | }, 37 | { 38 | "app_id": 1091500, 39 | "public_name": "Cyberpunk 2077", 40 | "known_binaries": [ 41 | { 42 | "name": "Cyberpunk2077", 43 | "use_compatibility": true, 44 | "binary_path": "/bin/x64/Cyberpunk2077.exe", 45 | "startin_path": "", 46 | "output_mod": "overwrite" 47 | } 48 | ], 49 | "path_extension": "" 50 | }, 51 | { 52 | "app_id": 22370, 53 | "public_name": "Fallout 3", 54 | "known_binaries": [ 55 | { 56 | "name": "Fallout3", 57 | "use_compatibility": true, 58 | "binary_path": "/Fallout3.exe", 59 | "startin_path": "", 60 | "output_mod": "overwrite" 61 | } 62 | ], 63 | "path_extension": "Data/" 64 | }, 65 | { 66 | "app_id": 22380, 67 | "public_name": "Fallout: New Vegas", 68 | "known_binaries": [ 69 | { 70 | "name": "FalloutNV", 71 | "use_compatibility": true, 72 | "binary_path": "/FalloutNV.exe", 73 | "startin_path": "", 74 | "output_mod": "overwrite" 75 | } 76 | ], 77 | "path_extension": "Data/" 78 | }, 79 | { 80 | "app_id": 337160, 81 | "public_name": "Fallout 4", 82 | "known_binaries": [ 83 | { 84 | "name": "Fallout4", 85 | "use_compatibility": true, 86 | "binary_path": "/Fallout4.exe", 87 | "startin_path": "", 88 | "output_mod": "overwrite" 89 | } 90 | ], 91 | "path_extension": "Data/" 92 | } 93 | ] -------------------------------------------------------------------------------- /src/components/Download.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 27 | 28 | -------------------------------------------------------------------------------- /src/components/MainPanel.vue: -------------------------------------------------------------------------------- 1 | 69 | 70 | 95 | 96 | -------------------------------------------------------------------------------- /src/components/Mod.vue: -------------------------------------------------------------------------------- 1 | 19 | 20 | 31 | 32 | -------------------------------------------------------------------------------- /src/components/ModDownloader.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 84 | 85 | -------------------------------------------------------------------------------- /src/components/ModInstaller.vue: -------------------------------------------------------------------------------- 1 | 36 | 37 | 45 | 46 | -------------------------------------------------------------------------------- /src/components/ModManager.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 59 | 60 | -------------------------------------------------------------------------------- /src/components/SideBar.vue: -------------------------------------------------------------------------------- 1 | 46 | 47 | 61 | 62 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import { createApp } from 'vue' 2 | import App from './App.vue' 3 | 4 | createApp(App).mount('#app') -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import vue from '@vitejs/plugin-vue' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [vue()] 7 | }) 8 | --------------------------------------------------------------------------------