mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 14:45:07 +03:00
1. added multipath protocol and schema suport
2. added SCTP protocol and schema support 3. added set of NAS models support (Asustor, ReadyNAS, Drobo, QNAP, WD, Synology, Terramaster) 4. moved to fc00::/7 private segment 5. added Windows, MacOS and Linux UI for peers edit and current status
This commit is contained in:
parent
cfa293d189
commit
d8a4000141
198 changed files with 8589 additions and 697 deletions
BIN
contrib/ui/nas-asustor/www/assets/partner-logo.png
Normal file
BIN
contrib/ui/nas-asustor/www/assets/partner-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
35
contrib/ui/nas-asustor/www/assets/properties.js
Normal file
35
contrib/ui/nas-asustor/www/assets/properties.js
Normal file
|
@ -0,0 +1,35 @@
|
|||
var ed = {
|
||||
partnerId: 1422,
|
||||
applicationName: 'RiV Mesh Asustor ADM App',
|
||||
nasOSName: 'Asustor ADM',
|
||||
useAuthNASRichScreen: true,
|
||||
nasVisitEDWebsiteLogin: "https://github.com/RiV-chain/RiV-mesh",
|
||||
nasVisitEDWebsiteSignup: "https://github.com/RiV-chain/RiV-mesh",
|
||||
nasVisitEDWebsiteLoggedin: "https://github.com/RiV-chain/RiV-mesh",
|
||||
getNasAuthUrl: function () {
|
||||
return "/";
|
||||
},
|
||||
nasLoginCall: function (nasLoginSuccess, nasLoginFailure) {
|
||||
var d = new Date();
|
||||
d.setTime(d.getTime() + (10 * 60 * 1000));
|
||||
document.cookie = "access_key=" + btoa( "user=" + encodeURIComponent($('#nasInputUser').val()) + ";pwd=" + encodeURIComponent($('#nasInputPassword').val()))+ "; expires=" + d.toUTCString() + "; path=/";
|
||||
$.ajax({url: "api/getself"}).done(function () {
|
||||
window.location.reload();
|
||||
}).fail(function () {
|
||||
ed.nasLogoutCall();
|
||||
nasLoginFailure();
|
||||
});
|
||||
},
|
||||
nasLogoutCall: function () {
|
||||
document.cookie = "access_key=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/";
|
||||
},
|
||||
getNasUser: function() {
|
||||
function getCookie(name) {
|
||||
var matches = document.cookie.match(new RegExp(
|
||||
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
|
||||
));
|
||||
return matches ? decodeURIComponent(matches[1]) : undefined;
|
||||
}
|
||||
return decodeURIComponent(atob(getCookie('access_key')).split(';')[0].split('=')[1]);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue