diff --git a/eslint.config.js b/eslint.config.js index 3b065b8..145378e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + /* * This config file started as the base config file included by Vite when creating a new React application March 24th 2025. * Where it differs from this default will be noted in comments. diff --git a/prettier.config.js b/prettier.config.js index 62e872b..281ad61 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + // prettier.config.js, .prettierrc.js, prettier.config.mjs, or .prettierrc.mjs /** diff --git a/src/__tests__/Welcome.test.jsx b/src/__tests__/Welcome.test.jsx index 8152543..526f865 100644 --- a/src/__tests__/Welcome.test.jsx +++ b/src/__tests__/Welcome.test.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import { test, expect } from 'vitest'; // eslint-disable-next-line import/namespace import { screen } from '@testing-library/react'; diff --git a/src/api/message.js b/src/api/message.js index 06d8e71..953f24f 100644 --- a/src/api/message.js +++ b/src/api/message.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * This file contains client-side API functions that call our express.js backend routes */ diff --git a/src/components/footer/Footer.jsx b/src/components/footer/Footer.jsx index 7a3f075..9225592 100644 --- a/src/components/footer/Footer.jsx +++ b/src/components/footer/Footer.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import { AspectRatio, Column } from '@carbon/react'; export const Footer = () => { diff --git a/src/components/footer/footer.scss b/src/components/footer/footer.scss index b71eb85..0fd81fe 100644 --- a/src/components/footer/footer.scss +++ b/src/components/footer/footer.scss @@ -1,4 +1,11 @@ -@use '@carbon/react/scss/spacing' as *; +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + + @use '@carbon/react/scss/spacing' as *; .cs--footer { padding-block-start: $spacing-12; diff --git a/src/components/nav/Nav.jsx b/src/components/nav/Nav.jsx index 3712739..ce0b5d6 100644 --- a/src/components/nav/Nav.jsx +++ b/src/components/nav/Nav.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import { useState } from 'react'; import { Header, diff --git a/src/components/welcomeHeader/WelcomeHeader.jsx b/src/components/welcomeHeader/WelcomeHeader.jsx index 96dbd5c..71e237e 100644 --- a/src/components/welcomeHeader/WelcomeHeader.jsx +++ b/src/components/welcomeHeader/WelcomeHeader.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import { AspectRatio, Button, Column, Grid } from '@carbon/react'; import { ArrowRight } from '@carbon/icons-react'; diff --git a/src/components/welcomeHeader/welcomeHeader.scss b/src/components/welcomeHeader/welcomeHeader.scss index 593da5b..c4e7e08 100644 --- a/src/components/welcomeHeader/welcomeHeader.scss +++ b/src/components/welcomeHeader/welcomeHeader.scss @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + @use '@carbon/react/scss/spacing' as *; @use '@carbon/react/scss/type' as *; @use '@carbon/react/scss/theme' as *; diff --git a/src/components/wrapper/PageWrapper.jsx b/src/components/wrapper/PageWrapper.jsx index 19a3862..a12b9fa 100644 --- a/src/components/wrapper/PageWrapper.jsx +++ b/src/components/wrapper/PageWrapper.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import { GlobalTheme, Theme } from '@carbon/react'; import { useThemes } from '../../hooks/useThemes'; diff --git a/src/entry-client.jsx b/src/entry-client.jsx index c3411e3..734d971 100644 --- a/src/entry-client.jsx +++ b/src/entry-client.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + // Third-party imports import { StrictMode } from 'react'; import { hydrateRoot } from 'react-dom/client'; diff --git a/src/entry-server.jsx b/src/entry-server.jsx index defad95..acb4e61 100644 --- a/src/entry-server.jsx +++ b/src/entry-server.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + // Third-party imports import { StrictMode } from 'react'; import { renderToPipeableStream } from 'react-dom/server'; diff --git a/src/hooks/useThemes.js b/src/hooks/useThemes.js index ad058ec..c2f9f99 100644 --- a/src/hooks/useThemes.js +++ b/src/hooks/useThemes.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import { usePrefersDarkScheme } from '@carbon/react'; import { useEffect, useState } from 'react'; diff --git a/src/index.scss b/src/index.scss index bb6a40e..6a12aad 100644 --- a/src/index.scss +++ b/src/index.scss @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + @use '@carbon/react' with ( $font-path: '@ibm/plex' ); diff --git a/src/pages/dashboard/Dashboard.jsx b/src/pages/dashboard/Dashboard.jsx index 4fa6331..a3ae330 100644 --- a/src/pages/dashboard/Dashboard.jsx +++ b/src/pages/dashboard/Dashboard.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Suspense } from 'react'; import { Column, Grid, Tile } from '@carbon/react'; diff --git a/src/pages/dashboard/dashboard.scss b/src/pages/dashboard/dashboard.scss index 8218dcc..b3ec694 100644 --- a/src/pages/dashboard/dashboard.scss +++ b/src/pages/dashboard/dashboard.scss @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + @use '@carbon/grid' as *; @use '@carbon/layout' as *; @use '@carbon/type' as *; diff --git a/src/pages/welcome/Welcome.jsx b/src/pages/welcome/Welcome.jsx index bd15af2..ad36a43 100644 --- a/src/pages/welcome/Welcome.jsx +++ b/src/pages/welcome/Welcome.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import { CodeSnippet, Column, Grid, Tile } from '@carbon/react'; import { Suspense, useEffect, useState } from 'react'; diff --git a/src/pages/welcome/welcome.scss b/src/pages/welcome/welcome.scss index 2b0e6eb..04a3970 100644 --- a/src/pages/welcome/welcome.scss +++ b/src/pages/welcome/welcome.scss @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + @use '@carbon/react/scss/spacing' as *; @use '@carbon/react/scss/type' as *; @use '@carbon/react/scss/breakpoint' as *; diff --git a/src/routes/index.jsx b/src/routes/index.jsx index fc50a63..23445cd 100644 --- a/src/routes/index.jsx +++ b/src/routes/index.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Route, Routes } from 'react-router'; import Welcome from '../pages/welcome/Welcome.jsx'; diff --git a/src/routes/routes.js b/src/routes/routes.js index 8017307..34ae075 100644 --- a/src/routes/routes.js +++ b/src/routes/routes.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + // eslint-disable-next-line import/namespace import { getMessage } from '../service/message.js'; diff --git a/src/server.js b/src/server.js index 27aec63..4b56b2e 100644 --- a/src/server.js +++ b/src/server.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import fs from 'node:fs/promises'; import express from 'express'; import { Transform } from 'node:stream'; diff --git a/src/service/message.js b/src/service/message.js index af20330..f611e0c 100644 --- a/src/service/message.js +++ b/src/service/message.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * This file contains the functions that do async network requests */ diff --git a/src/test/networking.js b/src/test/networking.js index ecacef4..11f07d0 100644 --- a/src/test/networking.js +++ b/src/test/networking.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + export const getNetworking = () => { const runningRequests = new Set(); diff --git a/src/test/router.js b/src/test/router.js index 50f2356..6b9f9a7 100644 --- a/src/test/router.js +++ b/src/test/router.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import { http } from 'msw'; export const getRouter = (mocks, networking) => { diff --git a/src/test/server.js b/src/test/server.js index 0767630..2dc7a41 100644 --- a/src/test/server.js +++ b/src/test/server.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + /* eslint-disable */ import { setupServer } from 'msw/node'; import { getNetworking } from './networking'; diff --git a/src/test/setup.js b/src/test/setup.js index e719a25..7faa37e 100644 --- a/src/test/setup.js +++ b/src/test/setup.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + // Mocking methods which are not implemented in JSDOM // If some code uses a method which JSDOM (the DOM implementation used by Jest) hasn't implemented yet, // testing it is not easily possible. This is e.g. the case with window.matchMedia(). diff --git a/src/test/test-utils.jsx b/src/test/test-utils.jsx index 3bd7b3b..d8d3238 100644 --- a/src/test/test-utils.jsx +++ b/src/test/test-utils.jsx @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + // eslint-disable-next-line import/namespace import { render as rtlRender } from '@testing-library/react'; import { BrowserRouter } from 'react-router'; diff --git a/vite.config.js b/vite.config.js index 2d11502..98e9c6f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,3 +1,10 @@ +/** + * Copyright IBM Corp. 2025 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + import react from '@vitejs/plugin-react-swc'; import { defineConfig } from 'vite';