You've already forked AstralRinth
* launcher base gui initial * Bootstraps router, Omorphia, and prettier. * Adds pages. Adds Vuex. SideBar nav contains user section and pages section. * Adds Instance markup. Instances added to Home page. * Adds News to home page. * Adds settings to nav. Other touches. * Polishing initial base GUI. * Moves some styling to assets. Changes px values to rem. * Removes pointless border-radius CSS. * Implements Omorphia vars. * Adds trending mods section. * Updates home page. * Swaps Vuex implementation for Pinia. * Fixes invalid CSS on instance list item hover. * Adds @ path resolve for imports. * Fix some styling of row display * Gridview on library page * Cleaning up styles and markup. * Fixes overall layout issues. * Cleans up more styling. Modifies AppBar coloring. * instance routing * Allows pagination arrows to conditionally appear in RowDisplay. * Adds paging behavior in RowDisplay. * Initial modlist layout * Updates nav and settings button styling. * Brings in Knossos style for trending mods. Polishes News CSS. * Page redesign * More tweaks * Base library pages * Remove errant css * Update play.svg * Addressed issues --------- Co-authored-by: Jai A <jaiagr+gpg@pm.me> Co-authored-by: Zachary Baird <zdb1994@yahoo.com> Co-authored-by: Zach Baird <30800863+ZachBaird@users.noreply.github.com>
121 lines
5.9 KiB
Vue
121 lines
5.9 KiB
Vue
<template>
|
|
<Card class="log-card">
|
|
<div class="button-row">
|
|
<DropdownSelect :options="['logs/latest.log']" />
|
|
<div class="button-group">
|
|
<Button>
|
|
<ClipboardCopyIcon/>
|
|
Copy
|
|
</Button>
|
|
<Button color="primary">
|
|
<SendIcon/>
|
|
Share
|
|
</Button>
|
|
<Button color="danger">
|
|
<TrashIcon/>
|
|
Delete
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
<div class="log-text">
|
|
<div v-for="line in fileContents.value.split('\n')"> {{ line }} </div>
|
|
</div>
|
|
</Card>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { Card, Button, TrashIcon, SendIcon, ClipboardCopyIcon, DropdownSelect } from 'omorphia'
|
|
</script>
|
|
<script>
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
fileContents: {
|
|
value: "'ServerLevel[New World]'/minecraft:the_end\n" +
|
|
"[22:13:02] [Server thread/INFO]: venashial lost connection: Disconnected\n" +
|
|
"[22:13:02] [Server thread/INFO]: venashial left the game\n" +
|
|
"[22:13:02] [Server thread/INFO]: Stopping singleplayer server as player logged out\n" +
|
|
"[22:13:02] [Server thread/INFO]: Stopping server\n" +
|
|
"[22:13:02] [Server thread/INFO]: Saving players\n" +
|
|
"[22:13:02] [Server thread/INFO]: Saving worlds\n" +
|
|
"[22:13:02] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld\n" +
|
|
"[22:13:05] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether\n" +
|
|
"[22:13:05] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage (New World): All chunks are saved\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved\n" +
|
|
"[22:13:06] [Render thread/INFO]: Stopping worker threads\n" +
|
|
"[22:13:07] [Render thread/INFO]: Stopping!\n" +
|
|
"[22:13:07] [CraftPresence-ShutDown-Handler/INFO]: Shutting down CraftPresence...\n" +
|
|
"'ServerLevel[New World]'/minecraft:the_end\n" +
|
|
"[22:13:02] [Server thread/INFO]: venashial lost connection: Disconnected\n" +
|
|
"[22:13:02] [Server thread/INFO]: venashial left the game\n" +
|
|
"[22:13:02] [Server thread/INFO]: Stopping singleplayer server as player logged out\n" +
|
|
"[22:13:02] [Server thread/INFO]: Stopping server\n" +
|
|
"[22:13:02] [Server thread/INFO]: Saving players\n" +
|
|
"[22:13:02] [Server thread/INFO]: Saving worlds\n" +
|
|
"[22:13:02] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld\n" +
|
|
"[22:13:05] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether\n" +
|
|
"[22:13:05] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage (New World): All chunks are saved\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved\n" +
|
|
"[22:13:06] [Render thread/INFO]: Stopping worker threads\n" +
|
|
"[22:13:07] [Render thread/INFO]: Stopping!\n" +
|
|
"[22:13:07] [CraftPresence-ShutDown-Handler/INFO]: Shutting down CraftPresence...\n" +
|
|
"'ServerLevel[New World]'/minecraft:the_end\n" +
|
|
"[22:13:02] [Server thread/INFO]: venashial lost connection: Disconnected\n" +
|
|
"[22:13:02] [Server thread/INFO]: venashial left the game\n" +
|
|
"[22:13:02] [Server thread/INFO]: Stopping singleplayer server as player logged out\n" +
|
|
"[22:13:02] [Server thread/INFO]: Stopping server\n" +
|
|
"[22:13:02] [Server thread/INFO]: Saving players\n" +
|
|
"[22:13:02] [Server thread/INFO]: Saving worlds\n" +
|
|
"[22:13:02] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld\n" +
|
|
"[22:13:05] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether\n" +
|
|
"[22:13:05] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage (New World): All chunks are saved\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved\n" +
|
|
"[22:13:05] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved\n" +
|
|
"[22:13:06] [Render thread/INFO]: Stopping worker threads\n" +
|
|
"[22:13:07] [Render thread/INFO]: Stopping!\n" +
|
|
"[22:13:07] [CraftPresence-ShutDown-Handler/INFO]: Shutting down CraftPresence..."
|
|
}
|
|
};
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.log-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
.button-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.log-text {
|
|
width: 100%;
|
|
aspect-ratio: 2/1;
|
|
font-family: var(--mono-font);
|
|
background-color: var(--color-accent-contrast);
|
|
color: var(--color-contrast);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1.5rem;
|
|
overflow: auto;
|
|
white-space: normal;
|
|
}
|
|
</style> |