= ({ visible, snippetId, originUrl, onDismiss, targe
SharePopup.defaultProps = {
originUrl: window?.location?.origin
}
-
-export default SharePopup;
diff --git a/web/src/components/utils/ThemeableComponent.tsx b/web/src/components/utils/ThemeableComponent.tsx
index 56dd77b2..865cd667 100644
--- a/web/src/components/utils/ThemeableComponent.tsx
+++ b/web/src/components/utils/ThemeableComponent.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import {ITheme, ThemeContext} from '@fluentui/react';
-export default class ThemeableComponent extends React.Component
{
+export class ThemeableComponent
extends React.Component
{
static contextType = ThemeContext;
get theme() {
diff --git a/web/src/index.tsx b/web/src/index.tsx
index 166c2319..6377f9f9 100644
--- a/web/src/index.tsx
+++ b/web/src/index.tsx
@@ -1,10 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { initializeIcons } from '@fluentui/react/lib/Icons';
-import { registerGoLanguageProvider } from '~/components/editor/provider';
+import { registerGoLanguageProvider } from '~/components/features/editor/provider';
import apiClient from '~/services/api';
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
-import App from './App';
+import { App } from './App';
import './index.css';
// Polyfills
diff --git a/web/src/plugins/vim/VimStatusBarItem.tsx b/web/src/plugins/vim/VimStatusBarItem.tsx
index 715be1df..6ae37250 100644
--- a/web/src/plugins/vim/VimStatusBarItem.tsx
+++ b/web/src/plugins/vim/VimStatusBarItem.tsx
@@ -5,7 +5,7 @@ import { SiVim } from 'react-icons/si';
import { State } from '~/store';
import { Nullable } from '~/utils/types';
import { VimMode, VimState, VimSubMode } from '~/store/vim/state';
-import StatusBarItem from '~/components/core/StatusBar/StatusBarItem';
+import { StatusBarItem } from '~/components/layout/StatusBar/StatusBarItem';
import './VimStatusBarItem.css'
@@ -38,7 +38,7 @@ const getItemText = (state: Nullable): Nullable => {
}
}
-const VimStatusBarItem: React.FC = ({vimState}) => {
+const VimStatusBarItemBase: React.FC = ({vimState}) => {
if (!vimState) {
return null;
}
@@ -57,6 +57,6 @@ const VimStatusBarItem: React.FC = ({vimState}) => {
)
}
-export default connect(
+export const VimStatusBarItem = connect(
({vim}: State) => ({ vimState: vim})
-)(VimStatusBarItem);
+)(VimStatusBarItemBase);
diff --git a/web/src/services/gorepl/pkgcache/pkgindex.ts b/web/src/services/gorepl/pkgcache/pkgindex.ts
index 2899a91b..5cbf8936 100644
--- a/web/src/services/gorepl/pkgcache/pkgindex.ts
+++ b/web/src/services/gorepl/pkgcache/pkgindex.ts
@@ -1,5 +1,5 @@
import * as packagedb from "~/lib/gowasm/bindings/packagedb";
-import {PackageCacheDB} from "@services/gorepl/pkgcache/db";
+import {PackageCacheDB} from "~/services/gorepl/pkgcache/db";
export class PackageIndex implements packagedb.PackageIndex {
constructor(private db: PackageCacheDB) {}
diff --git a/web/src/store/dispatchers/snippets.ts b/web/src/store/dispatchers/snippets.ts
index 3ec87b44..f02efe12 100644
--- a/web/src/store/dispatchers/snippets.ts
+++ b/web/src/store/dispatchers/snippets.ts
@@ -2,7 +2,7 @@ import {saveAs} from 'file-saver';
import {replace} from "connected-react-router";
import client from "~/services/api";
-import {DEMO_CODE} from '~/components/editor/props';
+import {DEMO_CODE} from '~/components/features/editor/props';
import { StateProvider, DispatchFn } from "../helpers";
import { newAddNotificationAction, NotificationType } from "../notifications";
diff --git a/web/src/utils/theme.ts b/web/src/utils/theme.ts
index 1deda9f1..ff1da424 100644
--- a/web/src/utils/theme.ts
+++ b/web/src/utils/theme.ts
@@ -1,5 +1,5 @@
import {useState, useEffect} from "react";
-import {DarkTheme, LightTheme} from "@services/colors";
+import {DarkTheme, LightTheme} from "~/services/colors";
const query = '(prefers-color-scheme)';
diff --git a/web/tsconfig.paths.json b/web/tsconfig.paths.json
index d1d99d4f..f92bea53 100644
--- a/web/tsconfig.paths.json
+++ b/web/tsconfig.paths.json
@@ -2,15 +2,6 @@
"compilerOptions": {
"baseUrl": "./src",
"paths": {
- "@components/*": [
- "./components/*"
- ],
- "@services/*": [
- "./services/*"
- ],
- "@store/*": [
- "./store/*"
- ],
"~/*": [
"./*"
]
diff --git a/web/yarn.lock b/web/yarn.lock
index 31357bd0..ee7e2d02 100644
--- a/web/yarn.lock
+++ b/web/yarn.lock
@@ -2099,6 +2099,11 @@
"@types/qs" "*"
"@types/serve-static" "*"
+"@types/file-saver@^2.0.7":
+ version "2.0.7"
+ resolved "https://registry.yarnpkg.com/@types/file-saver/-/file-saver-2.0.7.tgz#8dbb2f24bdc7486c54aa854eb414940bbd056f7d"
+ integrity sha512-dNKVfHd/jk0SkR/exKGj2ggkB45MAkzvWCaqLUUgkyjITkGNzH8H+yUwr+BLJUBjZOe9w8X3wgmXhZDRg1ED6A==
+
"@types/graceful-fs@^4.1.2":
version "4.1.5"
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15"
@@ -2106,6 +2111,11 @@
dependencies:
"@types/node" "*"
+"@types/history@^4.7.11":
+ version "4.7.11"
+ resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.11.tgz#56588b17ae8f50c53983a524fc3cc47437969d64"
+ integrity sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==
+
"@types/hoist-non-react-statics@^3.3.0":
version "3.3.1"
resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#1124aafe5118cb591977aeb1ceaaed1070eb039f"
@@ -2225,6 +2235,23 @@
hoist-non-react-statics "^3.3.0"
redux "^4.0.0"
+"@types/react-router-dom@^5.3.3":
+ version "5.3.3"
+ resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.3.3.tgz#e9d6b4a66fcdbd651a5f106c2656a30088cc1e83"
+ integrity sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==
+ dependencies:
+ "@types/history" "^4.7.11"
+ "@types/react" "*"
+ "@types/react-router" "*"
+
+"@types/react-router@*":
+ version "5.1.20"
+ resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.20.tgz#88eccaa122a82405ef3efbcaaa5dcdd9f021387c"
+ integrity sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==
+ dependencies:
+ "@types/history" "^4.7.11"
+ "@types/react" "*"
+
"@types/react@*":
version "16.9.17"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.17.tgz#58f0cc0e9ec2425d1441dd7b623421a867aa253e"