Skip to content

Commit

Permalink
merge-upstream: Update credits
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Dec 29, 2023
1 parent 7edd4fe commit 8341357
Show file tree
Hide file tree
Showing 2 changed files with 186 additions and 28 deletions.
10 changes: 9 additions & 1 deletion src/playground/credits/credits.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ import PropTypes from 'prop-types';
import appTarget from '../app-target';
import styles from './credits.css';

import UserData from './users';
import {APP_NAME} from '../../lib/brand';
import {applyGuiColors} from '../../lib/themes/guiHelpers';
import {detectTheme} from '../../lib/themes/themePersistance';
import UserData from './users';

/* eslint-disable react/jsx-no-literals */

applyGuiColors(detectTheme());
document.documentElement.lang = 'en';

const User = ({image, text, href}) => (
Expand All @@ -19,6 +22,7 @@ const User = ({image, text, href}) => (
className={styles.user}
>
<img
loading="lazy"
className={styles.userImage}
src={image}
width="60"
Expand Down Expand Up @@ -85,6 +89,10 @@ const Credits = () => (
<h2>Addons</h2>
<UserList users={UserData.addonDevelopers} />
</section>
<section>
<h2>TurboWarp Extension Gallery</h2>
<UserList users={UserData.extensionDevelopers} />
</section>
<section>
<h2>Translators</h2>
<p>
Expand Down
204 changes: 177 additions & 27 deletions src/playground/credits/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,96 +8,246 @@ const shuffle = list => {
return list;
};

const fromHardcoded = ({userId, username, name}) => ({
image: `https://trampoline.turbowarp.org/avatars/${userId}`,
href: `https://scratch.mit.edu/users/${username}/`,
text: name || username
});
const fromHardcoded = ({userID = '0', username}) => {
const result = {
image: `https://trampoline.turbowarp.org/avatars/${userID}`,
text: name || username
};
if (username) {
result.href = `https://scratch.mit.edu/users/${username}/`;
}
return result;
};

// The lists below are in no particular order.

const addonDevelopers = [
{
userId: '34018398',
userID: '34018398',
username: 'Jeffalo'
},
{
userId: '64184234',
userID: '64184234',
username: 'ErrorGamer2000'
},
{
userId: '41616512',
userID: '41616512',
username: 'pufferfish101007'
},
{
userId: '61409215',
userID: '61409215',
username: 'TheColaber'
},
{
userId: '1882674',
userID: '1882674',
username: 'griffpatch'
},
{
userId: '10817178',
userID: '10817178',
username: 'apple502j'
},
{
userId: '16947341',
userID: '16947341',
username: '--Explosion--'
},
{
userId: '14880401',
userID: '14880401',
username: 'Sheep_maker'
},
{
userId: '9981676',
userID: '9981676',
username: 'NitroCipher'
},
{
userId: '2561680',
userID: '2561680',
username: 'lisa_wolfgang'
},
{
userId: '60000111',
userID: '60000111',
username: 'GDUcrash'
},
{
userId: '4648559',
userID: '4648559',
username: 'World_Languages'
},
{
userId: '17340565',
userID: '17340565',
username: 'GarboMuffin'
},
{
userId: '5354974',
userID: '5354974',
username: 'Chrome_Cat'
},
{
// actual ID is 34455896 but their avatar is the wrong resolution and looks really weird
userId: '0',
userID: '34455896',
username: 'summerscar'
},
{
userId: '55742784',
userID: '55742784',
username: 'RedGuy7'
},
{
userId: '9636514',
userID: '9636514',
username: 'Tacodiva7729'
},
{
userId: '14792872',
userID: '14792872',
username: '_nix'
},
{
userId: '30323614',
userID: '30323614',
username: 'BarelySmooth'
},
{
userId: '64691048',
userID: '64691048',
username: 'CST1229'
},
{
username: 'DNin01'
},
{
userID: '16426047',
username: 'Maximouse'
},
{
username: 'retronbv'
},
{
username: 'GrahamSH'
},
{
userID: '22529928',
username: 'simiagain'
},
{
username: 'Secret-chest'
},
{
userID: '11677378',
username: 'Mr_MPH'
}
].map(fromHardcoded);

const extensionDevelopers = [
// generated by TurboWarp/extensions/scripts/get-credits-for-gui.js
{
username: '-SIPC-'
},
{
username: '0832'
},
{
userID: '17235330',
username: 'aleb2005'
},
{
username: 'BlueDome77'
},
{
username: 'ClaytonTDM'
},
{
userID: '37070511',
username: 'cs2627883'
},
{
userID: '64691048',
username: 'CST1229'
},
{
userID: '41219524',
username: 'CubesterYT'
},
{
userID: '33988895',
username: 'D-ScratchNinja'
},
{
username: 'DT'
},
{
userID: '1882674',
username: 'griffpatch'
},
{
userID: '41876695',
username: 'JeremyGamer13'
},
{
userID: '12498592',
username: 'LilyMakesThings'
},
{
username: 'MikeDEV'
},
{
userID: '62950341',
username: 'NamelessCat'
},
{
username: 'NOname-awa'
},
{
userID: '26959223',
username: 'pinksheep2917'
},
{
username: 'pumpkinhasapatch'
},
{
username: 'qxsck'
},
{
userID: '29118689',
username: 'RedMan13'
},
{
userID: '80038021',
username: 'RixTheTyrunt'
},
{
userID: '14880401',
username: 'Sheep_maker'
},
{
userID: '103496265',
username: 'shreder95ua'
},
{
username: 'Skyhigh173'
},
{
userID: '52066199',
username: 'softed'
},
{
username: 'TheShovel'
},
{
userID: '105362329',
username: 'TrueFantom'
},
{
userID: '19133274',
username: 'Vadik1'
},
{
username: 'veggiecan0419'
},
{
userID: '82486672',
username: 'lolecksdeehaha'
},
{
userID: '3318598',
username: 'plant2014'
},
{
username: 'ZXMushroom63'
}
].map(fromHardcoded);

export default {
addonDevelopers: shuffle(addonDevelopers)
addonDevelopers: shuffle(addonDevelopers),
extensionDevelopers: shuffle(extensionDevelopers)
};

0 comments on commit 8341357

Please sign in to comment.