Rewrite Parity (#647)
* Rewrite Parity
* Update SEO, fix modals, add dashes to changelog
* Edit create version title
* Cache tags, SEO for search/partial noscript support, notifications fix
* Deploy?
* Fix vercel config
* Fix it again
* Finish user editing
* Remove broken docker build
* Switch reports to modals
* Update project card
* Navbar line animation in most places
* Add chips
* Move to navlink query params
* remove autogen file
* Add copy code
* Fix webkit text box outlines, port report modal
* Update error page
* Switch to avatar component
* Make keyboard nav work
* Fix team member spacing
* improve project ID display (#676)
* Bug fixes
* Update OG site title
* More fixes
* Design tweaks
* Fix card wrapping on mobile
* Darken light theme color a little
* Sidebar navigation for settings, notifications, and moderation
* Change follow icon from a heart to a bell
* Revert "Change follow icon from a heart to a bell"
This reverts commit e30b46ec5d93c57df847be88eba123c7419dd03b.
* Change follows icon in settings
* AaaaUUUUUUUGghghhhhhhhh
* Project sidebar transparent button animations
* Update file input button styling and change icon remove button text
* Fix environments filter condition being inverted
* Remove -> revert
* Improve readability of warning banners on light mode
* Fix mobile menu button colors
* Clean up notifications page more
* Creator dashboard and monetization work
* Add processing fees declarations and acknowledgement box
* Beta badges
* Downgrade Nuxt Vercel Builder
* Update the style of button groups to be more consistent
* More button consistency
* Remove desktop navbar on mobile
* Update home page progress indicators
* Fix page jumping (Thanks @stairman06)
* Make checkbox checked style consistent with other selection indicators
* More home page updates
* Properly reset NavRows
* Move filters menu on mobile
* Stylized checkbox updated to match active styling
* Filters icon
* Respect prefers-reduced-motion
* Add most backend payouts changes (untested)
* Finish tested payouts code
* Allow monetization unenrolling
* No longer use brand color for active highlights on standard nav elements
* More consistent button group on project page
* Rounded tables
* Fix some things (#716)
* Team member fixes + re-add changelog/versions stuff
* Remove dummy data
* The great CSS refactor
* Remove commented out css
* Give modals the legacy label styles and update profile edit labels
* Fix active chip size
* Remove shadow from selected chip
* Require email set for CMP
* Update styles of notifications to universal-card
* Equivalent exchange, trading some jank for some less bad jank
* Fix all gallery buttons being missing when there is only 1 image
* Update project creation modal
* Make beta badge less bright
* Beta badge heading styling
* Update withdraw processing fees info
* Remove redundant label
* be
* Fix inverted logic
* 2% is 0.02
* Add toggle to turn off alpha modpacks banner
* Why warning button?
* Add more footer links (#719)
* Add more footer links
* Move twitter
* Make items on user pages less comically large and move ad above navigation
* Bump text down a little on home page
* Update favicon colors
* Remove task list package and change default description to use bullet points
* I don't remember why I made this important but let's not
* Ah, yes
* this doesn't actually need to be important
* Align items in input groups
* Adjust some spacings and clear creation modal on opening
* Versions now clickable
* Add link to edit page to default description
* Improve monetization information text
* Make wrapped text inputs not shrink
* Make chips work better
* smol margin on clear mod message button
* Allow non-authenticated users to access settings
* Remove settings anchors
* Fix versions page button style on firefox
* Add advanced rendering toggle
* Update slug input and icon card in project edit page
* Legal sidebar
* h1 at beginning of description no longer has top margin
* Use universal card for legal pages
* Update email addresses on legal pages
* Update various page titles and descriptions for consistency
* Various fixes and consolidation to API URL retrieval
Prevents a bug where it's possible to generate the tags under one API, switch the API, and still have tags leftover from the old API
Also finally fixes staging URL being jank
* Make the theme button show regardless of login state
Also remove the change theme from the user dropdown because it's very redundant with the several other ways of changing theme
* Make mobile profile dropdown ordering consistent with desktop
* Change the base url back
* Revert "Change the base url back"
This reverts commit c1da89fddb83776b39f626eab33c8dc67f8a75e4.
* constantize
* Tiny fixes (#722)
* Box-shadow chip outlines
* Show settings when signed out
* mods -> projects
* space
* Beta badge border
* Slug input overflow fix, scrollable
* 🙈 it will all be okay 🙊 this is just temporary 🙉 😭😭 forgive me
* Fix minor bugs
* fix moderation page
* More fixes
* Temp fix for download button
* BEGONE TABLES
* Fix download button
Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
Co-authored-by: stairman06 <36215135+stairman06@users.noreply.github.com>
Co-authored-by: triphora <emmaffle@modrinth.com>
2022-11-12 17:57:40 -07:00
|
|
|
<template>
|
2025-09-28 20:48:21 +01:00
|
|
|
<NewModal ref="modal" :header="formatMessage(messages.title)">
|
|
|
|
|
<div class="min-w-md flex max-w-md flex-col gap-3">
|
|
|
|
|
<CreateLimitAlert v-model="hasHitLimit" type="project" />
|
2025-08-14 21:48:38 +01:00
|
|
|
<div class="flex flex-col gap-2">
|
|
|
|
|
<label for="name">
|
|
|
|
|
<span class="text-lg font-semibold text-contrast">
|
2025-09-28 20:48:21 +01:00
|
|
|
{{ formatMessage(messages.nameLabel) }}
|
2025-08-14 21:48:38 +01:00
|
|
|
<span class="text-brand-red">*</span>
|
|
|
|
|
</span>
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
id="name"
|
|
|
|
|
v-model="name"
|
|
|
|
|
type="text"
|
|
|
|
|
maxlength="64"
|
2025-09-28 20:48:21 +01:00
|
|
|
:placeholder="formatMessage(messages.namePlaceholder)"
|
2025-08-14 21:48:38 +01:00
|
|
|
autocomplete="off"
|
2025-09-28 20:48:21 +01:00
|
|
|
:disabled="hasHitLimit"
|
2025-08-14 21:48:38 +01:00
|
|
|
@input="updatedName()"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex flex-col gap-2">
|
|
|
|
|
<label for="slug">
|
|
|
|
|
<span class="text-lg font-semibold text-contrast">
|
2025-09-28 20:48:21 +01:00
|
|
|
{{ formatMessage(messages.urlLabel) }}
|
2025-08-14 21:48:38 +01:00
|
|
|
<span class="text-brand-red">*</span>
|
|
|
|
|
</span>
|
|
|
|
|
</label>
|
|
|
|
|
<div class="text-input-wrapper">
|
|
|
|
|
<div class="text-input-wrapper__before">https://modrinth.com/project/</div>
|
|
|
|
|
<input
|
|
|
|
|
id="slug"
|
|
|
|
|
v-model="slug"
|
|
|
|
|
type="text"
|
|
|
|
|
maxlength="64"
|
|
|
|
|
autocomplete="off"
|
2025-09-28 20:48:21 +01:00
|
|
|
:disabled="hasHitLimit"
|
2025-08-14 21:48:38 +01:00
|
|
|
@input="manualSlug = true"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex flex-col gap-2">
|
|
|
|
|
<label for="visibility" class="flex flex-col gap-1">
|
|
|
|
|
<span class="text-lg font-semibold text-contrast">
|
2025-09-28 20:48:21 +01:00
|
|
|
{{ formatMessage(messages.visibilityLabel) }}
|
2025-08-14 21:48:38 +01:00
|
|
|
<span class="text-brand-red">*</span>
|
|
|
|
|
</span>
|
2025-09-28 20:48:21 +01:00
|
|
|
<span>{{ formatMessage(messages.visibilityDescription) }}</span>
|
2025-08-14 21:48:38 +01:00
|
|
|
</label>
|
2025-09-28 20:48:21 +01:00
|
|
|
<Chips
|
2025-08-14 21:48:38 +01:00
|
|
|
id="visibility"
|
|
|
|
|
v-model="visibility"
|
2025-09-28 20:48:21 +01:00
|
|
|
:items="visibilities"
|
|
|
|
|
:format-label="(x) => x.display"
|
|
|
|
|
:disabled="hasHitLimit"
|
2025-08-14 21:48:38 +01:00
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex flex-col gap-2">
|
|
|
|
|
<label for="additional-information" class="flex flex-col gap-1">
|
|
|
|
|
<span class="text-lg font-semibold text-contrast">
|
2025-09-28 20:48:21 +01:00
|
|
|
{{ formatMessage(messages.summaryLabel) }}
|
2025-08-14 21:48:38 +01:00
|
|
|
<span class="text-brand-red">*</span>
|
|
|
|
|
</span>
|
2025-09-28 20:48:21 +01:00
|
|
|
<span>{{ formatMessage(messages.summaryDescription) }}</span>
|
2025-08-14 21:48:38 +01:00
|
|
|
</label>
|
|
|
|
|
<div class="textarea-wrapper">
|
2025-09-28 20:48:21 +01:00
|
|
|
<textarea
|
|
|
|
|
id="additional-information"
|
|
|
|
|
v-model="description"
|
|
|
|
|
maxlength="256"
|
|
|
|
|
:placeholder="formatMessage(messages.summaryPlaceholder)"
|
|
|
|
|
:disabled="hasHitLimit"
|
|
|
|
|
/>
|
2025-08-14 21:48:38 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-09-28 20:48:21 +01:00
|
|
|
<div class="flex justify-end gap-2">
|
|
|
|
|
<ButtonStyled class="w-24">
|
2025-08-14 21:48:38 +01:00
|
|
|
<button @click="cancel">
|
|
|
|
|
<XIcon aria-hidden="true" />
|
2025-09-28 20:48:21 +01:00
|
|
|
{{ formatMessage(messages.cancel) }}
|
|
|
|
|
</button>
|
|
|
|
|
</ButtonStyled>
|
|
|
|
|
<ButtonStyled color="brand" class="w-32">
|
|
|
|
|
<button :disabled="hasHitLimit" @click="createProject">
|
|
|
|
|
<PlusIcon aria-hidden="true" />
|
|
|
|
|
{{ formatMessage(messages.createProject) }}
|
2025-08-14 21:48:38 +01:00
|
|
|
</button>
|
|
|
|
|
</ButtonStyled>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</NewModal>
|
Rewrite Parity (#647)
* Rewrite Parity
* Update SEO, fix modals, add dashes to changelog
* Edit create version title
* Cache tags, SEO for search/partial noscript support, notifications fix
* Deploy?
* Fix vercel config
* Fix it again
* Finish user editing
* Remove broken docker build
* Switch reports to modals
* Update project card
* Navbar line animation in most places
* Add chips
* Move to navlink query params
* remove autogen file
* Add copy code
* Fix webkit text box outlines, port report modal
* Update error page
* Switch to avatar component
* Make keyboard nav work
* Fix team member spacing
* improve project ID display (#676)
* Bug fixes
* Update OG site title
* More fixes
* Design tweaks
* Fix card wrapping on mobile
* Darken light theme color a little
* Sidebar navigation for settings, notifications, and moderation
* Change follow icon from a heart to a bell
* Revert "Change follow icon from a heart to a bell"
This reverts commit e30b46ec5d93c57df847be88eba123c7419dd03b.
* Change follows icon in settings
* AaaaUUUUUUUGghghhhhhhhh
* Project sidebar transparent button animations
* Update file input button styling and change icon remove button text
* Fix environments filter condition being inverted
* Remove -> revert
* Improve readability of warning banners on light mode
* Fix mobile menu button colors
* Clean up notifications page more
* Creator dashboard and monetization work
* Add processing fees declarations and acknowledgement box
* Beta badges
* Downgrade Nuxt Vercel Builder
* Update the style of button groups to be more consistent
* More button consistency
* Remove desktop navbar on mobile
* Update home page progress indicators
* Fix page jumping (Thanks @stairman06)
* Make checkbox checked style consistent with other selection indicators
* More home page updates
* Properly reset NavRows
* Move filters menu on mobile
* Stylized checkbox updated to match active styling
* Filters icon
* Respect prefers-reduced-motion
* Add most backend payouts changes (untested)
* Finish tested payouts code
* Allow monetization unenrolling
* No longer use brand color for active highlights on standard nav elements
* More consistent button group on project page
* Rounded tables
* Fix some things (#716)
* Team member fixes + re-add changelog/versions stuff
* Remove dummy data
* The great CSS refactor
* Remove commented out css
* Give modals the legacy label styles and update profile edit labels
* Fix active chip size
* Remove shadow from selected chip
* Require email set for CMP
* Update styles of notifications to universal-card
* Equivalent exchange, trading some jank for some less bad jank
* Fix all gallery buttons being missing when there is only 1 image
* Update project creation modal
* Make beta badge less bright
* Beta badge heading styling
* Update withdraw processing fees info
* Remove redundant label
* be
* Fix inverted logic
* 2% is 0.02
* Add toggle to turn off alpha modpacks banner
* Why warning button?
* Add more footer links (#719)
* Add more footer links
* Move twitter
* Make items on user pages less comically large and move ad above navigation
* Bump text down a little on home page
* Update favicon colors
* Remove task list package and change default description to use bullet points
* I don't remember why I made this important but let's not
* Ah, yes
* this doesn't actually need to be important
* Align items in input groups
* Adjust some spacings and clear creation modal on opening
* Versions now clickable
* Add link to edit page to default description
* Improve monetization information text
* Make wrapped text inputs not shrink
* Make chips work better
* smol margin on clear mod message button
* Allow non-authenticated users to access settings
* Remove settings anchors
* Fix versions page button style on firefox
* Add advanced rendering toggle
* Update slug input and icon card in project edit page
* Legal sidebar
* h1 at beginning of description no longer has top margin
* Use universal card for legal pages
* Update email addresses on legal pages
* Update various page titles and descriptions for consistency
* Various fixes and consolidation to API URL retrieval
Prevents a bug where it's possible to generate the tags under one API, switch the API, and still have tags leftover from the old API
Also finally fixes staging URL being jank
* Make the theme button show regardless of login state
Also remove the change theme from the user dropdown because it's very redundant with the several other ways of changing theme
* Make mobile profile dropdown ordering consistent with desktop
* Change the base url back
* Revert "Change the base url back"
This reverts commit c1da89fddb83776b39f626eab33c8dc67f8a75e4.
* constantize
* Tiny fixes (#722)
* Box-shadow chip outlines
* Show settings when signed out
* mods -> projects
* space
* Beta badge border
* Slug input overflow fix, scrollable
* 🙈 it will all be okay 🙊 this is just temporary 🙉 😭😭 forgive me
* Fix minor bugs
* fix moderation page
* More fixes
* Temp fix for download button
* BEGONE TABLES
* Fix download button
Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
Co-authored-by: stairman06 <36215135+stairman06@users.noreply.github.com>
Co-authored-by: triphora <emmaffle@modrinth.com>
2022-11-12 17:57:40 -07:00
|
|
|
</template>
|
|
|
|
|
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
<script setup>
|
2025-08-14 21:48:38 +01:00
|
|
|
import { PlusIcon, XIcon } from '@modrinth/assets'
|
2025-09-28 20:48:21 +01:00
|
|
|
import { ButtonStyled, Chips, injectNotificationManager, NewModal } from '@modrinth/ui'
|
|
|
|
|
import { defineMessages } from '@vintl/vintl'
|
2025-08-13 21:48:52 +01:00
|
|
|
|
2025-09-28 20:48:21 +01:00
|
|
|
import CreateLimitAlert from './CreateLimitAlert.vue'
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
|
2025-09-28 20:48:21 +01:00
|
|
|
const { addNotification } = injectNotificationManager()
|
|
|
|
|
const { formatMessage } = useVIntl()
|
2025-08-14 21:48:38 +01:00
|
|
|
const router = useRouter()
|
2023-07-20 11:19:42 -07:00
|
|
|
|
2025-09-28 20:48:21 +01:00
|
|
|
const messages = defineMessages({
|
|
|
|
|
title: {
|
|
|
|
|
id: 'create.project.title',
|
|
|
|
|
defaultMessage: 'Creating a project',
|
|
|
|
|
},
|
|
|
|
|
nameLabel: {
|
|
|
|
|
id: 'create.project.name-label',
|
|
|
|
|
defaultMessage: 'Name',
|
|
|
|
|
},
|
|
|
|
|
namePlaceholder: {
|
|
|
|
|
id: 'create.project.name-placeholder',
|
|
|
|
|
defaultMessage: 'Enter project name...',
|
|
|
|
|
},
|
|
|
|
|
urlLabel: {
|
|
|
|
|
id: 'create.project.url-label',
|
|
|
|
|
defaultMessage: 'URL',
|
|
|
|
|
},
|
|
|
|
|
visibilityLabel: {
|
|
|
|
|
id: 'create.project.visibility-label',
|
|
|
|
|
defaultMessage: 'Visibility',
|
|
|
|
|
},
|
|
|
|
|
visibilityDescription: {
|
|
|
|
|
id: 'create.project.visibility-description',
|
|
|
|
|
defaultMessage: 'The visibility of your project after it has been approved.',
|
|
|
|
|
},
|
|
|
|
|
summaryLabel: {
|
|
|
|
|
id: 'create.project.summary-label',
|
|
|
|
|
defaultMessage: 'Summary',
|
|
|
|
|
},
|
|
|
|
|
summaryDescription: {
|
|
|
|
|
id: 'create.project.summary-description',
|
|
|
|
|
defaultMessage: 'A sentence or two that describes your project.',
|
|
|
|
|
},
|
|
|
|
|
summaryPlaceholder: {
|
|
|
|
|
id: 'create.project.summary-placeholder',
|
|
|
|
|
defaultMessage: 'This project adds...',
|
|
|
|
|
},
|
|
|
|
|
cancel: {
|
|
|
|
|
id: 'create.project.cancel',
|
|
|
|
|
defaultMessage: 'Cancel',
|
|
|
|
|
},
|
|
|
|
|
createProject: {
|
|
|
|
|
id: 'create.project.create-project',
|
|
|
|
|
defaultMessage: 'Create project',
|
|
|
|
|
},
|
|
|
|
|
errorTitle: {
|
|
|
|
|
id: 'create.project.error-title',
|
|
|
|
|
defaultMessage: 'An error occurred',
|
|
|
|
|
},
|
|
|
|
|
visibilityPublic: {
|
|
|
|
|
id: 'create.project.visibility-public',
|
|
|
|
|
defaultMessage: 'Public',
|
|
|
|
|
},
|
|
|
|
|
visibilityUnlisted: {
|
|
|
|
|
id: 'create.project.visibility-unlisted',
|
|
|
|
|
defaultMessage: 'Unlisted',
|
|
|
|
|
},
|
|
|
|
|
visibilityPrivate: {
|
|
|
|
|
id: 'create.project.visibility-private',
|
|
|
|
|
defaultMessage: 'Private',
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
const props = defineProps({
|
2025-08-14 21:48:38 +01:00
|
|
|
organizationId: {
|
|
|
|
|
type: String,
|
|
|
|
|
required: false,
|
|
|
|
|
default: null,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const modal = ref()
|
2025-09-28 20:48:21 +01:00
|
|
|
const hasHitLimit = ref(false)
|
2025-08-14 21:48:38 +01:00
|
|
|
|
|
|
|
|
const name = ref('')
|
|
|
|
|
const slug = ref('')
|
|
|
|
|
const description = ref('')
|
|
|
|
|
const manualSlug = ref(false)
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
const visibilities = ref([
|
2025-08-14 21:48:38 +01:00
|
|
|
{
|
|
|
|
|
actual: 'approved',
|
2025-09-28 20:48:21 +01:00
|
|
|
display: formatMessage(messages.visibilityPublic),
|
2025-08-14 21:48:38 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actual: 'unlisted',
|
2025-09-28 20:48:21 +01:00
|
|
|
display: formatMessage(messages.visibilityUnlisted),
|
2025-08-14 21:48:38 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actual: 'private',
|
2025-09-28 20:48:21 +01:00
|
|
|
display: formatMessage(messages.visibilityPrivate),
|
2025-08-14 21:48:38 +01:00
|
|
|
},
|
|
|
|
|
])
|
2025-09-28 20:48:21 +01:00
|
|
|
const visibility = ref(visibilities.value[0])
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
|
|
|
|
|
const cancel = () => {
|
2025-08-14 21:48:38 +01:00
|
|
|
modal.value.hide()
|
|
|
|
|
}
|
Rewrite Parity (#647)
* Rewrite Parity
* Update SEO, fix modals, add dashes to changelog
* Edit create version title
* Cache tags, SEO for search/partial noscript support, notifications fix
* Deploy?
* Fix vercel config
* Fix it again
* Finish user editing
* Remove broken docker build
* Switch reports to modals
* Update project card
* Navbar line animation in most places
* Add chips
* Move to navlink query params
* remove autogen file
* Add copy code
* Fix webkit text box outlines, port report modal
* Update error page
* Switch to avatar component
* Make keyboard nav work
* Fix team member spacing
* improve project ID display (#676)
* Bug fixes
* Update OG site title
* More fixes
* Design tweaks
* Fix card wrapping on mobile
* Darken light theme color a little
* Sidebar navigation for settings, notifications, and moderation
* Change follow icon from a heart to a bell
* Revert "Change follow icon from a heart to a bell"
This reverts commit e30b46ec5d93c57df847be88eba123c7419dd03b.
* Change follows icon in settings
* AaaaUUUUUUUGghghhhhhhhh
* Project sidebar transparent button animations
* Update file input button styling and change icon remove button text
* Fix environments filter condition being inverted
* Remove -> revert
* Improve readability of warning banners on light mode
* Fix mobile menu button colors
* Clean up notifications page more
* Creator dashboard and monetization work
* Add processing fees declarations and acknowledgement box
* Beta badges
* Downgrade Nuxt Vercel Builder
* Update the style of button groups to be more consistent
* More button consistency
* Remove desktop navbar on mobile
* Update home page progress indicators
* Fix page jumping (Thanks @stairman06)
* Make checkbox checked style consistent with other selection indicators
* More home page updates
* Properly reset NavRows
* Move filters menu on mobile
* Stylized checkbox updated to match active styling
* Filters icon
* Respect prefers-reduced-motion
* Add most backend payouts changes (untested)
* Finish tested payouts code
* Allow monetization unenrolling
* No longer use brand color for active highlights on standard nav elements
* More consistent button group on project page
* Rounded tables
* Fix some things (#716)
* Team member fixes + re-add changelog/versions stuff
* Remove dummy data
* The great CSS refactor
* Remove commented out css
* Give modals the legacy label styles and update profile edit labels
* Fix active chip size
* Remove shadow from selected chip
* Require email set for CMP
* Update styles of notifications to universal-card
* Equivalent exchange, trading some jank for some less bad jank
* Fix all gallery buttons being missing when there is only 1 image
* Update project creation modal
* Make beta badge less bright
* Beta badge heading styling
* Update withdraw processing fees info
* Remove redundant label
* be
* Fix inverted logic
* 2% is 0.02
* Add toggle to turn off alpha modpacks banner
* Why warning button?
* Add more footer links (#719)
* Add more footer links
* Move twitter
* Make items on user pages less comically large and move ad above navigation
* Bump text down a little on home page
* Update favicon colors
* Remove task list package and change default description to use bullet points
* I don't remember why I made this important but let's not
* Ah, yes
* this doesn't actually need to be important
* Align items in input groups
* Adjust some spacings and clear creation modal on opening
* Versions now clickable
* Add link to edit page to default description
* Improve monetization information text
* Make wrapped text inputs not shrink
* Make chips work better
* smol margin on clear mod message button
* Allow non-authenticated users to access settings
* Remove settings anchors
* Fix versions page button style on firefox
* Add advanced rendering toggle
* Update slug input and icon card in project edit page
* Legal sidebar
* h1 at beginning of description no longer has top margin
* Use universal card for legal pages
* Update email addresses on legal pages
* Update various page titles and descriptions for consistency
* Various fixes and consolidation to API URL retrieval
Prevents a bug where it's possible to generate the tags under one API, switch the API, and still have tags leftover from the old API
Also finally fixes staging URL being jank
* Make the theme button show regardless of login state
Also remove the change theme from the user dropdown because it's very redundant with the several other ways of changing theme
* Make mobile profile dropdown ordering consistent with desktop
* Change the base url back
* Revert "Change the base url back"
This reverts commit c1da89fddb83776b39f626eab33c8dc67f8a75e4.
* constantize
* Tiny fixes (#722)
* Box-shadow chip outlines
* Show settings when signed out
* mods -> projects
* space
* Beta badge border
* Slug input overflow fix, scrollable
* 🙈 it will all be okay 🙊 this is just temporary 🙉 😭😭 forgive me
* Fix minor bugs
* fix moderation page
* More fixes
* Temp fix for download button
* BEGONE TABLES
* Fix download button
Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
Co-authored-by: stairman06 <36215135+stairman06@users.noreply.github.com>
Co-authored-by: triphora <emmaffle@modrinth.com>
2022-11-12 17:57:40 -07:00
|
|
|
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
async function createProject() {
|
2025-08-14 21:48:38 +01:00
|
|
|
startLoading()
|
|
|
|
|
|
|
|
|
|
const formData = new FormData()
|
|
|
|
|
|
|
|
|
|
const auth = await useAuth()
|
|
|
|
|
|
|
|
|
|
const projectData = {
|
|
|
|
|
title: name.value.trim(),
|
|
|
|
|
project_type: 'mod',
|
|
|
|
|
slug: slug.value,
|
|
|
|
|
description: description.value.trim(),
|
|
|
|
|
body: '',
|
|
|
|
|
requested_status: visibility.value.actual,
|
|
|
|
|
initial_versions: [],
|
|
|
|
|
team_members: [
|
|
|
|
|
{
|
|
|
|
|
user_id: auth.value.user.id,
|
|
|
|
|
name: auth.value.user.username,
|
|
|
|
|
role: 'Owner',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
categories: [],
|
|
|
|
|
client_side: 'required',
|
|
|
|
|
server_side: 'required',
|
|
|
|
|
license_id: 'LicenseRef-Unknown',
|
|
|
|
|
is_draft: true,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (props.organizationId) {
|
|
|
|
|
projectData.organization_id = props.organizationId
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
formData.append('data', JSON.stringify(projectData))
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
await useBaseFetch('project', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: formData,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Disposition': formData,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
modal.value.hide()
|
|
|
|
|
await router.push({
|
|
|
|
|
name: 'type-id',
|
|
|
|
|
params: {
|
|
|
|
|
type: 'project',
|
|
|
|
|
id: slug.value,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
} catch (err) {
|
|
|
|
|
addNotification({
|
2025-09-28 20:48:21 +01:00
|
|
|
title: formatMessage(messages.errorTitle),
|
2025-08-14 21:48:38 +01:00
|
|
|
text: err.data ? err.data.description : err,
|
|
|
|
|
type: 'error',
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
stopLoading()
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
}
|
Rewrite Parity (#647)
* Rewrite Parity
* Update SEO, fix modals, add dashes to changelog
* Edit create version title
* Cache tags, SEO for search/partial noscript support, notifications fix
* Deploy?
* Fix vercel config
* Fix it again
* Finish user editing
* Remove broken docker build
* Switch reports to modals
* Update project card
* Navbar line animation in most places
* Add chips
* Move to navlink query params
* remove autogen file
* Add copy code
* Fix webkit text box outlines, port report modal
* Update error page
* Switch to avatar component
* Make keyboard nav work
* Fix team member spacing
* improve project ID display (#676)
* Bug fixes
* Update OG site title
* More fixes
* Design tweaks
* Fix card wrapping on mobile
* Darken light theme color a little
* Sidebar navigation for settings, notifications, and moderation
* Change follow icon from a heart to a bell
* Revert "Change follow icon from a heart to a bell"
This reverts commit e30b46ec5d93c57df847be88eba123c7419dd03b.
* Change follows icon in settings
* AaaaUUUUUUUGghghhhhhhhh
* Project sidebar transparent button animations
* Update file input button styling and change icon remove button text
* Fix environments filter condition being inverted
* Remove -> revert
* Improve readability of warning banners on light mode
* Fix mobile menu button colors
* Clean up notifications page more
* Creator dashboard and monetization work
* Add processing fees declarations and acknowledgement box
* Beta badges
* Downgrade Nuxt Vercel Builder
* Update the style of button groups to be more consistent
* More button consistency
* Remove desktop navbar on mobile
* Update home page progress indicators
* Fix page jumping (Thanks @stairman06)
* Make checkbox checked style consistent with other selection indicators
* More home page updates
* Properly reset NavRows
* Move filters menu on mobile
* Stylized checkbox updated to match active styling
* Filters icon
* Respect prefers-reduced-motion
* Add most backend payouts changes (untested)
* Finish tested payouts code
* Allow monetization unenrolling
* No longer use brand color for active highlights on standard nav elements
* More consistent button group on project page
* Rounded tables
* Fix some things (#716)
* Team member fixes + re-add changelog/versions stuff
* Remove dummy data
* The great CSS refactor
* Remove commented out css
* Give modals the legacy label styles and update profile edit labels
* Fix active chip size
* Remove shadow from selected chip
* Require email set for CMP
* Update styles of notifications to universal-card
* Equivalent exchange, trading some jank for some less bad jank
* Fix all gallery buttons being missing when there is only 1 image
* Update project creation modal
* Make beta badge less bright
* Beta badge heading styling
* Update withdraw processing fees info
* Remove redundant label
* be
* Fix inverted logic
* 2% is 0.02
* Add toggle to turn off alpha modpacks banner
* Why warning button?
* Add more footer links (#719)
* Add more footer links
* Move twitter
* Make items on user pages less comically large and move ad above navigation
* Bump text down a little on home page
* Update favicon colors
* Remove task list package and change default description to use bullet points
* I don't remember why I made this important but let's not
* Ah, yes
* this doesn't actually need to be important
* Align items in input groups
* Adjust some spacings and clear creation modal on opening
* Versions now clickable
* Add link to edit page to default description
* Improve monetization information text
* Make wrapped text inputs not shrink
* Make chips work better
* smol margin on clear mod message button
* Allow non-authenticated users to access settings
* Remove settings anchors
* Fix versions page button style on firefox
* Add advanced rendering toggle
* Update slug input and icon card in project edit page
* Legal sidebar
* h1 at beginning of description no longer has top margin
* Use universal card for legal pages
* Update email addresses on legal pages
* Update various page titles and descriptions for consistency
* Various fixes and consolidation to API URL retrieval
Prevents a bug where it's possible to generate the tags under one API, switch the API, and still have tags leftover from the old API
Also finally fixes staging URL being jank
* Make the theme button show regardless of login state
Also remove the change theme from the user dropdown because it's very redundant with the several other ways of changing theme
* Make mobile profile dropdown ordering consistent with desktop
* Change the base url back
* Revert "Change the base url back"
This reverts commit c1da89fddb83776b39f626eab33c8dc67f8a75e4.
* constantize
* Tiny fixes (#722)
* Box-shadow chip outlines
* Show settings when signed out
* mods -> projects
* space
* Beta badge border
* Slug input overflow fix, scrollable
* 🙈 it will all be okay 🙊 this is just temporary 🙉 😭😭 forgive me
* Fix minor bugs
* fix moderation page
* More fixes
* Temp fix for download button
* BEGONE TABLES
* Fix download button
Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
Co-authored-by: stairman06 <36215135+stairman06@users.noreply.github.com>
Co-authored-by: triphora <emmaffle@modrinth.com>
2022-11-12 17:57:40 -07:00
|
|
|
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
function show(event) {
|
2025-08-14 21:48:38 +01:00
|
|
|
name.value = ''
|
|
|
|
|
slug.value = ''
|
|
|
|
|
description.value = ''
|
|
|
|
|
manualSlug.value = false
|
|
|
|
|
modal.value.show(event)
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
}
|
Rewrite Parity (#647)
* Rewrite Parity
* Update SEO, fix modals, add dashes to changelog
* Edit create version title
* Cache tags, SEO for search/partial noscript support, notifications fix
* Deploy?
* Fix vercel config
* Fix it again
* Finish user editing
* Remove broken docker build
* Switch reports to modals
* Update project card
* Navbar line animation in most places
* Add chips
* Move to navlink query params
* remove autogen file
* Add copy code
* Fix webkit text box outlines, port report modal
* Update error page
* Switch to avatar component
* Make keyboard nav work
* Fix team member spacing
* improve project ID display (#676)
* Bug fixes
* Update OG site title
* More fixes
* Design tweaks
* Fix card wrapping on mobile
* Darken light theme color a little
* Sidebar navigation for settings, notifications, and moderation
* Change follow icon from a heart to a bell
* Revert "Change follow icon from a heart to a bell"
This reverts commit e30b46ec5d93c57df847be88eba123c7419dd03b.
* Change follows icon in settings
* AaaaUUUUUUUGghghhhhhhhh
* Project sidebar transparent button animations
* Update file input button styling and change icon remove button text
* Fix environments filter condition being inverted
* Remove -> revert
* Improve readability of warning banners on light mode
* Fix mobile menu button colors
* Clean up notifications page more
* Creator dashboard and monetization work
* Add processing fees declarations and acknowledgement box
* Beta badges
* Downgrade Nuxt Vercel Builder
* Update the style of button groups to be more consistent
* More button consistency
* Remove desktop navbar on mobile
* Update home page progress indicators
* Fix page jumping (Thanks @stairman06)
* Make checkbox checked style consistent with other selection indicators
* More home page updates
* Properly reset NavRows
* Move filters menu on mobile
* Stylized checkbox updated to match active styling
* Filters icon
* Respect prefers-reduced-motion
* Add most backend payouts changes (untested)
* Finish tested payouts code
* Allow monetization unenrolling
* No longer use brand color for active highlights on standard nav elements
* More consistent button group on project page
* Rounded tables
* Fix some things (#716)
* Team member fixes + re-add changelog/versions stuff
* Remove dummy data
* The great CSS refactor
* Remove commented out css
* Give modals the legacy label styles and update profile edit labels
* Fix active chip size
* Remove shadow from selected chip
* Require email set for CMP
* Update styles of notifications to universal-card
* Equivalent exchange, trading some jank for some less bad jank
* Fix all gallery buttons being missing when there is only 1 image
* Update project creation modal
* Make beta badge less bright
* Beta badge heading styling
* Update withdraw processing fees info
* Remove redundant label
* be
* Fix inverted logic
* 2% is 0.02
* Add toggle to turn off alpha modpacks banner
* Why warning button?
* Add more footer links (#719)
* Add more footer links
* Move twitter
* Make items on user pages less comically large and move ad above navigation
* Bump text down a little on home page
* Update favicon colors
* Remove task list package and change default description to use bullet points
* I don't remember why I made this important but let's not
* Ah, yes
* this doesn't actually need to be important
* Align items in input groups
* Adjust some spacings and clear creation modal on opening
* Versions now clickable
* Add link to edit page to default description
* Improve monetization information text
* Make wrapped text inputs not shrink
* Make chips work better
* smol margin on clear mod message button
* Allow non-authenticated users to access settings
* Remove settings anchors
* Fix versions page button style on firefox
* Add advanced rendering toggle
* Update slug input and icon card in project edit page
* Legal sidebar
* h1 at beginning of description no longer has top margin
* Use universal card for legal pages
* Update email addresses on legal pages
* Update various page titles and descriptions for consistency
* Various fixes and consolidation to API URL retrieval
Prevents a bug where it's possible to generate the tags under one API, switch the API, and still have tags leftover from the old API
Also finally fixes staging URL being jank
* Make the theme button show regardless of login state
Also remove the change theme from the user dropdown because it's very redundant with the several other ways of changing theme
* Make mobile profile dropdown ordering consistent with desktop
* Change the base url back
* Revert "Change the base url back"
This reverts commit c1da89fddb83776b39f626eab33c8dc67f8a75e4.
* constantize
* Tiny fixes (#722)
* Box-shadow chip outlines
* Show settings when signed out
* mods -> projects
* space
* Beta badge border
* Slug input overflow fix, scrollable
* 🙈 it will all be okay 🙊 this is just temporary 🙉 😭😭 forgive me
* Fix minor bugs
* fix moderation page
* More fixes
* Temp fix for download button
* BEGONE TABLES
* Fix download button
Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
Co-authored-by: stairman06 <36215135+stairman06@users.noreply.github.com>
Co-authored-by: triphora <emmaffle@modrinth.com>
2022-11-12 17:57:40 -07:00
|
|
|
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
defineExpose({
|
2025-08-14 21:48:38 +01:00
|
|
|
show,
|
|
|
|
|
})
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
|
|
|
|
|
function updatedName() {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (!manualSlug.value) {
|
|
|
|
|
slug.value = name.value
|
|
|
|
|
.trim()
|
|
|
|
|
.toLowerCase()
|
|
|
|
|
.replaceAll(' ', '-')
|
|
|
|
|
.replaceAll(/[^a-zA-Z0-9!@$()`.+,_"-]/g, '')
|
|
|
|
|
.replaceAll(/--+/gm, '-')
|
|
|
|
|
}
|
Rewrite Parity (#647)
* Rewrite Parity
* Update SEO, fix modals, add dashes to changelog
* Edit create version title
* Cache tags, SEO for search/partial noscript support, notifications fix
* Deploy?
* Fix vercel config
* Fix it again
* Finish user editing
* Remove broken docker build
* Switch reports to modals
* Update project card
* Navbar line animation in most places
* Add chips
* Move to navlink query params
* remove autogen file
* Add copy code
* Fix webkit text box outlines, port report modal
* Update error page
* Switch to avatar component
* Make keyboard nav work
* Fix team member spacing
* improve project ID display (#676)
* Bug fixes
* Update OG site title
* More fixes
* Design tweaks
* Fix card wrapping on mobile
* Darken light theme color a little
* Sidebar navigation for settings, notifications, and moderation
* Change follow icon from a heart to a bell
* Revert "Change follow icon from a heart to a bell"
This reverts commit e30b46ec5d93c57df847be88eba123c7419dd03b.
* Change follows icon in settings
* AaaaUUUUUUUGghghhhhhhhh
* Project sidebar transparent button animations
* Update file input button styling and change icon remove button text
* Fix environments filter condition being inverted
* Remove -> revert
* Improve readability of warning banners on light mode
* Fix mobile menu button colors
* Clean up notifications page more
* Creator dashboard and monetization work
* Add processing fees declarations and acknowledgement box
* Beta badges
* Downgrade Nuxt Vercel Builder
* Update the style of button groups to be more consistent
* More button consistency
* Remove desktop navbar on mobile
* Update home page progress indicators
* Fix page jumping (Thanks @stairman06)
* Make checkbox checked style consistent with other selection indicators
* More home page updates
* Properly reset NavRows
* Move filters menu on mobile
* Stylized checkbox updated to match active styling
* Filters icon
* Respect prefers-reduced-motion
* Add most backend payouts changes (untested)
* Finish tested payouts code
* Allow monetization unenrolling
* No longer use brand color for active highlights on standard nav elements
* More consistent button group on project page
* Rounded tables
* Fix some things (#716)
* Team member fixes + re-add changelog/versions stuff
* Remove dummy data
* The great CSS refactor
* Remove commented out css
* Give modals the legacy label styles and update profile edit labels
* Fix active chip size
* Remove shadow from selected chip
* Require email set for CMP
* Update styles of notifications to universal-card
* Equivalent exchange, trading some jank for some less bad jank
* Fix all gallery buttons being missing when there is only 1 image
* Update project creation modal
* Make beta badge less bright
* Beta badge heading styling
* Update withdraw processing fees info
* Remove redundant label
* be
* Fix inverted logic
* 2% is 0.02
* Add toggle to turn off alpha modpacks banner
* Why warning button?
* Add more footer links (#719)
* Add more footer links
* Move twitter
* Make items on user pages less comically large and move ad above navigation
* Bump text down a little on home page
* Update favicon colors
* Remove task list package and change default description to use bullet points
* I don't remember why I made this important but let's not
* Ah, yes
* this doesn't actually need to be important
* Align items in input groups
* Adjust some spacings and clear creation modal on opening
* Versions now clickable
* Add link to edit page to default description
* Improve monetization information text
* Make wrapped text inputs not shrink
* Make chips work better
* smol margin on clear mod message button
* Allow non-authenticated users to access settings
* Remove settings anchors
* Fix versions page button style on firefox
* Add advanced rendering toggle
* Update slug input and icon card in project edit page
* Legal sidebar
* h1 at beginning of description no longer has top margin
* Use universal card for legal pages
* Update email addresses on legal pages
* Update various page titles and descriptions for consistency
* Various fixes and consolidation to API URL retrieval
Prevents a bug where it's possible to generate the tags under one API, switch the API, and still have tags leftover from the old API
Also finally fixes staging URL being jank
* Make the theme button show regardless of login state
Also remove the change theme from the user dropdown because it's very redundant with the several other ways of changing theme
* Make mobile profile dropdown ordering consistent with desktop
* Change the base url back
* Revert "Change the base url back"
This reverts commit c1da89fddb83776b39f626eab33c8dc67f8a75e4.
* constantize
* Tiny fixes (#722)
* Box-shadow chip outlines
* Show settings when signed out
* mods -> projects
* space
* Beta badge border
* Slug input overflow fix, scrollable
* 🙈 it will all be okay 🙊 this is just temporary 🙉 😭😭 forgive me
* Fix minor bugs
* fix moderation page
* More fixes
* Temp fix for download button
* BEGONE TABLES
* Fix download button
Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
Co-authored-by: stairman06 <36215135+stairman06@users.noreply.github.com>
Co-authored-by: triphora <emmaffle@modrinth.com>
2022-11-12 17:57:40 -07:00
|
|
|
}
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
</script>
|