diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..066f24c --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,30 @@ + + + + + Calc + + + + + + + + + +

+ + + + \ No newline at end of file diff --git a/frontend/index.js b/frontend/index.js new file mode 100644 index 0000000..69dc105 --- /dev/null +++ b/frontend/index.js @@ -0,0 +1,12 @@ +const fs = require('fs') +const http = require('http') + +const requestListener = async function (req, res) { + res.writeHead(200); + fs.readFile('index.html', (err, data) => { + res.end(data); + }); +}; + +const server = http.createServer(requestListener) +server.listen(5050) \ No newline at end of file diff --git a/frontend/node_modules/fs/README.md b/frontend/node_modules/fs/README.md new file mode 100644 index 0000000..5e9a74c --- /dev/null +++ b/frontend/node_modules/fs/README.md @@ -0,0 +1,9 @@ +# Security holding package + +This package name is not currently in use, but was formerly occupied +by another package. To avoid malicious use, npm is hanging on to the +package name, but loosely, and we'll probably give it to you if you +want it. + +You may adopt this package by contacting support@npmjs.com and +requesting the name. diff --git a/frontend/node_modules/fs/package.json b/frontend/node_modules/fs/package.json new file mode 100644 index 0000000..e92ec55 --- /dev/null +++ b/frontend/node_modules/fs/package.json @@ -0,0 +1,46 @@ +{ + "_from": "fs", + "_id": "fs@0.0.1-security", + "_inBundle": false, + "_integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==", + "_location": "/fs", + "_phantomChildren": {}, + "_requested": { + "type": "tag", + "registry": true, + "raw": "fs", + "name": "fs", + "escapedName": "fs", + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" + }, + "_requiredBy": [ + "#USER", + "/" + ], + "_resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "_shasum": "8a7bd37186b6dddf3813f23858b57ecaaf5e41d4", + "_spec": "fs", + "_where": "C:\\Users\\user\\Desktop\\something\\frontend", + "author": "", + "bugs": { + "url": "https://github.com/npm/security-holder/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.", + "homepage": "https://github.com/npm/security-holder#readme", + "keywords": [], + "license": "ISC", + "main": "index.js", + "name": "fs", + "repository": { + "type": "git", + "url": "git+https://github.com/npm/security-holder.git" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "version": "0.0.1-security" +} diff --git a/frontend/node_modules/http/README.md b/frontend/node_modules/http/README.md new file mode 100644 index 0000000..5e9a74c --- /dev/null +++ b/frontend/node_modules/http/README.md @@ -0,0 +1,9 @@ +# Security holding package + +This package name is not currently in use, but was formerly occupied +by another package. To avoid malicious use, npm is hanging on to the +package name, but loosely, and we'll probably give it to you if you +want it. + +You may adopt this package by contacting support@npmjs.com and +requesting the name. diff --git a/frontend/node_modules/http/package.json b/frontend/node_modules/http/package.json new file mode 100644 index 0000000..cd334ca --- /dev/null +++ b/frontend/node_modules/http/package.json @@ -0,0 +1,39 @@ +{ + "_from": "http", + "_id": "http@0.0.1-security", + "_inBundle": false, + "_integrity": "sha512-RnDvP10Ty9FxqOtPZuxtebw1j4L/WiqNMDtuc1YMH1XQm5TgDRaR1G9u8upL6KD1bXHSp9eSXo/ED+8Q7FAr+g==", + "_location": "/http", + "_phantomChildren": {}, + "_requested": { + "type": "tag", + "registry": true, + "raw": "http", + "name": "http", + "escapedName": "http", + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" + }, + "_requiredBy": [ + "#USER", + "/" + ], + "_resolved": "https://registry.npmjs.org/http/-/http-0.0.1-security.tgz", + "_shasum": "3aac09129d12dc2747bbce4157afde20ad1f7995", + "_spec": "http", + "_where": "C:\\Users\\user\\Desktop\\something\\frontend", + "bugs": { + "url": "https://github.com/npm/security-holder/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "security holding package", + "homepage": "https://github.com/npm/security-holder#readme", + "name": "http", + "repository": { + "type": "git", + "url": "git+https://github.com/npm/security-holder.git" + }, + "version": "0.0.1-security" +} diff --git a/frontend/package-lock.json b/frontend/package-lock.json new file mode 100644 index 0000000..fda2a8f --- /dev/null +++ b/frontend/package-lock.json @@ -0,0 +1,18 @@ +{ + "name": "frontend", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "fs": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" + }, + "http": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/http/-/http-0.0.1-security.tgz", + "integrity": "sha512-RnDvP10Ty9FxqOtPZuxtebw1j4L/WiqNMDtuc1YMH1XQm5TgDRaR1G9u8upL6KD1bXHSp9eSXo/ED+8Q7FAr+g==" + } + } +} diff --git a/frontend/package.json b/frontend/package.json new file mode 100644 index 0000000..73bed9a --- /dev/null +++ b/frontend/package.json @@ -0,0 +1,15 @@ +{ + "name": "frontend", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "dev": "node index.js" + }, + "author": "", + "license": "ISC", + "dependencies": { + "fs": "0.0.1-security", + "http": "0.0.1-security" + } +}