From 860505c23053fcc254d39843e1e6a4458db48828 Mon Sep 17 00:00:00 2001 From: deflax Date: Mon, 29 Apr 2024 19:11:29 +0300 Subject: [PATCH] move app.js to components --- src/rfront/front/{ => components}/App.css | 0 src/rfront/front/{ => components}/App.js | 4 ++-- src/rfront/front/index.js | 3 +-- src/rfront/{front/index.css => public/style.css} | 0 src/rfront/{front => }/webpack.config.js | 0 5 files changed, 3 insertions(+), 4 deletions(-) rename src/rfront/front/{ => components}/App.css (100%) rename src/rfront/front/{ => components}/App.js (94%) rename src/rfront/{front/index.css => public/style.css} (100%) rename src/rfront/{front => }/webpack.config.js (100%) diff --git a/src/rfront/front/App.css b/src/rfront/front/components/App.css similarity index 100% rename from src/rfront/front/App.css rename to src/rfront/front/components/App.css diff --git a/src/rfront/front/App.js b/src/rfront/front/components/App.js similarity index 94% rename from src/rfront/front/App.js rename to src/rfront/front/components/App.js index 890fc6f..a2b6435 100644 --- a/src/rfront/front/App.js +++ b/src/rfront/front/components/App.js @@ -1,6 +1,6 @@ import "./App.css"; -import Messages from "./components/Messages"; -import TextField from "./components/TextField"; +import Messages from "./Messages"; +import TextField from "./TextField"; import { useEffect, useState } from "react"; import { io } from "socket.io-client"; diff --git a/src/rfront/front/index.js b/src/rfront/front/index.js index a64e7d5..ad010a7 100644 --- a/src/rfront/front/index.js +++ b/src/rfront/front/index.js @@ -1,7 +1,6 @@ import React from "react"; import ReactDOM from "react-dom/client"; -import "./index.css"; -import App from "./App"; +import App from './components/App'; const root = ReactDOM.createRoot(document.getElementById("root")); root.render(); diff --git a/src/rfront/front/index.css b/src/rfront/public/style.css similarity index 100% rename from src/rfront/front/index.css rename to src/rfront/public/style.css diff --git a/src/rfront/front/webpack.config.js b/src/rfront/webpack.config.js similarity index 100% rename from src/rfront/front/webpack.config.js rename to src/rfront/webpack.config.js