React code splitting (#2603)

* Code split using react lazy
* Split locales
* Move to lodash-es
* Import individual icons
This commit is contained in:
WithoutPants
2022-06-22 14:41:31 +10:00
committed by GitHub
parent 33b68b4464
commit 3b4b20e9b2
147 changed files with 969 additions and 610 deletions

View File

@@ -8,6 +8,7 @@ import { TextUtils } from "src/utils";
import { CollapseButton, Icon, LoadingIndicator } from "src/components/Shared";
import { SettingSection } from "./SettingSection";
import { Setting, SettingGroup } from "./Inputs";
import { faLink, faSyncAlt } from "@fortawesome/free-solid-svg-icons";
export const SettingsPluginsPanel: React.FC = () => {
const Toast = useToast();
@@ -30,7 +31,7 @@ export const SettingsPluginsPanel: React.FC = () => {
target="_blank"
rel="noopener noreferrer"
>
<Icon icon="link" />
<Icon icon={faLink} />
</a>
</Button>
);
@@ -105,7 +106,7 @@ export const SettingsPluginsPanel: React.FC = () => {
<Setting headingID="actions.reload_plugins">
<Button onClick={() => onReloadPlugins()}>
<span className="fa-icon">
<Icon icon="sync-alt" />
<Icon icon={faSyncAlt} />
</span>
<span>
<FormattedMessage id="actions.reload_plugins" />