Skip to content

Commit

Permalink
Added baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
z0ccc committed Jan 27, 2023
1 parent 294f5d7 commit 82e1f98
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/popup/Popup.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react'
import { ThemeProvider, Flex, Box } from 'theme-ui'
import { theme } from '../theme'
import { theme } from 'theme'
import {
Wifi,
MessageSquare,
Expand Down
2 changes: 1 addition & 1 deletion src/popup/components/DebouncedInput.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Dispatch, SetStateAction, ChangeEvent, useMemo } from 'react'
import { Label, Input, Box } from 'theme-ui'
import detachDebugger from '../../utils/detachDebugger'
import detachDebugger from 'utils/detachDebugger'
import debounce from 'lodash.debounce'

interface DebouncedInputProps {
Expand Down
16 changes: 8 additions & 8 deletions src/popup/pages/locationPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { useState, useEffect, ChangeEvent, useCallback } from 'react'
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'
import { ipData } from '../../../types'
import getIp from '../../../utils/getIp'
import Page from 'popup/components/Page'
import Checkbox from 'popup/components/CheckBox'
import DebouncedInput from 'popup/components/DebouncedInput'
import detachDebugger from 'utils/detachDebugger'
import countryLocales from 'utils/countryLocales'
import configurations from 'utils/configurations'
import getIp from 'utils/getIp'
import { ipData } from 'types'
import { RotateCw } from 'react-feather'

interface LocationPageProps {
Expand Down
2 changes: 1 addition & 1 deletion src/popup/pages/settingsPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link, Text } from 'theme-ui'
import Page from '../../components/Page'
import Page from 'popup/components/Page'
import InfoItem from './InfoItem'

interface SettingsPageProps {
Expand Down
10 changes: 5 additions & 5 deletions src/popup/pages/userAgentPage/index.tsx
Original file line number Diff line number Diff line change
@@ -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 userAgents from '../../../utils/userAgents'
import detachDebugger from '../../../utils/detachDebugger'
import Page from '../../components/Page'
import Checkbox from 'popup/components/CheckBox'
import DebouncedInput from 'popup/components/DebouncedInput'
import userAgents from 'utils/userAgents'
import detachDebugger from 'utils/detachDebugger'
import Page from 'popup/components/Page'

interface UserAgentPageProps {
tab: string
Expand Down
6 changes: 3 additions & 3 deletions src/popup/pages/vpnPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Box, Image } from 'theme-ui'
import Page from '../../components/Page'
import Page from 'popup/components/Page'
import VpnItem from './VpnItem'
import nordLogo from '../../../assets/nord.svg'
import protonLogo from '../../../assets/proton.svg'
import nordLogo from 'assets/nord.svg'
import protonLogo from 'assets/proton.svg'

interface VpnPageProps {
tab: string
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"baseUrl": "./src",
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": false,
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ var options = {
],
},
resolve: {
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
alias: alias,
extensions: fileExtensions
.map((extension) => '.' + extension)
Expand Down

0 comments on commit 82e1f98

Please sign in to comment.