You've already forked AstralRinth
forked from didirus/AstralRinth
Update to the newest version of Omorphia
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "theseus_gui/locales"]
|
||||
path = theseus_gui/locales
|
||||
url = https://github.com/modrinth/translations
|
||||
1
theseus_gui/generated/gameVersions.json
Normal file
1
theseus_gui/generated/gameVersions.json
Normal file
File diff suppressed because one or more lines are too long
7876
theseus_gui/generated/openapi.ts
Normal file
7876
theseus_gui/generated/openapi.ts
Normal file
File diff suppressed because it is too large
Load Diff
7
theseus_gui/generated/state.json
Normal file
7
theseus_gui/generated/state.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"lastGenerated": "2022-08-01T14:34:27.819Z",
|
||||
"options": {
|
||||
"gameVersions": true,
|
||||
"openapi": true
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,7 @@
|
||||
"prettier-plugin-svelte": "^2.5.0",
|
||||
"svelte": "^3.46.0",
|
||||
"svelte-check": "^2.2.6",
|
||||
"svelte-intl-precompile": "^0.11.1",
|
||||
"tslib": "^2.3.1",
|
||||
"typescript": "~4.5.4",
|
||||
"vite": "^3.0.0"
|
||||
@@ -35,9 +36,10 @@
|
||||
"@iconify-json/heroicons-outline": "^1.1.1",
|
||||
"@iconify-json/heroicons-solid": "^1.1.1",
|
||||
"@iconify-json/lucide": "^1.1.5",
|
||||
"@tauri-apps/api": "^1.0.0-rc.1",
|
||||
"omorphia": "0.0.17",
|
||||
"svrollbar": "^0.10.4",
|
||||
"unplugin-icons": "^0.14.7"
|
||||
"@tauri-apps/api": "^1.0.2",
|
||||
"omorphia": "0.0.67",
|
||||
"svrollbar": "^0.12.0",
|
||||
"unplugin-icons": "^0.14.7",
|
||||
"highlight.js": "11.5.1"
|
||||
}
|
||||
}
|
||||
|
||||
1812
theseus_gui/pnpm-lock.yaml
generated
1812
theseus_gui/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
module.exports = require('omorphia/config/postcss.config.cjs')
|
||||
module.exports = require('omorphia/config/postcss.cjs')
|
||||
@@ -9,7 +9,7 @@ use tauri::{
|
||||
};
|
||||
|
||||
fn main() {
|
||||
let ctx = tauri::generate_context!();
|
||||
let ctx = tauri::generate_context!(); // Run `pnpm build:web` (builds the web app) to get rid of the error.
|
||||
|
||||
tauri::Builder::default()
|
||||
.invoke_handler(tauri::generate_handler![])
|
||||
|
||||
@@ -3,9 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="preload" href="/fonts/InterRegular.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="/fonts/InterBold.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="/fonts/InterSemiBold.woff2" as="font" type="font/woff2" crossorigin>
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body style="background-color: hsl(220, 13%, 15%)">
|
||||
<body class="base theme-dark" style="background-color: hsl(220, 13%, 15%)">
|
||||
%sveltekit.body%
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { FormField, Slider, TextInput, Button } from "omorphia"
|
||||
import { Field, Slider, TextInput, Button } from "omorphia"
|
||||
import TitledSection from "$components/TitledSection.svelte"
|
||||
import WindowSettings from "$components/WindowSettings.svelte"
|
||||
|
||||
@@ -8,50 +8,50 @@
|
||||
|
||||
<div class="section">
|
||||
<TitledSection title="Downloads">
|
||||
<FormField label="Max concurrent downloads">
|
||||
<Field label="Max concurrent downloads">
|
||||
<Slider min=1 max=64 bind:value={maxConcurrentDownloads} />
|
||||
</FormField>
|
||||
</Field>
|
||||
</TitledSection>
|
||||
<TitledSection title="Override game resolution" toggleable=true>
|
||||
<WindowSettings />
|
||||
</TitledSection>
|
||||
<TitledSection title="Profile hooks">
|
||||
<FormField label="Pre-launch">
|
||||
<Field label="Pre-launch">
|
||||
<TextInput />
|
||||
</FormField>
|
||||
<FormField label="Wrapper">
|
||||
</Field>
|
||||
<Field label="Wrapper">
|
||||
<TextInput />
|
||||
</FormField>
|
||||
<FormField label="Post-exit">
|
||||
</Field>
|
||||
<Field label="Post-exit">
|
||||
<TextInput />
|
||||
</FormField>
|
||||
</Field>
|
||||
</TitledSection>
|
||||
<TitledSection title="Java">
|
||||
<FormField label="Java 8 installation">
|
||||
<Field label="Java 8 installation">
|
||||
<TextInput placeholder="/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home" />
|
||||
<div class="button-group">
|
||||
<Button>Auto-detect</Button>
|
||||
<Button>Browse installations</Button>
|
||||
<Button>Test</Button>
|
||||
</div>
|
||||
</FormField>
|
||||
<FormField label="Java 17 installation">
|
||||
</Field>
|
||||
<Field label="Java 17 installation">
|
||||
<TextInput placeholder="/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home" />
|
||||
<div class="button-group">
|
||||
<Button>Auto-detect</Button>
|
||||
<Button>Browse installations</Button>
|
||||
<Button>Test</Button>
|
||||
</div>
|
||||
</FormField>
|
||||
<FormField label="Minimum memory allocatted (in MB)">
|
||||
</Field>
|
||||
<Field label="Minimum memory allocatted (in MB)">
|
||||
<TextInput />
|
||||
</FormField>
|
||||
<FormField label="Maximum memory allocatted (in MB)">
|
||||
</Field>
|
||||
<Field label="Maximum memory allocatted (in MB)">
|
||||
<TextInput value="2048" />
|
||||
</FormField>
|
||||
<FormField label="Arguments">
|
||||
</Field>
|
||||
<Field label="Arguments">
|
||||
<TextInput/>
|
||||
</FormField>
|
||||
</Field>
|
||||
</TitledSection>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { FormField, TextInput } from "omorphia"
|
||||
import { Field, TextInput } from "omorphia"
|
||||
</script>
|
||||
|
||||
<div class="section">
|
||||
<FormField label="Window width">
|
||||
<Field label="Window width">
|
||||
<TextInput />
|
||||
</FormField>
|
||||
<FormField label="Window height">
|
||||
</Field>
|
||||
<Field label="Window height">
|
||||
<TextInput />
|
||||
</FormField>
|
||||
</Field>
|
||||
</div>
|
||||
|
||||
<style lang="postcss">
|
||||
|
||||
@@ -7,6 +7,23 @@
|
||||
import Page from "$layout/Page.svelte";
|
||||
</script>
|
||||
|
||||
<script context="module" lang="ts">
|
||||
import { init, waitLocale, t, getLocaleFromAcceptLanguageHeader } from 'svelte-intl-precompile'
|
||||
import { registerAll, availableLocales } from '$locales'
|
||||
|
||||
registerAll()
|
||||
|
||||
export const load: import('@sveltejs/kit').Load = async ({ session }) => {
|
||||
init({
|
||||
fallbackLocale: 'en',
|
||||
initialLocale: getLocaleFromAcceptLanguageHeader(session.acceptLanguage, availableLocales),
|
||||
})
|
||||
await waitLocale()
|
||||
|
||||
return {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="app base theme-dark">
|
||||
<Sidebar />
|
||||
<StatusBar />
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import { Checkbox, FormField, TextInput, Button } from "omorphia"
|
||||
import GlobalSettings from "$components/GlobalSettings.svelte"
|
||||
import TitledSection from "$components/TitledSection.svelte"
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import { Checkbox, FormField, TextInput, Button } from "omorphia"
|
||||
import GlobalSettings from "$components/GlobalSettings.svelte"
|
||||
</script>
|
||||
|
||||
|
||||
3
theseus_gui/src/stores/account.ts
Normal file
3
theseus_gui/src/stores/account.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { writable } from 'svelte/store'
|
||||
|
||||
export const token = writable('')
|
||||
BIN
theseus_gui/static/fonts/InterBold.woff2
Normal file
BIN
theseus_gui/static/fonts/InterBold.woff2
Normal file
Binary file not shown.
BIN
theseus_gui/static/fonts/InterRegular.woff2
Normal file
BIN
theseus_gui/static/fonts/InterRegular.woff2
Normal file
Binary file not shown.
BIN
theseus_gui/static/fonts/InterSemiBold.woff2
Normal file
BIN
theseus_gui/static/fonts/InterSemiBold.woff2
Normal file
Binary file not shown.
@@ -1,13 +1,19 @@
|
||||
import adapter from '@sveltejs/adapter-static';
|
||||
import { preprocess } from 'omorphia/config/svelte.config'
|
||||
import { preprocess } from 'omorphia/config/svelte';
|
||||
import path from 'path';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
preprocess,
|
||||
preprocess: [ preprocess ],
|
||||
kit: {
|
||||
adapter: adapter({
|
||||
fallback: '200.html',
|
||||
})
|
||||
}),
|
||||
|
||||
alias: {
|
||||
$generated: path.resolve('./generated'),
|
||||
$stores: path.resolve('./src/stores'),
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1,13 +1,23 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import path from "path";
|
||||
import { plugins } from 'omorphia/config/svelte.config'
|
||||
import { plugins } from 'omorphia/config/vite';
|
||||
import precompileIntl from 'svelte-intl-precompile/sveltekit-plugin';
|
||||
import { Generator } from 'omorphia/plugins';
|
||||
|
||||
/** @type {import('vite').UserConfig} */
|
||||
const config = {
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
...plugins
|
||||
...plugins,
|
||||
precompileIntl('locales'),
|
||||
Generator({
|
||||
gameVersions: true,
|
||||
openapi: true,
|
||||
}),
|
||||
],
|
||||
optimizeDeps: {
|
||||
include: ["highlight.js/lib/core"],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
$assets: path.resolve('./src/assets'),
|
||||
@@ -19,6 +29,11 @@ const config = {
|
||||
$generated: path.resolve('./src/generated'),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
fs: {
|
||||
allow: ['generated'],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user