text
stringlengths
9
39.2M
dir
stringlengths
26
295
lang
stringclasses
185 values
created_date
timestamp[us]
updated_date
timestamp[us]
repo_name
stringlengths
1
97
repo_full_name
stringlengths
7
106
star
int64
1k
183k
len_tokens
int64
1
13.8M
```xml import type { HashFunction } from '../../types/index.d.ts'; /** * TODO in the future we should no longer provide a * fallback to crypto.subtle.digest. * Instead users without crypto.subtle.digest support, should have to provide their own * hash function. */ export declare function jsSha256(input: string): Promise<string>; export declare function nativeSha256(input: string): Promise<string>; export declare const canUseCryptoSubtle: boolean; /** * Default hash method used to hash * strings and do equal comparisons. * * IMPORTANT: Changing the default hashing method * requires a BREAKING change! */ export declare const defaultHashSha256: HashFunction; export declare function hashStringToNumber(str: string): number; ```
/content/code_sandbox/dist/types/plugins/utils/utils-hash.d.ts
xml
2016-12-02T19:34:42
2024-08-16T15:47:20
rxdb
pubkey/rxdb
21,054
152
```xml import { existsSync, copyFileSync } from "fs"; import { readFile } from "fs/promises"; import path from "path"; import FormData from "form-data"; import { ensureDirSync } from "fs-extra"; import { v4 as uuidV4 } from "uuid"; import env from "@server/env"; import FileStorage from "@server/storage/files"; import { buildAttachment, buildUser } from "@server/test/factories"; import { getTestServer } from "@server/test/support"; const server = getTestServer(); describe("#files.create", () => { it("should fail with status 400 bad request if key is invalid", async () => { const user = await buildUser(); const res = await server.post("/api/files.create", { body: { token: user.getJwtToken(), key: "public/foo/bar/baz.png", }, }); expect(res.status).toEqual(400); }); it("should fail with status 401 if associated attachment does not belong to user", async () => { const user = await buildUser(); const fileName = "images.docx"; const attachment = await buildAttachment( { teamId: user.teamId, contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", }, fileName ); const content = await readFile( path.resolve(__dirname, "..", "test", "fixtures", fileName) ); const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); form.append("token", user.getJwtToken()); const res = await server.post(`/api/files.create`, { headers: form.getHeaders(), body: form, }); expect(res.status).toEqual(403); }); it("should fail with status 401 if file exists on disk", async () => { const user = await buildUser(); const fileName = "images.docx"; const attachment = await buildAttachment( { userId: user.id, teamId: user.teamId, contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", }, fileName ); ensureDirSync( path.dirname(path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, attachment.key)) ); copyFileSync( path.resolve(__dirname, "..", "test", "fixtures", fileName), path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, attachment.key) ); const content = await readFile( path.resolve(__dirname, "..", "test", "fixtures", fileName) ); const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); form.append("token", user.getJwtToken()); const res = await server.post(`/api/files.create`, { headers: form.getHeaders(), body: form, }); expect(res.status).toEqual(400); }); it("should succeed with status 200 ok and create a file", async () => { const user = await buildUser(); const fileName = "images.docx"; const attachment = await buildAttachment( { teamId: user.teamId, userId: user.id, contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", }, fileName ); const content = await readFile( path.resolve(__dirname, "..", "test", "fixtures", fileName) ); const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); form.append("token", user.getJwtToken()); const res = await server.post(`/api/files.create`, { headers: form.getHeaders(), body: form, }); const body = await res.json(); expect(res.status).toEqual(200); expect(body.success).toEqual(true); expect( existsSync(path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, attachment.key)) ).toBe(true); }); }); describe("#files.get", () => { it("should fail with status 404 if existing file is requested with key", async () => { const user = await buildUser(); const fileName = "images.docx"; const key = path.join("uploads", user.id, uuidV4(), fileName); ensureDirSync( path.dirname(path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, key)) ); copyFileSync( path.resolve(__dirname, "..", "test", "fixtures", fileName), path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, key) ); const res = await server.get(`/api/files.get?key=${key}`); expect(res.status).toEqual(404); }); it("should fail with status 404 if non-existing file is requested with key", async () => { const user = await buildUser(); const fileName = "images.docx"; const key = path.join("uploads", user.id, uuidV4(), fileName); const res = await server.get(`/api/files.get?key=${key}`); expect(res.status).toEqual(404); }); it("should fail with status 400 bad request if key is invalid", async () => { const res = await server.get(`/api/files.get?key=public/foo/bar/baz.png`); expect(res.status).toEqual(400); }); it("should fail with status 400 bad request if neither key or sig is supplied", async () => { const res = await server.get("/api/files.get"); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("query: One of key or sig is required"); }); it("should succeed with status 200 ok when attachment is requested using key", async () => { const user = await buildUser(); const fileName = "images.docx"; const attachment = await buildAttachment( { teamId: user.teamId, userId: user.id, contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", }, fileName ); const content = await readFile( path.resolve(__dirname, "..", "test", "fixtures", fileName) ); const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); form.append("token", user.getJwtToken()); await server.post(`/api/files.create`, { headers: form.getHeaders(), body: form, }); const res = await server.get(attachment.canonicalUrl); expect(res.status).toEqual(200); expect(res.headers.get("Content-Type")).toEqual(attachment.contentType); expect(res.headers.get("Content-Disposition")).toEqual( 'attachment; filename="images.docx"' ); }); it("should succeed with status 200 ok when private attachment is requested using signature", async () => { const user = await buildUser(); const fileName = "images.docx"; const attachment = await buildAttachment( { teamId: user.teamId, userId: user.id, contentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", acl: "private", }, fileName ); const content = await readFile( path.resolve(__dirname, "..", "test", "fixtures", fileName) ); const form = new FormData(); form.append("key", attachment.key); form.append("file", content, fileName); form.append("token", user.getJwtToken()); await server.post(`/api/files.create`, { headers: form.getHeaders(), body: form, }); const res = await server.get(await attachment.signedUrl); expect(res.status).toEqual(200); expect(res.headers.get("Content-Type")).toEqual(attachment.contentType); expect(res.headers.get("Content-Disposition")).toEqual( 'attachment; filename="images.docx"' ); }); it("should succeed with status 200 ok when file is requested using signature", async () => { const user = await buildUser(); const fileName = "images.docx"; const key = path.join("uploads", user.id, uuidV4(), fileName); const signedUrl = await FileStorage.getSignedUrl(key); ensureDirSync( path.dirname(path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, key)) ); copyFileSync( path.resolve(__dirname, "..", "test", "fixtures", fileName), path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, key) ); const res = await server.get(signedUrl); expect(res.status).toEqual(200); expect(res.headers.get("Content-Type")).toEqual( "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ); expect(res.headers.get("Content-Disposition")).toEqual( 'attachment; filename="images.docx"' ); }); it("should succeed with status 200 ok when avatar is requested using key", async () => { const user = await buildUser(); const key = path.join("avatars", user.id, uuidV4()); ensureDirSync( path.dirname(path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, key)) ); copyFileSync( path.resolve(__dirname, "..", "test", "fixtures", "avatar.jpg"), path.join(env.FILE_STORAGE_LOCAL_ROOT_DIR, key) ); const res = await server.get(`/api/files.get?key=${key}`); expect(res.status).toEqual(200); expect(res.headers.get("Content-Type")).toEqual("application/octet-stream"); expect(res.headers.get("Content-Disposition")).toEqual("attachment"); }); }); ```
/content/code_sandbox/plugins/storage/server/api/files.test.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
2,025
```xml import { logger } from 'storybook/internal/client-logger'; import { dedent } from 'ts-dedent'; import type { Background } from '../types'; export const getBackgroundColorByName = ( currentSelectedValue: string, backgrounds: Background[] = [], defaultName: string | null | undefined ): string => { if (currentSelectedValue === 'transparent') { return 'transparent'; } if (backgrounds.find((background) => background.value === currentSelectedValue)) { return currentSelectedValue; } if (currentSelectedValue) { return currentSelectedValue; } const defaultBackground = backgrounds.find((background) => background.name === defaultName); if (defaultBackground) { return defaultBackground.value; } if (defaultName) { const availableColors = backgrounds.map((background) => background.name).join(', '); logger.warn( dedent` Backgrounds Addon: could not find the default color "${defaultName}". These are the available colors for your story based on your configuration: ${availableColors}. ` ); } return 'transparent'; }; ```
/content/code_sandbox/code/addons/backgrounds/src/legacy/getBackgroundColorByName.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
241
```xml import { buildChart, ChartConfig } from './utils' import * as bp from '.botpress' export const generateBubbleChart: bp.IntegrationProps['actions']['generateBubbleChart'] = async ({ client, input, logger, type, ctx, }) => { logger.forBot().debug('Generating bubble chart', { input, type }) const chartConfig: ChartConfig = { type: 'bubble', data: { datasets: [ { label: input.title || 'Bubble Chart', data: input.data!, }, ], }, options: { scales: { x: { title: { display: true, text: input.xAxisTitle || 'X Axis', }, }, y: { title: { display: true, text: input.yAxisTitle || 'Y Axis', }, }, }, }, } const imageUrl = await buildChart({ chartConfig, botId: ctx.botId, client, fileName: 'bubble_chart' }) return { imageUrl } } ```
/content/code_sandbox/integrations/charts/src/actions/generate-bubble-chart.ts
xml
2016-11-16T21:57:59
2024-08-16T18:45:35
botpress
botpress/botpress
12,401
228
```xml /** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ import { assertSlots } from '@fluentui/react-utilities'; import type { BadgeState, BadgeSlots } from './Badge.types'; export const renderBadge_unstable = (state: BadgeState) => { assertSlots<BadgeSlots>(state); return ( <state.root> {state.iconPosition === 'before' && state.icon && <state.icon />} {state.root.children} {state.iconPosition === 'after' && state.icon && <state.icon />} </state.root> ); }; ```
/content/code_sandbox/packages/react-components/react-badge/library/src/components/Badge/renderBadge.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
129
```xml import type { Uri } from 'vscode'; import type { LocalWorkspaceFileData, WorkspaceAutoAddSetting } from './models'; export interface WorkspacesPathMappingProvider { getCloudWorkspaceRepoPath(cloudWorkspaceId: string, repoId: string): Promise<string | undefined>; getCloudWorkspaceCodeWorkspacePath(cloudWorkspaceId: string): Promise<string | undefined>; removeCloudWorkspaceCodeWorkspaceFilePath(cloudWorkspaceId: string): Promise<void>; writeCloudWorkspaceCodeWorkspaceFilePathToMap( cloudWorkspaceId: string, codeWorkspaceFilePath: string, ): Promise<void>; confirmCloudWorkspaceCodeWorkspaceFilePath(cloudWorkspaceId: string): Promise<boolean>; writeCloudWorkspaceRepoDiskPathToMap( cloudWorkspaceId: string, repoId: string, repoLocalPath: string, ): Promise<void>; getLocalWorkspaceData(): Promise<LocalWorkspaceFileData>; writeCodeWorkspaceFile( uri: Uri, workspaceRepoFilePaths: string[], options?: { workspaceId?: string; workspaceAutoAddSetting?: WorkspaceAutoAddSetting }, ): Promise<boolean>; updateCodeWorkspaceFileSettings( uri: Uri, options: { workspaceAutoAddSetting?: WorkspaceAutoAddSetting }, ): Promise<boolean>; } ```
/content/code_sandbox/src/plus/workspaces/workspacesPathMappingProvider.ts
xml
2016-08-08T14:50:30
2024-08-15T21:25:09
vscode-gitlens
gitkraken/vscode-gitlens
8,889
263
```xml /** * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * see: path_to_url */ import React from 'react'; import type { CheckboxEvent } from './Checkbox.types'; declare const ExpoCheckbox: React.ForwardRefExoticComponent<import("react-native").ViewProps & { value?: boolean | undefined; disabled?: boolean | undefined; color?: import("react-native").ColorValue | undefined; onChange?: ((event: import("react-native").NativeSyntheticEvent<CheckboxEvent> | React.SyntheticEvent<HTMLInputElement, CheckboxEvent>) => void) | undefined; onValueChange?: ((value: boolean) => void) | undefined; } & React.RefAttributes<unknown>>; export default ExpoCheckbox; export declare const name = "ExpoCheckbox"; //# sourceMappingURL=ExpoCheckbox.web.d.ts.map ```
/content/code_sandbox/packages/expo-checkbox/build/ExpoCheckbox.web.d.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
189
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" android:orientation="vertical" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:layout_width="match_parent" android:layout_weight="1" android:layout_height="0dp"> <ImageView android:id="@+id/activity_main_blured_img" android:scaleType="centerCrop" android:src="@drawable/scene" android:layout_width="match_parent" android:layout_height="match_parent"/> <ImageView android:id="@+id/activity_main_origin_img" android:scaleType="centerCrop" android:layout_width="match_parent" android:layout_height="match_parent"/> </FrameLayout> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="80dp"> <SeekBar android:layout_marginTop="@dimen/activity_vertical_margin" android:id="@+id/activity_main_seekbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginRight="16dp"/> <TextView android:id="@+id/activity_main_progress_tv" android:text="0" android:textSize="24sp" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout> </LinearLayout> ```
/content/code_sandbox/app/src/main/res/layout/activity_blur.xml
xml
2016-08-08T08:52:10
2024-08-12T19:24:13
AndroidAnimationExercise
REBOOTERS/AndroidAnimationExercise
1,868
349
```xml import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { HelloComponent } from './hello'; ReactDOM.render( <HelloComponent userName="John" />, document.getElementById('root') ); ```
/content/code_sandbox/hooks/02_Properties/src/index.tsx
xml
2016-02-28T11:58:58
2024-07-21T08:53:34
react-typescript-samples
Lemoncode/react-typescript-samples
1,846
46
```xml <definitions xmlns="path_to_url" xmlns:activiti="path_to_url" targetNamespace="Examples"> <process id="ccAndBccWithoutTo" > <startEvent id="theStart" /> <sequenceFlow sourceRef="theStart" targetRef="sendMailWithCc" /> <sendTask id="sendMailWithCc" activiti:type="mail"> <extensionElements> <activiti:field name="subject"> <activiti:string>Hello world</activiti:string> </activiti:field> <activiti:field name="text"> <activiti:string>This is the content</activiti:string> </activiti:field> <activiti:field name="cc"> <activiti:string>fozzie@activiti.org</activiti:string> </activiti:field> </extensionElements> </sendTask> <sequenceFlow sourceRef="sendMailWithCc" targetRef="sendMailWithBcc" /> <sendTask id="sendMailWithBcc" activiti:type="mail"> <extensionElements> <activiti:field name="subject"> <activiti:string>Hello world</activiti:string> </activiti:field> <activiti:field name="text"> <activiti:string>This is the content</activiti:string> </activiti:field> <activiti:field name="bcc"> <activiti:string>mispiggy@activiti.org</activiti:string> </activiti:field> </extensionElements> </sendTask> <sequenceFlow sourceRef="sendMailWithBcc" targetRef="theEnd" /> <endEvent id="theEnd" /> </process> </definitions> ```
/content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/bpmn/mail/EmailSendTaskTest.testCcAndBccWithoutTo.bpmn20.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
388
```xml import type InputMask from '../../src/controls/input'; import { type Check, type Equal } from '../types'; import Masked from '../../src/masked/base'; import type MaskedDate from '../../src/masked/date'; import type MaskedDynamic from '../../src/masked/dynamic'; import type MaskedEnum from '../../src/masked/enum'; import type MaskedFunction from '../../src/masked/function'; import type MaskedNumber from '../../src/masked/number'; import type MaskedPattern from '../../src/masked/pattern'; import type MaskedRange from '../../src/masked/range'; import type MaskedRegExp from '../../src/masked/regexp'; import { type MaskedDynamicOptions } from '../../src/masked/dynamic'; import { type MaskedFunctionOptions } from '../../src/masked/function'; import { type MaskedNumberOptions } from '../../src/masked/number'; import { type MaskedPatternOptions } from '../../src/masked/pattern'; import { type MaskedRegExpOptions } from '../../src/masked/regexp'; import { type MaskedEnumOptions } from '../../src/masked/enum'; import { type MaskedDateOptions } from '../../src/masked/date'; import { type MaskedRangeOptions } from '../../src/masked/range'; class MyMasked extends Masked { declare overwrite?: boolean | 'shift' | undefined; declare eager?: boolean | 'remove' | 'append' | undefined; declare skipInvalid?: boolean | undefined; } type cases = [ Check<Equal<Parameters<InputMask<{ mask: DateConstructor }>['updateOptions']>, [Partial<MaskedDateOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: ArrayConstructor }>['updateOptions']>, [Partial<MaskedDynamicOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: () => boolean }>['updateOptions']>, [Partial<MaskedFunctionOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: NumberConstructor }>['updateOptions']>, [Partial<MaskedNumberOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: string }>['updateOptions']>, [Partial<MaskedPatternOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: RegExp }>['updateOptions']>, [Partial<MaskedRegExpOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: MaskedDate }>['updateOptions']>, [Partial<MaskedDateOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: MaskedDynamic }>['updateOptions']>, [Partial<MaskedDynamicOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: MaskedEnum }>['updateOptions']>, [Partial<MaskedEnumOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: MaskedFunction }>['updateOptions']>, [Partial<MaskedFunctionOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: MaskedNumber }>['updateOptions']>, [Partial<MaskedNumberOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: MaskedPattern }>['updateOptions']>, [Partial<MaskedPatternOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: MaskedRange }>['updateOptions']>, [Partial<MaskedRangeOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: MaskedRegExp }>['updateOptions']>, [Partial<MaskedRegExpOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: MyMasked }>['updateOptions']>, [Partial<Record<string, any>>]>>, Check<Equal<Parameters<InputMask<MaskedDate>['updateOptions']>, [Partial<MaskedDateOptions>]>>, Check<Equal<Parameters<InputMask<MaskedDynamic>['updateOptions']>, [Partial<MaskedDynamicOptions>]>>, Check<Equal<Parameters<InputMask<MaskedEnum>['updateOptions']>, [Partial<MaskedEnumOptions>]>>, Check<Equal<Parameters<InputMask<MaskedFunction>['updateOptions']>, [Partial<MaskedFunctionOptions>]>>, Check<Equal<Parameters<InputMask<MaskedNumber>['updateOptions']>, [Partial<MaskedNumberOptions>]>>, Check<Equal<Parameters<InputMask<MaskedPattern>['updateOptions']>, [Partial<MaskedPatternOptions>]>>, Check<Equal<Parameters<InputMask<MaskedRange>['updateOptions']>, [Partial<MaskedRangeOptions>]>>, Check<Equal<Parameters<InputMask<MaskedRegExp>['updateOptions']>, [Partial<MaskedRegExpOptions>]>>, Check<Equal<Parameters<InputMask<MyMasked>['updateOptions']>, [Partial<Record<string, any>>]>>, Check<Equal<Parameters<InputMask<{ mask: typeof MaskedDate }>['updateOptions']>, [Partial<MaskedDateOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: typeof MaskedDynamic }>['updateOptions']>, [Partial<MaskedDynamicOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: typeof MaskedEnum, enum: string[] }>['updateOptions']>, [Partial<MaskedEnumOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: typeof MaskedFunction }>['updateOptions']>, [Partial<MaskedFunctionOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: typeof MaskedNumber }>['updateOptions']>, [Partial<MaskedNumberOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: typeof MaskedPattern }>['updateOptions']>, [Partial<MaskedPatternOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: typeof MaskedRange, from: number, to: number }>['updateOptions']>, [Partial<MaskedRangeOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: typeof MaskedRegExp }>['updateOptions']>, [Partial<MaskedRegExpOptions>]>>, Check<Equal<Parameters<InputMask<{ mask: typeof MyMasked }>['updateOptions']>, [Partial<Record<string, any>>]>>, ]; ```
/content/code_sandbox/packages/imask/test/controls/input.types.ts
xml
2016-11-10T13:04:29
2024-08-16T15:16:18
imaskjs
uNmAnNeR/imaskjs
4,881
1,289
```xml <!-- ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <dataset> <metadata table-name="t_user_details" data-nodes="encrypt_write_ds_${0..9}.t_user_details_${0..9},encrypt_read_ds_${0..9}.t_user_details_${0..9}"> <column name="user_id" type="integer" /> <column name="address_id" type="integer" /> <column name="number_cipher" type="varchar" /> <column name="description" type="varchar" /> <index name="t_user_details_index_t_user_details" column="user_id" unique="false" /> </metadata> </dataset> ```
/content/code_sandbox/test/e2e/sql/src/test/resources/cases/ddl/dataset/dbtbl_with_readwrite_splitting_and_encrypt/create_index.xml
xml
2016-01-18T12:49:26
2024-08-16T15:48:11
shardingsphere
apache/shardingsphere
19,707
202
```xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="path_to_url"> <stroke android:color="@android:color/darker_gray" android:width="1dp"/> <corners android:radius="3dp"/> </shape> ```
/content/code_sandbox/app/src/main/res/drawable/shape_channel_normal.xml
xml
2016-08-19T09:59:38
2024-07-21T15:24:26
MvpApp
Rukey7/MvpApp
2,342
61
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" android:id="@+id/index_head" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:scrollbars="none"> <LinearLayout android:layout_width="match_parent" android:layout_height="@dimen/nav_header_height" android:background="@drawable/side_nav_bar" android:orientation="vertical" android:gravity="center|left" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin"> <ImageView android:id="@+id/imageView" android:layout_width="100dp" android:layout_height="100dp" android:paddingTop="@dimen/nav_header_vertical_spacing" android:src="@mipmap/ic_launcher" /> </LinearLayout> <android.support.v7.widget.RecyclerView android:id="@+id/index_nav_recycler" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> ```
/content/code_sandbox/app/src/main/res/layout/nav_header_main.xml
xml
2016-03-13T05:16:32
2024-04-29T09:08:01
RxJavaApp
jiang111/RxJavaApp
1,045
268
```xml <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 path_to_url"> <file original="Keka/en.lproj/AppShortcuts.strings" source-language="en" target-language="cs" datatype="plaintext"> <header> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="15.2" build-num="15C500b"/> </header> <body> <trans-unit id="Compress Files with ${applicationName}" xml:space="preserve"> <source>Compress Files with ${applicationName}</source> <target>Komprimovat soubory pomoc ${applicationName}</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Extract Files with ${applicationName}" xml:space="preserve"> <source>Extract Files with ${applicationName}</source> <target>Dekomprimovat soubory pomoc ${applicationName}</target> <note>No comment provided by engineer.</note> </trans-unit> </body> </file> <file original="Keka/en.lproj/InfoPlist.strings" source-language="en" target-language="cs" datatype="plaintext"> <header> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="15.2" build-num="15C500b"/> </header> <body> <trans-unit id="7Z Archive" xml:space="preserve"> <source>7Z Archive</source> <target>7Z Archive</target> <note/> </trans-unit> <trans-unit id="ACE Archive" xml:space="preserve"> <source>ACE Archive</source> <target>ACE Archive</target> <note/> </trans-unit> <trans-unit id="ALZip Archive" xml:space="preserve"> <source>ALZip Archive</source> <target>ALZip Archive</target> <note/> </trans-unit> <trans-unit id="APPX Archive" xml:space="preserve"> <source>APPX Archive</source> <target>APPX Archive</target> <note/> </trans-unit> <trans-unit id="ARC Archive" xml:space="preserve"> <source>ARC Archive</source> <target>ARC Archive</target> <note/> </trans-unit> <trans-unit id="ARJ Archive" xml:space="preserve"> <source>ARJ Archive</source> <target>ARJ Archive</target> <note/> </trans-unit> <trans-unit id="Amiga DCS Disk Archive" xml:space="preserve"> <source>Amiga DCS Disk Archive</source> <target>Amiga DCS Disk Archive</target> <note/> </trans-unit> <trans-unit id="Amiga DMS Disk Archive" xml:space="preserve"> <source>Amiga DMS Disk Archive</source> <target>Amiga DMS Disk Archive</target> <note/> </trans-unit> <trans-unit id="Amiga Disk File" xml:space="preserve"> <source>Amiga Disk File</source> <target>Amiga Disk File</target> <note/> </trans-unit> <trans-unit id="Amiga PackDev Disk Archive" xml:space="preserve"> <source>Amiga PackDev Disk Archive</source> <target>Amiga PackDev Disk Archive</target> <note/> </trans-unit> <trans-unit id="Amiga PowerPacker Archive" xml:space="preserve"> <source>Amiga PowerPacker Archive</source> <target>Amiga PowerPacker Archive</target> <note/> </trans-unit> <trans-unit id="Amiga Zoom Disk Archive" xml:space="preserve"> <source>Amiga Zoom Disk Archive</source> <target>Amiga Zoom Disk Archive</target> <note/> </trans-unit> <trans-unit id="Amiga xMash Disk Archive" xml:space="preserve"> <source>Amiga xMash Disk Archive</source> <target>Amiga xMash Disk Archive</target> <note/> </trans-unit> <trans-unit id="Android Application Package" xml:space="preserve"> <source>Android Application Package</source> <target>Android Application Package</target> <note/> </trans-unit> <trans-unit id="Apple Archive" xml:space="preserve"> <source>Apple Archive</source> <note/> </trans-unit> <trans-unit id="BZIP2 Archive" xml:space="preserve"> <source>BZIP2 Archive</source> <target>BZIP2 Archive</target> <note/> </trans-unit> <trans-unit id="BZIP2 Tarball Archive" xml:space="preserve"> <source>BZIP2 Tarball Archive</source> <target>BZIP2 Tarball Archive</target> <note/> </trans-unit> <trans-unit id="CAB Archive" xml:space="preserve"> <source>CAB Archive</source> <target>CAB Archive</target> <note/> </trans-unit> <trans-unit id="CDI Disk Image" xml:space="preserve"> <source>CDI Disk Image</source> <target>CDI Disk Image</target> <note/> </trans-unit> <trans-unit id="Compact Pro Archive" xml:space="preserve"> <source>Compact Pro Archive</source> <target>Compact Pro Archive</target> <note/> </trans-unit> <trans-unit id="Compressed Amiga Disk File" xml:space="preserve"> <source>Compressed Amiga Disk File</source> <target>Compressed Amiga Disk File</target> <note/> </trans-unit> <trans-unit id="Deb Archive" xml:space="preserve"> <source>Deb Archive</source> <target>Deb Archive</target> <note/> </trans-unit> <trans-unit id="DiskDoubler Archive" xml:space="preserve"> <source>DiskDoubler Archive</source> <target>DiskDoubler Archive</target> <note/> </trans-unit> <trans-unit id="Generic Archive Volume" xml:space="preserve"> <source>Generic Archive Volume</source> <target>Generic Archive Volume</target> <note/> </trans-unit> <trans-unit id="HA Archive" xml:space="preserve"> <source>HA Archive</source> <target>HA Archive</target> <note/> </trans-unit> <trans-unit id="Keka Extraction Package" xml:space="preserve"> <source>Keka Extraction Package</source> <target>Keka Extraction Package</target> <note/> </trans-unit> <trans-unit id="LBR Archive" xml:space="preserve"> <source>LBR Archive</source> <target>LBR Archive</target> <note/> </trans-unit> <trans-unit id="LZMA File" xml:space="preserve"> <source>LZMA File</source> <target>LZMA File</target> <note/> </trans-unit> <trans-unit id="LZX Archive" xml:space="preserve"> <source>LZX Archive</source> <target>LZX Archive</target> <note/> </trans-unit> <trans-unit id="LhA Archive" xml:space="preserve"> <source>LhA Archive</source> <target>LhA Archive</target> <note/> </trans-unit> <trans-unit id="LhF Archive" xml:space="preserve"> <source>LhF Archive</source> <target>LhF Archive</target> <note/> </trans-unit> <trans-unit id="Linux RPM Archive" xml:space="preserve"> <source>Linux RPM Archive</source> <target>Linux RPM Archive</target> <note/> </trans-unit> <trans-unit id="MDF Disk Image" xml:space="preserve"> <source>MDF Disk Image</source> <target>MDF Disk Image</target> <note/> </trans-unit> <trans-unit id="Microsoft MSI Installer" xml:space="preserve"> <source>Microsoft MSI Installer</source> <target>Microsoft MSI Installer</target> <note/> </trans-unit> <trans-unit id="NRG Disk Image" xml:space="preserve"> <source>NRG Disk Image</source> <target>NRG Disk Image</target> <note/> </trans-unit> <trans-unit id="NSA Archive" xml:space="preserve"> <source>NSA Archive</source> <target>NSA Archive</target> <note/> </trans-unit> <trans-unit id="Now Compress Archive" xml:space="preserve"> <source>Now Compress Archive</source> <target>Now Compress Archive</target> <note/> </trans-unit> <trans-unit id="PMA Archive" xml:space="preserve"> <source>PMA Archive</source> <target>PMA Archive</target> <note/> </trans-unit> <trans-unit id="PackIt Archive" xml:space="preserve"> <source>PackIt Archive</source> <target>PackIt Archive</target> <note/> </trans-unit> <trans-unit id="Pax Archive" xml:space="preserve"> <source>Pax Archive</source> <target>Pax Archive</target> <note/> </trans-unit> <trans-unit id="RAR Archive" xml:space="preserve"> <source>RAR Archive</source> <target>RAR Archive</target> <note/> </trans-unit> <trans-unit id="SAR Archive" xml:space="preserve"> <source>SAR Archive</source> <target>SAR Archive</target> <note/> </trans-unit> <trans-unit id="Self-Extracting Archive" xml:space="preserve"> <source>Self-Extracting Archive</source> <target>Self-Extracting Archive</target> <note/> </trans-unit> <trans-unit id="Unix Compress File" xml:space="preserve"> <source>Unix Compress File</source> <target>Unix Compress File</target> <note/> </trans-unit> <trans-unit id="Unix Compress Tar Archive" xml:space="preserve"> <source>Unix Compress Tar Archive</source> <target>Unix Compress Tar Archive</target> <note/> </trans-unit> <trans-unit id="WARC Web Archive" xml:space="preserve"> <source>WARC Web Archive</source> <target>WARC Web Archive</target> <note/> </trans-unit> <trans-unit id="XAR Archive" xml:space="preserve"> <source>XAR Archive</source> <target>XAR Archive</target> <note/> </trans-unit> <trans-unit id="XIP Archive" xml:space="preserve"> <source>XIP Archive</source> <target>XIP Archive</target> <note/> </trans-unit> <trans-unit id="XZ Archive" xml:space="preserve"> <source>XZ Archive</source> <target>XZ Archive</target> <note/> </trans-unit> <trans-unit id="XZ Tarball Archive" xml:space="preserve"> <source>XZ Tarball Archive</source> <target>XZ Tarball Archive</target> <note/> </trans-unit> <trans-unit id="ZIP Archive" xml:space="preserve"> <source>ZIP Archive</source> <target>ZIP Archive</target> <note/> </trans-unit> <trans-unit id="ZIPX Archive" xml:space="preserve"> <source>ZIPX Archive</source> <target>ZIPX Archive</target> <note/> </trans-unit> <trans-unit id="ZOO Archive" xml:space="preserve"> <source>ZOO Archive</source> <target>ZOO Archive</target> <note/> </trans-unit> <trans-unit id="Zstandard Archive" xml:space="preserve"> <source>Zstandard Archive</source> <target>Zstandard Archive</target> <note/> </trans-unit> <trans-unit id="Zstandard Tarball Archive" xml:space="preserve"> <source>Zstandard Tarball Archive</source> <target>Zstandard Tarball Archive</target> <note/> </trans-unit> </body> </file> <file original="Keka/en.lproj/Localizable.strings" source-language="en" target-language="cs" datatype="plaintext"> <header> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="15.2" build-num="15C500b"/> </header> <body> <trans-unit id="&quot;%@&quot;" xml:space="preserve"> <source>"%@"</source> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="%@ Folder" xml:space="preserve"> <source>%@ Folder</source> <target>%@ sloka</target> <note>Keka Folder</note> </trans-unit> <trans-unit id="%@ item" xml:space="preserve"> <source>%@ item</source> <target>%@ poloka</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="%@ items" xml:space="preserve"> <source>%@ items</source> <target>%@ poloek</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="%@ of &quot;%@&quot; failed" xml:space="preserve"> <source>%@ of "%@" failed</source> <target>%@ z %@ selhalo</target> <note>_OPERATION_ of "_FILENAME_" failed</note> </trans-unit> <trans-unit id="%@ of %@ item" xml:space="preserve"> <source>%@ of %@ item</source> <target>%@ z %@ poloky</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="%@ of %@ items" xml:space="preserve"> <source>%@ of %@ items</source> <target>%@ z %@ poloek</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="%lld items" xml:space="preserve"> <source>%lld items</source> <target>%lld poloek</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="ARCHIVE_DEFAULT_NAME" xml:space="preserve"> <source>Archive</source> <target>Archiv</target> <note>Default compression file name.</note> </trans-unit> <trans-unit id="About" xml:space="preserve"> <source>About</source> <target>Co je</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Actions" xml:space="preserve"> <source>Actions</source> <target>Akce</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Actions to do with the current browsed file" xml:space="preserve"> <source>Actions to do with the current browsed file</source> <target>Akce, kter se maj provst s aktulnm souborem</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Add a File" xml:space="preserve"> <source>Add a File</source> <target>Pidat soubor</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Add a Folder" xml:space="preserve"> <source>Add a Folder</source> <target>Pidat sloku</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Add a Photo or Video" xml:space="preserve"> <source>Add a Photo or Video</source> <target>Pidat fotografii nebo video</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Add files and folders to a compression list" xml:space="preserve"> <source>Add files and folders to a compression list</source> <target>Pidat soubory a sloky na seznam pro komprimaci</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Add some contents using the %@ button or the %@ button in the toolbar." xml:space="preserve"> <source>Add some contents using the %@ button or the %@ button in the toolbar.</source> <target>Pidat obsah pomoc tlatka %@ nebo tlatka %@ v dku nabdek.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Add some contents using the %@ button or the %@, %@ or %@ buttons in the toolbar." xml:space="preserve"> <source>Add some contents using the %@ button or the %@, %@ or %@ buttons in the toolbar.</source> <target>Pidat obsah pomoc tlatka %@ nebo tlatek %@, %@ nebo %@ v dku nabdek.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Add some contents using the %@ button." xml:space="preserve"> <source>Add some contents using the %@ button.</source> <target>Pidat obsah pomoc tlatka %@.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Advanced Settings" xml:space="preserve"> <source>Advanced Settings</source> <target>Dal volby</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Allocated size" xml:space="preserve"> <source>Allocated size</source> <target>Pidlen velikost</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Archive items separately" xml:space="preserve"> <source>Archive items separately</source> <target>Komprimovat kadou poloku samostatn</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Ask" xml:space="preserve"> <source>Ask</source> <target>Dotzat se</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="BROWSE_OPERATION" xml:space="preserve"> <source>Browse</source> <target>Prochzet</target> <note>Browse, operation description.</note> </trans-unit> <trans-unit id="BROWSE_RUNNING" xml:space="preserve"> <source>Browsing</source> <target>Prochz se</target> <note>Browsing, operation running.</note> </trans-unit> <trans-unit id="BROWSE_SECTION_TITLE" xml:space="preserve"> <source>Browsing</source> <target>Prochz se</target> <note>Browsing, tasks section title.</note> </trans-unit> <trans-unit id="Browser" xml:space="preserve"> <source>Browser</source> <target>Prohle</target> <note>Browser settings title.</note> </trans-unit> <trans-unit id="Bytes" xml:space="preserve"> <source>Bytes</source> <target>Bajt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="COMPRESSION_OPERATION" xml:space="preserve"> <source>Compression</source> <target>Komprimace</target> <note>Compression, operation description.</note> </trans-unit> <trans-unit id="COMPRESSION_RUNNING" xml:space="preserve"> <source>Compressing</source> <target>Komprimuje se</target> <note>Compressing, operation running.</note> </trans-unit> <trans-unit id="COMPRESSION_SECTION_TITLE" xml:space="preserve"> <source>Compressing</source> <target>Komprimovn</target> <note>Compressing, tasks section title.</note> </trans-unit> <trans-unit id="Calculate" xml:space="preserve"> <source>Calculate</source> <target>Spotat</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Cancel" xml:space="preserve"> <source>Cancel</source> <target>Zruit</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Cancelled" xml:space="preserve"> <source>Cancelled</source> <target>Zrueno</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Choose" xml:space="preserve"> <source>Choose</source> <target>Vybrat</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Clear Cache" xml:space="preserve"> <source>Clear Cache</source> <target>Vymazat vyrovnvac pam</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Clear Cache Contents" xml:space="preserve"> <source>Clear Cache Contents</source> <target>Vymazat obsah vyrovnvac pamti</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Close" xml:space="preserve"> <source>Close</source> <target>Zavt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Comments" xml:space="preserve"> <source>Comments</source> <target>Poznmky</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Compress" xml:space="preserve"> <source>Compress</source> <target>Komprimace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Compress Files with Keka" xml:space="preserve"> <source>Compress Files with Keka</source> <target>Komprimovat pomoc Keka</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Compress all the items in the compression list" xml:space="preserve"> <source>Compress all the items in the compression list</source> <target>Komprimovat vechny poloky ze seznamu</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Compress some files with Keka." xml:space="preserve"> <source>Compress some files with Keka.</source> <target>Komprimovat nkolik soubor pomoc Keka.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Compressed size" xml:space="preserve"> <source>Compressed size</source> <target>Komprimovan velikost</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Compression" xml:space="preserve"> <source>Compression</source> <target>Komprimace</target> <note>Compression settings title.</note> </trans-unit> <trans-unit id="Compression Level:" xml:space="preserve"> <source>Compression Level:</source> <target>rove komprimace:</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Contents" xml:space="preserve"> <source>Contents</source> <target>Obsah</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Contents: %@, Size: %@" xml:space="preserve"> <source>Contents: %@, Size: %@</source> <target>Obsahuje: %@, velikost: %@</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Contents: %lld, Size: %@" xml:space="preserve"> <source>Contents: %lld, Size: %@</source> <target>Obsahuje: %lld, velikost: %@</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Created" xml:space="preserve"> <source>Created</source> <target>Vytvoeno</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Custom..." xml:space="preserve"> <source>Custom...</source> <target>Vlastn</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Date" xml:space="preserve"> <source>Date</source> <target>Datum</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Default Compression Level" xml:space="preserve"> <source>Default Compression Level</source> <target>Vchoz rove komprimace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Default Destination" xml:space="preserve"> <source>Default Destination</source> <target>Vchoz clov umstn</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Default Format" xml:space="preserve"> <source>Default Format</source> <target>Vchoz formt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Default Tap Action" xml:space="preserve"> <source>Default Tap Action</source> <target>Vchoz akce (dotyk)</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Default Volume Unit" xml:space="preserve"> <source>Default Volume Unit</source> <target>Vchoz jednotka</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Delete" xml:space="preserve"> <source>Delete</source> <target>Smazat</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Delete files(s) after compression" xml:space="preserve"> <source>Delete files(s) after compression</source> <target>Smazat soubor(y) po dokonen komprimace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Destination" xml:space="preserve"> <source>Destination</source> <target>Cl</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Disable &quot;%@&quot; if you prefer to use a default configuration." xml:space="preserve"> <source>Disable "%@" if you prefer to use a default configuration.</source> <target>Vypnte %@ pokud si pejete pout vchoz konfiguraci.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Dismiss" xml:space="preserve"> <source>Dismiss</source> <target>Nepovolit</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Document" xml:space="preserve"> <source>Document</source> <target>Dokument</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Documents" xml:space="preserve"> <source>Documents</source> <target>Dokumenty</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Done" xml:space="preserve"> <source>Done</source> <target>Hotovo</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Downloads" xml:space="preserve"> <source>Downloads</source> <target>Koprovn</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="EXTRACTION_OPERATION" xml:space="preserve"> <source>Extraction</source> <target>Dekomprimace</target> <note>Extraction, operation description.</note> </trans-unit> <trans-unit id="EXTRACTION_RUNNING" xml:space="preserve"> <source>Extracting</source> <target>Dekomprimuje se</target> <note>Extracting, operation running.</note> </trans-unit> <trans-unit id="EXTRACTION_SECTION_TITLE" xml:space="preserve"> <source>Extracting</source> <target>Dekomprimovat</target> <note>Extracting, tasks section title.</note> </trans-unit> <trans-unit id="Edit" xml:space="preserve"> <source>Edit</source> <target>pravy</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Encrypt Filenames" xml:space="preserve"> <source>Encrypt Filenames</source> <target>ifrovat jmna soubor</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Encrypt Filenames if Possible" xml:space="preserve"> <source>Encrypt Filenames if Possible</source> <target>Pokud je to mon ifrovat jmna soubor</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Enter the password for the file&#10;&quot;%@&quot;" xml:space="preserve"> <source>Enter the password for the file "%@"</source> <target>Zadejte heslo k souboru %@</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Exclude Mac resource forks" xml:space="preserve"> <source>Exclude Mac resource forks</source> <target>Nezahrnovat Resource fork (macOS)</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Extract" xml:space="preserve"> <source>Extract</source> <target>Dekomprimovat</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Extract Files with Keka" xml:space="preserve"> <source>Extract Files with Keka</source> <target>Dekomprimovat soubory pomoc Keka</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Extract some files with Keka." xml:space="preserve"> <source>Extract some files with Keka.</source> <target>Dekomprimovat nkolik soubor pomoc Keka.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Extract the file" xml:space="preserve"> <source>Extract the file</source> <target>Dekomprimovat soubor</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Extraction" xml:space="preserve"> <source>Extraction</source> <target>Dekomprimace</target> <note>Extraction settings title.</note> </trans-unit> <trans-unit id="Fast" xml:space="preserve"> <source>Fast</source> <target>Rychl</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Fastest" xml:space="preserve"> <source>Fastest</source> <target>Nejrychlej</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Feedback" xml:space="preserve"> <source>Feedback</source> <target>Odezva</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="File for Keka" xml:space="preserve"> <source>File for Keka</source> <target>Soubor pro aplikaci Keka</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="File not informed properly, try again." xml:space="preserve"> <source>File not informed properly, try again.</source> <target>Soubor nebyl sprvn uren, zkuste to znovu.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Files" xml:space="preserve"> <source>Files</source> <target>Soubory</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Files and Folders" xml:space="preserve"> <source>Files and Folders</source> <target>Soubory a sloky</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Folder drop is only supported on iOS 16 or newer" xml:space="preserve"> <source>Folder drop is only supported on iOS 16 or newer</source> <target>Vloen sloky je podporovno pouze na systmu iOS 16 nebo vym</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Format" xml:space="preserve"> <source>Format</source> <target>Formt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="General" xml:space="preserve"> <source>General</source> <target>Hlavn</target> <note>General settings title.</note> </trans-unit> <trans-unit id="Get Info" xml:space="preserve"> <source>Get Info</source> <target>Informace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Gigabyte" xml:space="preserve"> <source>Gigabyte</source> <target>Gigabajt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Give Access" xml:space="preserve"> <source>Give Access</source> <target>Udlit pstup</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Hide Password by Default" xml:space="preserve"> <source>Hide Password by Default</source> <target>Ve vchozm stavu skrt heslo</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="If you got here, please get in touch with the developers." xml:space="preserve"> <source>If you got here, please get in touch with the developers.</source> <target>Pokud jste se dostali a sem, obrate se prosm na vvoje aplikace.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Information" xml:space="preserve"> <source>Information</source> <target>Informace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Keka's Folder" xml:space="preserve"> <source>Keka's Folder</source> <target>Sloka Keka</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Keka's icon" xml:space="preserve"> <source>Keka's icon</source> <target>Ikona Keka</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Kilobytes" xml:space="preserve"> <source>Kilobytes</source> <target>Kilobajt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Kind" xml:space="preserve"> <source>Kind</source> <target>Druh</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Last opened" xml:space="preserve"> <source>Last opened</source> <target>Naposledy oteveno</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Level" xml:space="preserve"> <source>Level</source> <target>rove</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Loading" xml:space="preserve"> <source>Loading</source> <target>Nat se</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Made with" xml:space="preserve"> <source>Made with</source> <target>Vytvoeno pomoc</target> <note>"Made with" part from "Made with love by aone".</note> </trans-unit> <trans-unit id="Megabytes" xml:space="preserve"> <source>Megabytes</source> <target>Megabajt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Modified" xml:space="preserve"> <source>Modified</source> <target>Zmnno</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Name" xml:space="preserve"> <source>Name</source> <target>Jmno</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="New Compression" xml:space="preserve"> <source>New Compression</source> <target>Nov komprimace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="No archive selected" xml:space="preserve"> <source>No archive selected</source> <target>dn archiv nebyl vybrn</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="No contents" xml:space="preserve"> <source>No contents</source> <target>dn obsah</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="No files to extract" xml:space="preserve"> <source>No files to extract</source> <target>dn soubory k dekomprimaci</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="None" xml:space="preserve"> <source>None</source> <target>Nic</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Normal" xml:space="preserve"> <source>Normal</source> <target>Normln</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Not all platforms support AES-256 encryption. You may need a third party application (like Keka) to open these compressed files." xml:space="preserve"> <source>Not all platforms support AES-256 encryption. You may need a third party application (like Keka) to open these compressed files.</source> <target>Ne vechny platformy podporuj ifrovn AES-256. Mon budete potebovat dal aplikaci (jako Keka) pro oteven komprimovanho souboru.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="OK" xml:space="preserve"> <source>OK</source> <target>OK</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Open" xml:space="preserve"> <source>Open</source> <target>Otevt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Open Keka" xml:space="preserve"> <source>Open Keka</source> <target>Otevt pomoc Keka</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Open..." xml:space="preserve"> <source>Open...</source> <target>Otevt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Order" xml:space="preserve"> <source>Order</source> <target>azen</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Password" xml:space="preserve"> <source>Password</source> <target>Heslo</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Password Protected" xml:space="preserve"> <source>Password Protected</source> <target>Chrnno heslem</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Password for &quot;%@&quot;" xml:space="preserve"> <source>Password for "%@"</source> <target>Heslo pro %@</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Password needed" xml:space="preserve"> <source>Password needed</source> <target>Je poteba heslo</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Pause" xml:space="preserve"> <source>Pause</source> <target>Peruen</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Petabytes" xml:space="preserve"> <source>Petabytes</source> <target>Petabajt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Please enter the password for:" xml:space="preserve"> <source>Please enter the password for:</source> <target>Zadejte prosm heslo:</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Please select the encoding for:" xml:space="preserve"> <source>Please select the encoding for:</source> <target>Zadejte prosm kdovn pro:</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Preview" xml:space="preserve"> <source>Preview</source> <target>Nhled</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Quick Look" xml:space="preserve"> <source>Quick Look</source> <target>Quick Look</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Remember Last Used Options" xml:space="preserve"> <source>Remember Last Used Options</source> <target>Zapamatovat naposledy pouit volby</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Remove" xml:space="preserve"> <source>Remove</source> <target>Odstranit</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Remove All Items" xml:space="preserve"> <source>Remove All Items</source> <target>Odstranit ve</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Remove from cache" xml:space="preserve"> <source>Remove from cache</source> <target>Odstranit z vyrovnvac pamti</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Remove the selected items from the compression list" xml:space="preserve"> <source>Remove the selected items from the compression list</source> <target>Odstranit vybran poloky ze seznamu</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Reset" xml:space="preserve"> <source>Reset</source> <target>Obnovit</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Reset All Settings" xml:space="preserve"> <source>Reset All Settings</source> <target>Obnovit vechny nastaven</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Resume" xml:space="preserve"> <source>Resume</source> <target>Dokonit</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Review" xml:space="preserve"> <source>Review</source> <target>Posouzen</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Run asynchronously" xml:space="preserve"> <source>Run asynchronously</source> <target>Spustit asynchronn</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Save" xml:space="preserve"> <source>Save</source> <target>Uloit</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Select some files and folders for Keka." xml:space="preserve"> <source>Select some files and folders for Keka.</source> <target>Vybrat nkolik soubor a sloek pro Keka.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Settings" xml:space="preserve"> <source>Settings</source> <target>Nastaven</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Share" xml:space="preserve"> <source>Share</source> <target>Sdlet</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Share..." xml:space="preserve"> <source>Share...</source> <target>Sdlet</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Show Advanced Settings" xml:space="preserve"> <source>Show Advanced Settings</source> <target>Zobrazit dal volby</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Show Info" xml:space="preserve"> <source>Show Info</source> <target>Informace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Show Less" xml:space="preserve"> <source>Show Less</source> <target>Zobrazit mn</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Show or hide additional advanced settings" xml:space="preserve"> <source>Show or hide additional advanced settings</source> <target>Zobrazit nebo skrt dal volby</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Show or hide additional information about the selected item" xml:space="preserve"> <source>Show or hide additional information about the selected item</source> <target>Zobrazit nebo skrt dal informace o vybranch polokch</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Size" xml:space="preserve"> <source>Size</source> <target>Velikost</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Slow" xml:space="preserve"> <source>Slow</source> <target>Pomalu</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Slowest" xml:space="preserve"> <source>Slowest</source> <target>Nejpomaleji</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Split in volumes" xml:space="preserve"> <source>Split in volumes</source> <target>Rozdlit na svazky</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Store" xml:space="preserve"> <source>Store</source> <target>Bez komprimace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="TRANSLATOR_LINK" xml:space="preserve"> <source>TRANSLATOR_LINK</source> <target>path_to_url <note>The translator link, if any. Can be a mail address or a website.</note> </trans-unit> <trans-unit id="TRANSLATOR_NAME" xml:space="preserve"> <source>TRANSLATOR_NAME</source> <target>@ferben</target> <note>The translator name, if any.</note> </trans-unit> <trans-unit id="Terabytes" xml:space="preserve"> <source>Terabytes</source> <target>Terabajt</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The %@ of space available in the destination might not be enough for compressing the estimated %@." xml:space="preserve"> <source>The %@ of space available in the destination might not be enough for compressing the estimated %@.</source> <target>Dostupn msto %@ na clovm loiti mon nebude stait pro dekomprimaci %@.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The changes could not be saved" xml:space="preserve"> <source>The changes could not be saved</source> <target>Zmny nemohly bt uloeny</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The character %@ is not compatilbe with the %@ format." xml:space="preserve"> <source>The character %@ is not compatilbe with the %@ format.</source> <target>Znak %@ nen kompatibiln s formtem %@.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The characters %@ are not compatilbe with the %@ format." xml:space="preserve"> <source>The characters %@ are not compatilbe with the %@ format.</source> <target>Znaky %@ nejsou kompatibiln s formtem %@.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The compression may need more memory than available (%@) and may not be completed successfully. Will be limited to 1 thread." xml:space="preserve"> <source>The compression may need more memory than available (%@) and may not be completed successfully. Will be limited to 1 thread.</source> <target>Komprimace bude mon vyadovat vce pamti ne je voln (%@) a mon sele. Proces bude omezen jen na 1 vlkno.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The compression will be limited to %lld thread/s due to memory constraints." xml:space="preserve"> <source>The compression will be limited to %lld thread/s due to memory constraints.</source> <target>Kvli pamovm omezenm bude komprimace bude omezena na %lld vlkno/vlken.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The destination has %@ of space available." xml:space="preserve"> <source>The destination has %@ of space available.</source> <target>Clov umstn m %@ volnho msta.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The file manager for iOS and macOS" xml:space="preserve"> <source>The file manager for iOS and macOS</source> <target>Sprvce soubor pro iOS a macOS</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The folder is empty" xml:space="preserve"> <source>The folder is empty</source> <target>Sloka se przdn</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The password length should be %lld or higher." xml:space="preserve"> <source>The password length should be %lld or higher.</source> <target>Dlka hesla by mla bt %lld nebo vce.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="The slower the level the more compression can be accomplished. The store level does no compression at all, only archives the contents." xml:space="preserve"> <source>The slower the level the more compression can be accomplished. The store level does no compression at all, only archives the contents.</source> <target>m pomalej rychlost, tm vy komprimaci (men soubor) lze doshnout. Reim bez komprimace nezmenuje velikost souboru, pouze slou obsah do jednoho souboru.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="This volume file needs additional files access to be opened.&#10;You can give access to the rest of the files or the parent folder." xml:space="preserve"> <source>This volume file needs additional files access to be opened. You can give access to the rest of the files or the parent folder.</source> <target>Pro oteven soubor z tohoto svazku je poteba udlit oprvnn. Mete udlit oprvnn ke zbytku soubor ve sloce nebo nadazen sloce.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="To extract" xml:space="preserve"> <source>To extract</source> <target>Dekomprimovat</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="To prevent a timeout on large operation, enable this setting. The result will always be true if enabled." xml:space="preserve"> <source>To prevent a timeout on large operation, enable this setting. The result will always be true if enabled.</source> <target>Zapnte tuto volbu, abyste pedeli vypren asovho limitu pi dle trvajc operaci.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Total size" xml:space="preserve"> <source>Total size</source> <target>Celkov velikost</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Translated by %@" xml:space="preserve"> <source>Translated by %@</source> <target>Peloil %@</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Type" xml:space="preserve"> <source>Type</source> <target>Typ</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="URL Encoded" xml:space="preserve"> <source>URL Encoded</source> <target>Kdovan URL</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Unable to apply the app icon" xml:space="preserve"> <source>Unable to apply the app icon</source> <target>Nelze aplikovat ikonu aplikace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Unable to browse &quot;%@&quot;" xml:space="preserve"> <source>Unable to browse "%@"</source> <target>Nelze prochzet %@</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Unable to delete the file" xml:space="preserve"> <source>Unable to delete the file</source> <target>Nelze smazat soubor</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Unable to determine the available space." xml:space="preserve"> <source>Unable to determine the available space.</source> <target>Nelze zjistit voln msto.</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Unable to get encoding data" xml:space="preserve"> <source>Unable to get encoding data</source> <target>Nelze zjistit kdovn</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Use AES-256 Encryption" xml:space="preserve"> <source>Use AES-256 Encryption</source> <target>Pout ifrovn AES-256</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Use AES-256 if Available" xml:space="preserve"> <source>Use AES-256 if Available</source> <target>Pokud je to mon pout ifrovn AES-256</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Use UTF-8 Encoding if Available" xml:space="preserve"> <source>Use UTF-8 Encoding if Available</source> <target>Pokud je to mon pout kdovn UTF-8</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Use special coloring for known formats" xml:space="preserve"> <source>Use special coloring for known formats</source> <target>Pro znm formty pout zvltn barvu</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Verify compression integrity" xml:space="preserve"> <source>Verify compression integrity</source> <target>Ovit integritu archivu</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Volume Size" xml:space="preserve"> <source>Volume Size</source> <target>Velikost svazku</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Volume Unit" xml:space="preserve"> <source>Volume Unit</source> <target>Jednotka velikosti</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Welcome" xml:space="preserve"> <source>Welcome</source> <target>Vtejte</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="Welcome to %@" xml:space="preserve"> <source>Welcome to %@</source> <target>Vt Vs %@</target> <note>The "Welcome to Keka" title.</note> </trans-unit> <trans-unit id="Where" xml:space="preserve"> <source>Where</source> <target>Umstn</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="archive" xml:space="preserve"> <source>archive</source> <target>archiv</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="by %@" xml:space="preserve"> <source>by %@</source> <target>od %@</target> <note>"by aone" part from "Made with love by aone".</note> </trans-unit> <trans-unit id="compress" xml:space="preserve"> <source>compress</source> <target>komprimace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="compressed" xml:space="preserve"> <source>compressed</source> <target>komprimovno</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="compression" xml:space="preserve"> <source>compression</source> <target>komprimace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="compression failed" xml:space="preserve"> <source>compression failed</source> <target>komprimace selhala</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="done" xml:space="preserve"> <source>done</source> <target>hotovo</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="extract" xml:space="preserve"> <source>extract</source> <target>dekomprimovat</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="extracted" xml:space="preserve"> <source>extracted</source> <target>dekomprimovno</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="extraction" xml:space="preserve"> <source>extraction</source> <target>dekomprimace</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="extraction failed" xml:space="preserve"> <source>extraction failed</source> <target>dekomprimace selhala</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="failed" xml:space="preserve"> <source>failed</source> <target>selhalo</target> <note>No comment provided by engineer.</note> </trans-unit> <trans-unit id="file" xml:space="preserve"> <source>file</source> <target>soubor</target> <note>No comment provided by engineer.</note> </trans-unit> </body> </file> <file original="KekaBrowseAction/en.lproj/InfoPlist.strings" source-language="en" target-language="cs" datatype="plaintext"> <header> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="15.2" build-num="15C500b"/> </header> <body> <trans-unit id="CFBundleDisplayName" xml:space="preserve"> <source>Browse with Keka</source> <target>Prochzet pomoc aplikace Keka</target> <note>Bundle display name</note> </trans-unit> </body> </file> <file original="KekaCompressionAction/en.lproj/InfoPlist.strings" source-language="en" target-language="cs" datatype="plaintext"> <header> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="15.2" build-num="15C500b"/> </header> <body> <trans-unit id="CFBundleDisplayName" xml:space="preserve"> <source>Compress using Keka</source> <target>Komprimovat pomoc Keka</target> <note>Bundle display name</note> </trans-unit> </body> </file> <file original="KekaExtractionAction/en.lproj/InfoPlist.strings" source-language="en" target-language="cs" datatype="plaintext"> <header> <tool tool-id="com.apple.dt.xcode" tool-name="Xcode" tool-version="15.2" build-num="15C500b"/> </header> <body> <trans-unit id="CFBundleDisplayName" xml:space="preserve"> <source>Extract using Keka</source> <target>Dekomprimovat pomoc Keka</target> <note>Bundle display name</note> </trans-unit> </body> </file> </xliff> ```
/content/code_sandbox/Translations-iOS/cs.xcloc/Localized Contents/cs.xliff
xml
2016-11-08T19:35:50
2024-08-16T17:49:34
Keka
aonez/Keka
4,664
14,917
```xml <?xml version="1.0" encoding="utf-8"?> <Include> <!-- User-selectable features --> <Fragment> <Feature Id="Fe.Wireshark" Title="$(var.WiresharkName)" Level="1" AllowAdvertise="yes" Display="expand" Description="The main network protocol analyzer application."> <ComponentGroupRef Id="CG.Wireshark" /> <ComponentGroupRef Id="CG.QtDependencies" /> <ComponentGroupRef Id="CG.QtTranslations" /> <ComponentGroupRef Id="CG.WiresharkStartMenu" /> <ComponentGroupRef Id="CG.WiresharkDesktopIcon" /> <ComponentGroupRef Id="CG.WiresharkQuickLaunchIcon" /> <ComponentGroupRef Id="CG.WiresharkFileAssociations" /> </Feature> <Feature Id="Fe.WiresharkRequired" Title="Required" Level="1" AllowAdvertise="yes" Display="hidden" Description="Install for every user"> <ComponentGroupRef Id="CG.WiresharkRequired" /> <ComponentGroupRef Id="CG.ColorFilters" /> <ComponentGroupRef Id="CG.Diameter" /> <ComponentGroupRef Id="CG.RadiusDict" /> <ComponentGroupRef Id="CG.Dtds" /> <ComponentGroupRef Id="CG.Tpncp" /> <ComponentGroupRef Id="CG.Wimaxasncp" /> <ComponentGroupRef Id="CG.Help" /> <ComponentGroupRef Id="CG.RequiredDependencies" /> </Feature> <Feature Id="Fe.TShark" Title="TShark" Level="1" AllowAdvertise="yes" Display="expand" Description="Text based network protocol analyzer."> <ComponentGroupRef Id="CG.TShark" /> </Feature> <?ifdef GTK_DIR?> <Feature Id="Fe.WiresharkGTK" Title="Wireshark 1" Level="1" AllowAdvertise="yes" Display="expand" Description="The classic user interface."> <ComponentGroupRef Id="CG.WiresharkGTK" /> <ComponentGroupRef Id="CG.GTKRequiredDependencies" /> <ComponentGroupRef Id="CG.GTKSubdirectory" /> <ComponentGroupRef Id="CG.WiresharkLegacyStartMenu" /> <ComponentGroupRef Id="CG.WiresharkLegacyDesktopIcon" /> <ComponentGroupRef Id="CG.WiresharkLegacyQuickLaunchIcon" /> <ComponentGroupRef Id="CG.WiresharkLegacyFileAssociations" /> </Feature> <?endif?> <Feature Id="Fe.Plugins" Title="Plugins &amp; Extensions" Level="1" AllowAdvertise="yes" Display="expand" Description="Plugins and extensions for both $(var.WiresharkName) and TShark."> <!-- XXX - Cleanup plugins directory on uninstall --> <Feature Id="Fe.Plugins.Dissector" Title="Dissector Plugins" Level="1" AllowAdvertise="yes" Display="expand" Description="Additional protocol dissectors."> <ComponentGroupRef Id="CG.Plugins.Dissector" /> </Feature> <Feature Id="Fe.Plugins.TreeStat" Title="Tree Statistics Plugin" Level="1" AllowAdvertise="yes" Display="expand" Description="Extended statistics."> <ComponentGroupRef Id="CG.Plugins.TreeStat" /> </Feature> <Feature Id="Fe.Plugins.Mate" Title="Mate - Meta Analysis and Tracing Engine" Level="1" AllowAdvertise="yes" Display="expand" Description="Plugin - Meta Analysis and Tracing Engine (Experimental)."> <ComponentGroupRef Id="CG.Plugins.Mate" /> </Feature> <Feature Id="Fe.Plugins.ConfigurationProfiles" Title="Configuration Profiles" Level="1" AllowAdvertise="yes" Display="expand" Description="Configuration Profiles"> <!-- XXX - Cleanup configuration profiles directory on uninstall --> <ComponentGroupRef Id="CG.Plugins.ConfigurationProfiles" /> </Feature> <?ifdef SMI_DIR?> <Feature Id="Fe.Plugins.SNMP" Title="SNMP MIBs" Level="1" AllowAdvertise="yes" Display="expand" Description="SNMP MIBs for better SNMP dissection."> <ComponentGroupRef Id="CG.Plugins.SNMP" /> </Feature> <?endif?> </Feature> <Feature Id="Fe.Tools" Title="Tools" Level="1" AllowAdvertise="yes" Display="expand" Description="Additional command line based tools."> <Feature Id="Fe.Tools.Editcap" Title="Editcap" Level="1" AllowAdvertise="yes" Display="expand" Description="Copy packets to a new file, optionally trimmming packets, omitting them, or saving to a different format."> <ComponentGroupRef Id="CG.Tools.Editcap" /> </Feature> <Feature Id="Fe.Tools.Text2Pcap" Title="Text2Pcap" Level="1" AllowAdvertise="yes" Display="expand" Description="Read an ASCII hex dump and write the data into a libpcap-style capture file."> <ComponentGroupRef Id="CG.Tools.Text2Pcap" /> </Feature> <Feature Id="Fe.Tools.Mergecap" Title="Mergecap" Level="1" AllowAdvertise="yes" Display="expand" Description="Combine multiple saved capture files into a single output file."> <ComponentGroupRef Id="CG.Tools.Mergecap" /> </Feature> <Feature Id="Fe.Tools.Reordercap" Title="Reordercap" Level="1" AllowAdvertise="yes" Display="expand" Description="Copy packets to a new file, sorted by time."> <ComponentGroupRef Id="CG.Tools.Reordercap" /> </Feature> <Feature Id="Fe.Tools.Capinfos" Title="Capinfos" Level="1" AllowAdvertise="yes" Display="expand" Description="Print information about capture files."> <ComponentGroupRef Id="CG.Tools.Capinfos" /> </Feature> <Feature Id="Fe.Tools.Rawshark" Title="Rawshark" Level="1" AllowAdvertise="yes" Display="expand" Description="Raw packet filter."> <ComponentGroupRef Id="CG.Tools.Rawshark" /> </Feature> <Feature Id="Fe.Tools.Androiddump" Title="Androiddump" Level="2" AllowAdvertise="yes" Display="expand" Description="Provide capture interfaces from Android devices."> <ComponentGroupRef Id="CG.Tools.Androiddump" /> </Feature> <Feature Id="Fe.Tools.Randpktdump" Title="Randpktdump" Level="2" AllowAdvertise="yes" Display="expand" Description="Provide random packet generator."> <ComponentGroupRef Id="CG.Tools.Randpktdump" /> </Feature> <!-- WIP: uncomment this section when sshdump on windows will be ready to go <Feature Id="Fe.Tools.Sshdump" Title="Sshdump" Level="1" AllowAdvertise="no" Display="expand" Description="Provide remote capture through SSH."> <ComponentGroupRef Id="CG.Tools.Sshdump" /> </Feature> --> </Feature> <?ifdef USER_GUIDE_DIR?> <Feature Id="Fe.UserGuide" Title="User's Guide" Level="1" AllowAdvertise="yes" Display="expand" Description="Install an offline copy of the User's Guide."> <ComponentGroupRef Id="CG.UserGuide" /> </Feature> <?endif?> <Feature Id="VCRedist" Title="Visual C++ Runtime" AllowAdvertise="no" Display="hidden" Level="1"> <MergeRef Id="VCRedist"/> </Feature> </Fragment> </Include> ```
/content/code_sandbox/utilities/wireshark/packaging/wix/Features.wxi
xml
2016-10-27T09:31:28
2024-08-16T19:00:35
nexmon
seemoo-lab/nexmon
2,381
1,691
```xml import React from 'react'; type IconProps = React.SVGProps<SVGSVGElement>; export declare const IcPinAngled: (props: IconProps) => React.JSX.Element; export {}; ```
/content/code_sandbox/packages/icons/lib/icPinAngled.d.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
44
```xml import type { ReactNode, Reducer } from 'react'; import { useEffect, useReducer, useState } from 'react'; import useInstance from '@proton/hooks/useInstance'; import isDeepEqual from '@proton/shared/lib/helpers/isDeepEqual'; import NotificationsChildrenContext from './childrenContext'; import type { Notification, NotificationOffset } from './interfaces'; import createManager from './manager'; import NotificationsContext from './notificationsContext'; interface Props { children: ReactNode; } const offsetReducer = (oldState: NotificationOffset | undefined, newState: NotificationOffset | undefined) => { if (oldState === newState || isDeepEqual(oldState, newState)) { return oldState; } return newState; }; const NotificationsProvider = ({ children }: Props) => { const [notifications, setNotifications] = useState<Notification[]>([]); const [offset, setNotificationOffset] = useReducer< Reducer<NotificationOffset | undefined, NotificationOffset | undefined> >(offsetReducer, undefined); const manager = useInstance(() => { return createManager(setNotifications, setNotificationOffset); }); useEffect(() => { return () => { manager.clearNotifications(); }; }, []); return ( <NotificationsContext.Provider value={manager}> <NotificationsChildrenContext.Provider value={{ notifications, offset }}> {children} </NotificationsChildrenContext.Provider> </NotificationsContext.Provider> ); }; export default NotificationsProvider; ```
/content/code_sandbox/packages/components/containers/notifications/Provider.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
300
```xml <?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="path_to_url" tools:ignore="TypographyEllipsis,TypographyDashes"> <string name="about">Rakenduse info</string> <string name="add">Lisa</string> <string name="add_folder">Kausta lisamine</string> <string name="add_item">Kirje lisamine</string> <string name="an_error_has_occurred">Ilmnes trge.</string> <string name="back">Tagasi</string> <string name="bitwarden">Bitwarden</string> <string name="cancel">Thista</string> <string name="copy">Kopeeri</string> <string name="copy_password">Kopeeri parool</string> <string name="copy_username">Kopeeri kasutajanimi</string> <string name="credits">Tnusnad</string> <string name="delete">Kustuta</string> <string name="deleting">Kustutamine...</string> <string name="do_you_really_want_to_delete">Kas soovid kindlasti kustutada? Seda ei saa tagasi vtta.</string> <string name="edit">Muuda</string> <string name="edit_folder">Muuda kausta</string> <string name="email">E-post</string> <string name="email_address">E-posti aadress</string> <string name="email_us">Kirjuta meile</string> <string name="email_us_description">Kirjuta meile abi saamiseks vi tagasiside jtmiseks.</string> <string name="enter_pin">Sisesta PIN kood.</string> <string name="favorites">Lemmikud</string> <string name="file_bug_report">Esita tarkvaraviga</string> <string name="file_bug_report_description">Ava meie GitHubis probleemi kirjeldus.</string> <string name="fingerprint_direction">Kasuta lahtilukustamiseks srmejlge.</string> <string name="folder">Kaust</string> <string name="folder_created">Uus kaust on loodud.</string> <string name="folder_deleted">Kaust on kustutatud.</string> <string name="folder_none">Kaust puudub</string> <string name="folders">Kaustad</string> <string name="folder_updated">Kaust on uuendatud.</string> <string name="go_to_website">Klasta veebisaiti</string> <string name="help_and_feedback">Abi ja tagasiside</string> <string name="hide">Peida</string> <string name="internet_connection_required_message">Jtkamiseks on vajalik internetihendus.</string> <string name="internet_connection_required_title">Vajalik on internetihendus</string> <string name="invalid_master_password">Vale lemparool. Proovi uuesti.</string> <string name="invalid_pin">Vale PIN. Proovi uuesti.</string> <string name="launch">Kivita</string> <string name="log_in">Logi sisse</string> <string name="log_in_noun">Sisselogimine</string> <string name="log_out">Logi vlja</string> <string name="logout_confirmation">Oled kindel, et soovid vlja logida?</string> <string name="remove_account">Eemalda konto</string> <string name="remove_account_confirmation">Oled kindel, et soovid selle konto eemaldada?</string> <string name="account_already_added">Konto on juba lisatud</string> <string name="switch_to_already_added_account_confirmation">Kas soovid kohe vahetada?</string> <string name="master_password">lemparool</string> <string name="more">Rohkem</string> <string name="my_vault">Minu hoidla</string> <string name="authenticator">Autentikaator</string> <string name="name">Nimi</string> <string name="no">Ei</string> <string name="notes">Mrkmed</string> <string name="ok">Ok</string> <string name="password">Parool</string> <string name="save">Salvesta</string> <string name="move">Teisalda</string> <string name="saving">Salvestan...</string> <string name="settings">Seaded</string> <string name="show">Nita</string> <string name="item_deleted">Kirje on kustutatud.</string> <string name="submit">Esita</string> <string name="sync">Snkroniseeri</string> <string name="thank_you">Tname teid!</string> <string name="tools">Triistad</string> <string name="uri">URI</string> <string name="use_fingerprint_to_unlock">Kasuta lahtilukustamiseks srmejlge</string> <string name="username">Kasutajanimi</string> <string name="validation_field_required">Vli %1$s on kohustuslik.</string> <string name="value_has_been_copied">%1$s on kopeeritud.</string> <string name="verify_fingerprint">Kinnita srmejljega</string> <string name="verify_master_password">Autendi lemparooliga</string> <string name="verify_pin">Kinnita PIN</string> <string name="version">Versioon</string> <string name="view">Vaata</string> <string name="visit_our_website">Klasta meie kodulehte</string> <string name="website">Veebisait</string> <string name="yes">Jah</string> <string name="account">Konto</string> <string name="account_created">Sinu konto on loodud! Vid nd sisse logida.</string> <string name="add_an_item">Lisa kirje</string> <string name="app_extension">Rakenduse laiendus</string> <string name="autofill_accessibility_description">Kasuta Bitwardeni juurdepsetavuse teenust, et erinevatel veebilehtedel ja rakendustes kontoandmeid sisestada.</string> <string name="autofill_service">Automaattite teenus</string> <string name="set_bitwarden_as_passkey_manager_description">Set Bitwarden as your passkey provider in device settings.</string> <string name="avoid_ambiguous_characters">Vldi ebamraseid kirjamrke</string> <string name="bitwarden_app_extension">Bitwarden rakenduse laiendus</string> <string name="bitwarden_app_extension_alert2">Lihtsaim viis uute sisselogimise andmete lisamiseks on kasutada Bitwardeni rakenduse laiendust. Lisateavet Bitwardeni rakenduse laienduse kasutamiseks leiad menst \"Seaded\".</string> <string name="bitwarden_app_extension_description">Kasuta Bitwardenit Safaris ja teistes rakendustes kontoandmete sisestamiseks.</string> <string name="bitwarden_autofill_service">Bitwardeni automaattite teenus</string> <string name="bitwarden_autofill_accessibility_service_description">Kasuta kontoandmete sisestamiseks Bitwardeni juurdepsetavuse teenust.</string> <string name="change_email">Muuda e-posti</string> <string name="change_email_confirmation">Saad oma e-posti aadressi muuta bitwarden.com veebihoidlas. Soovid seda kohe teha?</string> <string name="change_master_password">Muuda lemparooli</string> <string name="close">Sulge</string> <string name="continue_text">Jtka</string> <string name="create_account">Loo konto</string> <string name="creating_account">Konto loomine...</string> <string name="edit_item">Kirje muutmine</string> <string name="enable_automatic_syncing">Aktiveeri automaatne snkroonimine</string> <string name="enter_email_for_hint">lemparooli vihje saamiseks sisesta oma konto e-posti aadress.</string> <string name="exntesion_reenable">Taas-aktiveeri rakenduse laiendus</string> <string name="extension_almost_done">Peaaegu valmis!</string> <string name="extension_enable">Aktiveeri rakenduse laiendus</string> <string name="extension_in_safari">Safaris psed Bitwardenile ligi lbi jagamise ikooni (vihje: vaata jagamise mens paremale-alla).</string> <string name="extension_instant_access">Kiire ligips oma paroolidele!</string> <string name="extension_ready">Oled sisselogimiseks valmis!</string> <string name="extension_setup">Psed nd oma kontoandmetele lihtsasti ligi nii Safaris, Chromes kui ka teistes toetatud rakendustes.</string> <string name="extension_setup2">Safaris ja Chromes psed Bitwardenile ligi lbi jagamise ikooni (vihje: vaata jagamise mens paremale-alla).</string> <string name="extension_tap_icon">Lisa kivitamiseks vajuta mens Bitwardeni ikoonile.</string> <string name="extension_turn_on">Bitwardeni sissellitamiseks Safaris ja teistes rakendustes vajuta alumisel menl \"more\" ikoonile.</string> <string name="favorite">Lemmik</string> <string name="fingerprint">srmejljega</string> <string name="generate_password">Loo parool</string> <string name="get_password_hint">Tuleta lemparooli vihjega meelde</string> <string name="import_items">Impordi andmed</string> <string name="import_items_confirmation">Saad suurema koguse kontoandmeid importida Bitwardeni veebihoidlas. Soovid seda kohe teha?</string> <string name="import_items_description">Kiire viis oma konto- ja muude andmete importimiseks teistest paroolihalduritest.</string> <string name="last_sync">Viimane snkroniseerimine:</string> <string name="length">Pikkus</string> <string name="lock">Lukusta</string> <string name="fifteen_minutes">15 minuti prast</string> <string name="one_hour">1 tunni prast</string> <string name="one_minute">1 minuti prast</string> <string name="four_hours">4 tunni prast</string> <string name="immediately">Koheselt</string> <string name="vault_timeout">Hoidla ajalpp</string> <string name="vault_timeout_action">Hoidla ajalpu tegevus</string> <string name="vault_timeout_log_out_confirmation">Vljalogimine eemaldab hoidlale ligipsu ning nuab prast ajalpu perioodi uuesti autentimist. Oled kindel, et soovid seda valikut kasutada?</string> <string name="logging_in">Sisselogimine...</string> <string name="login_or_create_new_account">Logi oma kontosse sisse vi loo uus konto.</string> <string name="manage">Halda</string> <string name="master_password_confirmation_val_message">Parooli kinnitus ei ole ige.</string> <string name="master_password_description">lemparool on parool, millega psed oma kontole ligi. On rmiselt thtis, et lemparool ei ununeks. Selle parooli taastamine ei ole mingil moel vimalik.</string> <string name="master_password_hint">lemparooli vihje (ei ole kohustuslik)</string> <string name="master_password_hint_description">Vihje vib abiks olla olukorras, kui oled lemparooli unustanud.</string> <string name="master_password_length_val_message_x">lemparool peab olema vhemalt %1$s themrgi pikkune.</string> <string name="min_numbers">Vhim arv numbreid</string> <string name="min_special">Vhim arv spetsiaalmrke</string> <string name="more_settings">Rohkem seadeid</string> <string name="must_log_in_main_app">Pead enne lisarakenduse kasutamist Bitwardeni rakendusse sisse logima.</string> <string name="never">Mitte kunagi</string> <string name="new_item_created">Uus kirje on loodud.</string> <string name="no_favorites">Hoidlas ei ole lemmikuid.</string> <string name="no_items">Hoidlas ei ole kirjeid.</string> <string name="no_items_tap">Hoidlas puudub selle veebilehe konto. Vajuta konto lisamiseks.</string> <string name="no_username">No Username</string> <string name="no_username_password_configured">Selle konto jaoks on kasutajanimi vi parool seadistamata.</string> <string name="ok_got_it">Ok, sain aru!</string> <string name="option_defaults">Vaikevrtused on seatud Bitwardeni paroolide genereerimise triista poolt.</string> <string name="options">Valikud</string> <string name="other">Muu</string> <string name="password_generated">Parool on loodud.</string> <string name="password_generator">Parooli genereerimine</string> <string name="password_hint">Parooli vihje</string> <string name="password_hint_alert">lemparooli vihje saadeti Sinu e-postile.</string> <string name="password_override_alert">Oled kindel, et soovid olemasolevat parooli asendada?</string> <string name="push_notification_alert">Bitwarden hoiab hoidla automaatselt snkroonis lbi push teavituste. Parima vimaliku kogemuse saamiseks vajuta jrgnevas mrkekastis \"Allow\", et snkroniseerimine lubada.</string> <string name="rate_the_app">Hinda rakendust</string> <string name="rate_the_app_description">Soovi korral vid meid positiivse hinnanguga toetada!</string> <string name="regenerate_password">Loo uus</string> <string name="retype_master_password">Sisesta lemparool uuesti</string> <string name="search_vault">Otsi hoidlast</string> <string name="security">Turvalisus</string> <string name="select">Vali</string> <string name="set_pin">Mra PIN</string> <string name="set_pin_direction">Kasuta lahtilukustamiseks 4 numbrilist koodi.</string> <string name="item_information">Kirje teave</string> <string name="item_updated">Kirje on uuendatud.</string> <string name="submitting">Saatmine...</string> <string name="syncing">Snkroniseerimine...</string> <string name="syncing_complete">Snkroniseerimine on lpetatud.</string> <string name="syncing_failed">Snkroniseerimine nurjus.</string> <string name="sync_vault_now">Snkroniseeri hoidla</string> <string name="touch_id">Touch ID</string> <string name="two_step_login">Kaheastmeline kinnitamine</string> <string name="unlock_with">Lukusta lahti %1$s</string> <string name="unlock_with_pin">Lukusta lahti PIN koodiga</string> <string name="validating">Valideerimine</string> <string name="verification_code">Kinnituskood</string> <string name="view_item">Kirje vaatamine</string> <string name="web_vault">Bitwarden veebihoidla</string> <string name="lost_2fa_app">Kaotasid autentimise rakenduse?</string> <string name="items">Kirjet</string> <string name="extension_activated">Lisa on aktiveeritud!</string> <string name="icons">Ikoonid</string> <string name="translations">Tlkijad</string> <string name="items_for_uri">%1$s kontoandmed</string> <string name="no_items_for_uri">Hoidlas puuduvad %1$s kontod.</string> <string name="bitwarden_autofill_service_overlay">Kui vajutad sisendvljale ning ned Bitwardeni akent, saad sellele vajutada ning kontoandmeid ja paroole sisestada.</string> <string name="bitwarden_autofill_service_notification_content">Vajuta andmete automaatseks sisestamiseks.</string> <string name="bitwarden_autofill_service_open_accessibility_settings">Ava Juurdepsetavuse seaded</string> <string name="bitwarden_autofill_service_step1">1. Vajuta Androidi Juurdepsetavuse seadete mens \"Bitwardeni\" kirjele.</string> <string name="bitwarden_autofill_service_step2">2. Llita valik sisse ja seejrel OK, et sellega nustuda.</string> <string name="disabled">Keelatud</string> <string name="enabled">Lubatud</string> <string name="off" tools:override="true">Vljas</string> <string name="on" tools:override="true">Sees</string> <string name="status">Olek:</string> <string name="bitwarden_autofill_service_alert2">Lihtsaim viis hoidlasse kontosid lisada on lbi Bitwardeni automaattite teenuse. Rohkem infot selle kohta leiad Bitwardeni rakenduse menst \"Seaded\".</string> <string name="autofill">Tida automaatselt</string> <string name="autofill_or_view">Soovid seda kirjet sisestada vi vaadata?</string> <string name="bitwarden_autofill_service_match_confirm">Oled kindel, et soovid selle kirje automaatselt sisestada? See ei hti tielikult \"%1$s\"-ga.</string> <string name="matching_items">Sobivad kirjed</string> <string name="possible_matching_items">Vimalikud sobivad kirjed</string> <string name="search">Otsi</string> <string name="bitwarden_autofill_service_search">Otsid \"%1$s\" automaattite kirjet.</string> <string name="learn_org">Info organisatsioonide kohta</string> <string name="cannot_open_app">Rakendust \"%1$s\" ei ole vimalik avada.</string> <string name="authenticator_app_title">Autentimise rakendus</string> <string name="enter_verification_code_app">Sisesta autentimise rakendusest 6 kohaline number.</string> <string name="enter_verification_code_email">Sisesta 6 kohaline number, mis saadeti e-posti aadressile %1$s.</string> <string name="login_unavailable">Sisselogimine ei ole saadaval</string> <string name="no_two_step_available">Sellel kontol on aktiveeritud kaheastmeline kinnitus. Siiski ei toeta kski aktiveeritud kaheastmelise kinnitamise teenus seda konkreetset seadet. Palun kasuta hilduvat seadet ja/vi lisa uus kaheastmelise teenuse pakkuja, mis ttab rohkemates seadmetes (niteks mni autentimise rakendus).</string> <string name="recovery_code_title">Taastamise kood</string> <string name="remember_me">Jta mind meelde</string> <string name="send_verification_code_again">Saada kinnituskood uuesti e-postile</string> <string name="two_step_login_options">Kaheastmelise sisselogimise valikud</string> <string name="use_another_two_step_method">Kasuta teist meetodit</string> <string name="verification_email_not_sent">Kinnitus e-kirja saatmine ebannestus. Proovi uuesti.</string> <string name="verification_email_sent">Kinnitus e-kiri on saadetud.</string> <string name="yubi_key_instruction">Jtkamiseks hoia oma YubiKey NEO-d vastu seadet vi sisesta see seadme USB pessa. Seejrel vajuta sellele nupule.</string> <string name="yubi_key_title">YubiKey Security Key</string> <string name="add_new_attachment">Lisa uus manus</string> <string name="attachments">Manused</string> <string name="unable_to_download_file">Faili allalaadimine nurjus.</string> <string name="unable_to_open_file">Sinu seade ei oska seda faili avada.</string> <string name="downloading">Allalaadimine...</string> <string name="attachment_large_warning">See manus on %1$s suurusega. Oled kindel, et soovid seda oma seadmesse allalaadida?</string> <string name="authenticator_key">Autentimise vti (TOTP)</string> <string name="verification_code_totp">Kinnituskood (TOTP)</string> <string name="authenticator_key_added">Autentimise vti on lisatud.</string> <string name="authenticator_key_read_error">Autentimise vtme lugemine nurjus.</string> <string name="point_your_camera_at_the_qr_code">Suuna kaamera QR koodile. Skaneerimine toimub automaatselt.</string> <string name="scan_qr_title">Skanneeri QR kood</string> <string name="camera">Kaamera</string> <string name="photos">Fotod</string> <string name="copy_totp">Kopeeri TOTP</string> <string name="copy_totp_automatically_description">Kui sisselogimise andmetele on juurde lisatud autentimise vti, kopeeri TOTP kood automaattite kasutamisel likepuhvrisse.</string> <string name="copy_totp_automatically">TOTP automaatne kopeerimine</string> <string name="premium_required">Selle funktsiooni kasutamiseks on vajalik tasulist kontot omada.</string> <string name="attachement_added">Manus on lisatud</string> <string name="attachment_deleted">Manus on kustutatud</string> <string name="choose_file">Vali fail</string> <string name="file">Fail</string> <string name="no_file_chosen">Faili pole valitud</string> <string name="no_attachments">Manused puuduvad.</string> <string name="file_source">Faili allikas</string> <string name="feature_unavailable">Funktsioon pole saadaval</string> <string name="max_file_size">Maksimaalne faili suurus on 100 MB.</string> <string name="update_key">Seda funktsiooni ei saa enne krpteerimise vtme uuendamist kasutada.</string> <string name="encryption_key_migration_required_description_long">Encryption key migration required. Please login through the web vault to update your encryption key.</string> <string name="learn_more">Rohkem teavet</string> <string name="api_url">API serveri URL</string> <string name="custom_environment">Kohandatud keskkond</string> <string name="custom_environment_footer">Ainult edasijudnud kasutajatele. Siin saad igale kategooriale eraldi URL-i mrata.</string> <string name="environment_saved">The environment URLs have been saved.</string> <string name="formatted_incorrectly">%1$s ei ole ige formaadiga.</string> <string name="identity_url">Identifitseerimise serveri URL</string> <string name="self_hosted_environment">Enda majutatud keskkond</string> <string name="self_hosted_environment_footer">Sisesta baas URL, kus sinu vi ettevtte majutatud Bitwarden asub.</string> <string name="server_url">Serveri URL</string> <string name="web_vault_url">Veebihoidla serveri URL</string> <string name="bitwarden_autofill_service_notification_content_old">Vajuta mrguandele, et oma hoidla sisu nha.</string> <string name="custom_fields">Kohandatud vljad</string> <string name="copy_number">Kopeeri number</string> <string name="copy_security_code">Kopeeri turvakood</string> <string name="number">Number</string> <string name="security_code">Turvakood</string> <string name="type_card">Pangakaart</string> <string name="type_identity">Identiteet</string> <string name="type_login">Kasutajakonto andmed</string> <string name="type_secure_note">Turvaline mrkus</string> <string name="address1">Aadress 1</string> <string name="address2">Aadress 2</string> <string name="address3">Aadress 3</string> <string name="april">Aprill</string> <string name="august">August</string> <string name="brand">Vljastaja</string> <string name="cardholder_name">Kaardiomaniku nimi</string> <string name="city_town">Linn / asula</string> <string name="company">Ettevte</string> <string name="country">Riik</string> <string name="december">Detsember</string> <string name="dr">Dr</string> <string name="expiration_month">Aegumise kuu</string> <string name="expiration_year">Aegumise aasta</string> <string name="february">Veebruar</string> <string name="first_name">Eesnimi</string> <string name="january">Jaanuar</string> <string name="july">Juuli</string> <string name="june">Juuni</string> <string name="last_name">Perekonnanimi</string> <string name="full_name">Tisnimi</string> <string name="license_number">Litsentsi number</string> <string name="march">Mrts</string> <string name="may">Mai</string> <string name="middle_name">Teine eesnimi</string> <string name="mr">Hr</string> <string name="mrs">Mrs</string> <string name="ms">Pr</string> <string name="mx">Mx</string> <string name="november">November</string> <string name="october">Oktoober</string> <string name="passport_number">Passi number</string> <string name="phone">Telefoninumber</string> <string name="september">September</string> <string name="ssn">Isikukood</string> <string name="state_province">Maakond / vald</string> <string name="title">Pealkiri</string> <string name="zip_postal_code">Postiindeks</string> <string name="address">Aadress</string> <string name="expiration">Aegumine</string> <string name="show_website_icons">Kuva veebilehtede ikoone</string> <string name="show_website_icons_description">Kuva iga kirje krval leheklje ikooni.</string> <string name="icons_url">Ikoonide serveri URL</string> <string name="autofill_with_bitwarden">Tida Bitwardeniga</string> <string name="vault_is_locked">Hoidla on lukus</string> <string name="go_to_my_vault">Ava hoidla</string> <string name="collections">Kogumikud</string> <string name="no_items_collection">Selles kogumikus ei ole kirjeid.</string> <string name="no_items_folder">Selles kaustas ei ole kirjeid.</string> <string name="no_items_trash">Prgikast on thi.</string> <string name="autofill_accessibility_service">Juurdepsetavuse teenus</string> <string name="autofill_service_description">Bitwardeni automaattite teenus kasutab Androidi Autofill raamistikku. See aitab telefonis olevatesse rakendustesse sisestada kontoandmeid, krediitkaardi andmeid ja muud personaalset infot.</string> <string name="bitwarden_autofill_service_description">Kasuta Bitwardeni automaattite teenust, et sisestada teistesse rakendustesse kontoandmeid, krediitkaardi andmeid ja muud informatsiooni.</string> <string name="bitwarden_autofill_service_open_autofill_settings">Ava Automaattite seaded</string> <string name="face_id">Face ID</string> <string name="face_id_direction">Kasuta kinnitamiseks Face ID-d.</string> <string name="use_face_id_to_unlock">Kasuta lahtilukustamiseks Face ID-d</string> <string name="verify_face_id">Kinnita Face ID</string> <string name="windows_hello">Windows Hello</string> <string name="bitwarden_credential_provider_go_to_settings">We were unable to automatically open the Android credential provider settings menu for you. You can navigate to the credential provider settings menu manually from Android Settings &gt; System &gt; Passwords &amp; accounts &gt; Passwords, passkeys and data services.</string> <string name="bitwarden_autofill_go_to_settings">Meil ei nnestu Androidi sisestusabi seadeid avada. Vid selle ise avada, navigeerides Seaded &gt; Ssteem &gt; Keeled ja sisend &gt; Tpsemad &gt; Sisestusabi.</string> <string name="custom_field_name">Kohandatud vlja nimi</string> <string name="field_type_boolean">Boolean</string> <string name="field_type_hidden">Peidetud</string> <string name="field_type_linked">henduses</string> <string name="field_type_text">Tekst</string> <string name="new_custom_field">Uus kohandatud vli</string> <string name="select_type_field">Millist tpi kohandatud vlja soovid lisada?</string> <string name="remove">Eemalda</string> <string name="new_uri">Uus URI</string> <string name="uri_position">URI %1$s</string> <string name="base_domain">Baasdomeen</string> <string name="default_text">Vaike</string> <string name="exact">Tpne</string> <string name="host">Host</string> <string name="reg_ex">RegEx</string> <string name="starts_with">Algab</string> <string name="uri_match_detection">URI sobivuse tuvastamine</string> <string name="match_detection">Sobivuse tuvastamine</string> <string name="yes_and_save">Jah, ja salvesta</string> <string name="autofill_and_save">Tida ja salvesta</string> <string name="organization">Organisatsioon</string> <string name="hold_yubikey_near_top">Hoia oma Yubikey seadme laosa lhedal.</string> <string name="try_again">Proovi uuesti</string> <string name="yubi_key_instruction_ios">Jtkamiseks hoia oma YubiKey NEO seadme tagumise poole vastas.</string> <string name="bitwarden_autofill_accessibility_service_description2">Juurdepsetavuse teenus vib abiks olla olukordades, kus rakendused ei toeta standardset automaattite teenust.</string> <string name="date_password_updated">Parool on uuendatud</string> <string name="date_updated">Uuendatud</string> <string name="autofill_activated">Automaattide on aktiveeritud!</string> <string name="must_log_in_main_app_autofill">Pead enne Automaattite kasutamist Bitwardeni rakendusse sisse logima.</string> <string name="autofill_setup">Sinu kontoandmed on otse klaviatuurilt ligipsetavad. Saad nd kergemini ppides ja veebilehtedel sisse logida.</string> <string name="autofill_setup2">Soovitame teised Automaattite valikud Seadetest vlja llitada, kui sa neid enam ei kasuta.</string> <string name="bitwarden_autofill_description">Pse oma hoidlale otse klaviatuurilt ligi ning tida paroolivljad lihtsamini.</string> <string name="autofill_turn_on">Paroolide automaattite vimaldamiseks jrgi neid juhiseid:</string> <string name="autofill_turn_on1">1. Mine iOS \"Settings\" rakendusse</string> <string name="autofill_turn_on2">2. Vajuta \"Passwords &amp; Accounts\"</string> <string name="autofill_turn_on3">3. Vajuta \"AutoFill Passwords\"</string> <string name="autofill_turn_on4">4. Llita AutoFill sisse</string> <string name="autofill_turn_on5">5. Vali \"Bitwarden\"</string> <string name="password_autofill">Paroolide Automaatne titmine</string> <string name="bitwarden_autofill_alert2">Kige lihtsam viis uute kontoandmete sisestamiseks on kasutada Bitwardeni Automaattite lisatriista. Rohkem teavet selle kasutamise kohta leiad menst \"Seaded\".</string> <string name="invalid_email">Vigane e-posti aadress.</string> <string name="cards">Kaardid</string> <string name="identities">Identiteedid</string> <string name="logins">Kontod</string> <string name="secure_notes">Turvalised mrkmed</string> <string name="all_items">Kik kirjed</string> <string name="ur_is">URI-d</string> <string name="checking_password">Parooli kontrollimine...</string> <string name="check_password">Vaata, kas parool on lekkinud.</string> <string name="password_exposed">See parool on erinevates andmeleketes kokku %1$s korda lekkinud. Peaksid selle ra muutma.</string> <string name="password_safe">Seda parooli ei nnestu andmeleketest leida. Parooli edasi kasutamine peaks olema turvaline.</string> <string name="identity_name">Identiteedi nimi</string> <string name="value">Vrtus</string> <string name="password_history">Paroolide ajalugu</string> <string name="types">Tbid</string> <string name="no_passwords_to_list">Puuduvad paroolid, mida kuvada.</string> <string name="no_items_to_list">Puuduvad kirjed, mida kuvada.</string> <string name="search_collection">Otsi kogumikku</string> <string name="search_file_sends">Otsi failiga Sende</string> <string name="search_text_sends">Otsi tekstiga Sende</string> <string name="search_group">Otsi %1$s</string> <string name="type">Tp</string> <string name="move_down">Nihuta alla</string> <string name="move_up">Nihuta les</string> <string name="miscellaneous">Mitmesugust</string> <string name="ownership">Omanik</string> <string name="who_owns_this_item">Kes seda kirjet omab?</string> <string name="no_collections_to_list">Puuduvad kollektsioonid, mida kuvada.</string> <string name="moved_item_to_org">%1$s teisaldati %2$s\'sse.</string> <string name="item_shared">Kirje on jagatud.</string> <string name="select_one_collection">Pead valima vhemalt he kogumiku.</string> <string name="share">Jaga</string> <string name="share_item">Jaga kirjet</string> <string name="move_to_organization">Teisalda organisatsiooni</string> <string name="no_orgs_to_list">Puuduvad organisatsioonid, mida kuvada.</string> <string name="move_to_org_desc">Vali organisatsioon, kuhu soovid seda kirjet teisaldada. Teisaldamisega saab kirje omanikuks organisatsioon. Prast kirje teisaldamist ei ole sa enam selle otsene omanik.</string> <string name="number_of_words">Snade arv</string> <string name="passphrase">Paroolifraas</string> <string name="word_separator">Sna eraldaja</string> <string name="clear">Thjenda</string> <string name="generator">Genereerija</string> <string name="no_folders_to_list">Puuduvad kaustad, mida kuvada.</string> <string name="fingerprint_phrase">Srmejlje fraas</string> <string name="your_accounts_fingerprint">Konto srmejlje fraas</string> <string name="learn_org_confirmation">Bitwardeniga saad oma hoidla sisu teistega jagada, kasutades selleks organisatsiooni kontot. Kas soovid selle kohta lisateavet ja avada bitwarden.com veebilehe?</string> <string name="export_vault">Ekspordi hoidla</string> <string name="lock_now">Lukusta paroolihoidla</string> <string name="pin">PIN</string> <string name="unlock">Lukusta lahti</string> <string name="unlock_vault">Hoidla lahtilukustamine</string> <string name="thirty_minutes">30 minuti prast</string> <string name="set_pin_description">Mra Bitwardeni lahtilukustamiseks PIN kood. Rakendusest tielikult vlja logides nullitakse ka PIN koodi seaded.</string> <string name="logged_in_as_on">Sisse logitud kontoga %1$s lehel %2$s.</string> <string name="vault_locked_master_password">Hoidla on lukus. Jtkamiseks sisesta lemparool.</string> <string name="vault_locked_pin">Hoidla on lukus. Jtkamiseks sisesta PIN kood.</string> <string name="vault_locked_identity">Hoidla on lukus. Jtkamiseks kinnita oma identiteet.</string> <string name="dark">Tume</string> <string name="light">Hele</string> <string name="five_minutes">5 minuti prast</string> <string name="ten_seconds">10 sekundi prast</string> <string name="thirty_seconds">30 sekundi prast</string> <string name="twenty_seconds">20 sekundi prast</string> <string name="two_minutes">2 minuti prast</string> <string name="clear_clipboard">Likelaua puhastamine</string> <string name="clear_clipboard_description">Puhastab automaatselt likelauale kopeeritud sisu.</string> <string name="default_uri_match_detection">Vaike URI sobivuse tuvastamine</string> <string name="default_uri_match_detection_description">Vali vaikeviis, kuidas kirje ja URI-i sobivus tuvastatakse. Seda kasutatakse niteks siis, kui lehele ritatakse automaatselt andmeid sisestada.</string> <string name="theme">Kujundus</string> <string name="theme_description">Muuda rakenduse vrvikujundust.</string> <string name="theme_default">Vaikevrtus (ssteem)</string> <string name="default_dark_theme">Vaikimisi tume teema</string> <string name="copy_notes">Kopeeri mrkus</string> <string name="exit">Vlju</string> <string name="exit_confirmation">Soovid testi Bitwardeni sulgeda?</string> <string name="pin_require_master_password_restart">You you want to require unlocking with your master password when the application is restarted?</string> <string name="black">Must</string> <string name="nord">Nord</string> <string name="solarized_dark">Solarized tume</string> <string name="autofill_blocked_uris">Tida blokeeritud URId automaatselt</string> <string name="ask_to_add_login">Ksi \"Lisa konto andmed\"</string> <string name="ask_to_add_login_description">Pakub kontoandmete salvestamist, kui see on hoidlast puudu.</string> <string name="on_restart">pi taaskivitamisel</string> <string name="autofill_service_not_enabled">Automaattite teenus vimaldab teistes ppides Bitwardeni kirjetele hlpsasti ligi pseda. Paistab, et selles seadmes ei ole Bitwardeni Automaattite teenus sissellitatud. Saad selle sisse llitada menst \"Seaded\".</string> <string name="theme_applied_on_restart">Vlimuse muudatus rakendatakse pi taaskivitamisel.</string> <string name="capitalize">Suurtht</string> <string name="include_number">Lisa number</string> <string name="download">Laadi alla</string> <string name="shared">Jagatud</string> <string name="toggle_visibility">Nita sisu</string> <string name="login_expired">Sessioon on aegunud.</string> <string name="biometrics_direction">Kinnita biomeetriaga.</string> <string name="biometrics">biomeetriaga</string> <string name="use_biometrics_to_unlock">Lukusta lahti biomeetriaga</string> <string name="accessibility_overlay_permission_alert">Bitwarden vajab thelepanu! Vaata Seaded - Juurdepsetavuse teenuse seaded.</string> <string name="bitwarden_autofill_service_overlay_permission">3. Ava Androidi rakenduste seaded. Leia les Bitwarden, liigu sektsiooni \"Tpsemalt\" ning vajuta \"Kuva peal\" valikule ning llita see sisse.</string> <string name="overlay_permission">igus</string> <string name="bitwarden_autofill_service_open_overlay_permission_settings">Ava Kuva peal seaded</string> <string name="bitwarden_autofill_service_step3">3. Ava Androidi rakenduste seaded. Leia les Bitwarden, liigu sektsiooni \"Tpsemalt\" ning vajuta \"Kuva peal\" valikule ning llita see sisse.</string> <string name="denied">Keelatud</string> <string name="granted">Lubatud</string> <string name="file_format">Failivorming</string> <string name="export_vault_master_password_description">Hoidlas olevate andmete eksportimiseks on vajalik lemparooli sisestamine.</string> <string name="send_verification_code_to_email">Saada kinnituskood oma e-postile</string> <string name="code_sent">Kood on saadetud!</string> <string name="confirm_your_identity">Jtkamiseks kinnita oma identiteet.</string> <string name="export_vault_warning">Eksporditav fail sisaldab hoidla sisu, mis on krpteeringuta. Seda faili ei tohiks kaua kidelda ning mitte mingil juhul ebaturvaliselt saata (niteks e-postiga). Kustuta see koheselt prast kasutamist.</string> <string name="export_vault_file_pw_protect_info">This file export will be password protected and require the file password to decrypt.</string> <string name="export_vault_confirmation_title">Hoidla eksportimise kinnitamine</string> <string name="warning">Hoiatus</string> <string name="export_vault_failure">Hoidla eksportimisel ilmnes trge. Probleemi jtkumisel teosta eksportimine veebihoidla kaudu.</string> <string name="export_vault_success">Hoidla on edukalt eksporditud</string> <string name="clone">Klooni</string> <string name="password_generator_policy_in_effect">Organisatsiooni seaded mjutavad parooli genereerija stteid</string> <string name="open">Ava</string> <string name="unable_to_save_attachment">Manuse salvestamisel ilmnes trge. Probleemi jtkumisel lisa fail lbi veebihoidla.</string> <string name="save_attachment_success">Manus on edukalt lisatud</string> <string name="autofill_tile_accessibility_required">Palun llita \"Automaattite juurdepsetavuse teenus\" Bitwardeni seadetest sisse, et Automaattite kasti kasutada.</string> <string name="autofill_tile_uri_not_found">Paroolivlju ei tuvastatud</string> <string name="soft_deleting">Prgikasti teisaldamine...</string> <string name="item_soft_deleted">Kirje on prgikasti saadetud.</string> <string name="restore">Taasta</string> <string name="restoring">Taastamine...</string> <string name="item_restored">Kirje on taastatud.</string> <string name="trash">Prgikast</string> <string name="search_trash">Otsi prgikastist</string> <string name="do_you_really_want_to_permanently_delete_cipher">Oled kindel, et soovid kirje(d) jdavalt kustutada? Seda ei saa tagasi vtta.</string> <string name="do_you_really_want_to_restore_cipher">Oled kindel, et soovid selle kirje taastada?</string> <string name="do_you_really_want_to_soft_delete_cipher">Oled kindel, et soovid kirje(d) prgikasti teisaldada?</string> <string name="account_biometric_invalidated">Biomeetriaga lahtilukustamine on keelatud. Oodatakse lemparooli sisestamist.</string> <string name="account_biometric_invalidated_extension">Automaattite ja biomeetrilise avamise kasutamine on keelatud. Oodatakse lemprooli sisestamist.</string> <string name="enable_sync_on_refresh">Luba allatmbel snkroniseerimine</string> <string name="enable_sync_on_refresh_description">Hoidla snkroonimine ekraanil allatmbamisel.</string> <string name="log_in_sso">Enterprise Single Sign-On</string> <string name="log_in_sso_summary">Kiire sisselogimine lbi organisatsiooni hekordne sisselogimise portaali. Jtkamiseks sisesta organisatsiooni identifikaator.</string> <string name="org_identifier">Organisatsiooni identifikaator</string> <string name="login_sso_error">Hetkel pole SSO-ga sisselogimine vimalik</string> <string name="set_master_password">Mra lemparool</string> <string name="set_master_password_summary">SSO-ga sisselogimise kinnitamiseks tuleb mrata lemparool. See kaitseb sinu hoidlat ning vimaldab sellele ligi pseda.</string> <string name="master_password_policy_in_effect">ks vi enam organisatsiooni eeskirja nuavad, et lemparool vastaks nendele nudmistele:</string> <string name="policy_in_effect_min_complexity">Minimaalne keerulisuse skoor %1$s</string> <string name="policy_in_effect_min_length">Minimaalne pikkus %1$s</string> <string name="policy_in_effect_uppercase">Sisaldab ht vi enamat suurthte</string> <string name="policy_in_effect_lowercase">Sisaldab ht vi enamat vikethte</string> <string name="policy_in_effect_numbers">Sisaldab ht vi rohkem numbreid</string> <string name="policy_in_effect_special">Sisaldab ht vi enamat jrgnevatest mrkidest: %1$s</string> <string name="master_password_policy_validation_title">Parool on vale</string> <string name="master_password_policy_validation_message">Parool ei vasta organisatsiooni nuetele. Vaata see le ning proovi uuesti.</string> <string name="loading">Laadimine</string> <string name="accept_policies">Nupu aktiveerimisel nustud jrgnevaga:</string> <string name="accept_policies_error">Kasutustingimuste ja Privaatsuspoliitikaga pole nustutud.</string> <string name="terms_of_service">Kasutustingimused</string> <string name="privacy_policy">Privaatsuspoliitika</string> <string name="accessibility_draw_over_permission_alert">Bitwarden vajab thelepanu! Vaata Bitwardeni mend Seaded -&gt; Automaattite teenused ning luba valik Kuva peal</string> <string name="passkey_management">Passkey management</string> <string name="autofill_services">Automaattite teenused</string> <string name="inline_autofill">Kasuta klaviatuurilest sisestust</string> <string name="inline_autofill_description">Kasuta klaviatuurilest sisestust, kui sinu klaviatuur seda toetab. Kui klaviatuur seda funktsiooni ei toeta (vi see on vljallitatud), kasutatakse tavalist Automaattite meetodit.</string> <string name="accessibility">Kasuta juurdepsetavust</string> <string name="accessibility_description">Kasuta rakendustes ja veebis andmete sisestamiseks Bitwardeni juurdepsetavuse teenust. Aktiveerimisel kuvatakse logimisvljadele vajutamisel vike hpikaken.</string> <string name="accessibility_description2">Kasuta Bitwardeni juurdepsetavuse teenust, et rakendustes ja veebis kontoandmeid sisestada. (Vajalik on valiku Kuva peal sissellitamine).</string> <string name="accessibility_description3">Kasuta Bitwardeni juurdepsetavuse teenust, ngemaks Automaattite valikute listi ja/vi selleks, et nidata hpikakent, kasutades Kuva peal (kui see on sisse llitatud).</string> <string name="accessibility_description4">Vajalik Automaattite valikute listi ngemiseks ning selleks, et toetada Automaattite teenust lbi valiku Kuva peal (kui see on sisse llitatud).</string> <string name="draw_over">Kasuta Kuva peal</string> <string name="draw_over_description">Sissellitatuna lubatakse Bitwardeni juurdepsetavuse teenusel kuvada hpikakent (kui valitud on sisselogimise vli).</string> <string name="draw_over_description2">Sissellitatuna lubatakse Bitwardeni juurdepsetavuse teenusel kuvada hpikakent (kui valitud on sisselogimise vli). See aitab kontoandmeid lihtsamini sisestada.</string> <string name="draw_over_description3">Sissellitatuna kuvatakse hpikakent, et vimaldada sisselogimist vanemates ppides, mis ei toeta Androidi Autofill raamistikku.</string> <string name="personal_ownership_submit_error">Ettevtte poliitika tttu ei saa sa andmeid oma personaalsesse Hoidlasse salvestada. Vali Omanikuks organisatsioon ja vali mni saadavaolevatest Kogumikest.</string> <string name="personal_ownership_policy_in_effect">Organisatsiooni poliitika piirab kirje omaniku valikuvimalusi.</string> <string name="send">Send</string> <string name="all_sends">Kik Sendid</string> <string name="sends">Sendid</string> <string name="name_info">Sisesta Sendi nimi (kohustuslik).</string> <string name="text">Tekst</string> <string name="type_text">Tekst</string> <string name="type_text_info">Tekst, mida soovid saata.</string> <string name="hide_text_by_default">Sendi avamisel peida tekst automaatselt</string> <string name="type_file">Fail</string> <string name="type_file_info">Fail, mida soovid saata.</string> <string name="file_type_is_selected">Failitp on valitud.</string> <string name="file_type_is_not_selected">Failitp pole valitud. Vajuta, et valida.</string> <string name="text_type_is_selected">Tekstitp on valitud.</string> <string name="text_type_is_not_selected">Tekstitp pole valitud. Vajuta, et valida.</string> <string name="deletion_date">Kustutamise kuupev</string> <string name="deletion_time">Kustutamise aeg</string> <string name="deletion_date_info">Send kustutatakse mratud kuupeval ja kellaajal jdavalt.</string> <string name="pending_delete">Kustutamise ootel</string> <string name="expiration_date">Aegumiskuupev</string> <string name="expiration_time">Aegumise kellaaeg</string> <string name="expiration_date_info">Selle valimisel ei pse sellele Sendile enam prast mratud kuupeva ligi.</string> <string name="expired">Aegunud</string> <string name="maximum_access_count">Maksimaalne ligipsude arv</string> <string name="maximum_access_count_info">Selle valimisel ei saa kasutajad prast maksimaalse ligipsude arvu saavutamist sellele Sendile enam ligi.</string> <string name="maximum_access_count_reached">Maksimaalne ligipsude arv on saavutatud</string> <string name="current_access_count">Hetkeline ligipsude arv</string> <string name="new_password">Uus Parool</string> <string name="password_info">Soovi korral nua parooli, millega Sendile ligi pseb.</string> <string name="remove_password">Eemalda parool</string> <string name="are_you_sure_remove_send_password">Soovid kindlasti selle parooli eemaldada?</string> <string name="removing_send_password">Parooli eemaldamine</string> <string name="send_password_removed">Parool on eemaldatud</string> <string name="notes_info">Privaatne mrkus selle Sendi kohta.</string> <string name="disable_send">Keela see Send, et keegi ei pseks sellele ligi.</string> <string name="no_sends">Kontol pole htegi Sendi.</string> <string name="add_a_send">Lisa Send</string> <string name="copy_link">Kopeeri link</string> <string name="share_link">Jaga linki</string> <string name="send_link">Sendi link</string> <string name="search_sends">Otsi Sende</string> <string name="edit_send">Muuda Sendi</string> <string name="add_send">Lisa Send</string> <string name="are_you_sure_delete_send">Soovid testi selle Sendi kustutada?</string> <string name="send_deleted">Send on kustutatud.</string> <string name="send_updated">Send on uuendatud.</string> <string name="new_send_created">Uus Send on loodud.</string> <string name="one_day">1 pev</string> <string name="two_days">2 peva</string> <string name="three_days">3 peva</string> <string name="seven_days">7 peva</string> <string name="thirty_days">30 peva</string> <string name="custom">Kohandatud</string> <string name="share_on_save">Jaga seda Sendi salvestamise ajal.</string> <string name="send_disabled_warning">Ettevtte poliitika kohaselt saad ainult olemasolevat Sendi kustutada.</string> <string name="about_send">Rohkem infot</string> <string name="hide_email">ra nita saajatele minu e-posti aadressi.</string> <string name="send_options_policy_in_effect">Organisatsiooni seaded mjutavad sinu Sendi stteid.</string> <string name="send_file_premium_required">Tasuta kontoga on vimalik saata ainult tekste. Failide saatmiseks on vajalik omada tasulist kontot.</string> <string name="send_file_email_verification_required">Sendi kasutamiseks pead kinnitama oma e-posti aadressi. Saad seda teha veebihoidlas.</string> <string name="password_prompt">Nutav on lemparool</string> <string name="password_confirmation">lemparooli kinnitamine</string> <string name="password_confirmation_desc">See tegevus on kaitstud. Jtkamiseks sisesta oma lemparool.</string> <string name="captcha_required">Captcha kinnitamine</string> <string name="captcha_failed">Captcha kinnitamine nurjus. Proovi uuesti.</string> <string name="updated_master_password">Uuendas lemparooli</string> <string name="update_master_password">lemparooli uuendamine</string> <string name="update_master_password_warning">Organisatsiooni administraator muutis hiljuti sinu lemparooli. Hoidlale ligi psemiseks pead lemparooli uuendama. Jtkates logitakse sind kimasolevast sessioonist vlja, misjrel nutakse uuesti sisselogimist. Teistes seadmetes olevad aktiivsed sessioonid jvad aktiivseks kuni heks tunniks.</string> <string name="updating_password">Parooli uuendamine</string> <string name="update_password_error">Parooli uuendamine pole hetkel vimalik</string> <string name="remove_master_password">Eemalda lemparool</string> <string name="remove_master_password_warning">%1$s kasutab SSO-d koos kliendi poolt hallatava krpteeringuga. Jtkamisel eemaldatakse sinu kontolt lemparool ning nutakse sisselogimist lbi SSO.</string> <string name="remove_master_password_warning2">Kui sa ei soovi oma lemparooli eemaldada, saad sellest organisatsioonist lahkuda.</string> <string name="leave_organization">Lahku organisatsioonist</string> <string name="leave_organization_name">Lahkud %1$s-st?</string> <string name="fido2_title">FIDO2 WebAuthn</string> <string name="fido2_instruction">Jtkamiseks pane valmis oma FIDO2 WebAuthn vimekusega turvavti. Seejrel kliki \"WebAuthn kinnitamine\" ja jrgi juhiseid.</string> <string name="fido2_desc">FIDO2 WebAuthn kinnitamiseks pead kasutama vlist turvavtit.</string> <string name="fido2_authenticate_web_authn">WebAuthn kinnitamine</string> <string name="fido2_return_to_app">Tagasi rakendusse</string> <string name="fido2_check_browser">Veendu, et sinu brauser toetab WebAuthn-i ja proovi uuesti.</string> <string name="reset_password_auto_enroll_invite_warning">Selle organisatsiooni poliitika kohaselt liidetakse sind automaatseltlemparooli lhtestamise funktsiooniga. Liitumisel saavad organisatsiooniadministraatorid sinu lemparooli muuta.</string> <string name="vault_timeout_policy_in_effect">Organisatsiooni poliitikad mjutavad sinu hoidla ajalppu. Maksimaalne lubatud hoidla ajalpp on %1$s tund(i) ja %2$s minut(it).</string> <string name="vault_timeout_policy_with_action_in_effect">Organisatsiooni poliitikad mjutavad sinu hoidla ajalppu. Maksimaalne lubatud hoidla ajalpp on %1$s tund(i) ja %2$s minut(it). Sinu hoidla ajalpu tegevus on %3$s.</string> <string name="vault_timeout_action_policy_in_effect">Organisatsiooni poliitika on sinu hoidla ajalpu tegevuse seadistanud %1$s peale.</string> <string name="vault_timeout_to_large">Valitud hoidla ajalpp ei ole organisatsiooni poolt mratud reeglitega koosklas.</string> <string name="disable_personal_vault_export_policy_in_effect">ks vi enam organisatsiooni poliitikat ei vimalda sul oma personaalset hoidlat eksportida.</string> <string name="add_account">Lisa konto</string> <string name="account_unlocked">Lukustamata</string> <string name="account_locked">Lukustatud</string> <string name="account_logged_out">Vlja logitud</string> <string name="account_switched_automatically">Vahetati jrgmise saadaoleva konto peale</string> <string name="account_locked_successfully">Kasutajakonto on lukus</string> <string name="account_logged_out_successfully">Konto on edukalt vlja logitud</string> <string name="account_removed_successfully">Konto on edukalt eemaldatud</string> <string name="delete_account">Kustuta konto</string> <string name="deleting_your_account_is_permanent">Konto kustutamist ei saa ennistada</string> <string name="delete_account_explanation">Konto koos kikide andmetega kustutatakse ning seda ei saa taastada. Oled kindel, et soovid jtkata?</string> <string name="deleting_your_account">Konto kustutamine</string> <string name="your_account_has_been_permanently_deleted">Sinu konto on lplikult kustutatud</string> <string name="invalid_verification_code">Vale kinnituskood</string> <string name="request_otp">Ksi hekordset parooli</string> <string name="send_code">Saada kood</string> <string name="sending">Saatmine</string> <string name="copy_send_link_on_save">Kopeeri Sendi link ja salvesta</string> <string name="sending_code">Koodi saatmine</string> <string name="verifying">Tuvastamine</string> <string name="resend_code">Saada kood uuesti</string> <string name="a_verification_code_was_sent_to_your_email">Kinnituskood on saadetud e-posti aadressile.</string> <string name=your_sha256_hashl_please_try_again">Kinnituskoodi saatmisel ilmnes trge. Palun proovi uuesti</string> <string name="enter_the_verification_code_that_was_sent_to_your_email">Kinnituskood on edukalt e-posti aadressile saadetud.</string> <string name="submit_crash_logs">Saada krahhiaruandeid</string> <string name="submit_crash_logs_description">Aita Bitwardenil rakendust paremaks muuta, teavitades programmi trgetest.</string> <string name="options_expanded">Valikud on avatud. Vajuta, et need peita.</string> <string name="options_collapsed">Valikud on peidetud. Vajuta, et need kuvada.</string> <string name="uppercase_ato_z">Suurthed (A-Z)</string> <string name="lowercase_ato_z">Vikethed (A-Z)</string> <string name="numbers_zero_to_nine">Numbrid (0-9)</string> <string name="special_characters">Erimrgid (!@#$%^&amp;*)</string> <string name="tap_to_go_back">Vajuta tagasi minemiseks</string> <string name="password_is_visible_tap_to_hide">Salasna on nhtav. Vajuta, et see peita.</string> <string name="password_is_not_visible_tap_to_show">Salasna ei ole nhtav. Vajuta, et seda kuvada.</string> <string name="filter_by_vault">Sorteeri kirjeid hoidla alusel</string> <string name="all_vaults">Kik hoidlad</string> <string name="vaults">Hoidlad</string> <string name="vault_filter_description">Hoidla: %1$s</string> <string name="all">Kik</string> <string name="totp">TOTP</string> <string name="verification_codes">Kinnituskoodid</string> <string name="premium_subscription_required">Vajalik on Premium versioon</string> <string name="cannot_add_authenticator_key">Ei suuda autentimise vtit lisada?</string> <string name="scan_qr_code">Skanneeri QR kood</string> <string name="cannot_scan_qr_code">Ei suuda QR koodi skaneerida?</string> <string name="authenticator_key_scanner">Autentimise vti</string> <string name="enter_key_manually">Sisesta kood ksitsi</string> <string name="add_totp">Lisa TOTP</string> <string name="setup_totp">Seadista TOTP</string> <string name="once_the_key_is_successfully_entered">Prast vtme edukat sisestamist vajuta \"Lisa TOTP\", et see vti turvaliselt talletada</string> <string name="never_lock_warning">Kik, kes psevad sinu telefoni, saavad valikuga \"Mitte kunagi\" ka sinu hoidlat vaadata. Veendu, et seda testi teha soovid.</string> <string name="environment_page_urls_error">ks vi enam sisestatud URLi on valed. Palun kontrolli neid ja proovi seejrel uuesti.</string> <string name="generic_error_message">Pringu ttlemine ebannestus. Palun proovi uuesti vi vta meiega hendust.</string> <string name="allow_screen_capture">Luba ekraanikuva salvestamine</string> <string name="are_you_sure_you_want_to_enable_screen_capture">Oled kindel, et soovid lubada ekraanikuva salvestamist?</string> <string name="log_in_requested">Sisselogimise pring</string> <string name="are_you_trying_to_log_in">Oled sisse logimas?</string> <string name="log_in_attempt_by_x_on_y">Sisselogimise pring kontolt %1$s kuupeval %2$s</string> <string name="device_type">Seadme tp</string> <string name="ip_address">IP aadress</string> <string name="time">Aeg</string> <string name="near">Asukoht</string> <string name="confirm_log_in">Kinnita sisselogimine</string> <string name="deny_log_in">Thista sisselogimine</string> <string name="just_now">Just praegu</string> <string name="x_minutes_ago">%1$s minuti eest</string> <string name="log_in_accepted">Sisselogimine on kinnitatud</string> <string name="log_in_denied">Sisselogimine on thistatud</string> <string name="approve_login_requests">Sisselogimise pringute kinnitamine</string> <string name=your_sha256_hashs">Kasuta seda seadet, et kinnitada teistes seadmetes tehtavad sisselogimised.</string> <string name="allow_notifications">Luba teavitused</string> <string name="receive_push_notifications_for_new_login_requests">Saa uute sisselogimise pringute kohta teavitusi</string> <string name="no_thanks">Ei soovi</string> <string name="confim_log_in_attemp_for_x">Kinnita sisselogimise katse kontole %1$s</string> <string name="all_notifications">Kik teavitused</string> <string name="password_type">Parooli tp</string> <string name="what_would_you_like_to_generate">Mida sa soovid genereerida?</string> <string name="username_type">Kasutajanime tp</string> <string name="plus_addressed_email">Plussiga e-posti aadress</string> <string name="catch_all_email">Kogumisaadress</string> <string name="forwarded_email_alias">Edastav e-posti alias</string> <string name="random_word">Juhuslik sna</string> <string name="email_required_parenthesis">E-post (vajalik)</string> <string name="domain_name_required_parenthesis">Domeeni nimi (vajalik)</string> <string name="api_key_required_parenthesis">API vti (vajalik)</string> <string name="service">Teenus</string> <string name="addy_io">addy.io</string> <string name="firefox_relay">Firefox Relay</string> <string name="simple_login">SimpleLogin</string> <string name="duck_duck_go">DuckDuckGo</string> <string name="fastmail">Fastmail</string> <string name="forward_email">ForwardEmail</string> <string name="api_access_token">API ligipsu vti</string> <string name="are_you_sure_you_want_to_overwrite_the_current_username">Oled kindel, et soovid praegust kasutajanime le kirjutada?</string> <string name="generate_username">Genereeri kasutajanimi</string> <string name="email_type">E-posti tp</string> <string name="website_required">Veebileht (vajalik)</string> <string name="unknown_x_error_message">Tekkis tundmatu trge %1$s.</string> <string name="plus_addressed_email_description">Kasuta e-posti teenuspakkuja alamadressimise vimalusi</string> <string name="catch_all_email_description">Kasuta domeeniphist kogumisaadressi.</string> <string name="forwarded_email_description">Genereeri e-posti alias, kasutades selleks vlist teenuspakkujat.</string> <string name="random">Juhuslik</string> <string name="connect_to_watch">henda kellaga</string> <string name="accessibility_service_disclosure">Accessibility Service Disclosure</string> <string name="accessibility_disclosure_text">Bitwarden uses the Accessibility Service to search for login fields in apps and websites, then establish the appropriate field IDs for entering a username &amp; password when a match for the app or site is found. We do not store any of the information presented to us by the service, nor do we make any attempt to control any on-screen elements beyond text entry of credentials.</string> <string name="accept">Nustu</string> <string name="decline">Keeldu</string> <string name="login_request_has_already_expired">Sisselogimise pring on juba aegunud.</string> <string name="login_attempt_from_x_do_you_want_to_switch_to_this_account">Sisselogimise pring: %1$s Soovid selle konto peale llituda?</string> <string name="new_around_here">Oled siin uus?</string> <string name="get_master_passwordword_hint">Tuleta lemparooli vihjega meelde</string> <string name="logging_in_as_x_on_y">Sisselogimas kui %1$s lehel %2$s</string> <string name="not_you">Pole sina?</string> <string name="log_in_with_master_password">Logi sisse lemparooliga</string> <string name="log_in_with_another_device">Logi sisse lbi teise seadme</string> <string name="log_in_initiated">Sisselogimine on kivitatud</string> <string name="a_notification_has_been_sent_to_your_device">Sinu seadmesse saadeti teavitus.</string> <string name=your_sha256_hashse_matches_on_the_other_device">Veendu, et hoidla on lahti lukustatud ja srmejlje fraasid seadmete vahel htivad.</string> <string name="resend_notification">Saada mrguanne uuesti</string> <string name="need_another_option">Soovid teist valikut kasutada?</string> <string name="view_all_login_options">Vaata kiki valikuid</string> <string name="this_request_is_no_longer_valid">See pring ei ole enam kehtiv</string> <string name="pending_log_in_requests">Ootel sisselogimise taotlused</string> <string name="decline_all_requests">Thista kik taotlused</string> <string name="are_you_sure_you_want_to_decline_all_pending_log_in_requests">Oled kindel, et soovid thistada kik pooleliolevad sisselogimise taotlused?</string> <string name="requests_declined">Taotlused on tagasi lkatud</string> <string name="no_pending_requests">Ootel taotlused puuduvad</string> <string name="enable_camer_permission_to_use_the_scanner">Kaamera kasutamiseks luba ligips kaamerale</string> <string name="language">Keel</string> <string name="language_change_x_description">Rakenduse keel muudeti %1$s-ks. Muudatuste rakendamiseks taaskivita Bitwarden</string> <string name="language_change_requires_app_restart">Keele muutmiseks on vajalik rakenduse taaskivitamine</string> <string name="default_system">Vaikevrtus (ssteem)</string> <string name="important">Thtis</string> <string name=your_sha256_hashacters_minimum">lemparooli ei saa kuidagi taastada! Nutud on vhemalt %1$s themrki.</string> <string name="weak_master_password">Nrk lemparool</string> <string name=your_sha256_hashccount">Tuvastati nrk lemparool. Kasuta konto paremaks turvamiseks tugevamat parooli. Oled kindel, et soovid nrga parooliga jtkata?</string> <string name="weak">Nrk</string> <string name="good">Hea</string> <string name="strong">Tugev</string> <string name="check_known_data_breaches_for_this_password">Otsi seda parooli teadaolevatest andmeleketest</string> <string name="exposed_master_password">lemparool on haavatav</string> <string name="password_found_in_a_data_breach_alert_description">lemparool on varasemalt lekkinud. Kasuta konto kaitsmiseks unikaalset parooli. Oled kindel, et soovid kasutada varem lekkinud parooli?</string> <string name="weak_and_exposed_master_password">Nrk ja haavatav lemparool</string> <string name=your_sha256_hashption">Tuvastati nrk ning andmelekkes lekkinud lemparool. Kasuta konto paremaks turvamiseks tugevamat parooli. Oled kindel, et soovid nrga parooliga jtkata?</string> <string name="organization_sso_identifier_required">Nutud on organisatsiooni SSO identifikaator.</string> <string name="add_the_key_to_an_existing_or_new_item">Lisa vti olemasolevale vi uuele kirjele</string> <string name="there_are_no_items_in_your_vault_that_match_x">Hoidlas puuduvad kirjed, mis sobituksid snaga \"%1$s\"</string> <string name="search_for_an_item_or_add_a_new_item">Otsi kirjet vi lisa uus kirje</string> <string name="there_are_no_items_that_match_the_search">Otsingusnale ei vasta kirjeid</string> <string name="us">USA</string> <string name="eu">EL</string> <string name="self_hosted">Enda majutatud</string> <string name="data_region">Andmete salvestamise piirkond</string> <string name="region">Piirkond</string> <string name="update_weak_master_password_warning">Sinu lemparool ei vasta hele vi rohkemale organisatsiooni poolt seatud poliitikale. Hoidlale ligipsemiseks pead oma lemaprooli uuendama. Jtkamisel logitakse sind praegusest sessioonist vlja, mistttu pead uuesti sisse logima. Teistes seadmetes olevad aktiivsed sessioonid aeguvad umbes he tunni jooksul.</string> <string name="current_master_password">Praegune lemparool</string> <string name="logged_in">Logged in!</string> <string name="approve_with_my_other_device">Approve with my other device</string> <string name="request_admin_approval">Request admin approval</string> <string name="approve_with_master_password">Approve with master password</string> <string name="turn_off_using_public_device">Turn off using a public device</string> <string name="remember_this_device">Remember this device</string> <string name="passkey">Psukood</string> <string name="passkeys">Psukoodid</string> <string name="application">Rakendus</string> <string name=your_sha256_hashthe_passkey">Psukoodi rakenduse muutmine ei ole vimalik, sest see muudaks psukoodi mitte-ttavaks</string> <string name="passkey_will_not_be_copied">Psukoodi ei kopeerita</string> <string name=your_sha256_hash_continue_cloning_this_item">Psukoodi ei kopeerita kloonitud kirjele. Oled kindel, et soovid jtkata?</string> <string name="copy_application">Kopeeri rakendus</string> <string name="available_for_two_step_login">Saadaval kaheastmelise kinnitamise jaoks</string> <string name="master_password_re_prompt_help">Master password re-prompt help</string> <string name=your_sha256_hashmemory_settings_to_resolve">Unlocking may fail due to insufficient memory. Decrease your KDF memory settings or set up biometric unlock to resolve.</string> <string name="invalid_api_key">Vigane API vti</string> <string name="invalid_api_token">Vigane API token</string> <string name="admin_approval_requested">Admin approval requested</string> <string name="your_request_has_been_sent_to_your_admin">Your request has been sent to your admin.</string> <string name="you_will_be_notified_once_approved">You will be notified once approved.</string> <string name="trouble_logging_in">Trouble logging in?</string> <string name="logging_in_as_x">Logging in as %1$s</string> <string name="vault_timeout_action_changed_to_log_out">Vault timeout action changed to log out</string> <string name="block_auto_fill">Automaatse titmise keelamine</string> <string name="auto_fill_will_not_be_offered_for_these_ur_is">Automaattitmist ei pakuta nende URId-e puhul.</string> <string name="new_blocked_uri">Uus blokeeritud URI</string> <string name="uri_saved">URI salvestatud</string> <string name="invalid_format_use_https_http_or_android_app">Vale vorming. Kasuta path_to_url path_to_url vi androidapp://</string> <string name="edit_uri">Muuda URI</string> <string name="enter_uri">Sisesta URI</string> <string name="format_x_separate_multiple_ur_is_with_a_comma">Vorming: %1$s. Eralda mitu URI-t komadega.</string> <string name="format_x">Vorming: %1$s</string> <string name="invalid_uri">Vale URI</string> <string name="uri_removed">URI eemaldatud</string> <string name="there_are_no_blocked_ur_is">Puuduvad keelatud URI-d</string> <string name="the_urix_is_already_blocked">URI %1$s on juba keelatud</string> <string name="cannot_edit_multiple_ur_is_at_once">Mitme URI korraga muutmine ei toiminud</string> <string name="login_approved">Login approved</string> <string name=your_sha256_hashen_app_need_another_option">Log in with device must be set up in the settings of the Bitwarden app. Need another option?</string> <string name="log_in_with_device">Log in with device</string> <string name="logging_in_on">Sisselogimas kui</string> <string name="vault">Hoidla</string> <string name="appearance">Vlimus</string> <string name="account_security">Konto turvalisus</string> <string name="bitwarden_help_center">Bitwardeni abikeskus</string> <string name="contact_bitwarden_support">Vta Bitwardeniga hendust</string> <string name="copy_app_information">Kopeeri info</string> <string name="sync_now">Snkroniseeri kohe</string> <string name="unlock_options">Unlock options</string> <string name="session_timeout">Sessiooni ajalpp</string> <string name="session_timeout_action">Session timeout action</string> <string name="account_fingerprint_phrase">Account fingerprint phrase</string> <string name="one_hour_and_one_minute">One hour and one minute</string> <string name="one_hour_and_x_minute">One hour and %1$s minutes</string> <string name="x_hours_and_one_minute">%1$s hours and one minute</string> <string name="x_hours_and_y_minutes">%1$s hours and %2$s minutes</string> <string name="x_hours">%1$s hours</string> <string name="passkey_management_explanation_long">Use Bitwarden to save new passkeys and log in with passkeys stored in your vault.</string> <string name="autofill_services_explanation_long">The Android Autofill Framework is used to assist in filling login information into other apps on your device.</string> <string name="use_inline_autofill_explanation_long">Use inline autofill if your selected keyboard supports it. Otherwise, use the default overlay.</string> <string name="additional_options">Additional options</string> <string name="continue_to_web_app">Continue to web app?</string> <string name="continue_to_x">Continue to %1$s?</string> <string name="continue_to_help_center">Continue to Help center?</string> <string name="continue_to_contact_support">Continue to contact support?</string> <string name="continue_to_privacy_policy">Continue to privacy policy?</string> <string name="continue_to_app_store">Continue to app store?</string> <string name="continue_to_device_settings">Continue to device Settings?</string> <string name="two_step_login_description_long">Make your account more secure by setting up two-step login in the Bitwarden web app.</string> <string name="change_master_password_description_long">You can change your master password on the Bitwarden web app.</string> <string name="you_can_import_data_to_your_vault_on_x">You can import data to your vault on %1$s.</string> <string name="learn_more_about_how_to_use_bitwarden_on_the_help_center">Learn more about how to use Bitwarden on the Help center.</string> <string name="contact_support_description_long">Cant find what you are looking for? Reach out to Bitwarden support on bitwarden.com.</string> <string name="privacy_policy_description_long">Check out our privacy policy on bitwarden.com.</string> <string name="explore_more_features_of_your_bitwarden_account_on_the_web_app">Explore more features of your Bitwarden account on the web app.</string> <string name="learn_about_organizations_description_long">Bitwarden allows you to share your vault items with others by using an organization. Learn more on the bitwarden.com website.</string> <string name="rate_app_description_long">Help others find out if Bitwarden is right for them. Visit the app store and leave a rating now.</string> <string name="default_dark_theme_description_long">Choose the dark theme to use when your devices dark mode is in use</string> <string name="created_xy">Created %1$s, %2$s</string> <string name="too_many_attempts">Too many attempts</string> <string name="account_logged_out_biometric_exceeded">Account logged out.</string> <string name=your_sha256_hasha_master_password">Your organization permissions were updated, requiring you to set a master password.</string> <string name="your_organization_requires_you_to_set_a_master_password">Your organization requires you to set a master password.</string> <string name="set_up_an_unlock_option_to_change_your_vault_timeout_action">Set up an unlock option to change your vault timeout action.</string> <string name="choose_a_login_to_save_this_passkey_to">Choose a login to save this passkey to</string> <string name="save_passkey_as_new_login">Save passkey as new login</string> <string name="save_passkey">Save passkey</string> <string name="passkeys_for_x">Passkeys for %1$s</string> <string name="passwords_for_x">Passwords for %1$s</string> <string name="overwrite_passkey">Overwrite passkey?</string> <string name=your_sha256_hasherwrite_the_current_passkey">This item already contains a passkey. Are you sure you want to overwrite the current passkey?</string> <string name="duo_two_step_login_is_required_for_your_account">Duo two-step login is required for your account.</string> <string name="follow_the_steps_from_duo_to_finish_logging_in">Follow the steps from Duo to finish logging in.</string> <string name="launch_duo">Launch Duo</string> <string name="verification_required_by_x">Verification required by %1$s</string> <string name=your_sha256_hash_bitwarden_to_continue">Verification required for this action. Set up an unlock method in Bitwarden to continue.</string> <string name="error_creating_passkey">Error creating passkey</string> <string name="error_reading_passkey">Error reading passkey</string> <string name="there_was_a_problem_creating_a_passkey_for_x_try_again_later">There was a problem creating a passkey for %1$s. Try again later.</string> <string name="there_was_a_problem_reading_a_passkey_for_x_try_again_later">There was a problem reading your passkey for %1$s. Try again later.</string> <string name="verifying_identity_ellipsis">Verifying identity...</string> <string name="passwords">Passwords</string> <string name="unknown_account">Unknown account</string> <string name="set_up_autofill">Set up auto-fill</string> <string name="get_instant_access_to_your_passwords_and_passkeys">Get instant access to your passwords and passkeys!</string> <string name="set_up_auto_fill_description_long">To set up password auto-fill and passkey management, set Bitwarden as your preferred provider in the iOS Settings.</string> <string name="first_dot_go_to_your_device_settings_passwords_password_options">1. Go to your device\'s Settings &gt; Passwords &gt; Password Options</string> <string name="second_dot_turn_on_auto_fill">2. Turn on AutoFill</string> <string name="third_dot_select_bitwarden_to_use_for_passwords_and_passkeys">3. Select \"Bitwarden\" to use for passwords and passkeys</string> <string name="your_passkey_will_be_saved_to_your_bitwarden_vault">Your passkey will be saved to your Bitwarden vault</string> <string name="your_passkey_will_be_saved_to_your_bitwarden_vault_for_x">Your passkey will be saved to your Bitwarden vault for %1$s</string> <string name="organization_unassigned_items_message_useu_description_long">Unassigned organization items are no longer visible in the All Vaults view and only accessible via the Admin Console. Assign these items to a collection from the Admin Console to make them visible.</string> <string name=your_sha256_hashon_long">On May 16, 2024, unassigned organization items will no longer be visible in the All Vaults view and only accessible via the Admin Console. Assign these items to a collection from the Admin Console to make them visible.</string> <string name="remind_me_later">Remind me later</string> <string name="notice">Notice</string> <string name="passkeys_not_supported_for_this_app">Passkeys not supported for this app</string> <string name="passkey_operation_failed_because_browser_is_not_privileged">Passkey operation failed because browser is not privileged</string> <string name=your_sha256_hashh">Passkey operation failed because browser signature does not match</string> <string name="passkey_operation_failed_because_of_missing_asset_links">Passkey operation failed because of missing asset links</string> <string name="passkey_operation_failed_because_app_not_found_in_asset_links">Passkey operation failed because app not found in asset links</string> <string name="passkey_operation_failed_because_app_could_not_be_verified">Passkey operation failed because app could not be verified</string> <string name="confirm_file_password">Confirm file password</string> <string name="continue_to_give_feedback">Continue to Give Feedback?</string> <string name="continue_to_provide_feedback">Select continue to give feedback on the new app!</string> <string name="file_password">File password</string> <string name="give_feedback">Give Feedback</string> <string name="password_protected">Password Protected</string> <string name="password_used_to_export">This password will be used to export and import this file</string> <string name="autofill_suggestion">Autofill suggestion</string> <string name="continue_to_complete_web_authn_verification">Continue to complete WebAuthn verification.</string> <string name="launch_web_authn">Launch WebAuthn</string> <string name="there_was_an_error_starting_web_authn_two_factor_authentication">There was an error starting WebAuthn two factor authentication</string> <string name="self_hosted_server_url">Self-hosted server URL</string> <string name="passkey_operation_failed_because_user_could_not_be_verified">Passkey operation failed because user could not be verified.</string> <string name="user_verification_direction">User verification</string> <string name="creating_on">Creating on:</string> <string name=your_sha256_hashing_your_account">Follow the instructions in the email sent to %1$s to continue creating your account.</string> <string name=your_sha256_hashcy">By continuing, you agree to the Terms of Service and Privacy Policy</string> <string name="set_password">Set password</string> <string name="unsubscribe">Unsubscribe</string> <string name="check_your_email">Check your email</string> <string name="open_email_app">Open email app</string> <string name="go_back">Go back</string> <string name="email_verified">Email verified</string> <string name="no_email_go_back_to_edit_your_email_address">No email? Go back to edit your email address.</string> <string name="or_log_in_you_may_already_have_an_account">Or log in, you may already have an account.</string> <string name=your_sha256_hash_opportunities_unsubscribe_any_time">Get emails from Bitwarden for announcements, advice, and research opportunities. Unsubscribe at any time.</string> <string name="privacy_prioritized">Privacy, prioritized</string> <string name="welcome_message_1">Save logins, cards, and identities to your secure vault. Bitwarden uses zero-knowledge, end-to-end encryption to protect whats important to you.</string> <string name="welcome_message_2">Set up biometric unlock and autofill to log into your accounts without typing a single letter.</string> <string name="quick_and_easy_login">Quick and easy login</string> <string name="level_up_your_logins">Level up your logins</string> <string name="welcome_message_3">Use the generator to create and save strong, unique passwords for all your accounts.</string> <string name="your_data_when_and_where_you_need_it">Your data, when and where you need it</string> <string name="welcome_message_4">Save unlimited passwords across unlimited devices with Bitwarden mobile, browser, and desktop apps.</string> <string name="remove_passkey">Remove passkey</string> <string name="passkey_removed">Passkey removed</string> <string name="what_makes_a_password_strong">What makes a password strong?</string> <string name="the_longer_your_password_the_more_difficult_to_hack">The longer your password, the more difficult it is to hack. The minimum for account creation is 12 characters but if you do 14 characters, the time to crack your password would be centuries!</string> <string name="the_strongest_passwords_are_usually">The strongest passwords are usually:</string> <string name="twelve_or_more_characters">12 or more characters</string> <string name="random_and_complex_using_numbers_and_special_characters">Random and complex, using numbers and special characters</string> <string name="totally_different_from_your_other_passwords">Totally different from your other passwords</string> <string name="use_the_generator_to_create_a_strong_unique_password">Use the generator to create a strong, unique password</string> <string name="try_it_out">Try it out</string> <string name="account_setup">Account setup</string> <string name="set_up_unlock">Set up unlock</string> <string name="set_up_later">Set up later</string> <string name="set_up_unlock_later">Set up unlock later?</string> <string name=your_sha256_hashty_in_settings">You can return to complete this step anytime from Account Security in Settings.</string> <string name="confirm">Confirm</string> <string name=your_sha256_hashult_and_autofill_your_logins">Set up biometrics or choose a PIN code to quickly access your vault and AutoFill your logins.</string> <string name="never_lose_access_to_your_vault">Never lose access to your vault</string> <string name="the_best_way_to_make_sure_you_can_always_access_your_account">The best way to make sure you can always access your account is to set up safeguards from the start.</string> <string name="create_a_hint">Create a hint</string> <string name="your_hint_will_be_send_to_you_via_email_when_you_request_it">Your hint will be sent to you via email when you request it.</string> <string name="write_your_password_down">Write your password down</string> <string name="keep_it_secret_keep_it_safe">Be careful to keep your written password somewhere secret and safe.</string> <string name="prevent_account_lockout">Prevent account lockout</string> <string name="generate_master_password">Generate master password</string> <string name="generate_button_label">Generate</string> <string name="write_this_password_down_and_keep_it_somewhere_safe">Write this password down and keep it somewhere safe.</string> <string name="learn_about_other_ways_to_prevent_account_lockout">Learn about other ways to prevent account lockout</string> </resources> ```
/content/code_sandbox/app/src/main/res/values-et-rEE/strings.xml
xml
2016-04-30T16:43:17
2024-08-16T19:45:08
android
bitwarden/android
6,085
23,467
```xml import * as React from 'react'; import createSvgIcon from '../utils/createSvgIcon'; const CRMProcessesIcon = createSvgIcon({ svg: ({ classes }) => ( <svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false"> <path d="M0 384h2048v1152H0V384zm128 1024h293l449-448-449-448H128v896zm1792 0V512H603l447 448-447 448h1317z" /> </svg> ), displayName: 'CRMProcessesIcon', }); export default CRMProcessesIcon; ```
/content/code_sandbox/packages/react-icons-mdl2/src/components/CRMProcessesIcon.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
150
```xml /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { AuditSystemLogsComponent } from './audit-system-logs.component'; describe('AuditSystemLogsComponent', () => { let component: AuditSystemLogsComponent; let fixture: ComponentFixture<AuditSystemLogsComponent>; beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [ AuditSystemLogsComponent ] }) .compileComponents(); }); beforeEach(() => { fixture = TestBed.createComponent(AuditSystemLogsComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); }); ```
/content/code_sandbox/maxkey-web-frontend/maxkey-web-app/src/app/routes/audit/audit-system-logs/audit-system-logs.component.spec.ts
xml
2016-11-16T03:06:50
2024-08-16T09:22:42
MaxKey
dromara/MaxKey
1,423
175
```xml import {} from 'styled-jsx' ```
/content/code_sandbox/test/index.ts
xml
2016-12-05T13:58:02
2024-08-14T09:15:42
styled-jsx
vercel/styled-jsx
7,675
9
```xml /* * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. */ export {default as Prompt, showPrompt} from './Prompt'; ```
/content/code_sandbox/optimize/client/src/modules/prompt/index.tsx
xml
2016-03-20T03:38:04
2024-08-16T19:59:58
camunda
camunda/camunda
3,172
41
```xml <dict> <key>CommonPeripheralDSP</key> <array> <dict> <key>DeviceID</key> <integer>0</integer> <key>DeviceType</key> <string>Headphone</string> </dict> <dict> <key>DeviceID</key> <integer>0</integer> <key>DeviceType</key> <string>Microphone</string> </dict> </array> <key>PathMaps</key> <array> <dict> <key>PathMap</key> <array> <array> <array> <array> <dict> <key>Amp</key> <dict> <key>Channels</key> <array> <dict> <key>Bind</key> <integer>1</integer> <key>Channel</key> <integer>1</integer> </dict> <dict> <key>Bind</key> <integer>2</integer> <key>Channel</key> <integer>2</integer> </dict> </array> <key>MuteInputAmp</key> <true/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <true/> </dict> <key>NodeID</key> <integer>8</integer> </dict> <dict> <key>NodeID</key> <integer>35</integer> </dict> <dict> <key>Boost</key> <integer>3</integer> <key>NodeID</key> <integer>18</integer> </dict> </array> </array> <array> <array> <dict> <key>Amp</key> <dict> <key>Channels</key> <array> <dict> <key>Bind</key> <integer>1</integer> <key>Channel</key> <integer>1</integer> </dict> <dict> <key>Bind</key> <integer>2</integer> <key>Channel</key> <integer>2</integer> </dict> </array> <key>MuteInputAmp</key> <true/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <true/> </dict> <key>NodeID</key> <integer>9</integer> </dict> <dict> <key>NodeID</key> <integer>34</integer> </dict> <dict> <key>Boost</key> <integer>3</integer> <key>NodeID</key> <integer>25</integer> </dict> </array> </array> </array> <array> <array> <array> <dict> <key>Amp</key> <dict> <key>MuteInputAmp</key> <false/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <false/> </dict> <key>NodeID</key> <integer>23</integer> </dict> <dict> <key>Amp</key> <dict> <key>Channels</key> <array> <dict> <key>Bind</key> <integer>1</integer> <key>Channel</key> <integer>1</integer> </dict> <dict> <key>Bind</key> <integer>2</integer> <key>Channel</key> <integer>2</integer> </dict> </array> <key>MuteInputAmp</key> <true/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <false/> </dict> <key>NodeID</key> <integer>3</integer> </dict> </array> </array> <array> <array> <dict> <key>Amp</key> <dict> <key>MuteInputAmp</key> <false/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <false/> </dict> <key>NodeID</key> <integer>33</integer> </dict> <dict> <key>Amp</key> <dict> <key>Channels</key> <array> <dict> <key>Bind</key> <integer>1</integer> <key>Channel</key> <integer>1</integer> </dict> <dict> <key>Bind</key> <integer>2</integer> <key>Channel</key> <integer>2</integer> </dict> </array> <key>MuteInputAmp</key> <true/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <false/> </dict> <key>NodeID</key> <integer>2</integer> </dict> </array> </array> </array> </array> <key>PathMapID</key> <integer>245</integer> </dict> </array> </dict> ```
/content/code_sandbox/Resources/ALC245/Platforms12.xml
xml
2016-03-07T20:45:58
2024-08-14T08:57:03
AppleALC
acidanthera/AppleALC
3,420
1,562
```xml import type { DependencyRegistry as DependencyRegistryInterface } from "./Contract"; export class DependencyRegistry<T extends Record<string, unknown>> implements DependencyRegistryInterface<T> { public constructor(private readonly dependencies: T) {} public register<Name extends keyof T>(name: Name, instance: T[Name]): void { const key = this.nameToKey(name); if (Object.keys(this.dependencies).includes(key)) { throw new Error(`Dependency "${key}" is already registered`); } this.dependencies[name] = instance; } public get<Name extends keyof T>(name: Name): T[Name] { const key = this.nameToKey(name); if (!Object.keys(this.dependencies).includes(key)) { throw new Error(`Dependency with name "${key}" could not be found`); } return this.dependencies[name]; } private nameToKey<Name extends keyof T>(name: Name): string { return String(name); } } ```
/content/code_sandbox/src/main/Core/DependencyRegistry/DependencyRegistry.ts
xml
2016-10-11T04:59:52
2024-08-16T11:53:31
ueli
oliverschwendener/ueli
3,543
202
```xml import { fireEvent, screen, within } from '@testing-library/react'; import React from 'react'; import { SelectField } from 'uniforms-mui'; import { renderWithZod } from 'uniforms/__suites__'; import { z } from 'zod'; test('<SelectField> - renders a Select with correct disabled state', () => { renderWithZod({ element: <SelectField data-testid="select-field" name="x" disabled />, schema: z.object({ x: z.enum(['a', 'b']) }), }); expect( screen.getByTestId('select-field').classList.contains('Mui-disabled'), ).toBeTruthy(); }); test('<SelectField> - renders a Select with correct required state', () => { renderWithZod({ element: <SelectField data-testid="select-field" name="x" required />, schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.getByLabelText('X *')).toBeInTheDocument(); }); test('<SelectField> - renders a Select with correct options', () => { const selectOptions = ['a', 'b'] as const; renderWithZod({ element: <SelectField name="x" />, schema: z.object({ x: z.enum(selectOptions) }), }); fireEvent.mouseDown(screen.getByRole('button')); const listbox = within(screen.getByRole('listbox')); selectOptions.forEach(option => { expect(listbox.getByRole('option', { name: option })).not.toBeNull(); }); }); test('<SelectField> - renders a Select with correct options (transform)', () => { const selectOptions = ['a', 'b'] as const; renderWithZod({ element: ( <SelectField name="x" options={[{ value: 'a' }, { value: 'b' }]} /> ), schema: z.object({ x: z.string() }), }); fireEvent.mouseDown(screen.getByRole('button')); const listbox = within(screen.getByRole('listbox')); selectOptions.forEach(option => { expect(listbox.getByRole('option', { name: option })).toBeInTheDocument(); }); }); test('<SelectField> - renders a Select with correct placeholder (implicit)', () => { renderWithZod({ element: ( <SelectField name="x" placeholder="y" options={[{ value: 'a' }, { value: 'b' }]} /> ), schema: z.object({ x: z.string() }), }); expect(screen.getByText('y')).toBeInTheDocument(); }); test('<SelectField> - renders a Select with correct value (default)', () => { renderWithZod({ element: <SelectField data-testid="select-field" name="x" />, schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.getByText('a')).toBeInTheDocument(); expect(screen.queryByText('b')).not.toBeInTheDocument(); }); test('<SelectField> - renders a Select with correct value (model)', () => { renderWithZod({ element: <SelectField data-testid="select-field" name="x" />, schema: z.object({ x: z.enum(['a', 'b']) }), model: { x: 'b' }, }); expect(screen.getByText('b')).toBeInTheDocument(); expect(screen.queryByText('a')).not.toBeInTheDocument(); }); test('<SelectField> - renders a Select with correct value (specified)', () => { renderWithZod({ element: <SelectField data-testid="select-field" name="x" value="b" />, schema: z.object({ x: z.enum(['a', 'b']) }), model: { x: 'b' }, }); expect(screen.getByText('b')).toBeInTheDocument(); expect(screen.queryByText('a')).not.toBeInTheDocument(); }); test('<SelectField> - renders a Select which correctly reacts on change', () => { const onChange = jest.fn(); renderWithZod({ element: <SelectField name="x" onChange={onChange} />, schema: z.object({ x: z.enum(['a', 'b']) }), }); fireEvent.mouseDown(screen.getByRole('button')); const listbox = within(screen.getByRole('listbox')); fireEvent.click(listbox.getByText(/b/i)); expect(onChange).toHaveBeenCalledWith('b'); }); test('<SelectField> - renders a Select which correctly reacts on change (same value)', () => { const onChange = jest.fn(); renderWithZod({ element: <SelectField name="x" onChange={onChange} />, schema: z.object({ x: z.enum(['a', 'b']) }), model: { x: 'b' }, }); fireEvent.mouseDown(screen.getByRole('button')); const listbox = within(screen.getByRole('listbox')); fireEvent.click(listbox.getByText(/b/i)); expect(onChange).toBeCalledTimes(0); }); test('<SelectField> - works with special characters', () => { renderWithZod({ element: <SelectField name="x" />, schema: z.object({ x: z.enum(['', '']) }), }); fireEvent.mouseDown(screen.getByRole('button')); const listbox = within(screen.getByRole('listbox')); expect(listbox.getByText('')).toBeInTheDocument(); expect(listbox.getByText('')).toBeInTheDocument(); }); test('<SelectField> - disabled items (options)', () => { renderWithZod({ element: ( <SelectField name="x" options={[ { label: 'A', value: 'a', disabled: true }, { label: 'B', value: 'b', disabled: false }, ]} /> ), schema: z.object({ x: z.enum(['a', 'b']) }), }); fireEvent.mouseDown(screen.getByRole('button')); const listbox = within(screen.getByRole('listbox')); expect(listbox.getByText('A')).toHaveClass('Mui-disabled'); expect(listbox.getByText('B')).not.toHaveClass('Mui-disabled'); }); test('<SelectField> - renders with correct classnames', () => { const { container } = renderWithZod({ element: ( <SelectField name="x" textFieldProps={{ className: 'select-class' }} /> ), schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(container.getElementsByClassName('select-class').length).toBe(1); }); test('<SelectField checkboxes> - renders a set of Radio buttons', () => { renderWithZod({ element: <SelectField checkboxes name="x" />, schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.getByRole('radiogroup')).toBeInTheDocument(); }); test('<SelectField checkboxes> - renders a set of Radio buttons with correct disabled state', () => { renderWithZod({ element: <SelectField checkboxes name="x" disabled />, schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.getByLabelText('a')).toBeDisabled(); expect(screen.getByLabelText('b')).toBeDisabled(); }); test('<SelectField checkboxes> - renders a set of Radio buttons with correct id (inherited)', () => { renderWithZod({ element: <SelectField checkboxes name="x" />, schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.getByLabelText('a')).toHaveAttribute('id'); expect(screen.getByLabelText('b')).toHaveAttribute('id'); }); test('<SelectField checkboxes> - renders a set of Radio buttons with correct id (specified)', () => { renderWithZod({ element: <SelectField checkboxes name="x" id="y" />, schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.getByLabelText('a')).toHaveAttribute('id', 'y-YQ'); expect(screen.getByLabelText('b')).toHaveAttribute('id', 'y-Yg'); }); test('<SelectField checkboxes> - renders a set of Radio buttons with correct name', () => { renderWithZod({ element: <SelectField checkboxes name="x" />, schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.getByLabelText('a')).toHaveAttribute('name', 'x'); expect(screen.getByLabelText('b')).toHaveAttribute('name', 'x'); }); test('<SelectField checkboxes> - renders a set of Radio buttons with correct value (default)', () => { renderWithZod({ element: <SelectField checkboxes name="x" />, schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.getByLabelText('a')).toBeChecked(); expect(screen.getByLabelText('b')).not.toBeChecked(); }); test('<SelectField checkboxes> - renders a set of Radio buttons with correct value (model)', () => { renderWithZod({ element: <SelectField checkboxes name="x" />, schema: z.object({ x: z.enum(['a', 'b']) }), model: { x: 'b' }, }); expect(screen.getByLabelText('a')).not.toBeChecked(); expect(screen.getByLabelText('b')).toBeChecked(); }); test('<SelectField checkboxes> - renders a set of Radio buttons with correct value (specified)', () => { renderWithZod({ element: <SelectField checkboxes name="x" value="b" />, schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.getByLabelText('a')).not.toBeChecked(); expect(screen.getByLabelText('b')).toBeChecked(); }); test('<SelectField checkboxes> - renders a set of Radio buttons which correctly reacts on change', () => { const onChange = jest.fn(); renderWithZod({ element: <SelectField checkboxes name="x" onChange={onChange} />, schema: z.object({ x: z.enum(['a', 'b']) }), }); fireEvent.click(screen.getByLabelText('b')); expect(onChange).toHaveBeenCalledWith('b'); }); test('<SelectField checkboxes> - renders a set of Checkboxes with correct labels', () => { renderWithZod({ element: <SelectField checkboxes name="x" />, schema: z.object({ x: z.string().uniforms({ fieldType: Array, options: [ { label: 'A', value: 'a' }, { label: 'B', value: 'b' }, ], }), }), }); expect(screen.getByLabelText('A')).toBeInTheDocument(); expect(screen.getByLabelText('B')).toBeInTheDocument(); }); test('<SelectField checkboxes> - renders a SelectField with correct error text (showInlineError=true)', () => { const error = new Error(); renderWithZod({ element: ( <SelectField checkboxes name="x" error={error} showInlineError errorMessage="Error" /> ), schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.getByText('Error')).toBeInTheDocument(); }); test('<SelectField checkboxes> - renders a SelectField with correct error text (showInlineError=false)', () => { const error = new Error(); renderWithZod({ element: ( <SelectField checkboxes name="x" error={error} showInlineError={false} errorMessage="Error" /> ), schema: z.object({ x: z.enum(['a', 'b']) }), }); expect(screen.queryByText('Error')).not.toBeInTheDocument(); }); test('<SelectField checkboxes> - renders Checkbox with appearance=checkbox', () => { const { container } = renderWithZod({ element: <SelectField appearance="checkbox" checkboxes name="x" />, schema: z.object({ x: z.string().uniforms({ fieldType: Array, options: [ { label: 'A', value: 'a' }, { label: 'B', value: 'b' }, ], }), }), }); expect(container.getElementsByClassName('MuiCheckbox-root').length).toBe(2); }); test('<SelectField checkboxes> - renders Switch with appearance=switch', () => { const { container } = renderWithZod({ element: <SelectField appearance="switch" checkboxes name="x" />, schema: z.object({ x: z.string().uniforms({ fieldType: Array, options: [ { label: 'A', value: 'a' }, { label: 'B', value: 'b' }, ], }), }), }); expect(container.getElementsByClassName('MuiSwitch-root').length).toBe(2); }); test('<SelectField checkboxes> - disabled items (checkboxes) based on predicate', () => { renderWithZod({ element: ( <SelectField appearance="checkbox" checkboxes name="x" options={[ { label: 'A', value: 'a', disabled: true }, { label: 'B', value: 'b', disabled: false }, ]} /> ), schema: z.object({ x: z.string().array(), }), }); expect(screen.getByLabelText('A')).toBeDisabled(); expect(screen.getByLabelText('B')).not.toBeDisabled(); }); ```
/content/code_sandbox/packages/uniforms-mui/__tests__/SelectField.tsx
xml
2016-05-10T13:08:50
2024-08-13T11:27:18
uniforms
vazco/uniforms
1,934
2,854
```xml import type { transformAsync } from '@babel/core'; import type { compile as mdxCompile } from '@mdx-js/mdx'; import { compile } from './compiler'; export type MdxCompileOptions = Parameters<typeof mdxCompile>[1]; export type BabelOptions = Parameters<typeof transformAsync>[1]; export interface CompileOptions { mdxCompileOptions?: MdxCompileOptions; } const DEFAULT_RENDERER = ` import React from 'react'; `; // Adjust this import based on your actual webpack version and typings // Kind of like a mock so we don't have to install Webpack just for the types type LoaderOptions = { filepath?: string; [key: string]: any; } & any; interface LoaderContext { async: () => (err: Error | null, result?: string) => void; getOptions: () => LoaderOptions; resourcePath: string; } async function loader(this: LoaderContext, content: string): Promise<void> { const callback = this.async(); const options = { ...this.getOptions(), filepath: this.resourcePath }; try { const result = await compile(content, options); const code = `${DEFAULT_RENDERER}\n${result}`; return callback(null, code); } catch (err: any) { console.error('Error loading:', this.resourcePath); return callback(err); } } export default loader; ```
/content/code_sandbox/code/addons/docs/src/mdx-loader.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
291
```xml import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { FooterComponent } from './footer.component'; @NgModule({ imports: [ /** * The `CommonModule` contributes many of the common directives that * applications need including `ngIf` and `ngFor`. * BrowserModule imports CommonModule and re-exports it. * The net effect is that an importer of `BrowserModule` gets `CommonModule` directives automatically. */ CommonModule, /** * Module used by Angular-Router to provide `routerLink` directive. */ RouterModule ], declarations: [ FooterComponent ], exports: [ FooterComponent ] }) export class FooterModule { } ```
/content/code_sandbox/src/app/footer/footer.module.ts
xml
2016-09-20T13:50:42
2024-08-06T13:58:18
loklak_search
fossasia/loklak_search
1,829
171
```xml import glob from 'glob' import fs from 'fs-extra' import { join } from 'path' import cheerio from 'cheerio' import { createNext, FileRef } from 'e2e-utils' import { NextInstance } from 'e2e-utils' import { killApp, findPort, renderViaHTTP, initNextServerScript, fetchViaHTTP, } from 'next-test-utils' describe('minimal-mode-response-cache', () => { let next: NextInstance let server let port let appPort let output = '' beforeAll(async () => { // test build against environment with next support process.env.NOW_BUILDER = '1' next = await createNext({ files: new FileRef(join(__dirname, 'app')), }) await next.stop() await fs.move( join(next.testDir, '.next/standalone'), join(next.testDir, 'standalone') ) for (const file of await fs.readdir(next.testDir)) { if (file !== 'standalone') { await fs.remove(join(next.testDir, file)) console.log('removed', file) } } const files = glob.sync('**/*', { cwd: join(next.testDir, 'standalone/.next/server'), nodir: true, dot: true, }) for (const file of files) { if (file.match(/(pages|app)[/\\]/) && !file.endsWith('.js')) { await fs.remove(join(next.testDir, 'standalone/.next/server', file)) console.log( 'removing', join(next.testDir, 'standalone/.next/server', file) ) } } const testServer = join(next.testDir, 'standalone/server.js') await fs.writeFile( testServer, (await fs.readFile(testServer, 'utf8')) .replace('console.error(err)', `console.error('top-level', err)`) .replace('port:', 'minimalMode: true,port:') ) port = await findPort() server = await initNextServerScript( testServer, /- Local:/, { ...process.env, HOSTNAME: '', PORT: port.toString(), }, undefined, { cwd: next.testDir, onStdout(msg) { output += msg }, onStderr(msg) { output += msg }, } ) appPort = `path_to_url{port}` }) afterAll(async () => { await next.destroy() if (server) await killApp(server) }) it('app router revalidate should work with previous response cache dynamic', async () => { const headers = { vary: 'RSC, Next-Router-State-Tree, Next-Router-Prefetch', 'x-now-route-matches': '1=compare&rsc=1', 'x-matched-path': '/app-blog/compare.rsc', 'x-vercel-id': '1', rsc: '1', } const res1 = await fetchViaHTTP( appPort, '/app-blog/compare.rsc', undefined, { headers, } ) const content1 = await res1.text() expect(content1).not.toContain('<html') expect(content1).toContain('app-blog') expect(res1.headers.get('content-type')).toContain('text/x-component') const res2 = await fetchViaHTTP(appPort, '/app-blog/compare', undefined, { headers, }) const content2 = await res2.text() expect(content2).toContain('<html') expect(content2).toContain('app-blog') expect(res2.headers.get('content-type')).toContain('text/html') }) it('app router revalidate should work with previous response cache', async () => { const headers = { vary: 'RSC, Next-Router-State-Tree, Next-Router-Prefetch', 'x-now-route-matches': '1=app-another&rsc=1', 'x-matched-path': '/app-another.rsc', 'x-vercel-id': '1', rsc: '1', } const res1 = await fetchViaHTTP(appPort, '/app-another.rsc', undefined, { headers, }) const content1 = await res1.text() expect(res1.headers.get('content-type')).toContain('text/x-component') expect(content1).not.toContain('<html') expect(content1).toContain('app-another') const res2 = await fetchViaHTTP(appPort, '/app-another', undefined, { headers, }) const content2 = await res2.text() expect(res2.headers.get('content-type')).toContain('text/html') expect(content2).toContain('<html') expect(content2).toContain('app-another') }) it('should have correct "Started server on" log', async () => { expect(output).toContain(`- Local:`) expect(output).toContain(`path_to_url{port}`) }) it('should have correct responses', async () => { const html = await renderViaHTTP(appPort, '/') expect(html.length).toBeTruthy() for (const { path, matchedPath, query, asPath, pathname } of [ { path: '/', asPath: '/' }, { path: '/', matchedPath: '/index', asPath: '/' }, { path: '/', matchedPath: '/index/', asPath: '/' }, { path: '/', matchedPath: '/', asPath: '/' }, { path: '/news/', matchedPath: '/news/', asPath: '/news/', pathname: '/news', }, { path: '/news/', matchedPath: '/news', asPath: '/news/', pathname: '/news', }, { path: '/blog/first/', matchedPath: '/blog/first/', pathname: '/blog/[slug]', asPath: '/blog/first/', query: { slug: 'first' }, }, { path: '/blog/second/', matchedPath: '/blog/[slug]/', pathname: '/blog/[slug]', asPath: '/blog/second/', query: { slug: 'second' }, }, ]) { const html = await renderViaHTTP(appPort, path, undefined, { headers: { 'x-matched-path': matchedPath || path, }, }) const $ = cheerio.load(html) expect($('#asPath').text()).toBe(asPath) expect($('#pathname').text()).toBe(pathname || path) expect(JSON.parse($('#query').text())).toEqual(query || {}) } }) }) ```
/content/code_sandbox/test/production/standalone-mode/response-cache/index.test.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
1,461
```xml <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style> </resources> ```
/content/code_sandbox/sample/src/main/res/values/styles.xml
xml
2016-08-03T19:23:43
2024-08-12T07:26:54
ChipsLayoutManager
BelooS/ChipsLayoutManager
3,247
87
```xml <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <UserSecretsId>c631830b-e4be-4f6a-bc34-fe87e2fe09c9</UserSecretsId> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerfileContext>.</DockerfileContext> <ImplicitUsings>true</ImplicitUsings> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.14.0" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" /> </ItemGroup> </Project> ```
/content/code_sandbox/projects/mini/minimal-api-pokedex/src/Minimal.Api.Pokedex/Minimal.Api.Pokedex.csproj
xml
2016-07-27T08:23:40
2024-08-16T19:15:21
practical-aspnetcore
dodyg/practical-aspnetcore
9,106
185
```xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="[1]path_to_url" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <command> <login> <clID>NewRegistrar</clID> <pw>foo-BAR2</pw> <options> <version>1.0</version> <lang>en</lang> </options> <svcs> <objURI>urn:ietf:params:xml:ns:domain-1.0</objURI> <objURI>urn:ietf:params:xml:ns:contact-1.0</objURI> <objURI>urn:ietf:params:xml:ns:host-1.0</objURI> <svcExtension> <extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI> </svcExtension> </svcs> </login> <clTRID>04T215938Z-2589</clTRID> </command> </epp> ```
/content/code_sandbox/core/src/test/resources/google/registry/flows/syntax_error.xml
xml
2016-02-29T20:16:48
2024-08-15T19:49:29
nomulus
google/nomulus
1,685
278
```xml import { doSearch } from "@erxes/api-utils/src/elasticsearch"; import { generateModels, IModels } from "./connectionResolver"; const searchBoardItems = async ( models: IModels, subdomain: string, index: string, value ) => { const items = await doSearch({ subdomain, index, value, fields: ["name", "description", "number"] }); const updatedItems: any = []; for (const item of items) { const stage = (await models.Stages.findOne({ _id: item.source.stageId })) || { pipelineId: "" }; const pipeline = (await models.Pipelines.findOne({ _id: stage.pipelineId })) || { boardId: "" }; item.source.pipelineId = stage.pipelineId; item.source.boardId = pipeline.boardId; updatedItems.push(item); } return updatedItems; }; const search = async ({ subdomain, data: { value } }) => { const models = await generateModels(subdomain); return [ { module: "tasks", items: await searchBoardItems(models, subdomain, "tasks", value) }, { module: "stages", items: await doSearch({ subdomain, index: "stages", value, fields: ["name"] }) }, { module: "pipelines", items: await doSearch({ subdomain, index: "pipelines", value, fields: ["name"] }) } ]; }; export default search; ```
/content/code_sandbox/packages/plugin-tasks-api/src/search.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
344
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net8.0-macos</TargetFramework> <RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">macOSBinding1</RootNamespace> <Nullable>enable</Nullable> <ImplicitUsings>true</ImplicitUsings> <IsBindingProject>true</IsBindingProject> </PropertyGroup> <ItemGroup> <ObjcBindingApiDefinition Include="ApiDefinition.cs" /> <ObjcBindingCoreSource Include="StructsAndEnums.cs" /> </ItemGroup> </Project> ```
/content/code_sandbox/dotnet/Templates/Microsoft.macOS.Templates/macosbinding/csharp/macOSBinding1.csproj
xml
2016-04-20T18:24:26
2024-08-16T13:29:19
xamarin-macios
xamarin/xamarin-macios
2,436
139
```xml import { spawn, ChildProcess } from 'child_process' import * as Path from 'path' import { enumerateValues, HKEY, RegistryValueType } from 'registry-js' import { assertNever } from '../fatal-error' import { enableWSLDetection } from '../feature-flag' import { findGitOnPath } from '../is-git-on-path' import { parseEnumValue } from '../enum' import { pathExists } from '../../ui/lib/path-exists' import { FoundShell } from './shared' import { expandTargetPathArgument, ICustomIntegration, } from '../custom-integration' export enum Shell { Cmd = 'Command Prompt', PowerShell = 'PowerShell', PowerShellCore = 'PowerShell Core', Hyper = 'Hyper', GitBash = 'Git Bash', Cygwin = 'Cygwin', WSL = 'WSL', WindowTerminal = 'Windows Terminal', FluentTerminal = 'Fluent Terminal', Alacritty = 'Alacritty', } export const Default = Shell.Cmd export function parse(label: string): Shell { return parseEnumValue(Shell, label) ?? Default } export async function getAvailableShells(): Promise< ReadonlyArray<FoundShell<Shell>> > { const gitPath = await findGitOnPath() const rootDir = process.env.WINDIR || 'C:\\Windows' const dosKeyExePath = `"${rootDir}\\system32\\doskey.exe git=^"${gitPath}^" $*"` const shells: FoundShell<Shell>[] = [ { shell: Shell.Cmd, path: process.env.comspec || 'C:\\Windows\\System32\\cmd.exe', extraArgs: gitPath ? ['/K', dosKeyExePath] : [], }, ] const powerShellPath = await findPowerShell() if (powerShellPath != null) { shells.push({ shell: Shell.PowerShell, path: powerShellPath, }) } const powerShellCorePath = await findPowerShellCore() if (powerShellCorePath != null) { shells.push({ shell: Shell.PowerShellCore, path: powerShellCorePath, }) } const hyperPath = await findHyper() if (hyperPath != null) { shells.push({ shell: Shell.Hyper, path: hyperPath, }) } const gitBashPath = await findGitBash() if (gitBashPath != null) { shells.push({ shell: Shell.GitBash, path: gitBashPath, }) } const cygwinPath = await findCygwin() if (cygwinPath != null) { shells.push({ shell: Shell.Cygwin, path: cygwinPath, }) } if (enableWSLDetection()) { const wslPath = await findWSL() if (wslPath != null) { shells.push({ shell: Shell.WSL, path: wslPath, }) } } const alacrittyPath = await findAlacritty() if (alacrittyPath != null) { shells.push({ shell: Shell.Alacritty, path: alacrittyPath, }) } const windowsTerminal = await findWindowsTerminal() if (windowsTerminal != null) { shells.push({ shell: Shell.WindowTerminal, path: windowsTerminal, }) } const fluentTerminal = await findFluentTerminal() if (fluentTerminal != null) { shells.push({ shell: Shell.FluentTerminal, path: fluentTerminal, }) } return shells } async function findPowerShell(): Promise<string | null> { const powerShell = enumerateValues( HKEY.HKEY_LOCAL_MACHINE, 'Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\PowerShell.exe' ) if (powerShell.length === 0) { return null } const first = powerShell[0] // NOTE: // on Windows 7 these are both REG_SZ, which technically isn't supposed // to contain unexpanded references to environment variables. But given // it's also %SystemRoot% and we do the expanding here I think this is // a fine workaround to do to support the maximum number of setups. if ( first.type === RegistryValueType.REG_EXPAND_SZ || first.type === RegistryValueType.REG_SZ ) { const path = first.data.replace( /^%SystemRoot%/i, process.env.SystemRoot || 'C:\\Windows' ) if (await pathExists(path)) { return path } else { log.debug( `[PowerShell] registry entry found but does not exist at '${path}'` ) } } return null } async function findPowerShellCore(): Promise<string | null> { const powerShellCore = enumerateValues( HKEY.HKEY_LOCAL_MACHINE, 'Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\pwsh.exe' ) if (powerShellCore.length === 0) { return null } const first = powerShellCore[0] if (first.type === RegistryValueType.REG_SZ) { const path = first.data if (await pathExists(path)) { return path } else { log.debug( `[PowerShellCore] registry entry found but does not exist at '${path}'` ) } } return null } async function findHyper(): Promise<string | null> { const hyper = enumerateValues( HKEY.HKEY_CURRENT_USER, 'Software\\Classes\\Directory\\Background\\shell\\Hyper\\command' ) if (hyper.length === 0) { return null } const first = hyper[0] if (first.type === RegistryValueType.REG_SZ) { // Registry key is structured as "{installationPath}\app-x.x.x\Hyper.exe" "%V" // This regex is designed to get the path to the version-specific Hyper. // commandPieces = ['"{installationPath}\app-x.x.x\Hyper.exe"', '"', '{installationPath}\app-x.x.x\Hyper.exe', ...] const commandPieces = first.data.match(/(["'])(.*?)\1/) const localAppData = process.env.LocalAppData const path = commandPieces ? commandPieces[2] : localAppData != null ? localAppData.concat('\\hyper\\Hyper.exe') : null // fall back to the launcher in install root if (path == null) { log.debug( `[Hyper] LOCALAPPDATA environment variable is unset, aborting fallback behavior` ) } else if (await pathExists(path)) { return path } else { log.debug(`[Hyper] registry entry found but does not exist at '${path}'`) } } return null } async function findGitBash(): Promise<string | null> { const registryPath = enumerateValues( HKEY.HKEY_LOCAL_MACHINE, 'SOFTWARE\\GitForWindows' ) if (registryPath.length === 0) { return null } const installPathEntry = registryPath.find(e => e.name === 'InstallPath') if (installPathEntry && installPathEntry.type === RegistryValueType.REG_SZ) { const path = Path.join(installPathEntry.data, 'git-bash.exe') if (await pathExists(path)) { return path } else { log.debug( `[Git Bash] registry entry found but does not exist at '${path}'` ) } } return null } async function findCygwin(): Promise<string | null> { const registryPath64 = enumerateValues( HKEY.HKEY_LOCAL_MACHINE, 'SOFTWARE\\Cygwin\\setup' ) const registryPath32 = enumerateValues( HKEY.HKEY_LOCAL_MACHINE, 'SOFTWARE\\WOW6432Node\\Cygwin\\setup' ) if (registryPath64 == null || registryPath32 == null) { return null } const installPathEntry64 = registryPath64.find(e => e.name === 'rootdir') const installPathEntry32 = registryPath32.find(e => e.name === 'rootdir') if ( installPathEntry64 && installPathEntry64.type === RegistryValueType.REG_SZ ) { const path = Path.join(installPathEntry64.data, 'bin\\mintty.exe') if (await pathExists(path)) { return path } else if ( installPathEntry32 && installPathEntry32.type === RegistryValueType.REG_SZ ) { const path = Path.join(installPathEntry32.data, 'bin\\mintty.exe') if (await pathExists(path)) { return path } } else { log.debug(`[Cygwin] registry entry found but does not exist at '${path}'`) } } return null } async function findWSL(): Promise<string | null> { const system32 = Path.join( process.env.SystemRoot || 'C:\\Windows', 'System32' ) const wslPath = Path.join(system32, 'wsl.exe') const wslConfigPath = Path.join(system32, 'wslconfig.exe') if (!(await pathExists(wslPath))) { log.debug(`[WSL] wsl.exe does not exist at '${wslPath}'`) return null } if (!(await pathExists(wslConfigPath))) { log.debug( `[WSL] found wsl.exe, but wslconfig.exe does not exist at '${wslConfigPath}'` ) return null } const exitCode = new Promise<number>((resolve, reject) => { const wslDistros = spawn(wslConfigPath, ['/list']) wslDistros.on('error', reject) wslDistros.on('exit', resolve) }) try { const result = await exitCode if (result !== 0) { log.debug( `[WSL] found wsl.exe and wslconfig.exe, but no distros are installed. Error Code: ${result}` ) return null } return wslPath } catch (err) { log.error(`[WSL] unhandled error when invoking 'wsl /list'`, err) } return null } async function findAlacritty(): Promise<string | null> { const registryPath = enumerateValues( HKEY.HKEY_CLASSES_ROOT, 'Directory\\Background\\shell\\Open Alacritty here' ) if (registryPath.length === 0) { return null } const alacritty = registryPath.find(e => e.name === 'Icon') if (alacritty && alacritty.type === RegistryValueType.REG_SZ) { const path = alacritty.data if (await pathExists(path)) { return path } else { log.debug( `[Alacritty] registry entry found but does not exist at '${path}'` ) } } return null } async function findWindowsTerminal(): Promise<string | null> { // Windows Terminal has a link at // C:\Users\<User>\AppData\Local\Microsoft\WindowsApps\wt.exe const localAppData = process.env.LocalAppData if (localAppData != null) { const windowsTerminalpath = Path.join( localAppData, '\\Microsoft\\WindowsApps\\wt.exe' ) if (await pathExists(windowsTerminalpath)) { return windowsTerminalpath } else { log.debug( `[Windows Terminal] wt.exe doest not exist at '${windowsTerminalpath}'` ) } } return null } async function findFluentTerminal(): Promise<string | null> { // Fluent Terminal has a link at // C:\Users\<User>\AppData\Local\Microsoft\WindowsApps\flute.exe const localAppData = process.env.LocalAppData if (localAppData != null) { const fluentTerminalpath = Path.join( localAppData, '\\Microsoft\\WindowsApps\\flute.exe' ) if (await pathExists(fluentTerminalpath)) { return fluentTerminalpath } else { log.debug( `[Fluent Terminal] flute.exe doest not exist at '${fluentTerminalpath}'` ) } } return null } export function launch( foundShell: FoundShell<Shell>, path: string ): ChildProcess { const shell = foundShell.shell switch (shell) { case Shell.PowerShell: return spawn('START', ['"PowerShell"', `"${foundShell.path}"`], { shell: true, cwd: path, }) case Shell.PowerShellCore: return spawn( 'START', [ '"PowerShell Core"', `"${foundShell.path}"`, '-WorkingDirectory', `"${path}"`, ], { shell: true, cwd: path, } ) case Shell.Hyper: const hyperPath = `"${foundShell.path}"` log.info(`launching ${shell} at path: ${hyperPath}`) return spawn(hyperPath, [`"${path}"`], { shell: true, cwd: path, }) case Shell.Alacritty: const alacrittyPath = `"${foundShell.path}"` log.info(`launching ${shell} at path: ${alacrittyPath}`) return spawn(alacrittyPath, [`--working-directory "${path}"`], { shell: true, cwd: path, }) case Shell.GitBash: const gitBashPath = `"${foundShell.path}"` log.info(`launching ${shell} at path: ${gitBashPath}`) return spawn(gitBashPath, [`--cd="${path}"`], { shell: true, cwd: path, }) case Shell.Cygwin: const cygwinPath = `"${foundShell.path}"` log.info(`launching ${shell} at path: ${cygwinPath}`) return spawn( cygwinPath, [`/bin/sh -lc 'cd "$(cygpath "${path}")"; exec bash`], { shell: true, cwd: path, } ) case Shell.WSL: return spawn('START', ['"WSL"', `"${foundShell.path}"`], { shell: true, cwd: path, }) case Shell.Cmd: return spawn( 'START', ['"Command Prompt"', `"${foundShell.path}"`, ...foundShell.extraArgs!], { shell: true, cwd: path, } ) case Shell.WindowTerminal: const windowsTerminalPath = `"${foundShell.path}"` log.info(`launching ${shell} at path: ${windowsTerminalPath}`) return spawn(windowsTerminalPath, ['-d .'], { shell: true, cwd: path }) case Shell.FluentTerminal: const fluentTerminalPath = `"${foundShell.path}"` log.info(`launching ${shell} at path: ${fluentTerminalPath}`) return spawn(fluentTerminalPath, ['new'], { shell: true, cwd: path }) default: return assertNever(shell, `Unknown shell: ${shell}`) } } export function launchCustomShell( customShell: ICustomIntegration, path: string ): ChildProcess { log.info(`launching custom shell at path: ${customShell.path}`) const args = expandTargetPathArgument(customShell.arguments, path) return spawn(`"${customShell.path}"`, args, { shell: true, cwd: path, }) } ```
/content/code_sandbox/app/src/lib/shells/win32.ts
xml
2016-05-11T15:59:00
2024-08-16T17:00:41
desktop
desktop/desktop
19,544
3,455
```xml <!-- *********************************************************************************************** Microsoft.TestPlatform.CrossTargeting.targets WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have created a backup copy. Incorrect changes to this file will make it impossible to load or build your projects from the command-line or the IDE. *********************************************************************************************** --> <Project xmlns="path_to_url"> <PropertyGroup> <VSTestTaskAssemblyFile Condition="$(VSTestTaskAssemblyFile) == ''">$(MSBuildExtensionsPath)\Microsoft.TestPlatform.Build.dll</VSTestTaskAssemblyFile> <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> </PropertyGroup> <UsingTask TaskName="Microsoft.TestPlatform.Build.Tasks.VSTestLogsTask" AssemblyFile="$(VSTestTaskAssemblyFile)" /> <!-- =================================================================================== DispatchToInnerBuildsWithVSTestTarget Builds this project with /t:$(InnerVSTestTargets) /p:TargetFramework=X for each value X in $(TargetFrameworks) [IN] $(TargetFrameworks) - Semicolon delimited list of target frameworks. $(InnerVSTestTargets) - The targets to build for each target framework [OUT] @(InnerOutput) - The combined output items of inner targets across all target frameworks.. =================================================================================== --> <Target Name="DispatchToInnerBuildsWithVSTestTarget" Returns="@(InnerOutput)"> <PropertyGroup> <!-- Emulating technique found in Microsoft.Build.Traversal for deciding whether to run tests in parallel. Setting either property will revert to previous behavior of running tests in parallel, but without their different TFMs running in parallel. --> <_TestTfmsInParallel>$([MSBuild]::ValueOrDefault('$(TestTfmsInParallel)', '$(BuildInParallel)'))</_TestTfmsInParallel> </PropertyGroup> <ItemGroup> <_TargetFramework Include="$(TargetFrameworks)" /> <_ProjectToTestWithTFM Include="$(MSBuildProjectFile)" Properties="TargetFramework=%(_TargetFramework.Identity);VSTestNoBuild=true" /> </ItemGroup> <MSBuild Projects="@(_ProjectToTestWithTFM)" Condition="'$(TargetFrameworks)' != '' " Targets="$(InnerVSTestTargets)" ContinueOnError="ErrorAndContinue" BuildInParallel="$(_TestTfmsInParallel)"> <Output ItemName="InnerOutput" TaskParameter="TargetOutputs" /> </MSBuild> </Target> <!-- ================================================================================== VSTest Cross-targeting version of VSTest. [IN] $(TargetFrameworks) - Semicolon delimited list of target frameworks. $(InnerVSTestTargets) - The targets to build for each target framework. Defaults to 'VSTest' if unset, but allows override to support `msbuild /p:InnerTargets=X;Y;Z` which will build X, Y, and Z targets for each target framework. [OUT] @(InnerOutput) - The combined output items of the inner targets across all builds. ================================================================================= --> <Target Name="VSTest" DependsOnTargets="_ComputeTargetFrameworkItems"> <CallTarget Condition="'$(VSTestNoBuild)' != 'true'" Targets="BuildProject" /> <CallTarget Targets="SetVSTestInnerTarget" /> <CallTarget Targets="DispatchToInnerBuildsWithVSTestTarget" /> </Target> <Target Name="BuildProject"> <Microsoft.TestPlatform.Build.Tasks.VSTestLogsTask LogType="BuildStarted" /> <CallTarget Targets="Build" /> <Microsoft.TestPlatform.Build.Tasks.VSTestLogsTask LogType="BuildCompleted" /> </Target> <Target Name="SetVSTestInnerTarget" Returns="@(InnerOutput)"> <PropertyGroup Condition="'$(InnerVSTestTargets)' == ''"> <InnerVSTestTargets>VSTest</InnerVSTestTargets> </PropertyGroup> </Target> <!-- =================================================================================== DispatchToInnerBuildsWithTestProjectTarget Builds this project with /t:$(GetTestsProjectTargets) /p:TargetFramework=X for each value X in $(TargetFrameworks) [IN] $(TargetFrameworks) - Semicolon delimited list of target frameworks. $(GetTestsProjectTargets) - The targets to build and get module name for each target framework [OUT] @(InnerOutput) - The combined output items of inner targets across all target frameworks.. =================================================================================== --> <Target Name="DispatchToInnerBuildsWithTestProjectTarget" Returns="@(InnerOutput)"> <PropertyGroup> <!-- Emulating technique found in Microsoft.Build.Traversal for deciding whether to run tests in parallel. Setting either property will revert to previous behavior of running tests in parallel, but without their different TFMs running in parallel. --> <_TestTfmsInParallel>$([MSBuild]::ValueOrDefault('$(TestTfmsInParallel)', '$(BuildInParallel)'))</_TestTfmsInParallel> </PropertyGroup> <ItemGroup> <_TargetFramework Include="$(TargetFrameworks)" /> <_ProjectToTestWithTFM Include="$(MSBuildProjectFile)" Properties="TargetFramework=%(_TargetFramework.Identity)" /> </ItemGroup> <MSBuild Projects="@(_ProjectToTestWithTFM)" Condition="'$(TargetFrameworks)' != '' " Targets="$(GetTestsProjectTargets)" ContinueOnError="ErrorAndContinue" BuildInParallel="$(_TestTfmsInParallel)"> <Output ItemName="InnerOutput" TaskParameter="TargetOutputs" /> </MSBuild> </Target> <!-- ================================================================================== The New Testing Platform Cross-targeting version of the new testing platform. [IN] $(TargetFrameworks) - Semicolon delimited list of target frameworks. $(GetTestsProjectTargets) - The targets to build and get module name for each target framework. [OUT] @(InnerOutput) - The combined output items of the inner targets across all builds. ================================================================================= --> <PropertyGroup> <GetTestsProjectTargets>_GetTestsProject</GetTestsProjectTargets> </PropertyGroup> <Target Name="_GetTestsProject" DependsOnTargets="_ComputeTargetFrameworkItems"> <CallTarget Condition="$(IsTestProject) == 'true' OR '$(IsTestingPlatformApplication)' == 'true'" Targets="Build" /> <CallTarget Targets="DispatchToInnerBuildsWithTestProjectTarget" /> </Target> </Project> ```
/content/code_sandbox/src/Layout/redist/MSBuildImports/Current/Microsoft.Common.CrossTargeting.targets/ImportAfter/Microsoft.TestPlatform.CrossTargeting.targets
xml
2016-07-22T21:26:02
2024-08-16T17:23:58
sdk
dotnet/sdk
2,627
1,440
```xml import MailspringStore from 'mailspring-store'; import { Rx, Actions, Thread, QueryResultSet, WorkspaceStore, FocusedContentStore, FocusedPerspectiveStore, } from 'mailspring-exports'; import { ListTabular, ListDataSource } from 'mailspring-component-kit'; import ThreadListDataSource from './thread-list-data-source'; class ThreadListStore extends MailspringStore { _dataSource?: ListDataSource; _dataSourceUnlisten: () => void; constructor() { super(); this.listenTo(FocusedPerspectiveStore, this._onPerspectiveChanged); this.createListDataSource(); } dataSource = () => { return this._dataSource; }; createListDataSource = () => { if (typeof this._dataSourceUnlisten === 'function') { this._dataSourceUnlisten(); } if (this._dataSource) { this._dataSource.cleanup(); this._dataSource = null; } const threadsSubscription = FocusedPerspectiveStore.current().threads(); if (threadsSubscription) { this._dataSource = new ThreadListDataSource(threadsSubscription); this._dataSourceUnlisten = this._dataSource.listen(this._onDataChanged, this); } else { this._dataSource = new ListTabular.DataSource.Empty(); } this.trigger(this); Actions.setFocus({ collection: 'thread', item: null }); }; selectionObservable = () => { return Rx.Observable.fromListSelection<Thread>(this); }; // Inbound Events _onPerspectiveChanged = () => { this.createListDataSource(); }; _onDataChanged = ({ previous, next, }: { previous?: QueryResultSet<Thread>; next?: QueryResultSet<Thread> } = {}) => { // This code keeps the focus and keyboard cursor in sync with the thread list. // When the thread list changes, it looks to see if the focused thread is gone, // or no longer matches the query criteria and advances the focus to the next // thread. // This means that removing a thread from view in any way causes selection // to advance to the adjacent thread. Nice and declarative. if (previous && next) { const focused = FocusedContentStore.focused('thread'); const keyboard = FocusedContentStore.keyboardCursor('thread'); const viewModeAutofocuses = WorkspaceStore.layoutMode() === 'split' || WorkspaceStore.topSheet().root === true; const nextQ = next.query(); const matchers = nextQ && nextQ.matchers(); const focusedIndex = focused ? previous.offsetOfId(focused.id) : -1; const keyboardIndex = keyboard ? previous.offsetOfId(keyboard.id) : -1; const nextItemFromIndex = i => { let nextIndex; if ( i > 0 && ((next.modelAtOffset(i - 1) && next.modelAtOffset(i - 1).unread) || i >= next.count()) ) { nextIndex = i - 1; } else { nextIndex = i; } // May return null if no thread is loaded at the next index return next.modelAtOffset(nextIndex); }; const notInSet = function(model) { if (matchers) { return model.matches(matchers) === false; } else { return next.offsetOfId(model.id) === -1; } }; if (viewModeAutofocuses && focused && notInSet(focused)) { Actions.setFocus({ collection: 'thread', item: nextItemFromIndex(focusedIndex) }); } if (keyboard && notInSet(keyboard)) { Actions.setCursorPosition({ collection: 'thread', item: nextItemFromIndex(keyboardIndex), }); } } }; } export default new ThreadListStore(); ```
/content/code_sandbox/app/internal_packages/thread-list/lib/thread-list-store.ts
xml
2016-10-13T06:45:50
2024-08-16T18:14:37
Mailspring
Foundry376/Mailspring
15,331
828
```xml import React from 'react'; import { PropTypes, Actions } from 'mailspring-exports'; import { RetinaImg } from 'mailspring-component-kit'; class SendingCancelButton extends React.Component<{ taskId: string }, { cancelling: boolean }> { static displayName = 'SendingCancelButton'; static propTypes = { taskId: PropTypes.string.isRequired }; constructor(props) { super(props); this.state = { cancelling: false }; } render() { if (this.state.cancelling) { return ( <RetinaImg style={{ width: 20, height: 20, marginTop: 2 }} name="inline-loading-spinner.gif" mode={RetinaImg.Mode.ContentPreserve} /> ); } else { return ( <div onClick={this._onClick} style={{ marginTop: 1 }}> <RetinaImg name="image-cancel-button.png" mode={RetinaImg.Mode.ContentPreserve} /> </div> ); } } _onClick = () => { Actions.cancelTask(this.props.taskId); this.setState({ cancelling: true }); }; } export default SendingCancelButton; ```
/content/code_sandbox/app/internal_packages/draft-list/lib/sending-cancel-button.tsx
xml
2016-10-13T06:45:50
2024-08-16T18:14:37
Mailspring
Foundry376/Mailspring
15,331
241
```xml /* eslint-disable eslint-comments/no-unlimited-disable */ /* eslint-disable */ import Hammer from '@egjs/hammerjs'; import { Direction } from './constants'; import { GesturePropError } from './Errors'; import DraggingGestureHandler from './DraggingGestureHandler'; import { isnan } from './utils'; import { HammerInputExt } from './GestureHandler'; class FlingGestureHandler extends DraggingGestureHandler { get name() { return 'swipe'; } get NativeGestureClass() { return Hammer.Swipe; } onGestureActivated(event: HammerInputExt) { this.sendEvent({ ...event, eventType: Hammer.INPUT_MOVE, isFinal: false, isFirst: true, }); this.isGestureRunning = false; this.hasGestureFailed = false; this.sendEvent({ ...event, eventType: Hammer.INPUT_END, isFinal: true, }); } onRawEvent(ev: HammerInputExt) { super.onRawEvent(ev); if (this.hasGestureFailed) { return; } // Hammer doesn't send a `cancel` event for taps. // Manually fail the event. if (ev.isFinal) { setTimeout(() => { if (this.isGestureRunning) { this.cancelEvent(ev); } }); } else if (!this.hasGestureFailed && !this.isGestureRunning) { // Tap Gesture start event const gesture = this.hammer!.get(this.name); // @ts-ignore FIXME(TS) if (gesture.options.enable(gesture, ev)) { this.onStart(ev); this.sendEvent(ev); } } } getHammerConfig() { return { // @ts-ignore FIXME(TS) pointers: this.config.numberOfPointers, direction: this.getDirection(), }; } getTargetDirections(direction: number) { const directions = []; if (direction & Direction.RIGHT) { directions.push(Hammer.DIRECTION_RIGHT); } if (direction & Direction.LEFT) { directions.push(Hammer.DIRECTION_LEFT); } if (direction & Direction.UP) { directions.push(Hammer.DIRECTION_UP); } if (direction & Direction.DOWN) { directions.push(Hammer.DIRECTION_DOWN); } // const hammerDirection = directions.reduce((a, b) => a | b, 0); return directions; } getDirection() { // @ts-ignore FIXME(TS) const { direction } = this.getConfig(); let directions = []; if (direction & Direction.RIGHT) { directions.push(Hammer.DIRECTION_HORIZONTAL); } if (direction & Direction.LEFT) { directions.push(Hammer.DIRECTION_HORIZONTAL); } if (direction & Direction.UP) { directions.push(Hammer.DIRECTION_VERTICAL); } if (direction & Direction.DOWN) { directions.push(Hammer.DIRECTION_VERTICAL); } directions = [...new Set(directions)]; if (directions.length === 0) return Hammer.DIRECTION_NONE; if (directions.length === 1) return directions[0]; return Hammer.DIRECTION_ALL; } isGestureEnabledForEvent( { numberOfPointers }: any, _recognizer: any, { maxPointers: pointerLength }: any ) { const validPointerCount = pointerLength === numberOfPointers; if (!validPointerCount && this.isGestureRunning) { return { failed: true }; } return { success: validPointerCount }; } updateGestureConfig({ numberOfPointers = 1, direction, ...props }: any) { if (isnan(direction) || typeof direction !== 'number') { throw new GesturePropError('direction', direction, 'number'); } return super.updateGestureConfig({ numberOfPointers, direction, ...props, }); } } export default FlingGestureHandler; ```
/content/code_sandbox/src/web_hammer/FlingGestureHandler.ts
xml
2016-10-27T08:31:38
2024-08-16T12:03:40
react-native-gesture-handler
software-mansion/react-native-gesture-handler
5,989
835
```xml <?xml version="1.0" encoding="utf-8"?> <Project> <PropertyGroup> <Version>1.85.99.0</Version> <Company>tom-englert.de</Company> <Product>ResXManager</Product> <GenerateAssemblyInfo>true</GenerateAssemblyInfo> <LangVersion>11.0</LangVersion> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <DebugType>embedded</DebugType> <DebugSymbols>true</DebugSymbols> <Nullable>enable</Nullable> <WarningsAsErrors>nullable</WarningsAsErrors> <SignAssembly>true</SignAssembly> <AssemblyOriginatorKeyFile>..\Key.snk</AssemblyOriginatorKeyFile> <EnableNETAnalyzers>true</EnableNETAnalyzers> <AnalysisMode>All</AnalysisMode> <AnalysisLevel>latest</AnalysisLevel> <RuntimeIdentifiers>win</RuntimeIdentifiers> <NoWarn>CVSTBLD002;NU1608;CS8002;VSIXCompatibility1001</NoWarn> <SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)</SolutionDir> </PropertyGroup> <IsDeploymentTarget>true</IsDeploymentTarget> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="all" /> <PackageReference Include="Nullable.Extended.Analyzer" PrivateAssets="All" /> </ItemGroup> </Project> ```
/content/code_sandbox/src/Directory.Build.props
xml
2016-06-03T12:04:15
2024-08-15T21:49:16
ResXResourceManager
dotnet/ResXResourceManager
1,299
329
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug|x64"> <Configuration>Debug</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|Win32"> <Configuration>Release</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|x64"> <Configuration>Release</Configuration> <Platform>x64</Platform> </ProjectConfiguration> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\programs\x509\req_app.c" /> </ItemGroup> <ItemGroup> <ProjectReference Include="mbedTLS.vcxproj"> <Project>{46cf2d25-6a36-4189-b59c-e4815388e554}</Project> <LinkLibraryDependencies>true</LinkLibraryDependencies> </ProjectReference> </ItemGroup> <PropertyGroup Label="Globals"> <ProjectGuid>{486B1375-5CFA-C2D2-DD89-C9F497BADCB3}</ProjectGuid> <Keyword>Win32Proj</Keyword> <RootNamespace>req_app</RootNamespace> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <CharacterSet>Unicode</CharacterSet> <PlatformToolset>v141</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <CharacterSet>Unicode</CharacterSet> <PlatformToolset>v141</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <PlatformToolset>v141</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <PlatformToolset>v141</PlatformToolset> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <PropertyGroup Label="UserMacros" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <LinkIncremental>true</LinkIncremental> <IntDir>$(Configuration)\$(TargetName)\</IntDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <LinkIncremental>true</LinkIncremental> <IntDir>$(Configuration)\$(TargetName)\</IntDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <LinkIncremental>false</LinkIncremental> <IntDir>$(Configuration)\$(TargetName)\</IntDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <LinkIncremental>false</LinkIncremental> <IntDir>$(Configuration)\$(TargetName)\</IntDir> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <Optimization>Disabled</Optimization> <PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories> ../../include;../../3rdparty/everest/include/;../../3rdparty/everest/include/everest;../../3rdparty/everest/include/everest/vs2013;../../3rdparty/everest/include/everest/kremlib;../../tests/include </AdditionalIncludeDirectories> </ClCompile> <Link> <SubSystem>Console</SubSystem> <GenerateDebugInformation>true</GenerateDebugInformation> <AdditionalDependencies>bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories>Debug</AdditionalLibraryDirectories> </Link> <ProjectReference> <LinkLibraryDependencies>false</LinkLibraryDependencies> </ProjectReference> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <Optimization>Disabled</Optimization> <PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories> ../../include;../../3rdparty/everest/include/;../../3rdparty/everest/include/everest;../../3rdparty/everest/include/everest/vs2013;../../3rdparty/everest/include/everest/kremlib;../../tests/include </AdditionalIncludeDirectories> </ClCompile> <Link> <SubSystem>Console</SubSystem> <GenerateDebugInformation>true</GenerateDebugInformation> <AdditionalDependencies>bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories>Debug</AdditionalLibraryDirectories> </Link> <ProjectReference> <LinkLibraryDependencies>false</LinkLibraryDependencies> </ProjectReference> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories> ../../include;../../3rdparty/everest/include/;../../3rdparty/everest/include/everest;../../3rdparty/everest/include/everest/vs2013;../../3rdparty/everest/include/everest/kremlib;../../tests/include </AdditionalIncludeDirectories> </ClCompile> <Link> <SubSystem>Console</SubSystem> <GenerateDebugInformation>true</GenerateDebugInformation> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> <AdditionalLibraryDirectories>Release</AdditionalLibraryDirectories> <AdditionalDependencies>bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories> ../../include;../../3rdparty/everest/include/;../../3rdparty/everest/include/everest;../../3rdparty/everest/include/everest/vs2013;../../3rdparty/everest/include/everest/kremlib;../../tests/include </AdditionalIncludeDirectories> </ClCompile> <Link> <SubSystem>Console</SubSystem> <GenerateDebugInformation>true</GenerateDebugInformation> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> <AdditionalLibraryDirectories>Release</AdditionalLibraryDirectories> <AdditionalDependencies>bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies> </Link> </ItemDefinitionGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> </Project> ```
/content/code_sandbox/third_party/mbedtls/repo/visualc/VS2017/req_app.vcxproj
xml
2016-04-08T20:47:41
2024-08-16T19:19:28
openthread
openthread/openthread
3,445
2,181
```xml <?xml version="1.0" encoding="utf-8"?> <!-- ~ ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <!-- Material3 alternative to textColorHint for personalized theme --> <selector xmlns:android="path_to_url"> <item android:state_enabled="true" android:state_pressed="true" android:alpha="@dimen/material_emphasis_medium" android:color="@color/material_personalized_color_on_background" /> <item android:alpha="@dimen/material_emphasis_disabled" android:color="@color/material_personalized_color_on_background" /> </selector> ```
/content/code_sandbox/lib/java/com/google/android/material/color/res/color/material_personalized_hint_foreground.xml
xml
2016-12-05T16:11:29
2024-08-16T17:51:42
material-components-android
material-components/material-components-android
16,176
159
```xml import { vtkAlgorithm, vtkObject } from "../../../interfaces"; import { Vector3 } from "../../../types"; export enum ShapeType { TRIANGLE, STAR, ARROW_4, ARROW_6 } /** * */ export interface IArrow2DSourceInitialValues { base?: number; height?: number; width?: number; thickness?: number; center?: Vector3; pointType?: string; origin?: Vector3; direction?: Vector3; } type vtkArrow2DSourceBase = vtkObject & Omit<vtkAlgorithm, | 'getInputData' | 'setInputData' | 'setInputConnection' | 'getInputConnection' | 'addInputConnection' | 'addInputData'>; export interface vtkArrow2DSource extends vtkArrow2DSourceBase { /** * Get the cap the base of the cone with a polygon. * @default 0 */ getBase(): number; /** * Get the center of the cone. * @default [0, 0, 0] */ getCenter(): Vector3; /** * Get the center of the cone. */ getCenterByReference(): Vector3; /** * Get the orientation vector of the cone. * @default [1.0, 0.0, 0.0] */ getDirection(): Vector3; /** * Get the orientation vector of the cone. */ getDirectionByReference(): Vector3; /** * Get the height of the cone. * @default 1.0 */ getHeight(): number; /** * Get the base thickness of the cone. * @default 0.5 */ getThickness(): number; /** * Get the number of facets used to represent the cone. * @default 6 */ getWidth(): number; /** * Expose methods * @param inData * @param outData */ requestData(inData: any, outData: any): void; /** * Turn on/off whether to cap the base of the cone with a polygon. * @param {Number} base The value of the */ setBase(base: number): boolean; /** * Set the center of the cone. * It is located at the middle of the axis of the cone. * !!! warning * This is not the center of the base of the cone! * @param {Number} x The x coordinate. * @param {Number} y The y coordinate. * @param {Number} z The z coordinate. * @default [0, 0, 0] */ setCenter(x: number, y: number, z: number): boolean; /** * Set the center of the cone. * It is located at the middle of the axis of the cone. * !!! warning * This is not the center of the base of the cone! * @param {Vector3} center The center of the cone coordinates. * @default [0, 0, 0] */ setCenterFrom(center: Vector3): boolean; /** * Set the direction for the arrow. * @param {Number} x The x coordinate. * @param {Number} y The y coordinate. * @param {Number} z The z coordinate. */ setDirection(x: number, y: number, z: number): boolean; /** * Set the direction for the arrow 2D. * @param {Vector3} direction The direction coordinates. */ setDirection(direction: Vector3): boolean; /** * Set the direction for the arrow 2D. * @param {Vector3} direction The direction coordinates. */ setDirectionFrom(direction: Vector3): boolean; /** * Set the height of the cone. * This is the height along the cone in its specified direction. * @param {Number} height The height value. */ setHeight(height: number): boolean; /** * Set the base thickness of the cone. * @param {Number} thickness The thickness value. */ setThickness(thickness: number): boolean; /** * Set the number of facets used to represent the cone. * @param {Number} width The width value. */ setWidth(width: number): boolean; } /** * Method used to decorate a given object (publicAPI+model) with vtkArrow2DSource characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {IArrow2DSourceInitialValues} [initialValues] (default: {}) */ export function extend(publicAPI: object, model: object, initialValues?: IArrow2DSourceInitialValues): void; /** * Method used to create a new instance of vtkArrow2DSource. * @param {IArrow2DSourceInitialValues} [initialValues] for pre-setting some of its content */ export function newInstance(initialValues?: IArrow2DSourceInitialValues): vtkArrow2DSource; /** * vtkArrow2DSource creates a cone centered at a specified point and pointing in a specified direction. * (By default, the center is the origin and the direction is the x-axis.) Depending upon the resolution of this object, * different representations are created. If resolution=0 a line is created; if resolution=1, a single triangle is created; * if resolution=2, two crossed triangles are created. For resolution > 2, a 3D cone (with resolution number of sides) * is created. It also is possible to control whether the bottom of the cone is capped with a (resolution-sided) polygon, * and to specify the height and thickness of the cone. */ export declare const vtkArrow2DSource: { newInstance: typeof newInstance, extend: typeof extend, }; export default vtkArrow2DSource; ```
/content/code_sandbox/static/sim/Sources/Filters/Sources/Arrow2DSource/index.d.ts
xml
2016-12-03T13:41:18
2024-08-15T12:50:03
engineercms
3xxx/engineercms
1,341
1,280
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import absf = require( './index' ); // TESTS // // The function returns a number... { absf( 8 ); // $ExpectType number } // The compiler throws an error if the function is provided a value other than a number... { absf( true ); // $ExpectError absf( false ); // $ExpectError absf( null ); // $ExpectError absf( undefined ); // $ExpectError absf( '5' ); // $ExpectError absf( [] ); // $ExpectError absf( {} ); // $ExpectError absf( ( x: number ): number => x ); // $ExpectError } // The compiler throws an error if the function is provided insufficient arguments... { absf(); // $ExpectError } ```
/content/code_sandbox/lib/node_modules/@stdlib/math/base/special/absf/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
228
```xml <!-- or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file path_to_url Unless required by applicable law or agreed to in writing, "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY specific language governing permissions and limitations --> <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.pulsar</groupId> <artifactId>pulsar-io</artifactId> <version>4.0.0-SNAPSHOT</version> </parent> <artifactId>pulsar-io-hdfs2</artifactId> <name>Pulsar IO :: Hdfs2</name> <dependencies> <dependency> <groupId>${project.groupId}</groupId> <artifactId>pulsar-io-core</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-yaml</artifactId> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <version>${hadoop2.version}</version> <exclusions> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> <exclusion> <groupId>org.slf4j</groupId> <artifactId>*</artifactId> </exclusion> <exclusion> <groupId>org.apache.avro</groupId> <artifactId>avro</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.nifi</groupId> <artifactId>nifi-nar-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.github.spotbugs</groupId> <artifactId>spotbugs-maven-plugin</artifactId> <version>${spotbugs-maven-plugin.version}</version> <configuration> <excludeFilterFile>${basedir}/src/main/resources/findbugsExclude.xml</excludeFilterFile> </configuration> <executions> <execution> <id>spotbugs</id> <phase>verify</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <profiles> <!-- The only working way for OWASP dependency checker plugin to exclude module when failBuildOnCVSS is used in the root pom's plugin. --> <profile> <id>owasp-dependency-check</id> <build> <plugins> <plugin> <groupId>org.owasp</groupId> <artifactId>dependency-check-maven</artifactId> <executions> <execution> <goals> <goal>aggregate</goal> </goals> <phase>none</phase> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project> ```
/content/code_sandbox/pulsar-io/hdfs2/pom.xml
xml
2016-06-28T07:00:03
2024-08-16T17:12:43
pulsar
apache/pulsar
14,047
855
```xml import type { ExtraDependencies, ModuleDescriptor, ResolveOptions, SearchResults } from '../types'; /** * Resolves search results to a list of platform-specific configuration. */ export declare function resolveModulesAsync(searchResults: SearchResults, options: ResolveOptions): Promise<ModuleDescriptor[]>; /** * Resolves the extra build dependencies for the project, such as additional Maven repositories or CocoaPods pods. */ export declare function resolveExtraBuildDependenciesAsync(options: ResolveOptions): Promise<ExtraDependencies>; ```
/content/code_sandbox/packages/expo-modules-autolinking/build/autolinking/resolveModules.d.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
100
```xml import { objectDepthState } from '../stores'; import { getElements } from '../util'; import type { StateManager } from '../state'; type ObjectDepthState = { hidden: boolean }; /** * Change toggle button's text and attribute to reflect the current state. * * @param hidden `true` if the current state is hidden, `false` otherwise. * @param button Toggle element. */ function toggleDepthButton(hidden: boolean, button: HTMLButtonElement): void { button.setAttribute('data-depth-indicators', hidden ? 'hidden' : 'shown'); button.innerText = hidden ? 'Show Depth Indicators' : 'Hide Depth Indicators'; } /** * Show all depth indicators. */ function showDepthIndicators(): void { for (const element of getElements<HTMLDivElement>('.record-depth')) { element.style.display = ''; } } /** * Hide all depth indicators. */ function hideDepthIndicators(): void { for (const element of getElements<HTMLDivElement>('.record-depth')) { element.style.display = 'none'; } } /** * Update object depth local state and visualization when the button is clicked. * * @param state State instance. * @param button Toggle element. */ function handleDepthToggle(state: StateManager<ObjectDepthState>, button: HTMLButtonElement): void { const initiallyHidden = state.get('hidden'); state.set('hidden', !initiallyHidden); const hidden = state.get('hidden'); if (hidden) { hideDepthIndicators(); } else { showDepthIndicators(); } toggleDepthButton(hidden, button); } /** * Initialize object depth toggle buttons. */ export function initDepthToggle(): void { const initiallyHidden = objectDepthState.get('hidden'); for (const button of getElements<HTMLButtonElement>('button.toggle-depth')) { toggleDepthButton(initiallyHidden, button); button.addEventListener( 'click', event => { handleDepthToggle(objectDepthState, event.currentTarget as HTMLButtonElement); }, false, ); } // Synchronize local state with default DOM elements. if (initiallyHidden) { hideDepthIndicators(); } else if (!initiallyHidden) { showDepthIndicators(); } } ```
/content/code_sandbox/netbox/project-static/src/buttons/depthToggle.ts
xml
2016-02-29T14:15:46
2024-08-16T16:25:20
netbox
netbox-community/netbox
15,588
471
```xml import { PayloadAction, createSlice } from "@reduxjs/toolkit"; import { User, getUserData } from "../services/jsonPlaceholder"; import { AppThunk, AppState } from "."; interface UserDate { [id: string]: { readyStatus: string; item?: User; error?: string; }; } interface Success { id: string; item: User; } interface Failure { id: string; error: string; } const userData = createSlice({ name: "userData", initialState: {} as UserDate, reducers: { getRequesting: (state, { payload }: PayloadAction<string>) => { state[payload] = { readyStatus: "request" }; }, getSuccess: (state, { payload }: PayloadAction<Success>) => { state[payload.id] = { readyStatus: "success", item: payload.item }; }, getFailure: (state, { payload }: PayloadAction<Failure>) => { state[payload.id] = { readyStatus: "failure", error: payload.error }; }, }, }); export default userData.reducer; export const { getRequesting, getSuccess, getFailure } = userData.actions; export const fetchUserData = (id: string): AppThunk => async (dispatch) => { dispatch(getRequesting(id)); const { error, data } = await getUserData(id); if (error) { dispatch(getFailure({ id, error: error.message })); } else { dispatch(getSuccess({ id, item: data as User })); } }; const shouldFetchUserData = (state: AppState, id: string) => state.userData[id]?.readyStatus !== "success"; export const fetchUserDataIfNeed = (id: string): AppThunk => (dispatch, getState) => { if (shouldFetchUserData(getState(), id)) return dispatch(fetchUserData(id)); return null; }; ```
/content/code_sandbox/src/store/userData.ts
xml
2016-08-29T10:26:56
2024-08-12T08:38:34
react-cool-starter
wellyshen/react-cool-starter
1,309
406
```xml import withGuide, { GuideProps } from './withGuide'; import TextGuideView from './views/Text'; import PointGuideView from './views/Point'; import LineGuideView from './views/Line'; import ArcGuideView from './views/Arc'; import RectGuideView from './views/Rect'; import ImageGuideView from './views/Image'; import TagGuideView from './views/Tag'; import LottieGuideView from './views/Lottie'; import PolylineGuideView from './views/Polyline'; const DefaultGuideView = () => null; const TextGuide = withGuide(TextGuideView); const PointGuide = withGuide(PointGuideView); const LineGuide = withGuide(LineGuideView); const ArcGuide = withGuide(ArcGuideView); const RectGuide = withGuide(RectGuideView); const ImageGuide = withGuide(ImageGuideView); const TagGuide = withGuide(TagGuideView); const LottieGuide = withGuide(LottieGuideView); const PolylineGuide = withGuide(PolylineGuideView); export { GuideProps }; export default withGuide(DefaultGuideView); export { withGuide, TextGuide, PointGuide, ArcGuide, LineGuide, RectGuide, ImageGuide, TagGuide, LottieGuide, PolylineGuide, }; ```
/content/code_sandbox/packages/f2/src/components/guide/index.tsx
xml
2016-08-29T06:26:23
2024-08-16T15:50:14
F2
antvis/F2
7,877
269
```xml <vector xmlns:android="path_to_url" xmlns:tools="path_to_url" android:width="384dp" android:height="512dp" android:viewportWidth="384.0" android:viewportHeight="512.0" tools:keep="@drawable/fa_fly"> <path android:fillColor="#FFFFFFFF" android:pathData="M197.8,427.8c12.9,11.7 33.7,33.3 33.2,50.7 0,0.8 -0.1,1.6 -0.1,2.5 -1.8,19.8 -18.8,31.1 -39.1,31 -25,-0.1 -39.9,-16.8 -38.7,-35.8 1,-16.2 20.5,-36.7 32.4,-47.6 2.3,-2.1 2.7,-2.7 5.6,-3.6 3.4,0 3.9,0.3 6.7,2.8zM331.9,67.3c-16.3,-25.7 -38.6,-40.6 -63.3,-52.1C243.1,4.5 214,-0.2 192,0c-44.1,0 -71.2,13.2 -81.1,17.3C57.3,45.2 26.5,87.2 28,158.6c7.1,82.2 97,176 155.8,233.8 1.7,1.6 4.5,4.5 6.2,5.1l3.3,0.1c2.1,-0.7 1.8,-0.5 3.5,-2.1 52.3,-49.2 140.7,-145.8 155.9,-215.7 7,-39.2 3.1,-72.5 -20.8,-112.5zM186.8,351.9c-28,-51.1 -65.2,-130.7 -69.3,-189 -3.4,-47.5 11.4,-131.2 69.3,-136.7v325.7zM328.7,180c-16.4,56.8 -77.3,128 -118.9,170.3C237.6,298.4 275,217 277,158.4c1.6,-45.9 -9.8,-105.8 -48,-131.4 88.8,18.3 115.5,98.1 99.7,153z"/> </vector> ```
/content/code_sandbox/mobile/src/main/res/drawable/fa_fly.xml
xml
2016-10-24T13:23:25
2024-08-16T07:20:37
freeotp-android
freeotp/freeotp-android
1,387
619
```xml /** * vscode api case * `vscode:uninstall` */ import VSCODE_BASE from 'vscode'; let vscode: typeof VSCODE_BASE | undefined; try { vscode = require('vscode'); } catch { // nothing todo } export { vscode }; ```
/content/code_sandbox/src/utils/vsc.ts
xml
2016-05-15T09:50:55
2024-08-16T02:15:39
vscode-background
shalldie/vscode-background
1,281
63
```xml import { Component, ViewChild } from "@angular/core"; import { MatBottomSheet } from "@angular/material/bottom-sheet"; import { RequestOptionsComponent } from "./options/request-options.component"; import { UpdateType } from "../models/UpdateType"; import { LidarrService } from "app/services"; import { take } from "rxjs"; @Component({ templateUrl: "./requests-list.component.html", styleUrls: ["./requests-list.component.scss"] }) export class RequestsListComponent { constructor(private bottomSheet: MatBottomSheet, private lidarrService: LidarrService) { } public readonly musicEnabled$ = this.lidarrService.enabled().pipe(take(1)); public onOpenOptions(event: { request: any, filter: any, onChange: any, manageOwnRequests: boolean, isAdmin: boolean, has4kRequest: boolean, hasRegularRequest: boolean }) { const ref = this.bottomSheet.open(RequestOptionsComponent, { data: { id: event.request.id, type: event.request.requestType, canApprove: event.request.canApprove, manageOwnRequests: event.manageOwnRequests, isAdmin: event.isAdmin, has4kRequest: event.has4kRequest, hasRegularRequest: event.hasRegularRequest } }); ref.afterDismissed().subscribe((result) => { if(!result) { return; } if (result.type == UpdateType.Delete) { event.filter(); return; } if (result.type == UpdateType.Approve) { // Need to do this here, as the status is calculated on the server event.request.requestStatus = 'Common.ProcessingRequest'; event.onChange(); return; } if (result.type == UpdateType.Availability) { // Need to do this here, as the status is calculated on the server event.request.requestStatus = 'Common.Available'; event.onChange(); return; } if (result.type == UpdateType.Deny) { event.request.requestStatus = 'Common.Denied'; event.onChange(); return; } }); } } ```
/content/code_sandbox/src/Ombi/ClientApp/src/app/requests-list/components/requests-list.component.ts
xml
2016-02-25T12:14:54
2024-08-14T22:56:44
Ombi
Ombi-app/Ombi
3,674
435
```xml import { IDropdownOption } from "@fluentui/react"; export interface IDatePickerMenuProps { onDateSelected: (dateSelection: string) => void; timeSpanMenus: IDropdownOption[]; initialValue: string; cultureName: string; } ```
/content/code_sandbox/samples/react-dashboards/src/components/DatePickerMenu/IDatePickerMenuProps.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
56
```xml /* * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { PropertyValues } from 'lit'; import { assignSlotNames, property } from '@cds/core/internal'; import { CdsButtonAction } from '@cds/core/button-action'; /** * Control Action Button * * ```typescript * import '@cds/core/forms/register.js'; * ``` * * ```html * <cds-control-action> * * </cds-control-action> * ``` * * @element cds-control-action * @slot - For projecting text content or cds-icon */ export class CdsControlAction extends CdsButtonAction { @property({ type: String, reflect: true }) action: 'label' | 'prefix' | 'suffix'; updated(props: PropertyValues<this>) { super.updated(props); assignSlotNames([this, this.action ?? false]); } } ```
/content/code_sandbox/packages/core/src/forms/control-action/control-action.element.ts
xml
2016-09-29T17:24:17
2024-08-11T17:06:15
clarity
vmware-archive/clarity
6,431
201
```xml import { commonCampaignInputs, commonCampaignTypes, commonFilterTypes, paginateTypes } from './common'; export const types = ` type DonateCampaign @key(fields: "_id") @cacheControl(maxAge: 3) { _id: String, ${commonCampaignTypes} maxScore: Float awards: JSON donatesCount: Int, } `; export const queries = ` donateCampaignDetail(_id: String!): DonateCampaign donateCampaigns(${commonFilterTypes} ${paginateTypes}): [DonateCampaign] cpDonateCampaigns: [DonateCampaign] donateCampaignsCount(${commonFilterTypes}): Int `; const DonateCampaignDoc = ` ${commonCampaignInputs} maxScore: Float awards: JSON `; export const mutations = ` donateCampaignsAdd(${DonateCampaignDoc}): DonateCampaign donateCampaignsEdit(_id: String!, ${DonateCampaignDoc}): DonateCampaign donateCampaignsRemove(_ids: [String]): JSON `; ```
/content/code_sandbox/packages/plugin-loyalties-api/src/graphql/schema/donateCampaign.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
218
```xml import * as React from 'react'; import './loadingSpinner.css'; import { promiseTrackerHoc } from 'react-promise-tracker'; import {BeatLoader} from 'react-spinners'; interface myProps { trackedPromiseInProgress?: boolean; } const InnerLoadingSpinerComponent= (props:myProps) => { if (props.trackedPromiseInProgress === true) { return ( <div className="loading"> <BeatLoader loading= {props.trackedPromiseInProgress} /> </div> ) } else { return null } } export const LoadingSpinnerComponent = promiseTrackerHoc(InnerLoadingSpinerComponent); ```
/content/code_sandbox/old_class_components_samples/14 AsyncCalls_Redux_Saga/src/common/components/spinner/loadingSpinner.tsx
xml
2016-02-28T11:58:58
2024-07-21T08:53:34
react-typescript-samples
Lemoncode/react-typescript-samples
1,846
137
```xml export * from './star'; ```
/content/code_sandbox/src/app/components/icons/star/public_api.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
7
```xml import Hammer from '@egjs/hammerjs'; import { EventMap, MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD, MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD, } from './constants'; import DraggingGestureHandler from './DraggingGestureHandler'; import { isValidNumber, isnan, TEST_MIN_IF_NOT_NAN, VEC_LEN_SQ } from './utils'; import { State } from '../State'; import { Config, HammerInputExt } from './GestureHandler'; class PanGestureHandler extends DraggingGestureHandler { get name() { return 'pan'; } get NativeGestureClass() { return Hammer.Pan; } getHammerConfig() { return { ...super.getHammerConfig(), direction: this.getDirection(), }; } getState(type: keyof typeof EventMap) { const nextState = super.getState(type); // Ensure that the first state sent is `BEGAN` and not `ACTIVE` if ( this.previousState === State.UNDETERMINED && nextState === State.ACTIVE ) { return State.BEGAN; } return nextState; } getDirection() { const config = this.getConfig(); const { activeOffsetXStart, activeOffsetXEnd, activeOffsetYStart, activeOffsetYEnd, minDist, } = config; let directions: number[] = []; let horizontalDirections = []; if (!isnan(minDist)) { return Hammer.DIRECTION_ALL; } if (!isnan(activeOffsetXStart)) { horizontalDirections.push(Hammer.DIRECTION_LEFT); } if (!isnan(activeOffsetXEnd)) { horizontalDirections.push(Hammer.DIRECTION_RIGHT); } if (horizontalDirections.length === 2) { horizontalDirections = [Hammer.DIRECTION_HORIZONTAL]; } directions = directions.concat(horizontalDirections); let verticalDirections = []; if (!isnan(activeOffsetYStart)) { verticalDirections.push(Hammer.DIRECTION_UP); } if (!isnan(activeOffsetYEnd)) { verticalDirections.push(Hammer.DIRECTION_DOWN); } if (verticalDirections.length === 2) { verticalDirections = [Hammer.DIRECTION_VERTICAL]; } directions = directions.concat(verticalDirections); if (!directions.length) { return Hammer.DIRECTION_NONE; } if ( directions[0] === Hammer.DIRECTION_HORIZONTAL && directions[1] === Hammer.DIRECTION_VERTICAL ) { return Hammer.DIRECTION_ALL; } if (horizontalDirections.length && verticalDirections.length) { return Hammer.DIRECTION_ALL; } return directions[0]; } getConfig() { if (!this.hasCustomActivationCriteria) { // Default config // If no params have been defined then this config should emulate the native gesture as closely as possible. return { minDistSq: 10, }; } return this.config; } shouldFailUnderCustomCriteria( { deltaX, deltaY }: HammerInputExt, criteria: any ) { return ( (!isnan(criteria.failOffsetXStart) && deltaX < criteria.failOffsetXStart) || (!isnan(criteria.failOffsetXEnd) && deltaX > criteria.failOffsetXEnd) || (!isnan(criteria.failOffsetYStart) && deltaY < criteria.failOffsetYStart) || (!isnan(criteria.failOffsetYEnd) && deltaY > criteria.failOffsetYEnd) ); } shouldActivateUnderCustomCriteria( { deltaX, deltaY, velocity }: any, criteria: any ) { return ( (!isnan(criteria.activeOffsetXStart) && deltaX < criteria.activeOffsetXStart) || (!isnan(criteria.activeOffsetXEnd) && deltaX > criteria.activeOffsetXEnd) || (!isnan(criteria.activeOffsetYStart) && deltaY < criteria.activeOffsetYStart) || (!isnan(criteria.activeOffsetYEnd) && deltaY > criteria.activeOffsetYEnd) || TEST_MIN_IF_NOT_NAN( VEC_LEN_SQ({ x: deltaX, y: deltaY }), criteria.minDistSq ) || TEST_MIN_IF_NOT_NAN(velocity.x, criteria.minVelocityX) || TEST_MIN_IF_NOT_NAN(velocity.y, criteria.minVelocityY) || TEST_MIN_IF_NOT_NAN(VEC_LEN_SQ(velocity), criteria.minVelocitySq) ); } shouldMultiFingerPanFail({ pointerLength, scale, deltaRotation, }: { deltaRotation: number; pointerLength: number; scale: number; }) { if (pointerLength <= 1) { return false; } // Test if the pan had too much pinching or rotating. const deltaScale = Math.abs(scale - 1); const absDeltaRotation = Math.abs(deltaRotation); if (deltaScale > MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD) { // > If the threshold doesn't seem right. // You can log the value which it failed at here: return true; } if (absDeltaRotation > MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD) { // > If the threshold doesn't seem right. // You can log the value which it failed at here: return true; } return false; } updateHasCustomActivationCriteria( criteria: Config & { minVelocityX?: number; minVelocityY?: number } ) { return ( isValidNumber(criteria.minDistSq) || isValidNumber(criteria.minVelocityX) || isValidNumber(criteria.minVelocityY) || isValidNumber(criteria.minVelocitySq) || isValidNumber(criteria.activeOffsetXStart) || isValidNumber(criteria.activeOffsetXEnd) || isValidNumber(criteria.activeOffsetYStart) || isValidNumber(criteria.activeOffsetYEnd) ); } isGestureEnabledForEvent( props: any, _recognizer: any, inputData: HammerInputExt & { deltaRotation: number } ) { if (this.shouldFailUnderCustomCriteria(inputData, props)) { return { failed: true }; } const velocity = { x: inputData.velocityX, y: inputData.velocityY }; if ( this.hasCustomActivationCriteria && this.shouldActivateUnderCustomCriteria( { deltaX: inputData.deltaX, deltaY: inputData.deltaY, velocity }, props ) ) { if ( this.shouldMultiFingerPanFail({ pointerLength: inputData.maxPointers, scale: inputData.scale, deltaRotation: inputData.deltaRotation, }) ) { return { failed: true, }; } return { success: true }; } return { success: false }; } } export default PanGestureHandler; ```
/content/code_sandbox/src/web_hammer/PanGestureHandler.ts
xml
2016-10-27T08:31:38
2024-08-16T12:03:40
react-native-gesture-handler
software-mansion/react-native-gesture-handler
5,989
1,434
```xml export * from './account/index'; export * from './cards/index'; export * from './cart/index'; export * from './elements/index'; export * from './global/index'; export * from './product/index'; export * from './sections/index'; export {CountrySelector} from './CountrySelector.client'; export {CustomFont} from './CustomFont.client'; export {HeaderFallback} from './HeaderFallback'; ```
/content/code_sandbox/packages/hydrogen/test/fixtures/demo-store-ts/src/components/index.ts
xml
2016-09-09T01:12:08
2024-08-16T17:39:45
vercel
vercel/vercel
12,545
82
```xml import { expect } from "chai"; import { Form } from "../../../../src"; import { FormInterface } from "../../../../src/models/FormInterface"; const fields = [ 'any.type', 'any.other' ]; const values = { any: { type: 'a', other: 'b', }, }; class NewForm extends Form { hooks() { return { onInit(form: FormInterface) { describe("Check initial values state:", () => { it("form `values()` should be equal `true`", () => expect(form.values()).to.be.deep.equal(values)); it("form any `value` should be equal `a`", () => expect(form.$('any').value).to.be.deep.equal(values.any)); it("form any.type `value` should be equal `a`", () => expect(form.$('any.type').value).to.be.equal(values.any.type)); it("form any.other `value` should be equal `b`", () => expect(form.$('any.other').value).to.be.equal(values.any.other)); }); } } } } export default new NewForm({ fields, values }, { name: "$454" }); ```
/content/code_sandbox/tests/data/forms/fixes/form.454.ts
xml
2016-06-20T22:10:41
2024-08-10T13:14:33
mobx-react-form
foxhound87/mobx-react-form
1,093
252
```xml import { nextTestSetup } from 'e2e-utils' export function runTest({ next }) { it('should allow navigation on not-found', async () => { const browser = await next.browser('/trigger-404') expect(await browser.elementByCss('#not-found-component').text()).toBe( 'Not Found!' ) expect( await browser .elementByCss('#to-result') .click() .waitForElementByCss('#result-page') .text() ).toBe('Result Page!') }) it('should allow navigation on error', async () => { const browser = await next.browser('/trigger-error') expect(await browser.elementByCss('#error-component').text()).toBe( 'Error Happened!' ) expect( await browser .elementByCss('#to-result') .click() .waitForElementByCss('#result-page') .text() ).toBe('Result Page!') }) it('should allow navigation to other routes on route that was initially not-found', async () => { // Intentionally non-existent route. const browser = await next.browser('/testabc') expect(await browser.elementByCss('#not-found-component').text()).toBe( 'Not Found!' ) expect( await browser .elementByCss('#to-result') .click() .waitForElementByCss('#result-page') .text() ).toBe('Result Page!') }) it('should allow navigation back to route that was initially not-found', async () => { // Intentionally non-existent route. const browser = await next.browser('/testabc') expect(await browser.elementByCss('#not-found-component').text()).toBe( 'Not Found!' ) await browser .elementByCss('#to-result') .click() .waitForElementByCss('#result-page') .back() .waitForElementByCss('#not-found-component') }) it('should allow navigating to a page calling notfound', async () => { const browser = await next.browser('/') await browser .elementByCss('#trigger-404-link') .click() .waitForElementByCss('#not-found-component') expect(await browser.elementByCss('#not-found-component').text()).toBe( 'Not Found!' ) await browser.back().waitForElementByCss('#homepage') expect(await browser.elementByCss('#homepage').text()).toBe('Home') }) it('should allow navigating to a non-existent page', async () => { const browser = await next.browser('/') await browser .elementByCss('#non-existent-link') .click() .waitForElementByCss('#not-found-component') expect(await browser.elementByCss('#not-found-component').text()).toBe( 'Not Found!' ) await browser.back().waitForElementByCss('#homepage') expect(await browser.elementByCss('#homepage').text()).toBe('Home') }) it('should be able to navigate to other page from root not-found page', async () => { const browser = await next.browser('/') await browser .elementByCss('#go-to-404') .click() .waitForElementByCss('#not-found-component') await browser .elementByCss('#go-to-dynamic') .click() .waitForElementByCss('#dynamic') expect(await browser.elementByCss('#dynamic').text()).toBe( 'Dynamic page: foo' ) await browser .elementByCss('#go-to-dynamic-404') .click() .waitForElementByCss('#not-found-component') await browser .elementByCss('#go-to-index') .click() .waitForElementByCss('#homepage') }) } describe('app dir - not found navigation', () => { const { next } = nextTestSetup({ files: __dirname, }) runTest({ next }) }) ```
/content/code_sandbox/test/e2e/app-dir/error-boundary-navigation/index.test.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
843
```xml import { deepValueGetter } from './column-prop-getters'; describe('deepValueGetter', () => { it('should get values one level deep', () => { const data = { a: { value: 123 } }; expect(deepValueGetter(data, 'a.value')).toEqual(123); }); it('should get values two levels deep', () => { const data = { a: { b: { value: 'foo' } } }; expect(deepValueGetter(data, 'a.b.value')).toEqual('foo'); }); it('should return empty string on missing nested field', () => { const data = { a: {} }; expect(deepValueGetter(data, 'a.x.value')).toEqual(''); }); it('should return empty string on missing final field', () => { const data = { a: {} }; expect(deepValueGetter(data, 'a.value')).toEqual(''); }); it('should return empty string on missing root field', () => { const data = { a: {} }; expect(deepValueGetter(data, 'x.value')).toEqual(''); }); it('should check for root-level fields with dots in name', () => { const data = { 'a.b.value': 5 }; expect(deepValueGetter(data, 'a.b.value')).toEqual(5); }); it('should get array-element two-level deep', () => { const data = { a: { b: [123] } }; expect(deepValueGetter(data, 'a.b.0')).toEqual(123); }); it('should get value of object inside an array-element', () => { const data = { a: { b: [{ c: 123 }] } }; expect(deepValueGetter(data, 'a.b.0.c')).toEqual(123); }); it('should get value of object inside a double array-element', () => { const data = { a: { b: [[123]] } }; expect(deepValueGetter(data, 'a.b.0.0')).toEqual(123); }); it('should check for root-level fields with square brackets in name', () => { const data = { 'a.b.1.value': 5 }; expect(deepValueGetter(data, 'a.b.1.value')).toEqual(5); }); }); ```
/content/code_sandbox/projects/swimlane/ngx-datatable/src/lib/utils/column-prop-getters.spec.ts
xml
2016-05-31T19:25:47
2024-08-06T15:02:47
ngx-datatable
swimlane/ngx-datatable
4,624
537
```xml import 'rxjs-compat/add/observable/using'; ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/src/add/observable/using.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
12
```xml /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /** If connecting to a live Firebase project (one that you set up in the * Firebase console) put your config vars into the `environment.prod.ts` file. * Otherwise, leave untouched to enable connection to demo project and emulators. */ export const projectConfig = { projectId: 'demo-friendly-eats', apiKey: 'API_KEY_UNUSED' } ```
/content/code_sandbox/firestore/src/environments/environment.default.ts
xml
2016-04-26T17:13:48
2024-08-16T13:54:58
quickstart-js
firebase/quickstart-js
5,069
115
```xml /* * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modified, * propagated, or distributed except according to the terms contained in the * LICENSE file. * * Removal or modification of this copyright notice is prohibited. */ import { CommandExecuteContext, CommandVerifyContext, VerificationResult, VerifyStatus, } from '../../../../state_machine'; import { panic } from '../../../../utils/panic'; import { BaseCrossChainUpdateCommand } from '../../base_cross_chain_update_command'; import { CONTEXT_STORE_KEY_CCM_PROCESSING, EVENT_TOPIC_CCM_EXECUTION } from '../../constants'; import { CrossChainUpdateTransactionParams } from '../../types'; import { getIDFromCCMBytes } from '../../utils'; import { SidechainInteroperabilityInternalMethod } from '../internal_method'; // path_to_url#sidechaincrosschainupdate export class SubmitSidechainCrossChainUpdateCommand extends BaseCrossChainUpdateCommand<SidechainInteroperabilityInternalMethod> { public async verify( context: CommandVerifyContext<CrossChainUpdateTransactionParams>, ): Promise<VerificationResult> { await this.verifyCommon(context, false); return { status: VerifyStatus.OK, }; } public async execute( context: CommandExecuteContext<CrossChainUpdateTransactionParams>, ): Promise<void> { const { params } = context; // This call can throw error and fails a transaction await this.verifyCertificateSignatureAndPartnerChainOutboxRoot(context); const [decodedCCMs, ok] = await this.beforeCrossChainMessagesExecution(context, false); if (!ok) { return; } try { // Update the context to indicate that now we start the CCM processing. context.contextStore.set(CONTEXT_STORE_KEY_CCM_PROCESSING, true); for (let i = 0; i < decodedCCMs.length; i += 1) { const ccm = decodedCCMs[i]; const ccmBytes = params.inboxUpdate.crossChainMessages[i]; const ccmID = getIDFromCCMBytes(ccmBytes); const ccmContext = { ...context, ccm, eventQueue: context.eventQueue.getChildQueue( Buffer.concat([EVENT_TOPIC_CCM_EXECUTION, ccmID]), ), }; await this.apply(ccmContext); // We append at the very end. This implies that if the message leads to a chain termination, // it is still possible to recover it (because the channel terminated message // would refer to an inbox where the message has not been appended yet). await this.internalMethod.appendToInboxTree(context, params.sendingChainID, ccmBytes); } } catch (error) { panic(context.logger, error as Error); } finally { // Update the context to indicate that now we stop the CCM processing. context.contextStore.delete(CONTEXT_STORE_KEY_CCM_PROCESSING); } await this.afterCrossChainMessagesExecution(context); } } ```
/content/code_sandbox/framework/src/modules/interoperability/sidechain/commands/submit_sidechain_cross_chain_update.ts
xml
2016-02-01T21:45:35
2024-08-15T19:16:48
lisk-sdk
LiskArchive/lisk-sdk
2,721
676
```xml import make from './indexer'; const foo = { id: 1, data: 'foo' }; const bar = { id: 2, data: 'bar' }; const baz = { id: 3, data: 'baz' }; test('should resolve: $name', () => { const index = make((item) => item.id, [foo, bar]); expect(index.get(3)).toBeNull(); expect(index.has(baz)).toBe(false); expect(index.hasId(3)).toBe(false); expect(index.get(1)?.data).toBe('foo'); // @ts-ignore expect(index.get('1')?.data).toBe('foo'); expect(index.get(2)?.data).toBe('bar'); index.add(baz); expect(index.get(3)?.data).toBe('baz'); index.removeById(3); expect(index.get(3)).toBeNull(); index.add(baz); index.remove(baz); expect(index.get(3)).toBeNull(); expect(index.getAll()).toEqual([foo, bar]); }); ```
/content/code_sandbox/packages/helpers/src/indexer.spec.ts
xml
2016-11-30T14:09:21
2024-08-15T18:52:57
statoscope
statoscope/statoscope
1,423
228
```xml import { useEffect, useState } from 'react'; import { Formik } from 'formik'; import { RouteComponentProps, withRouter } from 'react-router-dom'; import styled from 'styled-components'; import { object, string } from 'yup'; import { Button, ContractLookupField, Icon, InlineMessage, InputField, LinkApp, NetworkSelector } from '@components'; import { getKBHelpArticle, KB_HELP_ARTICLE } from '@config'; import { getNetworkById, isValidENSName, isValidETHAddress, useNetworks } from '@services'; import { BREAK_POINTS, COLORS } from '@theme'; import { translateRaw } from '@translations'; import { Contract, ExtendedContract, IReceiverAddress, ISimpleTxForm, Network, StoreAccount, TAddress } from '@types'; import { isSameAddress } from '@utils'; import { CUSTOM_CONTRACT_ADDRESS } from '../constants'; import { ABIItem } from '../types'; import { getParsedQueryString } from '../utils'; import GeneratedInteractionForm from './GeneratedInteractionForm'; const { BLUE_BRIGHT, WHITE, BLUE_LIGHT } = COLORS; const { SCREEN_SM } = BREAK_POINTS; const NetworkSelectorWrapper = styled.div` margin-bottom: 12px; label { font-weight: normal; } `; const ContractSelectionWrapper = styled.div` display: flex; flex-direction: column; width: 100%; `; const FieldWrapper = styled.div` display: flex; flex-direction: column; margin-top: 12px; flex: 1; p { font-size: 1em; } `; const Label = styled.div` line-height: 1; margin-bottom: 9px; `; const InputWrapper = styled.div` width: 100%; display: flex; align-items: center; `; const ButtonWrapper = styled.div` width: 100%; display: flex; justify-content: left; `; const SaveContractWrapper = styled.div` width: 100%; display: flex; justify-content: space-between; @media (max-width: ${SCREEN_SM}) { flex-direction: column; } `; const SaveButtonWrapper = styled.div` width: 310px; display: flex; align-items: center; padding-top: 10px; padding-left: 8px; justify-content: flex-end; @media (max-width: ${SCREEN_SM}) { justify-content: flex-start; padding-left: 0px; padding-bottom: 8px; } `; const ErrorWrapper = styled.div` margin-bottom: 12px; `; const ContractSelectLabelWrapper = styled.div` display: flex; justify-content: space-between; `; const DeleteLabel = styled(Label)` color: ${BLUE_BRIGHT}; cursor: pointer; `; interface Props { network: Network; contractAddress: string; addressOrDomainInput: string; resolvingDomain: boolean; abi: string; contract: ExtendedContract; contracts: Contract[]; showGeneratedForm: boolean; account: StoreAccount; customContractName: string; nonce: string; gasLimit: string; gasPrice: string; maxFeePerGas: string; maxPriorityFeePerGas: string; handleContractSelected(contract: Contract | undefined): void; handleNetworkSelected(networkId: string): void; handleContractAddressChanged(address: string): void; handleAddressOrDomainChanged(value: string): void; handleAbiChanged(abi: string): void; handleCustomContractNameChanged(customContractName: string): void; updateNetworkContractOptions(): void; displayGeneratedForm(visible: boolean): void; handleInteractionFormSubmit(submitedFunction: ABIItem): any; goToNextStep(): void; handleInteractionFormWriteSubmit(submitedFunction: ABIItem): Promise<TObject>; handleAccountSelected(account: StoreAccount): void; handleSaveContractSubmit(): void; handleGasSelectorChange( payload: Partial<Pick<ISimpleTxForm, 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas'>> ): void; handleDeleteContract(contractUuid: string): void; handleGasLimitChange(payload: string): void; handleNonceChange(payload: string): void; } const FormSchema = object().shape({ address: object({ value: string().test( 'check-eth-address', translateRaw('TO_FIELD_ERROR'), (value) => isValidETHAddress(value) || isValidENSName(value) ) }).required(translateRaw('REQUIRED')) }); type CombinedProps = RouteComponentProps & Props; function Interact(props: CombinedProps) { const { network, contractAddress, abi, contract, contracts, showGeneratedForm, handleNetworkSelected, handleContractSelected, handleAddressOrDomainChanged, handleAbiChanged, handleCustomContractNameChanged, updateNetworkContractOptions, displayGeneratedForm, handleInteractionFormSubmit, account, customContractName, handleAccountSelected, handleInteractionFormWriteSubmit, handleSaveContractSubmit, nonce, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, handleGasSelectorChange, handleDeleteContract, handleGasLimitChange, handleNonceChange } = props; const [error, setError] = useState<string | undefined>(undefined); const [isResolvingName, setIsResolvingDomain] = useState(false); const [areFieldsPopulatedFromUrl, setAreFieldsPopulatedFromUrl] = useState(false); const [wasAbiEditedManually, setWasAbiEditedManually] = useState(false); const [wasContractInteracted, setWasContractInteracted] = useState(false); const [interactionDataFromURL, setInteractionDataFromURL] = useState<any>({}); const { networks } = useNetworks(); const { networkIdFromUrl, addressFromUrl, functionFromUrl, inputsFromUrl } = getParsedQueryString( props.location.search ); const networkAndAddressMatchURL = network.id === networkIdFromUrl && isSameAddress(contractAddress as TAddress, addressFromUrl as TAddress); useEffect(() => { updateNetworkContractOptions(); setWasContractInteracted(false); }, [network]); useEffect(() => { displayGeneratedForm(false); setWasContractInteracted(false); if (areFieldsPopulatedFromUrl && networkAndAddressMatchURL && !wasAbiEditedManually) { submitInteract(); setInteractionDataFromURL({ ...interactionDataFromURL, functionName: functionFromUrl, inputs: inputsFromUrl }); } }, [abi]); const saveContract = () => { setError(undefined); try { handleSaveContractSubmit(); } catch (e) { setError(e.message); } }; const submitInteract = () => { setError(undefined); try { displayGeneratedForm(true); setWasContractInteracted(true); } catch (e) { setError(e.message); } }; const tryAbiParse = (value: string) => { try { return JSON.parse(value); } catch (e) { return []; } }; useEffect(() => { if (getNetworkById(networkIdFromUrl, networks)) { handleNetworkSelected(networkIdFromUrl); } else if (networkIdFromUrl) { setError(translateRaw('INTERACT_ERROR_INVALID_NETWORK')); } }, []); const customEditingMode = contract && isSameAddress(contract.address, CUSTOM_CONTRACT_ADDRESS); const initialFormikValues: { address: IReceiverAddress } = { address: { display: '', value: '' } }; return ( <Formik initialValues={initialFormikValues} validationSchema={FormSchema} // Hack as we don't really use Formik for this flow onSubmit={() => undefined} > {({ values, errors, touched, setFieldValue, setFieldError, setFieldTouched, resetForm }) => { /* eslint-disable react-hooks/rules-of-hooks */ useEffect(() => { if ( !getNetworkById(networkIdFromUrl, networks) || areFieldsPopulatedFromUrl || contracts.length === 0 || !addressFromUrl ) { return; } if (addressFromUrl) { handleAddressOrDomainChanged(addressFromUrl); } setAreFieldsPopulatedFromUrl(true); }, [contracts]); useEffect(() => { // If contract network id doesn't match the selected network id, set contract to custom and keep the address from the URL. if (contract && contract.networkId !== network.id) { handleAddressOrDomainChanged(contractAddress); } if (contract && contract.address !== CUSTOM_CONTRACT_ADDRESS) { setFieldValue('address', { display: contract.name, value: contract.address }); } setError(undefined); }, [contract]); /* eslint-enable react-hooks/rules-of-hooks */ return ( <> <NetworkSelectorWrapper> <NetworkSelector network={network.id} onChange={(networkId) => { handleNetworkSelected(networkId); resetForm(); }} /> </NetworkSelectorWrapper> <ContractSelectionWrapper> <FieldWrapper> <ContractSelectLabelWrapper> <label htmlFor="address" className="input-group-header"> {translateRaw('CONTRACT_TITLE')} </label> {contract && contract.isCustom && ( <DeleteLabel onClick={() => handleDeleteContract(contract.uuid)}> {translateRaw('ACTION_15')} </DeleteLabel> )} </ContractSelectLabelWrapper> <ContractLookupField name="address" contracts={contracts} error={errors && touched.address && errors.address && errors.address.value} network={network} isResolvingName={isResolvingName} setIsResolvingDomain={setIsResolvingDomain} onSelect={(option) => { // @ts-expect-error: Contract vs IReceiverAddress. @todo: this is a bug. handleContractSelected(option); handleAddressOrDomainChanged(option.value); }} onChange={(address) => handleAddressOrDomainChanged(address)} value={values.address} setFieldValue={setFieldValue} setFieldTouched={setFieldTouched} setFieldError={setFieldError} /> </FieldWrapper> </ContractSelectionWrapper> <FieldWrapper> <InputWrapper onClick={() => setWasContractInteracted(false)}> <InputField name="abi" label={ <> {translateRaw('CONTRACT_JSON')} <LinkApp href={getKBHelpArticle(KB_HELP_ARTICLE.WHAT_IS_CONTRACT_ABI)} isExternal={true} > <Icon width="16px" type="questionBlack" /> </LinkApp> </> } value={abi} placeholder={`[{"type":"constructor","inputs":[{"name":"param1","type":"uint256","indexed":true}],"name":"Event"},{"type":"function","inputs":[{"name":"a","type":"uint256"}],"name":"foo","outputs":[]}]`} onChange={({ target: { value } }) => { handleAbiChanged(value); setWasAbiEditedManually(true); }} textarea={true} resizableTextArea={true} height={'108px'} maxHeight={wasContractInteracted ? '108px' : 'none'} disabled={!customEditingMode} /> </InputWrapper> {customEditingMode && ( <> <SaveContractWrapper> <InputField label={translateRaw('CONTRACT_NAME')} value={customContractName} placeholder={translateRaw('CONTRACT_NAME_PLACEHOLDER')} onChange={({ target: { value } }) => handleCustomContractNameChanged(value)} /> <SaveButtonWrapper> <Button color={BLUE_LIGHT} large={false} secondary={true} onClick={saveContract} > {translateRaw('SAVE_CONTRACT')} </Button> </SaveButtonWrapper> </SaveContractWrapper> </> )} {error && ( <ErrorWrapper> <InlineMessage>{error}</InlineMessage> </ErrorWrapper> )} </FieldWrapper> <ButtonWrapper> <Button color={WHITE} disabled={wasContractInteracted} onClick={submitInteract} fullwidth={true} > {translateRaw('INTERACT_WITH_CONTRACT')} </Button> </ButtonWrapper> {showGeneratedForm && abi && ( <GeneratedInteractionForm abi={tryAbiParse(abi)} handleInteractionFormSubmit={handleInteractionFormSubmit} account={account} handleAccountSelected={handleAccountSelected} handleInteractionFormWriteSubmit={handleInteractionFormWriteSubmit} network={network} handleGasSelectorChange={handleGasSelectorChange} contractAddress={contractAddress} interactionDataFromURL={interactionDataFromURL} nonce={nonce} gasLimit={gasLimit} gasPrice={gasPrice} maxFeePerGas={maxFeePerGas} maxPriorityFeePerGas={maxPriorityFeePerGas} handleNonceChange={handleNonceChange} handleGasLimitChange={handleGasLimitChange} /> )} </> ); }} </Formik> ); } export default withRouter(Interact); ```
/content/code_sandbox/src/features/InteractWithContracts/components/Interact.tsx
xml
2016-12-04T01:35:27
2024-08-14T21:41:58
MyCrypto
MyCryptoHQ/MyCrypto
1,347
2,919
```xml <?xml version="1.0" encoding="utf-8"?> <WixLocalization Culture="fr-fr" xmlns="path_to_url"> <String Id="Locale" Overridable="yes">fr</String> <String Id="ProductName" Overridable="yes">Hte Aspia</String> <String Id="DowngradeErrorMessage" Overridable="yes">Une version plus rcente de l application est dj installe.</String> <String Id="CreateDesktopShortcut" Overridable="yes">Crer un raccourci sur le bureau</String> <String Id="CreateProgramMenuShortcut" Overridable="yes">Crer un raccourci dans le menu dmarrer</String> </WixLocalization> ```
/content/code_sandbox/installer/translations/host.fr-fr.wxl
xml
2016-10-26T16:17:31
2024-08-16T13:37:42
aspia
dchapyshev/aspia
1,579
161
```xml import type { Meta, StoryObj } from '@storybook/react'; import { FacebookButton } from './FacebookButton'; const meta: Meta<typeof FacebookButton> = { title: 'Basics/Buttons/Facebook', component: FacebookButton, }; export default meta; type Story = StoryObj<typeof FacebookButton>; export const Primary: Story = { name: 'Default Facebook Button', }; ```
/content/code_sandbox/web/src/components/buttons/FacebookButton.stories.tsx
xml
2016-05-21T16:36:17
2024-08-16T17:56:07
electricitymaps-contrib
electricitymaps/electricitymaps-contrib
3,437
81
```xml import type { Resources } from "@common/Core/Translator"; export type WindowsTranslations = { extensionName: string; shutdown: string; restart: string; signOut: string; lock: string; sleep: string; hibernate: string; searchResultItemDescription: string; }; export const windowsResources: Resources<WindowsTranslations> = { "en-US": { extensionName: "System Commands", shutdown: "Shutdown", restart: "Restart", signOut: "Sign Out", lock: "Lock", sleep: "Sleep", hibernate: "Hibernate", searchResultItemDescription: "System Command", }, "de-CH": { extensionName: "Systembefehle", shutdown: "Herunterfahren", restart: "Neustarten...", signOut: "Abmelden", lock: "Sperren", sleep: "Energie sparen", hibernate: "Schlafen", searchResultItemDescription: "Systembefehl", }, }; ```
/content/code_sandbox/src/main/Extensions/SystemCommands/Windows/windowsTranslations.ts
xml
2016-10-11T04:59:52
2024-08-16T11:53:31
ueli
oliverschwendener/ueli
3,543
226
```xml import React, { useCallback, useRef } from 'react' import { StyleSheet } from 'react-native' import { ThemeColors } from '@devhub/core' import { useDynamicRef } from '../../hooks/use-dynamic-ref' import { useHover } from '../../hooks/use-hover' import { IconProp } from '../../libs/vector-icons' import { sharedStyles } from '../../styles/shared' import { contentPadding, scaleFactor } from '../../styles/variables' import { getTheme } from '../context/ThemeContext' import { getThemeColorOrItself } from '../themed/helpers' import { ThemedIcon } from '../themed/ThemedIcon' import { ThemedText } from '../themed/ThemedText' import { ThemedView } from '../themed/ThemedView' import { TouchableWithoutFeedback, TouchableWithoutFeedbackProps, } from './TouchableWithoutFeedback' export type IconButtonProps = TouchableWithoutFeedbackProps & { active?: boolean size?: number type?: 'primary' | 'neutral' | 'danger' } & IconProp export const defaultIconButtonSize = 16 * scaleFactor export function IconButton(props: IconButtonProps) { const { active, disabled: _disabled, family, name, onPressIn, onPressOut, size = defaultIconButtonSize, style, type = 'neutral', ...touchableProps } = props const touchableRef = useRef<TouchableWithoutFeedback>(null) const innerBackgroundViewRef = useRef<TouchableWithoutFeedback>(null) const textRef = useRef<ThemedText>(null) const isHoveredRef = useRef(false) const isPressedRef = useRef(false) const disabledRef = useDynamicRef(_disabled) const { foregroundThemeColor: _foregroundThemeColor, tintBackgroundHoveredOpacity, tintBackgroundPressedOpacity, tintThemeColor, } = getIconButtonColors(type) const handleDisabledOpacityInternally = _foregroundThemeColor === 'foregroundColor' const foregroundThemeColor: typeof _foregroundThemeColor = handleDisabledOpacityInternally && disabledRef.current ? 'foregroundColorMuted40' : (active && tintThemeColor) || _foregroundThemeColor const updateStyles = useCallback(() => { const theme = getTheme() if (innerBackgroundViewRef.current) { innerBackgroundViewRef.current.setNativeProps({ style: { backgroundColor: (isPressedRef.current || isHoveredRef.current) && tintThemeColor && !disabledRef.current ? getThemeColorOrItself(theme, tintThemeColor, { enableCSSVariable: true, }) : 'transparent', opacity: disabledRef.current ? 0 : isPressedRef.current ? tintBackgroundPressedOpacity : isHoveredRef.current ? tintBackgroundHoveredOpacity : 0, }, }) } if (textRef.current) { textRef.current.setNativeProps({ style: { color: (isHoveredRef.current || isPressedRef.current || active) && tintThemeColor && !disabledRef.current ? getThemeColorOrItself(theme, tintThemeColor, { enableCSSVariable: true, }) : getThemeColorOrItself(theme, foregroundThemeColor, { enableCSSVariable: true, }), }, }) } }, [ active, foregroundThemeColor, tintBackgroundHoveredOpacity, tintBackgroundPressedOpacity, tintThemeColor, ]) useHover( touchableRef, useCallback( (isHovered) => { isHoveredRef.current = isHovered updateStyles() }, [updateStyles], ), ) return ( <TouchableWithoutFeedback ref={touchableRef} {...touchableProps} disabled={disabledRef.current} onPressIn={(e) => { isPressedRef.current = true updateStyles() if (onPressIn) onPressIn(e) }} onPressOut={(e) => { isPressedRef.current = false updateStyles() if (onPressOut) onPressOut(e) }} style={[ sharedStyles.center, sharedStyles.paddingHalf, { width: size + contentPadding, height: size + contentPadding, borderRadius: (size + contentPadding) / 2, }, handleDisabledOpacityInternally && sharedStyles.opacity100, style, ]} > <> <ThemedView ref={innerBackgroundViewRef} backgroundColor={tintThemeColor} style={[ StyleSheet.absoluteFill, { borderRadius: (size + contentPadding) / 2, opacity: active ? tintBackgroundHoveredOpacity : 0, }, ]} /> <ThemedText ref={textRef} color={foregroundThemeColor}> <ThemedIcon family={family as any} name={name as any} selectable={false} size={size} style={sharedStyles.textCenter} /> </ThemedText> </> </TouchableWithoutFeedback> ) } export function getIconButtonColors(type?: IconButtonProps['type']): { foregroundThemeColor: keyof ThemeColors tintBackgroundHoveredOpacity: number tintBackgroundPressedOpacity: number tintThemeColor: keyof ThemeColors } { switch (type) { case 'danger': return { foregroundThemeColor: 'foregroundColor', tintBackgroundHoveredOpacity: 0.1, tintBackgroundPressedOpacity: 0.2, tintThemeColor: 'red', } case 'primary': return { foregroundThemeColor: 'primaryForegroundColor', tintBackgroundHoveredOpacity: 0.1, tintBackgroundPressedOpacity: 0.2, tintThemeColor: 'primaryBackgroundColor', } default: return { foregroundThemeColor: 'foregroundColor', tintBackgroundHoveredOpacity: 0.1, tintBackgroundPressedOpacity: 0.2, tintThemeColor: 'primaryBackgroundColor', } } } ```
/content/code_sandbox/packages/components/src/components/common/IconButton.tsx
xml
2016-11-30T23:24:21
2024-08-16T00:24:59
devhub
devhubapp/devhub
9,652
1,315
```xml export enum LogLevelType { Debug, Info, Warning, Error, } ```
/content/code_sandbox/libs/common/src/platform/enums/log-level-type.enum.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
19
```xml // Return attributes and values of a node in a convenient way: /* example: <ExampleElement attr1="15" attr2> { attr1: { hasValue: true, value: 15 }, attr2: { hasValue: false } Inclusion of hasValue is in case an eslint rule cares about boolean values explicitly assigned to attribute vs the attribute being used as a flag */ export default class NodeAttributes { attributes: Record< string, | { hasValue?: false } | { hasValue: true value: any } > constructor(ASTnode) { this.attributes = {} ASTnode.attributes.forEach((attribute) => { if (!attribute.type || attribute.type !== 'JSXAttribute') { return } if (!!attribute.value) { // hasValue const value = typeof attribute.value.value === 'string' ? attribute.value.value : typeof attribute.value.expression.value !== 'undefined' ? attribute.value.expression.value : attribute.value.expression.properties this.attributes[attribute.name.name] = { hasValue: true, value, } } else { this.attributes[attribute.name.name] = { hasValue: false, } } }) } hasAny() { return !!Object.keys(this.attributes).length } has(attrName: string) { return !!this.attributes[attrName] } hasValue(attrName: string) { return !!this.attributes[attrName].hasValue } value(attrName: string) { const attr = this.attributes[attrName] if (!attr) { return true } if (attr.hasValue) { return attr.value } return undefined } } ```
/content/code_sandbox/packages/eslint-plugin-next/src/utils/node-attributes.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
393
```xml import { isWithinInterval } from 'date-fns'; import { BLACK_FRIDAY, CYCLE, PLANS } from '../constants'; import { getHas2023OfferCoupon } from '../helpers/subscription'; import type { PlanIDs } from '../interfaces'; export const isBlackFridayPeriod = () => { return isWithinInterval(new Date(), { start: BLACK_FRIDAY.START, end: BLACK_FRIDAY.END }); }; export const isCyberMonday = () => { return isWithinInterval(new Date(), { start: BLACK_FRIDAY.CYBER_START, end: BLACK_FRIDAY.CYBER_END }); }; export const canUpsellToVPNPassBundle = (planIDs: PlanIDs, cycle: CYCLE, couponCode?: string) => { if (planIDs[PLANS.VPN] && [CYCLE.FIFTEEN, CYCLE.THIRTY].includes(cycle) && getHas2023OfferCoupon(couponCode)) { return true; } return false; }; ```
/content/code_sandbox/packages/shared/lib/helpers/blackfriday.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
215
```xml import {SourceMeasure} from "../SourceMeasure"; import {Fraction} from "../../../Common/DataObjects/Fraction"; import {InstantaneousDynamicExpression} from "./InstantaneousDynamicExpression"; import {ContinuousDynamicExpression} from "./ContinuousExpressions/ContinuousDynamicExpression"; import {OctaveShift} from "./ContinuousExpressions/OctaveShift"; import {MoodExpression} from "./MoodExpression"; import {UnknownExpression} from "./UnknownExpression"; import {AbstractExpression} from "./AbstractExpression"; import {PlacementEnum} from "./AbstractExpression"; import { FontStyles } from "../../../Common/Enums/FontStyles"; import { Pedal } from "./ContinuousExpressions/Pedal"; export class MultiExpression { constructor(sourceMeasure: SourceMeasure, timestamp: Fraction) { this.sourceMeasure = sourceMeasure; this.timestamp = timestamp; } private sourceMeasure: SourceMeasure; private staffNumber: number; private timestamp: Fraction; public EndOffsetFraction: Fraction; /** The 'number="x"' given in XML, e.g. of a wedge, used to identify similar expressions. */ public numberXml: number; private instantaneousDynamic: InstantaneousDynamicExpression; private endingContinuousDynamic: ContinuousDynamicExpression; private startingContinuousDynamic: ContinuousDynamicExpression; private unknownList: UnknownExpression[] = []; private moodList: MoodExpression[] = []; private expressions: MultiExpressionEntry[] = []; private combinedExpressionsText: string; private octaveShiftStart: OctaveShift; private octaveShiftEnd: OctaveShift; public PedalStart: Pedal; public PedalEnd: Pedal; public get SourceMeasureParent(): SourceMeasure { return this.sourceMeasure; } public set SourceMeasureParent(value: SourceMeasure) { this.sourceMeasure = value; } public get StaffNumber(): number { return this.staffNumber; } public set StaffNumber(value: number) { this.staffNumber = value; } public get Timestamp(): Fraction { return this.timestamp; } public set Timestamp(value: Fraction) { this.timestamp = value; } public get AbsoluteTimestamp(): Fraction { return Fraction.plus(this.timestamp, this.sourceMeasure.AbsoluteTimestamp); } public get InstantaneousDynamic(): InstantaneousDynamicExpression { return this.instantaneousDynamic; } public set InstantaneousDynamic(value: InstantaneousDynamicExpression) { this.instantaneousDynamic = value; } public get EndingContinuousDynamic(): ContinuousDynamicExpression { return this.endingContinuousDynamic; } public set EndingContinuousDynamic(value: ContinuousDynamicExpression) { this.endingContinuousDynamic = value; } public get StartingContinuousDynamic(): ContinuousDynamicExpression { return this.startingContinuousDynamic; } public set StartingContinuousDynamic(value: ContinuousDynamicExpression) { this.startingContinuousDynamic = value; } public get MoodList(): MoodExpression[] { return this.moodList; } public get UnknownList(): UnknownExpression[] { return this.unknownList; } public get EntriesList(): MultiExpressionEntry[] { return this.expressions; } public get OctaveShiftStart(): OctaveShift { return this.octaveShiftStart; } public set OctaveShiftStart(value: OctaveShift) { this.octaveShiftStart = value; } public get OctaveShiftEnd(): OctaveShift { return this.octaveShiftEnd; } public set OctaveShiftEnd(value: OctaveShift) { this.octaveShiftEnd = value; } public get CombinedExpressionsText(): string { return this.combinedExpressionsText; } public set CombinedExpressionsText(value: string) { this.combinedExpressionsText = value; } public getPlacementOfFirstEntry(): PlacementEnum { let placement: PlacementEnum = PlacementEnum.Above; if (this.expressions.length > 0) { if (this.expressions[0].expression instanceof InstantaneousDynamicExpression) { placement = (<InstantaneousDynamicExpression>(this.expressions[0].expression)).Placement; } else if (this.expressions[0].expression instanceof ContinuousDynamicExpression) { placement = (<ContinuousDynamicExpression>(this.expressions[0].expression)).Placement; } else if (this.expressions[0].expression instanceof MoodExpression) { placement = (<MoodExpression>(this.expressions[0].expression)).Placement; } else if (this.expressions[0].expression instanceof UnknownExpression) { placement = (<UnknownExpression>(this.expressions[0].expression)).Placement; } } return placement; } public getFontstyleOfFirstEntry(): FontStyles { let fontStyle: FontStyles = FontStyles.Regular; if (this.expressions.length > 0) { if (this.expressions[0].expression instanceof ContinuousDynamicExpression) { fontStyle = FontStyles.Italic; } else if (this.expressions[0].expression instanceof MoodExpression) { fontStyle = FontStyles.Italic; } else if (this.expressions[0].expression instanceof UnknownExpression) { const unknownExpression: UnknownExpression = (this.expressions[0].expression as UnknownExpression); fontStyle = unknownExpression.fontStyle ?? FontStyles.Regular; } } return fontStyle; } //public getFirstEntry(staffLine: StaffLine, graphLabel: GraphicalLabel): AbstractGraphicalExpression { // let indexOfFirstNotInstDynExpr: number = 0; // if (this.expressions[0].expression instanceof InstantaneousDynamicExpression) // indexOfFirstNotInstDynExpr = 1; // if (this.expressions.length > 0) { // if (this.expressions[indexOfFirstNotInstDynExpr].expression instanceof ContinuousDynamicExpression) // return new GraphicalContinuousDynamicExpression( // <ContinuousDynamicExpression>(this.expressions[indexOfFirstNotInstDynExpr].expression), graphLabel); // else if (this.expressions[indexOfFirstNotInstDynExpr].expression instanceof MoodExpression) // return new GraphicalMoodExpression(<MoodExpression>(this.expressions[indexOfFirstNotInstDynExpr].expression), graphLabel); // else if (this.expressions[indexOfFirstNotInstDynExpr].expression instanceof UnknownExpression) // return new GraphicalUnknownExpression(<UnknownExpression>(this.expressions[indexOfFirstNotInstDynExpr].expression), graphLabel); // else return undefined; // } // else return undefined; //} public addExpression(abstractExpression: AbstractExpression, prefix: string): void { if (abstractExpression instanceof InstantaneousDynamicExpression) { if (this.instantaneousDynamic) { this.removeExpressionFromEntryList(this.InstantaneousDynamic); } this.instantaneousDynamic = <InstantaneousDynamicExpression>abstractExpression; this.instantaneousDynamic.ParentMultiExpression = this; } else if (abstractExpression instanceof ContinuousDynamicExpression) { this.startingContinuousDynamic = <ContinuousDynamicExpression>abstractExpression; } else if (abstractExpression instanceof MoodExpression) { this.moodList.push(<MoodExpression>abstractExpression); } else if (abstractExpression instanceof UnknownExpression) { this.unknownList.push(<UnknownExpression>abstractExpression); } this.addExpressionToEntryList(abstractExpression, prefix); } public CompareTo(other: MultiExpression): number { if (this.Timestamp.RealValue > other.Timestamp.RealValue) { return 1; } if (this.Timestamp.RealValue < other.Timestamp.RealValue) { return -1; } else { return 0; } } private addExpressionToEntryList(expression: AbstractExpression, prefix: string): void { const multiExpressionEntry: MultiExpressionEntry = new MultiExpressionEntry(); multiExpressionEntry.prefix = prefix; multiExpressionEntry.expression = expression; if (expression instanceof ContinuousDynamicExpression) { multiExpressionEntry.label = (<ContinuousDynamicExpression>(expression)).Label; } else if (expression instanceof MoodExpression) { multiExpressionEntry.label = (<MoodExpression>(expression)).Label; } else if (expression instanceof UnknownExpression) { multiExpressionEntry.label = (<UnknownExpression>(expression)).Label; } else { multiExpressionEntry.label = ""; } this.expressions.push(multiExpressionEntry); } private removeExpressionFromEntryList(expression: AbstractExpression): void { for (let idx: number = 0, len: number = this.expressions.length; idx < len; ++idx) { const entry: MultiExpressionEntry = this.expressions[idx]; if (entry.expression === expression) { this.expressions.splice(idx, 1); break; } } } } export class MultiExpressionEntry { public prefix: string; public expression: AbstractExpression; public label: string; } ```
/content/code_sandbox/src/MusicalScore/VoiceData/Expressions/MultiExpression.ts
xml
2016-02-08T15:47:01
2024-08-16T17:49:53
opensheetmusicdisplay
opensheetmusicdisplay/opensheetmusicdisplay
1,416
1,892
```xml import { fileURLToPath } from 'node:url' import { resolve } from 'node:path' import { readdirSync } from 'node:fs' import { defineConfig } from 'vite' import UnoCSS from 'unocss/vite' import { DevRenderingPlugin } from './lib/dev' import { RenderPlugin } from './lib/render' const rootDir = fileURLToPath(new URL('.', import.meta.url)) const r = (...path: string[]) => resolve(rootDir, ...path) export default defineConfig({ build: { outDir: process.env.OUTPUT_DIR || 'dist', rollupOptions: { input: { ...Object.fromEntries( readdirSync(r('templates')).filter(dir => dir !== 'messages.json').map(dir => [ dir, r('templates', dir, 'index.html'), ]), ), index: r('index.html'), }, }, }, plugins: [ UnoCSS(), DevRenderingPlugin(), RenderPlugin(), ], server: { fs: { allow: ['./templates', rootDir], }, }, }) ```
/content/code_sandbox/packages/ui-templates/vite.config.ts
xml
2016-10-26T11:18:47
2024-08-16T19:32:46
nuxt
nuxt/nuxt
53,705
237
```xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="path_to_url" xmlns:tools="path_to_url" android:id="@+id/day_monthly_event_holder" android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/day_monthly_event_background" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignBottom="@+id/day_monthly_event_id" android:layout_margin="@dimen/one_dp" android:contentDescription="@null" android:src="@drawable/day_monthly_event_background_widget" /> <!-- widgets cannot contain ConstraintLayout and image scaling doesn't work well, so set its size --> <ImageView android:id="@+id/day_monthly_task_image" android:layout_width="@dimen/activity_margin" android:layout_height="@dimen/activity_margin" android:layout_alignTop="@+id/day_monthly_event_id" android:layout_alignBottom="@+id/day_monthly_event_id" android:adjustViewBounds="true" android:contentDescription="@string/task" android:paddingStart="@dimen/one_dp" android:paddingTop="@dimen/one_dp" android:paddingBottom="@dimen/one_dp" android:scaleType="fitCenter" android:src="@drawable/ic_task_vector" /> <TextView android:id="@+id/day_monthly_event_id" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toEndOf="@+id/day_monthly_task_image" android:ellipsize="none" android:gravity="start" android:hyphenationFrequency="none" android:maxLines="1" android:paddingStart="@dimen/tiny_margin" android:paddingEnd="@dimen/tiny_margin" android:textSize="@dimen/day_monthly_text_size" tools:targetApi="m" tools:text="My event" /> </RelativeLayout> ```
/content/code_sandbox/app/src/main/res/layout/day_monthly_event_view_widget.xml
xml
2016-01-26T21:02:54
2024-08-15T00:35:32
Simple-Calendar
SimpleMobileTools/Simple-Calendar
3,512
446
```xml <?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="cs" original="../Strings.resx"> <body> <trans-unit id="AmazonRegistryFailed"> <source>CONTAINER1002: Request to Amazon Elastic Container Registry failed prematurely. This is often caused when the target repository does not exist in the registry.</source> <target state="translated">CONTAINER1002: Poadavek na Amazon Elastic Container Registry pedasn selhal. To je asto zpsobeno tm, e clov loit v registru neexistuje.</target> <note>{StrBegin="CONTAINER1002: "}</note> </trans-unit> <trans-unit id="AmbiguousTags"> <source>CONTAINER2008: Both {0} and {1} were provided, but only one or the other is allowed.</source> <target state="translated">CONTAINER2008: Byly poskytnuty {0} i {1}, ale je povolen pouze jeden nebo druh.</target> <note>{StrBegin="CONTAINER2008: "}</note> </trans-unit> <trans-unit id="AppCommandArgsSetNoAppCommand"> <source>CONTAINER2025: ContainerAppCommandArgs are provided without specifying a ContainerAppCommand.</source> <target state="translated">CONTAINER2025: ContainerAppCommandArgs se poskytuj bez zadn ContainerAppCommand.</target> <note>{StrBegin="CONTAINER2025: "}</note> </trans-unit> <trans-unit id="AppCommandSetNotUsed"> <source>CONTAINER2026: ContainerAppCommand and ContainerAppCommandArgs must be empty when ContainerAppCommandInstruction is '{0}'.</source> <target state="translated">CONTAINER2026: ContainerAppCommand a ContainerAppCommandArgs mus bt przdn, pokud je ContainerAppCommandInstruction {0}.</target> <note>{StrBegin="CONTAINER2026: "}</note> </trans-unit> <trans-unit id="ArchiveRegistry_PushInfo"> <source>local archive at '{0}'</source> <target state="translated">mstn archiv v {0}</target> <note>{0} is the path to the file written</note> </trans-unit> <trans-unit id="BaseEntrypointOverwritten"> <source>CONTAINER2022: The base image has an entrypoint that will be overwritten to start the application. Set ContainerAppCommandInstruction to 'Entrypoint' if this is desired. To preserve the base image entrypoint, set ContainerAppCommandInstruction to 'DefaultArgs'.</source> <target state="translated">CONTAINER2022: Zkladn image m vstupn bod, kter se pepe, aby se aplikace spustila. Pokud je to douc, nastavte ContainerAppCommandInstruction na Entrypoint. Pokud chcete zachovat vstupn bod zkladn image, nastavte ContainerAppCommandInstruction na DefaultArgs.</target> <note>{StrBegin="CONTAINER2022: "}</note> </trans-unit> <trans-unit id="BaseImageNameParsingFailed"> <source>CONTAINER2009: Could not parse {0}: {1}</source> <target state="translated">CONTAINER2009: Nelze analyzovat {0}: {1}</target> <note>{StrBegin="CONTAINER2009: "}</note> </trans-unit> <trans-unit id="BaseImageNameRegistryFallback"> <source>CONTAINER2020: {0} does not specify a registry and will be pulled from Docker Hub. Please prefix the name with the image registry, for example: '{1}/&lt;image&gt;'.</source> <target state="translated">CONTAINER2020: {0} neuruje registr a bude naten z Docker Hub. Ped nzev zadejte registr imag, napklad: {1}/&lt;image&gt;.</target> <note>{StrBegin="CONTAINER2020: "}</note> </trans-unit> <trans-unit id="BaseImageNameWithSpaces"> <source>CONTAINER2013: {0} had spaces in it, replacing with dashes.</source> <target state="translated">CONTAINER2013: {0} obsahoval mezery, kter se nahradily pomlkami.</target> <note>{StrBegin="CONTAINER2013: "}</note> </trans-unit> <trans-unit id="BaseImageNotFound"> <source>CONTAINER1011: Couldn't find matching base image for {0} that matches RuntimeIdentifier {1}.</source> <target state="translated">CONTAINER1011: Pro {0} nelze najt odpovdajc zkladn image, kter odpovd identifiktoru RuntimeIdentifier {1}.</target> <note>{StrBegin="CONTAINER1011: "}</note> </trans-unit> <trans-unit id="BlobUploadFailed"> <source>CONTAINER1001: Failed to upload blob using {0}; received status code '{1}'.</source> <target state="translated">CONTAINER1001: Nepovedlo se nahrt objekt blob pomoc {0}; pijat stavov kd {1}</target> <note>{StrBegin="CONTAINER1001: "}</note> </trans-unit> <trans-unit id="ContainerBuilder_ImageUploadedToLocalDaemon"> <source>Pushed image '{0}' to {1}.</source> <target state="translated">Image {0} byla vloena do {1}.</target> <note /> </trans-unit> <trans-unit id="ContainerBuilder_ImageUploadedToRegistry"> <source>Pushed image '{0}' to registry '{1}'.</source> <target state="translated">Image {0} byla vloena do registru {1}.</target> <note /> </trans-unit> <trans-unit id="ContainerBuilder_StartBuildingImage"> <source>Building image '{0}' with tags '{1}' on top of base image '{2}'.</source> <target state="translated">Sestaven image {0} se znakami {1} nad zkladn imag {2}</target> <note /> </trans-unit> <trans-unit id="CouldntDeserializeJsonToken"> <source>CONTAINER1007: Could not deserialize token from JSON.</source> <target state="translated">CONTAINER1007: Nepovedlo se deserializovat token z JSON.</target> <note>{StrBegin="CONTAINER1007: "}</note> </trans-unit> <trans-unit id="CouldntRecognizeRegistry"> <source>CONTAINER2012: Could not recognize registry '{0}'.</source> <target state="translated">CONTAINER2012: Nelze rozpoznat registr '{0}'.</target> <note>{StrBegin="CONTAINER2012: "}</note> </trans-unit> <trans-unit id="DockerCli_PushInfo"> <source>local registry via '{0}'</source> <target state="translated">mstn registr pomoc {0}</target> <note>{0} is the command used</note> </trans-unit> <trans-unit id="DockerInfoFailed"> <source>CONTAINER3002: Failed to get docker info({0})\n{1}\n{2}</source> <target state="translated">CONTAINER3002: Nepovedlo se zskat informace o dockeru ({0})\n{1}\n{2}</target> <note>{StrBegin="CONTAINER3002: "}</note> </trans-unit> <trans-unit id="DockerInfoFailed_Ex"> <source>CONTAINER3002: Failed to get docker info: {0}</source> <target state="translated">CONTAINER3002: Nepovedlo se zskat informace o Dockeru: {0}</target> <note>{StrBegin="CONTAINER3002: "}</note> </trans-unit> <trans-unit id="ContainerRuntimeProcessCreationFailed"> <source>CONTAINER3001: Failed creating {0} process.</source> <target state="translated">CONTAINER3001: Vytvoen procesu {0} se nezdailo.</target> <note>CONTAINER3001: {0} is the name of the command we failed to run, usually 'docker' or 'podman'.</note> </trans-unit> <trans-unit id="EmptyOrWhitespacePropertyIgnored"> <source>CONTAINER4006: Property '{0}' is empty or contains whitespace and will be ignored.</source> <target state="translated">CONTAINER4006: Vlastnost '{0}' je przdn nebo obsahuje przdn znaky a bude ignorovna.</target> <note>{StrBegin="CONTAINER4006: "}</note> </trans-unit> <trans-unit id="EmptyValuesIgnored"> <source>CONTAINER4004: Items '{0}' contain empty item(s) which will be ignored.</source> <target state="translated">CONTAINER4004: Poloky '{0}' obsahuj przdn poloky, kter budou ignorovny.</target> <note>{StrBegin="CONTAINER4004: "}</note> </trans-unit> <trans-unit id="EntrypointAndAppCommandArgsSetNoAppCommandInstruction"> <source>CONTAINER2023: A ContainerEntrypoint and ContainerAppCommandArgs are provided. ContainerAppInstruction must be set to configure how the application is started. Valid instructions are {0}.</source> <target state="translated">CONTAINER2023: Jsou k dispozici ContainerEntrypoint a ContainerAppCommandArgs. Pokud chcete nakonfigurovat zpsob sputn aplikace, mus bt nastaven vlastnost ContainerAppInstruction. Platn pokyny jsou {0}.</target> <note>{StrBegin="CONTAINER2023: "}</note> </trans-unit> <trans-unit id="EntrypointSetNoAppCommandInstruction"> <source>CONTAINER2027: A ContainerEntrypoint is provided. ContainerAppInstruction must be set to configure how the application is started. Valid instructions are {0}.</source> <target state="translated">CONTAINER2027: Je k dispozici ContainerEntrypoint. Pokud chcete nakonfigurovat zpsob sputn aplikace, mus bt nastaven vlastnost ContainerAppInstruction. Platn pokyny jsou {0}.</target> <note>{StrBegin="CONTAINER2027: "}</note> </trans-unit> <trans-unit id="EntrypointArgsSetNoEntrypoint"> <source>CONTAINER2024: ContainerEntrypointArgs are provided without specifying a ContainerEntrypoint.</source> <target state="translated">CONTAINER2024: ContainerEntrypointArgs se poskytuj bez zadn ContainerEntrypoint.</target> <note>{StrBegin="CONTAINER2024: "}</note> </trans-unit> <trans-unit id="EntrypointArgsSetPreferAppCommandArgs"> <source>CONTAINER2029: ContainerEntrypointArgsSet are provided. Change to use ContainerAppCommandArgs for arguments that must always be set, or ContainerDefaultArgs for arguments that can be overridden when the container is created.</source> <target state="translated">CONTAINER2029: Je k dispozici containerEntrypointArgsSet. Provete zmnu, aby se pro argumenty, kter mus bt vdycky nastaven, pouvaly ContainerAppCommandArgs, nebo ContainerDefaultArgs pro argumenty, kter se daj pepsat pi vytvoen kontejneru.</target> <note>{StrBegin="CONTAINER2029: "}</note> </trans-unit> <trans-unit id="EntrypointConflictAppCommand"> <source>CONTAINER2028: ContainerEntrypoint can not be combined with ContainerAppCommandInstruction '{0}'.</source> <target state="translated">CONTAINER2028: ContainerEntrypoint nejde kombinovat s ContainerAppCommandInstruction {0}.</target> <note>{StrBegin="CONTAINER2028: "}</note> </trans-unit> <trans-unit id="FailedRetrievingCredentials"> <source>CONTAINER1008: Failed retrieving credentials for "{0}": {1}</source> <target state="translated">CONTAINER1008: Naten pihlaovacch daj pro {0} se nezdailo: {1}</target> <note>{StrBegin="CONTAINER1008: "}</note> </trans-unit> <trans-unit id="GenerateDigestLabelWithoutGenerateLabels"> <source>CONTAINER2030: GenerateLabels was disabled but GenerateDigestLabel was enabled - no digest label will be created.</source> <target state="translated">CONTAINER2030: GenerateLabels bylo zakzno, ale bylo povoleno GenerateDigestLabel nebude vytvoen dn popisek pehledu.</target> <note>{StrBegin="CONTAINER2030: "}</note> </trans-unit> <trans-unit id="HostObjectNotDetected"> <source>No host object detected.</source> <target state="translated">Nebyl zjitn dn objekt hostitele.</target> <note /> </trans-unit> <trans-unit id="ImageLoadFailed"> <source>CONTAINER1009: Failed to load image from local registry. stdout: {0}</source> <target state="translated">CONTAINER1009: Nepodailo se nast bitovou kopii z mstnho registru. stdout: {0}</target> <note>{StrBegin="CONTAINER1009: "}</note> </trans-unit> <trans-unit id="ImagePullNotSupported"> <source>CONTAINER1010: Pulling images from local registry is not supported.</source> <target state="translated">CONTAINER1010: Natn imag z mstnho registru se nepodporuje.</target> <note>{StrBegin="CONTAINER1010: "}</note> </trans-unit> <trans-unit id="InvalidEnvVar"> <source>CONTAINER2015: {0}: '{1}' was not a valid Environment Variable. Ignoring.</source> <target state="translated">CONTAINER2015: {0}: '{1}' nen platn promnn prosted. Ignorovn.</target> <note>{StrBegin="CONTAINER2015: "}</note> </trans-unit> <trans-unit id="InvalidImageName_EntireNameIsInvalidCharacters"> <source>CONTAINER2005: The inferred image name '{0}' contains entirely invalid characters. The valid characters for an image name arealphanumeric characters, -, /, or _, and the image name must start with an alphanumeric character.</source> <target state="translated">CONTAINER2005: Odvozen nzev image {0} obsahuje zcela neplatn znaky. Platn znaky pro nzev obrzku jsoualfanumerick znaky, -, /, nebo _, a nzev obrzku mus zanat alfanumerickm znakem.</target> <note>{StrBegin="CONTAINER2005: "}</note> </trans-unit> <trans-unit id="InvalidImageName_NonAlphanumericStartCharacter"> <source>CONTAINER2005: The first character of the image name '{0}' must be a lowercase letter or a digit and all characters in the name must be an alphanumeric character, -, /, or _.</source> <target state="translated">CONTAINER2005: Prvn znak nzvu obrzku {0} mus bt mal psmeno nebo slice a vechny znaky v nzvu mus bt alfanumerick znaky, -, /, nebo _.</target> <note>{StrBegin="CONTAINER2005: "}</note> </trans-unit> <trans-unit id="InvalidPort_Number"> <source>CONTAINER2017: A ContainerPort item was provided with an invalid port number '{0}'. ContainerPort items must have an Include value that is an integer, and a Type value that is either 'tcp' or 'udp'.</source> <target state="translated">CONTAINER2017: Poloka ContainerPort byla poskytnuta s neplatnm slem portu '{0}'. Poloky ContainerPort mus mt hodnotu Include, kter je cel slo, a hodnotu Typu, kter je bu tcp, nebo udp.</target> <note>{StrBegin="CONTAINER2017: "}</note> </trans-unit> <trans-unit id="InvalidPort_NumberAndType"> <source>CONTAINER2017: A ContainerPort item was provided with an invalid port number '{0}' and an invalid port type '{1}'. ContainerPort items must have an Include value that is an integer, and a Type value that is either 'tcp' or 'udp'.</source> <target state="translated">CONTAINER2017: Poloka ContainerPort byla poskytnuta s neplatnm slem portu '{0}' a neplatnm typem portu '{1}'. Poloky ContainerPort mus mt hodnotu Include, kter je cel slo, a hodnotu Typu, kter je bu tcp, nebo udp.</target> <note>{StrBegin="CONTAINER2017: "}</note> </trans-unit> <trans-unit id="InvalidPort_Type"> <source>CONTAINER2017: A ContainerPort item was provided with an invalid port type '{0}'. ContainerPort items must have an Include value that is an integer, and a Type value that is either 'tcp' or 'udp'.</source> <target state="translated">CONTAINER2017: Poloka ContainerPort byla poskytnuta s neplatnm typem portu '{0}'. Poloky ContainerPort mus mt hodnotu Include, kter je cel slo, a hodnotu Typu, kter je bu tcp, nebo udp.</target> <note>{StrBegin="CONTAINER2017: "}</note> </trans-unit> <trans-unit id="InvalidSdkPrereleaseVersion"> <source>CONTAINER2018: Invalid SDK prerelease version '{0}' - only 'rc' and 'preview' are supported.</source> <target state="translated">CONTAINER2018: Neplatn verze pedbn verze sady SDK '{0}' podporuj se jen 'rc' a 'preview'.</target> <note>{StrBegin="CONTAINER2018: "}</note> </trans-unit> <trans-unit id="InvalidSdkVersion"> <source>CONTAINER2019: Invalid SDK semantic version '{0}'.</source> <target state="translated">CONTAINER2019: Neplatn smantick verze '{0}' sady SDK.</target> <note>{StrBegin="CONTAINER2019: "}</note> </trans-unit> <trans-unit id="InvalidTag"> <source>CONTAINER2007: Invalid {0} provided: {1}. Image tags must be alphanumeric, underscore, hyphen, or period.</source> <target state="translated">CONTAINER2007: Byla zadna neplatn {0} : {1}. Znaky obrzk mus bt alfanumerick, podtrtka, spojovnky nebo teky.</target> <note>{StrBegin="CONTAINER2007: "}</note> </trans-unit> <trans-unit id="InvalidTags"> <source>CONTAINER2010: Invalid {0} provided: {1}. {0} must be a semicolon-delimited list of valid image tags. Image tags must be alphanumeric, underscore, hyphen, or period.</source> <target state="translated">CONTAINER2010: Byla zadna neplatn {0} : {1}. {0} mus bt seznam platnch znaek obrzk oddlench stednky. Znaky obrzk mus bt alfanumerick, podtrtka, spojovnky nebo teky.</target> <note>{StrBegin="CONTAINER2010: "}</note> </trans-unit> <trans-unit id="InvalidTokenResponse"> <source>CONTAINER1003: Token response had neither token nor access_token.</source> <target state="translated">CONTAINER1003: Odpov tokenu nemla token ani access_token.</target> <note>{StrBegin="CONTAINER1003: "}</note> </trans-unit> <trans-unit id="ItemsWithoutMetadata"> <source>CONTAINER4005: Item '{0}' contains items without metadata 'Value', and they will be ignored.</source> <target state="translated">CONTAINER4005: Poloka '{0}' obsahuje poloky bez metadat 'Value' a budou ignorovny.</target> <note>{StrBegin="CONTAINER4005: "}</note> </trans-unit> <trans-unit id="LocalRegistryNotAvailable"> <source>CONTAINER1012: The local registry is not available, but pushing to a local registry was requested.</source> <target state="translated">CONTAINER1012: Mstn registr nen k dispozici, ale bylo poadovno vloen do mstnho registru.</target> <note>{StrBegin="CONTAINER1012: "}</note> </trans-unit> <trans-unit id="LocalDocker_FailedToGetConfig"> <source>Error while reading daemon config: {0}</source> <target state="translated">Chyba pi ten konfigurace dmona: {0}</target> <note>{0} is the exception message that ends with period</note> </trans-unit> <trans-unit id="LocalDocker_LocalDaemonErrors"> <source>The daemon server reported errors: {0}</source> <target state="translated">Server procesu dmon ohlsil chyby: {0}</target> <note>{0} are the list of messages, each message starts with new line</note> </trans-unit> <trans-unit id="MissingLinkToRegistry"> <source>CONTAINER2004: Unable to download layer with descriptor '{0}' from registry '{1}' because it does not exist.</source> <target state="translated">CONTAINER2004: Nelze sthnout vrstvu s popisovaem '{0}' z registru '{1}', protoe neexistuje.</target> <note>{StrBegin="CONTAINER2004: "}</note> </trans-unit> <trans-unit id="MissingPortNumber"> <source>CONTAINER2016: ContainerPort item '{0}' does not specify the port number. Please ensure the item's Include is a port number, for example '&lt;ContainerPort Include="80" /&gt;'</source> <target state="translated">CONTAINER2016: Poloka ContainerPort '{0}' neuruje slo portu. Ujistte se prosm, e poloka Include je slo portu, napklad &lt;ContainerPort Include="80" /&gt;.</target> <note>{StrBegin="CONTAINER2016: "}</note> </trans-unit> <trans-unit id="NoRequestUriSpecified"> <source>CONTAINER1004: No RequestUri specified.</source> <target state="translated">CONTAINER1004: Nebyl zadn dn identifiktor RequestUri.</target> <note>{StrBegin="CONTAINER1004: "}</note> </trans-unit> <trans-unit id="NormalizedContainerName"> <source>'{0}' was not a valid container image name, it was normalized to '{1}'</source> <target state="translated">'{0}' nebyl platn nzev image kontejneru, byl normalizovn na '{1}'</target> <note /> </trans-unit> <trans-unit id="PublishDirectoryDoesntExist"> <source>CONTAINER2011: {0} '{1}' does not exist</source> <target state="translated">CONTAINER2011: {0} '{1}' neexistuje.</target> <note>{StrBegin="CONTAINER2011: "}</note> </trans-unit> <trans-unit id="RegistryOperationFailed"> <source>CONTAINER1017: Unable to communicate with the registry '{0}'.</source> <target state="translated">CONTAINER1017: Nelze komunikovat s registrem {0}.</target> <note>{StrBegin="CONTAINER1017:" }</note> </trans-unit> <trans-unit id="RegistryOutputPushFailed"> <source>CONTAINER1013: Failed to push to the output registry: {0}</source> <target state="translated">CONTAINER1013: Odesln do vstupnho registru se nezdailo: {0}</target> <note>{StrBegin="CONTAINER1013: "}</note> </trans-unit> <trans-unit id="RegistryPullFailed"> <source>CONTAINER1014: Manifest pull failed.</source> <target state="translated">CONTAINER1014: Naten manifestu se nezdailo.</target> <note>{StrBegin="CONTAINER1014: "}</note> </trans-unit> <trans-unit id="RegistryPushFailed"> <source>CONTAINER1005: Registry push failed; received status code '{0}'.</source> <target state="translated">CONTAINER1005: Vloen registru se nezdailo; pijal se stavov kd {0}.</target> <note>{StrBegin="CONTAINER1005: "}</note> </trans-unit> <trans-unit id="Registry_ConfigUploadStarted"> <source>Uploading config to registry at blob '{0}',</source> <target state="translated">Konfigurace se nahrv do registru v objektu blob {0},</target> <note /> </trans-unit> <trans-unit id="Registry_ConfigUploaded"> <source>Uploaded config to registry.</source> <target state="translated">Konfigurace se nahrla do registru.</target> <note /> </trans-unit> <trans-unit id="Registry_LayerExists"> <source>Layer '{0}' already exists.</source> <target state="translated">Vrstva {0} ji existuje.</target> <note /> </trans-unit> <trans-unit id="Registry_LayerUploadStarted"> <source>Uploading layer '{0}' to '{1}'.</source> <target state="translated">Vrstva {0} se nahrv do {1}.</target> <note>{0} is the layer digest, {1} is the registry name</note> </trans-unit> <trans-unit id="Registry_LayerUploaded"> <source>Finished uploading layer '{0}' to '{1}'.</source> <target state="translated">Nahrvn vrstvy {0} do {1} bylo dokoneno.</target> <note>{0} is the layer digest, {1} is the registry name</note> </trans-unit> <trans-unit id="Registry_ManifestUploadStarted"> <source>Uploading manifest to registry '{0}' as blob '{1}'.</source> <target state="translated">Manifest se nahrv do registru {0} jako objekt blob {1}.</target> <note>{0} is the registry name</note> </trans-unit> <trans-unit id="Registry_ManifestUploaded"> <source>Uploaded manifest to '{0}'.</source> <target state="translated">Manifest se nahrl do {0}.</target> <note>{0} is the registry name</note> </trans-unit> <trans-unit id="Registry_TagUploadStarted"> <source>Uploading tag '{0}' to '{1}'.</source> <target state="translated">Znaka {0} se nahrv do {1}.</target> <note>{1} is the registry name</note> </trans-unit> <trans-unit id="Registry_TagUploaded"> <source>Uploaded tag '{0}' to '{1}'.</source> <target state="translated">Znaka {0} se nahrla do {1}.</target> <note>{1} is the registry name</note> </trans-unit> <trans-unit id="RepositoryNotFound"> <source>CONTAINER1015: Unable to access the repository '{0}' at tag '{1}' in the registry '{2}'. Please confirm that this name and tag are present in the registry.</source> <target state="translated">CONTAINER1015: Nelze zskat pstup k loiti {0} ve znace {1}v registru {2}. Potvrte prosm, e tento nzev a znaka se nachzej v registru.</target> <note>{StrBegin="CONTAINER1015: "}</note> </trans-unit> <trans-unit id="RequiredItemsContainsEmptyItems"> <source>CONTAINER4003: Required '{0}' items contain empty items.</source> <target state="translated">CONTAINER4003: Poadovan poloky '{0}' obsahuj przdn poloky.</target> <note>{StrBegin="CONTAINER4003: "}</note> </trans-unit> <trans-unit id="RequiredItemsNotSet"> <source>CONTAINER4002: Required '{0}' items were not set.</source> <target state="translated">CONTAINER4002: Poadovan poloky '{0}' nebyly nastaveny.</target> <note>{StrBegin="CONTAINER4002: "}</note> </trans-unit> <trans-unit id="RequiredPropertyNotSetOrEmpty"> <source>CONTAINER4001: Required property '{0}' was not set or empty.</source> <target state="translated">CONTAINER4001: Poadovan vlastnost '{0}' nebyla nastavena nebo je przdn.</target> <note>{StrBegin="CONTAINER4001: "}</note> </trans-unit> <trans-unit id="TooManyRetries"> <source>CONTAINER1006: Too many retries, stopping.</source> <target state="translated">CONTAINER1006: Pli mnoho opakovanch pokus, zastavuje se.</target> <note>{StrBegin="CONTAINER1006: "}</note> </trans-unit> <trans-unit id="UnableToAccessRepository"> <source>CONTAINER1016: Unable to access the repository '{0}' in the registry '{1}'. Please confirm your credentials are correct and that you have access to this repository and registry.</source> <target state="translated">CONTAINER1016: Nelze zskat pstup k loiti {0} v registru {1}. Ovte prosm sprvnost vaich pihlaovacch daj a to, e mte pstup k tomuto loiti a registru.</target> <note>{StrBegin="CONTAINER1016:" }</note> </trans-unit> <trans-unit id="UnknownAppCommandInstruction"> <source>CONTAINER2021: Unknown AppCommandInstruction '{0}'. Valid instructions are {1}.</source> <target state="translated">CONTAINER2021: Neznm AppCommandInstruction {0}. Platn pokyny jsou {1}.</target> <note>{StrBegin="CONTAINER2021: "}</note> </trans-unit> <trans-unit id="UnknownLocalRegistryType"> <source>CONTAINER2002: Unknown local registry type '{0}'. Valid local container registry types are {1}.</source> <target state="translated">CONTAINER2002: Neznm typ mstnho registru {0}. Platn typy registru mstnho kontejneru jsou {1}.</target> <note>{StrBegin="CONTAINER2002: "}</note> </trans-unit> <trans-unit id="UnknownMediaType"> <source>CONTAINER2003: The manifest for {0}:{1} from registry {2} was an unknown type: {3}. Please raise an issue at path_to_url with this message.</source> <target state="translated">CONTAINER2003: Manifest pro {0}:{1} z registru {2} byl neznm typ: {3}. Nahlaste prosm problm na path_to_url s touto zprvou.</target> <note>{StrBegin="CONTAINER2003: "}</note> </trans-unit> <trans-unit id="UnrecognizedMediaType"> <source>CONTAINER2001: Unrecognized mediaType '{0}'.</source> <target state="translated">CONTAINER2001: Nerozpoznan typ mediaType '{0}'.</target> <note>{StrBegin="CONTAINER2001: "}</note> </trans-unit> <trans-unit id="_Test"> <source>CONTAINER0000: Value for unit test {0}</source> <target state="translated">CONTAINER0000: Hodnota pro {0}testu jednotek</target> <note>Used only for unit tests</note> </trans-unit> </body> </file> </xliff> ```
/content/code_sandbox/src/Containers/Microsoft.NET.Build.Containers/Resources/xlf/Strings.cs.xlf
xml
2016-07-22T21:26:02
2024-08-16T17:23:58
sdk
dotnet/sdk
2,627
7,368
```xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="path_to_url"> <size android:height="1px"/> <solid android:color="@color/colorHomeLine"/> </shape> ```
/content/code_sandbox/app/src/main/res/drawable/shape_line.xml
xml
2016-11-20T11:59:25
2024-08-14T13:24:02
CloudReader
youlookwhat/CloudReader
4,933
50
```xml import { equalityComparerAsync } from '../util/comparer.js'; import { identityAsync } from '../util/identity.js'; import { ExtremaOptions } from './extremaoptions.js'; import { wrapWithAbort } from './operators/withabort.js'; import { throwIfAborted } from '../aborterror.js'; /** * Returns the maximum element with the optional selector. * * @template TSource The type of the elements in the source sequence. * @param {AsyncIterable<TSource>} source An async-iterable sequence to determine the maximum element of. * @param {ExtremaByOptions<TKey>} [options] The options which include an optional comparer and abort signal. * @returns {Promise<TResult>} The maximum element. */ export async function max<TSource, TResult = TSource>( source: AsyncIterable<TSource>, options?: ExtremaOptions<TSource, TResult> ): Promise<TResult> { const { ['comparer']: comparer = equalityComparerAsync, ['signal']: signal, ['selector']: selector = identityAsync, } = options || {}; throwIfAborted(signal); const it = wrapWithAbort(source, signal)[Symbol.asyncIterator](); let next = await it.next(); if (next.done) { throw new Error('Sequence contains no elements'); } let maxValue = await selector(next.value); while (!(next = await it.next()).done) { const current = await selector(next.value); if ((await comparer(current, maxValue)) > 0) { maxValue = current; } } return maxValue; } ```
/content/code_sandbox/src/asynciterable/max.ts
xml
2016-02-22T20:04:19
2024-08-09T18:46:41
IxJS
ReactiveX/IxJS
1,319
327
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file path_to_url Unless required by applicable law or agreed to in writing, "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY specific language governing permissions and limitations --> <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> <concept id="intro"> <title id="impala"><ph audience="standalone">Introducing Apache Impala</ph><ph audience="integrated">Apache Impala Overview</ph></title> <prolog> <metadata> <data name="Category" value="Impala"/> <data name="Category" value="Getting Started"/> <data name="Category" value="Concepts"/> <data name="Category" value="Data Analysts"/> <data name="Category" value="Developers"/> </metadata> </prolog> <conbody id="intro_body"> <p> Impala provides fast, interactive SQL queries directly on your Apache Hadoop data stored in HDFS, HBase, <ph rev="2.2.0">or the Amazon Simple Storage Service (S3)</ph>. In addition to using the same unified storage platform, Impala also uses the same metadata, SQL syntax (Hive SQL), ODBC driver, and user interface (Impala query UI in Hue) as Apache Hive. This provides a familiar and unified platform for real-time or batch-oriented queries. </p> <p> Impala is an addition to tools available for querying big data. Impala does not replace the batch processing frameworks built on MapReduce such as Hive. Hive and other frameworks built on MapReduce are best suited for long running batch jobs, such as those involving batch processing of Extract, Transform, and Load (ETL) type jobs. </p> <note> Impala graduated from the Apache Incubator on November 15, 2017. In places where the documentation formerly referred to <q>Cloudera Impala</q>, now the official name is <q>Apache Impala</q>. </note> </conbody> <concept id="benefits"> <title>Impala Benefits</title> <conbody> <p conref="../shared/impala_common.xml#common/impala_benefits"/> </conbody> </concept> <concept id="impala_hadoop"> <title>How Impala Works with <keyword keyref="hadoop_distro"/></title> <prolog> <metadata> <data name="Category" value="Concepts"/> </metadata> </prolog> <conbody> <p audience="hidden" conref="../shared/impala_common.xml#common/impala_overview_diagram"/> <p conref="../shared/impala_common.xml#common/component_list"/> <p conref="../shared/impala_common.xml#common/query_overview"/> </conbody> </concept> <concept id="features"> <title>Primary Impala Features</title> <conbody> <p conref="../shared/impala_common.xml#common/feature_list"/> </conbody> </concept> </concept> ```
/content/code_sandbox/docs/topics/impala_intro.xml
xml
2016-04-13T07:00:08
2024-08-16T10:10:44
impala
apache/impala
1,115
746
```xml import {$$} from 'select-dom'; import delegate from 'delegate-it'; import * as pageDetect from 'github-url-detection'; import features from '../feature-manager.js'; let submitting: number | undefined; const prefix = ' Comment - '; function hasDraftComments(): boolean { // `[id^="convert-to-issue-body"]` excludes the hidden pre-filled textareas created when opening the dropdown menu of review comments return $$('textarea:not([id^="convert-to-issue-body"])').some(textarea => textarea.value !== textarea.textContent, // Exclude comments being edited but not yet changed (and empty comment fields) ); } function disableOnSubmit(): void { clearTimeout(submitting); submitting = window.setTimeout(() => { submitting = undefined; }, 2000); } function updateDocumentTitle(): void { if (submitting) { return; } if (document.visibilityState === 'hidden' && hasDraftComments()) { document.title = ' Comment - ' + document.title; } else if (document.title.startsWith(prefix)) { document.title = document.title.replace(prefix, ''); } } function init(signal: AbortSignal): void { delegate('form', 'submit', disableOnSubmit, {capture: true, signal}); document.addEventListener('visibilitychange', updateDocumentTitle, {signal}); } void features.add(import.meta.url, { include: [ pageDetect.hasRichTextEditor, ], init, }); /* Test URLs: path_to_url */ ```
/content/code_sandbox/source/features/unfinished-comments.tsx
xml
2016-02-15T16:45:02
2024-08-16T18:39:26
refined-github
refined-github/refined-github
24,013
312
```xml <?xml version="1.0"?> <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "path_to_url"> <module name = "Checker"> <property name="charset" value="UTF-8"/> <property name="severity" value="error"/> <module name="FileTabCharacter"> <property name="eachLine" value="true"/> </module> <module name="TreeWalker"> <!-- Imports --> <module name="RedundantImport"> <property name="severity" value="error"/> </module> <module name="AvoidStarImport"> <property name="severity" value="error"/> </module> <!-- General Code Style --> <module name="LineLength"> <property name="max" value="150"/> <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> </module> <module name="EmptyBlock"> <property name="option" value="TEXT"/> <property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/> </module> <module name="EmptyCatchBlock"> <property name="exceptionVariableName" value="expected"/> </module> <module name="LeftCurly"> <property name="maxLineLength" value="100"/> </module> <module name="RightCurly"> <property name="option" value="alone"/> <property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"/> </module> <module name="RightCurly"> <property name="option" value="same"/> </module> <module name="NoFinalizer"/> <module name="ArrayTypeStyle"/> <module name="ModifierOrder"/> <module name="Indentation"> <property name="basicOffset" value="4"/> <property name="braceAdjustment" value="0"/> <property name="caseIndent" value="4"/> <property name="throwsIndent" value="4"/> <property name="lineWrappingIndentation" value="8"/> <property name="arrayInitIndent" value="2"/> </module> <!-- White Space --> <module name="GenericWhitespace"> <message key="ws.followed" value="GenericWhitespace ''{0}'' is followed by whitespace."/> <message key="ws.preceded" value="GenericWhitespace ''{0}'' is preceded with whitespace."/> <message key="ws.illegalFollow" value="GenericWhitespace ''{0}'' should followed by whitespace."/> <message key="ws.notPreceded" value="GenericWhitespace ''{0}'' is not preceded with whitespace."/> </module> <module name="WhitespaceAround"> <property name="allowEmptyConstructors" value="true"/> <property name="allowEmptyMethods" value="false"/> <property name="allowEmptyTypes" value="false"/> <property name="allowEmptyLoops" value="false"/> <message key="ws.notFollowed" value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/> <message key="ws.notPreceded" value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/> <property name="severity" value="error"/> </module> <module name="WhitespaceAfter"> <property name="tokens" value="COMMA, SEMI, TYPECAST"/> </module> <module name="NoWhitespaceBefore"> <property name="tokens" value="SEMI, DOT, POST_DEC, POST_INC"/> <property name="allowLineBreaks" value="true"/> </module> <module name="NoWhitespaceAfter"> <property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"/> <property name="allowLineBreaks" value="true"/> </module> <!-- Naming --> <module name="PackageName"> <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/> <message key="name.invalidPattern" value="Package name ''{0}'' must match pattern ''{1}''."/> </module> <module name="MethodName"> <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/> <message key="name.invalidPattern" value="Method name ''{0}'' must match pattern ''{1}''."/> </module> <module name="TypeName"> <message key="name.invalidPattern" value="Type name ''{0}'' must match pattern ''{1}''."/> </module> <module name="MemberName"> <property name="applyToPublic" value="false" /> <property name="applyToPackage" value="false" /> <property name="applyToProtected" value="false" /> <property name="format" value="^m[A-Z][a-z0-9][a-zA-Z0-9]*$"/> <message key="name.invalidPattern" value="Member name ''{0}'' must match pattern ''{1}''."/> </module> <module name="ParameterName"> <property name="format" value="^[a-z][a-zA-Z0-9]*$"/> <message key="name.invalidPattern" value="Parameter name ''{0}'' must match pattern ''{1}''."/> </module> <module name="LocalVariableName"> <property name="tokens" value="VARIABLE_DEF"/> <property name="format" value="^[a-z][a-zA-Z0-9]*$"/> <property name="allowOneCharVarInForLoop" value="true"/> <message key="name.invalidPattern" value="Local variable name ''{0}'' must match pattern ''{1}''."/> </module> <module name="ClassTypeParameterName"> <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> <message key="name.invalidPattern" value="Class type name ''{0}'' must match pattern ''{1}''."/> </module> <module name="MethodTypeParameterName"> <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> <message key="name.invalidPattern" value="Method type name ''{0}'' must match pattern ''{1}''."/> </module> </module> </module> ```
/content/code_sandbox/config/quality/checkstyle/checkstyle-config.xml
xml
2016-06-28T08:27:15
2024-08-05T10:12:04
android-material-stepper
stepstone-tech/android-material-stepper
1,781
1,548
```xml import ArrayBufferSlice from "../ArrayBufferSlice.js"; import * as DDS from "./dds.js"; import { readString, assert } from "../util.js"; import { downloadBufferSlice } from "../DownloadUtils.js"; export interface TPF { textures: DDS.DDS[]; } export function parse(buffer: ArrayBufferSlice): TPF { const view = buffer.createDataView(); assert(readString(buffer, 0x00, 0x04, false) == 'TPF\0'); const count = view.getUint32(0x08, true); let textureIdx = 0x10; const textures: DDS.DDS[] = []; for (var i = 0; i < count; i++) { const dataOffs = view.getUint32(textureIdx, true); textureIdx += 0x04; const size = view.getUint32(textureIdx, true); textureIdx += 0x04; const flags = view.getUint32(textureIdx, true); textureIdx += 0x04; const nameOffs = view.getUint32(textureIdx, true); textureIdx += 0x04; // Unk. textureIdx += 0x04; const name = readString(buffer, nameOffs, -1, true); const data = buffer.slice(dataOffs, dataOffs + size); const isSRGB = false; const dds = DDS.parse(data, name, isSRGB); textures.push(dds); } return { textures }; } ```
/content/code_sandbox/src/DarkSouls/tpf.ts
xml
2016-10-06T21:43:45
2024-08-16T17:03:52
noclip.website
magcius/noclip.website
3,206
330
```xml import { CollectionReference, DocumentReference, Query, getFirestore, } from 'firebase/firestore' import { ref, MaybeRefOrGetter } from 'vue-demi' import { useFirebaseApp } from '../app' import type { _Nullable, _RefWithState } from '../shared' import { VueFirestoreDocumentData, VueFirestoreQueryData, _InferReferenceType, _RefFirestore, _useFirestoreRef, _UseFirestoreRefOptions, } from './useFirestoreRef' export interface UseCollectionOptions<TData = unknown> extends _UseFirestoreRefOptions<TData> {} export type { _RefFirestore, VueFirestoreDocumentData, VueFirestoreQueryData } /** * Creates a reactive collection (usually an array) of documents from a collection ref or a query from Firestore. Extracts the type of the * query or converter. * * @param collectionRef - query or collection * @param options - optional options */ export function useCollection< // explicit generic as unknown to allow arbitrary types like numbers or strings R extends CollectionReference<unknown> | Query<unknown>, >( collectionRef: MaybeRefOrGetter<_Nullable<R>>, options?: UseCollectionOptions<_InferReferenceType<R>[]> ): _RefFirestore<_InferReferenceType<R>[]> /** * Creates a reactive collection (usually an array) of documents from a collection ref or a query from Firestore. * Accepts a generic to **enforce the type** of the returned Ref. Note you can (and probably should) use * `.withConverter()` to have stricter type safe version of a collection reference. * * @param collectionRef - query or collection * @param options - optional options */ export function useCollection<T>( collectionRef: MaybeRefOrGetter< _Nullable<CollectionReference<unknown> | Query<unknown>> >, options?: UseCollectionOptions<T[]> ): _RefFirestore<VueFirestoreQueryData<T>> export function useCollection<T>( collectionRef: MaybeRefOrGetter< _Nullable<CollectionReference<unknown> | Query<unknown>> >, options?: UseCollectionOptions<T[]> ): _RefFirestore<VueFirestoreQueryData<T>> { return _useFirestoreRef(collectionRef, { target: ref([]), ...options, }) as _RefFirestore<VueFirestoreQueryData<T>> } export interface UseDocumentOptions<TData = unknown> extends _UseFirestoreRefOptions<TData> {} /** * Creates a reactive document from a document ref from Firestore. Automatically extracts the type of the converter or * the document. * * @param documentRef - document reference * @param options - optional options */ export function useDocument< // explicit generic as unknown to allow arbitrary types like numbers or strings R extends DocumentReference<unknown>, >( documentRef: MaybeRefOrGetter<_Nullable<R>>, options?: UseDocumentOptions<_InferReferenceType<R>> ): _RefFirestore<_InferReferenceType<R> | undefined> // this one can't be null or should be specified in the converter /** * Creates a reactive collection (usually an array) of documents from a collection ref or a query from Firestore. * Accepts a generic to **enforce the type** of the returned Ref. Note you can (and probably should) use * `.withConverter()` to have stricter type safe version of a collection reference. * * @param documentRef - query or collection * @param options - optional options */ export function useDocument<T>( documentRef: MaybeRefOrGetter<_Nullable<DocumentReference>>, options?: UseDocumentOptions<T> ): _RefFirestore<VueFirestoreDocumentData<T> | undefined> export function useDocument<T>( documentRef: MaybeRefOrGetter<_Nullable<DocumentReference<unknown>>>, options?: UseDocumentOptions<T> ): _RefFirestore<VueFirestoreDocumentData<T> | undefined> { // no unwrapRef to have a simpler type return _useFirestoreRef(documentRef, options) as _RefFirestore< VueFirestoreDocumentData<T> > } /** * Retrieves the Firestore instance. * * @param name - name of the application * @returns the Firestore instance */ export function useFirestore(name?: string) { return getFirestore(useFirebaseApp(name)) } ```
/content/code_sandbox/src/firestore/index.ts
xml
2016-01-07T22:57:53
2024-08-16T14:23:27
vuefire
vuejs/vuefire
3,833
902
```xml /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import type { Placement } from "@popperjs/core"; import * as React from "react"; import type { PopperArrowProps } from "react-popper"; import { Classes, DISPLAYNAME_PREFIX } from "../../common"; import { getBasePlacement } from "./popperUtils"; // these paths come from the Core Kit Sketch file // path_to_url const SVG_SHADOW_PATH = "M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378" + "-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"; const SVG_ARROW_PATH = "M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005" + "c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"; // additional space between arrow and edge of target const ARROW_SPACING = 4; export const POPOVER_ARROW_SVG_SIZE = 30; export const TOOLTIP_ARROW_SVG_SIZE = 22; /* istanbul ignore next */ /** Modifier helper function to compute arrow rotate() transform */ function getArrowAngle(placement?: Placement) { if (placement == null) { return 0; } // can only be top/left/bottom/right - auto is resolved internally switch (getBasePlacement(placement)) { case "top": return -90; case "left": return 180; case "bottom": return 90; default: return 0; } } /* istanbul ignore next */ /** * Popper's builtin "arrow" modifier options.padding doesn't seem to work for us, so we * need to compute our own offset in the direction of the popover relative to the reference. */ function getArrowReferenceOffsetStyle(placement: Placement) { const offset = POPOVER_ARROW_SVG_SIZE / 2 - ARROW_SPACING; switch (getBasePlacement(placement)) { case "top": return { bottom: -offset }; case "left": return { right: -offset }; case "bottom": return { top: -offset }; default: return { left: -offset }; } } export interface PopoverArrowProps { arrowProps: PopperArrowProps; placement: Placement; } export const PopoverArrow: React.FC<PopoverArrowProps> = ({ arrowProps: { ref, style }, placement }) => ( // data attribute allows popper.js to position the arrow <div aria-hidden={true} className={Classes.POPOVER_ARROW} data-popper-arrow={true} ref={ref} style={{ ...style, ...getArrowReferenceOffsetStyle(placement), }} > <svg viewBox={`0 0 ${POPOVER_ARROW_SVG_SIZE} ${POPOVER_ARROW_SVG_SIZE}`} style={{ transform: `rotate(${getArrowAngle(placement)}deg)` }} > <path className={Classes.POPOVER_ARROW + "-border"} d={SVG_SHADOW_PATH} /> <path className={Classes.POPOVER_ARROW + "-fill"} d={SVG_ARROW_PATH} /> </svg> </div> ); PopoverArrow.displayName = `${DISPLAYNAME_PREFIX}.PopoverArrow`; ```
/content/code_sandbox/packages/core/src/components/popover/popoverArrow.tsx
xml
2016-10-25T21:17:50
2024-08-16T15:14:48
blueprint
palantir/blueprint
20,593
847
```xml <?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ja" original="../DependencyManager.resx"> <body> <trans-unit id="couldNotLoadDependencyManagerExtension"> <source>The dependency manager extension {0} could not be loaded. Message: {1}</source> <target state="translated"> {0} : {1}</target> <note /> </trans-unit> <trans-unit id="packageManagerError"> <source>{0}</source> <target state="translated">{0}</target> <note /> </trans-unit> <trans-unit id="packageManagerUnknown"> <source>Package manager key '{0}' was not registered in {1}. Currently registered: {2}</source> <target state="translated"> '{0}' {1} : {2}</target> <note /> </trans-unit> </body> </file> </xliff> ```
/content/code_sandbox/src/fcs-fable/src/Compiler/DependencyManager/xlf/DependencyManager.txt.ja.xlf
xml
2016-01-11T10:10:13
2024-08-15T11:42:55
Fable
fable-compiler/Fable
2,874
286
```xml import * as React from 'react'; import useModernLayoutEffect from 'use-isomorphic-layout-effect'; import {useId} from '../hooks/useId'; import type {FloatingNodeType, FloatingTreeType, ReferenceType} from '../types'; import {createPubSub} from '../utils/createPubSub'; const FloatingNodeContext = React.createContext<FloatingNodeType | null>(null); const FloatingTreeContext = React.createContext<FloatingTreeType | null>(null); /** * Returns the parent node id for nested floating elements, if available. * Returns `null` for top-level floating elements. */ export const useFloatingParentNodeId = (): string | null => React.useContext(FloatingNodeContext)?.id || null; /** * Returns the nearest floating tree context, if available. */ export const useFloatingTree = < RT extends ReferenceType = ReferenceType, >(): FloatingTreeType<RT> | null => React.useContext(FloatingTreeContext) as FloatingTreeType<RT> | null; /** * Registers a node into the `FloatingTree`, returning its id. * @see path_to_url */ export function useFloatingNodeId(customParentId?: string): string { const id = useId(); const tree = useFloatingTree(); const reactParentId = useFloatingParentNodeId(); const parentId = customParentId || reactParentId; useModernLayoutEffect(() => { const node = {id, parentId}; tree?.addNode(node); return () => { tree?.removeNode(node); }; }, [tree, id, parentId]); return id; } export interface FloatingNodeProps { children?: React.ReactNode; id: string; } /** * Provides parent node context for nested floating elements. * @see path_to_url */ export function FloatingNode(props: FloatingNodeProps): JSX.Element { const {children, id} = props; const parentId = useFloatingParentNodeId(); return ( <FloatingNodeContext.Provider value={React.useMemo(() => ({id, parentId}), [id, parentId])} > {children} </FloatingNodeContext.Provider> ); } export interface FloatingTreeProps { children?: React.ReactNode; } /** * Provides context for nested floating elements when they are not children of * each other on the DOM. * This is not necessary in all cases, except when there must be explicit communication between parent and child floating elements. It is necessary for: * - The `bubbles` option in the `useDismiss()` Hook * - Nested virtual list navigation * - Nested floating elements that each open on hover * - Custom communication between parent and child floating elements * @see path_to_url */ export function FloatingTree(props: FloatingTreeProps): JSX.Element { const {children} = props; const nodesRef = React.useRef<Array<FloatingNodeType>>([]); const addNode = React.useCallback((node: FloatingNodeType) => { nodesRef.current = [...nodesRef.current, node]; }, []); const removeNode = React.useCallback((node: FloatingNodeType) => { nodesRef.current = nodesRef.current.filter((n) => n !== node); }, []); const events = React.useState(() => createPubSub())[0]; return ( <FloatingTreeContext.Provider value={React.useMemo( () => ({ nodesRef, addNode, removeNode, events, }), [addNode, removeNode, events], )} > {children} </FloatingTreeContext.Provider> ); } ```
/content/code_sandbox/packages/react/src/components/FloatingTree.tsx
xml
2016-03-29T17:00:47
2024-08-16T16:29:40
floating-ui
floating-ui/floating-ui
29,450
746
```xml // Composables import { VClassIcon } from '@/composables/icons' // Types import type { IconAliases, IconSet } from '@/composables/icons' const aliases: IconAliases = { collapse: 'fas fa-chevron-up', complete: 'fas fa-check', cancel: 'fas fa-times-circle', close: 'fas fa-times', delete: 'fas fa-times-circle', // delete (e.g. v-chip close) clear: 'fas fa-times-circle', // delete (e.g. v-chip close) success: 'fas fa-check-circle', info: 'fas fa-info-circle', warning: 'fas fa-exclamation', error: 'fas fa-exclamation-triangle', prev: 'fas fa-chevron-left', next: 'fas fa-chevron-right', checkboxOn: 'fas fa-check-square', checkboxOff: 'far fa-square', // note 'far' checkboxIndeterminate: 'fas fa-minus-square', delimiter: 'fas fa-circle', // for carousel sortAsc: 'fas fa-arrow-up', sortDesc: 'fas fa-arrow-down', expand: 'fas fa-chevron-down', menu: 'fas fa-bars', subgroup: 'fas fa-caret-down', dropdown: 'fas fa-caret-down', radioOn: 'far fa-dot-circle', radioOff: 'far fa-circle', edit: 'fas fa-edit', ratingEmpty: 'far fa-star', ratingFull: 'fas fa-star', ratingHalf: 'fas fa-star-half', loading: 'fas fa-sync', first: 'fas fa-step-backward', last: 'fas fa-step-forward', unfold: 'fas fa-arrows-alt-v', file: 'fas fa-paperclip', plus: 'fas fa-plus', minus: 'fas fa-minus', calendar: 'fas fa-calendar', treeviewCollapse: 'fas fa-caret-down', treeviewExpand: 'fas fa-caret-right', eyeDropper: 'fas fa-eye-dropper', } const fa: IconSet = { component: VClassIcon, } export { aliases, fa } ```
/content/code_sandbox/packages/vuetify/src/iconsets/fa.ts
xml
2016-09-12T00:39:35
2024-08-16T20:06:39
vuetify
vuetifyjs/vuetify
39,539
458
```xml <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="path_to_url" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <command> <update> <domain:update xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd"> <domain:name>example.com</domain:name> <domain:chg/> </domain:update> </update> <extension> <rgp:update xmlns:rgp="urn:ietf:params:xml:ns:rgp-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:rgp-1.0 rgp-1.0.xsd"> <rgp:restore op="report"> <rgp:report> <rgp:preData>Pre-delete registration data goes here. Both XML and free text are allowed.</rgp:preData> <rgp:postData>Post-restore registration data goes here. Both XML and free text are allowed.</rgp:postData> <rgp:delTime>2003-07-10T22:00:00.0Z</rgp:delTime> <rgp:resTime>2003-07-20T22:00:00.0Z</rgp:resTime> <rgp:resReason>Registrant error.</rgp:resReason> <rgp:statement>This registrar has not restored the Registered Name in order to assume the rights to use or sell the Registered Name for itself or for any third party.</rgp:statement> <rgp:statement>The information in this report is true to best of this registrar's knowledge, and this registrar acknowledges that intentionally supplying false information in this report shall constitute an incurable material breach of the Registry-Registrar Agreement.</rgp:statement> <rgp:other>Supporting information goes here.</rgp:other> </rgp:report> </rgp:restore> </rgp:update> </extension> <clTRID>ABC-12345</clTRID> </command> </epp> ```
/content/code_sandbox/core/src/test/resources/google/registry/xjc/domain_update_restore_report.xml
xml
2016-02-29T20:16:48
2024-08-15T19:49:29
nomulus
google/nomulus
1,685
541
```xml import { MediaWallHeaderComponent } from './media-wall-header.component'; describe('Component: MediaWallHeaderComponent', () => { it('should create an instance', () => { const component = new MediaWallHeaderComponent(); expect(component).toBeTruthy(); }); }); ```
/content/code_sandbox/src/app/media-wall/media-wall-header/media-wall-header.component.spec.ts
xml
2016-09-20T13:50:42
2024-08-06T13:58:18
loklak_search
fossasia/loklak_search
1,829
56
```xml /* * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import { ComponentFixture, fakeAsync, TestBed, tick } from "@angular/core/testing"; import { MatDialog, MatDialogModule, MatDialogRef } from "@angular/material/dialog"; import { ActivatedRoute } from "@angular/router"; import { RouterTestingModule } from "@angular/router/testing"; import { of } from "rxjs"; import { TypeService } from "src/app/api"; import { APITestingModule } from "src/app/api/testing"; import { TypesTableComponent } from "src/app/core/types/table/types-table.component"; import { isAction } from "src/app/shared/generic-table/generic-table.component"; const testType = { description: "TestDescription", id: 1, lastUpdated: new Date(), name: "TestQuest", useInTable: "server" }; describe("TypesTableComponent", () => { let component: TypesTableComponent; let fixture: ComponentFixture<TypesTableComponent>; beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [ TypesTableComponent ], imports: [ APITestingModule, RouterTestingModule, MatDialogModule ] }).compileComponents(); fixture = TestBed.createComponent(TypesTableComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it("should create", () => { expect(component).toBeTruthy(); }); it("sets the fuzzy search subject based on the search query param", fakeAsync(() => { const router = TestBed.inject(ActivatedRoute); const searchString = "testquest"; spyOnProperty(router, "queryParamMap").and.returnValue(of(new Map([["search", searchString]]))); let searchValue = "not the right string"; component.fuzzySubject.subscribe( s => searchValue = s ); component.ngOnInit(); tick(); expect(searchValue).toBe(searchString); })); it("updates the fuzzy search output", fakeAsync(() => { let called = false; const text = "testquest"; const spy = jasmine.createSpy("subscriber", (txt: string): void =>{ if (!called) { expect(txt).toBe(""); called = true; } else { expect(txt).toBe(text); } }); component.fuzzySubject.subscribe(spy); tick(); expect(spy).toHaveBeenCalled(); component.fuzzControl.setValue(text); component.updateURL(); tick(); expect(spy).toHaveBeenCalledTimes(2); })); it("handles unrecognized contextmenu events", () => { expect(async () => component.handleContextMenu({ action: component.contextMenuItems[0].name, data: {description: "Type Description", id: 1, lastUpdated: new Date(), name: "Type", useInTable: "server"} })).not.toThrow(); }); it("handles the 'delete' context menu item", fakeAsync(async () => { const item = component.contextMenuItems.find(c => c.name === "Delete"); if (!item) { return fail("missing 'Delete' context menu item"); } if (!isAction(item)) { return fail("expected an action, not a link"); } expect(item.multiRow).toBeFalsy(); expect(item.disabled).toBeUndefined(); const api = TestBed.inject(TypeService); const spy = spyOn(api, "deleteType").and.callThrough(); expect(spy).not.toHaveBeenCalled(); const dialogService = TestBed.inject(MatDialog); const openSpy = spyOn(dialogService, "open").and.returnValue({ afterClosed: () => of(true) } as MatDialogRef<unknown>); const type = await api.createType({description: "blah", name: "test", useInTable: "server"}); expect(openSpy).not.toHaveBeenCalled(); const asyncExpectation = expectAsync(component.handleContextMenu({action: "delete", data: type})).toBeResolvedTo(undefined); tick(); expect(openSpy).toHaveBeenCalled(); tick(); expect(spy).toHaveBeenCalled(); await asyncExpectation; })); it("generates 'Edit' context menu item href", () => { const item = component.contextMenuItems.find(i => i.name === "Edit"); if (!item) { return fail("missing 'Edit' context menu item"); } if (isAction(item)) { return fail("expected a link, not an action"); } if (typeof(item.href) !== "function") { return fail(`'Edit' context menu item should use a function to determine href, instead uses: ${item.href}`); } expect(item.href(testType)).toBe(String(testType.id)); expect(item.queryParams).toBeUndefined(); expect(item.fragment).toBeUndefined(); expect(item.newTab).toBeFalsy(); }); it("generates 'Open in New Tab' context menu item href", () => { const item = component.contextMenuItems.find(i => i.name === "Open in New Tab"); if (!item) { return fail("missing 'Open in New Tab' context menu item"); } if (isAction(item)) { return fail("expected a link, not an action"); } if (typeof(item.href) !== "function") { return fail(`'Open in New Tab' context menu item should use a function to determine href, instead uses: ${item.href}`); } expect(item.href(testType)).toBe(String(testType.id)); expect(item.queryParams).toBeUndefined(); expect(item.fragment).toBeUndefined(); expect(item.newTab).toBeTrue(); }); }); ```
/content/code_sandbox/experimental/traffic-portal/src/app/core/types/table/types-table.component.spec.ts
xml
2016-09-02T07:00:06
2024-08-16T03:50:21
trafficcontrol
apache/trafficcontrol
1,043
1,217
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:focusable="true" android:focusableInTouchMode="true" android:paddingTop="10dp"> <ProgressBar android:id="@+id/install_firm_progress" style="?android:attr/progressBarStyleHorizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:max="1" android:maxHeight="5dp" android:minHeight="5dp" android:minWidth="0dp" android:paddingBottom="10dp" android:progress="1" android:progressDrawable="@drawable/progress_horizontal_holo_blue_dark"/> <TableLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="5dp" android:shrinkColumns="1"> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingEnd="5dp" android:text="@string/firmware_location" /> <TextView android:id="@+id/firmware_location" android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="@android:color/white" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingEnd="5dp" android:text="@string/device_chipset" /> <TextView android:id="@+id/device_chipset" android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="@android:color/white" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:paddingEnd="5dp" android:text="@string/util_location_text" /> <Spinner android:id="@+id/util_spinner" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" /> </TableRow> </TableLayout> <CheckBox android:id="@+id/backup" android:layout_width="match_parent" android:layout_height="wrap_content" android:checked="false" android:text="@string/create_backup" /> </LinearLayout> ```
/content/code_sandbox/app/src/main/res/layout/install_firmware.xml
xml
2016-11-25T01:39:07
2024-08-13T12:17:17
Hijacker
chrisk44/Hijacker
2,371
617
```xml <legalnotice id="legalnotice"> <para> Estas permesate kopi, disdoni kaj/a modifi i tiun dokumenton la la a ajna posta versio publikigita de Free Software Foundation sen iu nevaria sekcio, sen iu antaakovrila teksto, kaj sen iu malantaakovrila teksto. Ekzemplero de la GFDL trovias e i tiu <ulink type="help" url="ghelp:fdl">ligilo</ulink> a en la dosiero COPYING-DOCS, disdonita kun i tiu manlibro. </para> <para> i tiu manlibro estas parto de kolekto de GNOME-manlibroj disdonitaj la la GFDL. Se vi volas disdoni i tiun manlibron aparte de la kolekto, vi povas fari tion se vi aldonas kopion de la permesilo al la manlibro, kiel priskribite en sekcio 6 de la permesilo. </para> <para> Multaj nomoj uzataj de kompanioj por distingi siajn produktojn kaj servojn estas alproprigitaj kiel varnomoj. Kie tiuj nomoj aperas en ajna GNOME-dokumento, kaj membroj de la Dokumentada Projekto de GNOME estas sciigitaj pri tiuj varnomoj, tie la nomoj estas majusklaj a havas majusklajn komencliterojn. </para> <para> DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE TERMS OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER UNDERSTANDING THAT: <orderedlist> <listitem> <para>DOCUMENT IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER; AND </para> </listitem> <listitem> <para>UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, INITIAL WRITER, ANY CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR LOSSES ARISING OUT OF OR RELATING TO USE OF THE DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. </para> </listitem> </orderedlist> </para> </legalnotice> ```
/content/code_sandbox/help/eo/legal.xml
xml
2016-08-08T17:54:58
2024-08-06T13:58:47
x-mario-center
fossasia/x-mario-center
1,487
832
```xml <?xml version="1.0" encoding="utf-8"?> <View xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/black" android:alpha=".6" /> ```
/content/code_sandbox/app/src/main/res/layout/dim.xml
xml
2016-07-08T03:18:40
2024-08-14T02:54:51
talon-for-twitter-android
klinker24/talon-for-twitter-android
1,189
62
```xml /* * Wire * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with this program. If not, see path_to_url * */ import {ConversationProtocol, CONVERSATION_TYPE} from '@wireapp/api-client/lib/conversation'; import {FeatureStatus} from '@wireapp/api-client/lib/team'; import {MixedConversation, MLSConversation} from 'src/script/conversation/ConversationSelectors'; import {Conversation} from 'src/script/entity/Conversation'; import {TestFactory} from 'test/helper/TestFactory'; import {generateUser} from 'test/helper/UserGenerator'; import {createUuid} from 'Util/uuid'; import {finaliseMigrationOfMixedConversations} from './migrationFinaliser'; const createMixedConversation = (): MixedConversation => { const conversation = new Conversation(createUuid(), '', ConversationProtocol.MIXED); const mockGroupId = 'groupId'; conversation.groupId = mockGroupId; conversation.type(CONVERSATION_TYPE.REGULAR); return conversation as MixedConversation; }; const changeConversationProtocolToMLS = (conversation: MixedConversation): MLSConversation => { return { ...conversation, protocol: ConversationProtocol.MLS, } as MLSConversation; }; const injectParticipantsIntoConversation = ( conversation: Conversation, {doAllSupportMLS}: {doAllSupportMLS: boolean}, ) => { const usersSupportingMLS = Array(5) .fill(0) .map(() => { const user = generateUser({id: createUuid(), domain: 'test.wire.test'}); user.supportedProtocols([ConversationProtocol.PROTEUS, ConversationProtocol.MLS]); return user; }); if (!doAllSupportMLS) { const userNotSupportingMLS = generateUser({id: createUuid(), domain: 'test.wire.test'}); userNotSupportingMLS.supportedProtocols([ConversationProtocol.PROTEUS]); return conversation.participating_user_ets([...usersSupportingMLS, userNotSupportingMLS]); } return conversation.participating_user_ets(usersSupportingMLS); }; const testFactory = new TestFactory(); describe('finaliseMigrationOfMixedConversations', () => { it('should finalise when finaliseRegardlessAfter date arrived', async () => { const conversationRepository = await testFactory.exposeConversationActors(); const teamRepository = await testFactory.exposeTeamActors(); const mixedConversation = createMixedConversation(); const mlsConversation = changeConversationProtocolToMLS(mixedConversation); jest.spyOn(teamRepository['teamState'], 'teamFeatures').mockReturnValueOnce({ mlsMigration: { status: FeatureStatus.ENABLED, config: { startTime: new Date(Date.now() - 1000 * 60 * 60 * 24 * 7).toISOString(), //week before finaliseRegardlessAfter: new Date().toISOString(), }, }, }); jest.spyOn(conversationRepository, 'updateConversationProtocol').mockResolvedValueOnce(mlsConversation); await finaliseMigrationOfMixedConversations( [mixedConversation], conversationRepository.updateConversationProtocol, teamRepository.getTeamMLSMigrationStatus, ); expect(conversationRepository.updateConversationProtocol).toHaveBeenCalledWith( mixedConversation, ConversationProtocol.MLS, ); }); it('should finalise when all conversation participants support MLS', async () => { const conversationRepository = await testFactory.exposeConversationActors(); const teamRepository = await testFactory.exposeTeamActors(); const mixedConversation = createMixedConversation(); injectParticipantsIntoConversation(mixedConversation, {doAllSupportMLS: true}); const mlsConversation = changeConversationProtocolToMLS(mixedConversation); jest.spyOn(teamRepository['teamState'], 'teamFeatures').mockReturnValueOnce({ mlsMigration: { status: FeatureStatus.ENABLED, config: { startTime: new Date(Date.now() - 1000 * 60 * 60 * 24 * 7).toISOString(), //week before finaliseRegardlessAfter: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7).toISOString(), //week after }, }, }); jest.spyOn(conversationRepository, 'updateConversationProtocol').mockResolvedValueOnce(mlsConversation); await finaliseMigrationOfMixedConversations( [mixedConversation], conversationRepository.updateConversationProtocol, teamRepository.getTeamMLSMigrationStatus, ); expect(conversationRepository.updateConversationProtocol).toHaveBeenCalledWith( mixedConversation, ConversationProtocol.MLS, ); }); it('should not be finalized if none of the requirements are met', async () => { const conversationRepository = await testFactory.exposeConversationActors(); const teamRepository = await testFactory.exposeTeamActors(); const mixedConversation = createMixedConversation(); injectParticipantsIntoConversation(mixedConversation, {doAllSupportMLS: false}); jest.spyOn(teamRepository['teamState'], 'teamFeatures').mockReturnValueOnce({ mlsMigration: { status: FeatureStatus.ENABLED, config: { startTime: new Date(Date.now() - 1000 * 60 * 60 * 24 * 7).toISOString(), //week before finaliseRegardlessAfter: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7).toISOString(), //week after }, }, }); jest.spyOn(conversationRepository, 'updateConversationProtocol'); await finaliseMigrationOfMixedConversations( [mixedConversation], conversationRepository.updateConversationProtocol, teamRepository.getTeamMLSMigrationStatus, ); expect(conversationRepository.updateConversationProtocol).not.toHaveBeenCalled(); }); }); ```
/content/code_sandbox/src/script/mls/MLSMigration/migrationFinaliser/migrationFinaliser.test.ts
xml
2016-07-21T15:34:05
2024-08-16T11:40:13
wire-webapp
wireapp/wire-webapp
1,125
1,262
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ // TypeScript Version: 4.1 /// <reference types="@stdlib/types"/> import { Layout } from '@stdlib/types/blas'; /** * Interface describing `dlacpy`. */ interface Routine { /** * Copies all or part of a matrix `A` to another matrix `B`. * * @param order - storage layout of `A` and `B` * @param uplo - specifies whether to copy the upper or lower triangular/trapezoidal part of matrix `A` * @param M - number of rows in matrix `A` * @param N - number of columns in matrix `A` * @param A - input matrix * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) * @param B - output matrix * @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) * @returns `B` * * @example * var Float64Array = require( '@stdlib/array/float64' ); * * var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] ); * var B = new Float64Array( 4 ); * * dlacpy( 'row-major', 'all', 2, 2, A, 2, B, 2 ); * // B => <Float64Array>[ 1.0, 2.0, 3.0, 4.0 ] */ ( order: Layout, uplo: string, M: number, N: number, A: Float64Array, LDA: number, B: Float64Array, LDB: number ): Float64Array; /** * Copies all or part of a matrix `A` to another matrix `B` using alternative indexing semantics. * * @param uplo - specifies whether to copy the upper or lower triangular/trapezoidal part of matrix `A` * @param M - number of rows in matrix `A` * @param N - number of columns in matrix `A` * @param A - input matrix * @param strideA1 - stride of the first dimension of `A` * @param strideA2 - stride of the second dimension of `A` * @param offsetA - starting index for `A` * @param B - output matrix * @param strideB1 - stride of the first dimension of `B` * @param strideB2 - stride of the second dimension of `B` * @param offsetB - starting index for `B` * @returns `B` * * @example * var Float64Array = require( '@stdlib/array/float64' ); * * var A = new Float64Array( [ 0.0, 1.0, 2.0, 3.0, 4.0 ] ); * var B = new Float64Array( [ 0.0, 0.0, 11.0, 312.0, 53.0, 412.0 ] ); * * dlacpy.ndarray( 'all', 2, 2, A, 2, 1, 1, B, 2, 1, 2 ); * // B => <Float64Array>[ 0.0, 0.0, 1.0, 2.0, 3.0, 4.0 ] */ ndarray( uplo: string, M: number, N: number, A: Float64Array, strideA1: number, strideA2: number, offsetA: number, B: Float64Array, strideB1: number, strideB2: number, offsetB: number ): Float64Array; } /** * Copies all or part of a matrix `A` to another matrix `B`. * * @param order - storage layout of `A` and `B` * @param uplo - specifies whether to copy the upper or lower triangular/trapezoidal part of matrix `A` * @param M - number of rows in matrix `A` * @param N - number of columns in matrix `A` * @param A - input matrix * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) * @param B - output matrix * @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) * @returns `B` * * @example * var Float64Array = require( '@stdlib/array/float64' ); * * var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] ); * var B = new Float64Array( 4 ); * * dlacpy( 'row-major', 'all', 2, 2, A, 2, B, 2 ); * // B => <Float64Array>[ 1.0, 2.0, 3.0, 4.0 ] * * @example * var Float64Array = require( '@stdlib/array/float64' ); * * var A = new Float64Array( [ 0.0, 1.0, 2.0, 3.0, 4.0 ] ); * var B = new Float64Array( [ 0.0, 0.0, 11.0, 312.0, 53.0, 412.0 ] ); * * dlacpy.ndarray( 'all', 2, 2, A, 2, 1, 1, B, 2, 1, 2 ); * // B => <Float64Array>[ 0.0, 0.0, 1.0, 2.0, 3.0, 4.0 ] */ declare var dlacpy: Routine; // EXPORTS // export = dlacpy; ```
/content/code_sandbox/lib/node_modules/@stdlib/lapack/base/dlacpy/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
1,381
```xml import * as React from 'react'; import type { IComponent, IComponentStyles, ISlotProp, IStyleableComponentProps } from '@fluentui/foundation-legacy'; import type { IButtonSlot, ICalloutSlot, IListSlot } from '../../utilities/factoryComponents.types'; import type { IBaseProps } from '../../Utilities'; import type { IStackSlot, ITextSlot } from '@fluentui/react'; export type IMicroFeedbackComponent = IComponent< IMicroFeedbackProps, IMicroFeedbackTokens, IMicroFeedbackStyles, IMicroFeedbackViewProps >; // These types are redundant with IMicroFeedbackComponent but are needed until TS function return widening issue // is resolved: path_to_url // For now, these helper types can be used to provide return type safety when specifying tokens and styles functions. export type IMicroFeedbackTokenReturnType = ReturnType<Extract<IMicroFeedbackComponent['tokens'], Function>>; export type IMicroFeedbackStylesReturnType = ReturnType<Extract<IMicroFeedbackComponent['styles'], Function>>; export type IMicroFeedbackSlot = ISlotProp<IMicroFeedbackProps>; /** * Defines the type of feedback that is being given (positive, none or negative). */ export type VoteType = 'dislike' | 'no_vote' | 'like'; export interface IMicroFeedbackQuestion { /** * Defines the text of the question to be asked after a vote is given. */ question: string; /** * Defines a list of options from which to choose as an answer to the given question. */ options: string[]; /** * Defines an identifier that correlates the question to the Like or Dislike. */ id: string; } export interface IMicroFeedbackSlots { /** * Defines the root slot of the component. */ root?: IStackSlot; /** * Defines the stack container for the Like/Dislike pair of icons. */ iconContainer?: IStackSlot; /** * Defines the container element that includes the follow up question and options. */ followUpContainer?: ICalloutSlot | IStackSlot; /** * Defines the follow up question text. */ followUpQuestion?: ITextSlot; /** * Defines the list of options that can be chosen as an answer to the follow up question. */ followUpOptionList?: IListSlot; /** * Defines the options available for the follow up questions. */ followUpOption?: IButtonSlot; /** * Defines the text that is provided in the options available for the follow up questions. */ followUpOptionText?: ITextSlot; /** * Defines the thanks that follows after a vote or followup. */ thanksContainer?: ICalloutSlot; } export interface IMicroFeedback {} export interface IMicroFeedbackProps extends IMicroFeedbackSlots, IStyleableComponentProps<IMicroFeedbackProps, IMicroFeedbackTokens, IMicroFeedbackStyles>, IBaseProps<IMicroFeedback> { /** * Defines a callback that sends the feedback to a potential backend. */ sendFeedback?: (vote: VoteType) => void; /** * Defines a callback for sending the index of the chosen option for the follow up question to a potential backend. */ sendFollowUpIndex?: (id: string, index: number) => void; /** * Defines a localized string for the Like icon. */ likeIconTitle?: string; /** * Defines a localized string for the Dislike icon. */ dislikeIconTitle?: string; /** * Defines a localized string for the aria label of the Like icon for the benefit of screen readers. */ likeIconAriaLabel?: string; /** * Defines a localized string for the aria label of the Dislike icon for the benefit of screen readers. */ dislikeIconAriaLabel?: string; /** * Defines an optional question that is asked if Like is selected. */ likeQuestion?: IMicroFeedbackQuestion; /** * Defines an optional question that is asked if Dislike is selected. */ dislikeQuestion?: IMicroFeedbackQuestion; /** * Determines if this is a Stack or Callout followup. */ inline?: boolean; /** * Determines if a thank you note needs to be shown */ thanksText?: string; } export interface IMicroFeedbackViewProps extends IMicroFeedbackProps { /** * Defines the current vote selection so far. * @defaultvalue 'no_vote' */ vote: VoteType; /** * Determines if the follow up section is visible or not. * @defaultvalue false */ isFollowUpVisible?: boolean; /** * Determines if the Callout with the "thank you" message is visible or not. * @defaultvalue false */ isThanksVisible?: boolean; /** * Defines a reference for the Like button. */ likeRef: React.RefObject<HTMLDivElement>; /** * Defines a reference for the Dislike button. */ dislikeRef: React.RefObject<HTMLDivElement>; /** * Defines a callback that is called when the Callout is dismissed. */ onCalloutDismiss: () => void; /** * Defines a callback that is called when the Thanks is dismissed. */ onThanksDismiss: () => void; /** * Defines a callback that is called when the Thanks is shown. */ onThanksShow: () => void; /** * Defines a callback that is called when Like is selected. */ onLikeVote: () => void; /** * Defines a callback that is called when Dislike is selected. */ onDislikeVote: () => void; } export interface IMicroFeedbackTokens { followUpBackgroundColor?: string; questionMargin?: number | string; width?: number | string; } export type IMicroFeedbackStyles = IComponentStyles<IMicroFeedbackSlots>; ```
/content/code_sandbox/packages/react-experiments/src/components/MicroFeedback/MicroFeedback.types.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
1,271
```xml import { Path } from 'slate' export const input = { path: [0, 1, 2], another: [], } export const test = ({ path, another }) => { return Path.endsBefore(path, another) } export const output = false ```
/content/code_sandbox/packages/slate/test/interfaces/Path/endsBefore/root.tsx
xml
2016-06-18T01:52:42
2024-08-16T18:43:42
slate
ianstormtaylor/slate
29,492
59
```xml // // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. import { expect } from "chai"; import * as identity from "../../../src/v2/providers/identity"; import { MINIMAL_V2_ENDPOINT } from "../../fixtures"; import { onInit } from "../../../src/v2/core"; import { MockRequest } from "../../fixtures/mockrequest"; import { runHandler } from "../../helper"; const BEFORE_CREATE_TRIGGER = { eventType: "providers/cloud.auth/eventTypes/user.beforeCreate", options: { accessToken: false, idToken: false, refreshToken: false, }, }; const BEFORE_SIGN_IN_TRIGGER = { eventType: "providers/cloud.auth/eventTypes/user.beforeSignIn", options: { accessToken: false, idToken: false, refreshToken: false, }, }; const opts: identity.BlockingOptions = { accessToken: true, refreshToken: false, minInstances: 1, region: "us-west1", }; describe("identity", () => { describe("beforeUserCreated", () => { it("should accept a handler", () => { const fn = identity.beforeUserCreated(() => Promise.resolve()); expect(fn.__endpoint).to.deep.equal({ ...MINIMAL_V2_ENDPOINT, platform: "gcfv2", labels: {}, blockingTrigger: BEFORE_CREATE_TRIGGER, }); expect(fn.__requiredAPIs).to.deep.equal([ { api: "identitytoolkit.googleapis.com", reason: "Needed for auth blocking functions", }, ]); }); it("should accept options and a handler", () => { const fn = identity.beforeUserCreated(opts, () => Promise.resolve()); expect(fn.__endpoint).to.deep.equal({ ...MINIMAL_V2_ENDPOINT, platform: "gcfv2", labels: {}, minInstances: 1, region: ["us-west1"], blockingTrigger: { ...BEFORE_CREATE_TRIGGER, options: { ...BEFORE_CREATE_TRIGGER.options, accessToken: true, }, }, }); expect(fn.__requiredAPIs).to.deep.equal([ { api: "identitytoolkit.googleapis.com", reason: "Needed for auth blocking functions", }, ]); }); it("calls init function", async () => { const func = identity.beforeUserCreated(() => null); const req = new MockRequest( { data: {}, }, { "content-type": "application/json", origin: "example.com", } ); req.method = "POST"; let hello; onInit(() => (hello = "world")); expect(hello).to.be.undefined; await runHandler(func, req as any); expect(hello).to.equal("world"); }); }); describe("beforeUserSignedIn", () => { it("should accept a handler", () => { const fn = identity.beforeUserSignedIn(() => Promise.resolve()); expect(fn.__endpoint).to.deep.equal({ ...MINIMAL_V2_ENDPOINT, platform: "gcfv2", labels: {}, blockingTrigger: BEFORE_SIGN_IN_TRIGGER, }); expect(fn.__requiredAPIs).to.deep.equal([ { api: "identitytoolkit.googleapis.com", reason: "Needed for auth blocking functions", }, ]); }); it("should accept options and a handler", () => { const fn = identity.beforeUserSignedIn(opts, () => Promise.resolve()); expect(fn.__endpoint).to.deep.equal({ ...MINIMAL_V2_ENDPOINT, platform: "gcfv2", labels: {}, minInstances: 1, region: ["us-west1"], blockingTrigger: { ...BEFORE_SIGN_IN_TRIGGER, options: { ...BEFORE_SIGN_IN_TRIGGER.options, accessToken: true, }, }, }); expect(fn.__requiredAPIs).to.deep.equal([ { api: "identitytoolkit.googleapis.com", reason: "Needed for auth blocking functions", }, ]); }); it("calls init function", async () => { const func = identity.beforeUserSignedIn(() => null); const req = new MockRequest( { data: {}, }, { "content-type": "application/json", origin: "example.com", } ); req.method = "POST"; let hello; onInit(() => (hello = "world")); expect(hello).to.be.undefined; await runHandler(func, req as any); expect(hello).to.equal("world"); }); }); describe("beforeOperation", () => { it("should handle eventType and handler for before create events", () => { const fn = identity.beforeOperation("beforeCreate", () => Promise.resolve(), undefined); expect(fn.__endpoint).to.deep.equal({ ...MINIMAL_V2_ENDPOINT, platform: "gcfv2", labels: {}, blockingTrigger: BEFORE_CREATE_TRIGGER, }); expect(fn.__requiredAPIs).to.deep.equal([ { api: "identitytoolkit.googleapis.com", reason: "Needed for auth blocking functions", }, ]); }); it("should handle eventType and handler for before sign in events", () => { const fn = identity.beforeOperation("beforeSignIn", () => Promise.resolve(), undefined); expect(fn.__endpoint).to.deep.equal({ ...MINIMAL_V2_ENDPOINT, platform: "gcfv2", labels: {}, blockingTrigger: BEFORE_SIGN_IN_TRIGGER, }); expect(fn.__requiredAPIs).to.deep.equal([ { api: "identitytoolkit.googleapis.com", reason: "Needed for auth blocking functions", }, ]); }); it("should handle eventType, options, and handler for before create events", () => { const fn = identity.beforeOperation("beforeCreate", opts, () => Promise.resolve()); expect(fn.__endpoint).to.deep.equal({ ...MINIMAL_V2_ENDPOINT, platform: "gcfv2", labels: {}, minInstances: 1, region: ["us-west1"], blockingTrigger: { ...BEFORE_CREATE_TRIGGER, options: { ...BEFORE_CREATE_TRIGGER.options, accessToken: true, }, }, }); expect(fn.__requiredAPIs).to.deep.equal([ { api: "identitytoolkit.googleapis.com", reason: "Needed for auth blocking functions", }, ]); }); it("should handle eventType, options, and handler for before sign in events", () => { const fn = identity.beforeOperation("beforeSignIn", opts, () => Promise.resolve()); expect(fn.__endpoint).to.deep.equal({ ...MINIMAL_V2_ENDPOINT, platform: "gcfv2", labels: {}, minInstances: 1, region: ["us-west1"], blockingTrigger: { ...BEFORE_SIGN_IN_TRIGGER, options: { ...BEFORE_SIGN_IN_TRIGGER.options, accessToken: true, }, }, }); expect(fn.__requiredAPIs).to.deep.equal([ { api: "identitytoolkit.googleapis.com", reason: "Needed for auth blocking functions", }, ]); }); }); describe("getOpts", () => { it("should parse an empty object", () => { const internalOpts = identity.getOpts({}); expect(internalOpts).to.deep.equal({ opts: {}, accessToken: false, idToken: false, refreshToken: false, }); }); it("should parse global options", () => { const internalOpts = identity.getOpts({ region: "us-central1", cpu: 2 }); expect(internalOpts).to.deep.equal({ opts: { region: "us-central1", cpu: 2, }, accessToken: false, idToken: false, refreshToken: false, }); }); it("should a full options", () => { const internalOpts = identity.getOpts({ region: "us-central1", cpu: 2, accessToken: true, idToken: false, refreshToken: true, }); expect(internalOpts).to.deep.equal({ opts: { region: "us-central1", cpu: 2, }, accessToken: true, idToken: false, refreshToken: true, }); }); }); }); ```
/content/code_sandbox/spec/v2/providers/identity.spec.ts
xml
2016-09-22T23:13:54
2024-08-16T17:59:09
firebase-functions
firebase/firebase-functions
1,015
1,992