Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web render update - #1116 #1162

Merged
merged 106 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
8eb7793
update libs
proddy Apr 11, 2023
6bd744f
refactor dialog to prevent multiple parent renders
proddy Apr 18, 2023
04dd9ee
Polish translation update #1156
proddy Apr 22, 2023
f80764d
refactor diallogs
proddy Apr 22, 2023
84635ac
autoformat
proddy Apr 22, 2023
e81b1b9
rename entities_saved to updated
proddy Apr 22, 2023
fa26391
updated packages
proddy Apr 22, 2023
e12083e
added more eslint rules
proddy Apr 22, 2023
56e95d1
updated for custom entities
proddy Apr 22, 2023
6f14fcb
id no longer needed
proddy Apr 22, 2023
d8ff088
formatting
proddy Apr 22, 2023
19e8e4a
initial lint cleanup
proddy Apr 22, 2023
209afc8
fix lint warnings
proddy Apr 22, 2023
c2823a5
add SHOWING and SEARCH
proddy Apr 22, 2023
cecbb25
device_id and type_id sent as numbers
proddy Apr 22, 2023
b035e27
device entity min/max sent as numbers
proddy Apr 22, 2023
445618d
add min/max for entity customization
proddy Apr 22, 2023
f53921d
device entity min/max as numbers
proddy Apr 22, 2023
4b9bddd
add comment
proddy Apr 22, 2023
e1ffd88
optimize Settings Customization for rendering
proddy Apr 22, 2023
728e157
bump version
proddy Apr 22, 2023
71d086a
device_id and type_id as numbers
proddy Apr 22, 2023
74c88ca
add empty entity test
proddy Apr 22, 2023
466e9ec
rename endpoint to entities to be consistent
proddy Apr 22, 2023
c3e5e8d
Merge branch 'dev' into dev
proddy Apr 22, 2023
047eae2
package update
proddy Apr 23, 2023
300fe72
tidy up files
proddy Apr 23, 2023
71e7887
replace MUI Slider, saves 5KB
proddy Apr 23, 2023
9553161
remove force from check_active()
proddy Apr 24, 2023
0054851
updates to https://github.com/emsesp/EMS-ESP32/pull/1162
proddy Apr 24, 2023
bcd0c5a
only show Update when changes made - https://github.com/emsesp/EMS-ES…
proddy Apr 24, 2023
0c0ef80
rename 'Tx issues - check Tx Mode'
proddy Apr 24, 2023
f2636d4
updated packages
proddy Apr 24, 2023
41b2a67
remove hidden spaces
proddy Apr 24, 2023
67de1c6
add one more line to box so it fits 'patch'
proddy Apr 24, 2023
f1b3cb9
added test for bus disconnect
proddy Apr 24, 2023
7d52619
don't show uptime if disconnected
proddy Apr 24, 2023
b59c76d
replace void with await
proddy Apr 24, 2023
b9402d3
remove unused libs
proddy Apr 24, 2023
cfe8c41
Optimize WebUI rendering when using Dialog Boxes #1116
proddy Apr 28, 2023
1362976
disable changing gpio
proddy Apr 28, 2023
b823366
fixed changing log settings - https://github.com/emsesp/EMS-ESP32/pul…
proddy Apr 28, 2023
28252b9
added missing analog_enabled
proddy Apr 28, 2023
dd25900
make icon bigger
proddy Apr 28, 2023
321558c
minor optimizations
proddy Apr 28, 2023
1861365
removed SAVE
proddy Apr 28, 2023
ab24695
use blocker from main lib
proddy Apr 29, 2023
26b0c67
update packages, but not router as it breaks
proddy Apr 29, 2023
ff058b0
changed comment
proddy Apr 29, 2023
d06dc3e
fic dialog deviceentities
proddy Apr 29, 2023
90a7195
remove comment
proddy Apr 29, 2023
2254bf9
fix eslint warnings
proddy Apr 29, 2023
63d1054
comment change
proddy Apr 29, 2023
6f681aa
remove useWindowSize
proddy Apr 29, 2023
5fe9049
but device data in scrollable body
proddy Apr 29, 2023
a256d25
remove unused lib
proddy Apr 30, 2023
ceb63fa
rename lint
proddy Apr 30, 2023
8a02f2a
add check for min/max when sending device values
proddy Apr 30, 2023
d618d09
min, max and step are sent as Numbers to the webUI
proddy Apr 30, 2023
2d96273
ignore internationl number settings when changing value
proddy Apr 30, 2023
3ef3f56
text changes
proddy Apr 30, 2023
cc10c49
version release text changes
proddy Apr 30, 2023
0d9cd64
rename upload finished to successful
proddy Apr 30, 2023
dc4bd64
fixes PlatformIO 6.2.0 breaks compilation #1166 (thanks Michael)
proddy Apr 30, 2023
6e3b36c
update for 3.6.0-dev-11
proddy Apr 30, 2023
bf5c111
reduce margins so data fills plane
proddy Apr 30, 2023
c34208c
fix logo on mobile devices
proddy Apr 30, 2023
8a01a1e
merge changes from Michael for #600
proddy Apr 30, 2023
148e35e
improve device value helper text
proddy May 1, 2023
ff5247e
update eslint
proddy May 1, 2023
b027ce0
remember old settings
proddy May 1, 2023
72f530b
export setOrigData needed for systemlog
proddy May 1, 2023
8aa7cd1
experiment showing only 1 device
proddy May 1, 2023
5b87e74
update comment
proddy May 3, 2023
310bb53
package update
proddy May 3, 2023
e84a3bc
improve dv validation, add back ugly step
proddy May 3, 2023
9795032
package update
proddy May 5, 2023
ca964c1
fix row unselect
proddy May 5, 2023
b5b890b
package update
proddy May 6, 2023
fcac70a
update test data - Need fresh test data #1168
proddy May 6, 2023
09ea35e
add comment
proddy May 6, 2023
348ffcd
remove obsolete import
proddy May 7, 2023
3c00365
move device types to types.ts
proddy May 7, 2023
7910893
rename reset
proddy May 7, 2023
5767d83
add notes about fonts
proddy May 7, 2023
a5fae64
fix typo
proddy May 7, 2023
c8fd8c4
replace msgpack with msgpackr - https://github.com/emsesp/EMS-ESP32/i…
proddy May 7, 2023
db9b999
make menu pane less wide
proddy May 7, 2023
d939795
fix pio for 6.1.7
proddy May 8, 2023
ea71b43
package update
proddy May 8, 2023
b1b15ee
package update
proddy May 10, 2023
b255b65
experiment with a pop up device data table
proddy May 10, 2023
6575e1d
escape key closes data window
proddy May 10, 2023
4f8d3d2
updates to data view
proddy May 11, 2023
3ecaeff
improve mobile layout
proddy May 11, 2023
0e0ec7a
improve layout
proddy May 11, 2023
ff59276
table formatting
proddy May 11, 2023
d1df21c
add refresh to device data
proddy May 12, 2023
c57a5c0
pacakge update
proddy May 12, 2023
ae9a86e
remove comments
proddy May 13, 2023
26f5c9d
improvements to #1169
proddy May 13, 2023
c224abf
layout improvements
proddy May 13, 2023
fabaa23
shorten greenstar
proddy May 14, 2023
b74e569
package update
proddy May 14, 2023
c9a968c
package update
proddy May 23, 2023
2571f5e
package update
proddy May 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,30 @@
"**/.yarn": true,
"**/.pnp.*": true
},
"editor.codeActionsOnSave": {
"source.fixAll": true
// "source.organizeImports": true
},
"eslint.nodePath": "interface/.yarn/sdks",
"eslint.workingDirectories": ["interface"],
"prettier.prettierPath": "interface/.yarn/sdks/prettier/index.js",
"typescript.tsdk": "interface/.yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
"typescript.enablePromptUseWorkspaceTsdk": true,
"files.associations": {
"*.tsx": "typescriptreact",
"*.tcc": "cpp",
"optional": "cpp",
"istream": "cpp",
"ostream": "cpp",
"ratio": "cpp",
"system_error": "cpp",
"array": "cpp",
"functional": "cpp",
"regex": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"string": "cpp",
"string_view": "cpp"
}
}
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added pool data to telegrams 0x494 & 0x495 [#102](https://github.com/emsesp/EMS-ESP32/issues/102)
- Add RC300 second summermode telegram [#108](https://github.com/emsesp/EMS-ESP32/issues/108)
- Add support for the RC25 thermostat [#106](https://github.com/emsesp/EMS-ESP32/issues/106)
- Add new command 'entities' for a device, e.g. http://ems-esp/api/boiler/entities to show the shortname, description and HA Entity name (if HA enabled) [#116](https://github.com/emsesp/EMS-ESP32/issues/116)
- Add new command 'entities' for a device, e.g. <http://ems-esp/api/boiler/entities> to show the shortname, description and HA Entity name (if HA enabled) [#116](https://github.com/emsesp/EMS-ESP32/issues/116)
- Support for Junkers program and remote (fb10/fb110) temperature
- Home Assistant `state_class` attribute for Wh, kWh, W and KW [#129](https://github.com/emsesp/EMS-ESP32/issues/129)
- Add current room influence for RC300 [#136](https://github.com/emsesp/EMS-ESP32/issues/136)
Expand Down Expand Up @@ -434,4 +434,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- some names of mqtt-tags like in v2.2.1
- new ESP32 partition side to allow for smoother OTA and fallback
- Network Gateway IP is optional (#682)emsesp/EMS-ESP
- moved to a new GitHub repo https://github.com/emsesp/EMS-ESP32
- moved to a new GitHub repo <https://github.com/emsesp/EMS-ESP32>
7 changes: 7 additions & 0 deletions CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

## **IMPORTANT! BREAKING CHANGES**

There are breaking changes in 3.6.0. Please read carefully before applying the update.

- The sensors have been renamed. `dallassensor` is now `temperaturesensor` in MQTT and `ts` in the Customizations file. Also `analogs` is now `analogsensor` in MQTT and `as` in the Customizations file. If you have customizations, make backup first using the Download option and rename the JSON arrays to `as` and `ts` respectively. Also removed any MQTT topics that start with `dallassensor` using something like MQTTExplorer.
- The format of the Custom Entities has changed, so you will need to manually re-create them.

## Added

- Workaround for better Domoticz MQTT intergration? [#904](https://github.com/emsesp/EMS-ESP32/issues/904)
Expand All @@ -29,3 +34,5 @@
- Improved HA Discovery so previous configs no longer need to be removed when starting [#1077](https://github.com/emsesp/EMS-ESP32/pull/1077) (thanks @pswid!)
- Enlarge UART-Stack to 2,5k
- Retry timeout for Mqtt-QOS1/2 10seconds
- Optimize WebUI rendering when using Dialog Boxes [#1116](https://github.com/emsesp/EMS-ESP32/issues/1116)
- Optimize Web libraries to reduce bundle size (3.6.x) [#1112](https://github.com/emsesp/EMS-ESP32/issues/1112)
7 changes: 5 additions & 2 deletions interface/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
node_modules/
build/
dist/
.yarn/

.prettierrc
.eslintrc*
.yarn/
env.d.ts
progmem-generator.js
vite.config.ts
unpack.ts
vite.config.ts
package.json
41 changes: 39 additions & 2 deletions interface/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"tsconfigRootDir": ".",
"project": ["tsconfig.json"]
},
"plugins": ["react", "@typescript-eslint"],
"plugins": ["react", "@typescript-eslint", "autofix", "react-hooks"],
"settings": {
"import/resolver": {
"typescript": {
Expand All @@ -36,7 +36,6 @@
}
},
"rules": {
"react-hooks/exhaustive-deps": "off",
"object-shorthand": "error",
"no-console": "warn",
"@typescript-eslint/consistent-type-definitions": ["off", "type"],
Expand All @@ -51,6 +50,44 @@
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-implied-eval": "off",
"@typescript-eslint/no-misused-promises": "off",
"arrow-body-style": ["error", "as-needed"],
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"import/order": [
"warn",
{
"groups": ["builtin", "external", "parent", "sibling", "index", "object", "type"],
"pathGroups": [
{
"pattern": "@/**/**",
"group": "parent",
"position": "before"
}
],
"alphabetize": { "order": "asc" }
}
],
// "autofix/no-unused-vars": [
// "error",
// {
// "argsIgnorePattern": "^_",
// "ignoreRestSiblings": true,
// "destructuredArrayIgnorePattern": "^_"
// }
// ],
"react/self-closing-comp": [
"error",
{
"component": true,
"html": true
}
],
"@typescript-eslint/ban-types": [
"error",
{
Expand Down
50 changes: 22 additions & 28 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,63 +16,57 @@
"standalone": "npm-run-all -p dev typesafe-i18n mock-api",
"typesafe-i18n": "typesafe-i18n",
"format": "prettier --write '**/*.{ts,tsx,js,css,json,md}'",
"lint": "eslint . --cache --max-warnings=0"
"lint": "eslint . --cache --fix"
},
"dependencies": {
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@msgpack/msgpack": "^3.0.0-beta2",
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.11.16",
"@mui/material": "^5.11.16",
"@remix-run/router": "^1.5.0",
"@table-library/react-table-library": "4.1.0",
"@mui/material": "^5.13.2",
"@table-library/react-table-library": "4.1.4",
"@types/lodash-es": "^4.17.7",
"@types/node": "^18.15.11",
"@types/react": "^18.0.33",
"@types/react-dom": "^18.0.11",
"@types/node": "^20.2.3",
"@types/react": "^18.2.7",
"@types/react-dom": "^18.2.4",
"@types/react-router-dom": "^5.3.3",
"@yarnpkg/pnpify": "^4.0.0-rc.42",
"async-validator": "^4.2.5",
"axios": "^1.3.5",
"axios": "^1.4.0",
"history": "^5.3.0",
"jwt-decode": "^3.1.2",
"lodash-es": "^4.17.21",
"mime-types": "^2.1.35",
"react": "latest",
"react-dom": "latest",
"react-dropzone": "^14.2.3",
"react-icons": "^4.8.0",
"react-router-dom": "^6.10.0",
"react-toastify": "^9.1.2",
"react-router-dom": "^6.11.2",
"react-toastify": "^9.1.3",
"sockette": "^2.0.6",
"typesafe-i18n": "^5.24.3",
"typescript": "^5.0.3"
"typescript": "^5.0.4"
},
"devDependencies": {
"@types/mime-types": "^2",
"@types/styled-components": "^5",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@vitejs/plugin-react-swc": "^3.2.0",
"eslint": "^8.37.0",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"@vitejs/plugin-react-swc": "^3.3.1",
"eslint": "^8.41.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-autofix": "^1.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"nodemon": "^2.0.22",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"rollup-plugin-visualizer": "^5.9.0",
"terser": "^5.16.8",
"vite": "^4.2.1",
"vite-plugin-minify": "^1.5.2",
"vite-plugin-svgr": "^2.4.0",
"vite-tsconfig-paths": "^4.0.8"
"terser": "^5.17.6",
"vite": "^4.3.8",
"vite-plugin-svgr": "^3.2.0",
"vite-tsconfig-paths": "^4.2.0"
},
"packageManager": "[email protected]"
}
15 changes: 6 additions & 9 deletions interface/progmem-generator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { resolve, relative, sep } = require('path');
const { readdirSync, existsSync, unlinkSync, readFileSync, createWriteStream } = require('fs');
const { resolve, relative, sep } = require('path');
var zlib = require('zlib');
var mime = require('mime-types');

Expand All @@ -18,9 +18,9 @@ function getFilesSync(dir, files = []) {
return files;
}

function coherseToBuffer(input) {
return Buffer.isBuffer(input) ? input : Buffer.from(input);
}
// function coherseToBuffer(input) {
// return Buffer.isBuffer(input) ? input : Buffer.from(input);
// }

function cleanAndOpen(path) {
if (existsSync(path)) {
Expand Down Expand Up @@ -87,9 +87,8 @@ export default function ProgmemGenerator({ outputPath = './WWWData.h', bytesPerL
// });
};

const generateWWWClass = () => {
// eslint-disable-next-line max-len
return `typedef std::function<void(const String& uri, const String& contentType, const uint8_t * content, size_t len)> RouteRegistrationHandler;
const generateWWWClass = () =>
`typedef std::function<void(const String& uri, const String& contentType, const uint8_t * content, size_t len)> RouteRegistrationHandler;

class WWWData {
${indent}public:
Expand All @@ -100,8 +99,6 @@ ${fileInfo
${indent.repeat(2)}}
};
`;
};

const writeWWWClass = () => {
writeStream.write(generateWWWClass());
};
Expand Down
13 changes: 6 additions & 7 deletions interface/public/css/roboto.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
/*
* Just supporting latin due to size constrains on the esp chip
*
* The framework only makes use of 400 (regular) weight fonts.
*
* If using medium (500), light or strong typography variants you will need to add additional fonts.
/*
* Uses font-size 400 (normal) only and Latin (plus extra unicode chars) to keep flash memory to a minimun
* View fonts on https://fonts.google.com/
* Download woff2 using e.g. https://fonts.googleapis.com/css2?family=Lato or https://fonts.googleapis.com/css2?family=Roboto
*/
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(../fonts/re.woff2) format('woff2');
/* src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2'); */
src: local('Roboto'), local('Roboto-Regular'), url(../fonts/re.off2) format('woff2');
unicode-range: U+0000-00FF, U+0104-0107, U+0118-0119, U+011E-011F, U+0130-0131, U+0141-0144, U+0152-0153, U+015A-015B,
U+015E-015F, U+0179-017C, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
U+2212, U+2215, U+FEFF, U+FFFD;
Expand Down
Binary file modified interface/public/fonts/re.woff2
Binary file not shown.
11 changes: 6 additions & 5 deletions interface/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { FC, useEffect, useState } from 'react';

import { useEffect, useState } from 'react';
import { ToastContainer, Slide } from 'react-toastify';

import 'react-toastify/dist/ReactToastify.min.css';

import CustomTheme from 'CustomTheme';
import { localStorageDetector } from 'typesafe-i18n/detectors';
import type { FC } from 'react';
import AppRouting from 'AppRouting';
import CustomTheme from 'CustomTheme';

import { localStorageDetector } from 'typesafe-i18n/detectors';
import TypesafeI18n from 'i18n/i18n-react';
import { detectLocale } from 'i18n/i18n-util';
import { loadLocaleAsync } from 'i18n/i18n-util.async';
Expand All @@ -17,7 +18,7 @@ const App: FC = () => {
const [wasLoaded, setWasLoaded] = useState(false);

useEffect(() => {
loadLocaleAsync(detectedLocale).then(() => setWasLoaded(true));
void loadLocaleAsync(detectedLocale).then(() => setWasLoaded(true));
}, []);

if (!wasLoaded) return null;
Expand Down
12 changes: 6 additions & 6 deletions interface/src/AppRouting.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { FC, useContext, useEffect } from 'react';
import { useContext, useEffect } from 'react';

import { Route, Routes, Navigate, useLocation } from 'react-router-dom';

import { toast } from 'react-toastify';
import type { FC } from 'react';

import { useI18nContext } from 'i18n/i18n-react';

import { Authentication, AuthenticationContext } from 'contexts/authentication';
import AuthenticatedRouting from 'AuthenticatedRouting';
import SignIn from 'SignIn';
import { RequireAuthenticated, RequireUnauthenticated } from 'components';

import SignIn from 'SignIn';
import AuthenticatedRouting from 'AuthenticatedRouting';
import { Authentication, AuthenticationContext } from 'contexts/authentication';
import { useI18nContext } from 'i18n/i18n-react';

interface SecurityRedirectProps {
message: string;
Expand Down
18 changes: 9 additions & 9 deletions interface/src/AuthenticatedRouting.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { FC, useCallback, useEffect } from 'react';
import { useCallback, useEffect } from 'react';
import { Navigate, Routes, Route, useNavigate, useLocation } from 'react-router-dom';
import { AxiosError } from 'axios';
import Dashboard from './project/Dashboard';
import Help from './project/Help';
import Settings from './project/Settings';
import type { AxiosError } from 'axios';
import type { FC } from 'react';

import * as AuthenticationApi from 'api/authentication';
import { AXIOS } from 'api/endpoints';
import { Layout, RequireAdmin } from 'components';

import Dashboard from './project/Dashboard';
import Settings from './project/Settings';
import Help from './project/Help';

import NetworkConnection from 'framework/network/NetworkConnection';
import AccessPoint from 'framework/ap/AccessPoint';
import NetworkTime from 'framework/ntp/NetworkTime';
import Mqtt from 'framework/mqtt/Mqtt';
import System from 'framework/system/System';
import NetworkConnection from 'framework/network/NetworkConnection';
import NetworkTime from 'framework/ntp/NetworkTime';
import Security from 'framework/security/Security';
import System from 'framework/system/System';

const AuthenticatedRouting: FC = () => {
const location = useLocation();
Expand Down
7 changes: 3 additions & 4 deletions interface/src/CustomTheme.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { FC } from 'react';

import { CssBaseline } from '@mui/material';
import { createTheme, responsiveFontSizes, ThemeProvider } from '@mui/material/styles';
import { blueGrey, blue } from '@mui/material/colors';
import { createTheme, responsiveFontSizes, ThemeProvider } from '@mui/material/styles';
import type { FC } from 'react';

import { RequiredChildrenProps } from 'utils';
import type { RequiredChildrenProps } from 'utils';

const theme = responsiveFontSizes(
createTheme({
Expand Down
Loading