add missing license headers

This commit is contained in:
Damien Elmes 2021-02-09 13:38:04 +10:00
parent 24728481cd
commit 678a049d0e
9 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,6 @@
/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
import type { EditingArea } from "."; import type { EditingArea } from ".";
import { getCurrentField } from "."; import { getCurrentField } from ".";

View file

@ -1,3 +1,6 @@
/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
import type { EditingArea, EditorField } from "."; import type { EditingArea, EditorField } from ".";
import { bridgeCommand } from "./lib"; import { bridgeCommand } from "./lib";

View file

@ -1,3 +1,6 @@
/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
export function nodeIsElement(node: Node): node is Element { export function nodeIsElement(node: Node): node is Element {
return node.nodeType === Node.ELEMENT_NODE; return node.nodeType === Node.ELEMENT_NODE;
} }

View file

@ -1,3 +1,6 @@
/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
import { nodeIsElement } from "./helpers"; import { nodeIsElement } from "./helpers";
export function filterHTML( export function filterHTML(

View file

@ -1,3 +1,6 @@
/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
import { EditingArea } from "."; import { EditingArea } from ".";
import { nodeIsElement } from "./helpers"; import { nodeIsElement } from "./helpers";
import { triggerChangeTimer } from "./changeTimer"; import { triggerChangeTimer } from "./changeTimer";

View file

@ -1,3 +1,6 @@
/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
declare global { declare global {
interface Window { interface Window {
bridgeCommand<T>(command: string, callback?: (value: T) => void): void; bridgeCommand<T>(command: string, callback?: (value: T) => void): void;

View file

@ -1,3 +1,6 @@
/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
let currentNoteId: number | null = null; let currentNoteId: number | null = null;
export function setNoteId(id: number): void { export function setNoteId(id: number): void {

View file

@ -1,3 +1,6 @@
/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
import { EditingArea } from "."; import { EditingArea } from ".";
export function updateButtonState(): void { export function updateButtonState(): void {

View file

@ -1,3 +1,6 @@
/* Copyright: Ankitects Pty Ltd and contributors
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
import { getCurrentField, setFormat } from "."; import { getCurrentField, setFormat } from ".";
function wrappedExceptForWhitespace(text: string, front: string, back: string): string { function wrappedExceptForWhitespace(text: string, front: string, back: string): string {