From 0d6883c6c0f4c522f1aacccd4ea2ac4815c6dfee Mon Sep 17 00:00:00 2001 From: tdgao Date: Thu, 2 Jul 2026 09:57:38 -0700 Subject: [PATCH] refactor: split out download project and install with modrinth app sections --- ...esSection.vue => DownloadDependencies.vue} | 2 +- .../ProjectDownloadModal/DownloadProject.vue | 237 +++++++++++++++ .../InstallWithModrinthApp.vue | 106 +++++++ .../ui/ProjectDownloadModal/index.vue | 275 ++---------------- 4 files changed, 376 insertions(+), 244 deletions(-) rename apps/frontend/src/components/ui/ProjectDownloadModal/{DownloadDependenciesSection.vue => DownloadDependencies.vue} (99%) create mode 100644 apps/frontend/src/components/ui/ProjectDownloadModal/DownloadProject.vue create mode 100644 apps/frontend/src/components/ui/ProjectDownloadModal/InstallWithModrinthApp.vue diff --git a/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependenciesSection.vue b/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependencies.vue similarity index 99% rename from apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependenciesSection.vue rename to apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependencies.vue index bf885c1509..2a63c7a6a3 100644 --- a/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependenciesSection.vue +++ b/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependencies.vue @@ -95,7 +95,7 @@ import { DownloadIcon, PackageIcon, RightArrowIcon } from '@modrinth/assets' import { Avatar, ButtonStyled, defineMessages, TagItem, useVIntl } from '@modrinth/ui' defineOptions({ - name: 'DownloadDependenciesSection', + name: 'DownloadDependencies', }) defineProps({ diff --git a/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadProject.vue b/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadProject.vue new file mode 100644 index 0000000000..dbfacf04f3 --- /dev/null +++ b/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadProject.vue @@ -0,0 +1,237 @@ + + + diff --git a/apps/frontend/src/components/ui/ProjectDownloadModal/InstallWithModrinthApp.vue b/apps/frontend/src/components/ui/ProjectDownloadModal/InstallWithModrinthApp.vue new file mode 100644 index 0000000000..96fd1ed06d --- /dev/null +++ b/apps/frontend/src/components/ui/ProjectDownloadModal/InstallWithModrinthApp.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/apps/frontend/src/components/ui/ProjectDownloadModal/index.vue b/apps/frontend/src/components/ui/ProjectDownloadModal/index.vue index eebff60636..6d0decc205 100644 --- a/apps/frontend/src/components/ui/ProjectDownloadModal/index.vue +++ b/apps/frontend/src/components/ui/ProjectDownloadModal/index.vue @@ -8,167 +8,29 @@ - -