This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
139 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
3rd_license/colorpick-license.txt → webroot/3rd_license/colorpick-license.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
https://github.com/jbrems/color-wheel | ||
|
||
GNU GENERAL PUBLIC LICENSE | ||
Version 3, 29 June 2007 | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[ | ||
{ | ||
"url": "https://github.com/igor725/adv-launch/", | ||
"display": "psOff advanced launcher", | ||
"file": "../LICENSE" | ||
}, | ||
{ | ||
"url": "https://7-zip.org/", | ||
"display": "7-Zip", | ||
"file": "./3rd_license/7z-license.txt" | ||
}, | ||
{ | ||
"url": "https://github.com/jbrems/color-wheel", | ||
"display": "Color picker", | ||
"file": "./3rd_license/colorpick-license.txt" | ||
}, | ||
{ | ||
"url": "https://github.com/electron/forge", | ||
"display": "Electron Forge", | ||
"file": "./3rd_license/electron-forge-license.txt" | ||
}, | ||
{ | ||
"url": "https://www.electronjs.org/", | ||
"display": "Electron", | ||
"file": "./3rd_license/electron-license.txt" | ||
}, | ||
{ | ||
"url": "https://fontawesome.com/", | ||
"display": "FontAwesome", | ||
"file": "./3rd_license/fa-license.txt" | ||
}, | ||
{ | ||
"url": "https://ffmpeg.org/", | ||
"display": "FFmpeg", | ||
"file": "./3rd_license/ffmpeg-license.txt" | ||
}, | ||
{ | ||
"url": "https://github.com/eoussama/translator.js", | ||
"display": "translator.js", | ||
"file": "./3rd_license/translator-license.txt" | ||
}, | ||
{ | ||
"url": "https://design.ubuntu.com/font", | ||
"display": "Ubuntu Font", | ||
"file": "./3rd_license/UFL.txt" | ||
} | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
#wrapper * { | ||
width: 100%; | ||
margin-bottom: 5px; | ||
} | ||
|
||
#license { | ||
text-align: center; | ||
height: 25px; | ||
} | ||
|
||
#licontents { | ||
width: 100%; | ||
height: 304px; | ||
overflow-y: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
(() => { | ||
const lics = $('#license'); | ||
const licu = $('#licurl'); | ||
|
||
$('#close').on('click', () => window.close()); | ||
|
||
const updateContents = () => { | ||
const sel = lics.options[lics.selectedIndex]; | ||
const xhr = new XMLHttpRequest(); | ||
|
||
xhr.onload = () => { | ||
if (xhr.status === 200) { | ||
licontents.innerText = xhr.response; | ||
} | ||
} | ||
|
||
xhr.open('get', sel.dataset.path); | ||
xhr.send(); | ||
}; | ||
|
||
{ | ||
const xhr = new XMLHttpRequest(); | ||
xhr.responseType = 'json'; | ||
|
||
xhr.onload = () => { | ||
if (xhr.status === 200) { | ||
const htels = []; | ||
const _jlist = xhr.response; | ||
|
||
for (let i = 0; i < _jlist.length; ++i) { | ||
const item = _jlist[i]; | ||
htels.push(`<option data-path="${item.file}" data-url="${item.url}">${item.display}</option>`); | ||
} | ||
|
||
lics.innerHTML = htels.join(); | ||
updateContents(); | ||
} | ||
}; | ||
|
||
xhr.open('get', './3rd_license/list.json'); | ||
xhr.send(); | ||
} | ||
|
||
lics.on('change', updateContents); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta http-equiv="Content-Security-Policy" | ||
content="default-src 'none'; style-src 'self'; script-src 'self'; font-src 'self'; connect-src 'self';"> | ||
<link rel="stylesheet" href="css/shared.css" /> | ||
<link rel="stylesheet" href="css/legal.css" /> | ||
<script src="js/vars.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="wrapper"> | ||
<select id="license"></select> | ||
<a href="#" id="licurl">Home page</a> | ||
<div id="licontents"></div> | ||
<button id="close">Close</button> | ||
</div> | ||
|
||
<script src="./js/legal.js"></script> | ||
</body> | ||
|
||
</html> |