Skip to content

Commit

Permalink
chore: update rest of deps expect ts and electron-store. fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jgresham committed Sep 13, 2024
1 parent aaa800c commit 6ed5bbc
Show file tree
Hide file tree
Showing 20 changed files with 1,939 additions and 514 deletions.
2,356 changes: 1,884 additions & 472 deletions package-lock.json

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"make": "electron-forge make",
"publish": "electron-forge publish",
"lint": "biome lint ./src",
"safeFix": "biome check --write ./src",
"unsafeFix": "biome check --write-unsafe ./src",
"safeFix": "biome check --fix ./src",
"unsafeFix": "biome check --fix --unsafe ./src",
"test": "npm run testFrontend && npm run testBackend",
"testFrontend": "vitest run --config vite.renderer.config.ts --dir src/__tests__/react",
"testBackend": "vitest run --config vite.main.config.ts --dir src/__tests__/node",
Expand All @@ -27,7 +27,7 @@
"docs:nodeSpec": "typedoc --plugin typedoc-plugin-markdown --name \"Node Spec examples\" --readme src/common/index.md --entryDocument index.md --out docs src/common/*"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@biomejs/biome": "^1.9.0",
"@electron-forge/cli": "^7.4.0",
"@electron-forge/maker-deb": "^7.4.0",
"@electron-forge/maker-dmg": "^7.4.0",
Expand All @@ -49,17 +49,17 @@
"@storybook/react-vite": "^8.3.0",
"@storybook/test": "^8.3.0",
"@storybook/theming": "^8.0.8",
"@testing-library/react": "^14.0.0",
"@testing-library/react": "^16.0.1",
"@testing-library/webdriverio": "^3.2.1",
"@types/du": "^1.0.3",
"@types/mixpanel-browser": "^2.47.3",
"@types/node": "20.12.7",
"@types/mixpanel-browser": "^2.50.0",
"@types/node": "^22.5.4",
"@types/pidusage": "^2.0.5",
"@types/react": "^18.2.74",
"@types/react-dom": "^18.2.24",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@types/throttle-debounce": "^5.0.0",
"@types/uuid": "^9.0.3",
"@vanilla-extract/vite-plugin": "^4.0.9",
"@types/uuid": "^10.0.0",
"@vanilla-extract/vite-plugin": "^4.0.15",
"@wdio/cli": "^9.0.9",
"@wdio/local-runner": "^9.0.9",
"@wdio/mocha-framework": "^9.0.8",
Expand All @@ -69,12 +69,12 @@
"electron-devtools-installer": "^3.2.0",
"electron-extension-installer": "^1.2.0",
"electron-mock-ipc": "^0.3.12",
"happy-dom": "^14.7.1",
"husky": "^9.0.11",
"happy-dom": "^15.7.4",
"husky": "^9.1.6",
"storybook": "^8.3.0",
"ts-node": "^10.9.2",
"typedoc": "^0.25.13",
"typedoc-plugin-markdown": "^3.17.1",
"typedoc": "^0.26.7",
"typedoc-plugin-markdown": "^4.2.7",
"typescript": "^4.5.4",
"vite": "^5.4.5",
"vite-plugin-svgr": "^4.2.0",
Expand All @@ -83,13 +83,13 @@
"wdio-wait-for": "^3.0.11"
},
"dependencies": {
"@reduxjs/toolkit": "^2.2.3",
"@sentry/electron": "^4.10.0",
"@vanilla-extract/css": "^1.14.2",
"@reduxjs/toolkit": "^2.2.7",
"@sentry/electron": "^5.4.0",
"@vanilla-extract/css": "^1.15.5",
"@vscode/sudo-prompt": "^9.3.1",
"await-sleep": "0.0.1",
"check-disk-space": "^3.4.0",
"cron": "^3.1.4",
"cron": "^3.1.7",
"docker-cli-js": "^2.10.0",
"dotenv": "^16.0.3",
"du": "^1.0.0",
Expand All @@ -98,11 +98,11 @@
"electron-store": "^8.1.0",
"highcharts": "^11.4.8",
"highcharts-react-official": "^3.2.1",
"i18next": "^23.11.2",
"i18next-browser-languagedetector": "^7.0.1",
"i18next": "^23.15.1",
"i18next-browser-languagedetector": "^8.0.0",
"i18next-cli-language-detector": "^1.1.8",
"iconv-lite": "^0.6.3",
"mixpanel-browser": "^2.47.0",
"mixpanel-browser": "^2.55.1",
"moment": "^2.30.1",
"pidusage": "^3.0.2",
"react": "^18.3.1",
Expand All @@ -111,13 +111,13 @@
"react-redux": "^9.1.2",
"react-router-dom": "^6.26.2",
"react-select": "^5.8.0",
"systeminformation": "^5.21.24",
"throttle-debounce": "^5.0.0",
"systeminformation": "^5.23.5",
"throttle-debounce": "^5.0.2",
"tiny-typed-emitter": "^2.1.0",
"update-electron-app": "^3.0.0",
"uuid": "^10.0.0",
"winston": "^3.13.0",
"winston-transport": "^4.7.0"
"winston": "^3.14.2",
"winston-transport": "^4.7.1"
},
"author": {
"name": "NiceNode LLC",
Expand Down
1 change: 1 addition & 0 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const Main = (props: { platform?: string }) => {
<div className={homeContainer}>
<SidebarWrapper ref={sidebarRef} />
<div
// biome-ignore lint: useSemanticElements
role="button"
className={sidebarDrag}
tabIndex={0}
Expand Down
1 change: 1 addition & 0 deletions src/renderer/Generics/redesign/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const Banner = ({
className={container}
onClick={onClickBanner}
onKeyDown={onClickBanner}
// biome-ignore lint: useSemanticElements
role="button"
tabIndex={0}
>
Expand Down
1 change: 1 addition & 0 deletions src/renderer/Generics/redesign/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const Checkbox = ({
},
}}
/>
{/* biome-ignore lint: labelForCheckbox */}
{label && <label htmlFor="checkboxComponent">{label}</label>}
</div>
);
Expand Down
1 change: 1 addition & 0 deletions src/renderer/Generics/redesign/ClientCard/ClientCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export const ClientCard = (props: ClientProps) => {
onClick();
}
}}
// biome-ignore lint: useSemanticElements
role="presentation"
>
<div
Expand Down
1 change: 1 addition & 0 deletions src/renderer/Generics/redesign/CopyButton/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const CopyButton = ({ data }: CopyButtonProps) => {
className={copyIcon}
onClick={handleClick}
onKeyDown={handleKeyDown}
// biome-ignore lint: useSemanticElements
role="button"
tabIndex={0}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const HeaderButton = ({
<div
className={[container, isToggled ? 'toggled' : ''].join(' ')}
onKeyDown={handleButtonClick}
// biome-ignore lint: useSemanticElements
role="button"
tabIndex={0}
onClick={handleButtonClick}
Expand Down
1 change: 1 addition & 0 deletions src/renderer/Generics/redesign/Link/DropdownLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const DropdownLink = ({ text, inline, onClick, isDown }: DropdownLinkProps) => {
className={classContainer}
onClick={onClick}
onKeyDown={onClick}
// biome-ignore lint: useSemanticElements
role="button"
tabIndex={0}
>
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/Generics/redesign/MenuItem/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ export const MenuItem = ({
};

return (
// biome-ignore lint: noLabelWithoutControl
<label
tabIndex={0}
// biome-ignore lint/a11y/noNoninteractiveElementToInteractiveRole: <explanation>
// biome-ignore lint: useSemanticElements
role="button"
onKeyDown={onClickAction}
className={[container, `${disabledStyle}`].join(' ')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const NotificationItem = ({
className={containerStyles.join(' ')}
onClick={onClickAction}
onKeyDown={onClickAction}
// biome-ignore lint: useSemanticElements
role="button"
tabIndex={0}
>
Expand Down
1 change: 1 addition & 0 deletions src/renderer/Generics/redesign/SelectCard/SelectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const SelectCard = ({
// setSelected(false);
}}
onKeyDown={onClickAction}
// biome-ignore lint: useSemanticElements
role="button"
tabIndex={0}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const SidebarLinkItem = ({
setSelected(false);
}}
onKeyDown={onClickAction}
// biome-ignore lint: useSemanticElements
role="button"
tabIndex={0}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const SidebarNodeItem = ({
setInternalSelected(false);
}}
onKeyDown={onClickAction}
// biome-ignore lint: useSemanticElements
role="button"
tabIndex={0}
>
Expand Down
1 change: 1 addition & 0 deletions src/renderer/Generics/redesign/SyncModes/SyncMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const SyncMode = ({
// setSelected(false);
}}
onKeyDown={() => onClick(value)}
// biome-ignore lint: useSemanticElements
role="button"
tabIndex={0}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ export const makeCheckList = (
checkTitle = 'Virtual Machine Platform Enabled';
valueText = 'Currently disabled.';
valueComponent = (
<>
<ExternalLink
text="Manually enable Virtual Machine feature"
url="https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-3---enable-virtual-machine-feature"
inline
/>
</>
<ExternalLink
text="Manually enable Virtual Machine feature"
url="https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-3---enable-virtual-machine-feature"
inline
/>
);
captionText = 'Try following to enable.';
} else if (reqType === 'CpuArch') {
Expand Down
1 change: 1 addition & 0 deletions src/renderer/Presentational/Logs/Logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ export const Logs = ({ sLogs }: LogsProps) => {
<div className={spacer} />
<div
tabIndex={0}
// biome-ignore lint: useSemanticElements
role="button"
className={clearFilters}
onClick={resetFilters}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ const PodmanInstallation = ({
{(!isPodmanInstalled || podmanDetails?.isOutdated) && (
<>
{!sDownloadComplete && !sInstallComplete && (
// biome-ignore lint: unecessaryFragment
<>
{!sHasStartedDownload ? (
<div>
Expand Down Expand Up @@ -279,14 +280,12 @@ const PodmanInstallation = ({
{isPodmanInstalled &&
!isPodmanRunning &&
!podmanDetails?.isOutdated && (
<>
<Button
id="startPodmanBtn"
type="primary"
label={t('StartPodman')}
onClick={onClickStartPodman}
/>
</>
<Button
id="startPodmanBtn"
type="primary"
label={t('StartPodman')}
onClick={onClickStartPodman}
/>
)}
{sDidUserGrantPermissionToInstallPodman === false && (
<p>{t('PodmanIsRequired')}</p>
Expand Down
1 change: 1 addition & 0 deletions src/renderer/Presentational/Preferences/Preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const Preferences = ({
return (
<div
key={themeDetails.theme}
// biome-ignore lint: useSemanticElements
role="button"
tabIndex={index}
style={{
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ video {
padding: 0;
border: 0;
font-size: 100%;
/* biome-ignore lint: noShorthandPropertyOverrides */
font: inherit;
vertical-align: baseline;
}
Expand Down Expand Up @@ -131,7 +132,7 @@ blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: "";
content: none;
}
table {
Expand Down

0 comments on commit 6ed5bbc

Please sign in to comment.