commit af41db4b4daf358d96adf142d92c4a2b46eec4b7 Author: n0rdye Date: Wed Feb 22 00:49:40 2023 +0500 first commit diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..5171c54 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +npm-debug.log \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..30bc162 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/node_modules \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ab86d90 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM node:16 + +# Create app directory +WORKDIR /usr/src/app + +# Install app dependencies +# A wildcard is used to ensure both package.json AND package-lock.json are copied +# where available (npm@5+) +COPY package*.json ./ + +RUN npm install +# If you are building your code for production +# RUN npm ci --only=production + +# Bundle app source +COPY . . + +EXPOSE 8080 +CMD [ "node", "index.js" ] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..72709c4 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,7 @@ +services: + pills: + image: n0rdye/pills + ports: + - 8080:8080 + volumes: + - ./:/usr/src/app diff --git a/index.js b/index.js new file mode 100644 index 0000000..bf1d3cf --- /dev/null +++ b/index.js @@ -0,0 +1,133 @@ +const express = require('express'); +const { + response, + request +} = require('express'); +const app = express(); + +const today = new Date() +const day = today.getDate(); +const month = today.getMonth()+1; +const year = today.getFullYear(); + +const { json } = require("body-parser"); +const { pathToFileURL } = require("url"); + +app.set('view engine','ejs'); +app.use(express.urlencoded({extended: false})); +app.use(express.static('public')); + +const fs = require('fs'); + + +app.get('/user', (req,res) => { + fs.readFile('./pills.json', 'utf8', (err, data) => { + let jdata = JSON.parse(data); + res.render(`user`, { data: dict_reverse(jdata)}); + }) +}) +app.get('/', (req,res) => { + res.redirect("/user"); +}) + +function dict_reverse(obj) { + new_obj= {} + rev_obj = Object.keys(obj).reverse(); + rev_obj.forEach(function(i) { + new_obj[i] = obj[i]; + }) + return new_obj; +} + +app.post('/scripts',(req,res) => { + let inp = req.body; + console.log(inp); + if(inp["func"]=="save"){ + let pill = `[${inp["pill"]}]`; + let comment = inp["comment"]; + fs.readFile('./pills.json','utf8',(err,data)=>{ + let jdata = JSON.parse(data); + let num = j_max(jdata)+1; + let name = `pill_${num}`; + let c_date = `${day}.${month}.${year}`; + jwrite_pill(name,pill,c_date,comment); + }) + console.log(pill); + } + else if(inp["func"]=="del"){ + let pill = inp["pill"]; + fs.readFile('./pills.json','utf8',(err,data)=>{ + let jdata = JSON.parse(data); + delete jdata[pill]; + jwrite(jdata); + }) + } + else if(inp["func"]=="edit"&&inp["mode"]=="save"){ + let name = inp["name"]; + let date = inp["date"]; + let comment = inp["comment"]; + let pill = inp["pill"]; + console.log("ecdit"); + jwrite_pill(name,pill,date,comment); + } + res.redirect("/user"); +}) + +function jwrite(jdata){ + // console.log(jdata); + let wdata = JSON.stringify(jdata); + fs.writeFile('./pills.json', wdata, 'utf8', err => { + if (err) { + console.log(`Error writing file: ${err}`) + } else { + console.log(`File is written successfully!`) + } + }) +} +function jwrite_pill(name,pill,date,comment){ + comment = (comment==""||comment==null&&comment==" ")? "-":comment; + fs.readFile('./pills.json','utf8',(err,data)=>{ + let jdata = JSON.parse(data); + jdata[name] = { + "date":date, + "pill":pill, + "comment":comment + }; + // console.log(jdata); + let wdata = JSON.stringify(jdata); + fs.writeFile('./pills.json', wdata, 'utf8', err => { + if (err) { + console.log(`Error writing file: ${err}`) + } else { + console.log(`File is written successfully!`) + } + }) + }) +} + +app.post("/edit",(req,res) =>{ + let inp = req.body; + let name = inp["name"]; + let pill = inp["pill"]; + let date = inp["date"]; + let comment = inp["comment"]; + console.log("e"); + res.render(`edit`, { name:name,pill:pill,comment:comment,date:date}); +}) + +function j_max(arg){ + let max = 0; + for (const key in arg) { + let num = parseInt(key.split("_")[parseInt(key.split("_").length-1)]); + // console.log(key); + max = (num>max)? num:max; + } + console.log(max); + return max; +} + + +app.all('*', (req, res) => { + res.status(404).send('

404! Page not

'); +}); +app.listen(process.env.PORT || 8080, () => console.log("started")); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100755 index 0000000..637cf62 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1391 @@ +{ + "name": "pills", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "pills", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "body-parser": "^1.20.1", + "ejs": "^3.1.8", + "express": "^4.18.2", + "express-session": "^1.17.3" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/ejs": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", + "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express-session": { + "version": "1.17.3", + "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.17.3.tgz", + "integrity": "sha512-4+otWXlShYlG1Ma+2Jnn+xgKUZTMJ5QD3YvfilX3AcocOAbIkVylSWEklzALe/+Pu4qV6TYBj5GwOBFfdKqLBw==", + "dependencies": { + "cookie": "0.4.2", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~2.0.0", + "on-headers": "~1.0.2", + "parseurl": "~1.3.3", + "safe-buffer": "5.2.1", + "uid-safe": "~2.1.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/express-session/node_modules/cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/jake": { + "version": "10.8.5", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", + "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.1", + "minimatch": "^3.0.4" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/object-inspect": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/random-bytes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", + "integrity": "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/uid-safe": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", + "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", + "dependencies": { + "random-bytes": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } + } + }, + "dependencies": { + "accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "requires": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + } + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "requires": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "requires": { + "safe-buffer": "5.2.1" + } + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + }, + "cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "ejs": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", + "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", + "requires": { + "jake": "^10.8.5" + } + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" + }, + "express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "requires": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + } + }, + "express-session": { + "version": "1.17.3", + "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.17.3.tgz", + "integrity": "sha512-4+otWXlShYlG1Ma+2Jnn+xgKUZTMJ5QD3YvfilX3AcocOAbIkVylSWEklzALe/+Pu4qV6TYBj5GwOBFfdKqLBw==", + "requires": { + "cookie": "0.4.2", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~2.0.0", + "on-headers": "~1.0.2", + "parseurl": "~1.3.3", + "safe-buffer": "5.2.1", + "uid-safe": "~2.1.5" + }, + "dependencies": { + "cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==" + } + } + }, + "filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "requires": { + "minimatch": "^5.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + } + }, + "forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + }, + "http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + }, + "jake": { + "version": "10.8.5", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", + "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", + "requires": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.1", + "minimatch": "^3.0.4" + } + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" + }, + "object-inspect": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" + }, + "on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "requires": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + } + }, + "qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "requires": { + "side-channel": "^1.0.4" + } + }, + "random-bytes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", + "integrity": "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==" + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + }, + "raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "requires": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "requires": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "dependencies": { + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + } + } + }, + "serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + } + }, + "setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + }, + "toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "uid-safe": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", + "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", + "requires": { + "random-bytes": "~1.0.0" + } + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + } + } +} diff --git a/package.json b/package.json new file mode 100755 index 0000000..57cd487 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "pills", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "body-parser": "^1.20.1", + "ejs": "^3.1.8", + "express": "^4.18.2", + "express-session": "^1.17.3" + } +} diff --git a/pills.json b/pills.json new file mode 100644 index 0000000..33c8733 --- /dev/null +++ b/pills.json @@ -0,0 +1 @@ +{"count":477,"pill_0":{"date":"28.10.2021","pill":"[4/2/1]","comment":"-"},"pill_1":{"date":"29.10.2021","pill":"[4/2]","comment":"-"},"pill_2":{"date":"30.10.2021","pill":"[4/2]","comment":"-"},"pill_3":{"date":"31.10.2021","pill":"[4/2]","comment":"-"},"pill_4":{"date":"1.11.2021","pill":"[4/2/1]","comment":"-"},"pill_5":{"date":"2.11.2021","pill":"[4/2]","comment":"-"},"pill_6":{"date":"3.11.2021","pill":"[4/2]","comment":"-"},"pill_7":{"date":"4.11.2021","pill":"[4/2]","comment":"-"},"pill_8":{"date":"5.11.2021","pill":"[4/2/1]","comment":"-"},"pill_9":{"date":"6.11.2021","pill":"[2]","comment":"MNO [4,5]"},"pill_10":{"date":"7.11.2021","pill":"[2]","comment":"-"},"pill_11":{"date":"8.11.2021","pill":"[4/2]","comment":"-"},"pill_12":{"date":"9.11.2021","pill":"[4/2]","comment":"-"},"pill_13":{"date":"10.11.2021","pill":"[4/2]","comment":"-"},"pill_14":{"date":"11.11.2021","pill":"[4/2]","comment":"-"},"pill_15":{"date":"12.11.2021","pill":"[4/2]","comment":"-"},"pill_16":{"date":"13.11.2021","pill":"[4/2]","comment":"-"},"pill_17":{"date":"14.11.2021","pill":"[4/2/1]","comment":"-"},"pill_18":{"date":"15.11.2021","pill":"[4/2]","comment":"-"},"pill_19":{"date":"16.11.2021","pill":"[4/2]","comment":"-"},"pill_20":{"date":"17.11.2021","pill":"[4/2]","comment":"-"},"pill_21":{"date":"18.11.2021","pill":"[4/2]","comment":"-"},"pill_22":{"date":"19.11.2021","pill":"[4/2]","comment":"-"},"pill_23":{"date":"20.11.2021","pill":"[4/2]","comment":"-"},"pill_24":{"date":"21.11.2021","pill":"[4/2/1]","comment":"-"},"pill_25":{"date":"22.11.2021","pill":"[0]","comment":"-"},"pill_26":{"date":"23.11.2021","pill":"[4/2]","comment":"-"},"pill_27":{"date":"24.11.2021","pill":"[4/2]","comment":"-"},"pill_28":{"date":"25.11.2021","pill":"[4/2]","comment":"-"},"pill_29":{"date":"26.11.2021","pill":"[4/2]","comment":"-"},"pill_30":{"date":"27.11.2021","pill":"[4/2]","comment":"-"},"pill_31":{"date":"28.11.2021","pill":"[4/2]","comment":"-"},"pill_32":{"date":"28.11.2021","pill":"[4/2/1]","comment":"-"},"pill_33":{"date":"29.11.2021","pill":"[4/2]","comment":"-"},"pill_34":{"date":"30.11.2021","pill":"[4/2]","comment":"-"},"pill_35":{"date":"1.12.2021","pill":"[4/2]","comment":"-"},"pill_36":{"date":"2.12.2021","pill":"[4/2]","comment":"-"},"pill_37":{"date":"3.12.2021","pill":"[4/2]","comment":"-"},"pill_38":{"date":"4.12.2021","pill":"[4/2]","comment":"-"},"pill_39":{"date":"5.12.2021","pill":"[4/2/1]","comment":"-"},"pill_40":{"date":"6.12.2021","pill":"[4/2]","comment":"-"},"pill_41":{"date":"7.12.2021","pill":"[4/2]","comment":"-"},"pill_42":{"date":"8.12.2021","pill":"[4/2]","comment":"-"},"pill_43":{"date":"9.12.2021","pill":"[4/2]","comment":"-"},"pill_44":{"date":"10.12.2021","pill":"[4/2]","comment":"-"},"pill_45":{"date":"11.12.2021","pill":"[4/2]","comment":"-"},"pill_46":{"date":"12.12.2021","pill":"[4/2/1]","comment":"-"},"pill_47":{"date":"13.12.2021","pill":"[4/2]","comment":"-"},"pill_48":{"date":"14.12.2021","pill":"[4/2]","comment":"-"},"pill_49":{"date":"15.12.2021","pill":"[4/2]","comment":"-"},"pill_50":{"date":"16.12.2021","pill":"[4/2]","comment":"-"},"pill_51":{"date":"19.12.2021","pill":"[4/2]","comment":"-"},"pill_52":{"date":"20.12.2021","pill":"[4/2]","comment":"-"},"pill_53":{"date":"21.12.2021","pill":"[4/2/1]","comment":"-"},"pill_54":{"date":"22.12.2021","pill":"[4/2]","comment":"-"},"pill_55":{"date":"23.12.2021","pill":"[4/2]","comment":"-"},"pill_56":{"date":"24.12.2021","pill":"[4/2]","comment":"-"},"pill_57":{"date":"25.12.2021","pill":"[4/2]","comment":"-"},"pill_58":{"date":"26.12.2021","pill":"[4/2]","comment":"-"},"pill_59":{"date":"27.12.2021","pill":"[4/2]","comment":"-"},"pill_60":{"date":"28.12.2021","pill":"[4/2/1]","comment":"-"},"pill_61":{"date":"30.12.2021","pill":"[4/2]","comment":"-"},"pill_62":{"date":"31.12.2021","pill":"[4/2]","comment":"-"},"pill_63":{"date":"1.1.2022","pill":"[4/2]","comment":"-"},"pill_64":{"date":"2.1.2022","pill":"[4/2]","comment":"-"},"pill_65":{"date":"3.1.2022","pill":"[4/2]","comment":"-"},"pill_66":{"date":"4.1.2022","pill":"[4/2/1]","comment":"-"},"pill_67":{"date":"5.1.2022","pill":"[4/2]","comment":"-"},"pill_68":{"date":"6.1.2022","pill":"[4/2]","comment":"-"},"pill_69":{"date":"7.1.2022","pill":"[4/2]","comment":"-"},"pill_70":{"date":"8.1.2022","pill":"[4/2]","comment":"-"},"pill_71":{"date":"9.1.2022","pill":"[4/2]","comment":"-"},"pill_72":{"date":"10.1.2022","pill":"[4/2]","comment":"-"},"pill_73":{"date":"11.1.2022","pill":"[4/2/1]","comment":"-"},"pill_74":{"date":"12.1.2022","pill":"[4/2]","comment":"-"},"pill_75":{"date":"14.1.2022","pill":"[4/2]","comment":"-"},"pill_76":{"date":"15.1.2022","pill":"[4/2]","comment":"-"},"pill_77":{"date":"16.1.2022","pill":"[4/2]","comment":"-"},"pill_78":{"date":"17.1.2022","pill":"[4/2]","comment":"-"},"pill_79":{"date":"18.1.2022","pill":"[4]","comment":"-"},"pill_80":{"date":"19.1.2022","pill":"[4/2]","comment":"-"},"pill_81":{"date":"20.1.2022","pill":"[4/2]","comment":"-"},"pill_82":{"date":"21.1.2022","pill":"[4/2]","comment":"-"},"pill_83":{"date":"22.1.2022","pill":"[4/2]","comment":"-"},"pill_84":{"date":"23.1.2022","pill":"[4/2/1]","comment":"-"},"pill_85":{"date":"24.1.2022","pill":"[4/2]","comment":"-"},"pill_86":{"date":"25.1.2022","pill":"[4/2]","comment":"-"},"pill_87":{"date":"26.1.2022","pill":"[4/2]","comment":"-"},"pill_88":{"date":"27.1.2022","pill":"[4/2]","comment":"-"},"pill_89":{"date":"28.1.2022","pill":"[4/2]","comment":"-"},"pill_90":{"date":"29.1.2022","pill":"[2]","comment":"MNO [5,6]"},"pill_91":{"date":"30.1.2022","pill":"[2]","comment":"-"},"pill_92":{"date":"31.1.2022","pill":"[2]","comment":"-"},"pill_93":{"date":"1.2.2022","pill":"[2]","comment":"-"},"pill_94":{"date":"2.2.2022","pill":"[2]","comment":"-"},"pill_95":{"date":"3.2.2022","pill":"[2]","comment":"-"},"pill_96":{"date":"4.2.2022","pill":"[2]","comment":"-"},"pill_97":{"date":"5.2.2022","pill":"[4/1]","comment":"-"},"pill_98":{"date":"6.2.2022","pill":"[4/1]","comment":"-"},"pill_99":{"date":"7.2.2022","pill":"[4/1]","comment":"-"},"pill_100":{"date":"8.2.2022","pill":"[4/1]","comment":"-"},"pill_101":{"date":"9.2.2022","pill":"[4/1]","comment":"-"},"pill_102":{"date":"10.2.2022","pill":"[4/2]","comment":"MNO [2,2]"},"pill_103":{"date":"11.2.2022","pill":"[4/2]","comment":"-"},"pill_104":{"date":"12.2.2022","pill":"[4/2]","comment":"-"},"pill_105":{"date":"13.2.2022","pill":"[4/2]","comment":"-"},"pill_106":{"date":"14.2.2022","pill":"[4/2]","comment":"-"},"pill_107":{"date":"15.2.2022","pill":"[4/2]","comment":"-"},"pill_108":{"date":"16.2.2022","pill":"[4/2]","comment":"-"},"pill_109":{"date":"17.2.2022","pill":"[4/2]","comment":"-"},"pill_110":{"date":"18.2.2022","pill":"[4/1]","comment":"-"},"pill_111":{"date":"19.2.2022","pill":"[4/1]","comment":"-"},"pill_112":{"date":"20.2.2022","pill":"[4/1]","comment":"-"},"pill_113":{"date":"21.2.2022","pill":"[4/2]","comment":"-"},"pill_114":{"date":"22.2.2022","pill":"[0]","comment":"-"},"pill_115":{"date":"23.2.2022","pill":"[4/2]","comment":"-"},"pill_116":{"date":"24.2.2022","pill":"[4/2]","comment":"-"},"pill_117":{"date":"25.2.2022","pill":"[4/2]","comment":"-"},"pill_118":{"date":"26.2.2022","pill":"[4/2]","comment":"-"},"pill_119":{"date":"27.2.2022","pill":"[4/1]","comment":"-"},"pill_120":{"date":"28.2.2022","pill":"[4/1]","comment":"-"},"pill_121":{"date":"1.3.2022","pill":"[4/1]","comment":"-"},"pill_122":{"date":"2.3.2022","pill":"[4/2]","comment":"-"},"pill_123":{"date":"3.3.2022","pill":"[4/2]","comment":"-"},"pill_124":{"date":"4.3.2022","pill":"[4/2]","comment":"-"},"pill_125":{"date":"5.3.2022","pill":"[4/2]","comment":"-"},"pill_126":{"date":"6.3.2022","pill":"[4/1]","comment":"-"},"pill_127":{"date":"7.3.2022","pill":"[4/1]","comment":"-"},"pill_128":{"date":"8.3.2022","pill":"[4/1]","comment":"-"},"pill_129":{"date":"9.3.2022","pill":"[4/2]","comment":"-"},"pill_130":{"date":"10.3.2022","pill":"[4/2]","comment":"-"},"pill_131":{"date":"11.3.2022","pill":"[4/2]","comment":"-"},"pill_132":{"date":"12.3.2022","pill":"[4/2]","comment":"-"},"pill_133":{"date":"13.3.2022","pill":"[4/1]","comment":"-"},"pill_134":{"date":"14.3.2022","pill":"[4/1]","comment":"-"},"pill_135":{"date":"15.3.2022","pill":"[4/1]","comment":"-"},"pill_136":{"date":"16.3.2022","pill":"[4/2]","comment":"-"},"pill_137":{"date":"17.3.2022","pill":"[4/2]","comment":"-"},"pill_138":{"date":"18.3.2022","pill":"[4/2]","comment":"-"},"pill_139":{"date":"19.3.2022","pill":"[4/2]","comment":"-"},"pill_140":{"date":"20.3.2022","pill":"[4/1]","comment":"-"},"pill_141":{"date":"21.3.2022","pill":"[4/1]","comment":"-"},"pill_142":{"date":"22.3.2022","pill":"[4/1]","comment":"-"},"pill_143":{"date":"23.3.2022","pill":"[4/2]","comment":"-"},"pill_144":{"date":"24.3.2022","pill":"[4/2]","comment":"-"},"pill_145":{"date":"25.3.2022","pill":"[4/2]","comment":"-"},"pill_146":{"date":"26.3.2022","pill":"[4/2]","comment":"-"},"pill_147":{"date":"27.3.2022","pill":"[4/1]","comment":"-"},"pill_148":{"date":"28.3.2022","pill":"[4/1]","comment":"-"},"pill_149":{"date":"29.3.2022","pill":"[4/1]","comment":"-"},"pill_150":{"date":"30.3.2022","pill":"[4/2]","comment":"-"},"pill_151":{"date":"31.3.2022","pill":"[4/2]","comment":"-"},"pill_152":{"date":"1.4.2022","pill":"[4/2]","comment":"-"},"pill_153":{"date":"2.4.2022","pill":"[4/2]","comment":"-"},"pill_154":{"date":"3.4.2022","pill":"[4/1]","comment":"-"},"pill_155":{"date":"4.4.2022","pill":"[4/1]","comment":"-"},"pill_156":{"date":"5.4.2022","pill":"[4/1]","comment":"-"},"pill_157":{"date":"6.4.2022","pill":"[4/2]","comment":"-"},"pill_158":{"date":"7.4.2022","pill":"[4/2]","comment":"-"},"pill_159":{"date":"8.4.2022","pill":"[4/2]","comment":"-"},"pill_160":{"date":"9.4.2022","pill":"[4/2]","comment":"-"},"pill_161":{"date":"10.4.2022","pill":"[4/1]","comment":"-"},"pill_162":{"date":"11.4.2022","pill":"[4/1]","comment":"-"},"pill_163":{"date":"12.4.2022","pill":"[4/1]","comment":"-"},"pill_164":{"date":"13.4.2022","pill":"[4/2]","comment":"-"},"pill_165":{"date":"14.4.2022","pill":"[4/2]","comment":"-"},"pill_166":{"date":"15.4.2022","pill":"[4/2]","comment":"-"},"pill_167":{"date":"16.4.2022","pill":"[4/2]","comment":"-"},"pill_168":{"date":"17.4.2022","pill":"[4/1]","comment":"-"},"pill_169":{"date":"18.4.2022","pill":"[4/1]","comment":"-"},"pill_170":{"date":"19.4.2022","pill":"[4/1]","comment":"-"},"pill_171":{"date":"20.4.2022","pill":"[4/2]","comment":"-"},"pill_172":{"date":"21.4.2022","pill":"[4/2]","comment":"-"},"pill_173":{"date":"22.4.2022","pill":"[4/2]","comment":"-"},"pill_174":{"date":"23.4.2022","pill":"[4/2]","comment":"-"},"pill_175":{"date":"24.4.2022","pill":"[4/1]","comment":"-"},"pill_176":{"date":"25.4.2022","pill":"[4/1]","comment":"-"},"pill_177":{"date":"26.4.2022","pill":"[4/1]","comment":"-"},"pill_178":{"date":"27.4.2022","pill":"[4/2]","comment":"-"},"pill_179":{"date":"28.4.2022","pill":"[4/2]","comment":"-"},"pill_180":{"date":"29.4.2022","pill":"[4/2]","comment":"-"},"pill_181":{"date":"30.4.2022","pill":"[4/2]","comment":"-"},"pill_182":{"date":"1.5.2022","pill":"[4/1]","comment":"-"},"pill_183":{"date":"2.5.2022","pill":"[4/1]","comment":"-"},"pill_184":{"date":"3.5.2022","pill":"[4/1]","comment":"-"},"pill_185":{"date":"4.5.2022","pill":"[4/2]","comment":"-"},"pill_186":{"date":"5.5.2022","pill":"[4/2]","comment":"-"},"pill_187":{"date":"6.5.2022","pill":"[4/2]","comment":"-"},"pill_188":{"date":"7.5.2022","pill":"[4/2]","comment":"-"},"pill_189":{"date":"8.5.2022","pill":"[4/1]","comment":"-"},"pill_190":{"date":"9.5.2022","pill":"[4/1]","comment":"-"},"pill_191":{"date":"10.5.2022","pill":"[4/1]","comment":"-"},"pill_192":{"date":"11.5.2022","pill":"[4/2]","comment":"-"},"pill_193":{"date":"12.5.2022","pill":"[4/2]","comment":"-"},"pill_194":{"date":"13.5.2022","pill":"[4/2]","comment":"-"},"pill_195":{"date":"14.5.2022","pill":"[4/2]","comment":"-"},"pill_196":{"date":"15.5.2022","pill":"[4/1]","comment":"-"},"pill_197":{"date":"16.5.2022","pill":"[4/1]","comment":"-"},"pill_198":{"date":"17.5.2022","pill":"[4/1]","comment":"-"},"pill_199":{"date":"18.5.2022","pill":"[4/2]","comment":"-"},"pill_200":{"date":"19.5.2022","pill":"[4/2]","comment":"-"},"pill_201":{"date":"20.5.2022","pill":"[4/2]","comment":"-"},"pill_202":{"date":"21.5.2022","pill":"[4/2]","comment":"-"},"pill_203":{"date":"22.5.2022","pill":"[4/1]","comment":"-"},"pill_204":{"date":"23.5.2022","pill":"[4/1]","comment":"-"},"pill_205":{"date":"24.5.2022","pill":"[4/1]","comment":"-"},"pill_206":{"date":"25.5.2022","pill":"[4/2]","comment":"-"},"pill_207":{"date":"26.5.2022","pill":"[4/2]","comment":"-"},"pill_208":{"date":"27.5.2022","pill":"[4/2]","comment":"-"},"pill_209":{"date":"28.5.2022","pill":"[4/2]","comment":"-"},"pill_210":{"date":"29.5.2022","pill":"[4/1]","comment":"-"},"pill_211":{"date":"30.5.2022","pill":"[4/1]","comment":"-"},"pill_212":{"date":"31.5.2022","pill":"[4/1]","comment":"-"},"pill_213":{"date":"1.6.2022","pill":"[4/2]","comment":"-"},"pill_214":{"date":"2.6.2022","pill":"[4/2]","comment":"-"},"pill_215":{"date":"3.6.2022","pill":"[4/2]","comment":"-"},"pill_216":{"date":"4.6.2022","pill":"[4/2]","comment":"-"},"pill_217":{"date":"5.6.2022","pill":"[4/1]","comment":"-"},"pill_218":{"date":"6.6.2022","pill":"[4/1]","comment":"-"},"pill_219":{"date":"7.6.2022","pill":"[4/1]","comment":"-"},"pill_220":{"date":"8.6.2022","pill":"[4/2]","comment":"-"},"pill_221":{"date":"9.6.2022","pill":"[4/2]","comment":"-"},"pill_222":{"date":"10.6.2022","pill":"[4/2]","comment":"-"},"pill_223":{"date":"11.6.2022","pill":"[4/2]","comment":"-"},"pill_224":{"date":"12.6.2022","pill":"[4/1]","comment":"-"},"pill_225":{"date":"13.6.2022","pill":"[4/1]","comment":"-"},"pill_226":{"date":"14.6.2022","pill":"[4/1]","comment":"-"},"pill_227":{"date":"15.6.2022","pill":"[4/2]","comment":"-"},"pill_228":{"date":"16.6.2022","pill":"[4/2]","comment":"-"},"pill_229":{"date":"17.6.2022","pill":"[4/2]","comment":"-"},"pill_230":{"date":"18.6.2022","pill":"[4/2]","comment":"-"},"pill_231":{"date":"19.6.2022","pill":"[4/1]","comment":"-"},"pill_232":{"date":"20.6.2022","pill":"[4/1]","comment":"-"},"pill_233":{"date":"21.6.2022","pill":"[4/1]","comment":"-"},"pill_234":{"date":"22.6.2022","pill":"[4/2]","comment":"-"},"pill_235":{"date":"23.6.2022","pill":"[4/2]","comment":"-"},"pill_236":{"date":"24.6.2022","pill":"[4/2]","comment":"-"},"pill_237":{"date":"25.6.2022","pill":"[4/2]","comment":"-"},"pill_238":{"date":"26.6.2022","pill":"[4/1]","comment":"-"},"pill_239":{"date":"27.6.2022","pill":"[4/1]","comment":"-"},"pill_240":{"date":"28.06.2022","pill":"[4/1]","comment":"-"},"pill_241":{"date":"29.6.2022","pill":"[4/2]","comment":"-"},"pill_242":{"date":"30.6.2022","pill":"[4/2]","comment":"-"},"pill_243":{"date":"1.7.2022","pill":"[4/2]","comment":"-"},"pill_244":{"date":"2.7.2022","pill":"[4/2]","comment":"-"},"pill_245":{"date":"3.7.2022","pill":"[4/1]","comment":"-"},"pill_246":{"date":"4.7.2022","pill":"[4/1]","comment":"-"},"pill_247":{"date":"5.7.2022","pill":"[4/1]","comment":"-"},"pill_248":{"date":"6.7.2022","pill":"[4/2]","comment":"-"},"pill_249":{"date":"7.7.2022","pill":"[4/2]","comment":"-"},"pill_250":{"date":"8.7.2022","pill":"[4/2]","comment":"-"},"pill_251":{"date":"9.7.2022","pill":"[4/2]","comment":"-"},"pill_252":{"date":"10.7.2022","pill":"[4/1]","comment":"-"},"pill_253":{"date":"11.7.2022","pill":"[4/1]","comment":"-"},"pill_254":{"date":"12.7.2022","pill":"[4/1]","comment":"-"},"pill_255":{"date":"13.7.2022","pill":"[4/2]","comment":"-"},"pill_256":{"date":"14.7.2022","pill":"[4/2]","comment":"-"},"pill_257":{"date":"15.7.2022","pill":"[4/2]","comment":"-"},"pill_258":{"date":"16.7.2022","pill":"[4/2]","comment":"-"},"pill_259":{"date":"17.7.2022","pill":"[4/1]","comment":"-"},"pill_260":{"date":"18.7.2022","pill":"[4/1]","comment":"-"},"pill_261":{"date":"19.7.2022","pill":"[4/1]","comment":"-"},"pill_262":{"date":"20.7.2022","pill":"[4/2]","comment":"-"},"pill_263":{"date":"21.7.2022","pill":"[4/2]","comment":"-"},"pill_264":{"date":"22.7.2022","pill":"[4/2]","comment":"-"},"pill_265":{"date":"23.7.2022","pill":"[4/2]","comment":"-"},"pill_266":{"date":"24.7.2022","pill":"[4/1]","comment":"-"},"pill_267":{"date":"25.7.2022","pill":"[4/1]","comment":"-"},"pill_268":{"date":"26.7.2022","pill":"[4/1]","comment":"-"},"pill_269":{"date":"27.7.2022","pill":"[4/2]","comment":"-"},"pill_270":{"date":"28.7.2022","pill":"[4/2]","comment":"-"},"pill_271":{"date":"29.7.2022","pill":"[4/2]","comment":"-"},"pill_272":{"date":"30.7.2022","pill":"[4/2]","comment":"-"},"pill_273":{"date":"31.7.2022","pill":"[4/1]","comment":"-"},"pill_274":{"date":"1.8.2022","pill":"[4/1]","comment":"-"},"pill_275":{"date":"2.8.2022","pill":"[4/1]","comment":"-"},"pill_276":{"date":"3.8.2022","pill":"[4/1]","comment":"-"},"pill_277":{"date":"4.8.2022","pill":"[4/2]","comment":"-"},"pill_278":{"date":"5.8.2022","pill":"[4/2]","comment":"-"},"pill_279":{"date":"6.8.2022","pill":"[4/2]","comment":"-"},"pill_280":{"date":"7.8.2022","pill":"[4/2]","comment":"-"},"pill_281":{"date":"8.8.2022","pill":"[4/1]","comment":"-"},"pill_282":{"date":"9.8.2022","pill":"[4/1]","comment":"-"},"pill_283":{"date":"10.8.2022","pill":"[4/1]","comment":"-"},"pill_284":{"date":"11.8.2022","pill":"[4/2]","comment":"-"},"pill_285":{"date":"12.8.2022","pill":"[4/2]","comment":"-"},"pill_286":{"date":"13.8.2022","pill":"[4/2]","comment":"-"},"pill_287":{"date":"14.8.2022","pill":"[4/2]","comment":"-"},"pill_288":{"date":"15.8.2022","pill":"[4/1]","comment":"-"},"pill_289":{"date":"16.8.2022","pill":"[4/1]","comment":"-"},"pill_290":{"date":"17.8.2022","pill":"[4/1]","comment":"-"},"pill_291":{"date":"18.8.2022","pill":"[4/2]","comment":"-"},"pill_292":{"date":"19.8.2022","pill":"[4/2]","comment":"-"},"pill_293":{"date":"20.8.2022","pill":"[4/2]","comment":"-"},"pill_294":{"date":"21.8.2022","pill":"[4/2]","comment":"-"},"pill_295":{"date":"22.8.2022","pill":"[4/1]","comment":"-"},"pill_296":{"date":"23.8.2022","pill":"[4/1]","comment":"-"},"pill_297":{"date":"24.8.2022","pill":"[4/1]","comment":"-"},"pill_298":{"date":"25.8.2022","pill":"[4/2]","comment":"-"},"pill_299":{"date":"26.8.2022","pill":"[4/2]","comment":"-"},"pill_300":{"date":"27.8.2022","pill":"[4/2]","comment":"-"},"pill_301":{"date":"28.8.2022","pill":"[4/2]","comment":"-"},"pill_302":{"date":"29.8.2022","pill":"[4/1]","comment":"-"},"pill_303":{"date":"30.8.2022","pill":"[4/1]","comment":"-"},"pill_304":{"date":"31.8.2022","pill":"[4/1]","comment":"-"},"pill_305":{"date":"1.9.2022","pill":"[4/2]","comment":"-"},"pill_306":{"date":"2.9.2022","pill":"[4/2]","comment":"-"},"pill_307":{"date":"3.9.2022","pill":"[4/2]","comment":"-"},"pill_308":{"date":"4.9.2022","pill":"[4/2]","comment":"-"},"pill_309":{"date":"5.9.2022","pill":"[4/1]","comment":"-"},"pill_310":{"date":"6.9.2022","pill":"[4/1]","comment":"-"},"pill_311":{"date":"7.9.2022","pill":"[4/1]","comment":"-"},"pill_312":{"date":"8.9.2022","pill":"[4/2]","comment":"-"},"pill_313":{"date":"9.9.2022","pill":"[4/2]","comment":"-"},"pill_314":{"date":"10.9.2022","pill":"[4/2]","comment":"-"},"pill_315":{"date":"11.9.2022","pill":"[4/2]","comment":"-"},"pill_316":{"date":"12.9.2022","pill":"[4/1]","comment":"-"},"pill_317":{"date":"13.9.2022","pill":"[4/1]","comment":"-"},"pill_318":{"date":"14.9.2022","pill":"[4/1]","comment":"-"},"pill_319":{"date":"15.9.2022","pill":"[4/2]","comment":"-"},"pill_320":{"date":"16.9.2022","pill":"[4/2]","comment":"-"},"pill_321":{"date":"17.9.2022","pill":"[4/2]","comment":"-"},"pill_322":{"date":"18.9.2022","pill":"[4/2]","comment":"-"},"pill_323":{"date":"19.9.2022","pill":"[4/1]","comment":"-"},"pill_324":{"date":"20.9.2022","pill":"[4/1]","comment":"-"},"pill_325":{"date":"21.9.2022","pill":"[4/1]","comment":"-"},"pill_326":{"date":"22.9.2022","pill":"[4/2]","comment":"-"},"pill_327":{"date":"23.9.2022","pill":"[4/2]","comment":"-"},"pill_328":{"date":"24.9.2022","pill":"[4/2]","comment":"-"},"pill_329":{"date":"25.9.2022","pill":"[4/2]","comment":"-"},"pill_330":{"date":"26.9.2022","pill":"[4/1]","comment":"-"},"pill_331":{"date":"27.9.2022","pill":"[4/1]","comment":"-"},"pill_332":{"date":"28.9.2022","pill":"[4/1]","comment":"-"},"pill_333":{"date":"29.9.2022","pill":"[4/2]","comment":"-"},"pill_334":{"date":"30.9.2022","pill":"[4/2]","comment":"-"},"pill_335":{"date":"1.10.2022","pill":"[4/1]","comment":"-"},"pill_336":{"date":"2.10.2022","pill":"[4/2]","comment":"-"},"pill_337":{"date":"3.10.2022","pill":"[4/2]","comment":"-"},"pill_338":{"date":"4.10.2022","pill":"[4/1]","comment":"-"},"pill_339":{"date":"5.10.2022","pill":"[4/1]","comment":"-"},"pill_340":{"date":"6.10.2022","pill":"[4/1]","comment":"-"},"pill_341":{"date":"7.10.2022","pill":"[4/2]","comment":"-"},"pill_342":{"date":"8.10.2022","pill":"[4/2]","comment":"-"},"pill_343":{"date":"9.10.2022","pill":"[4/2]","comment":"-"},"pill_344":{"date":"10.10.2022","pill":"[4/2]","comment":"-"},"pill_345":{"date":"11.10.2022","pill":"[0]","comment":"MNO [61,2]"},"pill_346":{"date":"12.10.2022","pill":"[0]","comment":"MNO [42] давление 132 на 86"},"pill_347":{"date":"13.10.2022","pill":"[0]","comment":"MNO [24]"},"pill_348":{"date":"14.10.2022","pill":"[0]","comment":"MNO [18,3]"},"pill_349":{"date":"15.10.2022","pill":"[0]","comment":"MNO [14,7]"},"pill_350":{"date":"16.10.2022","pill":"[0]","comment":"-"},"pill_351":{"date":"17.10.2022","pill":"[0]","comment":"MNO [13,8]"},"pill_352":{"date":"18.10.2022","pill":"[0]","comment":"-"},"pill_353":{"date":"19.10.2022","pill":"[0]","comment":""},"pill_354":{"date":"20.10.2022","pill":"[0]","comment":"MNO [13,3]"},"pill_355":{"date":"21.10.2022","pill":"[0]","comment":"-"},"pill_356":{"date":"22.10.2022","pill":"[0]","comment":"MNO [13,4]"},"pill_357":{"date":"23.10.2022","pill":"[0]","comment":"-"},"pill_358":{"date":"24.10.2022","pill":"[0]","comment":"-"},"pill_359":{"date":"25.10.2022","pill":"[0]","comment":"-"},"pill_360":{"date":"26.10.2022","pill":"[0]","comment":"-"},"pill_361":{"date":"27.10.2022","pill":"[0]","comment":"MNO [13.5]"},"pill_362":{"date":"28.10.2022","pill":"[0]","comment":"-"},"pill_363":{"date":"29.10.2022","pill":"[0]","comment":"-"},"pill_364":{"date":"30.10.2022","pill":"[0]","comment":"MNO [13.0]"},"pill_365":{"date":"31.10.2022","pill":"[0]","comment":"-"},"pill_366":{"date":"1.11.2022","pill":"[0]","comment":"-"},"pill_367":{"date":"2.11.2022","pill":"[0]","comment":"-"},"pill_368":{"date":"3.11.2022","pill":"[0]","comment":"MNO[1]"},"pill_369":{"date":"4.11.2022","pill":"[4]","comment":"MNO[13.6]"},"pill_370":{"date":"5.11.2022","pill":"[4]","comment":"-"},"pill_371":{"date":"6.11.2022","pill":"[4]","comment":"-"},"pill_372":{"date":"07.11.2022","pill":"[4]","comment":"-"},"pill_373":{"date":"08.11.2022","pill":"[4]","comment":"-"},"pill_374":{"date":"09.11.2022","pill":"[4]","comment":"MNO[13.6]"},"pill_375":{"date":"10.11.2022","pill":"[4]","comment":"-"},"pill_376":{"date":"11.11.2022","pill":"[4]","comment":"-"},"pill_377":{"date":"12.11.2022","pill":"[4]","comment":"MNO[2.5]"},"pill_378":{"date":"13.11.2022","pill":"[4]","comment":"-"},"pill_379":{"date":"14.11.2022","pill":"[4]","comment":"-"},"pill_380":{"date":"15.11.2022","pill":"[4]","comment":"-"},"pill_381":{"date":"16.11.2022","pill":"[4]","comment":"-"},"pill_382":{"date":"17.11.2022","pill":"[4]","comment":"-"},"pill_383":{"date":"18.11.2022","pill":"[4]","comment":"-"},"pill_384":{"date":"19.11.2022","pill":"[4]","comment":"-"},"pill_385":{"date":"20.11.2022","pill":"[4]","comment":"-"},"pill_386":{"date":"21.11.2022","pill":"[4]","comment":"-"},"pill_387":{"date":"22.11.2022","pill":"[4]","comment":"-"},"pill_388":{"date":"23.11.2022","pill":"[4]","comment":"-"},"pill_389":{"date":"24.11.2022","pill":"[4]","comment":"-"},"pill_390":{"date":"25.11.2022","pill":"[4]","comment":"-"},"pill_391":{"date":"26.11.2022","pill":"[4]","comment":"-"},"pill_392":{"date":"27.11.2022","pill":"[4]","comment":"-"},"pill_393":{"date":"28.11.2022","pill":"[4]","comment":"-"},"pill_394":{"date":"29.11.2022","pill":"[4]","comment":"-"},"pill_395":{"date":"30.11.2022","pill":"[4]","comment":"MNO [3.0]"},"pill_396":{"date":"1.12.2022","pill":"[4]","comment":"-"},"pill_397":{"date":"2.12.2022","pill":"[4]","comment":"-"},"pill_398":{"date":"3.12.2022","pill":"[4]","comment":"-"},"pill_399":{"date":"4.12.2022","pill":"[4]","comment":"-"},"pill_400":{"date":"5.12.2022","pill":"[4]","comment":"-"},"pill_401":{"date":"6.12.2022","pill":"[4]","comment":"-"},"pill_402":{"date":"7.12.2022","pill":"[4]","comment":"-"},"pill_403":{"date":"8.12.2022","pill":"[4]","comment":"-"},"pill_404":{"date":"9.12.2022","pill":"[4]","comment":"-"},"pill_405":{"date":"10.12.2022","pill":"[4]","comment":"-"},"pill_406":{"date":"11.12.2022","pill":"[4]","comment":"-"},"pill_407":{"date":"12.12.2022","pill":"[4]","comment":"-"},"pill_408":{"date":"13.12.2022","pill":"[4]","comment":"-"},"pill_409":{"date":"14.12.2022","pill":"[4]","comment":"-"},"pill_410":{"date":"15.12.2022","pill":"[4]","comment":"-"},"pill_411":{"date":"16.12.2022","pill":"[4]","comment":"-"},"pill_412":{"date":"17.12.2022","pill":"[4]","comment":"-"},"pill_413":{"date":"18.12.2022","pill":"[4]","comment":"-"},"pill_414":{"date":"19.12.2022","pill":"[4]","comment":"-"},"pill_415":{"date":"20.12.2022","pill":"[4]","comment":"-"},"pill_416":{"date":"21.12.2022","pill":"[4]","comment":"-"},"pill_417":{"date":"22.12.2022","pill":"[4]","comment":"-"},"pill_418":{"date":"23.12.2022","pill":"[4]","comment":"-"},"pill_419":{"date":"24.12.2022","pill":"[4]","comment":"-"},"pill_420":{"date":"25.12.2022","pill":"[4]","comment":"-"},"pill_422":{"date":"27.12.2022","pill":"[4]","comment":"-"},"pill_423":{"date":"28.12.2022","pill":"[4]","comment":"-"},"pill_424":{"date":"29.12.2022","pill":"[4]","comment":"-"},"pill_425":{"date":"30.12.2022","pill":"[4]","comment":"-"},"pill_426":{"date":"1.01.2023","pill":"[4]","comment":"-"},"pill_427":{"date":"2.01.2023","pill":"[4]","comment":"-"},"pill_428":{"date":"3.01.2023","pill":"[4]","comment":"-"},"pill_429":{"date":"04.01.2023","pill":"[4]","comment":"-"},"pill_430":{"date":"05.01.2023","pill":"[4]","comment":"-"},"pill_431":{"date":"06.01.2023","pill":"[4]","comment":"-"},"pill_432":{"date":"7.01.2023","pill":"[4]","comment":"-"},"pill_433":{"date":"8.01.2023","pill":"[4]","comment":"-"},"pill_434":{"date":"9.01.2023","pill":"[4]","comment":"-"},"pill_435":{"date":"10.01.2023","pill":"[4]","comment":"-"},"pill_436":{"date":"11.01.2023","pill":"[4]","comment":"-"},"pill_437":{"date":"12.01.2023","pill":"[4]","comment":"-"},"pill_438":{"date":"13.01.2023","pill":"[4]","comment":"-"},"pill_439":{"date":"14.01.2023","pill":"[4]","comment":"-"},"pill_440":{"date":"15.01.2023","pill":"[4]","comment":"-"},"pill_441":{"date":"16.01.2023","pill":"[4]","comment":"-"},"pill_442":{"date":"17.01.2023","pill":"[4]","comment":"-"},"pill_443":{"date":"18.01.2023","pill":"[4]","comment":"-"},"pill_444":{"date":"19.01.2023","pill":"[4]","comment":"-"},"pill_445":{"date":"20.01.2023","pill":"[4]","comment":"-"},"pill_446":{"date":"21.01.2023","pill":"[4]","comment":"-"},"pill_447":{"date":"22.01.2023","pill":"[4]","comment":"-"},"pill_448":{"date":"23.01.2023","pill":"[4]","comment":"-"},"pill_449":{"date":"24.01.2023","pill":"[4]","comment":"-"},"pill_450":{"date":"25.01.2023","pill":"[4]","comment":"-"},"pill_451":{"date":"26.01.2023","pill":"[4]","comment":"-"},"pill_452":{"date":"27.01.2023","pill":"[4]","comment":"-"},"pill_453":{"date":"28.01.2023","pill":"[4]","comment":"-"},"pill_454":{"date":"29.1.2023","pill":"[4]","comment":"Новая система"},"pill_455":{"date":"30.1.2023","pill":"[4]","comment":"-"},"pill_456":{"date":"31.1.2023","pill":"[4]","comment":"-"},"pill_457":{"date":"1.2.2023","pill":"[4]","comment":"-"},"pill_458":{"date":"2.2.2023","pill":"[4]","comment":"МНО 3.8"},"pill_459":{"date":"3.2.2023","pill":"[0]","comment":"-"},"pill_460":{"date":"4.2.2023","pill":"[4]","comment":"-"},"pill_461":{"date":"5.2.2023","pill":"[0]","comment":"-"},"pill_462":{"date":"6.2.2023","pill":"[4]","comment":"-"},"pill_463":{"date":"7.2.2023","pill":"[0]","comment":"-"},"pill_464":{"date":"8.2.2023","pill":"[4]","comment":"-"},"pill_465":{"date":"9.2.2023","pill":"[0]","comment":"-"},"pill_466":{"date":"10.2.2023","pill":"[4]","comment":"-"},"pill_467":{"date":"11.2.2023","pill":"[0]","comment":"-"},"pill_468":{"date":"12.2.2023","pill":"[4]","comment":"-"},"pill_469":{"date":"13.2.2023","pill":"[0]","comment":"-"},"pill_470":{"date":"14.2.2023","pill":"[4]","comment":"-"},"pill_471":{"date":"15.2.2023","pill":"[0]","comment":"-"},"pill_472":{"date":"16.2.2023","pill":"[4]","comment":"-"},"pill_473":{"date":"17.2.2023","pill":"[0]","comment":"-"},"pill_474":{"date":"18.2.2023","pill":"[4]","comment":"-"},"pill_475":{"date":"19.2.2023","pill":"[0]","comment":"-"},"pill_476":{"date":"20.2.2023","pill":"[4]","comment":"-"},"pill_477":{"date":"21.2.2023","pill":"[0]","comment":"-"}} \ No newline at end of file diff --git a/sacrap/fx.js b/sacrap/fx.js new file mode 100644 index 0000000..c4b01b4 --- /dev/null +++ b/sacrap/fx.js @@ -0,0 +1,56 @@ +exports.db_put = {db_put}; +function db_put(callback,arg){ + pool.query("UPDATE `pills` SET `json`='",'"',arg,'"', function(err, result){ + if (err) console.log(err,null); + else callback(null,result[0]); + }); +} +function jwrite(jdata){ + // console.log(jdata); + let wdata = JSON.stringify(jdata); + fs.writeFile('./mods/pills.json', wdata, 'utf8', err => { + if (err) { + console.log(`Error writing file: ${err}`) + } else { + console.log(`File is written successfully!`) + } + }) +} +function jwrite_pill(name,pill,date,comment){ + comment = (comment==""||comment==null&&comment==" ")? "-":comment; + fs.readFile('./mods/pills.json','utf8',(err,data)=>{ + let jdata = JSON.parse(data); + jdata[name] = { + "date":date, + "pill":pill, + "comment":comment + }; + // console.log(jdata); + let wdata = JSON.stringify(jdata); + fs.writeFile('./mods/pills.json', wdata, 'utf8', err => { + if (err) { + console.log(`Error writing file: ${err}`) + } else { + console.log(`File is written successfully!`) + } + }) + }) +} +function j_max(arg){ + let max = 0; + for (const key in arg) { + let num = parseInt(key.split("_")[parseInt(key.split("_").length-1)]); + // console.log(key); + max = (num>max)? num:max; + } + console.log(max); + return max; +} +function dict_reverse(obj) { + new_obj= {} + rev_obj = Object.keys(obj).reverse(); + rev_obj.forEach(function(i) { + new_obj[i] = obj[i]; + }) + return new_obj; +} \ No newline at end of file diff --git a/sacrap/i2.ejs b/sacrap/i2.ejs new file mode 100644 index 0000000..bb9383d --- /dev/null +++ b/sacrap/i2.ejs @@ -0,0 +1,15 @@ + + + + + + + + Document + + + + bye + + + \ No newline at end of file diff --git a/sacrap/inde2.js b/sacrap/inde2.js new file mode 100644 index 0000000..bda8abe --- /dev/null +++ b/sacrap/inde2.js @@ -0,0 +1,127 @@ +const mysql = require("mysql"); +const express = require('express'); +const { + response, + request +} = require('express'); +const app = express(); +var vars = require('./vars.js'); +const { json } = require("body-parser"); +const { pathToFileURL } = require("url"); +app.set('view engine','ejs'); +app.use(express.urlencoded({extended: false})); +app.use(express.static('public')); +const { + readFile +} = require('fs').promises; +const fs = require('fs'); +const pool = mysql.createPool({ + connectionLimit: 100, + host: "172.18.0.2", + user: "root", + password: "root", + database: "pills", + debug: false, +}); + + +// database +function db_get(callback){ + pool.query('SELECT * FROM pills', function(err, result){ + if (err) console.log(err,null); + else callback(null,result[0]); + }); +}; +function db_put(callback,arg){ + pool.query("UPDATE `pills` SET `json`='",'"',arg,'"', function(err, result){ + if (err) console.log(err,null); + else callback(null,result[0]); + }); +}; +// get(function(err,data){ +// vars.d = data["id"]; +// console.log(vars.d); +// }) + +// async function s() { +// const promise = await new Promise((resolve, reject) => {pool.query(`SELECT * FROM pills`, (err, result) => {resolve(result[0])})}); +// return promise["json"]; +// } +// // // s(); +// async function l(){ +// let json = JSON.parse(await s()); +// // console.log(json); +// return json; +// } +// l(); + + + +app.get('/', async (req, res) => { + res.render('index'); +}); + + +app.get('/user', (req,res) => { + db_get(function(err,data){ + let jdata = JSON.parse(data["json"]); + // window.localStorage.setItem("pill/jdata?/","jdata"); + let pills = []; + let ids = []; + for (const key in jdata) { + if (jdata.hasOwnProperty.call(jdata, key)) { + const element = jdata[key]; + if(element["pill"]!=""&&element["pill"]!=null&&element["pill"]!=" "&&element["pill"]!="undefined"){ + pills.push(element["pill"]); + ids.push(key); + // console.log(key); + } + } + } + // console.log(JSON.stringify(jdata)); + res.render(`user`, { data:JSON.stringify(jdata)}); + }) +}) + +// function name(params) { +// .then(response => response.json()) +// .then(responseJson => { +// // set localStorage with your preferred name,.. +// // ..say 'my_token', and the value sent by server +// window.localStorage.setItem('my_token', responseJson.my_token) +// // you may also want to redirect after you have saved localStorage: +// // window.location.assign("http://www.example.org") +// // you may even want to return responseJson or something else or assign it to some variable +// // return responseJson; +// }) +// } +function get_json() { + fs.readFile('./pills.json', 'utf8', (err, data) => { + if (err) { + console.log(`Error reading file from disk: ${err}`) + } else { + // parse JSON string to JSON object + const pills = JSON.parse(data) + for (const key in pills) { + if (Object.hasOwnProperty.call(pills, key)) { + const element = pills[key]; + console.log(key); + } + } + } + }) +} +get_json(); +// app.post('/scripts',(req,res) => { +// console.log(req.body); +// db_get(function(err,data){ +// let jdata = JSON.parse(data["json"]); +// // jdata[] +// }) +// }) + + +app.all('*', (req, res) => { + res.status(404).send('

404! Page not

'); +}); +app.listen(process.env.PORT || 8080, () => console.log("started")); \ No newline at end of file diff --git a/sacrap/index.ejs b/sacrap/index.ejs new file mode 100644 index 0000000..0a36427 --- /dev/null +++ b/sacrap/index.ejs @@ -0,0 +1,15 @@ + + + + + + + + Document + + + + hi + + + \ No newline at end of file diff --git a/sacrap/index1.js b/sacrap/index1.js new file mode 100755 index 0000000..b774680 --- /dev/null +++ b/sacrap/index1.js @@ -0,0 +1,38 @@ +const { + response, + request +} = require('express'); + +const express = require('express'); +var vars = require('./vars.js'); + +const mysql = require("mysql"); + +const pool = mysql.createPool({ + connectionLimit: 100, + host: "localhost", + server: "db", + user: "root", + password: "root", + database: "clicker", + debug: false, +}); + +pool.query("SELECT * from table_name LIMIT 10", (err, rows) => { + if (err) { + console.log("error occurred during the connection."); + } +// console.log(rows[0]); +}); + + +const { + readFile +} = require('fs').promises; + +const app = express(); +app.get('/', async (request, response) => { + response.send(await readFile(`html/${dt.page}`, 'utf8')); +}); + +app.listen(process.env.PORT || 3000, () => console.log("started")); \ No newline at end of file diff --git a/sacrap/pills copy.json b/sacrap/pills copy.json new file mode 100644 index 0000000..e251f0e --- /dev/null +++ b/sacrap/pills copy.json @@ -0,0 +1 @@ +{"count":477,"pill_0":{"date":"28.10.2021","pill":"[4/2/1]","comment":"-"},"pill_1":{"date":"29.10.2021","pill":"[4/2]","comment":"-"},"pill_2":{"date":"30.10.2021","pill":"[4/2]","comment":"-"},"pill_3":{"date":"31.10.2021","pill":"[4/2]","comment":"-"},"pill_4":{"date":"1.11.2021","pill":"[4/2/1]","comment":"-"},"pill_5":{"date":"2.11.2021","pill":"[4/2]","comment":"-"},"pill_6":{"date":"3.11.2021","pill":"[4/2]","comment":"-"},"pill_7":{"date":"4.11.2021","pill":"[4/2]","comment":"-"},"pill_8":{"date":"5.11.2021","pill":"[4/2/1]","comment":"-"},"pill_9":{"date":"6.11.2021","pill":"[2]","comment":"MNO [4,5]"},"pill_10":{"date":"7.11.2021","pill":"[2]","comment":"-"},"pill_11":{"date":"8.11.2021","pill":"[4/2]","comment":"-"},"pill_12":{"date":"9.11.2021","pill":"[4/2]","comment":"-"},"pill_13":{"date":"10.11.2021","pill":"[4/2]","comment":"-"},"pill_14":{"date":"11.11.2021","pill":"[4/2]","comment":"-"},"pill_15":{"date":"12.11.2021","pill":"[4/2]","comment":"-"},"pill_16":{"date":"13.11.2021","pill":"[4/2]","comment":"-"},"pill_17":{"date":"14.11.2021","pill":"[4/2/1]","comment":"-"},"pill_18":{"date":"15.11.2021","pill":"[4/2]","comment":"-"},"pill_19":{"date":"16.11.2021","pill":"[4/2]","comment":"-"},"pill_20":{"date":"17.11.2021","pill":"[4/2]","comment":"-"},"pill_21":{"date":"18.11.2021","pill":"[4/2]","comment":"-"},"pill_22":{"date":"19.11.2021","pill":"[4/2]","comment":"-"},"pill_23":{"date":"20.11.2021","pill":"[4/2]","comment":"-"},"pill_24":{"date":"21.11.2021","pill":"[4/2/1]","comment":"-"},"pill_25":{"date":"22.11.2021","pill":"[0]","comment":"-"},"pill_26":{"date":"23.11.2021","pill":"[4/2]","comment":"-"},"pill_27":{"date":"24.11.2021","pill":"[4/2]","comment":"-"},"pill_28":{"date":"25.11.2021","pill":"[4/2]","comment":"-"},"pill_29":{"date":"26.11.2021","pill":"[4/2]","comment":"-"},"pill_30":{"date":"27.11.2021","pill":"[4/2]","comment":"-"},"pill_31":{"date":"28.11.2021","pill":"[4/2]","comment":"-"},"pill_32":{"date":"28.11.2021","pill":"[4/2/1]","comment":"-"},"pill_33":{"date":"29.11.2021","pill":"[4/2]","comment":"-"},"pill_34":{"date":"30.11.2021","pill":"[4/2]","comment":"-"},"pill_35":{"date":"1.12.2021","pill":"[4/2]","comment":"-"},"pill_36":{"date":"2.12.2021","pill":"[4/2]","comment":"-"},"pill_37":{"date":"3.12.2021","pill":"[4/2]","comment":"-"},"pill_38":{"date":"4.12.2021","pill":"[4/2]","comment":"-"},"pill_39":{"date":"5.12.2021","pill":"[4/2/1]","comment":"-"},"pill_40":{"date":"6.12.2021","pill":"[4/2]","comment":"-"},"pill_41":{"date":"7.12.2021","pill":"[4/2]","comment":"-"},"pill_42":{"date":"8.12.2021","pill":"[4/2]","comment":"-"},"pill_43":{"date":"9.12.2021","pill":"[4/2]","comment":"-"},"pill_44":{"date":"10.12.2021","pill":"[4/2]","comment":"-"},"pill_45":{"date":"11.12.2021","pill":"[4/2]","comment":"-"},"pill_46":{"date":"12.12.2021","pill":"[4/2/1]","comment":"-"},"pill_47":{"date":"13.12.2021","pill":"[4/2]","comment":"-"},"pill_48":{"date":"14.12.2021","pill":"[4/2]","comment":"-"},"pill_49":{"date":"15.12.2021","pill":"[4/2]","comment":"-"},"pill_50":{"date":"16.12.2021","pill":"[4/2]","comment":"-"},"pill_51":{"date":"19.12.2021","pill":"[4/2]","comment":"-"},"pill_52":{"date":"20.12.2021","pill":"[4/2]","comment":"-"},"pill_53":{"date":"21.12.2021","pill":"[4/2/1]","comment":"-"},"pill_54":{"date":"22.12.2021","pill":"[4/2]","comment":"-"},"pill_55":{"date":"23.12.2021","pill":"[4/2]","comment":"-"},"pill_56":{"date":"24.12.2021","pill":"[4/2]","comment":"-"},"pill_57":{"date":"25.12.2021","pill":"[4/2]","comment":"-"},"pill_58":{"date":"26.12.2021","pill":"[4/2]","comment":"-"},"pill_59":{"date":"27.12.2021","pill":"[4/2]","comment":"-"},"pill_60":{"date":"28.12.2021","pill":"[4/2/1]","comment":"-"},"pill_61":{"date":"30.12.2021","pill":"[4/2]","comment":"-"},"pill_62":{"date":"31.12.2021","pill":"[4/2]","comment":"-"},"pill_63":{"date":"1.1.2022","pill":"[4/2]","comment":"-"},"pill_64":{"date":"2.1.2022","pill":"[4/2]","comment":"-"},"pill_65":{"date":"3.1.2022","pill":"[4/2]","comment":"-"},"pill_66":{"date":"4.1.2022","pill":"[4/2/1]","comment":"-"},"pill_67":{"date":"5.1.2022","pill":"[4/2]","comment":"-"},"pill_68":{"date":"6.1.2022","pill":"[4/2]","comment":"-"},"pill_69":{"date":"7.1.2022","pill":"[4/2]","comment":"-"},"pill_70":{"date":"8.1.2022","pill":"[4/2]","comment":"-"},"pill_71":{"date":"9.1.2022","pill":"[4/2]","comment":"-"},"pill_72":{"date":"10.1.2022","pill":"[4/2]","comment":"-"},"pill_73":{"date":"11.1.2022","pill":"[4/2/1]","comment":"-"},"pill_74":{"date":"12.1.2022","pill":"[4/2]","comment":"-"},"pill_75":{"date":"14.1.2022","pill":"[4/2]","comment":"-"},"pill_76":{"date":"15.1.2022","pill":"[4/2]","comment":"-"},"pill_77":{"date":"16.1.2022","pill":"[4/2]","comment":"-"},"pill_78":{"date":"17.1.2022","pill":"[4/2]","comment":"-"},"pill_79":{"date":"18.1.2022","pill":"[4]","comment":"-"},"pill_80":{"date":"19.1.2022","pill":"[4/2]","comment":"-"},"pill_81":{"date":"20.1.2022","pill":"[4/2]","comment":"-"},"pill_82":{"date":"21.1.2022","pill":"[4/2]","comment":"-"},"pill_83":{"date":"22.1.2022","pill":"[4/2]","comment":"-"},"pill_84":{"date":"23.1.2022","pill":"[4/2/1]","comment":"-"},"pill_85":{"date":"24.1.2022","pill":"[4/2]","comment":"-"},"pill_86":{"date":"25.1.2022","pill":"[4/2]","comment":"-"},"pill_87":{"date":"26.1.2022","pill":"[4/2]","comment":"-"},"pill_88":{"date":"27.1.2022","pill":"[4/2]","comment":"-"},"pill_89":{"date":"28.1.2022","pill":"[4/2]","comment":"-"},"pill_90":{"date":"29.1.2022","pill":"[2]","comment":"MNO [5,6]"},"pill_91":{"date":"30.1.2022","pill":"[2]","comment":"-"},"pill_92":{"date":"31.1.2022","pill":"[2]","comment":"-"},"pill_93":{"date":"1.2.2022","pill":"[2]","comment":"-"},"pill_94":{"date":"2.2.2022","pill":"[2]","comment":"-"},"pill_95":{"date":"3.2.2022","pill":"[2]","comment":"-"},"pill_96":{"date":"4.2.2022","pill":"[2]","comment":"-"},"pill_97":{"date":"5.2.2022","pill":"[4/1]","comment":"-"},"pill_98":{"date":"6.2.2022","pill":"[4/1]","comment":"-"},"pill_99":{"date":"7.2.2022","pill":"[4/1]","comment":"-"},"pill_100":{"date":"8.2.2022","pill":"[4/1]","comment":"-"},"pill_101":{"date":"9.2.2022","pill":"[4/1]","comment":"-"},"pill_102":{"date":"10.2.2022","pill":"[4/2]","comment":"MNO [2,2]"},"pill_103":{"date":"11.2.2022","pill":"[4/2]","comment":"-"},"pill_104":{"date":"12.2.2022","pill":"[4/2]","comment":"-"},"pill_105":{"date":"13.2.2022","pill":"[4/2]","comment":"-"},"pill_106":{"date":"14.2.2022","pill":"[4/2]","comment":"-"},"pill_107":{"date":"15.2.2022","pill":"[4/2]","comment":"-"},"pill_108":{"date":"16.2.2022","pill":"[4/2]","comment":"-"},"pill_109":{"date":"17.2.2022","pill":"[4/2]","comment":"-"},"pill_110":{"date":"18.2.2022","pill":"[4/1]","comment":"-"},"pill_111":{"date":"19.2.2022","pill":"[4/1]","comment":"-"},"pill_112":{"date":"20.2.2022","pill":"[4/1]","comment":"-"},"pill_113":{"date":"21.2.2022","pill":"[4/2]","comment":"-"},"pill_114":{"date":"22.2.2022","pill":"[0]","comment":"-"},"pill_115":{"date":"23.2.2022","pill":"[4/2]","comment":"-"},"pill_116":{"date":"24.2.2022","pill":"[4/2]","comment":"-"},"pill_117":{"date":"25.2.2022","pill":"[4/2]","comment":"-"},"pill_118":{"date":"26.2.2022","pill":"[4/2]","comment":"-"},"pill_119":{"date":"27.2.2022","pill":"[4/1]","comment":"-"},"pill_120":{"date":"28.2.2022","pill":"[4/1]","comment":"-"},"pill_121":{"date":"1.3.2022","pill":"[4/1]","comment":"-"},"pill_122":{"date":"2.3.2022","pill":"[4/2]","comment":"-"},"pill_123":{"date":"3.3.2022","pill":"[4/2]","comment":"-"},"pill_124":{"date":"4.3.2022","pill":"[4/2]","comment":"-"},"pill_125":{"date":"5.3.2022","pill":"[4/2]","comment":"-"},"pill_126":{"date":"6.3.2022","pill":"[4/1]","comment":"-"},"pill_127":{"date":"7.3.2022","pill":"[4/1]","comment":"-"},"pill_128":{"date":"8.3.2022","pill":"[4/1]","comment":"-"},"pill_129":{"date":"9.3.2022","pill":"[4/2]","comment":"-"},"pill_130":{"date":"10.3.2022","pill":"[4/2]","comment":"-"},"pill_131":{"date":"11.3.2022","pill":"[4/2]","comment":"-"},"pill_132":{"date":"12.3.2022","pill":"[4/2]","comment":"-"},"pill_133":{"date":"13.3.2022","pill":"[4/1]","comment":"-"},"pill_134":{"date":"14.3.2022","pill":"[4/1]","comment":"-"},"pill_135":{"date":"15.3.2022","pill":"[4/1]","comment":"-"},"pill_136":{"date":"16.3.2022","pill":"[4/2]","comment":"-"},"pill_137":{"date":"17.3.2022","pill":"[4/2]","comment":"-"},"pill_138":{"date":"18.3.2022","pill":"[4/2]","comment":"-"},"pill_139":{"date":"19.3.2022","pill":"[4/2]","comment":"-"},"pill_140":{"date":"20.3.2022","pill":"[4/1]","comment":"-"},"pill_141":{"date":"21.3.2022","pill":"[4/1]","comment":"-"},"pill_142":{"date":"22.3.2022","pill":"[4/1]","comment":"-"},"pill_143":{"date":"23.3.2022","pill":"[4/2]","comment":"-"},"pill_144":{"date":"24.3.2022","pill":"[4/2]","comment":"-"},"pill_145":{"date":"25.3.2022","pill":"[4/2]","comment":"-"},"pill_146":{"date":"26.3.2022","pill":"[4/2]","comment":"-"},"pill_147":{"date":"27.3.2022","pill":"[4/1]","comment":"-"},"pill_148":{"date":"28.3.2022","pill":"[4/1]","comment":"-"},"pill_149":{"date":"29.3.2022","pill":"[4/1]","comment":"-"},"pill_150":{"date":"30.3.2022","pill":"[4/2]","comment":"-"},"pill_151":{"date":"31.3.2022","pill":"[4/2]","comment":"-"},"pill_152":{"date":"1.4.2022","pill":"[4/2]","comment":"-"},"pill_153":{"date":"2.4.2022","pill":"[4/2]","comment":"-"},"pill_154":{"date":"3.4.2022","pill":"[4/1]","comment":"-"},"pill_155":{"date":"4.4.2022","pill":"[4/1]","comment":"-"},"pill_156":{"date":"5.4.2022","pill":"[4/1]","comment":"-"},"pill_157":{"date":"6.4.2022","pill":"[4/2]","comment":"-"},"pill_158":{"date":"7.4.2022","pill":"[4/2]","comment":"-"},"pill_159":{"date":"8.4.2022","pill":"[4/2]","comment":"-"},"pill_160":{"date":"9.4.2022","pill":"[4/2]","comment":"-"},"pill_161":{"date":"10.4.2022","pill":"[4/1]","comment":"-"},"pill_162":{"date":"11.4.2022","pill":"[4/1]","comment":"-"},"pill_163":{"date":"12.4.2022","pill":"[4/1]","comment":"-"},"pill_164":{"date":"13.4.2022","pill":"[4/2]","comment":"-"},"pill_165":{"date":"14.4.2022","pill":"[4/2]","comment":"-"},"pill_166":{"date":"15.4.2022","pill":"[4/2]","comment":"-"},"pill_167":{"date":"16.4.2022","pill":"[4/2]","comment":"-"},"pill_168":{"date":"17.4.2022","pill":"[4/1]","comment":"-"},"pill_169":{"date":"18.4.2022","pill":"[4/1]","comment":"-"},"pill_170":{"date":"19.4.2022","pill":"[4/1]","comment":"-"},"pill_171":{"date":"20.4.2022","pill":"[4/2]","comment":"-"},"pill_172":{"date":"21.4.2022","pill":"[4/2]","comment":"-"},"pill_173":{"date":"22.4.2022","pill":"[4/2]","comment":"-"},"pill_174":{"date":"23.4.2022","pill":"[4/2]","comment":"-"},"pill_175":{"date":"24.4.2022","pill":"[4/1]","comment":"-"},"pill_176":{"date":"25.4.2022","pill":"[4/1]","comment":"-"},"pill_177":{"date":"26.4.2022","pill":"[4/1]","comment":"-"},"pill_178":{"date":"27.4.2022","pill":"[4/2]","comment":"-"},"pill_179":{"date":"28.4.2022","pill":"[4/2]","comment":"-"},"pill_180":{"date":"29.4.2022","pill":"[4/2]","comment":"-"},"pill_181":{"date":"30.4.2022","pill":"[4/2]","comment":"-"},"pill_182":{"date":"1.5.2022","pill":"[4/1]","comment":"-"},"pill_183":{"date":"2.5.2022","pill":"[4/1]","comment":"-"},"pill_184":{"date":"3.5.2022","pill":"[4/1]","comment":"-"},"pill_185":{"date":"4.5.2022","pill":"[4/2]","comment":"-"},"pill_186":{"date":"5.5.2022","pill":"[4/2]","comment":"-"},"pill_187":{"date":"6.5.2022","pill":"[4/2]","comment":"-"},"pill_188":{"date":"7.5.2022","pill":"[4/2]","comment":"-"},"pill_189":{"date":"8.5.2022","pill":"[4/1]","comment":"-"},"pill_190":{"date":"9.5.2022","pill":"[4/1]","comment":"-"},"pill_191":{"date":"10.5.2022","pill":"[4/1]","comment":"-"},"pill_192":{"date":"11.5.2022","pill":"[4/2]","comment":"-"},"pill_193":{"date":"12.5.2022","pill":"[4/2]","comment":"-"},"pill_194":{"date":"13.5.2022","pill":"[4/2]","comment":"-"},"pill_195":{"date":"14.5.2022","pill":"[4/2]","comment":"-"},"pill_196":{"date":"15.5.2022","pill":"[4/1]","comment":"-"},"pill_197":{"date":"16.5.2022","pill":"[4/1]","comment":"-"},"pill_198":{"date":"17.5.2022","pill":"[4/1]","comment":"-"},"pill_199":{"date":"18.5.2022","pill":"[4/2]","comment":"-"},"pill_200":{"date":"19.5.2022","pill":"[4/2]","comment":"-"},"pill_201":{"date":"20.5.2022","pill":"[4/2]","comment":"-"},"pill_202":{"date":"21.5.2022","pill":"[4/2]","comment":"-"},"pill_203":{"date":"22.5.2022","pill":"[4/1]","comment":"-"},"pill_204":{"date":"23.5.2022","pill":"[4/1]","comment":"-"},"pill_205":{"date":"24.5.2022","pill":"[4/1]","comment":"-"},"pill_206":{"date":"25.5.2022","pill":"[4/2]","comment":"-"},"pill_207":{"date":"26.5.2022","pill":"[4/2]","comment":"-"},"pill_208":{"date":"27.5.2022","pill":"[4/2]","comment":"-"},"pill_209":{"date":"28.5.2022","pill":"[4/2]","comment":"-"},"pill_210":{"date":"29.5.2022","pill":"[4/1]","comment":"-"},"pill_211":{"date":"30.5.2022","pill":"[4/1]","comment":"-"},"pill_212":{"date":"31.5.2022","pill":"[4/1]","comment":"-"},"pill_213":{"date":"1.6.2022","pill":"[4/2]","comment":"-"},"pill_214":{"date":"2.6.2022","pill":"[4/2]","comment":"-"},"pill_215":{"date":"3.6.2022","pill":"[4/2]","comment":"-"},"pill_216":{"date":"4.6.2022","pill":"[4/2]","comment":"-"},"pill_217":{"date":"5.6.2022","pill":"[4/1]","comment":"-"},"pill_218":{"date":"6.6.2022","pill":"[4/1]","comment":"-"},"pill_219":{"date":"7.6.2022","pill":"[4/1]","comment":"-"},"pill_220":{"date":"8.6.2022","pill":"[4/2]","comment":"-"},"pill_221":{"date":"9.6.2022","pill":"[4/2]","comment":"-"},"pill_222":{"date":"10.6.2022","pill":"[4/2]","comment":"-"},"pill_223":{"date":"11.6.2022","pill":"[4/2]","comment":"-"},"pill_224":{"date":"12.6.2022","pill":"[4/1]","comment":"-"},"pill_225":{"date":"13.6.2022","pill":"[4/1]","comment":"-"},"pill_226":{"date":"14.6.2022","pill":"[4/1]","comment":"-"},"pill_227":{"date":"15.6.2022","pill":"[4/2]","comment":"-"},"pill_228":{"date":"16.6.2022","pill":"[4/2]","comment":"-"},"pill_229":{"date":"17.6.2022","pill":"[4/2]","comment":"-"},"pill_230":{"date":"18.6.2022","pill":"[4/2]","comment":"-"},"pill_231":{"date":"19.6.2022","pill":"[4/1]","comment":"-"},"pill_232":{"date":"20.6.2022","pill":"[4/1]","comment":"-"},"pill_233":{"date":"21.6.2022","pill":"[4/1]","comment":"-"},"pill_234":{"date":"22.6.2022","pill":"[4/2]","comment":"-"},"pill_235":{"date":"23.6.2022","pill":"[4/2]","comment":"-"},"pill_236":{"date":"24.6.2022","pill":"[4/2]","comment":"-"},"pill_237":{"date":"25.6.2022","pill":"[4/2]","comment":"-"},"pill_238":{"date":"26.6.2022","pill":"[4/1]","comment":"-"},"pill_239":{"date":"27.6.2022","pill":"[4/1]","comment":"-"},"pill_240":{"date":"28.06.2022","pill":"[4/1]","comment":"-"},"pill_241":{"date":"29.6.2022","pill":"[4/2]","comment":"-"},"pill_242":{"date":"30.6.2022","pill":"[4/2]","comment":"-"},"pill_243":{"date":"1.7.2022","pill":"[4/2]","comment":"-"},"pill_244":{"date":"2.7.2022","pill":"[4/2]","comment":"-"},"pill_245":{"date":"3.7.2022","pill":"[4/1]","comment":"-"},"pill_246":{"date":"4.7.2022","pill":"[4/1]","comment":"-"},"pill_247":{"date":"5.7.2022","pill":"[4/1]","comment":"-"},"pill_248":{"date":"6.7.2022","pill":"[4/2]","comment":"-"},"pill_249":{"date":"7.7.2022","pill":"[4/2]","comment":"-"},"pill_250":{"date":"8.7.2022","pill":"[4/2]","comment":"-"},"pill_251":{"date":"9.7.2022","pill":"[4/2]","comment":"-"},"pill_252":{"date":"10.7.2022","pill":"[4/1]","comment":"-"},"pill_253":{"date":"11.7.2022","pill":"[4/1]","comment":"-"},"pill_254":{"date":"12.7.2022","pill":"[4/1]","comment":"-"},"pill_255":{"date":"13.7.2022","pill":"[4/2]","comment":"-"},"pill_256":{"date":"14.7.2022","pill":"[4/2]","comment":"-"},"pill_257":{"date":"15.7.2022","pill":"[4/2]","comment":"-"},"pill_258":{"date":"16.7.2022","pill":"[4/2]","comment":"-"},"pill_259":{"date":"17.7.2022","pill":"[4/1]","comment":"-"},"pill_260":{"date":"18.7.2022","pill":"[4/1]","comment":"-"},"pill_261":{"date":"19.7.2022","pill":"[4/1]","comment":"-"},"pill_262":{"date":"20.7.2022","pill":"[4/2]","comment":"-"},"pill_263":{"date":"21.7.2022","pill":"[4/2]","comment":"-"},"pill_264":{"date":"22.7.2022","pill":"[4/2]","comment":"-"},"pill_265":{"date":"23.7.2022","pill":"[4/2]","comment":"-"},"pill_266":{"date":"24.7.2022","pill":"[4/1]","comment":"-"},"pill_267":{"date":"25.7.2022","pill":"[4/1]","comment":"-"},"pill_268":{"date":"26.7.2022","pill":"[4/1]","comment":"-"},"pill_269":{"date":"27.7.2022","pill":"[4/2]","comment":"-"},"pill_270":{"date":"28.7.2022","pill":"[4/2]","comment":"-"},"pill_271":{"date":"29.7.2022","pill":"[4/2]","comment":"-"},"pill_272":{"date":"30.7.2022","pill":"[4/2]","comment":"-"},"pill_273":{"date":"31.7.2022","pill":"[4/1]","comment":"-"},"pill_274":{"date":"1.8.2022","pill":"[4/1]","comment":"-"},"pill_275":{"date":"2.8.2022","pill":"[4/1]","comment":"-"},"pill_276":{"date":"3.8.2022","pill":"[4/1]","comment":"-"},"pill_277":{"date":"4.8.2022","pill":"[4/2]","comment":"-"},"pill_278":{"date":"5.8.2022","pill":"[4/2]","comment":"-"},"pill_279":{"date":"6.8.2022","pill":"[4/2]","comment":"-"},"pill_280":{"date":"7.8.2022","pill":"[4/2]","comment":"-"},"pill_281":{"date":"8.8.2022","pill":"[4/1]","comment":"-"},"pill_282":{"date":"9.8.2022","pill":"[4/1]","comment":"-"},"pill_283":{"date":"10.8.2022","pill":"[4/1]","comment":"-"},"pill_284":{"date":"11.8.2022","pill":"[4/2]","comment":"-"},"pill_285":{"date":"12.8.2022","pill":"[4/2]","comment":"-"},"pill_286":{"date":"13.8.2022","pill":"[4/2]","comment":"-"},"pill_287":{"date":"14.8.2022","pill":"[4/2]","comment":"-"},"pill_288":{"date":"15.8.2022","pill":"[4/1]","comment":"-"},"pill_289":{"date":"16.8.2022","pill":"[4/1]","comment":"-"},"pill_290":{"date":"17.8.2022","pill":"[4/1]","comment":"-"},"pill_291":{"date":"18.8.2022","pill":"[4/2]","comment":"-"},"pill_292":{"date":"19.8.2022","pill":"[4/2]","comment":"-"},"pill_293":{"date":"20.8.2022","pill":"[4/2]","comment":"-"},"pill_294":{"date":"21.8.2022","pill":"[4/2]","comment":"-"},"pill_295":{"date":"22.8.2022","pill":"[4/1]","comment":"-"},"pill_296":{"date":"23.8.2022","pill":"[4/1]","comment":"-"},"pill_297":{"date":"24.8.2022","pill":"[4/1]","comment":"-"},"pill_298":{"date":"25.8.2022","pill":"[4/2]","comment":"-"},"pill_299":{"date":"26.8.2022","pill":"[4/2]","comment":"-"},"pill_300":{"date":"27.8.2022","pill":"[4/2]","comment":"-"},"pill_301":{"date":"28.8.2022","pill":"[4/2]","comment":"-"},"pill_302":{"date":"29.8.2022","pill":"[4/1]","comment":"-"},"pill_303":{"date":"30.8.2022","pill":"[4/1]","comment":"-"},"pill_304":{"date":"31.8.2022","pill":"[4/1]","comment":"-"},"pill_305":{"date":"1.9.2022","pill":"[4/2]","comment":"-"},"pill_306":{"date":"2.9.2022","pill":"[4/2]","comment":"-"},"pill_307":{"date":"3.9.2022","pill":"[4/2]","comment":"-"},"pill_308":{"date":"4.9.2022","pill":"[4/2]","comment":"-"},"pill_309":{"date":"5.9.2022","pill":"[4/1]","comment":"-"},"pill_310":{"date":"6.9.2022","pill":"[4/1]","comment":"-"},"pill_311":{"date":"7.9.2022","pill":"[4/1]","comment":"-"},"pill_312":{"date":"8.9.2022","pill":"[4/2]","comment":"-"},"pill_313":{"date":"9.9.2022","pill":"[4/2]","comment":"-"},"pill_314":{"date":"10.9.2022","pill":"[4/2]","comment":"-"},"pill_315":{"date":"11.9.2022","pill":"[4/2]","comment":"-"},"pill_316":{"date":"12.9.2022","pill":"[4/1]","comment":"-"},"pill_317":{"date":"13.9.2022","pill":"[4/1]","comment":"-"},"pill_318":{"date":"14.9.2022","pill":"[4/1]","comment":"-"},"pill_319":{"date":"15.9.2022","pill":"[4/2]","comment":"-"},"pill_320":{"date":"16.9.2022","pill":"[4/2]","comment":"-"},"pill_321":{"date":"17.9.2022","pill":"[4/2]","comment":"-"},"pill_322":{"date":"18.9.2022","pill":"[4/2]","comment":"-"},"pill_323":{"date":"19.9.2022","pill":"[4/1]","comment":"-"},"pill_324":{"date":"20.9.2022","pill":"[4/1]","comment":"-"},"pill_325":{"date":"21.9.2022","pill":"[4/1]","comment":"-"},"pill_326":{"date":"22.9.2022","pill":"[4/2]","comment":"-"},"pill_327":{"date":"23.9.2022","pill":"[4/2]","comment":"-"},"pill_328":{"date":"24.9.2022","pill":"[4/2]","comment":"-"},"pill_329":{"date":"25.9.2022","pill":"[4/2]","comment":"-"},"pill_330":{"date":"26.9.2022","pill":"[4/1]","comment":"-"},"pill_331":{"date":"27.9.2022","pill":"[4/1]","comment":"-"},"pill_332":{"date":"28.9.2022","pill":"[4/1]","comment":"-"},"pill_333":{"date":"29.9.2022","pill":"[4/2]","comment":"-"},"pill_334":{"date":"30.9.2022","pill":"[4/2]","comment":"-"},"pill_335":{"date":"1.10.2022","pill":"[4/1]","comment":"-"},"pill_336":{"date":"2.10.2022","pill":"[4/2]","comment":"-"},"pill_337":{"date":"3.10.2022","pill":"[4/2]","comment":"-"},"pill_338":{"date":"4.10.2022","pill":"[4/1]","comment":"-"},"pill_339":{"date":"5.10.2022","pill":"[4/1]","comment":"-"},"pill_340":{"date":"6.10.2022","pill":"[4/1]","comment":"-"},"pill_341":{"date":"7.10.2022","pill":"[4/2]","comment":"-"},"pill_342":{"date":"8.10.2022","pill":"[4/2]","comment":"-"},"pill_343":{"date":"9.10.2022","pill":"[4/2]","comment":"-"},"pill_344":{"date":"10.10.2022","pill":"[4/2]","comment":"-"},"pill_345":{"date":"11.10.2022","pill":"[0]","comment":"MNO [61,2]"},"pill_346":{"date":"12.10.2022","pill":"[0]","comment":"MNO [42] давление 132 на 86"},"pill_347":{"date":"13.10.2022","pill":"[0]","comment":"MNO [24]"},"pill_348":{"date":"14.10.2022","pill":"[0]","comment":"MNO [18,3]"},"pill_349":{"date":"15.10.2022","pill":"[0]","comment":"MNO [14,7]"},"pill_350":{"date":"16.10.2022","pill":"[0]","comment":"-"},"pill_351":{"date":"17.10.2022","pill":"[0]","comment":"MNO [13,8]"},"pill_352":{"date":"18.10.2022","pill":"[0]","comment":"-"},"pill_353":{"date":"19.10.2022","pill":"[0]","comment":""},"pill_354":{"date":"20.10.2022","pill":"[0]","comment":"MNO [13,3]"},"pill_355":{"date":"21.10.2022","pill":"[0]","comment":"-"},"pill_356":{"date":"22.10.2022","pill":"[0]","comment":"MNO [13,4]"},"pill_357":{"date":"23.10.2022","pill":"[0]","comment":"-"},"pill_358":{"date":"24.10.2022","pill":"[0]","comment":"-"},"pill_359":{"date":"25.10.2022","pill":"[0]","comment":"-"},"pill_360":{"date":"26.10.2022","pill":"[0]","comment":"-"},"pill_361":{"date":"27.10.2022","pill":"[0]","comment":"MNO [13.5]"},"pill_362":{"date":"28.10.2022","pill":"[0]","comment":"-"},"pill_363":{"date":"29.10.2022","pill":"[0]","comment":"-"},"pill_364":{"date":"30.10.2022","pill":"[0]","comment":"MNO [13.0]"},"pill_365":{"date":"31.10.2022","pill":"[0]","comment":"-"},"pill_366":{"date":"1.11.2022","pill":"[0]","comment":"-"},"pill_367":{"date":"2.11.2022","pill":"[0]","comment":"-"},"pill_368":{"date":"3.11.2022","pill":"[0]","comment":"MNO[1]"},"pill_369":{"date":"4.11.2022","pill":"[4]","comment":"MNO[13.6]"},"pill_370":{"date":"5.11.2022","pill":"[4]","comment":"-"},"pill_371":{"date":"6.11.2022","pill":"[4]","comment":"-"},"pill_372":{"date":"07.11.2022","pill":"[4]","comment":"-"},"pill_373":{"date":"08.11.2022","pill":"[4]","comment":"-"},"pill_374":{"date":"09.11.2022","pill":"[4]","comment":"MNO[13.6]"},"pill_375":{"date":"10.11.2022","pill":"[4]","comment":"-"},"pill_376":{"date":"11.11.2022","pill":"[4]","comment":"-"},"pill_377":{"date":"12.11.2022","pill":"[4]","comment":"MNO[2.5]"},"pill_378":{"date":"13.11.2022","pill":"[4]","comment":"-"},"pill_379":{"date":"14.11.2022","pill":"[4]","comment":"-"},"pill_380":{"date":"15.11.2022","pill":"[4]","comment":"-"},"pill_381":{"date":"16.11.2022","pill":"[4]","comment":"-"},"pill_382":{"date":"17.11.2022","pill":"[4]","comment":"-"},"pill_383":{"date":"18.11.2022","pill":"[4]","comment":"-"},"pill_384":{"date":"19.11.2022","pill":"[4]","comment":"-"},"pill_385":{"date":"20.11.2022","pill":"[4]","comment":"-"},"pill_386":{"date":"21.11.2022","pill":"[4]","comment":"-"},"pill_387":{"date":"22.11.2022","pill":"[4]","comment":"-"},"pill_388":{"date":"23.11.2022","pill":"[4]","comment":"-"},"pill_389":{"date":"24.11.2022","pill":"[4]","comment":"-"},"pill_390":{"date":"25.11.2022","pill":"[4]","comment":"-"},"pill_391":{"date":"26.11.2022","pill":"[4]","comment":"-"},"pill_392":{"date":"27.11.2022","pill":"[4]","comment":"-"},"pill_393":{"date":"28.11.2022","pill":"[4]","comment":"-"},"pill_394":{"date":"29.11.2022","pill":"[4]","comment":"-"},"pill_395":{"date":"30.11.2022","pill":"[4]","comment":"MNO [3.0]"},"pill_396":{"date":"1.12.2022","pill":"[4]","comment":"-"},"pill_397":{"date":"2.12.2022","pill":"[4]","comment":"-"},"pill_398":{"date":"3.12.2022","pill":"[4]","comment":"-"},"pill_399":{"date":"4.12.2022","pill":"[4]","comment":"-"},"pill_400":{"date":"5.12.2022","pill":"[4]","comment":"-"},"pill_401":{"date":"6.12.2022","pill":"[4]","comment":"-"},"pill_402":{"date":"7.12.2022","pill":"[4]","comment":"-"},"pill_403":{"date":"8.12.2022","pill":"[4]","comment":"-"},"pill_404":{"date":"9.12.2022","pill":"[4]","comment":"-"},"pill_405":{"date":"10.12.2022","pill":"[4]","comment":"-"},"pill_406":{"date":"11.12.2022","pill":"[4]","comment":"-"},"pill_407":{"date":"12.12.2022","pill":"[4]","comment":"-"},"pill_408":{"date":"13.12.2022","pill":"[4]","comment":"-"},"pill_409":{"date":"14.12.2022","pill":"[4]","comment":"-"},"pill_410":{"date":"15.12.2022","pill":"[4]","comment":"-"},"pill_411":{"date":"16.12.2022","pill":"[4]","comment":"-"},"pill_412":{"date":"17.12.2022","pill":"[4]","comment":"-"},"pill_413":{"date":"18.12.2022","pill":"[4]","comment":"-"},"pill_414":{"date":"19.12.2022","pill":"[4]","comment":"-"},"pill_415":{"date":"20.12.2022","pill":"[4]","comment":"-"},"pill_416":{"date":"21.12.2022","pill":"[4]","comment":"-"},"pill_417":{"date":"22.12.2022","pill":"[4]","comment":"-"},"pill_418":{"date":"23.12.2022","pill":"[4]","comment":"-"},"pill_419":{"date":"24.12.2022","pill":"[4]","comment":"-"},"pill_420":{"date":"25.12.2022","pill":"[4]","comment":"-"},"pill_422":{"date":"27.12.2022","pill":"[4]","comment":"-"},"pill_423":{"date":"28.12.2022","pill":"[4]","comment":"-"},"pill_424":{"date":"29.12.2022","pill":"[4]","comment":"-"},"pill_425":{"date":"30.12.2022","pill":"[4]","comment":"-"},"pill_426":{"date":"1.01.2023","pill":"[4]","comment":"-"},"pill_427":{"date":"2.01.2023","pill":"[4]","comment":"-"},"pill_428":{"date":"3.01.2023","pill":"[4]","comment":"-"},"pill_429":{"date":"04.01.2023","pill":"[4]","comment":"-"},"pill_430":{"date":"05.01.2023","pill":"[4]","comment":"-"},"pill_431":{"date":"06.01.2023","pill":"[4]","comment":"-"},"pill_432":{"date":"7.01.2023","pill":"[4]","comment":"-"},"pill_433":{"date":"8.01.2023","pill":"[4]","comment":"-"},"pill_434":{"date":"9.01.2023","pill":"[4]","comment":"-"},"pill_435":{"date":"10.01.2023","pill":"[4]","comment":"-"},"pill_436":{"date":"11.01.2023","pill":"[4]","comment":"-"},"pill_437":{"date":"12.01.2023","pill":"[4]","comment":"-"},"pill_438":{"date":"13.01.2023","pill":"[4]","comment":"-"},"pill_439":{"date":"14.01.2023","pill":"[4]","comment":"-"},"pill_440":{"date":"15.01.2023","pill":"[4]","comment":"-"},"pill_441":{"date":"16.01.2023","pill":"[4]","comment":"-"},"pill_442":{"date":"17.01.2023","pill":"[4]","comment":"-"},"pill_443":{"date":"18.01.2023","pill":"[4]","comment":"-"},"pill_444":{"date":"19.01.2023","pill":"[4]","comment":"-"},"pill_445":{"date":"20.01.2023","pill":"[4]","comment":"-"},"pill_446":{"date":"21.01.2023","pill":"[4]","comment":"-"},"pill_447":{"date":"22.01.2023","pill":"[4]","comment":"-"},"pill_448":{"date":"23.01.2023","pill":"[4]","comment":"-"},"pill_449":{"date":"24.01.2023","pill":"[4]","comment":"-"},"pill_450":{"date":"25.01.2023","pill":"[4]","comment":"-"},"pill_451":{"date":"26.01.2023","pill":"[4]","comment":"-"},"pill_452":{"date":"27.01.2023","pill":"[4]","comment":"-"},"pill_453":{"date":"28.01.2023","pill":"[4]","comment":"-"},"pill_454":{"date":"29.1.2023","pill":"[4]","comment":"Новая система"},"pill_455":{"date":"30.1.2023","pill":"[4]","comment":"-"},"pill_456":{"date":"31.1.2023","pill":"[4]","comment":"-"},"pill_457":{"date":"1.2.2023","pill":"[4]","comment":"-"},"pill_458":{"date":"2.2.2023","pill":"[4]","comment":"МНО 3.8"},"pill_459":{"date":"3.2.2023","pill":"[0]","comment":"-"},"pill_460":{"date":"4.2.2023","pill":"[4]","comment":"-"},"pill_461":{"date":"5.2.2023","pill":"[0]","comment":"-"},"pill_462":{"date":"6.2.2023","pill":"[4]","comment":"-"},"pill_463":{"date":"7.2.2023","pill":"[0]","comment":"-"},"pill_464":{"date":"8.2.2023","pill":"[4]","comment":"-"},"pill_465":{"date":"9.2.2023","pill":"[0]","comment":"-"},"pill_466":{"date":"10.2.2023","pill":"[4]","comment":"-"},"pill_467":{"date":"11.2.2023","pill":"[0]","comment":"-"},"pill_468":{"date":"12.2.2023","pill":"[4]","comment":"-"},"pill_469":{"date":"13.2.2023","pill":"[0]","comment":"-"},"pill_470":{"date":"14.2.2023","pill":"[4]","comment":"-"},"pill_471":{"date":"15.2.2023","pill":"[0]","comment":"-"},"pill_472":{"date":"16.2.2023","pill":"[4]","comment":"-"},"pill_473":{"date":"17.2.2023","pill":"[0]","comment":"-"},"pill_474":{"date":"18.2.2023","pill":"[4]","comment":"-"},"pill_475":{"date":"19.2.2023","pill":"[0]","comment":"-"},"pill_476":{"date":"20.2.2023","pill":"[4]","comment":"-"}} diff --git a/sacrap/vars.js b/sacrap/vars.js new file mode 100644 index 0000000..bf89eb0 --- /dev/null +++ b/sacrap/vars.js @@ -0,0 +1,2 @@ +exports.page = "i2.html"; +exports.d = "as"; \ No newline at end of file diff --git a/views/edit.ejs b/views/edit.ejs new file mode 100644 index 0000000..6929ea6 --- /dev/null +++ b/views/edit.ejs @@ -0,0 +1,14 @@ + +
+ + + + + + + +
\ No newline at end of file diff --git a/views/inputs.ejs b/views/inputs.ejs new file mode 100644 index 0000000..ae69ed4 --- /dev/null +++ b/views/inputs.ejs @@ -0,0 +1,44 @@ + +
+ + + + +
\ No newline at end of file diff --git a/views/user.ejs b/views/user.ejs new file mode 100644 index 0000000..ce82df1 --- /dev/null +++ b/views/user.ejs @@ -0,0 +1,73 @@ + + + + + + + Document + + + + <%- include("inputs") -%> + + + \ No newline at end of file