From 49e7a24d8bd6b92983c44cd4172102330394ac50 Mon Sep 17 00:00:00 2001 From: Im-Beast Date: Sun, 1 Oct 2023 12:27:00 +0200 Subject: [PATCH] fix: contradictory license statement Fixes #32 --- .github/workflows/deno.yml | 2 +- examples/calculator.ts | 2 +- examples/demo.ts | 2 +- examples/layout.ts | 2 +- mod.ts | 2 +- src/canvas/box.ts | 2 +- src/canvas/canvas.ts | 2 +- src/canvas/draw_object.ts | 2 +- src/canvas/mod.ts | 2 +- src/canvas/text.ts | 2 +- src/component.ts | 2 +- src/components/box.ts | 2 +- src/components/button.ts | 2 +- src/components/checkbox.ts | 2 +- src/components/combobox.ts | 2 +- src/components/frame.ts | 2 +- src/components/input.ts | 2 +- src/components/label.ts | 2 +- src/components/mod.ts | 2 +- src/components/progressbar.ts | 2 +- src/components/slider.ts | 2 +- src/components/table.ts | 2 +- src/components/text.ts | 2 +- src/components/textbox.ts | 2 +- src/controls.ts | 2 +- src/event_emitter.ts | 2 +- src/input.ts | 2 +- src/input_reader/decoders/keyboard.ts | 2 +- src/input_reader/decoders/mouse.ts | 2 +- src/input_reader/mod.ts | 2 +- src/input_reader/types.ts | 2 +- src/layout/errors.ts | 2 +- src/layout/grid_layout.ts | 2 +- src/layout/horizontal_layout.ts | 2 +- src/layout/mod.ts | 2 +- src/layout/types.ts | 2 +- src/layout/vertical_layout.ts | 2 +- src/signals/computed.ts | 2 +- src/signals/dependency_tracking.ts | 2 +- src/signals/effect.ts | 2 +- src/signals/flusher.ts | 2 +- src/signals/lazy_computed.ts | 2 +- src/signals/lazy_effect.ts | 2 +- src/signals/mod.ts | 2 +- src/signals/reactivity.ts | 2 +- src/signals/signal.ts | 2 +- src/signals/types.ts | 2 +- src/theme.ts | 2 +- src/tui.ts | 2 +- src/types.ts | 2 +- src/utils/ansi_codes.ts | 2 +- src/utils/async.ts | 2 +- src/utils/component.ts | 2 +- src/utils/mod.ts | 2 +- src/utils/numbers.ts | 2 +- src/utils/signals.ts | 2 +- src/utils/sorted_array.ts | 2 +- src/utils/strings.ts | 2 +- src/view.ts | 2 +- tests/event_emitter.test.ts | 2 +- tests/signals.test.ts | 2 +- tests/utils/async.test.ts | 2 +- tests/utils/numbers.test.ts | 2 +- tests/utils/sorted_array.test.ts | 2 +- tests/utils/strings.test.ts | 2 +- 65 files changed, 65 insertions(+), 65 deletions(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 079cf7d..d86d0c3 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -42,7 +42,7 @@ jobs: deno run -A --no-check https://deno.land/x/anzu@1.0.0/src/cli.ts \ -i ./ "/.+\.ts/" \ -e "deps.ts" \ - -l "// Copyright 2023 Im-Beast. All rights reserved. MIT license." \ + -l "// Copyright 2023 Im-Beast. MIT license." \ -p - name: Push changes diff --git a/examples/calculator.ts b/examples/calculator.ts index e0799e5..41b34ce 100644 --- a/examples/calculator.ts +++ b/examples/calculator.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. // Simple calculator demo using grid layout import { crayon } from "https://deno.land/x/crayon@3.3.3/mod.ts"; diff --git a/examples/demo.ts b/examples/demo.ts index 5fb40ca..c23c898 100644 --- a/examples/demo.ts +++ b/examples/demo.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { crayon } from "https://deno.land/x/crayon@3.3.3/mod.ts"; import { Tui } from "../src/tui.ts"; diff --git a/examples/layout.ts b/examples/layout.ts index ff67e84..dbe8b7e 100644 --- a/examples/layout.ts +++ b/examples/layout.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { crayon } from "https://deno.land/x/crayon@3.3.3/mod.ts"; import { Tui } from "../src/tui.ts"; diff --git a/mod.ts b/mod.ts index 7ffec7a..3910763 100644 --- a/mod.ts +++ b/mod.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. export * from "./src/component.ts"; export * from "./src/controls.ts"; export * from "./src/event_emitter.ts"; diff --git a/src/canvas/box.ts b/src/canvas/box.ts index e33487e..6e5c0c3 100644 --- a/src/canvas/box.ts +++ b/src/canvas/box.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { DrawObject, DrawObjectOptions } from "./draw_object.ts"; import { Signal, SignalOfObject } from "../signals/mod.ts"; diff --git a/src/canvas/canvas.ts b/src/canvas/canvas.ts index 8ca8141..983c5e5 100644 --- a/src/canvas/canvas.ts +++ b/src/canvas/canvas.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. // TODO; on style change, dont update intersections, just clear current ones import { EmitterEvent, EventEmitter } from "../event_emitter.ts"; diff --git a/src/canvas/draw_object.ts b/src/canvas/draw_object.ts index 278f446..2be3d6d 100644 --- a/src/canvas/draw_object.ts +++ b/src/canvas/draw_object.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { fitsInRectangle, rectangleEquals, rectangleIntersection } from "../utils/numbers.ts"; // FIXME: rename to painters, drawobjects sounds cringe diff --git a/src/canvas/mod.ts b/src/canvas/mod.ts index c25041f..1f3528b 100644 --- a/src/canvas/mod.ts +++ b/src/canvas/mod.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. export * from "./box.ts"; export * from "./text.ts"; export * from "./canvas.ts"; diff --git a/src/canvas/text.ts b/src/canvas/text.ts index 9fdf745..dc97a17 100644 --- a/src/canvas/text.ts +++ b/src/canvas/text.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { DrawObject, DrawObjectOptions } from "./draw_object.ts"; import { getMultiCodePointCharacters, textWidth } from "../utils/strings.ts"; diff --git a/src/component.ts b/src/component.ts index f45cbea..93e7b37 100644 --- a/src/component.ts +++ b/src/component.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Tui } from "./tui.ts"; import { hierarchizeTheme, Style, Theme } from "./theme.ts"; import { EmitterEvent, EventEmitter } from "./event_emitter.ts"; diff --git a/src/components/box.ts b/src/components/box.ts index 73b2988..f7ce503 100644 --- a/src/components/box.ts +++ b/src/components/box.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { BoxObject } from "../canvas/box.ts"; import { Component } from "../component.ts"; diff --git a/src/components/button.ts b/src/components/button.ts index 3d27b8c..bdcd794 100644 --- a/src/components/button.ts +++ b/src/components/button.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { ComponentOptions } from "../component.ts"; import { Box } from "./box.ts"; diff --git a/src/components/checkbox.ts b/src/components/checkbox.ts index ba27df2..24be000 100644 --- a/src/components/checkbox.ts +++ b/src/components/checkbox.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { ComponentOptions } from "../component.ts"; import { Computed, Signal } from "../signals/mod.ts"; import { signalify } from "../utils/signals.ts"; diff --git a/src/components/combobox.ts b/src/components/combobox.ts index 5dce5c0..9879074 100644 --- a/src/components/combobox.ts +++ b/src/components/combobox.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Computed, Signal, SignalOfObject } from "../signals/mod.ts"; import { signalify } from "../utils/signals.ts"; import { Button, ButtonOptions } from "./button.ts"; diff --git a/src/components/frame.ts b/src/components/frame.ts index 61b65d4..5c11efd 100644 --- a/src/components/frame.ts +++ b/src/components/frame.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Component, ComponentOptions } from "../component.ts"; import { BoxObject } from "../canvas/box.ts"; diff --git a/src/components/input.ts b/src/components/input.ts index 5435d03..435beda 100644 --- a/src/components/input.ts +++ b/src/components/input.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Box } from "./box.ts"; import { Theme } from "../theme.ts"; diff --git a/src/components/label.ts b/src/components/label.ts index 5382046..ed5f7bd 100644 --- a/src/components/label.ts +++ b/src/components/label.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Component, ComponentOptions } from "../component.ts"; import { TextObject, TextRectangle } from "../canvas/text.ts"; import { Computed, Effect, Signal, SignalOfObject } from "../signals/mod.ts"; diff --git a/src/components/mod.ts b/src/components/mod.ts index 894d536..b01566a 100644 --- a/src/components/mod.ts +++ b/src/components/mod.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. export * from "./box.ts"; export * from "./button.ts"; export * from "./checkbox.ts"; diff --git a/src/components/progressbar.ts b/src/components/progressbar.ts index 678586c..f002200 100644 --- a/src/components/progressbar.ts +++ b/src/components/progressbar.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Box } from "./box.ts"; import { Theme } from "../theme.ts"; import { ComponentOptions } from "../component.ts"; diff --git a/src/components/slider.ts b/src/components/slider.ts index 9d34daf..74ece84 100644 --- a/src/components/slider.ts +++ b/src/components/slider.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Box } from "./box.ts"; import { Theme } from "../theme.ts"; import { ComponentOptions } from "../component.ts"; diff --git a/src/components/table.ts b/src/components/table.ts index 3c5f19f..e1d5d3d 100644 --- a/src/components/table.ts +++ b/src/components/table.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Component, ComponentOptions } from "../component.ts"; import { BoxObject } from "../canvas/box.ts"; diff --git a/src/components/text.ts b/src/components/text.ts index 661fbd5..19702e7 100644 --- a/src/components/text.ts +++ b/src/components/text.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { TextObject, TextRectangle } from "../canvas/text.ts"; import { Component, ComponentOptions } from "../component.ts"; import { Signal, SignalOfObject } from "../signals/mod.ts"; diff --git a/src/components/textbox.ts b/src/components/textbox.ts index 1d13933..6cb19ee 100644 --- a/src/components/textbox.ts +++ b/src/components/textbox.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Box } from "./box.ts"; import { ComponentOptions } from "../component.ts"; diff --git a/src/controls.ts b/src/controls.ts index 92d69ef..30650d8 100644 --- a/src/controls.ts +++ b/src/controls.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Component } from "./component.ts"; import { Tui } from "./tui.ts"; import { DISABLE_MOUSE, ENABLE_MOUSE } from "./utils/ansi_codes.ts"; diff --git a/src/event_emitter.ts b/src/event_emitter.ts index de909a3..1a5431b 100644 --- a/src/event_emitter.ts +++ b/src/event_emitter.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. /** Type for event listener function */ export type EventListener< diff --git a/src/input.ts b/src/input.ts index 565ada4..e3bdc6b 100644 --- a/src/input.ts +++ b/src/input.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Tui } from "./tui.ts"; import { emitInputEvents } from "./input_reader/mod.ts"; diff --git a/src/input_reader/decoders/keyboard.ts b/src/input_reader/decoders/keyboard.ts index 33a3795..6cbbf37 100644 --- a/src/input_reader/decoders/keyboard.ts +++ b/src/input_reader/decoders/keyboard.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. /** Decode code sequence to {KeyPress} object. */ import type { Alphabet, Key, KeyPressEvent } from "../types.ts"; diff --git a/src/input_reader/decoders/mouse.ts b/src/input_reader/decoders/mouse.ts index 7682123..21d2434 100644 --- a/src/input_reader/decoders/mouse.ts +++ b/src/input_reader/decoders/mouse.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import type { MouseEvent, MousePressEvent, MouseScrollEvent } from "../types.ts"; let mouseEvent: MouseEvent = { diff --git a/src/input_reader/mod.ts b/src/input_reader/mod.ts index 9f4d02e..09ffcbf 100644 --- a/src/input_reader/mod.ts +++ b/src/input_reader/mod.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import type { KeyPressEvent, MouseEvent, MousePressEvent, MouseScrollEvent } from "./types.ts"; import type { Stdin } from "../types.ts"; diff --git a/src/input_reader/types.ts b/src/input_reader/types.ts index 714ecd0..ac16f76 100644 --- a/src/input_reader/types.ts +++ b/src/input_reader/types.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Range } from "../types.ts"; /** Interface defining key press issued to stdin */ diff --git a/src/layout/errors.ts b/src/layout/errors.ts index 7a81344..9705929 100644 --- a/src/layout/errors.ts +++ b/src/layout/errors.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. export class LayoutInvalidElementsPatternError extends Error { constructor() { super( diff --git a/src/layout/grid_layout.ts b/src/layout/grid_layout.ts index 909421a..049a518 100644 --- a/src/layout/grid_layout.ts +++ b/src/layout/grid_layout.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Signal } from "../signals/signal.ts"; import { signalify } from "../utils/signals.ts"; diff --git a/src/layout/horizontal_layout.ts b/src/layout/horizontal_layout.ts index 48581af..06d4a43 100644 --- a/src/layout/horizontal_layout.ts +++ b/src/layout/horizontal_layout.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Signal } from "../signals/signal.ts"; import { signalify } from "../utils/signals.ts"; diff --git a/src/layout/mod.ts b/src/layout/mod.ts index 85ec613..1fbbd1c 100644 --- a/src/layout/mod.ts +++ b/src/layout/mod.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. export * from "./errors.ts"; export * from "./horizontal_layout.ts"; export * from "./types.ts"; diff --git a/src/layout/types.ts b/src/layout/types.ts index ffd811b..c7c8373 100644 --- a/src/layout/types.ts +++ b/src/layout/types.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import type { Signal, SignalOfObject } from "../signals/signal.ts"; import type { Rectangle } from "../types.ts"; diff --git a/src/layout/vertical_layout.ts b/src/layout/vertical_layout.ts index 2659cfd..da9c267 100644 --- a/src/layout/vertical_layout.ts +++ b/src/layout/vertical_layout.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Signal } from "../signals/signal.ts"; import { Effect } from "../signals/effect.ts"; import { signalify } from "../utils/signals.ts"; diff --git a/src/signals/computed.ts b/src/signals/computed.ts index be020bf..e080f5e 100644 --- a/src/signals/computed.ts +++ b/src/signals/computed.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Signal } from "./signal.ts"; import type { Dependant, Dependency } from "./types.ts"; diff --git a/src/signals/dependency_tracking.ts b/src/signals/dependency_tracking.ts index 0e9526f..db1574a 100644 --- a/src/signals/dependency_tracking.ts +++ b/src/signals/dependency_tracking.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import type { Dependant, Dependency } from "./types.ts"; export let activeSignals: Set | undefined; diff --git a/src/signals/effect.ts b/src/signals/effect.ts index 0a4b4a7..6545285 100644 --- a/src/signals/effect.ts +++ b/src/signals/effect.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { optimizeDependencies, trackDependencies } from "./dependency_tracking.ts"; import type { Dependant, Dependency } from "./types.ts"; diff --git a/src/signals/flusher.ts b/src/signals/flusher.ts index f207562..3855192 100644 --- a/src/signals/flusher.ts +++ b/src/signals/flusher.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import type { Dependant, Dependency, LazyDependant } from "./types.ts"; /** diff --git a/src/signals/lazy_computed.ts b/src/signals/lazy_computed.ts index eb0affa..793b442 100644 --- a/src/signals/lazy_computed.ts +++ b/src/signals/lazy_computed.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Computable, Computed } from "./computed.ts"; import { Dependency } from "./types.ts"; import { Flusher } from "./flusher.ts"; diff --git a/src/signals/lazy_effect.ts b/src/signals/lazy_effect.ts index 56d1cc7..f6f9ef8 100644 --- a/src/signals/lazy_effect.ts +++ b/src/signals/lazy_effect.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Effect, Effectable } from "./effect.ts"; import { Flusher } from "./flusher.ts"; diff --git a/src/signals/mod.ts b/src/signals/mod.ts index e9f0626..2bff60e 100644 --- a/src/signals/mod.ts +++ b/src/signals/mod.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. export * from "./signal.ts"; export * from "./computed.ts"; export * from "./effect.ts"; diff --git a/src/signals/reactivity.ts b/src/signals/reactivity.ts index cdf6731..c69ec54 100644 --- a/src/signals/reactivity.ts +++ b/src/signals/reactivity.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Signal } from "./signal.ts"; export type Reactive = T & { diff --git a/src/signals/signal.ts b/src/signals/signal.ts index 4692093..c11f17b 100644 --- a/src/signals/signal.ts +++ b/src/signals/signal.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { activeSignals } from "./dependency_tracking.ts"; import { makeMapMethodsReactive, diff --git a/src/signals/types.ts b/src/signals/types.ts index 93223b4..e85bf0a 100644 --- a/src/signals/types.ts +++ b/src/signals/types.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Flusher } from "./flusher.ts"; /** Type describing function that gets called each time signal changes */ diff --git a/src/theme.ts b/src/theme.ts index b5d3c3a..e40e4b6 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. /** Function that's supposed to return styled text given string as parameter */ export type Style = (text: string) => string; diff --git a/src/tui.ts b/src/tui.ts index 3443470..9c68ddd 100644 --- a/src/tui.ts +++ b/src/tui.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { BoxObject, Canvas } from "./canvas/mod.ts"; import { Component } from "./component.ts"; import { EmitterEvent, EventEmitter } from "./event_emitter.ts"; diff --git a/src/types.ts b/src/types.ts index 9a5e0e9..4473f39 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. /** Type for Standard Output – where data gets written */ export type Stdout = typeof Deno.stdout; diff --git a/src/utils/ansi_codes.ts b/src/utils/ansi_codes.ts index 670ae70..48fc8a7 100644 --- a/src/utils/ansi_codes.ts +++ b/src/utils/ansi_codes.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. /** Get ANSI escape code for moving cursor to given location */ export function moveCursor(row: number, column: number): string { diff --git a/src/utils/async.ts b/src/utils/async.ts index 189a285..f1628ea 100644 --- a/src/utils/async.ts +++ b/src/utils/async.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. /** Asynchronously sleep for {time} milliseconds */ export function sleep(time: number): Promise { diff --git a/src/utils/component.ts b/src/utils/component.ts index 9641c85..87c4301 100644 --- a/src/utils/component.ts +++ b/src/utils/component.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Tui } from "../tui.ts"; import { Component } from "../component.ts"; diff --git a/src/utils/mod.ts b/src/utils/mod.ts index 5f868cb..cefe0b1 100644 --- a/src/utils/mod.ts +++ b/src/utils/mod.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. export * from "./ansi_codes.ts"; export * from "./async.ts"; export * from "./numbers.ts"; diff --git a/src/utils/numbers.ts b/src/utils/numbers.ts index 2203eca..3556b6f 100644 --- a/src/utils/numbers.ts +++ b/src/utils/numbers.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import type { Rectangle } from "../types.ts"; diff --git a/src/utils/signals.ts b/src/utils/signals.ts index 98ff08d..6611b4b 100644 --- a/src/utils/signals.ts +++ b/src/utils/signals.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Signal, SignalOptions } from "../signals/mod.ts"; /** Creates signal from input if it's not already a signal */ diff --git a/src/utils/sorted_array.ts b/src/utils/sorted_array.ts index 6483a5d..5907b7f 100644 --- a/src/utils/sorted_array.ts +++ b/src/utils/sorted_array.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. export type CompareFn = (a: T, b: T) => number; diff --git a/src/utils/strings.ts b/src/utils/strings.ts index f7f1c7c..9024dec 100644 --- a/src/utils/strings.ts +++ b/src/utils/strings.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. /** * Regexp that allows for extracting unicode sequences that are supposed to represent single character diff --git a/src/view.ts b/src/view.ts index f852e50..5215a9f 100644 --- a/src/view.ts +++ b/src/view.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Signal, signalify } from "../mod.ts"; import { Offset, Rectangle } from "./types.ts"; diff --git a/tests/event_emitter.test.ts b/tests/event_emitter.test.ts index 99be292..ff576ce 100644 --- a/tests/event_emitter.test.ts +++ b/tests/event_emitter.test.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { EventEmitter } from "../src/event_emitter.ts"; import { assertEquals } from "./deps.ts"; diff --git a/tests/signals.test.ts b/tests/signals.test.ts index 2ea9b39..d53a8af 100644 --- a/tests/signals.test.ts +++ b/tests/signals.test.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { Computed, Effect, Signal } from "../src/signals/mod.ts"; import { IS_REACTIVE } from "../src/signals/reactivity.ts"; import { assertArrayIncludes, assertEquals, assertThrows } from "./deps.ts"; diff --git a/tests/utils/async.test.ts b/tests/utils/async.test.ts index 3fa66f2..ee578aa 100644 --- a/tests/utils/async.test.ts +++ b/tests/utils/async.test.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { sleep } from "../../src/utils/async.ts"; import { assertAlmostEquals } from "../deps.ts"; diff --git a/tests/utils/numbers.test.ts b/tests/utils/numbers.test.ts index d8ab72e..a2b0e13 100644 --- a/tests/utils/numbers.test.ts +++ b/tests/utils/numbers.test.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { clamp, fits, fitsInRectangle, normalize } from "../../src/utils/numbers.ts"; import { assertEquals } from "../deps.ts"; diff --git a/tests/utils/sorted_array.test.ts b/tests/utils/sorted_array.test.ts index 9e8aeba..ab45a95 100644 --- a/tests/utils/sorted_array.test.ts +++ b/tests/utils/sorted_array.test.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { SortedArray } from "../../src/utils/sorted_array.ts"; import { assertEquals } from "../deps.ts"; diff --git a/tests/utils/strings.test.ts b/tests/utils/strings.test.ts index ba5765d..b22d37d 100644 --- a/tests/utils/strings.test.ts +++ b/tests/utils/strings.test.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Im-Beast. All rights reserved. MIT license. +// Copyright 2023 Im-Beast. MIT license. import { characterWidth, insertAt, stripStyles, textWidth, UNICODE_CHAR_REGEXP } from "../../src/utils/strings.ts"; import { assertEquals } from "../deps.ts";