updated year of copyright

Massimo Melina committed Jan 15, 2023 at 17:35 UTC 24d8294394fe9cc6431a0841060a78cac262309f
96 files changed +122 -75
admin/src/AccountForm.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { createElement as h, useEffect, useRef, useState } from 'react'
4 import { BoolField, Form, MultiSelectField } from '@hfs/mui-grid-form'
5 import { Box, Button } from '@mui/material'
admin/src/AccountsPage.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, useState, useEffect, Fragment } from "react"
4 import { apiCall, useApiEx } from './api'
admin/src/App.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, Fragment, useState } from 'react'
4 import { HashRouter, Routes, Route, useLocation } from 'react-router-dom'
admin/src/ArrayField.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { createElement as h, Fragment, useMemo } from 'react'
4 import { IconBtn, setHidden } from './misc'
5 import { Add, Edit, Delete } from '@mui/icons-material'
admin/src/ConfigPage.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { Box, Button, FormHelperText, Link } from '@mui/material';
4 import { createElement as h, useEffect, useRef } from 'react';
admin/src/FileField.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { FieldProps, StringField } from '@hfs/mui-grid-form'
4 import { createElement as h } from 'react'
5 import { InputAdornment } from '@mui/material'
admin/src/FileForm.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { state } from './state'
4 import { createElement as h, useEffect, useMemo, useState } from 'react'
admin/src/FilePicker.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, Fragment, useEffect, useMemo, useRef, useState } from 'react'
4 import { apiCall, useApiList } from './api'
admin/src/HomePage.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h } from 'react'
4 import { Box, Button, LinearProgress, Link } from '@mui/material'
admin/src/InstalledPlugins.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { apiCall, useApiList } from './api'
4 import { createElement as h, Fragment } from 'react'
5 import { Alert, Box, Tooltip } from '@mui/material'
admin/src/LoginRequired.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { state, useSnapState } from './state'
4 import { createElement as h, Fragment, useState } from 'react'
5 import { Center } from './misc'
admin/src/LogoutPage.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { createElement as h } from "react"
4 import { Alert, Box, Button } from '@mui/material'
5 import { apiCall, useApiEx } from './api'
admin/src/LogsPage.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { createElement as h, Fragment, useState } from 'react';
4 import { Tab, Tabs } from '@mui/material'
5 import { useApiList } from './api'
admin/src/MainMenu.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, FC } from 'react';
4 import { List, ListItemButton, ListItemIcon, ListItemText, Box, Typography } from '@mui/material'
admin/src/MenuButton.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import React, { createElement as h, useCallback } from 'react'
4 import { Button, Menu, MenuItem } from '@mui/material'
admin/src/MonitorPage.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import _ from "lodash"
4 import { createElement as h, useMemo, Fragment, useState } from "react"
admin/src/OnlinePlugins.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { apiCall, useApiList } from './api'
4 import { Fragment, createElement as h, useState } from 'react'
5 import { DataGrid } from '@mui/x-data-grid'
admin/src/PermField.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { Dict, useStateMounted } from './misc'
4 import { createElement as h, Fragment } from 'react'
admin/src/PluginsPage.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, Fragment, useState } from "react"
4 import { Tab, Tabs } from '@mui/material'
admin/src/VfsMenuBar.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { state, useSnapState } from './state'
4 import { createElement as h } from 'react'
admin/src/VfsPage.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, useEffect, useMemo, useState } from 'react'
4 import { useApi, useApiEx } from './api'
admin/src/VfsTree.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { state, useSnapState } from './state'
4 import { createElement as h, ReactElement, useState } from 'react'
admin/src/addFiles.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { alertDialog, newDialog, promptDialog } from './dialog'
4 import { createElement as h, Fragment } from 'react'
admin/src/api.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, useCallback, useEffect, useMemo, useRef } from 'react'
4 import { Dict, err2msg, Falsy, getCookie, IconBtn, spinner, useStateMounted, wantArray } from './misc'
admin/src/dialog.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import {
4 Box,
admin/src/index.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, StrictMode } from 'react'
4 import { createRoot } from 'react-dom/client'
admin/src/md.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, Fragment } from 'react'
4
admin/src/misc.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, FC, ReactNode } from 'react'
4 import { Box, Breakpoint, CircularProgress, IconButton, Link, Tooltip, useMediaQuery } from '@mui/material'
admin/src/state.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { proxy, useSnapshot } from 'valtio'
4 import { Dict } from './misc'
admin/src/theme.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createTheme, useMediaQuery } from '@mui/material'
4 import { useMemo } from 'react'
frontend/src/App.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { BrowserRouter, Route, Routes } from "react-router-dom"
4 import { createElement as h, Fragment } from 'react'
frontend/src/Breadcrumbs.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { Link, useLocation } from 'react-router-dom'
4 import { createElement as h, Fragment, ReactElement } from 'react'
frontend/src/BrowseFiles.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { Link, useLocation } from 'react-router-dom'
4 import { createElement as h, Fragment, memo, useEffect, useMemo, useState } from 'react'
frontend/src/Head.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, useMemo} from 'react'
4 import { formatBytes, hIcon, prefix } from './misc'
frontend/src/UserPanel.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { useSnapState } from './state'
4 import { createElement as h } from 'react'
frontend/src/api.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { useEffect, useState } from 'react';
4 import { Dict, Falsy, getCookie, working } from './misc'
frontend/src/components.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { hIcon } from './misc'
4 import { createElement as h, HTMLAttributes, ReactNode, useMemo } from 'react'
frontend/src/dialog.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, ReactElement, ReactNode, useEffect, useRef } from 'react'
4 import './dialog.css'
frontend/src/icons.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { state, useSnapState } from './state'
4 import { createElement as h, memo } from 'react'
frontend/src/index.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, StrictMode } from 'react'
4 import { createRoot } from 'react-dom/client'
frontend/src/login.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { apiCall, ApiError } from './api'
4 import { state } from './state'
frontend/src/menu.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { state, useSnapState } from './state'
4 import { createElement as h, useEffect, useState } from 'react'
frontend/src/misc.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h } from 'react'
4 import { Spinner } from './components'
frontend/src/options.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { newDialog } from './dialog'
4 import { state, useSnapState } from './state'
frontend/src/state.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import _ from 'lodash'
4 import { proxy, useSnapshot } from 'valtio'
frontend/src/useAuthorized.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { state, useSnapState } from './state'
4 import { useNavigate } from 'react-router-dom'
5 import { useEffect } from 'react'
frontend/src/useFetchList.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { state, useSnapState } from './state'
4 import { useEffect, useRef } from 'react'
frontend/src/useTheme.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { useSnapState } from './state'
4 import { useEffect } from 'react'
mui-grid-form/SelectField.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { createElement as h } from 'react'
4 import { FieldProps } from '.'
5 import { FormControl, FormControlLabel, FormLabel, MenuItem, Radio, RadioGroup, TextField } from '@mui/material'
mui-grid-form/StringField.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { createElement as h, useEffect, useRef, useState } from 'react'
4 import { FieldProps } from '.'
5 import { InputAdornment, TextField } from '@mui/material'
mui-grid-form/StringStringField.ts
+3 -2
@@ -1,9 +1,10 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, useRef } from 'react'
4 import { Grid, IconButton } from '@mui/material'
5 import { Add, Delete } from '@mui/icons-material'
6 -import { FieldProps, StringField } from '.'
6 +import { FieldProps} from '.'
7 +import { StringField } from './StringField'
8
9 export function StringStringField({ value, onChange, keyLabel='key', valueLabel='value', keyWidth=5, valueWidth=5, actionsWidth=1 }: FieldProps<Record<string,string>> & { keyLabel:string }) {
10 const refNew = useRef()
mui-grid-form/index.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import {
4 createElement as h,
mui-grid-form/misc-fields.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { createElement as h, useEffect, useState } from 'react'
4 import { StringField } from './StringField'
5 import { FieldProps } from '.'
shared/dialogs.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, Fragment, FunctionComponent, ReactNode, useEffect, useRef } from 'react'
4 import { proxy, useSnapshot } from 'valtio'
shared/index.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import _ from 'lodash'
4 export * from './react'
shared/react.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, Fragment, ReactElement, ReactNode, useCallback, useState } from 'react'
4 import { useIsMounted } from 'usehooks-ts'
shared/srp.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { SRPClientSession, SRPParameters, SRPRoutines } from 'tssrp6a'
4
5 export async function srpSequence(username:string, password:string, apiCall: (cmd:string, params:any) => any) {
src/QuickZipStream.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { Readable } from 'stream'
4 // @ts-ignore
src/ThrottledStream.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { Transform, TransformCallback } from 'stream'
4 import { TokenBucket } from 'limiter'
src/adminApis.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { ApiError, ApiHandlers, SendListReadable } from './apiMiddleware'
4 import { defineConfig, getWholeConfig, setConfig } from './config'
src/api.accounts.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { changePasswordHelper, changeSrpHelper } from './api.helpers'
4 import { ApiError, ApiHandlers } from './apiMiddleware'
src/api.auth.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { Account, getAccount, getCurrentUsername, normalizeUsername } from './perm'
4 import { verifyPassword } from './crypt'
src/api.file_list.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { cantReadStatusCode, getNodeName, hasPermission, nodeIsDirectory, urlToNode, VfsNode, walkNode } from './vfs'
4 import { ApiError, ApiHandler, SendListReadable } from './apiMiddleware'
src/api.helpers.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { Account, allowClearTextLogin, saveSrpInfo, updateAccount } from './perm'
4 import { ApiError } from './apiMiddleware'
src/api.monitor.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import _ from 'lodash'
4 import { Connection, getConnections } from './connections'
5 import { pendingPromise, wait } from './misc'
src/api.plugins.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import {
4 AvailablePlugin,
5 enablePlugins,
src/api.vfs.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { defaultPerms, getNodeName, nodeIsDirectory, saveVfs, urlToNode, vfs, VfsNode } from './vfs'
4 import _ from 'lodash'
src/apiMiddleware.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import Koa from 'koa'
4 import createSSE from './sse'
src/block.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { defineConfig } from './config'
4 import { getConnections, normalizeIp } from './connections'
5 import { onlyTruthy, with_ } from './misc'
src/commands.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { addAccount, getAccount, updateAccount } from './perm'
4 import { getConfig, getConfigDefinition, setConfig } from './config'
5 import _ from 'lodash'
src/config.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import EventEmitter from 'events'
4 import { APP_PATH, argv, ORIGINAL_CWD } from './const'
src/connections.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { Socket } from 'net'
4 import events from './events'
src/const.ts
+2 -2
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import minimist from 'minimist'
4 import * as fs from 'fs'
@@ -50,7 +50,7 @@ export const APP_PATH = dirname(IS_BINARY ? process.argv0 : __dirname)
50 // we want this to be the first stuff to be printed, then we print it in this module, that is executed at the beginning
51 if (DEV) console.clear()
52 else console.debug = ()=>{}
53 -console.log(`HFS ~ HTTP File Server - Copyright 2021-2022, Massimo Melina <a@rejetto.com>`)
53 +console.log(`HFS ~ HTTP File Server - Copyright 2021-2023, Massimo Melina <a@rejetto.com>`)
54 console.log(`License https://www.gnu.org/licenses/gpl-3.0.txt`)
55 console.log('started', HFS_STARTED.toLocaleString(), DEV)
56 console.log('version', VERSION||'-')
src/crypt.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 // simple wrapper
4 // @ts-ignore
src/debounceAsync.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 // like lodash.debounce, but also avoids async invocations to overlap
4 export default function debounceAsync<CB extends (...args: any[]) => Promise<R>, R>(
5 callback: CB,
src/events.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import EventEmitter from 'events'
4
src/frontEndApis.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { ApiHandlers } from './apiMiddleware'
4 import { file_list } from './api.file_list'
src/github.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import events from './events'
4 import { httpsString, httpsStream, unzip } from './misc'
5 import { getAvailablePlugins, mapPlugins, parsePluginSource, PATH as PLUGINS_PATH, rescan } from './plugins'
src/index.ts
+1 -1
@@ -1,5 +1,5 @@
1 #!/usr/bin/env node
2 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
3
4 import Koa from 'koa'
5 import mount from 'koa-mount'
src/listen.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import * as http from 'http'
4 import { defineConfig } from './config'
src/log.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import Koa from 'koa'
4 import { Writable } from 'stream'
src/middlewares.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import compress from 'koa-compress'
4 import Koa from 'koa'
src/misc.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { EventEmitter } from 'events'
4 import { basename } from 'path'
src/perm.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import _ from 'lodash'
4 import { hashPassword } from './crypt'
src/plugins.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import glob from 'fast-glob'
4 import { watchLoad } from './watchLoad'
src/serveFile.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import Koa from 'koa'
4 import { createReadStream, stat } from 'fs'
src/serveGuiFiles.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import Koa from 'koa'
4 import fs from 'fs/promises'
src/sse.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import Koa from 'koa'
4 import { Transform } from 'stream'
src/throttler.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { Readable } from 'stream'
4 import Koa from 'koa'
src/update.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { getRepoInfo } from './github'
4 import { argv, IS_WINDOWS, VERSION } from './const'
5 import { basename, dirname, join } from 'path'
src/util-files.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import fs from 'fs/promises'
4 import { wait } from './misc'
5 import { createWriteStream, mkdirSync, watch } from 'fs'
src/util-generators.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 // callback can return undefined to skip element
4 import { Readable } from 'stream'
5
src/util-http.ts
+2
@@ -1,3 +1,5 @@
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2 +
3 import { RequestOptions } from 'https'
4 import { IncomingMessage } from 'node:http'
5 import https from 'node:https'
src/vfs.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import fs from 'fs/promises'
4 import { basename, join } from 'path'
src/watchLoad.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { FSWatcher, watch } from 'fs'
4 import fs from 'fs/promises'
src/zip.ts
+1 -1
@@ -1,4 +1,4 @@
1 -// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
1 +// This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { getNodeName, hasPermission, nodeIsDirectory, urlToNode, VfsNode, walkNode } from './vfs'
4 import Koa from 'koa'