From 8cc560e055b874c3b4b301a4e9cae41024af94d0 Mon Sep 17 00:00:00 2001
From: Andrew <66430340+aandrew-me@users.noreply.github.com>
Date: Sat, 8 Apr 2023 17:52:03 +0600
Subject: [PATCH] Rename and modification date
---
assets/css/index.css | 57 +++++++++++++++++++++++++++-----------------
src/renderer.js | 12 +++++++++-
2 files changed, 46 insertions(+), 23 deletions(-)
diff --git a/assets/css/index.css b/assets/css/index.css
index 58d0864..c2c7a22 100644
--- a/assets/css/index.css
+++ b/assets/css/index.css
@@ -126,13 +126,8 @@ body {
margin: 10px auto;
}
-@media screen and (max-width: 650px) {
- .item {
- width: 90%;
- }
-}
-.itemIconBox{
- display:flex;
+.itemIconBox {
+ display: flex;
flex-direction: column;
}
.itemIcon {
@@ -142,9 +137,18 @@ body {
margin: 0 10px 0 0;
}
+.title {
+ padding: 10px;
+ border-radius: 8px;
+ border: none;
+ outline: none;
+ width: 45%;
+ text-align: center;
+}
+
.itemTitle {
font-family: sans-serif;
- padding:5px;
+ padding: 5px;
}
.itemBody {
height: 90%;
@@ -159,11 +163,11 @@ body {
margin-top: 10px;
font-family: sans-serif;
}
-.progressBar{
- width:90%;
+.progressBar {
+ width: 90%;
}
-.itemSpeed{
- padding:10px 5px 5px 5px;
+.itemSpeed {
+ padding: 10px 5px 5px 5px;
}
.itemClose {
position: absolute;
@@ -239,7 +243,7 @@ body {
padding: 8px;
color: var(--text);
}
-#videoToggle{
+#videoToggle {
background-color: var(--box-toggleOn);
}
@@ -334,12 +338,12 @@ input[type="number"]::-webkit-outer-spin-button {
#errorDetails {
cursor: pointer;
font-family: monospace;
- padding:15px;
+ padding: 15px;
margin: 10px 0;
border: 2px solid rgb(189, 0, 0);
border-radius: 8px;
display: none;
- transition: .5s all;
+ transition: 0.5s all;
}
#loadingWrapper {
/* Default is flex */
@@ -471,16 +475,25 @@ body::-webkit-scrollbar-thumb {
cursor: pointer;
}
-#popupText{
+#popupText {
display: none;
- position:fixed;
- left:25px;
+ position: fixed;
+ left: 25px;
bottom: 20px;
- padding:10px;
+ padding: 10px;
border-radius: 2px;
- color:white;
+ color: white;
background-color: rgb(80, 80, 224);
cursor: pointer;
- transition: .5s all;
+ transition: 0.5s all;
z-index: 2;
-}
\ No newline at end of file
+}
+
+@media screen and (max-width: 650px) {
+ .item {
+ width: 90%;
+ }
+ .title {
+ width: 80%;
+ }
+}
diff --git a/src/renderer.js b/src/renderer.js
index 0b50d55..a46fcc2 100644
--- a/src/renderer.js
+++ b/src/renderer.js
@@ -343,7 +343,7 @@ async function getInfo(url) {
getId("loadingWrapper").style.display = "none";
getId("hidden").style.display = "inline-block";
- getId("title").innerHTML = `${i18n.__("Title ")}: ` + title;
+ getId("title").innerHTML = `${i18n.__("Title ")}: ` + ``;
let audioSize = 0;
let defaultVideoFormat = 0;
@@ -932,6 +932,7 @@ function download(
configTxt,
cookieArg,
browser,
+ "--no-mtime",
`"${url}"`,
],
{ shell: true, detached: false },
@@ -961,6 +962,7 @@ function download(
browser,
configArg,
configTxt,
+ "--no-mtime",
`"${url}"`,
],
{ shell: true, detached: false },
@@ -990,6 +992,7 @@ function download(
browser,
configArg,
configTxt,
+ "--no-mtime",
`"${url}"`,
],
{ shell: true, detached: false },
@@ -1127,6 +1130,13 @@ function showItem(location, filename) {
shell.showItemInFolder(`${path.join(location, filename)}`);
}
+// Rename title
+
+function renameTitle(){
+ title = getId("titleName").value
+ console.log(title)
+}
+
// Opening windows
function closeMenu() {
getId("menuIcon").style.transform = "rotate(0deg)";