From bd4bf93d4a2d4de03ac1de1749325f57cad32e4a Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 20 Aug 2024 17:01:29 -0700 Subject: [PATCH] Update copyright indicators on a bunch of files (#255) --- db/db.go | 2 +- emain/updater.ts | 3 +++ frontend/app/element/button.tsx | 3 +++ frontend/app/element/magnify.less | 3 +++ frontend/app/element/magnify.stories.tsx | 3 +++ frontend/app/element/magnify.tsx | 3 +++ frontend/app/element/typingindicator.less | 3 +++ frontend/app/element/typingindicator.tsx | 3 +++ frontend/app/hook/useHeight.tsx | 3 +++ frontend/app/hook/useLongClick.tsx | 3 +++ frontend/app/hook/useWidth.tsx | 3 +++ frontend/app/modals/about.tsx | 3 +++ frontend/app/modals/modal.tsx | 2 +- frontend/app/modals/modalregistry.tsx | 2 +- frontend/app/modals/tos.less | 3 +++ frontend/app/reset.less | 3 +++ frontend/app/store/modalmodel.ts | 2 +- frontend/app/tab/tabcontent.tsx | 2 +- frontend/app/view/plotview/plotview.less | 3 +++ frontend/app/view/plotview/plotview.tsx | 3 +++ frontend/layout/lib/layoutAtom.ts | 5 +++-- frontend/layout/lib/layoutModel.ts | 3 +++ frontend/layout/lib/layoutModelHooks.ts | 3 +++ frontend/layout/lib/nodeRefMap.ts | 3 +++ pkg/util/dbutil/dbmappable.go | 2 +- pkg/util/dbutil/dbutil.go | 2 +- pkg/util/shellutil/shellutil.go | 2 +- pkg/wcloud/wcloud.go | 2 +- pkg/wcloud/wclouddata.go | 2 +- 29 files changed, 67 insertions(+), 12 deletions(-) diff --git a/db/db.go b/db/db.go index 3dfaf3fb8..d2a3604b8 100644 --- a/db/db.go +++ b/db/db.go @@ -1,4 +1,4 @@ -// Copyright 2023, Command Line Inc. +// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 package db diff --git a/emain/updater.ts b/emain/updater.ts index c46dcd7ca..bf65e7e26 100644 --- a/emain/updater.ts +++ b/emain/updater.ts @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import { isDev } from "@/util/isdev"; import * as electron from "electron"; import { autoUpdater } from "electron-updater"; diff --git a/frontend/app/element/button.tsx b/frontend/app/element/button.tsx index ef650d1c0..4dba8f416 100644 --- a/frontend/app/element/button.tsx +++ b/frontend/app/element/button.tsx @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import clsx from "clsx"; import React from "react"; import "./button.less"; diff --git a/frontend/app/element/magnify.less b/frontend/app/element/magnify.less index e288333c9..47d871542 100644 --- a/frontend/app/element/magnify.less +++ b/frontend/app/element/magnify.less @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + .magnify-icon { display: inline-block; width: 15px; diff --git a/frontend/app/element/magnify.stories.tsx b/frontend/app/element/magnify.stories.tsx index 5e52da4e6..8244feae4 100644 --- a/frontend/app/element/magnify.stories.tsx +++ b/frontend/app/element/magnify.stories.tsx @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import type { Meta, StoryObj } from "@storybook/react"; import { MagnifyIcon } from "./magnify"; diff --git a/frontend/app/element/magnify.tsx b/frontend/app/element/magnify.tsx index f6ceadeb0..7ccbb3e0f 100644 --- a/frontend/app/element/magnify.tsx +++ b/frontend/app/element/magnify.tsx @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import clsx from "clsx"; import MagnifySVG from "../asset/magnify.svg"; import "./magnify.less"; diff --git a/frontend/app/element/typingindicator.less b/frontend/app/element/typingindicator.less index b12a12f3d..bf7474013 100644 --- a/frontend/app/element/typingindicator.less +++ b/frontend/app/element/typingindicator.less @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + @dot-width: 11px; @dot-color: var(--success-color); @speed: 1.5s; diff --git a/frontend/app/element/typingindicator.tsx b/frontend/app/element/typingindicator.tsx index 07bdc1e1d..1f63d7676 100644 --- a/frontend/app/element/typingindicator.tsx +++ b/frontend/app/element/typingindicator.tsx @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import { clsx } from "clsx"; import "./typingindicator.less"; diff --git a/frontend/app/hook/useHeight.tsx b/frontend/app/hook/useHeight.tsx index 6223afabb..74791d0fc 100644 --- a/frontend/app/hook/useHeight.tsx +++ b/frontend/app/hook/useHeight.tsx @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import debounce from "lodash.debounce"; import { useCallback, useEffect, useState } from "react"; diff --git a/frontend/app/hook/useLongClick.tsx b/frontend/app/hook/useLongClick.tsx index 54f1cd4a3..21de895ba 100644 --- a/frontend/app/hook/useLongClick.tsx +++ b/frontend/app/hook/useLongClick.tsx @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import { useCallback, useEffect, useRef, useState } from "react"; export const useLongClick = (ref, onClick, onLongClick, ms = 300) => { diff --git a/frontend/app/hook/useWidth.tsx b/frontend/app/hook/useWidth.tsx index 68d0d204c..3eb7eb74c 100644 --- a/frontend/app/hook/useWidth.tsx +++ b/frontend/app/hook/useWidth.tsx @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import debounce from "lodash.debounce"; import { useCallback, useEffect, useState } from "react"; diff --git a/frontend/app/modals/about.tsx b/frontend/app/modals/about.tsx index de4b8c928..967867fe0 100644 --- a/frontend/app/modals/about.tsx +++ b/frontend/app/modals/about.tsx @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import Logo from "@/app/asset/logo.svg"; import { LinkButton } from "@/app/element/linkbutton"; import { modalsModel } from "@/app/store/modalmodel"; diff --git a/frontend/app/modals/modal.tsx b/frontend/app/modals/modal.tsx index fca72e697..1b4c591cf 100644 --- a/frontend/app/modals/modal.tsx +++ b/frontend/app/modals/modal.tsx @@ -1,4 +1,4 @@ -// Copyright 2023, Command Line Inc. +// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 import { Button } from "@/app/element/button"; diff --git a/frontend/app/modals/modalregistry.tsx b/frontend/app/modals/modalregistry.tsx index be9d0b71e..f77d790f2 100644 --- a/frontend/app/modals/modalregistry.tsx +++ b/frontend/app/modals/modalregistry.tsx @@ -1,4 +1,4 @@ -// Copyright 2023, Command Line Inc. +// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 import { AboutModal } from "./about"; diff --git a/frontend/app/modals/tos.less b/frontend/app/modals/tos.less index 18f2ca707..9e613fd7b 100644 --- a/frontend/app/modals/tos.less +++ b/frontend/app/modals/tos.less @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + .tos-modal { width: 640px; border-radius: 10px; diff --git a/frontend/app/reset.less b/frontend/app/reset.less index 6219b111f..aa0063590 100644 --- a/frontend/app/reset.less +++ b/frontend/app/reset.less @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + *, *::before, *::after { diff --git a/frontend/app/store/modalmodel.ts b/frontend/app/store/modalmodel.ts index 9003c2516..68b944c45 100644 --- a/frontend/app/store/modalmodel.ts +++ b/frontend/app/store/modalmodel.ts @@ -1,4 +1,4 @@ -// Copyright 2023, Command Line Inc. +// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 import * as jotai from "jotai"; diff --git a/frontend/app/tab/tabcontent.tsx b/frontend/app/tab/tabcontent.tsx index fb2b38b1e..a1449dc5b 100644 --- a/frontend/app/tab/tabcontent.tsx +++ b/frontend/app/tab/tabcontent.tsx @@ -1,4 +1,4 @@ -// Copyright 2023, Command Line Inc. +// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 import { Block } from "@/app/block/block"; diff --git a/frontend/app/view/plotview/plotview.less b/frontend/app/view/plotview/plotview.less index 616fd714d..9f12d37a4 100644 --- a/frontend/app/view/plotview/plotview.less +++ b/frontend/app/view/plotview/plotview.less @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + .plot-view { width: 100%; diff --git a/frontend/app/view/plotview/plotview.tsx b/frontend/app/view/plotview/plotview.tsx index e49fbc9f9..077af2659 100644 --- a/frontend/app/view/plotview/plotview.tsx +++ b/frontend/app/view/plotview/plotview.tsx @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import { Button } from "@/element/button"; import { WaveModal } from "@/element/modal"; import * as Plot from "@observablehq/plot"; diff --git a/frontend/layout/lib/layoutAtom.ts b/frontend/layout/lib/layoutAtom.ts index 1599a15f7..5bca48168 100644 --- a/frontend/layout/lib/layoutAtom.ts +++ b/frontend/layout/lib/layoutAtom.ts @@ -1,10 +1,11 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import { WOS } from "@/app/store/global"; import { Atom, atom, Getter } from "jotai"; import { LayoutTreeState, WritableLayoutTreeStateAtom } from "./types"; const layoutStateAtomMap: WeakMap, WritableLayoutTreeStateAtom> = new WeakMap(); -// const layoutStateLoadingAtomMap: WeakMap, Atom> = new WeakMap(); -// const layoutStateAtomMap function getLayoutStateAtomFromTab(tabAtom: Atom, get: Getter): WritableWaveObjectAtom { const tabData = get(tabAtom); diff --git a/frontend/layout/lib/layoutModel.ts b/frontend/layout/lib/layoutModel.ts index d771b4d3f..e5820ef58 100644 --- a/frontend/layout/lib/layoutModel.ts +++ b/frontend/layout/lib/layoutModel.ts @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import { atomWithThrottle, boundNumber } from "@/util/util"; import { Atom, atom, Getter, PrimitiveAtom, Setter } from "jotai"; import { splitAtom } from "jotai/utils"; diff --git a/frontend/layout/lib/layoutModelHooks.ts b/frontend/layout/lib/layoutModelHooks.ts index 2b6c3dc47..5cdbb01af 100644 --- a/frontend/layout/lib/layoutModelHooks.ts +++ b/frontend/layout/lib/layoutModelHooks.ts @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + import { globalStore, WOS } from "@/app/store/global"; import useResizeObserver from "@react-hook/resize-observer"; import { Atom, useAtomValue } from "jotai"; diff --git a/frontend/layout/lib/nodeRefMap.ts b/frontend/layout/lib/nodeRefMap.ts index e6ec6cc3a..e00402372 100644 --- a/frontend/layout/lib/nodeRefMap.ts +++ b/frontend/layout/lib/nodeRefMap.ts @@ -1,3 +1,6 @@ +// Copyright 2024, Command Line Inc. +// SPDX-License-Identifier: Apache-2.0 + export class NodeRefMap { private map: Map> = new Map(); generation: number = 0; diff --git a/pkg/util/dbutil/dbmappable.go b/pkg/util/dbutil/dbmappable.go index ee9080369..7a23ca136 100644 --- a/pkg/util/dbutil/dbmappable.go +++ b/pkg/util/dbutil/dbmappable.go @@ -1,4 +1,4 @@ -// Copyright 2023, Command Line Inc. +// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 package dbutil diff --git a/pkg/util/dbutil/dbutil.go b/pkg/util/dbutil/dbutil.go index 6edb5cbd8..42dd9bc0f 100644 --- a/pkg/util/dbutil/dbutil.go +++ b/pkg/util/dbutil/dbutil.go @@ -1,4 +1,4 @@ -// Copyright 2023, Command Line Inc. +// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 package dbutil diff --git a/pkg/util/shellutil/shellutil.go b/pkg/util/shellutil/shellutil.go index 035483bd5..fa832ea15 100644 --- a/pkg/util/shellutil/shellutil.go +++ b/pkg/util/shellutil/shellutil.go @@ -1,4 +1,4 @@ -// Copyright 2023, Command Line Inc. +// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 package shellutil diff --git a/pkg/wcloud/wcloud.go b/pkg/wcloud/wcloud.go index f166f4c06..0b74bacee 100644 --- a/pkg/wcloud/wcloud.go +++ b/pkg/wcloud/wcloud.go @@ -1,4 +1,4 @@ -// Copyright 2023, Command Line Inc. +// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 package wcloud diff --git a/pkg/wcloud/wclouddata.go b/pkg/wcloud/wclouddata.go index 6afeb6a8d..97d0a547c 100644 --- a/pkg/wcloud/wclouddata.go +++ b/pkg/wcloud/wclouddata.go @@ -1,4 +1,4 @@ -// Copyright 2023, Command Line Inc. +// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 package wcloud