You've already forked Atomcms-edit
Remove quality/volume URL params from Nitro client (Nitro V3 uses NitroConfig, not URL params)
This commit is contained in:
@@ -33,7 +33,6 @@ class PreferencesController extends Controller
|
||||
'email_notifications' => 'sometimes|boolean',
|
||||
'client_open_mode' => 'sometimes|in:same,new_window',
|
||||
'client_volume' => 'sometimes|integer|min:0|max:100',
|
||||
'client_quality' => 'sometimes|in:low,medium,high',
|
||||
'compact_mode' => 'sometimes|boolean',
|
||||
'hide_online' => 'sometimes|boolean',
|
||||
'default_page' => 'sometimes|in:me,hotel,community,shop',
|
||||
@@ -57,7 +56,6 @@ class PreferencesController extends Controller
|
||||
'email_notifications' => false,
|
||||
'client_open_mode' => 'same',
|
||||
'client_volume' => 50,
|
||||
'client_quality' => 'medium',
|
||||
'compact_mode' => false,
|
||||
'hide_online' => false,
|
||||
'default_page' => 'me',
|
||||
|
||||
@@ -113,18 +113,6 @@
|
||||
</div>
|
||||
</label>
|
||||
|
||||
<label class="flex items-center justify-between p-3 rounded" style="background-color: var(--color-surface);">
|
||||
<div>
|
||||
<span class="font-semibold" style="color: var(--color-text);">{{ __('Client quality') }}</span>
|
||||
<p class="text-sm" style="color: var(--color-text-muted);">{{ __('Graphics quality for the game client') }}</p>
|
||||
</div>
|
||||
<select name="client_quality"
|
||||
class="border-2 rounded-lg px-3 py-1.5 text-sm font-semibold cursor-pointer" style="background-color: var(--color-background); color: var(--color-text); border-color: var(--input-border-color, var(--color-text-muted)); accent-color: var(--color-primary);">
|
||||
<option value="low" {{ old('client_quality', $preferences['client_quality'] ?? 'medium') === 'low' ? 'selected' : '' }}>{{ __('Low') }}</option>
|
||||
<option value="medium" {{ old('client_quality', $preferences['client_quality'] ?? 'medium') === 'medium' ? 'selected' : '' }}>{{ __('Medium') }}</option>
|
||||
<option value="high" {{ old('client_quality', $preferences['client_quality'] ?? 'medium') === 'high' ? 'selected' : '' }}>{{ __('High') }}</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -626,7 +626,6 @@
|
||||
@php
|
||||
$nitroUrl = sprintf('%s/index.html?sso=%s', setting('nitro_path'), $sso);
|
||||
$toolbarParams = [];
|
||||
// Toolbar with fallback to button colors (don't URL encode - # is valid in URLs)
|
||||
$toolbarParams[] = 'toolbar_primary=' . (setting('toolbar_primary_color') ?: setting('button_primary_color', '#eeb425'));
|
||||
$toolbarParams[] = 'toolbar_hover=' . (setting('toolbar_hover_color') ?: setting('button_hover_color', '#cf9d15'));
|
||||
$toolbarParams[] = 'toolbar_border=' . (setting('toolbar_border_color') ?: setting('button_border_color', '#cf9d15'));
|
||||
|
||||
@@ -113,18 +113,6 @@
|
||||
</div>
|
||||
</label>
|
||||
|
||||
<label class="flex items-center justify-between p-3 rounded" style="background-color: var(--color-surface);">
|
||||
<div>
|
||||
<span class="font-semibold" style="color: var(--color-text);">{{ __('Client quality') }}</span>
|
||||
<p class="text-sm" style="color: var(--color-text-muted);">{{ __('Graphics quality for the game client') }}</p>
|
||||
</div>
|
||||
<select name="client_quality"
|
||||
class="border-2 rounded-lg px-3 py-1.5 text-sm font-semibold cursor-pointer" style="background-color: var(--color-background); color: var(--color-text); border-color: var(--input-border-color, var(--color-text-muted));">
|
||||
<option value="low" {{ old('client_quality', $preferences['client_quality'] ?? 'medium') === 'low' ? 'selected' : '' }}>{{ __('Low') }}</option>
|
||||
<option value="medium" {{ old('client_quality', $preferences['client_quality'] ?? 'medium') === 'medium' ? 'selected' : '' }}>{{ __('Medium') }}</option>
|
||||
<option value="high" {{ old('client_quality', $preferences['client_quality'] ?? 'medium') === 'high' ? 'selected' : '' }}>{{ __('High') }}</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user