mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Update copyright indicators on a bunch of files (#255)
This commit is contained in:
parent
65d50a772a
commit
bd4bf93d4a
2
db/db.go
2
db/db.go
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2023, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package db
|
package db
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { isDev } from "@/util/isdev";
|
import { isDev } from "@/util/isdev";
|
||||||
import * as electron from "electron";
|
import * as electron from "electron";
|
||||||
import { autoUpdater } from "electron-updater";
|
import { autoUpdater } from "electron-updater";
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import "./button.less";
|
import "./button.less";
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
.magnify-icon {
|
.magnify-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 15px;
|
width: 15px;
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Meta, StoryObj } from "@storybook/react";
|
import type { Meta, StoryObj } from "@storybook/react";
|
||||||
import { MagnifyIcon } from "./magnify";
|
import { MagnifyIcon } from "./magnify";
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import MagnifySVG from "../asset/magnify.svg";
|
import MagnifySVG from "../asset/magnify.svg";
|
||||||
import "./magnify.less";
|
import "./magnify.less";
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
@dot-width: 11px;
|
@dot-width: 11px;
|
||||||
@dot-color: var(--success-color);
|
@dot-color: var(--success-color);
|
||||||
@speed: 1.5s;
|
@speed: 1.5s;
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { clsx } from "clsx";
|
import { clsx } from "clsx";
|
||||||
|
|
||||||
import "./typingindicator.less";
|
import "./typingindicator.less";
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import debounce from "lodash.debounce";
|
import debounce from "lodash.debounce";
|
||||||
import { useCallback, useEffect, useState } from "react";
|
import { useCallback, useEffect, useState } from "react";
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { useCallback, useEffect, useRef, useState } from "react";
|
import { useCallback, useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
export const useLongClick = (ref, onClick, onLongClick, ms = 300) => {
|
export const useLongClick = (ref, onClick, onLongClick, ms = 300) => {
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import debounce from "lodash.debounce";
|
import debounce from "lodash.debounce";
|
||||||
import { useCallback, useEffect, useState } from "react";
|
import { useCallback, useEffect, useState } from "react";
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import Logo from "@/app/asset/logo.svg";
|
import Logo from "@/app/asset/logo.svg";
|
||||||
import { LinkButton } from "@/app/element/linkbutton";
|
import { LinkButton } from "@/app/element/linkbutton";
|
||||||
import { modalsModel } from "@/app/store/modalmodel";
|
import { modalsModel } from "@/app/store/modalmodel";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2023, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Button } from "@/app/element/button";
|
import { Button } from "@/app/element/button";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2023, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { AboutModal } from "./about";
|
import { AboutModal } from "./about";
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
.tos-modal {
|
.tos-modal {
|
||||||
width: 640px;
|
width: 640px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
*,
|
*,
|
||||||
*::before,
|
*::before,
|
||||||
*::after {
|
*::after {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2023, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import * as jotai from "jotai";
|
import * as jotai from "jotai";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2023, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Block } from "@/app/block/block";
|
import { Block } from "@/app/block/block";
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
.plot-view {
|
.plot-view {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Button } from "@/element/button";
|
import { Button } from "@/element/button";
|
||||||
import { WaveModal } from "@/element/modal";
|
import { WaveModal } from "@/element/modal";
|
||||||
import * as Plot from "@observablehq/plot";
|
import * as Plot from "@observablehq/plot";
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { WOS } from "@/app/store/global";
|
import { WOS } from "@/app/store/global";
|
||||||
import { Atom, atom, Getter } from "jotai";
|
import { Atom, atom, Getter } from "jotai";
|
||||||
import { LayoutTreeState, WritableLayoutTreeStateAtom } from "./types";
|
import { LayoutTreeState, WritableLayoutTreeStateAtom } from "./types";
|
||||||
|
|
||||||
const layoutStateAtomMap: WeakMap<Atom<Tab>, WritableLayoutTreeStateAtom> = new WeakMap();
|
const layoutStateAtomMap: WeakMap<Atom<Tab>, WritableLayoutTreeStateAtom> = new WeakMap();
|
||||||
// const layoutStateLoadingAtomMap: WeakMap<Atom<Tab>, Atom<boolean>> = new WeakMap();
|
|
||||||
// const layoutStateAtomMap
|
|
||||||
|
|
||||||
function getLayoutStateAtomFromTab(tabAtom: Atom<Tab>, get: Getter): WritableWaveObjectAtom<LayoutState> {
|
function getLayoutStateAtomFromTab(tabAtom: Atom<Tab>, get: Getter): WritableWaveObjectAtom<LayoutState> {
|
||||||
const tabData = get(tabAtom);
|
const tabData = get(tabAtom);
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { atomWithThrottle, boundNumber } from "@/util/util";
|
import { atomWithThrottle, boundNumber } from "@/util/util";
|
||||||
import { Atom, atom, Getter, PrimitiveAtom, Setter } from "jotai";
|
import { Atom, atom, Getter, PrimitiveAtom, Setter } from "jotai";
|
||||||
import { splitAtom } from "jotai/utils";
|
import { splitAtom } from "jotai/utils";
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { globalStore, WOS } from "@/app/store/global";
|
import { globalStore, WOS } from "@/app/store/global";
|
||||||
import useResizeObserver from "@react-hook/resize-observer";
|
import useResizeObserver from "@react-hook/resize-observer";
|
||||||
import { Atom, useAtomValue } from "jotai";
|
import { Atom, useAtomValue } from "jotai";
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2024, Command Line Inc.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export class NodeRefMap {
|
export class NodeRefMap {
|
||||||
private map: Map<string, React.RefObject<HTMLDivElement>> = new Map();
|
private map: Map<string, React.RefObject<HTMLDivElement>> = new Map();
|
||||||
generation: number = 0;
|
generation: number = 0;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2023, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package dbutil
|
package dbutil
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2023, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package dbutil
|
package dbutil
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2023, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package shellutil
|
package shellutil
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2023, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package wcloud
|
package wcloud
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2023, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package wcloud
|
package wcloud
|
||||||
|
Loading…
Reference in New Issue
Block a user