From 294f5d72528726e0217433bfb3eb3dd3197fcd6b Mon Sep 17 00:00:00 2001 From: z0ccc Date: Mon, 16 Jan 2023 01:43:48 -0500 Subject: [PATCH] Remove capitals from folder names --- src/{Background => background}/index.ts | 0 src/{Popup => popup}/Popup.tsx | 8 ++++---- src/{Popup => popup}/TabItem.tsx | 0 src/{Popup/Components => popup/components}/CheckBox.tsx | 0 .../Components => popup/components}/DebouncedInput.tsx | 0 src/{Popup/Components => popup/components}/FooterLink.tsx | 0 src/{Popup/Components => popup/components}/Page.tsx | 0 src/{Popup/Components => popup/components}/Table.tsx | 0 src/{Popup/Components => popup/components}/TableRow.tsx | 0 src/{Popup => popup}/index.html | 0 src/{Popup => popup}/index.tsx | 0 .../LocationPage => popup/pages/locationPage}/index.tsx | 8 ++++---- .../pages/settingsPage}/InfoItem.tsx | 0 .../SettingsPage => popup/pages/settingsPage}/index.tsx | 2 +- .../UserAgentPage => popup/pages/userAgentPage}/index.tsx | 6 +++--- .../Pages/VpnPage => popup/pages/vpnPage}/VpnItem.tsx | 0 .../Pages/VpnPage => popup/pages/vpnPage}/index.tsx | 2 +- webpack.config.js | 6 +++--- 18 files changed, 16 insertions(+), 16 deletions(-) rename src/{Background => background}/index.ts (100%) rename src/{Popup => popup}/Popup.tsx (92%) rename src/{Popup => popup}/TabItem.tsx (100%) rename src/{Popup/Components => popup/components}/CheckBox.tsx (100%) rename src/{Popup/Components => popup/components}/DebouncedInput.tsx (100%) rename src/{Popup/Components => popup/components}/FooterLink.tsx (100%) rename src/{Popup/Components => popup/components}/Page.tsx (100%) rename src/{Popup/Components => popup/components}/Table.tsx (100%) rename src/{Popup/Components => popup/components}/TableRow.tsx (100%) rename src/{Popup => popup}/index.html (100%) rename src/{Popup => popup}/index.tsx (100%) rename src/{Popup/Pages/LocationPage => popup/pages/locationPage}/index.tsx (97%) rename src/{Popup/Pages/SettingsPage => popup/pages/settingsPage}/InfoItem.tsx (100%) rename src/{Popup/Pages/SettingsPage => popup/pages/settingsPage}/index.tsx (98%) rename src/{Popup/Pages/UserAgentPage => popup/pages/userAgentPage}/index.tsx (95%) rename src/{Popup/Pages/VpnPage => popup/pages/vpnPage}/VpnItem.tsx (100%) rename src/{Popup/Pages/VpnPage => popup/pages/vpnPage}/index.tsx (96%) diff --git a/src/Background/index.ts b/src/background/index.ts similarity index 100% rename from src/Background/index.ts rename to src/background/index.ts diff --git a/src/Popup/Popup.tsx b/src/popup/Popup.tsx similarity index 92% rename from src/Popup/Popup.tsx rename to src/popup/Popup.tsx index 83170f9..af343cb 100644 --- a/src/Popup/Popup.tsx +++ b/src/popup/Popup.tsx @@ -13,10 +13,10 @@ import { } from 'react-feather' import VpnIcon from '../assets/vpnIcon.svg' import TabItem from './TabItem' -import LocationPage from './Pages/LocationPage' -import UserAgentPage from './Pages/UserAgentPage' -import VpnPage from './Pages/VpnPage' -import SettingsPage from './Pages/SettingsPage' +import LocationPage from './pages/locationPage' +import UserAgentPage from './pages/userAgentPage' +import VpnPage from './pages/vpnPage' +import SettingsPage from './pages/settingsPage' import '../assets/global.css' const Popup = () => { diff --git a/src/Popup/TabItem.tsx b/src/popup/TabItem.tsx similarity index 100% rename from src/Popup/TabItem.tsx rename to src/popup/TabItem.tsx diff --git a/src/Popup/Components/CheckBox.tsx b/src/popup/components/CheckBox.tsx similarity index 100% rename from src/Popup/Components/CheckBox.tsx rename to src/popup/components/CheckBox.tsx diff --git a/src/Popup/Components/DebouncedInput.tsx b/src/popup/components/DebouncedInput.tsx similarity index 100% rename from src/Popup/Components/DebouncedInput.tsx rename to src/popup/components/DebouncedInput.tsx diff --git a/src/Popup/Components/FooterLink.tsx b/src/popup/components/FooterLink.tsx similarity index 100% rename from src/Popup/Components/FooterLink.tsx rename to src/popup/components/FooterLink.tsx diff --git a/src/Popup/Components/Page.tsx b/src/popup/components/Page.tsx similarity index 100% rename from src/Popup/Components/Page.tsx rename to src/popup/components/Page.tsx diff --git a/src/Popup/Components/Table.tsx b/src/popup/components/Table.tsx similarity index 100% rename from src/Popup/Components/Table.tsx rename to src/popup/components/Table.tsx diff --git a/src/Popup/Components/TableRow.tsx b/src/popup/components/TableRow.tsx similarity index 100% rename from src/Popup/Components/TableRow.tsx rename to src/popup/components/TableRow.tsx diff --git a/src/Popup/index.html b/src/popup/index.html similarity index 100% rename from src/Popup/index.html rename to src/popup/index.html diff --git a/src/Popup/index.tsx b/src/popup/index.tsx similarity index 100% rename from src/Popup/index.tsx rename to src/popup/index.tsx diff --git a/src/Popup/Pages/LocationPage/index.tsx b/src/popup/pages/locationPage/index.tsx similarity index 97% rename from src/Popup/Pages/LocationPage/index.tsx rename to src/popup/pages/locationPage/index.tsx index 1ba9c6e..2edc0da 100644 --- a/src/Popup/Pages/LocationPage/index.tsx +++ b/src/popup/pages/locationPage/index.tsx @@ -1,8 +1,8 @@ import { useState, useEffect, ChangeEvent, useCallback } from 'react' -import { Box, Button, Flex, Label, Select } from 'theme-ui' -import Page from '../../Components/Page' -import Checkbox from '../../Components/CheckBox' -import DebouncedInput from '../../Components/DebouncedInput' +import { Box, Flex, Label, Select } from 'theme-ui' +import Page from '../../components/Page' +import Checkbox from '../../components/CheckBox' +import DebouncedInput from '../../components/DebouncedInput' import detachDebugger from '../../../utils/detachDebugger' import countryLocales from '../../../utils/countryLocales' import configurations from '../../../utils/configurations' diff --git a/src/Popup/Pages/SettingsPage/InfoItem.tsx b/src/popup/pages/settingsPage/InfoItem.tsx similarity index 100% rename from src/Popup/Pages/SettingsPage/InfoItem.tsx rename to src/popup/pages/settingsPage/InfoItem.tsx diff --git a/src/Popup/Pages/SettingsPage/index.tsx b/src/popup/pages/settingsPage/index.tsx similarity index 98% rename from src/Popup/Pages/SettingsPage/index.tsx rename to src/popup/pages/settingsPage/index.tsx index 1235cee..c4b2988 100644 --- a/src/Popup/Pages/SettingsPage/index.tsx +++ b/src/popup/pages/settingsPage/index.tsx @@ -1,5 +1,5 @@ import { Link, Text } from 'theme-ui' -import Page from '../../Components/Page' +import Page from '../../components/Page' import InfoItem from './InfoItem' interface SettingsPageProps { diff --git a/src/Popup/Pages/UserAgentPage/index.tsx b/src/popup/pages/userAgentPage/index.tsx similarity index 95% rename from src/Popup/Pages/UserAgentPage/index.tsx rename to src/popup/pages/userAgentPage/index.tsx index 8c56f3a..579e01a 100644 --- a/src/Popup/Pages/UserAgentPage/index.tsx +++ b/src/popup/pages/userAgentPage/index.tsx @@ -1,10 +1,10 @@ import { useState, useEffect, ChangeEvent } from 'react' import { Box, Label, Select } from 'theme-ui' -import Checkbox from '../../Components/CheckBox' -import DebouncedInput from '../../Components/DebouncedInput' +import Checkbox from '../../components/CheckBox' +import DebouncedInput from '../../components/DebouncedInput' import userAgents from '../../../utils/userAgents' import detachDebugger from '../../../utils/detachDebugger' -import Page from '../../Components/Page' +import Page from '../../components/Page' interface UserAgentPageProps { tab: string diff --git a/src/Popup/Pages/VpnPage/VpnItem.tsx b/src/popup/pages/vpnPage/VpnItem.tsx similarity index 100% rename from src/Popup/Pages/VpnPage/VpnItem.tsx rename to src/popup/pages/vpnPage/VpnItem.tsx diff --git a/src/Popup/Pages/VpnPage/index.tsx b/src/popup/pages/vpnPage/index.tsx similarity index 96% rename from src/Popup/Pages/VpnPage/index.tsx rename to src/popup/pages/vpnPage/index.tsx index 85dfbb4..e7b251c 100644 --- a/src/Popup/Pages/VpnPage/index.tsx +++ b/src/popup/pages/vpnPage/index.tsx @@ -1,5 +1,5 @@ import { Box, Image } from 'theme-ui' -import Page from '../../Components/Page' +import Page from '../../components/Page' import VpnItem from './VpnItem' import nordLogo from '../../../assets/nord.svg' import protonLogo from '../../../assets/proton.svg' diff --git a/webpack.config.js b/webpack.config.js index 11d241e..ccc9b1c 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -36,8 +36,8 @@ if (fileSystem.existsSync(secretsPath)) { var options = { mode: process.env.NODE_ENV || 'development', entry: { - popup: path.join(__dirname, 'src', 'Popup', 'index.tsx'), - background: path.join(__dirname, 'src', 'Background', 'index.ts'), + popup: path.join(__dirname, 'src', 'popup', 'index.tsx'), + background: path.join(__dirname, 'src', 'background', 'index.ts'), }, chromeExtensionBoilerplate: { notHotReload: ['background'], @@ -165,7 +165,7 @@ var options = { ], }), new HtmlWebpackPlugin({ - template: path.join(__dirname, 'src', 'Popup', 'index.html'), + template: path.join(__dirname, 'src', 'popup', 'index.html'), filename: 'popup.html', chunks: ['popup'], cache: false,