Initial upload
This commit is contained in:
1 parent
b0bf3b7167
commit
a022f29e34
65 files changed
+46484
-4339
No files matched your search
+100
@@ -0,0 +1,100 @@
|
||||
const fs = require('fs');
|
||||
let cssContent = fs.readFileSync('public/css/bot.css', 'utf8');
|
||||
|
||||
const oldProfileStr = `.sidebar-shell.open .profile-card {
|
||||
justify-content: flex-start;
|
||||
padding: 9px 16px;
|
||||
}
|
||||
|
||||
.sidebar-shell.open:not(:hover) .profile-card {
|
||||
justify-content: center !important;
|
||||
padding-left: 0 !important;
|
||||
padding-right: 0 !important;
|
||||
gap: 0 !important;
|
||||
}
|
||||
|
||||
.sidebar-shell.open:hover .profile-card {
|
||||
justify-content: flex-start;
|
||||
padding: 9px 17px;
|
||||
}`;
|
||||
|
||||
const newProfileStr = `.sidebar-shell.open .profile-card {
|
||||
justify-content: flex-start;
|
||||
padding: 9px 8px;
|
||||
}`;
|
||||
|
||||
if (cssContent.includes(oldProfileStr)) {
|
||||
fs.writeFileSync('public/css/bot.css', cssContent.replace(oldProfileStr, newProfileStr));
|
||||
console.log('Successfully patched bot.css profile card');
|
||||
} else {
|
||||
console.log('Old string not found in bot.css profile card!');
|
||||
}
|
||||
|
||||
let ejsContent = fs.readFileSync('views/bot.ejs', 'utf8');
|
||||
const oldEjsStr = ` .sidebar-shell.open .sidebar-item,
|
||||
.sidebar-shell.open .profile-card {
|
||||
transition:
|
||||
background 0.2s ease,
|
||||
transform 0.2s ease,
|
||||
color 0.2s ease,
|
||||
padding 0.38s cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.sidebar-shell.open .sidebar-item .label,
|
||||
.sidebar-shell.open .profile-meta {
|
||||
transition:
|
||||
max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
|
||||
opacity 0.26s ease,
|
||||
transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
|
||||
transition-delay: 0s;
|
||||
}`;
|
||||
|
||||
const newEjsStr = ` .sidebar-shell.open .sidebar-item,
|
||||
.sidebar-shell.open .profile-card {
|
||||
transition:
|
||||
background 0.2s ease,
|
||||
transform 0.2s ease,
|
||||
color 0.2s ease;
|
||||
}
|
||||
|
||||
.sidebar-shell.open .sidebar-item .label,
|
||||
.sidebar-shell.open .profile-meta {
|
||||
transition:
|
||||
max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
|
||||
opacity 0.26s ease,
|
||||
transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
|
||||
transition-delay: 0s;
|
||||
}`;
|
||||
|
||||
if (ejsContent.includes(oldEjsStr)) {
|
||||
fs.writeFileSync('views/bot.ejs', ejsContent.replace(oldEjsStr, newEjsStr));
|
||||
console.log('Successfully patched bot.ejs transitions');
|
||||
} else {
|
||||
console.log('Old string not found in bot.ejs transitions!');
|
||||
}
|
||||
|
||||
const oldEjsStr2 = ` .sidebar-shell.open:hover .sidebar-item .label,
|
||||
.sidebar-shell.open:hover .profile-meta {
|
||||
transition-delay: 0.08s;
|
||||
}
|
||||
|
||||
.sidebar-shell.open:not(:hover) .sidebar-item .label,
|
||||
.sidebar-shell.open:not(:hover) .profile-meta {
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
#cmdInput,`;
|
||||
|
||||
const newEjsStr2 = ` .sidebar-shell.open:hover .sidebar-item .label,
|
||||
.sidebar-shell.open:hover .profile-meta {
|
||||
transition-delay: 0.08s;
|
||||
}
|
||||
|
||||
.sidebar-shell.open:not(:hover) .sidebar-item .label,
|
||||
.sidebar-shell.open:not(:hover) .profile-meta {
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
#cmdInput,`;
|
||||
|
||||
// Just to check everything is fine
|
||||
Reference in new issue
Block a user