diff --git a/geoattend/.eslintrc.json b/.eslintrc.json similarity index 100% rename from geoattend/.eslintrc.json rename to .eslintrc.json diff --git a/.gitignore b/.gitignore index 3c3629e..b90a368 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +.next diff --git a/.excalidraw b/Docs/.excalidraw similarity index 100% rename from .excalidraw rename to Docs/.excalidraw diff --git a/maths.md b/Docs/maths.md similarity index 100% rename from maths.md rename to Docs/maths.md diff --git a/notes.md b/Docs/notes.md similarity index 100% rename from notes.md rename to Docs/notes.md diff --git a/userInterface.md b/Docs/userInterface.md similarity index 100% rename from userInterface.md rename to Docs/userInterface.md diff --git a/geoattend/.gitignore b/geoattend/.gitignore deleted file mode 100644 index 8f322f0..0000000 --- a/geoattend/.gitignore +++ /dev/null @@ -1,35 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/geoattend/README.md b/geoattend/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/next-env.d.ts b/next-env.d.ts new file mode 100644 index 0000000..4f11a03 --- /dev/null +++ b/next-env.d.ts @@ -0,0 +1,5 @@ +/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/geoattend/next.config.js b/next.config.js similarity index 100% rename from geoattend/next.config.js rename to next.config.js diff --git a/geoattend/package.json b/package.json similarity index 100% rename from geoattend/package.json rename to package.json diff --git a/geoattend/postcss.config.js b/postcss.config.js similarity index 100% rename from geoattend/postcss.config.js rename to postcss.config.js diff --git a/geoattend/public/next.svg b/public/next.svg similarity index 100% rename from geoattend/public/next.svg rename to public/next.svg diff --git a/temp/css/style.css b/public/temp/css/style.css similarity index 100% rename from temp/css/style.css rename to public/temp/css/style.css diff --git a/temp/index.html b/public/temp/index.html similarity index 100% rename from temp/index.html rename to public/temp/index.html diff --git a/temp/js/script.js b/public/temp/js/script.js similarity index 100% rename from temp/js/script.js rename to public/temp/js/script.js diff --git a/temp/js/script2.js b/public/temp/js/script2.js similarity index 100% rename from temp/js/script2.js rename to public/temp/js/script2.js diff --git a/temp/temp.html b/public/temp/temp.html similarity index 100% rename from temp/temp.html rename to public/temp/temp.html diff --git a/geoattend/public/vercel.svg b/public/vercel.svg similarity index 100% rename from geoattend/public/vercel.svg rename to public/vercel.svg diff --git a/geoattend/src/app/api/data/route.ts b/src/app/api/data/route.ts similarity index 100% rename from geoattend/src/app/api/data/route.ts rename to src/app/api/data/route.ts diff --git a/geoattend/src/app/components/Child.tsx b/src/app/components/Child.tsx similarity index 88% rename from geoattend/src/app/components/Child.tsx rename to src/app/components/Child.tsx index 9ee63b2..8fade27 100644 --- a/geoattend/src/app/components/Child.tsx +++ b/src/app/components/Child.tsx @@ -1,5 +1,6 @@ "use client" +import Link from 'next/link'; import React, { useContext } from 'react' import { AppContext, APP_STATE_ACTION } from '../contextApi/AppContext'; @@ -16,6 +17,7 @@ const Child = () => { return ( <> + Maps
Child
{state.theme}
diff --git a/geoattend/src/app/contextApi/AppContext.tsx b/src/app/contextApi/AppContext.tsx similarity index 100% rename from geoattend/src/app/contextApi/AppContext.tsx rename to src/app/contextApi/AppContext.tsx diff --git a/geoattend/src/app/favicon.ico b/src/app/favicon.ico similarity index 100% rename from geoattend/src/app/favicon.ico rename to src/app/favicon.ico diff --git a/geoattend/src/app/globals.css b/src/app/globals.css similarity index 100% rename from geoattend/src/app/globals.css rename to src/app/globals.css diff --git a/geoattend/src/app/layout.tsx b/src/app/layout.tsx similarity index 100% rename from geoattend/src/app/layout.tsx rename to src/app/layout.tsx diff --git a/geoattend/src/app/loading.tsx b/src/app/loading.tsx similarity index 100% rename from geoattend/src/app/loading.tsx rename to src/app/loading.tsx diff --git a/src/app/maps/page.tsx b/src/app/maps/page.tsx new file mode 100644 index 0000000..75c392d --- /dev/null +++ b/src/app/maps/page.tsx @@ -0,0 +1,13 @@ +"use client"; +import React from 'react' +import { AppContext } from '../contextApi/AppContext'; + +const page = () => { + const { state } = React.useContext(AppContext); + + return ( +
page state : {state.theme}
+ ) +} + +export default page \ No newline at end of file diff --git a/geoattend/src/app/page.tsx b/src/app/page.tsx similarity index 100% rename from geoattend/src/app/page.tsx rename to src/app/page.tsx diff --git a/geoattend/src/app/types/types.ts b/src/app/types/types.ts similarity index 100% rename from geoattend/src/app/types/types.ts rename to src/app/types/types.ts diff --git a/geoattend/tailwind.config.ts b/tailwind.config.ts similarity index 100% rename from geoattend/tailwind.config.ts rename to tailwind.config.ts diff --git a/geoattend/tsconfig.json b/tsconfig.json similarity index 100% rename from geoattend/tsconfig.json rename to tsconfig.json diff --git a/geoattend/yarn.lock b/yarn.lock similarity index 100% rename from geoattend/yarn.lock rename to yarn.lock