diff --git a/apps/knossos/.editorconfig b/apps/knossos/.editorconfig new file mode 100644 index 000000000..2930e090a --- /dev/null +++ b/apps/knossos/.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/apps/knossos/.eslintrc.js b/apps/knossos/.eslintrc.js new file mode 100644 index 000000000..c766c81f6 --- /dev/null +++ b/apps/knossos/.eslintrc.js @@ -0,0 +1,29 @@ +// @ts-check +/** @type {import("eslint").ESLint.ConfigData} */ +module.exports = { + root: true, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:vue/vue3-recommended', + '@nuxtjs/eslint-config-typescript', + 'plugin:prettier/recommended', // Integrate Prettier into ESLint + 'prettier', // Disable unnecessary ESLint rules in the presence of Prettier + 'plugin:import/recommended', + 'plugin:import/typescript', + ], + rules: { + 'no-console': 'off', + 'vue/no-v-html': 'off', + 'vue/multi-word-component-names': 'off', + 'import/extensions': ['error', 'always', { ignorePackages: true }], + }, + settings: { + 'import/parsers': { + '@typescript-eslint/parser': ['.ts', '.tsx'], + }, + 'import/resolver': { + typescript: true, + }, + }, +} diff --git a/apps/knossos/.github/ISSUE_TEMPLATE/bug_report.yml b/apps/knossos/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..c744593da --- /dev/null +++ b/apps/knossos/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,33 @@ +name: Bug report +description: Create a report to help us improve Modrinth +labels: [bug] +body: + - type: textarea + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. + validations: + required: false + - type: textarea + attributes: + label: Steps to reproduce + description: Steps to reproduce the behavior. + placeholder: | + 1. Go to '...' + 2. Click on '...' + 3. Scroll down to '...' + 4. See error + validations: + required: false + - type: textarea + attributes: + label: Expected behavior + description: A clear and concise description of what you expected to happen. + validations: + required: false + - type: textarea + attributes: + label: Additional context + description: Add any other context about the problem here. + validations: + required: false diff --git a/apps/knossos/.github/ISSUE_TEMPLATE/config.yml b/apps/knossos/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..454d8e6c4 --- /dev/null +++ b/apps/knossos/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,16 @@ +blank_issues_enabled: true +contact_links: + - name: Discord + about: Ask questions on our Discord Server. + url: https://discord.modrinth.com + - name: Roadmap + about: View our Roadmap. Please do not open issues for items on our roadmap. + url: https://roadmap.modrinth.com + - name: Discussions (Feature requests) + about: | + Please use Issues for reporting bugs and suggesting enhancements to existing features. + Suggestions for new features should be made as a Discussion. + url: https://github.com/orgs/modrinth/discussions/categories/feature-requests + - name: Documentation + about: Useful documentation about Modrinth, its API, and how you can contribute. + url: https://docs.modrinth.com diff --git a/apps/knossos/.github/ISSUE_TEMPLATE/enhancement.yml b/apps/knossos/.github/ISSUE_TEMPLATE/enhancement.yml new file mode 100644 index 000000000..dc98d3551 --- /dev/null +++ b/apps/knossos/.github/ISSUE_TEMPLATE/enhancement.yml @@ -0,0 +1,28 @@ +name: Enhancement +description: Suggest an enhancement for an existing Modrinth feature +labels: [enhancement] +body: + - type: textarea + attributes: + label: Is your suggested enhancement related to a problem? Please describe. + description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + validations: + required: false + - type: textarea + attributes: + label: Describe the solution you'd like + description: A clear and concise description of what you want to happen. + validations: + required: false + - type: textarea + attributes: + label: Describe alternatives you've considered + description: A clear and concise description of any alternative solutions or features you've considered. + validations: + required: false + - type: textarea + attributes: + label: Additional context + description: Add any other context or screenshots about the suggested enhancement here. + validations: + required: false diff --git a/apps/knossos/.github/workflows/deploy.yml b/apps/knossos/.github/workflows/deploy.yml new file mode 100644 index 000000000..3680b9136 --- /dev/null +++ b/apps/knossos/.github/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: Deploy + +on: push + +jobs: + deploy: + if: github.repository_owner == 'modrinth' + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + steps: + - name: Cloudflare Pages deployment + uses: WalshyDev/cf-pages-await@v1 + with: + apiToken: ${{ secrets.CF_API_TOKEN }} + accountId: '9ddae624c98677d68d93df6e524a6061' + project: 'knossos' + githubToken: ${{ secrets.GITHUB_TOKEN }} + commitHash: ${{ steps.push-changes.outputs.commit-hash }} diff --git a/apps/knossos/.github/workflows/nuxt.yml b/apps/knossos/.github/workflows/nuxt.yml new file mode 100644 index 000000000..3c02f5723 --- /dev/null +++ b/apps/knossos/.github/workflows/nuxt.yml @@ -0,0 +1,41 @@ +name: Build + Lint + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.x + - name: Install pnpm via corepack + shell: bash + run: | + corepack enable + corepack prepare --activate + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + - name: Setup pnpm cache + uses: actions/cache@v3 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + - name: Install dependencies + run: pnpm install + - name: Run Lint + run: pnpm lint + - name: Build + run: pnpm build diff --git a/apps/knossos/.github/workflows/regenerate.yml b/apps/knossos/.github/workflows/regenerate.yml new file mode 100644 index 000000000..a6fbe7f61 --- /dev/null +++ b/apps/knossos/.github/workflows/regenerate.yml @@ -0,0 +1,15 @@ +name: Regenerate tags + +on: + schedule: + - cron: '*/30 * * * *' + +jobs: + regenerate: + runs-on: ubuntu-latest + if: github.repository_owner == 'modrinth' + steps: + - name: Re-deploy site + run: | + curl -X POST \ + ${{ secrets.CLOUDFLARE_DEPLOY_URL }} diff --git a/apps/knossos/.gitignore b/apps/knossos/.gitignore new file mode 100644 index 000000000..9678d9bd0 --- /dev/null +++ b/apps/knossos/.gitignore @@ -0,0 +1,85 @@ +node_modules +*.log* +.nuxt +.nitro +.cache +.output +.env +.dev.vars +dist +.wrangler/ + +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 diff --git a/apps/knossos/.npmrc b/apps/knossos/.npmrc new file mode 100644 index 000000000..cf0404245 --- /dev/null +++ b/apps/knossos/.npmrc @@ -0,0 +1,2 @@ +shamefully-hoist=true +strict-peer-dependencies=false diff --git a/apps/knossos/.prettierignore b/apps/knossos/.prettierignore new file mode 100644 index 000000000..e4f20a1b4 --- /dev/null +++ b/apps/knossos/.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/apps/knossos/.prettierrc.json b/apps/knossos/.prettierrc.json new file mode 100644 index 000000000..ae07ef4ad --- /dev/null +++ b/apps/knossos/.prettierrc.json @@ -0,0 +1,6 @@ +{ + "printWidth": 100, + "semi": false, + "singleQuote": true, + "endOfLine": "auto" +} diff --git a/apps/knossos/.vscode/settings.json b/apps/knossos/.vscode/settings.json new file mode 100644 index 000000000..84814b831 --- /dev/null +++ b/apps/knossos/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "prettier.endOfLine": "lf", + "editor.formatOnSave": true +} diff --git a/apps/knossos/COPYING.md b/apps/knossos/COPYING.md new file mode 100644 index 000000000..21788ff01 --- /dev/null +++ b/apps/knossos/COPYING.md @@ -0,0 +1,23 @@ +# Copying + +The source code of the knossos repository is licensed under the GNU Affero 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-2024 Rinth, Inc. + +This includes, but may not be limited to, the following files: + +- assets/images/404.svg +- assets/images/logo.svg +- components/brand/* +- static/favicon.ico +- static/favicon-light.ico + +## External logos + +The following files are owned by their respective copyright holders and must be used within each of their Brand Guidelines: + +- assets/images/external/* diff --git a/apps/knossos/LICENSE b/apps/knossos/LICENSE new file mode 100644 index 000000000..0ad25db4b --- /dev/null +++ b/apps/knossos/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/apps/knossos/README.md b/apps/knossos/README.md new file mode 100644 index 000000000..cc5e92de8 --- /dev/null +++ b/apps/knossos/README.md @@ -0,0 +1,7 @@ +![knossos banner](https://user-images.githubusercontent.com/12068027/100479893-d9b5a380-30ac-11eb-9db9-0c09d400f13f.png) + +## Modrinth's center for its frontend service + +For contributing information, please see the knossos section of the [Modrinth contributing guide](https://support.modrinth.com/en/articles/8802215-contributing-to-modrinth#h_1bc6570903). + +For a detailed explanation on how things work in general, check out the [Nuxt.js docs](https://nuxt.com). diff --git a/apps/knossos/app.vue b/apps/knossos/app.vue new file mode 100644 index 000000000..7b8ef22ad --- /dev/null +++ b/apps/knossos/app.vue @@ -0,0 +1,11 @@ + + diff --git a/apps/knossos/assets/icons/auth/key.svg b/apps/knossos/assets/icons/auth/key.svg new file mode 100644 index 000000000..7449c3f71 --- /dev/null +++ b/apps/knossos/assets/icons/auth/key.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/knossos/assets/icons/auth/mail.svg b/apps/knossos/assets/icons/auth/mail.svg new file mode 100644 index 000000000..97f5dddd1 --- /dev/null +++ b/apps/knossos/assets/icons/auth/mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/knossos/assets/icons/auth/sso-discord.svg b/apps/knossos/assets/icons/auth/sso-discord.svg new file mode 100644 index 000000000..5acd13260 --- /dev/null +++ b/apps/knossos/assets/icons/auth/sso-discord.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/icons/auth/sso-github.svg b/apps/knossos/assets/icons/auth/sso-github.svg new file mode 100644 index 000000000..f84e184e0 --- /dev/null +++ b/apps/knossos/assets/icons/auth/sso-github.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/icons/auth/sso-gitlab.svg b/apps/knossos/assets/icons/auth/sso-gitlab.svg new file mode 100644 index 000000000..5384280fb --- /dev/null +++ b/apps/knossos/assets/icons/auth/sso-gitlab.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/apps/knossos/assets/icons/auth/sso-google.svg b/apps/knossos/assets/icons/auth/sso-google.svg new file mode 100644 index 000000000..f91fb5160 --- /dev/null +++ b/apps/knossos/assets/icons/auth/sso-google.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/apps/knossos/assets/icons/auth/sso-microsoft.svg b/apps/knossos/assets/icons/auth/sso-microsoft.svg new file mode 100644 index 000000000..b21feea96 --- /dev/null +++ b/apps/knossos/assets/icons/auth/sso-microsoft.svg @@ -0,0 +1 @@ +MS-SymbolLockup diff --git a/apps/knossos/assets/icons/auth/sso-steam.svg b/apps/knossos/assets/icons/auth/sso-steam.svg new file mode 100644 index 000000000..414d6c183 --- /dev/null +++ b/apps/knossos/assets/icons/auth/sso-steam.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/knossos/assets/icons/palette.svg b/apps/knossos/assets/icons/palette.svg new file mode 100644 index 000000000..450344f9b --- /dev/null +++ b/apps/knossos/assets/icons/palette.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/404.svg b/apps/knossos/assets/images/404.svg new file mode 100644 index 000000000..a372dacfd --- /dev/null +++ b/apps/knossos/assets/images/404.svg @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/knossos/assets/images/categories/client.svg b/apps/knossos/assets/images/categories/client.svg new file mode 100644 index 000000000..cb305e4e9 --- /dev/null +++ b/apps/knossos/assets/images/categories/client.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/knossos/assets/images/categories/server.svg b/apps/knossos/assets/images/categories/server.svg new file mode 100644 index 000000000..54e05379d --- /dev/null +++ b/apps/knossos/assets/images/categories/server.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/external/apple.svg b/apps/knossos/assets/images/external/apple.svg new file mode 100755 index 000000000..34399ed18 --- /dev/null +++ b/apps/knossos/assets/images/external/apple.svg @@ -0,0 +1,9 @@ + + + + Black Logo Square + Created with Sketch. + + + + diff --git a/apps/knossos/assets/images/external/atlauncher.svg b/apps/knossos/assets/images/external/atlauncher.svg new file mode 100644 index 000000000..fa2799c88 --- /dev/null +++ b/apps/knossos/assets/images/external/atlauncher.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/external/bmac.svg b/apps/knossos/assets/images/external/bmac.svg new file mode 100644 index 000000000..be7e015eb --- /dev/null +++ b/apps/knossos/assets/images/external/bmac.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/apps/knossos/assets/images/external/curseforge.svg b/apps/knossos/assets/images/external/curseforge.svg new file mode 100644 index 000000000..8f2468ae1 --- /dev/null +++ b/apps/knossos/assets/images/external/curseforge.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/knossos/assets/images/external/discord.svg b/apps/knossos/assets/images/external/discord.svg new file mode 100644 index 000000000..a655bf5ce --- /dev/null +++ b/apps/knossos/assets/images/external/discord.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/apps/knossos/assets/images/external/gdlauncher.png b/apps/knossos/assets/images/external/gdlauncher.png new file mode 100644 index 000000000..060810828 Binary files /dev/null and b/apps/knossos/assets/images/external/gdlauncher.png differ diff --git a/apps/knossos/assets/images/external/kofi.svg b/apps/knossos/assets/images/external/kofi.svg new file mode 100644 index 000000000..932483aa3 --- /dev/null +++ b/apps/knossos/assets/images/external/kofi.svg @@ -0,0 +1 @@ +Ko-fi \ No newline at end of file diff --git a/apps/knossos/assets/images/external/multimc.webp b/apps/knossos/assets/images/external/multimc.webp new file mode 100644 index 000000000..c5141410a Binary files /dev/null and b/apps/knossos/assets/images/external/multimc.webp differ diff --git a/apps/knossos/assets/images/external/opencollective.svg b/apps/knossos/assets/images/external/opencollective.svg new file mode 100644 index 000000000..70e5816e1 --- /dev/null +++ b/apps/knossos/assets/images/external/opencollective.svg @@ -0,0 +1 @@ +Open Collective \ No newline at end of file diff --git a/apps/knossos/assets/images/external/patreon.svg b/apps/knossos/assets/images/external/patreon.svg new file mode 100644 index 000000000..24d3ebbfa --- /dev/null +++ b/apps/knossos/assets/images/external/patreon.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/apps/knossos/assets/images/external/paypal.svg b/apps/knossos/assets/images/external/paypal.svg new file mode 100644 index 000000000..a5da5a46c --- /dev/null +++ b/apps/knossos/assets/images/external/paypal.svg @@ -0,0 +1 @@ +PayPal \ No newline at end of file diff --git a/apps/knossos/assets/images/external/prism.svg b/apps/knossos/assets/images/external/prism.svg new file mode 100644 index 000000000..e20826c4c --- /dev/null +++ b/apps/knossos/assets/images/external/prism.svg @@ -0,0 +1,80 @@ + + Prism Launcher Logo + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/knossos/assets/images/external/tremendous.svg b/apps/knossos/assets/images/external/tremendous.svg new file mode 100644 index 000000000..fb50c702a --- /dev/null +++ b/apps/knossos/assets/images/external/tremendous.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/knossos/assets/images/external/venmo-small.svg b/apps/knossos/assets/images/external/venmo-small.svg new file mode 100644 index 000000000..32b4efd7d --- /dev/null +++ b/apps/knossos/assets/images/external/venmo-small.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/knossos/assets/images/external/venmo.svg b/apps/knossos/assets/images/external/venmo.svg new file mode 100644 index 000000000..11c5091c6 --- /dev/null +++ b/apps/knossos/assets/images/external/venmo.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + diff --git a/apps/knossos/assets/images/external/windows.svg b/apps/knossos/assets/images/external/windows.svg new file mode 100644 index 000000000..9fd544f0e --- /dev/null +++ b/apps/knossos/assets/images/external/windows.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/knossos/assets/images/illustrations/follow_illustration.svg b/apps/knossos/assets/images/illustrations/follow_illustration.svg new file mode 100644 index 000000000..422242c15 --- /dev/null +++ b/apps/knossos/assets/images/illustrations/follow_illustration.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + diff --git a/apps/knossos/assets/images/illustrations/security.svg b/apps/knossos/assets/images/illustrations/security.svg new file mode 100644 index 000000000..93e4de2b9 --- /dev/null +++ b/apps/knossos/assets/images/illustrations/security.svg @@ -0,0 +1,109 @@ + + + + + + + + + Security on + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/knossos/assets/images/illustrations/up_to_date.svg b/apps/knossos/assets/images/illustrations/up_to_date.svg new file mode 100644 index 000000000..465ada73f --- /dev/null +++ b/apps/knossos/assets/images/illustrations/up_to_date.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/knossos/assets/images/logo.svg b/apps/knossos/assets/images/logo.svg new file mode 100644 index 000000000..3d73b0f8b --- /dev/null +++ b/apps/knossos/assets/images/logo.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/knossos/assets/images/sidebar/admin.svg b/apps/knossos/assets/images/sidebar/admin.svg new file mode 100644 index 000000000..dfdc6cb4b --- /dev/null +++ b/apps/knossos/assets/images/sidebar/admin.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/knossos/assets/images/sidebar/analytics.svg b/apps/knossos/assets/images/sidebar/analytics.svg new file mode 100644 index 000000000..7ab916858 --- /dev/null +++ b/apps/knossos/assets/images/sidebar/analytics.svg @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/sidebar/devtools.svg b/apps/knossos/assets/images/sidebar/devtools.svg new file mode 100644 index 000000000..f3cbf3d90 --- /dev/null +++ b/apps/knossos/assets/images/sidebar/devtools.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/sidebar/home.svg b/apps/knossos/assets/images/sidebar/home.svg new file mode 100644 index 000000000..a6b2e3807 --- /dev/null +++ b/apps/knossos/assets/images/sidebar/home.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/knossos/assets/images/sidebar/mod.svg b/apps/knossos/assets/images/sidebar/mod.svg new file mode 100644 index 000000000..39c71bd07 --- /dev/null +++ b/apps/knossos/assets/images/sidebar/mod.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/sidebar/modpack.svg b/apps/knossos/assets/images/sidebar/modpack.svg new file mode 100644 index 000000000..a3f5ed880 --- /dev/null +++ b/apps/knossos/assets/images/sidebar/modpack.svg @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/sidebar/notifications.svg b/apps/knossos/assets/images/sidebar/notifications.svg new file mode 100644 index 000000000..15ac6d0c2 --- /dev/null +++ b/apps/knossos/assets/images/sidebar/notifications.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/sidebar/projects.svg b/apps/knossos/assets/images/sidebar/projects.svg new file mode 100644 index 000000000..7e4f5bec6 --- /dev/null +++ b/apps/knossos/assets/images/sidebar/projects.svg @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/sidebar/settings.svg b/apps/knossos/assets/images/sidebar/settings.svg new file mode 100644 index 000000000..c6785b2de --- /dev/null +++ b/apps/knossos/assets/images/sidebar/settings.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/align-left.svg b/apps/knossos/assets/images/utils/align-left.svg new file mode 100644 index 000000000..e295fc502 --- /dev/null +++ b/apps/knossos/assets/images/utils/align-left.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/archive.svg b/apps/knossos/assets/images/utils/archive.svg new file mode 100644 index 000000000..7e1a54e64 --- /dev/null +++ b/apps/knossos/assets/images/utils/archive.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/asterisk.svg b/apps/knossos/assets/images/utils/asterisk.svg new file mode 100644 index 000000000..19e562fdf --- /dev/null +++ b/apps/knossos/assets/images/utils/asterisk.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/bell-ring.svg b/apps/knossos/assets/images/utils/bell-ring.svg new file mode 100644 index 000000000..0611c0b0d --- /dev/null +++ b/apps/knossos/assets/images/utils/bell-ring.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/bell.svg b/apps/knossos/assets/images/utils/bell.svg new file mode 100644 index 000000000..c8b1cd588 --- /dev/null +++ b/apps/knossos/assets/images/utils/bell.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/book-text.svg b/apps/knossos/assets/images/utils/book-text.svg new file mode 100644 index 000000000..b2442799f --- /dev/null +++ b/apps/knossos/assets/images/utils/book-text.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/box.svg b/apps/knossos/assets/images/utils/box.svg new file mode 100644 index 000000000..81c7a615f --- /dev/null +++ b/apps/knossos/assets/images/utils/box.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/calendar-clock.svg b/apps/knossos/assets/images/utils/calendar-clock.svg new file mode 100644 index 000000000..13cd832da --- /dev/null +++ b/apps/knossos/assets/images/utils/calendar-clock.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/calendar.svg b/apps/knossos/assets/images/utils/calendar.svg new file mode 100644 index 000000000..c350eb1a5 --- /dev/null +++ b/apps/knossos/assets/images/utils/calendar.svg @@ -0,0 +1,5 @@ + + + diff --git a/apps/knossos/assets/images/utils/chart.svg b/apps/knossos/assets/images/utils/chart.svg new file mode 100644 index 000000000..1300b435d --- /dev/null +++ b/apps/knossos/assets/images/utils/chart.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/check-check.svg b/apps/knossos/assets/images/utils/check-check.svg new file mode 100644 index 000000000..d3c06bd92 --- /dev/null +++ b/apps/knossos/assets/images/utils/check-check.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/check-circle.svg b/apps/knossos/assets/images/utils/check-circle.svg new file mode 100644 index 000000000..f6e6b1752 --- /dev/null +++ b/apps/knossos/assets/images/utils/check-circle.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/check.svg b/apps/knossos/assets/images/utils/check.svg new file mode 100644 index 000000000..f633db267 --- /dev/null +++ b/apps/knossos/assets/images/utils/check.svg @@ -0,0 +1,4 @@ + + + diff --git a/apps/knossos/assets/images/utils/chevron-left.svg b/apps/knossos/assets/images/utils/chevron-left.svg new file mode 100644 index 000000000..2b7022366 --- /dev/null +++ b/apps/knossos/assets/images/utils/chevron-left.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/chevron-right.svg b/apps/knossos/assets/images/utils/chevron-right.svg new file mode 100644 index 000000000..6f2693a38 --- /dev/null +++ b/apps/knossos/assets/images/utils/chevron-right.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/clear.svg b/apps/knossos/assets/images/utils/clear.svg new file mode 100644 index 000000000..144ce2439 --- /dev/null +++ b/apps/knossos/assets/images/utils/clear.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/client.svg b/apps/knossos/assets/images/utils/client.svg new file mode 100644 index 000000000..06dd3b980 --- /dev/null +++ b/apps/knossos/assets/images/utils/client.svg @@ -0,0 +1,4 @@ + + + diff --git a/apps/knossos/assets/images/utils/clipboard-copy.svg b/apps/knossos/assets/images/utils/clipboard-copy.svg new file mode 100644 index 000000000..4d1827d95 --- /dev/null +++ b/apps/knossos/assets/images/utils/clipboard-copy.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/coins.svg b/apps/knossos/assets/images/utils/coins.svg new file mode 100644 index 000000000..8d3fd9d2d --- /dev/null +++ b/apps/knossos/assets/images/utils/coins.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/contract.svg b/apps/knossos/assets/images/utils/contract.svg new file mode 100644 index 000000000..977536891 --- /dev/null +++ b/apps/knossos/assets/images/utils/contract.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/copyright.svg b/apps/knossos/assets/images/utils/copyright.svg new file mode 100644 index 000000000..3a93176c2 --- /dev/null +++ b/apps/knossos/assets/images/utils/copyright.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/crown.svg b/apps/knossos/assets/images/utils/crown.svg new file mode 100644 index 000000000..7772c5b55 --- /dev/null +++ b/apps/knossos/assets/images/utils/crown.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/currency.svg b/apps/knossos/assets/images/utils/currency.svg new file mode 100644 index 000000000..221d05fcd --- /dev/null +++ b/apps/knossos/assets/images/utils/currency.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/dashboard.svg b/apps/knossos/assets/images/utils/dashboard.svg new file mode 100644 index 000000000..94c0ceb3e --- /dev/null +++ b/apps/knossos/assets/images/utils/dashboard.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/download.svg b/apps/knossos/assets/images/utils/download.svg new file mode 100644 index 000000000..38db729ad --- /dev/null +++ b/apps/knossos/assets/images/utils/download.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/knossos/assets/images/utils/dropdown.svg b/apps/knossos/assets/images/utils/dropdown.svg new file mode 100644 index 000000000..3ef764bce --- /dev/null +++ b/apps/knossos/assets/images/utils/dropdown.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/knossos/assets/images/utils/edit.svg b/apps/knossos/assets/images/utils/edit.svg new file mode 100644 index 000000000..98ef3a754 --- /dev/null +++ b/apps/knossos/assets/images/utils/edit.svg @@ -0,0 +1,5 @@ + + + diff --git a/apps/knossos/assets/images/utils/exit.svg b/apps/knossos/assets/images/utils/exit.svg new file mode 100644 index 000000000..7d8048fa5 --- /dev/null +++ b/apps/knossos/assets/images/utils/exit.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/expand.svg b/apps/knossos/assets/images/utils/expand.svg new file mode 100644 index 000000000..c1f364ead --- /dev/null +++ b/apps/knossos/assets/images/utils/expand.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/knossos/assets/images/utils/external.svg b/apps/knossos/assets/images/utils/external.svg new file mode 100644 index 000000000..36fbe5a4e --- /dev/null +++ b/apps/knossos/assets/images/utils/external.svg @@ -0,0 +1,6 @@ + + + + + diff --git a/apps/knossos/assets/images/utils/eye-off.svg b/apps/knossos/assets/images/utils/eye-off.svg new file mode 100644 index 000000000..dc48b93c8 --- /dev/null +++ b/apps/knossos/assets/images/utils/eye-off.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/eye.svg b/apps/knossos/assets/images/utils/eye.svg new file mode 100644 index 000000000..e6fe607ba --- /dev/null +++ b/apps/knossos/assets/images/utils/eye.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/file-text.svg b/apps/knossos/assets/images/utils/file-text.svg new file mode 100644 index 000000000..10ee96fbf --- /dev/null +++ b/apps/knossos/assets/images/utils/file-text.svg @@ -0,0 +1,8 @@ + + + + + + + diff --git a/apps/knossos/assets/images/utils/file.svg b/apps/knossos/assets/images/utils/file.svg new file mode 100644 index 000000000..09dcf7612 --- /dev/null +++ b/apps/knossos/assets/images/utils/file.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/filter.svg b/apps/knossos/assets/images/utils/filter.svg new file mode 100644 index 000000000..38a47e043 --- /dev/null +++ b/apps/knossos/assets/images/utils/filter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/gap.svg b/apps/knossos/assets/images/utils/gap.svg new file mode 100644 index 000000000..44951634c --- /dev/null +++ b/apps/knossos/assets/images/utils/gap.svg @@ -0,0 +1,4 @@ + + + diff --git a/apps/knossos/assets/images/utils/github.svg b/apps/knossos/assets/images/utils/github.svg new file mode 100644 index 000000000..90908bb31 --- /dev/null +++ b/apps/knossos/assets/images/utils/github.svg @@ -0,0 +1,4 @@ + + + diff --git a/apps/knossos/assets/images/utils/globe.svg b/apps/knossos/assets/images/utils/globe.svg new file mode 100644 index 000000000..292dca417 --- /dev/null +++ b/apps/knossos/assets/images/utils/globe.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/grid.svg b/apps/knossos/assets/images/utils/grid.svg new file mode 100644 index 000000000..f721c4857 --- /dev/null +++ b/apps/knossos/assets/images/utils/grid.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/hamburger.svg b/apps/knossos/assets/images/utils/hamburger.svg new file mode 100644 index 000000000..8e2046a0d --- /dev/null +++ b/apps/knossos/assets/images/utils/hamburger.svg @@ -0,0 +1,6 @@ + + + + + diff --git a/apps/knossos/assets/images/utils/hash.svg b/apps/knossos/assets/images/utils/hash.svg new file mode 100644 index 000000000..e7ed57c05 --- /dev/null +++ b/apps/knossos/assets/images/utils/hash.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/heart-handshake.svg b/apps/knossos/assets/images/utils/heart-handshake.svg new file mode 100644 index 000000000..336bb00ac --- /dev/null +++ b/apps/knossos/assets/images/utils/heart-handshake.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/heart.svg b/apps/knossos/assets/images/utils/heart.svg new file mode 100644 index 000000000..4f363ce76 --- /dev/null +++ b/apps/knossos/assets/images/utils/heart.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/knossos/assets/images/utils/history.svg b/apps/knossos/assets/images/utils/history.svg new file mode 100644 index 000000000..c55b1cdbc --- /dev/null +++ b/apps/knossos/assets/images/utils/history.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/image.svg b/apps/knossos/assets/images/utils/image.svg new file mode 100644 index 000000000..a45c6a30e --- /dev/null +++ b/apps/knossos/assets/images/utils/image.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/info.svg b/apps/knossos/assets/images/utils/info.svg new file mode 100644 index 000000000..8ae884368 --- /dev/null +++ b/apps/knossos/assets/images/utils/info.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/issues.svg b/apps/knossos/assets/images/utils/issues.svg new file mode 100644 index 000000000..ec77384be --- /dev/null +++ b/apps/knossos/assets/images/utils/issues.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/key.svg b/apps/knossos/assets/images/utils/key.svg new file mode 100644 index 000000000..845dcd6b2 --- /dev/null +++ b/apps/knossos/assets/images/utils/key.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/languages.svg b/apps/knossos/assets/images/utils/languages.svg new file mode 100644 index 000000000..72ed7aeee --- /dev/null +++ b/apps/knossos/assets/images/utils/languages.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/left-arrow.svg b/apps/knossos/assets/images/utils/left-arrow.svg new file mode 100644 index 000000000..743b86d89 --- /dev/null +++ b/apps/knossos/assets/images/utils/left-arrow.svg @@ -0,0 +1,4 @@ + + + diff --git a/apps/knossos/assets/images/utils/lightbulb.svg b/apps/knossos/assets/images/utils/lightbulb.svg new file mode 100644 index 000000000..724bc9776 --- /dev/null +++ b/apps/knossos/assets/images/utils/lightbulb.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/link.svg b/apps/knossos/assets/images/utils/link.svg new file mode 100644 index 000000000..f5db36f31 --- /dev/null +++ b/apps/knossos/assets/images/utils/link.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/list-end.svg b/apps/knossos/assets/images/utils/list-end.svg new file mode 100644 index 000000000..06ded6da5 --- /dev/null +++ b/apps/knossos/assets/images/utils/list-end.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/list.svg b/apps/knossos/assets/images/utils/list.svg new file mode 100644 index 000000000..10bfe7538 --- /dev/null +++ b/apps/knossos/assets/images/utils/list.svg @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/lock.svg b/apps/knossos/assets/images/utils/lock.svg new file mode 100644 index 000000000..de09d9db3 --- /dev/null +++ b/apps/knossos/assets/images/utils/lock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/log-out.svg b/apps/knossos/assets/images/utils/log-out.svg new file mode 100644 index 000000000..f489e1808 --- /dev/null +++ b/apps/knossos/assets/images/utils/log-out.svg @@ -0,0 +1,6 @@ + + + + + diff --git a/apps/knossos/assets/images/utils/message.svg b/apps/knossos/assets/images/utils/message.svg new file mode 100644 index 000000000..7b092e81a --- /dev/null +++ b/apps/knossos/assets/images/utils/message.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/mic.svg b/apps/knossos/assets/images/utils/mic.svg new file mode 100644 index 000000000..a63b99671 --- /dev/null +++ b/apps/knossos/assets/images/utils/mic.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/modrinth.svg b/apps/knossos/assets/images/utils/modrinth.svg new file mode 100644 index 000000000..a6b2e3807 --- /dev/null +++ b/apps/knossos/assets/images/utils/modrinth.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/knossos/assets/images/utils/monitor-smartphone.svg b/apps/knossos/assets/images/utils/monitor-smartphone.svg new file mode 100644 index 000000000..0494f32d6 --- /dev/null +++ b/apps/knossos/assets/images/utils/monitor-smartphone.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/moon.svg b/apps/knossos/assets/images/utils/moon.svg new file mode 100644 index 000000000..3284684f3 --- /dev/null +++ b/apps/knossos/assets/images/utils/moon.svg @@ -0,0 +1,4 @@ + + + diff --git a/apps/knossos/assets/images/utils/more-horizontal.svg b/apps/knossos/assets/images/utils/more-horizontal.svg new file mode 100644 index 000000000..20338ba75 --- /dev/null +++ b/apps/knossos/assets/images/utils/more-horizontal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/organization.svg b/apps/knossos/assets/images/utils/organization.svg new file mode 100644 index 000000000..d624b2079 --- /dev/null +++ b/apps/knossos/assets/images/utils/organization.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/paintbrush.svg b/apps/knossos/assets/images/utils/paintbrush.svg new file mode 100644 index 000000000..7b3371125 --- /dev/null +++ b/apps/knossos/assets/images/utils/paintbrush.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/plus.svg b/apps/knossos/assets/images/utils/plus.svg new file mode 100644 index 000000000..7da250ede --- /dev/null +++ b/apps/knossos/assets/images/utils/plus.svg @@ -0,0 +1,12 @@ + + + + diff --git a/apps/knossos/assets/images/utils/radio-button-checked.svg b/apps/knossos/assets/images/utils/radio-button-checked.svg new file mode 100644 index 000000000..6571ac46e --- /dev/null +++ b/apps/knossos/assets/images/utils/radio-button-checked.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/radio-button.svg b/apps/knossos/assets/images/utils/radio-button.svg new file mode 100644 index 000000000..c2e74a314 --- /dev/null +++ b/apps/knossos/assets/images/utils/radio-button.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/reply.svg b/apps/knossos/assets/images/utils/reply.svg new file mode 100644 index 000000000..b308a45d5 --- /dev/null +++ b/apps/knossos/assets/images/utils/reply.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/report.svg b/apps/knossos/assets/images/utils/report.svg new file mode 100644 index 000000000..3f8507abf --- /dev/null +++ b/apps/knossos/assets/images/utils/report.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/right-arrow.svg b/apps/knossos/assets/images/utils/right-arrow.svg new file mode 100644 index 000000000..6046f1518 --- /dev/null +++ b/apps/knossos/assets/images/utils/right-arrow.svg @@ -0,0 +1,4 @@ + + + diff --git a/apps/knossos/assets/images/utils/save.svg b/apps/knossos/assets/images/utils/save.svg new file mode 100644 index 000000000..204821423 --- /dev/null +++ b/apps/knossos/assets/images/utils/save.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/search.svg b/apps/knossos/assets/images/utils/search.svg new file mode 100644 index 000000000..35ce90a3e --- /dev/null +++ b/apps/knossos/assets/images/utils/search.svg @@ -0,0 +1,5 @@ + + + diff --git a/apps/knossos/assets/images/utils/send.svg b/apps/knossos/assets/images/utils/send.svg new file mode 100644 index 000000000..e20fad810 --- /dev/null +++ b/apps/knossos/assets/images/utils/send.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/server.svg b/apps/knossos/assets/images/utils/server.svg new file mode 100644 index 000000000..54e05379d --- /dev/null +++ b/apps/knossos/assets/images/utils/server.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/settings.svg b/apps/knossos/assets/images/utils/settings.svg new file mode 100644 index 000000000..5accf92ee --- /dev/null +++ b/apps/knossos/assets/images/utils/settings.svg @@ -0,0 +1,6 @@ + + + + diff --git a/apps/knossos/assets/images/utils/shield.svg b/apps/knossos/assets/images/utils/shield.svg new file mode 100644 index 000000000..9a4bef40e --- /dev/null +++ b/apps/knossos/assets/images/utils/shield.svg @@ -0,0 +1,4 @@ + + + diff --git a/apps/knossos/assets/images/utils/slash.svg b/apps/knossos/assets/images/utils/slash.svg new file mode 100644 index 000000000..f4131b85f --- /dev/null +++ b/apps/knossos/assets/images/utils/slash.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/sort-asc.svg b/apps/knossos/assets/images/utils/sort-asc.svg new file mode 100644 index 000000000..859fb6e60 --- /dev/null +++ b/apps/knossos/assets/images/utils/sort-asc.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/sort-desc.svg b/apps/knossos/assets/images/utils/sort-desc.svg new file mode 100644 index 000000000..2df482776 --- /dev/null +++ b/apps/knossos/assets/images/utils/sort-desc.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/star.svg b/apps/knossos/assets/images/utils/star.svg new file mode 100644 index 000000000..0854bd018 --- /dev/null +++ b/apps/knossos/assets/images/utils/star.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/sun.svg b/apps/knossos/assets/images/utils/sun.svg new file mode 100644 index 000000000..e6255561a --- /dev/null +++ b/apps/knossos/assets/images/utils/sun.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/apps/knossos/assets/images/utils/sunrise.svg b/apps/knossos/assets/images/utils/sunrise.svg new file mode 100644 index 000000000..e84d06498 --- /dev/null +++ b/apps/knossos/assets/images/utils/sunrise.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/tag.svg b/apps/knossos/assets/images/utils/tag.svg new file mode 100644 index 000000000..d39bfbc02 --- /dev/null +++ b/apps/knossos/assets/images/utils/tag.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/tags.svg b/apps/knossos/assets/images/utils/tags.svg new file mode 100644 index 000000000..37c752456 --- /dev/null +++ b/apps/knossos/assets/images/utils/tags.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/transfer.svg b/apps/knossos/assets/images/utils/transfer.svg new file mode 100644 index 000000000..8929f6ca3 --- /dev/null +++ b/apps/knossos/assets/images/utils/transfer.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/trash.svg b/apps/knossos/assets/images/utils/trash.svg new file mode 100644 index 000000000..731d939cc --- /dev/null +++ b/apps/knossos/assets/images/utils/trash.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/undo.svg b/apps/knossos/assets/images/utils/undo.svg new file mode 100644 index 000000000..dfda16c24 --- /dev/null +++ b/apps/knossos/assets/images/utils/undo.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/unknown-donation.svg b/apps/knossos/assets/images/utils/unknown-donation.svg new file mode 100644 index 000000000..1a124d269 --- /dev/null +++ b/apps/knossos/assets/images/utils/unknown-donation.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/unknown.svg b/apps/knossos/assets/images/utils/unknown.svg new file mode 100644 index 000000000..000b3c115 --- /dev/null +++ b/apps/knossos/assets/images/utils/unknown.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/updated.svg b/apps/knossos/assets/images/utils/updated.svg new file mode 100644 index 000000000..b4a29e8ac --- /dev/null +++ b/apps/knossos/assets/images/utils/updated.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/upload.svg b/apps/knossos/assets/images/utils/upload.svg new file mode 100644 index 000000000..10ff29218 --- /dev/null +++ b/apps/knossos/assets/images/utils/upload.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/user-plus.svg b/apps/knossos/assets/images/utils/user-plus.svg new file mode 100644 index 000000000..09e5ff83a --- /dev/null +++ b/apps/knossos/assets/images/utils/user-plus.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/user-x.svg b/apps/knossos/assets/images/utils/user-x.svg new file mode 100644 index 000000000..b8244f0de --- /dev/null +++ b/apps/knossos/assets/images/utils/user-x.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/user.svg b/apps/knossos/assets/images/utils/user.svg new file mode 100644 index 000000000..34d4b2b6a --- /dev/null +++ b/apps/knossos/assets/images/utils/user.svg @@ -0,0 +1,5 @@ + + + + diff --git a/apps/knossos/assets/images/utils/users.svg b/apps/knossos/assets/images/utils/users.svg new file mode 100644 index 000000000..416859760 --- /dev/null +++ b/apps/knossos/assets/images/utils/users.svg @@ -0,0 +1,7 @@ + + + + + + diff --git a/apps/knossos/assets/images/utils/version.svg b/apps/knossos/assets/images/utils/version.svg new file mode 100644 index 000000000..e83cf9bf5 --- /dev/null +++ b/apps/knossos/assets/images/utils/version.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/wiki.svg b/apps/knossos/assets/images/utils/wiki.svg new file mode 100644 index 000000000..260e6d41e --- /dev/null +++ b/apps/knossos/assets/images/utils/wiki.svg @@ -0,0 +1 @@ + diff --git a/apps/knossos/assets/images/utils/world.svg b/apps/knossos/assets/images/utils/world.svg new file mode 100644 index 000000000..d064d8542 --- /dev/null +++ b/apps/knossos/assets/images/utils/world.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/knossos/assets/images/utils/x.svg b/apps/knossos/assets/images/utils/x.svg new file mode 100644 index 000000000..6e20061f4 --- /dev/null +++ b/apps/knossos/assets/images/utils/x.svg @@ -0,0 +1,5 @@ + + + diff --git a/apps/knossos/assets/styles/components.scss b/apps/knossos/assets/styles/components.scss new file mode 100644 index 000000000..4f6c6f4c0 --- /dev/null +++ b/apps/knossos/assets/styles/components.scss @@ -0,0 +1,1451 @@ +/* + Base components +*/ + +.known-error .multiselect__tags { + border-color: var(--color-red) !important; + background-color: var(--color-warning-bg) !important; + + &::placeholder { + color: var(--color-warning-text); + } +} + +.grid-display { + display: grid; + grid-gap: var(--spacing-card-md); + grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); + + .grid-display__item { + display: flex; + flex-grow: 1; + flex-direction: column; + justify-content: flex-start; + background-color: var(--color-bg); + border-radius: var(--size-rounded-card); + padding: var(--spacing-card-lg); + gap: var(--spacing-card-md); + outline: 1px solid transparent; + + .label { + color: var(--color-heading); + font-weight: bold; + font-size: 1rem; + } + + .value { + color: var(--color-text-dark); + font-weight: bold; + font-size: 2rem; + } + + .goto-link { + margin-top: auto; + } + } + + &.width-12 { + grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); + } + + &.width-16 { + grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); + } +} + +/* + Cards and body styling +*/ +.base-card { + @extend .padding-lg; + + position: relative; + + background-color: var(--color-raised-bg); + border-radius: var(--size-rounded-card); + + margin-bottom: var(--spacing-card-md); + outline: 2px solid transparent; + outline-offset: -2px; + + 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; + } + + &.moderation-card { + background-color: var(--color-warning-banner-bg); + } + + &.recessed { + background-color: var(--color-bg); + box-shadow: none; + } +} + +.universal-labels { + label, + .label { + :where(.label__title) { + display: block; + margin-block: var(--spacing-card-md) var(--spacing-card-sm); + + // Same styling as h3 + color: var(--color-text-dark); + 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(--spacing-card-sm); + + .label__subdescription { + display: block; + margin-block-start: var(--spacing-card-md); + } + } + + :where(h1, h2, h3, h4) { + margin-block: 0; + } + } +} + +.padding-lg { + padding: var(--spacing-card-lg); +} + +.padding-bg { + padding: var(--spacing-card-bg); +} + +.padding-md { + padding: var(--spacing-card-md); +} + +.padding-sm { + padding: var(--spacing-card-sm); +} + +.padding-0 { + padding: 0; +} + +.padding-block-lg { + padding-block: var(--spacing-card-lg); +} + +.padding-block-bg { + padding-block: var(--spacing-card-bg); +} + +.padding-block-md { + padding-block: var(--spacing-card-md); +} + +.padding-block-sm { + padding-block: var(--spacing-card-sm); +} + +.padding-block-0 { + padding-block: 0; +} + +.padding-inline-lg { + padding-inline: var(--spacing-card-lg); +} + +.padding-inline-bg { + padding-inline: var(--spacing-card-bg); +} + +.padding-inline-md { + padding-inline: var(--spacing-card-md); +} + +.padding-inline-sm { + padding-inline: var(--spacing-card-sm); +} + +.padding-inline-0 { + padding-inline: 0; +} + +.universal-body { + @extend .universal-labels; + + .multiselect { + width: 15rem; + } + + > :where( + input + *, + .input-group + *, + .textarea-wrapper + *, + .chips + *, + .resizable-textarea-wrapper + *, + .input-div + * + ) { + &:not(:empty) { + margin-block-start: var(--spacing-card-md); + } + } + + :where(button, .button, .iconified-button) { + 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(--spacing-card-sm); + margin-bottom: calc(var(--spacing-card-sm) + var(--spacing-card-md)); + + .iconified-button, + .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(--spacing-card-sm); + } + } + + @media screen and (max-width: 750px) { + &:not(&.small) { + flex-direction: column; + align-items: flex-start; + + .stylized-toggle { + flex-basis: 0; + } + } + } + } + + h1 { + display: flex; + align-items: center; + } + + > :first-child { + :first-child { + margin-block-start: 0; + } + + margin-block-start: 0; + } + + > :last-child { + margin-block-end: 0; + } + + :where(.header__row) { + display: flex; + flex-direction: row; + flex-wrap: wrap; + gap: var(--spacing-card-sm); + + * { + flex-shrink: 0; + } + + .header__title { + margin: 0; + flex-grow: 1; + } + + &:not(:last-child) { + margin-bottom: var(--spacing-card-md); + } + } +} + +.universal-card { + @extend .base-card; + @extend .universal-body; +} + +.universal-modal { + @extend .universal-body; + + padding: var(--spacing-card-bg); + display: flex; + flex-direction: column; + + > p:first-child { + margin-top: 0; + } + + @media screen and (max-width: 750px) { + .adjacent-input, + &.adjacent-input &:not(&.small) { + flex-direction: row; + align-items: center; + } + } + + @media screen and (max-width: calc(600px + 2rem)) { + .adjacent-input, + &.adjacent-input &:not(&.small) { + flex-direction: column; + align-items: flex-start; + } + } +} + +.navigation-card { + @extend .base-card; + @extend .padding-inline-lg; + @extend .padding-block-md; + + align-items: center; + display: flex; + justify-content: space-between; + flex-wrap: wrap; + row-gap: 0.5rem; + min-height: 3.75rem; +} + +/* + Other + */ + +// Here lies 𝖄𝖊 𝕸𝖆𝖗𝖌𝖎𝖓 𝕸𝖆𝖌𝖎𝖈 +// which allows to have just one wrapper div +.iconified-input { + align-items: center; + display: inline-flex; + position: relative; + + input { + padding-left: 2.25rem; + width: 100%; + } + + &:focus-within svg { + color: var(--color-button-text-active); + opacity: 1; + } + + svg { + position: absolute; + left: 0.75rem; + height: 1.25rem; + width: 1.25rem; + z-index: 1; + + color: var(--color-button-text); + opacity: 0.6; + } +} + +.text-link { + color: var(--color-link); + + &:focus-visible, + &:hover { + color: var(--color-link-hover); + cursor: pointer; + text-decoration: underline; + } + + &:active { + color: var(--color-link-active); + } +} + +.title-link { + text-decoration: underline; + + &:focus-visible, + &:hover { + color: var(--color-heading); + } + + &:active { + color: var(--color-text-dark); + } +} + +.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(--size-rounded-tooltip) !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; + } +} + +.button-base { + @extend .button-animation; + font-weight: 500; + outline: 2px solid transparent; + + &:focus-visible:not(&:disabled), + &:hover:not(&:disabled) { + cursor: pointer; + filter: brightness(0.85); + } + + &:active:not(&:disabled) { + filter: brightness(0.8); + } + + &:disabled, + &[disabled='true'] { + cursor: not-allowed; + filter: grayscale(50%); + opacity: 0.5; + box-shadow: none; + } +} + +:not(tr).button-transparent { + @extend .button-base; + background-color: transparent; + border-radius: var(--size-rounded-sm); + + &:focus-visible:not(&:disabled), + &:hover:not(&:disabled), + &:active:not(&:disabled) { + background-color: var(--color-raised-bg); + } + + &.brand-button { + color: var(--color-brand); + } + + &.danger-button { + color: var(--color-red); + } +} + +tr.button-transparent { + @extend .button-animation; + background-color: transparent; + border-radius: var(--size-rounded-sm); + + &:focus-visible:not(&:disabled) > *, + &:hover:not(&:disabled) > * { + cursor: pointer; + filter: brightness(0.85); + background-color: var(--color-raised-bg); + } + + &:active:not(&:disabled) > * { + filter: brightness(0.8); + background-color: var(--color-raised-bg); + } + + &:disabled > *, + &[disabled='true'] > * { + 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); + } + + &.disabled { + cursor: not-allowed; + filter: grayscale(50%); + opacity: 0.5; + box-shadow: none; + + &disabled, + &[disabled='true'] { + cursor: not-allowed; + box-shadow: none; + } + } +} + +.button-color-base { + box-sizing: border-box; + --text-color: var(--color-button-text); + --background-color: var(--color-button-bg); + + color: var(--text-color); + background-color: var(--background-color); + box-shadow: var(--shadow-inset-sm), 0 0 0 0 transparent; + border-radius: var(--size-rounded-sm); +} + +.iconified-button { + @extend .button-base; + @extend .button-color-base; + + display: flex; + padding: var(--spacing-card-sm) var(--spacing-card-bg); + margin: 0; + font-size: var(--font-size-nm); + align-items: center; + cursor: pointer; + width: fit-content; + height: fit-content; + 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; + + text-decoration: none; + + svg { + width: 1.1rem; + height: 1.1rem; + margin-right: 0.5rem; + } + + &.icon-only { + padding: 0 0.5rem; + + svg { + margin-right: 0; + } + } + + &.transparent { + background: none; + box-shadow: none; + } + + &.bold-button { + font-weight: bold; + } +} + +.square-button { + @extend .button-base; + + --text-color: var(--color-button-text); + --background-color: var(--color-button-bg); + + display: flex; + align-items: center; + justify-content: center; + height: 2.25rem; + width: 2.25rem; + border-radius: var(--size-rounded-sm); + color: var(--text-color); + background-color: var(--background-color); + box-shadow: var(--shadow-inset-sm), 0 0 0 0 transparent; + + svg { + min-width: 1.25rem; + max-width: 1.25rem; + min-height: 1.25rem; + max-height: 1.25rem; + margin: auto; + } + + flex-shrink: 0; +} + +.header-button { + @extend .iconified-button; + + box-sizing: content-box; + min-height: unset; + border-radius: var(--size-rounded-max); + white-space: nowrap; + padding: 0.5rem 0.75rem; + max-height: 1.75rem; + + svg { + vertical-align: middle; + margin-right: 0.5rem; + height: 1.25rem; + width: 1.25rem; + } +} + +.raised-button { + --background-color: var(--color-raised-bg); + box-shadow: var(--shadow-inset-sm), var(--shadow-raised); +} + +.danger-button { + --background-color: var(--color-red); + --text-color: var(--color-brand-inverted); +} + +.moderation-button { + --background-color: var(--color-orange); + --text-color: var(--color-brand-inverted); +} + +.brand-button { + --background-color: var(--color-brand); + --text-color: var(--color-brand-inverted); +} + +.alt-brand-button { + --background-color: var(--color-brand-highlight); + --text-color: var(--color-text); +} + +.button-group { + display: flex; + grid-gap: var(--spacing-card-sm); + flex-wrap: wrap; + margin-top: var(--spacing-card-md); + justify-content: right; +} + +.multiselect--above .multiselect__content-wrapper { + border-top: none !important; + border-top-left-radius: var(--size-rounded-card) !important; + border-top-right-radius: var(--size-rounded-card) !important; +} + +.known-error .multiselect__tags { + border-color: var(--color-red) !important; + background-color: var(--color-warning-bg) !important; + + &::placeholder { + color: var(--color-warning-text); + } +} + +.multiselect { + &.raised-multiselect { + .multiselect__tags, + .multiselect__content-wrapper, + .multiselect__spinner { + background-color: var(--color-raised-bg); + box-shadow: none; + } + } + + color: var(--color-text) !important; + outline: none !important; + + input { + background: transparent; + box-shadow: none; + } + + input::placeholder { + color: var(--color-text); + } + + .multiselect__tags { + border-radius: var(--size-rounded-sm); + background: var(--color-dropdown-bg); + box-shadow: var(--shadow-inset-sm); + border: none; + cursor: pointer; + padding-left: 7px; + padding-top: 10px; + outline: 2px solid transparent; + + transition: background-color 0.1s ease-in-out; + + &:active { + background: var(--color-button-bg-hover); + + .multiselect__spinner { + background: var(--color-button-bg-hover); + } + } + + .multiselect__single { + background: transparent; + } + + .multiselect__tag { + border-radius: var(--size-rounded-sm); + color: var(--color-text-dark); + background: transparent; + border: 2px solid var(--color-brand); + } + + .multiselect__tag-icon { + background: transparent; + + &:after { + color: var(--color-text-dark); + } + } + + .multiselect__placeholder { + color: var(--color-button-text); + margin-left: 8px; + margin-bottom: 8px; + opacity: 0.6; + font-size: 16px; + line-height: 16px; + } + } + + .multiselect__content-wrapper { + background: var(--color-dropdown-bg); + border: none; + overflow-x: hidden; + border-bottom-left-radius: var(--size-rounded-sm); + border-bottom-right-radius: var(--size-rounded-sm); + box-shadow: var(--shadow-inset-sm), var(--shadow-floating); + outline: 2px solid transparent; + + .multiselect__element { + .multiselect__option { + outline: 1px solid transparent; + } + + .multiselect__option--highlight { + background: var(--color-button-bg-active); + color: var(--color-text-dark); + } + + .multiselect__option--selected { + background: var(--color-brand); + font-weight: bold; + color: var(--color-brand-inverted); + } + } + } + + .multiselect__spinner { + background: var(--color-dropdown-bg); + + &:active { + background: var(--color-button-bg-hover); + } + } + + &.multiselect--disabled { + background: none; + + .multiselect__current, + .multiselect__select { + background: none; + } + } +} + +.switch { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + -webkit-tap-highlight-color: transparent; + cursor: pointer; + + &:focus { + //outline: 0; Bad for accessibility + } +} + +.stylized-toggle { + @extend .button-base; + + box-sizing: content-box; + min-height: 32px; + height: 32px; + width: 52px; + max-width: 52px; + border-radius: var(--size-rounded-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-toggle-handle); + 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-brand-inverted); + } + } + + &:hover &:focus { + background: var(--color-button-bg); + } +} + +.textarea-wrapper { + display: flex; + flex-direction: column; + align-items: stretch; + + textarea { + border-radius: var(--size-rounded-sm); + flex: 1; + overflow-y: auto; + resize: none; + max-width: 100%; + } +} + +.resizable-textarea-wrapper { + display: block; + + textarea { + border-radius: var(--size-rounded-sm); + min-height: 10rem; + width: calc(100% - var(--spacing-card-lg) - var(--spacing-card-sm)); + resize: vertical; + } +} + +.error { + display: flex; + flex-direction: column; + width: 100%; + justify-content: center; + align-items: center; + + .icon { + width: 8rem; + height: 8rem; + margin: 1.5rem 0; + } + + .text { + margin-bottom: 2rem; + font-size: 1.25rem; + text-align: center; + } + + .link { + cursor: pointer; + text-decoration: underline; + } +} + +.card-divider { + background-color: var(--color-divider); + border: none; + color: var(--color-divider); + height: 1px; + margin: var(--spacing-card-bg) 0; +} + +.text-input-wrapper.known-error, +input.known-error, +textarea.known-error { + outline: 2px solid var(--color-red); + background-color: var(--color-warning-bg) !important; + + &::placeholder { + color: var(--color-warning-text); + } +} + +.known-errors { + min-height: 0; + color: var(--color-red); + + ul { + margin: 0; + } +} + +.goto-link { + display: flex; + align-items: center; + gap: 3px; + + color: var(--color-link); +} + +.goto-link:hover, +.goto-link:focus-visible { + color: var(--color-link-hover); + text-decoration: underline; +} + +.goto-link:active { + color: var(--color-link-active); +} + +h1 { + .beta-badge { + font-size: 0.4em; + } +} + +.beta-badge { + font-size: 0.7em; + padding: 0.2rem 0.4rem; + background-color: transparent; + box-sizing: border-box; + border: 2px solid var(--color-text); + color: var(--color-text); + border-radius: var(--size-rounded-max); + margin-left: 0.5rem; + font-weight: bold; +} + +.router-link-exact-active, +h1, +h2, +h3 { + .beta-badge { + background-color: var(--color-button-text-active); + box-sizing: border-box; + border-color: transparent; + color: var(--color-raised-bg); + } +} + +@media (prefers-reduced-motion) { + .button-animation, + button { + transform: none !important; + } +} + +.push-right:not(.input-group), +.push-right.input-group > :first-child { + margin-left: auto; + margin-right: 0; +} + +.full-width-inputs { + .multiselect, + input, + .iconified-input { + width: 100%; + flex-basis: 100%; + } +} + +input, +button { + &:disabled { + cursor: not-allowed !important; + } +} + +.input-group { + display: flex; + flex-direction: row; + grid-gap: var(--spacing-card-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; + } + } + + &.right-aligned { + justify-content: end; + } +} + +.input-stack { + display: flex; + flex-direction: column; + + > *:not(:last-child) { + margin-bottom: var(--spacing-card-sm); + } + + > .multiselect { + width: unset; + height: inherit; + } +} + +.text-input-wrapper { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + background: var(--color-button-bg); + width: fit-content; + border-radius: var(--size-rounded-sm); + box-shadow: var(--shadow-inset-sm), 0 0 0 0 transparent; + transition: box-shadow 0.1s ease-in-out; + overflow: hidden; + max-width: 100%; + outline: 2px solid transparent; + + .text-input-wrapper__before { + display: flex; + color: var(--color-text); + padding: 0.5rem 0 0.5rem 1rem; + font-weight: var(--font-weight-medium); + min-height: 40px; + box-sizing: border-box; + width: fit-content; + align-items: center; + filter: grayscale(50%); + opacity: 0.5; + box-shadow: none; + flex-shrink: 0; + } + + input, + textarea { + border-radius: 0; + background-color: transparent; + box-shadow: unset !important; + padding-left: 0; + flex-grow: 1; + outline: none !important; + } + + &:focus, + &:focus-visible, + &:focus-within { + box-shadow: inset 0 0 0 transparent, 0 0 0 0.25rem var(--color-brand-shadow); + color: var(--color-button-text-active); + } +} + +.primary-stat { + align-items: center; + display: flex; + margin-bottom: 0.6rem; + + .primary-stat__icon { + height: 1rem; + width: 1rem; + } + + .primary-stat__text { + margin-left: 0.4rem; + } + + .primary-stat__counter { + font-size: var(--font-size-lg); + font-weight: bold; + } + + &.no-margin { + margin: 0; + } +} + +.project-list { + width: 100%; + gap: var(--spacing-card-md); + overflow: hidden; + + &:not(:first-child) { + margin-top: var(--spacing-card-md); + } + + &:not(:empty) { + margin-bottom: var(--spacing-card-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; + } +} + +.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; +} + +.backed-svg { + --size: 2.5rem; + border-radius: var(--size-rounded-sm); + background-color: var(--color-button-bg); + width: var(--size); + height: var(--size); + display: inline-flex; + justify-content: center; + align-items: center; + + svg { + width: calc(0.6 * var(--size)); + height: calc(0.6 * var(--size)); + } + + &.circle { + border-radius: 50%; + } + + &.raised { + background-color: var(--color-raised-bg); + } +} + +a.iconified-link, +a.iconified-stacked-link { + display: contents; + + .space { + opacity: 0; + } + + .title { + font-weight: bold; + } + + .stacked { + display: inline-flex; + flex-direction: column; + } + + &:focus-visible .title, + &:hover .title { + text-decoration: underline; + filter: var(--hover-filter); + } + + &:active .title { + filter: var(--active-filter); + } +} + +a.iconified-link { + &:focus-visible span, + &:hover span { + text-decoration: underline; + filter: var(--hover-filter); + } + + &:active span { + filter: var(--active-filter); + } +} + +a.subtle-link { + &:focus-visible, + &:hover { + text-decoration: underline; + filter: var(--hover-filter); + } + + &:active { + filter: var(--active-filter); + } +} + +.inline-svg svg, +svg.inline-svg { + vertical-align: middle; +} + +// START STUFF FOR OMORPHIA + +.experimental-styles-within { + .tag-list { + display: flex; + flex-wrap: wrap; + gap: var(--gap-4); + } + + .tag-list__item { + background-color: var(--color-button-bg); + padding: var(--gap-2) var(--gap-6); + border-radius: var(--radius-max); + font-weight: var(--weight-bold); + font-size: var(--text-14); + display: flex; + gap: var(--gap-4); + align-items: center; + vertical-align: middle; + color: var(--_color, var(--color-secondary)); + + svg { + width: var(--icon-14); + height: var(--icon-14); + display: flex; + } + } + + .status-list { + display: flex; + flex-direction: column; + gap: var(--gap-8); + padding-left: var(--gap-6); + + color: var(--color-base); + font-weight: var(--weight-bold); + } + + .status-list__item { + display: flex; + align-items: center; + gap: var(--gap-4); + + svg { + width: var(--icon-16); + height: var(--icon-16); + margin-right: var(--gap-4); + } + + span { + color: var(--color-secondary); + font-style: italic; + font-weight: var(--weight-normal); + } + } + + .status-list__item--color-green svg { + color: var(--color-green); + } + + .status-list__item--color-orange svg { + color: var(--color-orange); + } + + .status-list__item--color-red svg { + color: var(--color-red); + } + + .status-list__item--color-blue svg { + color: var(--color-blue); + } + + .status-list__item--color-purple svg { + color: var(--color-purple); + } + + &.flex-card, + .flex-card { + display: flex; + flex-direction: column; + gap: var(--gap-12); + padding: var(--gap-16) var(--gap-24); + + h2 { + font-size: var(--text-18); + font-weight: var(--weight-extrabold); + color: var(--color-contrast); + margin: 0; + } + + h3 { + font-size: var(--text-16); + font-weight: var(--weight-bold); + color: var(--color-base); + margin: 0; + } + + > section { + display: flex; + flex-direction: column; + gap: var(--gap-8); + } + } + + .list-style { + display: flex; + flex-direction: column; + gap: var(--gap-12); + font-weight: var(--weight-bold); + + hr { + width: 100%; + border-color: var(--color-button-border); + margin-block: var(--gap-2); + } + } + + .iconified-list-item { + display: flex; + gap: var(--gap-8); + vertical-align: middle; + align-items: center; + width: fit-content; + + svg { + width: var(--icon-16); + height: var(--icon-16); + } + } + + .links-list { + @extend .list-style; + + > a { + @extend .iconified-list-item; + + &:hover { + text-decoration: underline; + } + } + } + + .details-list { + @extend .list-style; + } + + .details-list__item { + @extend .iconified-list-item; + + .details-list__item__text--style-secondary { + color: var(--color-secondary); + font-weight: var(--weight-normal); + font-size: var(--text-14); + } + } + + .icon { + --_size: 1rem; + width: var(--_size, var(--icon-16)) !important; + height: var(--_size, var(--icon-16)) !important; + border: 1px solid var(--color-button-border); + + &[data-size='32'] { + --_size: var(--icon-32); + } + + &[data-shape='circle'] { + border-radius: var(--radius-max) !important; + } + + &[data-shape='square'] { + border-radius: calc(2.25 * (var(--_size) / 16)) !important; + } + } +} diff --git a/apps/knossos/assets/styles/global.scss b/apps/knossos/assets/styles/global.scss new file mode 100644 index 000000000..a8b4985f8 --- /dev/null +++ b/apps/knossos/assets/styles/global.scss @@ -0,0 +1,611 @@ +html { + @extend .dark-mode; + --dark-color-text: #b0bac5; + --dark-color-text-dark: #ecf9fb; + --color-text-secondary: var(--color-icon); +} + +// TO BE MOVED TO OMORPHIA +:root { + --gap-2: 0.125rem; + --gap-4: calc(2 * var(--gap-2)); + --gap-6: calc(3 * var(--gap-2)); + --gap-8: calc(2 * var(--gap-4)); + --gap-12: calc(3 * var(--gap-4)); + --gap-16: calc(2 * var(--gap-8)); + --gap-24: calc(3 * var(--gap-8)); + + --radius-card: 1rem; + --radius-max: 999999999px; + + --radius-btn: 0.75rem; + --radius-btn-large: 1rem; + --radius-btn-circle: var(--radius-max); + + --text-14: 0.875rem; + --text-16: 1rem; + --text-18: 1.125rem; + --text-24: 1.5rem; + --text-32: 2rem; + + --weight-normal: 500; // used for general body text + --weight-bold: 600; // used for text needing extra emphasis + --weight-extrabold: 800; // used for main titles and headings + + --icon-14: 0.875rem; // used for icons inside a small container alongside a label + --icon-16: 1rem; // used for normal-sized icons alongside a label + --icon-20: 1.25rem; // used for icons in normal sized buttons + --icon-24: 1.5rem; // used for icons that are used as a primary label or in large buttons + --icon-32: 2rem; +} + +.experimental-styles-within { + // Reset deprecated properties + --color-icon: initial !important; + --color-text: initial !important; + --color-text-inactive: initial !important; + --color-text-dark: initial !important; + --color-heading: initial !important; + --color-divider: initial !important; + --color-divider-dark: initial !important; + --color-text-inverted: initial !important; + --color-bg-inverted: initial !important; + + --color-brand-green: initial !important; + --color-brand: var(--color-green) !important; + --color-brand-inverted: initial !important; + + --tab-underline-hovered: initial !important; + + --color-button-text: initial !important; + --color-button-bg-hover: initial !important; + --color-button-text-hover: initial !important; + --color-button-bg-active: initial !important; + --color-button-text-active: initial !important; + + --color-grey-link: inherit !important; + --color-grey-link-hover: inherit !important; // DEPRECATED, use filters in future + --color-grey-link-active: inherit !important; // DEPRECATED, use filters in future + --color-link: var(--color-blue) !important; + --color-link-hover: var(--color-blue) !important; // DEPRECATED, use filters in future + --color-link-active: var(--color-blue) !important; // DEPRECATED, use filters in future +} + +.light-mode, +.light { + .experimental-styles-within, + &.experimental-styles-within { + --color-bg: #ebebeb; + --color-raised-bg: #ffffff; + --color-button-bg: #f5f5f5; + --color-base: #2c2e31; + --color-secondary: #484d54; + --color-accent-contrast: #ffffff; + + --color-platform-fabric: #8a7b71; + --color-platform-quilt: #8b61b4; + --color-platform-forge: #5b6197; + --color-platform-neoforge: #dc895c; + --color-platform-liteloader: #4c90de; + --color-platform-bukkit: #e78362; + --color-platform-bungeecord: #c69e39; + --color-platform-folia: #6aa54f; + --color-platform-paper: #e67e7e; + --color-platform-purpur: #7763a3; + --color-platform-spigot: #cd7a21; + --color-platform-velocity: #4b98b0; + --color-platform-waterfall: #5f83cb; + --color-platform-sponge: #c49528; + + --color-button-border: rgba(161, 161, 161, 0.35); + } +} + +.dark-mode, +.dark { + .experimental-styles-within, + &.experimental-styles-within { + --color-button-bg: #33363d; + + --color-platform-fabric: #dbb69b; + --color-platform-quilt: #c796f9; + --color-platform-forge: #959eef; + --color-platform-neoforge: #f99e6b; + --color-platform-liteloader: #7ab0ee; + --color-platform-bukkit: #f6af7b; + --color-platform-bungeecord: #d2c080; + --color-platform-folia: #a5e388; + --color-platform-paper: #eeaaaa; + --color-platform-purpur: #c3abf7; + --color-platform-spigot: #f1cc84; + --color-platform-velocity: #83d5ef; + --color-platform-waterfall: #78a4fb; + --color-platform-sponge: #f9e580; + + --color-button-border: rgba(193, 190, 209, 0.12); + } +} + +.light-mode { + --color-secondary: #6b7280; + --color-icon: var(--color-secondary); + --color-text: hsl(221, 39%, 11%); + --color-text-inactive: hsl(215, 14%, 34%); + --color-text-dark: #1a202c; + --color-heading: #2c313d; + --color-bg: #e5e7eb; + --color-raised-bg: #ffffff; + --color-divider: hsl(220, 13%, 91%); + --color-divider-dark: #c8cdd3; + + --color-text-inverted: var(--color-bg); + --color-bg-inverted: var(--color-text); + + --color-brand-green: #00af5c; + --color-brand: var(--color-brand-green); + --color-brand-highlight: rgba(0, 175, 92, 0.25); + --color-brand-shadow: rgba(0, 175, 92, 0.7); + --color-brand-inverted: #ffffff; + + --tab-underline-hovered: #e2e8f0; + + --color-button-bg: hsl(220, 13%, 91%); + --color-button-text: var(--color-text-dark); + --color-button-bg-hover: #d9dce0; + --color-button-text-hover: #1b1e24; + --color-button-bg-active: #c3c6cb; + --color-button-text-active: var(--color-button-text-hover); + + --color-toggle-handle: var(--color-icon); + + --color-dropdown-bg: var(--color-button-bg); + --color-dropdown-text: var(--color-button-text); + + --color-tooltip-bg: var(--color-text); + --color-tooltip-text: var(--color-bg); + + --color-code-bg: var(--color-bg); + --color-code-text: var(--color-text-dark); + + --color-kbd-shadow: rgba(0, 0, 0, 0.25); + + --color-ad: #d6e6f9; + --color-ad-raised: #b1c8e4; + --color-ad-contrast: var(--color-text); + --color-ad-highlight: #088cdb; + + --color-grey-link: var(--color-text); + --color-grey-link-hover: var(--color-heading); + --color-grey-link-active: var(--color-text-dark); + --color-link: #0d60bb; + --color-link-hover: #1a76e7; + --color-link-active: #146fd7; + + --color-red-bg: rgba(204, 35, 69, 0.1); + + --color-warning-bg: hsl(355, 70%, 88%); + --color-warning-text: hsl(342, 70%, 35%); + + --color-warning-banner-text: hsl(0, 11%, 16%); + --color-warning-banner-bg: hsl(0, 100%, 95%); + --color-warning-banner-side: hsl(357, 78%, 40%); + + --color-info-banner-text: var(--color-text); + --color-info-banner-bg: var(--color-ad); + --color-info-banner-side: var(--color-blue); + + --color-block-quote: var(--color-tooltip-bg); + --color-header-underline: var(--color-divider-dark); + --color-hr: var(--color-text); + + --color-table-border: #dfe2e5; + --color-table-alternate-row: #f2f4f7; + + --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; + + --landing-maze-bg: url('https://cdn.modrinth.com/landing-new/landing-light.webp'); + --landing-maze-gradient-bg: url('https://cdn.modrinth.com/landing-new/landing-lower-light.webp'); + --landing-maze-outer-bg: linear-gradient(180deg, #f0f0f0 0%, #ffffff 100%); + + --landing-color-heading: #000; + --landing-color-subheading: #3a3f45; + + --landing-transition-gradient-start: rgba(255, 255, 255, 0); + --landing-transition-gradient-end: #ffffff; + --landing-hover-card-gradient: radial-gradient( + 50% 50% at 50% 50%, + #fff 0%, + rgba(204, 204, 204, 0.77) 100% + ); + --landing-border-gradient: linear-gradient( + to bottom right, + rgba(129, 137, 175, 0.75) 0%, + rgba(66, 71, 97, 0.34) 100% + ); + --landing-border-color: rgba(129, 137, 175, 0.55); + --landing-creator-gradient: linear-gradient(180deg, #f8f8f8 0%, #f8f8f8 63.19%); + + --landing-blob-gradient: radial-gradient( + 50% 50% at 50% 50%, + rgba(255, 255, 255, 0.35) 0%, + rgba(255, 255, 255, 0.2695) 100% + ); + --landing-blob-shadow: 2px 2px 12px rgba(0, 0, 0, 0.16), + inset 2px 2px 64px rgba(255, 255, 255, 0.45); + + --landing-card-bg: rgba(255, 255, 255, 0.8); + --landing-card-shadow: 2px 2px 12px rgba(0, 0, 0, 0.16); + + --landing-blue-label: #0098ba; + --landing-blue-label-bg: rgba(0, 177, 216, 0.15); + --landing-green-label: #00a936; + --landing-green-label-bg: rgba(0, 216, 69, 0.15); + + --landing-raw-bg: #fff; +} + +.dark, +.dark-mode, +.oled-mode, +.retro-mode { + --color-secondary: #96a2b0; + --color-icon: var(--color-secondary); + --color-text: var(--dark-color-text); + --color-text-inactive: #929aa3; + --color-text-dark: var(--dark-color-text-dark); + --color-heading: #c4cfdd; + --color-bg: #16181c; + --color-raised-bg: #26292f; + --color-divider: #474b54; + --color-divider-dark: #646c75; + + --color-text-inverted: var(--color-bg); + --color-bg-inverted: var(--color-text); + + --color-red-bg: rgba(255, 74, 110, 0.2); + + --color-brand-green: #1bd96a; + --color-brand: var(--color-brand-green); + --color-brand-highlight: rgba(27, 217, 106, 0.25); + --color-brand-shadow: rgba(27, 217, 106, 0.7); + --color-brand-inverted: #000; + + --tab-underline-hovered: #414146; + + --color-button-bg: hsl(222, 13%, 30%); + --color-button-text: var(--color-text); + --color-button-bg-hover: #494f58; + --color-button-text-hover: #ffffff; + --color-button-bg-active: #616570; + --color-button-text-active: var(--color-button-text-hover); + + --color-toggle-handle: var(--color-button-text); + + --color-dropdown-bg: var(--color-button-bg); + --color-dropdown-text: var(--color-button-text); + + --color-tooltip-bg: var(--color-button-bg); + --color-tooltip-text: var(--color-text); + + --color-code-bg: var(--color-button-bg); + --color-code-text: var(--color-text-dark); + + --color-kbd-shadow: rgba(0, 0, 0, 0.35); + + --color-ad: #1f324a; + --color-ad-raised: #2e4057; + --color-ad-contrast: var(--color-text); + --color-ad-highlight: #088cdb; + + --color-link: #74b6f3; + --color-link-hover: #92c0f5; + --color-link-active: #b5d5fd; + + --color-warning-bg: hsl(355, 70%, 20%); + --color-warning-text: hsl(342, 70%, 75%); + + --color-warning-banner-text: hsl(0, 100%, 96%); + --color-warning-banner-bg: hsl(356, 18%, 18%); + --color-warning-banner-side: hsl(357, 78%, 40%); + + --color-info-banner-text: var(--color-text); + --color-info-banner-bg: var(--color-ad); + --color-info-banner-side: var(--color-blue); + + --color-block-quote: var(--color-code-bg); + --color-header-underline: var(--color-divider-dark); + --color-hr: var(--color-text); + + --color-table-border: #4f5864; + --color-table-alternate-row: #202228; + + --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; + + --landing-maze-bg: url('https://cdn.modrinth.com/landing-new/landing.webp'); + --landing-maze-gradient-bg: linear-gradient(0deg, #31375f 0%, rgba(8, 14, 55, 0) 100%), + url('https://cdn.modrinth.com/landing-new/landing-lower.webp'); + --landing-maze-outer-bg: linear-gradient(180deg, #06060d 0%, #000000 100%); + + --landing-color-heading: #fff; + --landing-color-subheading: #afb6be; + + --landing-transition-gradient-start: rgba(14, 16, 32, 0); + --landing-transition-gradient-end: #060a1c; + --landing-hover-card-gradient: radial-gradient( + 50% 50% at 50% 50%, + #2c304f 0%, + rgba(32, 35, 50, 0.77) 100% + ); + --landing-border-gradient: linear-gradient( + to bottom right, + rgba(168, 177, 221, 0.75) 0%, + rgba(168, 177, 221, 0.18) 100% + ); + --landing-border-color: rgba(168, 177, 221, 0.55); + --landing-creator-gradient: linear-gradient(180deg, #000000 0%, #0e101d 100%); + + --landing-blob-gradient: radial-gradient( + 50% 50% at 50% 50%, + rgba(44, 48, 79, 0.35) 0%, + rgba(32, 35, 50, 0.2695) 100% + ); + --landing-blob-shadow: 2px 2px 12px rgba(0, 0, 0, 0.16), inset 2px 2px 64px rgba(57, 61, 94, 0.45); + + --landing-card-bg: rgba(59, 63, 85, 0.15); + --landing-card-shadow: 2px 2px 12px rgba(0, 0, 0, 0.16); + + --landing-blue-label: #10c0e7; + --landing-blue-label-bg: rgba(0, 177, 216, 0.15); + --landing-green-label: #00d845; + --landing-green-label-bg: rgba(0, 216, 69, 0.15); + + --landing-raw-bg: #000; + + --hover-filter: brightness(120%); + --active-filter: brightness(140%); +} + +.oled-mode { + --color-bg: #000000; + --color-raised-bg: #101013; + + --color-button-bg: #222329; + --color-button-bg-hover: #2d2d32; + --color-button-bg-active: #3c3c40; + --color-table-alternate-row: #19191c; + --color-divider-dark: #2c3134; + + --color-warning-banner-bg: hsl(0, 45%, 11%); + --color-ad: #0d1828; +} + +.retro-mode { + --color-bg: #191917; + --color-raised-bg: #1d1e1b; + --color-button-bg: #3a3b38; + --color-base: #c3c4b3; + --color-secondary: #777a74; + --color-contrast: #e6e2d1; + + --color-brand: #4d9227; + --color-brand-highlight: #25421e; + --color-ad: var(--color-brand-highlight); + --color-ad-raised: var(--color-brand); + --color-ad-contrast: black; + --color-ad-highlight: var(--color-brand); + + --color-red: rgb(232, 32, 13); + --color-orange: rgb(232, 141, 13); + --color-green: rgb(60, 219, 54); + --color-blue: rgb(9, 159, 239); + --color-purple: rgb(139, 129, 230); + --color-gray: #718096; +} + +body { + // Defaults + background-color: var(--color-bg); + color: var(--color-text); + --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; + + // Rounding sizes + --size-rounded-xs: 0.5rem; + --size-rounded-sm: 0.75rem; + --size-rounded-md: 1rem; + --size-rounded-lg: 1.25rem; + + --size-rounded-max: 999999999px; + --size-rounded-card: 1rem; + --size-rounded-icon: 1rem; + --size-rounded-control: 0.25rem; + --size-rounded-tooltip: 0.25rem; + + --size-navbar-height: 3.5rem; + --size-mobile-navbar-height: 3.5rem; + --size-mobile-navbar-height-expanded: 13.75rem; + + --spacing-card-lg: 1.5rem; + --spacing-card-bg: 1rem; + --spacing-card-md: 0.75rem; + --spacing-card-sm: 0.5rem; + --spacing-card-xs: 0.25rem; + + // 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); + + @media screen and (min-width: 320px) { + --size-mobile-navbar-height-expanded: 11.5rem; + } + + @media screen and (min-width: 432px) { + --size-mobile-navbar-height-expanded: 9.25rem; + } + + @media screen and (min-width: 765px) { + --size-mobile-navbar-height-expanded: 7rem; + } +} + +svg { + height: 1em; + width: 1em; +} + +a { + color: inherit; + text-decoration: none; +} + +h1 { + color: var(--color-text-dark); +} + +h2 { + margin-top: 0; + margin-bottom: 1rem; + color: var(--color-text-dark); +} + +h3 { + margin-block: var(--spacing-card-md) var(--spacing-card-sm); + color: var(--color-text-dark); +} + +input { + border-radius: var(--size-rounded-sm); + box-sizing: border-box; + border: 2px solid transparent; + // safari iOS rounds inputs by default + // set the appearance to none to prevent this + appearance: none !important; +} + +pre { + font-weight: var(--font-weight-regular); +} + +input, +textarea { + background: var(--color-button-bg); + color: var(--color-text); + padding: 0.5rem 1rem; + font-weight: var(--font-weight-medium); + border: none; + outline: 2px solid transparent; + box-shadow: var(--shadow-inset-sm), 0 0 0 0 transparent; + transition: box-shadow 0.1s ease-in-out; + min-height: 40px; + + &:focus, + &:focus-visible { + box-shadow: inset 0 0 0 transparent, 0 0 0 0.25rem var(--color-brand-shadow); + color: var(--color-button-text-active); + } + + &:disabled, + &[disabled='true'] { + opacity: 0.6; + pointer-events: none; + cursor: not-allowed; + } + + &:focus::placeholder { + opacity: 0.8; + } + + &::placeholder { + color: var(--color-button-text); + opacity: 0.6; + } +} + +button, +input[type='button'] { + cursor: pointer; + border: none; + outline: 2px solid transparent; +} + +kbd { + background-color: var(--color-code-bg); + color: var(--color-code-text); + box-shadow: 0 2px 1px var(--color-kbd-shadow); + padding: 0.2em 0.5em 0.1em; + border-radius: 3px; + line-height: 1; + font-size: 0.85em !important; +} + +@import '~/assets/styles/layout.scss'; +@import '~/assets/styles/utils.scss'; +@import '~/assets/styles/components.scss'; + +button:focus-visible, +a:focus-visible, +[tabindex='0']:focus-visible { + outline: 0.25rem solid #ea80ff; + border-radius: 0.25rem; +} + +// OMORPHIA FIXES +.card { + outline-offset: -2px; +} + +input { + outline: 2px solid transparent !important; +} + +.button-animation { + transition: opacity 0.5s ease-in-out, filter 0.2s ease-in-out, transform 0.05s ease-in-out, + outline-width 0.2s ease-in-out; +} + +.button-transparent { + box-shadow: none; +} diff --git a/apps/knossos/assets/styles/layout.scss b/apps/knossos/assets/styles/layout.scss new file mode 100644 index 000000000..a53b487c7 --- /dev/null +++ b/apps/knossos/assets/styles/layout.scss @@ -0,0 +1,121 @@ +.columns { + display: flex; + + @for $i from 1 through 5 { + .column-grow-#{$i} { + flex-grow: $i; + } + } +} + +.rows { + display: flex; + flex-direction: column; + + @for $i from 1 through 4 { + .row-grow-#{$i} { + flex-grow: $i; + } + } +} +.page-container { + margin: var(--spacing-card-md); + margin-top: 0; + + .page-contents { + display: flex; + flex-direction: column; + .content { + width: 100%; + } + @media screen and (min-width: 1024px) { + flex-direction: row; + //max-width: 1280px; + margin-left: auto; + margin-right: auto; + } + } +} + +.normal-page { + display: grid; + padding: 0 0.75rem; + + grid-template: + 'sidebar' + 'content' + 'info' + / 100%; + + @media screen and (max-width: 1024px) { + margin-top: var(--spacing-card-md); + } + + .normal-page__sidebar { + grid-area: sidebar; + } + + .normal-page__info { + grid-area: info; + } + + .normal-page__content { + grid-area: content; + } +} + +.site-header { + margin: 0 0.75rem; +} + +@media (min-width: 1024px) { + .full-page { + margin: 0 auto; + max-width: min(1280px, 100vw); + width: 80rem; + } + + .normal-page { + margin: 0 auto; + max-width: 80rem; + column-gap: 0.75rem; + + grid-template: + 'sidebar content' auto + 'info content' auto + 'dummy content' 1fr + / 20rem 1fr; + + &.alt-layout { + grid-template: + 'content sidebar' auto + 'content info' auto + 'content dummy' 1fr + / 1fr 20rem; + } + + &.no-sidebar { + grid-template: + 'header header' auto + 'content content' auto + 'info info' auto + 'dummy dummy' 1fr + / 1fr 1fr; + + .normal-page__content { + grid-area: content; + max-width: 100%; + } + } + } + + .normal-page__sidebar { + min-width: 20rem; + width: 20rem; + } + + .normal-page__content { + max-width: calc(60rem - 0.75rem); + overflow-x: hidden; + } +} diff --git a/apps/knossos/assets/styles/utils.scss b/apps/knossos/assets/styles/utils.scss new file mode 100644 index 000000000..afeeb8b89 --- /dev/null +++ b/apps/knossos/assets/styles/utils.scss @@ -0,0 +1,39 @@ +.hidden { + display: none !important; +} + +.w-100 { + width: 100%; +} + +body { + overflow-y: scroll; + overflow-x: hidden; +} + +.text-container p { + line-height: 1.3; +} + +// From the Bootstrap project +// The MIT License (MIT) +// Copyright (c) 2011-2023 The Bootstrap Authors +// https://github.com/twbs/bootstrap/blob/2f617215755b066904248525a8c56ea425dde871/scss/mixins/_visually-hidden.scss#L8 +.visually-hidden { + width: 1px !important; + height: 1px !important; + padding: 0 !important; + margin: -1px !important; + overflow: hidden !important; + clip: rect(0, 0, 0, 0) !important; + white-space: nowrap !important; + border: 0 !important; + + &:not(caption) { + position: absolute !important; + } +} + +.preserve-lines { + white-space: pre-line; +} diff --git a/apps/knossos/components/brand/LogoAnimated.vue b/apps/knossos/components/brand/LogoAnimated.vue new file mode 100644 index 000000000..a49454f2c --- /dev/null +++ b/apps/knossos/components/brand/LogoAnimated.vue @@ -0,0 +1,101 @@ + + + diff --git a/apps/knossos/components/brand/TextLogo.vue b/apps/knossos/components/brand/TextLogo.vue new file mode 100644 index 000000000..96923c3b4 --- /dev/null +++ b/apps/knossos/components/brand/TextLogo.vue @@ -0,0 +1,97 @@ + + + + + diff --git a/apps/knossos/components/ui/Avatar.vue b/apps/knossos/components/ui/Avatar.vue new file mode 100644 index 000000000..05f6ad515 --- /dev/null +++ b/apps/knossos/components/ui/Avatar.vue @@ -0,0 +1,137 @@ + + + + + diff --git a/apps/knossos/components/ui/Badge.vue b/apps/knossos/components/ui/Badge.vue new file mode 100644 index 000000000..a3d8805ea --- /dev/null +++ b/apps/knossos/components/ui/Badge.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/apps/knossos/components/ui/Breadcrumbs.vue b/apps/knossos/components/ui/Breadcrumbs.vue new file mode 100644 index 000000000..058227fd1 --- /dev/null +++ b/apps/knossos/components/ui/Breadcrumbs.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/apps/knossos/components/ui/Checkbox.vue b/apps/knossos/components/ui/Checkbox.vue new file mode 100644 index 000000000..a079b77a7 --- /dev/null +++ b/apps/knossos/components/ui/Checkbox.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/apps/knossos/components/ui/Chips.vue b/apps/knossos/components/ui/Chips.vue new file mode 100644 index 000000000..d293bc0b7 --- /dev/null +++ b/apps/knossos/components/ui/Chips.vue @@ -0,0 +1,101 @@ + + + + + diff --git a/apps/knossos/components/ui/CollectionCreateModal.vue b/apps/knossos/components/ui/CollectionCreateModal.vue new file mode 100644 index 000000000..ad5ad0722 --- /dev/null +++ b/apps/knossos/components/ui/CollectionCreateModal.vue @@ -0,0 +1,118 @@ +