Skip to content

Commit 2e08fb8

Browse files
committed
Merge branch 'main' of https://github.com/OpenNBS/NoteBlockWorld into develop
2 parents 4d130ce + 092a3ff commit 2e08fb8

File tree

11 files changed

+38
-43
lines changed

11 files changed

+38
-43
lines changed

server/src/file/file.service.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ export class FileService {
131131
const command = new GetObjectCommand({
132132
Bucket: bucket,
133133
Key: key,
134-
ResponseContentDisposition: `attachment; filename="${filename}"`,
134+
ResponseContentDisposition: `attachment; filename="${filename.replace(
135+
/[/"]/g,
136+
'_',
137+
)}"`,
135138
});
136139

137140
const signedUrl = await getSignedUrl(this.s3Client, command, {

server/src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function bootstrap() {
3636
app.enableCors({
3737
allowedHeaders: ['content-type', 'authorization', 'src'],
3838
exposedHeaders: ['Content-Disposition'],
39-
origin: process.env.FRONTEND_URL,
39+
origin: [process.env.FRONTEND_URL || '', 'https://bentroen.github.io'],
4040
credentials: true,
4141
});
4242

server/src/user/entity/user.entity.ts

-18
Original file line numberDiff line numberDiff line change
@@ -83,24 +83,6 @@ export class User {
8383

8484
@Prop({ type: Boolean, required: true, default: true })
8585
prefersDarkTheme: boolean;
86-
87-
@Prop({ type: Array, required: true, default: [] })
88-
likedSongs: string[];
89-
90-
@Prop({ type: Array, required: true, default: [] })
91-
following: string[];
92-
93-
@Prop({ type: Array, required: true, default: [] })
94-
likedComments: string[];
95-
96-
@Prop({ type: Array, required: true, default: [] })
97-
dislikedComments: string[];
98-
99-
@Prop({ type: Array, required: true, default: [] })
100-
notifications: string[];
101-
102-
@Prop({ type: Array, required: true, default: [] })
103-
achievements: string[];
10486
}
10587

10688
export const UserSchema = SchemaFactory.createForClass(User);

shared/features/song/obfuscate.ts

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export class SongObfuscator {
122122

123123
let key, pitch;
124124

125+
// TODO: add regression test for this behavior
125126
if (factoredPitch < 0) {
126127
// Below A0
127128
key = 0;
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: 'Note Block World is at BlanketCon 2025!'
3+
date: '2025-04-25'
4+
author: 'encode42'
5+
authorImage: 'encode42.png'
6+
image: '/img/blog/blanketcon-2025.jpg'
7+
tags: ['news']
8+
---
9+
10+
Hello all! **Note Block Studio** and **Note Block World** will be attending [BlanketCon](https://modfest.net/bc25), an in-game Minecraft modding convention hosted by [ModFest](https://modfest.net/)! Featuring **200+ projects** from the Minecraft modding ecosystem, as well as various mini-games and much to explore, there's much to offer during the event.
11+
12+
The opening ceremony starts at **April 26th, 2025** at **midnight (UTC)**. You'll be able to explore the server until its closing ceremony at **April 27th, 2025**, at **11 PM (UTC)**. We hope to see you there!
13+
14+
You can learn more about the event on ModFest's [website](https://modfest.net/), or through their Discord server and event, which you can find [here](https://discord.com/channels/608692895179997252/609153152360513555/1365213248227377202).
15+
16+
We hope you enjoy the event, and we can't wait to see you there! Have fun!!
909 KB
Loading

web/src/app/(content)/(info)/blog/[id]/page.tsx

+10-1
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,18 @@ const BlogPost = ({ params }: BlogPageProps) => {
4444

4545
return (
4646
<>
47+
{post.image && (
48+
<Image
49+
src={post.image}
50+
alt=''
51+
className='w-full h-[30vh] md:h-[50vh] object-cover mb-8 mt-[-2.5rem] rounded-xl'
52+
width={1920}
53+
height={1080}
54+
/>
55+
)}
4756
<article className='max-w-screen-md mx-auto mb-36'>
4857
<Link
49-
href='/help'
58+
href='/blog'
5059
className='text-zinc-500 hover:text-zinc-400 text-sm'
5160
>
5261
{'< Back to Blog'}

web/src/app/(content)/(info)/blog/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const BlogPageComponent = ({ posts }: { posts: PostType[] }) => {
4646
width={480}
4747
height={360}
4848
alt=''
49-
className='rounded-md aspect-[3/2] w-full object-cover transition-all duration-300 mb-2'
49+
className='rounded-md aspect-[16/9] w-full object-cover transition-all duration-300 mb-2'
5050
/>
5151

5252
<h3 className='text-lg font-bold text-opacity-50 mb-2 leading-6 flex-grow'>

web/src/modules/auth/types/User.ts

-9
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ export type LoggedUserData = {
1818
creationDate: string;
1919
lastEdited: string;
2020
lastLogin: string;
21-
likedSongs: string[]; // Assuming the array contains strings
22-
following: string[]; // Assuming the array contains strings
23-
likedComments: string[]; // Assuming the array contains strings
24-
dislikedComments: string[]; // Assuming the array contains strings
25-
notifications: string[]; // Assuming the array contains strings
26-
achievements: string[]; // Assuming the array contains strings
2721
createdAt: string;
2822
updatedAt: string;
2923
id: string;
@@ -60,7 +54,4 @@ export type UserProfileData = {
6054
description: string;
6155
profileImage: string;
6256
socialLinks: SocialLinks;
63-
likedSongs: string[];
64-
following: string[];
65-
achievements: string[];
6657
};

web/src/modules/shared/components/client/ads/AdSlots.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ const AdTemplate = ({
5656

5757
useEffect(() => {
5858
if (window) {
59-
(window.adsbygoogle = window.adsbygoogle || []).push({});
59+
try {
60+
(window.adsbygoogle = window.adsbygoogle || []).push({});
61+
} catch (e) {
62+
console.error(e);
63+
}
6064
}
6165
}, []);
6266

web/src/modules/user/components/UserProfile.tsx

-11
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ const UserProfile = ({ userData }: UserProfileProps) => {
1515
description,
1616
profileImage,
1717
socialLinks,
18-
following,
19-
achievements,
2018
} = userData;
2119

2220
return (
@@ -33,7 +31,6 @@ const UserProfile = ({ userData }: UserProfileProps) => {
3331
<p className='text-gray-500'>Last Login: {lastLogin.toLocaleString()}</p>
3432
<p className='text-gray-500'>Login Streak: {loginStreak}</p>
3533
<p className='text-gray-500'>Play Count: {playCount}</p>
36-
<p className='text-gray-500'>Following: {following}</p>
3734
<ul className='mt-4'>
3835
{Object.keys(socialLinks).map((key, index) => {
3936
const link = socialLinks[key as SocialLinksTypes];
@@ -48,14 +45,6 @@ const UserProfile = ({ userData }: UserProfileProps) => {
4845
);
4946
})}
5047
</ul>
51-
<ul></ul>
52-
<ul className='mt-4'>
53-
{achievements.map((achievement, index) => (
54-
<li key={index} className='text-gray-500'>
55-
{achievement}
56-
</li>
57-
))}
58-
</ul>
5948
</section>
6049
);
6150
};

0 commit comments

Comments
 (0)