Overhaul of a lot of things.

This commit is contained in:
calcu1on
2025-08-31 21:26:31 -04:00
parent 63a7ab4286
commit 7c70bc0de7
149 changed files with 6025 additions and 41504 deletions

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019 Léon Gersen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,42 @@
# noUiSlider
noUiSlider is a lightweight JavaScript range slider.
- **Accessible** with `aria` and keyboard support
- GPU animated: no reflows, so fast; even on older devices
- All modern browsers and IE > 9 are supported
- **No dependencies**
- Fully **responsive**
- **Multi-touch support** on Android, iOS and Windows devices
- Tons of [examples](https://refreshless.com/nouislider/examples) and answered [Stack Overflow questions](https://stackoverflow.com/questions/tagged/nouislider)
License
-------
noUiSlider is licensed [MIT](https://choosealicense.com/licenses/mit/).
It can be used **for free** and **without any attribution**, in any personal or commercial project.
[Documentation](https://refreshless.com/nouislider/)
-------
An extensive documentation, including **examples**, **options** and **configuration details**, is available here:
[noUiSlider documentation](https://refreshless.com/nouislider/).
Contributing
------------
See [Contributing](CONTRIBUTING.md).
Sponsorship
-----------
noUiSlider is a stable project that still receives a lot of feature requests. A lot of these are interesting, but require a good amount of effort to implement, test and document. Sponsorship of this project will allow me to spend some more of my time on these feature requests.
Please consider sponsoring the project by clicking the "❤ Sponsor" button above. Thanks!
Tooling
-------
Cross-browser testing kindly provided by BrowserStack.
[![Tested with BrowserStack](documentation/assets/browserstack-logo-380x90.png)](http://browserstack.com/)

View File

@@ -0,0 +1,10 @@
{
"name": "drupal/nouislider_js",
"description": "Mirror of the noUiSlider javascript library tagged as a Drupal library.",
"type": "drupal-library",
"homepage": "https://github.com/leongersen/noUiSlider",
"license": "MIT License",
"extra": {
"installer-name": "nouislider"
}
}

View File

@@ -0,0 +1,304 @@
/* Functional styling;
* These styles are required for noUiSlider to function.
* You don't need to change these rules to apply your design.
*/
.noUi-target,
.noUi-target * {
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-user-select: none;
-ms-touch-action: none;
touch-action: none;
-ms-user-select: none;
-moz-user-select: none;
user-select: none;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.noUi-target {
position: relative;
}
.noUi-base,
.noUi-connects {
width: 100%;
height: 100%;
position: relative;
z-index: 1;
}
/* Wrapper for all connect elements.
*/
.noUi-connects {
overflow: hidden;
z-index: 0;
}
.noUi-connect,
.noUi-origin {
will-change: transform;
position: absolute;
z-index: 1;
top: 0;
right: 0;
height: 100%;
width: 100%;
-ms-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
-webkit-transform-style: preserve-3d;
transform-origin: 0 0;
transform-style: flat;
}
/* Offset direction
*/
.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
left: 0;
right: auto;
}
/* Give origins 0 height/width so they don't interfere with clicking the
* connect elements.
*/
.noUi-vertical .noUi-origin {
top: -100%;
width: 0;
}
.noUi-horizontal .noUi-origin {
height: 0;
}
.noUi-handle {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
position: absolute;
}
.noUi-touch-area {
height: 100%;
width: 100%;
}
.noUi-state-tap .noUi-connect,
.noUi-state-tap .noUi-origin {
-webkit-transition: transform 0.3s;
transition: transform 0.3s;
}
.noUi-state-drag * {
cursor: inherit !important;
}
/* Slider size and handle placement;
*/
.noUi-horizontal {
height: 18px;
}
.noUi-horizontal .noUi-handle {
width: 34px;
height: 28px;
right: -17px;
top: -6px;
}
.noUi-vertical {
width: 18px;
}
.noUi-vertical .noUi-handle {
width: 28px;
height: 34px;
right: -6px;
bottom: -17px;
}
.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
left: -17px;
right: auto;
}
/* Styling;
* Giving the connect element a border radius causes issues with using transform: scale
*/
.noUi-target {
background: #FAFAFA;
border-radius: 4px;
border: 1px solid #D3D3D3;
box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
}
.noUi-connects {
border-radius: 3px;
}
.noUi-connect {
background: #3FB8AF;
}
/* Handles and cursors;
*/
.noUi-draggable {
cursor: ew-resize;
}
.noUi-vertical .noUi-draggable {
cursor: ns-resize;
}
.noUi-handle {
border: 1px solid #D9D9D9;
border-radius: 3px;
background: #FFF;
cursor: default;
box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}
.noUi-active {
box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;
}
/* Handle stripes;
*/
.noUi-handle:before,
.noUi-handle:after {
content: "";
display: block;
position: absolute;
height: 14px;
width: 1px;
background: #E8E7E6;
left: 14px;
top: 6px;
}
.noUi-handle:after {
left: 17px;
}
.noUi-vertical .noUi-handle:before,
.noUi-vertical .noUi-handle:after {
width: 14px;
height: 1px;
left: 6px;
top: 14px;
}
.noUi-vertical .noUi-handle:after {
top: 17px;
}
/* Disabled state;
*/
[disabled] .noUi-connect {
background: #B8B8B8;
}
[disabled].noUi-target,
[disabled].noUi-handle,
[disabled] .noUi-handle {
cursor: not-allowed;
}
/* Base;
*
*/
.noUi-pips,
.noUi-pips * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.noUi-pips {
position: absolute;
color: #999;
}
/* Values;
*
*/
.noUi-value {
position: absolute;
white-space: nowrap;
text-align: center;
}
.noUi-value-sub {
color: #ccc;
font-size: 10px;
}
/* Markings;
*
*/
.noUi-marker {
position: absolute;
background: #CCC;
}
.noUi-marker-sub {
background: #AAA;
}
.noUi-marker-large {
background: #AAA;
}
/* Horizontal layout;
*
*/
.noUi-pips-horizontal {
padding: 10px 0;
height: 80px;
top: 100%;
left: 0;
width: 100%;
}
.noUi-value-horizontal {
-webkit-transform: translate(-50%, 50%);
transform: translate(-50%, 50%);
}
.noUi-rtl .noUi-value-horizontal {
-webkit-transform: translate(50%, 50%);
transform: translate(50%, 50%);
}
.noUi-marker-horizontal.noUi-marker {
margin-left: -1px;
width: 2px;
height: 5px;
}
.noUi-marker-horizontal.noUi-marker-sub {
height: 10px;
}
.noUi-marker-horizontal.noUi-marker-large {
height: 15px;
}
/* Vertical layout;
*
*/
.noUi-pips-vertical {
padding: 0 10px;
height: 100%;
top: 0;
left: 100%;
}
.noUi-value-vertical {
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
padding-left: 25px;
}
.noUi-rtl .noUi-value-vertical {
-webkit-transform: translate(0, 50%);
transform: translate(0, 50%);
}
.noUi-marker-vertical.noUi-marker {
width: 5px;
height: 2px;
margin-top: -1px;
}
.noUi-marker-vertical.noUi-marker-sub {
width: 10px;
}
.noUi-marker-vertical.noUi-marker-large {
width: 15px;
}
.noUi-tooltip {
display: block;
position: absolute;
border: 1px solid #D9D9D9;
border-radius: 3px;
background: #fff;
color: #000;
padding: 5px;
text-align: center;
white-space: nowrap;
}
.noUi-horizontal .noUi-tooltip {
-webkit-transform: translate(-50%, 0);
transform: translate(-50%, 0);
left: 50%;
bottom: 120%;
}
.noUi-vertical .noUi-tooltip {
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
top: 50%;
right: 120%;
}
.noUi-horizontal .noUi-origin > .noUi-tooltip {
-webkit-transform: translate(50%, 0);
transform: translate(50%, 0);
left: auto;
bottom: 10px;
}
.noUi-vertical .noUi-origin > .noUi-tooltip {
-webkit-transform: translate(0, -18px);
transform: translate(0, -18px);
top: auto;
right: 28px;
}

198
web/libraries/nouislider/nouislider.d.ts vendored Normal file
View File

@@ -0,0 +1,198 @@
interface CssClasses {
target: string;
base: string;
origin: string;
handle: string;
handleLower: string;
handleUpper: string;
touchArea: string;
horizontal: string;
vertical: string;
background: string;
connect: string;
connects: string;
ltr: string;
rtl: string;
textDirectionLtr: string;
textDirectionRtl: string;
draggable: string;
drag: string;
tap: string;
active: string;
tooltip: string;
pips: string;
pipsHorizontal: string;
pipsVertical: string;
marker: string;
markerHorizontal: string;
markerVertical: string;
markerNormal: string;
markerLarge: string;
markerSub: string;
value: string;
valueHorizontal: string;
valueVertical: string;
valueNormal: string;
valueLarge: string;
valueSub: string;
}
export interface PartialFormatter {
to: (value: number) => string | number;
from?: (value: string) => number | false;
}
export interface Formatter extends PartialFormatter {
from: (value: string) => number | false;
}
export declare enum PipsMode {
Range = "range",
Steps = "steps",
Positions = "positions",
Count = "count",
Values = "values"
}
export declare enum PipsType {
None = -1,
NoValue = 0,
LargeValue = 1,
SmallValue = 2
}
declare type WrappedSubRange = [number] | [number, number];
declare type SubRange = number | WrappedSubRange;
interface Range {
min: SubRange;
max: SubRange;
[key: `${number}%`]: SubRange;
}
interface BasePips {
mode: PipsMode;
density?: number;
filter?: PipsFilter;
format?: PartialFormatter;
}
interface PositionsPips extends BasePips {
mode: PipsMode.Positions;
values: number[];
stepped?: boolean;
}
interface ValuesPips extends BasePips {
mode: PipsMode.Values;
values: number[];
stepped?: boolean;
}
interface CountPips extends BasePips {
mode: PipsMode.Count;
values: number;
stepped?: boolean;
}
interface StepsPips extends BasePips {
mode: PipsMode.Steps;
}
interface RangePips extends BasePips {
mode: PipsMode.Range;
}
declare type Pips = PositionsPips | ValuesPips | CountPips | StepsPips | RangePips;
declare type ValueArgument = number | string | null;
declare type StartValues = ValueArgument | ValueArgument[];
declare type HandleAttributes = {
[key: string]: string;
};
interface UpdatableOptions {
range?: Range;
start?: StartValues;
margin?: number;
limit?: number;
padding?: number | number[];
snap?: boolean;
step?: number;
pips?: Pips;
format?: Formatter;
tooltips?: boolean | PartialFormatter | (boolean | PartialFormatter)[];
animate?: boolean;
connect?: "lower" | "upper" | boolean | boolean[];
}
export interface Options extends UpdatableOptions {
range: Range;
orientation?: "vertical" | "horizontal";
direction?: "ltr" | "rtl";
behaviour?: string;
keyboardSupport?: boolean;
keyboardPageMultiplier?: number;
keyboardMultiplier?: number;
keyboardDefaultStep?: number;
documentElement?: HTMLElement;
cssPrefix?: string;
cssClasses?: CssClasses;
ariaFormat?: PartialFormatter;
animationDuration?: number;
handleAttributes?: HandleAttributes[];
}
export interface API {
destroy: () => void;
steps: () => NextStepsForHandle[];
on: (eventName: string, callback: EventCallback) => void;
off: (eventName: string) => void;
get: (unencoded?: boolean) => GetResult;
set: (input: ValueArgument | ValueArgument[], fireSetEvent?: boolean, exactInput?: boolean) => void;
setHandle: (handleNumber: number, value: ValueArgument, fireSetEvent?: boolean, exactInput?: boolean) => void;
reset: (fireSetEvent?: boolean) => void;
disable: (handleNumber?: number) => void;
enable: (handleNumber?: number) => void;
options: Options;
updateOptions: (optionsToUpdate: UpdatableOptions, fireSetEvent: boolean) => void;
target: HTMLElement;
removePips: () => void;
removeTooltips: () => void;
getPositions: () => number[];
getTooltips: () => (HTMLElement | false)[] | null;
getOrigins: () => HTMLElement[];
pips: (grid: Pips) => HTMLElement;
}
interface TargetElement extends HTMLElement {
noUiSlider?: API;
}
interface NearByStep {
startValue: number;
step: number | false;
highestStep: number;
}
interface NearBySteps {
stepBefore: NearByStep;
thisStep: NearByStep;
stepAfter: NearByStep;
}
declare type GetResult = number | string | (string | number)[];
declare type NextStepsForHandle = [number | false | null, number | false | null];
declare type PipsFilter = (value: number, type: PipsType) => PipsType;
declare type EventCallback = (this: API, values: (number | string)[], handleNumber: number, unencoded: number[], tap: boolean, locations: number[], slider: API) => void;
declare class Spectrum {
xPct: number[];
xVal: number[];
xSteps: (number | false)[];
xNumSteps: (number | false)[];
protected xHighestCompleteStep: number[];
protected snap: boolean;
constructor(entry: Range, snap: boolean, singleStep: number);
getDistance(value: number): number[];
getAbsoluteDistance(value: number, distances: number[] | null, direction: boolean): number;
toStepping(value: number): number;
fromStepping(value: number): number;
getStep(value: number): number;
getDefaultStep(value: number, isDown: boolean, size: number): number;
getNearbySteps(value: number): NearBySteps;
countStepDecimals(): number;
hasNoSize(): boolean;
convert(value: number): number;
private handleEntryPoint;
private handleStepPoint;
}
declare const cssClasses: CssClasses;
declare function initialize(target: TargetElement, originalOptions: Options): API;
export { TargetElement as target };
export { initialize as create };
export { cssClasses };
declare const _default: {
__spectrum: typeof Spectrum;
cssClasses: CssClasses;
create: typeof initialize;
};
export default _default;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1}.noUi-connects{overflow:hidden;z-index:0}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;right:0;height:100%;width:100%;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-origin:0 0;transform-style:flat}.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto}.noUi-vertical .noUi-origin{top:-100%;width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute}.noUi-touch-area{height:100%;width:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform .3s;transition:transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;right:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;right:-6px;bottom:-17px}.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto}.noUi-target{background:#FAFAFA;border-radius:4px;border:1px solid #D3D3D3;box-shadow:inset 0 1px 1px #F0F0F0,0 3px 6px -5px #BBB}.noUi-connects{border-radius:3px}.noUi-connect{background:#3FB8AF}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #D9D9D9;border-radius:3px;background:#FFF;cursor:default;box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #EBEBEB,0 3px 6px -3px #BBB}.noUi-active{box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #DDD,0 3px 6px -3px #BBB}.noUi-handle:after,.noUi-handle:before{content:"";display:block;position:absolute;height:14px;width:1px;background:#E8E7E6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background:#B8B8B8}[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target{cursor:not-allowed}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;white-space:nowrap;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#CCC}.noUi-marker-sub{background:#AAA}.noUi-marker-large{background:#AAA}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);padding-left:25px}.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0,50%);transform:translate(0,50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid #D9D9D9;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%,0);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);top:50%;right:120%}.noUi-horizontal .noUi-origin>.noUi-tooltip{-webkit-transform:translate(50%,0);transform:translate(50%,0);left:auto;bottom:10px}.noUi-vertical .noUi-origin>.noUi-tooltip{-webkit-transform:translate(0,-18px);transform:translate(0,-18px);top:auto;right:28px}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +0,0 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}

View File

@@ -1,22 +0,0 @@
uuid: 9020d6b1-7067-4178-884e-a36f2e24c865
langcode: en
status: true
dependencies:
config:
- node.type.fight
id: node.fight.promote
field_name: promote
entity_type: node
bundle: fight
label: 'Promoted to front page'
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean

View File

@@ -1,22 +0,0 @@
uuid: 62516a1a-8798-4b75-b598-8ddfe1e957ab
langcode: en
status: true
dependencies:
config:
- node.type.fighter
id: node.fighter.promote
field_name: promote
entity_type: node
bundle: fighter
label: 'Promoted to front page'
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean

View File

@@ -1,85 +0,0 @@
uuid: 46386617-61d1-4ef1-bcd0-762c7d39139d
langcode: en
status: true
dependencies:
config:
- field.field.node.fight.body
- field.field.node.fight.field_accuracy
- field.field.node.fight.field_event
- field.field.node.fight.field_fighter_one
- field.field.node.fight.field_fighter_two
- field.field.node.fight.field_prediction
- field.field.node.fight.field_result
- node.type.fight
id: node.fight.default
targetEntityType: node
bundle: fight
mode: default
content:
field_accuracy:
weight: 28
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_event:
weight: 1
settings: { }
third_party_settings: { }
type: options_buttons
region: content
field_fighter_one:
weight: 2
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete_tags
region: content
field_fighter_two:
weight: 3
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete_tags
region: content
field_prediction:
weight: 26
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_result:
weight: 5
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete
region: content
title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
body: true
created: true
path: true
promote: true
status: true
sticky: true
uid: true

View File

@@ -1,271 +0,0 @@
uuid: efcb011e-c7f3-4101-b5d7-3ab6aa471ab5
langcode: en
status: true
dependencies:
config:
- field.field.node.fighter.body
- field.field.node.fighter.field_absorbed_per_min
- field.field.node.fighter.field_age
- field.field.node.fighter.field_decisions
- field.field.node.fighter.field_division
- field.field.node.fighter.field_first_name
- field.field.node.fighter.field_grappling_accuracy
- field.field.node.fighter.field_height
- field.field.node.fighter.field_knockdown_ratio
- field.field.node.fighter.field_knockouts
- field.field.node.fighter.field_last_name
- field.field.node.fighter.field_leg_reach
- field.field.node.fighter.field_losses
- field.field.node.fighter.field_player_photo
- field.field.node.fighter.field_reach
- field.field.node.fighter.field_strikes_per_minute
- field.field.node.fighter.field_striking_accuracy
- field.field.node.fighter.field_submissions
- field.field.node.fighter.field_takedowns_per_15
- field.field.node.fighter.field_ties
- field.field.node.fighter.field_weight
- field.field.node.fighter.field_wins
- node.type.fighter
module:
- field_group
- media_library
third_party_settings:
field_group:
group_information:
children:
- title
- field_first_name
- field_last_name
- field_player_photo
- field_height
- field_weight
- field_age
- field_reach
- field_leg_reach
- field_division
parent_name: ''
weight: 1
format_type: tab
region: content
format_settings:
description: 'The player information'
formatter: open
required_fields: true
id: ''
classes: ''
direction: vertical
effect: none
open: false
weight: 0
label: Information
group_statistics:
children:
- field_wins
- field_losses
- field_ties
- field_decisions
- field_knockouts
- field_submissions
- field_grappling_accuracy
- field_striking_accuracy
- field_strikes_per_minute
- field_absorbed_per_min
- field_takedowns_per_15
- field_knockdown_ratio
parent_name: ''
weight: 2
format_type: tab
region: content
format_settings:
description: 'The statistics for this fighter.'
formatter: open
required_fields: true
id: ''
classes: ''
effect: none
open: false
weight: 0
direction: vertical
element: div
show_label: false
label_element: h3
label_element_classes: ''
speed: fast
attributes: ''
label: Statistics
id: node.fighter.default
targetEntityType: node
bundle: fighter
mode: default
content:
field_absorbed_per_min:
weight: 21
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_age:
weight: 6
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_decisions:
weight: 15
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_division:
weight: 9
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete
region: content
field_first_name:
weight: 1
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_grappling_accuracy:
weight: 18
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_height:
weight: 4
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_knockdown_ratio:
weight: 23
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_knockouts:
weight: 16
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_last_name:
weight: 2
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_leg_reach:
weight: 8
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_losses:
weight: 13
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_player_photo:
type: media_library_widget
weight: 3
settings:
media_types: { }
third_party_settings: { }
region: content
field_reach:
weight: 7
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_strikes_per_minute:
weight: 20
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_striking_accuracy:
weight: 19
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_submissions:
weight: 17
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_takedowns_per_15:
weight: 22
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_ties:
weight: 14
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_weight:
weight: 5
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_wins:
weight: 12
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
body: true
created: true
path: true
promote: true
status: true
sticky: true
uid: true

View File

@@ -1,80 +0,0 @@
uuid: d879dd9e-73c7-4562-98c5-45f6e0505d0c
langcode: en
status: true
dependencies:
config:
- field.field.node.fight.body
- field.field.node.fight.field_accuracy
- field.field.node.fight.field_event
- field.field.node.fight.field_fighter_one
- field.field.node.fight.field_fighter_two
- field.field.node.fight.field_prediction
- field.field.node.fight.field_result
- node.type.fight
module:
- user
id: node.fight.default
targetEntityType: node
bundle: fight
mode: default
content:
field_accuracy:
weight: 8
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_event:
weight: 1
label: hidden
settings:
link: true
third_party_settings: { }
type: entity_reference_label
region: content
field_fighter_one:
weight: 2
label: hidden
settings:
view_mode: teaser
link: false
third_party_settings: { }
type: entity_reference_entity_view
region: content
field_fighter_two:
weight: 3
label: hidden
settings:
view_mode: teaser
link: false
third_party_settings: { }
type: entity_reference_entity_view
region: content
field_prediction:
weight: 6
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_result:
weight: 5
label: hidden
settings:
link: true
third_party_settings: { }
type: entity_reference_label
region: content
links:
weight: 0
region: content
settings: { }
third_party_settings: { }
hidden:
body: true

View File

@@ -1,42 +0,0 @@
uuid: 2d1d0d94-7623-4d5b-a4d7-749720857860
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.fight.body
- field.field.node.fight.field_accuracy
- field.field.node.fight.field_event
- field.field.node.fight.field_fighter_one
- field.field.node.fight.field_fighter_two
- field.field.node.fight.field_prediction
- field.field.node.fight.field_result
- node.type.fight
module:
- text
- user
id: node.fight.teaser
targetEntityType: node
bundle: fight
mode: teaser
content:
body:
label: hidden
type: text_summary_or_trimmed
weight: 101
settings:
trim_length: 600
third_party_settings: { }
region: content
links:
weight: 100
settings: { }
third_party_settings: { }
region: content
hidden:
field_accuracy: true
field_event: true
field_fighter_one: true
field_fighter_two: true
field_prediction: true
field_result: true

View File

@@ -1,237 +0,0 @@
uuid: 62338666-d3ab-4b76-a45d-20e2ca85d41f
langcode: en
status: true
dependencies:
config:
- field.field.node.fighter.body
- field.field.node.fighter.field_absorbed_per_min
- field.field.node.fighter.field_age
- field.field.node.fighter.field_decisions
- field.field.node.fighter.field_division
- field.field.node.fighter.field_first_name
- field.field.node.fighter.field_grappling_accuracy
- field.field.node.fighter.field_height
- field.field.node.fighter.field_knockdown_ratio
- field.field.node.fighter.field_knockouts
- field.field.node.fighter.field_last_name
- field.field.node.fighter.field_leg_reach
- field.field.node.fighter.field_losses
- field.field.node.fighter.field_player_photo
- field.field.node.fighter.field_reach
- field.field.node.fighter.field_strikes_per_minute
- field.field.node.fighter.field_striking_accuracy
- field.field.node.fighter.field_submissions
- field.field.node.fighter.field_takedowns_per_15
- field.field.node.fighter.field_ties
- field.field.node.fighter.field_weight
- field.field.node.fighter.field_wins
- image.style.thumbnail
- node.type.fighter
module:
- media
- user
id: node.fighter.default
targetEntityType: node
bundle: fighter
mode: default
content:
field_absorbed_per_min:
type: number_decimal
weight: 6
region: content
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
field_age:
weight: 3
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_decisions:
type: number_decimal
weight: 7
region: content
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
field_division:
type: entity_reference_label
weight: 8
region: content
label: above
settings:
link: true
third_party_settings: { }
field_grappling_accuracy:
type: number_decimal
weight: 9
region: content
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
field_height:
weight: 1
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_knockdown_ratio:
type: number_decimal
weight: 10
region: content
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
field_knockouts:
type: number_decimal
weight: 17
region: content
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
field_leg_reach:
weight: 5
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_losses:
type: string
weight: 16
region: content
label: above
settings:
link_to_entity: false
third_party_settings: { }
field_player_photo:
type: media_thumbnail
weight: 0
label: hidden
settings:
image_style: thumbnail
image_link: ''
third_party_settings: { }
region: content
field_reach:
weight: 4
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_strikes_per_minute:
type: number_decimal
weight: 15
region: content
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
field_striking_accuracy:
type: number_decimal
weight: 14
region: content
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
field_submissions:
type: number_decimal
weight: 11
region: content
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
field_takedowns_per_15:
type: number_decimal
weight: 12
region: content
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
field_ties:
type: string
weight: 18
region: content
label: above
settings:
link_to_entity: false
third_party_settings: { }
field_weight:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_wins:
type: string
weight: 13
region: content
label: above
settings:
link_to_entity: false
third_party_settings: { }
hidden:
body: true
field_first_name: true
field_last_name: true
links: true

View File

@@ -1,77 +0,0 @@
uuid: be9b697f-c86f-4de3-9a8e-13bbd743a872
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.rss
- field.field.node.fighter.body
- field.field.node.fighter.field_absorbed_per_min
- field.field.node.fighter.field_age
- field.field.node.fighter.field_decisions
- field.field.node.fighter.field_division
- field.field.node.fighter.field_first_name
- field.field.node.fighter.field_grappling_accuracy
- field.field.node.fighter.field_height
- field.field.node.fighter.field_knockdown_ratio
- field.field.node.fighter.field_knockouts
- field.field.node.fighter.field_last_name
- field.field.node.fighter.field_leg_reach
- field.field.node.fighter.field_losses
- field.field.node.fighter.field_player_photo
- field.field.node.fighter.field_reach
- field.field.node.fighter.field_strikes_per_minute
- field.field.node.fighter.field_striking_accuracy
- field.field.node.fighter.field_submissions
- field.field.node.fighter.field_takedowns_per_15
- field.field.node.fighter.field_ties
- field.field.node.fighter.field_weight
- field.field.node.fighter.field_wins
- image.style.thumbnail
- node.type.fighter
module:
- media
- user
id: node.fighter.rss
targetEntityType: node
bundle: fighter
mode: rss
content:
field_last_name:
weight: 1
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_player_photo:
type: media_thumbnail
weight: 0
label: hidden
settings:
image_style: thumbnail
image_link: ''
third_party_settings: { }
region: content
hidden:
body: true
field_absorbed_per_min: true
field_age: true
field_decisions: true
field_division: true
field_first_name: true
field_grappling_accuracy: true
field_height: true
field_knockdown_ratio: true
field_knockouts: true
field_leg_reach: true
field_losses: true
field_reach: true
field_strikes_per_minute: true
field_striking_accuracy: true
field_submissions: true
field_takedowns_per_15: true
field_ties: true
field_weight: true
field_wins: true
links: true

View File

@@ -1,70 +0,0 @@
uuid: ed1e0abd-67ac-4ae9-ad96-28cafd354403
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.fighter.body
- field.field.node.fighter.field_absorbed_per_min
- field.field.node.fighter.field_age
- field.field.node.fighter.field_decisions
- field.field.node.fighter.field_division
- field.field.node.fighter.field_first_name
- field.field.node.fighter.field_grappling_accuracy
- field.field.node.fighter.field_height
- field.field.node.fighter.field_knockdown_ratio
- field.field.node.fighter.field_knockouts
- field.field.node.fighter.field_last_name
- field.field.node.fighter.field_leg_reach
- field.field.node.fighter.field_losses
- field.field.node.fighter.field_player_photo
- field.field.node.fighter.field_reach
- field.field.node.fighter.field_strikes_per_minute
- field.field.node.fighter.field_striking_accuracy
- field.field.node.fighter.field_submissions
- field.field.node.fighter.field_takedowns_per_15
- field.field.node.fighter.field_ties
- field.field.node.fighter.field_weight
- field.field.node.fighter.field_wins
- image.style.medium
- node.type.fighter
module:
- media
- user
id: node.fighter.teaser
targetEntityType: node
bundle: fighter
mode: teaser
content:
field_player_photo:
type: media_thumbnail
weight: 0
region: content
label: hidden
settings:
image_style: medium
image_link: ''
third_party_settings: { }
hidden:
body: true
field_absorbed_per_min: true
field_age: true
field_decisions: true
field_division: true
field_first_name: true
field_grappling_accuracy: true
field_height: true
field_knockdown_ratio: true
field_knockouts: true
field_last_name: true
field_leg_reach: true
field_losses: true
field_reach: true
field_strikes_per_minute: true
field_striking_accuracy: true
field_submissions: true
field_takedowns_per_15: true
field_ties: true
field_weight: true
field_wins: true
links: true

View File

@@ -1,32 +0,0 @@
uuid: c2fa694b-d3bb-43ed-b9a8-cfe2c6aa61ac
langcode: en
status: true
dependencies:
config:
- field.field.taxonomy_term.ufc_events.field_event_date
- taxonomy.vocabulary.ufc_events
module:
- datetime
- text
id: taxonomy_term.ufc_events.default
targetEntityType: taxonomy_term
bundle: ufc_events
mode: default
content:
description:
label: hidden
type: text_default
weight: 0
region: content
settings: { }
third_party_settings: { }
field_event_date:
weight: 1
label: above
settings:
format_type: medium
timezone_override: ''
third_party_settings: { }
type: datetime_default
region: content
hidden: { }

View File

@@ -1,23 +0,0 @@
uuid: 7878bf2c-a3a4-42a7-a6cd-79f860d15395
langcode: en
status: true
dependencies:
config:
- field.storage.node.body
- node.type.fight
module:
- text
id: node.fight.body
field_name: body
entity_type: node
bundle: fight
label: Body
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
display_summary: true
required_summary: false
field_type: text_with_summary

View File

@@ -1,23 +0,0 @@
uuid: 0675782a-5e6b-47e6-b248-48cf7ee44144
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_accuracy
- node.type.fight
id: node.fight.field_accuracy
field_name: field_accuracy
entity_type: node
bundle: fight
label: Accuracy
description: 'Accuracy of this prediction.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: '%'
field_type: float

View File

@@ -1,29 +0,0 @@
uuid: 08eeb95e-ad83-449b-b420-405c92f94888
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_event
- node.type.fight
- taxonomy.vocabulary.ufc_events
id: node.fight.field_event
field_name: field_event
entity_type: node
bundle: fight
label: Event
description: 'The event for this fight.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
ufc_events: ufc_events
sort:
field: name
direction: asc
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@@ -1,28 +0,0 @@
uuid: c0e2a418-fa1b-450e-9496-31915af72a6c
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_fighter_one
- node.type.fight
- node.type.fighter
id: node.fight.field_fighter_one
field_name: field_fighter_one
entity_type: node
bundle: fight
label: 'Fighter One'
description: 'The first fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings:
target_bundles:
fighter: fighter
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@@ -1,28 +0,0 @@
uuid: 1cfef8e4-a358-402e-a6b9-6377abf8b12d
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_fighter_two
- node.type.fight
- node.type.fighter
id: node.fight.field_fighter_two
field_name: field_fighter_two
entity_type: node
bundle: fight
label: 'Fighter Two'
description: 'The second fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings:
target_bundles:
fighter: fighter
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@@ -1,19 +0,0 @@
uuid: 840cdb42-015b-4c66-b49b-420da49b42ae
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_prediction
- node.type.fight
id: node.fight.field_prediction
field_name: field_prediction
entity_type: node
bundle: fight
label: Prediction
description: 'The prediction for this fight.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@@ -1,28 +0,0 @@
uuid: f80f6e92-7f80-4706-9649-19cde2e63f97
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_result
- node.type.fight
- node.type.fighter
id: node.fight.field_result
field_name: field_result
entity_type: node
bundle: fight
label: Result
description: 'The real result of the fight, aka WINNER.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:node'
handler_settings:
target_bundles:
fighter: fighter
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@@ -1,23 +0,0 @@
uuid: 582e98bf-ad72-4a75-b50f-6111d5b00629
langcode: en
status: true
dependencies:
config:
- field.storage.node.body
- node.type.fighter
module:
- text
id: node.fighter.body
field_name: body
entity_type: node
bundle: fighter
label: Body
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
display_summary: true
required_summary: false
field_type: text_with_summary

View File

@@ -1,23 +0,0 @@
uuid: bd26455b-a207-481f-9aac-2b2f61d118a0
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_absorbed_per_min
- node.type.fighter
id: node.fighter.field_absorbed_per_min
field_name: field_absorbed_per_min
entity_type: node
bundle: fighter
label: 'Absorbed Per Min'
description: 'The strikes absorbed per minute for this fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,23 +0,0 @@
uuid: 71fa4227-27da-4319-a823-aa0acde92145
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_age
- node.type.fighter
id: node.fighter.field_age
field_name: field_age
entity_type: node
bundle: fighter
label: Age
description: 'The age of the fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,23 +0,0 @@
uuid: 2c9e212b-4e0e-41c2-a924-ad1bc51a82de
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_decisions
- node.type.fighter
id: node.fighter.field_decisions
field_name: field_decisions
entity_type: node
bundle: fighter
label: Decisions
description: 'The amount of decision wins this fighter has.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,29 +0,0 @@
uuid: 7cfd4a75-6ba7-4878-a391-f555f05d3beb
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_division
- node.type.fighter
- taxonomy.vocabulary.ufc_divisions
id: node.fighter.field_division
field_name: field_division
entity_type: node
bundle: fighter
label: Division
description: 'The division this fighter is in.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
ufc_divisions: ufc_divisions
sort:
field: name
direction: asc
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@@ -1,19 +0,0 @@
uuid: 49c5a5bc-5e65-46ba-a4c8-c42b951a4ecc
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_first_name
- node.type.fighter
id: node.fighter.field_first_name
field_name: field_first_name
entity_type: node
bundle: fighter
label: 'First Name'
description: 'First name.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@@ -1,23 +0,0 @@
uuid: ca060196-5d4d-4acc-9e6b-a7daf7af7003
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_grappling_accuracy
- node.type.fighter
id: node.fighter.field_grappling_accuracy
field_name: field_grappling_accuracy
entity_type: node
bundle: fighter
label: 'Grappling Accuracy'
description: 'The grappling accuracy for this fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: '%'
field_type: decimal

View File

@@ -1,23 +0,0 @@
uuid: 3a4c580f-fb39-4674-8533-a986ad57a7a4
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_height
- node.type.fighter
id: node.fighter.field_height
field_name: field_height
entity_type: node
bundle: fighter
label: Height
description: 'The height of the fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,23 +0,0 @@
uuid: bc39ff4d-12ca-47ff-9d0d-74a941148cf9
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_knockdown_ratio
- node.type.fighter
id: node.fighter.field_knockdown_ratio
field_name: field_knockdown_ratio
entity_type: node
bundle: fighter
label: 'Knockdown Ratio'
description: 'The knockdown ratio for this fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,23 +0,0 @@
uuid: d1f83a79-f899-49da-bd99-1a3e9ed7b34b
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_knockouts
- node.type.fighter
id: node.fighter.field_knockouts
field_name: field_knockouts
entity_type: node
bundle: fighter
label: Knockouts
description: 'The amount of knockouts this fighter has.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,19 +0,0 @@
uuid: 493c9d57-a11f-4358-b618-8b3252da3d87
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_last_name
- node.type.fighter
id: node.fighter.field_last_name
field_name: field_last_name
entity_type: node
bundle: fighter
label: 'Last Name'
description: 'Last name of the player.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@@ -1,23 +0,0 @@
uuid: dcc0c063-f28b-4bc6-ba61-6fbdc70a8b70
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_leg_reach
- node.type.fighter
id: node.fighter.field_leg_reach
field_name: field_leg_reach
entity_type: node
bundle: fighter
label: 'Leg Reach'
description: 'The leg reach of the fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,19 +0,0 @@
uuid: 1c7f58ba-b19d-4016-b7bf-53e8c0c24e23
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_losses
- node.type.fighter
id: node.fighter.field_losses
field_name: field_losses
entity_type: node
bundle: fighter
label: Losses
description: 'The amount of losses'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@@ -1,28 +0,0 @@
uuid: be611949-61fe-454a-9b5a-754ef77ff5f9
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_player_photo
- media.type.image
- node.type.fighter
id: node.fighter.field_player_photo
field_name: field_player_photo
entity_type: node
bundle: fighter
label: 'Player Photo'
description: 'The player photos.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
image: image
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@@ -1,23 +0,0 @@
uuid: e5c16d91-eb10-4d95-837f-279ccfb469d1
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_reach
- node.type.fighter
id: node.fighter.field_reach
field_name: field_reach
entity_type: node
bundle: fighter
label: Reach
description: 'The reach of the fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,23 +0,0 @@
uuid: 05529d7b-2702-4d98-953e-c38294bf1386
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_strikes_per_minute
- node.type.fighter
id: node.fighter.field_strikes_per_minute
field_name: field_strikes_per_minute
entity_type: node
bundle: fighter
label: 'Strikes Per Minute'
description: 'The strikes per minute for this fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,23 +0,0 @@
uuid: b32a72cf-325f-4abd-8234-6eb1b2d04628
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_striking_accuracy
- node.type.fighter
id: node.fighter.field_striking_accuracy
field_name: field_striking_accuracy
entity_type: node
bundle: fighter
label: 'Striking Accuracy'
description: 'The striking accuracy for this fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: '%'
field_type: decimal

View File

@@ -1,23 +0,0 @@
uuid: e1130f2d-f575-442f-8fbc-2dc11e45582b
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_submissions
- node.type.fighter
id: node.fighter.field_submissions
field_name: field_submissions
entity_type: node
bundle: fighter
label: Submissions
description: 'The amount of submissions wins this fighter has.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,23 +0,0 @@
uuid: 2564e00a-2001-4dac-bf0f-b5a850ec78cc
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_takedowns_per_15
- node.type.fighter
id: node.fighter.field_takedowns_per_15
field_name: field_takedowns_per_15
entity_type: node
bundle: fighter
label: 'Takedowns Per 15'
description: 'The takedowns per 15 minutes for this fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,19 +0,0 @@
uuid: 7c6981ab-23b9-4407-8ef7-2f61d6561c4b
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_ties
- node.type.fighter
id: node.fighter.field_ties
field_name: field_ties
entity_type: node
bundle: fighter
label: Ties
description: 'The amount of ties.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@@ -1,23 +0,0 @@
uuid: 56f9ae5d-1ff2-40eb-9085-7657176f60cc
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_weight
- node.type.fighter
id: node.fighter.field_weight
field_name: field_weight
entity_type: node
bundle: fighter
label: Weight
description: 'The weight of the fighter.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: decimal

View File

@@ -1,19 +0,0 @@
uuid: ffde2285-42ba-4db5-9bc6-3ebe2124f2c6
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_wins
- node.type.fighter
id: node.fighter.field_wins
field_name: field_wins
entity_type: node
bundle: fighter
label: Wins
description: 'The amount of wins.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@@ -1,21 +0,0 @@
uuid: eac5bd54-7691-421e-8f2a-ce579c6d3032
langcode: en
status: true
dependencies:
config:
- field.storage.taxonomy_term.field_event_date
- taxonomy.vocabulary.ufc_events
module:
- datetime
id: taxonomy_term.ufc_events.field_event_date
field_name: field_event_date
entity_type: taxonomy_term
bundle: ufc_events
label: 'Event Date'
description: 'The date for this event.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime

View File

@@ -1,20 +0,0 @@
uuid: 9d6bf3c4-a280-4e14-a46e-2f0df3208242
langcode: en
status: true
dependencies:
module:
- node
id: node.field_absorbed_per_min
field_name: field_absorbed_per_min
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,18 +0,0 @@
uuid: 9302d680-0a5f-4846-bec7-72952ff45727
langcode: en
status: true
dependencies:
module:
- node
id: node.field_accuracy
field_name: field_accuracy
entity_type: node
type: float
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 6691c996-791a-4b93-9dca-5504091188a8
langcode: en
status: true
dependencies:
module:
- node
id: node.field_age
field_name: field_age
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 88f41317-7b99-4916-9b62-2fc9574b4cb2
langcode: en
status: true
dependencies:
module:
- node
id: node.field_decisions
field_name: field_decisions
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 27166575-3538-4b15-aaa0-5da43aaf609b
langcode: en
status: true
dependencies:
module:
- node
- taxonomy
id: node.field_division
field_name: field_division
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: f85fe501-9759-424f-ae4c-9c7120715c08
langcode: en
status: true
dependencies:
module:
- node
- taxonomy
id: node.field_event
field_name: field_event
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,19 +0,0 @@
uuid: a065856c-0d5f-4c0f-b744-338ad233aa23
langcode: en
status: true
dependencies:
module:
- node
id: node.field_fighter_one
field_name: field_fighter_one
entity_type: node
type: entity_reference
settings:
target_type: node
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,19 +0,0 @@
uuid: 75c486ae-91c5-4672-818e-0f8a6e286b20
langcode: en
status: true
dependencies:
module:
- node
id: node.field_fighter_two
field_name: field_fighter_two
entity_type: node
type: entity_reference
settings:
target_type: node
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,21 +0,0 @@
uuid: 28585605-54e4-49ca-9d74-468ceba7fafe
langcode: en
status: true
dependencies:
module:
- node
id: node.field_first_name
field_name: field_first_name
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 519a3558-3dcd-4f40-a4e6-2bbc1d08be6b
langcode: en
status: true
dependencies:
module:
- node
id: node.field_grappling_accuracy
field_name: field_grappling_accuracy
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 2c211457-b9ec-461f-86d6-a6c6f01eeef5
langcode: en
status: true
dependencies:
module:
- node
id: node.field_height
field_name: field_height
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 7241aad9-0095-4b94-b056-0c0de56f5e8e
langcode: en
status: true
dependencies:
module:
- node
id: node.field_knockdown_ratio
field_name: field_knockdown_ratio
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 5d0cc244-2044-4b3b-96be-8cd5ead4e1e4
langcode: en
status: true
dependencies:
module:
- node
id: node.field_knockouts
field_name: field_knockouts
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,21 +0,0 @@
uuid: 0c81c2da-1979-4b37-a29b-e0cdb78e8995
langcode: en
status: true
dependencies:
module:
- node
id: node.field_last_name
field_name: field_last_name
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: dc50d6bf-0642-480e-988e-e37390f192a4
langcode: en
status: true
dependencies:
module:
- node
id: node.field_leg_reach
field_name: field_leg_reach
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,21 +0,0 @@
uuid: 288335f6-1fff-4f29-a2af-70616c13c9ba
langcode: en
status: true
dependencies:
module:
- node
id: node.field_losses
field_name: field_losses
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: d35ea863-cf26-469d-bdaf-468b617483e2
langcode: en
status: true
dependencies:
module:
- media
- node
id: node.field_player_photo
field_name: field_player_photo
entity_type: node
type: entity_reference
settings:
target_type: media
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,21 +0,0 @@
uuid: d6738d5c-af34-4bcb-b217-ff61904886d4
langcode: en
status: true
dependencies:
module:
- node
id: node.field_prediction
field_name: field_prediction
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 712bd9dc-58d0-4bcc-b981-731b3a725220
langcode: en
status: true
dependencies:
module:
- node
id: node.field_reach
field_name: field_reach
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,19 +0,0 @@
uuid: f20d5d9f-d9a4-4644-b06a-e2d7c02ef5f3
langcode: en
status: true
dependencies:
module:
- node
id: node.field_result
field_name: field_result
entity_type: node
type: entity_reference
settings:
target_type: node
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 18a251e1-8568-4a45-960b-83b009d94a3b
langcode: en
status: true
dependencies:
module:
- node
id: node.field_strikes_per_minute
field_name: field_strikes_per_minute
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 0f6e4cbd-8d76-4c5f-8c92-e6401f148a1d
langcode: en
status: true
dependencies:
module:
- node
id: node.field_striking_accuracy
field_name: field_striking_accuracy
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 42853083-7298-43df-807c-607b7941505c
langcode: en
status: true
dependencies:
module:
- node
id: node.field_submissions
field_name: field_submissions
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 970131d2-174b-4e75-a873-937abab255e7
langcode: en
status: true
dependencies:
module:
- node
id: node.field_takedowns_per_15
field_name: field_takedowns_per_15
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,21 +0,0 @@
uuid: 73d01cd2-072a-4cc9-b96c-3fa3164124bc
langcode: en
status: true
dependencies:
module:
- node
id: node.field_ties
field_name: field_ties
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: 2cff8ca8-3632-4104-ba8f-caf2f3d91394
langcode: en
status: true
dependencies:
module:
- node
id: node.field_weight
field_name: field_weight
entity_type: node
type: decimal
settings:
precision: 10
scale: 2
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,21 +0,0 @@
uuid: 82eb82a9-7025-4857-bcd2-efa273514971
langcode: en
status: true
dependencies:
module:
- node
id: node.field_wins
field_name: field_wins
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,20 +0,0 @@
uuid: b46f481d-6eda-4bba-ae10-03c0af640edf
langcode: en
status: true
dependencies:
module:
- datetime
- taxonomy
id: taxonomy_term.field_event_date
field_name: field_event_date
entity_type: taxonomy_term
type: datetime
settings:
datetime_type: date
module: datetime
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@@ -1,18 +0,0 @@
uuid: 58dd5a4f-c2b6-490c-8d82-109621022e9a
langcode: en
status: true
dependencies:
module:
- menu_ui
third_party_settings:
menu_ui:
available_menus:
- main
parent: 'main:'
name: Fight
type: fight
description: 'A fight between two fighters.'
help: ''
new_revision: true
preview_mode: 1
display_submitted: false

View File

@@ -1,18 +0,0 @@
uuid: 8af5329d-7e64-4606-b474-e623bdc143d3
langcode: en
status: true
dependencies:
module:
- menu_ui
third_party_settings:
menu_ui:
available_menus:
- main
parent: 'main:'
name: Fighter
type: fighter
description: 'A fighter.'
help: ''
new_revision: true
preview_mode: 1
display_submitted: false

View File

@@ -1,23 +0,0 @@
uuid: 4ab9533e-d5c9-4583-8d1a-ee3b74c91eef
langcode: en
status: true
dependencies:
module:
- node
id: fights
label: Fights
type: 'canonical_entities:node'
pattern: '/fight/[node:title]'
selection_criteria:
9022da84-04b3-4e0c-9d1a-0c8d1d17e6fc:
id: 'entity_bundle:node'
negate: false
uuid: 9022da84-04b3-4e0c-9d1a-0c8d1d17e6fc
context_mapping:
node: node
bundles:
fight: fight
selection_logic: and
weight: -5
relationships: { }

View File

@@ -1,8 +0,0 @@
uuid: 651c73cc-63b1-462a-8286-b292e4badaab
langcode: en
status: true
dependencies: { }
name: 'UFC Divisions'
vid: ufc_divisions
description: 'The different divisions in the UFC'
weight: 0

View File

@@ -1,8 +0,0 @@
uuid: 06ce81ea-6364-4844-a8a0-4fec95ada9a0
langcode: en
status: true
dependencies: { }
name: 'UFC Events'
vid: ufc_events
description: 'List of events.'
weight: 0

View File

@@ -1,18 +0,0 @@
fight_weights:
wins: 1
losses: 1
age: 1
height: 1
weight: 1
reach: 1
leg_reach: 1
knockouts: 1
decisions: 1
submissions: 1
striking_accuracy: 1
grappling_accuracy: 1
strikes_per_min: 1
absorbed_per_min: 1
takedowns_per_15: 1
knockout_ratio: 1
knockout_pct: 1

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +0,0 @@
import React, { Component } from 'react';
function Button(props) {
return <button className={"btn btn-" + props.classes}><a href={props.link}>View Fight</a></button>;
}
export default Button;

View File

@@ -1,39 +0,0 @@
import React, { Component } from 'react';
import { useState, useEffect } from 'react';
import Button from './Button';
import Image from './Image';
const FightCard = () => {
const [fights, setFights] = useState([]);
useEffect(() => {
fetch('/api/v1/recent-fights')
.then((res) => {
return res.json();
})
.then((data) => {
setFights(data);
});
}, []);
return (
<div className="d-flex flex-row flex-wrap">
{fights.map((fight, index) => (
<div key={index} className="card col-md-3">
<div className="card-header">
<Image alt="headshot for ufc fighter" uri={fight.fighter_one_image} />
<span id="versus">vs.</span>
<Image alt="headshot for ufc fighter" uri={fight.fighter_two_image} />
</div>
<div className="card-body">
<h4>{fight.fighter_one}</h4>
<h4>{fight.fighter_two}</h4>
</div>
<div className="card-footer">
<Button link={fight.url} classes="primary" />
</div>
</div>
))}
</div>
);
};
export default FightCard;

View File

@@ -1,9 +0,0 @@
import React, { Component } from 'react';
function Image(props) {
return (
<img src={props.uri} className="img-fluid fightcard-img" alt={props.alt} />
);
}
export default Image;

View File

@@ -1,22 +0,0 @@
import React, { Component } from 'react';
function Table(props) {
const tableElem = (
<table className={ props.type }>
<thead>
<tr>
<th>Header 1</th>
</tr>
</thead>
<tbody>
<tr>
<td>This is first item in row</td>
</tr>
</tbody>
</table>
);
return tableElem;
}
export default Table;

View File

@@ -1,10 +0,0 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import Button from './components/Button';
import FightCard from './components/FightCard';
const container = document.getElementById('recent-fights');
const root = createRoot(container);
root.render(<FightCard />);
// root.render(<Table type="table-dark table-striped table" />);

File diff suppressed because it is too large Load Diff

View File

@@ -1,28 +0,0 @@
{
"name": "ufc",
"version": "1.0.0",
"description": "TO DEVELOP --- Finish %",
"main": "index.js",
"scripts": {
"build": "webpack",
"build:dev": "webpack",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"dcjs": "github:dan612/dcjs",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/preset-react": "^7.24.1",
"babel-loader": "^9.1.3",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
}
}

View File

@@ -159,8 +159,6 @@ class FightTrainingController extends ControllerBase {
$extracted_values = $this->extractValuesFromFields($id, $this->fields, $prefix);
/* return $extracted_values; */
return $this->normalizeData($extracted_values);
}
@@ -188,7 +186,6 @@ class FightTrainingController extends ControllerBase {
private function normalizeData(array $data): array {
// @todo - this creates an issue where duration of fight is the largest number which isnt really correct
// and smaller duration would be better
//
$min = min(array_values($data));
$max = max(array_values($data));
$normalized = [];

View File

@@ -185,10 +185,6 @@ class FighterImporter {
}
}
public function quickTest($str) {
return "hello$str";
}
/**
* Extract fighters from an html string.
*/
@@ -241,8 +237,6 @@ class FighterImporter {
$this->fighters[$this->weightClass][$name_no_spaces]['profile'] = $fighter_data['profile'];
}
// here you are dan, set the profile url of the fighter, then use that in parsing later on
if (!empty($fighter_data['images']) && count($fighter_data['images']) == 2) {
$this->fighters[$this->weightClass][$name_no_spaces]['image'] = $fighter_data['images'][0];
}

View File

@@ -1,44 +0,0 @@
{% set fighterImg = file_url(node.field_player_photo.entity.field_media_image.entity.uri.value) %}
<article{{ attributes }} id="fighter">
<div{{ content_attributes }}>
<div id="fighter__hero">
<div id="fighter__image">
<img src="{{ fighterImg }}"/>
</div>
<div id="fighter__text">
<h1>{{ node.field_first_name.value }} {{ node.field_last_name.value }}</h1>
<div id="fighter__record">
{{ node.field_wins.value }} - {{ node.field_losses.value }} - {{ node.field_ties.value }}
</div>
</div>
</div>
<h2 id="personal-header">Personal Information</h2>
<div id="fighter__personal">
{% for datapoint, value in personal_info %}
<div class="data-wrapper">
<span class="label">{{ datapoint }}</span>
<div class="datapoint">
{{ value }}
</div>
</div>
{% endfor %}
</div>
<h2 id="stats-header">Fighter Stats</h2>
<div id="fighter__stats">
{% for datapoint, value in stats %}
<div class="data-wrapper">
<span class="label">{{ datapoint }}</span>
<div class="datapoint">
{{ value }}
</div>
</div>
{% endfor %}
</div>
</div>
</article>

View File

@@ -1,9 +0,0 @@
{% for fighter in fighters %}
<div class="fighter">
<h2><a href="{{ fighter.link }}">{{ fighter.name }}</a></h2>
<div class="fighter-photo">
<img src="{{ fighter.picUrl }}" />
</div>
</div>
{% endfor %}

View File

@@ -1,10 +0,0 @@
{# attach_library('dchadwick/dcjs') #}
{% block fighters %}
<div id="fighters-wrapper" dc-get="/dcjs/all-fighters" dc-target="fighters" dc-trigger="load">
<div id="fighters">
</div>
</div>
{% endblock %}

View File

@@ -1,2 +0,0 @@
{{ attach_library('ufc/recent_fights_react') }}
<div id="recent-fights" class="container"></div>

Some files were not shown because too many files have changed in this diff Show More