type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
type => Team | ramyferjani/UrbanIt-Api | app/tunnel/match/Match.model.ts | TypeScript |
ArrowFunction |
team => team.match | ramyferjani/UrbanIt-Api | app/tunnel/match/Match.model.ts | TypeScript |
ArrowFunction |
type => Score | ramyferjani/UrbanIt-Api | app/tunnel/match/Match.model.ts | TypeScript |
ArrowFunction |
score => score.match | ramyferjani/UrbanIt-Api | app/tunnel/match/Match.model.ts | TypeScript |
ArrowFunction |
type => ScoreVerif | ramyferjani/UrbanIt-Api | app/tunnel/match/Match.model.ts | TypeScript |
ArrowFunction |
scoreVerif => scoreVerif.match | ramyferjani/UrbanIt-Api | app/tunnel/match/Match.model.ts | TypeScript |
ClassDeclaration |
@Entity("match")
export class Match extends BaseEntity {
@PrimaryGeneratedColumn()
public id: number;
@Column({
type: "numeric",
default: 1000
})
public ranking: number;
@ManyToOne(type => Sport, sport => sport.matchs)
sport: Sport;
@OneToMany(type => Team, team => te... | ramyferjani/UrbanIt-Api | app/tunnel/match/Match.model.ts | TypeScript |
ClassDeclaration | /* STATISTICS */
class Statistics {
item; itemProps; config; tokens;
constructor () {
this.item = this._initItem ();
this.itemProps = {};
this.update ();
}
_initItem () {
const alignment = Config.getKey ( 'statistics.statusbar.alignment' ) === 'right' ? vscode.StatusBarAlignment.Right : v... | Epikem/vscode-todo-plus | src/statusbars/statistics.ts | TypeScript |
MethodDeclaration |
_initItem () {
const alignment = Config.getKey ( 'statistics.statusbar.alignment' ) === 'right' ? vscode.StatusBarAlignment.Right : vscode.StatusBarAlignment.Left,
priority = Config.getKey ( 'statistics.statusbar.priority' );
return vscode.window.createStatusBarItem ( alignment, priority );
} | Epikem/vscode-todo-plus | src/statusbars/statistics.ts | TypeScript |
MethodDeclaration |
_setItemProp ( prop, value, _set = true ) {
if ( this.itemProps[prop] === value ) return false;
this.itemProps[prop] = value;
if ( _set ) {
this.item[prop] = value;
}
return true;
} | Epikem/vscode-todo-plus | src/statusbars/statistics.ts | TypeScript |
MethodDeclaration |
update () {
this.config = Config.get ();
this.tokens = Utils.statistics.tokens.global;
this.updateVisibility ();
if ( !this.itemProps.visibility ) return;
this.updateColor ();
this.updateCommand ();
this.updateTooltip ();
this.updateText ();
} | Epikem/vscode-todo-plus | src/statusbars/statistics.ts | TypeScript |
MethodDeclaration |
updateColor () {
const {color} = this.config.statistics.statusbar;
this._setItemProp ( 'color', color );
} | Epikem/vscode-todo-plus | src/statusbars/statistics.ts | TypeScript |
MethodDeclaration |
updateCommand () {
const {command} = this.config.statistics.statusbar;
this._setItemProp ( 'command', command );
} | Epikem/vscode-todo-plus | src/statusbars/statistics.ts | TypeScript |
MethodDeclaration |
updateTooltip () {
let template = this.config.statistics.statusbar.tooltip,
tooltip = Utils.statistics.template.render ( template, this.tokens );
if ( !tooltip ) return;
this._setItemProp ( 'tooltip', tooltip );
} | Epikem/vscode-todo-plus | src/statusbars/statistics.ts | TypeScript |
MethodDeclaration |
updateText () {
let template = this.config.statistics.statusbar.text,
text = Utils.statistics.template.render ( template, this.tokens );
if ( !text ) return;
this._setItemProp ( 'text', text );
} | Epikem/vscode-todo-plus | src/statusbars/statistics.ts | TypeScript |
MethodDeclaration |
updateVisibility () {
const condition = this.config.statistics.statusbar.enabled,
visibility = Utils.editor.isSupported ( vscode.window.activeTextEditor ) && Utils.statistics.condition.is ( condition, this.tokens, undefined );
if ( this._setItemProp ( 'visibility', visibility ) ) {
this.item... | Epikem/vscode-todo-plus | src/statusbars/statistics.ts | TypeScript |
ArrowFunction |
(predeterminado: 22555 or testnet: 44555) | davidepatti/dogecoin | src/qt/locale/bitcoin_es_CL.ts | TypeScript |
ClassDeclaration | /**
* A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.
*/
export class V1TopologySelectorLabelRequirement {
/**
* The label key that the selector applies to.
*/
'key': string;
/**
* An array of string values. One value... | Laaaaannn/javascript | src/gen/model/v1TopologySelectorLabelRequirement.ts | TypeScript |
MethodDeclaration |
static getAttributeTypeMap() {
return V1TopologySelectorLabelRequirement.attributeTypeMap;
} | Laaaaannn/javascript | src/gen/model/v1TopologySelectorLabelRequirement.ts | TypeScript |
ClassDeclaration |
@Controller('storage')
export class StorageController {
constructor(private readonly storageService: StorageService) {}
@ApiResponse({ status: HttpStatus.CREATED })
@UseGuards(AuthGuard('jwt'))
@HttpCode(HttpStatus.OK)
@Post('token')
token(@Body() fileInfo: ReqPresignedPostDto) {
return this.storageSe... | hangmant/api | src/modules/storage/storage.controller.ts | TypeScript |
MethodDeclaration |
@ApiResponse({ status: HttpStatus.CREATED })
@UseGuards(AuthGuard('jwt'))
@HttpCode(HttpStatus.OK)
@Post('token')
token(@Body() fileInfo: ReqPresignedPostDto) {
return this.storageService.createSignedUrl(fileInfo.key, fileInfo.contentType)
} | hangmant/api | src/modules/storage/storage.controller.ts | TypeScript |
ArrowFunction |
(item) => {
return {
label: item.name + item.id,
value: item,
triggerValue: '( ' + item.id + ' )',
disabled: item.id === 'B' ? true : false,
icon: ''
};
} | appframework-platform/fundamental-ngx | apps/docs/src/app/platform/component-docs/platform-select/platform-select-examples/platform-select-types-noborder-example.component.ts | TypeScript |
ClassDeclaration |
export class Fruit {
id: string;
name: string;
age: number;
constructor(id: string, name: string, age: number) {
this.id = id;
this.name = name;
this.age = age;
}
} | appframework-platform/fundamental-ngx | apps/docs/src/app/platform/component-docs/platform-select/platform-select-examples/platform-select-types-noborder-example.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'fdp-select-types-noborder-example',
templateUrl: './platform-select-types-noborder-example.component.html'
})
export class PlatformSelectTypesNoBorderExampleComponent implements OnInit {
selectedValue: string;
userList = [
new Fruit('A', 'Apple', 10),
new Fruit(... | appframework-platform/fundamental-ngx | apps/docs/src/app/platform/component-docs/platform-select/platform-select-examples/platform-select-types-noborder-example.component.ts | TypeScript |
ClassDeclaration | /**
* Drive Activity API
*
* Provides a historical view of activity in Google Drive.
*
* @example
* ```js
* const {google} = require('googleapis');
* const driveactivity = google.driveactivity('v2');
* ```
*/
export class Driveactivity {
context: APIRequestContext;
activity: Resour... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
ClassDeclaration |
export class Resource$Activity {
context: APIRequestContext;
constructor(context: APIRequestContext) {
this.context = context;
}
/**
* Query past activity in Google Drive.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://co... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration |
export interface Options extends GlobalOptions {
version: 'v2';
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about the action.
*/
export interface Schema$Action {
/**
* The actor responsible for this action (or empty if all actors are responsible).
*/
actor?: Schema$Actor;
/**
* The type and detailed information about the action.
*/
detail?: Schema$ActionDetail;
... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Data describing the type and additional information of an action.
*/
export interface Schema$ActionDetail {
/**
* A change about comments was made.
*/
comment?: Schema$Comment;
/**
* An object was created.
*/
create?: Schema$Create;
/**
* An object was deleted.
... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* The actor of a Drive activity.
*/
export interface Schema$Actor {
/**
* An administrator.
*/
administrator?: Schema$Administrator;
/**
* An anonymous user.
*/
anonymous?: Schema$AnonymousUser;
/**
* An account acting on behalf of another.
*/
impersonatio... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Empty message representing an administrator.
*/
export interface Schema$Administrator {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Empty message representing an anonymous user or indicating the authenticated user should be anonymized.
*/
export interface Schema$AnonymousUser {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Represents any user (including a logged out user).
*/
export interface Schema$Anyone {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Activity in applications other than Drive.
*/
export interface Schema$ApplicationReference {
/**
* The reference type corresponding to this event.
*/
type?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A comment with an assignment.
*/
export interface Schema$Assignment {
/**
* The user to whom the comment was assigned.
*/
assignedUser?: Schema$User;
/**
* The sub-type of this event.
*/
subtype?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A change about comments on an object.
*/
export interface Schema$Comment {
/**
* A change on an assignment.
*/
assignment?: Schema$Assignment;
/**
* Users who are mentioned in this comment.
*/
mentionedUsers?: Schema$User[];
/**
* A change on a regular posted com... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* How the individual activities are consolidated. A set of activities may be consolidated into one combined activity if they are related in some way, such as one actor performing the same action on multiple targets, or multiple actors performing the same action on a single target. The strategy defines the rules ... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* An object was created by copying an existing object.
*/
export interface Schema$Copy {
/**
* The the original object.
*/
originalObject?: Schema$TargetReference;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* An object was created.
*/
export interface Schema$Create {
/**
* If present, indicates the object was created by copying an existing Drive object.
*/
copy?: Schema$Copy;
/**
* If present, indicates the object was newly created (e.g. as a blank document), not derived from a Drive o... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A change in the object's data leak prevention status.
*/
export interface Schema$DataLeakPreventionChange {
/**
* The type of Data Leak Prevention (DLP) change.
*/
type?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* An object was deleted.
*/
export interface Schema$Delete {
/**
* The type of delete action taken.
*/
type?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A user whose account has since been deleted.
*/
export interface Schema$DeletedUser {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about a domain.
*/
export interface Schema$Domain {
/**
* An opaque string used to identify this domain.
*/
legacyId?: string | null;
/**
* The name of the domain, e.g. "google.com".
*/
name?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about a shared drive.
*/
export interface Schema$Drive {
/**
* The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection ID for this resource name.
*/
name?: string | null;
/**
* The root of this shar... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A single Drive activity comprising one or more Actions by one or more Actors on one or more Targets. Some Action groupings occur spontaneously, such as moving an item into a shared folder triggering a permission change. Other groupings of related Actions, such as multiple Actors editing one item or moving mult... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A Drive item which is a file.
*/
export interface Schema$DriveFile {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A Drive item which is a folder.
*/
export interface Schema$DriveFolder {
/**
* The type of Drive folder.
*/
type?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A Drive item, such as a file or folder.
*/
export interface Schema$DriveItem {
/**
* The Drive item is a file.
*/
driveFile?: Schema$DriveFile;
/**
* The Drive item is a folder. Includes information about the type of folder.
*/
driveFolder?: Schema$DriveFolder;
/**
... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A lightweight reference to a Drive item, such as a file or folder.
*/
export interface Schema$DriveItemReference {
/**
* The Drive item is a file.
*/
driveFile?: Schema$DriveFile;
/**
* The Drive item is a folder. Includes information about the type of folder.
*/
driveFol... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A lightweight reference to a shared drive.
*/
export interface Schema$DriveReference {
/**
* The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection ID for this resource name.
*/
name?: string | null;
/**
* The... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* An empty message indicating an object was edited.
*/
export interface Schema$Edit {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* This item is deprecated; please see `DriveFile` instead.
*/
export interface Schema$File {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A comment on a file.
*/
export interface Schema$FileComment {
/**
* The comment in the discussion thread. This identifier is an opaque string compatible with the Drive API; see https://developers.google.com/drive/v3/reference/comments/get
*/
legacyCommentId?: string | null;
/**
* ... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* This item is deprecated; please see `DriveFolder` instead.
*/
export interface Schema$Folder {
/**
* This field is deprecated; please see `DriveFolder.type` instead.
*/
type?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about a group.
*/
export interface Schema$Group {
/**
* The email address of the group.
*/
email?: string | null;
/**
* The title of the group.
*/
title?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about an impersonation, where an admin acts on behalf of an end user. Information about the acting admin is not currently available.
*/
export interface Schema$Impersonation {
/**
* The impersonated user.
*/
impersonatedUser?: Schema$User;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A known user.
*/
export interface Schema$KnownUser {
/**
* True if this is the user making the request.
*/
isCurrentUser?: boolean | null;
/**
* The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". See https:... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A strategy which consolidates activities using the grouping rules from the legacy V1 Activity API. Similar actions occurring within a window of time can be grouped across multiple targets (such as moving a set of files at once) or multiple actors (such as several users editing the same item). Grouping rules fo... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* An object was moved.
*/
export interface Schema$Move {
/**
* The added parent object(s).
*/
addedParents?: Schema$TargetReference[];
/**
* The removed parent object(s).
*/
removedParents?: Schema$TargetReference[];
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* An object was created from scratch.
*/
export interface Schema$New {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A strategy which does no consolidation of individual activities.
*/
export interface Schema$NoConsolidation {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about the owner of a Drive item.
*/
export interface Schema$Owner {
/**
* The domain of the Drive item owner.
*/
domain?: Schema$Domain;
/**
* The drive that owns the item.
*/
drive?: Schema$DriveReference;
/**
* This field is deprecated; please use t... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* The permission setting of an object.
*/
export interface Schema$Permission {
/**
* If true, the item can be discovered (e.g. in the user's "Shared with me" collection) without needing a link to the item.
*/
allowDiscovery?: boolean | null;
/**
* If set, this permission applies to ... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A change of the permission setting on an item.
*/
export interface Schema$PermissionChange {
/**
* The set of permissions added by this change.
*/
addedPermissions?: Schema$Permission[];
/**
* The set of permissions removed by this change.
*/
removedPermissions?: Schema$P... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A regular posted comment.
*/
export interface Schema$Post {
/**
* The sub-type of this event.
*/
subtype?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* The request message for querying Drive activity.
*/
export interface Schema$QueryDriveActivityRequest {
/**
* Return activities for this Drive folder and all children and descendants. The format is "items/ITEM_ID".
*/
ancestorName?: string | null;
/**
* Details on how to consolida... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Response message for querying Drive activity.
*/
export interface Schema$QueryDriveActivityResponse {
/**
* List of activity requested.
*/
activities?: Schema$DriveActivity[];
/**
* Token to retrieve the next page of results, or empty if there are no more results in the list.
... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* An object was renamed.
*/
export interface Schema$Rename {
/**
* The new title of the drive object.
*/
newTitle?: string | null;
/**
* The previous title of the drive object.
*/
oldTitle?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A deleted object was restored.
*/
export interface Schema$Restore {
/**
* The type of restore action taken.
*/
type?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about restriction policy changes to a feature.
*/
export interface Schema$RestrictionChange {
/**
* The feature which had a change in restriction policy.
*/
feature?: string | null;
/**
* The restriction in place after the change.
*/
newRestriction?: string | ... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about settings changes.
*/
export interface Schema$SettingsChange {
/**
* The set of changes made to restrictions.
*/
restrictionChanges?: Schema$RestrictionChange[];
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A suggestion.
*/
export interface Schema$Suggestion {
/**
* The sub-type of this event.
*/
subtype?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Event triggered by system operations instead of end users.
*/
export interface Schema$SystemEvent {
/**
* The type of the system event that may triggered activity.
*/
type?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about the target of activity.
*/
export interface Schema$Target {
/**
* The target is a shared drive.
*/
drive?: Schema$Drive;
/**
* The target is a Drive item.
*/
driveItem?: Schema$DriveItem;
/**
* The target is a comment on a Drive file.
*/
... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A lightweight reference to the target of activity.
*/
export interface Schema$TargetReference {
/**
* The target is a shared drive.
*/
drive?: Schema$DriveReference;
/**
* The target is a Drive item.
*/
driveItem?: Schema$DriveItemReference;
/**
* This field is d... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* This item is deprecated; please see `Drive` instead.
*/
export interface Schema$TeamDrive {
/**
* This field is deprecated; please see `Drive.name` instead.
*/
name?: string | null;
/**
* This field is deprecated; please see `Drive.root` instead.
*/
root?: Schema$DriveIte... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* This item is deprecated; please see `DriveReference` instead.
*/
export interface Schema$TeamDriveReference {
/**
* This field is deprecated; please see `DriveReference.name` instead.
*/
name?: string | null;
/**
* This field is deprecated; please see `DriveReference.title` instea... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about time ranges.
*/
export interface Schema$TimeRange {
/**
* The end of the time range.
*/
endTime?: string | null;
/**
* The start of the time range.
*/
startTime?: string | null;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* A user about whom nothing is currently known.
*/
export interface Schema$UnknownUser {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* An object was uploaded into Drive.
*/
export interface Schema$Upload {} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration | /**
* Information about an end user.
*/
export interface Schema$User {
/**
* A user whose account has since been deleted.
*/
deletedUser?: Schema$DeletedUser;
/**
* A known user.
*/
knownUser?: Schema$KnownUser;
/**
* A user about whom nothing is currently known.
... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
InterfaceDeclaration |
export interface Params$Resource$Activity$Query extends StandardParameters {
/**
* Request body metadata
*/
requestBody?: Schema$QueryDriveActivityRequest;
} | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
MethodDeclaration | /**
* Query past activity in Google Drive.
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/driveactivity.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-defaul... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
MethodDeclaration |
query(
params?: Params$Resource$Activity$Query,
options?: MethodOptions
): GaxiosPromise<Schema$QueryDriveActivityResponse>; | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
MethodDeclaration |
query(
params: Params$Resource$Activity$Query,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void; | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
MethodDeclaration |
query(
params: Params$Resource$Activity$Query,
options:
| MethodOptions
| BodyResponseCallback<Schema$QueryDriveActivityResponse>,
callback: BodyResponseCallback<Schema$QueryDriveActivityResponse>
): void; | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
MethodDeclaration |
query(
params: Params$Resource$Activity$Query,
callback: BodyResponseCallback<Schema$QueryDriveActivityResponse>
): void; | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
MethodDeclaration |
query(
callback: BodyResponseCallback<Schema$QueryDriveActivityResponse>
): void; | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
MethodDeclaration |
query(
paramsOrCallback?:
| Params$Resource$Activity$Query
| BodyResponseCallback<Schema$QueryDriveActivityResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$QueryDriveActivityRe... | FahimFBA/google-api-nodejs-client | src/apis/driveactivity/v2.ts | TypeScript |
ArrowFunction |
({ children }: BlogLayoutProps) => {
return (
<div className="rw-scaffold">
<Toaster />
<header className="rw-header">
<h1 className="rw-heading rw-heading-primary">
<Link
to={routes.blogs()}
className="rw-link"
>
Blogs
</Link>... | pipisasa/aiplus-redwood-admin | web/src/layouts/BlogsLayout/BlogsLayout.tsx | TypeScript |
TypeAliasDeclaration |
type BlogLayoutProps = {
children: React.ReactNode
} | pipisasa/aiplus-redwood-admin | web/src/layouts/BlogsLayout/BlogsLayout.tsx | TypeScript |
ArrowFunction |
data => {
console.log(data);
if (data.loading === false) {
this.usersData = data.data.users;
}
} | ysantalla/gondolin | client/src/app/views/+home/home/home.component.ts | TypeScript |
ArrowFunction |
(prev, {subscriptionData}) => {
if (!subscriptionData.data) {
return prev;
}
console.log('yas');
const newUserItem = subscriptionData.data.userSubscription;
return Object.assign({}, prev, {
users: [...prev['users'], newUserItem.node]
});
} | ysantalla/gondolin | client/src/app/views/+home/home/home.component.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'app-home',
template: `
<ul>
<li *ngFor="let item of usersData">
{{ item.firstname }}
</li>
</ul>
`,
styles: []
})
export class HomeComponent implements OnInit {
usersQuery: QueryRef<any>;
users: Observable<any>;
params: any;
usersData: any;
constructor... | ysantalla/gondolin | client/src/app/views/+home/home/home.component.ts | TypeScript |
MethodDeclaration |
ngOnInit() {
this.usersQuery = this.apollo.watchQuery({
query: USER_QUERY
});
this.usersQuery.valueChanges.subscribe(
data => {
console.log(data);
if (data.loading === false) {
this.usersData = data.data.users;
}
});
this.subscribeToNewUsers();
... | ysantalla/gondolin | client/src/app/views/+home/home/home.component.ts | TypeScript |
MethodDeclaration |
subscribeToNewUsers() {
this.usersQuery.subscribeToMore({
document: USER_SUBSCRIPTION,
variables: {},
updateQuery: (prev, {subscriptionData}) => {
if (!subscriptionData.data) {
return prev;
}
console.log('yas');
const newUserItem = subscriptionData.data... | ysantalla/gondolin | client/src/app/views/+home/home/home.component.ts | TypeScript |
ClassDeclaration | /**
* Generated class for the VideoPage page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
@IonicPage()
@Component({
selector: 'page-video',
templateUrl: 'video.html',
})
export class VideoPage {
constructor(public navCtrl: NavController, pu... | payen83/ImpulseOTG | src/pages/video/video.ts | TypeScript |
MethodDeclaration |
ionViewDidLoad() {
console.log('ionViewDidLoad VideoPage');
} | payen83/ImpulseOTG | src/pages/video/video.ts | TypeScript |
FunctionDeclaration |
function* generateRange() {
let x = start - step
while (x < end - step) yield (x += step)
} | ggascoigne/acnw2 | src/utils/range.ts | TypeScript |
ArrowFunction |
(stop: number, start = 0, step = 1): Array<number> =>
Array(Math.ceil((stop - start) / step))
.fill(start)
.map((x, y) => x + y * step) | ggascoigne/acnw2 | src/utils/range.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.