1
0
Fork 0

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 53 additions and 27 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'),
];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,10 +4,10 @@
"/css/app.css": "/css/app.css?id=3a974ff74b6b5905a73c", "/css/app.css": "/css/app.css?id=3a974ff74b6b5905a73c",
"/css/appdark.css": "/css/appdark.css?id=107806a000e2ca675a3c", "/css/appdark.css": "/css/appdark.css?id=107806a000e2ca675a3c",
"/css/landing.css": "/css/landing.css?id=d3610108213e88dc080c", "/css/landing.css": "/css/landing.css?id=d3610108213e88dc080c",
"/js/components.js": "/js/components.js?id=25d082643150ee79150c", "/js/components.js": "/js/components.js?id=ddc135bc319514161701",
"/js/compose.js": "/js/compose.js?id=905ec24258f595df861b", "/js/compose.js": "/js/compose.js?id=905ec24258f595df861b",
"/js/developers.js": "/js/developers.js?id=1359f11c7349301903f8", "/js/developers.js": "/js/developers.js?id=1359f11c7349301903f8",
"/js/discover.js": "/js/discover.js?id=0625385218493e556ccc", "/js/discover.js": "/js/discover.js?id=2dc2dc703a3a625df1a5",
"/js/loops.js": "/js/loops.js?id=0677173fdad43d0687ba", "/js/loops.js": "/js/loops.js?id=0677173fdad43d0687ba",
"/js/profile.js": "/js/profile.js?id=257d02b221142438d173", "/js/profile.js": "/js/profile.js?id=257d02b221142438d173",
"/js/search.js": "/js/search.js?id=27e8be8bfef6be586d25", "/js/search.js": "/js/search.js?id=27e8be8bfef6be586d25",

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