Finish adding omorphia

This commit is contained in:
Jai A
2024-07-03 19:12:20 -07:00
parent ef4acb1b66
commit 9502639447
363 changed files with 1360 additions and 7736 deletions

View File

@@ -12,7 +12,7 @@ import {
Notifications,
XIcon,
Card,
} from 'omorphia'
} from '@modrinth/omorphia'
import { useLoading, useTheming } from '@/store/state'
import AccountsCard from '@/components/ui/AccountsCard.vue'
import InstanceCreationModal from '@/components/ui/InstanceCreationModal.vue'

View File

@@ -16,7 +16,7 @@ import {
Button,
formatCategoryHeader,
ConfirmModal,
} from 'omorphia'
} from '@modrinth/omorphia'
import ContextMenu from '@/components/ui/ContextMenu.vue'
import dayjs from 'dayjs'
import { useTheming } from '@/store/theme.js'

View File

@@ -12,7 +12,7 @@ import {
EyeIcon,
ChevronRightIcon,
ConfirmModal,
} from 'omorphia'
} from '@modrinth/omorphia'
import Instance from '@/components/ui/Instance.vue'
import { computed, onMounted, onUnmounted, ref } from 'vue'
import ContextMenu from '@/components/ui/ContextMenu.vue'

View File

@@ -59,7 +59,7 @@
</template>
<script setup>
import { Avatar, Button, Card, PlusIcon, TrashIcon, LogInIcon } from 'omorphia'
import { Avatar, Button, Card, PlusIcon, TrashIcon, LogInIcon } from '@modrinth/omorphia'
import { ref, computed, onMounted, onBeforeUnmount, onUnmounted } from 'vue'
import {
users,

View File

@@ -31,7 +31,7 @@
</template>
<script setup>
import { ChevronRightIcon, Button, ChevronLeftIcon } from 'omorphia'
import { ChevronRightIcon, Button, ChevronLeftIcon } from '@modrinth/omorphia'
import { useBreadcrumbs } from '@/store/breadcrumbs'
import { useRoute } from 'vue-router'
import { computed } from 'vue'

View File

@@ -1,5 +1,5 @@
<script setup>
import { Modal, XIcon, IssuesIcon, LogInIcon } from 'omorphia'
import { Modal, XIcon, IssuesIcon, LogInIcon } from '@modrinth/omorphia'
import { ChatIcon } from '@/assets/icons'
import { ref } from 'vue'
import { login as login_flow, set_default_user } from '@/helpers/auth.js'

View File

@@ -1,5 +1,5 @@
<script setup>
import { Button, Checkbox, Modal, XIcon, PlusIcon } from 'omorphia'
import { Button, Checkbox, Modal, XIcon, PlusIcon } from '@modrinth/omorphia'
import { PackageIcon, VersionIcon } from '@/assets/icons'
import { ref } from 'vue'
import { export_profile_mrpack, get_pack_export_candidates } from '@/helpers/profile.js'

View File

@@ -56,7 +56,7 @@
</template>
<script setup>
import { Button, Modal, XIcon, DownloadIcon, DropdownSelect, formatCategory } from 'omorphia'
import { Button, Modal, XIcon, DownloadIcon, DropdownSelect, formatCategory } from '@modrinth/omorphia'
import { add_project_from_version as installMod } from '@/helpers/profile'
import { ref } from 'vue'
import { handleError, useTheming } from '@/store/state.js'

View File

@@ -1,5 +1,5 @@
<script setup>
import { Button, Modal, XIcon, DownloadIcon } from 'omorphia'
import { Button, Modal, XIcon, DownloadIcon } from '@modrinth/omorphia'
import { install as pack_install } from '@/helpers/pack'
import { ref } from 'vue'
import { mixpanel_track } from '@/helpers/mixpanel'

View File

@@ -1,7 +1,7 @@
<script setup>
import { onUnmounted, ref, watch } from 'vue'
import { useRouter } from 'vue-router'
import { Card, DownloadIcon, StopCircleIcon, Avatar, AnimatedLogo, PlayIcon } from 'omorphia'
import { Card, DownloadIcon, StopCircleIcon, Avatar, AnimatedLogo, PlayIcon } from '@modrinth/omorphia'
import { convertFileSrc } from '@tauri-apps/api/tauri'
import InstallConfirmModal from '@/components/ui/InstallConfirmModal.vue'
import { install as pack_install } from '@/helpers/pack'

View File

@@ -211,7 +211,7 @@ import {
InfoIcon,
FolderSearchIcon,
UpdatedIcon,
} from 'omorphia'
} from '@modrinth/omorphia'
import { computed, onUnmounted, ref, shallowRef } from 'vue'
import { get_loaders } from '@/helpers/tags'
import { create } from '@/helpers/profile'

View File

@@ -35,7 +35,7 @@
</Modal>
</template>
<script setup>
import { Modal, PlusIcon, CheckIcon, Button, XIcon } from 'omorphia'
import { Modal, PlusIcon, CheckIcon, Button, XIcon } from '@modrinth/omorphia'
import { ref } from 'vue'
import { find_filtered_jres } from '@/helpers/jre.js'
import { handleError } from '@/store/notifications.js'

View File

@@ -60,7 +60,7 @@ import {
XIcon,
FolderSearchIcon,
DownloadIcon,
} from 'omorphia'
} from '@modrinth/omorphia'
import { auto_install_java, find_filtered_jres, get_jre, test_jre } from '@/helpers/jre.js'
import { ref } from 'vue'
import { open } from '@tauri-apps/api/dialog'

View File

@@ -10,7 +10,7 @@ import {
XIcon,
RightArrowIcon,
CheckIcon,
} from 'omorphia'
} from '@modrinth/omorphia'
import { computed, ref } from 'vue'
import {
add_project_from_version as installMod,

View File

@@ -1,5 +1,5 @@
<script setup>
import { Button, Modal, CheckIcon, Badge } from 'omorphia'
import { Button, Modal, CheckIcon, Badge } from '@modrinth/omorphia'
import { computed, ref } from 'vue'
import { useTheming } from '@/store/theme'
import { update_managed_modrinth_version } from '@/helpers/profile'

View File

@@ -8,7 +8,7 @@ import {
DownloadIcon,
HeartIcon,
CalendarIcon,
} from 'omorphia'
} from '@modrinth/omorphia'
import { computed, ref } from 'vue'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'

View File

@@ -110,7 +110,7 @@ import {
StopCircleIcon,
TerminalSquareIcon,
DropdownIcon,
} from 'omorphia'
} from '@modrinth/omorphia'
import { onBeforeUnmount, onMounted, ref } from 'vue'
import {
get_all_running_profiles as getRunningProfiles,

View File

@@ -76,7 +76,7 @@ import {
CalendarIcon,
CheckIcon,
StarIcon,
} from 'omorphia'
} from '@modrinth/omorphia'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import { ref } from 'vue'

View File

@@ -5,7 +5,7 @@
</template>
<script setup>
import { AnimatedLogo } from 'omorphia'
import { AnimatedLogo } from '@modrinth/omorphia'
defineProps({
appLoading: Boolean,

View File

@@ -1,5 +1,5 @@
<script setup>
import { Modal, Button } from 'omorphia'
import { Modal, Button } from '@modrinth/omorphia'
import { ref } from 'vue'
import { useFetch } from '@/helpers/fetch.js'
import SearchCard from '@/components/ui/SearchCard.vue'

View File

@@ -7,7 +7,7 @@
* }
*/
import { computed, ref } from 'vue'
import { Button, ChevronRightIcon, ChevronLeftIcon } from 'omorphia'
import { Button, ChevronRightIcon, ChevronLeftIcon } from '@modrinth/omorphia'
const props = defineProps({
logo: {

View File

@@ -1,5 +1,5 @@
<script setup>
import { Button, LogInIcon, Card } from 'omorphia'
import { Button, LogInIcon, Card } from '@modrinth/omorphia'
import { login as login_flow, set_default_user } from '@/helpers/auth.js'
import { handleError } from '@/store/notifications.js'
import mixpanel from 'mixpanel-browser'

View File

@@ -1,5 +1,5 @@
<script setup>
import { Button, Card, UserIcon, LockIcon, MailIcon, Checkbox } from 'omorphia'
import { Button, Card, UserIcon, LockIcon, MailIcon, Checkbox } from '@modrinth/omorphia'
import {
DiscordIcon,
GithubIcon,

View File

@@ -1,5 +1,5 @@
<script setup>
import { Button } from 'omorphia'
import { Button } from '@modrinth/omorphia'
import { ref } from 'vue'
import { get, set } from '@/helpers/settings.js'
import mixpanel from 'mixpanel-browser'

View File

@@ -1,5 +1,5 @@
<script setup>
import { Button, XIcon } from 'omorphia'
import { Button, XIcon } from '@modrinth/omorphia'
import { appWindow } from '@tauri-apps/api/window'
import { saveWindowState, StateFlags } from 'tauri-plugin-window-state-api'
import { window } from '@tauri-apps/api'

View File

@@ -2,7 +2,7 @@ import { createApp } from 'vue'
import router from '@/routes'
import App from '@/App.vue'
import { createPinia } from 'pinia'
import 'omorphia/dist/style.css'
import '../../../libs/omorphia/src/assets/omorphia.scss'
import '@/assets/stylesheets/global.scss'
import 'floating-vue/dist/style.css'
import FloatingVue from 'floating-vue'

View File

@@ -16,13 +16,13 @@ import {
Promotion,
XIcon,
DropdownSelect,
} from 'omorphia'
} from '@modrinth/omorphia'
import Multiselect from 'vue-multiselect'
import { handleError } from '@/store/state'
import { useBreadcrumbs } from '@/store/breadcrumbs'
import { get_categories, get_loaders, get_game_versions } from '@/helpers/tags'
import { useRoute, useRouter } from 'vue-router'
import { Avatar } from 'omorphia'
import { Avatar } from '@modrinth/omorphia'
import SearchCard from '@/components/ui/SearchCard.vue'
import InstallConfirmModal from '@/components/ui/InstallConfirmModal.vue'
import ModInstallModal from '@/components/ui/ModInstallModal.vue'

View File

@@ -6,7 +6,7 @@ import { useRoute } from 'vue-router'
import { useBreadcrumbs } from '@/store/breadcrumbs'
import { offline_listener, profile_listener } from '@/helpers/events.js'
import { handleError } from '@/store/notifications.js'
import { Button, PlusIcon } from 'omorphia'
import { Button, PlusIcon } from '@modrinth/omorphia'
import InstanceCreationModal from '@/components/ui/InstanceCreationModal.vue'
import { NewInstanceImage } from '@/assets/icons'
import { isOffline } from '@/helpers/utils'

View File

@@ -12,7 +12,7 @@ import {
BoxIcon,
FolderSearchIcon,
UpdatedIcon,
} from 'omorphia'
} from '@modrinth/omorphia'
import { handleError, useTheming } from '@/store/state'
import { is_dir_writeable, change_config_dir, get, set } from '@/helpers/settings'
import { get_max_memory } from '@/helpers/jre'

View File

@@ -137,7 +137,7 @@ import {
XIcon,
CheckCircleIcon,
UpdatedIcon,
} from 'omorphia'
} from '@modrinth/omorphia'
import { get, run } from '@/helpers/profile'
import {
get_all_running_profile_paths,

View File

@@ -97,7 +97,7 @@ import {
Checkbox,
TrashIcon,
ShareModal,
} from 'omorphia'
} from '@modrinth/omorphia'
import {
delete_logs_by_filename,
get_logs,

View File

@@ -391,7 +391,7 @@ import {
CodeIcon,
Pagination,
DropdownSelect,
} from 'omorphia'
} from '@modrinth/omorphia'
import { computed, onUnmounted, ref, watch } from 'vue'
import { useRouter } from 'vue-router'
import {

View File

@@ -530,7 +530,7 @@ import {
ClipboardCopyIcon,
Button,
Toggle,
} from 'omorphia'
} from '@modrinth/omorphia'
import { SwapIcon } from '@/assets/icons'
import { Multiselect } from 'vue-multiselect'

View File

@@ -5,7 +5,7 @@
</template>
<script setup>
import { Card, renderHighlightedString } from 'omorphia'
import { Card, renderHighlightedString } from '@modrinth/omorphia'
defineProps({
project: {

View File

@@ -92,7 +92,7 @@ import {
XIcon,
CalendarIcon,
Button,
} from 'omorphia'
} from '@modrinth/omorphia'
import { ref } from 'vue'
import { mixpanel_track } from '@/helpers/mixpanel'

View File

@@ -251,7 +251,7 @@ import {
CheckIcon,
GlobeIcon,
ClipboardCopyIcon,
} from 'omorphia'
} from '@modrinth/omorphia'
import {
BuyMeACoffeeIcon,
DiscordIcon,

View File

@@ -196,7 +196,7 @@ import {
Breadcrumbs,
formatBytes,
renderString,
} from 'omorphia'
} from '@modrinth/omorphia'
import { releaseColor } from '@/helpers/utils'
import { ref, watch, computed } from 'vue'
import { useRoute } from 'vue-router'

View File

@@ -160,7 +160,7 @@ import {
DownloadIcon,
Pagination,
formatNumber,
} from 'omorphia'
} from '@modrinth/omorphia'
import Multiselect from 'vue-multiselect'
import { releaseColor } from '@/helpers/utils'
import { computed, ref, watch } from 'vue'