Skip to content

Commit

Permalink
fix: disable cidr calculator for now due to build error
Browse files Browse the repository at this point in the history
  • Loading branch information
drodil committed Apr 25, 2023
1 parent c5ef529 commit 78dd8f4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 0 additions & 1 deletion plugins/toolbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"color-convert": "^2.0.1",
"crypto-hash": "^2.0.1",
"csvtojson": "^2.0.10",
"ip-num": "^1.5.1",
"js-beautify": "^1.14.7",
"js-md2": "^0.2.2",
"js-md4": "^0.3.2",
Expand Down
5 changes: 5 additions & 0 deletions plugins/toolbox/src/components/Networking/CidrCalculator.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* This is disabled for now, fails to build the Backstage app for some reason
* ERROR: Big integer literals are not available in the configured target environment ("es2019")
* FIXME.
import React, { useEffect } from 'react';
import { DefaultEditor } from '../DefaultEditor/DefaultEditor';
import { TextField } from '@material-ui/core';
Expand Down Expand Up @@ -120,3 +124,4 @@ export const CidrCalculator = () => {
};
export default CidrCalculator;
*/
5 changes: 4 additions & 1 deletion plugins/toolbox/src/components/Root/tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const HTMLBeautify = lazy(() => import('../Formatters/HTMLBeautify'));
const CSSBeautify = lazy(() => import('../Formatters/CSSBeautify'));
const SQLBeautify = lazy(() => import('../Formatters/SQLBeautify'));

const CidrCalculator = lazy(() => import('../Networking/CidrCalculator'));
// const CidrCalculator = lazy(() => import('../Networking/CidrCalculator'));

export const defaultTools: Tool[] = [
{
id: 'base64-encode',
Expand Down Expand Up @@ -203,10 +204,12 @@ export const defaultTools: Tool[] = [
component: <Timer />,
category: 'Miscellaneous',
},
/**
{
id: 'cidr-calculator',
name: 'CIDR calculator',
component: <CidrCalculator />,
category: 'Networking',
},
*/
];
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7762,11 +7762,6 @@ internal-slot@^1.0.3, internal-slot@^1.0.4, internal-slot@^1.0.5:
has "^1.0.3"
side-channel "^1.0.4"

ip-num@^1.5.1:
version "1.5.1"
resolved "https://registry.yarnpkg.com/ip-num/-/ip-num-1.5.1.tgz#a6b798f616fa51b7c80f42c6de26389abd3f0faf"
integrity sha512-QziFxgxq3mjIf5CuwlzXFYscHxgLqdEdJKRo2UJ5GurL5zrSRMzT/O+nK0ABimoFH8MWF8YwIiwECYsHc1LpUQ==

[email protected]:
version "1.9.1"
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"
Expand Down

0 comments on commit 78dd8f4

Please sign in to comment.