Update (ui): fix word break
Update (top rss keyword): do not show known brands
This commit is contained in:
@@ -26,12 +26,11 @@ protected function schedule(Schedule $schedule): void
|
||||
|
||||
$schedule->call(function () {
|
||||
|
||||
$top_rss_keywords = HybridTopRssPostKeywords::get(1, 20);
|
||||
$top_rss_keywords = HybridTopRssPostKeywords::get(1, 20);
|
||||
|
||||
foreach ($top_rss_keywords as $rss_keyword)
|
||||
{
|
||||
PublishRssSearchResultJob::dispatch($rss_keyword->value_lowercased)->onQueue('default')->onConnection('default');
|
||||
}
|
||||
foreach ($top_rss_keywords as $rss_keyword) {
|
||||
PublishRssSearchResultJob::dispatch($rss_keyword->value_lowercased)->onQueue('default')->onConnection('default');
|
||||
}
|
||||
|
||||
})->twiceDaily(0, 12)->name('top-rss-keywords-indexing-daily');
|
||||
|
||||
|
||||
@@ -3,10 +3,9 @@
|
||||
namespace App\Http\Controllers\Front;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\HybridTopRssPostKeywords;
|
||||
use App\Models\Post;
|
||||
use App\Models\RssPost;
|
||||
use App\Models\HybridTopRssPostKeywords;
|
||||
|
||||
use Artesaos\SEOTools\Facades\SEOMeta;
|
||||
use Artesaos\SEOTools\Facades\SEOTools;
|
||||
use GrahamCampbell\Markdown\Facades\Markdown;
|
||||
@@ -27,11 +26,11 @@ public function home(Request $request)
|
||||
// $query->whereNotIn('id', $featured_posts->pluck('id')->toArray());
|
||||
// })->where('status', 'publish')->where('published_at', '<=', now())->orderBy('published_at', 'desc')->limit(10)->get();
|
||||
|
||||
$top_rss_keywords = HybridTopRssPostKeywords::get(1, 10);
|
||||
$top_rss_keywords = HybridTopRssPostKeywords::get(1, 16);
|
||||
|
||||
$rss_posts = RssPost::with('entities_keywords')->where('status', 'published')->orderBy('published_at', 'desc')->paginate(15);
|
||||
|
||||
return response(view('front.welcome', compact('rss_posts','top_rss_keywords')), 200);
|
||||
return response(view('front.welcome', compact('rss_posts', 'top_rss_keywords')), 200);
|
||||
}
|
||||
|
||||
public function terms(Request $request)
|
||||
|
||||
@@ -2,16 +2,14 @@
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Jobs\Tasks\PublishIndexPostTask;
|
||||
use Exception;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
use LaravelFreelancerNL\LaravelIndexNow\Facades\IndexNow;
|
||||
use LaravelGoogleIndexing;
|
||||
use Exception;
|
||||
|
||||
class PublishRssSearchResultJob implements ShouldQueue
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class HybridTopRssPostKeywords extends Model
|
||||
{
|
||||
@@ -16,6 +16,7 @@ class HybridTopRssPostKeywords extends Model
|
||||
|
||||
// Override the table and primary key as this is an abstract model
|
||||
protected $table = null;
|
||||
|
||||
protected $primaryKey = null;
|
||||
|
||||
// Disable incrementing as this is an abstract model
|
||||
@@ -30,6 +31,7 @@ public static function get($days = 1, $limit = 10)
|
||||
$queryResults = DB::table('rss_post_keywords')
|
||||
->select('value', 'value_lowercased', DB::raw('COUNT(value_lowercased) as value_count'))
|
||||
->where('created_at', '>=', now()->subDays($days))
|
||||
->whereNotIn('value_lowercased', ['techcrunch', 'the verge', 'forbes', 'producthunt', ''])
|
||||
->groupBy('value', 'value_lowercased')
|
||||
->orderBy(DB::raw('COUNT(value_lowercased)'), 'desc')
|
||||
->limit($limit)
|
||||
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
9
public/build/assets/app-front-b83f66f0.css
Normal file
9
public/build/assets/app-front-b83f66f0.css
Normal file
File diff suppressed because one or more lines are too long
BIN
public/build/assets/app-front-b83f66f0.css.gz
Normal file
BIN
public/build/assets/app-front-b83f66f0.css.gz
Normal file
Binary file not shown.
@@ -210,7 +210,7 @@
|
||||
"src": "resources/sass/app-auth.scss"
|
||||
},
|
||||
"resources/sass/app-front.scss": {
|
||||
"file": "assets/app-front-8a16d797.css",
|
||||
"file": "assets/app-front-b83f66f0.css",
|
||||
"isEntry": true,
|
||||
"src": "resources/sass/app-front.scss"
|
||||
},
|
||||
|
||||
Binary file not shown.
@@ -104,4 +104,5 @@ @keyframes shimmer {
|
||||
|
||||
.word-wrap-break-word {
|
||||
word-wrap: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
@@ -13,17 +13,18 @@
|
||||
<div class="d-flex flex-wrap mb-1">
|
||||
@if ($post->entities)
|
||||
@foreach ($post->entities_keywords as $keyword)
|
||||
@if($keyword->type == 'entity')
|
||||
@if ($keyword->is_main)
|
||||
<h4
|
||||
class="mb-1 pb-1 d-inline badge bg-secondary border-secondary text-white border me-1 small fw-bold">
|
||||
{{ $keyword->value }}
|
||||
</h4>
|
||||
@else
|
||||
<h4 class="mb-1 pb-1 d-inline badge text-bg-light border me-1 small fw-normal">
|
||||
{{ $keyword->value }}
|
||||
</h4>
|
||||
@endif
|
||||
@if ($keyword->type == 'entity')
|
||||
@if ($keyword->is_main)
|
||||
<h4
|
||||
class="mb-1 pb-1 d-inline badge bg-secondary border-secondary text-white border me-1 small fw-bold">
|
||||
{{ $keyword->value }}
|
||||
</h4>
|
||||
@else
|
||||
<h4
|
||||
class="mb-1 pb-1 d-inline badge text-bg-light border me-1 small fw-normal">
|
||||
{{ $keyword->value }}
|
||||
</h4>
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@@ -17,17 +17,18 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-center row justify-content-center">
|
||||
<div class="col-12 col-md-10 col-lg-6">
|
||||
<div class="col-12 col-md-10 col-lg-6">
|
||||
|
||||
<h2 class="h4 fw-semibold mb-3">Monitoring top tags for the past 24 hours</h2>
|
||||
<h2 class="h4 fw-semibold mb-3">Monitoring top tags for the past 24 hours</h2>
|
||||
|
||||
@foreach ($top_rss_keywords as $rss_keyword)
|
||||
<a href="{{ get_route_search_result($rss_keyword->value_lowercased) }}" class="mb-1 pb-1 badge text-bg-light border me-1 fw-bold shadow">
|
||||
<span class="h6">#{{ $rss_keyword->value }}</span>
|
||||
</a>
|
||||
@endforeach
|
||||
@foreach ($top_rss_keywords as $rss_keyword)
|
||||
<a href="{{ get_route_search_result($rss_keyword->value_lowercased) }}"
|
||||
class="mb-1 pb-1 badge text-bg-light border me-1 fw-bold shadow">
|
||||
<span class="h6">#{{ $rss_keyword->value }}</span>
|
||||
</a>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -86,7 +87,7 @@ class="bi bi-clock-history me-1"></i> UPDATED HOURLY</span>
|
||||
</div>
|
||||
|
||||
<h5 class="h6">
|
||||
Tap on <i class="bi bi-chevron-down"></i> to read the 1 minute news bite worth every second
|
||||
Tap on <i class="bi bi-chevron-down"></i> to read the 1 minute news bite worth every second
|
||||
</h5>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user