type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
(newRouterStateSnapshot: RouterStateSnapshot) => {
this.routerEvents.next(new RoutesRecognized(
id, this.serializeUrl(url), this.serializeUrl(appliedUrl), newRouterStateSnapshot));
return newRouterStateSnapshot;
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(routerStateSnapshot: RouterStateSnapshot) => {
return createRouterState(routerStateSnapshot, this.currentRouterState);
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(newState: RouterState) => {
state = newState;
preActivation =
new PreActivation(state.snapshot, this.currentRouterState.snapshot, this.injector);
preActivation.traverse(this.outletMap);
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
() => { return preActivation.checkGuards(); } | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(shouldActivate: boolean) => {
if (shouldActivate) {
return map.call(preActivation.resolveData(), () => shouldActivate);
} else {
return of (shouldActivate);
}
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
() => shouldActivate | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(shouldActivate: boolean) => {
if (!shouldActivate || id !== this.navigationId) {
navigationIsSuccessful = false;
return;
}
this.currentUrlTree = appliedUrl;
this.currentRouterState = state;
if (!shouldPreventPushState) {
... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
() => {
this.navigated = true;
if (navigationIsSuccessful) {
this.routerEvents.next(
new NavigationEnd(id, this.serializeUrl(url), this.serializeUrl(appliedUrl)));
resolvePromise(true);
} else {
... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(e: any) => {
if (e instanceof NavigationCancelingError) {
this.navigated = true;
this.routerEvents.next(
new NavigationCancel(id, this.serializeUrl(url), e.message));
resolvePromise(false);
} else {
... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(s: any) => {
if (s instanceof CanActivate) {
return andObservables(
from([this.runCanActivateChild(s.path), this.runCanActivate(s.route)]));
} else if (s instanceof CanDeactivate) {
// workaround https://github.com/Microsoft/TypeScript/issues/7271
const s2 = s as CanDea... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(result: any) => result === true | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(s: any) => {
if (s instanceof CanActivate) {
return this.runResolve(s.route);
} else {
return of (null);
}
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(_: any, __: any) => _ | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
c => {
this.traverseRoutes(c, prevChildren[c.value.outlet], outletMap, futurePath.concat([c.value]));
delete prevChildren[c.value.outlet];
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(v: any, k: string) => this.deactivateOutletAndItChildren(v, outletMap._outlets[k]) | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(v: RouterOutlet) => {
if (v.isActivated) {
this.deactivateOutletAndItChildren(v.activatedRoute.snapshot, v);
}
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(c: any) => {
const guard = this.getToken(c, future);
if (guard.canActivate) {
return wrapIntoObservable(guard.canActivate(future, this.future));
} else {
return wrapIntoObservable(guard(future, this.future));
}
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
p => this.extractCanActivateChild(p) | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
_ => _ !== null | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(d: any) => {
const obs = map.call(from(d.guards), (c: any) => {
const guard = this.getToken(c, c.node);
if (guard.canActivateChild) {
return wrapIntoObservable(guard.canActivateChild(future, this.future));
} else {
return wrapIntoObservable(guard(future, this.future))... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(c: any) => {
const guard = this.getToken(c, c.node);
if (guard.canActivateChild) {
return wrapIntoObservable(guard.canActivateChild(future, this.future));
} else {
return wrapIntoObservable(guard(future, this.future));
}
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(c: any) => {
const guard = this.getToken(c, curr);
if (guard.canDeactivate) {
return wrapIntoObservable(guard.canDeactivate(component, curr, this.curr));
} else {
return wrapIntoObservable(guard(component, curr, this.curr));
}
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(resolvedData: any): any => {
resolve.resolvedData = resolvedData;
future.data = merge(future.data, resolve.flattenedResolvedData);
return null;
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(k, v) => {
const resolver = this.getToken(v, future);
return resolver.resolve ? wrapIntoObservable(resolver.resolve(future, this.future)) :
wrapIntoObservable(resolver(future, this.future));
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
c => {
this.activateRoutes(c, prevChildren[c.value.outlet], outletMap);
delete prevChildren[c.value.outlet];
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(v: any, k: string) => this.deactivateOutletAndItChildren(outletMap._outlets[k]) | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(v: RouterOutlet) => this.deactivateOutletAndItChildren(v) | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ArrowFunction |
(m: any, c: TreeNode<any>) => {
m[c.value.outlet] = c;
return m;
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ClassDeclaration | /**
* An event triggered when a navigation starts
*
* @stable
*/
export class NavigationStart {
constructor(public id: number, public url: string) {}
toString(): string { return `NavigationStart(id: ${this.id}, url: '${this.url}')`; }
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ClassDeclaration | /**
* An event triggered when a navigation ends successfully
*
* @stable
*/
export class NavigationEnd {
constructor(public id: number, public url: string, public urlAfterRedirects: string) {}
toString(): string {
return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfter... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ClassDeclaration | /**
* An event triggered when a navigation is canceled
*
* @stable
*/
export class NavigationCancel {
constructor(public id: number, public url: string, public reason: string) {}
toString(): string { return `NavigationCancel(id: ${this.id}, url: '${this.url}')`; }
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ClassDeclaration | /**
* An event triggered when a navigation fails due to unexpected error
*
* @stable
*/
export class NavigationError {
constructor(public id: number, public url: string, public error: any) {}
toString(): string {
return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;
}
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ClassDeclaration | /**
* An event triggered when routes are recognized
*
* @stable
*/
export class RoutesRecognized {
constructor(
public id: number, public url: string, public urlAfterRedirects: string,
public state: RouterStateSnapshot) {}
toString(): string {
return `RoutesRecognized(id: ${this.id}, url: '${th... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ClassDeclaration |
class CanActivate {
constructor(public path: ActivatedRouteSnapshot[]) {}
get route(): ActivatedRouteSnapshot { return this.path[this.path.length - 1]; }
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ClassDeclaration |
class CanDeactivate {
constructor(public component: Object, public route: ActivatedRouteSnapshot) {}
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ClassDeclaration |
class ActivateRoutes {
constructor(private futureState: RouterState, private currState: RouterState) {}
activate(parentOutletMap: RouterOutletMap): void {
const futureRoot = this.futureState._root;
const currRoot = this.currState ? this.currState._root : null;
advanceActivatedRoute(this.futureState.ro... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
InterfaceDeclaration | /**
* @stable
*/
export interface NavigationExtras {
/**
* Enables relative navigation from the current ActivatedRoute
*
* Configuration
*
* ```
* [{
* path: 'parent',
* component: ParentComponent,
* children: [
* {
* path: 'list',
* component: ListComponent
* },
... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
TypeAliasDeclaration | /**
* @stable
*/
export type Event =
NavigationStart | NavigationEnd | NavigationCancel | NavigationError | RoutesRecognized; | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
TypeAliasDeclaration | /**
* Error handler that is invoked when a navigation errors.
*
* If the handler retuns a value, the navigation promise will be resolved with this value.
* If the handler throws an exception, the navigation promise will be rejected with
* the exception.
*
* @stable
*/
export type ErrorHandler = (error: any) => ... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
toString(): string { return `NavigationStart(id: ${this.id}, url: '${this.url}')`; } | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
toString(): string {
return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
toString(): string { return `NavigationCancel(id: ${this.id}, url: '${this.url}')`; } | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
toString(): string {
return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
toString(): string {
return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration | /**
* Sets up the location change listener and performs the inital navigation
*/
initialNavigation(): void {
this.setUpLocationChangeListener();
this.navigateByUrl(this.location.path(true), {replaceUrl: true});
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration | /**
* Sets up the location change listener
*/
setUpLocationChangeListener(): void {
// Zone.current.wrap is needed because of the issue with RxJS scheduler,
// which does not work properly with zone.js in IE and Safari
this.locationSubscription = <any>this.location.subscribe(Zone.current.wrap((change:... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration | /**
* Resets the configuration used for navigation and generating links.
*
* ### Usage
*
* ```
* router.resetConfig([
* { path: 'team/:id', component: TeamCmp, children: [
* { path: 'simple', component: SimpleCmp },
* { path: 'user/:name', component: UserCmp }
* ] }
* ]);
* `... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
ngOnDestroy() { this.dispose(); } | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration | /**
* Disposes of the router.
*/
dispose(): void { this.locationSubscription.unsubscribe(); } | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration | /**
* Applies an array of commands to the current url tree and creates
* a new url tree.
*
* When given an activate route, applies the given commands starting from the route.
* When not given a route, applies the given command starting from the root.
*
* ### Usage
*
* ```
* // create /team... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration | /**
* Navigate based on the provided url. This navigation is always absolute.
*
* Returns a promise that:
* - is resolved with 'true' when navigation succeeds
* - is resolved with 'false' when navigation fails
* - is rejected when an error happens
*
* ### Usage
*
* ```
* router.navigate... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration | /**
* Navigate based on the provided array of commands and a starting point.
* If no starting route is provided, the navigation is absolute.
*
* Returns a promise that:
* - is resolved with 'true' when navigation succeeds
* - is resolved with 'false' when navigation fails
* - is rejected when an er... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration | /**
* Serializes a {@link UrlTree} into a string.
*/
serializeUrl(url: UrlTree): string { return this.urlSerializer.serialize(url); } | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration | /**
* Parse a string into a {@link UrlTree}.
*/
parseUrl(url: string): UrlTree { return this.urlSerializer.parse(url); } | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration | /**
* Returns if the url is activated or not.
*/
isActive(url: string|UrlTree, exact: boolean): boolean {
if (url instanceof UrlTree) {
return containsTree(this.currentUrlTree, url, exact);
} else {
const urlTree = this.urlSerializer.parse(url);
return containsTree(this.currentUrlTree, u... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private scheduleNavigation(url: UrlTree, extras: NavigationExtras): Promise<boolean> {
const id = ++this.navigationId;
this.routerEvents.next(new NavigationStart(id, this.serializeUrl(url)));
return Promise.resolve().then(
(_) => this.runNavigate(url, extras.skipLocationChange, extras.replaceUrl, i... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private runNavigate(
url: UrlTree, shouldPreventPushState: boolean, shouldReplaceUrl: boolean,
id: number): Promise<boolean> {
if (id !== this.navigationId) {
this.location.go(this.urlSerializer.serialize(this.currentUrlTree));
this.routerEvents.next(new NavigationCancel(
id, this... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
traverse(parentOutletMap: RouterOutletMap): void {
const futureRoot = this.future._root;
const currRoot = this.curr ? this.curr._root : null;
this.traverseChildRoutes(futureRoot, currRoot, parentOutletMap, [futureRoot.value]);
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
checkGuards(): Observable<boolean> {
if (this.checks.length === 0) return of (true);
const checks$ = from(this.checks);
const runningChecks$ = map.call(checks$, (s: any) => {
if (s instanceof CanActivate) {
return andObservables(
from([this.runCanActivateChild(s.path), this.runCan... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
resolveData(): Observable<any> {
if (this.checks.length === 0) return of (null);
const checks$ = from(this.checks);
const runningChecks$ = mergeMap.call(checks$, (s: any) => {
if (s instanceof CanActivate) {
return this.runResolve(s.route);
} else {
return of (null);
}
... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private traverseChildRoutes(
futureNode: TreeNode<ActivatedRouteSnapshot>, currNode: TreeNode<ActivatedRouteSnapshot>,
outletMap: RouterOutletMap, futurePath: ActivatedRouteSnapshot[]): void {
const prevChildren: {[key: string]: any} = nodeChildrenAsMap(currNode);
futureNode.children.forEach(c => ... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
traverseRoutes(
futureNode: TreeNode<ActivatedRouteSnapshot>, currNode: TreeNode<ActivatedRouteSnapshot>,
parentOutletMap: RouterOutletMap, futurePath: ActivatedRouteSnapshot[]): void {
const future = futureNode.value;
const curr = currNode ? currNode.value : null;
const outlet = parentOutletMa... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private deactivateOutletAndItChildren(route: ActivatedRouteSnapshot, outlet: RouterOutlet): void {
if (outlet && outlet.isActivated) {
this.deactivateOutletMap(outlet.outletMap);
this.checks.push(new CanDeactivate(outlet.component, route));
}
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private deactivateOutletMap(outletMap: RouterOutletMap): void {
forEach(outletMap._outlets, (v: RouterOutlet) => {
if (v.isActivated) {
this.deactivateOutletAndItChildren(v.activatedRoute.snapshot, v);
}
});
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private runCanActivate(future: ActivatedRouteSnapshot): Observable<boolean> {
const canActivate = future._routeConfig ? future._routeConfig.canActivate : null;
if (!canActivate || canActivate.length === 0) return of (true);
const obs = map.call(from(canActivate), (c: any) => {
const guard = this.getT... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private runCanActivateChild(path: ActivatedRouteSnapshot[]): Observable<boolean> {
const future = path[path.length - 1];
const canActivateChildGuards = path.slice(0, path.length - 1)
.reverse()
.map(p => this.extractCanActivateChild... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private extractCanActivateChild(p: ActivatedRouteSnapshot):
{node: ActivatedRouteSnapshot, guards: any[]} {
const canActivateChild = p._routeConfig ? p._routeConfig.canActivateChild : null;
if (!canActivateChild || canActivateChild.length === 0) return null;
return {node: p, guards: canActivateChild}... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private runCanDeactivate(component: Object, curr: ActivatedRouteSnapshot): Observable<boolean> {
const canDeactivate = curr && curr._routeConfig ? curr._routeConfig.canDeactivate : null;
if (!canDeactivate || canDeactivate.length === 0) return of (true);
const canDeactivate$ = map.call(from(canDeactivate),... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private runResolve(future: ActivatedRouteSnapshot): Observable<any> {
const resolve = future._resolve;
return map.call(this.resolveNode(resolve.current, future), (resolvedData: any): any => {
resolve.resolvedData = resolvedData;
future.data = merge(future.data, resolve.flattenedResolvedData);
... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private resolveNode(resolve: ResolveData, future: ActivatedRouteSnapshot): Observable<any> {
return waitForMap(resolve, (k, v) => {
const resolver = this.getToken(v, future);
return resolver.resolve ? wrapIntoObservable(resolver.resolve(future, this.future)) :
wrapIntoOb... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private getToken(token: any, snapshot: ActivatedRouteSnapshot): any {
const config = closestLoadedConfig(snapshot);
const injector = config ? config.injector : this.injector;
return injector.get(token);
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
activate(parentOutletMap: RouterOutletMap): void {
const futureRoot = this.futureState._root;
const currRoot = this.currState ? this.currState._root : null;
advanceActivatedRoute(this.futureState.root);
this.activateChildRoutes(futureRoot, currRoot, parentOutletMap);
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private activateChildRoutes(
futureNode: TreeNode<ActivatedRoute>, currNode: TreeNode<ActivatedRoute>,
outletMap: RouterOutletMap): void {
const prevChildren: {[key: string]: any} = nodeChildrenAsMap(currNode);
futureNode.children.forEach(c => {
this.activateRoutes(c, prevChildren[c.value.out... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
activateRoutes(
futureNode: TreeNode<ActivatedRoute>, currNode: TreeNode<ActivatedRoute>,
parentOutletMap: RouterOutletMap): void {
const future = futureNode.value;
const curr = currNode ? currNode.value : null;
// reusing the node
if (future === curr) {
// advance the route to push ... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private placeComponentIntoOutlet(
outletMap: RouterOutletMap, future: ActivatedRoute, outlet: RouterOutlet): void {
const resolved = <any[]>[{provide: ActivatedRoute, useValue: future}, {
provide: RouterOutletMap,
useValue: outletMap
}];
const config = parentLoadedConfig(future.snapshot)... | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private deactivateOutletAndItChildren(outlet: RouterOutlet): void {
if (outlet && outlet.isActivated) {
this.deactivateOutletMap(outlet.outletMap);
outlet.deactivate();
}
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
MethodDeclaration |
private deactivateOutletMap(outletMap: RouterOutletMap): void {
forEach(outletMap._outlets, (v: RouterOutlet) => this.deactivateOutletAndItChildren(v));
} | Widdershin/angular | modules/@angular/router/src/router.ts | TypeScript |
ClassDeclaration |
@Component({
tag: "koto-input",
styleUrl: "input.scss",
shadow: true
})
export class Input {
@Prop() name!: string;
@Prop() placeholder: string;
render() {
return <input name={this.name} placeholder={this.placeholder} />;
}
} | fcorbel/koto | src/components/widgets/input/input.tsx | TypeScript |
MethodDeclaration |
render() {
return <input name={this.name} placeholder={this.placeholder} />;
} | fcorbel/koto | src/components/widgets/input/input.tsx | TypeScript |
InterfaceDeclaration |
interface IRegionDocument {
id: string;
position: IPositionDocument;
size: ISizeDocument;
} | 2-IMMERSE/layout-service | src/model/Template.ts | TypeScript |
InterfaceDeclaration |
interface IOrientationDocument {
region: IRegionDocument;
} | 2-IMMERSE/layout-service | src/model/Template.ts | TypeScript |
InterfaceDeclaration |
interface ITemplateDeviceDocument {
portrait: IOrientationDocument[];
landscape: IOrientationDocument[];
} | 2-IMMERSE/layout-service | src/model/Template.ts | TypeScript |
InterfaceDeclaration |
interface ITemplateLayoutDocument {
communal: ITemplateDeviceDocument;
personal: ITemplateDeviceDocument;
} | 2-IMMERSE/layout-service | src/model/Template.ts | TypeScript |
InterfaceDeclaration |
export interface ITemplateDocument {
deviceType: string;
layout: ITemplateLayoutDocument;
} | 2-IMMERSE/layout-service | src/model/Template.ts | TypeScript |
ArrowFunction |
() => {
it('can be constructed', () => {
const zuckBucks = new Currency('Zuck Bucks', 'ZB', 2, {
suffix: 'ZB',
})
const formatted = zuckBucks.format('1234')
expect(formatted).to.equal('12.34ZB')
})
it('FiatCurrency', () => {
const dollar = new FiatCurrency('United States Dollar', 'USD'... | Alexintosh/useDApp | packages/core/test/model/Currency.test.ts | TypeScript |
ArrowFunction |
() => {
const zuckBucks = new Currency('Zuck Bucks', 'ZB', 2, {
suffix: 'ZB',
})
const formatted = zuckBucks.format('1234')
expect(formatted).to.equal('12.34ZB')
} | Alexintosh/useDApp | packages/core/test/model/Currency.test.ts | TypeScript |
ArrowFunction |
() => {
const dollar = new FiatCurrency('United States Dollar', 'USD', 2, {
prefix: '$',
suffix: ' USD',
})
const formatted = dollar.format('1234')
expect(formatted).to.equal('$12.34 USD')
} | Alexintosh/useDApp | packages/core/test/model/Currency.test.ts | TypeScript |
ArrowFunction |
() => {
const ether = new NativeCurrency('Ether', 'ETH', ChainId.Mainnet)
const formatted = ether.format('123'.concat('0'.repeat(18)))
expect(formatted).to.equal('123 ETH')
} | Alexintosh/useDApp | packages/core/test/model/Currency.test.ts | TypeScript |
ArrowFunction |
() => {
const token = new Token('Fake Dai', 'FDI', ChainId.Mainnet, AddressZero)
const formatted = token.format('123'.concat('0'.repeat(18)))
expect(formatted).to.equal('123 FDI')
} | Alexintosh/useDApp | packages/core/test/model/Currency.test.ts | TypeScript |
InterfaceDeclaration |
export interface ModelUpdatedEvent extends AgGridEvent {
/** If true, the grid will try and animate the rows to the new positions */
animate: boolean | undefined;
/** If true, the grid has new data loaded, eg user called setRowData(), otherwise
* it's the same data but sorted or filtered, in which cas... | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
InterfaceDeclaration |
export interface AgEvent {
type: string;
} | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
InterfaceDeclaration |
export interface AgGridEvent extends AgEvent {
api: GridApi;
columnApi: ColumnApi;
} | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
InterfaceDeclaration |
export interface ToolPanelVisibleChangedEvent extends AgGridEvent {
source: string | undefined;
} | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
InterfaceDeclaration |
export interface AnimationQueueEmptyEvent extends AgGridEvent {
} | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
InterfaceDeclaration |
export interface ColumnPivotModeChangedEvent extends AgGridEvent {
} | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
InterfaceDeclaration |
export interface VirtualColumnsChangedEvent extends AgGridEvent {
} | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
InterfaceDeclaration |
export interface ColumnEverythingChangedEvent extends AgGridEvent {
source: string;
} | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
InterfaceDeclaration |
export interface NewColumnsLoadedEvent extends AgGridEvent {
} | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
InterfaceDeclaration |
export interface GridColumnsChangedEvent extends AgGridEvent {
} | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
InterfaceDeclaration |
export interface DisplayedColumnsChangedEvent extends AgGridEvent {
} | David-Balaian/ag-grid-community | dist/lib/events.d.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.