Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.5.0 #51

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { $ } from "bun";
const platforms = ["linux-x64", "linux-arm64", "windows-x64", "darwin-x64", "darwin-arm64"];
for await (const platform of platforms) {
console.log(`Building for ${platform}...\n`);
await $`bun build --minify --compile --outfile=../wikit_dist/wikit_${platform.replace("darwin", "macos").replace("-", "_")} --target=bun-${platform} index.js`
console.log("");
}
console.log("Done!");
Binary file added bun.lockb
Binary file not shown.
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 4.5.0

- The project was harmonized with Bun.
- The outputs are colored.
- Added `--mobile` and `-m` flags.
- Added `--random` and `-r` flags. See ([Issue#34](https://github.com/KorySchneider/wikit/issues/34)).
- Added `Special:Random` support. See ([Issue#34](https://github.com/KorySchneider/wikit/issues/34)).
- Added `--plain` and `-p` flags.
- Fixed [this](https://github.com/KorySchneider/wikit/issues/49). ([Issue#49](https://github.com/KorySchneider/wikit/issues/49))
- The project was edited to be compatible with Bun. See [**WHY?**](/readme.md#-why-bun)
61 changes: 61 additions & 0 deletions colorama.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
const Fore = {
Reset : "\x1b[0m",
ColorReset : "\x1b[39m",
Bright : "\x1b[1m",
Dim : "\x1b[2m",
Italic : "\x1b[3m",
Underscore : "\x1b[4m",
Blink : "\x1b[5m",
Reverse : "\x1b[7m",
Hidden : "\x1b[8m",
CrossedOut : "\x1b[9m",
Black : "\x1b[30m",
Red : "\x1b[31m",
Green : "\x1b[32m",
Yellow : "\x1b[33m",
Blue : "\x1b[34m",
Magenta : "\x1b[35m",
Cyan : "\x1b[36m",
White : "\x1b[37m",
Gray : "\x1b[90m",
BrightRed : "\x1b[91m",
BrightGreen : "\x1b[92m",
BrightYellow : "\x1b[93m",
BrightBlue : "\x1b[94m",
BrightMagenta : "\x1b[95m",
BrightCyan : "\x1b[96m",
BrightWhite : "\x1b[97m",
}
const Back = {
Reset : "\x1b[49m",
BgBlack : "\x1b[40m",
BgRed : "\x1b[41m",
BgGreen : "\x1b[42m",
BgYellow : "\x1b[43m",
BgBlue : "\x1b[44m",
BgMagenta : "\x1b[45m",
BgCyan : "\x1b[46m",
BgWhite : "\x1b[47m",
BgGray : "\x1b[100m",
BgBrightRed : "\x1b[101m",
BgBrightGreen : "\x1b[102m",
BgBrightYellow : "\x1b[103m",
BgBrightBlue : "\x1b[104m",
BgBrightMagenta : "\x1b[105m",
BgBrightCyan : "\x1b[106m",
BgBrightWhite : "\x1b[107m",
}
function testLog() {
let out = "";
for (let i = 0; i < Object.keys(Fore).length; i++) {
const code = Fore[Object.keys(Fore)[i]];
out += code + Object.keys(Fore)[i] + Fore.Reset + " ";
}
for (let i = 0; i < Object.keys(Back).length; i++) {
const code = Back[Object.keys(Back)[i]];
out += code + Object.keys(Back)[i] + Back.Reset + " ";
}
console.log(out);
}

module.exports = { Fore, Back, testLog };
5 changes: 3 additions & 2 deletions data/languages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"default":"en",
"ab":{
"name":"Abkhaz",
"nativeName":"аҧсуа"
Expand Down Expand Up @@ -204,7 +205,7 @@
"de":{
"name":"German",
"nativeName":"Deutsch",
"disambig": "Begriffskl�rung"
"disambig": "Begriffskl�rung"
},
"el":{
"name":"Greek, Modern",
Expand Down Expand Up @@ -593,7 +594,7 @@
"es":{
"name":"Spanish; Castilian",
"nativeName":"español, castellano",
"disambig": "desambiguaci�n"
"disambig": "desambiguaci�n"
},
"su":{
"name":"Sundanese",
Expand Down
2 changes: 1 addition & 1 deletion data/wikit.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.Dd $wikitdate$
.TH wikit 1 "23 Aug 2020" "4.4.0" "wikit manual"
.TH wikit 1 "15 May 2020" "4.5.0" "wikit manual"
.Dt wikit 1
.Os

Expand Down
Loading