Who knows what is happening.
This commit is contained in:
parent
8943bc06f5
commit
2309e31256
1
web/modules/custom/ufc/js/dist/main.min.js
vendored
1
web/modules/custom/ufc/js/dist/main.min.js
vendored
@ -33587,7 +33587,6 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
var container = document.getElementById('recent-fights');
|
var container = document.getElementById('recent-fights');
|
||||||
var root = (0,react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot)(container);
|
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( /*#__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" />);
|
// root.render(<Table type="table-dark table-striped table" />);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -64,7 +64,7 @@ public function importEvents(): void {
|
|||||||
$crawler = new Crawler($event_listing);
|
$crawler = new Crawler($event_listing);
|
||||||
$events = $crawler->filter('.Schedule__EventLeague--ufc tbody tr');
|
$events = $crawler->filter('.Schedule__EventLeague--ufc tbody tr');
|
||||||
foreach ($events as $event) {
|
foreach ($events as $event) {
|
||||||
$event_list[$i][] = $event->ownerDocument->saveHTML($event);
|
$event_list[$i][] = $event;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -59,7 +59,7 @@ public function importEvents(): void {
|
|||||||
// First delete all events :-).
|
// First delete all events :-).
|
||||||
/* $this->removeExistingEvents(); */
|
/* $this->removeExistingEvents(); */
|
||||||
// Old fashioned for loop to target years.
|
// 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";
|
$year_event_url = self::EVENTS_BASE . "{$i}/league/ufc";
|
||||||
$event_listing = $this->httpClient
|
$event_listing = $this->httpClient
|
||||||
->get($year_event_url)->getBody()->getContents();
|
->get($year_event_url)->getBody()->getContents();
|
||||||
@ -182,7 +182,6 @@ public static function createFightsByEvent($event, $context): void {
|
|||||||
$context['results']['processed']++;
|
$context['results']['processed']++;
|
||||||
} catch (RequestException $e) {
|
} catch (RequestException $e) {
|
||||||
$context['results']['failed']++;
|
$context['results']['failed']++;
|
||||||
dump($e->getMessage());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -5,6 +5,10 @@ dcjs:
|
|||||||
|
|
||||||
recent_fights_react:
|
recent_fights_react:
|
||||||
version: 1.0
|
version: 1.0
|
||||||
|
css:
|
||||||
|
theme:
|
||||||
|
https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css: { type: external }
|
||||||
js:
|
js:
|
||||||
js/dist/main.min.js: { minified: true }
|
js/dist/main.min.js: { minified: true }
|
||||||
|
https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js: { type: external }
|
||||||
|
|
||||||
|
|||||||
@ -165,9 +165,11 @@ header#header #block-dchadwick-main-menu > ul a.is-active:hover {
|
|||||||
border-radius: 5px 5px 0 0;
|
border-radius: 5px 5px 0 0;
|
||||||
}
|
}
|
||||||
.table thead tr > th {
|
.table thead tr > th {
|
||||||
background: var(--site-primary);
|
|
||||||
color: var(--site-white);
|
color: var(--site-white);
|
||||||
}
|
}
|
||||||
|
.table thead tr > th.win {
|
||||||
|
background: var(--site-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
.hero-slide {
|
.hero-slide {
|
||||||
height: 600px;
|
height: 600px;
|
||||||
|
|||||||
@ -23,8 +23,11 @@
|
|||||||
thead {
|
thead {
|
||||||
border-radius: 5px 5px 0 0;
|
border-radius: 5px 5px 0 0;
|
||||||
tr > th {
|
tr > th {
|
||||||
background: var(--site-primary);
|
|
||||||
color: var(--site-white);
|
color: var(--site-white);
|
||||||
|
|
||||||
|
&.win {
|
||||||
|
background: var(--site-secondary);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user