Finish adding omorphia
This commit is contained in:
parent
ef4acb1b66
commit
9502639447
@ -9,7 +9,7 @@ import { globIterate } from 'glob'
|
|||||||
import { match as matchLocale } from '@formatjs/intl-localematcher'
|
import { match as matchLocale } from '@formatjs/intl-localematcher'
|
||||||
import { consola } from 'consola'
|
import { consola } from 'consola'
|
||||||
|
|
||||||
const STAGING_API_URL = 'https://api.modrinth.com/v2/'
|
const STAGING_API_URL = 'https://staging-api.modrinth.com/v2/'
|
||||||
|
|
||||||
const preloadedFonts = [
|
const preloadedFonts = [
|
||||||
'inter/Inter-Regular.woff2',
|
'inter/Inter-Regular.woff2',
|
||||||
@ -83,6 +83,7 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
vite: {
|
vite: {
|
||||||
|
cacheDir: '../../node_modules/.vite/apps/knossos',
|
||||||
plugins: [
|
plugins: [
|
||||||
nxViteTsPaths(),
|
nxViteTsPaths(),
|
||||||
svgLoader({
|
svgLoader({
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
</Modal>
|
</Modal>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { XIcon as CrossIcon, CheckIcon, Modal, Button } from 'omorphia'
|
import { XIcon as CrossIcon, CheckIcon, Modal, Button } from '@modrinth/omorphia'
|
||||||
|
|
||||||
const router = useNativeRouter()
|
const router = useNativeRouter()
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { renderString } from 'omorphia'
|
import { renderString } from '@modrinth/omorphia'
|
||||||
import CrossIcon from '~/assets/images/utils/x.svg?component'
|
import CrossIcon from '~/assets/images/utils/x.svg?component'
|
||||||
import TrashIcon from '~/assets/images/utils/trash.svg?component'
|
import TrashIcon from '~/assets/images/utils/trash.svg?component'
|
||||||
import Modal from '~/components/ui/Modal.vue'
|
import Modal from '~/components/ui/Modal.vue'
|
||||||
|
@ -341,7 +341,7 @@ import {
|
|||||||
XIcon as CrossIcon,
|
XIcon as CrossIcon,
|
||||||
EyeOffIcon,
|
EyeOffIcon,
|
||||||
ExitIcon,
|
ExitIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import Categories from '~/components/ui/search/Categories.vue'
|
import Categories from '~/components/ui/search/Categories.vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
@ -288,7 +288,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { renderString } from 'omorphia'
|
import { renderString } from '@modrinth/omorphia'
|
||||||
import InvitationIcon from '~/assets/images/utils/user-plus.svg?component'
|
import InvitationIcon from '~/assets/images/utils/user-plus.svg?component'
|
||||||
import ModerationIcon from '~/assets/images/sidebar/admin.svg?component'
|
import ModerationIcon from '~/assets/images/sidebar/admin.svg?component'
|
||||||
import NotificationIcon from '~/assets/images/sidebar/notifications.svg?component'
|
import NotificationIcon from '~/assets/images/sidebar/notifications.svg?component'
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
</Modal>
|
</Modal>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { XIcon as CrossIcon, CheckIcon, Modal, Button } from 'omorphia'
|
import { XIcon as CrossIcon, CheckIcon, Modal, Button } from '@modrinth/omorphia'
|
||||||
|
|
||||||
const router = useNativeRouter()
|
const router = useNativeRouter()
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ import {
|
|||||||
Modal,
|
Modal,
|
||||||
TransferIcon,
|
TransferIcon,
|
||||||
XIcon,
|
XIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
|
|
||||||
const modalOpen = ref(null)
|
const modalOpen = ref(null)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { formatNumber, formatMoney } from 'omorphia'
|
import { formatNumber, formatMoney } from '@modrinth/omorphia'
|
||||||
import VueApexCharts from 'vue3-apexcharts'
|
import VueApexCharts from 'vue3-apexcharts'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
@ -298,7 +298,7 @@ import {
|
|||||||
formatNumber,
|
formatNumber,
|
||||||
DropdownSelect,
|
DropdownSelect,
|
||||||
formatCategoryHeader,
|
formatCategoryHeader,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { defineProps, ref, computed } from 'vue'
|
import { defineProps, ref, computed } from 'vue'
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { Card } from 'omorphia'
|
import { Card } from '@modrinth/omorphia'
|
||||||
import VueApexCharts from 'vue3-apexcharts'
|
import VueApexCharts from 'vue3-apexcharts'
|
||||||
|
|
||||||
// let VueApexCharts
|
// let VueApexCharts
|
||||||
|
@ -196,7 +196,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { OverflowMenu, MarkdownEditor, DropdownIcon } from 'omorphia'
|
import { OverflowMenu, MarkdownEditor, DropdownIcon } from '@modrinth/omorphia'
|
||||||
import { useImageUpload } from '~/composables/image-upload.ts'
|
import { useImageUpload } from '~/composables/image-upload.ts'
|
||||||
import CopyCode from '~/components/ui/CopyCode.vue'
|
import CopyCode from '~/components/ui/CopyCode.vue'
|
||||||
import ReplyIcon from '~/assets/images/utils/reply.svg?component'
|
import ReplyIcon from '~/assets/images/utils/reply.svg?component'
|
||||||
|
@ -109,7 +109,7 @@ import {
|
|||||||
ModrinthIcon,
|
ModrinthIcon,
|
||||||
ScaleIcon,
|
ScaleIcon,
|
||||||
renderString,
|
renderString,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import Avatar from '~/components/ui/Avatar.vue'
|
import Avatar from '~/components/ui/Avatar.vue'
|
||||||
import Badge from '~/components/ui/Badge.vue'
|
import Badge from '~/components/ui/Badge.vue'
|
||||||
import { isStaff } from '~/helpers/users.js'
|
import { isStaff } from '~/helpers/users.js'
|
||||||
|
@ -15,7 +15,7 @@ import ini from 'highlight.js/lib/languages/ini'
|
|||||||
import yaml from 'highlight.js/lib/languages/yaml'
|
import yaml from 'highlight.js/lib/languages/yaml'
|
||||||
import xml from 'highlight.js/lib/languages/xml'
|
import xml from 'highlight.js/lib/languages/xml'
|
||||||
import properties from 'highlight.js/lib/languages/properties'
|
import properties from 'highlight.js/lib/languages/properties'
|
||||||
import { md, configuredXss } from 'omorphia'
|
import { md, configuredXss } from '@modrinth/omorphia'
|
||||||
|
|
||||||
/* REGISTRATION */
|
/* REGISTRATION */
|
||||||
// Scripting
|
// Scripting
|
||||||
|
@ -427,7 +427,7 @@ import {
|
|||||||
IssuesIcon,
|
IssuesIcon,
|
||||||
Button,
|
Button,
|
||||||
ReportIcon,
|
ReportIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import HamburgerIcon from '~/assets/images/utils/hamburger.svg?component'
|
import HamburgerIcon from '~/assets/images/utils/hamburger.svg?component'
|
||||||
import CrossIcon from '~/assets/images/utils/x.svg?component'
|
import CrossIcon from '~/assets/images/utils/x.svg?component'
|
||||||
import SearchIcon from '~/assets/images/utils/search.svg?component'
|
import SearchIcon from '~/assets/images/utils/search.svg?component'
|
||||||
@ -755,7 +755,8 @@ function hideStagingBanner() {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '~/assets/styles/global.scss';
|
@import '~/assets/styles/global.scss';
|
||||||
@import 'omorphia/dist/style.css';
|
// TODO: fix this hackery
|
||||||
|
@import '../../../../libs/omorphia/src/assets/omorphia';
|
||||||
|
|
||||||
.layout {
|
.layout {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
@ -1079,7 +1079,7 @@ import {
|
|||||||
isStaff,
|
isStaff,
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
XIcon,
|
XIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import CrownIcon from '~/assets/images/utils/crown.svg?component'
|
import CrownIcon from '~/assets/images/utils/crown.svg?component'
|
||||||
import CalendarIcon from '~/assets/images/utils/calendar.svg?component'
|
import CalendarIcon from '~/assets/images/utils/calendar.svg?component'
|
||||||
import DownloadIcon from '~/assets/images/utils/download.svg?component'
|
import DownloadIcon from '~/assets/images/utils/download.svg?component'
|
||||||
|
@ -293,7 +293,7 @@ import {
|
|||||||
ImageIcon,
|
ImageIcon,
|
||||||
TransferIcon,
|
TransferIcon,
|
||||||
ConfirmModal,
|
ConfirmModal,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import FileInput from '~/components/ui/FileInput.vue'
|
import FileInput from '~/components/ui/FileInput.vue'
|
||||||
import DropArea from '~/components/ui/DropArea.vue'
|
import DropArea from '~/components/ui/DropArea.vue'
|
||||||
import Modal from '~/components/ui/Modal.vue'
|
import Modal from '~/components/ui/Modal.vue'
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Badge, ExitIcon, CheckIcon, IssuesIcon } from 'omorphia'
|
import { Badge, ExitIcon, CheckIcon, IssuesIcon } from '@modrinth/omorphia'
|
||||||
import ConversationThread from '~/components/ui/thread/ConversationThread.vue'
|
import ConversationThread from '~/components/ui/thread/ConversationThread.vue'
|
||||||
import {
|
import {
|
||||||
getProjectLink,
|
getProjectLink,
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { MarkdownEditor } from 'omorphia'
|
import { MarkdownEditor } from '@modrinth/omorphia'
|
||||||
import Chips from '~/components/ui/Chips.vue'
|
import Chips from '~/components/ui/Chips.vue'
|
||||||
import SaveIcon from '~/assets/images/utils/save.svg?component'
|
import SaveIcon from '~/assets/images/utils/save.svg?component'
|
||||||
import { renderHighlightedString } from '~/helpers/highlight.js'
|
import { renderHighlightedString } from '~/helpers/highlight.js'
|
||||||
|
@ -122,7 +122,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { DropdownSelect } from 'omorphia'
|
import { DropdownSelect } from '@modrinth/omorphia'
|
||||||
import SaveIcon from '~/assets/images/utils/save.svg?component'
|
import SaveIcon from '~/assets/images/utils/save.svg?component'
|
||||||
|
|
||||||
const tags = useTags()
|
const tags = useTags()
|
||||||
|
@ -518,7 +518,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Multiselect } from 'vue-multiselect'
|
import { Multiselect } from 'vue-multiselect'
|
||||||
import { Avatar, Badge, Card, Checkbox, TransferIcon, CheckIcon, UsersIcon } from 'omorphia'
|
import { Avatar, Badge, Card, Checkbox, TransferIcon, CheckIcon, UsersIcon } from '@modrinth/omorphia'
|
||||||
|
|
||||||
import ModalConfirm from '~/components/ui/ModalConfirm.vue'
|
import ModalConfirm from '~/components/ui/ModalConfirm.vue'
|
||||||
import DropdownIcon from '~/assets/images/utils/dropdown.svg?component'
|
import DropdownIcon from '~/assets/images/utils/dropdown.svg?component'
|
||||||
|
@ -612,7 +612,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { MarkdownEditor } from 'omorphia'
|
import { MarkdownEditor } from '@modrinth/omorphia'
|
||||||
import { Multiselect } from 'vue-multiselect'
|
import { Multiselect } from 'vue-multiselect'
|
||||||
import { acceptFileFromProjectType } from '~/helpers/fileUtils.js'
|
import { acceptFileFromProjectType } from '~/helpers/fileUtils.js'
|
||||||
import { inferVersionInfo } from '~/helpers/infer.js'
|
import { inferVersionInfo } from '~/helpers/infer.js'
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
EditIcon,
|
EditIcon,
|
||||||
DownloadIcon,
|
DownloadIcon,
|
||||||
LinkIcon,
|
LinkIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import Avatar from '~/components/ui/Avatar.vue'
|
import Avatar from '~/components/ui/Avatar.vue'
|
||||||
import LogoAnimated from '~/components/brand/LogoAnimated.vue'
|
import LogoAnimated from '~/components/brand/LogoAnimated.vue'
|
||||||
import Badge from '~/components/ui/Badge.vue'
|
import Badge from '~/components/ui/Badge.vue'
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Button, XIcon, CheckIcon, Avatar } from 'omorphia'
|
import { Button, XIcon, CheckIcon, Avatar } from '@modrinth/omorphia'
|
||||||
import { useBaseFetch } from '@/composables/fetch.js'
|
import { useBaseFetch } from '@/composables/fetch.js'
|
||||||
import { useAuth } from '@/composables/auth.js'
|
import { useAuth } from '@/composables/auth.js'
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { SendIcon, MailIcon, KeyIcon } from 'omorphia'
|
import { SendIcon, MailIcon, KeyIcon } from '@modrinth/omorphia'
|
||||||
|
|
||||||
const { formatMessage } = useVIntl()
|
const { formatMessage } = useVIntl()
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ import {
|
|||||||
SSOGitLabIcon,
|
SSOGitLabIcon,
|
||||||
KeyIcon,
|
KeyIcon,
|
||||||
MailIcon,
|
MailIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
|
|
||||||
const { formatMessage } = useVIntl()
|
const { formatMessage } = useVIntl()
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ import {
|
|||||||
KeyIcon,
|
KeyIcon,
|
||||||
MailIcon,
|
MailIcon,
|
||||||
SSOGitLabIcon,
|
SSOGitLabIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
|
|
||||||
const { formatMessage } = useVIntl()
|
const { formatMessage } = useVIntl()
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { SettingsIcon, RightArrowIcon } from 'omorphia'
|
import { SettingsIcon, RightArrowIcon } from '@modrinth/omorphia'
|
||||||
|
|
||||||
const { formatMessage } = useVIntl()
|
const { formatMessage } = useVIntl()
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Checkbox, RightArrowIcon } from 'omorphia'
|
import { Checkbox, RightArrowIcon } from '@modrinth/omorphia'
|
||||||
|
|
||||||
const { formatMessage } = useVIntl()
|
const { formatMessage } = useVIntl()
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ import {
|
|||||||
UpdatedIcon,
|
UpdatedIcon,
|
||||||
LibraryIcon,
|
LibraryIcon,
|
||||||
BoxIcon,
|
BoxIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
|
|
||||||
import WorldIcon from 'assets/images/utils/world.svg'
|
import WorldIcon from 'assets/images/utils/world.svg'
|
||||||
import UpToDate from 'assets/images/illustrations/up_to_date.svg'
|
import UpToDate from 'assets/images/illustrations/up_to_date.svg'
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { LibraryIcon, ChartIcon } from 'omorphia'
|
import { LibraryIcon, ChartIcon } from '@modrinth/omorphia'
|
||||||
import NavStack from '~/components/ui/NavStack.vue'
|
import NavStack from '~/components/ui/NavStack.vue'
|
||||||
import NavStackItem from '~/components/ui/NavStackItem.vue'
|
import NavStackItem from '~/components/ui/NavStackItem.vue'
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Avatar, BoxIcon, SearchIcon, XIcon, Button, PlusIcon, LinkIcon, LockIcon } from 'omorphia'
|
import { Avatar, BoxIcon, SearchIcon, XIcon, Button, PlusIcon, LinkIcon, LockIcon } from '@modrinth/omorphia'
|
||||||
import WorldIcon from '~/assets/images/utils/world.svg?component'
|
import WorldIcon from '~/assets/images/utils/world.svg?component'
|
||||||
import CollectionCreateModal from '~/components/ui/CollectionCreateModal.vue'
|
import CollectionCreateModal from '~/components/ui/CollectionCreateModal.vue'
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Button, HistoryIcon } from 'omorphia'
|
import { Button, HistoryIcon } from '@modrinth/omorphia'
|
||||||
import {
|
import {
|
||||||
fetchExtraNotificationData,
|
fetchExtraNotificationData,
|
||||||
groupNotifications,
|
groupNotifications,
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { PlusIcon, Avatar, UsersIcon } from 'omorphia'
|
import { PlusIcon, Avatar, UsersIcon } from '@modrinth/omorphia'
|
||||||
|
|
||||||
import { useAuth } from '~/composables/auth.js'
|
import { useAuth } from '~/composables/auth.js'
|
||||||
import OrganizationCreateModal from '~/components/ui/OrganizationCreateModal.vue'
|
import OrganizationCreateModal from '~/components/ui/OrganizationCreateModal.vue'
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { TransferIcon, HistoryIcon, PayPalIcon, SaveIcon, XIcon } from 'omorphia'
|
import { TransferIcon, HistoryIcon, PayPalIcon, SaveIcon, XIcon } from '@modrinth/omorphia'
|
||||||
|
|
||||||
const auth = await useAuth()
|
const auth = await useAuth()
|
||||||
const minWithdraw = ref(0.01)
|
const minWithdraw = ref(0.01)
|
||||||
|
@ -102,7 +102,7 @@ import {
|
|||||||
UnknownIcon,
|
UnknownIcon,
|
||||||
DropdownSelect,
|
DropdownSelect,
|
||||||
capitalizeString,
|
capitalizeString,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import TremendousIcon from '~/assets/images/external/tremendous.svg?component'
|
import TremendousIcon from '~/assets/images/external/tremendous.svg?component'
|
||||||
import VenmoIcon from '~/assets/images/external/venmo-small.svg?component'
|
import VenmoIcon from '~/assets/images/external/venmo-small.svg?component'
|
||||||
|
@ -194,7 +194,7 @@ import {
|
|||||||
TransferIcon,
|
TransferIcon,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
Breadcrumbs,
|
Breadcrumbs,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { all } from 'iso-3166-1'
|
import { all } from 'iso-3166-1'
|
||||||
import VenmoIcon from '~/assets/images/external/venmo.svg?component'
|
import VenmoIcon from '~/assets/images/external/venmo.svg?component'
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ import {
|
|||||||
ShieldIcon,
|
ShieldIcon,
|
||||||
CurrencyIcon,
|
CurrencyIcon,
|
||||||
CopyrightIcon,
|
CopyrightIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import NavStack from '~/components/ui/NavStack.vue'
|
import NavStack from '~/components/ui/NavStack.vue'
|
||||||
import NavStackItem from '~/components/ui/NavStackItem.vue'
|
import NavStackItem from '~/components/ui/NavStackItem.vue'
|
||||||
|
|
||||||
|
@ -230,7 +230,7 @@ import {
|
|||||||
Promotion,
|
Promotion,
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
XIcon,
|
XIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import NavStack from '~/components/ui/NavStack.vue'
|
import NavStack from '~/components/ui/NavStack.vue'
|
||||||
import NavStackItem from '~/components/ui/NavStackItem.vue'
|
import NavStackItem from '~/components/ui/NavStackItem.vue'
|
||||||
import NavRow from '~/components/ui/NavRow.vue'
|
import NavRow from '~/components/ui/NavRow.vue'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { Button, FileInput, TrashIcon, Avatar, UploadIcon, SaveIcon, ConfirmModal } from 'omorphia'
|
import { Button, FileInput, TrashIcon, Avatar, UploadIcon, SaveIcon, ConfirmModal } from '@modrinth/omorphia'
|
||||||
|
|
||||||
const {
|
const {
|
||||||
organization,
|
organization,
|
||||||
|
@ -229,7 +229,7 @@ import {
|
|||||||
UserXIcon as UserRemoveIcon,
|
UserXIcon as UserRemoveIcon,
|
||||||
DropdownIcon,
|
DropdownIcon,
|
||||||
Button,
|
Button,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import CrownIcon from '~/assets/images/utils/crown.svg?component'
|
import CrownIcon from '~/assets/images/utils/crown.svg?component'
|
||||||
|
|
||||||
|
@ -316,7 +316,7 @@ import {
|
|||||||
Button,
|
Button,
|
||||||
SortAscendingIcon,
|
SortAscendingIcon,
|
||||||
SortDescendingIcon,
|
SortDescendingIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
|
|
||||||
import ModalCreation from '~/components/ui/ModalCreation.vue'
|
import ModalCreation from '~/components/ui/ModalCreation.vue'
|
||||||
import OrganizationProjectTransferModal from '~/components/ui/OrganizationProjectTransferModal.vue'
|
import OrganizationProjectTransferModal from '~/components/ui/OrganizationProjectTransferModal.vue'
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Card, Button, MarkdownEditor, DropdownSelect, SaveIcon } from 'omorphia'
|
import { Card, Button, MarkdownEditor, DropdownSelect, SaveIcon } from '@modrinth/omorphia'
|
||||||
import { useImageUpload } from '~/composables/image-upload.ts'
|
import { useImageUpload } from '~/composables/image-upload.ts'
|
||||||
|
|
||||||
const tags = useTags()
|
const tags = useTags()
|
||||||
|
@ -344,7 +344,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Multiselect } from 'vue-multiselect'
|
import { Multiselect } from 'vue-multiselect'
|
||||||
import { Promotion } from 'omorphia'
|
import { Promotion } from '@modrinth/omorphia'
|
||||||
import ProjectCard from '~/components/ui/ProjectCard.vue'
|
import ProjectCard from '~/components/ui/ProjectCard.vue'
|
||||||
import Pagination from '~/components/ui/Pagination.vue'
|
import Pagination from '~/components/ui/Pagination.vue'
|
||||||
import SearchFilter from '~/components/ui/search/SearchFilter.vue'
|
import SearchFilter from '~/components/ui/search/SearchFilter.vue'
|
||||||
|
@ -81,7 +81,7 @@ import {
|
|||||||
ShieldIcon,
|
ShieldIcon,
|
||||||
KeyIcon,
|
KeyIcon,
|
||||||
LanguagesIcon,
|
LanguagesIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import NavStack from '~/components/ui/NavStack.vue'
|
import NavStack from '~/components/ui/NavStack.vue'
|
||||||
import NavStackItem from '~/components/ui/NavStackItem.vue'
|
import NavStackItem from '~/components/ui/NavStackItem.vue'
|
||||||
import MonitorSmartphoneIcon from '~/assets/images/utils/monitor-smartphone.svg?component'
|
import MonitorSmartphoneIcon from '~/assets/images/utils/monitor-smartphone.svg?component'
|
||||||
|
@ -401,7 +401,7 @@ import {
|
|||||||
RightArrowIcon,
|
RightArrowIcon,
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
ExternalIcon,
|
ExternalIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import QrcodeVue from 'qrcode.vue'
|
import QrcodeVue from 'qrcode.vue'
|
||||||
import GitHubIcon from 'assets/icons/auth/sso-github.svg'
|
import GitHubIcon from 'assets/icons/auth/sso-github.svg'
|
||||||
import MicrosoftIcon from 'assets/icons/auth/sso-microsoft.svg'
|
import MicrosoftIcon from 'assets/icons/auth/sso-microsoft.svg'
|
||||||
|
@ -228,7 +228,7 @@ import {
|
|||||||
SaveIcon,
|
SaveIcon,
|
||||||
CopyCode,
|
CopyCode,
|
||||||
ConfirmModal,
|
ConfirmModal,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import Modal from '~/components/ui/Modal.vue'
|
import Modal from '~/components/ui/Modal.vue'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Button, TrashIcon, CheckIcon, ConfirmModal, Avatar } from 'omorphia'
|
import { Button, TrashIcon, CheckIcon, ConfirmModal, Avatar } from '@modrinth/omorphia'
|
||||||
import { commonSettingsMessages } from '~/utils/common-messages.ts'
|
import { commonSettingsMessages } from '~/utils/common-messages.ts'
|
||||||
import { useScopes } from '~/composables/auth/scopes.ts'
|
import { useScopes } from '~/composables/auth/scopes.ts'
|
||||||
|
|
||||||
|
@ -229,7 +229,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { CodeIcon, Button, RadioButtonIcon, RadioButtonChecked, SunIcon, MoonIcon } from 'omorphia'
|
import { CodeIcon, Button, RadioButtonIcon, RadioButtonChecked, SunIcon, MoonIcon } from '@modrinth/omorphia'
|
||||||
import { formatProjectType } from '~/plugins/shorthands.js'
|
import { formatProjectType } from '~/plugins/shorthands.js'
|
||||||
import MessageBanner from '~/components/ui/MessageBanner.vue'
|
import MessageBanner from '~/components/ui/MessageBanner.vue'
|
||||||
import { DARK_THEMES } from '~/composables/theme.js'
|
import { DARK_THEMES } from '~/composables/theme.js'
|
||||||
|
@ -202,7 +202,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { PlusIcon, XIcon, Checkbox, TrashIcon, EditIcon, SaveIcon, ConfirmModal } from 'omorphia'
|
import { PlusIcon, XIcon, Checkbox, TrashIcon, EditIcon, SaveIcon, ConfirmModal } from '@modrinth/omorphia'
|
||||||
|
|
||||||
import { commonSettingsMessages } from '~/utils/common-messages.ts'
|
import { commonSettingsMessages } from '~/utils/common-messages.ts'
|
||||||
import {
|
import {
|
||||||
|
@ -95,7 +95,7 @@ import {
|
|||||||
UploadIcon,
|
UploadIcon,
|
||||||
UndoIcon,
|
UndoIcon,
|
||||||
XIcon,
|
XIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { commonMessages } from '~/utils/common-messages.ts'
|
import { commonMessages } from '~/utils/common-messages.ts'
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { XIcon } from 'omorphia'
|
import { XIcon } from '@modrinth/omorphia'
|
||||||
import { commonSettingsMessages } from '~/utils/common-messages.ts'
|
import { commonSettingsMessages } from '~/utils/common-messages.ts'
|
||||||
|
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
|
@ -280,7 +280,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Promotion, LibraryIcon, BoxIcon, LinkIcon, LockIcon, XIcon } from 'omorphia'
|
import { Promotion, LibraryIcon, BoxIcon, LinkIcon, LockIcon, XIcon } from '@modrinth/omorphia'
|
||||||
import ProjectCard from '~/components/ui/ProjectCard.vue'
|
import ProjectCard from '~/components/ui/ProjectCard.vue'
|
||||||
import Badge from '~/components/ui/Badge.vue'
|
import Badge from '~/components/ui/Badge.vue'
|
||||||
import { reportUser } from '~/utils/report-helpers.ts'
|
import { reportUser } from '~/utils/report-helpers.ts'
|
||||||
|
@ -12,7 +12,7 @@ import {
|
|||||||
Notifications,
|
Notifications,
|
||||||
XIcon,
|
XIcon,
|
||||||
Card,
|
Card,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { useLoading, useTheming } from '@/store/state'
|
import { useLoading, useTheming } from '@/store/state'
|
||||||
import AccountsCard from '@/components/ui/AccountsCard.vue'
|
import AccountsCard from '@/components/ui/AccountsCard.vue'
|
||||||
import InstanceCreationModal from '@/components/ui/InstanceCreationModal.vue'
|
import InstanceCreationModal from '@/components/ui/InstanceCreationModal.vue'
|
||||||
|
@ -16,7 +16,7 @@ import {
|
|||||||
Button,
|
Button,
|
||||||
formatCategoryHeader,
|
formatCategoryHeader,
|
||||||
ConfirmModal,
|
ConfirmModal,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import ContextMenu from '@/components/ui/ContextMenu.vue'
|
import ContextMenu from '@/components/ui/ContextMenu.vue'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { useTheming } from '@/store/theme.js'
|
import { useTheming } from '@/store/theme.js'
|
||||||
|
@ -12,7 +12,7 @@ import {
|
|||||||
EyeIcon,
|
EyeIcon,
|
||||||
ChevronRightIcon,
|
ChevronRightIcon,
|
||||||
ConfirmModal,
|
ConfirmModal,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import Instance from '@/components/ui/Instance.vue'
|
import Instance from '@/components/ui/Instance.vue'
|
||||||
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
||||||
import ContextMenu from '@/components/ui/ContextMenu.vue'
|
import ContextMenu from '@/components/ui/ContextMenu.vue'
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<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 { ref, computed, onMounted, onBeforeUnmount, onUnmounted } from 'vue'
|
||||||
import {
|
import {
|
||||||
users,
|
users,
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ChevronRightIcon, Button, ChevronLeftIcon } from 'omorphia'
|
import { ChevronRightIcon, Button, ChevronLeftIcon } from '@modrinth/omorphia'
|
||||||
import { useBreadcrumbs } from '@/store/breadcrumbs'
|
import { useBreadcrumbs } from '@/store/breadcrumbs'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { Modal, XIcon, IssuesIcon, LogInIcon } from 'omorphia'
|
import { Modal, XIcon, IssuesIcon, LogInIcon } from '@modrinth/omorphia'
|
||||||
import { ChatIcon } from '@/assets/icons'
|
import { ChatIcon } from '@/assets/icons'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { login as login_flow, set_default_user } from '@/helpers/auth.js'
|
import { login as login_flow, set_default_user } from '@/helpers/auth.js'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<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 { PackageIcon, VersionIcon } from '@/assets/icons'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { export_profile_mrpack, get_pack_export_candidates } from '@/helpers/profile.js'
|
import { export_profile_mrpack, get_pack_export_candidates } from '@/helpers/profile.js'
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<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 { add_project_from_version as installMod } from '@/helpers/profile'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { handleError, useTheming } from '@/store/state.js'
|
import { handleError, useTheming } from '@/store/state.js'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<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 { install as pack_install } from '@/helpers/pack'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { mixpanel_track } from '@/helpers/mixpanel'
|
import { mixpanel_track } from '@/helpers/mixpanel'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { onUnmounted, ref, watch } from 'vue'
|
import { onUnmounted, ref, watch } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
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 { convertFileSrc } from '@tauri-apps/api/tauri'
|
||||||
import InstallConfirmModal from '@/components/ui/InstallConfirmModal.vue'
|
import InstallConfirmModal from '@/components/ui/InstallConfirmModal.vue'
|
||||||
import { install as pack_install } from '@/helpers/pack'
|
import { install as pack_install } from '@/helpers/pack'
|
||||||
|
@ -211,7 +211,7 @@ import {
|
|||||||
InfoIcon,
|
InfoIcon,
|
||||||
FolderSearchIcon,
|
FolderSearchIcon,
|
||||||
UpdatedIcon,
|
UpdatedIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { computed, onUnmounted, ref, shallowRef } from 'vue'
|
import { computed, onUnmounted, ref, shallowRef } from 'vue'
|
||||||
import { get_loaders } from '@/helpers/tags'
|
import { get_loaders } from '@/helpers/tags'
|
||||||
import { create } from '@/helpers/profile'
|
import { create } from '@/helpers/profile'
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
</Modal>
|
</Modal>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Modal, PlusIcon, CheckIcon, Button, XIcon } from 'omorphia'
|
import { Modal, PlusIcon, CheckIcon, Button, XIcon } from '@modrinth/omorphia'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { find_filtered_jres } from '@/helpers/jre.js'
|
import { find_filtered_jres } from '@/helpers/jre.js'
|
||||||
import { handleError } from '@/store/notifications.js'
|
import { handleError } from '@/store/notifications.js'
|
||||||
|
@ -60,7 +60,7 @@ import {
|
|||||||
XIcon,
|
XIcon,
|
||||||
FolderSearchIcon,
|
FolderSearchIcon,
|
||||||
DownloadIcon,
|
DownloadIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { auto_install_java, find_filtered_jres, get_jre, test_jre } from '@/helpers/jre.js'
|
import { auto_install_java, find_filtered_jres, get_jre, test_jre } from '@/helpers/jre.js'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { open } from '@tauri-apps/api/dialog'
|
import { open } from '@tauri-apps/api/dialog'
|
||||||
|
@ -10,7 +10,7 @@ import {
|
|||||||
XIcon,
|
XIcon,
|
||||||
RightArrowIcon,
|
RightArrowIcon,
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
import {
|
import {
|
||||||
add_project_from_version as installMod,
|
add_project_from_version as installMod,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { Button, Modal, CheckIcon, Badge } from 'omorphia'
|
import { Button, Modal, CheckIcon, Badge } from '@modrinth/omorphia'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
import { useTheming } from '@/store/theme'
|
import { useTheming } from '@/store/theme'
|
||||||
import { update_managed_modrinth_version } from '@/helpers/profile'
|
import { update_managed_modrinth_version } from '@/helpers/profile'
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
DownloadIcon,
|
DownloadIcon,
|
||||||
HeartIcon,
|
HeartIcon,
|
||||||
CalendarIcon,
|
CalendarIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import relativeTime from 'dayjs/plugin/relativeTime'
|
import relativeTime from 'dayjs/plugin/relativeTime'
|
||||||
|
@ -110,7 +110,7 @@ import {
|
|||||||
StopCircleIcon,
|
StopCircleIcon,
|
||||||
TerminalSquareIcon,
|
TerminalSquareIcon,
|
||||||
DropdownIcon,
|
DropdownIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { onBeforeUnmount, onMounted, ref } from 'vue'
|
import { onBeforeUnmount, onMounted, ref } from 'vue'
|
||||||
import {
|
import {
|
||||||
get_all_running_profiles as getRunningProfiles,
|
get_all_running_profiles as getRunningProfiles,
|
||||||
|
@ -76,7 +76,7 @@ import {
|
|||||||
CalendarIcon,
|
CalendarIcon,
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
StarIcon,
|
StarIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import relativeTime from 'dayjs/plugin/relativeTime'
|
import relativeTime from 'dayjs/plugin/relativeTime'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { AnimatedLogo } from 'omorphia'
|
import { AnimatedLogo } from '@modrinth/omorphia'
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
appLoading: Boolean,
|
appLoading: Boolean,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { Modal, Button } from 'omorphia'
|
import { Modal, Button } from '@modrinth/omorphia'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { useFetch } from '@/helpers/fetch.js'
|
import { useFetch } from '@/helpers/fetch.js'
|
||||||
import SearchCard from '@/components/ui/SearchCard.vue'
|
import SearchCard from '@/components/ui/SearchCard.vue'
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
import { Button, ChevronRightIcon, ChevronLeftIcon } from 'omorphia'
|
import { Button, ChevronRightIcon, ChevronLeftIcon } from '@modrinth/omorphia'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
logo: {
|
logo: {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<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 { login as login_flow, set_default_user } from '@/helpers/auth.js'
|
||||||
import { handleError } from '@/store/notifications.js'
|
import { handleError } from '@/store/notifications.js'
|
||||||
import mixpanel from 'mixpanel-browser'
|
import mixpanel from 'mixpanel-browser'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { Button, Card, UserIcon, LockIcon, MailIcon, Checkbox } from 'omorphia'
|
import { Button, Card, UserIcon, LockIcon, MailIcon, Checkbox } from '@modrinth/omorphia'
|
||||||
import {
|
import {
|
||||||
DiscordIcon,
|
DiscordIcon,
|
||||||
GithubIcon,
|
GithubIcon,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { Button } from 'omorphia'
|
import { Button } from '@modrinth/omorphia'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { get, set } from '@/helpers/settings.js'
|
import { get, set } from '@/helpers/settings.js'
|
||||||
import mixpanel from 'mixpanel-browser'
|
import mixpanel from 'mixpanel-browser'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { Button, XIcon } from 'omorphia'
|
import { Button, XIcon } from '@modrinth/omorphia'
|
||||||
import { appWindow } from '@tauri-apps/api/window'
|
import { appWindow } from '@tauri-apps/api/window'
|
||||||
import { saveWindowState, StateFlags } from 'tauri-plugin-window-state-api'
|
import { saveWindowState, StateFlags } from 'tauri-plugin-window-state-api'
|
||||||
import { window } from '@tauri-apps/api'
|
import { window } from '@tauri-apps/api'
|
||||||
|
@ -2,7 +2,7 @@ import { createApp } from 'vue'
|
|||||||
import router from '@/routes'
|
import router from '@/routes'
|
||||||
import App from '@/App.vue'
|
import App from '@/App.vue'
|
||||||
import { createPinia } from 'pinia'
|
import { createPinia } from 'pinia'
|
||||||
import 'omorphia/dist/style.css'
|
import '../../../libs/omorphia/src/assets/omorphia.scss'
|
||||||
import '@/assets/stylesheets/global.scss'
|
import '@/assets/stylesheets/global.scss'
|
||||||
import 'floating-vue/dist/style.css'
|
import 'floating-vue/dist/style.css'
|
||||||
import FloatingVue from 'floating-vue'
|
import FloatingVue from 'floating-vue'
|
||||||
|
@ -16,13 +16,13 @@ import {
|
|||||||
Promotion,
|
Promotion,
|
||||||
XIcon,
|
XIcon,
|
||||||
DropdownSelect,
|
DropdownSelect,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import Multiselect from 'vue-multiselect'
|
import Multiselect from 'vue-multiselect'
|
||||||
import { handleError } from '@/store/state'
|
import { handleError } from '@/store/state'
|
||||||
import { useBreadcrumbs } from '@/store/breadcrumbs'
|
import { useBreadcrumbs } from '@/store/breadcrumbs'
|
||||||
import { get_categories, get_loaders, get_game_versions } from '@/helpers/tags'
|
import { get_categories, get_loaders, get_game_versions } from '@/helpers/tags'
|
||||||
import { useRoute, useRouter } from 'vue-router'
|
import { useRoute, useRouter } from 'vue-router'
|
||||||
import { Avatar } from 'omorphia'
|
import { Avatar } from '@modrinth/omorphia'
|
||||||
import SearchCard from '@/components/ui/SearchCard.vue'
|
import SearchCard from '@/components/ui/SearchCard.vue'
|
||||||
import InstallConfirmModal from '@/components/ui/InstallConfirmModal.vue'
|
import InstallConfirmModal from '@/components/ui/InstallConfirmModal.vue'
|
||||||
import ModInstallModal from '@/components/ui/ModInstallModal.vue'
|
import ModInstallModal from '@/components/ui/ModInstallModal.vue'
|
||||||
|
@ -6,7 +6,7 @@ import { useRoute } from 'vue-router'
|
|||||||
import { useBreadcrumbs } from '@/store/breadcrumbs'
|
import { useBreadcrumbs } from '@/store/breadcrumbs'
|
||||||
import { offline_listener, profile_listener } from '@/helpers/events.js'
|
import { offline_listener, profile_listener } from '@/helpers/events.js'
|
||||||
import { handleError } from '@/store/notifications.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 InstanceCreationModal from '@/components/ui/InstanceCreationModal.vue'
|
||||||
import { NewInstanceImage } from '@/assets/icons'
|
import { NewInstanceImage } from '@/assets/icons'
|
||||||
import { isOffline } from '@/helpers/utils'
|
import { isOffline } from '@/helpers/utils'
|
||||||
|
@ -12,7 +12,7 @@ import {
|
|||||||
BoxIcon,
|
BoxIcon,
|
||||||
FolderSearchIcon,
|
FolderSearchIcon,
|
||||||
UpdatedIcon,
|
UpdatedIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { handleError, useTheming } from '@/store/state'
|
import { handleError, useTheming } from '@/store/state'
|
||||||
import { is_dir_writeable, change_config_dir, get, set } from '@/helpers/settings'
|
import { is_dir_writeable, change_config_dir, get, set } from '@/helpers/settings'
|
||||||
import { get_max_memory } from '@/helpers/jre'
|
import { get_max_memory } from '@/helpers/jre'
|
||||||
|
@ -137,7 +137,7 @@ import {
|
|||||||
XIcon,
|
XIcon,
|
||||||
CheckCircleIcon,
|
CheckCircleIcon,
|
||||||
UpdatedIcon,
|
UpdatedIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { get, run } from '@/helpers/profile'
|
import { get, run } from '@/helpers/profile'
|
||||||
import {
|
import {
|
||||||
get_all_running_profile_paths,
|
get_all_running_profile_paths,
|
||||||
|
@ -97,7 +97,7 @@ import {
|
|||||||
Checkbox,
|
Checkbox,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
ShareModal,
|
ShareModal,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import {
|
import {
|
||||||
delete_logs_by_filename,
|
delete_logs_by_filename,
|
||||||
get_logs,
|
get_logs,
|
||||||
|
@ -391,7 +391,7 @@ import {
|
|||||||
CodeIcon,
|
CodeIcon,
|
||||||
Pagination,
|
Pagination,
|
||||||
DropdownSelect,
|
DropdownSelect,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { computed, onUnmounted, ref, watch } from 'vue'
|
import { computed, onUnmounted, ref, watch } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import {
|
import {
|
||||||
|
@ -530,7 +530,7 @@ import {
|
|||||||
ClipboardCopyIcon,
|
ClipboardCopyIcon,
|
||||||
Button,
|
Button,
|
||||||
Toggle,
|
Toggle,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { SwapIcon } from '@/assets/icons'
|
import { SwapIcon } from '@/assets/icons'
|
||||||
|
|
||||||
import { Multiselect } from 'vue-multiselect'
|
import { Multiselect } from 'vue-multiselect'
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Card, renderHighlightedString } from 'omorphia'
|
import { Card, renderHighlightedString } from '@modrinth/omorphia'
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
project: {
|
project: {
|
||||||
|
@ -92,7 +92,7 @@ import {
|
|||||||
XIcon,
|
XIcon,
|
||||||
CalendarIcon,
|
CalendarIcon,
|
||||||
Button,
|
Button,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { mixpanel_track } from '@/helpers/mixpanel'
|
import { mixpanel_track } from '@/helpers/mixpanel'
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ import {
|
|||||||
CheckIcon,
|
CheckIcon,
|
||||||
GlobeIcon,
|
GlobeIcon,
|
||||||
ClipboardCopyIcon,
|
ClipboardCopyIcon,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import {
|
import {
|
||||||
BuyMeACoffeeIcon,
|
BuyMeACoffeeIcon,
|
||||||
DiscordIcon,
|
DiscordIcon,
|
||||||
|
@ -196,7 +196,7 @@ import {
|
|||||||
Breadcrumbs,
|
Breadcrumbs,
|
||||||
formatBytes,
|
formatBytes,
|
||||||
renderString,
|
renderString,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import { releaseColor } from '@/helpers/utils'
|
import { releaseColor } from '@/helpers/utils'
|
||||||
import { ref, watch, computed } from 'vue'
|
import { ref, watch, computed } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
|
@ -160,7 +160,7 @@ import {
|
|||||||
DownloadIcon,
|
DownloadIcon,
|
||||||
Pagination,
|
Pagination,
|
||||||
formatNumber,
|
formatNumber,
|
||||||
} from 'omorphia'
|
} from '@modrinth/omorphia'
|
||||||
import Multiselect from 'vue-multiselect'
|
import Multiselect from 'vue-multiselect'
|
||||||
import { releaseColor } from '@/helpers/utils'
|
import { releaseColor } from '@/helpers/utils'
|
||||||
import { computed, ref, watch } from 'vue'
|
import { computed, ref, watch } from 'vue'
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": [
|
|
||||||
"plugin:vue/vue3-essential",
|
|
||||||
"eslint:recommended",
|
|
||||||
"@vue/eslint-config-typescript",
|
|
||||||
"@vue/eslint-config-prettier/skip-formatting",
|
|
||||||
"../../.eslintrc.json"
|
|
||||||
],
|
|
||||||
"ignorePatterns": ["!**/*"],
|
|
||||||
"overrides": [
|
|
||||||
{
|
|
||||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.vue"],
|
|
||||||
"rules": {
|
|
||||||
"vue/multi-word-component-names": "off"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
# omorphia
|
|
||||||
|
|
||||||
This library was generated with [Nx](https://nx.dev).
|
|
||||||
|
|
||||||
## Running unit tests
|
|
||||||
|
|
||||||
Run `nx test omorphia` to execute the unit tests via [Vitest](https://vitest.dev/).
|
|
@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@modrinth/omorphia",
|
|
||||||
"version": "0.0.1",
|
|
||||||
"main": "./index.js",
|
|
||||||
"types": "./index.d.ts",
|
|
||||||
"exports": {
|
|
||||||
".": {
|
|
||||||
"import": "./index.mjs",
|
|
||||||
"require": "./index.js"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"allowJs": true,
|
|
||||||
"esModuleInterop": false,
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"strict": true,
|
|
||||||
"jsx": "preserve",
|
|
||||||
"jsxImportSource": "vue",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"resolveJsonModule": true
|
|
||||||
},
|
|
||||||
"files": [],
|
|
||||||
"include": [],
|
|
||||||
"references": [
|
|
||||||
{
|
|
||||||
"path": "./tsconfig.lib.json"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"extends": "../../tsconfig.base.json"
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"outDir": "../../dist/out-tsc",
|
|
||||||
"types": ["vite/client"]
|
|
||||||
},
|
|
||||||
"exclude": [
|
|
||||||
"src/**/__tests__/*",
|
|
||||||
"src/**/*.spec.ts",
|
|
||||||
"src/**/*.test.ts",
|
|
||||||
"src/**/*.spec.tsx",
|
|
||||||
"src/**/*.test.tsx",
|
|
||||||
"src/**/*.spec.js",
|
|
||||||
"src/**/*.test.js",
|
|
||||||
"src/**/*.spec.jsx",
|
|
||||||
"src/**/*.test.jsx",
|
|
||||||
"src/**/*.spec.vue",
|
|
||||||
"src/**/*.test.vue"
|
|
||||||
],
|
|
||||||
"include": [
|
|
||||||
"src/**/*.js",
|
|
||||||
"src/**/*.jsx",
|
|
||||||
"src/**/*.ts",
|
|
||||||
"src/**/*.tsx",
|
|
||||||
"src/**/*.vue"
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,49 +0,0 @@
|
|||||||
/// <reference types='vitest' />
|
|
||||||
import { defineConfig } from 'vite';
|
|
||||||
import vue from '@vitejs/plugin-vue';
|
|
||||||
import dts from 'vite-plugin-dts';
|
|
||||||
import * as path from 'path';
|
|
||||||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
||||||
|
|
||||||
export default defineConfig({
|
|
||||||
root: __dirname,
|
|
||||||
cacheDir: '../../node_modules/.vite/libs/omorphia',
|
|
||||||
|
|
||||||
plugins: [
|
|
||||||
vue(),
|
|
||||||
nxViteTsPaths(),
|
|
||||||
dts({
|
|
||||||
entryRoot: 'src',
|
|
||||||
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
|
|
||||||
// Uncomment this if you are using workers.
|
|
||||||
// worker: {
|
|
||||||
// plugins: [ nxViteTsPaths() ],
|
|
||||||
// },
|
|
||||||
|
|
||||||
// Configuration for building your library.
|
|
||||||
// See: https://vitejs.dev/guide/build.html#library-mode
|
|
||||||
build: {
|
|
||||||
outDir: '../../dist/libs/omorphia',
|
|
||||||
emptyOutDir: true,
|
|
||||||
reportCompressedSize: true,
|
|
||||||
commonjsOptions: {
|
|
||||||
transformMixedEsModules: true,
|
|
||||||
},
|
|
||||||
lib: {
|
|
||||||
// Could also be a dictionary or array of multiple entry points.
|
|
||||||
entry: 'src/index.ts',
|
|
||||||
name: 'omorphia',
|
|
||||||
fileName: 'index',
|
|
||||||
// Change this to the formats you want to support.
|
|
||||||
// Don't forget to update your package.json as well.
|
|
||||||
formats: ['es', 'cjs'],
|
|
||||||
},
|
|
||||||
rollupOptions: {
|
|
||||||
// External packages that should not be bundled into your library.
|
|
||||||
external: [],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
@ -1,13 +0,0 @@
|
|||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
end_of_line = lf
|
|
||||||
charset = utf-8
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
insert_final_newline = true
|
|
||||||
max_line_length = 100
|
|
||||||
|
|
||||||
[*.md]
|
|
||||||
trim_trailing_whitespace = false
|
|
@ -1,88 +0,0 @@
|
|||||||
node_modules
|
|
||||||
*.log*
|
|
||||||
.nuxt
|
|
||||||
.nitro
|
|
||||||
.cache
|
|
||||||
.output
|
|
||||||
.env
|
|
||||||
dist
|
|
||||||
*.md
|
|
||||||
|
|
||||||
generated/
|
|
||||||
!.gitkeep
|
|
||||||
|
|
||||||
# Created by .ignore support plugin (hsz.mobi)
|
|
||||||
### Node template
|
|
||||||
# Logs
|
|
||||||
/logs
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
|
|
||||||
|
|
||||||
# Runtime data
|
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
||||||
lib-cov
|
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
|
||||||
coverage
|
|
||||||
|
|
||||||
# nyc test coverage
|
|
||||||
.nyc_output
|
|
||||||
|
|
||||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
|
||||||
.grunt
|
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
|
||||||
bower_components
|
|
||||||
|
|
||||||
# node-waf configuration
|
|
||||||
.lock-wscript
|
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
||||||
build/Release
|
|
||||||
|
|
||||||
# Dependency directories
|
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# TypeScript v1 declaration files
|
|
||||||
typings/
|
|
||||||
|
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# Optional eslint cache
|
|
||||||
.eslintcache
|
|
||||||
|
|
||||||
# Optional REPL history
|
|
||||||
.node_repl_history
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# Yarn Integrity file
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
# Serverless directories
|
|
||||||
.serverless
|
|
||||||
|
|
||||||
# IDE / Editor
|
|
||||||
.idea
|
|
||||||
|
|
||||||
# Service worker
|
|
||||||
sw.*
|
|
||||||
|
|
||||||
# macOS
|
|
||||||
.DS_Store
|
|
||||||
|
|
||||||
# Vim swap files
|
|
||||||
*.swp
|
|
||||||
|
|
||||||
# pnpm files
|
|
||||||
pnpm-lock.yaml
|
|
||||||
/.npmrc
|
|
@ -1,38 +1,22 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
|
||||||
"env": {
|
|
||||||
"browser": true,
|
|
||||||
"es2021": true,
|
|
||||||
"node": true
|
|
||||||
},
|
|
||||||
"extends": [
|
"extends": [
|
||||||
|
"plugin:vue/vue3-essential",
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"@vue/eslint-config-typescript",
|
||||||
"plugin:vue/vue3-recommended",
|
"@vue/eslint-config-prettier/skip-formatting",
|
||||||
"plugin:prettier/recommended",
|
"../../.eslintrc.json"
|
||||||
"prettier"
|
|
||||||
],
|
],
|
||||||
"parserOptions": {
|
"ignorePatterns": ["!**/*"],
|
||||||
"parser": {
|
"overrides": [
|
||||||
"js": "espree",
|
{
|
||||||
"jsx": "espree",
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.vue"],
|
||||||
"cjs": "espree",
|
"rules": {
|
||||||
"mjs": "espree",
|
"no-console": "off",
|
||||||
"ts": "@typescript-eslint/parser"
|
"vue/no-v-html": "off",
|
||||||
},
|
"comma-dangle": ["error", "only-multiline"],
|
||||||
"ecmaVersion": "latest",
|
"vue/multi-word-component-names": "off",
|
||||||
"sourceType": "module",
|
"import/no-named-as-default": "off"
|
||||||
"extraFileExtensions": [".vue"],
|
}
|
||||||
"ecmaFeatures": {
|
|
||||||
"jsx": true
|
|
||||||
}
|
}
|
||||||
},
|
]
|
||||||
"plugins": ["@typescript-eslint", "vue"],
|
|
||||||
"rules": {
|
|
||||||
"no-console": "off",
|
|
||||||
"vue/no-v-html": "off",
|
|
||||||
"comma-dangle": ["error", "only-multiline"],
|
|
||||||
"vue/multi-word-component-names": "off",
|
|
||||||
"import/no-named-as-default": "off"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user