Correct minor warning

This commit is contained in:
braginini
2022-04-03 12:59:57 +02:00
parent cd9dd01680
commit ce91e30209
7 changed files with 17 additions and 12 deletions

14
package-lock.json generated
View File

@@ -16,7 +16,7 @@
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"autoprefixer": "^9",
"highlight.js": "^11.2.0",
"highlight.js": "^11.5.0",
"history": "^5.0.1",
"postcss": "^7",
"prop-types": "^15.7.2",
@@ -8909,9 +8909,9 @@
"integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ=="
},
"node_modules/highlight.js": {
"version": "11.2.0",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.2.0.tgz",
"integrity": "sha512-JOySjtOEcyG8s4MLR2MNbLUyaXqUunmSnL2kdV/KuGJOmHZuAR5xC54Ko7goAXBWNhf09Vy3B+U7vR62UZ/0iw==",
"version": "11.5.0",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.5.0.tgz",
"integrity": "sha512-SM6WDj5/C+VfIY8pZ6yW6Xa0Fm1tniYVYWYW1Q/DcMnISZFrC3aQAZZZFAAZtybKNrGId3p/DNbFTtcTXXgYBw==",
"engines": {
"node": ">=12.0.0"
}
@@ -27699,9 +27699,9 @@
"integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ=="
},
"highlight.js": {
"version": "11.2.0",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.2.0.tgz",
"integrity": "sha512-JOySjtOEcyG8s4MLR2MNbLUyaXqUunmSnL2kdV/KuGJOmHZuAR5xC54Ko7goAXBWNhf09Vy3B+U7vR62UZ/0iw=="
"version": "11.5.0",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.5.0.tgz",
"integrity": "sha512-SM6WDj5/C+VfIY8pZ6yW6Xa0Fm1tniYVYWYW1Q/DcMnISZFrC3aQAZZZFAAZtybKNrGId3p/DNbFTtcTXXgYBw=="
},
"history": {
"version": "5.0.1",

View File

@@ -11,7 +11,7 @@
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"autoprefixer": "^9",
"highlight.js": "^11.2.0",
"highlight.js": "^11.5.0",
"history": "^5.0.1",
"postcss": "^7",
"prop-types": "^15.7.2",

View File

@@ -24,6 +24,7 @@ export default function Banner() {
href="https://blog.netbird.io/wiretrustee-becomes-netbird"
className="font-bold underline"
target="_blank"
rel="noreferrer"
>
{" "}
Learn more{" "}

View File

@@ -3,7 +3,6 @@ import {Dialog, RadioGroup, Transition} from '@headlessui/react'
import {XIcon} from '@heroicons/react/outline'
import {ExclamationCircleIcon, QuestionMarkCircleIcon} from '@heroicons/react/solid'
import PropTypes from "prop-types";
import {Link} from "react-router-dom";
const types = [
{name: 'Reusable', description: 'This type of a setup key allows to setup multiple machine', value: 'reusable'},
@@ -172,6 +171,7 @@ const NewSetupKeyDialog = ({show, closeCallback}) => {
<a
href="https://docs.netbird.io/overview/setup-keys"
target="_blank"
rel="noreferrer"
className="group flex items-center text-sm text-gray-500 hover:text-gray-900 space-x-2.5"
>
<QuestionMarkCircleIcon

View File

@@ -51,9 +51,13 @@ const LinuxTab = ({setupKey}) => {
return commands.map(c => key != null ? c.replace("<PASTE-SETUP-KEY>", key.Key) : c).join("\n")
}
const escapeHtml = (unsafe) => {
return unsafe.replaceAll('&', '&amp;').replaceAll('<', '&lt;').replaceAll('>', '&gt;').replaceAll('"', '&quot;').replaceAll("'", '&#039;');
}
return (
<ol role="list" className="overflow-hidden">
<ol className="overflow-hidden">
{steps.map((step, stepIdx) => (
<li key={"linux-tab-step-" + step.id}
className={classNames(stepIdx !== steps.length - 1 ? 'pb-10' : '', 'relative')}>

View File

@@ -53,7 +53,7 @@ const MacTab = ({setupKey}) => {
return (
<ol role="list" className="overflow-hidden">
<ol className="overflow-hidden">
{steps.map((step, stepIdx) => (
<li key={"linux-tab-step-" + step.id}
className={classNames(stepIdx !== steps.length - 1 ? 'pb-10' : '', 'relative')}>

View File

@@ -63,7 +63,7 @@ const WindowsTab = ({setupKey}) => {
return (
<ol role="list" className="overflow-hidden">
<ol className="overflow-hidden">
{steps.map((step, stepIdx) => (
<li key={"linux-tab-step-" + step.id}
className={classNames(stepIdx !== steps.length - 1 ? 'pb-10' : '', 'relative')}>