forked from mirror/pixelfed
Merge pull request #1159 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
4b1480e0ca
|
@ -66,6 +66,7 @@ HORIZON_DARKMODE=true
|
||||||
ACTIVITY_PUB=false
|
ACTIVITY_PUB=false
|
||||||
REMOTE_FOLLOW=false
|
REMOTE_FOLLOW=false
|
||||||
|
|
||||||
|
PF_COSTAR_ENABLED=false
|
||||||
CS_BLOCKED_DOMAINS='example.org,example.net,example.com'
|
CS_BLOCKED_DOMAINS='example.org,example.net,example.com'
|
||||||
CS_CW_DOMAINS='example.org,example.net,example.com'
|
CS_CW_DOMAINS='example.org,example.net,example.com'
|
||||||
CS_UNLISTED_DOMAINS='example.org,example.net,example.com'
|
CS_UNLISTED_DOMAINS='example.org,example.net,example.com'
|
||||||
|
|
|
@ -57,6 +57,7 @@ MIX_API_SEARCH="${API_SEARCH}"
|
||||||
TELESCOPE_ENABLED=false
|
TELESCOPE_ENABLED=false
|
||||||
PF_MAX_USERS=1000
|
PF_MAX_USERS=1000
|
||||||
|
|
||||||
|
PF_COSTAR_ENABLED=true
|
||||||
CS_BLOCKED_DOMAINS='example.org,example.net,example.com'
|
CS_BLOCKED_DOMAINS='example.org,example.net,example.com'
|
||||||
CS_CW_DOMAINS='example.org,example.net,example.com'
|
CS_CW_DOMAINS='example.org,example.net,example.com'
|
||||||
CS_UNLISTED_DOMAINS='example.org,example.net,example.com'
|
CS_UNLISTED_DOMAINS='example.org,example.net,example.com'
|
||||||
|
|
|
@ -74,7 +74,7 @@ class SettingsController extends Controller
|
||||||
|
|
||||||
public function exportFollowing()
|
public function exportFollowing()
|
||||||
{
|
{
|
||||||
$data = Cache::remember('account:export:profile:following:'.Auth::user()->profile->id, now()->addMinutes(1440), function() {
|
$data = Cache::remember('account:export:profile:following:'.Auth::user()->profile->id, now()->addMinutes(60), function() {
|
||||||
return Auth::user()->profile->following()->get()->map(function($i) {
|
return Auth::user()->profile->following()->get()->map(function($i) {
|
||||||
return $i->url();
|
return $i->url();
|
||||||
});
|
});
|
||||||
|
@ -86,7 +86,7 @@ class SettingsController extends Controller
|
||||||
|
|
||||||
public function exportFollowers()
|
public function exportFollowers()
|
||||||
{
|
{
|
||||||
$data = Cache::remember('account:export:profile:followers:'.Auth::user()->profile->id, now()->addMinutes(1440), function() {
|
$data = Cache::remember('account:export:profile:followers:'.Auth::user()->profile->id, now()->addMinutes(60), function() {
|
||||||
return Auth::user()->profile->followers()->get()->map(function($i) {
|
return Auth::user()->profile->followers()->get()->map(function($i) {
|
||||||
return $i->url();
|
return $i->url();
|
||||||
});
|
});
|
||||||
|
@ -105,7 +105,7 @@ class SettingsController extends Controller
|
||||||
if(!$exists) {
|
if(!$exists) {
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
$data = Cache::remember('account:export:profile:muteblocklist:'.Auth::user()->profile->id, now()->addMinutes(1440), function() use($profile) {
|
$data = Cache::remember('account:export:profile:muteblocklist:'.Auth::user()->profile->id, now()->addMinutes(60), function() use($profile) {
|
||||||
return json_encode([
|
return json_encode([
|
||||||
'muted' => $profile->mutedProfileUrls(),
|
'muted' => $profile->mutedProfileUrls(),
|
||||||
'blocked' => $profile->blockedProfileUrls()
|
'blocked' => $profile->blockedProfileUrls()
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"ext-bcmath": "*",
|
"ext-bcmath": "*",
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
|
"ext-intl": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-mbstring": "*",
|
"ext-mbstring": "*",
|
||||||
"ext-openssl": "*",
|
"ext-openssl": "*",
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'enabled' => env('PF_COSTAR_ENABLED', true),
|
'enabled' => env('PF_COSTAR_ENABLED', false),
|
||||||
|
|
||||||
'domain' => [
|
'domain' => [
|
||||||
'block' => env('CS_BLOCKED_DOMAINS', null) ? explode(',', env('CS_BLOCKED_DOMAINS')) : null,
|
'block' => env('CS_BLOCKED_DOMAINS', null) ? explode(',', env('CS_BLOCKED_DOMAINS')) : null,
|
||||||
|
|
|
@ -6,37 +6,17 @@
|
||||||
<li class="nav-item pl-3 {{request()->is('settings/password')?'active':''}}">
|
<li class="nav-item pl-3 {{request()->is('settings/password')?'active':''}}">
|
||||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings.password')}}">Password</a>
|
<a class="nav-link font-weight-light text-muted" href="{{route('settings.password')}}">Password</a>
|
||||||
</li>
|
</li>
|
||||||
{{-- <li class="nav-item pl-3 {{request()->is('settings/email')?'active':''}}">
|
|
||||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings.email')}}">Email</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item pl-3 {{request()->is('settings/notifications')?'active':''}}">
|
|
||||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings.notifications')}}">Notifications</a>
|
|
||||||
</li> --}}
|
|
||||||
|
|
||||||
<li class="nav-item pl-3 {{request()->is('settings/privacy*')?'active':''}}">
|
<li class="nav-item pl-3 {{request()->is('settings/privacy*')?'active':''}}">
|
||||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings.privacy')}}">Privacy</a>
|
<a class="nav-link font-weight-light text-muted" href="{{route('settings.privacy')}}">Privacy</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item pl-3 {{request()->is('settings/security*')?'active':''}}">
|
<li class="nav-item pl-3 {{request()->is('settings/security*')?'active':''}}">
|
||||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings.security')}}">Security</a>
|
<a class="nav-link font-weight-light text-muted" href="{{route('settings.security')}}">Security</a>
|
||||||
</li>
|
</li>
|
||||||
{{-- <li class="nav-item">
|
|
||||||
<hr>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item pl-3 {{request()->is('*import*')?'active':''}}">
|
|
||||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings.import')}}">Import</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item pl-3 {{request()->is('settings/data-export')?'active':''}}">
|
|
||||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings.dataexport')}}">Export</a>
|
|
||||||
</li>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<hr>
|
<hr>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item pl-3 {{request()->is('settings/applications')?'active':''}}">
|
<li class="nav-item pl-3 {{request()->is('settings/data-export')?'active':''}}">
|
||||||
<a class="nav-link font-weight-light text-muted" href="#">Applications</a>
|
<a class="nav-link font-weight-light text-muted" href="{{route('settings.dataexport')}}">Data Export</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item pl-3 {{request()->is('settings/developers')?'active':''}}">
|
|
||||||
<a class="nav-link font-weight-light text-muted" href="#">Developers</a>
|
|
||||||
</li> --}}
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue