jo-chris / filemanager Goto Github PK
View Code? Open in Web Editor NEWShort and compact filemanager using .PHP, .JS, .SCSS
Short and compact filemanager using .PHP, .JS, .SCSS
extracting failes.
Hallo liebes Projektteam,
ich korrigiere bereits die Projektarbeiten. Mir ist ein kleiner Bug aufgefallen von dem ich denke, dass es für die Präsentation nicht verkehrt wäre, wenn Sie das noch bis Dienstag beheben könnten:
Erweitern Sie bitte folgende Zeile von assets/js/classes/core.js Zeile 157 um
newRow.setAttribute("data-path", data.path);
newRow.setAttribute("data-filename", data.name); //newly added
Außerdem in der gleichen Datei an folgender Stelle - Zeile 220
eine kleine Anpassung
ersetzen Sie
//get name and path
file.name = e.target.parentNode.parentNode.parentNode.children[0].lastChild.textContent;
//current path is always displayed at top
file.path = e.target.parentNode.parentNode.parentNode.getAttribute('data-path');
durch
//get name and path
//file.name = e.target.parentNode.parentNode.parentNode.children[0].lastChild.textContent; //do not rely on such things! This gives different results in different browsers!
file.name = e.target.parentNode.parentNode.getAttribute('data-filename');
//current path is always displayed at top
file.path = e.target.parentNode.parentNode.getAttribute('data-path');
Darüber hinaus ist mir in der gleichen Datei an folgender Stelle - Zeile 473 eine Kleinigkeit aufgefallen von der ich nicht sicher bin ob das ein Bug ist oder ein Feature:
return `
<td class="table-light align-middle"><input type="checkbox" class=" ${bool ? "invisible" : "visible" } name="filedata" ></input><button class="btn mr-2 ml-2"><i class="${utils.determineFileIcon(data.name, data.type)} fa-2x text-primary"></i></button>${data.name}</td>
<td class="table-light align-middle">${utils.calcRealSize(data.size)}</td>
<td class="table-light align-middle">${utils.formatDate(data.date_modified)}</td>
<td class="table-light text-center align-middle">
<button class="btn btn-outline-danger ml-2 float-right deleteItem">Löschen</button>
<button class="btn btn-outline-primary float-right downloadItem ${bool ? "invisible" : "visible" }">Herunterladen</button></td>
</tr>
`;
In der ersten Zeile fehlt ein schließendes Anführungszeichen oben " bei class=" ${bool ? "invisible" : "visible" } name="filedata" >
und ein schließender input Tag ist ein bisschen oldschool (XHTML mäßig).
Wahrscheinlich wäre es so wie gewollt:
return `
<td class="table-light align-middle"><input type="checkbox" class="${bool ? "invisible" : "visible" }" name="filedata" ><button class="btn mr-2 ml-2"><i class="${utils.determineFileIcon(data.name, data.type)} fa-2x text-primary"></i></button>${data.name}</td>
<td class="table-light align-middle">${utils.calcRealSize(data.size)}</td>
<td class="table-light align-middle">${utils.formatDate(data.date_modified)}</td>
<td class="table-light text-center align-middle">
<button class="btn btn-outline-danger ml-2 float-right deleteItem">Löschen</button>
<button class="btn btn-outline-primary float-right downloadItem ${bool ? "invisible" : "visible" }">Herunterladen</button></td>
</tr>
`;
Ansonsten sieht ihre Projektarbeit mal sehr gut aus! Ich hab zwar am Dienstag noch eine Rückfrage bezüglich Arbeitsaufteilung - da erscheint es mir so, dass einer ihrer Teammitglieder nicht genug Arbeit bekommen hat / erledigen konnte - aber das werde ich am Dienstag von Ihnen drei persönlich erfragen.
Herzliche Grüße
Daniel Hoover
clean up the core.js file...
if you search an element and trying to download it, it fails.
--> path possibly not set!
if user searches for files/folders, size and date are being displayed as NaN and Invalid Date.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.