diff --git a/code/frontend/README.md b/code/frontend/README.md index de903e5..54b7fc27 100644 --- a/code/frontend/README.md +++ b/code/frontend/README.md @@ -16,8 +16,8 @@ Per installare le dipendenze del frontend, è necessario eseguire in questa cart npm install ``` -Questo scaricherà da [npm](https://www.npmjs.com/) tutte le dipendenze necessarie ad avviare il development server, -e le inserirà nella cartella `node_modules`. +Questo scaricherà da [npm](https://www.npmjs.com/) tutte le dipendenze necessarie ad avviare il development server, e le +inserirà nella cartella `node_modules`. > Nota: La cartella `node_modules` **non deve essere committata**! @@ -33,8 +33,8 @@ Questo avvierà un webserver su `localhost` legato alla porta TCP `3000`. ## Sviluppo -Mentre il development server è avviato, qualsiasi modifica verrà immediatamente applicata sulla -pagina web di anteprima a http://localhost:3000 . +Mentre il development server è avviato, qualsiasi modifica verrà immediatamente applicata sulla pagina web di anteprima +a http://localhost:3000 . ## Documentazione @@ -50,5 +50,5 @@ Per compilare il frontend in una webapp ottimizzata per l'uso in production, è npm build ``` -La pagina web e le sue risorse saranno create all'interno della cartella `build`, pronte per essere servite tramite -un qualsiasi webserver di pagine statiche. \ No newline at end of file +La pagina web e le sue risorse saranno create all'interno della cartella `build`, pronte per essere servite tramite un +qualsiasi webserver di pagine statiche. \ No newline at end of file diff --git a/code/frontend/public/index.html b/code/frontend/public/index.html index 9c2e25d..3ed0e25 100644 --- a/code/frontend/public/index.html +++ b/code/frontend/public/index.html @@ -24,12 +24,16 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - - + src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" + > N.E.S.T. diff --git a/code/frontend/src/components/interactive/BoxRepositoriesActive.js b/code/frontend/src/components/interactive/BoxRepositoriesActive.js index 572868c..6a40126 100644 --- a/code/frontend/src/components/interactive/BoxRepositoriesActive.js +++ b/code/frontend/src/components/interactive/BoxRepositoriesActive.js @@ -1,5 +1,4 @@ import React, { useContext } from "react" -import BoxFull from "../base/BoxFull" import SummaryRepository from "./SummaryRepository" import { faFolderOpen } from "@fortawesome/free-solid-svg-icons" import ContextUser from "../../contexts/ContextUser" @@ -18,7 +17,13 @@ import BoxFullScrollable from "../base/BoxFullScrollable" * @returns {JSX.Element} * @constructor */ -export default function BoxRepositoriesActive({ repositories, archiveRepository, destroyRepository, running, ...props }) { +export default function BoxRepositoriesActive({ + repositories, + archiveRepository, + destroyRepository, + running, + ...props + }) { const { user } = useContext(ContextUser) let contents diff --git a/code/frontend/src/components/interactive/BoxRepositoriesArchived.js b/code/frontend/src/components/interactive/BoxRepositoriesArchived.js index 2910c0f..d5c337c 100644 --- a/code/frontend/src/components/interactive/BoxRepositoriesArchived.js +++ b/code/frontend/src/components/interactive/BoxRepositoriesArchived.js @@ -1,5 +1,4 @@ import React, { useContext } from "react" -import BoxFull from "../base/BoxFull" import SummaryRepository from "./SummaryRepository" import { faFolderOpen } from "@fortawesome/free-solid-svg-icons" import ContextUser from "../../contexts/ContextUser" @@ -18,7 +17,13 @@ import BoxFullScrollable from "../base/BoxFullScrollable" * @returns {JSX.Element} * @constructor */ -export default function BoxRepositoriesArchived({ repositories, archiveRepository, destroyRepository, running, ...props }) { +export default function BoxRepositoriesArchived({ + repositories, + archiveRepository, + destroyRepository, + running, + ...props + }) { const { user } = useContext(ContextUser) let contents diff --git a/code/frontend/src/components/interactive/SummaryRepository.js b/code/frontend/src/components/interactive/SummaryRepository.js index 293d1c8..31abf34 100644 --- a/code/frontend/src/components/interactive/SummaryRepository.js +++ b/code/frontend/src/components/interactive/SummaryRepository.js @@ -1,9 +1,7 @@ -import React, { useContext } from "react" +import React from "react" import Button from "../base/Button" import { faArchive, faFolder, faFolderOpen, faPencilAlt, faTrash } from "@fortawesome/free-solid-svg-icons" import { useHistory } from "react-router" -import useBackend from "../../hooks/useBackend" -import ContextUser from "../../contexts/ContextUser" import Summary from "../base/Summary" diff --git a/code/frontend/src/hooks/useBackendViewset.js b/code/frontend/src/hooks/useBackendViewset.js index c7843fc..a7b55b5 100644 --- a/code/frontend/src/hooks/useBackendViewset.js +++ b/code/frontend/src/hooks/useBackendViewset.js @@ -143,7 +143,7 @@ export default function useBackendViewset(resourcesPath, pkName) { } return {} }, - [apiRetrieve, pkName] + [apiRetrieve, pkName], ) const createResource = useCallback( diff --git a/code/frontend/src/routes/PageRepositories.js b/code/frontend/src/routes/PageRepositories.js index 995c582..78347c1 100644 --- a/code/frontend/src/routes/PageRepositories.js +++ b/code/frontend/src/routes/PageRepositories.js @@ -1,4 +1,4 @@ -import React, { useCallback, useContext } from "react" +import React, { useCallback } from "react" import Style from "./PageRepositories.module.css" import classNames from "classnames" import BoxRepositoriesActive from "../components/interactive/BoxRepositoriesActive" @@ -22,7 +22,7 @@ export default function PageRepositories({ children, className, ...props }) { } return {} }, - [bv.apiRequest, bv.refreshResource] + [bv.apiRequest, bv.refreshResource], ) return (