You've already forked AstralRinth
forked from didirus/AstralRinth
Updating + Profile Repairs + Performance Improvements (#97)
* repairing * Main framework for updating * add jsconfig * more work * Improve performance * Finish updating * run lint
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
@import url('https://rsms.me/inter/inter.css');
|
||||
@import 'inter.scss';
|
||||
|
||||
:root {
|
||||
font-family: var(--font-standard);
|
||||
|
||||
41
theseus_gui/src/assets/stylesheets/inter.scss
Normal file
41
theseus_gui/src/assets/stylesheets/inter.scss
Normal file
@@ -0,0 +1,41 @@
|
||||
// TODO: move to omorphia
|
||||
@font-face {
|
||||
font-family: inter;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Regular.woff2?v=3.19') format('woff2'),
|
||||
url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Regular.woff?v=3.19') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: inter;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Medium.woff2?v=3.19') format('woff2'),
|
||||
url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Medium.woff?v=3.19') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: inter;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url('https://cdn-raw.modrinth.com/fonts/inter/Inter-SemiBold.woff2?v=3.19') format('woff2'),
|
||||
url('https://cdn-raw.modrinth.com/fonts/inter/Inter-SemiBold.woff?v=3.19') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: inter;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Bold.woff2?v=3.19') format('woff2'),
|
||||
url('https://cdn-raw.modrinth.com/fonts/inter/Inter-Bold.woff?v=3.19') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: inter;
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
font-display: swap;
|
||||
src: url('https://cdn-raw.modrinth.com/fonts/inter/Inter-ExtraBold.woff2?v=3.19') format('woff2'),
|
||||
url('https://cdn-raw.modrinth.com/fonts/inter/Inter-ExtraBold.woff?v=3.19') format('woff');
|
||||
}
|
||||
@@ -42,26 +42,52 @@ export async function list() {
|
||||
return await invoke('profile_list')
|
||||
}
|
||||
|
||||
// Syncs a profile with the disk
|
||||
export async function sync(path) {
|
||||
return await invoke('profile_sync', { path })
|
||||
}
|
||||
|
||||
// Installs/Repairs a profile
|
||||
export async function install(path) {
|
||||
return await invoke('profile_install', { path })
|
||||
}
|
||||
|
||||
// Updates all of a profile's projects
|
||||
export async function update_all(path) {
|
||||
return await invoke('profile_update_all', { path })
|
||||
}
|
||||
|
||||
// Updates a specified project
|
||||
export async function update_project(path, projectPath) {
|
||||
return await invoke('profile_update_project', { path, projectPath })
|
||||
}
|
||||
|
||||
// Replaces a given project with the specified version ID
|
||||
// Returns a path to the new project file
|
||||
export async function replace_project(path, projectPath, versionId) {
|
||||
return await invoke('profile_replace_project', { path, projectPath, versionId })
|
||||
}
|
||||
|
||||
// Add a project to a profile from a version
|
||||
// Returns a path to the new project file
|
||||
export async function add_project_from_version(path, version_id) {
|
||||
return await invoke('profile_add_project_from_version', { path, version_id })
|
||||
export async function add_project_from_version(path, versionId) {
|
||||
return await invoke('profile_add_project_from_version', { path, versionId })
|
||||
}
|
||||
|
||||
// Add a project to a profile from a path + project_type
|
||||
// Returns a path to the new project file
|
||||
export async function add_project_from_path(path, project_path, project_type) {
|
||||
return await invoke('profile_add_project_from_path', { path, project_path, project_type })
|
||||
export async function add_project_from_path(path, projectPath, projectType) {
|
||||
return await invoke('profile_add_project_from_path', { path, projectPath, projectType })
|
||||
}
|
||||
|
||||
// Toggle disabling a project
|
||||
export async function toggle_disable_project(path, project_path) {
|
||||
return await invoke('profile_toggle_disable_project', { path, project_path })
|
||||
export async function toggle_disable_project(path, projectPath) {
|
||||
return await invoke('profile_toggle_disable_project', { path, projectPath })
|
||||
}
|
||||
|
||||
// Remove a project
|
||||
export async function remove_project(path, project_path) {
|
||||
return await invoke('profile_remove_project', { path, project_path })
|
||||
export async function remove_project(path, projectPath) {
|
||||
return await invoke('profile_remove_project', { path, projectPath })
|
||||
}
|
||||
|
||||
// Run Minecraft using a pathed profile
|
||||
|
||||
@@ -10,3 +10,8 @@ import { invoke } from '@tauri-apps/api/tauri'
|
||||
export async function initialize_state() {
|
||||
return await invoke('initialize_state')
|
||||
}
|
||||
|
||||
// Gets active progress bars
|
||||
export async function progress_bars_list() {
|
||||
return await invoke('progress_bars_list')
|
||||
}
|
||||
|
||||
@@ -25,11 +25,6 @@ export async function get_game_versions() {
|
||||
return await invoke('tags_get_game_versions')
|
||||
}
|
||||
|
||||
// Gets cached licenses tags
|
||||
export async function get_licenses() {
|
||||
return await invoke('tags_get_licenses')
|
||||
}
|
||||
|
||||
// Gets cached donation_platforms tags
|
||||
export async function get_donation_platforms() {
|
||||
return await invoke('tags_get_donation_platforms')
|
||||
|
||||
@@ -2,7 +2,7 @@ import { createApp } from 'vue'
|
||||
import router from '@/routes'
|
||||
import App from '@/App.vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import '../node_modules/omorphia/dist/style.css'
|
||||
import 'omorphia/dist/style.css'
|
||||
import '@/assets/stylesheets/global.scss'
|
||||
import FloatingVue from 'floating-vue'
|
||||
import { initialize_state } from '@/helpers/state'
|
||||
@@ -10,8 +10,14 @@ import loadCssMixin from './mixins/macCssFix.js'
|
||||
|
||||
const pinia = createPinia()
|
||||
|
||||
let app = createApp(App)
|
||||
app.use(router)
|
||||
app.use(pinia)
|
||||
app.use(FloatingVue)
|
||||
app.mixin(loadCssMixin)
|
||||
|
||||
initialize_state()
|
||||
.then(() => {
|
||||
createApp(App).use(router).use(pinia).use(FloatingVue).mixin(loadCssMixin).mount('#app')
|
||||
.then(() => app.mount('#app'))
|
||||
.catch((err) => {
|
||||
console.error(err)
|
||||
})
|
||||
.catch((err) => console.error(err))
|
||||
|
||||
Reference in New Issue
Block a user