diff --git a/libs/omorphia/.editorconfig b/libs/omorphia/.editorconfig new file mode 100644 index 000000000..2930e090a --- /dev/null +++ b/libs/omorphia/.editorconfig @@ -0,0 +1,13 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +max_line_length = 100 + +[*.md] +trim_trailing_whitespace = false diff --git a/libs/omorphia/.eslintignore b/libs/omorphia/.eslintignore new file mode 100644 index 000000000..e4f20a1b4 --- /dev/null +++ b/libs/omorphia/.eslintignore @@ -0,0 +1,88 @@ +node_modules +*.log* +.nuxt +.nitro +.cache +.output +.env +dist +*.md + +generated/ +!.gitkeep + +# Created by .ignore support plugin (hsz.mobi) +### Node template +# Logs +/logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* + + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# Serverless directories +.serverless + +# IDE / Editor +.idea + +# Service worker +sw.* + +# macOS +.DS_Store + +# Vim swap files +*.swp + +# pnpm files +pnpm-lock.yaml +/.npmrc diff --git a/libs/omorphia/.eslintrc.json b/libs/omorphia/.eslintrc.json new file mode 100644 index 000000000..acbe35c2a --- /dev/null +++ b/libs/omorphia/.eslintrc.json @@ -0,0 +1,38 @@ +{ + "root": true, + "env": { + "browser": true, + "es2021": true, + "node": true + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:vue/vue3-recommended", + "plugin:prettier/recommended", + "prettier" + ], + "parserOptions": { + "parser": { + "js": "espree", + "jsx": "espree", + "cjs": "espree", + "mjs": "espree", + "ts": "@typescript-eslint/parser" + }, + "ecmaVersion": "latest", + "sourceType": "module", + "extraFileExtensions": [".vue"], + "ecmaFeatures": { + "jsx": true + } + }, + "plugins": ["@typescript-eslint", "vue"], + "rules": { + "no-console": "off", + "vue/no-v-html": "off", + "comma-dangle": ["error", "only-multiline"], + "vue/multi-word-component-names": "off", + "import/no-named-as-default": "off" + } +} diff --git a/libs/omorphia/.gitignore b/libs/omorphia/.gitignore new file mode 100644 index 000000000..b2173c981 --- /dev/null +++ b/libs/omorphia/.gitignore @@ -0,0 +1,32 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? +docs/.vitepress/cache + +package-lock.json +yarn.lock diff --git a/libs/omorphia/.npmrc b/libs/omorphia/.npmrc new file mode 100644 index 000000000..fe10d3115 --- /dev/null +++ b/libs/omorphia/.npmrc @@ -0,0 +1,3 @@ +fetch-retry-mintimeout=20000 +fetch-retry-maxtimeout=120000 +auto-install-peers=true diff --git a/libs/omorphia/.prettierignore b/libs/omorphia/.prettierignore new file mode 100644 index 000000000..e4f20a1b4 --- /dev/null +++ b/libs/omorphia/.prettierignore @@ -0,0 +1,88 @@ +node_modules +*.log* +.nuxt +.nitro +.cache +.output +.env +dist +*.md + +generated/ +!.gitkeep + +# Created by .ignore support plugin (hsz.mobi) +### Node template +# Logs +/logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* + + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# Serverless directories +.serverless + +# IDE / Editor +.idea + +# Service worker +sw.* + +# macOS +.DS_Store + +# Vim swap files +*.swp + +# pnpm files +pnpm-lock.yaml +/.npmrc diff --git a/libs/omorphia/.prettierrc.json b/libs/omorphia/.prettierrc.json new file mode 100644 index 000000000..ae07ef4ad --- /dev/null +++ b/libs/omorphia/.prettierrc.json @@ -0,0 +1,6 @@ +{ + "printWidth": 100, + "semi": false, + "singleQuote": true, + "endOfLine": "auto" +} diff --git a/libs/omorphia/COPYING.md b/libs/omorphia/COPYING.md new file mode 100644 index 000000000..67aef0977 --- /dev/null +++ b/libs/omorphia/COPYING.md @@ -0,0 +1,19 @@ +# Copying + +The source code of the omorphia repository is licensed under the GNU General Public License, Version 3 only, which is provided in the file [LICENSE](./LICENSE). However, some files listed below are licensed under a different license. + +## Modrinth logo + +Any files depicting the Modrinth branding, including the wrench-in-labyrinth logo, the landing image, and variations thereof, are licensed as follows: + +> All rights reserved. © 2020-2023 Rinth, Inc. + +This includes, but may not be limited to, the following files: + +- lib/assets/branding/* + +## External logos + +The following files are owned by their respective copyright holders and must be used within each of their Brand Guidelines: + +- lib/assets/external/* diff --git a/libs/omorphia/LICENSE b/libs/omorphia/LICENSE new file mode 100644 index 000000000..0ad25db4b --- /dev/null +++ b/libs/omorphia/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/libs/omorphia/README.md b/libs/omorphia/README.md new file mode 100644 index 000000000..31d914596 --- /dev/null +++ b/libs/omorphia/README.md @@ -0,0 +1,3 @@ +# omorphia + +Omorphia is modrinth's style and component library. See [omorphia.modrinth.com](https://omorphia.modrinth.com) for more information. diff --git a/libs/omorphia/crowdin.yml b/libs/omorphia/crowdin.yml new file mode 100644 index 000000000..2817cde42 --- /dev/null +++ b/libs/omorphia/crowdin.yml @@ -0,0 +1,8 @@ +project_id: 518556 +preserve_hierarchy: true +commit_message: '[ci skip]' + +files: + - source: /locales/en-US/* + dest: /%original_file_name% + translation: /locales/%locale%/%original_file_name% diff --git a/libs/omorphia/docs/.postcssrc.cjs b/libs/omorphia/docs/.postcssrc.cjs new file mode 100644 index 000000000..37c3f9ddf --- /dev/null +++ b/libs/omorphia/docs/.postcssrc.cjs @@ -0,0 +1,12 @@ +module.exports = { + plugins: { + 'postcss-prefix-selector': { + prefix: ':not(:where(.vp-raw *))', + includeFiles: [/vp-doc\.css/], + transform(prefix, _selector) { + const [selector, pseudo = ''] = _selector.split(/(:\S*)$/) + return selector + prefix + pseudo + }, + }, + }, +} diff --git a/libs/omorphia/docs/.vitepress/config.js b/libs/omorphia/docs/.vitepress/config.js new file mode 100644 index 000000000..082e30b89 --- /dev/null +++ b/libs/omorphia/docs/.vitepress/config.js @@ -0,0 +1,125 @@ +import { resolve, basename } from 'path' +import svgLoader from 'vite-svg-loader' +import eslintPlugin from 'vite-plugin-eslint' +import { icuMessages } from '@vintl/unplugin/vite' +import virtual from '@rollup/plugin-virtual' +import { globSync } from 'glob' + +/** @type {import('vitepress').SiteConfig} */ +export default { + title: 'Omorphia', + description: 'A components library used for Modrinth.', + head: [['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]], + themeConfig: { + logo: { src: '/favicon.svg', width: 24, height: 24 }, + socialLinks: [{ icon: 'github', link: 'https://github.com/modrinth/omorphia' }], + search: { + provider: 'local', + }, + sidebar: [ + { + items: [ + { text: 'Introduction', link: '/' }, + { text: 'Setup', link: '/setup' }, + ], + }, + { + text: 'Components', + items: [ + { text: 'Avatar', link: '/components/avatar' }, + { text: 'Badge', link: '/components/badge' }, + { text: 'Button', link: '/components/button' }, + { text: 'Card', link: '/components/card' }, + { text: 'Checkbox', link: '/components/checkbox' }, + { text: 'Chips', link: '/components/chips' }, + { text: 'File Input', link: '/components/file-input' }, + { text: 'Drop Area', link: '/components/drop-area' }, + { text: 'Icons', link: '/components/icons' }, + { text: 'Pagination', link: '/components/pagination' }, + { text: 'Modal', link: '/components/modal' }, + { text: 'Dropdown Select', link: '/components/dropdown-select' }, + { text: 'Popout Menu', link: '/components/popout-menu' }, + { text: 'Overflow Menu', link: '/components/overflow-menu' }, + { text: 'Project Card', link: '/components/project-card' }, + { text: 'Environment Indicator', link: '/components/environment-indicator' }, + { text: 'Categories', link: '/components/categories' }, + { text: 'Animated Logo', link: '/components/animated-logo' }, + { text: 'Text Logo', link: '/components/text-logo' }, + { text: 'Slider', link: '/components/slider' }, + { text: 'Text Inputs', link: '/components/text-inputs' }, + { text: 'Number Inputs', link: '/components/number-inputs' }, + { text: 'Search Filter', link: '/components/search-filter' }, + { text: 'Toggle', link: '/components/toggle' }, + { text: 'Promotion', link: '/components/promotion' }, + { text: 'Markdown', link: '/components/markdown' }, + { text: 'Markdown Editor', link: '/components/markdown-editor' }, + { text: 'Copy Code', link: '/components/copy-code' }, + { text: 'Notifications', link: '/components/notifications' }, + { text: 'Share Modal', link: '/components/share-modal' }, + { text: 'Analytics', link: '/components/analytics' }, + { text: 'Search dropdown', link: '/components/search-dropdown' }, + ], + }, + ], + footer: { + message: + 'Released under the AGPLv3 License.', + copyright: 'Copyright © 2023-present Rinth, Inc.', + }, + }, + vite: { + plugins: [ + svgLoader({ + svgoConfig: { + plugins: [ + { + name: 'preset-default', + params: { + overrides: { + removeViewBox: false, + }, + }, + }, + ], + }, + }), + eslintPlugin(), + icuMessages({ + filter: (id) => id.endsWith('.json?messages'), + pluginsWrapping: true, + }), + virtual({ + '@modrinth/omorphia-dev/locales/index.js': (() => { + const localeDirs = globSync('../../locales/*', { cwd: __dirname, absolute: true }) + let output = 'export const localeDefinitions = Object.create(null);\n' + for (const localeDir of localeDirs) { + const tag = basename(localeDir) + output += `localeDefinitions[${JSON.stringify(tag)}] = {\n` + output += '\tasync importFunction() {\n' + output += `\t\tconst messages = Object.create(null);\n` + for (const filePath of globSync('*', { cwd: localeDir, absolute: true })) { + const fileName = basename(filePath) + if (fileName === 'index.json') { + output += `\t\tObject.assign(messages, await import(${JSON.stringify( + `${filePath}?messages` + )}).then((mod) => mod['default']));\n` + } + } + output += '\t\treturn { messages }\n' + output += '\t},\n' + output += '}\n' + } + return output + })(), + }), + ], + resolve: { + alias: { + '@': resolve(__dirname, '../../lib'), + omorphia: resolve(__dirname, '../../lib'), + '@formatjs/icu-messageformat-parser': '@formatjs/icu-messageformat-parser/lib/no-parser', + }, + dedupe: ['vue'], + }, + }, +} diff --git a/libs/omorphia/docs/.vitepress/env.d.ts b/libs/omorphia/docs/.vitepress/env.d.ts new file mode 100644 index 000000000..7fa93f572 --- /dev/null +++ b/libs/omorphia/docs/.vitepress/env.d.ts @@ -0,0 +1,15 @@ +/// + +declare module '@modrinth/omorphia-dev/locales/index.js' { + interface LocaleExport { + messages: Record + } + + interface LocaleDefinition { + importFunction(): Promise + } + + const localeDefinitions: Partial> + + export { localeDefinitions } +} diff --git a/libs/omorphia/docs/.vitepress/theme/DemoContainer.vue b/libs/omorphia/docs/.vitepress/theme/DemoContainer.vue new file mode 100644 index 000000000..0e3529b6d --- /dev/null +++ b/libs/omorphia/docs/.vitepress/theme/DemoContainer.vue @@ -0,0 +1,16 @@ + + + diff --git a/libs/omorphia/docs/.vitepress/theme/LanguageSwitcher.vue b/libs/omorphia/docs/.vitepress/theme/LanguageSwitcher.vue new file mode 100644 index 000000000..5f4f87d75 --- /dev/null +++ b/libs/omorphia/docs/.vitepress/theme/LanguageSwitcher.vue @@ -0,0 +1,73 @@ + + + diff --git a/libs/omorphia/docs/.vitepress/theme/compat.scss b/libs/omorphia/docs/.vitepress/theme/compat.scss new file mode 100644 index 000000000..1a61da06a --- /dev/null +++ b/libs/omorphia/docs/.vitepress/theme/compat.scss @@ -0,0 +1,24 @@ +.VPLink, +.title, +.pager-link, +.link, +.header-anchor { + color: inherit; + transition: none; + + &:hover { + text-decoration: none; + } + + &:active:not(&:disabled) { + scale: 1; + } +} + +.content-container { + max-width: 100% !important; +} + +body { + background-color: var(--vp-c-bg); +} diff --git a/libs/omorphia/docs/.vitepress/theme/index.js b/libs/omorphia/docs/.vitepress/theme/index.js new file mode 100644 index 000000000..f0f9d85f3 --- /dev/null +++ b/libs/omorphia/docs/.vitepress/theme/index.js @@ -0,0 +1,50 @@ +import { localeDefinitions } from '@modrinth/omorphia-dev/locales/index.js' +import { createPlugin } from '@vintl/vintl/plugin' +import { plugin as Omorphia } from 'omorphia' +import DefaultTheme from 'vitepress/theme' +import { createVNode } from 'vue' +import DemoContainer from './DemoContainer.vue' +import LanguageSwitcher from './LanguageSwitcher.vue' + +import './compat.scss' +import './style.scss' + +/** @type {import('vitepress').Theme} */ +export default { + ...DefaultTheme, + enhanceApp(ctx) { + ctx.app.use(Omorphia) + ctx.app.component('DemoContainer', DemoContainer) + ctx.app.use( + createPlugin({ + controllerOpts: { + locales: Object.keys(localeDefinitions).map((tag) => ({ tag })), + listen: { + async localeload(event) { + const locale = event.locale.tag + if (!Object.hasOwn(localeDefinitions, locale)) { + throw new Error(`Unknown locale: ${locale}`) + } + + try { + const { messages } = await localeDefinitions[locale].importFunction() + event.addMessages(messages) + } catch (err) { + console.error(`Failed to load locale: ${locale}`, err) + } + }, + }, + defaultMessageOrder: ['locale', 'descriptor'], + }, + globalMixin: false, + }) + ) + }, + Layout() { + return createVNode(DefaultTheme.Layout, null, { + 'sidebar-nav-before'() { + return createVNode(LanguageSwitcher) + }, + }) + }, +} diff --git a/libs/omorphia/docs/.vitepress/theme/style.scss b/libs/omorphia/docs/.vitepress/theme/style.scss new file mode 100644 index 000000000..a77352af7 --- /dev/null +++ b/libs/omorphia/docs/.vitepress/theme/style.scss @@ -0,0 +1,130 @@ +/** + * Customize default theme styling by overriding CSS variables: + * https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css + */ + +/** + * Colors + * + * Each colors have exact same color scale system with 3 levels of solid + * colors with different brightness, and 1 soft color. + * + * - `XXX-1`: The most solid color used mainly for colored text. It must + * satisfy the contrast ratio against when used on top of `XXX-soft`. + * + * - `XXX-2`: The color used mainly for hover state of the button. + * + * - `XXX-3`: The color for solid background, such as bg color of the button. + * It must satisfy the contrast ratio with pure white (#ffffff) text on + * top of it. + * + * - `XXX-soft`: The color used for subtle background such as custom container + * or badges. It must satisfy the contrast ratio when putting `XXX-1` colors + * on top of it. + * + * The soft color must be semi transparent alpha channel. This is crucial + * because it allows adding multiple "soft" colors on top of each other + * to create a accent, such as when having inline code block inside + * custom containers. + * + * - `default`: The color used purely for subtle indication without any + * special meanings attched to it such as bg color for menu hover state. + * + * - `brand`: Used for primary brand colors, such as link text, button with + * brand theme, etc. + * + * - `tip`: Used to indicate useful information. The default theme uses the + * brand color for this by default. + * + * - `warning`: Used to indicate warning to the users. Used in custom + * container, badges, etc. + * + * - `danger`: Used to show error, or dangerous message to the users. Used + * in custom container, badges, etc. + * -------------------------------------------------------------------------- */ + +:root { + --vp-c-default-1: var(--vp-c-gray-1); + --vp-c-default-2: var(--vp-c-gray-2); + --vp-c-default-3: var(--vp-c-gray-3); + --vp-c-default-soft: var(--vp-c-gray-soft); + + --vp-c-brand-1: var(--vp-c-green-1); + --vp-c-brand-2: var(--vp-c-green-2); + --vp-c-brand-3: var(--vp-c-green-3); + --vp-c-brand-soft: var(--vp-c-green-soft); + + --vp-c-tip-1: var(--vp-c-brand-1); + --vp-c-tip-2: var(--vp-c-brand-2); + --vp-c-tip-3: var(--vp-c-brand-3); + --vp-c-tip-soft: var(--vp-c-brand-soft); + + --vp-c-warning-1: var(--vp-c-yellow-1); + --vp-c-warning-2: var(--vp-c-yellow-2); + --vp-c-warning-3: var(--vp-c-yellow-3); + --vp-c-warning-soft: var(--vp-c-yellow-soft); + + --vp-c-danger-1: var(--vp-c-red-1); + --vp-c-danger-2: var(--vp-c-red-2); + --vp-c-danger-3: var(--vp-c-red-3); + --vp-c-danger-soft: var(--vp-c-red-soft); +} + +/** + * Component: Button + * -------------------------------------------------------------------------- */ + +:root { + --vp-button-brand-border: transparent; + --vp-button-brand-text: var(--vp-c-white); + --vp-button-brand-bg: var(--vp-c-brand-3); + --vp-button-brand-hover-border: transparent; + --vp-button-brand-hover-text: var(--vp-c-white); + --vp-button-brand-hover-bg: var(--vp-c-brand-2); + --vp-button-brand-active-border: transparent; + --vp-button-brand-active-text: var(--vp-c-white); + --vp-button-brand-active-bg: var(--vp-c-brand-1); +} + +/** + * Component: Home + * -------------------------------------------------------------------------- */ + +:root { + --vp-home-hero-name-color: transparent; + --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff); + + --vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%); + --vp-home-hero-image-filter: blur(40px); +} + +@media (min-width: 640px) { + :root { + --vp-home-hero-image-filter: blur(56px); + } +} + +@media (min-width: 960px) { + :root { + --vp-home-hero-image-filter: blur(72px); + } +} + +/** + * Component: Custom Block + * -------------------------------------------------------------------------- */ + +:root { + --vp-custom-block-tip-border: transparent; + --vp-custom-block-tip-text: var(--vp-c-text-1); + --vp-custom-block-tip-bg: var(--vp-c-brand-soft); + --vp-custom-block-tip-code-bg: var(--vp-c-brand-soft); +} + +/** + * Component: Algolia + * -------------------------------------------------------------------------- */ + +.DocSearch { + --docsearch-primary-color: var(--vp-c-brand-1) !important; +} diff --git a/libs/omorphia/docs/components/analytics.md b/libs/omorphia/docs/components/analytics.md new file mode 100644 index 000000000..3e7adbdf0 --- /dev/null +++ b/libs/omorphia/docs/components/analytics.md @@ -0,0 +1,169 @@ +# Analytics + + + + + + + + + + + + + + + Slot for title stuff + + + + + + + +
+ +
+
+
+ +```vue + + ... slot for title stuff + + +``` + +```vue + +``` diff --git a/libs/omorphia/docs/components/animated-logo.md b/libs/omorphia/docs/components/animated-logo.md new file mode 100644 index 000000000..abae92aea --- /dev/null +++ b/libs/omorphia/docs/components/animated-logo.md @@ -0,0 +1,8 @@ +# Animated Logo + + + + +```vue + +``` diff --git a/libs/omorphia/docs/components/avatar.md b/libs/omorphia/docs/components/avatar.md new file mode 100644 index 000000000..28e7c665e --- /dev/null +++ b/libs/omorphia/docs/components/avatar.md @@ -0,0 +1,16 @@ +# Avatars + + + + + + + + + +```vue + + + + +``` diff --git a/libs/omorphia/docs/components/badge.md b/libs/omorphia/docs/components/badge.md new file mode 100644 index 000000000..171c64d19 --- /dev/null +++ b/libs/omorphia/docs/components/badge.md @@ -0,0 +1,72 @@ +# Badge + +## Colored badge + + + + + + + + +```vue + + + + +``` + +## Badge with icon + + + + + + + + + + + + + + + + + + + + + + + + + + + +```vue + + + + + + + + + + + + + + + + + + + + + + + +``` + diff --git a/libs/omorphia/docs/components/button.md b/libs/omorphia/docs/components/button.md new file mode 100644 index 000000000..6b93f5508 --- /dev/null +++ b/libs/omorphia/docs/components/button.md @@ -0,0 +1,159 @@ +# Buttons + +## Standard + + + + + + + + + +```vue + + + + + +``` + +## Large + + + + + + + +```vue + + + +``` + +## Outline + + + + + + +```vue + + +``` + +## Transparent + + + + + + + +```vue + + + +``` + +## Hover-filled + + + + + + + + +```vue + + + + +``` + +## Hover-filled-only + + + + + + + + +```vue + + + + +``` + +## Icon-only + + + + + + + + + +```vue + + + + + +``` + +## Joined buttons + + +
+ + + + + + +
+
+ +```vue +
+ + + + + + +
+``` diff --git a/libs/omorphia/docs/components/card.md b/libs/omorphia/docs/components/card.md new file mode 100644 index 000000000..11b71cce7 --- /dev/null +++ b/libs/omorphia/docs/components/card.md @@ -0,0 +1,13 @@ +# Card + + + + This is a card! + + + +```vue + +This is a card! + +``` diff --git a/libs/omorphia/docs/components/categories.md b/libs/omorphia/docs/components/categories.md new file mode 100644 index 000000000..34e793066 --- /dev/null +++ b/libs/omorphia/docs/components/categories.md @@ -0,0 +1,47 @@ +# Categories + + + + + +```vue + +``` diff --git a/libs/omorphia/docs/components/checkbox.md b/libs/omorphia/docs/components/checkbox.md new file mode 100644 index 000000000..e81f1e265 --- /dev/null +++ b/libs/omorphia/docs/components/checkbox.md @@ -0,0 +1,21 @@ +# Checkbox + + + + +Test + + +```vue + + +Test +``` diff --git a/libs/omorphia/docs/components/chips.md b/libs/omorphia/docs/components/chips.md new file mode 100644 index 000000000..1239d0cc4 --- /dev/null +++ b/libs/omorphia/docs/components/chips.md @@ -0,0 +1,20 @@ +# Chips + + + + + + +```vue + + + +``` diff --git a/libs/omorphia/docs/components/copy-code.md b/libs/omorphia/docs/components/copy-code.md new file mode 100644 index 000000000..d338898a6 --- /dev/null +++ b/libs/omorphia/docs/components/copy-code.md @@ -0,0 +1,13 @@ +# Copy Code + + + + + +```vue + +``` diff --git a/libs/omorphia/docs/components/drop-area.md b/libs/omorphia/docs/components/drop-area.md new file mode 100644 index 000000000..c3e10ae40 --- /dev/null +++ b/libs/omorphia/docs/components/drop-area.md @@ -0,0 +1,17 @@ +# Drop Area + + + + + Click to choose a file or drag one onto this page + + + +```vue + Click to choose a file or drag one onto this page + +``` diff --git a/libs/omorphia/docs/components/dropdown-select.md b/libs/omorphia/docs/components/dropdown-select.md new file mode 100644 index 000000000..615b044fc --- /dev/null +++ b/libs/omorphia/docs/components/dropdown-select.md @@ -0,0 +1,44 @@ +# Dropdown + + + + + + + + + +```vue + +``` diff --git a/libs/omorphia/docs/components/environment-indicator.md b/libs/omorphia/docs/components/environment-indicator.md new file mode 100644 index 000000000..31cdf51af --- /dev/null +++ b/libs/omorphia/docs/components/environment-indicator.md @@ -0,0 +1,51 @@ +# Environment Indicator + +:::raw + + + + + +::: + +```vue + + + +``` diff --git a/libs/omorphia/docs/components/file-input.md b/libs/omorphia/docs/components/file-input.md new file mode 100644 index 000000000..b9f63c742 --- /dev/null +++ b/libs/omorphia/docs/components/file-input.md @@ -0,0 +1,45 @@ +# File Input + + + + + + + +```vue + + + +``` + +## Long Style + + + + + +```vue + +``` \ No newline at end of file diff --git a/libs/omorphia/docs/components/icons.md b/libs/omorphia/docs/components/icons.md new file mode 100644 index 000000000..1dd2d22be --- /dev/null +++ b/libs/omorphia/docs/components/icons.md @@ -0,0 +1,27 @@ +# Icons + +Omorphia includes a set of icons. You can view the available icons in the `~/assets/icons/*` folder of this repository. + + + + + + + + + + + + + +```vue + + + + + + + + + +``` diff --git a/libs/omorphia/docs/components/markdown-editor.md b/libs/omorphia/docs/components/markdown-editor.md new file mode 100644 index 000000000..4fd6f74f5 --- /dev/null +++ b/libs/omorphia/docs/components/markdown-editor.md @@ -0,0 +1,116 @@ +# Markdown Editor + + +The Markdown editor allows for easy formatting of Markdown text whether the user is familiar with Markdown or not. It includes standard shortcuts such as `CTRL+B` for bold, `CTRL+I` for italic, and more. + +## Full editor + + + + +```vue + + + +``` + +## With options + + + + +```vue + + + +``` + +## With image upload + + + + +```vue + + + +``` + +## Without heading buttons + + + + +```vue + + + +``` + +## With default value + + + + +```vue + + + +``` + +## Disabled + + + + + +```vue + + + +``` diff --git a/libs/omorphia/docs/components/markdown.md b/libs/omorphia/docs/components/markdown.md new file mode 100644 index 000000000..b45cc325a --- /dev/null +++ b/libs/omorphia/docs/components/markdown.md @@ -0,0 +1,38 @@ +# Markdown + + + +:::raw + +
+ +::: + + diff --git a/libs/omorphia/docs/components/modal.md b/libs/omorphia/docs/components/modal.md new file mode 100644 index 000000000..bd215fb9a --- /dev/null +++ b/libs/omorphia/docs/components/modal.md @@ -0,0 +1,32 @@ +# Modal +:::raw + + + + + + + + + +::: + +```vue + + +``` diff --git a/libs/omorphia/docs/components/notifications.md b/libs/omorphia/docs/components/notifications.md new file mode 100644 index 000000000..9ae8d6572 --- /dev/null +++ b/libs/omorphia/docs/components/notifications.md @@ -0,0 +1,46 @@ +# Notifications + + + + + + + + + + +```vue + + + + + + + +``` diff --git a/libs/omorphia/docs/components/number-inputs.md b/libs/omorphia/docs/components/number-inputs.md new file mode 100644 index 000000000..0a0633695 --- /dev/null +++ b/libs/omorphia/docs/components/number-inputs.md @@ -0,0 +1,20 @@ +# Number Inputs + + + + + + +```vue + + + +``` \ No newline at end of file diff --git a/libs/omorphia/docs/components/overflow-menu.md b/libs/omorphia/docs/components/overflow-menu.md new file mode 100644 index 000000000..8a338ec4e --- /dev/null +++ b/libs/omorphia/docs/components/overflow-menu.md @@ -0,0 +1,96 @@ +# Overflow Menu + + + More options... + + + + + + + + +```vue + + More options... + + + + +``` diff --git a/libs/omorphia/docs/components/pagination.md b/libs/omorphia/docs/components/pagination.md new file mode 100644 index 000000000..4a6bf1de5 --- /dev/null +++ b/libs/omorphia/docs/components/pagination.md @@ -0,0 +1,28 @@ +# Pagination + + + + + + +```vue + + + +``` diff --git a/libs/omorphia/docs/components/popout-menu.md b/libs/omorphia/docs/components/popout-menu.md new file mode 100644 index 000000000..31d11de08 --- /dev/null +++ b/libs/omorphia/docs/components/popout-menu.md @@ -0,0 +1,76 @@ +# Popout Menu + + + Bottom going left + + + + Bottom going right + + + + Top going left + + + + Top going right + + + + Left going up + + + + Left going down + + + + Right going up + + + + Right going down + + + + +```vue + + Bottom going right + + +``` diff --git a/libs/omorphia/docs/components/project-card.md b/libs/omorphia/docs/components/project-card.md new file mode 100644 index 000000000..f3ce61e7e --- /dev/null +++ b/libs/omorphia/docs/components/project-card.md @@ -0,0 +1,455 @@ +# Project Card +::: raw + +
+ + + +
+
+ + +
+ + + +
+
+ + + + +::: + +```vue + + + + + + +``` diff --git a/libs/omorphia/docs/components/promotion.md b/libs/omorphia/docs/components/promotion.md new file mode 100644 index 000000000..2e0a5d110 --- /dev/null +++ b/libs/omorphia/docs/components/promotion.md @@ -0,0 +1,12 @@ +# Promotion +The Promotion component is used to serve Adrinth ads. +:::raw + + + +::: + + +```vue + +``` diff --git a/libs/omorphia/docs/components/search-dropdown.md b/libs/omorphia/docs/components/search-dropdown.md new file mode 100644 index 000000000..0d00ffb3c --- /dev/null +++ b/libs/omorphia/docs/components/search-dropdown.md @@ -0,0 +1,93 @@ +# Search Dropdown + + + + +{{options}} +{{text}} + + + + + +```vue + +``` diff --git a/libs/omorphia/docs/components/search-filter.md b/libs/omorphia/docs/components/search-filter.md new file mode 100644 index 000000000..878a846bd --- /dev/null +++ b/libs/omorphia/docs/components/search-filter.md @@ -0,0 +1,53 @@ +# Search Filter + + + + + + + + +```vue + + + + +``` diff --git a/libs/omorphia/docs/components/share-modal.md b/libs/omorphia/docs/components/share-modal.md new file mode 100644 index 000000000..44f48d34d --- /dev/null +++ b/libs/omorphia/docs/components/share-modal.md @@ -0,0 +1,44 @@ +# Share Modal + + + + + + + + +```vue + + + +``` +You can use ref to open the modal, calling the show method + +`content` is what will be shown in the text of the input for sharing +```text +$refs.shareContent.show(content) +``` diff --git a/libs/omorphia/docs/components/slider.md b/libs/omorphia/docs/components/slider.md new file mode 100644 index 000000000..b4f8739b3 --- /dev/null +++ b/libs/omorphia/docs/components/slider.md @@ -0,0 +1,24 @@ +# Slider + + + + + + + + + +```vue + + + +``` diff --git a/libs/omorphia/docs/components/text-inputs.md b/libs/omorphia/docs/components/text-inputs.md new file mode 100644 index 000000000..6a5b6e184 --- /dev/null +++ b/libs/omorphia/docs/components/text-inputs.md @@ -0,0 +1,101 @@ +# Text Inputs + + + + + + +```vue + +``` + + +
+ + + +
+
+ +```vue + + +
+ + + +
+``` + + + + + +```vue + + + +``` + diff --git a/libs/omorphia/docs/components/text-logo.md b/libs/omorphia/docs/components/text-logo.md new file mode 100644 index 000000000..72404a997 --- /dev/null +++ b/libs/omorphia/docs/components/text-logo.md @@ -0,0 +1,23 @@ +# Text Logo + + + + +```vue + +``` + + + + + +```vue + +``` + + diff --git a/libs/omorphia/docs/components/toggle.md b/libs/omorphia/docs/components/toggle.md new file mode 100644 index 000000000..1d0768ff6 --- /dev/null +++ b/libs/omorphia/docs/components/toggle.md @@ -0,0 +1,20 @@ +# Toggle + + + + + + +```vue + + + +``` diff --git a/libs/omorphia/docs/index.md b/libs/omorphia/docs/index.md new file mode 100644 index 000000000..3639e1279 --- /dev/null +++ b/libs/omorphia/docs/index.md @@ -0,0 +1,14 @@ +# Introduction + +## Overview + +Omorphia is Modrinth's internal component and style library for its Vue projects. It includes: + +- 🧩 Typed components which enhance HTML elements and provide a consistent UI +- 🎨 CSS classes to easily style elements with a coherent style + +Omorphia is used in [Knossos](https://github.com/modrinth/knossos) (modrinth.com) and [Theseus](https://github.com/modrinth/theseus) (Minecraft launcher). + +## Getting started + +Follow the instructions on the [➜ **setup page** 🛠️](/setup). diff --git a/libs/omorphia/docs/public/favicon.ico b/libs/omorphia/docs/public/favicon.ico new file mode 100644 index 000000000..58bc6e203 Binary files /dev/null and b/libs/omorphia/docs/public/favicon.ico differ diff --git a/libs/omorphia/docs/public/favicon.svg b/libs/omorphia/docs/public/favicon.svg new file mode 100644 index 000000000..b08d7f53c --- /dev/null +++ b/libs/omorphia/docs/public/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/docs/setup.md b/libs/omorphia/docs/setup.md new file mode 100644 index 000000000..4e9e66af8 --- /dev/null +++ b/libs/omorphia/docs/setup.md @@ -0,0 +1,5 @@ +# Setup + +```bash +npm install omorphia +``` diff --git a/libs/omorphia/lib/assets/branding/404.svg b/libs/omorphia/lib/assets/branding/404.svg new file mode 100644 index 000000000..a372dacfd --- /dev/null +++ b/libs/omorphia/lib/assets/branding/404.svg @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libs/omorphia/lib/assets/branding/logo.svg b/libs/omorphia/lib/assets/branding/logo.svg new file mode 100644 index 000000000..3d73b0f8b --- /dev/null +++ b/libs/omorphia/lib/assets/branding/logo.svg @@ -0,0 +1,4 @@ + + + + diff --git a/libs/omorphia/lib/assets/external/apple.svg b/libs/omorphia/lib/assets/external/apple.svg new file mode 100755 index 000000000..34399ed18 --- /dev/null +++ b/libs/omorphia/lib/assets/external/apple.svg @@ -0,0 +1,9 @@ + + + + Black Logo Square + Created with Sketch. + + + + diff --git a/libs/omorphia/lib/assets/external/bh.svg b/libs/omorphia/lib/assets/external/bh.svg new file mode 100644 index 000000000..c7de04ed1 --- /dev/null +++ b/libs/omorphia/lib/assets/external/bh.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/external/bmac.svg b/libs/omorphia/lib/assets/external/bmac.svg new file mode 100644 index 000000000..be7e015eb --- /dev/null +++ b/libs/omorphia/lib/assets/external/bmac.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/libs/omorphia/lib/assets/external/discord.svg b/libs/omorphia/lib/assets/external/discord.svg new file mode 100644 index 000000000..a655bf5ce --- /dev/null +++ b/libs/omorphia/lib/assets/external/discord.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/libs/omorphia/lib/assets/external/kofi.svg b/libs/omorphia/lib/assets/external/kofi.svg new file mode 100644 index 000000000..932483aa3 --- /dev/null +++ b/libs/omorphia/lib/assets/external/kofi.svg @@ -0,0 +1 @@ +Ko-fi \ No newline at end of file diff --git a/libs/omorphia/lib/assets/external/mastodon.svg b/libs/omorphia/lib/assets/external/mastodon.svg new file mode 100644 index 000000000..9e96c9410 --- /dev/null +++ b/libs/omorphia/lib/assets/external/mastodon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/external/opencollective.svg b/libs/omorphia/lib/assets/external/opencollective.svg new file mode 100644 index 000000000..70e5816e1 --- /dev/null +++ b/libs/omorphia/lib/assets/external/opencollective.svg @@ -0,0 +1 @@ +Open Collective \ No newline at end of file diff --git a/libs/omorphia/lib/assets/external/patreon.svg b/libs/omorphia/lib/assets/external/patreon.svg new file mode 100644 index 000000000..13b742d04 --- /dev/null +++ b/libs/omorphia/lib/assets/external/patreon.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/external/paypal.svg b/libs/omorphia/lib/assets/external/paypal.svg new file mode 100644 index 000000000..a5da5a46c --- /dev/null +++ b/libs/omorphia/lib/assets/external/paypal.svg @@ -0,0 +1 @@ +PayPal \ No newline at end of file diff --git a/libs/omorphia/lib/assets/external/reddit.svg b/libs/omorphia/lib/assets/external/reddit.svg new file mode 100644 index 000000000..5cfd11243 --- /dev/null +++ b/libs/omorphia/lib/assets/external/reddit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/external/sso/discord.svg b/libs/omorphia/lib/assets/external/sso/discord.svg new file mode 100644 index 000000000..5acd13260 --- /dev/null +++ b/libs/omorphia/lib/assets/external/sso/discord.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/external/sso/github.svg b/libs/omorphia/lib/assets/external/sso/github.svg new file mode 100644 index 000000000..f84e184e0 --- /dev/null +++ b/libs/omorphia/lib/assets/external/sso/github.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/external/sso/gitlab.svg b/libs/omorphia/lib/assets/external/sso/gitlab.svg new file mode 100644 index 000000000..5384280fb --- /dev/null +++ b/libs/omorphia/lib/assets/external/sso/gitlab.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/external/sso/google.svg b/libs/omorphia/lib/assets/external/sso/google.svg new file mode 100644 index 000000000..f91fb5160 --- /dev/null +++ b/libs/omorphia/lib/assets/external/sso/google.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/libs/omorphia/lib/assets/external/sso/microsoft.svg b/libs/omorphia/lib/assets/external/sso/microsoft.svg new file mode 100644 index 000000000..b21feea96 --- /dev/null +++ b/libs/omorphia/lib/assets/external/sso/microsoft.svg @@ -0,0 +1 @@ +MS-SymbolLockup diff --git a/libs/omorphia/lib/assets/external/sso/steam.svg b/libs/omorphia/lib/assets/external/sso/steam.svg new file mode 100644 index 000000000..414d6c183 --- /dev/null +++ b/libs/omorphia/lib/assets/external/sso/steam.svg @@ -0,0 +1,4 @@ + + + + diff --git a/libs/omorphia/lib/assets/external/twitter.svg b/libs/omorphia/lib/assets/external/twitter.svg new file mode 100644 index 000000000..a43d68d9f --- /dev/null +++ b/libs/omorphia/lib/assets/external/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/external/windows.svg b/libs/omorphia/lib/assets/external/windows.svg new file mode 100644 index 000000000..9fd544f0e --- /dev/null +++ b/libs/omorphia/lib/assets/external/windows.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/align-left.svg b/libs/omorphia/lib/assets/icons/align-left.svg new file mode 100644 index 000000000..d1951d235 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/align-left.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/archive.svg b/libs/omorphia/lib/assets/icons/archive.svg new file mode 100644 index 000000000..4480b4f4b --- /dev/null +++ b/libs/omorphia/lib/assets/icons/archive.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/asterisk.svg b/libs/omorphia/lib/assets/icons/asterisk.svg new file mode 100644 index 000000000..eb98fadd9 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/asterisk.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/bell-ring.svg b/libs/omorphia/lib/assets/icons/bell-ring.svg new file mode 100644 index 000000000..56c1a1e9e --- /dev/null +++ b/libs/omorphia/lib/assets/icons/bell-ring.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/bell.svg b/libs/omorphia/lib/assets/icons/bell.svg new file mode 100644 index 000000000..83559cd04 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/bell.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/bold.svg b/libs/omorphia/lib/assets/icons/bold.svg new file mode 100644 index 000000000..e6b178fae --- /dev/null +++ b/libs/omorphia/lib/assets/icons/bold.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/book.svg b/libs/omorphia/lib/assets/icons/book.svg new file mode 100644 index 000000000..b61a618aa --- /dev/null +++ b/libs/omorphia/lib/assets/icons/book.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/bookmark.svg b/libs/omorphia/lib/assets/icons/bookmark.svg new file mode 100644 index 000000000..fbe559bc5 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/bookmark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/box.svg b/libs/omorphia/lib/assets/icons/box.svg new file mode 100644 index 000000000..a47da8070 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/box.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/calendar.svg b/libs/omorphia/lib/assets/icons/calendar.svg new file mode 100644 index 000000000..c350eb1a5 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/calendar.svg @@ -0,0 +1,5 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/chart.svg b/libs/omorphia/lib/assets/icons/chart.svg new file mode 100644 index 000000000..e937769dc --- /dev/null +++ b/libs/omorphia/lib/assets/icons/chart.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/check-check.svg b/libs/omorphia/lib/assets/icons/check-check.svg new file mode 100644 index 000000000..d3c06bd92 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/check-check.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/check-circle.svg b/libs/omorphia/lib/assets/icons/check-circle.svg new file mode 100644 index 000000000..932920f5e --- /dev/null +++ b/libs/omorphia/lib/assets/icons/check-circle.svg @@ -0,0 +1,4 @@ + + + + diff --git a/libs/omorphia/lib/assets/icons/check.svg b/libs/omorphia/lib/assets/icons/check.svg new file mode 100644 index 000000000..f633db267 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/check.svg @@ -0,0 +1,4 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/chevron-left.svg b/libs/omorphia/lib/assets/icons/chevron-left.svg new file mode 100644 index 000000000..231e34d1b --- /dev/null +++ b/libs/omorphia/lib/assets/icons/chevron-left.svg @@ -0,0 +1,4 @@ + + + + diff --git a/libs/omorphia/lib/assets/icons/chevron-right.svg b/libs/omorphia/lib/assets/icons/chevron-right.svg new file mode 100644 index 000000000..6f2693a38 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/chevron-right.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/clear.svg b/libs/omorphia/lib/assets/icons/clear.svg new file mode 100644 index 000000000..1071f4bea --- /dev/null +++ b/libs/omorphia/lib/assets/icons/clear.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/client.svg b/libs/omorphia/lib/assets/icons/client.svg new file mode 100644 index 000000000..06dd3b980 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/client.svg @@ -0,0 +1,4 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/clipboard-copy.svg b/libs/omorphia/lib/assets/icons/clipboard-copy.svg new file mode 100644 index 000000000..4d1827d95 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/clipboard-copy.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/code.svg b/libs/omorphia/lib/assets/icons/code.svg new file mode 100644 index 000000000..52b88a0aa --- /dev/null +++ b/libs/omorphia/lib/assets/icons/code.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/coins.svg b/libs/omorphia/lib/assets/icons/coins.svg new file mode 100644 index 000000000..9b165b4c4 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/coins.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/contract.svg b/libs/omorphia/lib/assets/icons/contract.svg new file mode 100644 index 000000000..977536891 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/contract.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/copy.svg b/libs/omorphia/lib/assets/icons/copy.svg new file mode 100644 index 000000000..f3b629c6b --- /dev/null +++ b/libs/omorphia/lib/assets/icons/copy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/copyright.svg b/libs/omorphia/lib/assets/icons/copyright.svg new file mode 100644 index 000000000..ecabdbb0c --- /dev/null +++ b/libs/omorphia/lib/assets/icons/copyright.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/currency.svg b/libs/omorphia/lib/assets/icons/currency.svg new file mode 100644 index 000000000..f906db652 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/currency.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/dashboard.svg b/libs/omorphia/lib/assets/icons/dashboard.svg new file mode 100644 index 000000000..4708bdc18 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/dashboard.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/download.svg b/libs/omorphia/lib/assets/icons/download.svg new file mode 100644 index 000000000..38db729ad --- /dev/null +++ b/libs/omorphia/lib/assets/icons/download.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/dropdown.svg b/libs/omorphia/lib/assets/icons/dropdown.svg new file mode 100644 index 000000000..3ef764bce --- /dev/null +++ b/libs/omorphia/lib/assets/icons/dropdown.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/edit.svg b/libs/omorphia/lib/assets/icons/edit.svg new file mode 100644 index 000000000..98ef3a754 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/edit.svg @@ -0,0 +1,5 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/expand.svg b/libs/omorphia/lib/assets/icons/expand.svg new file mode 100644 index 000000000..c1f364ead --- /dev/null +++ b/libs/omorphia/lib/assets/icons/expand.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/external.svg b/libs/omorphia/lib/assets/icons/external.svg new file mode 100644 index 000000000..36fbe5a4e --- /dev/null +++ b/libs/omorphia/lib/assets/icons/external.svg @@ -0,0 +1,6 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/eye-off.svg b/libs/omorphia/lib/assets/icons/eye-off.svg new file mode 100644 index 000000000..dc48b93c8 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/eye-off.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/eye.svg b/libs/omorphia/lib/assets/icons/eye.svg new file mode 100644 index 000000000..e6fe607ba --- /dev/null +++ b/libs/omorphia/lib/assets/icons/eye.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/file-text.svg b/libs/omorphia/lib/assets/icons/file-text.svg new file mode 100644 index 000000000..10ee96fbf --- /dev/null +++ b/libs/omorphia/lib/assets/icons/file-text.svg @@ -0,0 +1,8 @@ + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/file.svg b/libs/omorphia/lib/assets/icons/file.svg new file mode 100644 index 000000000..09dcf7612 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/file.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/filter.svg b/libs/omorphia/lib/assets/icons/filter.svg new file mode 100644 index 000000000..a19569b0c --- /dev/null +++ b/libs/omorphia/lib/assets/icons/filter.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/folder-open.svg b/libs/omorphia/lib/assets/icons/folder-open.svg new file mode 100644 index 000000000..53f88f92c --- /dev/null +++ b/libs/omorphia/lib/assets/icons/folder-open.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/folder-search.svg b/libs/omorphia/lib/assets/icons/folder-search.svg new file mode 100644 index 000000000..7737ed611 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/folder-search.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/gap.svg b/libs/omorphia/lib/assets/icons/gap.svg new file mode 100644 index 000000000..44951634c --- /dev/null +++ b/libs/omorphia/lib/assets/icons/gap.svg @@ -0,0 +1,4 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/github.svg b/libs/omorphia/lib/assets/icons/github.svg new file mode 100644 index 000000000..90908bb31 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/github.svg @@ -0,0 +1,4 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/globe.svg b/libs/omorphia/lib/assets/icons/globe.svg new file mode 100644 index 000000000..b00e59b84 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/globe.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/grid.svg b/libs/omorphia/lib/assets/icons/grid.svg new file mode 100644 index 000000000..12358117f --- /dev/null +++ b/libs/omorphia/lib/assets/icons/grid.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/hamburger.svg b/libs/omorphia/lib/assets/icons/hamburger.svg new file mode 100644 index 000000000..8e2046a0d --- /dev/null +++ b/libs/omorphia/lib/assets/icons/hamburger.svg @@ -0,0 +1,6 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/hammer.svg b/libs/omorphia/lib/assets/icons/hammer.svg new file mode 100644 index 000000000..74bc19d4d --- /dev/null +++ b/libs/omorphia/lib/assets/icons/hammer.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/hash.svg b/libs/omorphia/lib/assets/icons/hash.svg new file mode 100644 index 000000000..26e8f53bd --- /dev/null +++ b/libs/omorphia/lib/assets/icons/hash.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/heading-1.svg b/libs/omorphia/lib/assets/icons/heading-1.svg new file mode 100644 index 000000000..ab433d8d0 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/heading-1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/heading-2.svg b/libs/omorphia/lib/assets/icons/heading-2.svg new file mode 100644 index 000000000..f22c89bdc --- /dev/null +++ b/libs/omorphia/lib/assets/icons/heading-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/heading-3.svg b/libs/omorphia/lib/assets/icons/heading-3.svg new file mode 100644 index 000000000..383b1e962 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/heading-3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/heart-handshake.svg b/libs/omorphia/lib/assets/icons/heart-handshake.svg new file mode 100644 index 000000000..e7f20de89 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/heart-handshake.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/heart.svg b/libs/omorphia/lib/assets/icons/heart.svg new file mode 100644 index 000000000..4f363ce76 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/heart.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/history.svg b/libs/omorphia/lib/assets/icons/history.svg new file mode 100644 index 000000000..75328668e --- /dev/null +++ b/libs/omorphia/lib/assets/icons/history.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/home.svg b/libs/omorphia/lib/assets/icons/home.svg new file mode 100644 index 000000000..cdd22ffc1 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/home.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/image.svg b/libs/omorphia/lib/assets/icons/image.svg new file mode 100644 index 000000000..1061e4c6c --- /dev/null +++ b/libs/omorphia/lib/assets/icons/image.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/import.svg b/libs/omorphia/lib/assets/icons/import.svg new file mode 100644 index 000000000..b00c67b84 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/import.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/info.svg b/libs/omorphia/lib/assets/icons/info.svg new file mode 100644 index 000000000..8ae884368 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/info.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/issues.svg b/libs/omorphia/lib/assets/icons/issues.svg new file mode 100644 index 000000000..ec77384be --- /dev/null +++ b/libs/omorphia/lib/assets/icons/issues.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/italic.svg b/libs/omorphia/lib/assets/icons/italic.svg new file mode 100644 index 000000000..ec7e40194 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/italic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/key.svg b/libs/omorphia/lib/assets/icons/key.svg new file mode 100644 index 000000000..7449c3f71 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/key.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/languages.svg b/libs/omorphia/lib/assets/icons/languages.svg new file mode 100644 index 000000000..72ed7aeee --- /dev/null +++ b/libs/omorphia/lib/assets/icons/languages.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/left-arrow.svg b/libs/omorphia/lib/assets/icons/left-arrow.svg new file mode 100644 index 000000000..743b86d89 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/left-arrow.svg @@ -0,0 +1,4 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/library.svg b/libs/omorphia/lib/assets/icons/library.svg new file mode 100644 index 000000000..828635efc --- /dev/null +++ b/libs/omorphia/lib/assets/icons/library.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/light-bulb.svg b/libs/omorphia/lib/assets/icons/light-bulb.svg new file mode 100644 index 000000000..8f6c37f1f --- /dev/null +++ b/libs/omorphia/lib/assets/icons/light-bulb.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/link.svg b/libs/omorphia/lib/assets/icons/link.svg new file mode 100644 index 000000000..85a68a70d --- /dev/null +++ b/libs/omorphia/lib/assets/icons/link.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/list-bulleted.svg b/libs/omorphia/lib/assets/icons/list-bulleted.svg new file mode 100644 index 000000000..a41d2a2b5 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/list-bulleted.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/list-end.svg b/libs/omorphia/lib/assets/icons/list-end.svg new file mode 100644 index 000000000..06ded6da5 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/list-end.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/list-ordered.svg b/libs/omorphia/lib/assets/icons/list-ordered.svg new file mode 100644 index 000000000..5deb6ad91 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/list-ordered.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/list.svg b/libs/omorphia/lib/assets/icons/list.svg new file mode 100644 index 000000000..8e3fcfb54 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/list.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/lock.svg b/libs/omorphia/lib/assets/icons/lock.svg new file mode 100644 index 000000000..90c06bd48 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/lock.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/log-in.svg b/libs/omorphia/lib/assets/icons/log-in.svg new file mode 100644 index 000000000..545a1abcd --- /dev/null +++ b/libs/omorphia/lib/assets/icons/log-in.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/log-out.svg b/libs/omorphia/lib/assets/icons/log-out.svg new file mode 100644 index 000000000..f489e1808 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/log-out.svg @@ -0,0 +1,6 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/mail.svg b/libs/omorphia/lib/assets/icons/mail.svg new file mode 100644 index 000000000..536e7c2c7 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/mail.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/message.svg b/libs/omorphia/lib/assets/icons/message.svg new file mode 100644 index 000000000..7b092e81a --- /dev/null +++ b/libs/omorphia/lib/assets/icons/message.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/microphone.svg b/libs/omorphia/lib/assets/icons/microphone.svg new file mode 100644 index 000000000..a63b99671 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/microphone.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/moon.svg b/libs/omorphia/lib/assets/icons/moon.svg new file mode 100644 index 000000000..3284684f3 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/moon.svg @@ -0,0 +1,4 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/more-horizontal.svg b/libs/omorphia/lib/assets/icons/more-horizontal.svg new file mode 100644 index 000000000..65d9a0563 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/more-horizontal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/more-vertical.svg b/libs/omorphia/lib/assets/icons/more-vertical.svg new file mode 100644 index 000000000..98f4a4dfe --- /dev/null +++ b/libs/omorphia/lib/assets/icons/more-vertical.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/omorphia.svg b/libs/omorphia/lib/assets/icons/omorphia.svg new file mode 100644 index 000000000..047a5eac8 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/omorphia.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/paintbrush.svg b/libs/omorphia/lib/assets/icons/paintbrush.svg new file mode 100644 index 000000000..db5e95654 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/paintbrush.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/play.svg b/libs/omorphia/lib/assets/icons/play.svg new file mode 100644 index 000000000..b484cdd2e --- /dev/null +++ b/libs/omorphia/lib/assets/icons/play.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/plus.svg b/libs/omorphia/lib/assets/icons/plus.svg new file mode 100644 index 000000000..7da250ede --- /dev/null +++ b/libs/omorphia/lib/assets/icons/plus.svg @@ -0,0 +1,12 @@ + + + + diff --git a/libs/omorphia/lib/assets/icons/radio-button-checked.svg b/libs/omorphia/lib/assets/icons/radio-button-checked.svg new file mode 100644 index 000000000..6571ac46e --- /dev/null +++ b/libs/omorphia/lib/assets/icons/radio-button-checked.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/radio-button.svg b/libs/omorphia/lib/assets/icons/radio-button.svg new file mode 100644 index 000000000..c2e74a314 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/radio-button.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/redo.svg b/libs/omorphia/lib/assets/icons/redo.svg new file mode 100644 index 000000000..c6dbd45aa --- /dev/null +++ b/libs/omorphia/lib/assets/icons/redo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/reply.svg b/libs/omorphia/lib/assets/icons/reply.svg new file mode 100644 index 000000000..b308a45d5 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/reply.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/report.svg b/libs/omorphia/lib/assets/icons/report.svg new file mode 100644 index 000000000..3f8507abf --- /dev/null +++ b/libs/omorphia/lib/assets/icons/report.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/right-arrow.svg b/libs/omorphia/lib/assets/icons/right-arrow.svg new file mode 100644 index 000000000..6046f1518 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/right-arrow.svg @@ -0,0 +1,4 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/save.svg b/libs/omorphia/lib/assets/icons/save.svg new file mode 100644 index 000000000..204821423 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/save.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/scale.svg b/libs/omorphia/lib/assets/icons/scale.svg new file mode 100644 index 000000000..dfdc6cb4b --- /dev/null +++ b/libs/omorphia/lib/assets/icons/scale.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/scan-eye.svg b/libs/omorphia/lib/assets/icons/scan-eye.svg new file mode 100644 index 000000000..0230c4ed8 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/scan-eye.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/search.svg b/libs/omorphia/lib/assets/icons/search.svg new file mode 100644 index 000000000..35ce90a3e --- /dev/null +++ b/libs/omorphia/lib/assets/icons/search.svg @@ -0,0 +1,5 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/send.svg b/libs/omorphia/lib/assets/icons/send.svg new file mode 100644 index 000000000..934c06d9f --- /dev/null +++ b/libs/omorphia/lib/assets/icons/send.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/server.svg b/libs/omorphia/lib/assets/icons/server.svg new file mode 100644 index 000000000..54e05379d --- /dev/null +++ b/libs/omorphia/lib/assets/icons/server.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/settings.svg b/libs/omorphia/lib/assets/icons/settings.svg new file mode 100644 index 000000000..5accf92ee --- /dev/null +++ b/libs/omorphia/lib/assets/icons/settings.svg @@ -0,0 +1,6 @@ + + + + diff --git a/libs/omorphia/lib/assets/icons/share.svg b/libs/omorphia/lib/assets/icons/share.svg new file mode 100644 index 000000000..f7be8a132 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/share.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/shield.svg b/libs/omorphia/lib/assets/icons/shield.svg new file mode 100644 index 000000000..9a4bef40e --- /dev/null +++ b/libs/omorphia/lib/assets/icons/shield.svg @@ -0,0 +1,4 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/slash.svg b/libs/omorphia/lib/assets/icons/slash.svg new file mode 100644 index 000000000..ad3a9f75d --- /dev/null +++ b/libs/omorphia/lib/assets/icons/slash.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/sort-asc.svg b/libs/omorphia/lib/assets/icons/sort-asc.svg new file mode 100644 index 000000000..859fb6e60 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/sort-asc.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/sort-desc.svg b/libs/omorphia/lib/assets/icons/sort-desc.svg new file mode 100644 index 000000000..2df482776 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/sort-desc.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/star.svg b/libs/omorphia/lib/assets/icons/star.svg new file mode 100644 index 000000000..0854bd018 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/star.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/stop-circle.svg b/libs/omorphia/lib/assets/icons/stop-circle.svg new file mode 100644 index 000000000..76d7ba593 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/stop-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/strikethrough.svg b/libs/omorphia/lib/assets/icons/strikethrough.svg new file mode 100644 index 000000000..96d97812b --- /dev/null +++ b/libs/omorphia/lib/assets/icons/strikethrough.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/sun.svg b/libs/omorphia/lib/assets/icons/sun.svg new file mode 100644 index 000000000..e6255561a --- /dev/null +++ b/libs/omorphia/lib/assets/icons/sun.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/sunrise.svg b/libs/omorphia/lib/assets/icons/sunrise.svg new file mode 100644 index 000000000..e84d06498 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/sunrise.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/tag.svg b/libs/omorphia/lib/assets/icons/tag.svg new file mode 100644 index 000000000..0711b52da --- /dev/null +++ b/libs/omorphia/lib/assets/icons/tag.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/tags.svg b/libs/omorphia/lib/assets/icons/tags.svg new file mode 100644 index 000000000..7c08c51ee --- /dev/null +++ b/libs/omorphia/lib/assets/icons/tags.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/terminal-square.svg b/libs/omorphia/lib/assets/icons/terminal-square.svg new file mode 100644 index 000000000..597cde9aa --- /dev/null +++ b/libs/omorphia/lib/assets/icons/terminal-square.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/text-quote.svg b/libs/omorphia/lib/assets/icons/text-quote.svg new file mode 100644 index 000000000..dc44f9824 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/text-quote.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/transfer.svg b/libs/omorphia/lib/assets/icons/transfer.svg new file mode 100644 index 000000000..0390674eb --- /dev/null +++ b/libs/omorphia/lib/assets/icons/transfer.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/trash.svg b/libs/omorphia/lib/assets/icons/trash.svg new file mode 100644 index 000000000..731d939cc --- /dev/null +++ b/libs/omorphia/lib/assets/icons/trash.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/underline.svg b/libs/omorphia/lib/assets/icons/underline.svg new file mode 100644 index 000000000..5d56f3090 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/underline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/undo.svg b/libs/omorphia/lib/assets/icons/undo.svg new file mode 100644 index 000000000..26e1f5168 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/undo.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/libs/omorphia/lib/assets/icons/unknown-donation.svg b/libs/omorphia/lib/assets/icons/unknown-donation.svg new file mode 100644 index 000000000..0302224b8 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/unknown-donation.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/unknown.svg b/libs/omorphia/lib/assets/icons/unknown.svg new file mode 100644 index 000000000..4ed8c10a4 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/unknown.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/updated.svg b/libs/omorphia/lib/assets/icons/updated.svg new file mode 100644 index 000000000..b4a29e8ac --- /dev/null +++ b/libs/omorphia/lib/assets/icons/updated.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/upload.svg b/libs/omorphia/lib/assets/icons/upload.svg new file mode 100644 index 000000000..10ff29218 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/upload.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/user-plus.svg b/libs/omorphia/lib/assets/icons/user-plus.svg new file mode 100644 index 000000000..9e263a9be --- /dev/null +++ b/libs/omorphia/lib/assets/icons/user-plus.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/user-x.svg b/libs/omorphia/lib/assets/icons/user-x.svg new file mode 100644 index 000000000..994186c24 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/user-x.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/libs/omorphia/lib/assets/icons/user.svg b/libs/omorphia/lib/assets/icons/user.svg new file mode 100644 index 000000000..34d4b2b6a --- /dev/null +++ b/libs/omorphia/lib/assets/icons/user.svg @@ -0,0 +1,5 @@ + + + + diff --git a/libs/omorphia/lib/assets/icons/users.svg b/libs/omorphia/lib/assets/icons/users.svg new file mode 100644 index 000000000..416859760 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/users.svg @@ -0,0 +1,7 @@ + + + + + + diff --git a/libs/omorphia/lib/assets/icons/version.svg b/libs/omorphia/lib/assets/icons/version.svg new file mode 100644 index 000000000..e83cf9bf5 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/version.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/wiki.svg b/libs/omorphia/lib/assets/icons/wiki.svg new file mode 100644 index 000000000..260e6d41e --- /dev/null +++ b/libs/omorphia/lib/assets/icons/wiki.svg @@ -0,0 +1 @@ + diff --git a/libs/omorphia/lib/assets/icons/x-circle.svg b/libs/omorphia/lib/assets/icons/x-circle.svg new file mode 100644 index 000000000..275a3f985 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/x-circle.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/x.svg b/libs/omorphia/lib/assets/icons/x.svg new file mode 100644 index 000000000..6e20061f4 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/x.svg @@ -0,0 +1,5 @@ + + + diff --git a/libs/omorphia/lib/assets/icons/youtube.svg b/libs/omorphia/lib/assets/icons/youtube.svg new file mode 100644 index 000000000..5de99f86c --- /dev/null +++ b/libs/omorphia/lib/assets/icons/youtube.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/zoom-in.svg b/libs/omorphia/lib/assets/icons/zoom-in.svg new file mode 100644 index 000000000..deaf81253 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/zoom-in.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/icons/zoom-out.svg b/libs/omorphia/lib/assets/icons/zoom-out.svg new file mode 100644 index 000000000..0dab38198 --- /dev/null +++ b/libs/omorphia/lib/assets/icons/zoom-out.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/libs/omorphia/lib/assets/omorphia.scss b/libs/omorphia/lib/assets/omorphia.scss new file mode 100644 index 000000000..d2b5ee28c --- /dev/null +++ b/libs/omorphia/lib/assets/omorphia.scss @@ -0,0 +1,18 @@ +// Create the variables used by everything +@import 'styles/variables'; +// Normalize styling across browsers to a standard stripped down form +@import 'styles/normalize'; + +// Add Omorphia base classes +@import 'styles/classes'; + +// Apply default styles +@import 'styles/defaults'; +// Apply code block highlighting styles +@import 'styles/highlightjs'; + +// Finally, apply accessibility-related global styling +@import 'styles/accessibility'; + +// Fonts +@import 'styles/inter'; diff --git a/libs/omorphia/lib/assets/styles/accessibility.scss b/libs/omorphia/lib/assets/styles/accessibility.scss new file mode 100644 index 000000000..2f69eed60 --- /dev/null +++ b/libs/omorphia/lib/assets/styles/accessibility.scss @@ -0,0 +1,6 @@ +button:focus-visible, +a:focus-visible, +[tabindex='0']:focus-visible { + outline: 0.25rem solid #ea80ff; + border-radius: 0.25rem; +} diff --git a/libs/omorphia/lib/assets/styles/classes.scss b/libs/omorphia/lib/assets/styles/classes.scss new file mode 100644 index 000000000..9bf5b0d4d --- /dev/null +++ b/libs/omorphia/lib/assets/styles/classes.scss @@ -0,0 +1,1157 @@ +// Bodies + Generic Global Styles + +.universal-labels { + label, + .label { + :where(.label__title) { + display: block; + margin-block: var(--gap-md) var(--gap-sm); + + // Same styling as h3 + color: var(--color-contrast); + font-size: 1.17rem; + font-weight: bold; + + .required { + color: var(--color-red); + } + + &.size-card-header { + font-size: var(--font-size-xl); + margin-bottom: 1rem; + } + } + + :where(.label__description) { + display: block; + margin-block-end: var(--gap-sm); + + .label__subdescription { + display: block; + margin-block-start: var(--gap-md); + } + } + + :where(h1, h2, h3, h4) { + margin-block: 0; + } + } +} + +.universal-body { + @extend .universal-labels; + + .multiselect { + width: 15rem; + } + + > :where( + input + *, + .input-group + *, + .textarea-wrapper + *, + .chips + *, + .resizable-textarea-wrapper + *, + .input-div + * + ) { + margin-block-start: var(--gap-md); + } + + :where(button, .button, .btn) { + width: fit-content; + } + + .input-group { + input { + width: auto; + flex-basis: 0; + } + } + + :where(input) { + box-sizing: border-box; + max-height: 40px; + + &:not(.stylized-toggle) { + max-width: 100%; + } + } + + :where(.adjacent-input, &.adjacent-input) { + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: wrap; + gap: var(--gap-sm); + margin-bottom: calc(var(--gap-sm) + var(--gap-md)); + + .btn, + .input-group { + flex-shrink: 0; + } + + input { + flex-shrink: 1; + } + + > :first-child { + flex-shrink: 2; + flex-grow: 1; + flex-basis: min-content; + } + + label, + .label { + .label__title { + margin-block: 0; + } + + .label__description { + margin-block-end: 0; + } + + .label__description:not(:first-child) { + margin-top: var(--gap-sm); + } + } + + @media screen and (max-width: 750px) { + &:not(&.small) { + flex-direction: column; + align-items: start; + + .stylized-toggle { + flex-basis: 0; + } + } + } + } + + h1 { + display: flex; + align-items: center; + } + + > :first-child { + margin-block-start: 0; + } + + > :last-child { + margin-block-end: 0; + } + + :where(.header__row) { + display: flex; + flex-direction: row; + flex-wrap: wrap; + gap: var(--gap-sm); + + * { + flex-shrink: 0; + } + + .header__title { + margin: 0; + flex-grow: 1; + } + + &:not(:last-child) { + margin-bottom: var(--gap-md); + } + } + + ul, + ol { + ul, + ol { + margin-bottom: 0; + } + } +} + +.input-group { + display: flex; + flex-direction: row; + grid-gap: var(--gap-sm); + flex-wrap: wrap; + max-width: 100%; + align-items: center; + + .multiselect { + width: 15rem; + } + + input { + flex-shrink: 2; + } + + &.shrink-first { + :first-child { + flex-shrink: 2; + flex-grow: 1; + flex-basis: min-content; + } + + :not(:first-child) { + flex-shrink: 1; + } + } +} + +.push-right:not(.input-group), +.push-right.input-group > :first-child { + margin-left: auto; + margin-right: 0; +} + +.input-stack { + display: flex; + flex-direction: column; + + > * { + margin-bottom: var(--gap-md); + } + + > .multiselect { + width: unset; + height: inherit; + } +} + +.standard-body { + :last-child { + margin-bottom: 0; + } +} + +// CLICKABLES/BUTTONS +a, +.clickable { + transition: opacity 0.5s ease-in-out, filter 0.2s ease-in-out, scale 0.05s ease-in-out, + outline 0.2s ease-in-out; + + &:active:not(&:disabled) { + scale: 0.95; + } +} + +.button-base { + @extend .clickable; + font-weight: 500; + border: none; + outline: 2px solid transparent; + + &:focus-visible:not(&:disabled), + &:hover:not(&:disabled) { + cursor: pointer; + + &:not(.btn-outline.btn-hover-filled, .btn-transparent) { + filter: brightness(0.85); + } + } + + &:active:not(&:disabled, .btn-outline.btn-hover-filled, .btn-transparent) { + filter: brightness(0.8); + } + + &:disabled.quiet-disabled { + cursor: unset; + } + + &:disabled:not(.quiet-disabled), + &[disabled]:not(.quiet-disabled) { + cursor: not-allowed; + filter: grayscale(50%); + opacity: 0.5; + box-shadow: none; + } +} + +.button-within { + transition: opacity 0.5s ease-in-out, filter 0.2s ease-in-out, transform 0.05s ease-in-out, + outline 0.2s ease-in-out; + + &:focus-visible:not(&.disabled), + &:hover:not(&.disabled) { + filter: brightness(0.85); + } + + &:active:not(&.disabled) { + filter: brightness(0.8); + } + + // For some reason this within the above block makes it universal and not only applied to children. SCSS bug maybe? + &:active:not(&.disabled) button:not(&:disabled) { + transform: scale(0.95); + } + + &.disabled { + cursor: not-allowed; + filter: grayscale(50%); + opacity: 0.5; + box-shadow: none; + + &disabled, + &[disabled] { + cursor: not-allowed; + box-shadow: none; + } + } +} + +.btn { + @extend .button-base; + + --_text-color: var(--color-base); + --_background-color: var(--color-button-bg); + --_accent-color: var(--color-base); + --_shadow: var(--shadow-inset-sm), 0 0 0 0 transparent; + + &.btn-outline, + &.btn-transparent { + box-sizing: border-box; + + background-color: transparent; + transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, + color 0.2s ease-in-out; + box-shadow: none; + } + + &.btn-transparent { + --_accent-color: var(--color-base); + color: var(--_accent-color); + + &.btn-hover-filled-only { + color: var(--color-base); + } + + &:focus-visible:not(&:disabled), + &:hover:not(&:disabled) { + background-color: var(--color-button-bg); + + &.btn-hover-filled, + &.btn-hover-filled-only { + color: var(--_text-color); + background-color: var(--_background-color); + } + } + } + + &.btn-outline { + --_accent-color: var(--color-contrast); + border: 2px solid var(--_accent-color); + padding-block: calc(var(--gap-sm) - 2px); + color: var(--_background-color); + + &.btn-hover-filled-only { + color: var(--color-contrast); + border-color: var(--color-contrast); + } + + &:focus-visible:not(&:disabled), + &:hover:not(&:disabled) { + &.btn-hover-filled, + &.btn-hover-filled-only { + border-color: var(--_accent-color); + color: var(--_text-color); + background-color: var(--_background-color); + } + } + } + + &.btn-danger { + --_text-color: var(--color-accent-contrast); + --_background-color: var(--color-red); + --_accent-color: var(--color-red); + } + + &.btn-primary { + --_text-color: var(--color-accent-contrast); + --_background-color: var(--color-brand); + --_accent-color: var(--color-brand); + } + + &.btn-secondary { + --_text-color: var(--color-contrast); + --_background-color: var(--color-brand-highlight); + --_accent-color: var(--color-brand-highlight); + } + + &.btn-highlight { + --_text-color: var(--color-accent-contrast); + --_background-color: var(--color-orange); + --_accent-color: var(--color-orange); + } + + &.btn-red { + --_text-color: var(--color-accent-contrast); + --_background-color: var(--color-red); + --_accent-color: var(--color-red); + } + + &.btn-orange { + --_text-color: var(--color-accent-contrast); + --_background-color: var(--color-orange); + --_accent-color: var(--color-orange); + } + + &.btn-green { + --_text-color: var(--color-accent-contrast); + --_background-color: var(--color-green); + --_accent-color: var(--color-green); + } + + &.btn-blue { + --_text-color: var(--color-accent-contrast); + --_background-color: var(--color-blue); + --_accent-color: var(--color-blue); + } + + &.btn-purple { + --_text-color: var(--color-accent-contrast); + --_background-color: var(--color-purple); + --_accent-color: var(--color-purple); + } + + &.btn-gray { + --_text-color: var(--color-accent-contrast); + --_background-color: var(--color-gray); + --_accent-color: var(--color-gray); + } + + &.btn-large { + font-weight: 700; + min-height: 2.5rem; + } + + box-sizing: border-box; + + color: var(--_text-color); + background-color: var(--_background-color); + box-shadow: var(--_shadow); + border-radius: var(--radius-md); + + padding: var(--gap-sm) var(--gap-lg); + + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + width: fit-content; + height: fit-content; + text-decoration: none; + gap: 0.5rem; + line-height: 1.25rem; + + svg { + width: 1.25rem; + height: 1.25rem; + } + + .external-icon { + width: 0.75rem; + height: 0.75rem; + margin-bottom: auto; + margin-right: 0; + } + + &.icon-only { + padding: var(--gap-sm); + } + + &.transparent { + background: none; + box-shadow: none; + } + + &.btn-dropdown-animation { + svg:last-child { + transition: transform 0.125s ease-in-out; + } + + &.popout-open { + svg:last-child { + transform: rotate(180deg); + } + } + } +} + +.btn-group { + display: flex; + grid-gap: var(--gap-sm); + flex-wrap: wrap; +} + +.joined-buttons { + display: flex; + gap: 1px; + + > :not(:first-child) { + &.btn, + > .btn { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } + } + + > :not(:last-child) { + &.btn, + > .btn { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + } + } +} + +// PROJECT CARDS + +.project-list { + width: 100%; + gap: var(--gap-md); + overflow: hidden; + + &:not(:first-child) { + margin-top: var(--gap-md); + } + + &:not(:empty) { + margin-bottom: var(--gap-md); + } +} + +.project-list.display-mode--list { + display: flex; + flex-direction: column; +} + +.project-list.display-mode--gallery { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + + @media screen and (max-width: 750px) { + grid-template-columns: repeat(1, minmax(0, 1fr)); + } +} + +.project-list.display-mode--grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + + @media screen and (max-width: 80rem) { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + @media screen and (max-width: 1024px) { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } + + @media screen and (max-width: 860px) { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + @media screen and (max-width: 550px) { + display: flex; + flex-direction: column; + } +} + +// CARDS +.base-card { + padding: var(--gap-xl); + position: relative; + min-height: var(--font-size-2xl); + + background-color: var(--color-raised-bg); + border-radius: var(--radius-lg); + + margin-bottom: var(--gap-md); + outline: 2px solid transparent; + + box-shadow: var(--shadow-card); + + .card__overlay { + position: absolute; + top: 1rem; + right: 1rem; + display: flex; + flex-direction: column; + align-items: flex-end; + grid-gap: 0.5rem; + z-index: 2; + } + + &:where(&.warning, &.information) { + padding: 1.5rem; + line-height: 1.5; + min-height: 0; + + a { + color: var(--color-blue); + text-decoration: underline; + } + } + + // TODO: Add back later + //&.warning { + // border-left: 0.5rem solid var(--color-warning-banner-side); + // background-color: var(--color-warning-banner-bg); + // color: var(--color-warning-banner-text); + //} + // + //&.information { + // border-left: 0.5rem solid var(--color-info-banner-side); + // background-color: var(--color-info-banner-bg); + // color: var(--color-info-banner-text); + //} +} + +.card { + @extend .base-card; + @extend .universal-body; +} + +.navigation-card { + @extend .base-card; + + padding-inline: var(--gap-xl); + padding-block: var(--gap-md); + + align-items: center; + display: flex; + justify-content: space-between; + flex-wrap: wrap; + row-gap: 0.5rem; +} + +// UTILITY + +.wrap-as-needed { + overflow-wrap: break-word; + word-wrap: break-word; + word-break: break-word; + -webkit-hyphens: auto; + hyphens: auto; +} + +.sr-only { + position: absolute; + width: 0; + height: 0; + overflow: hidden; +} + +.card-divider { + background-color: var(--color-button-bg); + border: none; + color: var(--color-button-bg); + height: 1px; + margin: var(--gap-sm) 0; +} + +// TABLE +.table { + display: grid; + grid-template-rows: repeat(auto-fill, auto); + width: 100%; + border-radius: var(--radius-md); + overflow: hidden; + + .table-row { + display: grid; + + transition: opacity 0.5s ease-in-out, filter 0.2s ease-in-out, scale 0.05s ease-in-out, + outline 0.2s ease-in-out; + + &.selectable:focus-visible, + &.selectable:hover { + cursor: pointer; + filter: brightness(0.85); + } + + &.selectable:active { + filter: brightness(0.8); + scale: 0.99; + } + } + + .entire-row { + grid-template-columns: 1fr !important; + align-items: center; + } + + .table-head { + .table-cell { + background-color: var(--color-accent-contrast); + } + } + + .table-cell { + padding: 1rem; + height: 100%; + vertical-align: center; + display: flex; + } + + .name-cell { + padding-left: 0; + } + + .table-text { + overflow: hidden; + white-space: nowrap; + text-overflow: fade; + } + + .table-row:nth-child(even) .table-cell { + background-color: var(--color-bg); + } +} + +// CUSTOM COMPONENTS +// TODO: MOST OF THESE SHOULD BE MOVED TO AN OMORPHIA COMPONENT +.textarea-wrapper { + display: flex; + flex-direction: column; + align-items: stretch; + + textarea { + border-radius: var(--radius-sm); + flex: 1; + overflow-y: auto; + resize: none; + max-width: 100%; + } +} + +.resizable-textarea-wrapper { + display: block; + flex-grow: 1; + width: 100%; + margin-bottom: 0; + + textarea { + height: 100%; + border-radius: var(--radius-sm); + width: calc(100% - var(--gap-xl) - var(--gap-sm)); + resize: vertical; + } +} + +.switch { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + -webkit-tap-highlight-color: transparent; + cursor: pointer; +} + +.stylized-toggle { + @extend .button-base; + + box-sizing: content-box; + min-height: 32px; + height: 32px; + width: 52px; + max-width: 52px; + border-radius: var(--radius-max); + display: inline-block; + position: relative; + margin: 0; + transition: all 0.2s ease; + background: var(--color-button-bg); + + &:after { + content: ''; + position: absolute; + top: 7px; + left: 7px; + width: 18px; + height: 18px; + border-radius: 50%; + background: var(--color-gray); + transition: all 0.2s cubic-bezier(0.5, 0.1, 0.75, 1.35); + outline: 2px solid transparent; + + @media (prefers-reduced-motion) { + transition: none; + } + } + + &:checked { + background-color: var(--color-brand); + + &:after { + transform: translatex(20px); + background: var(--color-accent-contrast); + } + } + + &:hover &:focus { + background: var(--color-button-bg); + } +} + +// TOOLTIPS + +.v-popper--theme-tooltip { + .v-popper__inner { + background: var(--color-tooltip-bg) !important; + color: var(--color-tooltip-text) !important; + padding: 5px 10px 4px !important; + border-radius: var(--radius-sm) !important; + box-shadow: var(--shadow-floating) !important; + font-size: 0.9rem !important; + } + + .v-popper__arrow-outer, + .v-popper__arrow-inner { + border-color: var(--color-tooltip-bg) !important; + } +} + +// MARKDOWN + +.markdown-body { + h1:first-child { + margin-top: 0; + } + + blockquote, + details, + dl, + ol, + p, + code, + pre, + table, + ul { + margin-top: 0; + margin-bottom: 16px; + } + + li, + p { + padding: 0; + line-height: 1.5; + } + + h1, + h2 { + padding: 10px 0 5px; + border-bottom: 1px solid var(--color-gray); + } + + h1, + h2, + h3, + h4, + h5, + h6, + li, + p { + word-wrap: break-word; + overflow-wrap: anywhere; + } + + blockquote { + padding: 0 1em; + color: var(--color-base); + border-left: 0.25em solid var(--color-button-bg); + } + + a { + cursor: pointer; + color: var(--color-link); + + &:focus-visible, + &:hover { + filter: brightness(1.2); + text-decoration: none; + } + + &:active { + filter: brightness(1.1); + text-decoration: none; + } + } + + img { + max-width: 100%; + height: auto; + } + + html:not(.dark-mode, .oled-mode) & img[src$='#gh-dark-mode-only'] { + display: none; + } + + html:is(.dark-mode, .oled-mode) & img[src$='#gh-light-mode-only'] { + display: none; + } + + pre { + margin-top: 1rem; + padding: 14px; + border-radius: var(--radius-sm); + background-color: var(--color-button-bg); + overflow-x: auto; + + code { + font-size: 80%; + padding: 0; + border-radius: 0; + } + } + + code { + padding: 0.2em 0.4em; + font-size: 80%; + border-radius: var(--radius-sm); + background-color: var(--color-button-bg); + color: var(--color-contrast); + } + + hr { + margin: 20px 0; + color: var(--color-button-bg); + } + + table { + display: block; + width: max-content; + max-width: 100%; + overflow: auto; + border-collapse: separate; + border-spacing: 0; + line-height: 1.5; + border: 0.1rem solid var(--color-button-bg); + border-radius: var(--radius-sm); + + th { + font-weight: 600; + } + + td, + th { + padding: 0.4rem 0.85rem; + } + + tr:nth-child(2n) { + background-color: var(--color-accent-contrast); + } + + td:not(:last-of-type), + th:not(:last-of-type) { + border-right: 0.1rem solid var(--color-button-bg); + } + + tr:not(:last-of-type) td, + th { + border-bottom: 0.1rem solid var(--color-button-bg); + } + } + + details { + border: 0.15rem solid var(--color-button-bg); + border-radius: var(--radius-sm); + padding: 0.5rem 0.5rem 0; + + summary { + font-weight: bold; + margin: -0.5rem -0.5rem 0; + padding: 0.5rem 0.8rem; + cursor: pointer; + background-color: var(--color-button-bg); + border-radius: var(--radius-xs); + + &:hover { + filter: brightness(0.85); + } + } + + &[open] { + padding: 0.5rem; + + summary { + margin-bottom: 0.5rem; + border-radius: var(--radius-xs) var(--radius-xs) 0 0; + } + + > :last-child:not(summary) { + margin-bottom: 0 !important; + } + } + } + + > :last-child { + margin-bottom: 0 !important; + } + + iframe, + video { + aspect-ratio: 16 / 9; + width: 850px; + max-width: 100%; + height: auto; + } + + @media screen and (max-width: 1280px) { + iframe, + video { + width: 100%; + } + } +} + +select { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + background: #cccccc url(http://dropdown/arrow/url/) no-repeat right center; + color: #000000; + border: 1px solid #000000; +} + +.goto-link { + display: flex; + align-items: center; + gap: 3px; + + color: var(--color-blue); +} + +.goto-link:hover, +.goto-link:focus-visible { + filter: brightness(1.1); + text-decoration: underline; +} + +.goto-link:active { + filter: brightness(1.2); +} + +.multiselect { + color: var(--color-base) !important; + outline: 2px solid transparent; + width: 100% !important; + + .multiselect__input:focus-visible { + outline: none !important; + box-shadow: none !important; + padding: 0 !important; + min-height: 0 !important; + font-weight: normal !important; + margin-left: 0.5rem; + margin-bottom: 10px; + } + + input { + background: transparent; + box-shadow: none; + border: none !important; + + &:focus { + box-shadow: none; + } + } + + input::placeholder { + color: var(--color-base); + } + + .multiselect__tags { + border-radius: var(--radius-md); + background: var(--color-button-bg); + box-shadow: var(--shadow-inset-sm); + border: none; + cursor: pointer; + padding-left: 0.5rem; + font-size: 1rem; + + transition: background-color 0.1s ease-in-out; + + &:active { + filter: brightness(1.25); + + .multiselect__spinner { + filter: brightness(1.25); + } + } + + .multiselect__single { + background: transparent; + } + + .multiselect__tag { + border-radius: var(--radius-md); + color: var(--color-base); + background: transparent; + border: 2px solid var(--color-brand); + } + + .multiselect__tag-icon { + background: transparent; + + &:after { + color: var(--color-contrast); + } + } + + .multiselect__placeholder { + color: var(--color-base); + margin-left: 0.5rem; + margin-bottom: 8px; + opacity: 0.6; + font-size: 1rem; + line-height: 16px; + } + } + + .multiselect__content-wrapper { + background: var(--color-button-bg); + border: none; + overflow-x: hidden; + box-shadow: var(--shadow-inset-sm), var(--shadow-floating); + width: 100%; + + .multiselect__element { + .multiselect__option--highlight { + background: var(--color-button-bg); + filter: brightness(1.25); + color: var(--color-contrast); + } + + .multiselect__option--selected { + background: var(--color-brand); + font-weight: bold; + color: var(--color-accent-contrast); + } + } + } + + .multiselect__spinner { + background: var(--color-button-bg); + + &:active { + filter: brightness(1.25); + } + } + + &.multiselect--disabled { + background: none; + + .multiselect__current, + .multiselect__select { + background: none; + } + } +} + +.multiselect--above .multiselect__content-wrapper { + border-top: none !important; + border-top-left-radius: var(--radius-md) !important; + border-top-right-radius: var(--radius-md) !important; +} diff --git a/libs/omorphia/lib/assets/styles/defaults.scss b/libs/omorphia/lib/assets/styles/defaults.scss new file mode 100644 index 000000000..11e5fc36b --- /dev/null +++ b/libs/omorphia/lib/assets/styles/defaults.scss @@ -0,0 +1,230 @@ +// Use border box on everything to preserve everyone's sanity +* { + box-sizing: border-box; +} + +body { + // Defaults + background-color: var(--color-bg); + color: var(--color-base); + --font-standard: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Roboto, + Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + --mono-font: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; + font-family: var(--font-standard); + font-size: 16px; + font-weight: var(--font-weight-regular); + margin: 0; + padding: 0; + + // Font Sizes + --font-size-xxs: 0.625rem; //10px + --font-size-xs: 0.75rem; //12px + --font-size-sm: 0.875rem; //14px + --font-size-nm: 1rem; //16px + --font-size-md: 1.125rem; //18px + --font-size-lg: 1.25rem; //20px + --font-size-xl: 1.5rem; //24px + --font-size-2xl: 2rem; //32px + --font-size-3xl: 3rem; //48px + + // Font Weights + --font-weight-regular: 400; + --font-weight-medium: 500; + --font-weight-bold: 700; + --font-weight-extrabold: 800; + + --font-weight-text: var(--font-weight-medium); + --font-weight-heading: var(--font-weight-extrabold); + --font-weight-title: var(--font-weight-extrabold); +} + +a.uncolored { + color: inherit; +} + +input[type='text'], +input[type='url'], +input[type='number'], +input[type='password'], +textarea, +.input-text-inherit, +.cm-content { + border-radius: var(--radius-md); + box-sizing: border-box; + // safari iOS rounds inputs by default + // set the appearance to none to prevent this + appearance: none !important; + background: var(--color-button-bg); + color: var(--color-base); + padding: 0.5rem 1rem; + font-weight: var(--font-weight-medium); + transition: box-shadow 0.1s ease-in-out; + min-height: 40px; + box-shadow: var(--shadow-inset-sm), 0 0 0 0 transparent; + border: none; + outline: none; + + &:focus, + &:focus-visible { + box-shadow: inset 0 0 0 transparent, 0 0 0 0.25rem var(--color-brand-shadow); + color: var(--color-contrast); + outline: none; + } + + &:disabled, + &[disabled] { + opacity: 0.6; + pointer-events: none; + cursor: not-allowed; + } + + &:focus::placeholder { + opacity: 0.8; + } + + &::placeholder { + color: var(--color-base); + opacity: 0.6; + } +} + +.cm-content { + white-space: pre-wrap !important; +} + +input[type='number'] { + &::-webkit-inner-spin-button, + &::-webkit-outer-spin-button { + -webkit-appearance: none; + margin: 0; + } +} + +.dropdown-input { + display: flex; + flex-direction: row; + gap: 1px; + .animated-dropdown { + width: unset; + + .selected { + border-radius: var(--radius-md) 0 0 var(--radius-md); + + &.render-down { + border-radius: var(--radius-md) 0 0 0; + } + + &.render-up { + border-radius: 0 0 0 var(--radius-md); + } + } + } + + input { + border-radius: 0 var(--radius-md) var(--radius-md) 0; + } +} + +.iconified-input { + align-items: center; + display: inline-flex; + position: relative; + + input { + padding: 0 2.5rem; + width: 100%; + } + + &:focus-within svg { + opacity: 1; + color: var(--color-contrast); + } + + svg { + position: absolute; + left: 0.75rem; + height: 1.25rem; + width: 1.25rem; + z-index: 1; + + color: var(--color-base); + opacity: 0.6; + } + + .r-btn { + @extend .transparent, .icon-only; + + position: absolute; + right: 0.25rem; + z-index: 1; + + svg { + position: relative; + left: 0; + } + } +} + +svg { + height: 1em; + width: 1em; +} + +.chart { + svg { + height: 100%; + width: 100%; + } +} + +.button-animation { + transition: opacity 0.5s ease-in-out, filter 0.2s ease-in-out, transform 0.05s ease-in-out, + outline 0.2s ease-in-out; + + &:active:not(&:disabled) { + transform: scale(0.95); + } +} + +input, +button { + &:disabled { + cursor: not-allowed !important; + } +} + +@media (prefers-reduced-motion) { + .button-animation, + button { + transform: none !important; + } +} + +input, +button { + &:disabled { + cursor: not-allowed !important; + } +} + +@media (prefers-reduced-motion) { + .button-animation, + button { + transform: none !important; + } +} + +h1 { + color: var(--color-contrast); +} + +h2 { + margin-top: 0; + margin-bottom: 1rem; + color: var(--color-contrast); +} + +h3 { + margin-block: var(--gap-md) var(--gap-md); + color: var(--color-contrast); +} diff --git a/libs/omorphia/lib/assets/styles/highlightjs.scss b/libs/omorphia/lib/assets/styles/highlightjs.scss new file mode 100644 index 000000000..351c093f0 --- /dev/null +++ b/libs/omorphia/lib/assets/styles/highlightjs.scss @@ -0,0 +1,89 @@ +.hljs, +.hljs-subst { + color: #444; +} + +.hljs-comment { + color: #888888; +} + +.hljs-keyword, +.hljs-attribute, +.hljs-selector-tag, +.hljs-meta-keyword, +.hljs-doctag, +.hljs-name { + color: #f58300; + font-weight: bold; +} + +.hljs-type, +.hljs-string, +.hljs-number, +.hljs-selector-id, +.hljs-selector-class, +.hljs-quote, +.hljs-template-tag, +.hljs-deletion { + color: var(--color-brand); +} + +.hljs-title, +.hljs-section { + color: #008888; + font-weight: bold; +} + +.hljs-regexp, +.hljs-symbol, +.hljs-variable, +.hljs-template-variable, +.hljs-link, +.hljs-selector-attr, +.hljs-selector-pseudo { + color: #bc6060; +} + +.hljs-literal { + color: #78a960; +} + +.hljs-built_in, +.hljs-bullet, +.hljs-code, +.hljs-addition { + color: #f58300; +} + +.hljs-meta { + color: #1f7199; +} + +.hljs-meta-string { + color: #4d99bf; +} + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: bold; +} + +pre { + background-color: #222222; + padding: 1em 1em 1em 1em; + border-width: 5px; + border-radius: 2em; + border-color: var(--color-brand); + overflow-x: hidden; + + code { + line-height: 100%; + padding: 0.2em; + letter-spacing: -0.05em; + word-break: normal; + font-family: monospace; + } +} diff --git a/libs/omorphia/lib/assets/styles/inter.scss b/libs/omorphia/lib/assets/styles/inter.scss new file mode 100644 index 000000000..41f16c8b1 --- /dev/null +++ b/libs/omorphia/lib/assets/styles/inter.scss @@ -0,0 +1,40 @@ +@font-face { + font-family: inter; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Regular.woff2?v=3.19') format('woff2'), + url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Regular.woff?v=3.19') format('woff'); +} +@font-face { + font-family: inter; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Medium.woff2?v=3.19') format('woff2'), + url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Medium.woff?v=3.19') format('woff'); +} +@font-face { + font-family: inter; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url('https://cdn-raw.modrinth.com/fonts/inter/Inter-SemiBold.woff2?v=3.19') format('woff2'), + url('https://cdn-raw.modrinth.com/fonts/inter/Inter-SemiBold.woff?v=3.19') format('woff'); +} +@font-face { + font-family: inter; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Bold.woff2?v=3.19') format('woff2'), + url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Bold.woff?v=3.19') format('woff'); +} +@font-face { + font-family: inter; + font-style: normal; + font-weight: 800; + font-display: swap; + src: url('https://cdn-raw.modrinth.com/fonts/inter/Inter-ExtraBold.woff2?v=3.19') format('woff2'), + url('https://cdn-raw.modrinth.com/fonts/inter/Inter-ExtraBold.woff?v=3.19') format('woff'); +} diff --git a/libs/omorphia/lib/assets/styles/normalize.scss b/libs/omorphia/lib/assets/styles/normalize.scss new file mode 100644 index 000000000..2768db43c --- /dev/null +++ b/libs/omorphia/lib/assets/styles/normalize.scss @@ -0,0 +1,351 @@ +/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers. + */ + +body { + margin: 0; +} + +/** + * Render the `main` element consistently in IE. + */ + +main { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Remove the gray background on active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * 1. Remove the bottom border in Chrome 57- + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove the border on images inside links in IE 10. + */ + +img { + border-style: none; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers. + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: inherit; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { + /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { + /* 1 */ + text-transform: none; +} + +/** + * Correct the inability to style clickable types in iOS and Safari. + */ + +button, +[type='button'], +[type='reset'], +[type='submit'] { + -webkit-appearance: button; +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type='button']::-moz-focus-inner, +[type='reset']::-moz-focus-inner, +[type='submit']::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type='button']:-moz-focusring, +[type='reset']:-moz-focusring, +[type='submit']:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + vertical-align: baseline; +} + +/** + * Remove the default vertical scrollbar in IE 10+. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10. + * 2. Remove the padding in IE 10. + */ + +[type='checkbox'], +[type='radio'] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type='number']::-webkit-inner-spin-button, +[type='number']::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type='search'] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding in Chrome and Safari on macOS. + */ + +[type='search']::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in Edge, IE 10+, and Firefox. + */ + +details { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Misc + ========================================================================== */ + +/** + * Add the correct display in IE 10+. + */ + +template { + display: none; +} + +/** + * Add the correct display in IE 10. + */ + +[hidden] { + display: none; +} diff --git a/libs/omorphia/lib/assets/styles/variables.scss b/libs/omorphia/lib/assets/styles/variables.scss new file mode 100644 index 000000000..bcf99e823 --- /dev/null +++ b/libs/omorphia/lib/assets/styles/variables.scss @@ -0,0 +1,108 @@ +html { + @extend .light-mode; + --dark-color-base: #b0bac5; + --dark-color-contrast: #ecf9fb; + + --color-ad: rgba(125, 75, 162, 0.2); + --color-ad-raised: rgba(190, 140, 243, 0.5); + --color-ad-contrast: black; + --color-ad-highlight: var(--color-purple); + + --gap-xs: 0.25rem; + --gap-sm: 0.5rem; + --gap-md: 0.75rem; + --gap-lg: 1rem; + --gap-xl: 1.5rem; + + --radius-xs: 0.25rem; + --radius-sm: 0.5rem; + --radius-md: 0.75rem; + --radius-lg: 1rem; + --radius-xl: 1.25rem; + --radius-max: 999999999px; +} + +.light-mode, +.light { + --color-bg: #e5e7eb; + --color-raised-bg: #ffffff; + --color-super-raised-bg: #e9e9e9; + --color-button-bg: hsl(220, 13%, 91%); + + --color-base: hsl(221, 39%, 11%); + --color-secondary: #6b7280; + --color-contrast: #1a202c; + --color-accent-contrast: #ffffff; + + --color-red: #cb2245; + --color-orange: #e08325; + --color-green: #00af5c; + --color-blue: #1f68c0; + --color-purple: #8e32f3; + --color-gray: #595b61; + + --color-brand: var(--color-green); + --color-brand-highlight: rgba(0, 175, 92, 0.25); + --color-brand-shadow: rgba(0, 175, 92, 0.7); + + --shadow-inset-lg: inset 0px -2px 2px hsla(221, 39%, 11%, 0.1); + --shadow-inset: inset 0px -2px 2px hsla(221, 39%, 11%, 0.05); + --shadow-inset-sm: inset 0px -1px 2px hsla(221, 39%, 11%, 0.15); + + --shadow-raised-lg: 0px 2px 4px hsla(221, 39%, 11%, 0.2); + --shadow-raised: 0.3px 0.5px 0.6px hsl(var(--shadow-color) / 0.15), + 1px 2px 2.2px -1.7px hsl(var(--shadow-color) / 0.12), + 4.4px 8.8px 9.7px -3.4px hsl(var(--shadow-color) / 0.09); + --shadow-floating: hsla(0, 0%, 0%, 0) 0px 0px 0px 0px, hsla(0, 0%, 0%, 0) 0px 0px 0px 0px, + hsla(0, 0%, 0%, 0.1) 0px 4px 6px -1px, hsla(0, 0%, 0%, 0.1) 0px 2px 4px -1px; + + --shadow-card: rgba(50, 50, 100, 0.1) 0px 2px 4px 0px; + + --color-tooltip-text: var(--color-accent-contrast); + --color-tooltip-bg: var(--color-base); +} + +.dark-mode, +.dark { + --color-bg: #16181c; + --color-raised-bg: #26292f; + --color-super-raised-bg: #40434a; + --color-button-bg: hsl(222, 13%, 30%); + + --color-base: var(--dark-color-base); + --color-secondary: #96a2b0; + --color-contrast: var(--dark-color-contrast); + --color-accent-contrast: #000000; + + --color-red: #ff496e; + --color-orange: #ffa347; + --color-green: #1bd96a; + --color-blue: #4f9cff; + --color-purple: #c78aff; + --color-gray: #9fa4b3; + + --color-brand: var(--color-green); + --color-brand-highlight: rgba(27, 217, 106, 0.25); + --color-brand-shadow: rgba(27, 217, 106, 0.7); + + --shadow-inset-lg: inset 0px -2px 2px hsla(221, 39%, 11%, 0.1); + --shadow-inset: inset 0px -2px 2px hsla(221, 39%, 11%, 0.05); + --shadow-inset-sm: inset 0px -1px 1px hsla(221, 39%, 11%, 0.25); + + --shadow-raised-lg: 0px 2px 4px hsla(221, 39%, 11%, 0.2); + --shadow-raised: 0px -2px 4px hsla(221, 39%, 11%, 0.1); + --shadow-floating: hsla(0, 0%, 0%, 0) 0px 0px 0px 0px, hsla(0, 0%, 0%, 0) 0px 0px 0px 0px, + hsla(0, 0%, 0%, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px; + + --shadow-card: rgba(0, 0, 0, 0.25) 0px 2px 4px 0px; + + --color-tooltip-text: var(--color-base); + --color-tooltip-bg: var(--color-button-bg); +} + +.oled-mode { + @extend .dark-mode; + --color-bg: #000000; + --color-raised-bg: #101013; + --color-button-bg: #222329; +} diff --git a/libs/omorphia/lib/components/base/Avatar.vue b/libs/omorphia/lib/components/base/Avatar.vue new file mode 100644 index 000000000..e4b852e58 --- /dev/null +++ b/libs/omorphia/lib/components/base/Avatar.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/Badge.vue b/libs/omorphia/lib/components/base/Badge.vue new file mode 100644 index 000000000..371d45c70 --- /dev/null +++ b/libs/omorphia/lib/components/base/Badge.vue @@ -0,0 +1,253 @@ + + + + diff --git a/libs/omorphia/lib/components/base/Button.vue b/libs/omorphia/lib/components/base/Button.vue new file mode 100644 index 000000000..de2da5ec0 --- /dev/null +++ b/libs/omorphia/lib/components/base/Button.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/Card.vue b/libs/omorphia/lib/components/base/Card.vue new file mode 100644 index 000000000..a5c8346df --- /dev/null +++ b/libs/omorphia/lib/components/base/Card.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/Checkbox.vue b/libs/omorphia/lib/components/base/Checkbox.vue new file mode 100644 index 000000000..44931bca2 --- /dev/null +++ b/libs/omorphia/lib/components/base/Checkbox.vue @@ -0,0 +1,133 @@ + + + + diff --git a/libs/omorphia/lib/components/base/Chips.vue b/libs/omorphia/lib/components/base/Chips.vue new file mode 100644 index 000000000..d3759ea52 --- /dev/null +++ b/libs/omorphia/lib/components/base/Chips.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/ConditionalNuxtLink.vue b/libs/omorphia/lib/components/base/ConditionalNuxtLink.vue new file mode 100644 index 000000000..93b279d2b --- /dev/null +++ b/libs/omorphia/lib/components/base/ConditionalNuxtLink.vue @@ -0,0 +1,21 @@ + + + diff --git a/libs/omorphia/lib/components/base/CopyCode.vue b/libs/omorphia/lib/components/base/CopyCode.vue new file mode 100644 index 000000000..b54d7ea81 --- /dev/null +++ b/libs/omorphia/lib/components/base/CopyCode.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/DoubleIcon.vue b/libs/omorphia/lib/components/base/DoubleIcon.vue new file mode 100644 index 000000000..ff054e837 --- /dev/null +++ b/libs/omorphia/lib/components/base/DoubleIcon.vue @@ -0,0 +1,34 @@ + + + diff --git a/libs/omorphia/lib/components/base/DropArea.vue b/libs/omorphia/lib/components/base/DropArea.vue new file mode 100644 index 000000000..e23479b42 --- /dev/null +++ b/libs/omorphia/lib/components/base/DropArea.vue @@ -0,0 +1,98 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/DropdownSelect.vue b/libs/omorphia/lib/components/base/DropdownSelect.vue new file mode 100644 index 000000000..609d5cdf1 --- /dev/null +++ b/libs/omorphia/lib/components/base/DropdownSelect.vue @@ -0,0 +1,330 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/EnvironmentIndicator.vue b/libs/omorphia/lib/components/base/EnvironmentIndicator.vue new file mode 100644 index 000000000..95848c597 --- /dev/null +++ b/libs/omorphia/lib/components/base/EnvironmentIndicator.vue @@ -0,0 +1,114 @@ + + + diff --git a/libs/omorphia/lib/components/base/FileInput.vue b/libs/omorphia/lib/components/base/FileInput.vue new file mode 100644 index 000000000..21c8c3a6c --- /dev/null +++ b/libs/omorphia/lib/components/base/FileInput.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/MarkdownEditor.vue b/libs/omorphia/lib/components/base/MarkdownEditor.vue new file mode 100644 index 000000000..569536793 --- /dev/null +++ b/libs/omorphia/lib/components/base/MarkdownEditor.vue @@ -0,0 +1,952 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/Notifications.vue b/libs/omorphia/lib/components/base/Notifications.vue new file mode 100644 index 000000000..e377a52a2 --- /dev/null +++ b/libs/omorphia/lib/components/base/Notifications.vue @@ -0,0 +1,141 @@ + + + diff --git a/libs/omorphia/lib/components/base/OverflowMenu.vue b/libs/omorphia/lib/components/base/OverflowMenu.vue new file mode 100644 index 000000000..d597b5fa2 --- /dev/null +++ b/libs/omorphia/lib/components/base/OverflowMenu.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/Page.vue b/libs/omorphia/lib/components/base/Page.vue new file mode 100644 index 000000000..95a0d1168 --- /dev/null +++ b/libs/omorphia/lib/components/base/Page.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/Pagination.vue b/libs/omorphia/lib/components/base/Pagination.vue new file mode 100644 index 000000000..221da9971 --- /dev/null +++ b/libs/omorphia/lib/components/base/Pagination.vue @@ -0,0 +1,199 @@ + + + + diff --git a/libs/omorphia/lib/components/base/PopoutMenu.vue b/libs/omorphia/lib/components/base/PopoutMenu.vue new file mode 100644 index 000000000..d979ac083 --- /dev/null +++ b/libs/omorphia/lib/components/base/PopoutMenu.vue @@ -0,0 +1,213 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/ProjectCard.vue b/libs/omorphia/lib/components/base/ProjectCard.vue new file mode 100644 index 000000000..35f660f9a --- /dev/null +++ b/libs/omorphia/lib/components/base/ProjectCard.vue @@ -0,0 +1,585 @@ + + + + + + + diff --git a/libs/omorphia/lib/components/base/Promotion.vue b/libs/omorphia/lib/components/base/Promotion.vue new file mode 100644 index 000000000..f83f8c4c6 --- /dev/null +++ b/libs/omorphia/lib/components/base/Promotion.vue @@ -0,0 +1,125 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/Slider.vue b/libs/omorphia/lib/components/base/Slider.vue new file mode 100644 index 000000000..babc01ce4 --- /dev/null +++ b/libs/omorphia/lib/components/base/Slider.vue @@ -0,0 +1,245 @@ + + + + + diff --git a/libs/omorphia/lib/components/base/Toggle.vue b/libs/omorphia/lib/components/base/Toggle.vue new file mode 100644 index 000000000..aeb01433f --- /dev/null +++ b/libs/omorphia/lib/components/base/Toggle.vue @@ -0,0 +1,35 @@ + + + diff --git a/libs/omorphia/lib/components/brand/AnimatedLogo.vue b/libs/omorphia/lib/components/brand/AnimatedLogo.vue new file mode 100644 index 000000000..e6cea1b79 --- /dev/null +++ b/libs/omorphia/lib/components/brand/AnimatedLogo.vue @@ -0,0 +1,98 @@ + + + diff --git a/libs/omorphia/lib/components/brand/TextLogo.vue b/libs/omorphia/lib/components/brand/TextLogo.vue new file mode 100644 index 000000000..3c49c169e --- /dev/null +++ b/libs/omorphia/lib/components/brand/TextLogo.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/libs/omorphia/lib/components/chart/Chart.vue b/libs/omorphia/lib/components/chart/Chart.vue new file mode 100644 index 000000000..3321ce2cf --- /dev/null +++ b/libs/omorphia/lib/components/chart/Chart.vue @@ -0,0 +1,417 @@ + + + + + diff --git a/libs/omorphia/lib/components/chart/CompactChart.vue b/libs/omorphia/lib/components/chart/CompactChart.vue new file mode 100644 index 000000000..72bf4a9c9 --- /dev/null +++ b/libs/omorphia/lib/components/chart/CompactChart.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/libs/omorphia/lib/components/icons.js b/libs/omorphia/lib/components/icons.js new file mode 100644 index 000000000..3efe2ef60 --- /dev/null +++ b/libs/omorphia/lib/components/icons.js @@ -0,0 +1,301 @@ +// NOTE: re-export using consts to help TypeScript resolve the proper type + +// Branding +import _ModrinthIcon from '@/assets/branding/logo.svg?component' +export const ModrinthIcon = _ModrinthIcon +import _FourOhFourNotFound from '@/assets/branding/404.svg?component' +export const FourOhFourNotFound = _FourOhFourNotFound + +// External Icons +import _SSODiscordIcon from '@/assets/external/sso/discord.svg?component' +export const SSODiscordIcon = _SSODiscordIcon +import _SSOGitHubIcon from '@/assets/external/sso/github.svg?component' +export const SSOGitHubIcon = _SSOGitHubIcon +import _SSOGitLabIcon from '@/assets/external/sso/gitlab.svg?component' +export const SSOGitLabIcon = _SSOGitLabIcon +import _SSOGoogleIcon from '@/assets/external/sso/google.svg?component' +export const SSOGoogleIcon = _SSOGoogleIcon +import _SSOMicrosoftIcon from '@/assets/external/sso/microsoft.svg?component' +export const SSOMicrosoftIcon = _SSOMicrosoftIcon +import _SSOSteamIcon from '@/assets/external/sso/steam.svg?component' +export const SSOSteamIcon = _SSOSteamIcon +import _AppleIcon from '@/assets/external/apple.svg?component' +export const AppleIcon = _AppleIcon +import _BisectIcon from '@/assets/external/bh.svg?component' +export const BisectIcon = _BisectIcon +import _BuyMeACoffeeIcon from '@/assets/external/bmac.svg?component' +export const BuyMeACoffeeIcon = _BuyMeACoffeeIcon +import _DiscordIcon from '@/assets/external/discord.svg?component' +export const DiscordIcon = _DiscordIcon +import _KoFiIcon from '@/assets/external/kofi.svg?component' +export const KoFiIcon = _KoFiIcon +import _MastodonIcon from '@/assets/external/mastodon.svg?component' +export const MastodonIcon = _MastodonIcon +import _OpenCollectiveIcon from '@/assets/external/opencollective.svg?component' +export const OpenCollectiveIcon = _OpenCollectiveIcon +import _PatreonIcon from '@/assets/external/patreon.svg?component' +export const PatreonIcon = _PatreonIcon +import _PayPalIcon from '@/assets/external/paypal.svg?component' +export const PayPalIcon = _PayPalIcon +import _RedditIcon from '@/assets/external/reddit.svg?component' +export const RedditIcon = _RedditIcon +import _TwitterIcon from '@/assets/external/twitter.svg?component' +export const TwitterIcon = _TwitterIcon +import _WindowsIcon from '@/assets/external/windows.svg?component' +export const WindowsIcon = _WindowsIcon +import _YouTubeIcon from '@/assets/icons/youtube.svg?component' +export const YouTubeIcon = _YouTubeIcon + +// Icons +import _AlignLeftIcon from '@/assets/icons/align-left.svg?component' +export const AlignLeftIcon = _AlignLeftIcon +import _ArchiveIcon from '@/assets/icons/archive.svg?component' +export const ArchiveIcon = _ArchiveIcon +import _AsteriskIcon from '@/assets/icons/asterisk.svg?component' +export const AsteriskIcon = _AsteriskIcon +import _BellIcon from '@/assets/icons/bell.svg?component' +export const BellIcon = _BellIcon +import _BellRingIcon from '@/assets/icons/bell-ring.svg?component' +export const BellRingIcon = _BellRingIcon +import _BookIcon from '@/assets/icons/book.svg?component' +export const BookIcon = _BookIcon +import _BookmarkIcon from '@/assets/icons/bookmark.svg?component' +export const BookmarkIcon = _BookmarkIcon +import _BoxIcon from '@/assets/icons/box.svg?component' +export const BoxIcon = _BoxIcon +import _CalendarIcon from '@/assets/icons/calendar.svg?component' +export const CalendarIcon = _CalendarIcon +import _ChartIcon from '@/assets/icons/chart.svg?component' +export const ChartIcon = _ChartIcon +import _CheckIcon from '@/assets/icons/check.svg?component' +export const CheckIcon = _CheckIcon +import _CheckCheckIcon from '@/assets/icons/check-check.svg?component' +export const CheckCheckIcon = _CheckCheckIcon +import _CheckCircleIcon from '@/assets/icons/check-circle.svg?component' +export const CheckCircleIcon = _CheckCircleIcon +import _ChevronLeftIcon from '@/assets/icons/chevron-left.svg?component' +export const ChevronLeftIcon = _ChevronLeftIcon +import _ChevronRightIcon from '@/assets/icons/chevron-right.svg?component' +export const ChevronRightIcon = _ChevronRightIcon +import _ClearIcon from '@/assets/icons/clear.svg?component' +export const ClearIcon = _ClearIcon +import _ClientIcon from '@/assets/icons/client.svg?component' +export const ClientIcon = _ClientIcon +import _ClipboardCopyIcon from '@/assets/icons/clipboard-copy.svg?component' +export const ClipboardCopyIcon = _ClipboardCopyIcon +import _CodeIcon from '@/assets/icons/code.svg?component' +export const CodeIcon = _CodeIcon +import _CoinsIcon from '@/assets/icons/coins.svg?component' +export const CoinsIcon = _CoinsIcon +import _ContractIcon from '@/assets/icons/contract.svg?component' +export const ContractIcon = _ContractIcon +import _CopyIcon from '@/assets/icons/copy.svg?component' +export const CopyIcon = _CopyIcon +import _CopyrightIcon from '@/assets/icons/copyright.svg?component' +export const CopyrightIcon = _CopyrightIcon +import _CurrencyIcon from '@/assets/icons/currency.svg?component' +export const CurrencyIcon = _CurrencyIcon +import _DashboardIcon from '@/assets/icons/dashboard.svg?component' +export const DashboardIcon = _DashboardIcon +import _DownloadIcon from '@/assets/icons/download.svg?component' +export const DownloadIcon = _DownloadIcon +import _DropdownIcon from '@/assets/icons/dropdown.svg?component' +export const DropdownIcon = _DropdownIcon +import _EditIcon from '@/assets/icons/edit.svg?component' +export const EditIcon = _EditIcon +import _ExitIcon from '@/assets/icons/x.svg?component' +export const ExitIcon = _ExitIcon +import _ExpandIcon from '@/assets/icons/expand.svg?component' +export const ExpandIcon = _ExpandIcon +import _ExternalIcon from '@/assets/icons/external.svg?component' +export const ExternalIcon = _ExternalIcon +import _EyeIcon from '@/assets/icons/eye.svg?component' +export const EyeIcon = _EyeIcon +import _EyeOffIcon from '@/assets/icons/eye-off.svg?component' +export const EyeOffIcon = _EyeOffIcon +import _FileIcon from '@/assets/icons/file.svg?component' +export const FileIcon = _FileIcon +import _FileTextIcon from '@/assets/icons/file-text.svg?component' +export const FileTextIcon = _FileTextIcon +import _FilterIcon from '@/assets/icons/filter.svg?component' +export const FilterIcon = _FilterIcon +import _FolderOpenIcon from '@/assets/icons/folder-open.svg?component' +export const FolderOpenIcon = _FolderOpenIcon +import _FolderSearchIcon from '@/assets/icons/folder-search.svg?component' +export const FolderSearchIcon = _FolderSearchIcon +import _GapIcon from '@/assets/icons/gap.svg?component' +export const GapIcon = _GapIcon +import _GitHubIcon from '@/assets/icons/github.svg?component' +export const GitHubIcon = _GitHubIcon +import _GlobeIcon from '@/assets/icons/globe.svg?component' +export const GlobeIcon = _GlobeIcon +import _GridIcon from '@/assets/icons/grid.svg?component' +export const GridIcon = _GridIcon +import _HamburgerIcon from '@/assets/icons/hamburger.svg?component' +export const HamburgerIcon = _HamburgerIcon +import _HammerIcon from '@/assets/icons/hammer.svg?component' +export const HammerIcon = _HammerIcon +import _HashIcon from '@/assets/icons/hash.svg?component' +export const HashIcon = _HashIcon +import _HeartIcon from '@/assets/icons/heart.svg?component' +export const HeartIcon = _HeartIcon +import _HeartHandshakeIcon from '@/assets/icons/heart-handshake.svg?component' +export const HeartHandshakeIcon = _HeartHandshakeIcon +import _HistoryIcon from '@/assets/icons/history.svg?component' +export const HistoryIcon = _HistoryIcon +import _HomeIcon from '@/assets/icons/home.svg?component' +export const HomeIcon = _HomeIcon +import _ImageIcon from '@/assets/icons/image.svg?component' +export const ImageIcon = _ImageIcon +import _InfoIcon from '@/assets/icons/info.svg?component' +export const InfoIcon = _InfoIcon +import _IssuesIcon from '@/assets/icons/issues.svg?component' +export const IssuesIcon = _IssuesIcon +import _KeyIcon from '@/assets/icons/key.svg?component' +export const KeyIcon = _KeyIcon +import _LanguagesIcon from '@/assets/icons/languages.svg?component' +export const LanguagesIcon = _LanguagesIcon +import _LeftArrowIcon from '@/assets/icons/left-arrow.svg?component' +export const LeftArrowIcon = _LeftArrowIcon +import _LibraryIcon from '@/assets/icons/library.svg?component' +export const LibraryIcon = _LibraryIcon +import _LightBulbIcon from '@/assets/icons/light-bulb.svg?component' +export const LightBulbIcon = _LightBulbIcon +import _LinkIcon from '@/assets/icons/link.svg?component' +export const LinkIcon = _LinkIcon +import _ListIcon from '@/assets/icons/list.svg?component' +export const ListIcon = _ListIcon +import _ListEndIcon from '@/assets/icons/list-end.svg?component' +export const ListEndIcon = _ListEndIcon +import _LockIcon from '@/assets/icons/lock.svg?component' +export const LockIcon = _LockIcon +import _LogInIcon from '@/assets/icons/log-in.svg?component' +export const LogInIcon = _LogInIcon +import _LogOutIcon from '@/assets/icons/log-out.svg?component' +export const LogOutIcon = _LogOutIcon +import _MailIcon from '@/assets/icons/mail.svg?component' +export const MailIcon = _MailIcon +import _MessageIcon from '@/assets/icons/message.svg?component' +export const MessageIcon = _MessageIcon +import _MicrophoneIcon from '@/assets/icons/microphone.svg?component' +export const MicrophoneIcon = _MicrophoneIcon +import _MoonIcon from '@/assets/icons/moon.svg?component' +export const MoonIcon = _MoonIcon +import _MoreHorizontalIcon from '@/assets/icons/more-horizontal.svg?component' +export const MoreHorizontalIcon = _MoreHorizontalIcon +import _MoreVerticalIcon from '@/assets/icons/more-vertical.svg?component' +export const MoreVerticalIcon = _MoreVerticalIcon +import _OmorphiaIcon from '@/assets/icons/omorphia.svg?component' +export const OmorphiaIcon = _OmorphiaIcon +import _PaintBrushIcon from '@/assets/icons/paintbrush.svg?component' +export const PaintBrushIcon = _PaintBrushIcon +import _PlayIcon from '@/assets/icons/play.svg?component' +export const PlayIcon = _PlayIcon +import _PlusIcon from '@/assets/icons/plus.svg?component' +export const PlusIcon = _PlusIcon +import _RadioButtonIcon from '@/assets/icons/radio-button.svg?component' +export const RadioButtonIcon = _RadioButtonIcon +import _RadioButtonChecked from '@/assets/icons/radio-button-checked.svg?component' +export const RadioButtonChecked = _RadioButtonChecked +import _ReplyIcon from '@/assets/icons/reply.svg?component' +export const ReplyIcon = _ReplyIcon +import _ReportIcon from '@/assets/icons/report.svg?component' +export const ReportIcon = _ReportIcon +import _RightArrowIcon from '@/assets/icons/right-arrow.svg?component' +export const RightArrowIcon = _RightArrowIcon +import _SaveIcon from '@/assets/icons/save.svg?component' +export const SaveIcon = _SaveIcon +import _ScaleIcon from '@/assets/icons/scale.svg?component' +export const ScaleIcon = _ScaleIcon +import _ScanEyeIcon from '@/assets/icons/scan-eye.svg?component' +export const ScanEyeIcon = _ScanEyeIcon +import _SearchIcon from '@/assets/icons/search.svg?component' +export const SearchIcon = _SearchIcon +import _SendIcon from '@/assets/icons/send.svg?component' +export const SendIcon = _SendIcon +import _ServerIcon from '@/assets/icons/server.svg?component' +export const ServerIcon = _ServerIcon +import _SettingsIcon from '@/assets/icons/settings.svg?component' +export const SettingsIcon = _SettingsIcon +import _ShareIcon from '@/assets/icons/share.svg?component' +export const ShareIcon = _ShareIcon +import _ShieldIcon from '@/assets/icons/shield.svg?component' +export const ShieldIcon = _ShieldIcon +import _SlashIcon from '@/assets/icons/slash.svg?component' +export const SlashIcon = _SlashIcon +import _SortAscendingIcon from '@/assets/icons/sort-asc.svg?component' +export const SortAscendingIcon = _SortAscendingIcon +import _SortDescendingIcon from '@/assets/icons/sort-desc.svg?component' +export const SortDescendingIcon = _SortDescendingIcon +import _StarIcon from '@/assets/icons/star.svg?component' +export const StarIcon = _StarIcon +import _StopCircleIcon from '@/assets/icons/stop-circle.svg?component' +export const StopCircleIcon = _StopCircleIcon +import _SunIcon from '@/assets/icons/sun.svg?component' +export const SunIcon = _SunIcon +import _SunriseIcon from '@/assets/icons/sunrise.svg?component' +export const SunriseIcon = _SunriseIcon +import _TagIcon from '@/assets/icons/tag.svg?component' +export const TagIcon = _TagIcon +import _TagsIcon from '@/assets/icons/tags.svg?component' +export const TagsIcon = _TagsIcon +import _TerminalSquareIcon from '@/assets/icons/terminal-square.svg?component' +export const TerminalSquareIcon = _TerminalSquareIcon +import _TransferIcon from '@/assets/icons/transfer.svg?component' +export const TransferIcon = _TransferIcon +import _TrashIcon from '@/assets/icons/trash.svg?component' +export const TrashIcon = _TrashIcon +import _UndoIcon from '@/assets/icons/undo.svg?component' +export const UndoIcon = _UndoIcon +import _RedoIcon from '@/assets/icons/redo.svg?component' +export const RedoIcon = _RedoIcon +import _UnknownIcon from '@/assets/icons/unknown.svg?component' +export const UnknownIcon = _UnknownIcon +import _UnknownDonationIcon from '@/assets/icons/unknown-donation.svg?component' +export const UnknownDonationIcon = _UnknownDonationIcon +import _UpdatedIcon from '@/assets/icons/updated.svg?component' +export const UpdatedIcon = _UpdatedIcon +import _UploadIcon from '@/assets/icons/upload.svg?component' +export const UploadIcon = _UploadIcon +import _UserIcon from '@/assets/icons/user.svg?component' +export const UserIcon = _UserIcon +import _UserPlusIcon from '@/assets/icons/user-plus.svg?component' +export const UserPlusIcon = _UserPlusIcon +import _UserXIcon from '@/assets/icons/user-x.svg?component' +export const UserXIcon = _UserXIcon +import _UsersIcon from '@/assets/icons/users.svg?component' +export const UsersIcon = _UsersIcon +import _VersionIcon from '@/assets/icons/version.svg?component' +export const VersionIcon = _VersionIcon +import _WikiIcon from '@/assets/icons/wiki.svg?component' +export const WikiIcon = _WikiIcon +import _XIcon from '@/assets/icons/x.svg?component' +export const XIcon = _XIcon +import _XCircleIcon from '@/assets/icons/x-circle.svg?component' +export const XCircleIcon = _XCircleIcon +import _ZoomInIcon from '@/assets/icons/zoom-in.svg?component' +export const ZoomInIcon = _ZoomInIcon +import _ZoomOutIcon from '@/assets/icons/zoom-out.svg?component' +export const ZoomOutIcon = _ZoomOutIcon + +// Editor Icons +import _BoldIcon from '@/assets/icons/bold.svg?component' +export const BoldIcon = _BoldIcon +import _ItalicIcon from '@/assets/icons/italic.svg?component' +export const ItalicIcon = _ItalicIcon +import _UnderlineIcon from '@/assets/icons/underline.svg?component' +export const UnderlineIcon = _UnderlineIcon +import _StrikethroughIcon from '@/assets/icons/strikethrough.svg?component' +export const StrikethroughIcon = _StrikethroughIcon +import _ListBulletedIcon from '@/assets/icons/list-bulleted.svg?component' +export const ListBulletedIcon = _ListBulletedIcon +import _ListOrderedIcon from '@/assets/icons/list-ordered.svg?component' +export const ListOrderedIcon = _ListOrderedIcon +import _TextQuoteIcon from '@/assets/icons/text-quote.svg?component' +export const TextQuoteIcon = _TextQuoteIcon +import _Heading1Icon from '@/assets/icons/heading-1.svg?component' +export const Heading1Icon = _Heading1Icon +import _Heading2Icon from '@/assets/icons/heading-2.svg?component' +export const Heading2Icon = _Heading2Icon +import _Heading3Icon from '@/assets/icons/heading-3.svg?component' +export const Heading3Icon = _Heading3Icon diff --git a/libs/omorphia/lib/components/index.js b/libs/omorphia/lib/components/index.js new file mode 100644 index 000000000..000ab7584 --- /dev/null +++ b/libs/omorphia/lib/components/index.js @@ -0,0 +1,51 @@ +// Base content +export { default as Avatar } from './base/Avatar.vue' +export { default as Badge } from './base/Badge.vue' +export { default as Button } from './base/Button.vue' +export { default as Card } from './base/Card.vue' +export { default as Checkbox } from './base/Checkbox.vue' +export { default as Chips } from './base/Chips.vue' +export { default as ConditionalNuxtLink } from './base/ConditionalNuxtLink.vue' +export { default as CopyCode } from './base/CopyCode.vue' +export { default as DoubleIcon } from './base/DoubleIcon.vue' +export { default as DropArea } from './base/DropArea.vue' +export { default as DropdownSelect } from './base/DropdownSelect.vue' +export { default as EnvironmentIndicator } from './base/EnvironmentIndicator.vue' +export { default as FileInput } from './base/FileInput.vue' +export { default as MarkdownEditor } from './base/MarkdownEditor.vue' +export { default as Notifications } from './base/Notifications.vue' +export { default as OverflowMenu } from './base/OverflowMenu.vue' +export { default as Page } from './base/Page.vue' +export { default as Pagination } from './base/Pagination.vue' +export { default as PopoutMenu } from './base/PopoutMenu.vue' +export { default as ProjectCard } from './base/ProjectCard.vue' +export { default as Promotion } from './base/Promotion.vue' +export { default as Slider } from './base/Slider.vue' +export { default as Toggle } from './base/Toggle.vue' + +// Branding +export { default as AnimatedLogo } from './brand/AnimatedLogo.vue' +export { default as TextLogo } from './brand/TextLogo.vue' + +// Charts +export { default as Chart } from './chart/Chart.vue' +export { default as CompactChart } from './chart/CompactChart.vue' + +// Modals +export { default as Modal } from './modal/Modal.vue' +export { default as ConfirmModal } from './modal/ConfirmModal.vue' +export { default as ReportModal } from './modal/ReportModal.vue' +export { default as ShareModal } from './modal/ShareModal.vue' + +// Navigation +export { default as Breadcrumbs } from './nav/Breadcrumbs.vue' +export { default as NavItem } from './nav/NavItem.vue' +export { default as NavRow } from './nav/NavRow.vue' +export { default as NavStack } from './nav/NavStack.vue' + +// Search +export { default as Categories } from './search/Categories.vue' +export { default as SearchDropdown } from './search/SearchDropdown.vue' +export { default as SearchFilter } from './search/SearchFilter.vue' + +export * from './icons.js' diff --git a/libs/omorphia/lib/components/modal/ConfirmModal.vue b/libs/omorphia/lib/components/modal/ConfirmModal.vue new file mode 100644 index 000000000..57c9c7472 --- /dev/null +++ b/libs/omorphia/lib/components/modal/ConfirmModal.vue @@ -0,0 +1,125 @@ + + + + + diff --git a/libs/omorphia/lib/components/modal/Modal.vue b/libs/omorphia/lib/components/modal/Modal.vue new file mode 100644 index 000000000..fb076c896 --- /dev/null +++ b/libs/omorphia/lib/components/modal/Modal.vue @@ -0,0 +1,180 @@ + + + + + diff --git a/libs/omorphia/lib/components/modal/ReportModal.vue b/libs/omorphia/lib/components/modal/ReportModal.vue new file mode 100644 index 000000000..17c1c666a --- /dev/null +++ b/libs/omorphia/lib/components/modal/ReportModal.vue @@ -0,0 +1,123 @@ +