Skip to content

Commit

Permalink
chore: copyright notice
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Mar 15, 2024
1 parent c94f34c commit 9f6410d
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/player.main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
/*
* 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 <https://www.gnu.org/licenses/>.
*/

interface PlayerOptions extends StrAnyKV {
autoPlay?: boolean;
muted?: boolean;
fullscreen?: boolean;
}

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;
Expand Down
20 changes: 20 additions & 0 deletions src/player.metadata.ts
Original file line number Diff line number Diff line change
@@ -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 <https://www.gnu.org/licenses/>.
*/

type MetaEventTypes = 'selfEvent' | 'playerEvent' | 'videoEvent';

type MetaEvents<F extends AnyFunction> = EventListenerMap<F> | (() => EventListenerMap<F>);
Expand Down
20 changes: 20 additions & 0 deletions src/player.player.ts
Original file line number Diff line number Diff line change
@@ -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 <https://www.gnu.org/licenses/>.
*/

const __player_metadata__ = (function () {
function toggleDisplayByData(dataName: string, clazz: string) {
let r = '';
Expand Down
20 changes: 20 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -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 <https://www.gnu.org/licenses/>.
*/

interface StrAnyKV {
[x: string]: any;
}
Expand Down

0 comments on commit 9f6410d

Please sign in to comment.