-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 8.35 KB
/
.eslintcache
1
[{"/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/App.js":"1","/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/index.js":"2","/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/pseudo-system/indexDb.js":"3","/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/pseudo-system/basic.js":"4","/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/reportWebVitals.js":"5","/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/pseudo-system/consts.js":"6","/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/pseudo-system/index.js":"7","/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/pseudo-system/db.js":"8","/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/serviceWorkerRegistration.js":"9"},{"size":2201,"mtime":1608216238906,"results":"10","hashOfConfig":"11"},{"size":773,"mtime":1608257711166,"results":"12","hashOfConfig":"11"},{"size":22971,"mtime":1608265911778,"results":"13","hashOfConfig":"11"},{"size":12047,"mtime":1608177552246,"results":"14","hashOfConfig":"11"},{"size":362,"mtime":1608168097916,"results":"15","hashOfConfig":"11"},{"size":292,"mtime":1608174524573,"results":"16","hashOfConfig":"11"},{"size":360,"mtime":1608176652339,"results":"17","hashOfConfig":"11"},{"size":3993,"mtime":1608254845140,"results":"18","hashOfConfig":"11"},{"size":5063,"mtime":1608257684168,"results":"19","hashOfConfig":"11"},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"5qrl28",{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"25","messages":"26","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"27","messages":"28","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"29"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"39"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},"/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/App.js",[],"/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/index.js",[],["42","43"],"/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/pseudo-system/indexDb.js",["44"],"/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/pseudo-system/basic.js",[],["45","46"],"/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/reportWebVitals.js",[],["47","48"],"/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/pseudo-system/consts.js",[],"/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/pseudo-system/index.js",[],"/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/pseudo-system/db.js",["49"],"import Dexie from 'dexie';\nimport { autobind } from 'core-decorators';\nimport { STORAGE_KEY, DIR, FILE } from './consts';\n\nfunction defineDB(pathSeporator) {\n const db = new Dexie(STORAGE_KEY);\n\n db.version(1).stores({\n folders: '++id,&[id+path],folderId,fullPath',\n files: '++id,&[folderId+filename],filename,extension,folderId,fullPath',\n superBlock: '++id,blockSize,blocksTotal,fileSysSize,inodeListSize,freeBlocks,freeInodes',\n inodesList: '++id,type,owner,dateTime,size'\n });\n\n\n @autobind\n class SuperBlock {\n constructor(\n blockSize = 1024, blocksTotal = 1024,\n fileSysSize = 1024 * 1024, inodeListSize = 8192,\n freeBlocks = 1024 - 12, freeInodes = 8192) {\n this.blockSize = blockSize;\n this.blocksTotal = blocksTotal;\n this.fileSysSize = fileSysSize;\n this.inodeListSize = inodeListSize;\n this.freeBlocks = freeBlocks;\n this.freeInodes = freeInodes;\n }\n\n save() {\n return db.superBlock.put(this);\n }\n }\n\n @autobind\n class InodesList {\n constructor(\n type,\n owner='user',\n dateTime=new Date(),\n size=64\n )\n {\n this.type = type;\n this.owner = owner;\n this.dateTime = dateTime;\n this.size = size;\n }\n\n save() {\n return db.inodesList.put(this);\n }\n }\n\n @autobind\n class Folder {\n constructor(path, parentFolder = { fullPath: '' }, base = false, inodeID=0) {\n this.path = path;\n this.fullPath = parentFolder.fullPath + path + pathSeporator;\n this.folderId = parentFolder.id;\n this.type = DIR;\n this.isBase = base;\n this.inodeID = inodeID;\n }\n\n save() {\n return db.folders.put(this);\n }\n }\n\n @autobind\n class File {\n constructor(filename, extention, parentFolder, contents = '',inodeID=0) {\n this.fullPath = `${parentFolder.fullPath + filename}.${extention}`;\n this.filename = filename;\n this.extention = extention;\n this.folderId = parentFolder.id;\n this.content = contents;\n this.type = FILE;\n this.inodeID = inodeID;\n }\n\n setContents(contents = '') {\n this.content = contents;\n this.save();\n }\n\n getFullName() {\n return (this.filename || '') + (this.extention ? '.' : '') + (this.extention || '');\n }\n\n save() {\n return db.files.put(this);\n }\n }\n\n db.folders.mapToClass(Folder);\n db.files.mapToClass(File);\n db.superBlock.mapToClass(SuperBlock);\n db.inodesList.mapToClass(InodesList);\n\n return [db, Folder, File, SuperBlock, InodesList];\n}\n\nexport default function(pathSeporator, clear) {\n if (clear) {\n Dexie.delete(STORAGE_KEY);\n }\n const [db, Folder, File, SuperBlock, InodesList] = defineDB(pathSeporator);\n db.superBlock.count(async count => {\n if(count === 0){\n let id = await db.superBlock.add(new SuperBlock());\n if(id) {\n \n let inodeID = await db.inodesList.add(new InodesList(DIR));\n if(inodeID) {\n await db.folders.add(new Folder('', { fullPath: '' }, true, inodeID));\n inodeID = 0;\n }\n \n db.folders.toCollection().first().then(async item => {\n let inodeID = await db.inodesList.add(new InodesList(DIR));\n if(inodeID) {\n await db.folders.add(new Folder('home', item, false, inodeID));\n inodeID = 0;\n }\n inodeID = await db.inodesList.add(new InodesList(DIR));\n if(inodeID){\n await db.folders.add(new Folder('user', { fullPath: `${item.fullPath}home${pathSeporator}`, id: item.id + 1 }, false, inodeID)).then(folder => {\n let offsetblockSize = (folder * 1024) + (16 * 3); //Cause we initialized three dirs.\n let offsetFreeInodes = 8192 - (8 * 3);\n db.superBlock.update(1, {\n blockSize: offsetblockSize,\n freeInodes: offsetFreeInodes\n });\n });\n }\n });\n }\n }\n });\n\n return [db, Folder, File, SuperBlock, InodesList];\n}\n","/home/hoose/Maestria/SistemasOperativos/ProyectoFinal/terminal-react/src/serviceWorkerRegistration.js",[],{"ruleId":"50","replacedBy":"51"},{"ruleId":"52","replacedBy":"53"},{"ruleId":"54","severity":1,"message":"55","line":26,"column":28,"nodeType":"56","messageId":"57","endLine":26,"endColumn":38},{"ruleId":"50","replacedBy":"58"},{"ruleId":"52","replacedBy":"59"},{"ruleId":"50","replacedBy":"60"},{"ruleId":"52","replacedBy":"61"},{"ruleId":"62","severity":1,"message":"63","line":105,"column":1,"nodeType":"64","endLine":144,"endColumn":2},"no-native-reassign",["65"],"no-negated-in-lhs",["66"],"no-unused-vars","'SuperBlock' is assigned a value but never used.","Identifier","unusedVar",["65"],["66"],["65"],["66"],"import/no-anonymous-default-export","Unexpected default export of anonymous function","ExportDefaultDeclaration","no-global-assign","no-unsafe-negation"]