Merge pull request #1352 from pixelfed/frontend-ui-refactor

Frontend ui refactor
This commit is contained in:
daniel 2019-06-04 21:49:05 -06:00 committed by GitHub
commit a70522b288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 49 additions and 23 deletions

View file

@ -113,10 +113,7 @@ class InternalApiController extends Controller
'type' 'type'
) )
->whereNull('uri') ->whereNull('uri')
->whereHas('media') ->whereIn('type', ['photo','photo:album', 'video'])
->whereHas('profile', function($q) {
return $q->whereNull('status');
})
->whereIsNsfw(false) ->whereIsNsfw(false)
->whereVisibility('public') ->whereVisibility('public')
->whereNotIn('profile_id', $following) ->whereNotIn('profile_id', $following)

View file

@ -12,9 +12,6 @@ class RestrictedNames
'autoconfig', 'autoconfig',
'blog', 'blog',
'broadcasthost', 'broadcasthost',
'contact',
'contact-us',
'contact_us',
'copyright', 'copyright',
'download', 'download',
'domainadmin', 'domainadmin',
@ -111,19 +108,23 @@ class RestrictedNames
'booth', 'booth',
'bouncer', 'bouncer',
'c', 'c',
'css', 'cdn',
'circle', 'circle',
'circles', 'circles',
'checkpoint', 'checkpoint',
'community',
'communities',
'collection', 'collection',
'collections', 'collections',
'community',
'communities',
'contact',
'contact-us',
'contact_us',
'costar', 'costar',
'costars', 'costars',
'cdn', 'css',
'd', 'd',
'dashboard', 'dashboard',
'db',
'deck', 'deck',
'dev', 'dev',
'developer', 'developer',
@ -143,8 +144,10 @@ class RestrictedNames
'fonts', 'fonts',
'g', 'g',
'gdpr', 'gdpr',
'graph',
'group', 'group',
'groups', 'groups',
'h',
'home', 'home',
'help', 'help',
'helpcenter', 'helpcenter',
@ -162,10 +165,15 @@ class RestrictedNames
'invite', 'invite',
'invites', 'invites',
'js', 'js',
'l',
'lab', 'lab',
'labs', 'labs',
'legal', 'legal',
'live', 'live',
'loop',
'loops',
'location',
'locations',
'login', 'login',
'logout', 'logout',
'm', 'm',
@ -183,6 +191,8 @@ class RestrictedNames
'p', 'p',
'page', 'page',
'pages', 'pages',
'pin',
'pins',
'photo', 'photo',
'photos', 'photos',
'password', 'password',
@ -212,6 +222,7 @@ class RestrictedNames
'timeline', 'timeline',
'timelines', 'timelines',
'tour', 'tour',
'tv',
'user', 'user',
'users', 'users',
'username', 'username',

5
config/instance.php Normal file
View file

@ -0,0 +1,5 @@
<?php
return [
'email' => env('INSTANCE_CONTACT_EMAIL'),
];

Binary file not shown.

BIN
public/js/discover.js vendored

Binary file not shown.

Binary file not shown.

View file

@ -22,8 +22,12 @@
<div class="row d-none"> <div class="row d-none">
<div class="col-4 p-0 p-sm-2 p-md-3" v-for="post in posts"> <div class="col-4 p-0 p-sm-2 p-md-3" v-for="post in posts">
<a class="card info-overlay card-md-border-0" :href="post.url"> <a class="card info-overlay card-md-border-0" :href="post.url">
<div class="square filter_class"> <div class="square">
<div class="square-content" v-bind:style="{ 'background-image': 'url(' + post.thumb + ')' }"></div> <span v-if="post.type == 'photo:album'" class="float-right mr-3 post-icon"><i class="fas fa-images fa-2x"></i></span>
<span v-if="post.type == 'video'" class="float-right mr-3 post-icon"><i class="fas fa-video fa-2x"></i></span>
<span v-if="post.type == 'video:album'" class="float-right mr-3 post-icon"><i class="fas fa-film fa-2x"></i></span>
<div class="square-content" v-bind:style="{ 'background-image': 'url(' + post.thumb + ')' }">
</div>
</div> </div>
</a> </a>
</div> </div>
@ -46,6 +50,14 @@
height:100px; height:100px;
background-size: cover !important; background-size: cover !important;
} }
.post-icon {
color: #fff;
position:relative;
margin-top: 10px;
z-index: 9;
opacity: 0.6;
text-shadow: 3px 3px 16px #272634;
}
</style> </style>
<script type="text/javascript"> <script type="text/javascript">

View file

@ -9,9 +9,9 @@
</div> </div>
<hr> <hr>
<p class="alert alert-warning"> <p class="alert alert-warning">
<strong>Feature Unavailable:</strong> This feature will be released in v0.9.0. <strong>Feature Unavailable:</strong> This feature will be released in a future version.
</p> </p>
{{--< div class="table-responsive"> {{-- <div class="table-responsive">
<table class="table"> <table class="table">
<thead class="bg-light"> <thead class="bg-light">
<tr class="text-center"> <tr class="text-center">

View file

@ -9,6 +9,6 @@
</div> </div>
<hr> <hr>
<p class="alert alert-warning"> <p class="alert alert-warning">
<strong>Feature Unavailable:</strong> This feature will be released in v0.9.0. <strong>Feature Unavailable:</strong> This feature will be released in a future version.
</p> </p>
@endsection @endsection

View file

@ -5,9 +5,10 @@
@section('section') @section('section')
<div class="title"> <div class="title">
<h3 class="font-weight-bold">Configuration Settings</h3> <h3 class="font-weight-bold">Configuration Settings</h3>
<p class="lead">Edit any .env or config setting</p> <p class="lead">Edit configuration settings</p>
<hr> </div>
<p class="alert alert-warning"> <hr>
<strong>Feature Unavailable:</strong> This feature will be released in v0.9.0. <p class="alert alert-warning">
</p> <strong>Feature Unavailable:</strong> This feature will be released in a future version.
</p>
@endsection @endsection

View file

@ -9,6 +9,6 @@
</div> </div>
<hr> <hr>
<p class="alert alert-warning"> <p class="alert alert-warning">
<strong>Feature Unavailable:</strong> This feature will be released in v0.9.0. <strong>Feature Unavailable:</strong> This feature will be released in a future version.
</p> </p>
@endsection @endsection

View file

@ -9,6 +9,6 @@
</div> </div>
<hr> <hr>
<p class="alert alert-warning"> <p class="alert alert-warning">
<strong>Feature Unavailable:</strong> This feature will be released in v0.9.0. <strong>Feature Unavailable:</strong> This feature will be released in a future version.
</p> </p>
@endsection @endsection