-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c0d3466
Showing
15 changed files
with
812 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.vscode | ||
node_modules | ||
CHANGELOG.html | ||
deno.lock | ||
FIX_boiii_Steam_Workshop.exe | ||
LICENSE.html | ||
README.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div id="changelog"> | ||
<h1 id="changelog-title">0.1.0</h1> | ||
<h3 id="changelog-added">Added:</h3> | ||
<div id="changelog-added-body"> | ||
<ul> | ||
<li>Adding multiple files: | ||
<ul> | ||
<li> | ||
<a href="./libraries">libraries</a> | ||
</li> | ||
<li> | ||
<a href="./.gitignore">.gitignore</a> | ||
</li> | ||
<li> | ||
<a href="./CHANGELOG.md">CHANGELOG.md</a> | ||
</li> | ||
<li> | ||
<a href="./deno.json">deno.json</a> | ||
</li> | ||
<li> | ||
<a href="./import_map.json">import_map.json</a> | ||
</li> | ||
<li> | ||
<a href="./LICENSE">LICENSE</a> | ||
</li> | ||
<li> | ||
<a href="./main.js">main.js</a> | ||
</li> | ||
<li> | ||
<a href="./README.md">README.md</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
<h1 id="changelog-old">To view older changelogs, please refer to <a id="changelog-old-link" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/releases">Github releases</a>.</h1> | ||
</div> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<a name="top"></a> | ||
<a name="readme-head"><div id="readme-head" align="center"> | ||
<h1 id="readme-title">FIX boiii Steam Workshop</h1> | ||
<h4 id="readme-description">Move <a href="https://steamcommunity.com/workshop/browse/?appid=311210&requiredtags[]=Mod" target="_blank">Mods</a> and <a href="https://steamcommunity.com/workshop/browse/?appid=311210&requiredtags[]=Map" target="_blank">Custom Maps</a> from the <a href="https://steamcommunity.com/app/311210/workshop" target="_blank">Steam Workshop</a> to the <a href="https://store.steampowered.com/app/311210" target="_blank">COD BO3</a> root.</h4> | ||
<a id="readme-shield-last-commit" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/commits/main"> | ||
<img id="readme-shield-last-commit-img" src="https://img.shields.io/github/last-commit/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Last commit" /> | ||
</a> | ||
<a id="readme-shield-release-date" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/releases/latest"> | ||
<img id="readme-shield-release-date-img" src="https://img.shields.io/github/release-date/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Release date" /> | ||
</a> | ||
<a id="readme-shield-downloads"> | ||
<img id="readme-shield-downloads-img" src="https://img.shields.io/github/downloads/AlexAnimateMp4/FIX-boiii-Steam-Workshop/total" alt="Downloads" /> | ||
</a> | ||
<a id="readme-shield-downloads-latest"> | ||
<img id="readme-shield-downloads-latest-img" src="https://img.shields.io/github/downloads/AlexAnimateMp4/FIX-boiii-Steam-Workshop/latest/total" alt="Downloads@latest" /> | ||
</a> | ||
<a id="readme-shield-contributors" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/graphs/contributors"> | ||
<img id="readme-shield-contributors-img" src="https://img.shields.io/github/contributors/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Contributors" /> | ||
</a> | ||
<a id="readme-shield-open-issues" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/issues?q=is%3Aopen+is%3Aissue"> | ||
<img id="readme-shield-open-issues-img" src="https://img.shields.io/github/issues-raw/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Open issues" /> | ||
</a> | ||
<a id="readme-shield-closed-issues" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/issues?q=is%3Aissue+is%3Aclosed"> | ||
<img id="readme-shield-closed-issues-img" src="https://img.shields.io/github/issues-closed-raw/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Closed issues" /> | ||
</a> | ||
<a id="readme-shield-open-pull-requests" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/pulls?q=is%3Aopen+is%3Apr"> | ||
<img id="readme-shield-open-pull-requests-img" src="https://img.shields.io/github/issues-pr-raw/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Open pull requests" /> | ||
</a> | ||
<a id="readme-shield-closed-pull-requests" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/pulls?q=is%3Apr+is%3Aclosed"> | ||
<img id="readme-shield-closed-pull-requests-img" src="https://img.shields.io/github/issues-pr-closed-raw/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Closed pull requests" /> | ||
</a> | ||
<a id="readme-shield-commit-activity-by-week"> | ||
<img id="readme-shield-commit-activity-by-week-img" src="https://img.shields.io/github/commit-activity/w/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Commit activity by week" /> | ||
</a> | ||
<a id="readme-shield-commit-activity-by-month"> | ||
<img id="readme-shield-commit-activity-by-month-img" src="https://img.shields.io/github/commit-activity/m/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Commit activity by month" /> | ||
</a> | ||
<a id="readme-shield-version"> | ||
<img id="readme-shield-version-img" src="https://img.shields.io/github/v/release/alexanimatemp4/FIX-boiii-Steam-Workshop?label=version" alt="Version" /> | ||
</a> | ||
<a id="readme-shield-main-file" href="./main.js"> | ||
<img id="readme-shield-main-file-img" src="https://img.shields.io/badge/main-main.js-blue" alt="Main file" /> | ||
</a> | ||
<a id="readme-shield-languages"> | ||
<img id="readme-shield-languages-img" src="https://img.shields.io/github/languages/count/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Languages" /> | ||
</a> | ||
<a id="readme-shield-top-language"> | ||
<img id="readme-shield-top-language-img" src="https://img.shields.io/github/languages/top/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Top language" /> | ||
</a> | ||
<a id="readme-shield-license" href="./LICENSE"> | ||
<img id="readme-shield-license-img" src="https://img.shields.io/github/license/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="License" /> | ||
</a> | ||
<a id="readme-shield-code-size"> | ||
<img id="readme-shield-code-size-img" src="https://img.shields.io/github/languages/code-size/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Code size" /> | ||
</a> | ||
<a id="readme-shield-repo-size"> | ||
<img id="readme-shield-repo-size-img" src="https://img.shields.io/github/repo-size/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Repo size" /> | ||
</a> | ||
<a id="readme-shield-watchers" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/watchers"> | ||
<img id="readme-shield-watchers-img" src="https://img.shields.io/github/watchers/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Watchers" /> | ||
</a> | ||
<a id="readme-shield-stars" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/stargazers"> | ||
<img id="readme-shield-stars-img" src="https://img.shields.io/github/stars/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Stars" /> | ||
</a> | ||
<a id="readme-shield-forks" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/network/members"> | ||
<img id="readme-shield-forks-img" src="https://img.shields.io/github/forks/AlexAnimateMp4/FIX-boiii-Steam-Workshop" alt="Forks" /> | ||
</a> | ||
</div></a> | ||
<a name="readme-body"><div id="readme-body" align="center"> | ||
<a name="readme-how-to"><h3 id="readme-how-to">Simply copy <a href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/releases/latest">FIX_boiii_Steam_Workshop</a> to the root of <a href="https://store.steampowered.com/app/311210" target="_blank">COD BO3</a> and drag-and-drop your <a href="https://store.steampowered.com/libraryupdate" target="_blank">Steam library</a> onto it if it's a custom path!</h3></a> | ||
<a name="readme-docs"><div id="readme-docs" align="center"> | ||
<table id="readme-docs-table" align="center"> | ||
<thead id="readme-docs-table-head"> | ||
<tr id="readme-docs-table-head-container"> | ||
<a name="readme-dda"><th id="readme-docs-table-head-value">Double Dash Argument</th></a> | ||
<th id="readme-docs-table-head-description">Description</th> | ||
</tr> | ||
</thead> | ||
<tbody id="readme-docs-table-body"> | ||
<tr id="readme-docs-table-body-container-fcwd"> | ||
<td id="readme-docs-table-body-name-fcwd"><code>fcwd</code></td> | ||
<td id="readme-docs-table-body-description-fcwd">Forces the use of the <a href="https://deno.land/api?s=Deno.cwd" target="_blank">current working directory</a>.</td> | ||
</tr> | ||
<tr id="readme-docs-table-body-container-nopause"> | ||
<td id="readme-docs-table-body-name-nopause"><code>nopause</code></td> | ||
<td id="readme-docs-table-body-description-nopause">Quit immediately at the end of execution.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div></a></a> | ||
<a name="readme-footer"><p id="readme-footer" align="center">CL 2023 <a id="readme-footer-repo" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop">FIX boiii Steam Workshop</a><br></> with <a href="https://www.npmjs.com/package/love-of-my-life" target="_blank">❤</a> by <a id="readme-footer-author" href="https://alexanimatemp4.me" target="_blank">Alex Animate Mp4</a> and <a id="readme-footer-contributors" href="https://github.com/AlexAnimateMp4/FIX-boiii-Steam-Workshop/graphs/contributors">contributors</a>.</p></a> | ||
<a name="bottom"></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"tasks": { | ||
"start": "deno run main.js", | ||
"build": "deno compile --output FIX_boiii_Steam_Workshop main.js" | ||
}, | ||
"importMap": "./import_map.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"imports": { | ||
"path": "https://deno.land/[email protected]/path/mod.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/*This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
This Source Code Form is "Incompatible With Secondary Licenses", as | ||
defined by the Mozilla Public License, v. 2.0.*/ | ||
import is_string from "./isto/is/string/index.js"; | ||
/* | ||
^R = Reset | ||
^B = Bright | ||
^D = Dim | ||
^U = Underscore | ||
^F = Blink | ||
^V = Reverse | ||
^H = Hidden | ||
^0 = FG Black | ||
^1 = FG Red | ||
^2 = FG Green | ||
^3 = FG Yellow | ||
^4 = FG Blue | ||
^5 = FG Cyan | ||
^6 = FG Magenta | ||
^7 = FG White | ||
^8 = FG Crimson | ||
^9 = FG Gray | ||
^B0 = BG Black | ||
^B1 = BG Red | ||
^B2 = BG Green | ||
^B3 = BG Yellow | ||
^B4 = BG Blue | ||
^B5 = BG Cyan | ||
^B6 = BG Magenta | ||
^B7 = BG White | ||
^B8 = BG Crimson | ||
^B9 = BG Gray | ||
*/ | ||
const colors = { | ||
R: "\x1b[0m", | ||
B: "\x1b[1m", | ||
D: "\x1b[2m", | ||
U: "\x1b[4m", | ||
F: "\x1b[5m", | ||
V: "\x1b[7m", | ||
H: "\x1b[8m", | ||
0: "\x1b[30m", | ||
1: "\x1b[31m", | ||
2: "\x1b[32m", | ||
3: "\x1b[33m", | ||
4: "\x1b[34m", | ||
5: "\x1b[36m", | ||
6: "\x1b[35m", | ||
7: "\x1b[37m", | ||
8: "\x1b[38m", | ||
9: "\x1b[90m", | ||
B0: "\x1b[40m", | ||
B1: "\x1b[41m", | ||
B2: "\x1b[42m", | ||
B3: "\x1b[43m", | ||
B4: "\x1b[44m", | ||
B5: "\x1b[46m", | ||
B6: "\x1b[45m", | ||
B7: "\x1b[47m", | ||
B8: "\x1b[48m", | ||
B9: "\x1b[100m" | ||
}; | ||
for (const method of ["log", "info", "warn", "error"]) { | ||
const original = console[method]; | ||
console[method] = function () { | ||
let args = Array.prototype.slice.call(arguments); | ||
if (args.length > 0) { | ||
const stringArgs = args.map((arg, index) => [is_string(arg) == true, index]).filter(([stringArg]) => stringArg == true); | ||
if (stringArgs.length > 0) { | ||
for (let index = 0; index < stringArgs.length; index++) { | ||
const argIndex = stringArgs[index][1]; | ||
args[argIndex] = args[argIndex].replace(new RegExp(Object.keys(colors).map(key => `\\^${key}`).join("|"), "gmi"), match => colors[match.replace(/\^/gmi, "")]); | ||
if (index == stringArgs.length - 1) { | ||
const reset = colors["R"]; | ||
if (args[argIndex].endsWith(reset) != true) args[argIndex] = args[argIndex] + reset; | ||
original.apply(null, args); | ||
}; | ||
}; | ||
} else original.apply(null, args); | ||
} else original.apply(null, args); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/*This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
This Source Code Form is "Incompatible With Secondary Licenses", as | ||
defined by the Mozilla Public License, v. 2.0.*/ | ||
export * as is from "./is/index.js"; | ||
export * as to from "./to/index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/*This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
This Source Code Form is "Incompatible With Secondary Licenses", as | ||
defined by the Mozilla Public License, v. 2.0.*/ | ||
export { default as object } from "./object/index.js"; | ||
export { default as string } from "./string/index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/*This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
This Source Code Form is "Incompatible With Secondary Licenses", as | ||
defined by the Mozilla Public License, v. 2.0.*/ | ||
import to_string from "../../to/string/index.js"; | ||
export default function(value) { | ||
try { | ||
if (typeof (value) == "object" && value != null && value?.constructor == Object) return this?.notEmpty != false ? Object.keys(value).length > 0 : true; | ||
else if (this?.stringify != false) { | ||
value = JSON.parse(to_string(value)); | ||
return typeof (value) == "object" && value != null && value?.constructor == Object ? this?.notEmpty != false ? Object.keys(value).length > 0 : true : false; | ||
} else return false; | ||
} catch (error) { | ||
return false; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/*This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
This Source Code Form is "Incompatible With Secondary Licenses", as | ||
defined by the Mozilla Public License, v. 2.0.*/ | ||
export default function (value) { | ||
return typeof (value) == "string" ? this?.notEmpty != false ? value.length > 0 : true : false; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/*This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
This Source Code Form is "Incompatible With Secondary Licenses", as | ||
defined by the Mozilla Public License, v. 2.0.*/ | ||
export { default as object } from "./object/index.js"; | ||
export { default as string } from "./string/index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/*This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
This Source Code Form is "Incompatible With Secondary Licenses", as | ||
defined by the Mozilla Public License, v. 2.0.*/ | ||
import is_object from "../../is/object/index.js"; | ||
import is_string from "../../is/string/index.js"; | ||
export default function(value) { | ||
try { | ||
if (is_object(value) == true) return is_string(value) == true ? JSON.parse(value) : value; | ||
else if (this?.default != false) return {}; | ||
} catch (error) { | ||
if (this?.default != false) return {}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/*This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
This Source Code Form is "Incompatible With Secondary Licenses", as | ||
defined by the Mozilla Public License, v. 2.0.*/ | ||
import is_string from "../../is/string/index.js"; | ||
export default function(value) { | ||
try { | ||
if (is_string(value) != true) return this?.strict == false || typeof (value) == "undefined" ? String(value) : JSON.stringify(value); | ||
else return value; | ||
} catch (error) { | ||
if (this?.default != false) return ""; | ||
}; | ||
}; |
Oops, something went wrong.