Skip to content

Commit a6621f8

Browse files
committed
merging package locks is annoying
2 parents ebe934f + 7d4efc0 commit a6621f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+5353
-10795
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
deploy:
3737
environment:
3838
name: github-pages
39-
url: 'https://penguinmod.com/project'
39+
url: 'https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app/project'
4040
runs-on: ubuntu-latest
4141
needs: build
4242
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
scratch-gui modified for use in [TurboWarp](https://turbowarp.org/) then modified for use in [PenguinMod](https://studio.penguinmod.com) 😀
1+
scratch-gui modified for use in [TurboWarp](https://turbowarp.org/) then modified for use in [PenguinMod](https://jwklong.github.io/penguinmod.github.io) 😀
22
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/PenguinMod/penguinmod.github.io/)
33
## Setup
44

package-lock.json

Lines changed: 3759 additions & 9549 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
"eslint-plugin-jest": "22.17.0",
123123
"eslint-plugin-react": "7.24.0",
124124
"gh-pages": "3.2.3",
125-
"gh-pages-webpack-plugin": "github:FreshPenguin112/gh-pages-webpack-plugin",
126125
"html-webpack-plugin": "^4.5.2",
127126
"jest": "21.2.1",
128127
"jest-junit": "7.0.0",

src/addons/addons/block-switching/_manifest_entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const manifest = {
1313
},
1414
{
1515
"name": "JeremyGamer13",
16-
"link": "https://penguinmod.com/profile?user=JGamerTesting"
16+
"link": "https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app/profile?user=JGamerTesting"
1717
}
1818
],
1919
"dynamicDisable": true,

src/addons/addons/mediarecorder/userscript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export default async ({ addon, console, msg }) => {
1010
let recordBuffer = [];
1111
let recorder;
1212
let timeout;
13-
// const isMp4CodecSupported = false;
14-
const isMp4CodecSupported = MediaRecorder.isTypeSupported('video/webm;codecs=h264');
13+
const isMp4CodecSupported = false;
14+
// const isMp4CodecSupported = MediaRecorder.isTypeSupported('video/webm;codecs=h264');
1515
while (true) {
1616
const elem = await addon.tab.waitForElement('div[class*="menu-bar_file-group"] > div:last-child:not(.sa-record)', {
1717
markAsSeen: true,
Lines changed: 1 addition & 12 deletions
Loading
Lines changed: 1 addition & 12 deletions
Loading

src/components/library-item/library-item.css

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,29 @@
2626
background: $ui-primary;
2727
}
2828

29+
.library-item-sound {
30+
width: 200px;
31+
max-width: 200px;
32+
flex-basis: 200px;
33+
height: 100px;
34+
padding: 0.25rem;
35+
padding-bottom: 0;
36+
}
37+
.library-item-new {
38+
filter: hue-rotate(60deg);
39+
}
40+
.library-item-new-badge {
41+
border-radius: 1024px;
42+
color: white;
43+
font-size: 10px;
44+
font-weight: bold;
45+
background-color: $sound-primary;
46+
padding: 1px 5px;
47+
position: absolute;
48+
left: -8px;
49+
top: -8px;
50+
}
51+
2952
.library-item-extension {
3053
align-self: stretch;
3154
}
@@ -34,6 +57,9 @@
3457
border-width: 2px;
3558
border-color: $motion-primary;
3659
}
60+
.library-item-sound:hover {
61+
border-color: $sound-primary;
62+
}
3763

3864
.library-item-favorite {
3965
background: transparent;
@@ -223,6 +249,25 @@
223249
max-width: 100%;
224250
max-height: 100%;
225251
}
252+
.library-item-image-overlay {
253+
position: absolute;
254+
left: 0;
255+
top: 0;
256+
width: 100%;
257+
}
258+
259+
.library-item-waveform {
260+
position: absolute;
261+
left: 0;
262+
width: calc(100% - 3rem);
263+
height: 3rem;
264+
max-width: 100%;
265+
max-height: 100%;
266+
}
267+
[dir="rtl"] .library-item-waveform {
268+
left: initial;
269+
right: 0;
270+
}
226271

227272
.library-item-inset-image {
228273
width: 2.5rem;
@@ -242,6 +287,29 @@
242287
white-space: pre-wrap;
243288
min-width: 0;
244289
}
290+
.library-item-sound-name {
291+
text-align: left;
292+
width: 100%;
293+
margin-bottom: 0;
294+
}
295+
.library-item-sound-type {
296+
text-align: left;
297+
width: 100%;
298+
margin-top: 0;
299+
opacity: 0.65;
300+
}
301+
302+
[dir="rtl"] .library-item-sound-name,
303+
[dir="rtl"] .library-item-sound-type {
304+
text-align: right;
305+
}
306+
307+
.library-item-sound-info-container {
308+
width: 100%;
309+
position: relative;
310+
display: flex;
311+
flex-direction: column;
312+
}
245313

246314
.featured-item {
247315
flex-basis: 300px;

src/components/library-item/library-item.jsx

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ const getURLOrigin = (url) => {
2525
}
2626
return urlObj.origin;
2727
};
28+
const getMSFormatted = (ms) => {
29+
return (ms / 1000).toFixed(2);
30+
};
2831

2932
/* eslint-disable react/prefer-stateless-function */
3033
class LibraryItemComponent extends React.PureComponent {
@@ -308,7 +311,9 @@ class LibraryItemComponent extends React.PureComponent {
308311
<Box
309312
className={classNames(
310313
styles.libraryItem, {
311-
[styles.hidden]: this.props.hidden
314+
[styles.hidden]: this.props.hidden,
315+
[styles.libraryItemSound]: this.props.styleForSound,
316+
[styles.libraryItemNew]: this.props.isNew,
312317
}
313318
)}
314319
role="button"
@@ -320,6 +325,11 @@ class LibraryItemComponent extends React.PureComponent {
320325
onMouseEnter={this.props.showPlayButton ? null : this.props.onMouseEnter}
321326
onMouseLeave={this.props.showPlayButton ? null : this.props.onMouseLeave}
322327
>
328+
{this.props.isNew && (
329+
<div className={styles.libraryItemNewBadge}>
330+
NEW
331+
</div>
332+
)}
323333
{/* Layers of wrapping is to prevent layout thrashing on animation */}
324334
<Box className={styles.libraryItemImageContainerWrapper}>
325335
<Box
@@ -328,16 +338,45 @@ class LibraryItemComponent extends React.PureComponent {
328338
onMouseLeave={this.props.showPlayButton ? this.props.onMouseLeave : null}
329339
>
330340
<img
331-
className={styles.libraryItemImage}
341+
className={classNames(
342+
styles.libraryItemImage, {
343+
[styles.libraryItemWaveform]: this.props.styleForSound
344+
}
345+
)}
332346
loading="lazy"
333347
src={this.props.iconURL}
334348
draggable={false}
335349
/>
350+
{this.props.overlayURL && (
351+
<img
352+
className={classNames(
353+
styles.libraryItemImage, styles.libraryItemImageOverlay, {
354+
[styles.libraryItemWaveform]: this.props.styleForSound
355+
}
356+
)}
357+
loading="lazy"
358+
src={this.props.overlayURL}
359+
draggable={false}
360+
/>
361+
)}
336362
</Box>
337363
</Box>
338-
<span className={styles.libraryItemName}>{this.props.name}</span>
364+
{this.props.styleForSound ? (
365+
<div className={styles.libraryItemSoundInfoContainer}>
366+
<span className={classNames(styles.libraryItemName, styles.libraryItemSoundName)}>{this.props.name}</span>
367+
<span className={classNames(styles.libraryItemName, styles.libraryItemSoundType)}>
368+
{this.props.soundType}, {getMSFormatted(this.props.soundLength)}
369+
</span>
370+
</div>
371+
) : (
372+
<span className={styles.libraryItemName}>{this.props.name}</span>
373+
)}
339374
{this.props.showPlayButton ? (
340375
<PlayButton
376+
className={classNames({
377+
[styles.libraryItemSoundPlayButton]: this.props.styleForSound,
378+
[styles.libraryItemNewPlayButton]: this.props.isNew,
379+
})}
341380
isPlaying={this.props.isPlaying}
342381
onPlay={this.props.onPlay}
343382
onStop={this.props.onStop}
@@ -365,9 +404,14 @@ LibraryItemComponent.propTypes = {
365404
disabled: PropTypes.bool,
366405
extensionId: PropTypes.string,
367406
featured: PropTypes.bool,
407+
isNew: PropTypes.bool,
368408
hidden: PropTypes.bool,
369409
iconURL: PropTypes.string,
410+
overlayURL: PropTypes.string,
370411
insetIconURL: PropTypes.string,
412+
styleForSound: PropTypes.bool,
413+
soundType: PropTypes.string,
414+
soundLength: PropTypes.number,
371415
customInsetColor: PropTypes.string,
372416
internetConnectionRequired: PropTypes.bool,
373417
isPlaying: PropTypes.bool,

0 commit comments

Comments
 (0)