You've already forked AstralRinth
forked from didirus/AstralRinth
* Initial bug fixes * fix compile error on non-mac * Fix even more bugs * Fix more * fix more * fix build * fix build * Search fixes * Fix small instance ui * working basic * fix javaw issue * removed zip * working functions * merge fixes * fixed loadintg bar bug * menu fix * wait for settings to sync * safety expanded and for loading bars * swtiching to windows * minimize * default landing page * test link registry * url redirection * fix formatting * .mrpack windows * working mrpack reader * changed to one layer deep * working .mrpack + command handling for both opening and existing process * forge version numbers * working mac opening mrpack * reverted changes * prettier/fmt * missed debug statement * improvements + refactoring * renamed things to fit plugin * fixed bugs * removed println * overrides dont include mrpack * merge * fixes * fixes * fixed deletion * merge errors * force sync before export * removed testing * missed line * removed console log * mac error reverted * incoreclty named helper * additional fixes * added removed merges * fixed mislabled invokes * mac * added to new register method * comments, cleanup * mac clippy change * review changes * minor changes * moved create pack * removed playground compilation bug * fixed linux bug; other add ons * fixed review commets * cicd fix * mistaken import for prod * cicd fix --------- Co-authored-by: Jai A <jaiagr+gpg@pm.me>
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
import { createApp } from 'vue'
|
|
import router from '@/routes'
|
|
import App from '@/App.vue'
|
|
import { createPinia } from 'pinia'
|
|
import 'omorphia/dist/style.css'
|
|
import '@/assets/stylesheets/global.scss'
|
|
import 'floating-vue/dist/style.css'
|
|
import FloatingVue from 'floating-vue'
|
|
import { get_opening_command, initialize_state } from '@/helpers/state'
|
|
import loadCssMixin from './mixins/macCssFix.js'
|
|
import { get } from '@/helpers/settings'
|
|
|
|
const pinia = createPinia()
|
|
|
|
let app = createApp(App)
|
|
app.use(router)
|
|
app.use(pinia)
|
|
app.use(FloatingVue)
|
|
app.mixin(loadCssMixin)
|
|
|
|
const mountedApp = app.mount('#app')
|
|
|
|
initialize_state()
|
|
.then(() => {
|
|
// First, redirect to other landing page if we have that setting
|
|
get()
|
|
.then((fetchSettings) => {
|
|
if (fetchSettings?.default_page && fetchSettings?.default_page !== 'Home') {
|
|
router.push({ name: fetchSettings?.default_page })
|
|
}
|
|
})
|
|
.catch((err) => {
|
|
console.error(err)
|
|
})
|
|
.finally(() => {
|
|
mountedApp.initialize()
|
|
get_opening_command().then((command) => {
|
|
console.log(JSON.stringify(command)) // change me to use whatever FE command handler is made
|
|
})
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
console.error(err)
|
|
})
|