This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Machine({ | |
id: 'KidsOnboarding', | |
initial: 'KIDS_ONBOARDING', | |
states: { | |
HOME: { | |
on: { | |
RUN_APP: 'KIDS_ONBOARDING' | |
} | |
}, | |
KIDS_ONBOARDING: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Machine({ | |
id: 'AuthorizeDevice', | |
initial: 'chooseMethod', | |
states: { | |
chooseMethod: { | |
on: { | |
CHOOSE_ADD_DEVICE: 'addDeviceForm', | |
} | |
}, | |
addDeviceForm: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const variables = ` | |
--color: blue; | |
`; | |
export const GlobalStyles = createGlobalStyle` | |
html { | |
background: red; | |
${variables} | |
} | |
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(() => { | |
if (!this.nodes.textarea) return; | |
this.highlightElement(this.nodes.textarea); | |
}, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useEffect(() => { | |
if (!('MutationObserver' in window)) return setLoaded(true); | |
const elem = divRef.current; | |
const observer = new MutationObserver(mutationList => { | |
const iframeAdded = mutationList.reduce<Node | undefined>((acc, curr) => { | |
const iframe = Array.from(curr.addedNodes).find( | |
node => node.nodeName === 'IFRAME', | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scrollObservable.pipe( | |
mergeMap(value => { | |
const { currentPosition, maxPosition } = value; | |
console.log("VAL: ", value); | |
if(currentPosition >= maxPosition) { | |
return getPokemon$(10).pipe( | |
map(value2 => console.log("VAL2: ", value2)) | |
) | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { OmitType, PickType, PartialType } from '@nestjs/mapped-types'; | |
import { ContractorDto, ContractorSchema } from './contractor.dto'; | |
import { IncomeDto, IncomeSchema } from './income.dto'; | |
import { ExpensesDto, ExpensesSchema } from './expenses.dto'; | |
import { | |
IdValidator, | |
PositionValidator, | |
DateOfEventValidator, | |
DescriptionValidator, | |
RegistryValidator, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { OmitType, PickType, PartialType } from '@nestjs/mapped-types'; | |
import { ContractorDto, ContractorSchema } from './contractor.dto'; | |
import { IncomeDto, IncomeSchema } from './income.dto'; | |
import { ExpensesDto, ExpensesSchema } from './expenses.dto'; | |
import { | |
IdValidator, | |
PositionValidator, | |
DateOfEventValidator, | |
DescriptionValidator, | |
RegistryValidator, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "WprRmr8SwaJx1dNEqQn4n", | |
"position": 3, | |
"dateOfEvent": "2021-02-23", | |
"registry": "hi12300", | |
"description": "desc1234", | |
"contractor": { | |
"name": "John", | |
"surname": "FooBar", | |
"companyName": "Foo Company", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
ContractorAddressValidator, | |
ContractorCompanyValidator, | |
ContractorNameValidator, | |
ContractorSurnameValidator, | |
ContractorTaxIdValidator, | |
} from '../helpers/invoiceValidation.decorator'; | |
export class ContractorDto { | |
@ContractorNameValidator() name: string; |
NewerOlder