Finish move from index to terminal
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
import type { NextPage } from "next";
|
||||
import { useEffect, useRef, useState, isValidElement, useCallback } from "react";
|
||||
import { useRouter } from "next/router";
|
||||
import styles from "../../styles/ProjectModal.module.css";
|
||||
import styles from "../../styles/Terminal/ProjectModal.module.css";
|
||||
import asciidocStyles from "../../styles/Terminal/customAsciidoc.module.scss";
|
||||
import type { Project, Diary } from "../../lib/content/types";
|
||||
import { useCommands } from "../../lib/commands/ContextProvider";
|
||||
import { generateContent, projectEmpty } from "../../lib/content/generate";
|
||||
@ -108,7 +109,7 @@ const ProjectModal: NextPage = () => {
|
||||
</a>
|
||||
<div className={styles.modalContainer} onClick={(event) => event.stopPropagation()}>
|
||||
{nextPageSelector}
|
||||
<div className={`${styles.modalText} asciidoc`} ref={containerRef} dangerouslySetInnerHTML={{ __html: HTMLContent ? HTMLContent : projectEmpty }}>
|
||||
<div className={`${styles.modalText} ${asciidocStyles.asciidoc}`} ref={containerRef} dangerouslySetInnerHTML={{ __html: HTMLContent ? HTMLContent : projectEmpty }}>
|
||||
|
||||
</div>
|
||||
{nextPageSelector}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { NextPage } from "next";
|
||||
import Link from "next/link";
|
||||
import type { BaseSyntheticEvent, MutableRefObject } from "react";
|
||||
import styles from "../../../styles/REPL/REPLHistory.module.css";
|
||||
import styles from "../../../styles/Terminal/REPL/REPLHistory.module.css";
|
||||
|
||||
interface REPLHistoryParams {
|
||||
history: string[];
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { NextPage } from "next";
|
||||
import { MutableRefObject, useState, createRef, useEffect } from "react";
|
||||
import { CommandInterface } from "../../../lib/commands";
|
||||
import styles from "../../../styles/REPL/REPLInput.module.css";
|
||||
import styles from "../../../styles/Terminal/REPL/REPLInput.module.css";
|
||||
import { useCommands } from "../../../lib/commands/ContextProvider";
|
||||
import { useModalFunctions } from "../contexts/ModalFunctions";
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { MutableRefObject, useEffect, useRef, useState } from "react";
|
||||
import REPLInput from "./REPLInput";
|
||||
import REPLHistory from "./REPLHistory";
|
||||
import styles from "../../../styles/REPL/REPLComplete.module.css";
|
||||
import styles from "../../../styles/Terminal/REPL/REPLComplete.module.css";
|
||||
import type { NextPage } from "next";
|
||||
import { useCommands } from "../../../lib/commands/ContextProvider";
|
||||
// import { useCommands } from "../../../lib/commands/ContextProvider";
|
||||
|
||||
interface IREPLProps {
|
||||
inputRef: MutableRefObject<HTMLInputElement|null>;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { createContext, useContext } from "react";
|
||||
import type { PropsWithChildren } from "react";
|
||||
import type { Project, Diary } from "../../lib/content/types";
|
||||
import type { Project, Diary } from "../../../lib/content/types";
|
||||
|
||||
interface ModalFunctions {
|
||||
setVisible?: CallableFunction;
|
||||
|
Reference in New Issue
Block a user