feature/forgejo-actions #13

Merged
manuel merged 5 commits from feature/forgejo-actions into main 2026-03-07 23:53:08 +01:00
24 changed files with 14 additions and 19 deletions
Showing only changes of commit 3efb87bcd8 - Show all commits

View file

@ -8,12 +8,8 @@ import {
} from "./state/action.ts";
import styles from "./input-form.module.scss";
import "./input-form.scss";
import {State} from "@/app/state/state.ts";
import {
ValidatingInputNumberField,
ValidatingInputRegExpField,
ValidatorFunction
} from "@/app/validating-input-field.tsx";
import {State} from "./state/state.ts";
import {ValidatingInputNumberField, ValidatingInputRegExpField, ValidatorFunction} from "./validating-input-field.tsx";
export default function InputForm({state, dispatch}: {
state: State,
@ -39,7 +35,7 @@ export default function InputForm({state, dispatch}: {
dispatch(actionLoadingFailed(reason));
});
};
const validateSizeInput: ValidatorFunction<string, number> = value => {
const validateSizeInput: ValidatorFunction<string, number> = (value: string) => {
const numberValue = Number(value);
if (isNaN(numberValue) || "" === value || (Math.floor(numberValue) !== numberValue)) {
return {

View file

@ -4,17 +4,15 @@ import "./globals.scss";
export const metadata: Metadata = {
title: "A-Maze-R! Create your own Maze!",
description: "A Maze Generator by fritteli",
icons: "./favicon.ico"
icons: "/favicon.ico"
};
export default function RootLayout({children}: Readonly<{
export default function RootLayout({children}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en">
<body>
{children}
</body>
<body>{children}</body>
</html>
);
}

View file

@ -1,8 +1,8 @@
import Cell from "./cell.tsx";
import styles from "./maze.module.css";
import {State} from "@/app/state/state.ts";
import {State} from "./state/state.ts";
import {ActionDispatch, JSX} from "react";
import {Action} from "@/app/state/action.ts";
import {Action} from "./state/action.ts";
export default function Maze({state, dispatch}:
{

View file

@ -1,6 +1,6 @@
import {Action, actionClosedMessageBanner} from "./state/action.ts";
import styles from "./message-banner.module.css";
import {State} from "@/app/state/state.ts";
import {State} from "./state/state.ts";
import {ActionDispatch} from "react";
export default function MessageBanner({state, dispatch}:

View file

@ -9,7 +9,7 @@ import {
ID_ACTION_STARTED_LOADING,
ID_ACTION_TOGGLED_SHOW_SOLUTION
} from "./action.ts";
import Maze from "@/app/model/maze.ts";
import Maze from "../model/maze.ts";
export default function reduce(state: State, action: Action): State {
switch (action.type) {

2
next-env.d.ts vendored
View file

@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";
import "./.next/dev/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

View file

@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint"
"lint": "eslint",
"lint:fix": "eslint --fix"
},
"dependencies": {
"next": "16.1.6",

View file

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

Before After
Before After