From f7ad051c46b9934ba927d5901faacbd7230a3ca7 Mon Sep 17 00:00:00 2001
From: Ricky Dane Perlick Extra options
${item.name}
`; itemButton.className = "item-button directory-entry"; @@ -1088,7 +1090,7 @@ async function showItems(items, dualPaneSide = "", millerCol = 1) { var itemButtonList = document.createElement("div"); itemButtonList.innerHTML = ` - +${item.name}
@@ -1109,7 +1111,7 @@ async function showItems(items, dualPaneSide = "", millerCol = 1) { var itemButtonList = document.createElement("div"); itemButtonList.innerHTML = ` - +${item.name}
`; @@ -1457,7 +1459,7 @@ async function addSingleItem(item, dualPaneSide = "", millerCol = 1, itemIndex = if (ViewMode == "wrap") { var itemButton = document.createElement("div"); itemButton.innerHTML = ` - +${item.name}
`; itemButton.className = "item-button directory-entry"; @@ -1471,7 +1473,7 @@ async function addSingleItem(item, dualPaneSide = "", millerCol = 1, itemIndex = var itemButtonList = document.createElement("div"); itemButtonList.innerHTML = ` - +${item.name}
@@ -2246,7 +2248,7 @@ async function applyPlatformFeatures() { headerNav.style.boxShadow = "none"; $(".site-nav-bar").css("padding-top", "50px"); $(".search-bar-input").attr("placeholder", "Cmd + F"); - $(".settings-ui-header").css("padding", "5px 10px 5px 100px"); + $(".settings-ui-header").css("padding", "5px 5px 5px 100px"); } else { appWindow.transparent = true; appWindow.setDecorations(false); @@ -2290,7 +2292,7 @@ async function listDisks() { itemButton.innerHTML = `${item.name}
@@ -3386,16 +3388,22 @@ async function showProperties(item) {Type: ${extension_description}
` : ''}Modified: ${modifiedAt}
-- -
-+ + +
+ +
+ +
A simple file explorer that was born because I wanted to learn the Rust language.
From a3d1f2298ae30648a2687270ed9c8083bea0dc76 Mon Sep 17 00:00:00 2001
From: Ricky Dane Perlick UdR4JFheyEl&LZGZg ${item.name} ${item.name} ${item.name} ${item.name} ${item.name} N5P$GErHBsVWF^ W;OZLtoi#UXrPKo{O#os&4%mdUm#y=E4
z$rlG>_D#}}e*}wV9szU&)?1L;;AHU4
N#3)R}2@cDt#v+4j$m~e?U
zo^eWQ9T3Wt@${msg}
`;
- popup.className = "input-popup input-dialog";
+ popup.className = "input-popup input-dialog uni-popup";
popup.children[1].addEventListener("keyup", async (e) => {
if (e.keyCode == 13) {
await invoke("open_dir", { path: popup.children[1].value });
@@ -1960,8 +1987,14 @@ async function pasteItem(copyToPath = "") {
ContextMenu.style.display = "none";
}
if (IsCopyToCut == true) {
+ arr = arr.map((element) => element.path);
+ if (arr.includes(copyToPath)) {
+ alert("Cannot copy to the same directory");
+ writeLog("Cannot copy to the same directory");
+ return;
+ }
await invoke("arr_delete_items", {
- arrItems: arr.map((element) => element.path),
+ arrItems: arr,
});
ArrCopyItems = [];
if (IsDualPaneEnabled === true) {
@@ -1992,7 +2025,7 @@ function createFolderInputPrompt() {
item.remove();
});
let nameInput = document.createElement("div");
- nameInput.className = "input-dialog";
+ nameInput.className = "input-dialog uni-popup";
nameInput.innerHTML = `
Type in a name for your new folder.
@@ -2085,7 +2118,7 @@ function renameElementInputPrompt(item) {
}
});
nameInput.addEventListener("focusout", () => {
- IsInputFocused = false;
+ IsInputFocused = false;
});
nameInput.addEventListener("focusin", () => {
IsInputFocused = true;
@@ -2282,8 +2315,6 @@ async function listDisks() {
);
itemLink.setAttribute("itemisdir", 1);
itemLink.setAttribute("onclick", "interactWithItem(this, '')");
- let newRow = document.createElement("div");
- newRow.className = "directory-item-entry";
itemLink.className = "item-link directory-entry";
let itemButton = document.createElement("div");
if (item.name == "") {
@@ -2332,9 +2363,8 @@ async function listDisks() {
}
itemButton.style.width = "100%";
itemButton.style.height = "100px";
- newRow.append(itemButton);
- newRow.append(itemButtonList);
- itemLink.append(newRow);
+ itemLink.append(itemButton);
+ itemLink.append(itemButtonList);
DirectoryList.append(itemLink);
document.querySelector(".current-path").innerHTML = `
${await invoke("get_file_content", { path })}
${await invoke("get_file_content", { path })}
gOdzT|RrBY^H1*8U59>k6
BEojAm>saQ?
z_#CwTIy6`5NPe!|{F<`E3S0x*_6v+dXW*q6#ev&vH4)0ZB`sze;LUitriFRHl%$2K
z>j96KBXajvA_^QV1g2vQg5hG*+{}`ExxF+=Z<5PT>F5GSFLs8v=WCjH`Cgc(ZucxD
z)
%+-if2wu~hE?3IdKDpw%+q?lO)@{c!f8P4%WiA=4GB6BAlK)kyW~9Y
z6W#MJ*Rv;i)F$mkDsr7=g(ZlA^GT+0SG%Ud201w7&EgW941NsSM%g%fjOu1z^!UGS
z6%>(=7NkoSIs#KMdZ!L^RC&J-JXl?iaa~+DwDXLX?BCRqW;lTmyn0LX2vD8}5eioc
z|6>64UJzeZhU;p7E@@ApPaI7OB&LI#u~*lZsiK<)_*
zW-}+m*`AbU5h%ka&8S)W86(V!oIZ!%$Tj*y%*S|MXp|qyj6hv!5x}gHfTu1+IY=LZ
zlt^qyPF=*dYNCQN!-Opvmrs>0jt@1mz1+a9{JrREL956{
khOfE3$e#Z(1kXDST=T?K;A;pc=)taQZh{tuq%-@xEOoA(tpU
zqsi0hlEuUOiwL|Rekf!v&=bZbLsf7S3xtypV(PLR)tA-^!Su%q{9z3wNv~!;i{KA{
zpf)CC_1=yeFOri6{m=ja