Who knows what is happening.

This commit is contained in:
calcu1on 2025-04-15 17:47:06 -04:00
parent 8943bc06f5
commit 2309e31256
7 changed files with 14 additions and 7 deletions

View File

@ -33587,7 +33587,6 @@ __webpack_require__.r(__webpack_exports__);
var container = document.getElementById('recent-fights');
var root = (0,react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot)(container);
root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_FightCard__WEBPACK_IMPORTED_MODULE_3__["default"], null));
// root.render(<FirstFunc />);
// root.render(<Table type="table-dark table-striped table" />);
})();

File diff suppressed because one or more lines are too long

View File

@ -64,7 +64,7 @@ public function importEvents(): void {
$crawler = new Crawler($event_listing);
$events = $crawler->filter('.Schedule__EventLeague--ufc tbody tr');
foreach ($events as $event) {
$event_list[$i][] = $event->ownerDocument->saveHTML($event);
$event_list[$i][] = $event;
}
}

View File

@ -59,7 +59,7 @@ public function importEvents(): void {
// First delete all events :-).
/* $this->removeExistingEvents(); */
// Old fashioned for loop to target years.
for ($i = 2011; $i <= 2025; $i++) {
for ($i = 2000; $i <= 2025; $i++) {
$year_event_url = self::EVENTS_BASE . "{$i}/league/ufc";
$event_listing = $this->httpClient
->get($year_event_url)->getBody()->getContents();
@ -182,7 +182,6 @@ public static function createFightsByEvent($event, $context): void {
$context['results']['processed']++;
} catch (RequestException $e) {
$context['results']['failed']++;
dump($e->getMessage());
}
}

View File

@ -5,6 +5,10 @@ dcjs:
recent_fights_react:
version: 1.0
css:
theme:
https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css: { type: external }
js:
js/dist/main.min.js: { minified: true }
https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js: { type: external }

View File

@ -165,9 +165,11 @@ header#header #block-dchadwick-main-menu > ul a.is-active:hover {
border-radius: 5px 5px 0 0;
}
.table thead tr > th {
background: var(--site-primary);
color: var(--site-white);
}
.table thead tr > th.win {
background: var(--site-secondary);
}
.hero-slide {
height: 600px;

View File

@ -23,8 +23,11 @@
thead {
border-radius: 5px 5px 0 0;
tr > th {
background: var(--site-primary);
color: var(--site-white);
&.win {
background: var(--site-secondary);
}
}
}
}