repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
mbalabash/sdc-check
https://github.com/mbalabash/sdc-check/blob/ec4e831c0e276b3f1e338c8ea1407483771f8ff3/src/report.d.ts
src/report.d.ts
import { ValidationResult } from 'lockfile-lint-api' import { Config, Report, SdcCheckMetric } from '../index' import { IgnoredPackages } from './utils' import { Metrics } from './metrics' export type METRICS_ALIASES = { lockFileIsNotSafe: 'lockfile-is-not-safe' hasTooManyDecisionMakers: 'too-many-decision-makers...
typescript
MIT
ec4e831c0e276b3f1e338c8ea1407483771f8ff3
2026-01-05T04:59:58.596263Z
false
mbalabash/sdc-check
https://github.com/mbalabash/sdc-check/blob/ec4e831c0e276b3f1e338c8ea1407483771f8ff3/src/utils.d.ts
src/utils.d.ts
import { Config } from '../index' export type IgnoredPackages = { [key: string]: boolean | string[] } export declare function loadConfig( mode: 'internal' | 'external', directory: string ): Promise<Config> export declare function findLockFilePath( mode: 'internal' | 'external', directory: string ): Promise<s...
typescript
MIT
ec4e831c0e276b3f1e338c8ea1407483771f8ff3
2026-01-05T04:59:58.596263Z
false
mbalabash/sdc-check
https://github.com/mbalabash/sdc-check/blob/ec4e831c0e276b3f1e338c8ea1407483771f8ff3/src/cli.d.ts
src/cli.d.ts
import { OptionValues } from 'commander' import { SdcCheckMetric } from '..' export declare function printErrorsInfo( reportedItems: { metric: SdcCheckMetric; package: string; message: string }[], cliOptions: OptionValues ): void export declare function printWarningsInfo( reportedItems: { metric: SdcCheckMetric...
typescript
MIT
ec4e831c0e276b3f1e338c8ea1407483771f8ff3
2026-01-05T04:59:58.596263Z
false
mbalabash/sdc-check
https://github.com/mbalabash/sdc-check/blob/ec4e831c0e276b3f1e338c8ea1407483771f8ff3/test/report.test.ts
test/report.test.ts
import { test } from 'uvu' import { equal, throws } from 'uvu/assert' import { readFile } from 'fs/promises' import { join, dirname } from 'path' import { fileURLToPath } from 'url' import { createReport, getMetricMessageForReport, isIgnoredMetric, // @ts-expect-error Does not see this object SDC_CHECK_METRI...
typescript
MIT
ec4e831c0e276b3f1e338c8ea1407483771f8ff3
2026-01-05T04:59:58.596263Z
false
mbalabash/sdc-check
https://github.com/mbalabash/sdc-check/blob/ec4e831c0e276b3f1e338c8ea1407483771f8ff3/test/utils.test.ts
test/utils.test.ts
import { test } from 'uvu' import { equal, snapshot } from 'uvu/assert' import { readFile, writeFile } from 'fs/promises' import { join, dirname } from 'path' import { fileURLToPath } from 'url' import { loadIgnoreFile, loadConfig } from '../src/utils.js' const __dirname = dirname(fileURLToPath(import.meta.url)) cons...
typescript
MIT
ec4e831c0e276b3f1e338c8ea1407483771f8ff3
2026-01-05T04:59:58.596263Z
false
mbalabash/sdc-check
https://github.com/mbalabash/sdc-check/blob/ec4e831c0e276b3f1e338c8ea1407483771f8ff3/test/metrics.test.ts
test/metrics.test.ts
import { test } from 'uvu' import { equal, snapshot } from 'uvu/assert' import { readFile } from 'fs/promises' import { join, dirname } from 'path' import { fileURLToPath } from 'url' import { getMetrics, gatherMetricsFromNodeSecScanner, gatherSourceCodeRepositoryMetric, gatherDangerousShellCommandsMetric, g...
typescript
MIT
ec4e831c0e276b3f1e338c8ea1407483771f8ff3
2026-01-05T04:59:58.596263Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/config.ts
functions/src/config.ts
import { types } from 'conventional-commit-types'; export type Config = { enabled: boolean; titleOnly: boolean; commitsOnly: boolean; titleAndCommits: boolean; anyCommit: boolean; scopes: string[] | null; types: string[]; allowMergeCommits: boolean; allowRevertCommits: boolean; targetUrl: string; }...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/handle-merge-group-checks-requested.ts
functions/src/handle-merge-group-checks-requested.ts
import { Context } from 'probot'; import { Status } from './status'; import { Config, defaultConfig } from './config'; import { appName } from './app-name'; export async function handleMergeGroupChecksRequested(context: Context<'merge_group.checks_requested'>) { const config = (await context.config<Config>('semantic...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/handle-pull-request-change.ts
functions/src/handle-pull-request-change.ts
import type { PullRequestEditedEvent, PullRequestOpenedEvent, PullRequestSynchronizeEvent, } from '@octokit/webhooks-types'; import type { Context } from 'probot'; import { Config, defaultConfig } from './config'; import { isMessageSemantic } from './is-message-semantic'; import { Status } from './status'; import...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/handle-pull-request-change.spec.ts
functions/src/handle-pull-request-change.spec.ts
import nock, { type Scope } from 'nock'; import { Context, ProbotOctokit } from 'probot'; import type { ContextEvent } from './handle-pull-request-change'; import { handlePullRequestChange } from './handle-pull-request-change'; import { Status } from './status'; function createContext(title: string): Context<ContextEv...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/is-message-semantic.ts
functions/src/is-message-semantic.ts
import { ConventionalChangelogCommit, parser, toConventionalChangelogFormat } from '@conventional-commits/parser'; import { types } from 'conventional-commit-types'; import { Config } from './config'; const commitTypes = Object.keys(types); const validTypeSyntaxRegex = /^.*: [^ ].*$/; export function isMessageSemanti...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/index.e2e-spec.ts
functions/src/index.e2e-spec.ts
describe('semanticPrs', () => { it('should work', () => { const requestListener = jest.fn(); const createNodeMiddleware = jest.fn().mockReturnValue(requestListener); const probot = { version: '1.2.3' }; jest.mock('probot', () => ({ createNodeMiddleware, createProbot: jest.fn().mockReturnVa...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/app.spec.ts
functions/src/app.spec.ts
import { EmitterWebhookEvent } from '@octokit/webhooks'; import nock from 'nock'; import { Probot, ProbotOctokit } from 'probot'; import { app } from './app'; describe('app', () => { let probot: Probot; beforeEach(() => { nock.disableNetConnect(); probot = new Probot({ githubToken: 'test', Oct...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/is-message-semantic.spec.ts
functions/src/is-message-semantic.spec.ts
import { defaultConfig } from './config'; import { isMessageSemantic } from './is-message-semantic'; describe('isMessageSemantic', () => { it('should return true if the message is for a merge commit and allowMergeCommits is set to true', () => { const message = 'Merge branch foo into master'; const isSemant...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/app-name.ts
functions/src/app-name.ts
import { defineString } from 'firebase-functions/params'; export const appName = defineString('APP_NAME');
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/handle-merge-group-checks-requested.spec.ts
functions/src/handle-merge-group-checks-requested.spec.ts
import { Context, ProbotOctokit } from 'probot'; import { Status } from './status'; import nock, { Scope } from 'nock'; import { handleMergeGroupChecksRequested } from './handle-merge-group-checks-requested'; function createContext(): Context<'merge_group.checks_requested'> { return new Context<'merge_group.checks_r...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/app.ts
functions/src/app.ts
import { Probot } from 'probot'; import { handlePullRequestChange } from './handle-pull-request-change'; import { handleMergeGroupChecksRequested } from './handle-merge-group-checks-requested'; export const app = (app: Probot) => { app.on('pull_request.opened', handlePullRequestChange); app.on('pull_request.edited...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/index.spec.ts
functions/src/index.spec.ts
describe('semanticPrs', () => { it('should use the europe-west2 region', () => { const onRequest = jest.fn(); jest.mock('firebase-functions/https', () => ({ onRequest, })); jest.mock('probot', () => ({ createNodeMiddleware: jest.fn(), createProbot: jest.fn(), })); // eslint-...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/status.ts
functions/src/status.ts
export type Status = { sha: string; state: 'error' | 'failure' | 'pending' | 'success'; target_url: string; description: string; context: string; };
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/index.ts
functions/src/index.ts
import { onRequest } from 'firebase-functions/https'; import { createNodeMiddleware, createProbot } from 'probot'; import { app } from './app'; export const semanticPrs = onRequest( { region: 'europe-west2', }, (req, res) => { createNodeMiddleware(app, { probot: createProbot(), webhooksPath: ...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
Ezard/semantic-prs
https://github.com/Ezard/semantic-prs/blob/ec54c73e964d5c0bdf91b31480d180283dd0dd19/functions/src/config.spec.ts
functions/src/config.spec.ts
import { types } from 'conventional-commit-types'; import { defaultConfig } from './config'; describe('defaultConfig', () => { it('should use the correct default config', () => { const config = defaultConfig; expect(config.enabled).toEqual(true); expect(config.titleOnly).toEqual(false); expect(confi...
typescript
MIT
ec54c73e964d5c0bdf91b31480d180283dd0dd19
2026-01-05T04:59:46.906888Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/types.d.ts
app/types.d.ts
declare module '@react-native/normalize-color'; declare module '*.svg' { import React from 'react'; import { SvgProps } from 'react-native-svg'; const content: React.FC<SvgProps>; export default content; } // Based on https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/webpack-env/index.d.ts...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/app.tsx
app/app.tsx
/** * Welcome to the main entry point of the app. In this file, we'll * be kicking off our app. * * Most of this file is boilerplate and you shouldn't need to modify * it very often. But take some time to look through and understand * what is going on here. * * The app navigation resides in ./app/navigators, so...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/camera-permissions.ts
app/hooks/camera-permissions.ts
import { reportException } from '@procivis/one-react-native-components'; import { useCallback, useEffect, useRef, useState } from 'react'; import { Platform } from 'react-native'; import { check, PERMISSIONS, PermissionStatus, request as requestPermission, } from 'react-native-permissions'; import { useIsAppAc...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/credential-schemas.ts
app/hooks/credential-schemas.ts
import { reportException, useONECore, } from '@procivis/one-react-native-components'; import { useCallback } from 'react'; import { getCredentialSchemasFromAssets } from '../utils/credential-schemas'; export const useImportPredefinedCredentialSchemas = () => { const { core, organisationId } = useONECore(); co...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/ble-permissions.ts
app/hooks/ble-permissions.ts
import { getEnabledTransports, Transport, useCoreConfig, useMemoAsync, VerificationProtocol, } from '@procivis/one-react-native-components'; import { useCallback, useState } from 'react'; // eslint-disable-next-line react-native/split-platform-components import { PermissionsAndroid, Platform } from 'react-nat...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/updated-translate.ts
app/hooks/updated-translate.ts
import { observe } from 'mobx'; import { useCallback, useEffect, useState } from 'react'; import { translate } from '../i18n/translate'; import { useStores } from '../models'; /** * Provides {@link translate} functionality which will update when the app language changes */ export function useUpdatedTranslate(): typ...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/clipboard.ts
app/hooks/clipboard.ts
import { useAppColorScheme } from '@procivis/one-react-native-components'; import Clipboard from '@react-native-clipboard/clipboard'; import { useCallback } from 'react'; // eslint-disable-next-line react-native/split-platform-components import { Alert, Platform, ToastAndroid } from 'react-native'; import { translate ...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/capture-prevention.ts
app/hooks/capture-prevention.ts
import { useIsFocused } from '@react-navigation/native'; import { autorun } from 'mobx'; import { useEffect } from 'react'; import { Platform } from 'react-native'; import RNScreenshotPrevent from 'rn-screenshot-prevent'; import { useStores } from '../models'; let enabledCounter = 0; const enable = () => { if (!ena...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/credential-card/image-preview.tsx
app/hooks/credential-card/image-preview.tsx
import { useNavigation } from '@react-navigation/native'; import { useCallback } from 'react'; import { ImageSourcePropType } from 'react-native'; import { RootNavigationProp } from '../../navigators/root/root-routes'; export const useCredentialImagePreview = () => { const rootNavigation = useNavigation<RootNavigat...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/settings/biometric.ts
app/hooks/settings/biometric.ts
import { reportException, useAppColorScheme, } from '@procivis/one-react-native-components'; import { Ubiqu } from '@procivis/react-native-one-core'; import { useNavigation } from '@react-navigation/native'; import { useCallback, useEffect, useMemo } from 'react'; import { Alert, Linking } from 'react-native'; impo...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/pin-code/pin-code.ts
app/hooks/pin-code/pin-code.ts
import { reportError, reportException, } from '@procivis/one-react-native-components'; import { useCallback, useEffect, useState } from 'react'; import { DeviceEventEmitter } from 'react-native'; import { Sha256 } from '../../utils/sha256'; import { loadString, remove, saveString } from '../../utils/storage'; exp...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/pin-code/pin-code-check.ts
app/hooks/pin-code/pin-code-check.ts
import { reportError } from '@procivis/one-react-native-components'; import { useNavigation } from '@react-navigation/native'; import { useCallback, useEffect, useRef } from 'react'; import { DeviceEventEmitter } from 'react-native'; import { hideSplashScreen } from '../../navigators/root/initialRoute'; import { Roo...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/pin-code/biometric.ts
app/hooks/pin-code/biometric.ts
import { reportException, useMemoAsync, } from '@procivis/one-react-native-components'; import { useCallback, useMemo, useState } from 'react'; import { Platform } from 'react-native'; import { check as checkPermission, PERMISSIONS, PermissionStatus, request as requestPermission, RESULTS, } from 'react-na...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/navigation/deep-link.ts
app/hooks/navigation/deep-link.ts
import { parseUniversalLink, useInitialDeepLinkHandling as useCommonInitialDeepLinkHandling, useRuntimeDeepLinkHandling as useCommonRuntimeDeepLinkHandling, } from '@procivis/one-react-native-components'; import { useNavigation } from '@react-navigation/native'; import { useCallback, useRef } from 'react'; impor...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/revocation/credential-status.ts
app/hooks/revocation/credential-status.ts
import { reportTraceInfo, useCredentialRevocationCheck, useCredentials, } from '@procivis/one-react-native-components'; import { CredentialListItem, CredentialStateEnum, } from '@procivis/react-native-one-core'; import { useIsFocused, useNavigation } from '@react-navigation/native'; import { useCallback, useE...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/hooks/version-check/version-check.ts
app/hooks/version-check/version-check.ts
import { useNavigation } from '@react-navigation/native'; import { compare } from 'compare-versions'; import { useCallback, useMemo } from 'react'; import DeviceInfo from 'react-native-device-info'; import { useStores } from '../../models'; import { RootNavigationProp } from '../../navigators/root/root-routes'; import...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/ble/ble-warning.tsx
app/components/ble/ble-warning.tsx
import { CredentialWarningIcon, Typography, useAppColorScheme, } from '@procivis/one-react-native-components'; import React, { FunctionComponent } from 'react'; import { StyleSheet, View } from 'react-native'; import { PermissionStatus, RESULTS } from 'react-native-permissions'; import { translate } from '../../...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/icon/settings-icon.tsx
app/components/icon/settings-icon.tsx
import { useAppColorScheme } from '@procivis/one-react-native-components'; import React, { FC } from 'react'; import Svg, { Circle, G, Mask, MaskType, Path, SvgProps, } from 'react-native-svg'; // Icons used on the settings screen: https://www.figma.com/file/Mj9Nm9CUtauth6jt49UL7t/OTS-Developments-2023?typ...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/icon/purpose-icon.tsx
app/components/icon/purpose-icon.tsx
import { useAppColorScheme } from '@procivis/one-react-native-components'; import React, { FC } from 'react'; import Svg, { Path, SvgProps } from 'react-native-svg'; // https://www.figma.com/file/52qDYWUMjXAGre1dcnz5bz/Procivis-One-Wallet?node-id=542-90920 export const PurposeInfoIcon: FC<SvgProps> = () => { const c...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/icon/refresh-icon.tsx
app/components/icon/refresh-icon.tsx
import { useAppColorScheme } from '@procivis/one-react-native-components'; import React, { FC } from 'react'; import Svg, { Path, SvgProps } from 'react-native-svg'; export const RefreshIcon: FC<SvgProps> = (props) => { const colorScheme = useAppColorScheme(); return ( <Svg fill="none" height={24} viewBox="0 0...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/share/share-disclaimer.tsx
app/components/share/share-disclaimer.tsx
import { reportException, Typography, useAppColorScheme, } from '@procivis/one-react-native-components'; import { TranslateOptions } from 'i18n-js/typings'; import React, { FunctionComponent, useCallback, useMemo } from 'react'; import { Linking, StyleSheet, Text } from 'react-native'; import { translate } from ...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/wallet/credential-list.tsx
app/components/wallet/credential-list.tsx
import { concatTestID, useAppColorScheme, useCredentialListExpandedCard, useListContentInset, WalletEmptySearchResult, } from '@procivis/one-react-native-components'; import { CredentialListItem } from '@procivis/react-native-one-core'; import React, { FC, useCallback } from 'react'; import { Animated, ListRe...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/wallet/credential-list-item.tsx
app/components/wallet/credential-list-item.tsx
import { concatTestID, CredentialDetailsCardListItem, getCredentialCardPropsFromCredential, NextIcon, useAppColorScheme, useCoreConfig, useCredentialDetail, } from '@procivis/one-react-native-components'; import { CredentialListItem } from '@procivis/react-native-one-core'; import { useIsFocused } from '@...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/wallet/wallet-notice.tsx
app/components/wallet/wallet-notice.tsx
import { CloseIcon, concatTestID, Typography, useAppColorScheme, } from '@procivis/one-react-native-components'; import React, { ComponentType, FunctionComponent, ReactElement, useMemo, } from 'react'; import { StyleProp, StyleSheet, TouchableOpacity, View, ViewStyle, } from 'react-native'; e...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/list/list-page-loading-indicator.tsx
app/components/list/list-page-loading-indicator.tsx
import React, { FC } from 'react'; // eslint-disable-next-line no-restricted-imports import { ActivityIndicator, ActivityIndicatorProps } from 'react-native'; const ListPageLoadingIndicator: FC<ActivityIndicatorProps> = (props) => { return <ActivityIndicator {...props} />; }; export default ListPageLoadingIndicator...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/pin-code/pin-code-screen-content.tsx
app/components/pin-code/pin-code-screen-content.tsx
import { PinCodeScreen, PinCodeScreenActions, PinCodeScreenProps, TouchableOpacityRef, useAccessibilityAnnouncement, useAccessibilityFocus, } from '@procivis/one-react-native-components'; import { observer } from 'mobx-react-lite'; import React, { forwardRef, useCallback, useImperativeHandle, useRef...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/history/credential-schema-picker.tsx
app/components/history/credential-schema-picker.tsx
import { ActionModal, ActivityIndicator, Button, ButtonType, concatTestID, RadioGroup, RadioGroupItem, useAppColorScheme, useCredentialSchemas, } from '@procivis/one-react-native-components'; import { CredentialSchema } from '@procivis/react-native-one-core'; import { useIsFocused } from '@react-navig...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/common/processing-view.tsx
app/components/common/processing-view.tsx
import { ButtonProps, ButtonType, concatTestID, HeaderCloseButton, HeaderInfoButton, LoaderViewState, LoadingResultScreen, useBlockOSBackNavigation, useCloseButtonTimeout, } from '@procivis/one-react-native-components'; import { useIsFocused, useNavigation } from '@react-navigation/native'; import Rea...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/common/password-strength.tsx
app/components/common/password-strength.tsx
import { concatTestID, HistoryStatusAcceptedIcon, Typography, useAppColorScheme, } from '@procivis/one-react-native-components'; import { Options, passwordStrength, Result } from 'check-password-strength'; import React, { FC, useMemo } from 'react'; import { StyleSheet, View } from 'react-native'; import { tra...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/common/radio-group.tsx
app/components/common/radio-group.tsx
import { RadioGroup as RadioGroupView, RadioGroupProps as RadioGroupViewProps, } from '@procivis/one-react-native-components'; import React, { FunctionComponent, useCallback } from 'react'; import { translate } from '../../i18n'; export type RadioGroupProps = Omit< RadioGroupViewProps, 'onGetItemAccessibility...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/navigation/header-buttons.tsx
app/components/navigation/header-buttons.tsx
import { BackButton, BackButtonIcon, GhostButton, InfoIcon, OptionsIcon, PlusIcon, } from '@procivis/one-react-native-components'; import { useNavigation } from '@react-navigation/native'; import React, { FC, useCallback } from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import { translat...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/backup/preview-credentials.tsx
app/components/backup/preview-credentials.tsx
import { CredentialDetails, useCredentialListExpandedCard, } from '@procivis/one-react-native-components'; import { CredentialListItem } from '@procivis/react-native-one-core'; import React, { FC } from 'react'; import { View } from 'react-native'; import { useCredentialImagePreview } from '../../hooks/credential-...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/proof-request/proof-presentation-v1.tsx
app/components/proof-request/proof-presentation-v1.tsx
import { Button, ButtonType, concatTestID, ProofRequestGroup, ShareCredential, useCredentialListExpandedCard, useCredentialRevocationCheck, useMemoAsync, useONECore, } from '@procivis/one-react-native-components'; import { CredentialStateEnum, PresentationDefinition, PresentationDefinitionField,...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/proof-request/proof-presentation-v2.tsx
app/components/proof-request/proof-presentation-v2.tsx
import { Button, ButtonType, concatTestID, getV2CredentialAvailablePaths, nonEmptyFilter, ProofRequestSet, ShareCredentialV2, ShareCredentialV2Group, useCredentialListExpandedCard, useCredentialRevocationCheck, useMemoAsync, useONECore, } from '@procivis/one-react-native-components'; import { ...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/components/proof-request/proof-presentation-props.ts
app/components/proof-request/proof-presentation-props.ts
import { MutableRefObject } from 'react'; export type ProofPresentationProps = { onPresentationDefinitionLoaded: () => void; proofAccepted: MutableRefObject<boolean>; };
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/errors.ts
app/models/errors.ts
export class IncompatibleKeyStorageError extends Error { constructor() { super('Incompatible key storage type'); this.name = 'incompatibleKeyStorageType'; Object.setPrototypeOf(this, IncompatibleKeyStorageError.prototype); } }
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/environment.ts
app/models/environment.ts
/** * The environment is a place where services and shared dependencies between * models live. They are made available to every model via dependency injection. */ export class Environment { constructor() { // create each service if (__DEV__) { // dev-only services } } async setup() { //...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/index.ts
app/models/index.ts
export * from './extensions/with-environment'; export * from './extensions/with-root-store'; export * from './root-store/root-store'; export * from './root-store/root-store-context'; export * from './root-store/setup-root-store';
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/root-store/root-store-context.ts
app/models/root-store/root-store-context.ts
import { createContext, useContext } from 'react'; import { RootStore } from './root-store'; /** * Create a context we can use to * - Provide access to our stores from our root component * - Consume stores in our screens (or other components, though it's * preferable to just connect screens) */ const RootStore...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/root-store/root-store.ts
app/models/root-store/root-store.ts
import { Instance, SnapshotOut, types } from 'mobx-state-tree'; import { LocaleStoreModel } from '../locale-store/locale-store'; import { UserSettingsStoreModel } from '../user-settings-store/user-settings-store'; import { WalletStoreModel } from '../wallet-store/wallet-store'; /** * A RootStore model. */ // pretti...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/root-store/setup-root-store.ts
app/models/root-store/setup-root-store.ts
import { Environment } from '../environment'; import { setupLocaleStore } from '../locale-store/setup-locale-store'; import { setupUserSettingsStore } from '../user-settings-store/setup-user-settings-store'; import { setupWalletStore } from '../wallet-store/setup-wallet-store'; import { RootStoreModel } from './root-st...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/extensions/with-root-store.ts
app/models/extensions/with-root-store.ts
import { getRoot, IStateTreeNode } from 'mobx-state-tree'; import { RootStore, RootStoreModel } from '../root-store/root-store'; /** * Adds a rootStore property to the node for a convenient * and strongly typed way for stores to access other stores. */ export const withRootStore = (self: IStateTreeNode) => ({ vi...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/extensions/with-environment.ts
app/models/extensions/with-environment.ts
import { getEnv, IStateTreeNode } from 'mobx-state-tree'; import { Environment } from '../environment'; /** * Adds a environment property to the node for accessing our * Environment in strongly typed. */ export const withEnvironment = (self: IStateTreeNode) => ({ views: { /** * The environment. */ ...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/licences/licences.ts
app/models/licences/licences.ts
type ExternalLibraryExternalReference = { comment: string | null; type: 'documentation' | 'website' | 'vcs' | 'other'; url: string; }; export type ExternalLibrary = { description: string | null; externalReferences: ExternalLibraryExternalReference[] | null; licenses: string[]; name: string; purl: strin...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/wallet-store/wallet-store.ts
app/models/wallet-store/wallet-store.ts
import { Instance, types } from 'mobx-state-tree'; /** * Store containing Wallet info */ const UpdateScreenModel = types.model('UpdateScreen', { link: types.optional(types.string, ''), }); const AppVersionModel = types.model('AppVersion', { minimum: types.maybe(types.string), minimumRecommended: types.maybe(...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/wallet-store/setup-wallet-store.ts
app/models/wallet-store/setup-wallet-store.ts
import { reportException } from '@procivis/one-react-native-components'; import { isNfcHceSupported } from '@procivis/react-native-one-core'; import { onSnapshot, SnapshotOut } from 'mobx-state-tree'; import { config } from '../../config'; import * as storage from '../../utils/storage'; import { Environment } from '.....
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/wallet-store/wallet-store.test.ts
app/models/wallet-store/wallet-store.test.ts
import { WalletStoreModel } from './wallet-store'; test('can be created', () => { const instance = WalletStoreModel.create({ isNFCSupported: false, isRSESetup: false, walletProvider: { appVersion: { minimum: 'v1.50.0', minimumRecommended: 'v1.60.0', reject: ['v1.51.4', 'v1.5...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/locale-store/setup-locale-store.ts
app/models/locale-store/setup-locale-store.ts
import { onSnapshot } from 'mobx-state-tree'; import { defaultLocale } from '../../i18n'; import i18n from '../../i18n/i18n'; import * as storage from '../../utils/storage'; import { Environment } from '../environment'; import { LocaleStore, LocaleStoreModel, LocaleStoreSnapshot, } from './locale-store'; const ...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/locale-store/locale-store.ts
app/models/locale-store/locale-store.ts
import { Instance, SnapshotOut, types } from 'mobx-state-tree'; import { Locale, Locales } from '../../i18n'; import i18n from '../../i18n/i18n'; /** * Store containing Wallet info */ export const LocaleStoreModel = types .model('LocaleStore', { locale: types.enumeration(Locales), }) .actions((self) => ({...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/core/history.ts
app/models/core/history.ts
import { HistoryActionEnum } from '@procivis/react-native-one-core'; export const historyListActionsFilter = [ HistoryActionEnum.CREATED, HistoryActionEnum.DEACTIVATED, HistoryActionEnum.DELETED, HistoryActionEnum.ERRORED, HistoryActionEnum.ISSUED, HistoryActionEnum.REJECTED, HistoryActionEnum.REQUESTED,...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/config/config.ts
app/models/config/config.ts
import { WalletProviderTypeEnum } from '@procivis/react-native-one-core'; export interface WalletProviderConfiguration { type: WalletProviderTypeEnum; url: string; } /** features enabled/disabled per flavor */ export interface FeatureFlags { /** BLE enabled */ bleEnabled: boolean; /** HTTP transport enabled...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/config/assets.ts
app/models/config/assets.ts
import { RequestCredentialItem } from '../../screens/request-credential/request-credential-list-screen'; export interface AssetsConfiguration { credentialIssuers?: RequestCredentialItem[]; }
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/user-settings-store/setup-user-settings-store.ts
app/models/user-settings-store/setup-user-settings-store.ts
import { onSnapshot } from 'mobx-state-tree'; import * as storage from '../../utils/storage'; import { Environment } from '../environment'; import { UserSettingsStore, UserSettingsStoreModel, UserSettingsStoreSnapshot, } from './user-settings-store'; const USER_SETTINGS_STATE_STORAGE_KEY = 'user_settings'; exp...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/models/user-settings-store/user-settings-store.ts
app/models/user-settings-store/user-settings-store.ts
import { Instance, SnapshotOut, types } from 'mobx-state-tree'; const PinCodeSecurityModel = types.model({ failedAttempts: types.number, lastAttemptTimestamp: types.maybe(types.number), }); export const UserSettingsStoreModel = types .model('UserSettingsStore', { biometrics: types.boolean, pinCodeSecuri...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/i18n/i18n.ts
app/i18n/i18n.ts
import { I18n } from 'i18n-js'; import { findBestLanguageTag } from 'react-native-localize'; import { register } from 'timeago.js'; import timeAgoDe from 'timeago.js/lib/lang/de'; import timeAgoEn from 'timeago.js/lib/lang/en_US'; import timeAgoFi from 'timeago.js/lib/lang/fi'; import { config, localeOverride } from '...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/i18n/translate.tsx
app/i18n/translate.tsx
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-argument */ import { I18n, Translat...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/i18n/index.ts
app/i18n/index.ts
import './i18n'; export * from './error'; export * from './i18n'; export * from './translate';
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/i18n/error.ts
app/i18n/error.ts
import { OneError } from '@procivis/react-native-one-core'; import { TxKeyPath } from './i18n'; import { translate } from './translate'; export const translateError = (error: unknown, fallback: string) => { if (error && error instanceof OneError) { return translate(`error.${error.code}` as TxKeyPath, { de...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/appState.ts
app/utils/appState.ts
import { useEffect, useState } from 'react'; import { AppState } from 'react-native'; import KeepAwake from 'react-native-keep-awake'; /** * Returns current app state */ export function useAppState() { const [appState, setAppState] = useState(AppState.currentState); useEffect(() => { const subscription = Ap...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/filtering.ts
app/utils/filtering.ts
export const nonEmptyFilter = <TValue>( value: TValue | null | undefined, ): value is TValue => { return value !== null && value !== undefined; };
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/ignore-warnings.ts
app/utils/ignore-warnings.ts
/** * Ignore some yellowbox warnings. Some of these are for deprecated functions * that we haven't gotten around to replacing yet. */ import { LogBox } from 'react-native'; // prettier-ignore LogBox.ignoreLogs([ "Require cycle:", ])
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/pinLock.ts
app/utils/pinLock.ts
import { PinLockModalLabels } from '@procivis/one-react-native-components'; import { translate } from '../i18n'; export const pinLockModalLabels = (): PinLockModalLabels => ({ subtitle: (min: number, sec: number) => translate('info.pinLockModal.subtitle', { min, sec }), title: (attempts: number) => transl...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/credential.ts
app/utils/credential.ts
import { CardHeaderLabels, CardLabels, } from '@procivis/one-react-native-components'; import { translate } from '../i18n'; export const credentialCardHeaderLabels = (): CardHeaderLabels => { return { revoked: translate('common.revoked'), suspended: translate('common.suspended'), suspendedUntil: (da...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/sorting.ts
app/utils/sorting.ts
export const objectByTimestampSorter = <T extends { [key in K]?: string | undefined }, K extends keyof T>( timestampProperty: K, ascending = true, ) => (a: T, b: T): number => { const dateA = Date.parse(a[timestampProperty] ?? '') ?? 0; const dateB = Date.parse(b[timestampProperty] ?? '') ?? 0; ...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/credential-schemas.ts
app/utils/credential-schemas.ts
import { ImportCredentialSchemaRequestSchema } from '@procivis/react-native-one-core'; export const getCredentialSchemasFromAssets = () => { const schemas = require.context( '../../assets/ecosystem-assets', true, /\.json$/, ); return schemas .keys() .map((key) => schemas(key) as ImportCredent...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/backup.ts
app/utils/backup.ts
import 'react-native-get-random-values'; import { v4 as uuidv4 } from 'uuid'; export const getBackupFileName = (): string => { return `procivis-one-backup-${uuidv4()}.zip`; };
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/navigation.tsx
app/utils/navigation.tsx
import { ArrayElement } from '@procivis/one-react-native-components'; import { CommonActions, EventArg, NavigationContext, NavigationProp, NavigationRouteContext, NavigationState, ParamListBase, Route, StackNavigationState, } from '@react-navigation/native'; import { NativeStackNavigationProp } from '...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/history.ts
app/utils/history.ts
import { concatTestID, CredentialDetailsCardProps, CredentialHeaderProps, detailsCardFromCredential, HistoryListItemLabels, HistoryStatusDeleteIcon, } from '@procivis/one-react-native-components'; import { Claim, Config, CredentialDetail, CredentialRoleEnum, CredentialSchema, CredentialStateEnum...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/string.ts
app/utils/string.ts
export const capitalizeFirstLetter = (string: string) => { return string.charAt(0).toUpperCase() + string.slice(1); }; export const capitalize = (str: string): string => str ?.split(' ') .filter((x) => x) .map((x) => x.charAt(0).toUpperCase() + x.substring(1).toLowerCase()) .join(' '); export cons...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/trust-entity.ts
app/utils/trust-entity.ts
import { EntityDetailsLabels } from '@procivis/one-react-native-components'; import { TrustEntityRoleEnum } from '@procivis/react-native-one-core'; import { translate } from '../i18n'; export const trustEntityDetailsLabels = ( role: Exclude<TrustEntityRoleEnum, TrustEntityRoleEnum.BOTH>, ): EntityDetailsLabels => {...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/credential-sharing.ts
app/utils/credential-sharing.ts
import { ShareCredentialCardLabels, ShareCredentialLabels, } from '@procivis/one-react-native-components'; import { translate } from '../i18n'; import { credentialCardLabels } from './credential'; export const shareCredentialCardLabels = (): ShareCredentialCardLabels => { return { ...credentialCardLabels(),...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/error.ts
app/utils/error.ts
import { OneError } from '@procivis/react-native-one-core'; export const isInvalidInvitationUrlError = (error: unknown) => { if (error && error instanceof OneError) { if (['BR_0046', 'BR_0062', 'BR_0085'].includes(error.code)) { return true; } } return false; };
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/credential-sharing-v2.tsx
app/utils/credential-sharing-v2.tsx
import { ArrayElement, ShareCredentialGroupLabels, } from '@procivis/one-react-native-components'; import { PresentationDefinitionV2 } from '@procivis/react-native-one-core'; import { translate } from '../i18n'; import { shareCredentialLabels } from './credential-sharing'; export const shareCredentialGroupLabels ...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/proof-request.ts
app/utils/proof-request.ts
import { CredentialDetail, CredentialStateEnum, PresentationDefinitionRequestedCredential, PresentationDefinitionRequestGroup, PresentationDefinitionV2, PresentationSubmitCredentialRequest, PresentationSubmitV2CredentialRequest, } from '@procivis/react-native-one-core'; import { objectByTimestampSorter }...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/wallet-unit.ts
app/utils/wallet-unit.ts
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/rse.ts
app/utils/rse.ts
import { OneError } from '@procivis/react-native-one-core'; const rseLockedErrors = [ 'Ubiqu main asset in wrong state: LOCKED', 'com.ubiqu.eid.sdk.exceptions.AssetLockedException', 'Asset is locked', 'The asset is not in normal state', '(UBQKit.UbqKitError error 5.)', ]; export const isRSELockedError = (er...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/date.ts
app/utils/date.ts
import { formatTimestamp as formatTimestampCommon } from '@procivis/one-react-native-components'; import { translate } from '../i18n'; import i18n from '../i18n/i18n'; /** * Timestamp formatted for general use */ export const formatTimestamp = ( date: Date, locale: string = i18n.locale, ): string => { return ...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/storage/storage.test.ts
app/utils/storage/storage.test.ts
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ import AsyncStorage from '@react-native-async-storage/async-storage'; import { clear, load, loadString, remove, save, saveString } from './storage'; // fixtures const VALUE_OBJECT = { x: 1 }; const VALUE_STRING = JSON.stringify(VALUE_OBJECT); beforeEach(()...
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false
procivis/one-wallet
https://github.com/procivis/one-wallet/blob/d5989f086a8a3f9d21d64de1bd2caf9f9d797346/app/utils/storage/index.ts
app/utils/storage/index.ts
export * from './storage';
typescript
Apache-2.0
d5989f086a8a3f9d21d64de1bd2caf9f9d797346
2026-01-05T04:59:56.803537Z
false