tangled
alpha
login
or
join now
dunkirk.sh
/
pstream-ng
1
fork
atom
pstream is dead; long live pstream
taciturnaxolotl.github.io/pstream-ng/
1
fork
atom
overview
issues
pulls
pipelines
add chrome extension and better pfps
Cooper Ransom
2 years ago
930ba26d
207525a0
+102
-2
4 changed files
expand all
collapse all
unified
split
public
cat.svg
src
components
UserIcon.tsx
form
IconPicker.tsx
setup
config.ts
+94
public/cat.svg
···
1
1
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
2
2
+
width="100%" viewBox="0 0 512 512" xml:space="preserve">
3
3
+
<path fill="#000000" opacity="1.000000" stroke="none"
4
4
+
d="
5
5
+
M338.000000,513.000000
6
6
+
C225.360703,513.000000 113.221397,513.000000 1.041047,513.000000
7
7
+
C1.041047,342.402344 1.041047,171.804672 1.041047,1.103501
8
8
+
C171.555969,1.103501 342.112030,1.103501 512.834045,1.103501
9
9
+
C512.834045,171.666534 512.834045,342.333252 512.834045,513.000000
10
10
+
C454.804657,513.000000 396.652313,513.000000 338.000000,513.000000
11
11
+
M421.046234,397.396240
12
12
+
C424.930695,399.273773 428.685028,401.387543 433.353943,400.167542
13
13
+
C440.252075,398.365112 445.070496,394.373962 446.362885,387.279480
14
14
+
C447.691284,379.987244 444.539673,374.449951 438.495789,370.256073
15
15
+
C430.991302,365.048676 423.034515,360.583923 414.960815,355.702301
16
16
+
C417.092407,349.003326 419.834198,342.530487 420.553375,335.601898
17
17
+
C420.999786,331.301056 422.820435,330.763428 426.466248,332.100128
18
18
+
C436.924103,335.934357 447.272766,339.982819 457.234100,345.018463
19
19
+
C465.180969,349.035706 474.685120,345.953827 478.744659,338.363129
20
20
+
C482.903107,330.587524 480.329712,321.236969 472.491669,316.843567
21
21
+
C458.079468,308.765198 442.526611,303.427979 426.848450,298.466583
22
22
+
C424.392700,297.689484 422.513947,296.924347 422.641815,293.904785
23
23
+
C422.853210,288.911530 421.978455,283.968140 421.746429,279.013306
24
24
+
C421.008301,263.249603 417.016693,248.594727 408.522339,235.210876
25
25
+
C407.599915,233.757477 405.669464,232.718201 406.187408,230.090546
26
26
+
C411.437988,229.851028 414.870422,226.752060 416.824280,221.975723
27
27
+
C419.611298,215.162735 421.468597,208.042801 421.553436,200.692200
28
28
+
C421.757263,183.030777 422.255524,165.335480 421.425262,147.710846
29
29
+
C420.724182,132.829208 414.205658,120.744698 400.383606,113.214386
30
30
+
C383.754333,104.154686 368.041809,107.272743 352.565979,115.853371
31
31
+
C340.367462,122.616882 328.398499,129.806473 316.064240,136.307144
32
32
+
C311.197388,138.872177 306.059692,140.991653 299.993011,140.625214
33
33
+
C287.572174,139.874954 275.240570,138.072906 262.832886,137.522842
34
34
+
C246.879959,136.815613 230.982483,138.005295 215.103790,139.940628
35
35
+
C207.835892,140.826462 200.230270,142.305542 193.058624,139.013092
36
36
+
C188.676453,137.001266 184.374329,134.792755 180.145721,132.473068
37
37
+
C169.213730,126.476097 158.487762,120.084785 147.396362,114.403748
38
38
+
C139.878159,110.552902 131.946671,106.707680 123.221748,107.517387
39
39
+
C97.200874,109.932228 83.074493,124.071777 81.690857,149.815994
40
40
+
C80.676254,168.693939 79.735863,187.831436 82.605530,206.646774
41
41
+
C84.073822,216.273834 84.013924,227.955643 97.963356,230.479080
42
42
+
C85.328804,248.401688 80.633270,268.233673 81.330368,289.602020
43
43
+
C81.583130,297.350281 81.301147,297.166534 73.985550,299.344757
44
44
+
C59.308132,303.714905 44.969742,309.016510 31.489012,316.370270
45
45
+
C23.048832,320.974426 19.928181,330.494812 23.992735,338.435791
46
46
+
C28.004940,346.274475 37.699028,348.922089 46.433510,344.676331
47
47
+
C51.219643,342.349823 56.017853,340.011230 60.956612,338.044708
48
48
+
C67.681229,335.367126 74.545334,333.039856 81.790825,330.401733
49
49
+
C82.836983,337.951904 84.104980,344.634583 86.981956,350.840027
50
50
+
C88.622726,354.379028 87.728310,356.523468 84.329071,358.427521
51
51
+
C77.523842,362.239563 70.854431,366.307404 64.255554,370.470306
52
52
+
C58.881718,373.860352 56.247093,379.252014 56.604187,385.290588
53
53
+
C56.975574,391.570831 60.543400,396.338440 66.534981,399.153961
54
54
+
C73.285484,402.326141 78.914070,399.395660 84.322975,396.060852
55
55
+
C90.407509,392.309448 96.415169,388.454163 102.624519,384.891235
56
56
+
C106.338737,382.760010 109.095131,382.698700 112.422348,385.465759
57
57
+
C116.622612,388.958862 121.055489,392.222229 125.643219,395.190247
58
58
+
C140.978104,405.111176 157.784683,411.698822 175.275146,416.705017
59
59
+
C198.970657,423.487305 223.115112,427.173126 247.766586,427.625732
60
60
+
C269.947388,428.032959 291.827240,425.519745 313.388977,420.539520
61
61
+
C341.485504,414.049988 368.214508,404.244080 390.815094,385.609070
62
62
+
C394.301758,382.734161 396.980591,382.438538 400.518127,384.666901
63
63
+
C407.123352,388.827698 413.781128,392.905060 421.046234,397.396240
64
64
+
z"/>
65
65
+
<path fill="#000000" opacity="1.000000" stroke="none"
66
66
+
d="
67
67
+
M206.133820,300.755310
68
68
+
C202.077454,306.565521 198.225586,311.873810 190.565643,312.432831
69
69
+
C177.558151,313.382111 171.288040,305.769745 168.137512,295.914886
70
70
+
C165.320312,287.102692 165.675308,277.953003 170.159531,269.290955
71
71
+
C174.663025,260.591675 181.538940,256.542969 191.261551,257.654602
72
72
+
C199.794785,258.630219 204.393433,264.652649 207.167419,271.796478
73
73
+
C210.847305,281.273376 210.423950,290.991699 206.133820,300.755310
74
74
+
z"/>
75
75
+
<path fill="#000000" opacity="1.000000" stroke="none"
76
76
+
d="
77
77
+
M333.805237,299.447174
78
78
+
C328.625610,309.462921 321.855469,313.674194 312.055145,312.263428
79
79
+
C302.923248,310.948883 298.365814,304.318207 295.492706,296.239777
80
80
+
C292.650055,288.246948 292.912933,280.263489 295.847382,272.380890
81
81
+
C298.821228,264.392395 306.108093,257.304047 315.955414,257.338867
82
82
+
C323.249603,257.364685 332.531555,264.972015 334.812958,272.789307
83
83
+
C337.365387,281.535248 337.546234,290.438721 333.805237,299.447174
84
84
+
z"/>
85
85
+
<path fill="#000000" opacity="1.000000" stroke="none"
86
86
+
d="
87
87
+
M252.943924,363.376648
88
88
+
C243.900070,363.393768 235.464447,362.861023 229.001114,356.162964
89
89
+
C223.603867,350.569702 224.547928,341.651154 230.887344,337.103485
90
90
+
C240.864014,329.946533 261.426788,329.774292 271.623657,336.762115
91
91
+
C280.550598,342.879761 280.472015,352.863007 271.390808,358.632935
92
92
+
C265.924072,362.106293 259.889648,363.613098 252.943924,363.376648
93
93
+
z"/>
94
94
+
</svg>
+4
src/components/UserIcon.tsx
···
3
3
import { Icon, Icons } from "@/components/Icon";
4
4
5
5
export enum UserIcons {
6
6
+
CAT = "cat",
7
7
+
ATOM = "atom",
6
8
USER_GROUP = "userGroup",
7
9
COUCH = "couch",
8
10
MOBILE = "mobile",
···
16
18
}
17
19
18
20
const iconList: Record<UserIcons, string> = {
21
21
+
cat: `<svg xmlns="http://www.w3.org/2000/svg" height="1.5em" width="1.5em" viewBox="-0.5 0 24 24"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path opacity="1" fill="currentColor" d="M11.7501 6.40636C10.2698 6.40636 10.1222 6.5625 9.3561 6.5625C8.71769 6.5625 6.80245 5 5.84485 5C4.88724 5 3.77004 5.5625 3.77004 7.1875V9.0625C3.77197 9.55469 3.95081 11.0634 4.65075 10.6602C3.82323 11.6382 3.73963 12.7786 3.751 13.8826C3.52812 13.947 3.30072 14.0196 3.08003 14.095C2.39614 14.3289 1.67085 14.6271 1.3432 14.8387C0.995241 15.0634 0.895339 15.5277 1.12006 15.8756C1.34478 16.2236 1.80903 16.3235 2.15698 16.0988C2.3132 15.9979 2.87823 15.7493 3.56532 15.5144C3.64124 15.4884 3.71731 15.4631 3.79298 15.4386C3.83925 15.8724 3.95408 16.2684 4.12478 16.6292L4.1012 16.6416C3.69148 16.8581 3.3113 17.1067 3.06889 17.2652C3.02694 17.2926 2.98912 17.3173 2.95599 17.3387C2.60803 17.5634 2.50813 18.0277 2.73285 18.3756C2.95757 18.7236 3.42182 18.8235 3.76978 18.5988C3.8109 18.5722 3.85472 18.5436 3.90097 18.5134C4.1463 18.3533 4.45999 18.1485 4.80199 17.9678C4.88218 17.9254 4.95935 17.887 5.03317 17.8524C6.76347 19.4748 9.86991 20 11.7501 20C13.6302 20 16.7367 19.4748 18.467 17.8524C18.5408 17.887 18.6179 17.9254 18.6981 17.9678C19.0401 18.1485 19.3538 18.3533 19.5991 18.5134C19.6454 18.5436 19.6892 18.5722 19.7303 18.5988C20.0783 18.8235 20.5425 18.7236 20.7673 18.3756C20.992 18.0277 20.8921 17.5634 20.5441 17.3387C20.511 17.3173 20.4732 17.2926 20.4312 17.2652C20.1888 17.1067 19.8086 16.8581 19.3989 16.6416L19.3754 16.6292C19.5461 16.2683 19.6609 15.8724 19.7072 15.4385C19.783 15.463 19.8592 15.4883 19.9352 15.5144C20.6223 15.7493 21.1874 15.9979 21.3436 16.0988C21.6915 16.3235 22.1558 16.2236 22.3805 15.8756C22.6052 15.5277 22.5053 15.0634 22.1574 14.8387C21.8297 14.6271 21.1044 14.3289 20.4205 14.095C20.1997 14.0195 19.9722 13.947 19.7492 13.8825C19.7605 12.7785 19.6769 11.6382 18.8494 10.6602C19.5494 11.0634 19.7282 9.55469 19.7302 9.0625V7.18761C19.7302 5.56261 18.6129 5.00011 17.6553 5.00011C16.6977 5.00011 14.7825 6.5625 14.1441 6.5625C13.378 6.5625 13.2305 6.40636 11.7501 6.40636ZM11.0745 15.6004C11.2771 15.5314 11.5162 15.5 11.7501 15.5C11.984 15.5 12.2231 15.5314 12.4257 15.6004C12.5251 15.6342 12.6467 15.6876 12.7537 15.7738C12.8612 15.8603 13.0001 16.0206 13.0001 16.25C13.0001 16.4794 12.8612 16.6397 12.7537 16.7262C12.6467 16.8124 12.5251 16.8658 12.4257 16.8996C12.2231 16.9686 11.984 17 11.7501 17C11.5162 17 11.2771 16.9686 11.0745 16.8996C10.9751 16.8658 10.8535 16.8124 10.7464 16.7262C10.6389 16.6397 10.5001 16.4794 10.5001 16.25C10.5001 16.0206 10.6389 15.8603 10.7464 15.7738C10.8535 15.6876 10.9751 15.6342 11.0745 15.6004ZM13.9201 12.5005C14.0566 12.2721 14.326 12 14.7301 12C15.1342 12 15.4036 12.2721 15.54 12.5005C15.6823 12.7387 15.7501 13.0274 15.7501 13.3125C15.7501 13.5976 15.6823 13.8863 15.54 14.1245C15.4036 14.3529 15.1342 14.625 14.7301 14.625C14.326 14.625 14.0566 14.3529 13.9201 14.1245C13.7778 13.8863 13.7101 13.5976 13.7101 13.3125C13.7101 13.0274 13.7778 12.7387 13.9201 12.5005ZM7.96016 12.5005C8.09658 12.2721 8.36599 12 8.7701 12C9.17421 12 9.44362 12.2721 9.58004 12.5005C9.72234 12.7387 9.79011 13.0274 9.79011 13.3125C9.79011 13.5976 9.72234 13.8863 9.58004 14.1245C9.44362 14.3529 9.17421 14.625 8.7701 14.625C8.36599 14.625 8.09658 14.3529 7.96016 14.1245C7.81786 13.8863 7.75009 13.5976 7.75009 13.3125C7.75009 13.0274 7.81786 12.7387 7.96016 12.5005Z" fill="#ffffff"></path> </g></svg>`,
22
22
+
atom: `<svg viewBox="-0.65 0 22 22" xmlns="http://www.w3.org/2000/svg" height="1.5em" width="1.5em"><svg fill="#ffffff" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 514.8 514.8" xml:space="preserve" stroke="#ffffff" fill="currentColor"><path d="M405.962,47.612c-7.037,0-13.674,1.597-19.688,4.312c-12.021-23.963-36.749-40.459-65.389-40.459 c-18.628,0-35.582,7.019-48.501,18.484C250.658,11.398,221.961,0,190.396,0C123.573,0,69.344,50.614,67.967,113.517 c-25.054,11.628-42.458,36.93-42.458,66.354c0,34.004,23.228,62.52,54.669,70.724l338.579,2.324 c39.178-1.405,70.533-33.526,70.533-73.048c0-28.219-15.988-52.661-39.388-64.872c2.61-5.929,4.121-12.441,4.121-19.335 C454.024,69.127,432.508,47.612,405.962,47.612z"></path> <path d="M141.818,372.364c8.501-16.438,9.524-91.36,9.524-91.36s-60.55,44.141-69.051,60.578 c-8.501,16.438-2.065,36.653,14.373,45.154C113.102,395.237,133.317,388.802,141.818,372.364z"></path> <path d="M266.13,372.364c8.501-16.438,9.524-91.36,9.524-91.36s-60.55,44.141-69.051,60.578 c-8.501,16.438-2.065,36.653,14.372,45.154C237.414,395.237,257.629,388.802,266.13,372.364z"></path> <path d="M354.861,386.736c16.438,8.501,36.653,2.065,45.154-14.372c8.501-16.438,9.524-91.36,9.524-91.36 s-60.55,44.141-69.051,60.578C331.988,358.021,338.423,378.235,354.861,386.736z"></path> <path d="M125.361,511.049c16.438,8.501,36.653,2.065,45.154-14.372c8.501-16.438,9.524-91.36,9.524-91.36 s-60.549,44.141-69.051,60.578C102.487,482.333,108.923,502.548,125.361,511.049z"></path> <path d="M249.673,511.049c16.438,8.501,36.653,2.065,45.154-14.372c8.501-16.438,9.524-91.36,9.524-91.36 s-60.55,44.141-69.051,60.578C226.8,482.333,233.235,502.548,249.673,511.049z"></path> </g> </g></svg>`,
19
23
userGroup: `<svg xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 640 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path opacity="1" fill="currentColor" d="M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM609.3 512H471.4c5.4-9.4 8.6-20.3 8.6-32v-8c0-60.7-27.1-115.2-69.8-151.8c2.4-.1 4.7-.2 7.1-.2h61.4C567.8 320 640 392.2 640 481.3c0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9C372.4 196.5 384 163.6 384 128c0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z"/></svg>`,
20
24
couch: `<svg xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 640 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path opacity="1" fill="currentColor" d="M64 160C64 89.3 121.3 32 192 32H448c70.7 0 128 57.3 128 128v33.6c-36.5 7.4-64 39.7-64 78.4v48H128V272c0-38.7-27.5-71-64-78.4V160zM544 272c0-20.9 13.4-38.7 32-45.3c5-1.8 10.4-2.7 16-2.7c26.5 0 48 21.5 48 48V448c0 17.7-14.3 32-32 32H576c-17.7 0-32-14.3-32-32H96c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V272c0-26.5 21.5-48 48-48c5.6 0 11 1 16 2.7c18.6 6.6 32 24.4 32 45.3v48 32h32H512h32V320 272z"/></svg>`,
21
25
mobile: `<svg xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 384 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path opacity="1" fill="currentColor" d="M16 64C16 28.7 44.7 0 80 0H304c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H80c-35.3 0-64-28.7-64-64V64zM144 448c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16s-7.2-16-16-16H160c-8.8 0-16 7.2-16 16zM304 64H80V384H304V64z"/></svg>`,
+2
src/components/form/IconPicker.tsx
···
3
3
import { UserIcon, UserIcons } from "../UserIcon";
4
4
5
5
const icons = [
6
6
+
UserIcons.CAT,
7
7
+
UserIcons.ATOM,
6
8
UserIcons.USER_GROUP,
7
9
UserIcons.COUCH,
8
10
UserIcons.MOBILE,
+2
-2
src/setup/config.ts
···
50
50
GITHUB_LINK: undefined,
51
51
DONATION_LINK: undefined,
52
52
DISCORD_LINK: undefined,
53
53
-
ONBOARDING_CHROME_EXTENSION_INSTALL_LINK: import.meta.env
54
54
-
.VITE_ONBOARDING_CHROME_EXTENSION_INSTALL_LINK,
53
53
+
ONBOARDING_CHROME_EXTENSION_INSTALL_LINK:
54
54
+
"https://chrome.google.com/webstore/detail/movie-web-extension/hoffoikpiofojilgpofjhnkkamfnnhmm?hl=en-GB",
55
55
ONBOARDING_FIREFOX_EXTENSION_INSTALL_LINK: import.meta.env
56
56
.VITE_ONBOARDING_FIREFOX_EXTENSION_INSTALL_LINK,
57
57
ONBOARDING_PROXY_INSTALL_LINK: import.meta.env