type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
TypeAliasDeclaration |
export type MainStateActions =
| SetAllDocuments
| SetDocumentLoading
| NextDocument
| PreviousDocument
| UpdateCurrentDocument
| SetRendererRect
| SetMainConfig
| SetCurrentDocument; | buyerassist-io/react-doc-viewer | src/state/actions.ts | TypeScript |
FunctionDeclaration |
export function setComponentTemplate(template: TF, klass: any): any; | TheLooseCannon/ember-elements | packages/core/types/global.d.ts | TypeScript |
TypeAliasDeclaration |
type TF = TemplateFactory; | TheLooseCannon/ember-elements | packages/core/types/global.d.ts | TypeScript |
FunctionDeclaration |
export declare function parseVueRequest(id: string): {
filename: string;
query: VueQuery;
}; | 278440912/vue30 | node_modules/@vitejs/plugin-vue/dist/index.d.ts | TypeScript |
FunctionDeclaration |
declare function vuePlugin(rawOptions?: Options): Plugin_2; | 278440912/vue30 | node_modules/@vitejs/plugin-vue/dist/index.d.ts | TypeScript |
InterfaceDeclaration |
export declare interface Options {
include?: string | RegExp | (string | RegExp)[];
exclude?: string | RegExp | (string | RegExp)[];
isProduction?: boolean;
script?: Partial<SFCScriptCompileOptions>;
template?: Partial<SFCTemplateCompileOptions>;
style?: Partial<SFCStyleCompileOptions>;
... | 278440912/vue30 | node_modules/@vitejs/plugin-vue/dist/index.d.ts | TypeScript |
InterfaceDeclaration |
export declare interface ResolvedOptions extends Options {
root: string;
devServer?: ViteDevServer;
} | 278440912/vue30 | node_modules/@vitejs/plugin-vue/dist/index.d.ts | TypeScript |
InterfaceDeclaration |
export declare interface VueQuery {
vue?: boolean;
src?: boolean;
type?: 'script' | 'template' | 'style' | 'custom';
index?: number;
lang?: string;
raw?: boolean;
} | 278440912/vue30 | node_modules/@vitejs/plugin-vue/dist/index.d.ts | TypeScript |
ClassDeclaration |
@Injectable()
export class CircleService {
constructor(
@InjectModel(Circle.name) private circleModel: Model<CircleDocument>,
) {}
async create(createCircleDto: CreateCircleDto): Promise<Circle> {
return new this.circleModel(createCircleDto).save();
}
async findAll(): Promise<Circle[]> {
return... | saiboTBre/holobe | src/domain/circle/circle.service.ts | TypeScript |
MethodDeclaration |
async create(createCircleDto: CreateCircleDto): Promise<Circle> {
return new this.circleModel(createCircleDto).save();
} | saiboTBre/holobe | src/domain/circle/circle.service.ts | TypeScript |
MethodDeclaration |
async findAll(): Promise<Circle[]> {
return this.circleModel.find().exec();
} | saiboTBre/holobe | src/domain/circle/circle.service.ts | TypeScript |
MethodDeclaration |
async findOne(id: ObjectId) {
return this.circleModel.findById(id);
} | saiboTBre/holobe | src/domain/circle/circle.service.ts | TypeScript |
ClassDeclaration |
@Component({
selector: "jigsaw-header,j-header",
templateUrl: "header.html",
host: {
"[class.jigsaw-header-host]": "true",
"[class.jigsaw-header-level-1]": "level == 1",
"[class.jigsaw-header-level-2]": "level == 2",
"[class.jigsaw-header-level-3]": "level == 3"
},
c... | dingxiaoxue/jigsaw | src/jigsaw/pc-components/header/header.ts | TypeScript |
ClassDeclaration |
@NgModule({
imports: [CommonModule],
declarations: [JigsawHeader],
exports: [JigsawHeader]
})
export class JigsawHeaderModule {} | dingxiaoxue/jigsaw | src/jigsaw/pc-components/header/header.ts | TypeScript |
InterfaceDeclaration |
interface IUbiquityGovernanceInterface extends ethers.utils.Interface {
functions: {
"allowance(address,address)": FunctionFragment;
"approve(address,uint256)": FunctionFragment;
"balanceOf(address)": FunctionFragment;
"burn(uint256)": FunctionFragment;
"burnFrom(address,uint256)": FunctionFragme... | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
allowance(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<BigNumber>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
"allowance(address,address)"(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<BigNumber>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
approve(
spender: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
"approve(address,uint256)"(
spender: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
"balanceOf(address)"(
account: string,
overrides?: CallOverrides
): Promise<BigNumber>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
burn(
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
"burn(uint256)"(
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
burnFrom(
account: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
"burnFrom(address,uint256)"(
account: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
mint(
account: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
"mint(address,uint256)"(
account: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
permit(
owner: string,
spender: string,
value: BigNumberish,
deadline: BigNumberish,
v: BigNumberish,
r: BytesLike,
s: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)"(
owner: string,
spender: string,
value: BigNumberish,
deadline: BigNumberish,
v: BigNumberish,
r: BytesLike,
s: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
totalSupply(overrides?: CallOverrides): Promise<BigNumber>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
"totalSupply()"(overrides?: CallOverrides): Promise<BigNumber>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
transfer(
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
"transfer(address,uint256)"(
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
MethodDeclaration |
"transferFrom(address,address,uint256)"(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>; | Zequez/uad-ui-launch | frontend/src/types/IUbiquityGovernance.d.ts | TypeScript |
FunctionDeclaration |
function Bomb() {
// console.log("");
// throw new Error("Boom");
} | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
FunctionDeclaration |
export default function APIList() {
const handleError = useErrorHandler();
try {
Bomb();
} catch (error) {
handleError(error);
}
const navigate = useNavigate();
const [selected, setSelected] = useState(1);
const [search, setSearch] = useState(" ");
const [DeleteApiId, SetDeleteApiId] = useState... | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
FunctionDeclaration |
function deleteApiFromState(id: string) {
const newState = datalist.list.filter((item) => item.Id !== id);
// console.log(newState);
const pageCount = apiList.data?.TotalCount;
if (newState.length === 0 && pageCount !== 1) {
mainCall(selected - 1, 4);
setSelected(selected - 1);
} else m... | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
(state: RootState) => state.apiListState | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
() => ToastAlert(apiList.error!, "error") | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
async (currentPage: number, pageSize: number) => {
dispatch(getApiList({ currentPage, pageSize }));
// handleError(resp.payload);
} | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
() => {
if (apiList.data && apiList.data?.Apis?.length > 0) {
const listAPI: IApiData[] = [];
for (const item of apiList.data?.Apis) {
const api = statusAndDateHelper(item);
listAPI.push(api);
}
setDataList({
list: [...listAPI],
fields: ["Name", "TargetUrl", ... | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
() => {
mainCall(1, 4);
} | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
(pageSelected: number) => {
mainCall(pageSelected, 4);
setSelected(pageSelected);
} | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
(e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
e.preventDefault();
const newSearchList = datalist.list.filter((item) =>
item.Name.toLocaleLowerCase().includes(search)
);
setDataList({
list: [...newSearchList],
fields: ["Name", "TargetUrl", "Status", "CreatedDateTxt"],
... | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
(item) =>
item.Name.toLocaleLowerCase().includes(search) | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
(
val: React.MouseEvent<HTMLButtonElement, MouseEvent>
) => {
val.preventDefault();
navigate("/gateway/apis/create");
} | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
(val: IApiData) => {
if (val.Id) {
navigate(`/gateway/apis/update/${val.Id}`);
}
} | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
(item) => item.Id !== id | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
async (Id: string) => {
setShow(false);
// console.log("delete clicked", Id);
const result = await dispatch(deleteApi(Id));
if (result.meta.requestStatus === "rejected") {
await ToastAlert(result.payload.message, "error");
} else {
deleteApiFromState(Id);
await ToastAlert("Api De... | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
() => setShow(false) | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
async (val: IApiData) => {
if (val.Id && val.Id) {
setShow(true);
SetDeleteApiId(val.Id);
}
} | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
() => {
// console.log(apiList);
} | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
MethodDeclaration |
failure() | NeoSOFT-Technologies/console | src/pages/features/gateway/api/list/APIList.tsx | TypeScript |
ArrowFunction |
(
props: FileUploadComponent.IProps
): React.ReactElement<FileUploadComponent.IProps> => {
return (
<GroupItem spacing={vars.textIconHalfSpacing}>
<TextItem source={'Uploading'} />
<ProgressBar percentage={props.upload} />
</GroupItem> | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
ArrowFunction |
(
tracker: InstanceTracker<FileBrowser>,
browser: FileBrowser | null
) => {
if (browser === null) {
this.model!.browserModel = null;
} else {
this.model!.browserModel = browser.model;
}
} | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
ArrowFunction |
(
browse: FileBrowserModel,
uploads: IChangedArgs<IUploadModel>
) => {
if (uploads.name === 'start') {
this._items.push({
path: uploads.newValue.path,
progress: uploads.newValue.progress * 100,
compl... | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
ArrowFunction |
val => val.path === uploads.oldValue.path | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
ArrowFunction |
() => {
ArrayExt.removeAt(this._items, idx);
this.stateChanged.emit(void 0);
} | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
ArrowFunction |
(
app: JupyterLab,
manager: IDefaultsManager,
browser: IFileBrowserFactory
) => {
const item = new FileUpload({
tracker: browser.tracker
});
manager.addDefaultStatus('file-upload-item', item, {
align: 'middle',
isActive: () => {
... | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
ArrowFunction |
() => {
return !!item.model && item.model.items.length > 0;
} | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
ClassDeclaration |
class FileUpload extends VDomRenderer<FileUpload.Model> implements IFileUpload {
constructor(opts: FileUpload.IOptions) {
super();
this._tracker = opts.tracker;
this._tracker.currentChanged.connect(this._onBrowserChange);
this.model = new FileUpload.Model(
this._tracker... | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
ClassDeclaration |
export class Model extends VDomModel implements IFileUpload.IModel {
constructor(browserModel: FileBrowserModel | null) {
super();
this.browserModel = browserModel;
}
get items() {
return this._items;
}
get browserModel() {
retu... | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
InterfaceDeclaration |
export interface IProps {
upload: number;
} | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
InterfaceDeclaration |
export interface IOptions {
readonly tracker: InstanceTracker<FileBrowser>;
} | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
InterfaceDeclaration |
export interface IFileUpload extends IDisposable {
readonly model: IFileUpload.IModel | null;
readonly modelChanged: ISignal<this, void>;
} | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
InterfaceDeclaration |
export interface IModel {
readonly items: Array<IFileUpload.IItem>;
readonly browserModel: FileBrowserModel | null;
} | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
InterfaceDeclaration |
export interface IItem {
path: string;
progress: number;
complete: boolean;
} | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
MethodDeclaration |
render() {
const uploadPaths = this.model!.items;
if (uploadPaths.length > 0) {
const item = this.model!.items[0];
if (item.complete) {
return <TextItem source="Complete!" />;
} else {
return (
<FileUploadComponent... | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
MethodDeclaration |
dispose() {
super.dispose();
this._tracker.currentChanged.disconnect(this._onBrowserChange);
} | takashimokobe/jupyterlab-statusbar | src/defaults/fileUpload.tsx | TypeScript |
ClassDeclaration |
class Logo extends React.Component<ILogoProps> {
render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> {
return (
<svg className={this.props.className} width={this.props.width} height={this.props.height} cursor="default" viewBox="0 0 132.29166 100.54166"
... | hgpestana/foca | assets/tsx/components/Logo.tsx | TypeScript |
InterfaceDeclaration |
export interface ILogoProps {
className?: string
width: string
height: string
} | hgpestana/foca | assets/tsx/components/Logo.tsx | TypeScript |
MethodDeclaration |
render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> {
return (
<svg className={this.props.className} width={this.props.width} height={this.props.height} cursor="default" viewBox="0 0 132.29166 100.54166"
xmlns="http://www.w3.org/2000/svg">
<... | hgpestana/foca | assets/tsx/components/Logo.tsx | TypeScript |
InterfaceDeclaration |
export interface ProfileService extends SdkServiceOnInitDelegate {
createProfile(profile: Profile, profileSource: ProfileSource): Observable<Profile>;
deleteProfile(uid: string): Observable<undefined>;
updateProfile(profile: Profile): Observable<Profile>;
updateServerProfile(updateServerProfileRequest:... | Ajoymaity/sunbird-mobile-sdk | dist/profile/def/profile-service.d.ts | TypeScript |
InterfaceDeclaration |
interface Configs {
pocer: {
port: number;
};
db: ClientConfig;
eth: {
baseURI: string;
salt: string;
node: string;
networkId: number | string;
account?: string | null;
password?: string | null;
};
} | funmaker/webapp-boilerplate | server/helpers/configs.ts | TypeScript |
ArrowFunction |
data => {
this.array_eq = data ;
aux = this.createRowData(this.array_eq) ;
if ( aux.length > 0 ) {
// Se rellena el combo...
this.eq.push({label:'Seleccione equipo', value:null});
for (let i = 0; i < aux.length; i++) {
... | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
ArrowFunction |
error => {
this.errorMessage = <any>error ;
this.mensajes('error_guardar', 'Error de acceso a servidores') ;} | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
ArrowFunction |
data => {
this.array_cp = data ;
aux = this.createRowData(this.array_cp) ;
if ( aux.length > 0 ) {
// Se rellena el combo...
this.cp.push({label:'Seleccione categoría', value:null});
for (let i = 0; i < aux.length; i++) {
... | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
MethodDeclaration |
public cargarEquipo() {
this.eq = [];
// Variable para recoger lo que viene del backend.
let aux: any[] ;
// Variables.
let desc: string ;
let ident:number ;
let codigo: string ;
let label: string ;
// Se llama a servicio de componente para recuperar información... | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
MethodDeclaration |
public cargarCP() {
this.cp = [];
// Variable para recoger lo que viene del backend.
let aux: any[] ;
// Variables.
let desc: string ;
let ident:number ;
let codigo: string ;
let label: string ;
// Se llama a servicio de componente para recuperar información.
... | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
MethodDeclaration |
public showDialog() {
this.display = true;
} | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
MethodDeclaration |
insertarFila() {
if ( this.eq_sel == null || this.cp_sel == null) {
this.mensajes('error_guardar_filas') ;
}
else {
let nuevoElemento = this.crearNuevaFilaDatos();
this.gridOptions.api.addItems([nuevoElemento]);
}
} | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
MethodDeclaration |
public mensajes2(opcion: string): any {
// Método para incluir nuevos mensajes.
let ret = false ;
let severity: string ;
let summary:string ;
let mensaje: string ;
if (opcion == "error_guardar_filas") {
ret = true ;
severity = 'error' ;
summary = 'wShifts ... | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
MethodDeclaration |
public validaciones(modelo: any): any {
// Bandera de estado.
let ret = true ;
// Bolsa de filas nuevas.
let bolsa: any [] = [] ;
// Se itera por los nodos del modelo, para verificar que los datos son
// correctos. Además se seleccionan las filas nuevas para ser devueltas
//... | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
MethodDeclaration |
public crearNuevaFilaDatos() {
let eq_id = this.eq_sel['id'] ;
let eq_cod = this.eq_sel['code'] ;
let eq_desc = this.eq_sel['name'] ;
let cp_id = this.cp_sel['id'] ;
let cp_cod = this.cp_sel['code'] ;
let cp_desc = this.cp_sel['name'] ;
let nuevaFila = {
id : 0,
... | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
MethodDeclaration |
public createColumnDefs() {
return [
{ headerName: "id", field: "id", hide: true, width: 100 },
{ headerName: "eq_id", field: "eq_id", hide: true, width: 100 },
{ headerName: "Código Equipo", field: "eq_cod", width: 130 },
{ headerName: "Descripción Equipo",... | angeloide78/wShifts | cliente/app/categoria_equipo/categoria_equipo.component.ts | TypeScript |
ArrowFunction |
() => {
const stack = new Stack();
const pattern = new ApiGatewayToSageMakerEndpoint(stack, 'api-gateway-sagemakerendpoint', {
endpointName: 'my-endpoint',
resourcePath: '{my_param}',
requestMappingTemplate: 'my-request-vtl-template'
});
expect(pattern.apiGateway !== null);
expect(pattern.apiGat... | Nexuscompute/aws-solutions-constructs | source/patterns/@aws-solutions-constructs/aws-apigateway-sagemakerendpoint/test/apigateway-sagemakerendpoint.test.ts | TypeScript |
ArrowFunction |
() => {
const stack = new Stack();
const existingRole = new iam.Role(stack, 'api-gateway-role', {
assumedBy: new iam.ServicePrincipal('apigateway.amazonaws.com'),
description: 'existing role for SageMaker integration',
inlinePolicies: {
InvokePolicy: new iam.PolicyDocument({
statements: ... | Nexuscompute/aws-solutions-constructs | source/patterns/@aws-solutions-constructs/aws-apigateway-sagemakerendpoint/test/apigateway-sagemakerendpoint.test.ts | TypeScript |
ArrowFunction |
() =>
async (dispatch: Dispatch<FarmAction>, getState: () => RootState): Promise<void> => {
const { accountPkh } = getState().wallet;
try {
// Retrieve boxes
const _res = await axios.get(`${indexerAPI}/boxes?address=${accountPkh}`);
const boxes: Box[] = [];
// Iterate and assign stag... | AnshuJalan/box-defi | dapp/src/redux/action-creators/farm.ts | TypeScript |
ArrowFunction |
async (dispatch: Dispatch<FarmAction>, getState: () => RootState): Promise<void> => {
const { accountPkh } = getState().wallet;
try {
// Retrieve boxes
const _res = await axios.get(`${indexerAPI}/boxes?address=${accountPkh}`);
const boxes: Box[] = [];
// Iterate and assign stages
... | AnshuJalan/box-defi | dapp/src/redux/action-creators/farm.ts | TypeScript |
ArrowFunction |
(
timesWatered: number,
lastWatered: string
): { stage: BoxStage; needsWater: boolean; waterBy: number } => {
const notWateredIn = Date.now() - new Date(lastWatered).getTime();
if (notWateredIn > 2 * waterPeriod && timesWatered !== 5)
return { stage: BoxStage.DEAD, waterBy: 0, needsWater: false };
else {... | AnshuJalan/box-defi | dapp/src/redux/action-creators/farm.ts | TypeScript |
ArrowFunction |
x => result[x] = Math.max(0, value[x]) | M1Les/PowerBI-visuals | src/Clients/CustomVisuals/visuals/dotPlot/dotPlot.ts | TypeScript |
ArrowFunction |
() => visualMessage | M1Les/PowerBI-visuals | src/Clients/CustomVisuals/visuals/dotPlot/dotPlot.ts | TypeScript |
ArrowFunction |
(point: DotPlotDataPoint) => xScale(point.x) + xScale.rangeBand() / 2 | M1Les/PowerBI-visuals | src/Clients/CustomVisuals/visuals/dotPlot/dotPlot.ts | TypeScript |
ArrowFunction |
(point: DotPlotDataPoint) => yScale(point.y) | M1Les/PowerBI-visuals | src/Clients/CustomVisuals/visuals/dotPlot/dotPlot.ts | TypeScript |
ArrowFunction |
d => d.color | M1Les/PowerBI-visuals | src/Clients/CustomVisuals/visuals/dotPlot/dotPlot.ts | TypeScript |
ArrowFunction |
(data: DotPlotDataPoint) => {
this.selectionManager
.select(data.identity, d3.event.ctrlKey)
.then((selectionIds: SelectionId[]) => this.setSelection(dotSelection, selectionIds));
d3.event.stopPropagation();
} | M1Les/PowerBI-visuals | src/Clients/CustomVisuals/visuals/dotPlot/dotPlot.ts | TypeScript |
ArrowFunction |
(selectionIds: SelectionId[]) => this.setSelection(dotSelection, selectionIds) | M1Les/PowerBI-visuals | src/Clients/CustomVisuals/visuals/dotPlot/dotPlot.ts | TypeScript |
ArrowFunction |
() => {
this.selectionManager.clear();
this.setSelection(dotSelection);
} | M1Les/PowerBI-visuals | src/Clients/CustomVisuals/visuals/dotPlot/dotPlot.ts | TypeScript |
ArrowFunction |
(dotSelectionData: DotPlotDataPoint) =>
!selectionIds.some((selectionId: SelectionId) => dotSelectionData.identity === selectionId) | M1Les/PowerBI-visuals | src/Clients/CustomVisuals/visuals/dotPlot/dotPlot.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.