From f885199b2b08b2c44d8386701a31e42125d2882b Mon Sep 17 00:00:00 2001 From: Rinsvent Date: Sat, 7 Jan 2023 15:35:08 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=20?= =?UTF-8?q?=D0=B2=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../elements/{ => command/elements}/argument/index.tsx | 2 +- .../{ => command/elements}/argument/styles.module.css | 0 .../elements/{ => command/elements}/arguments/index.tsx | 2 +- .../{ => command/elements}/arguments/styles.module.css | 0 .../elements/{ => command/elements}/option/index.tsx | 2 +- .../{ => command/elements}/option/styles.module.css | 0 .../elements/{ => command/elements}/options/index.tsx | 2 +- .../{ => command/elements}/options/styles.module.css | 0 components/elements/command/index.tsx | 8 ++++---- pages/index.tsx | 4 ++-- 10 files changed, 10 insertions(+), 10 deletions(-) rename components/elements/{ => command/elements}/argument/index.tsx (93%) rename components/elements/{ => command/elements}/argument/styles.module.css (100%) rename components/elements/{ => command/elements}/arguments/index.tsx (94%) rename components/elements/{ => command/elements}/arguments/styles.module.css (100%) rename components/elements/{ => command/elements}/option/index.tsx (93%) rename components/elements/{ => command/elements}/option/styles.module.css (100%) rename components/elements/{ => command/elements}/options/index.tsx (96%) rename components/elements/{ => command/elements}/options/styles.module.css (100%) diff --git a/components/elements/argument/index.tsx b/components/elements/command/elements/argument/index.tsx similarity index 93% rename from components/elements/argument/index.tsx rename to components/elements/command/elements/argument/index.tsx index 14285b5..bd0a4b9 100644 --- a/components/elements/argument/index.tsx +++ b/components/elements/command/elements/argument/index.tsx @@ -1,6 +1,6 @@ import styles from './styles.module.css' import {useContext, useEffect, useState} from "react"; -import Context, {ContextInterface} from "../command/context"; +import Context, {ContextInterface} from "../../context"; export interface ArgumentInterface { name: string, diff --git a/components/elements/argument/styles.module.css b/components/elements/command/elements/argument/styles.module.css similarity index 100% rename from components/elements/argument/styles.module.css rename to components/elements/command/elements/argument/styles.module.css diff --git a/components/elements/arguments/index.tsx b/components/elements/command/elements/arguments/index.tsx similarity index 94% rename from components/elements/arguments/index.tsx rename to components/elements/command/elements/arguments/index.tsx index 19c13c6..743b027 100644 --- a/components/elements/arguments/index.tsx +++ b/components/elements/command/elements/arguments/index.tsx @@ -1,7 +1,7 @@ import styles from './styles.module.css' import {useContext, useEffect, useState} from "react"; import Argument, {ArgumentInterface} from "../argument"; -import Context, {ContextInterface} from "../command/context"; +import Context, {ContextInterface} from "../../context"; interface ArgumentsInterface { argumentList: ArgumentInterface[] diff --git a/components/elements/arguments/styles.module.css b/components/elements/command/elements/arguments/styles.module.css similarity index 100% rename from components/elements/arguments/styles.module.css rename to components/elements/command/elements/arguments/styles.module.css diff --git a/components/elements/option/index.tsx b/components/elements/command/elements/option/index.tsx similarity index 93% rename from components/elements/option/index.tsx rename to components/elements/command/elements/option/index.tsx index 9482095..be19aeb 100644 --- a/components/elements/option/index.tsx +++ b/components/elements/command/elements/option/index.tsx @@ -1,6 +1,6 @@ import styles from './styles.module.css' import {useContext} from "react"; -import Context, {ContextInterface} from "../command/context"; +import Context, {ContextInterface} from "../../context"; export interface OptionInterface { name: string, diff --git a/components/elements/option/styles.module.css b/components/elements/command/elements/option/styles.module.css similarity index 100% rename from components/elements/option/styles.module.css rename to components/elements/command/elements/option/styles.module.css diff --git a/components/elements/options/index.tsx b/components/elements/command/elements/options/index.tsx similarity index 96% rename from components/elements/options/index.tsx rename to components/elements/command/elements/options/index.tsx index 6a6ea84..429f99a 100644 --- a/components/elements/options/index.tsx +++ b/components/elements/command/elements/options/index.tsx @@ -1,7 +1,7 @@ import styles from './styles.module.css' import Option, {OptionInterface} from '../option' import {useContext, useEffect, useState} from "react"; -import Context, {ContextInterface} from "../command/context"; +import Context, {ContextInterface} from "../../context"; interface OptionsInterface { optionList: OptionInterface[] diff --git a/components/elements/options/styles.module.css b/components/elements/command/elements/options/styles.module.css similarity index 100% rename from components/elements/options/styles.module.css rename to components/elements/command/elements/options/styles.module.css diff --git a/components/elements/command/index.tsx b/components/elements/command/index.tsx index 5060ef0..3b15deb 100644 --- a/components/elements/command/index.tsx +++ b/components/elements/command/index.tsx @@ -1,8 +1,8 @@ import styles from './styles.module.css' -import Options from "../options"; -import Arguments from "../arguments"; -import {OptionInterface} from "../option"; -import {ArgumentInterface} from "../argument"; +import Options from "./elements/options"; +import Arguments from "./elements/arguments"; +import {OptionInterface} from "./elements/option"; +import {ArgumentInterface} from "./elements/argument"; import {Provider} from "./context"; import {useState} from "react"; diff --git a/pages/index.tsx b/pages/index.tsx index 334248a..55f844b 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,7 +1,7 @@ import Head from 'next/head' import styles from '../styles/Home.module.css' -import {OptionInterface} from "../components/elements/option"; -import {ArgumentInterface} from "../components/elements/argument"; +import {OptionInterface} from "../components/elements/command/elements/option"; +import {ArgumentInterface} from "../components/elements/command/elements/argument"; import Command from "../components/elements/command"; interface CommandInterface {