mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
add missing license headers
This commit is contained in:
parent
24728481cd
commit
678a049d0e
9 changed files with 27 additions and 0 deletions
|
@ -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 ".";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue