type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
InterfaceDeclaration |
export interface FormGroupWithInfoProps {
label?: React.ReactNode;
info?: JSX.Element | string;
inlineInfo?: boolean;
children?: React.ReactNode;
} | Agilicus/incubator-druid | web-console/src/components/form-group-with-info/form-group-with-info.tsx | TypeScript |
FunctionDeclaration | /**
* Move movie.promotional.salesPitch to movie.promotional.videos.salesPitch
* Change video type 'pitch' to 'other'
* @param db
* @param storage
* @returns
*/
export async function upgrade(db: Firestore) {
const movies = await db.collection('movies').get();
await runChunks(movies.docs, async doc => {
c... | blockframes/blockframes | libs/firebase-utils/src/lib/firestoreMigrations/0067.ts | TypeScript |
ArrowFunction |
async doc => {
const movie = doc.data();
if (!movie.promotional.videos) {
movie.promotional.videos = createMovieVideos({});
}
movie.promotional.videos.salesPitch = createMovieVideo(movie.promotional.salesPitch);
delete movie.promotional.salesPitch;
if (movie.promotional.videos?.otherVi... | blockframes/blockframes | libs/firebase-utils/src/lib/firestoreMigrations/0067.ts | TypeScript |
ArrowFunction |
video => {
if (video.type === 'pitch') {
video.type = 'other';
}
} | blockframes/blockframes | libs/firebase-utils/src/lib/firestoreMigrations/0067.ts | TypeScript |
ArrowFunction |
() => {
this.getNewSeries(this.lastDate, {min: 10, max: 90});
this.apexEvent.eventChangeSeriesData();
} | boodskap/tutorial-solarcity | views/src/app/demo/pages/core-chart/crt-apex/crt-apex.component.ts | TypeScript |
ArrowFunction |
() => {
this.resetData();
this.apexEvent.eventChangeSeriesData();
} | boodskap/tutorial-solarcity | views/src/app/demo/pages/core-chart/crt-apex/crt-apex.component.ts | TypeScript |
ArrowFunction |
() => {
this.apexEvent.eventChangeTimeRange();
} | boodskap/tutorial-solarcity | views/src/app/demo/pages/core-chart/crt-apex/crt-apex.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'app-crt-apex',
templateUrl: './crt-apex.component.html',
styleUrls: ['./crt-apex.component.scss']
})
export class CrtApexComponent implements OnInit, OnDestroy {
public chartDB: any;
public lastDate: number;
public line2CAC: any;
public data: any;
public intervalSub: any;
pu... | boodskap/tutorial-solarcity | views/src/app/demo/pages/core-chart/crt-apex/crt-apex.component.ts | TypeScript |
MethodDeclaration |
ngOnInit() {
this.intervalSub = setInterval(() => {
this.getNewSeries(this.lastDate, {min: 10, max: 90});
this.apexEvent.eventChangeSeriesData();
}, 2000);
this.intervalMain = setInterval(() => {
this.resetData();
this.apexEvent.eventChangeSeriesData();
}, 60000);
} | boodskap/tutorial-solarcity | views/src/app/demo/pages/core-chart/crt-apex/crt-apex.component.ts | TypeScript |
MethodDeclaration |
dailyVisitorEvent(status) {
this.dailyVisitorStatus = status;
switch (status) {
case '1m':
this.dailyVisitorAxis = {
min: new Date('28 Jan 2013').getTime(),
max: new Date('27 Feb 2013').getTime(),
};
break;
case '6m':
this.dailyVisitorAxis = {
... | boodskap/tutorial-solarcity | views/src/app/demo/pages/core-chart/crt-apex/crt-apex.component.ts | TypeScript |
MethodDeclaration |
ngOnDestroy() {
if (this.intervalSub) {
clearInterval(this.intervalSub);
}
if (this.intervalMain) {
clearInterval(this.intervalMain);
}
} | boodskap/tutorial-solarcity | views/src/app/demo/pages/core-chart/crt-apex/crt-apex.component.ts | TypeScript |
MethodDeclaration |
getDayWiseTimeSeries(baseval, count, yrange) {
let i = 0;
while (i < count) {
const x = baseval;
const y = Math.floor(Math.random() * (yrange.max - yrange.min + 1)) + yrange.min;
this.data.push({x, y});
this.lastDate = baseval;
baseval += 86400000;
i++;
}
} | boodskap/tutorial-solarcity | views/src/app/demo/pages/core-chart/crt-apex/crt-apex.component.ts | TypeScript |
MethodDeclaration |
resetData() {
this.data = this.data.slice(this.data.length - 10, this.data.length);
} | boodskap/tutorial-solarcity | views/src/app/demo/pages/core-chart/crt-apex/crt-apex.component.ts | TypeScript |
MethodDeclaration |
getNewSeries(baseval, yrange) {
const newDate = baseval + 86400000;
this.lastDate = newDate;
this.data.push({
x: newDate,
y: Math.floor(Math.random() * (yrange.max - yrange.min + 1)) + yrange.min
});
} | boodskap/tutorial-solarcity | views/src/app/demo/pages/core-chart/crt-apex/crt-apex.component.ts | TypeScript |
ClassDeclaration |
declare class QueueManager extends Collection {
constructor();
textChannel: TextChannel;
voiceChannel: VoiceChannel;
connection: VoiceConnection;
dispatcher?: AudioPlayer;
songs: Array<PlayerSong>;
volume: number;
loop: {
song: boolean;
queue: boolean;
... | xyligan-gp/discord-player-music | typings/QueueManager.d.ts | TypeScript |
FunctionDeclaration |
export function main() {
describe('NameList Service', () => {
let nameListService: ProjectService;
let mockBackend: MockBackend;
let initialResponse: any;
beforeEach(() => {
let injector = ReflectiveInjector.resolveAndCreate([
ProjectService,
BaseRequestOptions,
MockBa... | atulmith/OFC | src/client/app/shared/popularservices/popularservices.service.spec.ts | TypeScript |
ArrowFunction |
() => {
let nameListService: ProjectService;
let mockBackend: MockBackend;
let initialResponse: any;
beforeEach(() => {
let injector = ReflectiveInjector.resolveAndCreate([
ProjectService,
BaseRequestOptions,
MockBackend,
{provide: Http,
useFactory: fun... | atulmith/OFC | src/client/app/shared/popularservices/popularservices.service.spec.ts | TypeScript |
ArrowFunction |
() => {
let injector = ReflectiveInjector.resolveAndCreate([
ProjectService,
BaseRequestOptions,
MockBackend,
{provide: Http,
useFactory: function(backend: ConnectionBackend, defaultOptions: BaseRequestOptions) {
return new Http(backend, defaultOptions);
... | atulmith/OFC | src/client/app/shared/popularservices/popularservices.service.spec.ts | TypeScript |
ArrowFunction |
(c: any) => connection = c | atulmith/OFC | src/client/app/shared/popularservices/popularservices.service.spec.ts | TypeScript |
ArrowFunction |
() => {
expect(initialResponse).toEqual(jasmine.any(Observable));
} | atulmith/OFC | src/client/app/shared/popularservices/popularservices.service.spec.ts | TypeScript |
ArrowFunction |
() => {
let names: any;
initialResponse.subscribe((data: any) => names = data);
expect(names).toEqual(['Dijkstra', 'Hopper']);
} | atulmith/OFC | src/client/app/shared/popularservices/popularservices.service.spec.ts | TypeScript |
ArrowFunction |
(data: any) => names = data | atulmith/OFC | src/client/app/shared/popularservices/popularservices.service.spec.ts | TypeScript |
ArrowFunction |
(): Promise<ICoin[]> => {
return apiGet('supported-coins');
} | jadzeidan/bitbox-wallet-app | frontends/web/src/api/backend.ts | TypeScript |
ArrowFunction |
(accountCode: AccountCode, active: boolean): Promise<ISuccess> => {
return apiPost('set-account-active', { accountCode, active });
} | jadzeidan/bitbox-wallet-app | frontends/web/src/api/backend.ts | TypeScript |
ArrowFunction |
(accountCode: AccountCode, tokenCode: string, active: boolean): Promise<ISuccess> => {
return apiPost('set-token-active', { accountCode, tokenCode, active });
} | jadzeidan/bitbox-wallet-app | frontends/web/src/api/backend.ts | TypeScript |
ArrowFunction |
(accountCode: AccountCode, name: string): Promise<ISuccess> => {
return apiPost('rename-account', { accountCode, name });
} | jadzeidan/bitbox-wallet-app | frontends/web/src/api/backend.ts | TypeScript |
ArrowFunction |
(): Promise<null> => {
return apiPost('accounts/reinitialize');
} | jadzeidan/bitbox-wallet-app | frontends/web/src/api/backend.ts | TypeScript |
ArrowFunction |
(): Promise<boolean> => {
return apiGet('testing');
} | jadzeidan/bitbox-wallet-app | frontends/web/src/api/backend.ts | TypeScript |
ArrowFunction |
(data: string) => {
return (): Promise<string> => {
return apiGet(`qr?data=${encodeURIComponent(data)}`);
};
} | jadzeidan/bitbox-wallet-app | frontends/web/src/api/backend.ts | TypeScript |
ArrowFunction |
(): Promise<string> => {
return apiGet(`qr?data=${encodeURIComponent(data)}`);
} | jadzeidan/bitbox-wallet-app | frontends/web/src/api/backend.ts | TypeScript |
InterfaceDeclaration |
export interface ICoin {
coinCode: CoinCode;
name: string;
canAddAccount: boolean;
suggestedAccountName: string;
} | jadzeidan/bitbox-wallet-app | frontends/web/src/api/backend.ts | TypeScript |
InterfaceDeclaration |
export interface ISuccess {
success: boolean;
errorMessage?: string;
errorCode?: string;
} | jadzeidan/bitbox-wallet-app | frontends/web/src/api/backend.ts | TypeScript |
ArrowFunction |
(props: UserAvatarProps): JSX.Element => {
const {
authState,
gravatarInfoPopoverText,
name,
image,
showGravatarLabel,
showEdit,
profileUrl,
urlSchema,
onAlertFired,
...rest
} = props;
const [userImage, setUserImage] = useStat... | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
() => {
if (image instanceof Promise) {
image
.then((response) => {
setUserImage(response);
})
.catch(() => {
setUserImage(null);
});
} else if (!_.isEmpty(image)) {
setUserIm... | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
(response) => {
setUserImage(response);
} | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
() => {
setUserImage(null);
} | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
(): string => {
if (isGravatarURL()) {
return ThirdPartyLogos.gravatar;
}
return null;
} | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
(): boolean => {
return (userImage && userImage.includes(UIConstants.GRAVATAR_URL))
|| (authState && authState.profileInfo && authState.profileInfo.userImage
&& authState.profileInfo.userImage.includes(UIConstants.GRAVATAR_URL))
|| (authState && authState.profileInfo && ... | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
(e: MouseEvent) => {
setShowPopup(true);
} | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
(e: MouseEvent) => {
setShowPopup(false);
} | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
() => {
const data = {
Operations: [
{
op: "replace",
value: {
profileUrl: url
}
}
],
schemas: ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]
};
... | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
(response) => {
if (response.status === 200) {
onAlertFired({
description: t(
"views:components.profile.notifications.updateProfileInfo.success.description"
),
level: AlertLevels.SUCCESS,
... | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
async (event: React.MouseEvent) => {
if (_.isEmpty(url)) {
setUrlError(Error.REQUIRED);
} else if (! await FormValidation.imageUrl(url)) {
setUrlError(Error.VALIDATION);
} else {
updateProfileUrl();
}
} | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
() => {
setShowEditModal(false);
setUrlError(Error.NONE);
} | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
() => {
setShowEditModal(true);
setUrl(profileUrl);
} | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
() => {
const fieldName = t("views:components.profile.fields."
+ urlSchema.name.replace(".", "_"),
{ defaultValue: urlSchema.displayName }
);
return (
<Modal
dimmer="blurring"
size="tiny"
open={ showEditModal }... | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
InterfaceDeclaration | /**
* Prop types for the user avatar component.
*/
interface UserAvatarProps extends AvatarProps {
authState?: AuthStateInterface;
gravatarInfoPopoverText?: React.ReactNode;
showGravatarLabel?: boolean;
showEdit?: boolean;
profileUrl?: string;
urlSchema?: ProfileSchema;
onAlertFired?: (ale... | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
EnumDeclaration | /**
* Enum to be used to specify the type of error when submitting the url
*/
enum Error {
REQUIRED,
VALIDATION,
NONE
} | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
MethodDeclaration |
resolveTopLabel() : null | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
MethodDeclaration |
resolveUserDisplayName(authState) : name | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
MethodDeclaration |
t("views:components.userAvatar.urlUpdateHeader") | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
MethodDeclaration |
t("views:components.profile.forms.generic.inputs.placeholder", {
fieldName
}) | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
MethodDeclaration |
t("common:cancel") | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
MethodDeclaration |
t("common:save") | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
MethodDeclaration |
setShowEditOverlay(true); | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
MethodDeclaration |
setShowEditOverlay(false); | CyraCom/wso2-identity-apps | apps/user-portal/src/components/shared/user-avatar.tsx | TypeScript |
ArrowFunction |
type=>user | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
user=>user.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>scroll_version_group | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
scroll_version_group=>scroll_version_group.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>main_action | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
main_action=>main_action.scroll_version_ | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>area_group | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
area_group=>area_group.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>artefact_data | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
artefact_data=>artefact_data.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>artefact_position | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
artefact_position=>artefact_position.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>artefact_shape | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
artefact_shape=>artefact_shape.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>char_of_writing | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
char_of_writing=>char_of_writing.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>col_data | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
col_data=>col_data.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>col_sequence | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
col_sequence=>col_sequence.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>col_to_line | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
col_to_line=>col_to_line.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>form_of_writing | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
form_of_writing=>form_of_writing.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>line_data | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
line_data=>line_data.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>line_to_sign | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
line_to_sign=>line_to_sign.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>position_in_stream | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
position_in_stream=>position_in_stream.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>scribal_font_type | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
scribal_font_type=>scribal_font_type.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>scribe | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
scribe=>scribe.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>scroll_data | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
scroll_data=>scroll_data.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>scroll_to_col | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
scroll_to_col=>scroll_to_col.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>sign_char_attribute | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
sign_char_attribute=>sign_char_attribute.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>sign_char_commentary | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
sign_char_commentary=>sign_char_commentary.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
type=>sign_char_roi | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
ArrowFunction |
sign_char_roi=>sign_char_roi.scroll_versions | Bronson-Brown-deVost/koa-sqe-api | db/entities/scroll_version.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.