Skip to content
Merged

Beta #312

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
fc0773f
Bugfixes for ArcOS Beta 7.0.11
IzKuipers Oct 27, 2026
bbed280
Revert order-agnostic keyboard processing to address beta feedback
IzKuipers Oct 31, 2026
6b3032b
Shared drive bugs
IzKuipers Nov 1, 2026
a027e17
Context menu bugfixes before bed
IzKuipers Nov 3, 2026
1f00ddb
SqlInterfaceProcess works again
IzKuipers Nov 4, 2026
50f427d
Remove fake tables from the admin portal
IzKuipers Nov 4, 2026
a9164ee
fix
IzKuipers Nov 4, 2026
73a94f5
bug
IzKuipers Nov 4, 2026
bdce9bb
Remove fake tables from process manager
IzKuipers Nov 4, 2026
8796b84
try/catch on IFilesystemUserContext.openFile
IzKuipers Nov 4, 2026
00af299
Refactor
IzKuipers Nov 5, 2026
3f9e6e9
Refactor pt. 2
IzKuipers Nov 5, 2026
f152826
JsonViewer: take 2
IzKuipers Nov 5, 2026
0594ecd
JsonViewer: take 2.1
IzKuipers Nov 5, 2026
d9011b3
JSON viewer - preview for complex datatypes
IzKuipers Nov 5, 2026
7c4a66c
Please welcome GenericObjectViewerApp
IzKuipers Nov 5, 2026
0b7493e
okay so the json viewer is insane now
IzKuipers Nov 5, 2026
45a16b0
make the pipeline happy
IzKuipers Nov 5, 2026
cfea25f
procinfo - fix css of kill btn
IzKuipers Nov 5, 2026
420b9c0
Merge branch 'development' into beta-izk-7011-bugfixes
IzKuipers Nov 5, 2026
ac6f793
temp fix
IzKuipers Nov 5, 2026
c6771f4
Jobs and stuff
IzKuipers Nov 6, 2026
bdb32b1
Cleanup
IzKuipers Nov 9, 2026
8811f0a
(wip) IPrinterKernelModule
IzKuipers Nov 10, 2026
6579192
Additional cleanup to cleanup my cleanup
IzKuipers Nov 10, 2026
b8dd777
Run IndexAllJob indexings in parallel
IzKuipers Nov 10, 2026
a4c04dc
Disable withProto for JsonViewer refs in Admin Portal
IzKuipers Nov 10, 2026
225d7ab
GetFsIndexDuplicates job
IzKuipers Nov 12, 2026
3f7f3b4
Update GetFsIndexDuplicates
IzKuipers Nov 12, 2026
00083f6
kernel operation logs
IzKuipers Nov 12, 2026
5a9d793
Merge branch 'beta' into beta-izk-7011-bugfixes
IzKuipers Nov 13, 2026
3dd7ba6
Public service announcements (ArcPB)
IzKuipers Nov 13, 2026
109d91f
Fixes
IzKuipers Nov 16, 2026
b9757e8
Merge pull request #305 from ArcOS-Project/beta-izk-7011-bugfixes
IzKuipers Nov 16, 2026
1fbfdba
Merge branch 'development' into beta
IzKuipers Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<div id="stateLoader" class="fullscreen">.</div>
<div id="appRenderer"></div>
</main>
<div class="kernel-print-area"></div>
<script type="module" src="/src/main.ts"></script>
<script src="/preboot.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"music-metadata": "^11.10.3",
"openmeteo": "^1.1.4",
"socket.io-client": "^4.8.1",
"sql.js": "^1.13.0",
"sql.js": "^1.15.2",
"stacktrace-parser": "^0.1.11",
"string-width": "^7.2.0",
"svelte-image-viewer": "^7.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/apps/admin/adminportal/AdminPortal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const AdminPortalApp: App = {
minSize: { w: 900, h: 500 },
maxSize: { w: NaN, h: NaN },
state: {
maximized: false,
maximized: true,
minimized: false,
resizable: true,
fullscreen: false,
Expand Down
64 changes: 0 additions & 64 deletions src/apps/admin/adminportal/AdminPortal/Page/Activities.svelte

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<script lang="ts">
import type { IAdminPortalRuntime } from "$interfaces/runtimes/IAdminPortalRuntime";
import ProfilePicture from "$lib/ProfilePicture.svelte";
import { ActivityCaptionTranslations, ActivityIconTranslations } from "$ts/user/store";
import { sliceIntoChunks } from "$ts/util";
import type { ExpandedActivity } from "$types/server/admin";
import dayjs from "dayjs";
import type { ActivitiesData } from "../../types";
import Pagination from "../Pagination.svelte";
import UsernameDisplay from "../UsernameDisplay.svelte";

const { process, data }: { process: IAdminPortalRuntime; data: ActivitiesData } = $props();
const { redacted } = process;
const { users } = data;
const activities: ExpandedActivity[] = data.activities
.map((a) => ({
...a,
user: users.filter((u) => u._id === a.authorId)[0],
}))
.reverse();
const chunks = sliceIntoChunks(activities, 50) as ExpandedActivity[][];
const total = activities.length;

let currentChunk = $state(0);
</script>

<div class="header">
<h1>ACTIVITIES ({activities.length})</h1>
<Pagination bind:currentChunk chunkSize={50} totalChunks={chunks.length - 1} totalItems={total} />
</div>
<div class="table-wrapper activities-list">
<table>
<thead>
<tr>
<th class="icon-col">
<span class="lucide icon-shield-ellipsis"></span>
</th>
<th>Username</th>
<th>Action</th>
<th>User agent</th>
<th>Frontend</th>
<th>Timestamp</th>
</tr>
</thead>
<colgroup>
<col width="1%" />
<col width="19%" />
<col width="40%" />
<col width="20%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<tbody>
{#if chunks[currentChunk]}
{#each chunks[currentChunk] as activity (activity._id)}
<tr>
<td class="icon-col"><span class="lucide icon-{ActivityIconTranslations[activity.action]}"></span></td>
<td class:redacted={$redacted}>
<UsernameDisplay user={activity.user} {process} />
</td>
<td>{ActivityCaptionTranslations[activity.action]}</td>
<td title={activity.userAgent}>{activity.userAgent}</td>
<td>{activity.location?.hostname || "Unknown"}</td>
<td>{dayjs(activity.createdAt).format("D MMM YYYY, HH:mm")}</td>
</tr>
{/each}
{/if}
</tbody>
</table>
</div>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -46,35 +46,44 @@
</button>
{/each}
</div>
<div class="beta-container" class:loading>
<div class="table-wrapper beta-container shrink" class:loading>
{#if loading}
<Spinner height={32} />
{:else if selectedItem}
<ItemDetails item={selectedItem} bind:selectedItem {process} />
{:else}
<div class="beta-list">
<div class="beta-row header">
<div class="segment username">Username</div>
<div class="segment title">Title</div>
<div class="segment server">Server</div>
<div class="segment date">Date</div>
<div class="segment read">Read?</div>
</div>
{#each items as item (item.id)}
<!-- svelte-ignore a11y_click_events_have_key_events -->
<!-- svelte-ignore a11y_no_static_element_interactions -->
<div class="beta-row" onclick={() => (selectedItem = item)}>
<div class="segment username">{item.username}</div>
<div class="segment title">{item.title}</div>
<div class="segment server">{item.serverName}</div>
<div class="segment date">{dayjs(item.created).format("DD-MM-YYYY, HH:mm:ss")}</div>
<div class="segment read">
{#if item.read}
<span class="lucide icon-check-check"></span>
{/if}
</div>
</div>
{/each}
</div>
<table>
<thead>
<tr>
<th>Username</th>
<th>Title</th>
<th>Server</th>
<th>Date</th>
<th>Read?</th>
</tr>
</thead>
<colgroup>
<col width="10%" />
<col width="30%" />
<col width="20%" />
<col width="30%" />
<col width="1%" />
</colgroup>
<tbody>
{#each items as item (item.id)}
<tr onclick={() => (selectedItem = item)}>
<td>{item.username}</td>
<td>{item.title}</td>
<td>{item.serverName}</td>
<td>{dayjs(item.created).format("DD-MM-YYYY, HH:mm:ss")}</td>
<td class="icon-col">
{#if item.read}
<span class="lucide icon-check-check"></span>
{/if}
</td>
</tr>
{/each}
</tbody>
</table>
{/if}
</div>
44 changes: 30 additions & 14 deletions ...minportal/AdminPortal/Page/BugHunt.svelte → .../AdminPortal/Page/AdminBugHuntPage.svelte
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { onMount } from "svelte";
import type { BugHuntData } from "../../types";
import QuickView from "./BugHunt/QuickView.svelte";
import Row from "./BugHunt/Row.svelte";
import AdminBugHuntRow from "./BugHunt/AdminBugHuntRow.svelte";

const { process, data }: { process: IAdminPortalRuntime; data: BugHuntData } = $props();
const { reports, stats, users } = data;
Expand Down Expand Up @@ -135,19 +135,35 @@
<button class:selected={page === $sortState} onclick={() => ($sortState = page)}>{page.toUpperCase()}</button>
{/each}
</div>
<div class="listing">
<div class="row head">
<div class="segment mode-icon"><Icon icon={Logo()} /></div>
<div class="segment timestamp">Timestamp</div>
<div class="segment title">Title</div>
<div class="segment author">Author</div>
</div>
{#each sortByKey($store, "createdAt", true) as report (report._id)}
<Row {process} {report} {idEntry} {quickView} {selectionList} />
{/each}
{#if !$store.length}
<p class="no-results">Logan ate them all.</p>
{/if}
<div class="table-wrapper listing">
<table>
<thead>
<tr>
<th class="icon-col"><Icon icon={Logo()}></Icon></th>
<th>Timestamp</th>
<th>Title</th>
<th>Author</th>
</tr>
</thead>
<colgroup>
<col width="1%" />
<col width="15%" />
<col width="44%" />
<col width="20%" />
</colgroup>
<tbody>
{#each sortByKey($store, "createdAt", true) as report (report._id)}
<AdminBugHuntRow {process} {report} {idEntry} {quickView} {selectionList} />
{/each}
{#if !$store.length}
<tr>
<td colspan="4">
<p class="no-results">Logan ate them all.</p>
</td>
</tr>
{/if}
</tbody>
</table>
</div>
<div class="id-entry">
<div class="icon">
Expand Down
File renamed without changes.
52 changes: 33 additions & 19 deletions ...ortal/AdminPortal/Page/Filesystems.svelte → ...inPortal/Page/AdminFilesystemsPage.svelte
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

const quotas = Store<FilesystemsPageQuota[]>([]);
let loading = $state<boolean>(true);
let used = $state<number>(0);
let available = $state<number>(0);
let total = $state<number>(0);

onMount(async () => {
await Promise.all(
Expand All @@ -31,29 +34,40 @@
)
);

used = $quotas.reduce((a, b) => a + b.used, 0);
available = $quotas.reduce((a, b) => a + b.free, 0);
total = $quotas.reduce((a, b) => a + b.max, 0);

loading = false;
});
</script>

<div class="fs-list">
<div class="row header">
<!-- reduce calls: https://stackoverflow.com/a/16751601 -->
<div class="segment pfp">
<ProfilePicture height={20} />
</div>
<div class="segment username">Username</div>
<div class="segment used">Used ({formatBytes($quotas.map((v) => v.used).reduce((partialSum, a) => partialSum + a, 0))})</div>
<div class="segment available">
Free ({formatBytes($quotas.map((v) => v.free).reduce((partialSum, a) => partialSum + a, 0))})
</div>
<div class="segment total">Total ({formatBytes($quotas.map((v) => v.max).reduce((partialSum, a) => partialSum + a, 0))})</div>
<div class="segment quota">Quot</div>
<div class="segment index">Index</div>
<div class="segment mount">Mount</div>
</div>
{#each sortByKey($quotas, "used", true) as quota (quota.user._id)}
<FilesystemRow {quota} {admin} {process} />
{/each}
<div class="table-wrapper fs-list">
<table>
<thead>
<tr>
<th>Username</th>
<th>Used ({formatBytes(used)})</th>
<th>Free ({formatBytes(available)})</th>
<th>Total ({formatBytes(total)})</th>
<th>Quota</th>
<th class="actions">Actions</th>
</tr>
</thead>
<colgroup>
<col width="50%" />
<col width="15%" />
<col width="15%" />
<col width="15%" />
<col width="1%" />
<col width="19%" />
</colgroup>
<tbody>
{#each sortByKey($quotas, "used", true) as quota (quota.user._id)}
<FilesystemRow {quota} {admin} {process} />
{/each}
</tbody>
</table>
</div>
<div class="loading-overlay" class:show={loading}>
<Spinner height={32} />
Expand Down
File renamed without changes.
34 changes: 34 additions & 0 deletions src/apps/admin/adminportal/AdminPortal/Page/AdminScopesPage.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<script lang="ts">
import type { IAdminPortalRuntime } from "$interfaces/runtimes/IAdminPortalRuntime";
import ProfilePicture from "$lib/ProfilePicture.svelte";
import { ProfilePictures } from "$ts/images/pfp";
import type { ScopesData } from "../../types";
import ScopeRow from "./Scopes/ScopeRow.svelte";

const { process, data }: { process: IAdminPortalRuntime; data: ScopesData } = $props();
const { admins } = data;
</script>

<div class="table-wrapper scope-list">
<table>
<thead>
<tr>
<th> Username </th>
<th>Pages</th>
<th>Count</th>
<th>God?</th>
</tr>
</thead>
<colgroup>
<col width="20%" />
<col width="78%" />
<col width="1%" />
<col width="1%" />
</colgroup>
<tbody>
{#each admins as admin (admin._id)}
<ScopeRow {admin} {process} />
{/each}
</tbody>
</table>
</div>
Loading
Loading