Skip to content

Commit

Permalink
Add copyright headers (or fix them). (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch authored Sep 19, 2024
1 parent 067c59c commit b70ffeb
Show file tree
Hide file tree
Showing 45 changed files with 167 additions and 13 deletions.
4 changes: 4 additions & 0 deletions cypress/integration/todo.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

/// <reference types="cypress" />

// Welcome to Cypress!
Expand Down
4 changes: 4 additions & 0 deletions src/@types/crisp.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

export declare global {
interface Window {
CRISP_WEBSITE_ID?: string;
Expand Down
4 changes: 4 additions & 0 deletions src/@types/emotion.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { Theme as MTheme } from "@material-ui/core/styles";

declare module "@emotion/react" {
Expand Down
4 changes: 4 additions & 0 deletions src/@types/theme.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

export declare module "@material-ui/core/styles" {
interface Theme {
layout: {
Expand Down
4 changes: 3 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import styled from "@emotion/styled";
import { CircularProgress } from "@material-ui/core";
Expand Down
4 changes: 4 additions & 0 deletions src/assets/theme.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { createMuiTheme } from "@material-ui/core";

const layout = {
Expand Down
4 changes: 3 additions & 1 deletion src/components/ErrorPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
createStyles,
Expand Down
4 changes: 4 additions & 0 deletions src/components/ThemeProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
import {
Theme,
Expand Down
4 changes: 4 additions & 0 deletions src/components/doc/Classes.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import React from "react";
import { classUrlFromRef } from "../../misc/util";
import { Class } from "../../model/model";
Expand Down
4 changes: 4 additions & 0 deletions src/components/doc/Fields.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import React from "react";
import { getFieldId } from "../../misc/util";
import { Field } from "../../model/model";
Expand Down
4 changes: 3 additions & 1 deletion src/components/doc/Functions.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { makeStyles } from "@material-ui/core";
import { ClassNameMap } from "@material-ui/core/styles/withStyles";
Expand Down
4 changes: 4 additions & 0 deletions src/components/doc/Globals.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import React from "react";
import { Global } from "../../model/model";
import DetailsList from "../general/DetailsList";
Expand Down
4 changes: 3 additions & 1 deletion src/components/doc/Toitdocs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { makeStyles, Typography } from "@material-ui/core";
import { Variant } from "@material-ui/core/styles/createTypography";
Expand Down
4 changes: 4 additions & 0 deletions src/components/doc/Type.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import React, { Component } from "react";
import { Link } from "react-router-dom";
import { classUrlFromRef } from "../../misc/util";
Expand Down
4 changes: 4 additions & 0 deletions src/components/general/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import styled from "@emotion/styled";
import "codemirror/lib/codemirror.css";
import React from "react";
Expand Down
4 changes: 4 additions & 0 deletions src/components/general/DetailsList.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import styled from "@emotion/styled";
import { Divider, makeStyles, Typography } from "@material-ui/core";
import React from "react";
Expand Down
4 changes: 4 additions & 0 deletions src/components/general/ExternalLink.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import React from "react";
import "./ExternalLink.css";

Expand Down
4 changes: 4 additions & 0 deletions src/components/general/ListItemLink.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { ListItem, ListItemText, makeStyles } from "@material-ui/core";
import React from "react";
import { Link } from "react-router-dom";
Expand Down
4 changes: 4 additions & 0 deletions src/components/general/TablePanel.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
Box,
createStyles,
Expand Down
4 changes: 3 additions & 1 deletion src/components/header/HeaderBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import styled from "@emotion/styled";
import { AppBar } from "@material-ui/core";
Expand Down
4 changes: 4 additions & 0 deletions src/components/header/SearchBar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
Box,
createStyles,
Expand Down
4 changes: 4 additions & 0 deletions src/components/header/SearchResults.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
List,
ListItem,
Expand Down
4 changes: 4 additions & 0 deletions src/components/header/SearchView.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
ClickAwayListener,
createStyles,
Expand Down
4 changes: 3 additions & 1 deletion src/components/main/ClassInfoView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import Typography from "@material-ui/core/Typography";
import React, { Component } from "react";
Expand Down
4 changes: 3 additions & 1 deletion src/components/main/ClassOverview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
createStyles,
Expand Down
4 changes: 3 additions & 1 deletion src/components/main/LibraryInfoView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { Theme } from "@material-ui/core";
import {
Expand Down
4 changes: 3 additions & 1 deletion src/components/main/SummaryView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2021 Toitware ApS. All rights reserved.
// Copyright (C) 2021 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { Theme, Typography } from "@material-ui/core";
import {
Expand Down
4 changes: 3 additions & 1 deletion src/components/main/WelcomeFolderPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
createStyles,
Expand Down
4 changes: 3 additions & 1 deletion src/components/main/WelcomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
createStyles,
Expand Down
4 changes: 4 additions & 0 deletions src/components/navigation/LibraryNavigation.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { createStyles, Theme } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import React from "react";
Expand Down
4 changes: 4 additions & 0 deletions src/components/navigation/NavigationView.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import styled from "@emotion/styled";
import { Typography } from "@material-ui/core";
import React from "react";
Expand Down
4 changes: 4 additions & 0 deletions src/containers/header/Search.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { connect } from "react-redux";
import SearchView, { SearchProps } from "../../components/header/SearchView";
import { RootState } from "../../redux/doc";
Expand Down
4 changes: 4 additions & 0 deletions src/containers/main/ClassInfo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { connect } from "react-redux";
import ClassInfoView, {
ClassInfoProps,
Expand Down
4 changes: 4 additions & 0 deletions src/containers/main/LibraryInfo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { connect } from "react-redux";
import LibraryInfoView, {
LibraryInfoProps,
Expand Down
4 changes: 3 additions & 1 deletion src/containers/main/Summary.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2021 Toitware ApS. All rights reserved.
// Copyright (C) 2021 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { connect } from "react-redux";
import SummaryView, {
Expand Down
4 changes: 4 additions & 0 deletions src/generator/convert.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { containsPkgs, containsSdk } from "../App";
import {
CATEGORY_FUNDAMENTAL,
Expand Down
4 changes: 4 additions & 0 deletions src/generator/doc.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

export const OBJECT_TYPE_SECTION = "section";
export const OBJECT_TYPE_STATEMENT_CODE_SECTION = "statement_code_section";
export const OBJECT_TYPE_STATEMENT_ITEMIZED = "statement_itemized";
Expand Down
4 changes: 4 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import React from "react";
import { render } from "react-dom";
import { Provider } from "react-redux";
Expand Down
4 changes: 4 additions & 0 deletions src/misc/util.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
Class,
Function,
Expand Down
4 changes: 4 additions & 0 deletions src/model/model.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
ClassMemberRef,
LinkRef,
Expand Down
4 changes: 4 additions & 0 deletions src/model/reference.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { Shape } from "./model";

// Used for referencing libraries
Expand Down
4 changes: 3 additions & 1 deletion src/model/search.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (C) 2020 Toitware ApS. All rights reserved.
// Copyright (C) 2020 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import {
classUrlFromRef,
Expand Down
4 changes: 4 additions & 0 deletions src/react-app-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

/// <reference types="react-scripts" />
4 changes: 4 additions & 0 deletions src/redux/doc.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import {
ViewMode,
Expand Down
4 changes: 4 additions & 0 deletions src/serviceWorker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (C) 2024 Toitware ApS.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.

// This optional code is used to register a service worker.
// register() is not called by default.

Expand Down

0 comments on commit b70ffeb

Please sign in to comment.