Skip to content

Commit

Permalink
Updated webgen
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsoft committed Feb 13, 2024
1 parent f8f12ce commit 94a851f
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 16 deletions.
5 changes: 0 additions & 5 deletions components/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ nav.home {
filter: invert();
}

.wbutton.grayscaled.inline,
.wbutton.grayscaled.secondary {
color: inherit;
}

nav.music {
background: linear-gradient(166deg, #F19D2D 6.59%, #DB5721 101.73%);
}
Expand Down
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"imports": {
"webgen/": "https://raw.githubusercontent.com/lucsoft/WebGen/a537ca3/",
"webgen/": "https://raw.githubusercontent.com/lucsoft/WebGen/2722daa/",
// "webgen/": "../WebGen/",
"std/": "https://deno.land/[email protected]/",
"shared/": "./pages/shared/"
Expand Down
3 changes: 2 additions & 1 deletion pages/_legacy/newDrop.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ZodError } from "https://deno.land/x/[email protected]/mod.ts";
import { API, LoadingSpinner, stupidErrorAlert } from "shared/mod.ts";
import { AdvancedImage, Body, Box, Button, ButtonStyle, Center, CenterV, Color, DropAreaInput, DropDownInput, Empty, Grid, Horizontal, Image, Label, MediaQuery, Spacer, SupportedThemes, TextInput, Validate, Vertical, WebGen, asState, createFilePicker, getErrorMessage } from "webgen/mod.ts";
import { AdvancedImage, Body, Box, Button, ButtonStyle, Center, CenterV, Color, Custom, DropAreaInput, DropDownInput, Empty, Grid, Horizontal, Image, Label, MediaQuery, Spacer, SupportedThemes, TextInput, Validate, Vertical, WebGen, asState, createFilePicker, getErrorMessage } from "webgen/mod.ts";
import '../../assets/css/main.css';
import { DynaNavigation } from "../../components/nav.ts";
import genres from "../../data/genres.json" with { type: "json" };
Expand Down Expand Up @@ -77,6 +77,7 @@ sheetStack.setDefault(Vertical(

Body(sheetStack)
.addClass("fullscreen");
Custom(document.body).setAttribute("data-theme", undefined);

const validator = (page: number) => async () => {
const { error, validate } = Validate(state, pages[ page ]);
Expand Down
2 changes: 1 addition & 1 deletion pages/hosting/dialogs/deleteFileDialog.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box, Button, Color, Grid, Label, SheetDialog, Vertical } from "webgen/mod.ts";
import { sheetStack } from "../../../_legacy/helper.ts";
import { sheetStack } from "../../_legacy/helper.ts";

export function deleteFileDialog() {
const response = Promise.withResolvers<boolean>();
Expand Down
2 changes: 1 addition & 1 deletion pages/hosting/dialogs/deleteServerDialog.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { API, stupidErrorAlert } from "shared/restSpec.ts";
import { Button, ButtonStyle, Color, Grid, Label, SheetDialog } from "webgen/mod.ts";
import { sheetStack } from "../../../_legacy/helper.ts";
import { sheetStack } from "../../_legacy/helper.ts";

export const deleteServerDialog = (serverId: string) => {
const sheet = SheetDialog(sheetStack, "Delete Server",
Expand Down
10 changes: 5 additions & 5 deletions pages/hosting/dialogs/editServerDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { API, stupidErrorAlert } from "shared/restSpec.ts";
import { SliderInput } from "shared/slider.ts";
import { format } from "std/fmt/bytes.ts";
import { Button, ButtonStyle, Color, DropDownInput, Grid, Label, MediaQuery, SheetDialog, TextInput, asState } from "webgen/mod.ts";
import locations from "../../../../data/locations.json" with { type: "json" };
import serverTypes from "../../../../data/servers.json" with { type: "json" };
import { Server } from "../../../../spec/music.ts";
import { sheetStack } from "../../../_legacy/helper.ts";
import { MB, state } from "../../data.ts";
import locations from "../../../data/locations.json" with { type: "json" };
import serverTypes from "../../../data/servers.json" with { type: "json" };
import { Server } from "../../../spec/music.ts";
import { sheetStack } from "../../_legacy/helper.ts";
import { MB, state } from "../data.ts";

export const editServerDialog = (server: Server, versions: string[]) => {
const data = asState({
Expand Down
2 changes: 1 addition & 1 deletion pages/hosting/dialogs/forceRestartDialog.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { API, stupidErrorAlert } from "shared/restSpec.ts";
import { Button, ButtonStyle, Color, Grid, Label, SheetDialog } from "webgen/mod.ts";
import { sheetStack } from "../../../_legacy/helper.ts";
import { sheetStack } from "../../_legacy/helper.ts";

export const forceRestartDialog = (serverId: string) => {
const sheet = SheetDialog(sheetStack, "Hard Restart",
Expand Down
2 changes: 1 addition & 1 deletion pages/hosting/views/table2.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
}

.wlayer-inner {
z-index: -1;
/* z-index: -1; */
}

0 comments on commit 94a851f

Please sign in to comment.