diff --git a/theseus_gui/package.json b/theseus_gui/package.json index 3c0e1a414..ec752c1db 100644 --- a/theseus_gui/package.json +++ b/theseus_gui/package.json @@ -15,7 +15,7 @@ "dependencies": { "@tauri-apps/api": "^1.2.0", "ofetch": "^1.0.1", - "omorphia": "^0.4.9", + "omorphia": "^0.4.10", "pinia": "^2.0.33", "vite-svg-loader": "^4.0.0", "vue": "^3.2.45", diff --git a/theseus_gui/src/App.vue b/theseus_gui/src/App.vue index 9eaa53dc1..f775f67db 100644 --- a/theseus_gui/src/App.vue +++ b/theseus_gui/src/App.vue @@ -12,6 +12,7 @@ import { } from 'omorphia' import { useTheming } from '@/store/state' import AccountsCard from '@/components/ui/AccountsCard.vue' +import InstanceCreationModal from '@/components/ui/InstanceCreationModal.vue' import { list } from '@/helpers/profile' import { get } from '@/helpers/settings' @@ -44,9 +45,17 @@ list().then( - + + +
diff --git a/theseus_gui/src/assets/external/default.png b/theseus_gui/src/assets/external/default.png new file mode 100644 index 000000000..dfda4ac42 Binary files /dev/null and b/theseus_gui/src/assets/external/default.png differ diff --git a/theseus_gui/src/assets/external/index.js b/theseus_gui/src/assets/external/index.js index b7aff27d4..91249d138 100644 --- a/theseus_gui/src/assets/external/index.js +++ b/theseus_gui/src/assets/external/index.js @@ -4,3 +4,4 @@ export { default as KoFiIcon } from './kofi.svg' export { default as PatreonIcon } from './patreon.svg' export { default as PaypalIcon } from './paypal.svg' export { default as OpenCollectiveIcon } from './opencollective.svg' +export { default as Default } from './default.png' diff --git a/theseus_gui/src/components/ui/InstanceCreationModal.vue b/theseus_gui/src/components/ui/InstanceCreationModal.vue new file mode 100644 index 000000000..59c9d4b0f --- /dev/null +++ b/theseus_gui/src/components/ui/InstanceCreationModal.vue @@ -0,0 +1,265 @@ + + + + + diff --git a/theseus_gui/src/helpers/profile.js b/theseus_gui/src/helpers/profile.js index 198f43e09..95749abdd 100644 --- a/theseus_gui/src/helpers/profile.js +++ b/theseus_gui/src/helpers/profile.js @@ -21,8 +21,8 @@ export async function create_empty() { - icon is a path to an image file, which will be copied into the profile directory */ -export async function create(name, game_version, modloader, loader_version, icon) { - return await invoke('profile_create', { name, game_version, modloader, loader_version, icon }) +export async function create(name, gameVersion, modloader, loaderVersion, icon) { + return await invoke('profile_create', { name, gameVersion, modloader, loaderVersion, icon }) } // Remove a profile diff --git a/theseus_gui/yarn.lock b/theseus_gui/yarn.lock index 79b33947b..5bdad4f3a 100644 --- a/theseus_gui/yarn.lock +++ b/theseus_gui/yarn.lock @@ -1168,10 +1168,10 @@ ofetch@^1.0.1: node-fetch-native "^1.0.2" ufo "^1.1.0" -omorphia@^0.4.9: - version "0.4.9" - resolved "https://registry.yarnpkg.com/omorphia/-/omorphia-0.4.9.tgz#2c13cee8892dfdf892e1912794c783c379c8c5a8" - integrity sha512-LbCCVhMmxiNdlFjJRsL4QBgBS1csA1YhV0jiKwGWp0D659ZOoatUbiY7V7gpzPv1IgI6rXC1no06cRWgSzDOKA== +omorphia@^0.4.11: + version "0.4.10" + resolved "https://registry.yarnpkg.com/omorphia/-/omorphia-0.4.10.tgz#93c0e6a08a233f27d76587286e42450af44bb55d" + integrity sha512-WgSFosOqoM0IRpzGNYyprfZSRyBLgqs6sTmKRuWo96ZpzrHRWAom2upIm/HAxAC+YBwFni5sgUeBemXYI7wmuw== dependencies: dayjs "^1.11.7" floating-vue "^2.0.0-beta.20"