From 9f6410d669cc0b3e4936370df2a3c297f203c5f8 Mon Sep 17 00:00:00 2001 From: WakelessSloth56 Date: Fri, 15 Mar 2024 09:18:27 +0800 Subject: [PATCH] chore: copyright notice --- src/player.main.ts | 25 +++++++++++++++++++++++++ src/player.metadata.ts | 20 ++++++++++++++++++++ src/player.player.ts | 20 ++++++++++++++++++++ src/utils.ts | 20 ++++++++++++++++++++ 4 files changed, 85 insertions(+) diff --git a/src/player.main.ts b/src/player.main.ts index 723ec92..4435365 100644 --- a/src/player.main.ts +++ b/src/player.main.ts @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2022-2024 AUIOC.ORG + * Copyright (C) 2018-2022 PCC-Studio + * + * This file is part of BilibiliLocalPlayerH5. + * + * BilibiliLocalPlayerH5 is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, + * or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + interface PlayerOptions extends StrAnyKV { autoPlay?: boolean; muted?: boolean; @@ -5,6 +25,11 @@ interface PlayerOptions extends StrAnyKV { } class Player { + /** + * This field will be automatically replaced to + * current version text during the CI build. + * Do not modify it! + **/ readonly version = '{version}'; options: PlayerOptions; readonly #metadata: PlayerMetadata; diff --git a/src/player.metadata.ts b/src/player.metadata.ts index 1166725..707ab82 100644 --- a/src/player.metadata.ts +++ b/src/player.metadata.ts @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2022-2024 AUIOC.ORG + * Copyright (C) 2018-2022 PCC-Studio + * + * This file is part of BilibiliLocalPlayerH5. + * + * BilibiliLocalPlayerH5 is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, + * or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + type MetaEventTypes = 'selfEvent' | 'playerEvent' | 'videoEvent'; type MetaEvents = EventListenerMap | (() => EventListenerMap); diff --git a/src/player.player.ts b/src/player.player.ts index d310de7..9b33ff0 100644 --- a/src/player.player.ts +++ b/src/player.player.ts @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2022-2024 AUIOC.ORG + * Copyright (C) 2018-2022 PCC-Studio + * + * This file is part of BilibiliLocalPlayerH5. + * + * BilibiliLocalPlayerH5 is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, + * or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const __player_metadata__ = (function () { function toggleDisplayByData(dataName: string, clazz: string) { let r = ''; diff --git a/src/utils.ts b/src/utils.ts index 46ef522..392925d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2022-2024 AUIOC.ORG + * Copyright (C) 2018-2022 PCC-Studio + * + * This file is part of BilibiliLocalPlayerH5. + * + * BilibiliLocalPlayerH5 is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, + * or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + interface StrAnyKV { [x: string]: any; }