punfetch 0.3.6

A blazingly fast system fetch program to pair with onefetch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
diff --git a/docs/vercel/index.html b/docs/vercel/index.html
index 03860bc..98d34b9 100644
--- a/docs/vercel/index.html
+++ b/docs/vercel/index.html
@@ -5,7 +5,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <link rel="icon" href="/onefetch.ico" />
     <link rel="stylesheet" href="/sakura.css" type="text/css" />
-    <title>Onefetch</title>
+    <title>Punfetch</title>
   </head>
 
   <body>
diff --git a/docs/vercel/package-lock.json b/docs/vercel/package-lock.json
index 2add992..b5bed26 100644
--- a/docs/vercel/package-lock.json
+++ b/docs/vercel/package-lock.json
@@ -1,11 +1,11 @@
 {
-  "name": "onefetch-web",
+  "name": "punfetch-web",
   "version": "0.0.0",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
-      "name": "onefetch-web",
+      "name": "punfetch-web",
       "version": "0.0.0",
       "devDependencies": {
         "@rollup/plugin-yaml": "^4.0.1",
diff --git a/docs/vercel/package.json b/docs/vercel/package.json
index c37225b..9b97ba8 100644
--- a/docs/vercel/package.json
+++ b/docs/vercel/package.json
@@ -1,5 +1,5 @@
 {
-  "name": "onefetch-web",
+  "name": "punfetch-web",
   "private": true,
   "version": "0.0.0",
   "type": "module",
diff --git a/docs/vercel/public/sakura.css b/docs/vercel/public/sakura.css
index 3b6cc0f..2e27919 100644
--- a/docs/vercel/public/sakura.css
+++ b/docs/vercel/public/sakura.css
@@ -1,3 +1,4 @@
+/* $color-text: #dedce5; */
 /* Sakura.css v1.4.1
  * ================
  * Minimal css theme.
@@ -6,8 +7,7 @@
 /* Body */
 html {
   font-size: 62.5%;
-  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
-    'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
+  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
 }
 
 body {
@@ -15,8 +15,8 @@ body {
   line-height: 1.618;
   max-width: 38em;
   margin: auto;
-  color: #222222;
-  background-color: #ffffff;
+  color: #c9c9c9;
+  background-color: #222222;
   padding: 13px;
 }
 
@@ -30,15 +30,9 @@ body {
     font-size: 1.35rem;
   }
 }
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
+h1, h2, h3, h4, h5, h6 {
   line-height: 1.1;
-  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
-    'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
+  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
   font-weight: 700;
   margin-top: 3rem;
   margin-bottom: 1.5rem;
@@ -77,26 +71,24 @@ p {
   margin-bottom: 2.5rem;
 }
 
-small,
-sub,
-sup {
+small, sub, sup {
   font-size: 75%;
 }
 
 hr {
-  border-color: #007559;
+  border-color: #ffffff;
 }
 
 a {
   text-decoration: none;
-  color: #007559;
+  color: #ffffff;
 }
 a:visited {
-  color: #004232;
+  color: #e6e6e6;
 }
 a:hover {
-  color: #006994;
-  border-bottom: 2px solid #222222;
+  color: #c9c9c9;
+  border-bottom: 2px solid #c9c9c9;
 }
 
 ul {
@@ -116,17 +108,16 @@ blockquote {
   padding-top: 0.8em;
   padding-bottom: 0.8em;
   padding-right: 0.8em;
-  border-left: 5px solid #007559;
+  border-left: 5px solid #ffffff;
   margin-bottom: 2.5rem;
-  background-color: #f7f7f7;
+  background-color: #4a4a4a;
 }
 
 blockquote p {
   margin-bottom: 0;
 }
 
-img,
-video {
+img, video {
   height: auto;
   max-width: 100%;
   margin-top: 0px;
@@ -135,7 +126,7 @@ video {
 
 /* Pre and Code */
 pre {
-  background-color: #f7f7f7;
+  background-color: #4a4a4a;
   display: block;
   padding: 1em;
   overflow-x: auto;
@@ -144,12 +135,10 @@ pre {
   font-size: 0.9em;
 }
 
-code,
-kbd,
-samp {
+code, kbd, samp {
   font-size: 0.9em;
   padding: 0 0.5em;
-  background-color: #f7f7f7;
+  background-color: #4a4a4a;
   white-space: pre-wrap;
 }
 
@@ -167,93 +156,67 @@ table {
   border-collapse: collapse;
 }
 
-td,
-th {
+td, th {
   padding: 0.5em;
-  border-bottom: 1px solid #f7f7f7;
+  border-bottom: 1px solid #4a4a4a;
 }
 
 /* Buttons, forms and input */
-input,
-textarea {
-  border: 1px solid #222222;
+input, textarea {
+  border: 1px solid #c9c9c9;
 }
-input:focus,
-textarea:focus {
-  border: 1px solid #007559;
+input:focus, textarea:focus {
+  border: 1px solid #ffffff;
 }
 
 textarea {
   width: 100%;
 }
 
-.button,
-button,
-input[type='submit'],
-input[type='reset'],
-input[type='button'] {
+.button, button, input[type=submit], input[type=reset], input[type=button] {
   display: inline-block;
   padding: 5px 10px;
   text-align: center;
   text-decoration: none;
   white-space: nowrap;
-  background-color: #007559;
-  color: #ffffff;
+  background-color: #ffffff;
+  color: #222222;
   border-radius: 1px;
-  border: 1px solid #007559;
+  border: 1px solid #ffffff;
   cursor: pointer;
   box-sizing: border-box;
 }
-.button[disabled],
-button[disabled],
-input[type='submit'][disabled],
-input[type='reset'][disabled],
-input[type='button'][disabled] {
+.button[disabled], button[disabled], input[type=submit][disabled], input[type=reset][disabled], input[type=button][disabled] {
   cursor: default;
   opacity: 0.5;
 }
-.button:focus:enabled,
-.button:hover:enabled,
-button:focus:enabled,
-button:hover:enabled,
-input[type='submit']:focus:enabled,
-input[type='submit']:hover:enabled,
-input[type='reset']:focus:enabled,
-input[type='reset']:hover:enabled,
-input[type='button']:focus:enabled,
-input[type='button']:hover:enabled {
-  background-color: #006994;
-  border-color: #006994;
-  color: #ffffff;
+.button:focus:enabled, .button:hover:enabled, button:focus:enabled, button:hover:enabled, input[type=submit]:focus:enabled, input[type=submit]:hover:enabled, input[type=reset]:focus:enabled, input[type=reset]:hover:enabled, input[type=button]:focus:enabled, input[type=button]:hover:enabled {
+  background-color: #c9c9c9;
+  border-color: #c9c9c9;
+  color: #222222;
   outline: 0;
 }
 
-textarea,
-select,
-input {
-  color: #222222;
+textarea, select, input {
+  color: #c9c9c9;
   padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
   margin-bottom: 10px;
-  background-color: #f7f7f7;
-  border: 1px solid #f7f7f7;
+  background-color: #4a4a4a;
+  border: 1px solid #4a4a4a;
   border-radius: 4px;
   box-shadow: none;
   box-sizing: border-box;
 }
-textarea:focus,
-select:focus,
-input:focus {
-  border: 1px solid #007559;
+textarea:focus, select:focus, input:focus {
+  border: 1px solid #ffffff;
   outline: 0;
 }
 
-input[type='checkbox']:focus {
-  outline: 1px dotted #007559;
+input[type=checkbox]:focus {
+  outline: 1px dotted #ffffff;
 }
 
-label,
-legend,
-fieldset {
+label, legend, fieldset {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 600;
diff --git a/docs/vercel/src/Index.svelte b/docs/vercel/src/Index.svelte
index f49ad29..7f8d68c 100644
--- a/docs/vercel/src/Index.svelte
+++ b/docs/vercel/src/Index.svelte
@@ -1,9 +1,9 @@
 <script lang="ts">
   import AsciiPreview from './lib/AsciiPreview.svelte';
-  import data from '../../../languages.yaml';
-  import type { Languages } from '../../../languages.yaml';
+  import data from '../../../../../../distros.yaml';
+  import type { Distros } from '../distros.yaml';
 
-  const languages = Object.entries(data as Languages).map(
+  const distros = Object.entries(data as Distros).map(
     ([name, { ascii, colors }]) => ({
       name,
       ascii,
@@ -14,49 +14,53 @@
 
 <header>
   <div class="banner">
-    <small
-      >Version 2.15 is available 🎉 Check the <a
-        href="https://github.com/o2sh/onefetch/releases/tag/2.15.0"
-        >release notes</a
-      >!!</small>
+    <small>
+      Version 0.3.0 is available with color support, onefetch_ascii integration, and a generic library to implement your
+      own fetch binaries! 🎉 Check the
+      <a href="https://github.com/ozwaldorf/punfetch/releases/latest">latest release notes</a>
+    </small>
   </div>
-  <h1>Onefetch</h1>
+  <h1>Punfetch</h1>
   <p>
     <small>
-      <a href="https://github.com/o2sh/onefetch/wiki">wiki</a> |
-      <a href="https://github.com/o2sh/onefetch/tree/main/docs/vercel"
-        >github</a>
-      | Built with ❤ by
-      <a href="https://github.com/spenserblack">@spenserblack</a> and
-      <a href="https://github.com/o2sh">@o2sh</a></small>
+      <a href="https://github.com/ozwaldorf/punfetch">github</a>
+      | Binary built with ❤ by <a href="https://github.com/ozwaldorf">@ozwaldorf</a>
+      | Website patched from <a href="https://github.com/o2sh/onefetch/tree/main/docs/vercel">onefetch/docs/vercel</a>
+    </small>
   </p>
 </header>
 <main>
   <p>
-    This page shows you an ASCII preview for all the programming languages
-    supported by onefetch. Like the binary, the data is taken from the <a
-      href="https://raw.githubusercontent.com/o2sh/onefetch/main/languages.yaml"
-      ><code>Languages.yaml</code></a> file and the layout is meant to mimic the
-    way the logo would look inside a terminal.
+    This page shows you an ASCII preview for all the distributions supported by
+    punfetch. Like the binary, the data is taken from the <a
+      href="https://raw.githubusercontent.com/ozwaldorf/punfetch/main/distros.yaml"
+      ><code>Distros.yaml</code></a> file and the layout is meant to mimic the way
+    the logo would look inside a terminal.
   </p>
   <p>
     Suggestions and PRs are welcome at <a
-      href="https://github.com/o2sh/onefetch">github.com/o2sh/onefetch</a>
+      href="https://github.com/ozwaldorf/punfetch"
+      >github.com/ozwaldorf/punfetch</a>
   </p>
-  <h3>Languages <small>({languages.length})</small></h3>
-  {#each languages as language}
+  <h3>Distributions <small>({distros.length})</small></h3>
+  {#each distros as distro}
     <AsciiPreview
-      name={language.name}
-      ansi={language.ansi}
-      hex={language.hex}
-      ascii={language.ascii}
-      chip={language.chip} />
+      name={distro.name}
+      ansi={distro.ansi}
+      hex={distro.hex}
+      ascii={distro.ascii}
+      chip={distro.chip} />
   {/each}
+  <div class="footer">
+    <p>
+
+    </p>
+  </div>
 </main>
 
 <style>
   .banner {
-    background-color: #e1f6e5;
+    background-color: #4c7e56;
     position: absolute;
     top: 0;
     left: 0;
diff --git a/docs/vercel/src/lib/AsciiPreview.svelte b/docs/vercel/src/lib/AsciiPreview.svelte
index a477bdd..e75bc86 100644
--- a/docs/vercel/src/lib/AsciiPreview.svelte
+++ b/docs/vercel/src/lib/AsciiPreview.svelte
@@ -10,6 +10,7 @@
 
   let dark = true;
   let trueColor = hex != null;
+  let noColor = hex == null && ansi == null;
 
   $: html = ascii
     .split('\n')
@@ -18,9 +19,8 @@
       let spanCount = 0;
       const htmlLine = line.replace(/\{(\d+)\}/g, (_match, index) => {
         const i = Number.parseInt(index, 10);
-        const spanText = `<span style="font-weight: bold; color: ${
-          trueColor ? hex[i] : mapToDefaultTerminalFgColor(ansi[i], dark)
-        }">`;
+        const color = noColor ? mapToDefaultTerminalFgColor("white", dark) : (trueColor ? hex![i] : ansi![i]);
+        const spanText = `<span style="font-weight: bold; color: ${color}">`;
         spanCount++;
         return spanText;
       });
@@ -34,7 +34,7 @@
 </script>
 
 <div class="title-row">
-  <div class="language-name">
+  <div class="distro-name">
     <Chip id={name} color={chip} width={24} height={24} />
     <TitleLink {name} />
   </div>
@@ -74,16 +74,18 @@
 
   pre {
     line-height: 1.1;
+    color: black;
     background-color: white;
     display: inline-block;
     margin-bottom: 0px;
   }
 
   pre.dark {
+    color: white;
     background-color: black;
   }
 
-  .language-name {
+  .distro-name {
     display: flex;
     flex-direction: row;
     align-items: baseline;
diff --git a/docs/vercel/src/lib/Chip.svelte b/docs/vercel/src/lib/Chip.svelte
index 5d4caf5..3d3af39 100644
--- a/docs/vercel/src/lib/Chip.svelte
+++ b/docs/vercel/src/lib/Chip.svelte
@@ -13,7 +13,7 @@
   {width}
   {height}
   fill={color}
-  stroke="black"
+  stroke="white"
   stroke-width="5">
   <circle cx="50" cy="50" r="45" />
 </svg>
diff --git a/docs/vercel/src/lib/TitleLink.svelte b/docs/vercel/src/lib/TitleLink.svelte
index 5ca939e..72ca2ba 100644
--- a/docs/vercel/src/lib/TitleLink.svelte
+++ b/docs/vercel/src/lib/TitleLink.svelte
@@ -8,6 +8,6 @@
   .title-link,
   .title-link:hover,
   .title-link:visited {
-    color: #222;
+      color: #c9c9c9;
   }
 </style>
diff --git a/docs/vercel/typings/yaml.d.ts b/docs/vercel/typings/yaml.d.ts
index fc71246..6808ffd 100644
--- a/docs/vercel/typings/yaml.d.ts
+++ b/docs/vercel/typings/yaml.d.ts
@@ -1,15 +1,15 @@
-declare module '*/languages.yaml' {
-  export interface LanguageColors {
-    ansi: string[];
+declare module '*/distros.yaml' {
+  export interface DistroColors {
+    ansi?: string[];
     hex?: string[];
     chip: string;
   }
 
-  export interface Language {
+  export interface Distro {
     type: string;
     ascii: string;
-    colors: LanguageColors;
+    colors: DistroColors;
   }
 
-  export type Languages = Record<string, Language>;
+  export type Distros = Record<string, Distro>;
 }