This commit is contained in:
andrei-mihnea-cerbu
2024-04-25 15:38:59 +03:00
parent 1486a9b834
commit ae8d04a5d9
20 changed files with 42 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
b=КxЉјврgiГT§м cQБ,|В{u«к
/ϋ Ν=η9Ϋ υuόDζΧHαΫΐΎ[
+1 -1
View File
@@ -182,7 +182,7 @@ document.addEventListener('DOMContentLoaded', async function () {
.then(() => console.log('Alert window opened'))
.catch(error => console.error('Error showing alert:', error)));
const button = document.getElementById('share_alert');
const button = document.getElementById('share_file_alert');
button.remove();
}
+2 -2
View File
@@ -1,11 +1,11 @@
{
"7c0ef9d5-23ed-47a6-bfb4-fdcfce436904": {
"ip": "192.168.169.19",
"ip": "192.168.169.127",
"directoryStructure": "{\"backup_dir\":{\"files\":[],\"fisiere\":{\"files\":[\"New Microsoft Excel Worksheet.xlsx\",\"New Microsoft Word Document.docx\"]}}}",
"totalSize": 19363
},
"59c712d9-e6dd-438f-aec9-31ca2ae750e6": {
"ip": "192.168.169.53",
"ip": "192.168.169.19",
"directoryStructure": "{\"backup_dir\":{\"files\":[],\"fisiere\":{\"files\":[\"New Microsoft Excel Worksheet.xlsx\",\"New Microsoft Word Document.docx\"]}}}",
"totalSize": 19363
}
+12
View File
@@ -0,0 +1,12 @@
{
"7c0ef9d5-23ed-47a6-bfb4-fdcfce436904": {
"ip": "192.168.169.127",
"directoryStructure": "{\"backup_dir\":{\"files\":[],\"fisiere\":{\"files\":[\"New Microsoft Excel Worksheet.xlsx\",\"New Microsoft Word Document.docx\"]}}}",
"totalSize": 19363
},
"59c712d9-e6dd-438f-aec9-31ca2ae750e6": {
"ip": "192.168.169.19",
"directoryStructure": "{\"backup_dir\":{\"files\":[],\"fisiere\":{\"files\":[\"New Microsoft Excel Worksheet.xlsx\",\"New Microsoft Word Document.docx\"]}}}",
"totalSize": 19363
}
}
+15
View File
@@ -0,0 +1,15 @@
{
"path": "/home/andrei/Desktop/proiect-licenta/dirs/user/backup_dir",
"structure": {
"backup_dir": {
"files": [],
"fisiere": {
"files": [
"New Microsoft Excel Worksheet.xlsx",
"New Microsoft Word Document.docx"
]
}
}
},
"size": 19363
}
+3
View File
@@ -0,0 +1,3 @@
{
"path": "/home/andrei/Desktop/proiect-licenta/dirs/user/department_dir"
}
+3
View File
@@ -0,0 +1,3 @@
{
"path": "/home/andrei/Desktop/proiect-licenta/dirs/user/share_dir"
}
+1
View File
@@ -0,0 +1 @@
ż)ř;ĘŃŞÓĆ'F w-`Źeµ±/öd©K
+3 -3
View File
@@ -265,6 +265,7 @@ async function decryptDepartmentFilesToDirectory() {
await lockFile(loginDataPath);
await lockFile(usersConfigPath);
await lockFile(dirDepartmentPath);
await decryptFileInPlace(loginDataPath);
await decryptFileInPlace(usersConfigPath);
@@ -286,8 +287,7 @@ async function decryptDepartmentFilesToDirectory() {
await unlockFile(loginDataPath);
await unlockFile(usersConfigPath);
await removeDirectory(destinationDir);
await unlockFile(dirDepartmentPath);
for (const userId of users) {
const userDir = path.join(sourceDir, userId);
@@ -331,7 +331,7 @@ decryptAndGetServerIP(path.join(__dirname, '..', 'ipConfig.json')).then(ip => {
serverIp = ip;
});
const timeoutInterval = 7 * 60 * 1000 //minutes * seconds * miliseconds
const timeoutInterval = 1 * 10 * 1000 //minutes * seconds * miliseconds
setInterval(async () => {
await decryptDepartmentFilesToDirectory();
+1
View File
@@ -0,0 +1 @@
Ï5oÏíâʾ´ˆÐ8ð´úcAš=6ZÍö·š¯±ûøļÊhå£Ñ«E ëšýY¦ŒÛFY«áQ>tá݃xÔFFÙzEoašE×CEŽƒèüzȽAé\$¬¨D¬ÿ*}>ŸŒ¬}Kâ¡/ev(¯¤Ý¸E`øg.GܽÙlçž`ÿÝ]SXwã¨ÛwˆðUûL
Binary file not shown.