UC done v1.0

This commit is contained in:
andrei-mihnea-cerbu
2024-03-27 17:15:57 +02:00
parent 5f902e1a28
commit d1d238287a
56 changed files with 4964 additions and 81 deletions
+5
View File
@@ -0,0 +1,5 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<includedPredefinedLibrary name="Node.js Core" />
</component>
</project>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/proiect-licenta.iml" filepath="$PROJECT_DIR$/.idea/proiect-licenta.iml" />
</modules>
</component>
</project>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
+1966
View File
File diff suppressed because it is too large Load Diff
+23
View File
@@ -0,0 +1,23 @@
{
"name": "proiect-licenta",
"productName": "Aplicatie",
"version": "1.0.0",
"description": "Aplicatie P2P pentru stocarea resurselor digitale",
"main": "src/main/main.js",
"scripts": {
"start": "electron ./src/main/main.js",
"dev": "electronmon ./src/main/main.js"
},
"author": "Cerbu Andrei - Mihnea",
"license": "ISC",
"dependencies": {
"bootstrap": "^5.3.3",
"electron": "^29.1.5",
"express": "^4.19.2",
"nodemon": "^3.1.0",
"toastify-js": "^1.12.0"
},
"devDependencies": {
"electronmon": "^2.0.2"
}
}
+34
View File
@@ -0,0 +1,34 @@
const {app, BrowserWindow, screen, Menu} = require("electron");
const path = require("path")
const isMac = process.platform === 'darwin';
const createMainWindow = ((title, width, height) => {
const mainWindows = new BrowserWindow({
title: title,
width: width,
height: height
});
mainWindows.loadFile(path.join(__dirname, '..', 'renderer', 'index.html'))
.then(r => console.log('Main window works!'));
})
app.whenReady().then(() => {
const title = "Application"
const mainScreen = screen.getPrimaryDisplay();
const {width: width, height: height} = mainScreen.size;
createMainWindow(title, width / 1.5, height / 1.5)
app.on('activate', () => {
if(BrowserWindow.getAllWindows().length === 0){
createMainWindow(title, width, height);
}
})
})
app.on('window-all-closed', () =>{
if(!isMac){
app.quit();
}
})
+12
View File
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content = "IE=edge">
<meta name="viewport" content="width=device width, initial-scale=1.0">
<title>App</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>