Adding badge

This commit is contained in:
Jean Ouina 2020-06-27 00:16:48 +02:00
parent 508ef57eb2
commit 7544f67fa2
5 changed files with 130 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -2,6 +2,7 @@ import BugHunterBadge from "../svg/bug_hunter"
import LightcordUserBadge from "../svg/LightcordUser";
import nodeFetch from "node-fetch"
import { settingsCookie } from "../0globals";
import Circus from "../svg/circus";
export function uuidv4() { // Generate UUID (No crypto rng)
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
@ -158,6 +159,15 @@ export const Constants = {
scopes: [],
component: BugHunterBadge,
href: "https://github.com/lightcord/lightcord/wiki/badges/bug_hunter"
}, {
name: "Buffoon",
id: "06904d31-65b4-41ec-a50c-8658bbd1af96",
defaultUsers: [
"389016895543705602"
],
scopes: [],
component: Circus,
href: "https://www.youtube.com/watch?v=EJtb6z-dlT8"
}
]
}

View File

@ -0,0 +1,36 @@
export default class Circus extends React.Component {
render(){
return (<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" {...this.props.svg} height="100%">
<path
fill="#DD2E44"
d="M33 33a2 2 0 01-2 2H5a2 2 0 01-2-2l1-12h28l1 12z"
></path>
<path
fill="#EA596E"
d="M13 35c-.792-1.875-1.75-3.291-3.417-4.666 1.75-1.459 4.542-5.5 5.25-8.292s2.75 8.125 2.042 10.625S13 35 13 35zm10.303 0c.791-1.875 1.75-3.291 3.416-4.666-1.75-1.459-4.541-5.5-5.25-8.292-.707-2.792-2.75 8.125-2.04 10.625.708 2.5 3.874 2.333 3.874 2.333z"
></path>
<path
fill="#BE1931"
d="M3.728 24.263A2.5 2.5 0 008 22.5c0-.565-.195-1.081-.511-1.5H4l-.272 3.263zm28.544 0L32 21h-3.489A2.482 2.482 0 0028 22.5a2.5 2.5 0 004.272 1.763z"
></path>
<circle cx="14" cy="23" r="2" fill="#BE1931"></circle>
<circle cx="22" cy="23" r="2" fill="#BE1931"></circle>
<circle cx="10" cy="23" r="2" fill="#BE1931"></circle>
<circle cx="26" cy="23" r="2" fill="#BE1931"></circle>
<path d="M23 35H13s2-6 2-13h6c0 7 2 13 2 13zM17 2h2v7h-2z"></path>
<path
fill="#55ACEE"
d="M18.838.206C17.667.042 17 .318 17 1.418v1c0 1.1.865 1.753 1.923 1.451l5.154-.901c1.715-.343 1.548-1.593.085-1.884L18.838.206z"
></path>
<path
fill="#CCD6DD"
d="M18 6l-.081.123C10.938 16.981 3 15.015 3 19v2.5a2.5 2.5 0 004.95.5H12a2 2 0 004 0h4a2 2 0 004 0h4.05a2.5 2.5 0 004.95-.5V19c0-4-8-2-15-13z"
></path>
<g fill="#F5F8FA">
<path d="M17.948 6.078l-.03.045C17.132 11.619 10.811 16.126 8 18v4a2 2 0 004 0v-4c.982-.982 5.813-6.787 5.984-11.732-.01-.064-.027-.126-.036-.19zm.08.398C18.324 11.374 23.031 17.031 24 18v4a2 2 0 004 0v-4c-2.75-1.833-8.953-6.19-9.972-11.524z"></path>
<path d="M17.984 6.27C17.922 8.346 17.606 16.394 16 18v4a2 2 0 004 0v-4c-1.564-1.564-1.905-9.241-1.979-11.559-.011-.057-.027-.113-.037-.171z"></path>
</g>
</svg>
)
}
}

View File

@ -174,7 +174,7 @@ export default class V2C_PublicServers extends BDV2.reactComponent {
categories: ["community", "programming", "support"],
description: "Official Lightcord server for support etc",
identifier: "86004744966914048",
iconUrl: "https://cdn.discordapp.com/icons/705908350218666117/05a5652f7d1d0ae328ca7d6e2354a82a.webp",
iconUrl: "https://avatars3.githubusercontent.com/u/65690058?s=200&v=4",
nativejoin: true,
invite_code: "7eFff2A",
pinned: true

View File

@ -21,7 +21,7 @@ export default class V2C_ServerCard extends BDV2.reactComponent {
// BDV2.react.createElement(
// "div",
// { className: "flex-1xMQg5 flex-1O1GKY horizontal-1ae9ci horizontal-2EEEnY flex-1O1GKY directionRow-3v3tfG justifyStart-2yIZo0 alignStretch-1hwxMa noWrap-3jynv6" },
BDV2.react.createElement("img", {ref: "img", className: "bd-server-image", src: server.iconUrl, onError: this.handleError.bind(this)}),
BDV2.react.createElement("img", {ref: "img", className: "bd-server-image", src: server.iconUrl, onError: this.handleError.bind(this), draggable: false}),
BDV2.react.createElement(
"div",
{className: flexModule.flexChild+" bd-server-content"},