Added baseurl

This commit is contained in:
z0ccc 2023-01-26 23:22:53 -05:00
parent 294f5d7252
commit 82e1f98e66
8 changed files with 21 additions and 19 deletions

View file

@ -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,

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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

View file

@ -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

View file

@ -1,5 +1,6 @@
{
"compilerOptions": {
"baseUrl": "./src",
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": false,

View file

@ -99,6 +99,7 @@ var options = {
],
},
resolve: {
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
alias: alias,
extensions: fileExtensions
.map((extension) => '.' + extension)