type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
updateData(newData) {
const temp = [];
this.rows = [];
const program_name = [];
const risk_name = [];
this.updatedData = [];
this.updatedStage = [];
this.programNumber = [];
this.riskStatus = [];
this.table.offset = 0;
// seperation based on careplan or risk stage
for (const... | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration |
getRowClass(row) {
return 'danger';
} | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration |
openInterventionModal(type, participat_id) {
let t;
if (type === 'vitals') {
this._modal.open(InterventionComponent, overlayConfigFactory({ addMedicationPlan: false, participantId: participat_id },
InterventionModalContext)).then(d => {
t = d.result.then(data => {
if (data =... | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration |
showMyParticipant(event) {
this.searchParticipant = '';
if (event) {
this.rows = this.listData;
this.temp = this.listData;
this.isMycarePlan = true;
this.isChecked = true;
this.carePlanData = this.myCareplan;
// this.resetItems();
} else {
if (this.allData) {
... | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration |
isLinkDisabled(item) {
if (item > 0) {
return '';
} else {
return 'not-active';
}
} | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration |
unSubscribe() {
_.forEach(this.subScriptions, (sub) => {
if (sub) {
sub.unsubscribe();
}
});
} | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration |
showParticipantChange() {
this.updateGridWithCurrentData();
if (this.showParticipant) {
this.participantSelection('1');
} else {
this.participantSelection('2');
}
} | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration |
updateGridWithCurrentData() {
const intialData: IPatientListGridRequest = <IPatientListGridRequest>{
offset: this.gridOptions.offset,
my_patients: this.showParticipant,
search_params: this.searchParticipant,
program_nums: this.gridOptions.program_nums,
risk_status: this.gridOptions.ri... | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration | // get my Participants List
async updateGridData(reqObj: IPatientListGridRequest): Promise<IPatientListGridData> {
this.dataLoadingStarted();
this.unSubscribe();
try {
const data: any = await this._userManagementService.getParticipantList(reqObj)
.first().toPromise<IPatientListGridData>();
... | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration | /**
* Helps in order to close and open the list of participants.
*/
toggleList(i) {
// let currentElem = document.querySelectorAll('[data-anchor]')[i];
// currentElem.scrollIntoView();
this.highlightedDiv = i;
setTimeout(() => {
window.dispatchEvent(new Event('resize'));
}, 50);
} | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration |
ngOnDestroy() {
this.unSubscribe();
} | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration |
dataLoadingStarted(): void {
this.isDataLoading = true;
} | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration |
dataLoadingCompleted(): void {
this.isDataLoading = false;
} | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
MethodDeclaration | // call a function when key event is enter in search input
searchKeyPress(event) {
if (event.keyCode === 13 || this.searchParticipant === '') {
this.updateGridWithCurrentData();
}
return true;
} | harshravi/CHP | src/app/features/home/dashboard/components/home-data-table/home-data-table.component.ts | TypeScript |
ArrowFunction |
props => (
<svg xmlns="http://www.w3.org/2000/svg" | Armedin/kuka-ui | packages/icons/src/ToiletPaperUnderSlash.tsx | TypeScript |
ArrowFunction |
(props: SvgIconProps) => (
<SvgIcon component={SvgComponent} | Armedin/kuka-ui | packages/icons/src/ToiletPaperUnderSlash.tsx | TypeScript |
FunctionDeclaration |
export function findFile(files: Array<ResolvedUpdateFileInfo>, extension: string, not?: Array<string>): ResolvedUpdateFileInfo | null | undefined {
if (files.length === 0) {
throw newError("No files provided", "ERR_UPDATER_NO_FILES_PROVIDED")
}
const result = files.find(it => it.url.pathname.toLowerCase().e... | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
FunctionDeclaration |
export function parseUpdateInfo(rawData: string | null, channelFile: string, channelFileUrl: URL): UpdateInfo {
if (rawData == null) {
throw newError(`Cannot parse update info from ${channelFile} in the latest release artifacts (${channelFileUrl}): rawData: null`, "ERR_UPDATER_INVALID_UPDATE_INFO")
}
let re... | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
FunctionDeclaration |
export function getFileList(updateInfo: UpdateInfo): Array<UpdateFileInfo> {
const files = updateInfo.files
if (files != null && files.length > 0) {
return files
}
// noinspection JSDeprecatedSymbols
if (updateInfo.path != null) {
// noinspection JSDeprecatedSymbols
return [
{
url:... | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
FunctionDeclaration |
export function resolveFiles(updateInfo: UpdateInfo, baseUrl: URL, pathTransformer: (p: string) => string = (p: string): string => p): Array<ResolvedUpdateFileInfo> {
const files = getFileList(updateInfo)
const result: Array<ResolvedUpdateFileInfo> = files.map(fileInfo => {
if ((fileInfo as any).sha2 == null &... | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
ArrowFunction |
it => it.url.pathname.toLowerCase().endsWith(`.${extension}`) | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
ArrowFunction |
fileInfo => !not.some(ext => fileInfo.url.pathname.toLowerCase().endsWith(`.${ext}`)) | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
ArrowFunction |
ext => fileInfo.url.pathname.toLowerCase().endsWith(`.${ext}`) | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
ArrowFunction |
(p: string): string => p | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
ArrowFunction |
fileInfo => {
if ((fileInfo as any).sha2 == null && fileInfo.sha512 == null) {
throw newError(`Update info doesn't contain nor sha256 neither sha512 checksum: ${safeStringifyJson(fileInfo)}`, "ERR_UPDATER_NO_CHECKSUM")
}
return {
url: newUrlFromBase(pathTransformer(fileInfo.url), baseUrl),
... | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
ClassDeclaration |
export abstract class Provider<T extends UpdateInfo> {
private requestHeaders: OutgoingHttpHeaders | null = null
protected readonly executor: HttpExecutor<any>
protected constructor(private readonly runtimeOptions: ProviderRuntimeOptions) {
this.executor = runtimeOptions.executor
}
get isUseMultipleRan... | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
InterfaceDeclaration |
export interface ProviderRuntimeOptions {
isUseMultipleRangeRequest: boolean
platform: ProviderPlatform
executor: HttpExecutor<any>
} | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
TypeAliasDeclaration |
export type ProviderPlatform = "darwin" | "linux" | "win32" | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
MethodDeclaration |
private getChannelFilePrefix(): string {
if (this.runtimeOptions.platform === "linux") {
const arch = process.env.TEST_UPDATER_ARCH || process.arch
const archSuffix = arch === "x64" ? "" : `-${arch}`
return "-linux" + archSuffix
} else if (this.runtimeOptions.platform === "darwin") {
re... | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
MethodDeclaration | // due to historical reasons for windows we use channel name without platform specifier
protected getDefaultChannelName(): string {
return this.getCustomChannelName("latest")
} | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
MethodDeclaration |
protected getCustomChannelName(channel: string): string {
return `${channel}${this.getChannelFilePrefix()}`
} | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
MethodDeclaration |
setRequestHeaders(value: OutgoingHttpHeaders | null): void {
this.requestHeaders = value
} | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
MethodDeclaration |
abstract getLatestVersion(): Promise<T> | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
MethodDeclaration |
abstract resolveFiles(updateInfo: T): Array<ResolvedUpdateFileInfo> | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
MethodDeclaration | /**
* Method to perform API request only to resolve update info, but not to download update.
*/
protected httpRequest(url: URL, headers?: OutgoingHttpHeaders | null, cancellationToken?: CancellationToken): Promise<string | null> {
return this.executor.request(this.createRequestOptions(url, headers), cancellat... | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
MethodDeclaration |
protected createRequestOptions(url: URL, headers?: OutgoingHttpHeaders | null): RequestOptions {
const result: RequestOptions = {}
if (this.requestHeaders == null) {
if (headers != null) {
result.headers = headers
}
} else {
result.headers = headers == null ? this.requestHeaders :... | decooio/electron-builder | packages/electron-updater/src/providers/Provider.ts | TypeScript |
FunctionDeclaration |
export async function install(Vue: VueConstructor, options: any) {
if(install.installed) {
console.log('not installed')
return;
} else {
install.installed = true;
Vue.component('Copilot', CopilotModal);
}
} | jawa-the-hutt/nativescript-copilot | vue/src/index.ts | TypeScript |
ClassDeclaration |
class Copilot {
static install: PluginFunction<never>;
} | jawa-the-hutt/nativescript-copilot | vue/src/index.ts | TypeScript |
TypeAliasDeclaration |
type ErrorHandler = (err: Error) => void; | jawa-the-hutt/nativescript-copilot | vue/src/index.ts | TypeScript |
ClassDeclaration | /**
* This class represents the lazy loaded HomeComponent.
*/
@Component({
moduleId: module.id,
selector: 'sd-home',
templateUrl: 'home.component.html',
// styleUrls: ['home.component.css'],
directives: [REACTIVE_FORM_DIRECTIVES, DataTable]
})
export class HomeComponent implements OnInit {
newName: strin... | dbrezoev/manadoc_prototype | src/client/app/+home/home.component.ts | TypeScript |
MethodDeclaration | /**
* Get the names OnInit
*/
ngOnInit() {
} | dbrezoev/manadoc_prototype | src/client/app/+home/home.component.ts | TypeScript |
ArrowFunction |
(props) => {
const [userInfo, setUserInfo] = useState<Record<string, HelixUser>>({});
const { config, addQuickButton, setLiveItems } = useContext(ConfigContext);
const channelNames = new Set(
config.liveState.liveItems.map((item) => item.channelName)
);
useEffect(() => {
if (!config.liveState.liveIte... | noahm/featured-follow-button | frontend/src/viewer/follow-list.tsx | TypeScript |
ArrowFunction |
(item) => item.channelName | noahm/featured-follow-button | frontend/src/viewer/follow-list.tsx | TypeScript |
ArrowFunction |
() => {
if (!config.liveState.liveItems.length) {
return;
}
getUserInfo([...channelNames]).then((info) => {
const userInfo: Record<string, HelixUser> = {};
for (const channel of info) {
if (channel) {
userInfo[channel.login] = channel;
}
}
setUserInfo... | noahm/featured-follow-button | frontend/src/viewer/follow-list.tsx | TypeScript |
ArrowFunction |
(info) => {
const userInfo: Record<string, HelixUser> = {};
for (const channel of info) {
if (channel) {
userInfo[channel.login] = channel;
}
}
setUserInfo(userInfo);
} | noahm/featured-follow-button | frontend/src/viewer/follow-list.tsx | TypeScript |
ArrowFunction |
(item) => {
return (
<li key={item.id}>
<FollowButton
channelLogin={item.channelName}
forceTemplate="HEART"
disableTheme
onClick={props.onFollowClick}
/>{" "}
{listOptions.showAvatars && (
... | noahm/featured-follow-button | frontend/src/viewer/follow-list.tsx | TypeScript |
ArrowFunction |
() =>
setLiveItems(items.filter((i) => i.id !== item.id)) | noahm/featured-follow-button | frontend/src/viewer/follow-list.tsx | TypeScript |
ArrowFunction |
(i) => i.id !== item.id | noahm/featured-follow-button | frontend/src/viewer/follow-list.tsx | TypeScript |
InterfaceDeclaration |
interface Props {
onFollowClick?: () => void;
disableEdits?: boolean;
} | noahm/featured-follow-button | frontend/src/viewer/follow-list.tsx | TypeScript |
FunctionDeclaration |
export function useSnackbar(defaultOptions: UseSnackbarOptions = defaults) {
const toast = useToast(defaultOptions)
const parseOptions = React.useCallback(
(options: SnackbarOptions): UseToastOptions => {
if (typeof options === 'string') {
return {
title: options,
}
}
... | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
(props) => {
const styles = useStyles()
return (
<chakra.span
display="inherit"
{...props}
alignItems="center"
__css={styles.icon}
>
<Spinner size="sm" />
</chakra.span> | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
(props) => {
const {
status,
variant,
id,
title,
icon,
isClosable,
onClose,
description,
action,
} = props
const theme = useTheme()
// Use the snackbar variant if it exists, otherwise default to solid
const defaultVariant = theme.components?.Alert?.variants?.snackbar
... | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
(options: SnackbarOptions): UseToastOptions => {
if (typeof options === 'string') {
return {
title: options,
}
}
return options
} | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
() => {
const snackbar = (options: SnackbarOptions): ToastId | undefined => {
const opts = parseOptions(options)
return toast({
render: (props) => (
<Snackbar {...defaultOptions} {...opts} {...props} />
), | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
(options: SnackbarOptions): ToastId | undefined => {
const opts = parseOptions(options)
return toast({
render: (props) => (
<Snackbar {...defaultOptions} {...opts} {...props} />
), | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
(props) => (
<Snackbar {...defaultOptions} | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
(options: SnackbarOptions) =>
snackbar({
status: 'info',
...parseOptions(options),
}) | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
(options: SnackbarOptions) =>
snackbar({
status: 'success',
...parseOptions(options),
}) | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
(options: SnackbarOptions) =>
snackbar({
status: 'error',
...parseOptions(options),
}) | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
async (
promise: Promise<any>,
{ loading, success, error }: SnackbarPromiseOptions
) => {
let toastId: ToastId | undefined
if (loading) {
const options = parseOptions(loading)
toastId = snackbar({
status: 'info',
duration: null,
icon: <AlertSpin... | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
() => {
const options = parseOptions(success)
if (toastId) {
snackbar.update(toastId, {
status: 'success',
...options,
})
} else {
snackbar(options)
}
} | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
(error) => {
const options: UseToastOptions = {
title: error.name,
description: error.description,
status: 'error',
}
if (toastId) {
snackbar.update(toastId, options)
} else {
snackbar(options)
}
} | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
(toastId: ToastId, options: UseToastOptions) => {
return toast.update(toastId, {
render: (props) => (
<Snackbar {...defaultOptions} {...options} {...props} />
),
...options,
} | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
InterfaceDeclaration |
interface UseSnackbarOptions extends UseToastOptions {
icon?: React.ReactNode
action?: React.ReactNode
variant?:
| 'snackbar'
| 'subtle'
| 'solid'
| 'left-accent'
| 'top-accent'
| string
} | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
InterfaceDeclaration |
export interface SnackbarPromiseOptions {
loading?: SnackbarOptions
success: SnackbarOptions
error: any
} | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
TypeAliasDeclaration |
type SnackbarOptions = UseSnackbarOptions | string | AppulseSoftware/saas-ui | packages/saas-ui-snackbar/src/use-snackbar.tsx | TypeScript |
ArrowFunction |
() => {
let component: IdiomasPage;
let fixture: ComponentFixture<IdiomasPage>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ IdiomasPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(IdiomasPage);
co... | Nhillus/Swiff | src/app/idiomas/idiomas.page.spec.ts | TypeScript |
ArrowFunction |
() => {
TestBed.configureTestingModule({
declarations: [ IdiomasPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(IdiomasPage);
component = fixture.componentInstance;
fixture.detectChanges();
} | Nhillus/Swiff | src/app/idiomas/idiomas.page.spec.ts | TypeScript |
ClassDeclaration | /* ------------------------------------------------------------------- */
/* Config
/* ------------------------------------------------------------------- */
// =====> Component config
@Component({
selector: 'app-settings',
styleUrls: ['./settings.component.sass'],
templateUrl: './set... | codebyravi/angular-breadcrumbs-light | src/app/pages/settings/settings.component.ts | TypeScript |
MethodDeclaration | /* ------------------------------------------------------------------- */
/* Lifecycle
/* ------------------------------------------------------------------- */
ngOnInit() {
} | codebyravi/angular-breadcrumbs-light | src/app/pages/settings/settings.component.ts | TypeScript |
ArrowFunction |
() => AuthorBioWhereUniqueInput | e-NABLE-Volunteer-Community/configurator-export | src/@generated/prisma-nestjs-graphql/author-bio/author-bio-upsert-with-where-unique-without-author.input.ts | TypeScript |
ArrowFunction |
() => AuthorBioUpdateWithoutAuthorInput | e-NABLE-Volunteer-Community/configurator-export | src/@generated/prisma-nestjs-graphql/author-bio/author-bio-upsert-with-where-unique-without-author.input.ts | TypeScript |
ArrowFunction |
() => AuthorBioCreateWithoutAuthorInput | e-NABLE-Volunteer-Community/configurator-export | src/@generated/prisma-nestjs-graphql/author-bio/author-bio-upsert-with-where-unique-without-author.input.ts | TypeScript |
ClassDeclaration |
@InputType()
export class AuthorBioUpsertWithWhereUniqueWithoutAuthorInput {
@Field(() => AuthorBioWhereUniqueInput, {nullable:false})
where!: AuthorBioWhereUniqueInput;
@Field(() => AuthorBioUpdateWithoutAuthorInput, {nullable:false})
update!: AuthorBioUpdateWithoutAuthorInput;
@Field(() => Aut... | e-NABLE-Volunteer-Community/configurator-export | src/@generated/prisma-nestjs-graphql/author-bio/author-bio-upsert-with-where-unique-without-author.input.ts | TypeScript |
ArrowFunction |
(authState) => {
if (!authState.isLoggedIn) {
this.router.navigate([this.routePath]);
}
} | Abhi58/EvalAI-ngx | src/app/components/dashboard/dashboard.component.ts | TypeScript |
ClassDeclaration | /**
* Component Class
*/
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent implements OnInit, OnDestroy {
/**
* Authentication Service subscription
*/
authServiceSubscription: any;
/**
... | Abhi58/EvalAI-ngx | src/app/components/dashboard/dashboard.component.ts | TypeScript |
MethodDeclaration | /**
* Component on initialized.
*/
ngOnInit() {
if (!this.authService.isLoggedIn()) {
this.router.navigate([this.routePath]);
}
this.authServiceSubscription = this.authService.change.subscribe((authState) => {
if (!authState.isLoggedIn) {
this.router.navigate([this.routePath]);
... | Abhi58/EvalAI-ngx | src/app/components/dashboard/dashboard.component.ts | TypeScript |
MethodDeclaration |
ngOnDestroy(): void {
if (this.authServiceSubscription) {
this.authServiceSubscription.unsubscribe();
}
} | Abhi58/EvalAI-ngx | src/app/components/dashboard/dashboard.component.ts | TypeScript |
FunctionDeclaration |
export default function OfficerDashboard({
bolos,
calls,
activeOfficer,
activeIncidents,
allOfficers,
allDeputies,
}: Props) {
const leoState = useLeoState();
const dispatchState = useDispatchState();
const t = useTranslations("Leo");
const { signal100Enabled, Component, audio: signal100Audio } = ... | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
FunctionDeclaration |
function handleRecordCreate(data: Record) {
if (!currentResult) return;
setCurrentResult({
...currentResult,
Record: [data, ...currentResult.Record],
});
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
FunctionDeclaration |
function activeFilter(v: EmsFdDeputy | Officer) {
return Boolean(v.statusId && v.status?.shouldDo !== ShouldDoType.SET_OFF_DUTY);
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
async () => {
return (await import("components/leo/modals/CreateWarrantModal")).CreateWarrantModal;
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
async () => {
return (await import("components/leo/modals/CustomFieldSearch/CustomFieldSearch"))
.CustomFieldSearch;
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
async () => {
return (await import("components/leo/modals/NameSearchModal/NameSearchModal")).NameSearchModal;
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
async () => {
return (await import("components/leo/modals/VehicleSearchModal")).VehicleSearchModal;
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
async () => {
return (await import("components/leo/modals/WeaponSearchModal")).WeaponSearchModal;
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
async () => {
return (await import("components/shared/NotepadModal")).NotepadModal;
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
async () => {
return (await import("components/leo/modals/SelectOfficerModal")).SelectOfficerModal;
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
async () => {
return (await import("components/leo/modals/ManageRecordModal")).ManageRecordModal;
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
() => {
leoState.setActiveOfficer(activeOfficer);
dispatchState.setCalls(calls);
dispatchState.setBolos(bolos);
dispatchState.setActiveIncidents(activeIncidents);
dispatchState.setAllOfficers(allOfficers);
function activeFilter(v: EmsFdDeputy | Officer) {
return Boolean(v.statusId && v... | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
() => {
if (!user) return;
const userOfficers = allOfficers.filter((v) => v.userId === user.id);
leoState.setOfficers(userOfficers);
// eslint-disable-next-line react-hooks/exhaustive-deps
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
(v) => v.userId === user.id | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
(u) => u.isLeo | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
async ({ req, locale }) => {
const adminValuesURL =
"/admin/values/codes_10?paths=penal_code,impound_lot,license,driverslicense_category,vehicle_flag,citizen_flag";
const [
activeOfficer,
values,
calls,
bolos,
{ officers: allOfficers, deputies: allDeputies, activeIncidents },
] = await r... | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
InterfaceDeclaration |
interface Props {
activeOfficer: ActiveOfficer | null;
calls: Full911Call[];
bolos: Bolo[];
activeIncidents: LeoIncident[];
allDeputies: EmsFdDeputy[];
allOfficers: Officer[];
} | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
MethodDeclaration |
t("officer") | SnailyCAD/snaily-cadv4 | packages/client/src/pages/officer/index.tsx | TypeScript |
ArrowFunction |
() => {
let component: NewInvoiceComponent;
let fixture: ComponentFixture<NewInvoiceComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ NewInvoiceComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(NewInvoice... | KeeTraxx/kInvoice | src/main/typescript/src/app/newinvoice/newinvoice.component.spec.ts | TypeScript |
ArrowFunction |
() => {
TestBed.configureTestingModule({
declarations: [ NewInvoiceComponent ]
})
.compileComponents();
} | KeeTraxx/kInvoice | src/main/typescript/src/app/newinvoice/newinvoice.component.spec.ts | TypeScript |
ArrowFunction |
() => {
fixture = TestBed.createComponent(NewInvoiceComponent);
component = fixture.componentInstance;
fixture.detectChanges();
} | KeeTraxx/kInvoice | src/main/typescript/src/app/newinvoice/newinvoice.component.spec.ts | TypeScript |
ArrowFunction |
() => {
const queryClient = new QueryClient();
it('Skal inneholde checkbokser med riktige labels', () => {
const component = render(
<QueryClientProvider client={queryClient}>
<HendelseTypeFilter />
</QueryClientProvider>
);
const onskerMoteCheckbox = component.getByRole('checkbox... | navikt/syfooversikt | test/components/HendelseTypeFilter.test.tsx | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.