This file contains hidden or 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
<key>com.apple.developer.associated-domains</key> | |
<array> | |
<string>applinks:launchpad.xxx.us</string> | |
<string>applinks:launchpad.xxx.us</string> | |
<string>applinks:launchpad.xxx.com</string> | |
</array> |
This file contains hidden or 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
//a | |
<SectionsEditor | |
assetState={assetState} | |
dispatchToAssetState={dispatchToAssetState} | |
key={index} | |
section={section} | |
sectionIndex={index} | |
canAddSection={canAddSection} | |
canMoveSection={canMoveSection} | |
canRemoveSection={canRemoveSection} |
This file contains hidden or 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
{ | |
"logoUrl": "https://s3.amazonaws.com/playbook-us/public/images/scrimmage-logo-dark.svg", | |
"background": "purple linear-gradient(125deg, #194795, #0C2652)", | |
"textColor": "#232323", | |
"actionColor": "#0073FF", | |
"buttonBackground": "#0073FF", | |
"buttonColor": "#ffffff" | |
} |
This file contains hidden or 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
type Falsey = undefined | null | 0 | false | ''; | |
/** Returns a new array with falsey values removed */ | |
export function compact<T>(array: (T | Falsey)[]): T[] { | |
// .ts is not smart enough about filter() | |
return array.filter(item => !!item) as T[]; | |
} |
This file contains hidden or 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
// https://stackoverflow.com/questions/46641380/exhaustive-map-over-a-union-of-typed-objects | |
// https://www.typescriptlang.org/docs/handbook/advanced-types.html | |
export function getInteractiveSection2({ question }: { | |
question: Question; | |
}) { | |
switch(question.type) { | |
case 'multiple-choice': | |
return <ChoicesSection {...buildItChoice({ question })} />; | |
case 'fill-in-the-blank': |
This file contains hidden or 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
/* | |
griz asks: | |
something I didn't get | |
question isn't in the object passed in, and the order of the args doesn't match | |
seems like that'd be a type error? | |
*/ | |
export function MatchingQuestion({ onSelectChoice, onBreakMatch, questionState }: { |
This file contains hidden or 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 { typeSwitch } from './typeSwitch'; | |
interface Circle { | |
type: 'circle'; | |
radius: number; | |
} | |
interface Square { | |
type: 'square'; | |
width: number; | |
} | |
type Shape = Circle | Square; |
This file contains hidden or 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
// X) | |
it('JUST works', () => { | |
let result = appendQueryParams('rat.com', { a: 1, b: 'cool' }) | |
expect(result).toEqual('rat.com?a=1&b=cool') | |
]) | |
// Y) | |
it('JUST works', () => { | |
expect( | |
appendQueryParams('rat.com', { a: 1, b: 'cool' }) |
This file contains hidden or 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
export function buildSequenceItem({ activity, baseUrl, sequenceItem }: { | |
activity: Activity, | |
baseUrl: string, | |
sequenceItem: SequenceItem, | |
}): SequenceItemUI { | |
} | |
export function buildQuestionPool( |
This file contains hidden or 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
export function Logo({ src }: { | |
src: string, | |
}) { | |
return ifPresent(src, ( | |
<div className='web-activity-header-logo'> | |
<img src={src} className='web-activity-header-img' /> | |
</div> | |
)); | |
} |
NewerOlder