type
stringclasses 7
values | content
stringlengths 4
9.55k
| repo
stringlengths 7
96
| path
stringlengths 4
178
| language
stringclasses 1
value |
---|---|---|---|---|
InterfaceDeclaration |
export interface SkillsSettingsHealth {
SkillProgress: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface HideoutManagement {
SkillPointsPerAreaUpgrade: number
SkillPointsPerCraft: number
ConsumptionReductionPerLevel: number
SkillBoostPercent: number
SkillPointsRate: SkillPointsRate
EliteSlots: EliteSlots
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface EliteSlots {
Generator: BitcoinFarmClass
AirFilteringUnit: BitcoinFarmClass
WaterCollector: BitcoinFarmClass
BitcoinFarm: BitcoinFarmClass
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface BitcoinFarmClass {
Slots: number
Container: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface SkillPointsRate {
Generator: SolarPowerClass
AirFilteringUnit: SolarPowerClass
WaterCollector: SolarPowerClass
SolarPower: SolarPowerClass
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface SolarPowerClass {
ResourceSpent: number
PointsGained: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Immunity {
ImmunityMiscEffects: number
ImmunityPoisonBuff: number
ImmunityPainKiller: number
HealthNegativeEffect: number
StimulatorNegativeBuff: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Intellect {
ExamineAction: number
SkillProgress: number
RepairAction: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface MagDrills {
RaidLoadedAmmoAction: number
RaidUnloadedAmmoAction: number
MagazineCheckAction: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Memory {
AnySkillUp: number
SkillProgress: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Metabolism {
HydrationRecoveryRate: number
EnergyRecoveryRate: number
IncreasePositiveEffectDurationRate: number
DecreaseNegativeEffectDurationRate: number
DecreasePoisonDurationRate: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Perception {
OnlineAction: number
UniqueLoot: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface RecoilControl {
RecoilAction: number
RecoilBonusPerLevel: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Search {
SearchAction: number
FindAction: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Strength {
SprintActionMin: number
SprintActionMax: number
MovementActionMin: number
MovementActionMax: number
PushUpMin: number
PushUpMax: number
FistfightAction: number
ThrowAction: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface StressResistance {
HealthNegativeEffect: number
LowHPDuration: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Surgery {
SurgeryAction: number
SkillProgress: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Throwing {
ThrowAction: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface TroubleShooting {
MalfRepairSpeedBonusPerLevel: number
SkillPointsPerMalfFix: number
EliteDurabilityChanceReduceMult: number
EliteAmmoChanceReduceMult: number
EliteMagChanceReduceMult: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Vitality {
DamageTakenAction: number
HealthNegativeEffect: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface WeaponTreatment {
WearChanceReducePerLevel: number
DurLossReducePerLevel: number
SkillPointsPerRepair: number
Filter: any[]
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Stamina {
Capacity: number
SprintDrainRate: number
BaseRestorationRate: number
JumpConsumption: number
GrenadeHighThrow: number
GrenadeLowThrow: number
AimDrainRate: number
AimRangeFinderDrainRate: number
OxygenCapacity: number
OxygenRestoration: number
WalkOverweightLimits: SprintSpeed
BaseOverweightLimits: SprintSpeed
SprintOverweightLimits: SprintSpeed
WalkSpeedOverweightLimits: SprintSpeed
CrouchConsumption: SprintSpeed
WalkConsumption: SprintSpeed
StandupConsumption: SprintSpeed
TransitionSpeed: SprintSpeed
SprintAccelerationLowerLimit: number
SprintSpeedLowerLimit: number
SprintSensitivityLowerLimit: number
AimConsumptionByPose: SprintSpeed
RestorationMultiplierByPose: SprintSpeed
OverweightConsumptionByPose: SprintSpeed
AimingSpeedMultiplier: number
WalkVisualEffectMultiplier: number
HandsCapacity: number
HandsRestoration: number
ProneConsumption: number
BaseHoldBreathConsumption: number
SoundRadius: SprintSpeed
ExhaustedMeleeSpeed: number
FatigueRestorationRate: number
FatigueAmountToCreateEffect: number
ExhaustedMeleeDamageMultiplier: number
FallDamageMultiplier: number
SafeHeightOverweight: number
SitToStandConsumption: number
StaminaExhaustionCausesJiggle: boolean
StaminaExhaustionStartsBreathSound: boolean
StaminaExhaustionRocksCamera: boolean
HoldBreathStaminaMultiplier: SprintSpeed
PoseLevelIncreaseSpeed: SprintSpeed
PoseLevelDecreaseSpeed: SprintSpeed
PoseLevelConsumptionPerNotch: SprintSpeed
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface StaminaDrainClass {
LowerLeftPoint: number
LowerRightPoint: number
LeftPlatoPoint: number
RightPlatoPoint: number
RightLimit: number
ZeroValue: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Armor {
class: Class[]
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Class {
resistance: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Content {
ip: string
port: number
root: string
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Exp {
heal: Heal
match_end: MatchEnd
loot: null
kill: Kill
level: Level
loot_attempts: LootAttempt[]
expForLockedDoorOpen: number
expForLockedDoorBreach: number
triggerMult: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Heal {
expForHeal: number
expForHydration: number
expForEnergy: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Kill {
combo: Combo[]
victimLevelExp: number
headShotMult: number
expOnDamageAllHealth: number
longShotDistance: number
bloodLossToLitre: number
victimBotLevelExp: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Combo {
percent: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Level {
exp_table: ExpTable[]
trade_level: number
savage_level: number
clan_level: number
mastering1: number
mastering2: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface ExpTable {
exp: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface LootAttempt {
k_exp: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface MatchEnd {
README: string
survived_exp_requirement: number
survived_seconds_requirement: number
survived_exp_reward: number
mia_exp_reward: number
runner_exp_reward: number
leftMult: number
miaMult: number
survivedMult: number
runnerMult: number
killedMult: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Handbook {
defaultCategory: string
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Rating {
levelRequired: number
limit: number
categories: RatingCategories
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface RatingCategories {
experience: boolean
kd: boolean
surviveRatio: boolean
avgEarnings: boolean
kills: boolean
raidCount: boolean
longestShot: boolean
timeOnline: boolean
inventoryFullCost: boolean
ragFairStanding: boolean
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface Tournament {
categories: TournamentCategories
limit: number
levelRequired: number
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
InterfaceDeclaration |
export interface TournamentCategories {
dogtags: boolean
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
EnumDeclaration |
export enum FireModeEnum {
Single = 'single'
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
EnumDeclaration |
export enum Type {
Preset = 'Preset'
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
EnumDeclaration |
export enum Side {
Bear = 'Bear',
Savage = 'Savage',
Usec = 'Usec'
} | BetrixDev/Tarkov-Helper | src/types/game/Globals.d.ts | TypeScript |
ArrowFunction |
() => {
it('linear-gradient', async () => {
var div1 = document.createElement('div');
Object.assign(div1.style, {
width: '200px',
height: '100px',
backgroundImage:
'linear-gradient(to left, #333, #333 50%, #eee 75%, #333 75%)',
});
append(BODY, div1);
await matchElementImageSnapshot(div1);
});
it('linear-gradient and remove', async (done) => {
var div1 = document.createElement('div');
Object.assign(div1.style, {
width: '200px',
height: '100px',
backgroundImage:
'linear-gradient(to left, #333, #333 50%, #eee 75%, #333 75%)',
});
append(BODY, div1);
await matchElementImageSnapshot(div1);
requestAnimationFrame(async () => {
div1.style.backgroundImage = '';
await expectAsync(div1.toBlob(1.0)).toMatchImageSnapshot();
done();
});
});
it('conic-gradient', async () => {
var div2 = document.createElement('div');
Object.assign(div2.style, {
width: '200px',
height: '200px',
backgroundImage:
'conic-gradient(from 0.25turn at 50% 30%,red 20deg, orange 130deg, yellow 90deg, green 180deg, blue 270deg)',
});
append(BODY, div2);
await matchElementImageSnapshot(div2);
});
it('radial-gradient', async () => {
var div3 = document.createElement('div');
Object.assign(div3.style, {
width: '200px',
height: '200px',
backgroundImage: 'radial-gradient(circle at 50% 50%, red 0%, yellow 20%, blue 80%)',
});
append(BODY, div3);
await matchElementImageSnapshot(div3);
});
it('linear-gradient-rotate', async () => {
var div4 = document.createElement('div');
Object.assign(div4.style, {
width: '200px',
height: '100px',
backgroundImage:
'linear-gradient(135deg, red, red 10%, blue 75%, yellow 75%)',
});
append(BODY, div4);
await matchElementImageSnapshot(div4);
});
it("linear-gradient to right with color stop of px", async () => {
let flexbox;
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to right, blue 0px, blue 40px, red 40px, red 120px, orange 120px, orange 200px)',
display: 'flex',
'justify-content': 'center',
height: '100px',
width: '300px',
'box-sizing': 'border-box',
},
},
);
BODY.appendChild(flexbox);
await matchViewportSnapshot();
});
it("linear-gradient to right with color stop of px and width not set", async () => {
let flexbox;
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to right, blue 0px, blue 40px, red 40px, red 120px, orange 120px, orange 200px)',
display: 'flex',
'justify-content': 'center',
height: '100px',
'box-sizing': 'border-box',
},
},
);
BODY.appendChild(flexbox);
await matchViewportSnapshot();
});
it("linear-gradient to bottom with color stop of px", async () => {
let flexbox;
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to bottom, blue 0px, blue 40px, red 40px, red 120px, orange 120px, orange 200px)',
display: 'flex',
'justify-content': 'center',
height: '200px',
width: '300px',
'box-sizing': 'border-box',
},
},
);
BODY.appendChild(flexbox);
await matchViewportSnapshot();
});
it("linear-gradient to bottom with color stop of px and height not set", async () => {
let flexbox;
let container = createElement(
'div',
{
style: {
display: 'flex',
width: '300px',
height: '300px',
}
}
);
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to bottom, blue 0px, blue 40px, red 40px, red 120px, orange 120px, orange 200px)',
width: '300px',
'box-sizing': 'border-box',
},
},
);
container.appendChild(flexbox);
BODY.appendChild(container);
await matchViewportSnapshot();
});
it("linear-gradient to right with color stop not set", async () => {
let flexbox;
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to right, blue, blue, red, red, orange, orange)',
display: 'flex',
'justify-content': 'center',
height: '100px',
width: '300px',
'box-sizing': 'border-box',
},
},
);
BODY.appendChild(flexbox);
await matchViewportSnapshot();
});
it("linear-gradient to bottom with color stop not set", async () => {
let flexbox;
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to bottom, blue, blue, red, red, orange, orange)',
display: 'flex',
'justify-content': 'center',
height: '200px',
width: '300px',
'box-sizing': 'border-box',
},
},
);
BODY.appendChild(flexbox);
await matchViewportSnapshot();
});
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
var div1 = document.createElement('div');
Object.assign(div1.style, {
width: '200px',
height: '100px',
backgroundImage:
'linear-gradient(to left, #333, #333 50%, #eee 75%, #333 75%)',
});
append(BODY, div1);
await matchElementImageSnapshot(div1);
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async (done) => {
var div1 = document.createElement('div');
Object.assign(div1.style, {
width: '200px',
height: '100px',
backgroundImage:
'linear-gradient(to left, #333, #333 50%, #eee 75%, #333 75%)',
});
append(BODY, div1);
await matchElementImageSnapshot(div1);
requestAnimationFrame(async () => {
div1.style.backgroundImage = '';
await expectAsync(div1.toBlob(1.0)).toMatchImageSnapshot();
done();
});
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
div1.style.backgroundImage = '';
await expectAsync(div1.toBlob(1.0)).toMatchImageSnapshot();
done();
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
var div2 = document.createElement('div');
Object.assign(div2.style, {
width: '200px',
height: '200px',
backgroundImage:
'conic-gradient(from 0.25turn at 50% 30%,red 20deg, orange 130deg, yellow 90deg, green 180deg, blue 270deg)',
});
append(BODY, div2);
await matchElementImageSnapshot(div2);
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
var div3 = document.createElement('div');
Object.assign(div3.style, {
width: '200px',
height: '200px',
backgroundImage: 'radial-gradient(circle at 50% 50%, red 0%, yellow 20%, blue 80%)',
});
append(BODY, div3);
await matchElementImageSnapshot(div3);
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
var div4 = document.createElement('div');
Object.assign(div4.style, {
width: '200px',
height: '100px',
backgroundImage:
'linear-gradient(135deg, red, red 10%, blue 75%, yellow 75%)',
});
append(BODY, div4);
await matchElementImageSnapshot(div4);
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
let flexbox;
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to right, blue 0px, blue 40px, red 40px, red 120px, orange 120px, orange 200px)',
display: 'flex',
'justify-content': 'center',
height: '100px',
width: '300px',
'box-sizing': 'border-box',
},
},
);
BODY.appendChild(flexbox);
await matchViewportSnapshot();
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
let flexbox;
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to right, blue 0px, blue 40px, red 40px, red 120px, orange 120px, orange 200px)',
display: 'flex',
'justify-content': 'center',
height: '100px',
'box-sizing': 'border-box',
},
},
);
BODY.appendChild(flexbox);
await matchViewportSnapshot();
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
let flexbox;
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to bottom, blue 0px, blue 40px, red 40px, red 120px, orange 120px, orange 200px)',
display: 'flex',
'justify-content': 'center',
height: '200px',
width: '300px',
'box-sizing': 'border-box',
},
},
);
BODY.appendChild(flexbox);
await matchViewportSnapshot();
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
let flexbox;
let container = createElement(
'div',
{
style: {
display: 'flex',
width: '300px',
height: '300px',
}
}
);
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to bottom, blue 0px, blue 40px, red 40px, red 120px, orange 120px, orange 200px)',
width: '300px',
'box-sizing': 'border-box',
},
},
);
container.appendChild(flexbox);
BODY.appendChild(container);
await matchViewportSnapshot();
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
let flexbox;
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to right, blue, blue, red, red, orange, orange)',
display: 'flex',
'justify-content': 'center',
height: '100px',
width: '300px',
'box-sizing': 'border-box',
},
},
);
BODY.appendChild(flexbox);
await matchViewportSnapshot();
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
async () => {
let flexbox;
flexbox = createElement(
'div',
{
id: 'flexbox',
style: {
background:
'linear-gradient(to bottom, blue, blue, red, red, orange, orange)',
display: 'flex',
'justify-content': 'center',
height: '200px',
width: '300px',
'box-sizing': 'border-box',
},
},
);
BODY.appendChild(flexbox);
await matchViewportSnapshot();
} | xu-baolin/kraken | integration_tests/specs/css/css-backgrounds/linear-gradient.ts | TypeScript |
ArrowFunction |
() => {
const intl = useIntl();
const { data: media, error: mediaError } = useSWR<MediaResultsResponse>(
'/api/v1/media?filter=allavailable&take=20&sort=mediaAdded'
);
const {
data: requests,
error: requestError,
} = useSWR<RequestResultsResponse>(
'/api/v1/request?filter=unavailable&take=10&sort=modified&skip=0'
);
return (
<>
<PageTitle title={intl.formatMessage(messages.discover)} />
<div className="slider-header">
<div className="slider-title">
<span>{intl.formatMessage(messages.recentlyAdded)}</span>
</div>
</div>
<Slider
sliderKey="media"
isLoading={!media && !mediaError} | danshilm/overseerr | src/components/Discover/index.tsx | TypeScript |
ArrowFunction |
(request) => (
<RequestCard
key={`request-slider-item-${request.id}` | danshilm/overseerr | src/components/Discover/index.tsx | TypeScript |
MethodDeclaration |
map( | danshilm/overseerr | src/components/Discover/index.tsx | TypeScript |
ArrowFunction |
(state = initialState, action) => {
switch (action.type) {
case HentDiskresjonskodeActionTypes.HENTER_DISKRESJONSKODE: {
return {
...initialState,
henter: true,
error: undefined,
};
}
case HentDiskresjonskodeActionTypes.DISKRESJONSKODE_HENTET: {
return {
...state,
henter: false,
hentet: true,
error: undefined,
data: {
diskresjonskode: action.data.toString(),
},
};
}
case HentDiskresjonskodeActionTypes.HENT_DISKRESJONSKODE_FEILET: {
return {
...state,
henter: false,
error: action.error,
};
}
default: {
return state;
}
}
} | navikt/syfomodiaperson | src/data/diskresjonskode/diskresjonskode.ts | TypeScript |
InterfaceDeclaration |
export interface DiskresjonskodeData {
diskresjonskode: string;
} | navikt/syfomodiaperson | src/data/diskresjonskode/diskresjonskode.ts | TypeScript |
InterfaceDeclaration |
export interface DiskresjonskodeState {
henter: boolean;
hentet: boolean;
error?: ApiError;
data: DiskresjonskodeData;
} | navikt/syfomodiaperson | src/data/diskresjonskode/diskresjonskode.ts | TypeScript |
ArrowFunction |
() => this.datasource.getPeople(0, 5) | davidglezz/ngrid | apps/libs/ngrid-examples/concepts/columns/factory/factory.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'pbl-columns-factory-example',
templateUrl: './factory.component.html',
styleUrls: ['./factory.component.scss'],
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
})
@Example('pbl-columns-factory-example', { title: 'Column Factory' })
export class ColumnsFactoryExample {
columns = columnFactory()
.default({ minWidth: 40 })
.table(
{ prop: 'id', width: '40px' },
{ prop: 'name' },
{ prop: 'gender', width: '50px' },
{ prop: 'email', width: '150px' },
{ prop: 'country' },
{ prop: 'language' },
)
.header(
{ id: 'header1', label: 'Header 1', width: '25%'},
{ id: 'header2', label: 'Header 2'},
)
.headerGroup(
{ prop: 'name', span: 1, label: 'Name & Gender' },
)
.header(
{ id: 'header3', label: 'Header 3'},
)
.headerGroup(
{ prop: 'id', span: 2, label: 'ID, Name & Gender' },
{ prop: 'country', span: 1, label: 'Country & Language' },
)
.footer(
{ id: 'footer1', label: 'Footer 1', width: '25%'},
{ id: 'footer2', label: 'Footer 2'},
)
.footer(
{ id: 'footer3', label: 'Footer 3'},
)
.build();
ds = createDS<Person>().onTrigger( () => this.datasource.getPeople(0, 5) ).create();
constructor(private datasource: DemoDataSource) { }
} | davidglezz/ngrid | apps/libs/ngrid-examples/concepts/columns/factory/factory.component.ts | TypeScript |
ArrowFunction |
() => {
const { used } = this.state;
const val = (used + 10) % 100;
this.setState({
spacer: val < 10 ? ' ' : '',
used: val
});
} | doc22940/patternfly-react | packages/react-integration/demo-app-ts/src/components/demos/DonutUtilizationChartDemo/DonutUtilizationSimpleRightDemo.tsx | TypeScript |
ClassDeclaration |
export class DonutUtilizationSimpleRightDemo extends React.Component<{}, { used: number; spacer: string }> {
interval: number;
constructor(props: {}) {
super(props as null);
this.state = {
spacer: '',
used: 0
};
}
componentDidMount() {
window.scrollTo(0, 0);
this.interval = window.setInterval(() => {
const { used } = this.state;
const val = (used + 10) % 100;
this.setState({
spacer: val < 10 ? ' ' : '',
used: val
});
}, 1000);
}
componentWillUnmount() {
clearInterval(this.interval);
}
render() {
const { spacer, used } = this.state;
return (
<div>
<div style={{ backgroundColor: 'white', height: '230px', width: '435px' }} | doc22940/patternfly-react | packages/react-integration/demo-app-ts/src/components/demos/DonutUtilizationChartDemo/DonutUtilizationSimpleRightDemo.tsx | TypeScript |
MethodDeclaration |
componentDidMount() {
window.scrollTo(0, 0);
this.interval = window.setInterval(() => {
const { used } = this.state;
const val = (used + 10) % 100;
this.setState({
spacer: val < 10 ? ' ' : '',
used: val
});
}, 1000);
} | doc22940/patternfly-react | packages/react-integration/demo-app-ts/src/components/demos/DonutUtilizationChartDemo/DonutUtilizationSimpleRightDemo.tsx | TypeScript |
MethodDeclaration |
componentWillUnmount() {
clearInterval(this.interval);
} | doc22940/patternfly-react | packages/react-integration/demo-app-ts/src/components/demos/DonutUtilizationChartDemo/DonutUtilizationSimpleRightDemo.tsx | TypeScript |
MethodDeclaration |
render() {
const { spacer, used } = this.state;
return (
<div>
<div style={{ backgroundColor: 'white', height: '230px', width: '435px' }} | doc22940/patternfly-react | packages/react-integration/demo-app-ts/src/components/demos/DonutUtilizationChartDemo/DonutUtilizationSimpleRightDemo.tsx | TypeScript |
InterfaceDeclaration |
interface MUIDataTableData {
index: number;
data: Array<object | number[] | string[]>;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
interface MUIDataTableStateRows {
data: string[];
lookup: any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableState {
announceText: string | null;
activeColumn: string | null;
page: number;
rowsPerPage: number;
filterList: string[][];
selectedRows: MUIDataTableStateRows;
expandedRows: MUIDataTableStateRows;
showResponsive: boolean;
searchText: string | null;
rowsPerPageOptions: number[];
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
interface MUIDataTableMeta {
rowIndex: number;
columnIndex: number;
columnData: MUIDataTableColumnOptions[];
rowData: any[];
tableData: MUIDataTableData[];
tableState: MUIDataTableState;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
interface MUIDataTableCustomHeadRenderer extends MUIDataTableColumn {
index: number;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
interface MUIDataTableTextLabelsBody {
noMatch: string;
toolTip: string;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
interface MUIDataTableTextLabelsPagination {
next: string;
previous: string;
rowsPerPage: string;
displayRows: string;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
interface MUIDataTableTextLabelsToolbar {
search: string;
downloadCsv: string;
print: string;
viewColumns: string;
filterTable: string;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
interface MUIDataTableTextLabelsFilter {
all: string;
title: string;
reset: string;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
interface MUIDataTableTextLabelsViewColumns {
title: string;
titleAria: string;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
interface MUIDataTableTextLabelsSelectedRows {
text: string;
delete: string;
deleteAria: string;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableColumn {
name: string;
label?: string;
options?: MUIDataTableColumnOptions;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableTextLabels {
body: MUIDataTableTextLabelsBody;
pagination: MUIDataTableTextLabelsPagination;
toolbar: MUIDataTableTextLabelsToolbar;
filter: MUIDataTableTextLabelsFilter;
viewColumns: MUIDataTableTextLabelsViewColumns;
selectedRows: MUIDataTableTextLabelsSelectedRows;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableColumnOptions {
display?: 'true' | 'false' | 'excluded';
empty?: boolean;
filter?: boolean;
filterList?: string[];
filterOptions?: string[];
filterType?: 'dropdown' | 'checkbox' | 'multiselect' | 'textField';
sort?: boolean;
searchable?: boolean;
sortDirection?: 'asc' | 'desc';
print?: boolean;
download?: boolean;
viewColumns?: boolean;
hint?: string;
customHeadRender?: (columnMeta: MUIDataTableCustomHeadRenderer, updateDirection: (params: any) => any) => string | React.ReactNode;
customBodyRender?: (value: any, tableMeta: MUIDataTableMeta, updateValue: (s: any, c: any, p: any) => any) => string | React.ReactNode;
setCellProps?: (cellValue: string, rowIndex: number, columnIndex: number) => object;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableOptions {
caseSensitive?: boolean;
count?: number;
customFooter?: (rowCount: number, page: number, rowsPerPage: number, changeRowsPerPage: () => any, changePage: number) => React.ReactNode;
customSearch?: (searchQuery: string, currentRow: any[], columns: any[]) => boolean;
customSort?: (data: any[], colIndex: number, order: string) => any[];
customToolbar?: () => React.ReactNode;
customToolbarSelect?: (
selectedRows: {
data: Array<{ index: number; dataIndex: number }>,
lookup: { [key: number]: boolean }
},
displayData: Array<{ data: any[]; dataIndex: number }>,
setSelectedRows: (rows: number[]) => void
) => React.ReactNode;
download?: boolean;
downloadOptions?: { filename: string; separator: string };
elevation?: number;
expandableRows?: boolean;
filter?: boolean;
filterType?: 'dropdown' | 'checkbox' | 'multiselect' | 'textField';
fixedHeader?: boolean;
isRowSelectable?: (dataIndex: number) => boolean;
onCellClick?: (colData: any, cellMeta: { colIndex: number, rowIndex: number, dataIndex: number, event: React.MouseEvent }) => void;
onChangePage?: (currentPage: number) => void;
onChangeRowsPerPage?: (numberOfRows: number) => void;
onColumnSortChange?: (changedColumn: string, direction: string) => void;
onColumnViewChange?: (changedColumn: string, action: string) => void;
onDownload?: (buildHead: (columns: any) => string, buildBody: (data: any) => string, columns: any, data: any) => string;
onFilterChange?: (changedColumn: string, filterList: any[]) => void;
onRowClick?: (rowData: string[], rowMeta: { dataIndex: number; rowIndex: number }) => void;
onRowsDelete?: (rowsDeleted: any[]) => void;
onRowsSelect?: (currentRowsSelected: any[], rowsSelected: any[]) => void;
onSearchChange?: (searchText: string) => void;
onTableChange?: (action: string, tableState: MUIDataTableState) => void;
page?: number;
pagination?: boolean;
print?: boolean;
renderExpandableRow?: (rowData: string[], rowMeta: { dataIndex: number; rowIndex: number }) => React.ReactNode;
resizableColumns?: boolean;
responsive?: 'stacked' | 'scroll';
rowHover?: boolean;
rowsPerPage?: number;
rowsPerPageOptions?: number[];
rowsSelected?: any[];
search?: boolean;
selectableRows?: boolean;
serverSide?: boolean;
setRowProps?: (row: any[], rowIndex: number) => object;
sort?: boolean;
sortFilterList?: boolean;
textLabels?: MUIDataTableTextLabels;
viewColumns?: boolean;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableProps {
title: string | React.ReactNode;
columns: MUIDataTableColumnDef[];
data: Array<object | number[] | string[]>;
options?: MUIDataTableOptions;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTablePopover {
action?: (...args: any) => any;
elevation?: number;
option?: boolean;
onClose?: (...args: any) => any;
onExited?: (...args: any) => any;
anchorEl?: React.ReactNode;
ref?: any;
anchorOrigin?: any;
transformOrigin?: any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableBody {
data: Array<object | number[] | string[]>;
count: number;
columns: MUIDataTableColumnDef[];
options: object;
filterList?: string[][];
onRowClick?: (rowData: string[], rowMeta: { dataIndex: number; rowIndex: number }) => void;
selectedRows?: object;
selectRowUpdate?: (...args: any) => any;
searchText?: string;
toggleExpandRow?: (...args: any) => any;
classes: object;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableBodyCell {
classes?: object;
colIndex?: number;
columnHeader?: any;
options?: object;
dataIndex?: number;
rowIndex?: number;
className?: string;
children?: any;
otherProps?: any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableBodyRow {
options: object;
onClick?: (...args: any) => any;
rowSelected?: boolean;
classes?: object;
className?: string;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableFilter {
filterData: any[];
filterList?: string[][];
options: object;
onFilterUpdate?: (...args: any) => any;
onFilterRest?: (...args: any) => any;
classes?: object;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableFilterList {
filterList: string[][];
onFilterUpdate?: (...args: any) => any;
classes?: object;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableFooter {
options?: object;
rowCount?: number;
page?: number;
rowsPerPage?: number;
changeRowsPerPage?: (...args: any) => any;
changePage?: any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableHead {
classes?: object;
columns?: MUIDataTableColumnDef[];
count?: number;
options?: object;
data?: any[];
page?: any;
setCellRef?: any;
selectedRows?: any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableHeadCell {
classes?: object;
options: object;
sortDirection?: 'asc' | 'desc';
toggleSort: (...args: any) => any;
sort: boolean;
hint: string;
children?: any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableHeadRow {
classes?: object;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTablePagination {
count: number;
options: object;
page: number;
rowsPerPage: number;
changeRowsPerPage: (...args: any) => any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableResize {
classes?: object;
options?: object;
rowSelected?: boolean;
setResizeable?: (...args: any) => any;
updateDividers?: (...args: any) => any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableSearch {
classes?: object;
options?: object;
onHide?: (...args: any) => any;
onSearch?: (...args: any) => any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableSelectCell {
checked: boolean;
fixedHeader: boolean;
isHeaderCell?: boolean;
expandableOn?: boolean;
selectableOn?: boolean;
isRowExpanded?: boolean;
isRowSelectable?: boolean;
onChange?: (...args: any) => any;
onExpand?: (...args: any) => any;
classes?: object;
otherProps?: any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableToolbar {
data?: any[];
classes?: object;
columns: MUIDataTableColumnDef[];
options?: object;
setTableActions?: (...args: any) => any;
searchTextUpdate?: (...args: any) => any;
filterData?: any;
filterList?: string[][];
filterUpdate?: any;
resetFilters?: any;
toggleViewColumn?: any;
title?: any;
tableRef?: (...args: any) => any;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |
InterfaceDeclaration |
export interface MUIDataTableToolbarSelect {
options: object;
rowSelected?: boolean;
displayData?: any;
onRowsDelete?: (...args: any) => any;
selectRowUpdate?: (...args: any) => any;
classes?: object;
} | JaceyPenny/DefinitelyTyped | types/mui-datatables/index.d.ts | TypeScript |