Merge pull request #361 from openziti/js-lint-update

updated ui lintintg to be stricter and fixed relevant errors
This commit is contained in:
Michael Quigley 2023-06-29 14:54:54 -04:00 committed by GitHub
commit bdb4bd45aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 9 deletions

View File

@ -33,7 +33,7 @@ jobs:
- run: npm run build - run: npm run build
working-directory: ui working-directory: ui
env: env:
CI: "" CI: "true"
- name: go install - name: go install
run: go install -ldflags "-X github.com/openziti/zrok/build.Version=${{ github.ref }} -X github.com/openziti/zrok/build.Hash=${{ github.sha }}" ./... run: go install -ldflags "-X github.com/openziti/zrok/build.Version=${{ github.ref }} -X github.com/openziti/zrok/build.Hash=${{ github.sha }}" ./...

View File

@ -37,7 +37,7 @@ jobs:
- run: npm run build - run: npm run build
working-directory: ui working-directory: ui
env: env:
CI: "" CI: "true"
- uses: goreleaser/goreleaser-action@v2 - uses: goreleaser/goreleaser-action@v2
with: with:
@ -79,7 +79,7 @@ jobs:
- run: npm run build - run: npm run build
working-directory: ui working-directory: ui
env: env:
CI: "" CI: "true"
- uses: goreleaser/goreleaser-action@v2 - uses: goreleaser/goreleaser-action@v2
with: with:
@ -121,7 +121,7 @@ jobs:
- run: npm run build - run: npm run build
working-directory: ui working-directory: ui
env: env:
CI: "" CI: "true"
- uses: goreleaser/goreleaser-action@v2 - uses: goreleaser/goreleaser-action@v2
with: with:
@ -170,7 +170,7 @@ jobs:
- run: npm run build - run: npm run build
working-directory: ui working-directory: ui
env: env:
CI: "" CI: "true"
- uses: goreleaser/goreleaser-action@v2 - uses: goreleaser/goreleaser-action@v2
with: with:
@ -214,7 +214,7 @@ jobs:
- run: npm run build - run: npm run build
working-directory: ui working-directory: ui
env: env:
CI: "" CI: "true"
- uses: goreleaser/goreleaser-action@v2 - uses: goreleaser/goreleaser-action@v2
with: with:

View File

@ -1,5 +1,5 @@
import React, {useEffect, useState, Fragment} from "react"; import React, {useEffect, useState, Fragment} from "react";
import {Button, Container, Form, Row} from "react-bootstrap"; import {Container, Form, Row} from "react-bootstrap";
const PasswordForm = (props) => { const PasswordForm = (props) => {
const [password, setPassword] = useState(''); const [password, setPassword] = useState('');
@ -38,6 +38,7 @@ const PasswordForm = (props) => {
return; return;
} }
props.setParentPassword(password) props.setParentPassword(password)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [password, confirm]) }, [password, confirm])
return ( return (

View File

@ -21,6 +21,7 @@ const MetricsTab = (props) => {
.then(resp => { .then(resp => {
setMetrics1(buildMetrics(resp.data)); setMetrics1(buildMetrics(resp.data));
}); });
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.selection.id]); }, [props.selection.id]);
useEffect(() => { useEffect(() => {
@ -45,6 +46,7 @@ const MetricsTab = (props) => {
mounted = false; mounted = false;
clearInterval(interval); clearInterval(interval);
} }
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.selection.id]); }, [props.selection.id]);
return ( return (

View File

@ -34,7 +34,6 @@ export const mergeGraph = (oldGraph, user, accountLimited, newOverview) => {
let allShares = {}; let allShares = {};
let allFrontends = []; let allFrontends = [];
newOverview.forEach(env => { newOverview.forEach(env => {
let limited = !!env.limited;
let envNode = { let envNode = {
id: 'env:' + env.environment.zId, id: 'env:' + env.environment.zId,
envZId: env.environment.zId, envZId: env.environment.zId,