Skip to content

Commit

Permalink
v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
flick9000 committed Feb 27, 2025
1 parent 19640ef commit c34eb11
Show file tree
Hide file tree
Showing 16 changed files with 406 additions and 415 deletions.
18 changes: 13 additions & 5 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ dialog {
cursor: pointer;
display: flex !important;
}

}

.modal-buttons {
Expand All @@ -219,7 +218,7 @@ dialog {
align-items: center;
justify-content: center;
text-decoration: none;
width: 100%;
width: 100%;
line-height: 1.25;
font-size: 1rem;
padding: 0.5rem 2rem;
Expand All @@ -233,14 +232,18 @@ dialog {
outline: transparent;
}
a:nth-child(1) {
background: linear-gradient(180deg, hsl(255, 50%, 37%) 0% 40%, hsl(255, 50%, 39%), hsl(263, 50%, 42%));
background: linear-gradient(
180deg,
hsl(255, 50%, 37%) 0% 40%,
hsl(255, 50%, 39%),
hsl(263, 50%, 42%)
);
border-top: 1px solid var(--cta);
}
a:nth-child(2) {
background-color: #18132b;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

}

#start-modal .modal-content {
Expand Down Expand Up @@ -297,7 +300,12 @@ main {
display: flex;
align-items: center;
cursor: pointer;
background: linear-gradient(180deg, hsl(255, 50%, 37%) 0% 40%, hsl(255, 50%, 39%), hsl(263, 50%, 42%));
background: linear-gradient(
180deg,
hsl(255, 50%, 37%) 0% 40%,
hsl(255, 50%, 39%),
hsl(263, 50%, 42%)
);
border-top: 1px solid var(--cta);
line-height: 1.25;
font-size: 1rem;
Expand Down
48 changes: 23 additions & 25 deletions online/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ button {
min-height: 32px;
border-radius: 5px;
border: none;
background-color: hsl(from var(--text) h s l / .055);
background-color: hsl(from var(--text) h s l / 0.055);
border: 1px solid hsl(from var(--text) h s l / 0.02);
cursor: pointer;
z-index: 1;
Expand All @@ -82,7 +82,7 @@ hr {
}

button:hover {
background-color: hsl(from var(--text) h s l / .07);
background-color: hsl(from var(--text) h s l / 0.07);
}

.main-container {
Expand All @@ -96,7 +96,7 @@ button:hover {
left: 0;
right: 0;
bottom: 0;
background-image: url('../icons/gradient.webp');
background-image: url("../icons/gradient.webp");
background-size: cover;
width: 100%;
z-index: -2;
Expand All @@ -113,7 +113,8 @@ button:hover {
backdrop-filter: blur(500px);
background-color: hsla(253, 50%, 7%, 0.75);
overflow-y: auto;
box-shadow: 0px 25.6px 57.6px rgb(0 0 0 / 14%), 0px 0px 16.4px rgb(0 0 0 / 12%);
box-shadow: 0px 25.6px 57.6px rgb(0 0 0 / 14%),
0px 0px 16.4px rgb(0 0 0 / 12%);
}

.sidebar {
Expand All @@ -131,7 +132,7 @@ button:hover {
align-items: center;
gap: 1rem;
}

.sidebar-user {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -174,19 +175,18 @@ button:hover {
}

.sidebar-entry:hover {
background-color: hsl(from var(--text) h s l / .08);
background-color: hsl(from var(--text) h s l / 0.08);
}

.sidebar-entry.active {
background-color: hsl(from var(--text) h s l / .08);
animation: sidebar-border-fade 0.3s ease forwards;
background-color: hsl(from var(--text) h s l / 0.08);
animation: sidebar-border-fade 0.3s ease forwards;
}

.sidebar-entry > img {
max-width: 24px;
}


.content {
margin-left: 342px !important;
margin-right: 1rem;
Expand Down Expand Up @@ -228,19 +228,19 @@ button:hover {
align-items: center;
justify-content: space-between;
width: 100%;
background-color: hsl(from var(--text) h s l / .05);
border: 1px solid hsla(0,0%,0%, 0.3);
background-color: hsl(from var(--text) h s l / 0.05);
border: 1px solid hsla(0, 0%, 0%, 0.3);
padding-inline: 12px;
border-radius: 5px;
min-height: 64px;
}

.content-entry:hover {
background-color: hsl(from var(--text) h s l / .083);
background-color: hsl(from var(--text) h s l / 0.083);
}

.content-entry:has(button):hover {
background-color: hsl(from var(--text) h s l / .05);
background-color: hsl(from var(--text) h s l / 0.05);
}

.content-entry img {
Expand All @@ -264,7 +264,7 @@ button:hover {
gap: 16px;
}

.content-entry > summary > div {
.content-entry > summary > div {
display: flex;
flex-direction: column;
justify-content: center;
Expand All @@ -282,7 +282,7 @@ button:hover {
}

details summary::-webkit-details-marker {
display:none;
display: none;
}

details > div.content-entry img {
Expand Down Expand Up @@ -327,7 +327,7 @@ details[open] .chevron {
height: 20px;
}

.switch input {
.switch input {
opacity: 0;
width: 0;
height: 0;
Expand All @@ -342,8 +342,8 @@ details[open] .chevron {
bottom: 0;
background-color: #272727;
border: 1px solid #a0a0a0;
-webkit-transition: .4s;
transition: .4s;
-webkit-transition: 0.4s;
transition: 0.4s;
border-radius: 34px;
}

Expand All @@ -355,8 +355,8 @@ details[open] .chevron {
left: 4px;
bottom: 3px;
background-color: #cecece;
-webkit-transition: .4s;
transition: .4s;
-webkit-transition: 0.4s;
transition: 0.4s;
border-radius: 50%;
}

Expand Down Expand Up @@ -393,7 +393,7 @@ input:checked + .slider:before {
min-height: 32px;
width: 100%;
max-width: 300px;
background-color: hsl(from var(--text) h s l / .05);
background-color: hsl(from var(--text) h s l / 0.05);
margin-bottom: 1rem;
}

Expand Down Expand Up @@ -423,7 +423,7 @@ input:checked + .slider:before {
max-width: 100%;
min-height: 333px;
max-height: 333px;
background-color: hsl(from var(--text) h s l / .055);
background-color: hsl(from var(--text) h s l / 0.055);
border-radius: 5px;
}

Expand All @@ -437,7 +437,6 @@ input:checked + .slider:before {
margin-left: 1rem;
}


.content {
overflow: hidden !important;
}
Expand All @@ -456,7 +455,7 @@ input:checked + .slider:before {
.fa-solid.fa-bars-staggered {
display: flex;
}

.sidebar.responsive {
position: fixed;
display: flex;
Expand All @@ -471,7 +470,6 @@ input:checked + .slider:before {
padding-inline: 1.5rem;
z-index: 2;
}

}

@media screen and (min-width: 800px) {
Expand Down
11 changes: 7 additions & 4 deletions online/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4035,9 +4035,14 @@ <h1>Presets</h1>
<div>
<div>
<p>
<b>Review the scripts one by one before executing it.</b>
<b>1) Important</b> <br>
<i>Review the scripts one by one before executing it.</i>
<br /> <br />
Choosing a preset will override your current settings.
<b>2) Table</b> <br>
<i>You can find a table comparing the presets <a style="text-decoration: underline;" target="_blank" href="https://docs.winscript.cc/#/presets">here.</a></i>
<br /> <br />
<b>3) Select</b> <br>
<i>Selecting a preset will override your current settings.</i>
<br /> <br />
<b>Basic Preset</b>:
Reccomended, good balance beetween privacy/performance and functionality.
Expand All @@ -4049,8 +4054,6 @@ <h1>Presets</h1>
<br /> <br />
<b>Extreme Preset</b>:
Not reccomended, use only if you know what you're doing.
<br /> <br />
You can find a table comparing the presets <a style="text-decoration: underline;" target="_blank" href="https://docs.winscript.cc/#/presets">here.</a>
</p>
</div>
</div>
Expand Down
40 changes: 21 additions & 19 deletions online/js/appinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function appsInstall() {
{ id: "Neovim", url: "neovim" },
{ id: "VSCode", url: "vscode" },
];

// Create manualURL array
if (!window.manualURLs) {
window.manualURLs = [];
Expand All @@ -175,42 +175,44 @@ function appsInstall() {
const checkedUrls = getCheckedUrls();
const allUrls = [...checkedUrls, ...window.manualURLs];
const finalURL = allUrls.join(" ");

const command = allUrls.length > 0
? 'taskkill /f /im explorer.exe && start explorer.exe && start cmd /k "' +
"choco install " +
finalURL +
' -y --force --ignorepackageexitcodes"'
: "";

const command =
allUrls.length > 0
? 'taskkill /f /im explorer.exe && start explorer.exe && start cmd /k "' +
"choco install " +
finalURL +
' -y --force --ignorepackageexitcodes"'
: "";

// Display the final URL in the div
document.querySelector(".div-install").style.display =
allUrls.length > 0 ? "block" : "none";
document.querySelector(".chocolatey-container").style.display =
allUrls.length > 0 ? "block" : "none";

const commandDisplay = document.querySelector(".commandDisplay");
commandDisplay.textContent = command;

const installingApps = document.querySelector(".installingApps");
installingApps.textContent = finalURL;

const manualList = document.getElementById("manualList");
if (window.manualURLs.length > 0) {
manualList.innerHTML = "Manual packages added: " + window.manualURLs.join(" | ");
manualList.innerHTML =
"Manual packages added: " + window.manualURLs.join(" | ");
}
}

// Add addButton click listener
const addButton = document.getElementById("addApp");
addButton.addEventListener("click", () => {
const manualInput = document.getElementById("manualInput").value.trim();
if (manualInput) {
window.manualURLs.push(manualInput);
document.getElementById("manualInput").value = ""; // Clear input
updateCommandDisplay();
}
});
addButton.addEventListener("click", () => {
const manualInput = document.getElementById("manualInput").value.trim();
if (manualInput) {
window.manualURLs.push(manualInput);
document.getElementById("manualInput").value = ""; // Clear input
updateCommandDisplay();
}
});

updateCommandDisplay();
}
Expand Down
Loading

0 comments on commit c34eb11

Please sign in to comment.