diff --git a/.cargo/config.toml b/.cargo/config.toml index 085f3158..17380505 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,9 +1,9 @@ +[build] +rustflags = ["--cfg", "tokio_unstable"] + # Windows has stack overflows when calling from Tauri, so we increase the default stack size used by the compiler [target.'cfg(windows)'] -rustflags = ["-C", "link-args=/STACK:16777220", "--cfg", "tokio_unstable"] +rustflags = ["--cfg", "tokio_unstable", "-C", "link-args=/STACK:16777220"] [target.x86_64-pc-windows-msvc] linker = "rust-lld" - -[build] -rustflags = ["--cfg", "tokio_unstable"] diff --git a/.editorconfig b/.editorconfig index 5cf88b9b..0216e875 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,13 +13,13 @@ max_line_length = 100 indent_size = 2 max_line_length = off -[*.toml] -indent_size = 2 - -[*.json] +[*.{toml,json}] indent_size = 2 # YAML requires space indentation by spec [*.{yml,yaml}] indent_size = 2 indent_style = space + +[*.rs] +indent_style = space diff --git a/.github/ISSUE_TEMPLATE/3-servers-bug.yml b/.github/ISSUE_TEMPLATE/3-servers-bug.yml new file mode 100644 index 00000000..39214a8f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/3-servers-bug.yml @@ -0,0 +1,63 @@ +name: 👥 Bug with Modrinth Servers +description: For issues with a Modrinth Servers product. +labels: [servers] +type: 'bug' +body: + - type: checkboxes + attributes: + label: Please confirm the following. + options: + - label: I checked the [existing issues](https://github.com/modrinth/code/issues?q=is%3Aissue) for duplicate problems + required: true + - label: I have tried resolving the issue using the [support portal](https://support.modrinth.com) + required: true + - type: dropdown + id: issue-location + attributes: + label: Is this an issue in the control panel or with the Minecraft server itself? + options: + - Control panel (on Modrinth.com) + - Minecraft server + validations: + required: true + - type: dropdown + id: browsers + attributes: + label: What browsers are you seeing the problem on? (if a panel issue) + multiple: true + options: + - N/A + - Chrome (including Arc, Brave, Opera, Vivaldi) + - Microsoft Edge + - Firefox + - Safari + - Other (please specify) + - type: textarea + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. Include screenshots if applicable. + 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/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 26d7b239..0540a64e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,14 +1,8 @@ -blank_issues_enabled: true +blank_issues_enabled: false contact_links: - - name: 🫶 Support Portal - about: Get support using through our portal. + - name: 🫶 Support portal + about: Get support using through our support website. url: https://support.modrinth.com - - name: 💬 Chat + - name: 💬 Chat on Discord about: Join our Discord server to chat about Modrinth. 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: 📚 Documentation - about: Useful documentation about Modrinth's API - url: https://docs.modrinth.com diff --git a/.github/instructions/i18n-convert.instructions.md b/.github/instructions/i18n-convert.instructions.md new file mode 100644 index 00000000..44a98ce4 --- /dev/null +++ b/.github/instructions/i18n-convert.instructions.md @@ -0,0 +1,71 @@ +--- +applyTo: '**/*.vue' +--- + +You are given a Nuxt/Vue single-file component (.vue). Your task is to convert every hard-coded natural-language string in the