type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
() => { expect({ value: null }).toEqual( jasmine.objectContaining({ value: jasmine.empty(), }) ); }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ArrowFunction
() => { expect({ value: null }).toEqual( jasmine.objectContaining({ value: jasmine.notEmpty(), }) ); }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ArrowFunction
() => { expect({ value: null, label: 'abcd' }).toEqual( jasmine.objectContaining({ value: jasmine.anything(), }) ); expect({ value: null }).toEqual( jasmine.objectContaining({ value: 'any value should ok', }) ...
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ArrowFunction
() => { describe("https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34080", () => { interface Test { f(): string; f(x: any): number; } it("has a way to opt out of inferred function types", () => { const spyObject: jasmine.NonTypedSpyObj<Test> = j...
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ArrowFunction
() => { interface Test { f(): string; f(x: any): number; } it("has a way to opt out of inferred function types", () => { const spyObject: jasmine.NonTypedSpyObj<Test> = jasmine.createSpyObj<Test>("spyObject", ["f"]); spyObject.f.and.returnValue("...
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ArrowFunction
() => { const spyObject: jasmine.NonTypedSpyObj<Test> = jasmine.createSpyObj<Test>("spyObject", ["f"]); spyObject.f.and.returnValue("a string - working"); const spy2 = jasmine.createSpyObj<Test>(['f']); spy2.f.and.returnValue("can return string" as any); }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ArrowFunction
() => { const obj: Test = null!; const spy1: jasmine.Spy = spyOn(obj, "f"); spy1.and.returnValue("can return string"); const spy2 = spyOn(obj, "f"); spy2.and.returnValue("can return string" as any); }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ArrowFunction
() => { // from boot.js const env = jasmine.getEnv(); const htmlReporter = new jasmine.HtmlReporter(); env.addReporter(htmlReporter); const specFilter = new jasmine.HtmlSpecFilter(); env.specFilter = (spec) => { return specFilter.matches(spec.getFullName()); }; const currentW...
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ArrowFunction
(spec) => { return specFilter.matches(spec.getFullName()); }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ArrowFunction
() => { if (currentWindowOnload) { (currentWindowOnload as any)(null); } htmlReporter.initialize(); env.execute(); }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ClassDeclaration
class MyClass { }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ClassDeclaration
class Tape { private rewindTo: number; play(): void { } pause(): void { } rewind(pos: number): void { this.rewindTo = pos; } stop(): void { } readonly isPlaying: boolean; // spy obj makes this writable }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ClassDeclaration
class Test { }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ClassDeclaration
abstract class TestClassBase { }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ClassDeclaration
class TestClass extends TestClassBase { }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ClassDeclaration
class MyClass { constructor(readonly foo: string) { } }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ClassDeclaration
class Base { service() { } }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
ClassDeclaration
class Super extends Base { service2() { } }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
InterfaceDeclaration
interface Test { method<T>(): Array<Box<T>>; }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
InterfaceDeclaration
interface Box<T> { value: T; }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
InterfaceDeclaration
interface Test { fn1(): void; fn2(param1: number): number; }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
InterfaceDeclaration
interface fooType { a: number; b: number; bar: string; }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
InterfaceDeclaration
interface nestedFooType { nested: { a: number; b: number; bar: string; }; }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
InterfaceDeclaration
interface Matchers<T> { toBeGoofy(expected?: Expected<T>): boolean; toBeWithinRange(expected?: Expected<T>, floor?: number, ceiling?: number): boolean; }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
InterfaceDeclaration
interface Template { method1(): number; method2(): void; readonly property1: string; property2: number; }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
InterfaceDeclaration
interface Test { f(): string; f(x: any): number; }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
MethodDeclaration
play(): void { }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
MethodDeclaration
pause(): void { }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
MethodDeclaration
rewind(pos: number): void { this.rewindTo = pos; }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
MethodDeclaration
stop(): void { }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
MethodDeclaration
method() { return 'baz'; }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
MethodDeclaration
service() { }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
MethodDeclaration
service2() { }
Bat-Orshikh/DefinitelyTyped
types/jasmine/ts3.1/jasmine-tests.ts
TypeScript
FunctionDeclaration
export default function Input(props: Props): JSX.Element { const { id, label, value, onChange, invalid = false, className, validationMessage, type = 'text', ...inputProps } = props; return ( <div className={classnames('input-group', { invalid })}> {label && ( ...
jtang376/retroquest
ui/src/react/components/input/Input.tsx
TypeScript
TypeAliasDeclaration
type Props = ComponentPropsWithoutRef<'input'> & { value?: string; label?: string; invalid?: boolean; validationMessage?: string; };
jtang376/retroquest
ui/src/react/components/input/Input.tsx
TypeScript
MethodDeclaration
classnames('input-group', { invalid })
jtang376/retroquest
ui/src/react/components/input/Input.tsx
TypeScript
MethodDeclaration
classnames('input-text', className)
jtang376/retroquest
ui/src/react/components/input/Input.tsx
TypeScript
ClassDeclaration
@Injectable() export class OrderDetailsService { constructor( @InjectRepository(OrderDetails) private repository: Repository<OrderDetails>, ) {} async findOne(where: any): Promise<OrderDetails> { return await this.repository.findOne({ where }); } async find(query: any = null, params: any = null...
stokaboka/la-backend
src/order-details/order-details.service.ts
TypeScript
MethodDeclaration
async findOne(where: any): Promise<OrderDetails> { return await this.repository.findOne({ where }); }
stokaboka/la-backend
src/order-details/order-details.service.ts
TypeScript
MethodDeclaration
async find(query: any = null, params: any = null): Promise<any> { const fields: string[] = 'num, course, target, hours, price, cost, timing, rem'.split(', '); const queryParams = QueryParams.prepare(query, fields, params); const [result, total] = await this.repository.findAndCount(queryParams); retu...
stokaboka/la-backend
src/order-details/order-details.service.ts
TypeScript
MethodDeclaration
async save(orderDetails: OrderDetailsDto): Promise<any> { try { return await this.repository.save(orderDetails); } catch (error) { return { error, orderDetails }; } }
stokaboka/la-backend
src/order-details/order-details.service.ts
TypeScript
MethodDeclaration
async remove(orderDetails: OrderDetailsDto): Promise<any> { const { id } = orderDetails; try { return await this.repository.delete({id}); } catch (error) { return { error, orderDetails }; } }
stokaboka/la-backend
src/order-details/order-details.service.ts
TypeScript
MethodDeclaration
async removeOrder(idOrder: number): Promise<any> { try { return await this.repository.delete({idOrder}); } catch (error) { return { error, idOrder }; } }
stokaboka/la-backend
src/order-details/order-details.service.ts
TypeScript
FunctionDeclaration
export function createTopNav( data: DataPublicPluginStart, extraConfig: RegisteredTopNavMenuData[], i18n: I18nStart ) { return (props: TopNavMenuProps) => { const relevantConfig = extraConfig.filter( dataItem => dataItem.appName === undefined || dataItem.appName === props.appName ); const con...
AlexCornigeanu/kibana
src/plugins/navigation/public/top_nav_menu/create_top_nav_menu.tsx
TypeScript
ArrowFunction
(props: TopNavMenuProps) => { const relevantConfig = extraConfig.filter( dataItem => dataItem.appName === undefined || dataItem.appName === props.appName ); const config = (props.config || []).concat(relevantConfig); return ( <i18n.Context> <TopNavMenu {...props} data={data} config...
AlexCornigeanu/kibana
src/plugins/navigation/public/top_nav_menu/create_top_nav_menu.tsx
TypeScript
ArrowFunction
dataItem => dataItem.appName === undefined || dataItem.appName === props.appName
AlexCornigeanu/kibana
src/plugins/navigation/public/top_nav_menu/create_top_nav_menu.tsx
TypeScript
ClassDeclaration
export class TabPage { changeTabAnimation = $('.mat-tab-labels div[class="mat-ripple-element"]'); public disabledContentNodeSelectorTabInfoIcon = TestElement.byCss('[data-automation-id="adf-content-node-selector-disabled-tab-info-icon"]'); async clickTabByLabel(tabLabel): Promise<void> { const u...
silverskyvicto/alfresco-ng2-components
lib/testing/src/lib/protractor/core/pages/form/widgets/tab.page.ts
TypeScript
MethodDeclaration
async clickTabByLabel(tabLabel): Promise<void> { const user = element(by.cssContainingText('.mat-tab-label-content', tabLabel)); await BrowserActions.click(user); await BrowserVisibility.waitUntilElementIsNotVisible(this.changeTabAnimation); }
silverskyvicto/alfresco-ng2-components
lib/testing/src/lib/protractor/core/pages/form/widgets/tab.page.ts
TypeScript
MethodDeclaration
async checkTabIsDisplayedByLabel(tabLabel): Promise<void> { await BrowserVisibility.waitUntilElementIsVisible(element(by.cssContainingText('.mat-tab-label-content', tabLabel))); }
silverskyvicto/alfresco-ng2-components
lib/testing/src/lib/protractor/core/pages/form/widgets/tab.page.ts
TypeScript
MethodDeclaration
async checkTabIsNotDisplayedByLabel(tabLabel): Promise<void> { await BrowserVisibility.waitUntilElementIsNotVisible(element(by.cssContainingText('.mat-tab-label-content', tabLabel))); }
silverskyvicto/alfresco-ng2-components
lib/testing/src/lib/protractor/core/pages/form/widgets/tab.page.ts
TypeScript
ArrowFunction
() => { return ( <PatternLayout pattern={Pattern.StackedCards}> <Head> <meta name="description" content="Create stacked cards with CSS" /> <meta name="og:description" content="Create stacked cards with CSS" /> <meta name="twitter:description" cont...
1milligram/csslayout
pages/stacked-cards/index.tsx
TypeScript
ArrowFunction
(_, index) => { return ( <div key={index} style={{ backgroundColor: '#fff', border:...
1milligram/csslayout
pages/stacked-cards/index.tsx
TypeScript
MethodDeclaration
Array(5)
1milligram/csslayout
pages/stacked-cards/index.tsx
TypeScript
ClassDeclaration
@Entity() export class User { @PrimaryColumn('uuid') id: string; @Column({ unique: true }) username: string; @Column() password: string; }
Fasara/nestjs-task-management
src/auth/user.entity.ts
TypeScript
FunctionDeclaration
export default function Band({ id, onChange, band }: Props) { const sliders = useTypedSelector(Selectors.getSliders); const value = sliders[band]; const backgroundPosition = useMemo(() => { const { x, y } = spriteOffsets(spriteNumber(value)); const xOffset = x * 15; // Each sprite is 15px wide const ...
0x5066/webamp
packages/webamp/js/components/EqualizerWindow/Band.tsx
TypeScript
ArrowFunction
(value: number): number => { const percent = value / MAX_VALUE; return Math.round(percent * 27); }
0x5066/webamp
packages/webamp/js/components/EqualizerWindow/Band.tsx
TypeScript
ArrowFunction
(number: number): { x: number; y: number } => { const x = number % 14; const y = Math.floor(number / 14); return { x, y }; }
0x5066/webamp
packages/webamp/js/components/EqualizerWindow/Band.tsx
TypeScript
ArrowFunction
() => { const style = { width: 11, height: 11, marginLeft: 1 }; return <div style={style} className="slider-handle" />; }
0x5066/webamp
packages/webamp/js/components/EqualizerWindow/Band.tsx
TypeScript
ArrowFunction
() => { const { x, y } = spriteOffsets(spriteNumber(value)); const xOffset = x * 15; // Each sprite is 15px wide const yOffset = y * 65; // Each sprite is 15px tall return `-${xOffset}px -${yOffset}px`; }
0x5066/webamp
packages/webamp/js/components/EqualizerWindow/Band.tsx
TypeScript
InterfaceDeclaration
interface Props { id: string; band: SliderType; onChange(value: number): void; }
0x5066/webamp
packages/webamp/js/components/EqualizerWindow/Band.tsx
TypeScript
ArrowFunction
( props: AntdIconProps, ref: React.MutableRefObject<HTMLSpanElement>, ) => <AntdIcon {...props}
infra-fe/infra-design-icons
packages/icons-react/src/icons/IEmail.tsx
TypeScript
ArrowFunction
(eventInfoVersion) => { assert.equal(expected, getDroppedObjectsText(eventInfoVersion)); }
123youyouer/cockroach
pkg/ui/src/util/events.spec.ts
TypeScript
ArrowFunction
(type, key1) => ( type.map((data, key2) => ( data.version !== "" && data.type === "draft" && ( <GridItem span={6}> <Card className="pf-m-light pf-site-background-medium pf-c-card-draft"> ...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(data, key2) => ( data.version !== "" && data.type === "draft" && ( <GridItem span={6}> <Card className
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
item => ( <TextList component={TextListVariants.ul}> <TextListItem component
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(item) => ( <TextList component={TextListVariants.ul}> <TextListItem component
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(type, key1) => ( type.map((data, key2) => ( data.version !== "" && data.type === "release" && ( <GridItem span={6}> <div className="pf-c-card pf-m-selectable pf-m-selected"> ...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(data, key2) => ( data.version !== "" && data.type === "release" && ( <GridItem span={6}> <div className
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
item => ( <TextList component={TextListVariants.ul}> <TextListItem component
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(item) => ( <TextList component={TextListVariants.ul}> <TextListItem component
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(option, key) => ( <FormSelectOption key={key}
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(option, key) => ( <FormSelectOption key={"usecase_" + key}
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
() => { // TODO: need a better fix for the 404 error. if (this.props.modulePath !== "") { this.getValidations("draft") this.getValidations("released") // fetchpath needs to start from modulePath instead of modulePath/en_US. // We need extact the module uu...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
responseJSON => { const en_US = this.getHarrayChildNamed(responseJSON, "en_US") const source = this.getHarrayChildNamed(en_US, "source") const variants = this.getHarrayChildNamed(en_US, "variants") const firstVariant = this.getHarrayChild...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(object, name) => { for (const childName in object.__children__) { if (object.__children__.hasOwnProperty(childName)) { // Not sure what this does, but makes tslin happy const child = object.__children__[childName] if (child.__name__ === name) { r...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(buttonText) => { // Validate productValue before Publish if (this.props.productInfo !== undefined && this.props.productInfo.trim() === "" && buttonText === "Publish") { this.setState({ canChangePublishState: false, publishAlertVisible: true }) } else { if (this.state.c...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
response => { if (response.status === 201 || response.status === 200) { console.log(buttonText + " works: " + response.status) this.setState({ canChangePublishState: true, publishAlertVisible: fa...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
response => this.props.onGetUrl(response.path)
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(buttonText) => { let docPath = "" docPath = "/pantheon/preview/" + (buttonText === "Preview" ? "latest" : "released") + "/" + this.props.variantUUID return window.open(docPath) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(event) => { this.setState({ isModalOpen: !this.state.isModalOpen }) // process path const target = event.nativeEvent.target if (target.id !== undefined && target.id.trim().length > 0) { this.getMetadata(event) } }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
() => { this.setState({ isModalOpen: false }) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(event) => { // save form data if (this.state.product.value === undefined || this.state.product.value === "Select a Product" || this.state.product.value === "" || this.state.productVersion.uuid === undefined || this.state.productVersion.label === "Select a Version" || this.state.productVers...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
response => { if (response.status === 201 || response.status === 200) { // console.log("successful edit ", response.status) this.handleModalClose() this.setState({ canChangePublishState: true, pu...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(productValue: string, event: React.FormEvent<HTMLSelectElement>) => { let productLabel = "" const target = event.nativeEvent.target if (target !== null) { // Necessary because target.selectedOptions produces a compiler error but is valid // tslint:disable-next-line: no-...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
json => { this.setState({ allProductVersions: json.__children__ }) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(value: string, event: React.FormEvent<HTMLSelectElement>) => { if (event.target !== null) { // Necessary because target.selectedOptions produces a compiler error but is valid // tslint:disable-next-line: no-string-literal const selectedOption = event.target["selectedOptions...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(usecaseValue, event) => { this.setState({ usecaseValue }) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
urlFragment => { this.setState({ urlFragment }) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
keywords => { this.setState({ keywords }) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
() => { const path = "/content/products.harray.1.json" const products = new Array() fetch(path) .then((response) => { if (response.ok) { return response.json() } else { throw new Error(response.statusText) ...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(response) => { if (response.ok) { return response.json() } else { throw new Error(response.statusText) } }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
responseJSON => { for (const product of responseJSON.__children__) { if (product.name !== undefined) { products.push({ label: product.name, value: product.__name__ }) } } this.setState({ ...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(error) => { console.log(error) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
() => { this.setState({ isMissingFields: false }) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
() => { this.setState({ successAlertVisible: false }) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
() => { this.setState({ publishAlertVisible: false }) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
() => { this.setState({ unpublishAlertForModuleVisible: false }) }
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
(event) => { let versionValue = "" let metadataPath = "" if (event !== undefined && event.target.id !== undefined) { versionValue = event.target.id } else { versionValue = "draft" } metadataPath = this.state.variantPath + "/" + versionValue ...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
metadataResults => { if (JSON.stringify(metadataResults) !== "[]") { this.setState({ metadataPath }) // Process results // Remove leading slash. if (metadataResults.urlFragment) { let urlFragment = m...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript
ArrowFunction
responseJSON => { this.setState({ product: { label: responseJSON.ancestors[1].name, value: responseJSON.ancestors[1].__name__ }, productVersion: { label: responseJSON.name, uuid: responseJSON["jcr:uuid"] } }) this.populateProductVe...
laubai/pantheon
pantheon-bundle/frontend/src/app/versions.tsx
TypeScript