Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Enums/CurrencyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
enum CurrencyType: int
{
case Credits = -1;
case Duckets = 0;
case Duckets = 0; // Duckets & Pixels are the same
case Diamonds = 5;
case Points = 101;

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/RankingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __invoke(Request $request): View
return [
'diamonds' => UserCurrency::getRankingFor(CurrencyType::Diamonds, $staffIds)->get(),
'respects' => UserSetting::getRanking('respects_received', $staffIds)->get(),
'pixels' => UserCurrency::getRankingFor(CurrencyType::Duckets, $staffIds)->get(),
'duckets' => UserCurrency::getRankingFor(CurrencyType::Duckets, $staffIds)->get(),
'coins' => User::getCreditsRanking()->get(),
'points' => UserCurrency::getRankingFor(CurrencyType::Points, $staffIds)->get(),
'online-time' => UserSetting::getRanking('online_time', $staffIds)->get()
Expand Down
10 changes: 9 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-intl": "*",
"ext-gd": "*",
"ext-zip": "*",
"ext-sodium": "*",
"ext-sodium": "*",
"ext-mysqli": "*",
"ext-pdo": "*",
"ext-pdo_mysql": "*",
"bezhansalleh/filament-language-switch": "^3.0",
"coderflex/filament-turnstile": "^2.0",
"cyrildewit/eloquent-viewable": "^7.0",
Expand Down
4 changes: 2 additions & 2 deletions database/seeders/CmsSettingsSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getDefaultSettings(): array
],
[
'figure_imager',
'https://www.habbo.com.br/habbo-imaging/avatarimage?figure=',
'https://www.habbo.com/habbo-imaging/avatarimage?figure=',
'The imager base URL to render the user look on the CMS (by figure)'
],
[
Expand Down Expand Up @@ -238,7 +238,7 @@ public function getDefaultSettings(): array
],
[
'using_nitro_imager',
'1',
'0',
'Determines if the hotel is using the Nitro imager'
],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ document.addEventListener('alpine:init', () => {

return {
id: item.id,
x: item.x,
y: item.y,
z: item.z,
x: parseInt(item.x),
y: parseInt(item.y),
z: parseInt(item.z),
is_reversed: item.is_reversed,
theme: item.theme,
placed: !this.removedItemIds.includes(item.id),
Expand Down
5 changes: 5 additions & 0 deletions resources/scss/partials/icons/big.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ i.icon {
background-image: url('https://i.imgur.com/ckw1yDf.png');
}


&.pixels {
background-image: url('https://i.imgur.com/uGY9pbm.png');
}

&.duckets {
background-image: url('https://i.imgur.com/TjKAB3L.png');
}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/ui/story-modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class="w-16 h-16 bg-center bg-no-repeat bg-cover relative rounded-full bg-slate-
@class([
"w-full h-full bg-no-repeat",
"bg-center" => !$usingNitroImager,
"bg-[-15px_-20px]" => $usingNitroImager
"bg-[-2px_-10px]" => $usingNitroImager
])
x-bind:style="{ backgroundImage: `url({{ getSetting('figure_imager') }}${getActiveFriendLook()}&headonly=1&head_direction=2&size=m)` }"
></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class="w-8 h-8 rounded-md border-none shadow-[inset_0_-3px_0_0_rgba(0,0,0,0.5)]
data-tippy-singleton
data-tippy-content="<small>{{ $reaction->user->username }}</small>"
@class([
"w-12 h-12 group shadow-lg relative rounded-lg bg-center bg-no-repeat border-b-2 cursor-pointer even:bg-blue-300 dark:even:bg-blue-600 bg-blue-400 dark:bg-blue-400 dark:text-white border-blue-500",
"w-12 h-12 group shadow-lg relative rounded-lg bg-no-repeat border-b-2 cursor-pointer even:bg-blue-300 dark:even:bg-blue-600 bg-blue-400 dark:bg-blue-400 dark:text-white border-blue-500",
"bg-center" => !$usingNitroImager,
"bg-[-20px_-27px]" => $usingNitroImager
"bg-[-8px_-18px]" => $usingNitroImager
])
style="background-image: url('{{ getFigureUrl($reaction->user->look, 'head_direction=2&size=m&gesture=sml&headonly=1') }}')"
>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/community/photos/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class="bg-center border border-slate-300 dark:border-slate-700 hover:scale-[1.05
@class([
"w-[50px] min-w-[50px] h-[50px] bg-no-repeat rounded-full bg-white border border-gray-200 dark:bg-gray-950 dark:border-black",
"bg-center" => !$usingNitroImager,
"bg-[-20px_-27px]" => $usingNitroImager
"bg-[-8px_-14px]" => $usingNitroImager
])
@if($photo->user)
style="background-image: url('{{ getFigureUrl($photo->user->look, 'direction=2&head_direction=2&size=m&gesture=sml&headonly=1') }}')"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@class([
"w-[54px] h-14 bg-no-repeat",
"bg-center" => !$usingNitroImager,
"bg-[-18px_-25px]" => $usingNitroImager
"bg-[center_-10px]" => $usingNitroImager
])
style="background-image: url('{{ $getUser($ranking)->figure_path }}&direction=3&head_direction=2&size=m&headonly=1')"
></div>
Expand Down
2 changes: 2 additions & 0 deletions resources/views/pages/community/rankings/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
'diamonds' => __('Top Diamonds'),
'respects' => __('Top Respects'),
'coins' => __('Top Credits'),
'duckets' => __('Top Duckets'),
'pixels' => __('Top Pixels'),
'points' => __('Top Points'),
'online-time' => __('Top Online Time')
Expand All @@ -13,6 +14,7 @@
'diamonds' => __('The richest users in diamonds'),
'respects' => __('The richest users in respects'),
'coins' => __('The richest users in coins'),
'duckets' => __('The richest users in duckets'),
'pixels' => __('The richest users in pixels'),
'points' => __('The richest users in points'),
'online-time' => __('Users who play the most')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class="w-14 hover:bg-gray-100 dark:hover:bg-slate-700 h-14 relative shrink-0 rou
<div @class([
"w-full h-full rounded-full bg-no-repeat",
"bg-center" => !$usingNitroImager,
"bg-[-20px_-27px]" => $usingNitroImager
"bg-[-8px_-14px]" => $usingNitroImager
]) style="background-image: url('{{ getFigureUrl($onlineFriend->look, 'head_direction=3&gesture=sml&headonly=1') }}')"></div>
<div class="absolute max-w-[100%] truncate text-xs -bottom-5 left-1/2 -translate-x-1/2 dark:text-slate-200">{{ $onlineFriend->username }}</div>
</div>
Expand Down