Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
7 changes: 7 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -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

/**
Expand Down
7 changes: 7 additions & 0 deletions src/__tests__/Welcome.test.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 7 additions & 0 deletions src/api/message.js
Original file line number Diff line number Diff line change
@@ -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
*/
Expand Down
7 changes: 7 additions & 0 deletions src/components/footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -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 = () => {
Expand Down
9 changes: 8 additions & 1 deletion src/components/footer/footer.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/components/nav/Nav.jsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
7 changes: 7 additions & 0 deletions src/components/welcomeHeader/WelcomeHeader.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 7 additions & 0 deletions src/components/welcomeHeader/welcomeHeader.scss
Original file line number Diff line number Diff line change
@@ -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 *;
Expand Down
7 changes: 7 additions & 0 deletions src/components/wrapper/PageWrapper.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 7 additions & 0 deletions src/entry-client.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 7 additions & 0 deletions src/entry-server.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 7 additions & 0 deletions src/hooks/useThemes.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
7 changes: 7 additions & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
@@ -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'
);
Expand Down
7 changes: 7 additions & 0 deletions src/pages/dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
7 changes: 7 additions & 0 deletions src/pages/dashboard/dashboard.scss
Original file line number Diff line number Diff line change
@@ -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 *;
Expand Down
7 changes: 7 additions & 0 deletions src/pages/welcome/Welcome.jsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
7 changes: 7 additions & 0 deletions src/pages/welcome/welcome.scss
Original file line number Diff line number Diff line change
@@ -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 *;
Expand Down
7 changes: 7 additions & 0 deletions src/routes/index.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 7 additions & 0 deletions src/routes/routes.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
7 changes: 7 additions & 0 deletions src/server.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 7 additions & 0 deletions src/service/message.js
Original file line number Diff line number Diff line change
@@ -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
*/
Expand Down
7 changes: 7 additions & 0 deletions src/test/networking.js
Original file line number Diff line number Diff line change
@@ -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();

Expand Down
7 changes: 7 additions & 0 deletions src/test/router.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down
7 changes: 7 additions & 0 deletions src/test/server.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 7 additions & 0 deletions src/test/setup.js
Original file line number Diff line number Diff line change
@@ -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().
Expand Down
7 changes: 7 additions & 0 deletions src/test/test-utils.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 7 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down