chore(branding): remove sponsorship popup remnants
This commit is contained in:
parent
8896939f47
commit
68a99a3cf2
4 changed files with 4 additions and 16 deletions
|
|
@ -28,8 +28,7 @@ class Advanced extends Component
|
||||||
|
|
||||||
public ?string $allowed_ips = null;
|
public ?string $allowed_ips = null;
|
||||||
|
|
||||||
#[Validate('boolean')]
|
// MapleDeploy branding: is_sponsorship_popup_enabled removed (popup removed)
|
||||||
public bool $is_sponsorship_popup_enabled;
|
|
||||||
|
|
||||||
#[Validate('boolean')]
|
#[Validate('boolean')]
|
||||||
public bool $disable_two_step_confirmation;
|
public bool $disable_two_step_confirmation;
|
||||||
|
|
@ -46,7 +45,6 @@ public function rules()
|
||||||
'custom_dns_servers' => 'nullable|string',
|
'custom_dns_servers' => 'nullable|string',
|
||||||
'is_api_enabled' => 'boolean',
|
'is_api_enabled' => 'boolean',
|
||||||
'allowed_ips' => ['nullable', 'string', new ValidIpOrCidr],
|
'allowed_ips' => ['nullable', 'string', new ValidIpOrCidr],
|
||||||
'is_sponsorship_popup_enabled' => 'boolean',
|
|
||||||
'disable_two_step_confirmation' => 'boolean',
|
'disable_two_step_confirmation' => 'boolean',
|
||||||
'is_wire_navigate_enabled' => 'boolean',
|
'is_wire_navigate_enabled' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
@ -65,7 +63,6 @@ public function mount()
|
||||||
$this->is_dns_validation_enabled = $this->settings->is_dns_validation_enabled;
|
$this->is_dns_validation_enabled = $this->settings->is_dns_validation_enabled;
|
||||||
$this->is_api_enabled = $this->settings->is_api_enabled;
|
$this->is_api_enabled = $this->settings->is_api_enabled;
|
||||||
$this->disable_two_step_confirmation = $this->settings->disable_two_step_confirmation;
|
$this->disable_two_step_confirmation = $this->settings->disable_two_step_confirmation;
|
||||||
$this->is_sponsorship_popup_enabled = $this->settings->is_sponsorship_popup_enabled;
|
|
||||||
$this->is_wire_navigate_enabled = $this->settings->is_wire_navigate_enabled ?? true;
|
$this->is_wire_navigate_enabled = $this->settings->is_wire_navigate_enabled ?? true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -143,7 +140,6 @@ public function instantSave()
|
||||||
$this->settings->custom_dns_servers = $this->custom_dns_servers;
|
$this->settings->custom_dns_servers = $this->custom_dns_servers;
|
||||||
$this->settings->is_api_enabled = $this->is_api_enabled;
|
$this->settings->is_api_enabled = $this->is_api_enabled;
|
||||||
$this->settings->allowed_ips = $this->allowed_ips;
|
$this->settings->allowed_ips = $this->allowed_ips;
|
||||||
$this->settings->is_sponsorship_popup_enabled = $this->is_sponsorship_popup_enabled;
|
|
||||||
$this->settings->disable_two_step_confirmation = $this->disable_two_step_confirmation;
|
$this->settings->disable_two_step_confirmation = $this->disable_two_step_confirmation;
|
||||||
$this->settings->is_wire_navigate_enabled = $this->is_wire_navigate_enabled;
|
$this->settings->is_wire_navigate_enabled = $this->is_wire_navigate_enabled;
|
||||||
$this->settings->save();
|
$this->settings->save();
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
return [
|
return [
|
||||||
// MapleDeploy branding: registry pointed to Forgejo, auto-update disabled by default
|
// MapleDeploy branding: registry pointed to Forgejo, auto-update disabled by default
|
||||||
'coolify' => [
|
'coolify' => [
|
||||||
'version' => '4.0.0-beta.463.7',
|
'version' => '4.0.0-beta.463.8',
|
||||||
'helper_version' => '1.0.12',
|
'helper_version' => '1.0.12',
|
||||||
'realtime_version' => '1.0.10',
|
'realtime_version' => '1.0.10',
|
||||||
'self_hosted' => env('SELF_HOSTED', true),
|
'self_hosted' => env('SELF_HOSTED', true),
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
<div x-data="{
|
<div x-data="{
|
||||||
popups: {
|
popups: {
|
||||||
sponsorship: true,
|
|
||||||
notification: true,
|
notification: true,
|
||||||
realtime: false,
|
realtime: false,
|
||||||
},
|
},
|
||||||
isDevelopment: {{ isDev() ? 'true' : 'false' }},
|
isDevelopment: {{ isDev() ? 'true' : 'false' }},
|
||||||
init() {
|
init() {
|
||||||
this.popups.sponsorship = this.shouldShowMonthlyPopup('popupSponsorship');
|
|
||||||
this.popups.notification = this.shouldShowMonthlyPopup('popupNotification');
|
this.popups.notification = this.shouldShowMonthlyPopup('popupNotification');
|
||||||
this.popups.realtime = localStorage.getItem('popupRealtime');
|
this.popups.realtime = localStorage.getItem('popupRealtime');
|
||||||
|
|
||||||
|
|
@ -135,10 +133,7 @@ class="underline dark:text-white">/subscription</a> to update your subscription
|
||||||
</span>
|
</span>
|
||||||
@endif
|
@endif
|
||||||
<script>
|
<script>
|
||||||
function disableSponsorship() {
|
// MapleDeploy branding: disableSponsorship() removed (popup removed)
|
||||||
// Store current timestamp instead of just 'false'
|
|
||||||
localStorage.setItem('popupSponsorship', Date.now().toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
function disableNotification() {
|
function disableNotification() {
|
||||||
// Store current timestamp instead of just 'false'
|
// Store current timestamp instead of just 'false'
|
||||||
|
|
|
||||||
|
|
@ -55,11 +55,8 @@ class="flex flex-col h-full gap-8 sm:flex-row">
|
||||||
<x-forms.checkbox instantSave id="is_wire_navigate_enabled" label="SPA Navigation"
|
<x-forms.checkbox instantSave id="is_wire_navigate_enabled" label="SPA Navigation"
|
||||||
helper="Enable single-page application (SPA) style navigation with prefetching on hover. When enabled, page transitions are smoother without full page reloads and pages are prefetched when hovering over links. Disable if you experience navigation issues." />
|
helper="Enable single-page application (SPA) style navigation with prefetching on hover. When enabled, page transitions are smoother without full page reloads and pages are prefetched when hovering over links. Disable if you experience navigation issues." />
|
||||||
</div>
|
</div>
|
||||||
|
{{-- MapleDeploy branding: sponsorship popup checkbox removed (popup itself already removed) --}}
|
||||||
<h4 class="pt-4">Confirmation Settings</h4>
|
<h4 class="pt-4">Confirmation Settings</h4>
|
||||||
<div class="md:w-96">
|
|
||||||
<x-forms.checkbox instantSave id="is_sponsorship_popup_enabled" label="Show Sponsorship Popup"
|
|
||||||
helper="Show monthly sponsorship reminders. Disable to hide these messages permanently." />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-1">
|
<div class="flex flex-col gap-1">
|
||||||
@if ($disable_two_step_confirmation)
|
@if ($disable_two_step_confirmation)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue