chore(branding): remove sponsorship popup remnants
This commit is contained in:
parent
17e2f7f2ab
commit
115fbda24c
3 changed files with 3 additions and 15 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', new ValidDnsServers],
|
'custom_dns_servers' => ['nullable', 'string', new ValidDnsServers],
|
||||||
'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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -147,7 +144,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();
|
||||||
|
|
|
||||||
|
|
@ -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');
|
||||||
|
|
||||||
|
|
@ -162,10 +160,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'
|
||||||
|
|
|
||||||
|
|
@ -75,11 +75,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