Skip to content

Commit c474182

Browse files
committed
移除 .git-crypt 改使用 MIT 授權。
1 parent 55a804b commit c474182

31 files changed

+51
-141
lines changed

.git-crypt/.gitattributes

Lines changed: 0 additions & 4 deletions
This file was deleted.
Binary file not shown.

.gitattributes

Lines changed: 0 additions & 15 deletions
This file was deleted.

.npmignore

Lines changed: 0 additions & 28 deletions
This file was deleted.

LICENSE

Lines changed: 21 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,21 @@
1-
# Software Usage Agreement
2-
**Date**: December 20, 2024
3-
**Scope**: This agreement applies to the **FlexPlyr** software provided by **邱敬幃 Pardn Chiu** (hereinafter referred to as "the Software").
4-
5-
## 1. Free Usage License
6-
7-
1.1 The obfuscated version of the Software is provided free of charge to all users, including personal and commercial use, without functional limitations.
8-
1.2 Users are free to reverse engineer, decompile, modify, and redistribute the obfuscated code, whether for commercial or non-commercial purposes, under the condition that the original copyright notice and the terms of this agreement are retained.
9-
1.3 The free version is only available in an obfuscated format; the source code is not disclosed and is limited to the use, modification, and redistribution of obfuscated code. Users are allowed to reverse engineer and modify the code as needed, including for commercial use.
10-
1.4 This right to use, reverse engineer, modify, and redistribute the obfuscated code is permanent and will not be revoked.
11-
12-
## 2. Reverse Engineering and Code Modification
13-
14-
2.1 Users are free to reverse engineer, modify, or adjust the obfuscated code and may use the modified code for commercial or non-commercial purposes.
15-
2.2 Users may freely distribute the modified obfuscated code, including for commercial purposes, provided that the original copyright notice is retained.
16-
2.3 Users assume all risks and responsibilities associated with reverse engineering, code modification, or distribution. The author is not liable for any issues, damages, or losses arising from modified code usage, reverse engineering, or distribution.
17-
18-
## 3. Source Code Purchase and Authorization
19-
20-
3.1 Users who require access to the source code may purchase a full source code license. Upon purchase, users are granted rights to view, modify, and use the source code for commercial purposes.
21-
3.2 After purchasing the source code, users may freely use, modify, and distribute it, but must adhere to the intellectual property protection clauses in this agreement.
22-
3.3 Use of the source code following purchase remains subject to all terms of this agreement, particularly those pertaining to intellectual property protection.
23-
24-
## 4. Intellectual Property Protection
25-
26-
4.1 The source code, obfuscated code, and all related documentation of the Software are the intellectual property of 邱敬幃 Pardn Chiu.
27-
4.2 Users can modify and distribute the obfuscated code or its derivatives, including for commercial purposes, as long as the original copyright notice (e.g., "Copyright © 邱敬幃 Pardn Chiu") is retained.
28-
4.3 Users may sell modified projects, including projects derived from reverse-engineered or modified code. These derivatives are considered the user's creations. The original copyright notice must remain intact, but the author does not interfere with the user's commercialization of modified results.
29-
30-
## 5. Disclaimer of Liability
31-
32-
5.1 The Software is provided "as is," without any express or implied warranties regarding its suitability, stability, or performance.
33-
5.2 The author assumes no liability for any damages or issues caused by code modification, reverse engineering, or any other actions during the use of the Software.
34-
35-
## 6. Termination of Agreement
36-
37-
6.1 If users violate any terms of this agreement (including but not limited to unauthorized source code distribution or infringement of intellectual property), the author reserves the right to immediately terminate the license and take appropriate legal action.
38-
6.2 Upon termination, users must cease using the Software and delete all related files.
39-
40-
## 7. Contact Information
41-
42-
For any questions regarding this agreement or source code purchase, please contact:
43-
44-
**邱敬幃 Pardn Chiu**
45-
Email: dev@pardn.io
46-
Website: https://flexplyr.pardn.io/
47-
48-
---
49-
50-
## Summary of Key Points:
51-
52-
1. **Free Version Usage and Distribution**:
53-
The obfuscated code of the free version can be freely used, modified, and redistributed without functional limitations, including for commercial purposes. Users must retain the original copyright notice and terms of this agreement.
54-
55-
2. **Reverse Engineering and Code Modification**:
56-
Users are allowed to reverse engineer, modify, and distribute the obfuscated code, including for commercial purposes, provided that the original copyright notice is kept intact. Users assume full responsibility for any risks related to reverse engineering, modification, or distribution.
57-
58-
3. **Source Code Purchase**:
59-
Users may purchase the source code to obtain the rights to view, modify, and use the source code for commercial purposes. After purchase, users may modify, distribute, and commercialize the source code, subject to intellectual property protection clauses in this agreement.
60-
61-
4. **Intellectual Property Protection**:
62-
The source code, obfuscated code, and related documentation are the intellectual property of the author. Users may modify and distribute the obfuscated code, including for commercial purposes, but must retain the original copyright notice. The author does not interfere with users' commercialization of modified projects.
63-
64-
5. **Disclaimer of Liability**:
65-
The software is provided "as is," without warranties regarding its stability or performance. The author is not liable for any damages arising from modification, reverse engineering, or usage of the software.
66-
67-
6. **Termination of Agreement**:
68-
If users violate any terms of the agreement, the author reserves the right to terminate the license and take legal action. Upon termination, users must stop using the software and delete all related files.
69-
70-
7. **Contact Information**:
71-
For any questions regarding this agreement or source code purchase, users can contact:
72-
**邱敬幃 Pardn Chiu**
73-
Email: dev@pardn.io
74-
Website: [https://flexplyr.pardn.io/](https://flexplyr.pardn.io/)
1+
MIT License
2+
3+
Copyright (c) 2025 邱敬幃 Pardn Chiu
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,7 @@ const dom = new FPlyr({
136136

137137
## License
138138

139-
Similar to MIT License but provides obfuscated code only:
140-
- Same as MIT: Free to use, modify and redistribute, including commercial use
141-
- Main difference: Provides obfuscated code by default, source code available for purchase
142-
- License terms: Must retain original copyright notice (same as MIT)
143-
144-
For detailed terms and conditions, please see the [Software Usage Agreement](https://github.com/pardnchiu/FlexPlyr/blob/main/LICENSE).
139+
This source code project is licensed under the [MIT](https://github.com/pardnchiu/FlexPlyr/blob/main/LICENSE) license.
145140

146141
## Creator
147142

README.zh.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,10 @@ const dom = new FPlyr({
128128
// dom.destory();
129129
```
130130

131-
## 授權條款
132131

133-
本專案採用類 MIT 授權,但僅提供混淆後的程式碼:
134-
- 與 MIT 相同:可自由使用、修改、再散布,包含商業用途
135-
- 主要差異:預設僅提供混淆版程式碼,原始碼需另外購買
136-
- 授權內容:必須保留原始版權聲明 (與 MIT 相同)
132+
## 授權條款
137133

138-
詳細條款與條件請參閱[軟體使用協議](https://github.com/pardnchiu/FlexPlyr/blob/main/LICENSE)
134+
此源代碼項目採用 [MIT](https://github.com/pardnchiu/FlexPlyr/blob/main/LICENSE) 許可證授權
139135

140136
## 開發者
141137

dist/FlexPlyr.debug.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/FlexPlyr.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/FlexPlyr.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"name": "@pardnchiu/flexplyr",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"description": "FlexPlyr is a lightweight JavaScript library that provides embedded HTML5 video players and YouTube players, featuring highly customizable control panels and visual effects.",
55
"main": "dist/FlexPlyr.js",
66
"scripts": {
7-
"minify": "npx terser src/js/*.js src/js/function/*.js src/js/model/*.js -c -m -o dist/FlexPlyr.js --config-file terser.config.json --name-cache terser.cache.json && npx terser src/js/*.js src/js/function/*.js src/js/model/*.js -c -m -o dist/FlexPlyr.esm.js --config-file terser.config.json --name-cache terser.cache.json && echo 'export const player = window.FPlyr; export const FPlyr = window.FPlyr;' >> dist/FlexPlyr.esm.js",
8-
"minify-w": "chokidar src/js/*.js src/js/function/*.js src/js/model/*.js -c 'npm run minify'",
9-
"sass": "sass src/scss:dist -w --style compressed --no-source-map",
10-
"sass-index": "sass static/sass/:static/css/ -w --style compressed --no-source-map"
7+
"build:debug": "npx terser src/js/*.js src/js/**/*.js -o dist/FlexPlyr.debug.js",
8+
"build:min": "npx terser src/js/*.js src/js/**/*.js -c -m -o dist/FlexPlyr.js --config-file terser.config.json",
9+
"build:esm": "npx terser src/js/*.js src/js/**/*.js -c -m -o dist/FlexPlyr.esm.js --config-file terser.config.json && echo 'export const player = window.FPlyr; export const FPlyr = window.FPlyr;' >> dist/FlexPlyr.esm.js",
10+
"build:once": "npm-run-all build:debug build:min build:esm",
11+
"build": "chokidar src/js/*.js src/js/**/*.js -c 'npm run build:once'",
12+
"sass:library": "sass src/sass:dist/ -w --style compressed --no-source-map",
13+
"sass:index": "sass static/sass/:static/css/ -w --style compressed --no-source-map",
14+
"sass": "npm-run-all sass:library sass:index"
1115
},
1216
"publishConfig": {
1317
"access": "public"
@@ -32,7 +36,7 @@
3236
"pardnchiu"
3337
],
3438
"author": "Pardn Chiu",
35-
"license": "Proprietary",
39+
"license": "MIT",
3640
"bugs": {
3741
"url": "https://github.com/pardnchiu/FlexPlyr/issues"
3842
},

src/js/*.js

-22 Bytes
Binary file not shown.

src/js/function/UUID.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
let uuid_map = new $Map();
2+
3+
function UUID(length = 32) {
4+
const len = keyString[_length];
5+
let result = "";
6+
7+
do {
8+
result = $Array[_from]({ length }, _ => keyString[_charAt]($Math[_floor]($Math[_random]() * len)))[_join]("");
9+
} while (uuid_map[_has](result));
10+
11+
uuid_map[_set](result, 1);
12+
13+
return result;
14+
};

src/js/function/createElement.js

-95 Bytes
Binary file not shown.

src/js/function/getTime.js

-21 Bytes
Binary file not shown.

src/js/function/getUniqueID.js

-374 Bytes
Binary file not shown.

src/js/function/printLog.js

-225 Bytes
Binary file not shown.

src/js/interface.ts

-22 Bytes
Binary file not shown.

src/js/model/audioPlayer.js

-22 Bytes
Binary file not shown.

src/js/model/player.js

-953 Bytes
Binary file not shown.

src/js/model/playerPanel.js

-22 Bytes
Binary file not shown.

src/js/model/videoPlayer.js

-22 Bytes
Binary file not shown.

src/js/model/vimeoPlayer.js

-22 Bytes
Binary file not shown.

src/js/model/youtubePlayer.js

-22 Bytes
Binary file not shown.

src/scss/FlexPlyr.scss

-22 Bytes
Binary file not shown.

src/scss/_init.scss

-22 Bytes
Binary file not shown.

src/scss/_panel.scss

-22 Bytes
Binary file not shown.

src/scss/panelType/_classic.scss

-22 Bytes
Binary file not shown.

src/scss/panelType/_minimal.scss

-22 Bytes
Binary file not shown.

src/scss/panelType/_retro.scss

-22 Bytes
Binary file not shown.

src/scss/panelType/_simple.scss

-22 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)