From 7981184552c548faa0f69f906462855e870064c4 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 1 Jul 2025 15:22:30 +0200 Subject: [PATCH 01/39] bootstrap 5 --- .../src/components/DeployPanel/theme.tsx | 25 - apps/remix-ide/src/app/components/preload.tsx | 2 +- .../app/plugins/permission-handler-plugin.tsx | 2 +- apps/remix-ide/src/app/plugins/remixGuide.tsx | 4 +- .../templates-selection-plugin.tsx | 24 +- .../app/providers/custom-vm-fork-provider.tsx | 6 +- .../app/providers/external-http-provider.tsx | 2 +- .../src/app/providers/foundry-provider.tsx | 4 +- .../src/app/providers/ganache-provider.tsx | 4 +- .../src/app/providers/hardhat-provider.tsx | 2 +- .../assets/css/themes/remix-candy_ikhg4m.css | 9596 ----------------- .../assets/css/themes/remix-dark_tvx1s2.css | 8799 +-------------- .../assets/css/themes/remix-light_powaqg.css | 9567 +--------------- apps/remix-ide/src/blockchain/blockchain.tsx | 2 +- .../lib/remix-app/components/modals/enter.tsx | 12 +- .../checkbox/src/lib/remix-ui-checkbox.tsx | 14 +- .../debugger-ui/src/lib/debugger-ui.tsx | 12 +- .../src/lib/vm-debugger/assembly-items.tsx | 2 +- .../src/lib/vm-debugger/dropdown-panel.tsx | 8 +- .../src/lib/vm-debugger/vm-debugger-head.tsx | 4 +- .../src/lib/vm-debugger/vm-debugger.tsx | 4 +- .../editor/src/lib/remix-ui-editor.tsx | 6 +- .../file-decoration-tooltip.tsx | 2 +- .../git/src/components/branchHeader.tsx | 4 +- .../src/components/buttons/commitmessage.tsx | 12 +- .../buttons/sourcecontrolbuttons.tsx | 10 +- .../git/src/components/github/devicecode.tsx | 2 +- .../components/github/repositoryselect.tsx | 2 +- .../components/navigation/branchedetails.tsx | 14 +- .../src/components/navigation/branches.tsx | 2 +- .../git/src/components/navigation/clone.tsx | 2 +- .../src/components/navigation/commands.tsx | 2 +- .../git/src/components/navigation/commits.tsx | 4 +- .../git/src/components/navigation/github.tsx | 2 +- .../components/navigation/loaderindicator.tsx | 2 +- .../git/src/components/navigation/log.tsx | 16 +- .../navigation/menu/sourcecontrolmenu.tsx | 2 +- .../git/src/components/navigation/remotes.tsx | 2 +- .../components/navigation/remotesdetails.tsx | 2 +- .../src/components/navigation/settings.tsx | 2 +- .../components/navigation/sourcecontrol.tsx | 2 +- .../navigation/sourcecontrolgroup.tsx | 2 +- .../git/src/components/panels/branches.tsx | 8 +- .../branches/branchdifferencedetails.tsx | 4 +- .../panels/branches/localbranchdetails.tsx | 6 +- .../panels/branches/remotebranchedetails.tsx | 6 +- .../components/panels/commands/pushpull.tsx | 4 +- .../git/src/components/panels/commits.tsx | 2 +- .../panels/commits/commitdetails.tsx | 2 +- .../panels/commits/commitdetailsitem.tsx | 4 +- .../panels/commits/commitsummary.tsx | 6 +- .../components/panels/githubcredentials.tsx | 2 +- .../src/components/panels/remoteselect.tsx | 4 +- .../git/src/components/panels/setup.tsx | 4 +- .../sourcecontrol/sourcecontrolgroup.tsx | 2 +- .../sourcecontrol/sourcecontrolitem.tsx | 12 +- .../src/components/panels/tokenWarning.tsx | 2 +- .../src/lib/components/customCheckbox.tsx | 4 +- .../grid-view/src/lib/remix-ui-grid-cell.tsx | 10 +- .../grid-view/src/lib/remix-ui-grid-view.tsx | 6 +- .../src/lib/components/custom-dropdown.tsx | 4 +- .../helper/src/lib/components/feedback.tsx | 4 +- .../src/lib/components/feedbackAlert.tsx | 4 +- .../helper/src/lib/helper-components.tsx | 52 +- .../src/lib/components/homeTabFeatured.tsx | 160 + .../lib/components/homeTabFeaturedPlugins.tsx | 90 + .../src/lib/components/homeTabFile.tsx | 230 + .../lib/components/homeTabFileElectron.tsx | 6 +- .../src/lib/components/homeTabGetStarted.tsx | 197 + .../src/lib/components/homeTabLearn.tsx | 156 + .../src/lib/components/homeTabScamAlert.tsx | 16 +- .../src/lib/components/homeTabTitle.tsx | 65 + .../src/lib/components/homeTablangOptions.tsx | 56 + .../src/lib/components/pluginButton.tsx | 49 + .../src/lib/components/workspaceTemplate.tsx | 2 +- .../home-tab/src/lib/remix-ui-home-tab.tsx | 4 +- .../src/lib/remix-ui-locale-module.tsx | 4 +- .../src/lib/remix-ui-modal-dialog.tsx | 6 +- .../panel/src/lib/plugins/panel-header.tsx | 10 +- .../src/lib/permission-dialog.tsx | 2 +- .../src/lib/components/ActivePluginCard.tsx | 2 +- .../src/lib/components/InactivePluginCard.tsx | 2 +- .../src/lib/components/LocalPluginForm.tsx | 14 +- .../src/lib/components/moduleHeading.tsx | 4 +- .../lib/components/permissionsSettings.tsx | 6 +- .../src/lib/components/rootView.tsx | 2 +- .../src/lib/publish-to-storage.tsx | 2 +- .../src/components/chat.tsx | 17 +- .../src/components/contextOptMenu.tsx | 6 +- .../src/components/prompt.tsx | 22 +- .../remix-ui-remix-ai-assistant.tsx | 8 +- libs/remix-ui/renderer/src/lib/renderer.tsx | 6 +- .../run-tab/src/lib/components/account.tsx | 22 +- .../src/lib/components/contractDropdownUI.tsx | 22 +- .../src/lib/components/contractGUI.tsx | 22 +- .../src/lib/components/deployButton.tsx | 2 +- .../src/lib/components/environment.tsx | 12 +- .../run-tab/src/lib/components/gasLimit.tsx | 16 +- .../lib/components/instanceContainerUI.tsx | 4 +- .../run-tab/src/lib/components/mainnet.tsx | 34 +- .../run-tab/src/lib/components/network.tsx | 2 +- .../src/lib/components/recorderCardUI.tsx | 8 +- .../src/lib/components/universalDappUI.tsx | 6 +- .../run-tab/src/lib/components/value.tsx | 2 +- .../src/lib/components/config-section.tsx | 24 +- .../src/lib/custom-script-runner.tsx | 2 +- .../search/src/lib/components/Exclude.tsx | 2 +- .../search/src/lib/components/Include.tsx | 2 +- .../src/lib/components/OverWriteCheck.tsx | 6 +- .../search/src/lib/components/Search.tsx | 2 +- .../search/src/lib/components/StopSearch.tsx | 2 +- .../search/src/lib/components/Undo.tsx | 2 +- .../lib/components/results/ResultFileName.tsx | 4 +- .../src/lib/components/results/ResultItem.tsx | 2 +- .../src/lib/components/results/Results.tsx | 2 +- .../settings/src/lib/etherscan-settings.tsx | 6 +- .../settings/src/lib/github-settings.tsx | 6 +- .../settings/src/lib/remix-ui-settings.tsx | 44 +- .../settings/src/lib/sindri-settings.tsx | 6 +- .../src/lib/components/solidityCompile.tsx | 4 +- .../src/lib/compiler-container.tsx | 82 +- .../src/lib/components/compiler-dropdown.tsx | 10 +- .../src/lib/components/compiler-menu.tsx | 2 +- .../src/lib/contract-selection.tsx | 14 +- .../src/lib/components/UmlDownload.tsx | 10 +- .../src/lib/solidity-uml-gen.tsx | 10 +- .../src/lib/solidity-unit-testing.tsx | 42 +- .../src/lib/Button/StaticAnalyserButton.tsx | 4 +- .../static-analyser/src/lib/ErrorRenderer.tsx | 2 +- .../src/lib/remix-ui-static-analyser.tsx | 20 +- .../statusbar/src/lib/components/aiStatus.tsx | 2 +- .../src/lib/components/desktopStatus.tsx | 10 +- .../src/lib/components/didYouKnow.tsx | 4 +- .../src/lib/components/gitStatus.tsx | 6 +- .../src/lib/components/scamAlertStatus.tsx | 4 +- .../src/lib/components/scamDetails.tsx | 8 +- libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx | 138 +- .../remix-ui-terminal-menu-buttons.tsx | 2 +- .../lib/components/remix-ui-terminal-menu.tsx | 6 +- .../terminal/src/lib/remix-ui-terminal.tsx | 8 +- .../terminal/src/lib/terminalWelcome.tsx | 4 +- .../src/lib/remix-ui-theme-module.tsx | 4 +- .../tree-view/src/lib/remix-ui-tree-view.tsx | 2 +- .../src/lib/tree-view-item/tree-view-item.tsx | 4 +- .../src/lib/vertical-icons-context-menu.tsx | 2 +- .../src/lib/vyperCompile.tsx | 6 +- .../src/lib/components/createModal.tsx | 6 +- .../components/electron-workspace-name.tsx | 2 +- .../components/file-explorer-hovericons.tsx | 8 +- .../src/lib/components/file-explorer-menu.tsx | 2 +- .../src/lib/components/file-explorer.tsx | 4 +- .../lib/components/flat-tree-item-input.tsx | 2 +- .../src/lib/components/flat-tree.tsx | 2 +- .../workspace/src/lib/remix-ui-workspace.tsx | 36 +- .../remix-ui-terminal-menu-xterm.tsx | 2 +- .../lib/components/remix-ui-xterminals.tsx | 2 +- projects.json | 22 +- 157 files changed, 1718 insertions(+), 28529 deletions(-) delete mode 100644 apps/remix-ide/src/assets/css/themes/remix-candy_ikhg4m.css create mode 100644 libs/remix-ui/home-tab/src/lib/components/homeTabFeatured.tsx create mode 100644 libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx create mode 100644 libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx create mode 100644 libs/remix-ui/home-tab/src/lib/components/homeTabLearn.tsx create mode 100644 libs/remix-ui/home-tab/src/lib/components/homeTablangOptions.tsx create mode 100644 libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx diff --git a/apps/quick-dapp/src/components/DeployPanel/theme.tsx b/apps/quick-dapp/src/components/DeployPanel/theme.tsx index 5e96b547c90..dd78558911f 100644 --- a/apps/quick-dapp/src/components/DeployPanel/theme.tsx +++ b/apps/quick-dapp/src/components/DeployPanel/theme.tsx @@ -8,31 +8,6 @@ import React from 'react'; export const themeMap: Record = { Dark: { quality: 'dark', url: 'assets/css/themes/remix-dark_tvx1s2.css' }, Light: { quality: 'light', url: 'assets/css/themes/remix-light_powaqg.css' }, - Violet: { quality: 'light', url: 'assets/css/themes/remix-violet.css' }, - Unicorn: { quality: 'light', url: 'assets/css/themes/remix-unicorn.css' }, - Midcentury: { - quality: 'light', - url: 'assets/css/themes/remix-midcentury_hrzph3.css', - }, - Black: { quality: 'dark', url: 'assets/css/themes/remix-black_undtds.css' }, - Candy: { quality: 'light', url: 'assets/css/themes/remix-candy_ikhg4m.css' }, - HackerOwl: { quality: 'dark', url: 'assets/css/themes/remix-hacker_owl.css' }, - Cerulean: { - quality: 'light', - url: 'assets/css/themes/bootstrap-cerulean.min.css', - }, - Flatly: { - quality: 'light', - url: 'assets/css/themes/bootstrap-flatly.min.css', - }, - Spacelab: { - quality: 'light', - url: 'assets/css/themes/bootstrap-spacelab.min.css', - }, - Cyborg: { - quality: 'dark', - url: 'assets/css/themes/bootstrap-cyborg.min.css', - }, }; const CustomToggle = React.forwardRef( diff --git a/apps/remix-ide/src/app/components/preload.tsx b/apps/remix-ide/src/app/components/preload.tsx index 2a05a283e59..cb2101c9e4b 100644 --- a/apps/remix-ide/src/app/components/preload.tsx +++ b/apps/remix-ide/src/app/components/preload.tsx @@ -135,7 +135,7 @@ export const Preload = (props: any) => { ) : null} {error ? ( -
+
An unknown error has occurred while loading the application.

Doing a hard refresh might fix this issue:

diff --git a/apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx b/apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx index 6f242c1c9d8..6c8a890a8b6 100644 --- a/apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx +++ b/apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx @@ -99,7 +99,7 @@ export class PermissionHandlerPlugin extends Plugin { {}}>To change the permission go to Plugin Manager - / Permissions + / Permissions
this.call('notification', 'toast', warnEl) diff --git a/apps/remix-ide/src/app/plugins/remixGuide.tsx b/apps/remix-ide/src/app/plugins/remixGuide.tsx index ac3c8b7ae57..40de82e84e3 100644 --- a/apps/remix-ide/src/app/plugins/remixGuide.tsx +++ b/apps/remix-ide/src/app/plugins/remixGuide.tsx @@ -149,8 +149,8 @@ export class RemixGuidePlugin extends ViewPlugin { { state.showVideo &&
Ai alert -

Your request is being processed. Please wait while I generate the workspace for you. It won't be long.

+

Your request is being processed. Please wait while I generate the workspace for you. It won't be long.

, title: 'Generating Workspace' } @@ -310,7 +310,7 @@ export class TemplatesSelectionPlugin extends ViewPlugin { className="btn btn-sm mr-2 border border-primary" > {isElectron() ? - <>Create : 'Create'} + <>Create : 'Create'} } {item.templateType && item.templateType.forceCreateNewWorkspace ? <> : isElectron() ? @@ -326,7 +326,7 @@ export class TemplatesSelectionPlugin extends ViewPlugin { onClick={async () => addToCurrentElectronFolder(item, template.name)} className="btn btn-sm border" > - + Add here @@ -396,11 +396,11 @@ const createModalMessage = async ( onInput={(e) => onChangeTemplateName((e.target as any).value)} /> {templateGroup.hasOptions ? createOptionsModal(onChangeCheckBoxRefs, onChangeRadioRefs) : null} -
+
onChangeInitGit(e.target.value)} @@ -409,7 +409,7 @@ const createModalMessage = async (
{['mintable', 'burnable', 'pausable'].map((feature) => ( -
- -
{['transparent', 'uups'].map((type) => ( -
- -
- {Object.keys(Hardfork).map((value, index) => { return (