From 12669b3bf4dcefda337d141ab2a2f2bf3cf04ee5 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Mon, 10 Apr 2023 00:55:10 +0200 Subject: chore: add copyright headers Make sure we obey the REUSE (https://reuse.software) specification and the origin, copyright owner, and license of all files are clearly marked. The whole project is under the EPL-2.0, except for trivial files where copyright is not applicable that are marked with the CC0-1.0 license. Moreover, code included from third parties is also available under the respective license. chore: add CONTRIBUTORS.md List all authors and supporting organizations in accordance with the REUSE specification. --- subprojects/frontend/.eslintrc.cjs | 6 ++++++ subprojects/frontend/assets-src/favicon.svg.license | 3 +++ subprojects/frontend/assets-src/icon.svg.license | 3 +++ subprojects/frontend/assets-src/mask-icon.svg.license | 3 +++ subprojects/frontend/build.gradle.kts | 6 ++++++ subprojects/frontend/config/backendConfigVitePlugin.ts | 6 ++++++ subprojects/frontend/config/detectDevModeOptions.ts | 6 ++++++ subprojects/frontend/config/eslintReport.cjs | 6 ++++++ subprojects/frontend/config/fetchPackageMetadata.ts | 6 ++++++ subprojects/frontend/config/manifest.ts | 8 +++++++- subprojects/frontend/config/minifyHTMLVitePlugin.ts | 6 ++++++ subprojects/frontend/config/preloadFontsVitePlugin.ts | 6 ++++++ subprojects/frontend/index.html | 5 +++++ subprojects/frontend/package.json | 9 +++++++-- subprojects/frontend/prettier.config.cjs | 6 ++++++ subprojects/frontend/public/apple-touch-icon.png.license | 3 +++ subprojects/frontend/public/favicon-96x96.png.license | 3 +++ subprojects/frontend/public/favicon.png.license | 3 +++ subprojects/frontend/public/favicon.svg.license | 3 +++ subprojects/frontend/public/icon-192x192.png.license | 3 +++ subprojects/frontend/public/icon-512x512.png.license | 3 +++ subprojects/frontend/public/icon-any.svg.license | 3 +++ subprojects/frontend/public/mask-icon.svg.license | 3 +++ subprojects/frontend/public/robots.txt | 4 ++++ subprojects/frontend/src/App.tsx | 6 ++++++ subprojects/frontend/src/Loading.tsx | 6 ++++++ subprojects/frontend/src/PWAStore.ts | 6 ++++++ subprojects/frontend/src/Refinery.tsx | 6 ++++++ subprojects/frontend/src/RootStore.ts | 6 ++++++ subprojects/frontend/src/RootStoreProvider.tsx | 6 ++++++ subprojects/frontend/src/ToggleDarkModeButton.tsx | 6 ++++++ subprojects/frontend/src/TopBar.tsx | 6 ++++++ subprojects/frontend/src/UpdateNotification.tsx | 6 ++++++ subprojects/frontend/src/WindowControlsOverlayColor.tsx | 6 ++++++ subprojects/frontend/src/editor/AnimatedButton.tsx | 6 ++++++ subprojects/frontend/src/editor/ConnectButton.tsx | 6 ++++++ .../frontend/src/editor/ConnectionStatusNotification.tsx | 6 ++++++ subprojects/frontend/src/editor/DiagnosticValue.ts | 6 ++++++ subprojects/frontend/src/editor/EditorArea.tsx | 6 ++++++ subprojects/frontend/src/editor/EditorButtons.tsx | 6 ++++++ subprojects/frontend/src/editor/EditorPane.tsx | 6 ++++++ subprojects/frontend/src/editor/EditorStore.ts | 6 ++++++ subprojects/frontend/src/editor/EditorTheme.ts | 6 ++++++ subprojects/frontend/src/editor/GenerateButton.tsx | 6 ++++++ subprojects/frontend/src/editor/LintPanelStore.ts | 6 ++++++ subprojects/frontend/src/editor/PanelStore.ts | 6 ++++++ subprojects/frontend/src/editor/SearchPanel.ts | 6 ++++++ subprojects/frontend/src/editor/SearchPanelPortal.tsx | 6 ++++++ subprojects/frontend/src/editor/SearchPanelStore.ts | 6 ++++++ subprojects/frontend/src/editor/SearchToolbar.tsx | 6 ++++++ subprojects/frontend/src/editor/createEditorState.ts | 6 ++++++ .../frontend/src/editor/defineDecorationSetExtension.ts | 6 ++++++ subprojects/frontend/src/editor/exposeDiagnostics.ts | 6 ++++++ subprojects/frontend/src/editor/findOccurrences.ts | 6 ++++++ .../frontend/src/editor/indentationMarkerViewPlugin.ts | 10 ++++++++-- subprojects/frontend/src/editor/scrollbarViewPlugin.ts | 6 ++++++ subprojects/frontend/src/editor/semanticHighlighting.ts | 6 ++++++ subprojects/frontend/src/index.tsx | 6 ++++++ subprojects/frontend/src/language/folding.ts | 6 ++++++ subprojects/frontend/src/language/indentation.ts | 7 +++++++ subprojects/frontend/src/language/problem.grammar | 6 ++++++ subprojects/frontend/src/language/problemLanguageSupport.ts | 6 ++++++ subprojects/frontend/src/language/props.ts | 6 ++++++ subprojects/frontend/src/theme/ThemeProvider.tsx | 6 ++++++ subprojects/frontend/src/theme/ThemeStore.ts | 6 ++++++ subprojects/frontend/src/utils/CancelledError.ts | 6 ++++++ subprojects/frontend/src/utils/PendingTask.ts | 6 ++++++ subprojects/frontend/src/utils/PriorityMutex.ts | 6 ++++++ subprojects/frontend/src/utils/TimeoutError.ts | 6 ++++++ subprojects/frontend/src/utils/getLogger.ts | 6 ++++++ subprojects/frontend/src/utils/useDelayedSnackbar.ts | 6 ++++++ subprojects/frontend/src/xtext/BackendConfig.ts | 6 ++++++ subprojects/frontend/src/xtext/ContentAssistService.ts | 6 ++++++ subprojects/frontend/src/xtext/HighlightingService.ts | 6 ++++++ subprojects/frontend/src/xtext/OccurrencesService.ts | 6 ++++++ subprojects/frontend/src/xtext/UpdateService.ts | 6 ++++++ subprojects/frontend/src/xtext/UpdateStateTracker.ts | 6 ++++++ subprojects/frontend/src/xtext/ValidationService.ts | 6 ++++++ subprojects/frontend/src/xtext/XtextClient.ts | 6 ++++++ subprojects/frontend/src/xtext/XtextWebSocketClient.ts | 6 ++++++ subprojects/frontend/src/xtext/fetchBackendConfig.ts | 6 ++++++ subprojects/frontend/src/xtext/webSocketMachine.ts | 6 ++++++ subprojects/frontend/src/xtext/xtextMessages.ts | 6 ++++++ subprojects/frontend/src/xtext/xtextServiceResults.ts | 6 ++++++ subprojects/frontend/tsconfig.base.json | 13 +++++++++++++ subprojects/frontend/tsconfig.json | 5 +++++ subprojects/frontend/tsconfig.node.json | 5 +++++ subprojects/frontend/tsconfig.shared.json | 7 ++++++- subprojects/frontend/types/ImportMeta.d.ts | 7 +++++++ subprojects/frontend/types/grammar.d.ts | 7 +++++++ .../frontend/types/node/@lezer-generator-rollup.d.ts | 7 +++++++ subprojects/frontend/types/windowControlsOverlay.d.ts | 6 ++++++ subprojects/frontend/vite.config.ts | 6 ++++++ 93 files changed, 535 insertions(+), 6 deletions(-) create mode 100644 subprojects/frontend/assets-src/favicon.svg.license create mode 100644 subprojects/frontend/assets-src/icon.svg.license create mode 100644 subprojects/frontend/assets-src/mask-icon.svg.license create mode 100644 subprojects/frontend/public/apple-touch-icon.png.license create mode 100644 subprojects/frontend/public/favicon-96x96.png.license create mode 100644 subprojects/frontend/public/favicon.png.license create mode 100644 subprojects/frontend/public/favicon.svg.license create mode 100644 subprojects/frontend/public/icon-192x192.png.license create mode 100644 subprojects/frontend/public/icon-512x512.png.license create mode 100644 subprojects/frontend/public/icon-any.svg.license create mode 100644 subprojects/frontend/public/mask-icon.svg.license (limited to 'subprojects/frontend') diff --git a/subprojects/frontend/.eslintrc.cjs b/subprojects/frontend/.eslintrc.cjs index dc03d721..466e5668 100644 --- a/subprojects/frontend/.eslintrc.cjs +++ b/subprojects/frontend/.eslintrc.cjs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + const path = require('node:path'); // Allow the Codium ESLint plugin to find `tsconfig.json` from the repository root. diff --git a/subprojects/frontend/assets-src/favicon.svg.license b/subprojects/frontend/assets-src/favicon.svg.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/assets-src/favicon.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/assets-src/icon.svg.license b/subprojects/frontend/assets-src/icon.svg.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/assets-src/icon.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/assets-src/mask-icon.svg.license b/subprojects/frontend/assets-src/mask-icon.svg.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/assets-src/mask-icon.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/build.gradle.kts b/subprojects/frontend/build.gradle.kts index 80f10f7e..9fd99742 100644 --- a/subprojects/frontend/build.gradle.kts +++ b/subprojects/frontend/build.gradle.kts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import org.siouan.frontendgradleplugin.infrastructure.gradle.RunYarn import tools.refinery.gradle.utils.SonarPropertiesUtils diff --git a/subprojects/frontend/config/backendConfigVitePlugin.ts b/subprojects/frontend/config/backendConfigVitePlugin.ts index 7a6bc3db..3bffce3a 100644 --- a/subprojects/frontend/config/backendConfigVitePlugin.ts +++ b/subprojects/frontend/config/backendConfigVitePlugin.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { PluginOption } from 'vite'; import type BackendConfig from '../src/xtext/BackendConfig'; diff --git a/subprojects/frontend/config/detectDevModeOptions.ts b/subprojects/frontend/config/detectDevModeOptions.ts index b3696241..665204dc 100644 --- a/subprojects/frontend/config/detectDevModeOptions.ts +++ b/subprojects/frontend/config/detectDevModeOptions.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { PluginOption, ServerOptions } from 'vite'; import backendConfigVitePlugin, { diff --git a/subprojects/frontend/config/eslintReport.cjs b/subprojects/frontend/config/eslintReport.cjs index 5bf6a041..7c4b7bd6 100644 --- a/subprojects/frontend/config/eslintReport.cjs +++ b/subprojects/frontend/config/eslintReport.cjs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + const { writeFile } = require('node:fs/promises'); const path = require('node:path'); const { Readable } = require('node:stream'); diff --git a/subprojects/frontend/config/fetchPackageMetadata.ts b/subprojects/frontend/config/fetchPackageMetadata.ts index 50807b03..02e16d57 100644 --- a/subprojects/frontend/config/fetchPackageMetadata.ts +++ b/subprojects/frontend/config/fetchPackageMetadata.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { readFile } from 'node:fs/promises'; import path from 'node:path'; diff --git a/subprojects/frontend/config/manifest.ts b/subprojects/frontend/config/manifest.ts index 3cec777c..1822dc7c 100644 --- a/subprojects/frontend/config/manifest.ts +++ b/subprojects/frontend/config/manifest.ts @@ -1,10 +1,16 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { ManifestOptions } from 'vite-plugin-pwa'; const manifest: Partial = { lang: 'en-US', name: 'Refinery', short_name: 'Refinery', - description: 'An efficient graph sovler for generating well-formed models', + description: 'An efficient graph solver for generating well-formed models', theme_color: '#f5f5f5', display_override: ['window-controls-overlay'], display: 'standalone', diff --git a/subprojects/frontend/config/minifyHTMLVitePlugin.ts b/subprojects/frontend/config/minifyHTMLVitePlugin.ts index 18336d4d..7c08c488 100644 --- a/subprojects/frontend/config/minifyHTMLVitePlugin.ts +++ b/subprojects/frontend/config/minifyHTMLVitePlugin.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { minify, type Options as TerserOptions } from 'html-minifier-terser'; import type { PluginOption } from 'vite'; diff --git a/subprojects/frontend/config/preloadFontsVitePlugin.ts b/subprojects/frontend/config/preloadFontsVitePlugin.ts index bc6f8eaf..5c04477a 100644 --- a/subprojects/frontend/config/preloadFontsVitePlugin.ts +++ b/subprojects/frontend/config/preloadFontsVitePlugin.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import micromatch from 'micromatch'; import type { PluginOption } from 'vite'; diff --git a/subprojects/frontend/index.html b/subprojects/frontend/index.html index 8b6814eb..e1d2bf14 100644 --- a/subprojects/frontend/index.html +++ b/subprojects/frontend/index.html @@ -1,4 +1,9 @@ + diff --git a/subprojects/frontend/package.json b/subprojects/frontend/package.json index e6bcc89e..cd96a574 100644 --- a/subprojects/frontend/package.json +++ b/subprojects/frontend/package.json @@ -1,4 +1,9 @@ { + "//": [ + "SPDX-FileCopyrightText: 2021-2023 The Refinery Authors ", + "", + "SPDX-License-Identifier: EPL-2.0" + ], "name": "@refinery/frontend", "version": "0.0.0", "description": "Web frontend for Refinery", @@ -16,10 +21,10 @@ "type": "git", "url": "git+https://github.com/graphs4value/refinery.git" }, - "author": "Refinery authors", + "author": "The Refinery Authors ", "license": "EPL-2.0", "bugs": { - "url": "https://github.com/graphs4value/issues" + "url": "https://github.com/graphs4value/refinery/issues" }, "homepage": "https://refinery.tools", "dependencies": { diff --git a/subprojects/frontend/prettier.config.cjs b/subprojects/frontend/prettier.config.cjs index 75f5c54d..6f9ff7ad 100644 --- a/subprojects/frontend/prettier.config.cjs +++ b/subprojects/frontend/prettier.config.cjs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + /** @type {import('prettier').Config} */ module.exports = { singleQuote: true, diff --git a/subprojects/frontend/public/apple-touch-icon.png.license b/subprojects/frontend/public/apple-touch-icon.png.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/public/apple-touch-icon.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/public/favicon-96x96.png.license b/subprojects/frontend/public/favicon-96x96.png.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/public/favicon-96x96.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/public/favicon.png.license b/subprojects/frontend/public/favicon.png.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/public/favicon.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/public/favicon.svg.license b/subprojects/frontend/public/favicon.svg.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/public/favicon.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/public/icon-192x192.png.license b/subprojects/frontend/public/icon-192x192.png.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/public/icon-192x192.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/public/icon-512x512.png.license b/subprojects/frontend/public/icon-512x512.png.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/public/icon-512x512.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/public/icon-any.svg.license b/subprojects/frontend/public/icon-any.svg.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/public/icon-any.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/public/mask-icon.svg.license b/subprojects/frontend/public/mask-icon.svg.license new file mode 100644 index 00000000..e5db6ccd --- /dev/null +++ b/subprojects/frontend/public/mask-icon.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + +SPDX-License-Identifier: EPL-2.0 diff --git a/subprojects/frontend/public/robots.txt b/subprojects/frontend/public/robots.txt index c2a49f4f..e7c73099 100644 --- a/subprojects/frontend/public/robots.txt +++ b/subprojects/frontend/public/robots.txt @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2021-2023 The Refinery Authors +# +# SPDX-License-Identifier: CC0-1.0 + User-agent: * Allow: / diff --git a/subprojects/frontend/src/App.tsx b/subprojects/frontend/src/App.tsx index cd394345..7f242529 100644 --- a/subprojects/frontend/src/App.tsx +++ b/subprojects/frontend/src/App.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import Box from '@mui/material/Box'; import CssBaseline from '@mui/material/CssBaseline'; import { throttle } from 'lodash-es'; diff --git a/subprojects/frontend/src/Loading.tsx b/subprojects/frontend/src/Loading.tsx index 489563e0..adee4f0e 100644 --- a/subprojects/frontend/src/Loading.tsx +++ b/subprojects/frontend/src/Loading.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import CircularProgress from '@mui/material/CircularProgress'; import { styled } from '@mui/material/styles'; diff --git a/subprojects/frontend/src/PWAStore.ts b/subprojects/frontend/src/PWAStore.ts index e9f99e2a..a1b3ffd9 100644 --- a/subprojects/frontend/src/PWAStore.ts +++ b/subprojects/frontend/src/PWAStore.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { makeAutoObservable, observable } from 'mobx'; import ms from 'ms'; // eslint-disable-next-line import/no-unresolved -- Importing virtual module. diff --git a/subprojects/frontend/src/Refinery.tsx b/subprojects/frontend/src/Refinery.tsx index f0162349..b5ff94e1 100644 --- a/subprojects/frontend/src/Refinery.tsx +++ b/subprojects/frontend/src/Refinery.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import Grow from '@mui/material/Grow'; import Stack from '@mui/material/Stack'; import { SnackbarProvider } from 'notistack'; diff --git a/subprojects/frontend/src/RootStore.ts b/subprojects/frontend/src/RootStore.ts index 2e76d66d..b84c0ce0 100644 --- a/subprojects/frontend/src/RootStore.ts +++ b/subprojects/frontend/src/RootStore.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { getLogger } from 'loglevel'; import { makeAutoObservable, runInAction } from 'mobx'; diff --git a/subprojects/frontend/src/RootStoreProvider.tsx b/subprojects/frontend/src/RootStoreProvider.tsx index 2c11a0f9..7cb89af1 100644 --- a/subprojects/frontend/src/RootStoreProvider.tsx +++ b/subprojects/frontend/src/RootStoreProvider.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { type ReactNode, createContext, useContext } from 'react'; import type RootStore from './RootStore'; diff --git a/subprojects/frontend/src/ToggleDarkModeButton.tsx b/subprojects/frontend/src/ToggleDarkModeButton.tsx index 59714f20..7a835e61 100644 --- a/subprojects/frontend/src/ToggleDarkModeButton.tsx +++ b/subprojects/frontend/src/ToggleDarkModeButton.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import DarkModeIcon from '@mui/icons-material/DarkMode'; import LightModeIcon from '@mui/icons-material/LightMode'; import IconButton from '@mui/material/IconButton'; diff --git a/subprojects/frontend/src/TopBar.tsx b/subprojects/frontend/src/TopBar.tsx index 5a825512..f2542b14 100644 --- a/subprojects/frontend/src/TopBar.tsx +++ b/subprojects/frontend/src/TopBar.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import GitHubIcon from '@mui/icons-material/GitHub'; import AppBar from '@mui/material/AppBar'; import Button from '@mui/material/Button'; diff --git a/subprojects/frontend/src/UpdateNotification.tsx b/subprojects/frontend/src/UpdateNotification.tsx index 5c8c2d01..d86c0703 100644 --- a/subprojects/frontend/src/UpdateNotification.tsx +++ b/subprojects/frontend/src/UpdateNotification.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import Button from '@mui/material/Button'; import { observer } from 'mobx-react-lite'; import { useEffect } from 'react'; diff --git a/subprojects/frontend/src/WindowControlsOverlayColor.tsx b/subprojects/frontend/src/WindowControlsOverlayColor.tsx index 14eda566..cfa468ea 100644 --- a/subprojects/frontend/src/WindowControlsOverlayColor.tsx +++ b/subprojects/frontend/src/WindowControlsOverlayColor.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { useTheme } from '@mui/material/styles'; import { useEffect } from 'react'; diff --git a/subprojects/frontend/src/editor/AnimatedButton.tsx b/subprojects/frontend/src/editor/AnimatedButton.tsx index f75d4617..dbbda618 100644 --- a/subprojects/frontend/src/editor/AnimatedButton.tsx +++ b/subprojects/frontend/src/editor/AnimatedButton.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import { styled, type SxProps, type Theme } from '@mui/material/styles'; diff --git a/subprojects/frontend/src/editor/ConnectButton.tsx b/subprojects/frontend/src/editor/ConnectButton.tsx index e2d251f3..eed6fbc7 100644 --- a/subprojects/frontend/src/editor/ConnectButton.tsx +++ b/subprojects/frontend/src/editor/ConnectButton.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import CloudIcon from '@mui/icons-material/Cloud'; import CloudOffIcon from '@mui/icons-material/CloudOff'; import SyncIcon from '@mui/icons-material/Sync'; diff --git a/subprojects/frontend/src/editor/ConnectionStatusNotification.tsx b/subprojects/frontend/src/editor/ConnectionStatusNotification.tsx index 9b27f45c..b7b962ab 100644 --- a/subprojects/frontend/src/editor/ConnectionStatusNotification.tsx +++ b/subprojects/frontend/src/editor/ConnectionStatusNotification.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import Button from '@mui/material/Button'; import { observer } from 'mobx-react-lite'; import { useEffect } from 'react'; diff --git a/subprojects/frontend/src/editor/DiagnosticValue.ts b/subprojects/frontend/src/editor/DiagnosticValue.ts index b4e0b165..20478262 100644 --- a/subprojects/frontend/src/editor/DiagnosticValue.ts +++ b/subprojects/frontend/src/editor/DiagnosticValue.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { Diagnostic } from '@codemirror/lint'; import { RangeValue } from '@codemirror/state'; diff --git a/subprojects/frontend/src/editor/EditorArea.tsx b/subprojects/frontend/src/editor/EditorArea.tsx index cfb988b2..905fa2ec 100644 --- a/subprojects/frontend/src/editor/EditorArea.tsx +++ b/subprojects/frontend/src/editor/EditorArea.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import Box from '@mui/material/Box'; import { useTheme } from '@mui/material/styles'; import { observer } from 'mobx-react-lite'; diff --git a/subprojects/frontend/src/editor/EditorButtons.tsx b/subprojects/frontend/src/editor/EditorButtons.tsx index 53b06e23..9b187e5c 100644 --- a/subprojects/frontend/src/editor/EditorButtons.tsx +++ b/subprojects/frontend/src/editor/EditorButtons.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { Diagnostic } from '@codemirror/lint'; import CheckIcon from '@mui/icons-material/Check'; import ErrorIcon from '@mui/icons-material/Error'; diff --git a/subprojects/frontend/src/editor/EditorPane.tsx b/subprojects/frontend/src/editor/EditorPane.tsx index f7f8241a..87f408fe 100644 --- a/subprojects/frontend/src/editor/EditorPane.tsx +++ b/subprojects/frontend/src/editor/EditorPane.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import Box from '@mui/material/Box'; import Skeleton from '@mui/material/Skeleton'; import Stack from '@mui/material/Stack'; diff --git a/subprojects/frontend/src/editor/EditorStore.ts b/subprojects/frontend/src/editor/EditorStore.ts index 0a0d885d..b98f085e 100644 --- a/subprojects/frontend/src/editor/EditorStore.ts +++ b/subprojects/frontend/src/editor/EditorStore.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { CompletionContext, CompletionResult, diff --git a/subprojects/frontend/src/editor/EditorTheme.ts b/subprojects/frontend/src/editor/EditorTheme.ts index 01b65a7e..023a8f73 100644 --- a/subprojects/frontend/src/editor/EditorTheme.ts +++ b/subprojects/frontend/src/editor/EditorTheme.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import errorSVG from '@material-icons/svg/svg/error/baseline.svg?raw'; import expandMoreSVG from '@material-icons/svg/svg/expand_more/baseline.svg?raw'; import infoSVG from '@material-icons/svg/svg/info/baseline.svg?raw'; diff --git a/subprojects/frontend/src/editor/GenerateButton.tsx b/subprojects/frontend/src/editor/GenerateButton.tsx index 2036fc28..3837ef8e 100644 --- a/subprojects/frontend/src/editor/GenerateButton.tsx +++ b/subprojects/frontend/src/editor/GenerateButton.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import DangerousOutlinedIcon from '@mui/icons-material/DangerousOutlined'; import PlayArrowIcon from '@mui/icons-material/PlayArrow'; import Button from '@mui/material/Button'; diff --git a/subprojects/frontend/src/editor/LintPanelStore.ts b/subprojects/frontend/src/editor/LintPanelStore.ts index 502f9c59..f81587fa 100644 --- a/subprojects/frontend/src/editor/LintPanelStore.ts +++ b/subprojects/frontend/src/editor/LintPanelStore.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { closeLintPanel, openLintPanel } from '@codemirror/lint'; import type EditorStore from './EditorStore'; diff --git a/subprojects/frontend/src/editor/PanelStore.ts b/subprojects/frontend/src/editor/PanelStore.ts index 4f827280..25ef8b6c 100644 --- a/subprojects/frontend/src/editor/PanelStore.ts +++ b/subprojects/frontend/src/editor/PanelStore.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { Command } from '@codemirror/view'; import { action, makeObservable, observable } from 'mobx'; diff --git a/subprojects/frontend/src/editor/SearchPanel.ts b/subprojects/frontend/src/editor/SearchPanel.ts index c9df41b7..b63d5eed 100644 --- a/subprojects/frontend/src/editor/SearchPanel.ts +++ b/subprojects/frontend/src/editor/SearchPanel.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { type EditorView, type Panel, diff --git a/subprojects/frontend/src/editor/SearchPanelPortal.tsx b/subprojects/frontend/src/editor/SearchPanelPortal.tsx index 5cf1c90e..b4b07c74 100644 --- a/subprojects/frontend/src/editor/SearchPanelPortal.tsx +++ b/subprojects/frontend/src/editor/SearchPanelPortal.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import Portal from '@mui/material/Portal'; import { observer } from 'mobx-react-lite'; diff --git a/subprojects/frontend/src/editor/SearchPanelStore.ts b/subprojects/frontend/src/editor/SearchPanelStore.ts index 65d595a8..6a97baf1 100644 --- a/subprojects/frontend/src/editor/SearchPanelStore.ts +++ b/subprojects/frontend/src/editor/SearchPanelStore.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { closeSearchPanel, findNext, diff --git a/subprojects/frontend/src/editor/SearchToolbar.tsx b/subprojects/frontend/src/editor/SearchToolbar.tsx index 54f3dba7..4ae7e893 100644 --- a/subprojects/frontend/src/editor/SearchToolbar.tsx +++ b/subprojects/frontend/src/editor/SearchToolbar.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import CloseIcon from '@mui/icons-material/Close'; import FindReplaceIcon from '@mui/icons-material/FindReplace'; import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; diff --git a/subprojects/frontend/src/editor/createEditorState.ts b/subprojects/frontend/src/editor/createEditorState.ts index ce1efa4f..4a8e9832 100644 --- a/subprojects/frontend/src/editor/createEditorState.ts +++ b/subprojects/frontend/src/editor/createEditorState.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { closeBrackets, closeBracketsKeymap, diff --git a/subprojects/frontend/src/editor/defineDecorationSetExtension.ts b/subprojects/frontend/src/editor/defineDecorationSetExtension.ts index d9c7bc7d..0887c92e 100644 --- a/subprojects/frontend/src/editor/defineDecorationSetExtension.ts +++ b/subprojects/frontend/src/editor/defineDecorationSetExtension.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { StateEffect, StateField, TransactionSpec } from '@codemirror/state'; import { EditorView, Decoration, DecorationSet } from '@codemirror/view'; diff --git a/subprojects/frontend/src/editor/exposeDiagnostics.ts b/subprojects/frontend/src/editor/exposeDiagnostics.ts index 82f24c93..c4dcbb87 100644 --- a/subprojects/frontend/src/editor/exposeDiagnostics.ts +++ b/subprojects/frontend/src/editor/exposeDiagnostics.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { setDiagnosticsEffect } from '@codemirror/lint'; import { StateField, diff --git a/subprojects/frontend/src/editor/findOccurrences.ts b/subprojects/frontend/src/editor/findOccurrences.ts index 08c078c2..00dffc96 100644 --- a/subprojects/frontend/src/editor/findOccurrences.ts +++ b/subprojects/frontend/src/editor/findOccurrences.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { type Range, RangeSet, diff --git a/subprojects/frontend/src/editor/indentationMarkerViewPlugin.ts b/subprojects/frontend/src/editor/indentationMarkerViewPlugin.ts index 730fa6e3..57a946d5 100644 --- a/subprojects/frontend/src/editor/indentationMarkerViewPlugin.ts +++ b/subprojects/frontend/src/editor/indentationMarkerViewPlugin.ts @@ -1,10 +1,16 @@ +/* + * Copyright (c) 2022 Replit + * Copyright (c) 2022-2023 The Refinery Authors + * + * SPDX-License-Identifier: MIT OR EPL-2.0 + */ + /** * @file CodeMirror plugin to highlight indentation * * This file is based on the * [@replit/codemirror-indentation-markers](https://github.com/replit/codemirror-indentation-markers) - * package, which is available under the - * [MIT License](https://github.com/replit/codemirror-indentation-markers/blob/543cc508ca5cef5d8350af23973eb1425e31525c/LICENSE). + * package. * * The highlighting heuristics were adjusted to make them more suitable * for logic programming. diff --git a/subprojects/frontend/src/editor/scrollbarViewPlugin.ts b/subprojects/frontend/src/editor/scrollbarViewPlugin.ts index f44034fd..878d369d 100644 --- a/subprojects/frontend/src/editor/scrollbarViewPlugin.ts +++ b/subprojects/frontend/src/editor/scrollbarViewPlugin.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { EditorSelection } from '@codemirror/state'; import { type EditorView, diff --git a/subprojects/frontend/src/editor/semanticHighlighting.ts b/subprojects/frontend/src/editor/semanticHighlighting.ts index 2c1bd67d..1f2e564c 100644 --- a/subprojects/frontend/src/editor/semanticHighlighting.ts +++ b/subprojects/frontend/src/editor/semanticHighlighting.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { RangeSet, type TransactionSpec } from '@codemirror/state'; import { Decoration } from '@codemirror/view'; diff --git a/subprojects/frontend/src/index.tsx b/subprojects/frontend/src/index.tsx index 29b2b196..cb11e6c3 100644 --- a/subprojects/frontend/src/index.tsx +++ b/subprojects/frontend/src/index.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { configure } from 'mobx'; import { type Root, createRoot } from 'react-dom/client'; diff --git a/subprojects/frontend/src/language/folding.ts b/subprojects/frontend/src/language/folding.ts index 4dabfa27..b4d4ca22 100644 --- a/subprojects/frontend/src/language/folding.ts +++ b/subprojects/frontend/src/language/folding.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { EditorState } from '@codemirror/state'; import type { SyntaxNode } from '@lezer/common'; diff --git a/subprojects/frontend/src/language/indentation.ts b/subprojects/frontend/src/language/indentation.ts index a0f7032d..8446d7fa 100644 --- a/subprojects/frontend/src/language/indentation.ts +++ b/subprojects/frontend/src/language/indentation.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2018-2021 by Marijn Haverbeke and others + * Copyright (C) 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: MIT OR EPL-2.0 + */ + import type { TreeIndentContext } from '@codemirror/language'; /** diff --git a/subprojects/frontend/src/language/problem.grammar b/subprojects/frontend/src/language/problem.grammar index 704badab..a7b1fb0a 100644 --- a/subprojects/frontend/src/language/problem.grammar +++ b/subprojects/frontend/src/language/problem.grammar @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + @detectDelim @external prop implicitCompletion from './props' diff --git a/subprojects/frontend/src/language/problemLanguageSupport.ts b/subprojects/frontend/src/language/problemLanguageSupport.ts index c3ae7ed9..2121e05f 100644 --- a/subprojects/frontend/src/language/problemLanguageSupport.ts +++ b/subprojects/frontend/src/language/problemLanguageSupport.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { foldInside, foldNodeProp, diff --git a/subprojects/frontend/src/language/props.ts b/subprojects/frontend/src/language/props.ts index 65392e75..aa67145a 100644 --- a/subprojects/frontend/src/language/props.ts +++ b/subprojects/frontend/src/language/props.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + /* eslint-disable import/prefer-default-export -- Lezer needs non-default exports */ import { NodeProp } from '@lezer/common'; diff --git a/subprojects/frontend/src/theme/ThemeProvider.tsx b/subprojects/frontend/src/theme/ThemeProvider.tsx index ff97d524..740e9562 100644 --- a/subprojects/frontend/src/theme/ThemeProvider.tsx +++ b/subprojects/frontend/src/theme/ThemeProvider.tsx @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { alpha, createTheme, diff --git a/subprojects/frontend/src/theme/ThemeStore.ts b/subprojects/frontend/src/theme/ThemeStore.ts index e09d8d99..7c657449 100644 --- a/subprojects/frontend/src/theme/ThemeStore.ts +++ b/subprojects/frontend/src/theme/ThemeStore.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { makeAutoObservable } from 'mobx'; export enum ThemePreference { diff --git a/subprojects/frontend/src/utils/CancelledError.ts b/subprojects/frontend/src/utils/CancelledError.ts index ee23676f..96b67af7 100644 --- a/subprojects/frontend/src/utils/CancelledError.ts +++ b/subprojects/frontend/src/utils/CancelledError.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + export default class CancelledError extends Error { constructor(message = 'Operation cancelled') { super(message); diff --git a/subprojects/frontend/src/utils/PendingTask.ts b/subprojects/frontend/src/utils/PendingTask.ts index d0b24c1f..80d1a346 100644 --- a/subprojects/frontend/src/utils/PendingTask.ts +++ b/subprojects/frontend/src/utils/PendingTask.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import TimeoutError from './TimeoutError'; import getLogger from './getLogger'; diff --git a/subprojects/frontend/src/utils/PriorityMutex.ts b/subprojects/frontend/src/utils/PriorityMutex.ts index 78736141..c1215c76 100644 --- a/subprojects/frontend/src/utils/PriorityMutex.ts +++ b/subprojects/frontend/src/utils/PriorityMutex.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import CancelledError from './CancelledError'; import PendingTask from './PendingTask'; import getLogger from './getLogger'; diff --git a/subprojects/frontend/src/utils/TimeoutError.ts b/subprojects/frontend/src/utils/TimeoutError.ts index eb800f40..21365502 100644 --- a/subprojects/frontend/src/utils/TimeoutError.ts +++ b/subprojects/frontend/src/utils/TimeoutError.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + export default class TimeoutError extends Error { constructor() { super('Operation timed out'); diff --git a/subprojects/frontend/src/utils/getLogger.ts b/subprojects/frontend/src/utils/getLogger.ts index 301fd76d..09b0b17f 100644 --- a/subprojects/frontend/src/utils/getLogger.ts +++ b/subprojects/frontend/src/utils/getLogger.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import styles, { type CSPair } from 'ansi-styles'; import log from 'loglevel'; import prefix from 'loglevel-plugin-prefix'; diff --git a/subprojects/frontend/src/utils/useDelayedSnackbar.ts b/subprojects/frontend/src/utils/useDelayedSnackbar.ts index 03ad6caa..3d6df3e3 100644 --- a/subprojects/frontend/src/utils/useDelayedSnackbar.ts +++ b/subprojects/frontend/src/utils/useDelayedSnackbar.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { useSnackbar, type SnackbarKey, diff --git a/subprojects/frontend/src/xtext/BackendConfig.ts b/subprojects/frontend/src/xtext/BackendConfig.ts index 41737c0b..4c7eac5f 100644 --- a/subprojects/frontend/src/xtext/BackendConfig.ts +++ b/subprojects/frontend/src/xtext/BackendConfig.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + /* eslint-disable @typescript-eslint/no-redeclare -- Declare types with their companion objects */ import { z } from 'zod'; diff --git a/subprojects/frontend/src/xtext/ContentAssistService.ts b/subprojects/frontend/src/xtext/ContentAssistService.ts index 78f61c06..fd30c4f9 100644 --- a/subprojects/frontend/src/xtext/ContentAssistService.ts +++ b/subprojects/frontend/src/xtext/ContentAssistService.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { Completion, CompletionContext, diff --git a/subprojects/frontend/src/xtext/HighlightingService.ts b/subprojects/frontend/src/xtext/HighlightingService.ts index a126ee40..447f1401 100644 --- a/subprojects/frontend/src/xtext/HighlightingService.ts +++ b/subprojects/frontend/src/xtext/HighlightingService.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type EditorStore from '../editor/EditorStore'; import type { IHighlightRange } from '../editor/semanticHighlighting'; diff --git a/subprojects/frontend/src/xtext/OccurrencesService.ts b/subprojects/frontend/src/xtext/OccurrencesService.ts index fc72ead2..c9c6c699 100644 --- a/subprojects/frontend/src/xtext/OccurrencesService.ts +++ b/subprojects/frontend/src/xtext/OccurrencesService.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { Transaction } from '@codemirror/state'; import { debounce } from 'lodash-es'; import ms from 'ms'; diff --git a/subprojects/frontend/src/xtext/UpdateService.ts b/subprojects/frontend/src/xtext/UpdateService.ts index 63e28652..ee5ebde2 100644 --- a/subprojects/frontend/src/xtext/UpdateService.ts +++ b/subprojects/frontend/src/xtext/UpdateService.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { ChangeDesc, Transaction } from '@codemirror/state'; import { debounce } from 'lodash-es'; import { nanoid } from 'nanoid'; diff --git a/subprojects/frontend/src/xtext/UpdateStateTracker.ts b/subprojects/frontend/src/xtext/UpdateStateTracker.ts index 5d4ce49e..4ce93ed6 100644 --- a/subprojects/frontend/src/xtext/UpdateStateTracker.ts +++ b/subprojects/frontend/src/xtext/UpdateStateTracker.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { type ChangeDesc, ChangeSet, diff --git a/subprojects/frontend/src/xtext/ValidationService.ts b/subprojects/frontend/src/xtext/ValidationService.ts index 72414590..64fb63eb 100644 --- a/subprojects/frontend/src/xtext/ValidationService.ts +++ b/subprojects/frontend/src/xtext/ValidationService.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { Diagnostic } from '@codemirror/lint'; import type EditorStore from '../editor/EditorStore'; diff --git a/subprojects/frontend/src/xtext/XtextClient.ts b/subprojects/frontend/src/xtext/XtextClient.ts index 14fb2430..e8181af0 100644 --- a/subprojects/frontend/src/xtext/XtextClient.ts +++ b/subprojects/frontend/src/xtext/XtextClient.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import type { CompletionContext, CompletionResult, diff --git a/subprojects/frontend/src/xtext/XtextWebSocketClient.ts b/subprojects/frontend/src/xtext/XtextWebSocketClient.ts index 6b734546..6bb7eec8 100644 --- a/subprojects/frontend/src/xtext/XtextWebSocketClient.ts +++ b/subprojects/frontend/src/xtext/XtextWebSocketClient.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import { createAtom, makeAutoObservable, observable } from 'mobx'; import ms from 'ms'; import { nanoid } from 'nanoid'; diff --git a/subprojects/frontend/src/xtext/fetchBackendConfig.ts b/subprojects/frontend/src/xtext/fetchBackendConfig.ts index 15e976d8..71ff2e63 100644 --- a/subprojects/frontend/src/xtext/fetchBackendConfig.ts +++ b/subprojects/frontend/src/xtext/fetchBackendConfig.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import BackendConfig, { ENDPOINT } from './BackendConfig'; export default async function fetchBackendConfig(): Promise { diff --git a/subprojects/frontend/src/xtext/webSocketMachine.ts b/subprojects/frontend/src/xtext/webSocketMachine.ts index fc53fef3..2fb1f52f 100644 --- a/subprojects/frontend/src/xtext/webSocketMachine.ts +++ b/subprojects/frontend/src/xtext/webSocketMachine.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import ms from 'ms'; import { actions, assign, createMachine } from 'xstate'; diff --git a/subprojects/frontend/src/xtext/xtextMessages.ts b/subprojects/frontend/src/xtext/xtextMessages.ts index ec7a2a31..bbbff064 100644 --- a/subprojects/frontend/src/xtext/xtextMessages.ts +++ b/subprojects/frontend/src/xtext/xtextMessages.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + /* eslint-disable @typescript-eslint/no-redeclare -- Declare types with their companion objects */ import { z } from 'zod'; diff --git a/subprojects/frontend/src/xtext/xtextServiceResults.ts b/subprojects/frontend/src/xtext/xtextServiceResults.ts index e93c6714..d3b467ad 100644 --- a/subprojects/frontend/src/xtext/xtextServiceResults.ts +++ b/subprojects/frontend/src/xtext/xtextServiceResults.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + /* eslint-disable @typescript-eslint/no-redeclare -- Declare types with their companion objects */ import { z } from 'zod'; diff --git a/subprojects/frontend/tsconfig.base.json b/subprojects/frontend/tsconfig.base.json index 30e707ae..58a2a6f2 100644 --- a/subprojects/frontend/tsconfig.base.json +++ b/subprojects/frontend/tsconfig.base.json @@ -1,3 +1,13 @@ +/* + * Copyright (c) Microsoft Corporation. + * Copyright (c) 2023 The Refinery Authors + * + * SPDX-License-Identifier: MIT OR EPL-2.0 + * + * This file is based on + * https://github.com/tsconfig/bases/blob/7db25a41bc5a9c0f66d91f6f3aa28438afcb2f18/bases/strictest.json + * but we moved it inside the project for better tooling support. + */ { "compilerOptions": { "strict": true, @@ -11,6 +21,8 @@ "noUncheckedIndexedAccess": true, "noUnusedLocals": true, "noUnusedParameters": true, + // "verbatimModuleSyntax" is incompatible with `import` syntax in modules + // with CommonJS import resolution, so we use "isolatedModules" only. "verbatimModuleSyntax": false, "isolatedModules": true, "checkJs": true, @@ -18,6 +30,7 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "useDefineForClassFields": true, + // Project-specific configuration below. "module": "es2022", "moduleResolution": "node", "incremental": true, diff --git a/subprojects/frontend/tsconfig.json b/subprojects/frontend/tsconfig.json index 35d0d164..06f6d8fe 100644 --- a/subprojects/frontend/tsconfig.json +++ b/subprojects/frontend/tsconfig.json @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ { "extends": "./tsconfig.base.json", "compilerOptions": { diff --git a/subprojects/frontend/tsconfig.node.json b/subprojects/frontend/tsconfig.node.json index cfa2da13..47feaf97 100644 --- a/subprojects/frontend/tsconfig.node.json +++ b/subprojects/frontend/tsconfig.node.json @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ { "extends": "./tsconfig.base.json", "compilerOptions": { diff --git a/subprojects/frontend/tsconfig.shared.json b/subprojects/frontend/tsconfig.shared.json index f7b56a1d..154fe122 100644 --- a/subprojects/frontend/tsconfig.shared.json +++ b/subprojects/frontend/tsconfig.shared.json @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ { "extends": "./tsconfig.base.json", "compilerOptions": { @@ -6,6 +11,6 @@ "types": [], }, "include": [ - "src/xtext/BackendConfig.ts", + "src/xtext/BackendConfig.ts" ] } diff --git a/subprojects/frontend/types/ImportMeta.d.ts b/subprojects/frontend/types/ImportMeta.d.ts index c32b48f5..f5a32ef1 100644 --- a/subprojects/frontend/types/ImportMeta.d.ts +++ b/subprojects/frontend/types/ImportMeta.d.ts @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors + * Copyright (c) 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: MIT OR EPL-2.0 + */ + interface ImportMeta { env: { BASE_URL: string; diff --git a/subprojects/frontend/types/grammar.d.ts b/subprojects/frontend/types/grammar.d.ts index 1480085b..e7a7eebf 100644 --- a/subprojects/frontend/types/grammar.d.ts +++ b/subprojects/frontend/types/grammar.d.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2018 by Marijn Haverbeke and others + * Copyright (C) 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: MIT OR EPL-2.0 + */ + declare module '*.grammar' { import type { LRParser } from '@lezer/lr'; diff --git a/subprojects/frontend/types/node/@lezer-generator-rollup.d.ts b/subprojects/frontend/types/node/@lezer-generator-rollup.d.ts index 9c1ff03e..4ef9f4e3 100644 --- a/subprojects/frontend/types/node/@lezer-generator-rollup.d.ts +++ b/subprojects/frontend/types/node/@lezer-generator-rollup.d.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2018 by Marijn Haverbeke and others + * Copyright (C) 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: MIT OR EPL-2.0 + */ + // We have to explicitly redeclare the type of the `./rollup` ESM export of `@lezer/generator`, // because TypeScript can't find it on its own even with `"moduleResolution": "Node16"`. declare module '@lezer/generator/rollup' { diff --git a/subprojects/frontend/types/windowControlsOverlay.d.ts b/subprojects/frontend/types/windowControlsOverlay.d.ts index d8f3182f..2513d620 100644 --- a/subprojects/frontend/types/windowControlsOverlay.d.ts +++ b/subprojects/frontend/types/windowControlsOverlay.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + interface WindowControlsOverlayGeometryChangeEvent extends Event { titlebarAreaRect: DOMRect; diff --git a/subprojects/frontend/vite.config.ts b/subprojects/frontend/vite.config.ts index cd9993cc..9e08ccc4 100644 --- a/subprojects/frontend/vite.config.ts +++ b/subprojects/frontend/vite.config.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors + * + * SPDX-License-Identifier: EPL-2.0 + */ + import path from 'node:path'; import { fileURLToPath } from 'node:url'; -- cgit v1.2.3-54-g00ecf