2024-03-19 20:19:27 +01:00
|
|
|
@extends('frame')
|
|
|
|
|
|
|
|
@section('title', 'The Dash | '. $title)
|
|
|
|
|
|
|
|
@section('main-content')
|
|
|
|
<article class="settings">
|
2024-05-22 03:15:47 +02:00
|
|
|
<div class="tab-toolbar" role="toolbar">
|
|
|
|
<button id="profile" class="tab-button">PROFILE</button>
|
|
|
|
<button id="features" class="tab-button">FEATURES</button>
|
|
|
|
<button id="themes" class="tab-button">THEMES</button>
|
|
|
|
</div>
|
|
|
|
<section class="settings-tabs">
|
2024-05-28 21:00:25 +02:00
|
|
|
<section id="site-profile" class="section-tab show">
|
2024-05-22 03:15:47 +02:00
|
|
|
<div class="member-avatar">
|
|
|
|
<div class="avatar" style="background: url({{ $member['avatar'] }} ) no-repeat center center / cover"></div>
|
|
|
|
<input id="avatar-upload" type="file" name="avatar-upload"/>
|
|
|
|
</div>
|
|
|
|
<div class="site-background">
|
|
|
|
<div class="background" style="background: url({{ $background }} ) no-repeat center center / cover"></div>
|
|
|
|
<input id="background-upload" type="file" name="backgrond-upload"/>
|
|
|
|
</div>
|
|
|
|
<div>
|
2024-05-26 21:16:04 +02:00
|
|
|
<input type='text' class="input-dark" name='handle' id='settings-handle' placeholder='handle' value="{{ $member['handle'] }}" autofocus/>
|
|
|
|
<input type='text' class="input-dark" name='email' id='settings-email' placeholder='email' value="{{ $member['email'] }}" autofocus/>
|
2024-05-22 03:15:47 +02:00
|
|
|
<input type='hidden' name='member-id' id='member-id' value="{{ $member['id'] }}"/>
|
2024-05-22 23:15:21 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
2024-05-26 21:16:04 +02:00
|
|
|
<input type='text' class="input-dark" name='base-url' id='settings-url' placeholder='url' value="{{ $baseUrl }}" autofocus/>
|
|
|
|
<input type='text' class="input-dark" name='base-title' id='settings-title' placeholder='site title' value="{{ $siteTitle }}" autofocus/>
|
2024-05-22 23:15:21 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
2024-05-26 21:16:04 +02:00
|
|
|
<textarea id="settings-desc" class="input-dark" type='text' name='settings_desc' class='settings-dec' placeholder='description stuff' , autofocus>{{ $desc }}</textarea>
|
2024-05-22 03:15:47 +02:00
|
|
|
</div>
|
2024-05-22 23:15:21 +02:00
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<label>API KEY</label>
|
|
|
|
<span>{{ $member['key'] }}</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label>FORM TOKEN</label><br/>
|
|
|
|
<span>{{ $ftoken }}</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2024-05-22 03:15:47 +02:00
|
|
|
</section>
|
2024-05-26 22:38:46 +02:00
|
|
|
<section id="site-features" class="section-tab hide">
|
2024-05-25 00:22:11 +02:00
|
|
|
<div class="features-mail">
|
|
|
|
<label>SYSTEM EMAIL</label>
|
|
|
|
<div>
|
|
|
|
@if($mailOption == "option-none" or $mailOption == "")
|
|
|
|
<a href="#" class="mail-option" id="option-none" data-enabled="true">NONE</a>
|
|
|
|
@else
|
|
|
|
<a href="#" class="mail-option" id="option-none" data-enabled="false">NONE</a>
|
|
|
|
@endif
|
|
|
|
@if($mailOption == "option-mg" or $mailOption == "")
|
|
|
|
<a href="#" class="mail-option" id="option-mg" data-enabled="true">MAILGUN</a>
|
|
|
|
@else
|
|
|
|
<a href="#" class="mail-option" id="option-mg" data-enabled="false">MAILGUN</a>
|
|
|
|
@endif
|
|
|
|
@if($mailOption == "option-smtp" or $mailOption == "")
|
|
|
|
<a href="#" class="mail-option" id="option-smtp" data-enabled="true">SMTP</a>
|
|
|
|
@else
|
|
|
|
<a href="#" class="mail-option" id="option-smtp" data-enabled="false">SMTP</a>
|
|
|
|
@endif
|
|
|
|
</div>
|
2024-05-22 23:15:21 +02:00
|
|
|
|
|
|
|
@include('forms.mailforms')
|
|
|
|
<button id="send-mail">
|
|
|
|
<svg id="nav-menu-icon" class="icon">
|
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-mail-with-circle"/>
|
|
|
|
</svg>
|
|
|
|
<span>TEST MAIL</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2024-05-25 00:22:11 +02:00
|
|
|
<div class="site-options">
|
|
|
|
<div class="option-container">
|
|
|
|
<svg id="nav-menu-icon" class="icon">
|
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-landline"/>
|
|
|
|
</svg>
|
|
|
|
@if(isset($apiStatus) && $apiStatus == 'true')
|
|
|
|
<button id="api-access-toggle" title="allow external api" data-enabled="true">
|
|
|
|
<span id="api-status">API ACCESS ENABLED</span>
|
|
|
|
</button>
|
|
|
|
@else
|
|
|
|
<button id="api-access-toggle" title="allow external api" data-enabled="false">
|
|
|
|
|
|
|
|
<span id="api-status">API ACCESS NOT ENABLED</span>
|
|
|
|
</button>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="option-container">
|
|
|
|
<svg id="nav-menu-icon" class="icon">
|
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-cycle"/>
|
|
|
|
</svg>
|
|
|
|
@if(isset($dynamicRenderStatus) && $dynamicRenderStatus == 'true')
|
|
|
|
<button id="dynamic-render-toggle" title="allow external api" data-enabled="true">
|
|
|
|
<span id="dynamic-render-status">DYNAMIC PAGE RENDERING</span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
@else
|
|
|
|
<button id="dynamic-render-toggle" title="allow external api" data-enabled="false">
|
|
|
|
<span id="dynamic-render-status">STATIC PAGE RENDERING</span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="site-maintenance">
|
|
|
|
<div class="option-container">
|
|
|
|
<svg id="nav-menu-icon" class="icon">
|
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-copy"/>
|
|
|
|
</svg>
|
|
|
|
<button id="create-backup">
|
|
|
|
<span>CONTENT BACKUP</span>
|
|
|
|
</button>
|
|
|
|
<span>
|
|
|
|
@if($lastBackup != '')
|
|
|
|
LAST BACK UP
|
|
|
|
<a href="/api/v1/backup/download">{{ $lastBackup }}</a><br/>
|
|
|
|
@else
|
|
|
|
<span>span No back ups. Frowny face.</span>
|
|
|
|
@endif
|
|
|
|
<span>
|
|
|
|
</div>
|
2024-05-28 21:16:50 +02:00
|
|
|
<!-- TODO: File Back up option
|
2024-05-25 00:22:11 +02:00
|
|
|
<div class="option-container">
|
|
|
|
<svg id="nav-menu-icon" class="icon">
|
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-images"/>
|
|
|
|
</svg>
|
|
|
|
<button id="create-file-backup">
|
|
|
|
<span>FILE BACKUP</span>
|
|
|
|
</button>
|
|
|
|
<span>COMING SOON</span>
|
|
|
|
</div>
|
2024-05-28 21:16:50 +02:00
|
|
|
-->
|
|
|
|
<!-- TODO: Reset site to defualt
|
2024-05-25 00:22:11 +02:00
|
|
|
<div class="option-container">
|
|
|
|
<svg id="nav-menu-icon" class="icon">
|
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-back-in-time"/>
|
|
|
|
</svg>
|
|
|
|
<button id="reset-to-default">
|
|
|
|
<span>RESET TO DEFAULT</span>
|
|
|
|
</button>
|
|
|
|
<span>COMING SOON</span>
|
|
|
|
</div>
|
2024-05-28 21:16:50 +02:00
|
|
|
-->s
|
2024-05-25 00:22:11 +02:00
|
|
|
</div>
|
2024-05-22 23:15:21 +02:00
|
|
|
</section>
|
2024-05-28 21:00:25 +02:00
|
|
|
<section id="site-themes" class="section-tab hide">
|
2024-05-26 22:38:46 +02:00
|
|
|
@foreach($themes as $theme)
|
|
|
|
@if($theme['name'] == $currentTheme)
|
|
|
|
<!--
|
|
|
|
<a target="_blank" href='/theme'>Edit</a>
|
|
|
|
-->
|
|
|
|
<button id="{{ $theme['name'] }}" class="theme-select" data-enabled="true">
|
|
|
|
<div for="{{ $theme['name'] }}">
|
|
|
|
<label id="label-{{ $theme['name'] }}">ACTIVE THEME</label>
|
|
|
|
</div>
|
|
|
|
<svg id="nav-menu-icon" class="icon">
|
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-palette"/>
|
|
|
|
</svg>
|
|
|
|
<span for="{{ $theme['name'] }}">{{ $theme['display-name'] }}</span>
|
|
|
|
</button>
|
|
|
|
@else
|
|
|
|
<button id="{{ $theme['name'] }}" class="theme-select" data-enabled="false">
|
|
|
|
<div for="{{ $theme['name'] }}">
|
|
|
|
<label id="label-{{ $theme['name'] }}">INACTIVE THEME</label>
|
|
|
|
</div>
|
|
|
|
<svg id="nav-menu-icon" class="icon">
|
|
|
|
<use id="nav-menu-icon" xlink:href="/assets/images/global/sprite.svg#entypo-palette"/>
|
|
|
|
</svg>
|
|
|
|
<span for="{{ $theme['name'] }}">{{ $theme['display-name'] }}</span>
|
|
|
|
</button>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
2024-05-22 23:15:21 +02:00
|
|
|
</section>
|
2024-03-19 20:19:27 +01:00
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
@endsection
|
2024-03-19 22:34:01 +01:00
|
|
|
@section('scripting')
|
|
|
|
<script type="module" src="/assets/scripts/dash/app/EditSettings.js"></script>
|
|
|
|
@endsection
|