From 88f38df97d468114e51cc3af1801432579def6b3 Mon Sep 17 00:00:00 2001 From: SamMintah Date: Tue, 10 Oct 2023 17:23:28 +0000 Subject: [PATCH] Refactor: Changed file extensions to .jsx for JSX files --- .env.example | 12 ------------ components/{Answer.js => Answer.jsx} | 0 components/{Books.js => Books.jsx} | 0 components/{Footer.js => Footer.jsx} | 0 components/{Header.js => Header.jsx} | 0 components/{Question.js => Question.jsx} | 0 components/{QueueSection.js => QueueSection.jsx} | 0 components/{QueueTable.js => QueueTable.jsx} | 2 +- ...{ShowJobInformation.js => ShowJobInformation.jsx} | 0 components/{ShowQueue.js => ShowQueue.jsx} | 0 components/{UploadedItems.js => UploadedItems.jsx} | 0 hooks/{withSession.js => withSession.jsx} | 0 package.json | 2 +- pages/{_app.js => _app.jsx} | 0 pages/api/auth/[...nextauth].js | 5 +++-- pages/{index.js => index.jsx} | 0 pages/{queue.js => queue.jsx} | 0 pages/{stats.js => stats.jsx} | 0 18 files changed, 5 insertions(+), 16 deletions(-) delete mode 100644 .env.example rename components/{Answer.js => Answer.jsx} (100%) rename components/{Books.js => Books.jsx} (100%) rename components/{Footer.js => Footer.jsx} (100%) rename components/{Header.js => Header.jsx} (100%) rename components/{Question.js => Question.jsx} (100%) rename components/{QueueSection.js => QueueSection.jsx} (100%) rename components/{QueueTable.js => QueueTable.jsx} (98%) rename components/{ShowJobInformation.js => ShowJobInformation.jsx} (100%) rename components/{ShowQueue.js => ShowQueue.jsx} (100%) rename components/{UploadedItems.js => UploadedItems.jsx} (100%) rename hooks/{withSession.js => withSession.jsx} (100%) rename pages/{_app.js => _app.jsx} (100%) rename pages/{index.js => index.jsx} (100%) rename pages/{queue.js => queue.jsx} (100%) rename pages/{stats.js => stats.jsx} (100%) diff --git a/.env.example b/.env.example deleted file mode 100644 index fd92875..0000000 --- a/.env.example +++ /dev/null @@ -1,12 +0,0 @@ -email = -- your email -- -password = -- email password -- -NODE_ENV = dev -access_key = -- internet-archive-access-key -- -secret_key = -- internet-archive-secret-key -- -GB_KEY = -- google-books-key -- -redishost = -- redis-host -- -redisport = -- redis-port -- -service = -- email service provider -- -WIKIMEDIA_CLIENT_ID = -- oauth client id -- -WIKIMEDIA_CLIENT_SECRET = -- oauth client secret -- -NEXTAUTH_URL = -- nextauth base url -- \ No newline at end of file diff --git a/components/Answer.js b/components/Answer.jsx similarity index 100% rename from components/Answer.js rename to components/Answer.jsx diff --git a/components/Books.js b/components/Books.jsx similarity index 100% rename from components/Books.js rename to components/Books.jsx diff --git a/components/Footer.js b/components/Footer.jsx similarity index 100% rename from components/Footer.js rename to components/Footer.jsx diff --git a/components/Header.js b/components/Header.jsx similarity index 100% rename from components/Header.js rename to components/Header.jsx diff --git a/components/Question.js b/components/Question.jsx similarity index 100% rename from components/Question.js rename to components/Question.jsx diff --git a/components/QueueSection.js b/components/QueueSection.jsx similarity index 100% rename from components/QueueSection.js rename to components/QueueSection.jsx diff --git a/components/QueueTable.js b/components/QueueTable.jsx similarity index 98% rename from components/QueueTable.js rename to components/QueueTable.jsx index d1c3f7c..3815b92 100644 --- a/components/QueueTable.js +++ b/components/QueueTable.jsx @@ -11,7 +11,7 @@ import TablePagination from "@material-ui/core/TablePagination"; import TableRow from "@material-ui/core/TableRow"; import Backdrop from "@material-ui/core/Backdrop"; import { host } from "../utils/constants"; -import ShowJobInformation from "../components/ShowJobInformation"; +import ShowJobInformation from "./ShowJobInformation"; const ShowUploadQueue = (props) => { const useStyles = makeStyles((theme) => ({ diff --git a/components/ShowJobInformation.js b/components/ShowJobInformation.jsx similarity index 100% rename from components/ShowJobInformation.js rename to components/ShowJobInformation.jsx diff --git a/components/ShowQueue.js b/components/ShowQueue.jsx similarity index 100% rename from components/ShowQueue.js rename to components/ShowQueue.jsx diff --git a/components/UploadedItems.js b/components/UploadedItems.jsx similarity index 100% rename from components/UploadedItems.js rename to components/UploadedItems.jsx diff --git a/hooks/withSession.js b/hooks/withSession.jsx similarity index 100% rename from hooks/withSession.js rename to hooks/withSession.jsx diff --git a/package.json b/package.json index cb8f5ed..fe5c487 100644 --- a/package.json +++ b/package.json @@ -79,4 +79,4 @@ "lint-staged": "^10.0.9", "prettier": "2.0.2" } -} +} \ No newline at end of file diff --git a/pages/_app.js b/pages/_app.jsx similarity index 100% rename from pages/_app.js rename to pages/_app.jsx diff --git a/pages/api/auth/[...nextauth].js b/pages/api/auth/[...nextauth].js index ce47fd1..5be642e 100644 --- a/pages/api/auth/[...nextauth].js +++ b/pages/api/auth/[...nextauth].js @@ -7,8 +7,9 @@ export const authOptions = { providers: [ WikimediaProvider({ clientId: process.env.WIKIMEDIA_CLIENT_ID, - clientSecret: process.env.WIKIMEDIA_CLIENT_SECRET - }) + clientSecret: process.env.WIKIMEDIA_CLIENT_SECRET, + domain: "https://meta.wikimedia.beta.wmflabs.org/", + }), ], session: { jwt: true, diff --git a/pages/index.js b/pages/index.jsx similarity index 100% rename from pages/index.js rename to pages/index.jsx diff --git a/pages/queue.js b/pages/queue.jsx similarity index 100% rename from pages/queue.js rename to pages/queue.jsx diff --git a/pages/stats.js b/pages/stats.jsx similarity index 100% rename from pages/stats.js rename to pages/stats.jsx