diff --git a/src/playground/credits/credits.jsx b/src/playground/credits/credits.jsx index 8ab68442b7e..8c429cecff7 100644 --- a/src/playground/credits/credits.jsx +++ b/src/playground/credits/credits.jsx @@ -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}) => ( @@ -19,6 +22,7 @@ const User = ({image, text, href}) => ( className={styles.user} > (
diff --git a/src/playground/credits/users.js b/src/playground/credits/users.js index 91e7198503d..723b973f898 100644 --- a/src/playground/credits/users.js +++ b/src/playground/credits/users.js @@ -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) };