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
jest.unmock('events');
jest.unmock('../../src/JestExt/core');
jest.unmock('../../src/JestExt/helper');
jest.unmock('../../src/JestExt/run-mode');
jest.unmock('../../src/appGlobals');
jest.unmock('../../src/errors');
jest.unmock('../test-helper');
const mockPlatform = jest.fn();
const mockRelease = jest.fn();
mockRelease.mockReturnValue('');
jest.mock('os', () => ({ platform: mockPlatform, release: mockRelease }));
const sbUpdateMock = jest.fn();
const statusBar = {
bind: () => ({
update: sbUpdateMock,
}),
removeWorkspaceFolder: jest.fn(),
};
jest.mock('../../src/StatusBar', () => ({ statusBar }));
jest.mock('jest-editor-support');
const mockIsInFolder = jest.fn();
const mockWorkspaceManager = { getFoldersFromFilesystem: jest.fn() };
jest.mock('../../src/workspace-manager', () => ({
WorkspaceManager: jest.fn().mockReturnValue(mockWorkspaceManager),
isInFolder: mockIsInFolder,
}));
const mockOutputManager = {
showOutputOn: jest.fn(),
outputConfigs: jest.fn(),
};
jest.mock('../../src/output-manager', () => ({
outputManager: mockOutputManager,
}));
import * as vscode from 'vscode';
import { JestExt } from '../../src/JestExt/core';
import { RunMode } from '../../src/JestExt/run-mode';
import { createProcessSession } from '../../src/JestExt/process-session';
import { updateCurrentDiagnostics, updateDiagnostics } from '../../src/diagnostics';
import { CoverageMapProvider } from '../../src/Coverage';
import * as helper from '../../src/helpers';
import { resultsWithLowerCaseWindowsDriveLetters } from '../../src/TestResults';
import { PluginResourceSettings } from '../../src/Settings';
import * as extHelper from '../../src/JestExt/helper';
import { workspaceLogging } from '../../src/logging';
import { ProjectWorkspace } from 'jest-editor-support';
import {
makeUri,
makeWorkspaceFolder,
mockProjectWorkspace,
mockWorkspaceLogging,
} from '../test-helper';
import { JestTestProvider } from '../../src/test-provider';
import { JestOutputTerminal } from '../../src/JestExt/output-terminal';
import { RunShell } from '../../src/JestExt/run-shell';
import * as errors from '../../src/errors';
import { ItemCommand } from '../../src/test-provider/types';
import { TestResultProvider } from '../../src/TestResults';
import { executableTerminalLinkProvider } from '../../src/terminal-link-provider';
import { updateSetting } from '../../src/Settings';
/* eslint jest/expect-expect: ["error", { "assertFunctionNames": ["expect", "expectItTakesNoAction"] }] */
const mockHelpers = helper as jest.Mocked<any>;
const mockOutputTerminal = {
revealOnError: true,
write: jest.fn(),
show: jest.fn(),
close: jest.fn(),
dispose: jest.fn(),
enable: jest.fn(),
};
const EmptySortedResult = {
fail: [],
skip: [],
success: [],
unknown: [],
};
const mockGetExtensionResourceSettings = jest.spyOn(extHelper, 'getExtensionResourceSettings');
describe('JestExt', () => {
const getConfiguration = vscode.workspace.getConfiguration as jest.Mock<any>;
const context: any = { asAbsolutePath: (text) => text } as vscode.ExtensionContext;
const workspaceFolder = { name: 'test-folder', uri: { fsPath: '/test-folder' } } as any;
let mockSettings;
const debugConfigurationProvider = {
provideDebugConfigurations: jest.fn(),
prepareTestRun: jest.fn(),
createDebugConfig: jest.fn(),
getDebugConfigNames: jest.fn(),
} as any;
const mockProcessSession = {
start: jest.fn(),
stop: jest.fn(),
scheduleProcess: jest.fn(),
};
console.error = jest.fn();
console.warn = jest.fn();
const newJestExt = (override?: {
settings?: Partial<PluginResourceSettings>;
coverageCodeLensProvider?: any;
}) => {
mockSettings = { ...mockSettings, ...(override?.settings ?? {}) };
mockGetExtensionResourceSettings.mockReturnValue(mockSettings);
const coverageCodeLensProvider: any = override?.coverageCodeLensProvider ?? {
coverageChanged: jest.fn(),
};
return new JestExt(
context,
workspaceFolder,
debugConfigurationProvider,
coverageCodeLensProvider
);
};
const mockEditor = (fileName: string, languageId = 'typescript'): any => {
return {
document: { fileName, languageId, uri: makeUri(fileName) },
setDecorations: jest.fn(),
};
};
const mockTestProvider: any = {
dispose: jest.fn(),
runItemCommand: jest.fn(),
runTests: jest.fn(),
};
const mockListTestFiles = (files: string[] = [], error?: string, exitCode = 0) => {
mockProcessSession.scheduleProcess.mockImplementation((request) => {
if (request.type === 'list-test-files') {
return request.onResult(files, error, exitCode);
}
});
};
beforeEach(() => {
jest.resetAllMocks();
mockSettings = {
debugCodeLens: {},
testExplorer: { enabled: true },
runMode: new RunMode(),
jestCommandLine: 'jest',
};
getConfiguration.mockReturnValue({});
mockOutputManager.outputConfigs.mockReturnValue({
outputConfig: { value: {}, isExplicitlySet: false },
openTesting: { value: {}, isExplicitlySet: false },
});
vscode.window.visibleTextEditors = [];
(createProcessSession as jest.Mocked<any>).mockReturnValue(mockProcessSession);
(ProjectWorkspace as jest.Mocked<any>).mockImplementation(mockProjectWorkspace);
(workspaceLogging as jest.Mocked<any>).mockImplementation(mockWorkspaceLogging);
(JestTestProvider as jest.Mocked<any>).mockImplementation(() => ({ ...mockTestProvider }));
(JestOutputTerminal as jest.Mocked<any>).mockImplementation(() => mockOutputTerminal);
(vscode.EventEmitter as jest.Mocked<any>) = jest.fn().mockImplementation(() => {
return { fire: jest.fn(), event: jest.fn(), dispose: jest.fn() };
});
(RunShell as jest.Mocked<any>).mockImplementation(() => ({ toSetting: jest.fn() }));
mockListTestFiles();
});
const debugConfiguration = { type: 'default-config' };
const debugConfiguration2 = { type: 'with-setting-override' };
describe('debugTests()', () => {
const fileName = 'fileName';
const document: any = { fileName };
let sut: JestExt;
let startDebugging;
const mockShowQuickPick = jest.fn();
let mockConfigurations = [];
beforeEach(() => {
startDebugging = vscode.debug.startDebugging as unknown as jest.Mock<{}>;
(startDebugging as unknown as jest.Mock<{}>).mockImplementation(
async (_folder: any, nameOrConfig: any) => {
// trigger fallback to default configuration
if (typeof nameOrConfig === 'string') {
throw null;
}
}
);
debugConfigurationProvider.provideDebugConfigurations.mockReturnValue([debugConfiguration]);
debugConfigurationProvider.createDebugConfig.mockReturnValue(debugConfiguration2);
debugConfigurationProvider.getDebugConfigNames.mockImplementation((ws) => {
const v1 = [`vscode-jest-tests.${ws.name}`, 'vscode-jest-tests'];
const v2 = [`vscode-jest-tests.v2.${ws.name}`, 'vscode-jest-tests.v2'];
const sorted = [...v2, ...v1];
return { v1, v2, sorted };
});
vscode.window.showQuickPick = mockShowQuickPick;
mockHelpers.escapeRegExp.mockImplementation((s) => s);
mockHelpers.testIdString.mockImplementation((_, s) => s);
mockConfigurations = [];
vscode.workspace.getConfiguration = jest.fn().mockReturnValue({
get: jest.fn(() => mockConfigurations),
});
sut = newJestExt();
});
describe('getting a debug config', () => {
describe('use config from launch.json if available', () => {
it.each`
configNames | useDefaultConfig | debugMode | v2
${undefined} | ${true} | ${true} | ${false}
${[]} | ${true} | ${true} | ${false}
${['a', 'b']} | ${true} | ${false} | ${false}
${['a', 'vscode-jest-tests.v2', 'b']} | ${false} | ${false} | ${true}
${['a', 'vscode-jest-tests', 'b']} | ${false} | ${false} | ${false}
`('$configNames', async ({ configNames, useDefaultConfig, debugMode, v2 }) => {
expect.hasAssertions();
const testNamePattern = 'testNamePattern';
mockConfigurations = configNames ? configNames.map((name) => ({ name })) : undefined;
// mockProjectWorkspace.debug = debugMode;
sut = newJestExt({ settings: { debugMode } });
await sut.debugTests(document, testNamePattern);
expect(startDebugging).toHaveBeenCalledTimes(1);
if (useDefaultConfig) {
// debug with generated config
expect(vscode.debug.startDebugging).toHaveBeenLastCalledWith(
workspaceFolder,
debugConfiguration2
);
} else {
// debug with existing config
expect(vscode.debug.startDebugging).toHaveBeenLastCalledWith(workspaceFolder, {
name: v2 ? 'vscode-jest-tests.v2' : 'vscode-jest-tests',
});
}
expect(sut.debugConfigurationProvider.prepareTestRun).toHaveBeenCalledWith(
fileName,
testNamePattern,
workspaceFolder
);
});
describe('can fallback to workspace config if no folder config found', () => {
const defaultConfig = { name: 'vscode-jest-tests.v2' };
const v1Config = { name: 'vscode-jest-tests' };
const v2Config = { name: 'vscode-jest-tests.v2' };
const notJestConfig = { name: 'not-for-jest' };
it.each`
case | folderConfigs | workspaceConfigs | expectedConfig
${1} | ${undefined} | ${undefined} | ${debugConfiguration2}
${2} | ${[notJestConfig]} | ${[v1Config, v2Config]} | ${v2Config}
${3} | ${[v1Config]} | ${[v2Config]} | ${v1Config}
${4} | ${undefined} | ${[v2Config]} | ${v2Config}
${5} | ${[v2Config]} | ${[]} | ${v2Config}
`('case $case', ({ folderConfigs, workspaceConfigs, expectedConfig }) => {
debugConfigurationProvider.provideDebugConfigurations.mockReturnValue([defaultConfig]);
vscode.workspace.getConfiguration = jest.fn().mockImplementation((section, scope) => {
return {
get: () => {
if (section !== 'launch') {
return;
}
if (scope === workspaceFolder) {
return folderConfigs;
}
if (!scope) {
return workspaceConfigs;
}
},
};
});
sut = newJestExt({ settings: { jestCommandLine: undefined } });
sut.debugTests(document, 'testNamePattern');
expect(vscode.debug.startDebugging).toHaveBeenCalledWith(
workspaceFolder,
expectedConfig
);
});
});
});
describe('generate debug config if nothing found in launch.json', () => {
it.each`
case | settings | createDebugConfigOptions
${1} | ${{ jestCommandLine: 'yarn test' }} | ${undefined}
${2} | ${{}} | ${{ jestCommandLine: 'jest' }}
${3} | ${{ rootPath: 'packages/abc' }} | ${{ jestCommandLine: 'jest', rootPath: 'packages/abc' }}
${3} | ${{ jestCommandLine: 'npx jest', nodeEnv: { key: 'value' }, rootPath: 'packages/abc' }} | ${undefined}
`('with settings case $case', ({ settings, createDebugConfigOptions }) => {
sut = newJestExt({ settings });
const mockConfig: any = { get: jest.fn() };
vscode.workspace.getConfiguration = jest.fn(() => mockConfig);
sut.debugTests(document, 'whatever');
expect(sut.debugConfigurationProvider.createDebugConfig).toHaveBeenCalledWith(
workspaceFolder,
createDebugConfigOptions ?? settings
);
expect(vscode.debug.startDebugging).toHaveBeenCalledWith(
workspaceFolder,
debugConfiguration2
);
});
});
});
describe('should run the supplied test', () => {
it.each([[document], ['fileName']])('support document parameter: %s', async (doc) => {
const testNamePattern = 'testNamePattern';
await sut.debugTests(doc, testNamePattern);
expect(vscode.debug.startDebugging).toHaveBeenCalledWith(
workspaceFolder,
debugConfiguration2
);
const configuration = startDebugging.mock.calls[startDebugging.mock.calls.length - 1][1];
expect(configuration).toBeDefined();
expect(configuration.type).toBe(debugConfiguration2.type);
expect(sut.debugConfigurationProvider.prepareTestRun).toHaveBeenCalledWith(
fileName,
testNamePattern,
workspaceFolder
);
expect(mockHelpers.escapeRegExp).toHaveBeenCalledWith(testNamePattern);
});
});
it('if pass zero testNamePattern, all tests will be run', async () => {
await sut.debugTests(document);
expect(mockShowQuickPick).not.toHaveBeenCalled();
expect(mockHelpers.testIdString).not.toHaveBeenCalled();
expect(sut.debugConfigurationProvider.prepareTestRun).toHaveBeenCalledWith(
document.fileName,
'.*',
workspaceFolder
);
expect(vscode.debug.startDebugging).toHaveBeenCalled();
});
});
describe('onDidCloseTextDocument()', () => {
const document = {} as any;
let sut;
beforeEach(() => {
sut = newJestExt();
sut.removeCachedTestResults = jest.fn();
sut.removeCachedDecorationTypes = jest.fn();
});
it('should remove the cached test results', () => {
sut.onDidCloseTextDocument(document);
expect(sut.removeCachedTestResults).toHaveBeenCalledWith(document);
});
});
describe('removeCachedTestResults()', () => {
let sut;
beforeEach(() => {
sut = newJestExt();
sut.testResultProvider.removeCachedResults = jest.fn();
});
it('should do nothing when the document is falsy', () => {
sut.removeCachedTestResults(null);
expect(sut.testResultProvider.removeCachedResults).not.toHaveBeenCalled();
});
it('should do nothing when the document is untitled', () => {
const document: any = { isUntitled: true } as any;
sut.removeCachedTestResults(document);
expect(sut.testResultProvider.removeCachedResults).not.toHaveBeenCalled();
});
it('should reset the test result cache for the document', () => {
const expected = 'file.js';
sut.removeCachedTestResults({ fileName: expected } as any);
expect(sut.testResultProvider.removeCachedResults).toHaveBeenCalledWith(expected);
});
it('can invalidate test results', () => {
const expected = 'file.js';
sut.removeCachedTestResults({ fileName: expected } as any, true);
expect(sut.testResultProvider.removeCachedResults).not.toHaveBeenCalled();
expect(sut.testResultProvider.invalidateTestResults).toHaveBeenCalledWith(expected);
});
});
describe('onDidChangeActiveTextEditor()', () => {
const editor: any = {};
let sut;
beforeEach(() => {
sut = newJestExt();
sut.triggerUpdateActiveEditor = jest.fn();
(sut.triggerUpdateActiveEditor as jest.Mock<{}>).mockReset();
});
it('should update the annotations when the editor has a document', () => {
editor.document = {};
sut.onDidChangeActiveTextEditor(editor);
expect(sut.triggerUpdateActiveEditor).toHaveBeenCalledWith(editor);
});
});
describe('onDidChangeTextDocument()', () => {
let sut;
let event;
beforeEach(() => {
sut = newJestExt();
event = {
document: {
isDirty: false,
uri: { scheme: 'file' },
},
contentChanges: [],
};
});
function expectItTakesNoAction(event) {
sut.removeCachedTestResults = jest.fn();
sut.triggerUpdateActiveEditor = jest.fn();
sut.onDidChangeTextDocument(event);
expect(sut.removeCachedTestResults).not.toHaveBeenCalledWith(event.document);
expect(sut.triggerUpdateActiveEditor).not.toHaveBeenCalled();
}
it('should do nothing if the document has unsaved changes', () => {
const event: any = {
document: {
isDirty: true,
uri: { scheme: 'file' },
},
contentChanges: [],
};
expectItTakesNoAction(event);
});
it('should do nothing if the document URI scheme is "git"', () => {
const event: any = {
document: {
isDirty: false,
uri: {
scheme: 'git',
},
},
contentChanges: [],
};
expectItTakesNoAction(event);
});
it('should do nothing if the document is clean but there are changes', () => {
const event = {
document: {
isDirty: false,
uri: { scheme: 'file' },
},
contentChanges: { length: 1 },
};
expectItTakesNoAction(event);
});
it('should trigger updateActiveEditor', () => {
const editor: any = { document: event.document };
sut.triggerUpdateActiveEditor = jest.fn();
vscode.window.visibleTextEditors = [editor];
sut.onDidChangeTextDocument(event);
expect(sut.triggerUpdateActiveEditor).toHaveBeenCalledWith(editor);
});
it('should update statusBar for stats', () => {
sut.onDidChangeTextDocument(event);
expect(sut.testResultProvider.getTestSuiteStats).toHaveBeenCalled();
expect(sbUpdateMock).toHaveBeenCalled();
});
});
describe('onWillSaveTextDocument', () => {
it.each([[true], [false]])(
'ony invalidate test status if document is dirty: isDirty=%d',
(isDirty) => {
vscode.window.visibleTextEditors = [];
const sut: any = newJestExt();
sut.testResultProvider.invalidateTestResults = jest.fn();
const event = {
document: {
isDirty,
uri: { scheme: 'file' },
},
};
sut.onWillSaveTextDocument(event);
if (isDirty) {
expect(sut.testResultProvider.invalidateTestResults).toHaveBeenCalled();
} else {
expect(sut.testResultProvider.invalidateTestResults).not.toHaveBeenCalled();
}
}
);
});
describe('onDidSaveTextDocument', () => {
describe('should handle onSave run', () => {
it.each`
runConfig | languageId | isTestFile | shouldSchedule | isDirty
${'on-demand'} | ${'javascript'} | ${true} | ${false} | ${false}
${'watch'} | ${'javascript'} | ${true} | ${false} | ${false}
${'on-save'} | ${'javascript'} | ${false} | ${true} | ${false}
${'on-save'} | ${'javascript'} | ${true} | ${true} | ${false}
${'on-save'} | ${'json'} | ${false} | ${false} | ${false}
${{ type: 'on-save', testFileOnly: true }} | ${'javascript'} | ${false} | ${false} | ${true}
${{ type: 'on-save', testFileOnly: true }} | ${'javascript'} | ${true} | ${true} | ${false}
${{ type: 'on-save', testFileOnly: true }} | ${'json'} | ${true} | ${false} | ${false}
`(
'with runMode: $runConfig $languageId $isTestFile => $shouldSchedule, $isDirty',
({ runConfig, languageId, isTestFile, shouldSchedule, isDirty }) => {
const sut: any = newJestExt({ settings: { runMode: new RunMode(runConfig) } });
const fileName = '/a/file;';
const document: any = {
uri: { scheme: 'file' },
languageId: languageId,
fileName,
};
vscode.window.visibleTextEditors = [];
(sut.testResultProvider.isTestFile as jest.Mocked<any>).mockReturnValueOnce(isTestFile);
mockProcessSession.scheduleProcess.mockClear();
sut.onDidSaveTextDocument(document);
if (shouldSchedule) {
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledWith(
expect.objectContaining({
type: 'by-file',
testFileName: fileName,
notTestFile: !isTestFile,
})
);
} else {
expect(mockProcessSession.scheduleProcess).not.toHaveBeenCalled();
}
expect(sbUpdateMock).toHaveBeenCalledWith(
expect.objectContaining({ stats: { isDirty } })
);
}
);
});
});
describe('toggleCoverage()', () => {
it('should toggle the coverage overlay visibility', () => {
const runMode = new RunMode('on-demand');
const sut = newJestExt({ settings: { runMode } });
sut.triggerUpdateSettings = jest.fn();
sut.toggleCoverage();
expect(runMode.config.coverage).toBe(true);
expect(sut.triggerUpdateSettings).toHaveBeenCalled();
});
it('overrides showCoverageOnLoad settings', async () => {
const runMode = new RunMode({ type: 'watch', coverage: true });
const settings = {
runMode,
shell: { toSetting: jest.fn() },
} as any;
const sut = newJestExt({ settings });
const { createRunnerWorkspace } = (createProcessSession as jest.Mocked<any>).mock.calls[0][0];
let runnerWorkspace = createRunnerWorkspace();
expect(runnerWorkspace.collectCoverage).toBe(true);
await sut.toggleCoverage();
const { createRunnerWorkspace: f2 } = (createProcessSession as jest.Mocked<any>).mock
.calls[1][0];
runnerWorkspace = f2();
expect(runMode.config.coverage).toBe(false);
expect(runnerWorkspace.collectCoverage).toBe(false);
});
});
describe('when active text editor changed', () => {
beforeEach(() => {
mockIsInFolder.mockReturnValueOnce(true);
});
it('should update the coverage overlay in the given editor', () => {
const editor: any = { document: { uri: 'whatever', languageId: 'javascript' } };
const sut = newJestExt();
sut.onDidChangeActiveTextEditor(editor);
expect(sut.coverageOverlay.update).toHaveBeenCalled();
});
it('should update both decorators and diagnostics for the given editor', () => {
const sut = newJestExt();
const editor = mockEditor('file://a/b/c.ts');
(sut.testResultProvider.getSortedResults as unknown as jest.Mock<{}>).mockReturnValueOnce({
success: [],
fail: [],
skip: [],
unknown: [],
});
(sut.testResultProvider.isTestFile as jest.Mocked<any>).mockReturnValueOnce(true);
sut.onDidChangeActiveTextEditor(editor);
expect(updateCurrentDiagnostics).toHaveBeenCalled();
});
it('when failed to get test result, it should report error and clear the decorators and diagnostics', () => {
const sut = newJestExt();
const editor = mockEditor('a');
(sut.testResultProvider.getSortedResults as jest.Mocked<any>).mockImplementation(() => {
throw new Error('force error');
});
(sut.testResultProvider.isTestFile as jest.Mocked<any>).mockReturnValueOnce(true);
sut.onDidChangeActiveTextEditor(editor);
expect(mockOutputTerminal.write).toHaveBeenCalledWith(
expect.stringContaining('force error'),
'error'
);
expect(updateCurrentDiagnostics).toHaveBeenCalledWith(
EmptySortedResult.fail,
undefined,
editor
);
});
describe('can skip non test-file related updates', () => {
let sut;
beforeEach(() => {
sut = newJestExt();
(sut.testResultProvider.getSortedResults as unknown as jest.Mock<{}>).mockReturnValueOnce({
success: [],
fail: [],
skip: [],
unknown: [],
});
});
it.each`
languageId | shouldSkip
${'json'} | ${true}
${''} | ${true}
${'markdown'} | ${true}
${'javascript'} | ${false}
${'javascriptreact'} | ${false}
${'typescript'} | ${false}
${'typescriptreact'} | ${false}
${'vue'} | ${false}
`('if languageId=languageId => skip? $shouldSkip', ({ languageId, shouldSkip }) => {
const editor = mockEditor('file', languageId);
(sut.testResultProvider.isTestFile as jest.Mocked<any>).mockReturnValueOnce(true);
sut.triggerUpdateActiveEditor(editor);
if (shouldSkip) {
expect(updateCurrentDiagnostics).not.toHaveBeenCalled();
} else {
expect(updateCurrentDiagnostics).toHaveBeenCalled();
}
});
it.each`
isTestFile | shouldUpdate
${true} | ${true}
${false} | ${false}
`(
'isTestFile: $isTestFile => shouldUpdate? $shouldUpdate',
async ({ isTestFile, shouldUpdate }) => {
// update testFiles
await sut.startSession();
const { type, onResult } = mockProcessSession.scheduleProcess.mock.calls[0][0];
expect(type).toEqual('list-test-files');
expect(onResult).not.toBeUndefined();
(sut.testResultProvider.isTestFile as jest.Mocked<any>).mockReturnValueOnce(isTestFile);
const editor = mockEditor('x');
sut.triggerUpdateActiveEditor(editor);
if (shouldUpdate) {
expect(updateCurrentDiagnostics).toHaveBeenCalled();
} else {
expect(updateCurrentDiagnostics).not.toHaveBeenCalled();
}
}
);
});
it('only activate whe editor is under the same workspace', () => {
const editor: any = { document: { uri: 'whatever' } };
(vscode.workspace.getWorkspaceFolder as jest.Mocked<any>).mockReturnValue({});
const sut = newJestExt();
sut.onDidChangeActiveTextEditor(editor);
expect(updateCurrentDiagnostics).not.toHaveBeenCalled();
});
});
describe('session', () => {
const createJestExt = () => {
const jestExt: any = newJestExt();
return jestExt;
};
beforeEach(() => {});
describe('startSession', () => {
it('starts a new session and file event', async () => {
const sut = createJestExt();
await sut.startSession();
expect(mockProcessSession.start).toHaveBeenCalled();
expect(JestTestProvider).toHaveBeenCalled();
expect(sut.events.onTestSessionStarted.fire).toHaveBeenCalledWith(
expect.objectContaining({ session: mockProcessSession })
);
});
it('will refresh the visible editors for the given workspace, if any', async () => {
const sut = createJestExt();
const spy = jest.spyOn(sut, 'triggerUpdateActiveEditor').mockImplementation(() => {});
// if no activeTextEditor
vscode.window.activeTextEditor = undefined;
await sut.startSession();
expect(spy).not.toHaveBeenCalled();
// with activeTextEditor
(vscode.window.visibleTextEditors as any) = [
{
document: { uri: 'whatever' },
},
{
document: { uri: 'whatever' },
},
{
document: { uri: 'whatever' },
},
];
mockIsInFolder.mockReturnValueOnce(true).mockReturnValueOnce(true);
await sut.startSession();
expect(spy).toHaveBeenCalledTimes(2);
});
it('if failed to start session, show error message and quick fix link', async () => {
mockProcessSession.start.mockReturnValueOnce(Promise.reject('forced error'));
const sut = createJestExt();
await sut.startSession();
expect(mockOutputTerminal.write).toHaveBeenCalledWith(expect.anything(), 'error');
expect(executableTerminalLinkProvider.executableLink).toHaveBeenCalled();
});
it('dispose existing jestProvider before creating new one', async () => {
expect.hasAssertions();
const sut = createJestExt();
await sut.startSession();
expect(JestTestProvider).toHaveBeenCalledTimes(1);
await sut.startSession();
expect(mockTestProvider.dispose).toHaveBeenCalledTimes(1);
expect(JestTestProvider).toHaveBeenCalledTimes(2);
});
describe('will update test file list', () => {
it.each`
fileNames | error | expectedTestFiles
${undefined} | ${'some error'} | ${undefined}
${undefined} | ${new Error('some error')} | ${undefined}
${[]} | ${undefined} | ${[]}
${['a', 'b']} | ${undefined} | ${['a', 'b']}
`(
'can schedule the request and process the result ($fileNames, $error)',
async ({ fileNames, error, expectedTestFiles }) => {
expect.hasAssertions();
const sut = createJestExt();
const stats = { success: 1000, isDirty: false };
sut.testResultProvider.getTestSuiteStats = jest.fn().mockReturnValueOnce(stats);
await sut.startSession();
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledTimes(1);
const { type, onResult } = mockProcessSession.scheduleProcess.mock.calls[0][0];
expect(type).toEqual('list-test-files');
expect(onResult).not.toBeUndefined();
onResult(fileNames, error);
expect(sut.testResultProvider.updateTestFileList).toHaveBeenCalledWith(
expectedTestFiles
);
// stats will be updated in status bar accordingly
expect(sut.testResultProvider.getTestSuiteStats).toHaveBeenCalled();
expect(sbUpdateMock).toHaveBeenCalledWith({ stats });
}
);
});
describe('jestCommandLine validation might trigger session abort', () => {
it.each`
validationResult | abort
${'pass'} | ${false}
${'fail'} | ${true}
${'restart'} | ${true}
`('$validationResult => abort? $abort', async ({ validationResult, abort }) => {
expect.hasAssertions();
const sut = newJestExt({ settings: { jestCommandLine: undefined } });
const validateJestCommandLineSpy = jest.spyOn(sut, 'validateJestCommandLine');
validateJestCommandLineSpy.mockReturnValue(Promise.resolve(validationResult));
await sut.startSession();
// testProvider will always be created
expect(JestTestProvider).toHaveBeenCalled();
expect(mockProcessSession.start).toHaveBeenCalledTimes(abort ? 0 : 1);
});
});
it('will update statusBar', async () => {
expect.hasAssertions();
const runMode = new RunMode({ type: 'on-demand', coverage: true });
const sut = newJestExt({ settings: { runMode } });
await sut.startSession();
const update = sbUpdateMock.mock.calls.find(
(call) => call[0].state === 'initial' && call[0].mode
)[0];
expect(update.state).toEqual('initial');
expect(update.mode.config.coverage).toEqual(true);
});
});
describe('stopSession', () => {
it('will fire event', async () => {
const sut = createJestExt();
await sut.stopSession();
expect(mockProcessSession.stop).toHaveBeenCalled();
expect(sut.events.onTestSessionStopped.fire).toHaveBeenCalled();
});
it('dispose existing testProvider', async () => {
const sut = createJestExt();
await sut.startSession();
expect(JestTestProvider).toHaveBeenCalledTimes(1);
await sut.stopSession();
expect(mockTestProvider.dispose).toHaveBeenCalledTimes(1);
expect(JestTestProvider).toHaveBeenCalledTimes(1);
});
it('update statusBar status', async () => {
const sut = createJestExt();
await sut.stopSession();
expect(sbUpdateMock).toHaveBeenCalledWith({ state: 'stopped' });
});
it('if failed to stop session, display error and quick fix link', async () => {
mockProcessSession.stop.mockReturnValueOnce(Promise.reject('forced error'));
const sut = createJestExt();
await sut.stopSession();
expect(mockOutputTerminal.write).toHaveBeenCalledWith(expect.anything(), 'error');
expect(executableTerminalLinkProvider.executableLink).toHaveBeenCalled();
});
});
});
describe('_updateCoverageMap', () => {
it('the overlay and codeLens will be updated when map updated async', async () => {
expect.hasAssertions();
(CoverageMapProvider as jest.Mock<any>).mockImplementation(() => ({
update: () => Promise.resolve(),
}));
const coverageCodeLensProvider: any = { coverageChanged: jest.fn() };
const sut = newJestExt({ coverageCodeLensProvider });
await sut._updateCoverageMap({});
expect(coverageCodeLensProvider.coverageChanged).toHaveBeenCalled();
expect(sut.coverageOverlay.updateVisibleEditors).toHaveBeenCalled();
});
});
describe('runAllTests', () => {
describe.each`
scheduleProcess
${{}}
${undefined}
`('scheduleProcess returns $scheduleProcess', ({ scheduleProcess }) => {
beforeEach(() => {
mockProcessSession.scheduleProcess.mockReturnValueOnce(scheduleProcess);
});
it('can run all test for the workspace', async () => {
const sut = newJestExt();
const dirtyFiles: any = sut['dirtyFiles'];
dirtyFiles.clear = jest.fn();
await sut.runAllTests();
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledWith({
type: 'all-tests',
nonBlocking: true,
});
if (scheduleProcess) {
expect(dirtyFiles.clear).toHaveBeenCalled();
} else {
expect(dirtyFiles.clear).not.toHaveBeenCalled();
}
});
it('can run all test for the given editor', async () => {
const sut = newJestExt();
const dirtyFiles: any = sut['dirtyFiles'];
dirtyFiles.delete = jest.fn();
const editor: any = { document: { fileName: 'whatever' } };
await sut.runAllTests(editor);
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledWith({
type: 'by-file',
testFileName: editor.document.fileName,
notTestFile: true,
});
if (scheduleProcess) {
expect(dirtyFiles.delete).toHaveBeenCalledWith(editor.document.fileName);
} else {
expect(dirtyFiles.delete).not.toHaveBeenCalled();
}
});
});
it.each`
isTestFile | notTestFile
${true} | ${false}
${false} | ${true}
`(
'pass testFile status: isTestFile=$isTestFile => notTestFile=$notTestFile',
async ({ isTestFile, notTestFile }) => {
const sut = newJestExt();
const editor: any = { document: { fileName: 'whatever' } };
(sut.testResultProvider.isTestFile as jest.Mocked<any>).mockReturnValueOnce(isTestFile);
await sut.runAllTests(editor);
if (notTestFile) {
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledWith({
type: 'by-file',
testFileName: editor.document.fileName,
notTestFile: true,
});
} else {
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledWith({
type: 'by-file-pattern',
testFileNamePattern: editor.document.fileName,
});
}
}
);
});
describe('refresh test file list upon file system change', () => {
const getProcessType = () => {
const { type } = mockProcessSession.scheduleProcess.mock.calls[0][0];
return type;
};
let jestExt: any;
beforeEach(() => {
jestExt = newJestExt();
});
it('when new file is created', () => {
jestExt.onDidCreateFiles({});
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledTimes(1);
expect(getProcessType()).toEqual('list-test-files');
});
it('when file is renamed', () => {
jestExt.onDidRenameFiles({});
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledTimes(1);
expect(getProcessType()).toEqual('list-test-files');
});
it('when file is deleted', () => {
jestExt.onDidDeleteFiles({});
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledTimes(1);
expect(getProcessType()).toEqual('list-test-files');
});
});
describe('triggerUpdateSettings', () => {
it('should create a new ProcessSession', async () => {
const jestExt = newJestExt();
expect(createProcessSession).toHaveBeenCalledTimes(1);
const settings: any = {
debugMode: true,
runMode: new RunMode('watch'),
jestCommandLine: 'jest',
};
await jestExt.triggerUpdateSettings(settings);
expect(createProcessSession).toHaveBeenCalledTimes(2);
expect(createProcessSession).toHaveBeenLastCalledWith(expect.objectContaining({ settings }));
});
});
describe('can handle test run results', () => {
let sut;
let updateWithData;
const mockCoverageMapProvider = { update: jest.fn() };
beforeEach(() => {
(CoverageMapProvider as jest.Mock<any>).mockReturnValueOnce(mockCoverageMapProvider);
mockCoverageMapProvider.update.mockImplementation(() => Promise.resolve());
sut = newJestExt();
({ updateWithData } = (createProcessSession as jest.Mocked<any>).mock.calls[0][0]);
(resultsWithLowerCaseWindowsDriveLetters as jest.Mocked<any>).mockReturnValue({
coverageMap: {},
});
vscode.window.visibleTextEditors = [];
});
it('will invoke internal components to process test results', () => {
updateWithData({}, 'test-all-12');
expect(mockCoverageMapProvider.update).toHaveBeenCalled();
expect(sut.testResultProvider.updateTestResults).toHaveBeenCalledWith(
expect.anything(),
'test-all-12'
);
expect(updateDiagnostics).toHaveBeenCalled();
});
it('will calculate stats and update statusBar', () => {
updateWithData({});
expect(sut.testResultProvider.getTestSuiteStats).toHaveBeenCalled();
expect(sbUpdateMock).toHaveBeenCalled();
});
it('will update visible editors for the current workspace and test file list', () => {
(vscode.window.visibleTextEditors as any) = [
mockEditor('a'),
mockEditor('b'),
mockEditor('c'),
];
(sut.testResultProvider.isTestFile as jest.Mocked<any>).mockImplementation((fileName) => {
if (fileName === 'a') return 'yes';
if (fileName === 'b') return 'no';
if (fileName === 'c') return 'maybe';
throw new Error(`unexpected document editor.document.fileName`);
});
mockIsInFolder.mockImplementation((uri) => {
return uri.fsPath !== 'b';
});
const triggerUpdateActiveEditorSpy = jest.spyOn(sut as any, 'triggerUpdateActiveEditor');
expect(triggerUpdateActiveEditorSpy).toHaveBeenCalledTimes(0);
updateWithData();
expect(triggerUpdateActiveEditorSpy).toHaveBeenCalledTimes(2);
});
it('will fire onTestDataAvailable event', () => {
const process: any = { id: 'a process id' };
updateWithData({}, process);
expect(sut.events.onTestDataAvailable.fire).toHaveBeenCalledWith(
expect.objectContaining({ data: expect.anything(), process })
);
});
});
describe('deactivate', () => {
it('will stop session and output channel', () => {
const sut = newJestExt();
sut.deactivate();
expect(mockProcessSession.stop).toHaveBeenCalledTimes(1);
expect(mockOutputTerminal.dispose).toHaveBeenCalledTimes(1);
});
it('will dispose test provider if initialized', async () => {
const sut = newJestExt();
sut.deactivate();
expect(mockTestProvider.dispose).not.toHaveBeenCalledTimes(1);
await sut.startSession();
sut.deactivate();
expect(mockTestProvider.dispose).toHaveBeenCalledTimes(1);
});
it('will dispose all events', () => {
const sut = newJestExt();
sut.deactivate();
expect(sut.events.onRunEvent.dispose).toHaveBeenCalled();
expect(sut.events.onTestSessionStarted.dispose).toHaveBeenCalled();
expect(sut.events.onTestSessionStopped.dispose).toHaveBeenCalled();
});
it('will remove workspace from statusBar', () => {
const sut = newJestExt();
sut.deactivate();
expect(statusBar.removeWorkspaceFolder).toHaveBeenCalled();
});
});
describe('runEvents', () => {
let sut, onRunEvent, process;
beforeEach(() => {
sut = newJestExt();
onRunEvent = (sut.events.onRunEvent.event as jest.Mocked<any>).mock.calls[0][0];
process = { id: 'a process id', request: { type: 'watch' } };
sbUpdateMock.mockClear();
});
describe('can process run events', () => {
it('register onRunEvent listener', () => {
expect(sut.events.onRunEvent.event).toHaveBeenCalledTimes(1);
});
it('will not process not testing process events', () => {
process.request.type = 'not-test';
onRunEvent({ type: 'start', process });
expect(sbUpdateMock).not.toHaveBeenCalled();
});
it('start event: notify status bar', () => {
onRunEvent({ type: 'start', process });
expect(sbUpdateMock).toHaveBeenCalledWith({ state: 'running' });
});
it('end event: notify status bar', () => {
onRunEvent({ type: 'end', process });
expect(sbUpdateMock).toHaveBeenCalledWith({ state: 'done' });
onRunEvent({ type: 'end', process, error: 'whatever' });
expect(sbUpdateMock).toHaveBeenCalledWith({ state: 'exec-error' });
});
it('data event: notify status bar if error', () => {
onRunEvent({ type: 'data', process, isError: false });
expect(sbUpdateMock).not.toHaveBeenCalled();
onRunEvent({ type: 'data', process, isError: true });
expect(sbUpdateMock).toHaveBeenCalledWith({ state: 'exec-error' });
});
describe('exit event: notify status bar', () => {
it('if no error: status bar done', () => {
onRunEvent({ type: 'exit', process });
expect(sbUpdateMock).toHaveBeenCalledWith({ state: 'done' });
});
describe('if error', () => {
it('if error: status bar stopped and display quick-fix link in output', () => {
onRunEvent({ type: 'exit', error: 'something is wrong', process });
expect(sbUpdateMock).toHaveBeenCalledWith({ state: 'exec-error' });
expect(executableTerminalLinkProvider.executableLink).toHaveBeenCalled();
expect(mockOutputTerminal.write).toHaveBeenCalledWith(expect.anything(), 'info');
expect(process.userData?.execError).toEqual(true);
});
it('will not report error if already reported', () => {
mockOutputTerminal.write.mockClear();
process.userData = { execError: true };
onRunEvent({ type: 'exit', error: 'something is wrong', process });
expect(sbUpdateMock).toHaveBeenCalledWith({ state: 'exec-error' });
expect(executableTerminalLinkProvider.executableLink).not.toHaveBeenCalled();
expect(mockOutputTerminal.write).not.toHaveBeenCalled();
});
});
});
it.each`
numTotalTestSuites
${undefined}
${17}
`(
'long-run event with $numTotalTestSuites numTotalTestSuites output warnings',
({ numTotalTestSuites }) => {
mockOutputTerminal.write.mockClear();
process = { ...process, request: { type: 'all-tests' } };
onRunEvent({ type: 'long-run', numTotalTestSuites, threshold: 60000, process });
expect(executableTerminalLinkProvider.executableLink).toHaveBeenCalled();
const msg = mockOutputTerminal.write.mock.calls[0][0];
if (numTotalTestSuites) {
expect(msg).toContain(`${numTotalTestSuites} suites`);
} else {
expect(msg).not.toContain(`${numTotalTestSuites} suites`);
}
}
);
});
it('events are disposed when extension deactivated', () => {
sut.deactivate();
expect(sut.events.onRunEvent.dispose).toHaveBeenCalled();
});
});
it.each`
exitCode | errorType
${undefined} | ${'error'}
${1} | ${'error'}
${127} | ${errors.CMD_NOT_FOUND}
`(
'updateTestFileList error will be logged to output terminal by exitCode ($exitCode)',
async ({ exitCode, errorType }) => {
expect.hasAssertions();
const sut = newJestExt();
await sut.startSession();
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledTimes(1);
const { type, onResult } = mockProcessSession.scheduleProcess.mock.calls[0][0];
expect(type).toEqual('list-test-files');
expect(onResult).not.toBeUndefined();
// when process failed
onResult(undefined, 'process error', exitCode);
expect(mockOutputTerminal.write).toHaveBeenCalledWith(expect.anything(), errorType);
}
);
it('showOutput will show the output terminal', () => {
const sut = newJestExt();
sut.showOutput();
expect(mockOutputTerminal.show).toHaveBeenCalled();
});
describe('can change runMode', () => {
let sut, runMode, quickSwitchSpy, triggerUpdateSettingsSpy;
beforeEach(() => {
runMode = new RunMode('watch');
quickSwitchSpy = jest.spyOn(runMode, 'quickSwitch');
sut = newJestExt({ settings: { runMode } });
triggerUpdateSettingsSpy = jest.spyOn(sut, 'triggerUpdateSettings');
});
it('no op if runMode did not change', async () => {
quickSwitchSpy.mockImplementation(() => {
return undefined;
});
await sut.changeRunMode();
expect(quickSwitchSpy).toHaveBeenCalled();
expect(triggerUpdateSettingsSpy).not.toHaveBeenCalled();
});
it('restart session if runMode changed', async () => {
const runMode2 = new RunMode('on-demand');
quickSwitchSpy.mockImplementation(() => {
return runMode2;
});
await sut.changeRunMode();
expect(quickSwitchSpy).toHaveBeenCalled();
expect(triggerUpdateSettingsSpy).toHaveBeenCalledWith(
expect.objectContaining({ runMode: runMode2 })
);
});
});
describe('enableLoginShell', () => {
let mockShell;
beforeEach(() => {
mockShell = {
toSetting: jest.fn(),
useLoginShell: false,
enableLoginShell: jest.fn(),
};
});
describe('only restart session when needed', () => {
it.each`
useLoginShell | restartSession
${false} | ${true}
${true} | ${false}
${'never'} | ${false}
`(
'useLoginShell=$useLoginShell, restart session = $restartSession',
({ useLoginShell, restartSession }) => {
mockShell.useLoginShell = useLoginShell;
const sut: any = newJestExt({ settings: { shell: mockShell } });
const startSessionSpy = jest.spyOn(sut, 'startSession');
sut.enableLoginShell();
if (restartSession) {
expect(mockShell.enableLoginShell).toHaveBeenCalled();
expect(startSessionSpy).toHaveBeenCalled();
} else {
expect(mockShell.enableLoginShell).not.toHaveBeenCalled();
expect(startSessionSpy).not.toHaveBeenCalled();
}
}
);
});
});
it('runItemCommand will delegate operation to testProvider', async () => {
const jestExt = newJestExt();
await jestExt.startSession();
const testItem: any = {};
await jestExt.runItemCommand(testItem, ItemCommand.updateSnapshot);
expect(mockTestProvider.runItemCommand).toHaveBeenCalledWith(
testItem,
ItemCommand.updateSnapshot
);
});
describe('validateJestCommandLine', () => {
const ws1 = makeUri('test-folder', 'w1', 'child');
const ws2 = makeUri('test-folder', 'w2');
const vs1 = { rootPath: 'w1', jestCommandLine: 'jest1' };
const vs2 = { rootPath: 'w2', jestCommandLine: 'jest2' };
describe('when user has set a jestCommandLine', () => {
it.each`
jestCommandLine | returnValue
${'jest'} | ${'pass'}
${''} | ${'fail'}
`(
'returns $returnValue for jestCommandLine $jestCommandLine',
async ({ jestCommandLine, returnValue }) => {
(helper.getValidJestCommand as jest.Mocked<any>).mockReturnValue({ validSettings: [] });
const jestExt = newJestExt({ settings: { jestCommandLine } });
await expect(jestExt.validateJestCommandLine()).resolves.toEqual(returnValue);
}
);
});
describe('search file system for a valid command', () => {
it.each`
case | validSettings | uris | validationResult | updateSettings
${1} | ${[vs1]} | ${undefined} | ${'restart'} | ${vs1}
${2} | ${[]} | ${[ws1, ws2]} | ${'fail'} | ${undefined}
${3} | ${[]} | ${undefined} | ${'fail'} | ${undefined}
${4} | ${[vs1, vs2]} | ${[ws1, ws2]} | ${'fail'} | ${undefined}
`('$case', async ({ validSettings, uris, validationResult, updateSettings }) => {
(helper.getValidJestCommand as jest.Mocked<any>).mockReturnValue({
uris,
validSettings,
});
const jestExt = newJestExt({ settings: { jestCommandLine: undefined } });
const updateSettingSpy = jest.spyOn(jestExt, 'triggerUpdateSettings');
updateSettingSpy.mockReturnValueOnce(Promise.resolve());
await expect(jestExt.validateJestCommandLine()).resolves.toEqual(validationResult);
expect(helper.getValidJestCommand).toHaveBeenCalledTimes(1);
if (updateSettings) {
expect(updateSettingSpy).toHaveBeenCalledWith(expect.objectContaining(updateSettings));
} else {
expect(updateSettingSpy).not.toHaveBeenCalled();
}
if (validationResult !== 'pass') {
if (updateSettings) {
expect(mockOutputTerminal.write).not.toHaveBeenCalledWith(expect.anything(), 'error');
} else {
expect(mockOutputTerminal.write).toHaveBeenCalledWith(expect.anything(), 'error');
expect(sbUpdateMock).toHaveBeenCalledWith({ state: 'exec-error' });
}
}
});
});
describe('when detection failed in a monorepo', () => {
it.each`
case | folders | actionType
${'no workspaceFolders'} | ${undefined} | ${'setup-cmdline'}
${'single-root'} | ${[ws1]} | ${'setup-monorepo'}
${'multi-root'} | ${[ws1, ws2]} | ${'setup-cmdline'}
`('$case', async ({ folders, actionType }) => {
(vscode.workspace as any).workspaceFolders = folders
? folders.map(() => makeWorkspaceFolder('whatever'))
: undefined;
(helper.getValidJestCommand as jest.Mocked<any>).mockReturnValue({
validSettings: [vs1, vs2],
});
const jestExt = newJestExt({ settings: { jestCommandLine: undefined } });
const updateSettingSpy = jest.spyOn(jestExt, 'triggerUpdateSettings');
updateSettingSpy.mockReturnValueOnce(Promise.resolve());
await expect(jestExt.validateJestCommandLine()).resolves.toEqual('fail');
const [wsName, command, actionTypes] = (
executableTerminalLinkProvider.executableLink as jest.Mocked<any>
).mock.calls[0];
expect(wsName).toEqual(jestExt.workspaceFolder.name);
expect(command).toContain('show-quick-fix');
expect(actionTypes).toContain(actionType);
});
});
});
describe('output handling', () => {
let runMode;
let sut: JestExt;
beforeEach(() => {
runMode = new RunMode('on-demand');
sut = newJestExt({ settings: { runMode } });
});
it('delegate output handling to outputManager during runEvent', () => {
const onRunEvent = (sut.events.onRunEvent.event as jest.Mocked<any>).mock.calls[0][0];
const process = { id: 'a process id', request: { type: 'watch' } };
onRunEvent({ type: 'start', process });
expect(mockOutputManager.showOutputOn).toHaveBeenCalledWith(
'run',
expect.anything(),
runMode
);
});
describe('when test errors occurred', () => {
it('will notify outputManager', () => {
const onRunEvent = (sut.events.onRunEvent.event as jest.Mocked<any>).mock.calls[0][0];
const process = { id: 'a process id', request: { type: 'watch' } };
onRunEvent({ type: 'test-error', process });
expect(mockOutputManager.showOutputOn).toHaveBeenCalledWith(
'run',
expect.anything(),
runMode
);
expect(mockOutputManager.showOutputOn).toHaveBeenCalledWith(
'test-error',
expect.anything(),
runMode
);
});
it('will only notify outputManager once per run cycle', () => {
const onRunEvent = (sut.events.onRunEvent.event as jest.Mocked<any>).mock.calls[0][0];
const process = { id: 'a process id', request: { type: 'watch' } };
onRunEvent({ type: 'test-error', process, userData: {} });
expect(mockOutputManager.showOutputOn).toHaveBeenCalledWith(
'test-error',
expect.anything(),
runMode
);
mockOutputManager.showOutputOn.mockClear();
onRunEvent({ type: 'test-error', process });
expect(mockOutputManager.showOutputOn).not.toHaveBeenCalledWith(
'test-error',
expect.anything(),
runMode
);
});
it('will reset testError state when test run ended', () => {
const sut = newJestExt();
const onRunEvent = (sut.events.onRunEvent.event as jest.Mocked<any>).mock.calls[0][0];
const process: any = { id: 'a process id', request: { type: 'watch' } };
onRunEvent({ type: 'test-error', process });
expect(process.userData?.testError).toEqual(true);
onRunEvent({ type: 'end', process });
expect(process.userData?.testError).toBeUndefined();
});
});
it('when setting changed, output setting will change accordingly', () => {
const runMode = new RunMode({ type: 'watch', deferred: false });
const sut = newJestExt({ settings: { runMode } });
expect(mockOutputTerminal.revealOnError).toEqual(true);
const runMode2 = new RunMode({ type: 'watch', deferred: true });
sut.triggerUpdateSettings({ runMode: runMode2 } as any);
expect(mockOutputTerminal.revealOnError).toEqual(false);
expect(mockOutputTerminal.close).toHaveBeenCalled();
});
});
describe('parserPluginOptions', () => {
it('pass to TestResultProvider on creation', () => {
newJestExt();
expect(TestResultProvider).toHaveBeenCalledWith(expect.anything(), {
verbose: false,
parserOptions: undefined,
});
const parserPluginOptions = { decorators: { decoratorsBeforeExport: false } };
const settings: any = {
parserPluginOptions,
};
newJestExt({ settings });
expect(TestResultProvider).toHaveBeenCalledWith(expect.anything(), {
verbose: false,
parserOptions: { plugins: parserPluginOptions },
});
});
it('update TestResultProvider upon setting changes', async () => {
expect.hasAssertions();
const jestExt = newJestExt();
const parserPluginOptions = { decorators: 'legacy' };
const settings: any = {
debugMode: true,
parserPluginOptions,
runMode: new RunMode('watch'),
};
await jestExt.triggerUpdateSettings(settings);
expect(jestExt.testResultProvider.options).toEqual({
parserOptions: { plugins: parserPluginOptions },
verbose: true,
});
});
});
describe('virtual folder related', () => {
it('added name and workspaceFolder properties', () => {
const jestExt = newJestExt();
expect(jestExt.name).toEqual(workspaceFolder.name);
expect(jestExt.workspaceFolder).toEqual(workspaceFolder);
});
it('instantiate a disabled JestExt will throw exception', () => {
expect(() => newJestExt({ settings: { enable: false } })).toThrow('Jest is disabled');
});
});
it('setupExtensionForFolder pass extension info via executeCommand', () => {
const jestExt = newJestExt();
jestExt.setupExtensionForFolder({ taskId: 'cmdLine' });
expect(vscode.commands.executeCommand).toHaveBeenCalledWith(
expect.stringContaining(`setup-extension`),
expect.objectContaining({
workspace: jestExt.workspaceFolder,
taskId: 'cmdLine',
})
);
});
describe('defer runMode', () => {
let doc: any;
let editor: any;
beforeEach(() => {
doc = { uri: 'whatever', languageId: 'javascript' };
editor = { document: doc };
vscode.window.visibleTextEditors = [editor];
mockIsInFolder.mockReturnValueOnce(true);
});
it('will still create testProvider and parse test blocks while skipping the rest', async () => {
expect.hasAssertions();
const runMode = new RunMode({ type: 'watch', deferred: true });
const jestExt = newJestExt({ settings: { runMode } });
const validateJestCommandLineSpy = jest.spyOn(jestExt, 'validateJestCommandLine');
(jestExt.testResultProvider.isTestFile as jest.Mocked<any>).mockReturnValueOnce(true);
(jestExt.testResultProvider.getSortedResults as jest.Mocked<any>).mockReturnValueOnce([]);
await jestExt.startSession();
expect(JestTestProvider).toHaveBeenCalledTimes(1);
expect(jestExt.testResultProvider.getSortedResults).toHaveBeenCalled();
expect(jestExt.coverageOverlay.update).toHaveBeenCalled();
expect(updateCurrentDiagnostics).toHaveBeenCalled();
expect(validateJestCommandLineSpy).not.toHaveBeenCalled();
expect(mockProcessSession.scheduleProcess).not.toHaveBeenCalled();
});
it('will not do any auto-run for on-save mode either', async () => {
expect.hasAssertions();
let runMode = new RunMode({ type: 'on-save', deferred: true });
let jestExt = newJestExt({ settings: { runMode } });
await jestExt.startSession();
jestExt.onDidSaveTextDocument(doc);
expect(mockProcessSession.scheduleProcess).not.toHaveBeenCalled();
// while in non-deferred mode, the run will be scheduled
runMode = new RunMode({ type: 'on-save', deferred: false });
jestExt = newJestExt({ settings: { runMode } });
await jestExt.startSession();
jestExt.onDidSaveTextDocument(doc);
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledWith(
expect.objectContaining({ type: 'by-file' })
);
});
describe('will auto exit defer mode by any on-demand run', () => {
it('when runAllTest is called', async () => {
expect.hasAssertions();
const runMode = new RunMode({ type: 'watch', deferred: true });
const jestExt = newJestExt({ settings: { runMode } });
await jestExt.startSession();
expect(runMode.config.deferred).toBe(true);
expect(mockOutputManager.showOutputOn).not.toHaveBeenCalled();
expect(mockOutputTerminal.revealOnError).toEqual(false);
expect(mockProcessSession.scheduleProcess).not.toHaveBeenCalled();
await jestExt.runAllTests();
expect(runMode.config.deferred).toBe(false);
expect(mockOutputManager.showOutputOn).toHaveBeenCalledWith(
'run',
expect.anything(),
runMode
);
expect(mockOutputTerminal.revealOnError).toEqual(true);
expect(mockProcessSession.scheduleProcess).toHaveBeenCalledWith(
expect.objectContaining({ type: 'all-tests' })
);
});
it('when executing any itemCommand', async () => {
expect.hasAssertions();
const runMode = new RunMode({ type: 'on-demand', deferred: true });
const jestExt = newJestExt({ settings: { runMode } });
await jestExt.startSession();
expect(runMode.config.deferred).toBe(true);
expect(mockOutputManager.showOutputOn).not.toHaveBeenCalled();
expect(mockTestProvider.runItemCommand).not.toHaveBeenCalled();
const testItem: any = {};
const itemCommand: any = {};
await jestExt.runItemCommand(testItem, itemCommand);
expect(runMode.config.deferred).toBe(false);
expect(mockOutputManager.showOutputOn).toHaveBeenCalledWith(
'run',
expect.anything(),
runMode
);
expect(mockTestProvider.runItemCommand).toHaveBeenCalled();
});
describe('when triggered explicitly (by UI)', () => {
it.each`
trigger | runTestError
${undefined} | ${false}
${{ request: {}, token: {} }} | ${true}
${{ request: {}, token: {} }} | ${false}
`(
'with trigger=$trigger, when runTest throws error=${runTestError}',
async ({ trigger, runTestError }) => {
expect.hasAssertions();
const runMode = new RunMode({ type: 'watch', deferred: true });
const jestExt = newJestExt({ settings: { runMode } });
jestExt.triggerUpdateSettings = jest.fn();
await jestExt.startSession();
expect(runMode.config.deferred).toBe(true);
if (runTestError) {
mockTestProvider.runTests.mockImplementation(() => {
throw new Error('force a test error');
});
}
await jestExt.exitDeferMode(trigger);
expect(runMode.config.deferred).toBe(false);
expect(jestExt.triggerUpdateSettings).toHaveBeenCalled();
if (trigger) {
expect(mockTestProvider.runTests).toHaveBeenCalled();
} else {
expect(mockTestProvider.runTests).not.toHaveBeenCalled();
}
// if not in deferred mode, no-ops
mockTestProvider.runTests.mockClear();
jestExt.triggerUpdateSettings = jest.fn();
await jestExt.exitDeferMode();
expect(runMode.config.deferred).toBe(false);
expect(jestExt.triggerUpdateSettings).not.toHaveBeenCalled();
expect(mockTestProvider.runTests).not.toHaveBeenCalled();
}
);
});
});
});
it.each`
withError
${false}
${true}
`('withError=$withError: can save current runMode to settings', async ({ withError }) => {
expect.hasAssertions();
const runMode = new RunMode('watch');
const jestExt = newJestExt({ settings: { runMode } });
if (withError) {
(updateSetting as jest.Mocked<any>).mockImplementation(() => {
throw new Error('forced error');
});
}
await jestExt.saveRunMode();
expect(updateSetting).toHaveBeenCalledWith(jestExt.workspaceFolder, 'runMode', runMode.config);
if (withError) {
expect(mockOutputTerminal.write).toHaveBeenCalledWith(expect.anything(), 'error');
}
});
});
``` | /content/code_sandbox/tests/JestExt/core.test.ts | xml | 2016-10-09T13:06:02 | 2024-08-13T18:32:04 | vscode-jest | jest-community/vscode-jest | 2,819 | 13,893 |
```xml
import React from 'react';
import { render, screen } from '@testing-library/react';
import Breadcrumb from '../index';
import { toRGB } from '@test/utils';
import '../styles/index.less';
describe('BreadcrumbItem styles', () => {
it('Should render correct styles', () => {
render(
<Breadcrumb>
<Breadcrumb.Item>1</Breadcrumb.Item>
<Breadcrumb.Item>2</Breadcrumb.Item>
</Breadcrumb>
);
expect(screen.getByText('1')).to.have.style('font-size', '12px');
expect(screen.getByText('/')).to.have.style('margin', '0px 4px');
});
it('Active item should render correct color', () => {
render(
<Breadcrumb>
<Breadcrumb.Item active>item</Breadcrumb.Item>
</Breadcrumb>
);
expect(screen.getByText('item')).to.have.style('color', toRGB('#121212'));
});
});
``` | /content/code_sandbox/src/Breadcrumb/test/BreadcrumbItemStylesSpec.tsx | xml | 2016-06-06T02:27:46 | 2024-08-16T16:41:54 | rsuite | rsuite/rsuite | 8,263 | 196 |
```xml
export { default } from './ServerModule';
export * from './ServerModule';
``` | /content/code_sandbox/modules/module/server-ts/index.ts | xml | 2016-09-08T16:44:45 | 2024-08-16T06:17:16 | apollo-universal-starter-kit | sysgears/apollo-universal-starter-kit | 1,684 | 17 |
```xml
import React, { FunctionComponent } from "react";
import { graphql } from "react-relay";
import { withFragmentContainer } from "coral-framework/lib/relay";
import { DropdownButton } from "coral-ui/components/v2";
import { DashboardSiteContainer_site } from "coral-admin/__generated__/DashboardSiteContainer_site.graphql";
import styles from "./DashboardSiteContainer.css";
interface Props {
site: DashboardSiteContainer_site;
}
const DashboardSiteContainer: FunctionComponent<Props> = ({ site }) => {
return (
<DropdownButton
className={styles.button}
to={`/admin/dashboard/${site.id}`}
>
{site.name}
</DropdownButton>
);
};
const enhanced = withFragmentContainer<Props>({
site: graphql`
fragment DashboardSiteContainer_site on Site {
id
name
createdAt
}
`,
})(DashboardSiteContainer);
export default enhanced;
``` | /content/code_sandbox/client/src/core/client/admin/routes/Dashboard/DashboardSiteContainer.tsx | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 191 |
```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.
~ */
-->
<resources>
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
<dimen name="activity_horizontal_margin">64dp</dimen>
</resources>
``` | /content/code_sandbox/rx2sampleapp/src/main/res/values-w820dp/dimens.xml | xml | 2016-03-21T18:35:44 | 2024-08-15T11:55:03 | Fast-Android-Networking | amitshekhariitbhu/Fast-Android-Networking | 5,667 | 150 |
```xml
export const dashboardReporterTokens = Object.freeze({
ciProvider: 'ciProvider',
dashboardReporterClient: 'dashboardReporterClient',
httpClient: 'httpClient',
} as const);
``` | /content/code_sandbox/packages/core/src/reporters/dashboard-reporter/tokens.ts | xml | 2016-02-12T13:14:28 | 2024-08-15T18:38:25 | stryker-js | stryker-mutator/stryker-js | 2,561 | 38 |
```xml
import React, { ComponentType, ReactElement, ReactNode } from 'react';
import clsx from 'clsx';
import { LinkifyPluginTheme } from '../theme';
import { ExtractLinks, extractLinks } from '../utils/extractLinks';
export interface ComponentProps {
children: ReactNode;
href: string;
target: string;
rel: string;
className: string;
}
export interface LinkProps {
decoratedText?: string;
theme?: LinkifyPluginTheme;
component?: ComponentType<ComponentProps>;
children: ReactNode;
target?: string;
rel?: string;
className?: string;
customExtractLinks?: ExtractLinks;
// following props are not used
entityKey?: unknown;
getEditorState?: unknown;
offsetKey?: unknown;
setEditorState?: unknown;
contentState?: unknown;
blockKey?: unknown;
dir?: unknown;
start?: unknown;
end?: unknown;
}
// The component we render when we encounter a hyperlink in the text
export default function Link(props: LinkProps): ReactElement {
const {
decoratedText = '',
theme = {} as LinkifyPluginTheme,
customExtractLinks = (text) => extractLinks(text),
target = '_self',
rel = 'noreferrer noopener',
className,
component,
dir, // eslint-disable-line @typescript-eslint/no-unused-vars
entityKey, // eslint-disable-line @typescript-eslint/no-unused-vars
getEditorState, // eslint-disable-line @typescript-eslint/no-unused-vars
offsetKey, // eslint-disable-line @typescript-eslint/no-unused-vars
setEditorState, // eslint-disable-line @typescript-eslint/no-unused-vars
contentState, // eslint-disable-line @typescript-eslint/no-unused-vars
blockKey, // eslint-disable-line @typescript-eslint/no-unused-vars
start, // eslint-disable-line @typescript-eslint/no-unused-vars
end, // eslint-disable-line @typescript-eslint/no-unused-vars
...otherProps
} = props;
const combinedClassName = clsx(theme?.link, className);
const links = customExtractLinks(decoratedText);
const href = links && links[0] ? links[0].url : '';
const linkProps = {
...otherProps,
href,
target,
rel,
className: combinedClassName,
};
return component ? (
React.createElement(component, linkProps)
) : (
// eslint-disable-next-line jsx-a11y/anchor-has-content
<a {...linkProps} />
);
}
``` | /content/code_sandbox/packages/linkify/src/Link/Link.tsx | xml | 2016-02-26T09:54:56 | 2024-08-16T18:16:31 | draft-js-plugins | draft-js-plugins/draft-js-plugins | 4,087 | 538 |
```xml
import {
commonDragParams,
commonDragVariables,
commonFields,
commonMutationParams,
commonMutationVariables
} from "../../boards/graphql/mutations";
import { purchaseFields } from "./queries";
const purchaseMutationVariables = `
$productsData: JSON,
$paymentsData: JSON,
$expensesData: JSON,
`;
const purchaseMutationParams = `
productsData: $productsData,
paymentsData: $paymentsData,
expensesData: $expensesData,
`;
const copyVariables = `$companyIds: [String], $customerIds: [String], $labelIds: [String]`;
const copyParams = `companyIds: $companyIds, customerIds: $customerIds, labelIds: $labelIds`;
const purchasesAdd = `
mutation purchasesAdd($name: String!, ${copyVariables}, ${purchaseMutationVariables} ${commonMutationVariables}) {
purchasesAdd(name: $name, ${copyParams}, ${purchaseMutationParams}, ${commonMutationParams}) {
${purchaseFields}
${commonFields}
}
}
`;
const purchasesEdit = `
mutation purchasesEdit($_id: String!, $name: String, ${purchaseMutationVariables}, ${commonMutationVariables}) {
purchasesEdit(_id: $_id, name: $name, ${purchaseMutationParams}, ${commonMutationParams}) {
${purchaseFields}
${commonFields}
}
}
`;
const purchasesRemove = `
mutation purchasesRemove($_id: String!) {
purchasesRemove(_id: $_id) {
_id
}
}
`;
const purchasesChange = `
mutation purchasesChange(${commonDragVariables}) {
purchasesChange(${commonDragParams}) {
_id
}
}
`;
const purchasesWatch = `
mutation purchasesWatch($_id: String!, $isAdd: Boolean!) {
purchasesWatch(_id: $_id, isAdd: $isAdd) {
_id
isWatched
}
}
`;
const purchasesArchive = `
mutation purchasesArchive($stageId: String!, $proccessId: String) {
purchasesArchive(stageId: $stageId, proccessId: $proccessId)
}
`;
const purchasesCopy = `
mutation purchasesCopy($_id: String!, $proccessId: String) {
purchasesCopy(_id: $_id, proccessId: $proccessId) {
${commonFields}
${purchaseFields}
}
}
`;
const confirmLoyalties = `
mutation ConfirmLoyalties($checkInfo: JSON) {
confirmLoyalties(checkInfo: $checkInfo)
}
`;
export default {
purchasesAdd,
purchasesEdit,
purchasesRemove,
purchasesChange,
purchasesWatch,
purchasesArchive,
purchasesCopy,
confirmLoyalties
};
``` | /content/code_sandbox/packages/ui-purchases/src/purchases/graphql/mutations.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 585 |
```xml
// Reexport for backward-compatibility purposes
export * from '@gqlapp/database-server-ts';
``` | /content/code_sandbox/packages/server/src/sql/helpers.ts | xml | 2016-09-08T16:44:45 | 2024-08-16T06:17:16 | apollo-universal-starter-kit | sysgears/apollo-universal-starter-kit | 1,684 | 21 |
```xml
import 'cypress-real-events/support'
import '@cypress/fiddle'
import { getFocusableEdges } from '../fixtures/dom-utils.js'
declare global {
namespace Cypress {
interface Chainable {
aliasFocusableEdges(options?: { skipAliases: boolean }): Chainable<void>
}
}
}
Cypress.Commands.add(
'aliasFocusableEdges',
{ prevSubject: true },
(subject, { skipAliases = false } = {}) => {
cy.wrap(subject, { log: false })
.then(subject => getFocusableEdges(subject.get(0)))
.as('edges')
.should('have.length', 2)
if (!skipAliases) {
// We cannot use `.first()` and `.last()` here because they operate on jQuery
// collections and not on any iterable.
cy.get('@edges', { log: false }).its('0', { log: false }).as('first')
cy.get('@edges', { log: false }).its('1', { log: false }).as('last')
}
}
)
chai.use(_chai => {
_chai.Assertion.addMethod('element', function isElement(localName) {
if (localName) {
this.assert(
this._obj.localName === localName,
`expected #{this} to be an element with localName "${localName}"`,
`expected #{this} not to be an element with localName "${localName}"`,
undefined
)
}
this.assert(
Cypress.dom.isElement(this._obj),
'expected #{this} to be an element',
'expected #{this} not to be an element',
undefined
)
})
_chai.Assertion.addMethod('focusable', function isFocusable() {
this.assert(
Cypress.dom.isFocusable(this._obj),
'expected #{this} to be focusable',
'expected #{this} not to be focusable',
undefined
)
})
_chai.Assertion.addMethod('withinShadowRoot', function isFocusable() {
this.assert(
// @ts-expect-error
Cypress.dom.isWithinShadowRoot(this._obj),
'expected #{this} to be in shadow DOM',
'expected #{this} not to be in shadow DOM',
undefined
)
})
// See: path_to_url#L4
_chai.Assertion.addMethod('shadowRoot', function isFocusable() {
this.assert(
this._obj.shadowRoot?.toString() === '[object ShadowRoot]',
'expected #{this} to have a shadow root',
'expected #{this} not to have a shadow root',
undefined
)
})
})
``` | /content/code_sandbox/cypress/support/e2e.ts | xml | 2016-02-11T11:01:11 | 2024-08-16T05:48:38 | a11y-dialog | KittyGiraudel/a11y-dialog | 2,390 | 570 |
```xml
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit, ViewChild } from "@angular/core";
import { Store } from "@ngxs/store";
import { AutoUnsubscribe } from "app/shared/decorator/autoUnsubscribe";
import { Tab } from "app/shared/tabs/tabs.component";
import { PreferencesState } from "app/store/preferences.state";
import { editor } from "monaco-editor";
import { EditorOptions, NzCodeEditorComponent } from "ng-zorro-antd/code-editor";
import { Subscription } from "rxjs";
@Component({
selector: 'app-run-workflow',
templateUrl: './run-workflow.html',
styleUrls: ['./run-workflow.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
@AutoUnsubscribe()
export class RunWorkflowComponent implements OnInit, OnDestroy {
@ViewChild('editor') editor: NzCodeEditorComponent;
@Input() workflow: string;
editorOption: EditorOptions;
resizingSubscription: Subscription;
tabs: Array<Tab>;
selectedTab: Tab;
constructor(
private _cd: ChangeDetectorRef,
private _store: Store
) {
this.tabs = [<Tab>{
title: 'Workflow',
key: 'workflow',
default: true
}];
}
ngOnDestroy(): void { } // Should be set to use @AutoUnsubscribe with AOT
ngOnInit(): void {
this.editorOption = {
language: 'yaml',
minimap: { enabled: false },
readOnly: true
};
this.resizingSubscription = this._store.select(PreferencesState.resizing).subscribe(resizing => {
if (!resizing && this.editor) {
this.editor.layout();
}
});
}
selectTab(tab: Tab): void {
this.selectedTab = tab;
this._cd.markForCheck();
}
onEditorInit(e: editor.ICodeEditor | editor.IEditor): void {
this.editor.layout();
}
}
``` | /content/code_sandbox/ui/src/app/views/projectv2/run/run-workflow.component.ts | xml | 2016-10-11T08:28:23 | 2024-08-16T01:55:31 | cds | ovh/cds | 4,535 | 416 |
```xml
import * as fs from 'fs-extra';
import walkSync from 'klaw-sync';
import * as path from 'path';
import { ModuleConfiguration } from './ModuleConfiguration';
type PreparedPrefixes = [nameWithExpoPrefix: string, nameWithoutExpoPrefix: string];
/**
* prepares _Expo_ prefixes for specified name
* @param name module name, e.g. JS package name
* @param prefix prefix to prepare with, defaults to _Expo_
* @returns tuple `[nameWithPrefix: string, nameWithoutPrefix: string]`
*/
const preparePrefixes = (name: string, prefix: string = 'Expo'): PreparedPrefixes =>
name.startsWith(prefix) ? [name, name.substr(prefix.length)] : [`${prefix}${name}`, name];
const asyncForEach = async <T>(
array: T[],
callback: (value: T, index: number, array: T[]) => Promise<void>
) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array);
}
};
/**
* Removes specified files. If one file doesn't exist already, skips it
* @param directoryPath directory containing files to remove
* @param filenames array of filenames to remove
*/
async function removeFiles(directoryPath: string, filenames: string[]) {
await Promise.all(filenames.map((filename) => fs.remove(path.resolve(directoryPath, filename))));
}
/**
* Renames files names
* @param directoryPath - directory that holds files to be renamed
* @param extensions - array of extensions for files that would be renamed, must be provided with leading dot or empty for no extension, e.g. ['.html', '']
* @param renamings - array of filenames and their replacers
*/
const renameFilesWithExtensions = async (
directoryPath: string,
extensions: string[],
renamings: { from: string; to: string }[]
) => {
await asyncForEach(
renamings,
async ({ from, to }) =>
await asyncForEach(extensions, async (extension) => {
const fromFilename = `${from}${extension}`;
if (!fs.existsSync(path.join(directoryPath, fromFilename))) {
return;
}
const toFilename = `${to}${extension}`;
await fs.rename(
path.join(directoryPath, fromFilename),
path.join(directoryPath, toFilename)
);
})
);
};
/**
* Enters each file recursively in provided dir and replaces content by invoking provided callback function
* @param directoryPath - root directory
* @param replaceFunction - function that converts current content into something different
*/
const replaceContents = async (
directoryPath: string,
replaceFunction: (contentOfSingleFile: string) => string
) => {
await Promise.all(
walkSync(directoryPath, { nodir: true }).map((file) =>
replaceContent(file.path, replaceFunction)
)
);
};
/**
* Replaces content in file. Does nothing if the file doesn't exist
* @param filePath - provided file
* @param replaceFunction - function that converts current content into something different
*/
const replaceContent = async (
filePath: string,
replaceFunction: (contentOfSingleFile: string) => string
) => {
if (!fs.existsSync(filePath)) {
return;
}
const content = await fs.readFile(filePath, 'utf8');
const newContent = replaceFunction(content);
if (newContent !== content) {
await fs.writeFile(filePath, newContent);
}
};
/**
* Removes all empty subdirs up to and including dirPath
* Recursively enters all subdirs and removes them if one is empty or cantained only empty subdirs
* @param dirPath - directory path that is being inspected
* @returns whether the given base directory and any empty subdirectories were deleted or not
*/
const removeUponEmptyOrOnlyEmptySubdirs = async (dirPath: string): Promise<boolean> => {
const contents = await fs.readdir(dirPath);
const results = await Promise.all(
contents.map(async (file) => {
const filePath = path.join(dirPath, file);
const fileStats = await fs.lstat(filePath);
return fileStats.isDirectory() && (await removeUponEmptyOrOnlyEmptySubdirs(filePath));
})
);
const isRemovable = results.reduce((acc, current) => acc && current, true);
if (isRemovable) {
await fs.remove(dirPath);
}
return isRemovable;
};
/**
* Prepares iOS part, mainly by renaming all files and some template word in files
* Versioning is done automatically based on package.json from JS/TS part
* @param modulePath - module directory
* @param configuration - naming configuration
*/
async function configureIOS(
modulePath: string,
{ podName, jsPackageName, viewManager }: ModuleConfiguration
) {
const iosPath = path.join(modulePath, 'ios');
// remove ViewManager from template
if (!viewManager) {
await removeFiles(iosPath, [
`EXModuleTemplateView.h`,
`EXModuleTemplateView.m`,
`EXModuleTemplateViewManager.h`,
`EXModuleTemplateViewManager.m`,
]);
}
await renameFilesWithExtensions(
iosPath,
['.swift'],
[
{ from: 'ExpoModuleTemplateModule', to: `${podName}Module` },
{
from: 'ExpoModuleTemplateView',
to: `${podName}View`,
},
{
from: 'ExpoModuleTemplateViewManager',
to: `${podName}ViewManager`,
},
]
);
await renameFilesWithExtensions(
iosPath,
['', '.podspec'],
[{ from: 'ExpoModuleTemplate', to: `${podName}` }]
);
await replaceContents(iosPath, (singleFileContent) =>
singleFileContent
.replace(/ExpoModuleTemplate/g, podName)
.replace(/ExpoModuleTemplate/g, jsPackageName)
);
}
/**
* Gets path to Android source base dir: android/src/main/[java|kotlin]
* Defaults to Java path if both exist
* @param androidPath path do module android/ directory
* @param flavor package flavor e.g main, test. Defaults to main
* @returns path to flavor source base directory
*/
function findAndroidSourceDir(androidPath: string, flavor: string = 'main'): string {
const androidSrcPathBase = path.join(androidPath, 'src', flavor);
const javaExists = fs.pathExistsSync(path.join(androidSrcPathBase, 'java'));
const kotlinExists = fs.pathExistsSync(path.join(androidSrcPathBase, 'kotlin'));
if (!javaExists && !kotlinExists) {
throw new Error(
`Invalid template. Android source directory not found: ${androidSrcPathBase}/[java|kotlin]`
);
}
return path.join(androidSrcPathBase, javaExists ? 'java' : 'kotlin');
}
/**
* Finds java package name based on directory structure
* @param flavorSrcPath Path to source base directory: e.g. android/src/main/java
* @returns java package name
*/
function findTemplateAndroidPackage(flavorSrcPath: string) {
const srcFiles = walkSync(flavorSrcPath, {
filter: (item) => item.path.endsWith('.kt') || item.path.endsWith('.java'),
nodir: true,
traverseAll: true,
});
if (srcFiles.length === 0) {
throw new Error('No Android source files found in the template');
}
// srcFiles[0] will always be at the most top-level of the package structure
const packageDirNames = path.relative(flavorSrcPath, srcFiles[0].path).split('/').slice(0, -1);
if (packageDirNames.length === 0) {
throw new Error('Template Android sources must be within a package.');
}
return packageDirNames.join('.');
}
/**
* Prepares Android part, mainly by renaming all files and template words in files
* Sets all versions in Gradle to 1.0.0
* @param modulePath - module directory
* @param configuration - naming configuration
*/
async function configureAndroid(
modulePath: string,
{ javaPackage, jsPackageName, viewManager }: ModuleConfiguration
) {
const androidPath = path.join(modulePath, 'android');
const [, moduleName] = preparePrefixes(jsPackageName, 'Expo');
const androidSrcPath = findAndroidSourceDir(androidPath);
const templateJavaPackage = findTemplateAndroidPackage(androidSrcPath);
const sourceFilesPath = path.join(androidSrcPath, ...templateJavaPackage.split('.'));
const destinationFilesPath = path.join(androidSrcPath, ...javaPackage.split('.'));
// remove ViewManager from template
if (!viewManager) {
removeFiles(sourceFilesPath, [`ModuleTemplateView.kt`, `ModuleTemplateViewManager.kt`]);
replaceContent(path.join(sourceFilesPath, 'ModuleTemplatePackage.kt'), (packageContent) =>
packageContent
.replace(/(^\s+)+(^.*?){1}createViewManagers[\s\W\w]+?\}/m, '')
.replace(/^.*ViewManager$/, '')
);
}
await fs.mkdirp(destinationFilesPath);
await fs.copy(sourceFilesPath, destinationFilesPath);
// Remove leaf directory content
await fs.remove(sourceFilesPath);
// Cleanup all empty subdirs up to template package root dir
await removeUponEmptyOrOnlyEmptySubdirs(
path.join(androidSrcPath, templateJavaPackage.split('.')[0])
);
// prepare tests
if (fs.existsSync(path.resolve(androidPath, 'src', 'test'))) {
const androidTestPath = findAndroidSourceDir(androidPath, 'test');
const templateTestPackage = findTemplateAndroidPackage(androidTestPath);
const testSourcePath = path.join(androidTestPath, ...templateTestPackage.split('.'));
const testDestinationPath = path.join(androidTestPath, ...javaPackage.split('.'));
await fs.mkdirp(testDestinationPath);
await fs.copy(testSourcePath, testDestinationPath);
await fs.remove(testSourcePath);
await removeUponEmptyOrOnlyEmptySubdirs(
path.join(androidTestPath, templateTestPackage.split('.')[0])
);
await replaceContents(testDestinationPath, (singleFileContent) =>
singleFileContent.replace(new RegExp(templateTestPackage, 'g'), javaPackage)
);
await renameFilesWithExtensions(
testDestinationPath,
['.kt', '.java'],
[{ from: 'ModuleTemplateModuleTest', to: `${moduleName}ModuleTest` }]
);
}
// Replace contents of destination files
await replaceContents(androidPath, (singleFileContent) =>
singleFileContent
.replace(new RegExp(templateJavaPackage, 'g'), javaPackage)
.replace(/ModuleTemplate/g, moduleName)
.replace(/ExpoModuleTemplate/g, jsPackageName)
);
await replaceContent(path.join(androidPath, 'build.gradle'), (gradleContent) =>
gradleContent
.replace(/\bversion = ['"][\w.-]+['"]/, "version = '1.0.0'")
.replace(/versionCode \d+/, 'versionCode 1')
.replace(/versionName ['"][\w.-]+['"]/, "versionName '1.0.0'")
);
await renameFilesWithExtensions(
destinationFilesPath,
['.kt', '.java'],
[
{ from: 'ModuleTemplateModule', to: `${moduleName}Module` },
{ from: 'ModuleTemplatePackage', to: `${moduleName}Package` },
{ from: 'ModuleTemplateView', to: `${moduleName}View` },
{ from: 'ModuleTemplateViewManager', to: `${moduleName}ViewManager` },
]
);
}
/**
* Prepares TS part.
* @param modulePath - module directory
* @param configuration - naming configuration
*/
async function configureTS(
modulePath: string,
{ jsPackageName, viewManager }: ModuleConfiguration
) {
const [moduleNameWithExpoPrefix, moduleName] = preparePrefixes(jsPackageName);
const tsPath = path.join(modulePath, 'src');
// remove View Manager from template
if (!viewManager) {
await removeFiles(path.join(tsPath), [
'ExpoModuleTemplateView.tsx',
'ExpoModuleTemplateNativeView.ts',
'ExpoModuleTemplateNativeView.web.tsx',
]);
await replaceContent(path.join(tsPath, 'ModuleTemplate.ts'), (fileContent) =>
fileContent.replace(/(^\s+)+(^.*?){1}ExpoModuleTemplateView.*$/m, '')
);
}
await renameFilesWithExtensions(
path.join(tsPath, '__tests__'),
['.ts'],
[{ from: 'ModuleTemplate-test', to: `${moduleName}-test` }]
);
await renameFilesWithExtensions(
tsPath,
['.tsx', '.ts'],
[
{ from: 'ExpoModuleTemplateView', to: `${moduleNameWithExpoPrefix}View` },
{ from: 'ExpoModuleTemplateNativeView', to: `${moduleNameWithExpoPrefix}NativeView` },
{ from: 'ExpoModuleTemplateNativeView.web', to: `${moduleNameWithExpoPrefix}NativeView.web` },
{ from: 'ExpoModuleTemplate', to: moduleNameWithExpoPrefix },
{ from: 'ExpoModuleTemplate.web', to: `${moduleNameWithExpoPrefix}.web` },
{ from: 'ModuleTemplate', to: moduleName },
{ from: 'ModuleTemplate.types', to: `${moduleName}.types` },
]
);
await replaceContents(tsPath, (singleFileContent) =>
singleFileContent
.replace(/ExpoModuleTemplate/g, moduleNameWithExpoPrefix)
.replace(/ModuleTemplate/g, moduleName)
);
}
/**
* Prepares files for npm (package.json and README.md).
* @param modulePath - module directory
* @param configuration - naming configuration
*/
async function configureNPM(
modulePath: string,
{ npmModuleName, podName, jsPackageName }: ModuleConfiguration
) {
const [, moduleName] = preparePrefixes(jsPackageName);
await replaceContent(path.join(modulePath, 'package.json'), (singleFileContent) =>
singleFileContent
.replace(/expo-module-template/g, npmModuleName)
.replace(/"version": "[\w.-]+"/, '"version": "1.0.0"')
.replace(/ExpoModuleTemplate/g, jsPackageName)
.replace(/ModuleTemplate/g, moduleName)
);
await replaceContent(path.join(modulePath, 'README.md'), (readmeContent) =>
readmeContent
.replace(/expo-module-template/g, npmModuleName)
.replace(/ExpoModuleTemplate/g, jsPackageName)
.replace(/EXModuleTemplate/g, podName)
);
}
/**
* Configures TS, Android and iOS parts of generated module mostly by applying provided renamings.
* @param modulePath - module directory
* @param configuration - naming configuration
*/
export default async function configureModule(
newModulePath: string,
configuration: ModuleConfiguration
) {
await configureNPM(newModulePath, configuration);
await configureTS(newModulePath, configuration);
await configureAndroid(newModulePath, configuration);
await configureIOS(newModulePath, configuration);
}
``` | /content/code_sandbox/tools/src/generate-module/configureModule.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 3,300 |
```xml
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class LoadingService {
loading$: Subject<boolean> = new Subject();
startLoading() {
this.loading$.next(true);
}
stopLoading() {
this.loading$.next(false);
}
}
``` | /content/code_sandbox/src/Presentation/Web/ClientApp/src/app/shared/services/loading.service.ts | xml | 2016-06-03T17:49:56 | 2024-08-14T02:53:24 | AspNetCoreSpa | fullstackproltd/AspNetCoreSpa | 1,472 | 71 |
```xml
export { createHash, createHmac, pbkdf2Sync, randomBytes } from "crypto";
//# sourceMappingURL=crypto.d.ts.map
``` | /content/code_sandbox/lib.commonjs/crypto/crypto.d.ts | xml | 2016-07-16T04:35:37 | 2024-08-16T13:37:46 | ethers.js | ethers-io/ethers.js | 7,843 | 30 |
```xml
import cn from "classnames";
import React, {
ChangeEvent,
EventHandler,
FocusEvent,
FunctionComponent,
} from "react";
import { ArrowsDownIcon, SvgIcon } from "coral-ui/components/icons";
import { withKeyboardFocus, withStyles } from "coral-ui/hocs";
import styles from "./SelectField.css";
export interface SelectFieldProps {
/**
* Value that has been selected.
*/
value?: string;
/**
* Convenient prop to override the root styling.
*/
className?: string;
/**
* Override or extend the styles applied to the component.
*/
classes: typeof styles;
/*
* If set renders a full width button
*/
fullWidth?: boolean;
id?: string;
autofocus?: boolean;
name?: string;
onChange?: EventHandler<ChangeEvent<HTMLSelectElement>>;
onClick?: EventHandler<React.MouseEvent>;
disabled?: boolean;
// These handlers are passed down by the `withKeyboardFocus` HOC.
onFocus: EventHandler<FocusEvent<HTMLSelectElement>>;
onBlur: EventHandler<FocusEvent<HTMLSelectElement>>;
keyboardFocus: boolean;
afterWrapper?: React.ReactElement<any>;
children?: React.ReactNode;
}
const SelectField: FunctionComponent<SelectFieldProps> = (props) => {
const {
className,
classes,
fullWidth,
keyboardFocus,
children,
disabled,
afterWrapper,
...rest
} = props;
const rootClassName = cn(classes.root, className, {
[classes.fullWidth]: fullWidth,
});
const selectClassName = cn(
classes.select,
classes.selectFont,
classes.selectColor,
{
[classes.keyboardFocus]: keyboardFocus,
}
);
const afterWrapperClassName = cn(classes.afterWrapper, {
[classes.afterWrapperDisabled]: disabled,
});
return (
<span className={rootClassName}>
<select
className={cn(selectClassName, "coral-selectField")}
disabled={disabled}
{...rest}
>
{children}
</select>
<span className={afterWrapperClassName} aria-hidden>
{afterWrapper}
</span>
</span>
);
};
SelectField.defaultProps = {
afterWrapper: <SvgIcon size="xs" Icon={ArrowsDownIcon} />,
};
const enhanced = withStyles(styles)(withKeyboardFocus(SelectField));
export default enhanced;
``` | /content/code_sandbox/client/src/core/client/ui/components/v2/SelectField/SelectField.tsx | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 504 |
```xml
import { Form } from "../../../../src";
import { OptionsModel } from "../../../../src/models/OptionsModel";
const fields = ["hobbies[]"];
class NewForm extends Form {
options(): OptionsModel {
return {
softDelete: true,
};
}
hooks() {
return {
onInit(form) {
form.$("hobbies").add({ value: "AAA" });
form.$("hobbies").add({ value: "BBB" });
form.$("hobbies").add({ value: "CCC" });
form.del("hobbies[1]");
},
};
}
}
export default new NewForm({ fields }, { name: "Nested-T1" });
``` | /content/code_sandbox/tests/data/forms/nested/form.t1.ts | xml | 2016-06-20T22:10:41 | 2024-08-10T13:14:33 | mobx-react-form | foxhound87/mobx-react-form | 1,093 | 147 |
```xml
import * as React from 'react';
import { NativeExpoGoogleMapsViewProps, NativeExpoAppleMapsViewProps } from './Map.types';
export declare const NativeExpoGoogleMapsView: React.ComponentType<NativeExpoGoogleMapsViewProps>;
export declare const NativeExpoAppleMapsView: React.ComponentType<NativeExpoAppleMapsViewProps>;
export declare const NativeExpoAppleMapsModule: import("expo-modules-core").ProxyNativeModule;
export declare const NativeExpoGoogleMapsModule: import("expo-modules-core").ProxyNativeModule;
//# sourceMappingURL=NativeExpoMapView.d.ts.map
``` | /content/code_sandbox/packages/expo-maps/build/NativeExpoMapView.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 126 |
```xml
import React from 'react';
import TestRenderer from 'react-test-renderer';
import { resetStyled } from './utils';
describe('warns on dynamic creation', () => {
let warn: ReturnType<typeof jest.spyOn>;
let styled: ReturnType<typeof resetStyled>;
beforeEach(() => {
warn = jest.spyOn(console, 'warn').mockImplementation(() => {});
styled = resetStyled();
});
afterEach(() => {
warn.mockReset();
});
it('should warn when a component was created dynamically', () => {
const Outer = () => {
const Inner = styled.div`
color: palevioletred;
`;
return <Inner />;
};
TestRenderer.create(<Outer />);
expect(warn).toHaveBeenCalledTimes(1);
expect(warn.mock.calls[0][0]).toMatch(/has been created dynamically/i);
});
it('should warn only once for a given ID', () => {
const Outer = () => {
const Inner = styled.div.withConfig({
displayName: 'Inner',
componentId: 'Inner',
})`
color: palevioletred;
`;
return <Inner />;
};
TestRenderer.create(<Outer />);
TestRenderer.create(<Outer />);
expect(warn).toHaveBeenCalledTimes(1);
});
it('should not warn in any other case', () => {
const Inner = styled.div`
color: palevioletred;
`;
const Outer = () => <Inner />;
TestRenderer.create(<Outer />);
expect(warn).toHaveBeenCalledTimes(0);
});
});
``` | /content/code_sandbox/packages/styled-components/src/test/warnOnDynamicCreation.test.tsx | xml | 2016-08-16T06:41:32 | 2024-08-16T12:59:53 | styled-components | styled-components/styled-components | 40,332 | 332 |
```xml
// See LICENSE in the project root for license information.
export { Lib1Class } from 'api-extractor-lib3-test';
``` | /content/code_sandbox/build-tests/api-extractor-scenarios/src/exportImportedExternal2/index.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 27 |
```xml
import type { Ref } from 'vue-demi'
import type { UnbindWithReset, ResetOption } from '../shared'
export const databaseUnbinds = new WeakMap<
object,
Record<string, UnbindWithReset>
>()
export function internalUnbind(
key: string,
unbinds: Record<string, UnbindWithReset> | undefined,
reset?: ResetOption
) {
if (unbinds && unbinds[key]) {
unbinds[key](reset)
delete unbinds[key]
}
}
export const unbind = (target: Ref, reset?: ResetOption) =>
internalUnbind('', databaseUnbinds.get(target), reset)
``` | /content/code_sandbox/src/database/unbind.ts | xml | 2016-01-07T22:57:53 | 2024-08-16T14:23:27 | vuefire | vuejs/vuefire | 3,833 | 146 |
```xml
<?xml version="1.0" encoding="utf-8"?><!--
~
~
~ 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.
-->
<manifest
xmlns:android="path_to_url"
xmlns:tools="path_to_url">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainIntroActivity"
android:theme="@style/Theme.Intro" />
<activity
android:name=".CanteenIntroActivity"
android:theme="@style/Theme.Intro" />
<activity android:name=".SplashActivity" />
<activity
android:name=".SplashIntroActivity"
android:theme="@style/Theme.Intro" />
<activity android:name=".FinishActivity" />
</application>
</manifest>
``` | /content/code_sandbox/app/src/main/AndroidManifest.xml | xml | 2016-02-18T21:20:47 | 2024-07-30T10:09:54 | material-intro | janheinrichmerker/material-intro | 1,737 | 532 |
```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 * as grpcWeb from 'grpc-web';
import {EchoRequest, EchoResponse} from './generated/echo_pb';
import {EchoServicePromiseClient} from './generated/echo_grpc_web_pb';
// The UnaryInterceptor interface is for the promise-based client.
class MyUnaryInterceptor implements grpcWeb.UnaryInterceptor<
EchoRequest, EchoResponse> {
intercept(request: grpcWeb.Request<EchoRequest, EchoResponse>,
invoker: (request: grpcWeb.Request<EchoRequest, EchoResponse>) =>
Promise<grpcWeb.UnaryResponse<EchoRequest, EchoResponse>>) {
const reqMsg = request.getRequestMessage();
reqMsg.setMessage('[-out-]' + reqMsg.getMessage());
return invoker(request).then((response: grpcWeb.UnaryResponse<
EchoRequest, EchoResponse>) => {
let result = '<-InitialMetadata->';
let initialMetadata = response.getMetadata();
for (let i in initialMetadata) {
result += i + ': ' + initialMetadata[i];
}
result += '<-TrailingMetadata->';
let trailingMetadata = response.getStatus().metadata;
for (let i in trailingMetadata) {
result += i + ': ' + trailingMetadata[i];
}
const responseMsg = response.getResponseMessage();
result += '[-in-]' + responseMsg.getMessage();
responseMsg.setMessage(result);
return response;
});
}
}
var opts = {'unaryInterceptors' : [new MyUnaryInterceptor()]};
const echoService = new EchoServicePromiseClient('path_to_url
null, opts);
export {echoService, EchoRequest}
``` | /content/code_sandbox/packages/grpc-web/test/tsc-tests/client04.ts | xml | 2016-06-20T17:34:33 | 2024-08-16T17:02:17 | grpc-web | grpc/grpc-web | 8,520 | 380 |
```xml
import { schemaComposer } from '../..';
import { parse, GraphQLInputObjectType } from 'graphql';
describe('github issue 363', () => {
it('TypeMapper.makeSchemaDef should create default values from ast', () => {
const documentNode = parse(`
input AnInput {
nonNullable: String!
nullable: String
defaultValue: String = "Default input value"
}
`);
const inputDefinition = documentNode.definitions[0];
schemaComposer.typeMapper.makeSchemaDef(inputDefinition);
const schema = schemaComposer.buildSchema({ keepUnusedTypes: true });
const inputType = schema.getType('AnInput') as GraphQLInputObjectType;
const fields = inputType.getFields();
const defaultValueField = fields.defaultValue;
expect(defaultValueField.defaultValue).toBe('Default input value');
});
});
``` | /content/code_sandbox/src/__tests__/github_issues/363-test.ts | xml | 2016-06-07T07:43:40 | 2024-07-30T19:45:36 | graphql-compose | graphql-compose/graphql-compose | 1,205 | 175 |
```xml
import fs from 'fs'
import path from 'path'
import { createGzip } from 'zlib'
import { type Catalogs } from '@pnpm/catalogs.types'
import { PnpmError } from '@pnpm/error'
import { types as allTypes, type UniversalOptions, type Config } from '@pnpm/config'
import { readProjectManifest } from '@pnpm/cli-utils'
import { createExportableManifest } from '@pnpm/exportable-manifest'
import { packlist } from '@pnpm/fs.packlist'
import { getBinsFromPackageManifest } from '@pnpm/package-bins'
import { type ProjectManifest, type DependencyManifest } from '@pnpm/types'
import fg from 'fast-glob'
import pick from 'ramda/src/pick'
import realpathMissing from 'realpath-missing'
import renderHelp from 'render-help'
import tar from 'tar-stream'
import { runScriptsIfPresent } from './publish'
const LICENSE_GLOB = 'LICEN{S,C}E{,.*}' // cspell:disable-line
export function rcOptionsTypes (): Record<string, unknown> {
return {
...cliOptionsTypes(),
...pick([
'npm-path',
], allTypes),
}
}
export function cliOptionsTypes (): Record<string, unknown> {
return {
'pack-destination': String,
...pick([
'pack-gzip-level',
], allTypes),
}
}
export const commandNames = ['pack']
export function help (): string {
return renderHelp({
description: 'Create a tarball from a package',
usages: ['pnpm pack'],
descriptionLists: [
{
title: 'Options',
list: [
{
description: 'Directory in which `pnpm pack` will save tarballs. The default is the current working directory.',
name: '--pack-destination <dir>',
},
],
},
],
})
}
export async function handler (
opts: Pick<UniversalOptions, 'dir'> & Pick<Config, 'catalogs' | 'ignoreScripts' | 'rawConfig' | 'embedReadme' | 'packGzipLevel' | 'nodeLinker'> & Partial<Pick<Config, 'extraBinPaths' | 'extraEnv'>> & {
argv: {
original: string[]
}
engineStrict?: boolean
packDestination?: string
workspaceDir?: string
}
): Promise<string> {
const { manifest: entryManifest, fileName: manifestFileName } = await readProjectManifest(opts.dir, opts)
preventBundledDependenciesWithoutHoistedNodeLinker(opts.nodeLinker, entryManifest)
const _runScriptsIfPresent = runScriptsIfPresent.bind(null, {
depPath: opts.dir,
extraBinPaths: opts.extraBinPaths,
extraEnv: opts.extraEnv,
pkgRoot: opts.dir,
rawConfig: opts.rawConfig,
rootModulesDir: await realpathMissing(path.join(opts.dir, 'node_modules')),
stdio: 'inherit',
unsafePerm: true, // when running scripts explicitly, assume that they're trusted.
})
if (!opts.ignoreScripts) {
await _runScriptsIfPresent([
'prepack',
'prepare',
], entryManifest)
}
const dir = entryManifest.publishConfig?.directory
? path.join(opts.dir, entryManifest.publishConfig.directory)
: opts.dir
// always read the latest manifest, as "prepack" or "prepare" script may modify package manifest.
const { manifest } = await readProjectManifest(dir, opts)
preventBundledDependenciesWithoutHoistedNodeLinker(opts.nodeLinker, manifest)
if (!manifest.name) {
throw new PnpmError('PACKAGE_NAME_NOT_FOUND', `Package name is not defined in the ${manifestFileName}.`)
}
if (!manifest.version) {
throw new PnpmError('PACKAGE_VERSION_NOT_FOUND', `Package version is not defined in the ${manifestFileName}.`)
}
const tarballName = `${manifest.name.replace('@', '').replace('/', '-')}-${manifest.version}.tgz`
const publishManifest = await createPublishManifest({
projectDir: dir,
modulesDir: path.join(opts.dir, 'node_modules'),
manifest,
embedReadme: opts.embedReadme,
catalogs: opts.catalogs ?? {},
})
const files = await packlist(dir, {
packageJsonCache: {
[path.join(dir, 'package.json')]: publishManifest as Record<string, unknown>,
},
})
const filesMap = Object.fromEntries(files.map((file) => [`package/${file}`, path.join(dir, file)]))
// cspell:disable-next-line
if (opts.workspaceDir != null && dir !== opts.workspaceDir && !files.some((file) => /LICEN[CS]E(\..+)?/i.test(file))) {
for (const license of licenses) {
filesMap[`package/${license}`] = path.join(opts.workspaceDir, license)
}
}
const destDir = opts.packDestination
? (path.isAbsolute(opts.packDestination) ? opts.packDestination : path.join(dir, opts.packDestination ?? '.'))
: dir
await fs.promises.mkdir(destDir, { recursive: true })
await packPkg({
destFile: path.join(destDir, tarballName),
filesMap,
modulesDir: path.join(opts.dir, 'node_modules'),
packGzipLevel: opts.packGzipLevel,
manifest: publishManifest,
bins: [
...(await getBinsFromPackageManifest(publishManifest as DependencyManifest, dir)).map(({ path }) => path),
...(manifest.publishConfig?.executableFiles ?? [])
.map((executableFile) => path.join(dir, executableFile)),
],
})
if (!opts.ignoreScripts) {
await _runScriptsIfPresent(['postpack'], entryManifest)
}
if (opts.dir !== destDir) {
return path.join(destDir, tarballName)
}
return path.relative(opts.dir, path.join(dir, tarballName))
}
function preventBundledDependenciesWithoutHoistedNodeLinker (nodeLinker: Config['nodeLinker'], manifest: ProjectManifest): void {
if (nodeLinker === 'hoisted') return
for (const key of ['bundledDependencies', 'bundleDependencies'] as const) {
const bundledDependencies = manifest[key]
if (bundledDependencies) {
throw new PnpmError('BUNDLED_DEPENDENCIES_WITHOUT_HOISTED', `${key} does not work with node-linker=${nodeLinker}`, {
hint: `Add node-linker=hoisted to .npmrc or delete ${key} from the root package.json to resolve this error`,
})
}
}
}
async function readReadmeFile (projectDir: string): Promise<string | undefined> {
const files = await fs.promises.readdir(projectDir)
const readmePath = files.find(name => /readme\.md$/i.test(name))
const readmeFile = readmePath ? await fs.promises.readFile(path.join(projectDir, readmePath), 'utf8') : undefined
return readmeFile
}
async function packPkg (opts: {
destFile: string
filesMap: Record<string, string>
modulesDir: string
packGzipLevel?: number
bins: string[]
manifest: ProjectManifest
}): Promise<void> {
const {
destFile,
filesMap,
bins,
manifest,
} = opts
const mtime = new Date('1985-10-26T08:15:00.000Z')
const pack = tar.pack()
await Promise.all(Object.entries(filesMap).map(async ([name, source]) => {
const isExecutable = bins.some((bin) => path.relative(bin, source) === '')
const mode = isExecutable ? 0o755 : 0o644
if (/^package\/package\.(json|json5|yaml)/.test(name)) {
pack.entry({ mode, mtime, name: 'package/package.json' }, JSON.stringify(manifest, null, 2))
return
}
pack.entry({ mode, mtime, name }, fs.readFileSync(source))
}))
const tarball = fs.createWriteStream(destFile)
pack.pipe(createGzip({ level: opts.packGzipLevel })).pipe(tarball)
pack.finalize()
return new Promise((resolve, reject) => {
tarball.on('close', () => {
resolve()
}).on('error', reject)
})
}
async function createPublishManifest (opts: {
projectDir: string
embedReadme?: boolean
modulesDir: string
manifest: ProjectManifest
catalogs: Catalogs
}): Promise<ProjectManifest> {
const { projectDir, embedReadme, modulesDir, manifest, catalogs } = opts
const readmeFile = embedReadme ? await readReadmeFile(projectDir) : undefined
return createExportableManifest(projectDir, manifest, {
catalogs,
readmeFile,
modulesDir,
})
}
``` | /content/code_sandbox/releasing/plugin-commands-publishing/src/pack.ts | xml | 2016-01-28T07:40:43 | 2024-08-16T12:38:47 | pnpm | pnpm/pnpm | 28,869 | 1,938 |
```xml
import { OperatorFunction, MonoTypeOperatorFunction } from '../types';
export declare function filter<T, S extends T>(predicate: (value: T, index: number) => value is S, thisArg?: any): OperatorFunction<T, S>;
export declare function filter<T>(predicate: (value: T, index: number) => boolean, thisArg?: any): MonoTypeOperatorFunction<T>;
``` | /content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/internal/operators/filter.d.ts | xml | 2016-09-05T10:18:44 | 2024-08-11T13:21:40 | LiquidCore | LiquidPlayer/LiquidCore | 1,010 | 83 |
```xml
import { serializeXmlString } from "../parser/xml-parser";
import { OpenXmlPackage } from "./open-xml-package";
import { Relationship } from "./relationship";
export class Part {
protected _xmlDocument: Document;
rels: Relationship[];
constructor(protected _package: OpenXmlPackage, public path: string) {
}
async load(): Promise<any> {
this.rels = await this._package.loadRelationships(this.path);
const xmlText = await this._package.load(this.path);
const xmlDoc = this._package.parseXmlDocument(xmlText);
if (this._package.options.keepOrigin) {
this._xmlDocument = xmlDoc;
}
this.parseXml(xmlDoc.firstElementChild);
}
save() {
this._package.update(this.path, serializeXmlString(this._xmlDocument));
}
protected parseXml(root: Element) {
}
}
``` | /content/code_sandbox/src/common/part.ts | xml | 2016-10-24T16:57:56 | 2024-08-16T17:39:34 | docxjs | VolodymyrBaydalka/docxjs | 1,168 | 188 |
```xml
import ActivityLogsList, {
IActivityListProps
} from '@erxes/ui-log/src/activityLogs/components/ActivityList';
import ActivityItem from '../components/ActivityItem';
import React from 'react';
class ActivityList extends React.Component<IActivityListProps> {
render() {
return (
<ActivityLogsList {...this.props} activityRenderItem={ActivityItem} />
);
}
}
export default ActivityList;
``` | /content/code_sandbox/packages/ui-log/src/components/ActivityList.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 90 |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="ng2.template">
<body>
<trans-unit id="6641024648411549335" datatype="html">
<source>Host</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">19</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">106</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">998</context>
</context-group>
<target>Host</target>
</trans-unit>
<trans-unit id="5548632560367794954" datatype="html">
<source>SMTP host server</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">23</context>
</context-group>
<target>SMTP host server</target>
</trans-unit>
<trans-unit id="6117946241126833991" datatype="html">
<source>Port</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">29</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">116</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">986</context>
</context-group>
<target>Port</target>
</trans-unit>
<trans-unit id="8345791171984839037" datatype="html">
<source>SMTP server's port</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">32</context>
</context-group>
<target>SMTP server's port</target>
</trans-unit>
<trans-unit id="7417306416104386782" datatype="html">
<source>isSecure</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">38</context>
</context-group>
<target>isSecure</target>
</trans-unit>
<trans-unit id="3595369311836927260" datatype="html">
<source>Is the connection secure. See path_to_url#tls-options for more details</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">41</context>
</context-group>
<target>Is the connection secure. See path_to_url#tls-options for more details</target>
</trans-unit>
<trans-unit id="4974172930949190178" datatype="html">
<source>TLS required</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">47</context>
</context-group>
<target>TLS required</target>
</trans-unit>
<trans-unit id="4629987485563394658" datatype="html">
<source>if this is true and secure is false then Nodemailer (used library in the background) tries to use STARTTLS. See path_to_url#tls-options for more details</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">50</context>
</context-group>
<target>if this is true and secure is false then Nodemailer (used library in the background) tries to use STARTTLS. See path_to_url#tls-options for more details</target>
</trans-unit>
<trans-unit id="2392488717875840729" datatype="html">
<source>User</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">57</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">22</context>
</context-group>
<target>User</target>
</trans-unit>
<trans-unit id="5128106301085777888" datatype="html">
<source>User to connect to the SMTP server.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">60</context>
</context-group>
<target>User to connect to the SMTP server.</target>
</trans-unit>
<trans-unit id="1431416938026210429" datatype="html">
<source>Password</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">67</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">146</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">193</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">88</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">100</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/login/login.component.html</context>
<context context-type="linenumber">38</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.html</context>
<context context-type="linenumber">66</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/sharelogin/share-login.component.html</context>
<context context-type="linenumber">25</context>
</context-group>
<target>Haso</target>
</trans-unit>
<trans-unit id="5394112790576096537" datatype="html">
<source>Password to connect to the SMTP server.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">71</context>
</context-group>
<target>Password to connect to the SMTP server.</target>
</trans-unit>
<trans-unit id="2704982721159979632" datatype="html">
<source>Sender email</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">83</context>
</context-group>
<target>Sender email</target>
</trans-unit>
<trans-unit id="5308313168080901236" datatype="html">
<source>Some services do not allow sending from random e-mail addresses. Set this accordingly.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">86</context>
</context-group>
<target>Some services do not allow sending from random e-mail addresses. Set this accordingly.</target>
</trans-unit>
<trans-unit id="4452860738128824775" datatype="html">
<source>SMTP</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">93</context>
</context-group>
<target>SMTP</target>
</trans-unit>
<trans-unit id="4768749765465246664" datatype="html">
<source>Email</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">105</context>
</context-group>
<target>Email</target>
</trans-unit>
<trans-unit id="5088570468989623310" datatype="html">
<source>The app uses Nodemailer in the background for sending e-mails. Refer to path_to_url if some options are not clear.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/MessagingConfig.ts</context>
<context context-type="linenumber">107</context>
</context-group>
<target>The app uses Nodemailer in the background for sending e-mails. Refer to path_to_url if some options are not clear.</target>
</trans-unit>
<trans-unit id="4198035112366277884" datatype="html">
<source>Database</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">126</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1047</context>
</context-group>
<target>Baza danych</target>
</trans-unit>
<trans-unit id="5248717555542428023" datatype="html">
<source>Username</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">136</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/login/login.component.html</context>
<context context-type="linenumber">27</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.html</context>
<context context-type="linenumber">64</context>
</context-group>
<target>Uytkownik</target>
</trans-unit>
<trans-unit id="5922507650738289450" datatype="html">
<source>Sqlite db filename</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">159</context>
</context-group>
<target>Sqlite db filename</target>
</trans-unit>
<trans-unit id="6242404539171057139" datatype="html">
<source>Sqlite will save the db with this filename.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">163</context>
</context-group>
<target>Sqlite will save the db with this filename.</target>
</trans-unit>
<trans-unit id="8953033926734869941" datatype="html">
<source>Name</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">173</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">438</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">669</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">951</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">260</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
<target>Nazwa</target>
</trans-unit>
<trans-unit id="4145496584631696119" datatype="html">
<source>Role</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">183</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.html</context>
<context context-type="linenumber">17</context>
</context-group>
<target>Rola</target>
</trans-unit>
<trans-unit id="1923436359287758169" datatype="html">
<source>Unencrypted, temporary password. App will encrypt it and delete this.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">197</context>
</context-group>
<target>Unencrypted, temporary password. App will encrypt it and delete this.</target>
</trans-unit>
<trans-unit id="4590004310985064600" datatype="html">
<source>Encrypted password</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">204</context>
</context-group>
<target>Encrypted password</target>
</trans-unit>
<trans-unit id="8650499415827640724" datatype="html">
<source>Type</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">239</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">661</context>
</context-group>
<target>Typ</target>
</trans-unit>
<trans-unit id="1238021661446404501" datatype="html">
<source>SQLite is recommended.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">244</context>
</context-group>
<target>SQLite is recommended.</target>
</trans-unit>
<trans-unit id="9183561046697462335" datatype="html">
<source>Database folder</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">251</context>
</context-group>
<target>Katalog bazy danych</target>
</trans-unit>
<trans-unit id="631272345671042051" datatype="html">
<source>All file-based data will be stored here (sqlite database, job history data).</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">255</context>
</context-group>
<target>All file-based data will be stored here (sqlite database, job history data).</target>
</trans-unit>
<trans-unit id="3636930811048814547" datatype="html">
<source>SQLite</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">262</context>
</context-group>
<target>SQLite</target>
</trans-unit>
<trans-unit id="96151499268029457" datatype="html">
<source>MySQL</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">272</context>
</context-group>
<target>MySQL</target>
</trans-unit>
<trans-unit id="4719488548459812147" datatype="html">
<source>Enforced users</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">289</context>
</context-group>
<target>Enforced users</target>
</trans-unit>
<trans-unit id="5248918329958232371" datatype="html">
<source>Creates these users in the DB during startup if they do not exist. If a user with this name exist, it won't be overwritten, even if the role is different.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">295</context>
</context-group>
<target>Creates these users in the DB during startup if they do not exist. If a user with this name exist, it won't be overwritten, even if the role is different.</target>
</trans-unit>
<trans-unit id="5469820923661123729" datatype="html">
<source>High quality resampling</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">306</context>
</context-group>
<target>High quality resampling</target>
</trans-unit>
<trans-unit id="5826490037337254388" datatype="html">
<source>if true, 'lanczos3' will used to scale photos, otherwise faster but lower quality 'nearest'.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">309</context>
</context-group>
<target>if true, 'lanczos3' will used to scale photos, otherwise faster but lower quality 'nearest'.</target>
</trans-unit>
<trans-unit id="7563121839842898948" datatype="html">
<source>Converted photo and thumbnail quality</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">316</context>
</context-group>
<target>Converted photo and thumbnail quality</target>
</trans-unit>
<trans-unit id="2244219270224531739" datatype="html">
<source>Between 0-100.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">319</context>
</context-group>
<target>Between 0-100.</target>
</trans-unit>
<trans-unit id="1917409152137411884" datatype="html">
<source>Use chroma subsampling</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">326</context>
</context-group>
<target>Use chroma subsampling</target>
</trans-unit>
<trans-unit id="1836296647835828593" datatype="html">
<source>Use high quality chroma subsampling in webp. See: path_to_url#webp.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">329</context>
</context-group>
<target>Use high quality chroma subsampling in webp. See: path_to_url#webp.</target>
</trans-unit>
<trans-unit id="5353755005542296188" datatype="html">
<source>Person face margin</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">336</context>
</context-group>
<target>Person face margin</target>
</trans-unit>
<trans-unit id="5475581732854937898" datatype="html">
<source>This ratio of the face bounding box will be added to the face as a margin. Higher number add more margin.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">339</context>
</context-group>
<target>This ratio of the face bounding box will be added to the face as a margin. Higher number add more margin.</target>
</trans-unit>
<trans-unit id="2608032520920350167" datatype="html">
<source>OnTheFly *.gpx compression</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">349</context>
</context-group>
<target>OnTheFly *.gpx compression</target>
</trans-unit>
<trans-unit id="5010771687614184937" datatype="html">
<source>Enables on the fly *.gpx compression.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">353</context>
</context-group>
<target>Enables on the fly *.gpx compression.</target>
</trans-unit>
<trans-unit id="2459653061010411129" datatype="html">
<source>Min distance</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">360</context>
</context-group>
<target>Min distance</target>
</trans-unit>
<trans-unit id="3661874866354505207" datatype="html">
<source>Filters out entry that are closer than this to each other in meters.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">365</context>
</context-group>
<target>Filters out entry that are closer than this to each other in meters.</target>
</trans-unit>
<trans-unit id="3542117266563491040" datatype="html">
<source>Max middle point deviance</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">372</context>
</context-group>
<target>Max middle point deviance</target>
</trans-unit>
<trans-unit id="1754404097862874766" datatype="html">
<source>Filters out entry that would fall on the line if we would just connect the previous and the next points. This setting sets the sensitivity for that (higher number, more points are filtered).</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">377</context>
</context-group>
<target>Filters out entry that would fall on the line if we would just connect the previous and the next points. This setting sets the sensitivity for that (higher number, more points are filtered).</target>
</trans-unit>
<trans-unit id="7868435806239546428" datatype="html">
<source>Min time delta</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">384</context>
</context-group>
<target>Min time delta</target>
</trans-unit>
<trans-unit id="8357288317395152108" datatype="html">
<source>Filters out entry that are closer than this in time in milliseconds.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">389</context>
</context-group>
<target>Filters out entry that are closer than this in time in milliseconds.</target>
</trans-unit>
<trans-unit id="1496463932969476539" datatype="html">
<source>GPX compression</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">399</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1252</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">67</context>
</context-group>
<target>GPX compression</target>
</trans-unit>
<trans-unit id="6317771699376768085" datatype="html">
<source>Update timeout</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">420</context>
</context-group>
<target>Update timeout</target>
</trans-unit>
<trans-unit id="8736166630756120293" datatype="html">
<source>After creating a sharing link, it can be updated for this long.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">424</context>
</context-group>
<target>After creating a sharing link, it can be updated for this long.</target>
</trans-unit>
<trans-unit id="5936920037659087069" datatype="html">
<source>Index cache timeout</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">435</context>
</context-group>
<target>Index cache timeout</target>
</trans-unit>
<trans-unit id="4751279777806037015" datatype="html">
<source>If there was no indexing in this time, it reindexes. (skipped if indexes are in DB and sensitivity is low).</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">439</context>
</context-group>
<target>If there was no indexing in this time, it reindexes. (skipped if indexes are in DB and sensitivity is low).</target>
</trans-unit>
<trans-unit id="1334817424484159222" datatype="html">
<source>Folder reindexing sensitivity</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">446</context>
</context-group>
<target>Ustawienie czuosi powtrnego indeksowania katalogw</target>
</trans-unit>
<trans-unit id="918816665248579909" datatype="html">
<source>Set the reindexing sensitivity. High value check the folders for change more often. Setting to never only indexes if never indexed or explicit running the Indexing Job.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">449</context>
</context-group>
<target>Set the reindexing sensitivity. High value check the folders for change more often. Setting to never only indexes if never indexed or explicit running the Indexing Job.</target>
</trans-unit>
<trans-unit id="3568851002082270949" datatype="html">
<source>Exclude Folder List</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">456</context>
</context-group>
<target>Lista wyklucze katalogw</target>
</trans-unit>
<trans-unit id="1610825524284664220" datatype="html">
<source>Folders to exclude from indexing. If an entry starts with '/' it is treated as an absolute path. If it doesn't start with '/' but contains a '/', the path is relative to the image directory. If it doesn't contain a '/', any folder with this name will be excluded.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">462</context>
</context-group>
<target>Folders to exclude from indexing. If an entry starts with '/' it is treated as an absolute path. If it doesn't start with '/' but contains a '/', the path is relative to the image directory. If it doesn't contain a '/', any folder with this name will be excluded.</target>
</trans-unit>
<trans-unit id="1086546411028005438" datatype="html">
<source>Exclude File List</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">469</context>
</context-group>
<target>Lista wyklucze plikw</target>
</trans-unit>
<trans-unit id="3805748632901985219" datatype="html">
<source>.ignore;.pg2ignore</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">473</context>
</context-group>
<target>.ignore;.pg2ignore</target>
</trans-unit>
<trans-unit id="5517726334666694295" datatype="html">
<source>Files that mark a folder to be excluded from indexing. Any folder that contains a file with this name will be excluded from indexing.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">475</context>
</context-group>
<target>Files that mark a folder to be excluded from indexing. Any folder that contains a file with this name will be excluded from indexing.</target>
</trans-unit>
<trans-unit id="3089345247204108252" datatype="html">
<source>Max duplicates</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">486</context>
</context-group>
<target>Max duplicates</target>
</trans-unit>
<trans-unit id="2857981877504842327" datatype="html">
<source>Maximum number of duplicates to list.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">489</context>
</context-group>
<target>Maximum number of duplicates to list.</target>
</trans-unit>
<trans-unit id="3733215288982610673" datatype="html">
<source>Level</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">499</context>
</context-group>
<target>Level</target>
</trans-unit>
<trans-unit id="6041867609103875269" datatype="html">
<source>Logging level.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">502</context>
</context-group>
<target>Logging level.</target>
</trans-unit>
<trans-unit id="676216864464481272" datatype="html">
<source>Sql Level</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">508</context>
</context-group>
<target>Sql Level</target>
</trans-unit>
<trans-unit id="8812113673684921175" datatype="html">
<source>Logging level for SQL queries.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">511</context>
</context-group>
<target>Logging level for SQL queries.</target>
</trans-unit>
<trans-unit id="6212535853329157478" datatype="html">
<source>Server timing</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">516</context>
</context-group>
<target>Server timing</target>
</trans-unit>
<trans-unit id="7410385593985151245" datatype="html">
<source>If enabled, the app ads "Server-Timing" http header to the response.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">519</context>
</context-group>
<target>If enabled, the app ads "Server-Timing" http header to the response.</target>
</trans-unit>
<trans-unit id="6011589038643567137" datatype="html">
<source>Max saved progress</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">619</context>
</context-group>
<target>Max saved progress</target>
</trans-unit>
<trans-unit id="1628705458537085502" datatype="html">
<source>Job history size.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">622</context>
</context-group>
<target>Job history size.</target>
</trans-unit>
<trans-unit id="8021865850981477352" datatype="html">
<source>Processing batch size</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">629</context>
</context-group>
<target>Processing batch size</target>
</trans-unit>
<trans-unit id="4763786307361733917" datatype="html">
<source>Jobs load this many photos or videos form the DB for processing at once.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">632</context>
</context-group>
<target>Jobs load this many photos or videos form the DB for processing at once.</target>
</trans-unit>
<trans-unit id="547146152434765833" datatype="html">
<source>Scheduled jobs</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">638</context>
</context-group>
<target>Scheduled jobs</target>
</trans-unit>
<trans-unit id="306805200938050070" datatype="html">
<source>Bit rate</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">694</context>
</context-group>
<target>Przepywno</target>
</trans-unit>
<trans-unit id="2478892300465956089" datatype="html">
<source>Target bit rate of the output video will be scaled down this this. This should be less than the upload rate of your home server.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">698</context>
</context-group>
<target>Przepywno w bitach (bit rate) w transkodowanym wideo bdzie zmniejszona do tej wartoci, ktra powinna by nisza, ni dostpna szybko przesyania danych serwera.</target>
</trans-unit>
<trans-unit id="1963136290621768454" datatype="html">
<source>Resolution</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">705</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">831</context>
</context-group>
<target>Rozdzielczo</target>
</trans-unit>
<trans-unit id="8355011535250584768" datatype="html">
<source>The height of the output video will be scaled down to this, while keeping the aspect ratio.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">710</context>
</context-group>
<target>Wysoko transkodowanego wideo bdzie zmniejszona do tej wartoci przy utrzymaniu proporcji obrazu oryginalnego wideo.</target>
</trans-unit>
<trans-unit id="3228666320262483835" datatype="html">
<source>FPS</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">717</context>
</context-group>
<target>Ramki na sekund (FPS)</target>
</trans-unit>
<trans-unit id="1755420511646795750" datatype="html">
<source>Target frame per second (fps) of the output video will be scaled down this this.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">721</context>
</context-group>
<target>Ilo ramek na sekund w transkodowanym wideo bdzie ustawiona na t warto.</target>
</trans-unit>
<trans-unit id="7513076467032912668" datatype="html">
<source>Format</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">727</context>
</context-group>
<target>Format</target>
</trans-unit>
<trans-unit id="4558851785770149120" datatype="html">
<source>MP4 codec</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">736</context>
</context-group>
<target>MP4 codec</target>
</trans-unit>
<trans-unit id="6048942710723898007" datatype="html">
<source>Webm Codec</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">746</context>
</context-group>
<target>Webm Codec</target>
</trans-unit>
<trans-unit id="8500867820372719149" datatype="html">
<source>CRF</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">757</context>
</context-group>
<target>Wspczynnik CRF</target>
</trans-unit>
<trans-unit id="639575417147182282" datatype="html">
<source>The range of the Constant Rate Factor (CRF) scale is 051, where 0 is lossless, 23 is the default, and 51 is worst quality possible.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">760</context>
</context-group>
<target>Dozwolone wartoci dla wspczynnika CRF (ang. Constant Rate Factor) zawarte s w przedziale 051, gdzie 0 oznacza kodowanie bezstratne, 23 jest wartoci domyln, a 51 oznacza najmniejsz jako.</target>
</trans-unit>
<trans-unit id="6333857424161463201" datatype="html">
<source>Preset</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">768</context>
</context-group>
<target>Zestaw ustawie</target>
</trans-unit>
<trans-unit id="5666144931223883408" datatype="html">
<source>A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize).</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">771</context>
</context-group>
<target>Zestaw ustawie uatwia wybr okrelonej szybkoci kodowania wideo w stosunku do stopnia kompresji. Zestaw z wolniejszym kodowaniem bdzie mia lepsz kompresj (czyli jako w stosunku do wielkoci pliku).</target>
</trans-unit>
<trans-unit id="875741467182223722" datatype="html">
<source>Custom Output Options</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">778</context>
</context-group>
<target>Custom Output Options</target>
</trans-unit>
<trans-unit id="4633198251733160919" datatype="html">
<source>It will be sent to ffmpeg as it is, as custom output options.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">783</context>
</context-group>
<target>It will be sent to ffmpeg as it is, as custom output options.</target>
</trans-unit>
<trans-unit id="2012036823425449881" datatype="html">
<source>Custom Input Options</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">790</context>
</context-group>
<target>Custom Input Options</target>
</trans-unit>
<trans-unit id="4952811342387778937" datatype="html">
<source>It will be sent to ffmpeg as it is, as custom input options.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">796</context>
</context-group>
<target>It will be sent to ffmpeg as it is, as custom input options.</target>
</trans-unit>
<trans-unit id="3617023035573084133" datatype="html">
<source>Video transcoding</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">806</context>
</context-group>
<target>Video transcoding</target>
</trans-unit>
<trans-unit id="440637971406706761" datatype="html">
<source>To ensure smooth video playback, video transcoding is recommended to a lower bit rate than the server's upload rate. The transcoded videos will be save to the thumbnail folder. You can trigger the transcoding manually, but you can also create an automatic encoding job in advanced settings mode.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">810</context>
</context-group>
<target>To ensure smooth video playback, video transcoding is recommended to a lower bit rate than the server's upload rate. The transcoded videos will be save to the thumbnail folder. You can trigger the transcoding manually, but you can also create an automatic encoding job in advanced settings mode.</target>
</trans-unit>
<trans-unit id="4328921999658902771" datatype="html">
<source>On the fly converting</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">819</context>
</context-group>
<target>Konwersja wedug potrzeby</target>
</trans-unit>
<trans-unit id="2470605681014912285" datatype="html">
<source>Converts photos on the fly, when they are requested.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">825</context>
</context-group>
<target>Dokonuje konwersji zdj wedug potrzeby, kiedy s wywietlane w przegldarce.</target>
</trans-unit>
<trans-unit id="7423094978007045780" datatype="html">
<source>The shorter edge of the converted photo will be scaled down to this, while keeping the aspect ratio.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">838</context>
</context-group>
<target>Krtszy brzeg zmniejszonej kopii zdjcia bdzie miao t liczb pikseli przy zachowaniu proporcji rozmiaru oryginau.</target>
</trans-unit>
<trans-unit id="5818532657372977595" datatype="html">
<source>Photo resizing</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">847</context>
</context-group>
<target>Photo resizing</target>
</trans-unit>
<trans-unit id="3200155866272065974" datatype="html">
<source>Cover Filter query</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">859</context>
</context-group>
<target>Cover Filter query</target>
</trans-unit>
<trans-unit id="3934792735027900470" datatype="html">
<source>Filters the sub-folders with this search query. If filter results no photo, the app will search again without the filter.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">864</context>
</context-group>
<target>Filters the sub-folders with this search query. If filter results no photo, the app will search again without the filter.</target>
</trans-unit>
<trans-unit id="6038145233304913703" datatype="html">
<source>Cover Sorting</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">873</context>
</context-group>
<target>Cover Sorting</target>
</trans-unit>
<trans-unit id="7281714126487619000" datatype="html">
<source>If multiple cover is available sorts them by these methods and selects the first one.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">877</context>
</context-group>
<target>If multiple cover is available sorts them by these methods and selects the first one.</target>
</trans-unit>
<trans-unit id="4487775872787805732" datatype="html">
<source>Images folder</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">891</context>
</context-group>
<target>Katalog z obrazami</target>
</trans-unit>
<trans-unit id="3675884621668409255" datatype="html">
<source>Images are loaded from this folder (read permission required)</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">896</context>
</context-group>
<target>Obrazy s wczytywane z tego katalogu (wymagane uprawnienia do odczytu)</target>
</trans-unit>
<trans-unit id="2771235786507007543" datatype="html">
<source>Temp folder</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">902</context>
</context-group>
<target>Katalog tymczasowy</target>
</trans-unit>
<trans-unit id="9031495654448374643" datatype="html">
<source>Thumbnails, converted photos, videos will be stored here (write permission required)</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">907</context>
</context-group>
<target>Miniatury, skonwertowane obrazy, pliki wideo bd zapamitywane w tym katalogu (wymagane uprawnienia do zapisu)</target>
</trans-unit>
<trans-unit id="3548220493996366914" datatype="html">
<source>Metadata read buffer</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">914</context>
</context-group>
<target>Metadata read buffer</target>
</trans-unit>
<trans-unit id="4644756487867291334" datatype="html">
<source>Only this many bites will be loaded when scanning photo/video for metadata. Increase this number if your photos shows up as square.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">920</context>
</context-group>
<target>Only this many bites will be loaded when scanning photo/video for metadata. Increase this number if your photos shows up as square.</target>
</trans-unit>
<trans-unit id="6549265851868599441" datatype="html">
<source>Video</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">926</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1223</context>
</context-group>
<target>Wideo</target>
</trans-unit>
<trans-unit id="7232490753450335839" datatype="html">
<source>Video support uses ffmpeg. ffmpeg and ffprobe binaries need to be available in the PATH or the @ffmpeg-installer/ffmpeg and @ffprobe-installer/ffprobe optional node packages need to be installed.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">935</context>
</context-group>
<target>Video support uses ffmpeg. ffmpeg and ffprobe binaries need to be available in the PATH or the @ffmpeg-installer/ffmpeg and @ffprobe-installer/ffprobe optional node packages need to be installed.</target>
</trans-unit>
<trans-unit id="5750485945694679561" datatype="html">
<source>Photo</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">940</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1230</context>
</context-group>
<target>Zdjcie</target>
</trans-unit>
<trans-unit id="3434410278501759813" datatype="html">
<source>Thumbnail</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">953</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1216</context>
</context-group>
<target>Miniatura obrazu</target>
</trans-unit>
<trans-unit id="537022937435161177" datatype="html">
<source>Session Timeout</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">976</context>
</context-group>
<target>Session Timeout</target>
</trans-unit>
<trans-unit id="7127520017089378528" datatype="html">
<source>Users kept logged in for this long time.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">980</context>
</context-group>
<target>Users kept logged in for this long time.</target>
</trans-unit>
<trans-unit id="2521241309786115337" datatype="html">
<source>Port number. Port 80 is usually what you need.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">991</context>
</context-group>
<target>Numer portu. Standardowo port 80.</target>
</trans-unit>
<trans-unit id="5922774431911312513" datatype="html">
<source>Server will accept connections from this IPv6 or IPv4 address.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1003</context>
</context-group>
<target>Serwer bdzie akceptowa poczenia z tego adresu IPv6 lub IPv4.</target>
</trans-unit>
<trans-unit id="4804785061014590286" datatype="html">
<source>Logs</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1009</context>
</context-group>
<target>Logi</target>
</trans-unit>
<trans-unit id="2188854519574316630" datatype="html">
<source>Server</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1039</context>
</context-group>
<target>Server</target>
</trans-unit>
<trans-unit id="4555457172864212828" datatype="html">
<source>Users</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1055</context>
</context-group>
<target>Users</target>
</trans-unit>
<trans-unit id="4973087105311508591" datatype="html">
<source>Indexing</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1063</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">49</context>
</context-group>
<target>Indeksuj</target>
</trans-unit>
<trans-unit id="6572597181040351282" datatype="html">
<source>If you add a new folder to your gallery, the site indexes it automatically. If you would like to trigger indexing manually, click index button. (Note: search only works among the indexed directories.)</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1068</context>
</context-group>
<target>If you add a new folder to your gallery, the site indexes it automatically. If you would like to trigger indexing manually, click index button. (Note: search only works among the indexed directories.)</target>
</trans-unit>
<trans-unit id="3250391385569692601" datatype="html">
<source>Media</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1079</context>
</context-group>
<target>Media</target>
</trans-unit>
<trans-unit id="5007962937899031099" datatype="html">
<source>Meta file</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1087</context>
</context-group>
<target>Plik metadanych</target>
</trans-unit>
<trans-unit id="6399882340805620978" datatype="html">
<source>Album cover</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1095</context>
</context-group>
<target>Album cover</target>
</trans-unit>
<trans-unit id="494109936445845592" datatype="html">
<source>Specify a search query and sorting that the app can use to pick the best photo for an album and folder cover. There is no way to manually pick folder and album cover in the app. You can tag some of your photos with 'cover' and set that as search query or rate them to 5 and set sorting to descending by rating.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1106</context>
</context-group>
<target>Specify a search query and sorting that the app can use to pick the best photo for an album and folder cover. There is no way to manually pick folder and album cover in the app. You can tag some of your photos with 'cover' and set that as search query or rate them to 5 and set sorting to descending by rating.</target>
</trans-unit>
<trans-unit id="8422875188929347819" datatype="html">
<source>Sharing</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1112</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">142</context>
</context-group>
<target>Sharing</target>
</trans-unit>
<trans-unit id="3587873128318078848" datatype="html">
<source>Duplicates</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1120</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/duplicates/duplicates.component.ts</context>
<context context-type="linenumber">119</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">164</context>
</context-group>
<target>Duplicates</target>
</trans-unit>
<trans-unit id="2609637210173724919" datatype="html">
<source>Messaging</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1128</context>
</context-group>
<target>Messaging</target>
</trans-unit>
<trans-unit id="8227174550244698887" datatype="html">
<source>The App can send messages (like photos on the same day a year ago. aka: "Top Pick"). Here you can configure the delivery method.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1132</context>
</context-group>
<target>The App can send messages (like photos on the same day a year ago. aka: "Top Pick"). Here you can configure the delivery method.</target>
</trans-unit>
<trans-unit id="3229595422546554334" datatype="html">
<source>Jobs</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/private/PrivateConfig.ts</context>
<context context-type="linenumber">1138</context>
</context-group>
<target>Zadania</target>
</trans-unit>
<trans-unit id="839377997815860434" datatype="html">
<source>Maximum items</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">72</context>
</context-group>
<target>Maximum items</target>
</trans-unit>
<trans-unit id="9059384159901338400" datatype="html">
<source>Maximum number autocomplete items shown at once. If there is not enough items to reach this value, it takes upto double of the individual items.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">75</context>
</context-group>
<target>Maximum number autocomplete items shown at once. If there is not enough items to reach this value, it takes upto double of the individual items.</target>
</trans-unit>
<trans-unit id="1975560396569090938" datatype="html">
<source>Max photo items</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">83</context>
</context-group>
<target>Max photo items</target>
</trans-unit>
<trans-unit id="5932836121108496211" datatype="html">
<source>Maximum number autocomplete items shown per photo category.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">86</context>
</context-group>
<target>Maximum number autocomplete items shown per photo category.</target>
</trans-unit>
<trans-unit id="2869925600895621802" datatype="html">
<source>Max directory items</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">94</context>
</context-group>
<target>Max directory items</target>
</trans-unit>
<trans-unit id="5934414841725017618" datatype="html">
<source>Maximum number autocomplete items shown per directory category.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">97</context>
</context-group>
<target>Maximum number autocomplete items shown per directory category.</target>
</trans-unit>
<trans-unit id="6171775104559161283" datatype="html">
<source>Max caption items</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">105</context>
</context-group>
<target>Max caption items</target>
</trans-unit>
<trans-unit id="8577207045867351291" datatype="html">
<source>Maximum number autocomplete items shown per caption category.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">108</context>
</context-group>
<target>Maximum number autocomplete items shown per caption category.</target>
</trans-unit>
<trans-unit id="4432248344294022579" datatype="html">
<source>Max position items</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">116</context>
</context-group>
<target>Max position items</target>
</trans-unit>
<trans-unit id="3086088882031149981" datatype="html">
<source>Maximum number autocomplete items shown per position category.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">119</context>
</context-group>
<target>Maximum number autocomplete items shown per position category.</target>
</trans-unit>
<trans-unit id="4670515012963382372" datatype="html">
<source>Max faces items</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">127</context>
</context-group>
<target>Max faces items</target>
</trans-unit>
<trans-unit id="6404557966185698497" datatype="html">
<source>Maximum number autocomplete items shown per faces category.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">130</context>
</context-group>
<target>Maximum number autocomplete items shown per faces category.</target>
</trans-unit>
<trans-unit id="8855317879487307752" datatype="html">
<source>Max keyword items</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">138</context>
</context-group>
<target>Max keyword items</target>
</trans-unit>
<trans-unit id="6509178736104380145" datatype="html">
<source>Maximum number autocomplete items shown per keyword category.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">141</context>
</context-group>
<target>Maximum number autocomplete items shown per keyword category.</target>
</trans-unit>
<trans-unit id="4354453441748274999" datatype="html">
<source>Enable Autocomplete</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">151</context>
</context-group>
<target>Enable Autocomplete</target>
</trans-unit>
<trans-unit id="7703111577289302879" datatype="html">
<source>Show hints while typing search query.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">154</context>
</context-group>
<target>Pokazuj podpowiedzi przy wpisywaniu frazy wyszukiwania.</target>
</trans-unit>
<trans-unit id="7287846403801225511" datatype="html">
<source>Max items per category</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">161</context>
</context-group>
<target>Max items per category</target>
</trans-unit>
<trans-unit id="8268742369352149269" datatype="html">
<source>Maximum number autocomplete items shown per category.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">164</context>
</context-group>
<target>Maximum number autocomplete items shown per category.</target>
</trans-unit>
<trans-unit id="7037803898839863679" datatype="html">
<source>Cache timeout</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">172</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">196</context>
</context-group>
<target>Cache timeout</target>
</trans-unit>
<trans-unit id="7460330515350740380" datatype="html">
<source>Autocomplete cache timeout. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">176</context>
</context-group>
<target>Autocomplete cache timeout.</target>
</trans-unit>
<trans-unit id="2180291763949669799" datatype="html">
<source>Enable</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">186</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">255</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">267</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">289</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">466</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">970</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1121</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1158</context>
</context-group>
<target>Enable</target>
</trans-unit>
<trans-unit id="8338545895574711090" datatype="html">
<source>Enables searching.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">189</context>
</context-group>
<target>Enables searching.</target>
</trans-unit>
<trans-unit id="8206089520407978340" datatype="html">
<source>Search cache timeout.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">200</context>
</context-group>
<target>Search cache timeout.</target>
</trans-unit>
<trans-unit id="6507738516307254402" datatype="html">
<source>Autocomplete</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">206</context>
</context-group>
<target>Autouzupenianie</target>
</trans-unit>
<trans-unit id="7747085006165494563" datatype="html">
<source>Maximum media result</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">215</context>
</context-group>
<target>Maks. liczba wynikw</target>
</trans-unit>
<trans-unit id="1471447046544934544" datatype="html">
<source>Maximum number of photos and videos that are listed in one search result.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">218</context>
</context-group>
<target>Maximum number of photos and videos that are listed in one search result.</target>
</trans-unit>
<trans-unit id="2809377676909040375" datatype="html">
<source>Maximum directory result</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">224</context>
</context-group>
<target>Maximum directory result</target>
</trans-unit>
<trans-unit id="8397283408986431970" datatype="html">
<source>Maximum number of directories that are listed in one search result.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">227</context>
</context-group>
<target>Maximum number of directories that are listed in one search result.</target>
</trans-unit>
<trans-unit id="5788628366491057479" datatype="html">
<source>List directories</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">233</context>
</context-group>
<target>List directories</target>
</trans-unit>
<trans-unit id="1935594850787078673" datatype="html">
<source>Search returns also with directories, not just media.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">236</context>
</context-group>
<target>Search returns also with directories, not just media.</target>
</trans-unit>
<trans-unit id="709142926386769059" datatype="html">
<source>List metafiles</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">242</context>
</context-group>
<target>List metafiles</target>
</trans-unit>
<trans-unit id="7791806012343648215" datatype="html">
<source>Search also returns with metafiles from directories that contain a media file of the matched search result.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">245</context>
</context-group>
<target>Search also returns with metafiles from directories that contain a media file of the matched search result.</target>
</trans-unit>
<trans-unit id="6475889191924902342" datatype="html">
<source>Enables sharing.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">270</context>
</context-group>
<target>Enables sharing.</target>
</trans-unit>
<trans-unit id="166448092104563965" datatype="html">
<source>Password protected</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">276</context>
</context-group>
<target>Chro hasem</target>
</trans-unit>
<trans-unit id="4655262361738444589" datatype="html">
<source>Enables password protected sharing links.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">279</context>
</context-group>
<target>Wcza ochron linkw udostpniania katalogw za pomoc hasa.</target>
</trans-unit>
<trans-unit id="700572637665748593" datatype="html">
<source>Enables random link generation.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">292</context>
</context-group>
<target>Enables random link generation.</target>
</trans-unit>
<trans-unit id="1318992731180201330" datatype="html">
<source>Name of a map layer.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">304</context>
</context-group>
<target>Name of a map layer.</target>
</trans-unit>
<trans-unit id="412557495167115018" datatype="html">
<source>Url of a map layer.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">313</context>
</context-group>
<target>Url of a map layer.</target>
</trans-unit>
<trans-unit id="1143133976589063640" datatype="html">
<source>Sets if the layer is dark (used as default in the dark mode).</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">321</context>
</context-group>
<target>Sets if the layer is dark (used as default in the dark mode).</target>
</trans-unit>
<trans-unit id="4946508934141722594" datatype="html">
<source>SVG icon viewBox</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">337</context>
</context-group>
<target>SVG icon viewBox</target>
</trans-unit>
<trans-unit id="1828745019899593980" datatype="html">
<source>SVG path viewBox. See: path_to_url
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">340</context>
</context-group>
<target>SVG path viewBox. See: path_to_url
</trans-unit>
<trans-unit id="5506858590097128875" datatype="html">
<source>SVG Items</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">346</context>
</context-group>
<target>SVG Items</target>
</trans-unit>
<trans-unit id="4389372102342374611" datatype="html">
<source>Content elements (paths, circles, rects) of the SVG icon. Icons used on the map: fontawesome.com/icons.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">349</context>
</context-group>
<target>Content elements (paths, circles, rects) of the SVG icon. Icons used on the map: fontawesome.com/icons.</target>
</trans-unit>
<trans-unit id="9011959596901584887" datatype="html">
<source>Color</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">366</context>
</context-group>
<target>Color</target>
</trans-unit>
<trans-unit id="986022036062271497" datatype="html">
<source>Color of the path. Use any valid css colors.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">369</context>
</context-group>
<target>Color of the path. Use any valid css colors.</target>
</trans-unit>
<trans-unit id="8634167331842982441" datatype="html">
<source>Dash pattern</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">375</context>
</context-group>
<target>Dash pattern</target>
</trans-unit>
<trans-unit id="2438737359865289528" datatype="html">
<source>Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: path_to_url
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">379</context>
</context-group>
<target>Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: path_to_url
</trans-unit>
<trans-unit id="1057726871811234595" datatype="html">
<source>Svg Icon</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">387</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1388</context>
</context-group>
<target>Svg Icon</target>
</trans-unit>
<trans-unit id="189392445108403363" datatype="html">
<source>Set the icon of the map marker pin.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">391</context>
</context-group>
<target>Set the icon of the map marker pin.</target>
</trans-unit>
<trans-unit id="133947232251217266" datatype="html">
<source>Matchers</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">409</context>
</context-group>
<target>Matchers</target>
</trans-unit>
<trans-unit id="1761476223758787118" datatype="html">
<source>List of regex string to match the name of the path. Case insensitive. Empty list matches everything.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">412</context>
</context-group>
<target>List of regex string to match the name of the path. Case insensitive. Empty list matches everything.</target>
</trans-unit>
<trans-unit id="1041265241960537761" datatype="html">
<source>Path and icon theme</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">419</context>
</context-group>
<target>Path and icon theme</target>
</trans-unit>
<trans-unit id="8088686757026932221" datatype="html">
<source>List of regex string to match the name of the path.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">422</context>
</context-group>
<target>List of regex string to match the name of the path.</target>
</trans-unit>
<trans-unit id="6445741902419302713" datatype="html">
<source>Name of the marker and path group on the map.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">441</context>
</context-group>
<target>Name of the marker and path group on the map.</target>
</trans-unit>
<trans-unit id="4837108640322397601" datatype="html">
<source>Path themes</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">448</context>
</context-group>
<target>Path themes</target>
</trans-unit>
<trans-unit id="6908693151615823516" datatype="html">
<source>Matchers for a given map and path theme.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">451</context>
</context-group>
<target>Matchers for a given map and path theme.</target>
</trans-unit>
<trans-unit id="4552446388068845156" datatype="html">
<source>Image Markers</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">472</context>
</context-group>
<target>Image Markers</target>
</trans-unit>
<trans-unit id="7016588915008667535" datatype="html">
<source>Map will use thumbnail images as markers instead of the default pin.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">475</context>
</context-group>
<target>Miniatury obrazw bd uyte jako markery na mapie zamiast domylnej ikony szpilki.</target>
</trans-unit>
<trans-unit id="2109343451775315440" datatype="html">
<source>Map Provider</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">481</context>
</context-group>
<target>Map Provider</target>
</trans-unit>
<trans-unit id="5860141610052555892" datatype="html">
<source>Mapbox access token</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">489</context>
</context-group>
<target>Kod dostpu do serwisu Mapbox</target>
</trans-unit>
<trans-unit id="8929337277635076687" datatype="html">
<source>MapBox needs an access token to work, create one at path_to_url
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">493</context>
</context-group>
<target>MapBox needs an access token to work, create one at path_to_url
</trans-unit>
<trans-unit id="2386684148261896485" datatype="html">
<source>The map module will use these urls to fetch the map tiles.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">498</context>
</context-group>
<target>The map module will use these urls to fetch the map tiles.</target>
</trans-unit>
<trans-unit id="6452617211342461685" datatype="html">
<source>Custom Layers</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">501</context>
</context-group>
<target>Custom Layers</target>
</trans-unit>
<trans-unit id="1382580573983259242" datatype="html">
<source>Max Preview Markers</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">511</context>
</context-group>
<target>Max Preview Markers</target>
</trans-unit>
<trans-unit id="4090171517655540902" datatype="html">
<source>Maximum number of markers to be shown on the map preview on the gallery page.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">514</context>
</context-group>
<target>Maximum number of markers to be shown on the map preview on the gallery page.</target>
</trans-unit>
<trans-unit id="4556849443711086202" datatype="html">
<source>Path theme groups</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">522</context>
</context-group>
<target>Path theme groups</target>
</trans-unit>
<trans-unit id="7429215598366742079" datatype="html">
<source>Markers are grouped and themed by these settings</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">526</context>
</context-group>
<target>Markers are grouped and themed by these settings</target>
</trans-unit>
<trans-unit id="2826067096229698347" datatype="html">
<source>Bend long path trigger</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">590</context>
</context-group>
<target>Bend long path trigger</target>
</trans-unit>
<trans-unit id="4801778710475188270" datatype="html">
<source>Map will bend the path if two points are this far apart on latititude axes. This intended to bend flight if only the end and the start points are given.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">593</context>
</context-group>
<target>Map will bend the path if two points are this far apart on latititude axes. This intended to bend flight if only the end and the start points are given.</target>
</trans-unit>
<trans-unit id="5208941380118400380" datatype="html">
<source>Map Icon size</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">603</context>
</context-group>
<target>Map Icon size</target>
</trans-unit>
<trans-unit id="5685971437887935419" datatype="html">
<source>Icon size (used on maps).</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">607</context>
</context-group>
<target>Wielko ikon (na mapach).</target>
</trans-unit>
<trans-unit id="21285779955192982" datatype="html">
<source>Person thumbnail size</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">612</context>
</context-group>
<target>Person thumbnail size</target>
</trans-unit>
<trans-unit id="6270003837253502273" datatype="html">
<source>Person (face) thumbnail size.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">616</context>
</context-group>
<target>Person (face) thumbnail size.</target>
</trans-unit>
<trans-unit id="1164574322837752416" datatype="html">
<source>Thumbnail sizes</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">621</context>
</context-group>
<target>Wielkoci miniatur obrazw</target>
</trans-unit>
<trans-unit id="4279695256899764193" datatype="html">
<source>Size of the thumbnails. The best matching size will be generated. More sizes give better quality, but use more storage and CPU to render. If size is 240, that shorter side of the thumbnail will have 160 pixels.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">624</context>
</context-group>
<target>Size of the thumbnails. The best matching size will be generated. More sizes give better quality, but use more storage and CPU to render. If size is 240, that shorter side of the thumbnail will have 160 pixels.</target>
</trans-unit>
<trans-unit id="7466923289878135364" datatype="html">
<source>SearchQuery</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">677</context>
</context-group>
<target>SearchQuery</target>
</trans-unit>
<trans-unit id="8308045076391224954" datatype="html">
<source>Url</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">687</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">65</context>
</context-group>
<target>Url</target>
</trans-unit>
<trans-unit id="8864288285279476751" datatype="html">
<source>Method</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">716</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">740</context>
</context-group>
<target>Method</target>
</trans-unit>
<trans-unit id="6093210751404423786" datatype="html">
<source>Ascending</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">723</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">747</context>
</context-group>
<target>Ascending</target>
</trans-unit>
<trans-unit id="177392694971808911" datatype="html">
<source>Default sorting</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">760</context>
</context-group>
<target>Default sorting</target>
</trans-unit>
<trans-unit id="8993065143187639036" datatype="html">
<source>Default sorting method for photo and video in a directory results.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">763</context>
</context-group>
<target>Default sorting method for photo and video in a directory results.</target>
</trans-unit>
<trans-unit id="6155309121839598217" datatype="html">
<source>Default search sorting</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">770</context>
</context-group>
<target>Default search sorting</target>
</trans-unit>
<trans-unit id="7941581315950625881" datatype="html">
<source>Default sorting method for photo and video in a search results.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">773</context>
</context-group>
<target>Default sorting method for photo and video in a search results.</target>
</trans-unit>
<trans-unit id="2219985387769419367" datatype="html">
<source>Default grouping</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">780</context>
</context-group>
<target>Default grouping</target>
</trans-unit>
<trans-unit id="5640283237212785034" datatype="html">
<source>Default grouping method for photo and video in a directory results.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">784</context>
</context-group>
<target>Default grouping method for photo and video in a directory results.</target>
</trans-unit>
<trans-unit id="6222361365815783209" datatype="html">
<source>Default search grouping</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">791</context>
</context-group>
<target>Default search grouping</target>
</trans-unit>
<trans-unit id="4276017218108240034" datatype="html">
<source>Default grouping method for photo and video in a search results.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">795</context>
</context-group>
<target>Default grouping method for photo and video in a search results.</target>
</trans-unit>
<trans-unit id="1524055079900109760" datatype="html">
<source>Download Zip</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">805</context>
</context-group>
<target>Download Zip</target>
</trans-unit>
<trans-unit id="3946771566659086037" datatype="html">
<source>Enable download zip of a directory contents Directory flattening. (Does not work for searches.)</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">810</context>
</context-group>
<target>Enable download zip of a directory contents Directory flattening. (Does not work for searches.)</target>
</trans-unit>
<trans-unit id="6121078413919868273" datatype="html">
<source>Directory flattening</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">816</context>
</context-group>
<target>Directory flattening</target>
</trans-unit>
<trans-unit id="705617377096083016" datatype="html">
<source>Adds a button to flattens the file structure, by listing the content of all subdirectories. (Won't work if the gallery has multiple folders with the same path.)</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">821</context>
</context-group>
<target>Adds a button to flattens the file structure, by listing the content of all subdirectories. (Won't work if the gallery has multiple folders with the same path.)</target>
</trans-unit>
<trans-unit id="2057017984457052518" datatype="html">
<source>Default grid size</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">828</context>
</context-group>
<target>Default grid size</target>
</trans-unit>
<trans-unit id="783998631226539613" datatype="html">
<source>Default grid size that is used to render photos and videos.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">832</context>
</context-group>
<target>Default grid size that is used to render photos and videos.</target>
</trans-unit>
<trans-unit id="221212791975935245" datatype="html">
<source>Show item count</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">839</context>
</context-group>
<target>Poka liczb pozycji</target>
</trans-unit>
<trans-unit id="3624970360822137346" datatype="html">
<source>Shows the number photos and videos on the navigation bar.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">842</context>
</context-group>
<target>Shows the number photos and videos on the navigation bar.</target>
</trans-unit>
<trans-unit id="7565716024468232322" datatype="html">
<source>Links</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">849</context>
</context-group>
<target>Links</target>
</trans-unit>
<trans-unit id="4807202367596301715" datatype="html">
<source>Visible links in the top menu.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">853</context>
</context-group>
<target>Visible links in the top menu.</target>
</trans-unit>
<trans-unit id="9123353964549107895" datatype="html">
<source>Navbar show delay</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">862</context>
</context-group>
<target>Navbar show delay</target>
</trans-unit>
<trans-unit id="6740139625083216976" datatype="html">
<source>Ratio of the page height, you need to scroll to show the navigation bar.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">866</context>
</context-group>
<target>Ratio of the page height, you need to scroll to show the navigation bar.</target>
</trans-unit>
<trans-unit id="4038528744338038654" datatype="html">
<source>Navbar hide delay</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">871</context>
</context-group>
<target>Navbar hide delay</target>
</trans-unit>
<trans-unit id="5390013750224429307" datatype="html">
<source>Ratio of the page height, you need to scroll to hide the navigation bar.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">875</context>
</context-group>
<target>Ratio of the page height, you need to scroll to hide the navigation bar.</target>
</trans-unit>
<trans-unit id="8991316344176796079" datatype="html">
<source>Show scroll up button</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">881</context>
</context-group>
<target>Show scroll up button</target>
</trans-unit>
<trans-unit id="425470521667717513" datatype="html">
<source>Set when the floating scroll-up button should be visible.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">885</context>
</context-group>
<target>Set when the floating scroll-up button should be visible.</target>
</trans-unit>
<trans-unit id="7921800793872747437" datatype="html">
<source>Sorting and grouping</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">893</context>
</context-group>
<target>Sorting and grouping</target>
</trans-unit>
<trans-unit id="8685965882892653885" datatype="html">
<source>Default slideshow speed</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">906</context>
</context-group>
<target>Default slideshow speed</target>
</trans-unit>
<trans-unit id="8391296346935301055" datatype="html">
<source>Default time interval for displaying a photo in the slide show.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">911</context>
</context-group>
<target>Default time interval for displaying a photo in the slide show.</target>
</trans-unit>
<trans-unit id="1443139905845643218" datatype="html">
<source>Always show captions</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">917</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">66</context>
</context-group>
<target>Always show captions</target>
</trans-unit>
<trans-unit id="1541637444630104645" datatype="html">
<source>If enabled, lightbox will always show caption by default, not only on hover.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">920</context>
</context-group>
<target>If enabled, lightbox will always show caption by default, not only on hover.</target>
</trans-unit>
<trans-unit id="6677770225614932975" datatype="html">
<source>Always show faces</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">925</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">79</context>
</context-group>
<target>Always show faces</target>
</trans-unit>
<trans-unit id="9050621730692215024" datatype="html">
<source>If enabled, lightbox will always show faces by default, not only on hover.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">928</context>
</context-group>
<target>If enabled, lightbox will always show faces by default, not only on hover.</target>
</trans-unit>
<trans-unit id="5516106982912474900" datatype="html">
<source>Loop Videos</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">933</context>
</context-group>
<target>Loop Videos</target>
</trans-unit>
<trans-unit id="3583632647770258043" datatype="html">
<source>If enabled, lightbox will loop videos by default.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">936</context>
</context-group>
<target>If enabled, lightbox will loop videos by default.</target>
</trans-unit>
<trans-unit id="3660810634447085698" datatype="html">
<source>Name of the theme</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">953</context>
</context-group>
<target>Name of the theme</target>
</trans-unit>
<trans-unit id="7103588127254721505" datatype="html">
<source>Theme</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">958</context>
</context-group>
<target>Theme</target>
</trans-unit>
<trans-unit id="3213844127441603131" datatype="html">
<source>Adds these css settings as it is to the end of the body tag of the page.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">960</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1006</context>
</context-group>
<target>Adds these css settings as it is to the end of the body tag of the page.</target>
</trans-unit>
<trans-unit id="6375921149948953257" datatype="html">
<source>Enable themes and color modes.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">973</context>
</context-group>
<target>Enable themes and color modes.</target>
</trans-unit>
<trans-unit id="667242951578974423" datatype="html">
<source>Default theme mode</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">980</context>
</context-group>
<target>Default theme mode</target>
</trans-unit>
<trans-unit id="1744907786345958713" datatype="html">
<source>Sets the default theme mode that is used for the application.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">983</context>
</context-group>
<target>Sets the default theme mode that is used for the application.</target>
</trans-unit>
<trans-unit id="2756376392555555363" datatype="html">
<source>Selected theme</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">990</context>
</context-group>
<target>Selected theme</target>
</trans-unit>
<trans-unit id="4758803789125339433" datatype="html">
<source>Selected theme to use on the site.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">994</context>
</context-group>
<target>Selected theme to use on the site.</target>
</trans-unit>
<trans-unit id="8968641302600675865" datatype="html">
<source>Selected theme css</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1001</context>
</context-group>
<target>Selected theme css</target>
</trans-unit>
<trans-unit id="6385104003676355545" datatype="html">
<source>Cache</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1029</context>
</context-group>
<target>Pami podrczna</target>
</trans-unit>
<trans-unit id="4527546780564866281" datatype="html">
<source>Caches directory contents and search results for better performance.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1032</context>
</context-group>
<target>Zapamituje zawarto katalogw i wyniki wyszukiwania w pamici dla poprawienia wydajnoci.</target>
</trans-unit>
<trans-unit id="1555465647399115479" datatype="html">
<source>Scroll based thumbnail generation</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1037</context>
</context-group>
<target>Miniatury obrazw generowane przy przewijaniu</target>
</trans-unit>
<trans-unit id="2408284962530107777" datatype="html">
<source>Those thumbnails get higher priority that are visible on the screen.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1040</context>
</context-group>
<target>Miniatury obrazw widocznych na ekranie bd generowane z wikszym priorytetem.</target>
</trans-unit>
<trans-unit id="4152397028845147341" datatype="html">
<source>Sort directories by date</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1046</context>
</context-group>
<target>Sortuj katalogi wedug daty</target>
</trans-unit>
<trans-unit id="3147181893618230466" datatype="html">
<source>If enabled, directories will be sorted by date, like photos, otherwise by name. Directory date is the last modification time of that directory not the creation date of the oldest photo.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1049</context>
</context-group>
<target>Uaktywnij aby sortowa katalogi wedug daty (tak jak zdjcia), w przeciwnym wypadku katalogi bd sortowane wedug nazwy. Data katalogu odpowiada dacie jego ostatniej modyfikacji, a nie dacie dodania najnowszego zdjcia.</target>
</trans-unit>
<trans-unit id="7060776697703711531" datatype="html">
<source>On scroll thumbnail prioritising</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1055</context>
</context-group>
<target>On scroll thumbnail prioritising</target>
</trans-unit>
<trans-unit id="2449365823353179479" datatype="html">
<source>Those thumbnails will be rendered first that are in view.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1058</context>
</context-group>
<target>Those thumbnails will be rendered first that are in view.</target>
</trans-unit>
<trans-unit id="4204029540853675536" datatype="html">
<source>Navigation bar</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1063</context>
</context-group>
<target>Navigation bar</target>
</trans-unit>
<trans-unit id="138256296895235303" datatype="html">
<source>Caption first naming</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1071</context>
</context-group>
<target>Uywaj podpisw obrazw jako nazw</target>
</trans-unit>
<trans-unit id="5529709926880329339" datatype="html">
<source>Show the caption (IPTC 120) tags from the EXIF data instead of the filenames.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1074</context>
</context-group>
<target>Pokazuj warto podpis (IPTC 120) z metadanych EXIF obrazu zamiast nazwy pliku.</target>
</trans-unit>
<trans-unit id="7094332074276703160" datatype="html">
<source>Lightbox</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1081</context>
</context-group>
<target>Lightbox</target>
</trans-unit>
<trans-unit id="2798270190074840767" datatype="html">
<source>Themes</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1089</context>
</context-group>
<target>Themes</target>
</trans-unit>
<trans-unit id="2482105354766980770" datatype="html">
<source>Pigallery2 uses Bootstrap 5.3 (path_to_url for design (css, layout). In dark mode it sets 'data-bs-theme="dark"' to the <html> to take advantage bootstrap's color modes. For theming, read more at: path_to_url
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1093</context>
</context-group>
<target>Pigallery2 uses Bootstrap 5.3 (path_to_url for design (css, layout). In dark mode it sets 'data-bs-theme="dark"' to the <html> to take advantage bootstrap's color modes. For theming, read more at: path_to_url
</trans-unit>
<trans-unit id="5004767305340835166" datatype="html">
<source>Inline blog starts open</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1098</context>
</context-group>
<target>Inline blog starts open</target>
</trans-unit>
<trans-unit id="237163013641208057" datatype="html">
<source>Makes inline blog (*.md files content) to be auto open.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1102</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1112</context>
</context-group>
<target>Makes inline blog (*.md files content) to be auto open.</target>
</trans-unit>
<trans-unit id="8496975322830640739" datatype="html">
<source>Top blog starts open</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1108</context>
</context-group>
<target>Top blog starts open</target>
</trans-unit>
<trans-unit id="9185454837312696816" datatype="html">
<source>Supported formats with transcoding</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1130</context>
</context-group>
<target>Supported formats with transcoding</target>
</trans-unit>
<trans-unit id="4322859338400777784" datatype="html">
<source>Video formats that are supported after transcoding (with the build-in ffmpeg support).</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1135</context>
</context-group>
<target>Video formats that are supported after transcoding (with the build-in ffmpeg support).</target>
</trans-unit>
<trans-unit id="2099861843042326383" datatype="html">
<source>Supported formats without transcoding</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1143</context>
</context-group>
<target>Supported formats without transcoding</target>
</trans-unit>
<trans-unit id="2918342650701087250" datatype="html">
<source>Video formats that are supported also without transcoding. Browser supported formats: path_to_url
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1148</context>
</context-group>
<target>Video formats that are supported also without transcoding. Browser supported formats: path_to_url
</trans-unit>
<trans-unit id="6335601943118526384" datatype="html">
<source>Enable photo converting.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1160</context>
</context-group>
<target>Enable photo converting.</target>
</trans-unit>
<trans-unit id="8044411854765524879" datatype="html">
<source>Load full resolution image on zoom.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1166</context>
</context-group>
<target>Load full resolution image on zoom.</target>
</trans-unit>
<trans-unit id="6870206109332559881" datatype="html">
<source>Enables loading the full resolution image on zoom in the ligthbox (preview).</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1171</context>
</context-group>
<target>Uaktywnia adowanie oryginalnego obrazu o penej rozdzielczoci przy powikszaniu w podgldzie.</target>
</trans-unit>
<trans-unit id="3545289586736261463" datatype="html">
<source>Photo converting</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1180</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">57</context>
</context-group>
<target>Photo converting</target>
</trans-unit>
<trans-unit id="1269143586062804510" datatype="html">
<source>Supported photo formats</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1189</context>
</context-group>
<target>Supported photo formats</target>
</trans-unit>
<trans-unit id="1931666821506012028" datatype="html">
<source>Photo formats that are supported. Browser needs to support these formats natively. Also sharp (libvips) package should be able to convert these formats.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1193</context>
</context-group>
<target>Photo formats that are supported. Browser needs to support these formats natively. Also sharp (libvips) package should be able to convert these formats.</target>
</trans-unit>
<trans-unit id="2270178033581723629" datatype="html">
<source>Enable GPX compressing</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1202</context>
</context-group>
<target>Enable GPX compressing</target>
</trans-unit>
<trans-unit id="1033703021916717714" datatype="html">
<source>Enables lossy (based on delta time and distance. Too frequent points are removed) GPX compression.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1207</context>
</context-group>
<target>Enables lossy (based on delta time and distance. Too frequent points are removed) GPX compression.</target>
</trans-unit>
<trans-unit id="1159790075331375705" datatype="html">
<source>*.gpx files</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1241</context>
</context-group>
<target>*.gpx files</target>
</trans-unit>
<trans-unit id="1872426751751480239" datatype="html">
<source>Reads *.gpx files and renders them on the map.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1246</context>
</context-group>
<target>Reads *.gpx files and renders them on the map.</target>
</trans-unit>
<trans-unit id="5084395604268421279" datatype="html">
<source>Markdown files</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1261</context>
</context-group>
<target>Markdown files</target>
</trans-unit>
<trans-unit id="7631702888933785803" datatype="html">
<source>Reads *.md files in a directory and shows the next to the map.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1265</context>
</context-group>
<target>Reads *.md files in a directory and shows the next to the map.</target>
</trans-unit>
<trans-unit id="4773152636094540112" datatype="html">
<source>*.pg2conf files</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1271</context>
</context-group>
<target>*.pg2conf files</target>
</trans-unit>
<trans-unit id="1722259294720091848" datatype="html">
<source>Reads *.pg2conf files (You can use it for custom sorting and saved search (albums)).</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1275</context>
</context-group>
<target>Reads *.pg2conf files (You can use it for custom sorting and saved search (albums)).</target>
</trans-unit>
<trans-unit id="6014979081471317568" datatype="html">
<source>Supported formats</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1281</context>
</context-group>
<target>Supported formats</target>
</trans-unit>
<trans-unit id="5349838636229861629" datatype="html">
<source>The app will read and process these files.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1285</context>
</context-group>
<target>The app will read and process these files.</target>
</trans-unit>
<trans-unit id="4816216590591222133" datatype="html">
<source>Enabled</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1294</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/template.component.html</context>
<context context-type="linenumber">12</context>
</context-group>
<target>Aktywne</target>
</trans-unit>
<trans-unit id="6946816815826261880" datatype="html">
<source>Override keywords</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1302</context>
</context-group>
<target>Nadpisz sowa kluczowe</target>
</trans-unit>
<trans-unit id="60528833843807470" datatype="html">
<source>If a photo has the same face (person) name and keyword, the app removes the duplicate, keeping the face only.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1306</context>
</context-group>
<target>Jeli obraz ma t sam nazw osoby (rozpoznawanie twarzy) i sowo kluczowe, aplikacja usunie zduplikowane sowo kluczowe.</target>
</trans-unit>
<trans-unit id="6000343568689359565" datatype="html">
<source>Face starring right</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1311</context>
</context-group>
<target>Uprawnienia dodawania twarzy do ulubionych</target>
</trans-unit>
<trans-unit id="2357112787691547745" datatype="html">
<source>Required minimum right to star (favourite) a face.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1314</context>
</context-group>
<target>Minimalne uprawnienia do dodawania twarzy do ulubionych.</target>
</trans-unit>
<trans-unit id="2239686600313632759" datatype="html">
<source>Face listing right</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1319</context>
</context-group>
<target>Face listing right</target>
</trans-unit>
<trans-unit id="7717019961331408650" datatype="html">
<source>Required minimum right to show the faces tab.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1322</context>
</context-group>
<target>Required minimum right to show the faces tab.</target>
</trans-unit>
<trans-unit id="933361080941409912" datatype="html">
<source>Page title</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1332</context>
</context-group>
<target>Tytu strony</target>
</trans-unit>
<trans-unit id="176222620393429790" datatype="html">
<source>If you access the page form local network its good to know the public url for creating sharing link.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1338</context>
</context-group>
<target>If you access the page form local network its good to know the public url for creating sharing link.</target>
</trans-unit>
<trans-unit id="5093650417970469070" datatype="html">
<source>Page public url</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1340</context>
</context-group>
<target>Publiczny adres strony (URL)</target>
</trans-unit>
<trans-unit id="5431495058415264787" datatype="html">
<source>If you access the gallery under a sub url (like: path_to_url set it here. If it is not working you might miss the '/' from the beginning of the url.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1348</context>
</context-group>
<target>Jeli dostp do galerii zawiera ciek w adresie (np. path_to_url zdefiniuj j tutaj. Pamitaj o dodaniu '/' na pocztku URL.</target>
</trans-unit>
<trans-unit id="4312373114061005708" datatype="html">
<source>Url Base</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1350</context>
</context-group>
<target>Adres bazowy</target>
</trans-unit>
<trans-unit id="5579979532526495209" datatype="html">
<source>Api path</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1362</context>
</context-group>
<target>Api path</target>
</trans-unit>
<trans-unit id="2663968068169291107" datatype="html">
<source>Injects the content of this between the <head></head> HTML tags of the app. (You can use it add analytics or custom code to the app).</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1373</context>
</context-group>
<target>Injects the content of this between the <head></head> HTML tags of the app. (You can use it add analytics or custom code to the app).</target>
</trans-unit>
<trans-unit id="6764366823411649793" datatype="html">
<source>Custom HTML Head</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1375</context>
</context-group>
<target>Custom HTML Head</target>
</trans-unit>
<trans-unit id="8389568176247015120" datatype="html">
<source>Sets the icon of the app</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1392</context>
</context-group>
<target>Sets the icon of the app</target>
</trans-unit>
<trans-unit id="7321299026311900359" datatype="html">
<source>Password protection</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1409</context>
</context-group>
<target>Ochrona hasem</target>
</trans-unit>
<trans-unit id="1001285041433444124" datatype="html">
<source>Enables user management with login to password protect the gallery.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1411</context>
</context-group>
<target>Enables user management with login to password protect the gallery.</target>
</trans-unit>
<trans-unit id="6609079253925902817" datatype="html">
<source>Default user right</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1417</context>
</context-group>
<target>Default user right</target>
</trans-unit>
<trans-unit id="8265334008597043132" datatype="html">
<source>Default user right when password protection is disabled.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1422</context>
</context-group>
<target>Default user right when password protection is disabled.</target>
</trans-unit>
<trans-unit id="2181154762165715522" datatype="html">
<source>Gallery</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1439</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">67</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">25</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">133</context>
</context-group>
<target>Galeria</target>
</trans-unit>
<trans-unit id="1393837337557373364" datatype="html">
<source>Album</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1453</context>
</context-group>
<target>Album</target>
</trans-unit>
<trans-unit id="4580988005648117665" datatype="html">
<source>Search</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1465</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">66</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-builder/query-bulder.gallery.component.ts</context>
<context context-type="linenumber">31</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.ts</context>
<context context-type="linenumber">31</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/search.gallery.component.html</context>
<context context-type="linenumber">27</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/search.gallery.component.html</context>
<context context-type="linenumber">57</context>
</context-group>
<target>Szukaj</target>
</trans-unit>
<trans-unit id="5813867925497374051" datatype="html">
<source>Map</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1476</context>
</context-group>
<target>Mapa</target>
</trans-unit>
<trans-unit id="169123739434171110" datatype="html">
<source>Faces</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1484</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">69</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/faces/faces.component.ts</context>
<context context-type="linenumber">38</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">20</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">125</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">40</context>
</context-group>
<target>Twarze</target>
</trans-unit>
<trans-unit id="7466323133996752576" datatype="html">
<source>Random photo</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1492</context>
</context-group>
<target>Random photo</target>
</trans-unit>
<trans-unit id="6931351711601311753" datatype="html">
<source>This feature enables you to generate 'random photo' urls. That URL returns a photo random selected from your gallery. You can use the url with 3rd party application like random changing desktop background. Note: With the current implementation, random link also requires login.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/common/config/public/ClientConfig.ts</context>
<context context-type="linenumber">1496</context>
</context-group>
<target>This feature enables you to generate 'random photo' urls. That URL returns a photo random selected from your gallery. You can use the url with 3rd party application like random changing desktop background. Note: With the current implementation, random link also requires login.</target>
</trans-unit>
<trans-unit id="5732878542640870310" datatype="html">
<source>Size to generate</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">11</context>
</context-group>
<target>Wielko do wygenerowania</target>
</trans-unit>
<trans-unit id="8013041896880554958" datatype="html">
<source>These thumbnails will be generated. The list should be a subset of the enabled thumbnail sizes</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">13</context>
</context-group>
<target>Te miniatury obrazw bd wygenerowane. List powinna zawiera podzbir uaktywnionych wielkoci miniatur obrazu</target>
</trans-unit>
<trans-unit id="3188623303493603851" datatype="html">
<source>Indexed only</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">15</context>
</context-group>
<target>Tylko poindeksowane</target>
</trans-unit>
<trans-unit id="613209736940517083" datatype="html">
<source>Only checks indexed files.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">17</context>
</context-group>
<target>Sprawdzaj tylko poindeksowane pliki.</target>
</trans-unit>
<trans-unit id="8335094363935357421" datatype="html">
<source>Index changes only</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">19</context>
</context-group>
<target>Index changes only</target>
</trans-unit>
<trans-unit id="2887355625408505193" datatype="html">
<source>Only indexes a folder if it got changed.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">21</context>
</context-group>
<target>Only indexes a folder if it got changed.</target>
</trans-unit>
<trans-unit id="5714035432593805888" datatype="html">
<source>Media selectors</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">23</context>
</context-group>
<target>Media selectors</target>
</trans-unit>
<trans-unit id="7534784716124739630" datatype="html">
<source>Set these search queries to find photos and videos to email.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">25</context>
</context-group>
<target>Set these search queries to find photos and videos to email.</target>
</trans-unit>
<trans-unit id="5298689875582975932" datatype="html">
<source>E-mail to</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">27</context>
</context-group>
<target>E-mail to</target>
</trans-unit>
<trans-unit id="969387355003550756" datatype="html">
<source>E-mail address of the recipient.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">29</context>
</context-group>
<target>E-mail address of the recipient.</target>
</trans-unit>
<trans-unit id="9127604588498960753" datatype="html">
<source>Subject</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">31</context>
</context-group>
<target>Subject</target>
</trans-unit>
<trans-unit id="8166565126925776930" datatype="html">
<source>E-mail subject.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">33</context>
</context-group>
<target>E-mail subject.</target>
</trans-unit>
<trans-unit id="8066608938393600549" datatype="html">
<source>Message</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">35</context>
</context-group>
<target>Message</target>
</trans-unit>
<trans-unit id="2752906962332824457" datatype="html">
<source>E-mail text.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">37</context>
</context-group>
<target>E-mail text.</target>
</trans-unit>
<trans-unit id="9153059468211122141" datatype="html">
<source>Gallery reset</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">51</context>
</context-group>
<target>Gallery reset</target>
</trans-unit>
<trans-unit id="2046036880411214558" datatype="html">
<source>Album reset</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">53</context>
</context-group>
<target>Album reset</target>
</trans-unit>
<trans-unit id="1623883110045208603" datatype="html">
<source>Thumbnail generation</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">55</context>
</context-group>
<target>Thumbnail generation</target>
</trans-unit>
<trans-unit id="2212725374840438395" datatype="html">
<source>Video converting</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">59</context>
</context-group>
<target>Video converting</target>
</trans-unit>
<trans-unit id="2035605189158678284" datatype="html">
<source>Temp folder cleaning</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">61</context>
</context-group>
<target>Temp folder cleaning</target>
</trans-unit>
<trans-unit id="3088840048840308975" datatype="html">
<source>Cover filling</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">63</context>
</context-group>
<target>Cover filling</target>
</trans-unit>
<trans-unit id="6795645469514395103" datatype="html">
<source>Cover reset</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">65</context>
</context-group>
<target>Cover reset</target>
</trans-unit>
<trans-unit id="1170030142768130074" datatype="html">
<source>Delete Compressed GPX</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">69</context>
</context-group>
<target>Delete Compressed GPX</target>
</trans-unit>
<trans-unit id="6422562246025271457" datatype="html">
<source>Top Pick Sending</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">71</context>
</context-group>
<target>Top Pick Sending</target>
</trans-unit>
<trans-unit id="4793522720209559817" datatype="html">
<source>Scans the whole gallery from disk and indexes it to the DB.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">83</context>
</context-group>
<target>Scans the whole gallery from disk and indexes it to the DB.</target>
</trans-unit>
<trans-unit id="4691070723688024701" datatype="html">
<source>Deletes all directories, photos and videos from the DB.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">85</context>
</context-group>
<target>Deletes all directories, photos and videos from the DB.</target>
</trans-unit>
<trans-unit id="6504202610617727748" datatype="html">
<source>Removes all albums from the DB</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">87</context>
</context-group>
<target>Removes all albums from the DB</target>
</trans-unit>
<trans-unit id="2844399786106605327" datatype="html">
<source>Generates thumbnails from all media files and stores them in the tmp folder.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">89</context>
</context-group>
<target>Generates thumbnails from all media files and stores them in the tmp folder.</target>
</trans-unit>
<trans-unit id="6374721327915016061" datatype="html">
<source>Generates high res photos from all media files and stores them in the tmp folder.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">91</context>
</context-group>
<target>Generates high res photos from all media files and stores them in the tmp folder.</target>
</trans-unit>
<trans-unit id="681839472013852986" datatype="html">
<source>Transcodes all videos and stores them in the tmp folder.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">93</context>
</context-group>
<target>Transcodes all videos and stores them in the tmp folder.</target>
</trans-unit>
<trans-unit id="2403828565802891849" datatype="html">
<source>Removes unnecessary files from the tmp folder.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">95</context>
</context-group>
<target>Removes unnecessary files from the tmp folder.</target>
</trans-unit>
<trans-unit id="1886565118515809311" datatype="html">
<source>Updates the cover photo of all albums (both directories and saved searches) and faces.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">97</context>
</context-group>
<target>Updates the cover photo of all albums (both directories and saved searches) and faces.</target>
</trans-unit>
<trans-unit id="4106034977348030939" datatype="html">
<source>Deletes the cover photo of all albums and faces</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">99</context>
</context-group>
<target>Deletes the cover photo of all albums and faces</target>
</trans-unit>
<trans-unit id="32946664903270658" datatype="html">
<source>Compresses all gpx files</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">101</context>
</context-group>
<target>Compresses all gpx files</target>
</trans-unit>
<trans-unit id="4490323950044057611" datatype="html">
<source>Deletes all compressed GPX files</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">103</context>
</context-group>
<target>Deletes all compressed GPX files</target>
</trans-unit>
<trans-unit id="4246926023108353911" datatype="html">
<source>Gets the top photos of the selected search queries and sends them over email. You need to set up the SMTP server connection to send e-mails.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/backendtext.service.ts</context>
<context context-type="linenumber">105</context>
</context-group>
<target>Gets the top photos of the selected search queries and sends them over email. You need to set up the SMTP server connection to send e-mails.</target>
</trans-unit>
<trans-unit id="1677142486230902467" datatype="html">
<source>Server error</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/notification.service.ts</context>
<context context-type="linenumber">81</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/notification.service.ts</context>
<context context-type="linenumber">84</context>
</context-group>
<target>Bd serwera</target>
</trans-unit>
<trans-unit id="2642163697922706049" datatype="html">
<source>Server info</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/model/notification.service.ts</context>
<context context-type="linenumber">87</context>
</context-group>
<target>Informacje o serwerze</target>
</trans-unit>
<trans-unit id="8398233202919865612" datatype="html">
<source>h</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/pipes/DurationPipe.ts</context>
<context context-type="linenumber">20</context>
</context-group>
<note priority="1" from="description">hour</note>
<target>g</target>
</trans-unit>
<trans-unit id="8033953731717586115" datatype="html">
<source>m</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/pipes/DurationPipe.ts</context>
<context context-type="linenumber">23</context>
</context-group>
<note priority="1" from="description">minute</note>
<target>m</target>
</trans-unit>
<trans-unit id="2155832126259145609" datatype="html">
<source>s</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/pipes/DurationPipe.ts</context>
<context context-type="linenumber">26</context>
</context-group>
<note priority="1" from="description">second</note>
<target>s</target>
</trans-unit>
<trans-unit id="4513704550431982162" datatype="html">
<source>Developer</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">20</context>
</context-group>
<target>Developer</target>
</trans-unit>
<trans-unit id="5041354590769758251" datatype="html">
<source>Admin</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">21</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/admin/admin.component.ts</context>
<context context-type="linenumber">59</context>
</context-group>
<target>Admin</target>
</trans-unit>
<trans-unit id="268369328039605234" datatype="html">
<source>Guest</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">23</context>
</context-group>
<target>Guest</target>
</trans-unit>
<trans-unit id="805152477619072259" datatype="html">
<source>LimitedGuest</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">24</context>
</context-group>
<target>LimitedGuest</target>
</trans-unit>
<trans-unit id="8643289769990675407" datatype="html">
<source>Basic</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">27</context>
</context-group>
<target>Usawienia podstawowe</target>
</trans-unit>
<trans-unit id="6201638315245239510" datatype="html">
<source>Advanced</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">28</context>
</context-group>
<target>Zaawansowany</target>
</trans-unit>
<trans-unit id="7323232063800300323" datatype="html">
<source>Under the hood</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">29</context>
</context-group>
<target>Under the hood</target>
</trans-unit>
<trans-unit id="9212449559226155586" datatype="html">
<source>Always</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">31</context>
</context-group>
<target>Always</target>
</trans-unit>
<trans-unit id="221578388510207648" datatype="html">
<source>Mobile only</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">32</context>
</context-group>
<target>Mobile only</target>
</trans-unit>
<trans-unit id="8372007266188249803" datatype="html">
<source>Never</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">33</context>
</context-group>
<target>Never</target>
</trans-unit>
<trans-unit id="1920513678812261969" datatype="html">
<source>Full</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">35</context>
</context-group>
<target>Full</target>
</trans-unit>
<trans-unit id="4046649033157042513" datatype="html">
<source>Compact</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">36</context>
</context-group>
<target>Compact</target>
</trans-unit>
<trans-unit id="7590013429208346303" datatype="html">
<source>Custom</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">38</context>
</context-group>
<target>Custom</target>
</trans-unit>
<trans-unit id="113099127945736504" datatype="html">
<source>OpenStreetMap</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">39</context>
</context-group>
<target>OpenStreetMap</target>
</trans-unit>
<trans-unit id="441839877284474887" datatype="html">
<source>Mapbox</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">40</context>
</context-group>
<target>Mapbox</target>
</trans-unit>
<trans-unit id="4101442988100757762" datatype="html">
<source>never</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">43</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">18</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">79</context>
</context-group>
<target>aden</target>
</trans-unit>
<trans-unit id="7897565236366850950" datatype="html">
<source>low</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">44</context>
</context-group>
<target>niskie</target>
</trans-unit>
<trans-unit id="2602838849414645735" datatype="html">
<source>high</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">45</context>
</context-group>
<target>wysokie</target>
</trans-unit>
<trans-unit id="4688460977394283086" datatype="html">
<source>medium</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">46</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">61</context>
</context-group>
<target>rednie</target>
</trans-unit>
<trans-unit id="3938396793871184620" datatype="html">
<source>date</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">49</context>
</context-group>
<target>date</target>
</trans-unit>
<trans-unit id="3325180562659478330" datatype="html">
<source>name</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">50</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">108</context>
</context-group>
<target>name</target>
</trans-unit>
<trans-unit id="8415080222848862490" datatype="html">
<source>rating</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">51</context>
</context-group>
<target>rating</target>
</trans-unit>
<trans-unit id="8893285757291009420" datatype="html">
<source>random</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">52</context>
</context-group>
<target>losowo</target>
</trans-unit>
<trans-unit id="8056126739851189826" datatype="html">
<source>faces</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">53</context>
</context-group>
<target>faces</target>
</trans-unit>
<trans-unit id="2999337676190296805" datatype="html">
<source>file size</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">54</context>
</context-group>
<target>file size</target>
</trans-unit>
<trans-unit id="2838693330548032903" datatype="html">
<source>don't group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">56</context>
</context-group>
<target>don't group</target>
</trans-unit>
<trans-unit id="4044854304763114941" datatype="html">
<source>extra small</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">59</context>
</context-group>
<target>extra small</target>
</trans-unit>
<trans-unit id="704865667518683453" datatype="html">
<source>small</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">60</context>
</context-group>
<target>small</target>
</trans-unit>
<trans-unit id="2765721507544664929" datatype="html">
<source>big</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">62</context>
</context-group>
<target>big</target>
</trans-unit>
<trans-unit id="782745584760781543" datatype="html">
<source>extra large</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">63</context>
</context-group>
<target>extra large</target>
</trans-unit>
<trans-unit id="5043933900720743682" datatype="html">
<source>Albums</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">68</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/albums.component.ts</context>
<context context-type="linenumber">34</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">17</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">118</context>
</context-group>
<target>Albums</target>
</trans-unit>
<trans-unit id="188313477943387511" datatype="html">
<source>And</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">72</context>
</context-group>
<target>And</target>
</trans-unit>
<trans-unit id="5504129468136884250" datatype="html">
<source>Or</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">73</context>
</context-group>
<target>Or</target>
</trans-unit>
<trans-unit id="3114268147592827952" datatype="html">
<source>Some of</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">74</context>
</context-group>
<target>Some of</target>
</trans-unit>
<trans-unit id="7166568209965309766" datatype="html">
<source>Any text</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">75</context>
</context-group>
<target>Any text</target>
</trans-unit>
<trans-unit id="5203279511751768967" datatype="html">
<source>From</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">76</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">117</context>
</context-group>
<target>Od</target>
</trans-unit>
<trans-unit id="706270083777559326" datatype="html">
<source>Until</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">77</context>
</context-group>
<target>Until</target>
</trans-unit>
<trans-unit id="1779552786277618671" datatype="html">
<source>Distance</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">78</context>
</context-group>
<target>Distance</target>
</trans-unit>
<trans-unit id="157463387541377837" datatype="html">
<source>Min rating</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">79</context>
</context-group>
<target>Min rating</target>
</trans-unit>
<trans-unit id="8686048867619829717" datatype="html">
<source>Max rating</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">80</context>
</context-group>
<target>Max rating</target>
</trans-unit>
<trans-unit id="4492817943545541734" datatype="html">
<source>Min faces</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">81</context>
</context-group>
<target>Min faces</target>
</trans-unit>
<trans-unit id="142295387545931274" datatype="html">
<source>Max faces</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">82</context>
</context-group>
<target>Max faces</target>
</trans-unit>
<trans-unit id="2618179203175887603" datatype="html">
<source>Min resolution</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">83</context>
</context-group>
<target>Min resolution</target>
</trans-unit>
<trans-unit id="8281989101801179201" datatype="html">
<source>Max resolution</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">84</context>
</context-group>
<target>Max resolution</target>
</trans-unit>
<trans-unit id="5256256049865563765" datatype="html">
<source>Directory</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">85</context>
</context-group>
<target>Directory</target>
</trans-unit>
<trans-unit id="2300247576851644080" datatype="html">
<source>File name</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">86</context>
</context-group>
<target>File name</target>
</trans-unit>
<trans-unit id="6838559377527923778" datatype="html">
<source>Caption</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">87</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">59</context>
</context-group>
<target>Caption</target>
</trans-unit>
<trans-unit id="642093017171576305" datatype="html">
<source>Orientation</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">88</context>
</context-group>
<target>Orientation</target>
</trans-unit>
<trans-unit id="3177862278657494562" datatype="html">
<source>Date pattern</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">89</context>
</context-group>
<target>Date pattern</target>
</trans-unit>
<trans-unit id="1172866303261737245" datatype="html">
<source>Position</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">90</context>
</context-group>
<target>Position</target>
</trans-unit>
<trans-unit id="4259420107141838090" datatype="html">
<source>Person</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">91</context>
</context-group>
<target>Person</target>
</trans-unit>
<trans-unit id="5206272431542421762" datatype="html">
<source>Keyword</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/EnumTranslations.ts</context>
<context context-type="linenumber">92</context>
</context-group>
<target>Keyword</target>
</trans-unit>
<trans-unit id="3443810994372262728" datatype="html">
<source>Server notifications</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/admin/admin.component.html</context>
<context context-type="linenumber">5</context>
</context-group>
<target>Powiadomienia serwera</target>
</trans-unit>
<trans-unit id="881767691558053357" datatype="html">
<source> To dismiss these notifications, restart the server. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/admin/admin.component.html</context>
<context context-type="linenumber">23,24</context>
</context-group>
<target>Zrestartuj serwer, eby zamkn te powiadomienia</target>
</trans-unit>
<trans-unit id="1768748035579543849" datatype="html">
<source>App version:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/admin/admin.component.html</context>
<context context-type="linenumber">35</context>
</context-group>
<target>Wersja aplikacji:</target>
</trans-unit>
<trans-unit id="3931464303130647899" datatype="html">
<source>Mode:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/admin/admin.component.html</context>
<context context-type="linenumber">39</context>
</context-group>
<target>Mode:</target>
</trans-unit>
<trans-unit id="271318073764837543" datatype="html">
<source> Menu</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/admin/admin.component.html</context>
<context context-type="linenumber">86</context>
</context-group>
<note priority="1" from="description">title of left card in settings page that contains settings contents</note>
<target>Menu</target>
</trans-unit>
<trans-unit id="5052755121871408908" datatype="html">
<source>Up time</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/admin/admin.component.html</context>
<context context-type="linenumber">129</context>
</context-group>
<target>Czas dziaania serwisu</target>
</trans-unit>
<trans-unit id="714730744313654167" datatype="html">
<source>Application version</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/admin/admin.component.html</context>
<context context-type="linenumber">138</context>
</context-group>
<target>Wersja aplikacji</target>
</trans-unit>
<trans-unit id="4138612661014637777" datatype="html">
<source>Built at</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/admin/admin.component.html</context>
<context context-type="linenumber">141</context>
</context-group>
<target>Zbudowana</target>
</trans-unit>
<trans-unit id="7076930552474914340" datatype="html">
<source>Git commit</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/admin/admin.component.html</context>
<context context-type="linenumber">145</context>
</context-group>
<target>Git commit</target>
</trans-unit>
<trans-unit id="7022070615528435141" datatype="html">
<source>Delete</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/album/album.component.html</context>
<context context-type="linenumber">24</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">39</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">303</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">157</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/sharings-list/sharings-list.component.html</context>
<context context-type="linenumber">29</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">92</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">282</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">314</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">376</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">454</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">519</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">560</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">603</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.html</context>
<context context-type="linenumber">38</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">27</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">282</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">328</context>
</context-group>
<target>Delete</target>
</trans-unit>
<trans-unit id="3017479276216613525" datatype="html">
<source>Album is locked, cannot be deleted from the webpage.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/album/album.component.html</context>
<context context-type="linenumber">29</context>
</context-group>
<target>Album is locked, cannot be deleted from the webpage.</target>
</trans-unit>
<trans-unit id="7786160088790041328" datatype="html">
<source>Add saved search</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/albums.component.html</context>
<context context-type="linenumber">15</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/albums.component.html</context>
<context context-type="linenumber">34</context>
</context-group>
<target>Add saved search</target>
</trans-unit>
<trans-unit id="3231059240281443547" datatype="html">
<source>No albums to show.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/albums.component.html</context>
<context context-type="linenumber">23</context>
</context-group>
<target>No albums to show.</target>
</trans-unit>
<trans-unit id="3768927257183755959" datatype="html">
<source>Save</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/albums.component.html</context>
<context context-type="linenumber">70</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/search.gallery.component.html</context>
<context context-type="linenumber">51</context>
</context-group>
<target>Zapisz</target>
</trans-unit>
<trans-unit id="4531897455936063912" datatype="html">
<source>To .pg2conf</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/saved-search-popup/saved-search-popup.component.html</context>
<context context-type="linenumber">4</context>
</context-group>
<target>To .pg2conf</target>
</trans-unit>
<trans-unit id="6733799876332344576" datatype="html">
<source>Saved Search to .saved_searches.pg2conf</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/saved-search-popup/saved-search-popup.component.html</context>
<context context-type="linenumber">11</context>
</context-group>
<target>Saved Search to .saved_searches.pg2conf</target>
</trans-unit>
<trans-unit id="2861315058248271208" datatype="html">
<source>Add this json to a '.saved_searches.pg2conf' file in your gallery:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/saved-search-popup/saved-search-popup.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
<target>Add this json to a '.saved_searches.pg2conf' file in your gallery:</target>
</trans-unit>
<trans-unit id="1692479277642537323" datatype="html">
<source>This saved search will be loaded from file during gallery indexing and it will survive a database reset.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/albums/saved-search-popup/saved-search-popup.component.html</context>
<context context-type="linenumber">18</context>
</context-group>
<target>This saved search will be loaded from file during gallery indexing and it will survive a database reset.</target>
</trans-unit>
<trans-unit id="2904029998096758375" datatype="html">
<source> No duplicates found </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/duplicates/duplicates.component.html</context>
<context context-type="linenumber">8,10</context>
</context-group>
<target>Nie ma duplikatw zdj</target>
</trans-unit>
<trans-unit id="1262530507063329624" datatype="html">
<source>No faces to show.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/faces/faces.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
<target>Nie ma tagw rozpoznawania twarzy.</target>
</trans-unit>
<trans-unit id="413116577994876478" datatype="html">
<source>Light</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">97</context>
</context-group>
<target>Light</target>
</trans-unit>
<trans-unit id="3892161059518616136" datatype="html">
<source>Dark</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">101</context>
</context-group>
<target>Dark</target>
</trans-unit>
<trans-unit id="616064537937996961" datatype="html">
<source>Auto</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">106</context>
</context-group>
<target>Auto</target>
</trans-unit>
<trans-unit id="1684734235599362204" datatype="html">
<source>Tools</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">156</context>
</context-group>
<target>Tools</target>
</trans-unit>
<trans-unit id="7990544842257386570" datatype="html">
<source>key: c</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">169</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">66</context>
</context-group>
<target>key: c</target>
</trans-unit>
<trans-unit id="2897959497810772660" datatype="html">
<source>Fix navbar</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">169</context>
</context-group>
<target>Fix navbar</target>
</trans-unit>
<trans-unit id="4930506384627295710" datatype="html">
<source>Settings</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">187</context>
</context-group>
<target>Ustawienia</target>
</trans-unit>
<trans-unit id="3797778920049399855" datatype="html">
<source>Logout</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/frame/frame.component.html</context>
<context context-type="linenumber">193</context>
</context-group>
<target>Wyloguj si</target>
</trans-unit>
<trans-unit id="665354434676729572" datatype="html">
<source>Cannot find location</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/contentLoader.service.ts</context>
<context context-type="linenumber">119</context>
</context-group>
<target>Cannot find location</target>
</trans-unit>
<trans-unit id="7436975022198908854" datatype="html">
<source>Unknown server error</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/contentLoader.service.ts</context>
<context context-type="linenumber">121</context>
</context-group>
<target>Unknown server error</target>
</trans-unit>
<trans-unit id="1146494050504614738" datatype="html">
<source>Select only this</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.gallery.component.html</context>
<context context-type="linenumber">109</context>
</context-group>
<target>Select only this</target>
</trans-unit>
<trans-unit id="1046995673577274517" datatype="html">
<source>Nothing to filter</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.gallery.component.html</context>
<context context-type="linenumber">120</context>
</context-group>
<target>Nothing to filter</target>
</trans-unit>
<trans-unit id="7808756054397155068" datatype="html">
<source>Reset</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.gallery.component.html</context>
<context context-type="linenumber">126</context>
</context-group>
<target>Zresetuj</target>
</trans-unit>
<trans-unit id="4097761430561209267" datatype="html">
<source>unknown</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.gallery.component.ts</context>
<context context-type="linenumber">20</context>
</context-group>
<target>unknown</target>
</trans-unit>
<trans-unit id="1604795977599078115" datatype="html">
<source>Keywords</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">34</context>
</context-group>
<target>Keywords</target>
</trans-unit>
<trans-unit id="2519596434061402334" datatype="html">
<source>no face</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">44</context>
</context-group>
<target>no face</target>
</trans-unit>
<trans-unit id="6424207774190031517" datatype="html">
<source>Faces groups</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">49</context>
</context-group>
<target>Faces groups</target>
</trans-unit>
<trans-unit id="3706222784708785028" datatype="html">
<source>Rating</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">64</context>
</context-group>
<target>Rating</target>
</trans-unit>
<trans-unit id="5087678602655068553" datatype="html">
<source>Camera</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">69</context>
</context-group>
<target>Camera</target>
</trans-unit>
<trans-unit id="6950975828565350688" datatype="html">
<source>Lens</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">74</context>
</context-group>
<target>Lens</target>
</trans-unit>
<trans-unit id="2314075913167237221" datatype="html">
<source>City</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">79</context>
</context-group>
<target>City</target>
</trans-unit>
<trans-unit id="5911214550882917183" datatype="html">
<source>State</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">84</context>
</context-group>
<target>State</target>
</trans-unit>
<trans-unit id="516176798986294299" datatype="html">
<source>Country</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/filter/filter.service.ts</context>
<context context-type="linenumber">89</context>
</context-group>
<target>Country</target>
</trans-unit>
<trans-unit id="2817799343282769458" datatype="html">
<source>Link availability</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/gallery.component.html</context>
<context context-type="linenumber">7</context>
</context-group>
<target>Dostpno linku</target>
</trans-unit>
<trans-unit id="7036284206110282007" datatype="html">
<source>days</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/gallery.component.html</context>
<context context-type="linenumber">9</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">264</context>
</context-group>
<target>dni</target>
</trans-unit>
<trans-unit id="1018831956200649278" datatype="html">
<source> Too many results to show. Refine your search. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/gallery.component.html</context>
<context context-type="linenumber">35,36</context>
</context-group>
<target>Zbyt wiele wynikw wyszukiwania. Sprbuj zawzi kryteria.</target>
</trans-unit>
<trans-unit id="5920553521143471222" datatype="html">
<source>info key: i</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">10</context>
</context-group>
<target>klawisz informacji: i</target>
</trans-unit>
<trans-unit id="4199727168861044300" datatype="html">
<source>toggle fullscreen, key: f</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">17</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">25</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.html</context>
<context context-type="linenumber">26</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.html</context>
<context context-type="linenumber">33</context>
</context-group>
<target>przecz na peny ekran, klawisz: f</target>
</trans-unit>
<trans-unit id="3099741642167775297" datatype="html">
<source>Download</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">45</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">46</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">54</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">32</context>
</context-group>
<target>Download</target>
</trans-unit>
<trans-unit id="6639312389704540885" datatype="html">
<source>Slideshow playback speed</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">55</context>
</context-group>
<target>Slideshow playback speed</target>
</trans-unit>
<trans-unit id="6561811782994945096" datatype="html">
<source>Slideshow speed:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">55</context>
</context-group>
<target>Slideshow speed:</target>
</trans-unit>
<trans-unit id="3118381885529786097" datatype="html">
<source>key: a</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">79</context>
</context-group>
<target>key: a</target>
</trans-unit>
<trans-unit id="3853005186637856594" datatype="html">
<source>key: l</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">94</context>
</context-group>
<target>key: l</target>
</trans-unit>
<trans-unit id="1289596067609871549" datatype="html">
<source>Loop videos</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">94</context>
</context-group>
<target>Loop videos</target>
</trans-unit>
<trans-unit id="6587606691006859224" datatype="html">
<source>close, key: Escape</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">111</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.html</context>
<context context-type="linenumber">37</context>
</context-group>
<target>zamknij, klawisz: Escape</target>
</trans-unit>
<trans-unit id="4866232808329812257" datatype="html">
<source>key: left arrow</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">169</context>
</context-group>
<target>klawisz: strzaka w lewo</target>
</trans-unit>
<trans-unit id="5015670487371268284" datatype="html">
<source>key: right arrow</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">174</context>
</context-group>
<target>klawisz: strzaka w prawo</target>
</trans-unit>
<trans-unit id="2952982394711430494" datatype="html">
<source>Zoom out, key: '-'</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">186</context>
</context-group>
<target>Pomniejsz, klawisz: '-'</target>
</trans-unit>
<trans-unit id="5841975167410475386" datatype="html">
<source>Zoom in, key: '+'</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">193</context>
</context-group>
<target>Powiksz, klawisz: '+'</target>
</trans-unit>
<trans-unit id="9042260521669277115" datatype="html">
<source>Pause</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">206</context>
</context-group>
<target>Pause</target>
</trans-unit>
<trans-unit id="8597427582603336662" datatype="html">
<source>Auto play</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html</context>
<context context-type="linenumber">213</context>
</context-group>
<target>Auto play</target>
</trans-unit>
<trans-unit id="314315645942131479" datatype="html">
<source>Info</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html</context>
<context context-type="linenumber">3</context>
</context-group>
<target>Informacje</target>
</trans-unit>
<trans-unit id="5602245631444655788" datatype="html">
<source>duration</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html</context>
<context context-type="linenumber">61</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">46</context>
</context-group>
<target>czas trwania</target>
</trans-unit>
<trans-unit id="593870536587305607" datatype="html">
<source>bit rate</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html</context>
<context context-type="linenumber">67</context>
</context-group>
<target>przepywno</target>
</trans-unit>
<trans-unit id="2821179408673282599" datatype="html">
<source>Home</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts</context>
<context context-type="linenumber">70</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.ts</context>
<context context-type="linenumber">64</context>
</context-group>
<target>Home</target>
</trans-unit>
<trans-unit id="5294987439623514854" datatype="html">
<source>Error during loading the video.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.html</context>
<context context-type="linenumber">21</context>
</context-group>
<target>Bd podczas adowania wideo.</target>
</trans-unit>
<trans-unit id="7778584211809714680" datatype="html">
<source> Most likely the video is not transcoded. It can be done in the settings. You need to transcode these videos to watch them online: </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.html</context>
<context context-type="linenumber">23,27</context>
</context-group>
<target>Wideo prawdopodobnie nie jest transkodowane. Mona to zrobi w ustawieniach. Wideo musi by transkodowane, by mc je oglda:</target>
</trans-unit>
<trans-unit id="3681011128402308176" datatype="html">
<source>Sport</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.ts</context>
<context context-type="linenumber">176</context>
</context-group>
<target>Sport</target>
</trans-unit>
<trans-unit id="1415537753700024352" datatype="html">
<source>Transportation</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.ts</context>
<context context-type="linenumber">179</context>
</context-group>
<target>Transportation</target>
</trans-unit>
<trans-unit id="7953475258022164347" datatype="html">
<source>Other paths</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.ts</context>
<context context-type="linenumber">182</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.ts</context>
<context context-type="linenumber">205</context>
</context-group>
<target>Other paths</target>
</trans-unit>
<trans-unit id="8314090883669143391" datatype="html">
<source>Latitude</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.ts</context>
<context context-type="linenumber">675</context>
</context-group>
<target>Latitude</target>
</trans-unit>
<trans-unit id="2703718513716530782" datatype="html">
<source>longitude</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.ts</context>
<context context-type="linenumber">675</context>
</context-group>
<target>longitude</target>
</trans-unit>
<trans-unit id="6560708001470959956" datatype="html">
<source>street</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/map.service.ts</context>
<context context-type="linenumber">23</context>
</context-group>
<target>street</target>
</trans-unit>
<trans-unit id="5616490555226013552" datatype="html">
<source>satellite</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/map.service.ts</context>
<context context-type="linenumber">30</context>
</context-group>
<target>satellite</target>
</trans-unit>
<trans-unit id="3574756324609227822" datatype="html">
<source>hybrid</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/map.service.ts</context>
<context context-type="linenumber">37</context>
</context-group>
<target>hybrid</target>
</trans-unit>
<trans-unit id="8262108640078645269" datatype="html">
<source>dark</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/map/map.service.ts</context>
<context context-type="linenumber">44</context>
</context-group>
<target>dark</target>
</trans-unit>
<trans-unit id="7909798112576642157" datatype="html">
<source>Searching for:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">15</context>
</context-group>
<target>Szukanie:</target>
</trans-unit>
<trans-unit id="413346167952108153" datatype="html">
<source>items</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">24</context>
</context-group>
<target>elementw</target>
</trans-unit>
<trans-unit id="5686806460713319354" datatype="html">
<source>Show all subdirectories</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">42</context>
</context-group>
<target>Show all subdirectories</target>
</trans-unit>
<trans-unit id="4163272119298020373" datatype="html">
<source>Filters</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">52</context>
</context-group>
<target>Filters</target>
</trans-unit>
<trans-unit id="4124492018839258838" datatype="html">
<source>Sort and group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">58</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/sorting-method/sorting-method.settings-entry.component.html</context>
<context context-type="linenumber">3</context>
</context-group>
<target>Sort and group</target>
</trans-unit>
<trans-unit id="2317496634288800773" datatype="html">
<source> group </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">75,76</context>
</context-group>
<target>group</target>
</trans-unit>
<trans-unit id="2774613742044941352" datatype="html">
<source>Sorting</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">83</context>
</context-group>
<target>Sorting</target>
</trans-unit>
<trans-unit id="7266946560591201477" datatype="html">
<source>Grouping follows sorting</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">88</context>
</context-group>
<target>Grouping follows sorting</target>
</trans-unit>
<trans-unit id="8007904845243402148" datatype="html">
<source>ascending</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">113</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">148</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/sorting-method/sorting-method.settings-entry.component.html</context>
<context context-type="linenumber">32</context>
</context-group>
<target>ascending</target>
</trans-unit>
<trans-unit id="8583825692753174768" datatype="html">
<source>descending</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">122</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">156</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/sorting-method/sorting-method.settings-entry.component.html</context>
<context context-type="linenumber">41</context>
</context-group>
<target>descending</target>
</trans-unit>
<trans-unit id="877780134171662191" datatype="html">
<source>Grouping</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">128</context>
</context-group>
<target>Grouping</target>
</trans-unit>
<trans-unit id="53284904959011055" datatype="html">
<source>Grid size</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">166</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.html</context>
<context context-type="linenumber">176</context>
</context-group>
<target>Grid size</target>
</trans-unit>
<trans-unit id="7241451058585494578" datatype="html">
<source>key: alt + up</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/navigator/navigator.gallery.component.ts</context>
<context context-type="linenumber">123</context>
</context-group>
<target>key: alt + up</target>
</trans-unit>
<trans-unit id="3445823735428564189" datatype="html">
<source>Random link</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/random-query-builder/random-query-builder.gallery.component.html</context>
<context context-type="linenumber">3</context>
</context-group>
<target>Link to przypadkowego zdcia</target>
</trans-unit>
<trans-unit id="6692759234829188012" datatype="html">
<source>Random Link creator</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/random-query-builder/random-query-builder.gallery.component.html</context>
<context context-type="linenumber">10</context>
</context-group>
<target>Stwrz przypadkowy link</target>
</trans-unit>
<trans-unit id="5351591262168826856" datatype="html">
<source>Copy </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/random-query-builder/random-query-builder.gallery.component.html</context>
<context context-type="linenumber">28,29</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">50</context>
</context-group>
<target>Kopiuj</target>
</trans-unit>
<trans-unit id="8681331350836567926" datatype="html">
<source>Url has been copied to clipboard</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/random-query-builder/random-query-builder.gallery.component.ts</context>
<context context-type="linenumber">100</context>
</context-group>
<target>Adres zosta skopiowany do schowka</target>
</trans-unit>
<trans-unit id="8291852809381837252" datatype="html">
<source>At least this many</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">22</context>
</context-group>
<target>Co najmniej</target>
</trans-unit>
<trans-unit id="3249513483374643425" datatype="html">
<source>Add</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">54</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">55</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">530</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">573</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">616</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">292</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">341</context>
</context-group>
<target>Add</target>
</trans-unit>
<trans-unit id="7051066787135970070" datatype="html">
<source>Negate</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">75</context>
</context-group>
<target>Negate</target>
</trans-unit>
<trans-unit id="3548274206254483489" datatype="html">
<source>Search text</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">88</context>
</context-group>
<target>Search text</target>
</trans-unit>
<trans-unit id="5027564160787173789" datatype="html">
<source>From date</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">132</context>
</context-group>
<target>Od daty</target>
</trans-unit>
<trans-unit id="1701167908768267527" datatype="html">
<source>To date</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">144</context>
</context-group>
<target>Do daty</target>
</trans-unit>
<trans-unit id="7832159846251736760" datatype="html">
<source>Minimum Rating</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">155</context>
</context-group>
<target>Minimalna ocena</target>
</trans-unit>
<trans-unit id="3363276748319081476" datatype="html">
<source>Maximum Rating</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">168</context>
</context-group>
<target>Maksymalna ocena</target>
</trans-unit>
<trans-unit id="7157228609458530930" datatype="html">
<source>Minimum Person count</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">181</context>
</context-group>
<target>Minimum Person count</target>
</trans-unit>
<trans-unit id="5965220081582142268" datatype="html">
<source>Maximum Person count</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">194</context>
</context-group>
<target>Maximum Person count</target>
</trans-unit>
<trans-unit id="1362128514258619168" datatype="html">
<source>Minimum Resolution</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">208</context>
</context-group>
<target>Minimum Resolution</target>
</trans-unit>
<trans-unit id="6524138748702944953" datatype="html">
<source>Maximum Resolution</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">224</context>
</context-group>
<target>Maximum Resolution</target>
</trans-unit>
<trans-unit id="1403507799985368460" datatype="html">
<source>Landscape</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">244</context>
</context-group>
<target>Tryb krajobraz</target>
</trans-unit>
<trans-unit id="9024440163320108713" datatype="html">
<source>Portrait</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">245</context>
</context-group>
<target>Tryb portret</target>
</trans-unit>
<trans-unit id="4882268002141858767" datatype="html">
<source>Last</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">253</context>
</context-group>
<target>Last</target>
</trans-unit>
<trans-unit id="2317694455251704278" datatype="html">
<source>Last N Days</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">256</context>
</context-group>
<target>Last N Days</target>
</trans-unit>
<trans-unit id="1841001414805444530" datatype="html">
<source>Ago</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">272</context>
</context-group>
<target>Ago</target>
</trans-unit>
<trans-unit id="7267191671332895261" datatype="html">
<source>Day(s) ago</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">287</context>
</context-group>
<target>Day(s) ago</target>
</trans-unit>
<trans-unit id="6246978557266811210" datatype="html">
<source>Week(s) ago</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">288</context>
</context-group>
<target>Week(s) ago</target>
</trans-unit>
<trans-unit id="5214793274172992989" datatype="html">
<source>Month(s) ago</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">289</context>
</context-group>
<target>Month(s) ago</target>
</trans-unit>
<trans-unit id="8760070733234838765" datatype="html">
<source>Year(s) ago</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">290</context>
</context-group>
<target>Year(s) ago</target>
</trans-unit>
<trans-unit id="548935897521348324" datatype="html">
<source>Every week</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">291</context>
</context-group>
<target>Every week</target>
</trans-unit>
<trans-unit id="123874585581109714" datatype="html">
<source>Every Month</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">292</context>
</context-group>
<target>Every Month</target>
</trans-unit>
<trans-unit id="1723692577259921020" datatype="html">
<source>Every year</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html</context>
<context context-type="linenumber">293</context>
</context-group>
<target>Every year</target>
</trans-unit>
<trans-unit id="3200342440195656274" datatype="html">
<source>Insert</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.html</context>
<context context-type="linenumber">51,50</context>
</context-group>
<target>Insert</target>
</trans-unit>
<trans-unit id="5466947574428856253" datatype="html">
<source>Save search to album</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/search.gallery.component.html</context>
<context context-type="linenumber">67</context>
</context-group>
<target>Save search to album</target>
</trans-unit>
<trans-unit id="8002146750272130034" datatype="html">
<source>Album name</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/search.gallery.component.html</context>
<context context-type="linenumber">76</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/search.gallery.component.html</context>
<context context-type="linenumber">80</context>
</context-group>
<target>Album name</target>
</trans-unit>
<trans-unit id="4606777540690493351" datatype="html">
<source>Save as album</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/search/search.gallery.component.html</context>
<context context-type="linenumber">98</context>
</context-group>
<target>Save as album</target>
</trans-unit>
<trans-unit id="7419704019640008953" datatype="html">
<source>Share</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">6</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">11</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">17</context>
</context-group>
<target>Udostpnij</target>
</trans-unit>
<trans-unit id="4197988031879614135" datatype="html">
<source>Share </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">41</context>
</context-group>
<target>Udostpnij</target>
</trans-unit>
<trans-unit id="7682626963030103121" datatype="html">
<source>Sharing:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">56</context>
</context-group>
<target>Udostpniony katalog:</target>
</trans-unit>
<trans-unit id="106602772352937359" datatype="html">
<source>Include subfolders:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">69</context>
</context-group>
<target>Wcz podkatalogi:</target>
</trans-unit>
<trans-unit id="3621339913652620986" datatype="html">
<source>Valid:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">107</context>
</context-group>
<target>Wano:</target>
</trans-unit>
<trans-unit id="5531237363767747080" datatype="html">
<source>Minutes</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">120</context>
</context-group>
<target>Minut</target>
</trans-unit>
<trans-unit id="8070396816726827304" datatype="html">
<source>Hours</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">121</context>
</context-group>
<target>Godzin</target>
</trans-unit>
<trans-unit id="840951359074313455" datatype="html">
<source>Days</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">122</context>
</context-group>
<target>Dni</target>
</trans-unit>
<trans-unit id="4845030128243887325" datatype="html">
<source>Months</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">123</context>
</context-group>
<target>Miesicy</target>
</trans-unit>
<trans-unit id="233324084168950985" datatype="html">
<source>Forever</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">124</context>
</context-group>
<target>Nieograniczona</target>
</trans-unit>
<trans-unit id="6336910053127073373" datatype="html">
<source>active share(s) for this folder. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">135,136</context>
</context-group>
<target>active share(s) for this folder.</target>
</trans-unit>
<trans-unit id="1043390381565182083" datatype="html">
<source>Creator</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">143</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/sharings-list/sharings-list.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
<target>Creator</target>
</trans-unit>
<trans-unit id="8037476586059399916" datatype="html">
<source>Expires</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.html</context>
<context context-type="linenumber">144</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/sharings-list/sharings-list.component.html</context>
<context context-type="linenumber">17</context>
</context-group>
<target>Expires</target>
</trans-unit>
<trans-unit id="1625809888219597132" datatype="html">
<source>Invalid settings</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.ts</context>
<context context-type="linenumber">43</context>
</context-group>
<target>Invalid settings</target>
</trans-unit>
<trans-unit id="2807800733729323332" datatype="html">
<source>Yes</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.ts</context>
<context context-type="linenumber">60</context>
</context-group>
<target>Tak</target>
</trans-unit>
<trans-unit id="3542042671420335679" datatype="html">
<source>No</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.ts</context>
<context context-type="linenumber">61</context>
</context-group>
<target>Nie</target>
</trans-unit>
<trans-unit id="765974048716015903" datatype="html">
<source>loading..</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.ts</context>
<context context-type="linenumber">127</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.ts</context>
<context context-type="linenumber">142</context>
</context-group>
<target>adowanie..</target>
</trans-unit>
<trans-unit id="4229383470843970064" datatype="html">
<source>Click share to get a link.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.ts</context>
<context context-type="linenumber">154</context>
</context-group>
<target>Click share to get a link.</target>
</trans-unit>
<trans-unit id="5217966104824748038" datatype="html">
<source>Sharing link has been copied to clipboard</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/gallery/share/share.gallery.component.ts</context>
<context context-type="linenumber">165</context>
</context-group>
<target>Sharing link has been copied to clipboard</target>
</trans-unit>
<trans-unit id="1692815930495952260" datatype="html">
<source>Please log in</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/login/login.component.html</context>
<context context-type="linenumber">12</context>
</context-group>
<target>Zaloguj si</target>
</trans-unit>
<trans-unit id="1023046241952262024" datatype="html">
<source> Wrong username or password </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/login/login.component.html</context>
<context context-type="linenumber">15,16</context>
</context-group>
<target>Niewaciwa nazwa uytkownika lub haso</target>
</trans-unit>
<trans-unit id="931252989873527145" datatype="html">
<source>Remember me</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/login/login.component.html</context>
<context context-type="linenumber">49</context>
</context-group>
<target>Zapamitaj mnie</target>
</trans-unit>
<trans-unit id="5173115640670709698" datatype="html">
<source>Login </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/login/login.component.html</context>
<context context-type="linenumber">58</context>
</context-group>
<target>Logowanie</target>
</trans-unit>
<trans-unit id="3466167636009088678" datatype="html">
<source> Statistic: </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.html</context>
<context context-type="linenumber">2,4</context>
</context-group>
<target>Statystyki:</target>
</trans-unit>
<trans-unit id="1205037876874222931" datatype="html">
<source>Folders</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.html</context>
<context context-type="linenumber">6</context>
</context-group>
<target>Katalogi</target>
</trans-unit>
<trans-unit id="8405309693308875139" datatype="html">
<source>Photos</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.html</context>
<context context-type="linenumber">10</context>
</context-group>
<target>Zdjcia</target>
</trans-unit>
<trans-unit id="8936704404804793618" datatype="html">
<source>Videos</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.html</context>
<context context-type="linenumber">14</context>
</context-group>
<target>Wideo</target>
</trans-unit>
<trans-unit id="258586247001688466" datatype="html">
<source>Persons</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.html</context>
<context context-type="linenumber">19</context>
</context-group>
<target>Osoby</target>
</trans-unit>
<trans-unit id="45739481977493163" datatype="html">
<source>Size</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.html</context>
<context context-type="linenumber">23</context>
</context-group>
<target>Rozmiar</target>
</trans-unit>
<trans-unit id="6211757133507101662" datatype="html">
<source>Job failed</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/scheduled-jobs.service.ts</context>
<context context-type="linenumber">129</context>
</context-group>
<target>Job failed</target>
</trans-unit>
<trans-unit id="7393380261620707212" datatype="html">
<source>Job finished</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/scheduled-jobs.service.ts</context>
<context context-type="linenumber">135</context>
</context-group>
<target>Zadanie zakoczone</target>
</trans-unit>
<trans-unit id="2608815712321922387" datatype="html">
<source>Active shares</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/sharings-list/sharings-list.component.html</context>
<context context-type="linenumber">4</context>
</context-group>
<target>Active shares</target>
</trans-unit>
<trans-unit id="2176659033176029418" datatype="html">
<source>Key</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/sharings-list/sharings-list.component.html</context>
<context context-type="linenumber">14</context>
</context-group>
<target>Key</target>
</trans-unit>
<trans-unit id="7046259383943324039" datatype="html">
<source>Folder</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/sharings-list/sharings-list.component.html</context>
<context context-type="linenumber">15</context>
</context-group>
<target>Folder</target>
</trans-unit>
<trans-unit id="4938468904180779002" datatype="html">
<source> No sharing was created. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/sharings-list/sharings-list.component.html</context>
<context context-type="linenumber">39,40</context>
</context-group>
<target>No sharing was created.</target>
</trans-unit>
<trans-unit id="5253186130625984783" datatype="html">
<source> It seems that you are running the application in a Docker container. This setting should not be changed in docker. Make sure, that you know what you are doing.
</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">1,5</context>
</context-group>
<target>Wyglda na to, e aplikacja dziaa jako kontener Docker. To ustawienie nie powinno by zmieniane w Docker. Upewnij si, e wiesz, co robisz.</target>
</trans-unit>
<trans-unit id="4948407374074297419" datatype="html">
<source>Add new</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">87</context>
</context-group>
<target>Add new</target>
</trans-unit>
<trans-unit id="5014150909482122080" datatype="html">
<source>Add new theme</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">97</context>
</context-group>
<target>Add new theme</target>
</trans-unit>
<trans-unit id="4131271480390950600" datatype="html">
<source>Theme name</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">104</context>
</context-group>
<target>Theme name</target>
</trans-unit>
<trans-unit id="8589439542246737000" datatype="html">
<source>Add new Theme</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">124</context>
</context-group>
<target>Add new Theme</target>
</trans-unit>
<trans-unit id="3074987902485823708" datatype="html">
<source>Icon</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">192</context>
</context-group>
<target>Icon</target>
</trans-unit>
<trans-unit id="7382005450112017816" datatype="html">
<source>Load from SVG file</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">212</context>
</context-group>
<target>Load from SVG file</target>
</trans-unit>
<trans-unit id="2995318609110293026" datatype="html">
<source>To auto load these values from file: pick an SVG file with a single 'path'. You can use e.g: path_to_url </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">218,220</context>
</context-group>
<target>To auto load these values from file: pick an SVG file with a single 'path'. You can use e.g: path_to_url
</trans-unit>
<trans-unit id="2448998566468414760" datatype="html">
<source>Save & Close</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">247</context>
</context-group>
<target>Save & Close</target>
</trans-unit>
<trans-unit id="3853557835274460749" datatype="html">
<source>Tile Url*</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">261</context>
</context-group>
<target>Adres (URL) tytuw*</target>
</trans-unit>
<trans-unit id="2119806575622481064" datatype="html">
<source>Add Layer</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">292</context>
</context-group>
<target>Add Layer</target>
</trans-unit>
<trans-unit id="7045831295346420833" datatype="html">
<source>Add matcher</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">353</context>
</context-group>
<target>Add matcher</target>
</trans-unit>
<trans-unit id="8941069064218228603" datatype="html">
<source>Add path theme group</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">399</context>
</context-group>
<target>Add path theme group</target>
</trans-unit>
<trans-unit id="3138682220834083018" datatype="html">
<source>Add Link</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">464</context>
</context-group>
<target>Add Link</target>
</trans-unit>
<trans-unit id="6160336790605687552" datatype="html">
<source>Experimental</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">636</context>
</context-group>
<target>Experimental</target>
</trans-unit>
<trans-unit id="9041159334935490874" datatype="html">
<source>';' separated list.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">639</context>
</context-group>
<target>';' separated list.</target>
</trans-unit>
<trans-unit id="6594334664356245979" datatype="html">
<source>See</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">642</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/template.component.html</context>
<context context-type="linenumber">78</context>
</context-group>
<target>See</target>
</trans-unit>
<trans-unit id="174687433494549208" datatype="html">
<source>Reset database after changing this settings!</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">647</context>
</context-group>
<target>Reset database after changing this settings!</target>
</trans-unit>
<trans-unit id="568052795765814866" datatype="html">
<source>Restart server after changing this settings!</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html</context>
<context context-type="linenumber">652</context>
</context-group>
<target>Restart server after changing this settings!</target>
</trans-unit>
<trans-unit id="6855462350544488601" datatype="html">
<source>default</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.ts</context>
<context context-type="linenumber">195</context>
</context-group>
<target>default</target>
</trans-unit>
<trans-unit id="3279583516959443817" datatype="html">
<source>readonly</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.ts</context>
<context context-type="linenumber">270</context>
</context-group>
<target>tylko do odczytu</target>
</trans-unit>
<trans-unit id="2331083694651605942" datatype="html">
<source>default value</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.ts</context>
<context context-type="linenumber">272</context>
</context-group>
<target>warto domylna</target>
</trans-unit>
<trans-unit id="3574891459850265938" datatype="html">
<source>config is not supported with these settings.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/template.component.html</context>
<context context-type="linenumber">34</context>
</context-group>
<target>config is not supported with these settings.</target>
</trans-unit>
<trans-unit id="662506850593821474" datatype="html">
<source>Save </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/template.component.html</context>
<context context-type="linenumber">46</context>
</context-group>
<target>Zapisz</target>
</trans-unit>
<trans-unit id="5562099532623028109" datatype="html">
<source>Reset </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/template.component.html</context>
<context context-type="linenumber">50</context>
</context-group>
<target>Zresetuj</target>
</trans-unit>
<trans-unit id="1353646366342026793" datatype="html">
<source>settings saved</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/template.component.ts</context>
<context context-type="linenumber">287</context>
</context-group>
<target>ustawienia zapisane</target>
</trans-unit>
<trans-unit id="4648900870671159218" datatype="html">
<source>Success</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/template/template.component.ts</context>
<context context-type="linenumber">288</context>
</context-group>
<target>Sukces</target>
</trans-unit>
<trans-unit id="199756697926372667" datatype="html">
<source>User list</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.html</context>
<context context-type="linenumber">4</context>
</context-group>
<target>User list</target>
</trans-unit>
<trans-unit id="5918723526444903137" datatype="html">
<source>Add user</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.html</context>
<context context-type="linenumber">48</context>
</context-group>
<target>Add user</target>
</trans-unit>
<trans-unit id="1996265061837601864" datatype="html">
<source>Add new User</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.html</context>
<context context-type="linenumber">58</context>
</context-group>
<target>Dodaj nowego uytkownika</target>
</trans-unit>
<trans-unit id="7819314041543176992" datatype="html">
<source>Close</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.html</context>
<context context-type="linenumber">74</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">404</context>
</context-group>
<target>Zamknij</target>
</trans-unit>
<trans-unit id="4032325907350308427" datatype="html">
<source>Add User </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.html</context>
<context context-type="linenumber">77,78</context>
</context-group>
<target>Dodaj uytkownika</target>
</trans-unit>
<trans-unit id="1821735653273245237" datatype="html">
<source>User creation error!</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/users/users.component.ts</context>
<context context-type="linenumber">81</context>
</context-group>
<target>User creation error!</target>
</trans-unit>
<trans-unit id="9128681615749206002" datatype="html">
<source>Trigger job run manually</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/button/job-button.settings.component.html</context>
<context context-type="linenumber">3</context>
</context-group>
<target>Uruchom zadanie rcznie</target>
</trans-unit>
<trans-unit id="1442537757726795809" datatype="html">
<source>Run now</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/button/job-button.settings.component.html</context>
<context context-type="linenumber">9</context>
</context-group>
<target>Uruchom teraz</target>
</trans-unit>
<trans-unit id="2159130950882492111" datatype="html">
<source>Cancel</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/button/job-button.settings.component.html</context>
<context context-type="linenumber">18</context>
</context-group>
<target>Anuluj</target>
</trans-unit>
<trans-unit id="3030272344799552884" datatype="html">
<source>Job started</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/button/job-button.settings.component.ts</context>
<context context-type="linenumber">68</context>
</context-group>
<target>Zadanie rozpoczte</target>
</trans-unit>
<trans-unit id="2836205394227530190" datatype="html">
<source>Stopping job</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/button/job-button.settings.component.ts</context>
<context context-type="linenumber">88</context>
</context-group>
<target>Zatrzymywanie zadania</target>
</trans-unit>
<trans-unit id="3615321865355398203" datatype="html">
<source> Last run: </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">2,4</context>
</context-group>
<target>Ostatnie wykonanie:</target>
</trans-unit>
<trans-unit id="8770180893388957738" datatype="html">
<source>Run between</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">5</context>
</context-group>
<target>Wykonaj pomidzy</target>
</trans-unit>
<trans-unit id="5611592591303869712" datatype="html">
<source>Status</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">14</context>
</context-group>
<target>Status</target>
</trans-unit>
<trans-unit id="509736707516044180" datatype="html">
<source>Cancelling...</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">33</context>
</context-group>
<target>Anulowanie...</target>
</trans-unit>
<trans-unit id="2284946191054601015" datatype="html">
<source>time elapsed</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">44</context>
</context-group>
<target>czas wykonania</target>
</trans-unit>
<trans-unit id="4749295647449765550" datatype="html">
<source>Processed</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">83</context>
</context-group>
<target>Przetworzone</target>
</trans-unit>
<trans-unit id="7611487429832462405" datatype="html">
<source>Skipped</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">86</context>
</context-group>
<target>Pominite</target>
</trans-unit>
<trans-unit id="5246819740476460403" datatype="html">
<source>Left</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">89</context>
</context-group>
<target>Pozostae</target>
</trans-unit>
<trans-unit id="1616102757855967475" datatype="html">
<source>All</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">92</context>
</context-group>
<target>Wszystkie</target>
</trans-unit>
<trans-unit id="344985694001196609" datatype="html">
<source> Logs </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.html</context>
<context context-type="linenumber">118,120</context>
</context-group>
<target>Logi</target>
</trans-unit>
<trans-unit id="6816983613862053954" datatype="html">
<source>processed</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.ts</context>
<context context-type="linenumber">30</context>
</context-group>
<target>przetworzone</target>
</trans-unit>
<trans-unit id="2136984849049323349" datatype="html">
<source>skipped</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.ts</context>
<context context-type="linenumber">34</context>
</context-group>
<target>pominite</target>
</trans-unit>
<trans-unit id="7126464771610287155" datatype="html">
<source>all</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.ts</context>
<context context-type="linenumber">38</context>
</context-group>
<target>wszystkie</target>
</trans-unit>
<trans-unit id="4000123028861070708" datatype="html">
<source>running</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.ts</context>
<context context-type="linenumber">101</context>
</context-group>
<target>w trakcie wykonania</target>
</trans-unit>
<trans-unit id="2919141718048459530" datatype="html">
<source>cancelling</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.ts</context>
<context context-type="linenumber">103</context>
</context-group>
<target>w trakcie anulowania</target>
</trans-unit>
<trans-unit id="5955314125015446309" datatype="html">
<source>canceled</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.ts</context>
<context context-type="linenumber">105</context>
</context-group>
<target>anulowane</target>
</trans-unit>
<trans-unit id="8013973649266860157" datatype="html">
<source>interrupted</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.ts</context>
<context context-type="linenumber">107</context>
</context-group>
<target>przerwane</target>
</trans-unit>
<trans-unit id="2059708434886905909" datatype="html">
<source>finished</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.ts</context>
<context context-type="linenumber">109</context>
</context-group>
<target>zakoczone</target>
</trans-unit>
<trans-unit id="4083337005045748464" datatype="html">
<source>failed</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.ts</context>
<context context-type="linenumber">111</context>
</context-group>
<target>failed</target>
</trans-unit>
<trans-unit id="8293670171001042991" datatype="html">
<source>every</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">13</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">130</context>
</context-group>
<target>kady</target>
</trans-unit>
<trans-unit id="6334092464207199213" datatype="html">
<source>after</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">20</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">78</context>
</context-group>
<target>po</target>
</trans-unit>
<trans-unit id="6458677044022639721" datatype="html">
<source>Job:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">48</context>
</context-group>
<target>Zadanie:</target>
</trans-unit>
<trans-unit id="3770273819204930148" datatype="html">
<source>Periodicity:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">63</context>
</context-group>
<target>Czsto:</target>
</trans-unit>
<trans-unit id="1545019447684907468" datatype="html">
<source>Set the time to run the job. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">75,76</context>
</context-group>
<target>Ustaw czas uruchomienia zadania.</target>
</trans-unit>
<trans-unit id="1598058373778280238" datatype="html">
<source>After:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">83</context>
</context-group>
<target>Po:</target>
</trans-unit>
<trans-unit id="1963407138412411589" datatype="html">
<source>The job will run after that job finishes. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">97,98</context>
</context-group>
<target>Zadanie zostanie uruchomione po tym, jak to zadanie si skoczy.</target>
</trans-unit>
<trans-unit id="7479716926471212179" datatype="html">
<source>At:</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">106</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">119</context>
</context-group>
<target>O:</target>
</trans-unit>
<trans-unit id="2663284587089894626" datatype="html">
<source>Allow parallel run</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">143</context>
</context-group>
<target>Rwnoczesne wykonanie zada</target>
</trans-unit>
<trans-unit id="7793629991365019273" datatype="html">
<source>Enables the job to start even if another job is already running. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">159,160</context>
</context-group>
<target>Zadanie moe zacz si wykonywa nawet jeli inne zadanie jest w trakcie wykonywania.</target>
</trans-unit>
<trans-unit id="3941409331265855477" datatype="html">
<source> Search query to list photos and videos. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">249,250</context>
</context-group>
<target>Search query to list photos and videos.</target>
</trans-unit>
<trans-unit id="7699622144571229146" datatype="html">
<source>Sort by</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">256</context>
</context-group>
<target>Sort by</target>
</trans-unit>
<trans-unit id="642273971136998226" datatype="html">
<source> Sorts the photos and videos by this. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">298,299</context>
</context-group>
<target>Sorts the photos and videos by this.</target>
</trans-unit>
<trans-unit id="8698515801873408462" datatype="html">
<source>Pick</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">305</context>
</context-group>
<target>Pick</target>
</trans-unit>
<trans-unit id="8552498455622807836" datatype="html">
<source> Number of photos and videos to pick. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">315,316</context>
</context-group>
<target>Number of photos and videos to pick.</target>
</trans-unit>
<trans-unit id="5242498003738057671" datatype="html">
<source>';' separated integers. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">351,352</context>
</context-group>
<target>Liczby cakowite oddzielone znakiem ';'.</target>
</trans-unit>
<trans-unit id="163671953128893071" datatype="html">
<source>Add Job</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">374</context>
</context-group>
<target>Dodaj zadanie</target>
</trans-unit>
<trans-unit id="8500119868694688450" datatype="html">
<source>Add new job</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">384</context>
</context-group>
<target>Dodaj nowe zadanie</target>
</trans-unit>
<trans-unit id="2893483139524749280" datatype="html">
<source>Select a job to schedule. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">399,400</context>
</context-group>
<target>Wybierz zadanie do zaplanowania.</target>
</trans-unit>
<trans-unit id="6188210409712327095" datatype="html">
<source>Add Job </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.html</context>
<context context-type="linenumber">408</context>
</context-group>
<target>Dodaj zadanie</target>
</trans-unit>
<trans-unit id="1461196514655349848" datatype="html">
<source>periodic</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">80</context>
</context-group>
<target>okresowe</target>
</trans-unit>
<trans-unit id="151283875747851076" datatype="html">
<source>scheduled</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">81</context>
</context-group>
<target>zaplanowane</target>
</trans-unit>
<trans-unit id="8739442281958563044" datatype="html">
<source>Monday</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">84</context>
</context-group>
<target>Poniedziaek</target>
</trans-unit>
<trans-unit id="9176037901730521018" datatype="html">
<source>Tuesday</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">85</context>
</context-group>
<target>Wtorek</target>
</trans-unit>
<trans-unit id="8798932904948432529" datatype="html">
<source>Wednesday</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">86</context>
</context-group>
<target>roda</target>
</trans-unit>
<trans-unit id="1433683192825895947" datatype="html">
<source>Thursday</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">87</context>
</context-group>
<target>Czwartek</target>
</trans-unit>
<trans-unit id="3730139500618908668" datatype="html">
<source>Friday</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">88</context>
</context-group>
<target>Pitek</target>
</trans-unit>
<trans-unit id="1830554030016307335" datatype="html">
<source>Saturday</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">89</context>
</context-group>
<target>Sobota</target>
</trans-unit>
<trans-unit id="6950140976689343775" datatype="html">
<source>Sunday</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">90</context>
</context-group>
<target>Niedziela</target>
</trans-unit>
<trans-unit id="6320319413541466015" datatype="html">
<source>day</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/settings/workflow/workflow.component.ts</context>
<context context-type="linenumber">91</context>
</context-group>
<target>dzie</target>
</trans-unit>
<trans-unit id="528147028328608000" datatype="html">
<source>Unknown sharing key. </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/sharelogin/share-login.component.html</context>
<context context-type="linenumber">11,12</context>
</context-group>
<target>Unknown sharing key.</target>
</trans-unit>
<trans-unit id="6314278975578272694" datatype="html">
<source>Wrong password</source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/sharelogin/share-login.component.html</context>
<context context-type="linenumber">15</context>
</context-group>
<target>Niewaciwe haso</target>
</trans-unit>
<trans-unit id="8443199995255821192" datatype="html">
<source>Enter </source>
<context-group purpose="location">
<context context-type="sourcefile">src/frontend/app/ui/sharelogin/share-login.component.html</context>
<context context-type="linenumber">38</context>
</context-group>
<target>Wprowad</target>
</trans-unit>
</body>
</file>
</xliff>
``` | /content/code_sandbox/src/frontend/translate/messages.pl.xlf | xml | 2016-03-12T11:46:41 | 2024-08-16T19:56:44 | pigallery2 | bpatrik/pigallery2 | 1,727 | 70,503 |
```xml
// `/custom` export is deprecated.
// Use `/core` sub-package instead.
import {
MetadataJson,
Examples,
PhoneNumber,
E164Number,
CountryCallingCode,
CountryCode,
CarrierCode,
NationalNumber,
Extension,
ParseError,
NumberFoundLegacy,
NumberFound,
NumberType,
NumberFormat,
NumberingPlan
} from './types.d.js';
import {
ParsedNumber,
FormatNumberOptions,
ParseNumberOptions
} from './index.d.js';
export {
MetadataJson,
Examples,
PhoneNumber,
E164Number,
CountryCallingCode,
CountryCode,
CarrierCode,
NationalNumber,
Extension,
FormatNumberOptions,
ParsedNumber,
ParseNumberOptions,
ParseError,
NumberFoundLegacy,
NumberFound,
NumberFormat,
NumberType,
NumberingPlan
};
// `parsePhoneNumber()` named export has been renamed to `parsePhoneNumberWithError()`.
export function parsePhoneNumber(text: string, metadata: MetadataJson): PhoneNumber;
export function parsePhoneNumber(text: string, defaultCountry: CountryCode | { defaultCountry?: CountryCode, defaultCallingCode?: string, extract?: boolean }, metadata: MetadataJson): PhoneNumber;
export function parsePhoneNumberWithError(text: string, metadata: MetadataJson): PhoneNumber;
export function parsePhoneNumberWithError(text: string, defaultCountry: CountryCode | { defaultCountry?: CountryCode, defaultCallingCode?: string, extract?: boolean }, metadata: MetadataJson): PhoneNumber;
// `parsePhoneNumberFromString()` named export is now considered legacy:
// it has been promoted to a default export due to being too verbose.
export function parsePhoneNumberFromString(text: string, metadata: MetadataJson): PhoneNumber;
export function parsePhoneNumberFromString(text: string, defaultCountry: CountryCode | { defaultCountry?: CountryCode, defaultCallingCode?: string, extract?: boolean }, metadata: MetadataJson): PhoneNumber;
export default parsePhoneNumberFromString;
export function getExampleNumber(country: CountryCode, examples: Examples, metadata: MetadataJson): PhoneNumber | undefined;
export function findPhoneNumbersInText(text: string, metadata: MetadataJson): NumberFound[];
export function findPhoneNumbersInText(text: string, options: CountryCode | { defaultCountry?: CountryCode, defaultCallingCode?: string, extended?: boolean }, metadata: MetadataJson): NumberFound[];
export function searchPhoneNumbersInText(text: string, metadata: MetadataJson): IterableIterator<NumberFound>;
export function searchPhoneNumbersInText(text: string, options: CountryCode | { defaultCountry?: CountryCode, defaultCallingCode?: string, extended?: boolean }, metadata: MetadataJson): IterableIterator<NumberFound>;
export class PhoneNumberMatcher {
constructor(text: string, metadata: MetadataJson);
constructor(text: string, options: { defaultCountry?: CountryCode, v2: true }, metadata: MetadataJson);
hasNext(): boolean;
next(): NumberFound | undefined;
}
export function getCountries(metadata: MetadataJson): CountryCode[];
export function getCountryCallingCode(countryCode: CountryCode, metadata: MetadataJson): CountryCallingCode;
export function getExtPrefix(countryCode: CountryCode, metadata: MetadataJson): string;
export function isSupportedCountry(countryCode: CountryCode, metadata: MetadataJson): boolean;
export function formatIncompletePhoneNumber(number: string, metadata: MetadataJson): string;
export function formatIncompletePhoneNumber(number: string, defaultCountryCode: CountryCode | { defaultCountry?: CountryCode, defaultCallingCode?: string } | undefined, metadata: MetadataJson): string;
export function parseIncompletePhoneNumber(text: string): string;
export function parsePhoneNumberCharacter(character: string): string;
export function parseDigits(character: string): string;
export class AsYouType {
constructor(defaultCountryCode: CountryCode | { defaultCountry?: CountryCode, defaultCallingCode?: string } | undefined, metadata: MetadataJson);
input(text: string): string;
reset(): void;
country: CountryCode | undefined;
getNumber(): PhoneNumber | undefined;
getNumberValue(): E164Number | undefined;
getNationalNumber(): string;
getChars(): string;
getTemplate(): string;
getCallingCode(): string | undefined;
getCountry(): CountryCode | undefined;
isInternational(): boolean;
isPossible(): boolean;
isValid(): boolean;
}
export class Metadata {
constructor(metadata: MetadataJson);
selectNumberingPlan(country: CountryCode): void;
numberingPlan?: NumberingPlan;
}
// Deprecated
export function parse(text: string, metadata: MetadataJson): ParsedNumber;
export function parse(text: string, options: CountryCode | ParseNumberOptions, metadata: MetadataJson): ParsedNumber;
// Deprecated
export function parseNumber(text: string, metadata: MetadataJson): ParsedNumber | {};
export function parseNumber(text: string, options: CountryCode | ParseNumberOptions, metadata: MetadataJson): ParsedNumber | {};
// Deprecated
export function format(parsedNumber: ParsedNumber, format: NumberFormat, metadata: MetadataJson): string;
export function format(phone: string, format: NumberFormat, metadata: MetadataJson): string;
export function format(phone: string, country: CountryCode, format: NumberFormat, metadata: MetadataJson): string;
// Deprecated
export function formatNumber(parsedNumber: ParsedNumber, format: NumberFormat, metadata: MetadataJson): string;
export function formatNumber(parsedNumber: ParsedNumber, format: NumberFormat, options: FormatNumberOptions, metadata: MetadataJson): string;
// Deprecated
export function formatNumber(phone: string, format: NumberFormat, metadata: MetadataJson): string;
export function formatNumber(phone: string, format: NumberFormat, options: FormatNumberOptions, metadata: MetadataJson): string;
// Deprecated
export function formatNumber(phone: string, country: CountryCode, format: NumberFormat, metadata: MetadataJson): string;
export function formatNumber(phone: string, country: CountryCode, format: NumberFormat, options: FormatNumberOptions, metadata: MetadataJson): string;
// Deprecated
export function getNumberType(parsedNumber: ParsedNumber, metadata: MetadataJson): NumberType;
export function getNumberType(phone: string, metadata: MetadataJson): NumberType;
export function getNumberType(phone: string, country: CountryCode, metadata: MetadataJson): NumberType;
// Deprecated
export function isPossibleNumber(parsedNumber: ParsedNumber, metadata: MetadataJson): boolean;
export function isPossibleNumber(phone: string, metadata: MetadataJson): boolean;
export function isPossibleNumber(phone: string, country: CountryCode, metadata: MetadataJson): boolean;
// Deprecated
export function isValidNumber(parsedNumber: ParsedNumber, metadata: MetadataJson): boolean;
export function isValidNumber(phone: string, metadata: MetadataJson): boolean;
export function isValidNumber(phone: string, country: CountryCode, metadata: MetadataJson): boolean;
// Deprecated
export function isValidNumberForRegion(phone: string, country: CountryCode, metadata: MetadataJson): boolean;
// Deprecated
export function findParsedNumbers(text: string, metadata: MetadataJson): NumberFoundLegacy[];
export function findParsedNumbers(text: string, options: CountryCode | { defaultCountry?: CountryCode }, metadata: MetadataJson): NumberFoundLegacy[];
// Deprecated
export function searchParsedNumbers(text: string, metadata: MetadataJson): IterableIterator<NumberFoundLegacy>;
export function searchParsedNumbers(text: string, options: CountryCode | { defaultCountry?: CountryCode }, metadata: MetadataJson): IterableIterator<NumberFoundLegacy>;
// Deprecated
export class ParsedNumberSearch {
constructor(text: string, metadata: MetadataJson);
constructor(text: string, options: { defaultCountry?: CountryCode }, metadata: MetadataJson);
hasNext(): boolean;
next(): NumberFoundLegacy | undefined;
}
// Deprecated
export function findNumbers(text: string, metadata: MetadataJson): NumberFoundLegacy[];
export function findNumbers(text: string, options: CountryCode | { defaultCountry?: CountryCode, v2: true }, metadata: MetadataJson): NumberFound[];
// Deprecated
export function searchNumbers(text: string, metadata: MetadataJson): IterableIterator<NumberFoundLegacy>;
export function searchNumbers(text: string, options: CountryCode | { defaultCountry?: CountryCode, v2: true }, metadata: MetadataJson): IterableIterator<NumberFound>;
// Deprecated
export function getPhoneCode(countryCode: CountryCode, metadata: MetadataJson): CountryCallingCode;
``` | /content/code_sandbox/custom.d.ts | xml | 2016-11-21T18:13:12 | 2024-08-15T10:27:09 | libphonenumber-js | catamphetamine/libphonenumber-js | 2,757 | 1,752 |
```xml
import { NextPage } from 'next'
import { useRouter } from 'next/router'
import qs from 'qs'
import { useEffect } from 'react'
import { usePlans } from '../src/context/PlansContext'
import { getPurchaseOrSubscribeRoute } from '../src/helpers'
import SubscribePage from '../src/pages/SubscribePage'
export interface SubscribePageProps {}
const Buy: NextPage<SubscribePageProps> = () => {
const Router = useRouter()
const { plans } = usePlans()
useEffect(() => {
const route = getPurchaseOrSubscribeRoute(plans)
if (route === 'subscribe') return
Router.replace(
`/${route}${qs.stringify(Router.query, { addQueryPrefix: true })}`,
)
}, [])
return <SubscribePage />
}
export default Buy
``` | /content/code_sandbox/landing/pages/subscribe.tsx | xml | 2016-11-30T23:24:21 | 2024-08-16T00:24:59 | devhub | devhubapp/devhub | 9,652 | 171 |
```xml
import * as gulp from 'gulp';
import {runSequence, task} from './tools/utils';
// --------------
// Clean (override).
gulp.task('clean', task('clean', 'all'));
gulp.task('clean.dist', task('clean', 'dist'));
gulp.task('clean.test', task('clean', 'test'));
gulp.task('clean.tmp', task('clean', 'tmp'));
gulp.task('check.versions', task('check.versions'));
// --------------
// Postinstall.
gulp.task('postinstall', done =>
runSequence('clean',
'npm',
done));
// --------------
// Build dev.
gulp.task('build.dev', done =>
runSequence('clean.dist',
'tslint',
'build.sass.dev',
'build.img.dev',
'build.fonts.dev',
'build.js.dev',
'build.index',
done));
// --------------
// Build prod.
gulp.task('build.prod', done =>
runSequence('clean.dist',
'clean.tmp',
'tslint',
'build.sass.dev',
'build.img.dev',
'build.fonts.dev',
'build.html_css.prod',
'build.deps',
'build.js.prod',
'build.bundles',
'build.index',
done));
// --------------
// Watch.
gulp.task('build.dev.watch', done =>
runSequence('build.dev',
'watch.dev',
done));
gulp.task('build.test.watch', done =>
runSequence('build.test',
'watch.test',
done));
// --------------
// Test.
gulp.task('test', done =>
runSequence('clean.test',
'tslint',
'build.test',
'karma.start',
done));
// --------------
// Serve.
gulp.task('serve', done =>
runSequence('build.dev',
'server.start',
'watch.serve',
done));
// --------------
// Docs
// Disabled until path_to_url gets resolved
// gulp.task('docs', done =>
// runSequence('build.docs',
// 'serve.docs',
// done));
``` | /content/code_sandbox/gulpfile.ts | xml | 2016-01-04T01:19:52 | 2024-08-15T22:13:36 | pev | AlexTatiyants/pev | 2,757 | 439 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" 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>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<ProjectGuid>{920bbb4d-c715-4cd4-9129-ff2cf941495d}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>distorm</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<SpectreMitigation>false</SpectreMitigation>
<VcpkgEnabled>false</VcpkgEnabled>
<VCToolsVersion Condition="'$(USE_XP_TOOLCHAIN)'!=''">14.27.29110</VCToolsVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<SpectreMitigation>false</SpectreMitigation>
<VcpkgEnabled>false</VcpkgEnabled>
<VCToolsVersion Condition="'$(USE_XP_TOOLCHAIN)'!=''">14.27.29110</VCToolsVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<SpectreMitigation>false</SpectreMitigation>
<VcpkgEnabled>false</VcpkgEnabled>
<VCToolsVersion Condition="'$(USE_XP_TOOLCHAIN)'!=''">14.27.29110</VCToolsVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<SpectreMitigation>false</SpectreMitigation>
<VcpkgEnabled>false</VcpkgEnabled>
<VCToolsVersion Condition="'$(USE_XP_TOOLCHAIN)'!=''">14.27.29110</VCToolsVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</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" />
<Import Project="$(SolutionDir)Scylla\scylla.props" />
<Import Project="$(SolutionDir)Scylla\scylla.debug.props" />
</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" />
<Import Project="$(SolutionDir)Scylla\scylla.props" />
<Import Project="$(SolutionDir)Scylla\scylla.debug.props" />
</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" />
<Import Project="$(SolutionDir)Scylla\scylla.props" />
<Import Project="$(SolutionDir)Scylla\scylla.release.props" />
</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" />
<Import Project="$(SolutionDir)Scylla\scylla.props" />
<Import Project="$(SolutionDir)Scylla\scylla.release.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<GenerateManifest>false</GenerateManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<GenerateManifest>false</GenerateManifest>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PreprocessorDefinitions>DISTORM_STATIC;SUPPORT_64BIT_OFFSET;DISTORM_LIGHT;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
</Link>
<Lib>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PreprocessorDefinitions>DISTORM_STATIC;SUPPORT_64BIT_OFFSET;DISTORM_LIGHT;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
</Link>
<Lib>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PreprocessorDefinitions>DISTORM_STATIC;SUPPORT_64BIT_OFFSET;DISTORM_LIGHT;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
</Link>
<Lib>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PreprocessorDefinitions>DISTORM_STATIC;SUPPORT_64BIT_OFFSET;DISTORM_LIGHT;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
</Link>
<Lib>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
</Lib>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="decoder.c" />
<ClCompile Include="distorm.c" />
<ClCompile Include="instructions.c" />
<ClCompile Include="insts.c" />
<ClCompile Include="mnemonics.c" />
<ClCompile Include="operands.c" />
<ClCompile Include="prefix.c" />
<ClCompile Include="textdefs.c" />
<ClCompile Include="wstring.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="config.h" />
<ClInclude Include="decoder.h" />
<ClInclude Include="distorm.h" />
<ClInclude Include="instructions.h" />
<ClInclude Include="insts.h" />
<ClInclude Include="mnemonics.h" />
<ClInclude Include="operands.h" />
<ClInclude Include="prefix.h" />
<ClInclude Include="textdefs.h" />
<ClInclude Include="wstring.h" />
<ClInclude Include="x86defs.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
``` | /content/code_sandbox/3rdparty/distorm/distorm.vcxproj | xml | 2016-01-27T05:26:30 | 2024-08-16T08:06:22 | ScyllaHide | x64dbg/ScyllaHide | 3,365 | 2,194 |
```xml
import { $NextFunctionVer, $RequestExtend, $ResponseExtend } from '../types';
export function match(regexp: RegExp): any {
return function (
req: $RequestExtend,
res: $ResponseExtend,
next: $NextFunctionVer,
value: string
): void {
if (regexp.exec(value)) {
next();
} else {
next('route');
}
};
}
``` | /content/code_sandbox/packages/middleware/src/middlewares/match.ts | xml | 2016-04-15T16:21:12 | 2024-08-16T09:38:01 | verdaccio | verdaccio/verdaccio | 16,189 | 90 |
```xml
export * from './array';
export * from './date-time';
export * from './reg-exp';
export * from './string-validators';
``` | /content/code_sandbox/src/app/utils/index.ts | xml | 2016-09-20T13:50:42 | 2024-08-06T13:58:18 | loklak_search | fossasia/loklak_search | 1,829 | 29 |
```xml
import { Formik, Form, Field } from 'formik';
import { Plus } from 'lucide-react';
import { SchemaOf, object, string } from 'yup';
import { useReducer } from 'react';
import { Button } from '@@/buttons';
import { FormControl } from '@@/form-components/FormControl';
import { Input } from '@@/form-components/Input';
export function AddLabelForm({
onSubmit,
isLoading,
}: {
onSubmit: (name: string, value: string) => void;
isLoading: boolean;
}) {
const [formKey, clearForm] = useReducer((state) => state + 1, 0);
const initialValues = {
name: '',
value: '',
};
return (
<Formik
initialValues={initialValues}
onSubmit={handleSubmit}
validationSchema={validation}
key={formKey}
>
{({ errors, isValid, dirty }) => (
<Form className="form-horizontal">
<div className="flex w-full items-start gap-4">
<FormControl label="Name" errors={errors.name} className="flex-1">
<Field
as={Input}
name="name"
placeholder="e.g. com.example.foo"
/>
</FormControl>
<FormControl label="Value" errors={errors.value} className="flex-1">
<Field as={Input} name="value" placeholder="e.g. bar" />
</FormControl>
<Button
type="submit"
data-cy="hidden-containersadd-label-button"
icon={Plus}
disabled={!dirty || !isValid || isLoading}
>
Add filter
</Button>
</div>
</Form>
)}
</Formik>
);
function handleSubmit(values: typeof initialValues) {
clearForm();
onSubmit(values.name, values.value);
}
}
function validation(): SchemaOf<{ name: string; value: string }> {
return object({
name: string().required('Name is required'),
value: string().default(''),
});
}
``` | /content/code_sandbox/app/react/portainer/settings/SettingsView/HiddenContainersPanel/AddLabelForm.tsx | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 441 |
```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.
-->
<authority>
<sqlset db-types="Oracle,SQLServer,PostgreSQL,openGauss">
<user-create>
<sql>CREATE USER default_user</sql>
<sql>CREATE ROLE default_role</sql>
<sql>CREATE ROLE role2</sql>
<sql>CREATE ROLE role3</sql>
<sql>CREATE ROLE role4</sql>
</user-create>
<user-drop>
<sql>DROP ROLE IF EXISTS default_role</sql>
<sql>DROP ROLE IF EXISTS role_dev</sql>
<sql>DROP ROLE IF EXISTS role_dev_new</sql>
<sql>DROP ROLE IF EXISTS role2</sql>
<sql>DROP ROLE IF EXISTS role3</sql>
<sql>DROP ROLE IF EXISTS role4</sql>
<sql>DROP USER IF EXISTS user_dev</sql>
<sql>DROP USER IF EXISTS user_dev_new</sql>
<sql>DROP USER IF EXISTS default_user</sql>
</user-drop>
</sqlset>
<sqlset db-types="SQLServer">
<user-create>
<sql>CREATE LOGIN login_dev</sql>
<sql>CREATE USER user_dev FOR LOGIN login_dev</sql>
</user-create>
<user-drop>
<sql>DROP LOGIN IF EXISTS login_dev</sql>
<sql>DROP LOGIN IF EXISTS login_dev_new</sql>
</user-drop>
</sqlset>
<sqlset db-types="MySQL">
<user-create>
<sql>CREATE ROLE default_role</sql>
<sql>CREATE USER user_dev@localhost</sql>
<sql>GRANT select,update,insert,delete on db.* to user_dev@localhost</sql>
<sql>GRANT select,update,insert,delete on encrypt_shadow_db.* to user_dev@localhost</sql>
</user-create>
<user-drop>
<sql>DROP USER IF EXISTS user_dev@localhost</sql>
<sql>DROP USER IF EXISTS user_dev_new@localhost</sql>
<sql>DROP USER IF EXISTS user_dev@127.0.0.1</sql>
<sql>DROP ROLE IF EXISTS default_role</sql>
<sql>DROP ROLE IF EXISTS role_dev</sql>
<sql>DROP ROLE IF EXISTS role_dev_new</sql>
<sql>FLUSH PRIVILEGES</sql>
</user-drop>
</sqlset>
<sqlset db-types="Oracle">
<user-create>
<sql>CREATE USER user_dev identified by passwd_dev</sql>
</user-create>
</sqlset>
</authority>
``` | /content/code_sandbox/test/e2e/sql/src/test/resources/env/scenario/encrypt_shadow/authority.xml | xml | 2016-01-18T12:49:26 | 2024-08-16T15:48:11 | shardingsphere | apache/shardingsphere | 19,707 | 635 |
```xml
import { ipcMain } from 'electron';
import { IpcChannel } from '../../../common/ipc/lib/IpcChannel';
import type {
IpcReceiver,
IpcSender,
} from '../../../common/ipc/lib/IpcChannel';
/**
* Subclass of IpcChannel that uses ipcMain to receive messages.
*/
export class MainIpcChannel<Incoming, Outgoing> extends IpcChannel<
Incoming,
Outgoing
> {
async send(
message: Outgoing,
sender: IpcSender,
receiver: IpcReceiver = ipcMain
): Promise<Incoming> {
return super.send(message, sender, receiver);
}
async request(
message: Outgoing,
sender: IpcSender,
receiver: IpcReceiver = ipcMain
): Promise<Incoming> {
return super.request(message, sender, receiver);
}
onReceive(
handler: (message: Incoming) => Promise<Outgoing>,
receiver: IpcReceiver = ipcMain
): void {
super.onReceive(handler, receiver);
}
onRequest(
handler: (arg0: Incoming) => Promise<Outgoing>,
receiver: IpcReceiver = ipcMain
): void {
super.onRequest(handler, receiver);
}
}
``` | /content/code_sandbox/source/main/ipc/lib/MainIpcChannel.ts | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 270 |
```xml
import Assets from '../../../../src/asset_manager/model/Assets';
import AssetView from '../../../../src/asset_manager/view/AssetView';
describe('AssetView', () => {
let testContext: { view?: AssetView };
beforeEach(() => {
testContext = {};
});
beforeEach(() => {
const coll = new Assets();
const model = coll.add({ src: 'test' });
testContext.view = new AssetView({
config: {},
model,
} as any);
document.body.innerHTML = '<div id="fixtures"></div>';
document.body.querySelector('#fixtures')!.appendChild(testContext.view.render().el);
});
afterEach(() => {
testContext.view!.remove();
});
test('Object exists', () => {
expect(AssetView).toBeTruthy();
});
test('Has correct prefix', () => {
expect(testContext.view!.pfx).toEqual('');
});
});
``` | /content/code_sandbox/test/specs/asset_manager/view/AssetView.ts | xml | 2016-01-22T00:23:19 | 2024-08-16T11:20:59 | grapesjs | GrapesJS/grapesjs | 21,687 | 192 |
```xml
import useSWR from "swr";
import fetcher from "libs/fetcher";
import Link from "next/link";
import styles from "./Collections.module.css";
interface CollectionProps {
id_collection?: number;
}
const Collections = ({ id_collection }: CollectionProps) => {
const { data, error } = useSWR(
"/api/collection" + (id_collection ? `/${id_collection}` : ""),
fetcher,
);
if (error) return <div>failed to load</div>;
if (!data) return <div>loading...</div>;
return (
<div className={styles.chips}>
{data.map(({ id, title, slug }) =>
id_collection ? (
<Link href="/" key={`collection_${slug}`} className={styles.chip}>
{title}
<Link href="/" legacyBehavior>
<button
type="button"
className={styles.chip_remove}
aria-label="Return to home"
></button>
</Link>
</Link>
) : (
<Link
href={{ pathname: "/collection/[slug]", query: { id: id } }}
as={`/collection/${slug}?id=${id}`}
key={`collection_${slug}`}
className={styles.chip}
>
{title}
</Link>
),
)}
</div>
);
};
export default Collections;
``` | /content/code_sandbox/examples/with-unsplash/components/Collections/index.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 293 |
```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.
-->
<window xmlns="path_to_url"
caption="mainMsg://application.caption">
<layout>
<cssLayout id="horizontalWrap"
stylename="c-sidemenu-layout"
height="100%"
width="100%">
<cssLayout id="sideMenuContainer"
height="100%"
stylename="c-sidemenu-container">
<cssLayout id="sideMenuPanel"
stylename="c-sidemenu-panel">
<cssLayout id="appTitleBox"
stylename="c-sidemenu-title"
width="100%">
<image id="logoImage"
stylename="c-app-icon"
scaleMode="SCALE_DOWN"/>
<label id="appTitleLabel"
stylename="c-app-title"
value="mainMsg://application.logoLabel"/>
</cssLayout>
<sideMenu id="sideMenu"
width="100%"/>
<ftsField id="ftsField"
width="100%"/>
<timeZoneIndicator id="timeZoneIndicator"
align="MIDDLE_CENTER"/>
<cssLayout id="controlBox"
stylename="c-sidemenu-controls"
width="100%">
<button id="collapseMenuButton"
caption="mainMsg://menuCollapseGlyph"
description="mainMsg://sideMenuCollapse"
stylename="c-sidemenu-collapse-button"/>
<userIndicator id="userIndicator"
align="MIDDLE_CENTER"/>
<button id="settingsButton"
icon="GEAR"
description="mainMsg://settings"
stylename="c-settings-button"/>
<logoutButton id="logoutButton"
icon="SIGN_OUT"
description="msg://logoutBtnDescription"/>
<button id="loginButton"
icon="SIGN_IN"
description="msg://loginBtnDescription"
stylename="c-login-button"/>
</cssLayout>
</cssLayout>
</cssLayout>
<workArea id="workArea"
stylename="c-workarea"
height="100%">
<initialLayout spacing="true" margin="true">
</initialLayout>
</workArea>
</cssLayout>
</layout>
</window>
``` | /content/code_sandbox/modules/web/src/com/haulmont/cuba/web/app/main/main-screen.xml | xml | 2016-03-24T07:55:56 | 2024-07-14T05:13:48 | cuba | cuba-platform/cuba | 1,342 | 515 |
```xml
<clickhouse>
<zookeeper>
<node index="1">
<host>zoo1</host>
<port>2181</port>
</node>
<node index="2">
<host>zoo2</host>
<port>2181</port>
</node>
<node index="3">
<host>zoo3</host>
<port>2181</port>
</node>
<session_timeout_ms>20000</session_timeout_ms>
</zookeeper>
</clickhouse>
``` | /content/code_sandbox/tests/integration/test_drop_if_empty/configs/zookeeper.xml | xml | 2016-06-02T08:28:18 | 2024-08-16T18:39:33 | ClickHouse | ClickHouse/ClickHouse | 36,234 | 124 |
```xml
import React from "react";
import {OperationSchema} from "cad/craft/schema/schema";
import {FieldBasicProps, fieldToSchemaGeneric} from "cad/mdf/ui/field";
import {Types} from "cad/craft/schema/types";
import {CheckboxField} from "cad/craft/wizard/components/form/Fields";
export interface CheckboxWidgetProps extends FieldBasicProps {
type: 'checkbox';
min?: number;
max?: number;
}
export function CheckboxWidget(props: CheckboxWidgetProps) {
return <CheckboxField name={props.name} defaultValue={props.defaultValue} label={props.label} />
}
CheckboxWidget.propsToSchema = (props: CheckboxWidgetProps) => {
return {
type: Types.boolean,
...fieldToSchemaGeneric(props),
}
};
``` | /content/code_sandbox/web/app/cad/mdf/ui/CheckboxWidget.tsx | xml | 2016-08-26T21:55:19 | 2024-08-15T01:02:53 | jsketcher | xibyte/jsketcher | 1,461 | 164 |
```xml
import { pathToFileURL } from 'node:url'
import { existsSync, promises as fsp, readFileSync } from 'node:fs'
import { cpus } from 'node:os'
import { join, relative, resolve } from 'pathe'
import { createRouter as createRadixRouter, exportMatcher, toRouteMatcher } from 'radix3'
import { joinURL, withTrailingSlash } from 'ufo'
import { build, copyPublicAssets, createDevServer, createNitro, prepare, prerender, writeTypes } from 'nitro'
import type { Nitro, NitroConfig, NitroOptions } from 'nitro/types'
import { findPath, logger, resolveAlias, resolveIgnorePatterns, resolveNuxtModule } from '@nuxt/kit'
import escapeRE from 'escape-string-regexp'
import { defu } from 'defu'
import { dynamicEventHandler } from 'h3'
import { isWindows } from 'std-env'
import type { Nuxt, NuxtOptions } from 'nuxt/schema'
import { version as nuxtVersion } from '../../package.json'
import { distDir } from '../dirs'
import { toArray } from '../utils'
import { template as defaultSpaLoadingTemplate } from '../../../ui-templates/dist/templates/spa-loading-icon'
import { ImportProtectionPlugin, nuxtImportProtections } from './plugins/import-protection'
const logLevelMapReverse = {
silent: 0,
info: 3,
verbose: 3,
} satisfies Record<NuxtOptions['logLevel'], NitroConfig['logLevel']>
export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
// Resolve config
const excludePaths = nuxt.options._layers
.flatMap(l => [
l.cwd.match(/(?<=\/)node_modules\/(.+)$/)?.[1],
l.cwd.match(/\.pnpm\/.+\/node_modules\/(.+)$/)?.[1],
])
.filter((dir): dir is string => Boolean(dir))
.map(dir => escapeRE(dir))
const excludePattern = excludePaths.length
? [new RegExp(`node_modules\\/(?!${excludePaths.join('|')})`)]
: [/node_modules/]
const rootDirWithSlash = withTrailingSlash(nuxt.options.rootDir)
const modules = await resolveNuxtModule(rootDirWithSlash,
nuxt.options._installedModules
.filter(m => m.entryPath)
.map(m => m.entryPath!),
)
const nitroConfig: NitroConfig = defu(nuxt.options.nitro, {
debug: nuxt.options.debug,
rootDir: nuxt.options.rootDir,
workspaceDir: nuxt.options.workspaceDir,
srcDir: nuxt.options.serverDir,
dev: nuxt.options.dev,
buildDir: nuxt.options.buildDir,
experimental: {
asyncContext: nuxt.options.experimental.asyncContext,
typescriptBundlerResolution: nuxt.options.future.typescriptBundlerResolution || nuxt.options.typescript?.tsConfig?.compilerOptions?.moduleResolution?.toLowerCase() === 'bundler' || nuxt.options.nitro.typescript?.tsConfig?.compilerOptions?.moduleResolution?.toLowerCase() === 'bundler',
},
framework: {
name: 'nuxt',
version: nuxtVersion,
},
imports: {
autoImport: nuxt.options.imports.autoImport as boolean,
imports: [
{
as: '__buildAssetsURL',
name: 'buildAssetsURL',
from: resolve(distDir, 'core/runtime/nitro/paths'),
},
{
as: '__publicAssetsURL',
name: 'publicAssetsURL',
from: resolve(distDir, 'core/runtime/nitro/paths'),
},
{
// TODO: Remove after path_to_url
as: 'defineAppConfig',
name: 'defineAppConfig',
from: resolve(distDir, 'core/runtime/nitro/config'),
priority: -1,
},
],
exclude: [...excludePattern, /[\\/]\.git[\\/]/],
},
esbuild: {
options: { exclude: excludePattern },
},
analyze: !nuxt.options.test && nuxt.options.build.analyze && (nuxt.options.build.analyze === true || nuxt.options.build.analyze.enabled)
? {
template: 'treemap',
projectRoot: nuxt.options.rootDir,
filename: join(nuxt.options.analyzeDir, '{name}.html'),
}
: false,
scanDirs: nuxt.options._layers.map(layer => (layer.config.serverDir || layer.config.srcDir) && resolve(layer.cwd, layer.config.serverDir || resolve(layer.config.srcDir, 'server'))).filter(Boolean),
renderer: resolve(distDir, 'core/runtime/nitro/renderer'),
nodeModulesDirs: nuxt.options.modulesDir,
handlers: nuxt.options.serverHandlers,
devHandlers: [],
baseURL: nuxt.options.app.baseURL,
virtual: {
'#internal/nuxt.config.mjs': () => nuxt.vfs['#build/nuxt.config'],
'#internal/nuxt/app-config': () => nuxt.vfs['#build/app.config'].replace(/\/\*\* client \*\*\/[\s\S]*\/\*\* client-end \*\*\//, ''),
'#spa-template': async () => `export const template = ${JSON.stringify(await spaLoadingTemplate(nuxt))}`,
},
routeRules: {
'/__nuxt_error': { cache: false },
},
typescript: {
strict: true,
generateTsConfig: true,
tsconfigPath: 'tsconfig.server.json',
tsConfig: {
compilerOptions: {
lib: ['esnext', 'webworker', 'dom.iterable'],
},
include: [
join(nuxt.options.buildDir, 'types/nitro-nuxt.d.ts'),
...modules.map(m => join(relativeWithDot(nuxt.options.buildDir, m), 'runtime/server')),
],
exclude: [
...nuxt.options.modulesDir.map(m => relativeWithDot(nuxt.options.buildDir, m)),
// nitro generate output: path_to_url#L186
relativeWithDot(nuxt.options.buildDir, resolve(nuxt.options.rootDir, 'dist')),
],
},
},
publicAssets: [
nuxt.options.dev
? { dir: resolve(nuxt.options.buildDir, 'dist/client') }
: {
dir: join(nuxt.options.buildDir, 'dist/client', nuxt.options.app.buildAssetsDir),
maxAge: 31536000 /* 1 year */,
baseURL: nuxt.options.app.buildAssetsDir,
},
...nuxt.options._layers
.map(layer => resolve(layer.config.srcDir, (layer.config.rootDir === nuxt.options.rootDir ? nuxt.options : layer.config).dir?.public || 'public'))
.filter(dir => existsSync(dir))
.map(dir => ({ dir })),
],
prerender: {
failOnError: true,
concurrency: cpus().length * 4 || 4,
routes: ([] as string[]).concat(nuxt.options.generate.routes),
},
sourceMap: nuxt.options.sourcemap.server,
externals: {
inline: [
...(nuxt.options.dev
? []
: [
...nuxt.options.experimental.externalVue ? [] : ['vue', '@vue/'],
'@nuxt/',
nuxt.options.buildDir,
]),
...nuxt.options.build.transpile.filter((i): i is string => typeof i === 'string'),
'nuxt/dist',
'nuxt3/dist',
'nuxt-nightly/dist',
distDir,
// Ensure app config files have auto-imports injected even if they are pure .js files
...nuxt.options._layers.map(layer => resolve(layer.config.srcDir, 'app.config')),
],
traceInclude: [
// force include files used in generated code from the runtime-compiler
...(nuxt.options.vue.runtimeCompiler && !nuxt.options.experimental.externalVue)
? [
...nuxt.options.modulesDir.reduce<string[]>((targets, path) => {
const serverRendererPath = resolve(path, 'vue/server-renderer/index.js')
if (existsSync(serverRendererPath)) { targets.push(serverRendererPath) }
return targets
}, []),
]
: [],
],
},
alias: {
// Vue 3 mocks
...nuxt.options.vue.runtimeCompiler || nuxt.options.experimental.externalVue
? {}
: {
'estree-walker': 'unenv/runtime/mock/proxy',
'@babel/parser': 'unenv/runtime/mock/proxy',
'@vue/compiler-core': 'unenv/runtime/mock/proxy',
'@vue/compiler-dom': 'unenv/runtime/mock/proxy',
'@vue/compiler-ssr': 'unenv/runtime/mock/proxy',
},
'@vue/devtools-api': 'vue-devtools-stub',
// Paths
'#internal/nuxt/paths': resolve(distDir, 'core/runtime/nitro/paths'),
// Nuxt aliases
...nuxt.options.alias,
},
replace: {
'process.env.NUXT_NO_SSR': nuxt.options.ssr === false,
'process.env.NUXT_EARLY_HINTS': nuxt.options.experimental.writeEarlyHints !== false,
'process.env.NUXT_NO_SCRIPTS': !!nuxt.options.features.noScripts && !nuxt.options.dev,
'process.env.NUXT_INLINE_STYLES': !!nuxt.options.features.inlineStyles,
'process.env.NUXT_JSON_PAYLOADS': !!nuxt.options.experimental.renderJsonPayloads,
'process.env.NUXT_ASYNC_CONTEXT': !!nuxt.options.experimental.asyncContext,
'process.env.NUXT_SHARED_DATA': !!nuxt.options.experimental.sharedPrerenderData,
'process.dev': nuxt.options.dev,
'__VUE_PROD_DEVTOOLS__': false,
},
rollupConfig: {
output: {},
plugins: [],
},
logLevel: logLevelMapReverse[nuxt.options.logLevel],
} satisfies NitroConfig)
if (nuxt.options.experimental.serverAppConfig && nitroConfig.imports) {
nitroConfig.imports.imports ||= []
nitroConfig.imports.imports.push({
name: 'useAppConfig',
from: resolve(distDir, 'core/runtime/nitro/app-config'),
})
}
// add error handler
if (!nitroConfig.errorHandler && (nuxt.options.dev || !nuxt.options.experimental.noVueServer)) {
nitroConfig.errorHandler = resolve(distDir, 'core/runtime/nitro/error')
}
// Resolve user-provided paths
nitroConfig.srcDir = resolve(nuxt.options.rootDir, nuxt.options.srcDir, nitroConfig.srcDir!)
nitroConfig.ignore = [...(nitroConfig.ignore || []), ...resolveIgnorePatterns(nitroConfig.srcDir), `!${join(nuxt.options.buildDir, 'dist/client', nuxt.options.app.buildAssetsDir, '**/*')}`]
// Resolve aliases in user-provided input - so `~/server/test` will work
nitroConfig.plugins = nitroConfig.plugins?.map(plugin => plugin ? resolveAlias(plugin, nuxt.options.alias) : plugin)
// Add app manifest handler and prerender configuration
if (nuxt.options.experimental.appManifest) {
const buildId = nuxt.options.runtimeConfig.app.buildId ||= nuxt.options.buildId
const buildTimestamp = Date.now()
const manifestPrefix = joinURL(nuxt.options.app.buildAssetsDir, 'builds')
const tempDir = join(nuxt.options.buildDir, 'manifest')
nitroConfig.prerender ||= {}
nitroConfig.prerender.ignore ||= []
nitroConfig.prerender.ignore.push(manifestPrefix)
nitroConfig.publicAssets!.unshift(
// build manifest
{
dir: join(tempDir, 'meta'),
maxAge: 31536000 /* 1 year */,
baseURL: joinURL(manifestPrefix, 'meta'),
},
// latest build
{
dir: tempDir,
maxAge: 1,
baseURL: manifestPrefix,
},
)
nuxt.options.alias['#app-manifest'] = join(tempDir, `meta/${buildId}.json`)
nuxt.hook('nitro:config', (config) => {
const rules = config.routeRules
for (const rule in rules) {
if (!(rules[rule] as any).appMiddleware) { continue }
const value = (rules[rule] as any).appMiddleware
if (typeof value === 'string') {
(rules[rule] as NitroOptions['routeRules']).appMiddleware = { [value]: true }
} else if (Array.isArray(value)) {
const normalizedRules: Record<string, boolean> = {}
for (const middleware of value) {
normalizedRules[middleware] = true
}
(rules[rule] as NitroOptions['routeRules']).appMiddleware = normalizedRules
}
}
})
nuxt.hook('nitro:init', (nitro) => {
nitro.hooks.hook('rollup:before', async (nitro) => {
const routeRules = {} as Record<string, any>
const _routeRules = nitro.options.routeRules
for (const key in _routeRules) {
if (key === '/__nuxt_error') { continue }
let hasRules = false
const filteredRules = {} as Record<string, any>
for (const routeKey in _routeRules[key]) {
const value = (_routeRules as any)[key][routeKey]
if (['prerender', 'redirect', 'appMiddleware'].includes(routeKey) && value) {
if (routeKey === 'redirect') {
filteredRules[routeKey] = typeof value === 'string' ? value : value.to
} else {
filteredRules[routeKey] = value
}
hasRules = true
}
}
if (hasRules) {
routeRules[key] = filteredRules
}
}
// Add pages prerendered but not covered by route rules
const prerenderedRoutes = new Set<string>()
const routeRulesMatcher = toRouteMatcher(
createRadixRouter({ routes: routeRules }),
)
if (nitro._prerenderedRoutes?.length) {
const payloadSuffix = nuxt.options.experimental.renderJsonPayloads ? '/_payload.json' : '/_payload.js'
for (const route of nitro._prerenderedRoutes) {
if (!route.error && route.route.endsWith(payloadSuffix)) {
const url = route.route.slice(0, -payloadSuffix.length) || '/'
const rules = defu({}, ...routeRulesMatcher.matchAll(url).reverse()) as Record<string, any>
if (!rules.prerender) {
prerenderedRoutes.add(url)
}
}
}
}
const manifest = {
id: buildId,
timestamp: buildTimestamp,
matcher: exportMatcher(routeRulesMatcher),
prerendered: nuxt.options.dev ? [] : [...prerenderedRoutes],
}
await fsp.mkdir(join(tempDir, 'meta'), { recursive: true })
await fsp.writeFile(join(tempDir, 'latest.json'), JSON.stringify({
id: buildId,
timestamp: buildTimestamp,
}))
await fsp.writeFile(join(tempDir, `meta/${buildId}.json`), JSON.stringify(manifest))
})
})
}
// Add fallback server for `ssr: false`
if (!nuxt.options.ssr) {
nitroConfig.virtual!['#build/dist/server/server.mjs'] = 'export default () => {}'
// In case a non-normalized absolute path is called for on Windows
if (process.platform === 'win32') {
nitroConfig.virtual!['#build/dist/server/server.mjs'.replace(/\//g, '\\')] = 'export default () => {}'
}
}
if (nuxt.options.builder === '@nuxt/webpack-builder' || nuxt.options.dev) {
nitroConfig.virtual!['#build/dist/server/styles.mjs'] = 'export default {}'
// In case a non-normalized absolute path is called for on Windows
if (process.platform === 'win32') {
nitroConfig.virtual!['#build/dist/server/styles.mjs'.replace(/\//g, '\\')] = 'export default {}'
}
}
// Register nuxt protection patterns
nitroConfig.rollupConfig!.plugins = await nitroConfig.rollupConfig!.plugins || []
nitroConfig.rollupConfig!.plugins = toArray(nitroConfig.rollupConfig!.plugins)
nitroConfig.rollupConfig!.plugins!.push(
ImportProtectionPlugin.rollup({
rootDir: nuxt.options.rootDir,
modulesDir: nuxt.options.modulesDir,
patterns: nuxtImportProtections(nuxt, { isNitro: true }),
exclude: [/core[\\/]runtime[\\/]nitro[\\/]renderer/],
}),
)
// Extend nitro config with hook
await nuxt.callHook('nitro:config', nitroConfig)
// TODO: extract to shared utility?
const excludedAlias = [/^@vue\/.*$/, '#imports', 'vue-demi', /^#app/]
const basePath = nitroConfig.typescript!.tsConfig!.compilerOptions?.baseUrl ? resolve(nuxt.options.buildDir, nitroConfig.typescript!.tsConfig!.compilerOptions?.baseUrl) : nuxt.options.buildDir
const aliases = nitroConfig.alias!
const tsConfig = nitroConfig.typescript!.tsConfig!
tsConfig.compilerOptions = tsConfig.compilerOptions || {}
tsConfig.compilerOptions.paths = tsConfig.compilerOptions.paths || {}
for (const _alias in aliases) {
const alias = _alias as keyof typeof aliases
if (excludedAlias.some(pattern => typeof pattern === 'string' ? alias === pattern : pattern.test(alias))) {
continue
}
if (alias in tsConfig.compilerOptions.paths) { continue }
const absolutePath = resolve(basePath, aliases[alias]!)
const stats = await fsp.stat(absolutePath).catch(() => null /* file does not exist */)
if (stats?.isDirectory()) {
tsConfig.compilerOptions.paths[alias] = [absolutePath]
tsConfig.compilerOptions.paths[`${alias}/*`] = [`${absolutePath}/*`]
} else {
tsConfig.compilerOptions.paths[alias] = [absolutePath.replace(/\b\.\w+$/g, '')] /* remove extension */
}
}
// Init nitro
const nitro = await createNitro(nitroConfig, {
compatibilityDate: nuxt.options.compatibilityDate,
})
// Trigger Nitro reload when SPA loading template changes
const spaLoadingTemplateFilePath = await spaLoadingTemplatePath(nuxt)
nuxt.hook('builder:watch', async (_event, relativePath) => {
const path = resolve(nuxt.options.srcDir, relativePath)
if (path === spaLoadingTemplateFilePath) {
await nitro.hooks.callHook('rollup:reload')
}
})
const cacheDir = resolve(nuxt.options.buildDir, 'cache/nitro/prerender')
const cacheDriverPath = join(distDir, 'core/runtime/nitro/cache-driver.js')
await fsp.rm(cacheDir, { recursive: true, force: true }).catch(() => {})
nitro.options._config.storage = defu(nitro.options._config.storage, {
'internal:nuxt:prerender': {
// TODO: resolve upstream where file URLs are not being resolved/inlined correctly
driver: isWindows ? pathToFileURL(cacheDriverPath).href : cacheDriverPath,
base: cacheDir,
},
})
// Expose nitro to modules and kit
nuxt._nitro = nitro
await nuxt.callHook('nitro:init', nitro)
// Connect vfs storages
nitro.vfs = nuxt.vfs = nitro.vfs || nuxt.vfs || {}
// Connect hooks
nuxt.hook('close', () => nitro.hooks.callHook('close'))
nitro.hooks.hook('prerender:routes', (routes) => {
return nuxt.callHook('prerender:routes', { routes })
})
// Enable runtime compiler client side
if (nuxt.options.vue.runtimeCompiler) {
nuxt.hook('vite:extendConfig', (config, { isClient }) => {
if (isClient) {
if (Array.isArray(config.resolve!.alias)) {
config.resolve!.alias.push({
find: 'vue',
replacement: 'vue/dist/vue.esm-bundler',
})
} else {
config.resolve!.alias = {
...config.resolve!.alias,
vue: 'vue/dist/vue.esm-bundler',
}
}
}
})
nuxt.hook('webpack:config', (configuration) => {
const clientConfig = configuration.find(config => config.name === 'client')
if (!clientConfig!.resolve) { clientConfig!.resolve!.alias = {} }
if (Array.isArray(clientConfig!.resolve!.alias)) {
clientConfig!.resolve!.alias.push({
name: 'vue',
alias: 'vue/dist/vue.esm-bundler',
})
} else {
clientConfig!.resolve!.alias!.vue = 'vue/dist/vue.esm-bundler'
}
})
}
// Setup handlers
const devMiddlewareHandler = dynamicEventHandler()
nitro.options.devHandlers.unshift({ handler: devMiddlewareHandler })
nitro.options.devHandlers.push(...nuxt.options.devServerHandlers)
nitro.options.handlers.unshift({
route: '/__nuxt_error',
lazy: true,
handler: resolve(distDir, 'core/runtime/nitro/renderer'),
})
if (!nuxt.options.dev && nuxt.options.experimental.noVueServer) {
nitro.hooks.hook('rollup:before', (nitro) => {
if (nitro.options.preset === 'nitro-prerender') {
nitro.options.errorHandler = resolve(distDir, 'core/runtime/nitro/error')
return
}
const nuxtErrorHandler = nitro.options.handlers.findIndex(h => h.route === '/__nuxt_error')
if (nuxtErrorHandler >= 0) {
nitro.options.handlers.splice(nuxtErrorHandler, 1)
}
nitro.options.renderer = undefined
})
}
// Add typed route responses
nuxt.hook('prepare:types', async (opts) => {
if (!nuxt.options.dev) {
await writeTypes(nitro)
}
// Exclude nitro output dir from typescript
opts.tsConfig.exclude = opts.tsConfig.exclude || []
opts.tsConfig.exclude.push(relative(nuxt.options.buildDir, resolve(nuxt.options.rootDir, nitro.options.output.dir)))
opts.references.push({ path: resolve(nuxt.options.buildDir, 'types/nitro.d.ts') })
})
if (nitro.options.static) {
nitro.hooks.hook('prerender:routes', (routes) => {
for (const route of ['/200.html', '/404.html']) {
routes.add(route)
}
if (!nuxt.options.ssr) {
routes.add('/index.html')
}
})
}
// Copy public assets after prerender so app manifest can be present
if (!nuxt.options.dev) {
nitro.hooks.hook('rollup:before', async (nitro) => {
await copyPublicAssets(nitro)
await nuxt.callHook('nitro:build:public-assets', nitro)
})
}
// nuxt build/dev
nuxt.hook('build:done', async () => {
await nuxt.callHook('nitro:build:before', nitro)
if (nuxt.options.dev) {
await build(nitro)
} else {
await prepare(nitro)
await prerender(nitro)
logger.restoreAll()
await build(nitro)
logger.wrapAll()
if (nitro.options.static) {
const distDir = resolve(nuxt.options.rootDir, 'dist')
if (!existsSync(distDir)) {
await fsp.symlink(nitro.options.output.publicDir, distDir, 'junction').catch(() => {})
}
}
}
})
// nuxt dev
if (nuxt.options.dev) {
nuxt.hook('webpack:compiled', () => { nuxt.server.reload() })
nuxt.hook('vite:compiled', () => { nuxt.server.reload() })
nuxt.hook('server:devHandler', (h) => { devMiddlewareHandler.set(h) })
nuxt.server = createDevServer(nitro)
const waitUntilCompile = new Promise<void>(resolve => nitro.hooks.hook('compiled', () => resolve()))
nuxt.hook('build:done', () => waitUntilCompile)
}
}
function relativeWithDot (from: string, to: string) {
return relative(from, to).replace(/^([^.])/, './$1') || '.'
}
async function spaLoadingTemplatePath (nuxt: Nuxt) {
if (typeof nuxt.options.spaLoadingTemplate === 'string') {
return resolve(nuxt.options.srcDir, nuxt.options.spaLoadingTemplate)
}
const possiblePaths = nuxt.options._layers.map(layer => resolve(layer.config.srcDir, layer.config.dir?.app || 'app', 'spa-loading-template.html'))
return await findPath(possiblePaths) ?? resolve(nuxt.options.srcDir, nuxt.options.dir?.app || 'app', 'spa-loading-template.html')
}
async function spaLoadingTemplate (nuxt: Nuxt) {
if (nuxt.options.spaLoadingTemplate === false) { return '' }
const spaLoadingTemplate = await spaLoadingTemplatePath(nuxt)
try {
if (existsSync(spaLoadingTemplate)) {
return readFileSync(spaLoadingTemplate, 'utf-8')
}
} catch {
// fall through if we have issues reading the file
}
if (nuxt.options.spaLoadingTemplate === true) {
return defaultSpaLoadingTemplate()
}
if (nuxt.options.spaLoadingTemplate) {
logger.warn(`Could not load custom \`spaLoadingTemplate\` path as it does not exist: \`${nuxt.options.spaLoadingTemplate}\`.`)
}
return ''
}
``` | /content/code_sandbox/packages/nuxt/src/core/nitro.ts | xml | 2016-10-26T11:18:47 | 2024-08-16T19:32:46 | nuxt | nuxt/nuxt | 53,705 | 5,745 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const FilePDBIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M256 1920h896v128H128V0h1115l549 549v475h-128V640h-512V128H256v1792zM1280 512h293l-293-293v293zm320 640q93 0 174 35t143 96 96 142 35 175q0 93-35 174t-96 143-142 96-175 35q-93 0-174-35t-143-96-96-142-35-175q0-93 35-174t96-143 142-96 175-35z" />
</svg>
),
displayName: 'FilePDBIcon',
});
export default FilePDBIcon;
``` | /content/code_sandbox/packages/react-icons-mdl2/src/components/FilePDBIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 238 |
```xml
import path from 'path'
import util from 'util'
import gracefulFs from 'graceful-fs'
const readdir = util.promisify(gracefulFs.readdir)
export async function readModulesDir (modulesDir: string): Promise<string[] | null> {
try {
return await _readModulesDir(modulesDir)
} catch (err: unknown) {
if (util.types.isNativeError(err) && 'code' in err && err.code === 'ENOENT') return null
throw err
}
}
async function _readModulesDir (
modulesDir: string,
scope?: string
): Promise<string[]> {
const pkgNames: string[] = []
const parentDir = scope ? path.join(modulesDir, scope) : modulesDir
await Promise.all((await readdir(parentDir, { withFileTypes: true })).map(async (dir) => {
if (dir.isFile() || dir.name[0] === '.') return
if (!scope && dir.name[0] === '@') {
pkgNames.push(...await _readModulesDir(modulesDir, dir.name))
return
}
const pkgName = scope ? `${scope}/${dir.name as string}` : dir.name
pkgNames.push(pkgName)
}))
return pkgNames
}
``` | /content/code_sandbox/fs/read-modules-dir/src/index.ts | xml | 2016-01-28T07:40:43 | 2024-08-16T12:38:47 | pnpm | pnpm/pnpm | 28,869 | 273 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="path_to_url">
<!-- visual studio will add these, but this will make that unnecessary
and keep project files cleaner -->
<ItemGroup>
<Compile Update="*.Designer.cs" DesignTime="True" AutoGen="True" DependentUpon="$([System.IO.Path]::GetFileNameWithoutExtension('%(Filename)')).resx" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="*.resx" Generator="ResXFileCodeGenerator" LastGenOutput="%(Filename).Designer.cs" />
</ItemGroup>
</Project>
``` | /content/code_sandbox/build/resource.targets | xml | 2016-07-26T14:13:32 | 2024-08-15T14:35:11 | aspnet-api-versioning | dotnet/aspnet-api-versioning | 3,024 | 133 |
```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.
-->
<project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url">
<parent>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-all</artifactId>
<version>4.8.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<artifactId>rocketmq-client</artifactId>
<name>rocketmq-client ${project.version}</name>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rocketmq-common</artifactId>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
``` | /content/code_sandbox/client/pom.xml | xml | 2016-06-15T08:56:27 | 2024-07-22T17:20:00 | RocketMQC | ProgrammerAnthony/RocketMQC | 1,072 | 425 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="path_to_url"
xmlns:activiti="path_to_url"
targetNamespace="Examples">
<process id="nestedSubProcessWithTimer">
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="outerSubProcess" />
<subProcess id="outerSubProcess">
<startEvent id="outerSubProcessStart" />
<sequenceFlow id="flow2" sourceRef="outerSubProcessStart" targetRef="innerSubProcess" />
<subProcess id="innerSubProcess">
<startEvent id="innerSubProcessStart" />
<sequenceFlow id="flow3" sourceRef="innerSubProcessStart" targetRef="innerSubProcessTask" />
<userTask id="innerSubProcessTask" name="Task in subprocess" />
<sequenceFlow id="flow4" sourceRef="innerSubProcessTask" targetRef="innerSubProcessEnd" />
<endEvent id="innerSubProcessEnd" />
</subProcess>
<sequenceFlow id="flow7" sourceRef="innerSubProcess" targetRef="outerSubProcessEnd" />
<endEvent id="outerSubProcessEnd" />
<!-- Timer attached to inner sub process -->
<boundaryEvent id="escalationTimer" attachedToRef="innerSubProcess">
<timerEventDefinition>
<timeDuration>PT1H</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<sequenceFlow id="flow5" sourceRef="escalationTimer" targetRef="escalationTask" />
<userTask id="escalationTask" name="Escalated task" />
<sequenceFlow id="flow6" sourceRef="escalationTask" targetRef="outerSubProcessEnd1" />
<endEvent id="outerSubProcessEnd1" />
</subProcess>
<sequenceFlow id="flow8" sourceRef="outerSubProcess" targetRef="afterSubProcessTask" />
<userTask id="afterSubProcessTask" name="Task after subprocesses" />
<sequenceFlow id="flow9" sourceRef="afterSubProcessTask" targetRef="theEnd" />
<endEvent id="theEnd" />
</process>
</definitions>
``` | /content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/bpmn/subprocess/SubProcessTest.testNestedSimpleSubprocessWithTimerOnInnerSubProcess.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 522 |
```xml
<vector xmlns:android="path_to_url" android:height="34.0dp" android:tint="?attr/colorControlNormal" android:viewportHeight="15" android:viewportWidth="15" android:width="34.0dp">
<path android:fillColor="@android:color/white" android:pathData="M4 6.51C4 6.64 3.95 6.76 3.85 6.85L2.85 7.85C2.7 8.01 2.46 8.05 2.26 7.94L2 7.8L2 8.94L3.22 9.55C3.39 9.64 3.5 9.81 3.5 10L3.5 11.5C3.5 11.78 3.28 12 3 12C2.72 12 2.5 11.78 2.5 11.5L2.5 10.31L1.55 9.83C1.53 9.85 1.52 9.86 1.5 9.87L1.5 11L1.47 11.16L0.97 12.66C0.89 12.92 0.6 13.06 0.34 12.97C0.08 12.89 -0.06 12.6 0.03 12.34L0.5 10.92L0.5 9.87C0.2 9.69 0 9.37 0 9L0 7.25C0 6.7 0.45 6.25 1 6.25C1.21 6.25 1.4 6.31 1.57 6.43L2.41 6.88L3.15 6.15C3.34 5.95 3.66 5.95 3.85 6.15C3.95 6.24 4 6.36 4 6.49L4 3C4 1.9 4.9 1 6 1L13 1C14.1 1 15 1.9 15 3L15 10C15 11.1 14.1 12 13 12L6 12C4.9 12 4 11.1 4 10L4 6.51ZM7.75 12.5L7.5 13L11.5 13L11.25 12.5L12.75 12.5L14 15L12.5 15L12 14L7 14L6.5 15L5 15L6.25 12.5L7.75 12.5ZM11 9.5C11 10.05 11.45 10.5 12 10.5C12.55 10.5 13 10.05 13 9.5C13 8.95 12.55 8.5 12 8.5C11.45 8.5 11 8.95 11 9.5ZM8 9.5C8 8.95 7.55 8.5 7 8.5C6.45 8.5 6 8.95 6 9.5C6 10.05 6.45 10.5 7 10.5C7.55 10.5 8 10.05 8 9.5ZM5 3.5L5.01 6.5C5.01 6.78 5.24 7 5.51 7L8.51 7C8.78 7 9.01 6.78 9.01 6.5C9.01 6.5 9.01 6.5 9.01 6.5L8.99 3.5C8.99 3.22 8.77 3 8.49 3L5.5 3C5.22 3 5 3.22 5 3.5C5 3.5 5 3.5 5 3.5ZM10 3.5L10.01 6.5C10.01 6.78 10.24 7 10.51 7L13.51 7C13.78 7 14.01 6.78 14.01 6.5C14.01 6.5 14.01 6.5 14.01 6.5L13.99 3.5C13.99 3.22 13.77 3 13.49 3L10.5 3C10.22 3 10 3.22 10 3.5C10 3.5 10 3.5 10 3.5ZM1 6C0.45 6 0 5.55 0 5C0 4.45 0.45 4 1 4C1.55 4 2 4.45 2 5C2 5.55 1.55 6 1 6Z"/>
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/ic_preset_temaki_board_train.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 1,202 |
```xml
import * as React from 'react';
import { HorizontalBarChartWithAxisTooltipExample } from './HorizontalBarChartWithAxis.AxisTooltip.Example';
import { HorizontalBarChartWithAxisBasicExample } from './HorizontalBarChartWithAxis.Basic.Example';
import { HorizontalBarChartWithAxisStringAxisTooltipExample } from './HorizontalBarChartWithAxis.StringAxisTooltip.Example';
export const Basic = () => <HorizontalBarChartWithAxisBasicExample />;
export const AxisTooltip = () => <HorizontalBarChartWithAxisTooltipExample />;
export const StringAxisTooltip = () => <HorizontalBarChartWithAxisStringAxisTooltipExample />;
export default {
title: 'Components/HorizontalBarChartWithAxis',
};
``` | /content/code_sandbox/packages/react-examples/src/react-charting/HorizontalBarChartWithAxis/index.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 146 |
```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 itercuhmean = require( './index' );
/**
* Returns an iterator protocol-compliant object.
*
* @returns iterator protocol-compliant object
*/
function iterator() {
return {
'next': next
};
/**
* Implements the iterator protocol `next` method.
*
* @returns iterator protocol-compliant object
*/
function next() {
return {
'value': true,
'done': false
};
}
}
// TESTS //
// The function returns an iterator...
{
itercuhmean( iterator() ); // $ExpectType Iterator
}
// The compiler throws an error if the function is provided a value other than an iterator protocol-compliant object...
{
itercuhmean( '5' ); // $ExpectError
itercuhmean( 5 ); // $ExpectError
itercuhmean( true ); // $ExpectError
itercuhmean( false ); // $ExpectError
itercuhmean( null ); // $ExpectError
itercuhmean( undefined ); // $ExpectError
itercuhmean( [] ); // $ExpectError
itercuhmean( {} ); // $ExpectError
itercuhmean( ( x: number ): number => x ); // $ExpectError
}
// The compiler throws an error if the function is provided insufficient arguments...
{
itercuhmean(); // $ExpectError
}
``` | /content/code_sandbox/lib/node_modules/@stdlib/stats/iter/cuhmean/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 346 |
```xml
import * as React from 'react';
import { Menu } from '@fluentui/react-northstar';
const items = [
{ key: 'editorials', content: 'Editorials' },
{ key: 'review', content: 'Reviews' },
{ key: 'events', content: 'Upcoming Events' },
];
const MenuExampleUnderlined = () => <Menu defaultActiveIndex={0} items={items} underlined primary />;
export default MenuExampleUnderlined;
``` | /content/code_sandbox/packages/fluentui/docs/src/examples/components/Menu/Types/MenuExampleUnderlined.shorthand.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 103 |
```xml
import { DataSource } from "../data-source/DataSource"
import * as yargs from "yargs"
import chalk from "chalk"
import { PlatformTools } from "../platform/PlatformTools"
import path from "path"
import process from "process"
import { CommandUtils } from "./CommandUtils"
/**
* Synchronizes database schema with entities.
*/
export class SchemaSyncCommand implements yargs.CommandModule {
command = "schema:sync"
describe =
"Synchronizes your entities with database schema. It runs schema update queries on all connections you have. " +
"To run update queries on a concrete connection use -c option."
builder(args: yargs.Argv) {
return args.option("dataSource", {
alias: "d",
describe:
"Path to the file where your DataSource instance is defined.",
demandOption: true,
})
}
async handler(args: yargs.Arguments) {
let dataSource: DataSource | undefined = undefined
try {
dataSource = await CommandUtils.loadDataSource(
path.resolve(process.cwd(), args.dataSource as string),
)
dataSource.setOptions({
synchronize: false,
migrationsRun: false,
dropSchema: false,
logging: ["query", "schema"],
})
await dataSource.initialize()
await dataSource.synchronize()
await dataSource.destroy()
console.log(
chalk.green("Schema synchronization finished successfully."),
)
} catch (err) {
PlatformTools.logCmdErr("Error during schema synchronization:", err)
if (dataSource && dataSource.isInitialized)
await dataSource.destroy()
process.exit(1)
}
}
}
``` | /content/code_sandbox/src/commands/SchemaSyncCommand.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 339 |
```xml
import React from 'react';
import { View, ScrollView, StyleSheet, Image } from 'react-native';
import { Text, Card, Button, Icon } from 'react-native-elements';
import { Header } from '../components/header';
const users = [
{
name: 'brynn',
avatar: 'path_to_url
},
{
name: 'thot leader',
avatar:
'path_to_url
},
{
name: 'jsa',
avatar: 'path_to_url
},
{
name: 'talhaconcepts',
avatar: 'path_to_url
},
{
name: 'andy vitale',
avatar: 'path_to_url
},
{
name: 'katy friedson',
avatar:
'path_to_url
},
];
type CardsComponentsProps = {};
const Cards: React.FunctionComponent<CardsComponentsProps> = () => {
return (
<>
<Header title="Cards" view="card" />
<ScrollView>
<View style={styles.container}>
<Card>
<Card.Title>CARD WITH DIVIDER</Card.Title>
<Card.Divider />
{users.map((u, i) => {
return (
<View key={i} style={styles.user}>
<Image
style={styles.image}
resizeMode="cover"
source={{ uri: u.avatar }}
/>
<Text style={styles.name}>{u.name}</Text>
</View>
);
})}
</Card>
<Card containerStyle={{ marginTop: 15 }}>
<Card.Title>FONTS</Card.Title>
<Card.Divider />
<Text style={styles.fonts} h1>
h1 Heading
</Text>
<Text style={styles.fonts} h2>
h2 Heading
</Text>
<Text style={styles.fonts} h3>
h3 Heading
</Text>
<Text style={styles.fonts} h4>
h4 Heading
</Text>
<Text style={styles.fonts}>Normal Text</Text>
</Card>
<Card>
<Card.Title>HELLO WORLD</Card.Title>
<Card.Divider />
<Card.Image
style={{ padding: 0 }}
source={{
uri:
'path_to_url
}}
/>
<Text style={{ marginBottom: 10 }}>
The idea with React Native Elements is more about component
structure than actual design.
</Text>
<Button
icon={
<Icon
name="code"
color="#ffffff"
iconStyle={{ marginRight: 10 }}
/>
}
buttonStyle={{
borderRadius: 0,
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
}}
title="VIEW NOW"
/>
</Card>
</View>
</ScrollView>
</>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
},
fonts: {
marginBottom: 8,
},
user: {
flexDirection: 'row',
marginBottom: 6,
},
image: {
width: 30,
height: 30,
marginRight: 10,
},
name: {
fontSize: 16,
marginTop: 5,
},
});
export default Cards;
``` | /content/code_sandbox/src/views/cards.tsx | xml | 2016-09-04T22:44:08 | 2024-07-13T15:14:00 | react-native-elements-app | react-native-elements/react-native-elements-app | 1,285 | 721 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>FooterText</key>
<string>This application makes use of the following third party libraries:</string>
<key>Title</key>
<string>Acknowledgements</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
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.
</string>
<string>MIT</string>
<key>Title</key>
<string>DBDebugToolkit</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>Generated by CocoaPods - path_to_url
<key>Title</key>
<string></string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
</array>
<key>StringsTable</key>
<string>Acknowledgements</string>
<key>Title</key>
<string>Acknowledgements</string>
</dict>
</plist>
``` | /content/code_sandbox/Example/Pods/Target Support Files/Pods-DBDebugToolkit_Example/Pods-DBDebugToolkit_Example-acknowledgements.plist | xml | 2016-11-19T13:18:25 | 2024-08-11T21:26:13 | DBDebugToolkit | dbukowski/DBDebugToolkit | 1,262 | 517 |
```xml
<!--
Description: item link
-->
<rss version="2.0">
<channel>
<item>
<link>path_to_url
</item>
</channel>
</rss>
``` | /content/code_sandbox/testdata/translator/rss/feed_item_link_-_rss_channel_item_link.xml | xml | 2016-01-23T02:44:34 | 2024-08-16T15:16:03 | gofeed | mmcdole/gofeed | 2,547 | 43 |
```xml
import { expectType } from "tsd";
import pino from '../../pino';
import { pino as pinoNamed, P } from "../../pino";
import * as pinoStar from "../../pino";
import pinoCjsImport = require ("../../pino");
const pinoCjs = require("../../pino");
const { P: pinoCjsNamed } = require('pino')
const log = pino();
expectType<P.LogFn>(log.info);
expectType<P.LogFn>(log.error);
expectType<pino.Logger>(pinoNamed());
expectType<P.Logger>(pinoNamed());
expectType<pino.Logger>(pinoStar.default());
expectType<pino.Logger>(pinoStar.pino());
expectType<pino.Logger>(pinoCjsImport.default());
expectType<pino.Logger>(pinoCjsImport.pino());
expectType<any>(pinoCjsNamed());
expectType<any>(pinoCjs());
const levelChangeEventListener: P.LevelChangeEventListener = (
lvl: P.LevelWithSilent | string,
val: number,
prevLvl: P.LevelWithSilent | string,
prevVal: number,
) => {}
expectType<P.LevelChangeEventListener>(levelChangeEventListener)
``` | /content/code_sandbox/test/types/pino-import.test-d.ts | xml | 2016-02-16T14:14:29 | 2024-08-16T17:25:00 | pino | pinojs/pino | 13,839 | 258 |
```xml
// See LICENSE in the project root for license information.
type RushLibModuleType = Record<string, unknown>;
declare const global: typeof globalThis & {
___rush___rushLibModule?: RushLibModuleType;
};
export class RushSdk {
private static _initialized: boolean = false;
public static ensureInitialized(): void {
if (!RushSdk._initialized) {
const rushLibModule: RushLibModuleType = require('../../index');
// The "@rushstack/rush-sdk" shim will look for this global variable to obtain
// Rush's instance of "@microsoft/rush-lib".
global.___rush___rushLibModule = rushLibModule;
RushSdk._initialized = true;
}
}
}
``` | /content/code_sandbox/libraries/rush-lib/src/pluginFramework/PluginLoader/RushSdk.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 154 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
published by the Free Software Foundation. Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the LICENSE file that accompanied this code.
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
or visit www.oracle.com if you need additional information or have any
questions.
-->
<project basedir="." default="netbeans" name="lib.profiler.charts">
<description>Builds, tests, and runs the project org.graalvm.visualvm.lib.charts</description>
<import file="nbproject/build-impl.xml"/>
</project>
``` | /content/code_sandbox/visualvm/libs.profiler/lib.profiler.charts/build.xml | xml | 2016-09-12T14:44:30 | 2024-08-16T14:41:50 | visualvm | oracle/visualvm | 2,821 | 266 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
android:layout_width="wrap_content"
android:layout_height="@dimen/default_preview_height"
android:background="@android:color/transparent"
android:gravity="center"
android:orientation="horizontal">
</LinearLayout>
``` | /content/code_sandbox/RxUI/src/main/res/layout/color_preview.xml | xml | 2016-09-24T09:30:45 | 2024-08-16T09:54:41 | RxTool | Tamsiree/RxTool | 12,242 | 74 |
```xml
import { Component } from '@angular/core';
import { Code } from '@domain/code';
@Component({
selector: 'cascade-select-loading-demo',
template: `
<app-docsectiontext>
<p>Loading state can be used <i>loading</i> property.</p>
</app-docsectiontext>
<div class="card flex justify-content-center">
<p-cascadeSelect [loading]="true" [style]="{ minWidth: '14rem' }" placeholder="Loading..." />
</div>
<app-code [code]="code" selector="cascade-select-loading-demo"></app-code>
`
})
export class LoadingDoc {
code: Code = {
basic: `<p-cascadeSelect
[loading]="true"
[style]="{ minWidth: '14rem' }"
placeholder="Loading..." />`,
html: `<div class="card flex justify-content-center">
<p-cascadeSelect
[loading]="true"
[style]="{ minWidth: '14rem' }"
placeholder="Loading..." />
</div>`,
typescript: `import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CascadeSelectModule } from 'primeng/cascadeselect';
@Component({
selector: 'cascade-select-loading-demo',
templateUrl: './cascade-select-loading-demo.html',
standalone: true,
imports: [FormsModule, CascadeSelectModule]
})
export class CascadeSelectLoadingDemo {}`
};
}
``` | /content/code_sandbox/src/app/showcase/doc/cascadeselect/loadingdoc.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 316 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "path_to_url">
<filesystem>
<folder name="ConsumerVisualVM">
<file name="glassfish.instance">
<attr name="instanceCreate" methodvalue="org.netbeans.modules.consumervisualvm.api.PluginInfo.create"/>
<attr name="codeName" stringvalue="net.java.visualvm.modules.glassfish"/>
<attr name="delegateLayer" urlvalue="nbresloc:/org/netbeans/modules/consumerentrypoints/resources/glassfish.xml"/>
</file>
</folder>
</filesystem>
``` | /content/code_sandbox/plugins/consumerentrypoints/src/org/netbeans/modules/consumerentrypoints/resources/layer.xml | xml | 2016-09-12T14:44:30 | 2024-08-16T14:41:50 | visualvm | oracle/visualvm | 2,821 | 144 |
```xml
<?xml version="1.0" encoding="UTF-8" ?>
<!--
-->
<!DOCTYPE ldml SYSTEM "../../dtd/cldr/common/dtd/ldml.dtd">
<ldml>
<identity>
<version number="$Revision$"/>
<language type="sr"/>
</identity>
<rbnf>
<rulesetGrouping type="SpelloutRules">
<ruleset type="lenient-parse" access="private">
<rbnfrule value="0">&[last primary ignorable ] ' ' ',' '-' '';</rbnfrule>
</ruleset>
</rulesetGrouping>
</rbnf>
</ldml>
``` | /content/code_sandbox/icu4c/source/data/xml/rbnf/sr.xml | xml | 2016-01-08T02:42:32 | 2024-08-16T18:14:55 | icu | unicode-org/icu | 2,693 | 149 |
```xml
import { checkPermission } from '@erxes/api-utils/src/permissions';
import { IContext } from '../../../connectionResolver';
const loyaltyConfigQueries = {
async loyaltyConfigs(_root, _params, { models }: IContext) {
return models.LoyaltyConfigs.find({});
}
};
checkPermission(loyaltyConfigQueries, 'loyaltyConfigs', 'manageLoyalties');
export default loyaltyConfigQueries;
``` | /content/code_sandbox/packages/plugin-loyalties-api/src/graphql/resolvers/queries/configs.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 86 |
```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 HOURS_IN_DAY = require( './index' );
// TESTS //
// The variable is a number...
{
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
HOURS_IN_DAY; // $ExpectType number
}
``` | /content/code_sandbox/lib/node_modules/@stdlib/constants/time/hours-in-day/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 100 |
```xml
import { DialectOptions } from '../../dialect.js';
import { expandPhrases } from '../../expandPhrases.js';
import { EOF_TOKEN, isToken, Token, TokenType } from '../../lexer/token.js';
import { dataTypes, keywords } from './spark.keywords.js';
import { functions } from './spark.functions.js';
// path_to_url
const reservedSelect = expandPhrases(['SELECT [ALL | DISTINCT]']);
const reservedClauses = expandPhrases([
// queries
'WITH',
'FROM',
'WHERE',
'GROUP BY',
'HAVING',
'WINDOW',
'PARTITION BY',
'ORDER BY',
'SORT BY',
'CLUSTER BY',
'DISTRIBUTE BY',
'LIMIT',
// Data manipulation
// - insert:
'INSERT [INTO | OVERWRITE] [TABLE]',
'VALUES',
// - insert overwrite directory:
// path_to_url
'INSERT OVERWRITE [LOCAL] DIRECTORY',
// - load:
// path_to_url
'LOAD DATA [LOCAL] INPATH',
'[OVERWRITE] INTO TABLE',
]);
const standardOnelineClauses = expandPhrases(['CREATE [EXTERNAL] TABLE [IF NOT EXISTS]']);
const tabularOnelineClauses = expandPhrases([
// - create:
'CREATE [OR REPLACE] [GLOBAL TEMPORARY | TEMPORARY] VIEW [IF NOT EXISTS]',
// - drop table:
'DROP TABLE [IF EXISTS]',
// - alter table:
'ALTER TABLE',
'ADD COLUMNS',
'DROP {COLUMN | COLUMNS}',
'RENAME TO',
'RENAME COLUMN',
'ALTER COLUMN',
// - truncate:
'TRUNCATE TABLE',
// other
'LATERAL VIEW',
'ALTER DATABASE',
'ALTER VIEW',
'CREATE DATABASE',
'CREATE FUNCTION',
'DROP DATABASE',
'DROP FUNCTION',
'DROP VIEW',
'REPAIR TABLE',
'USE DATABASE',
// Data Retrieval
'TABLESAMPLE',
'PIVOT',
'TRANSFORM',
'EXPLAIN',
// Auxiliary
'ADD FILE',
'ADD JAR',
'ANALYZE TABLE',
'CACHE TABLE',
'CLEAR CACHE',
'DESCRIBE DATABASE',
'DESCRIBE FUNCTION',
'DESCRIBE QUERY',
'DESCRIBE TABLE',
'LIST FILE',
'LIST JAR',
'REFRESH',
'REFRESH TABLE',
'REFRESH FUNCTION',
'RESET',
'SHOW COLUMNS',
'SHOW CREATE TABLE',
'SHOW DATABASES',
'SHOW FUNCTIONS',
'SHOW PARTITIONS',
'SHOW TABLE EXTENDED',
'SHOW TABLES',
'SHOW TBLPROPERTIES',
'SHOW VIEWS',
'UNCACHE TABLE',
]);
const reservedSetOperations = expandPhrases([
'UNION [ALL | DISTINCT]',
'EXCEPT [ALL | DISTINCT]',
'INTERSECT [ALL | DISTINCT]',
]);
const reservedJoins = expandPhrases([
'JOIN',
'{LEFT | RIGHT | FULL} [OUTER] JOIN',
'{INNER | CROSS} JOIN',
'NATURAL [INNER] JOIN',
'NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN',
// non-standard-joins
'[LEFT] {ANTI | SEMI} JOIN',
'NATURAL [LEFT] {ANTI | SEMI} JOIN',
]);
const reservedPhrases = expandPhrases([
'ON DELETE',
'ON UPDATE',
'CURRENT ROW',
'{ROWS | RANGE} BETWEEN',
]);
// path_to_url
export const spark: DialectOptions = {
name: 'spark',
tokenizerOptions: {
reservedSelect,
reservedClauses: [...reservedClauses, ...standardOnelineClauses, ...tabularOnelineClauses],
reservedSetOperations,
reservedJoins,
reservedPhrases,
supportsXor: true,
reservedKeywords: keywords,
reservedDataTypes: dataTypes,
reservedFunctionNames: functions,
extraParens: ['[]'],
stringTypes: [
"''-bs",
'""-bs',
{ quote: "''-raw", prefixes: ['R', 'X'], requirePrefix: true },
{ quote: '""-raw', prefixes: ['R', 'X'], requirePrefix: true },
],
identTypes: ['``'],
variableTypes: [{ quote: '{}', prefixes: ['$'], requirePrefix: true }],
operators: ['%', '~', '^', '|', '&', '<=>', '==', '!', '||', '->'],
postProcess,
},
formatOptions: {
onelineClauses: [...standardOnelineClauses, ...tabularOnelineClauses],
tabularOnelineClauses,
},
};
function postProcess(tokens: Token[]) {
return tokens.map((token, i) => {
const prevToken = tokens[i - 1] || EOF_TOKEN;
const nextToken = tokens[i + 1] || EOF_TOKEN;
// [WINDOW](...)
if (isToken.WINDOW(token) && nextToken.type === TokenType.OPEN_PAREN) {
// This is a function call, treat it as a reserved function name
return { ...token, type: TokenType.RESERVED_FUNCTION_NAME };
}
// TODO: deprecate this once ITEMS is merged with COLLECTION
if (token.text === 'ITEMS' && token.type === TokenType.RESERVED_KEYWORD) {
if (!(prevToken.text === 'COLLECTION' && nextToken.text === 'TERMINATED')) {
// this is a word and not COLLECTION ITEMS
return { ...token, type: TokenType.IDENTIFIER, text: token.raw };
}
}
return token;
});
}
``` | /content/code_sandbox/src/languages/spark/spark.formatter.ts | xml | 2016-09-12T13:09:04 | 2024-08-16T10:30:12 | sql-formatter | sql-formatter-org/sql-formatter | 2,272 | 1,251 |
```xml
import { IroColor, IroColorPickerOptions } from '@irojs/iro-core';
import { IroColorPicker } from './ColorPicker'
export const enum IroInputType {
Start,
Move,
End
};
export interface IroComponentProps extends IroColorPickerOptions {
parent: IroColorPicker;
index: number; // component index
id?: string; // optional component id
color: IroColor;
colors: IroColor[];
activeIndex?: number; // active color index (for optional overriding!)
onInput: (type: IroInputType, id: string) => void;
}
``` | /content/code_sandbox/src/ComponentTypes.ts | xml | 2016-09-30T14:58:33 | 2024-08-15T09:07:03 | iro.js | jaames/iro.js | 1,293 | 140 |
```xml
import * as React from 'react';
import { render } from '@testing-library/react';
import { isConformant } from '../../testing/isConformant';
import { CarouselNav } from './CarouselNav';
import { CarouselNavButton } from '../CarouselNavButton/CarouselNavButton';
describe('CarouselNav', () => {
isConformant({
Component: CarouselNav,
displayName: 'CarouselNav',
});
// TODO add more tests here, and create visual regression tests in /apps/vr-tests
it('renders a default state', () => {
const result = render(<CarouselNav>{() => <CarouselNavButton />}</CarouselNav>);
expect(result.container).toMatchSnapshot();
});
});
``` | /content/code_sandbox/packages/react-components/react-carousel-preview/library/src/components/CarouselNav/CarouselNav.test.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 150 |
```xml
import {
Box,
Flex,
FormLabel,
Input,
Tag,
TagCloseButton,
TagLabel,
} from '@chakra-ui/react';
import { clone } from 'underscore';
import { FC, KeyboardEvent, useEffect, useRef, useState } from 'react';
export type TagsFieldProperties = {
label?: string;
id?: string;
tags?: string[];
onChange?: (value: string[]) => void;
};
export const TagsField: FC<TagsFieldProperties> = ({
label,
id,
tags = [],
onChange,
}) => {
const [state, setState] = useState<{ name: string; id: number }[]>(
tags.map((item, index) => ({ name: item, id: index }))
);
const reference = useRef<HTMLInputElement>();
useEffect(() => {
// @ts-ignore
reference.current.value = '';
if (onChange) {
onChange(state.map((t) => t.name));
}
}, [state]);
const keyPress = (event: KeyboardEvent<HTMLInputElement>) => {
if (event.keyCode === 13) {
setState((previous) => [
...previous,
// @ts-ignore
{ name: clone(event.target.value), id: previous.length },
]);
}
};
return (
<Box>
{label && (
<FormLabel htmlFor={id} fontWeight="bold" fontSize="sm" mb="8px">
{label}
</FormLabel>
)}
<Flex
height="36px"
direction="row"
wrap="nowrap"
bg="transparent"
borderBottom="1px solid"
borderColor="gray.200"
_focusWithin={{ borderColor: 'primary.200', borderBottomWidth: '2px' }}
cursor="text"
overflowX="scroll"
width="100%"
display="list-item"
whiteSpace="nowrap"
pt="6px"
overflowY="hidden"
>
{state.map((item, index) => {
return (
<Tag
fontSize="xs"
colorScheme="primary"
variant="solid"
mr={1}
key={item.id}
>
<TagLabel>{item.name}</TagLabel>
<TagCloseButton
justifySelf="flex-end"
color="white"
onClick={() =>
setState((previous) =>
previous.filter((row) => row.id !== item.id)
)
}
/>
</Tag>
);
})}
<Input
// @ts-ignore
ref={reference}
variant="unstyled"
bg="transparent"
border="none"
p="0px"
onKeyDown={keyPress}
fontSize="sm"
h="auto"
/>
</Flex>
</Box>
);
};
export default TagsField;
``` | /content/code_sandbox/src/renderer/components/fields/tags-field.tsx | xml | 2016-05-14T02:18:49 | 2024-08-16T02:46:28 | ElectroCRUD | garrylachman/ElectroCRUD | 1,538 | 602 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<com.jiang.android.rxjavaapp.widget.HackyViewPager xmlns:android="path_to_url"
android:id="@+id/photo_view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
``` | /content/code_sandbox/app/src/main/res/layout/activity_photoview.xml | xml | 2016-03-13T05:16:32 | 2024-04-29T09:08:01 | RxJavaApp | jiang111/RxJavaApp | 1,045 | 65 |
```xml
import _ from 'lodash';
import { Logger, StorageList } from '@verdaccio/types';
import { readFilePromise } from './fs';
export type LocalStorage = {
list: any;
secret: string;
};
export async function loadPrivatePackages(path: string, logger: Logger): Promise<LocalStorage> {
const list: StorageList = [];
const emptyDatabase = { list, secret: '' };
const data = await readFilePromise(path);
if (_.isNil(data)) {
// readFilePromise is platform specific, FreeBSD might return null
return emptyDatabase;
}
let db;
try {
db = JSON.parse(data);
} catch (err: any) {
logger.error(
{
err,
path,
},
`Package database file corrupted (invalid JSON) @{err.message}, please check the error printed below.File Path: @{path}`
);
throw Error('Package database file corrupted (invalid JSON)');
}
if (_.isEmpty(db)) {
return emptyDatabase;
}
return db;
}
``` | /content/code_sandbox/packages/plugins/local-storage/src/pkg-utils.ts | xml | 2016-04-15T16:21:12 | 2024-08-16T09:38:01 | verdaccio | verdaccio/verdaccio | 16,189 | 222 |
```xml
<OpenSearchDescription xmlns="path_to_url" xmlns:moz="path_to_url">
<ShortName>Movie Info</ShortName>
<Description>
Search for Movies
</Description>
<InputEncoding>UTF-8</InputEncoding>
<Url type="text/html" method="get" template="path_to_url{searchTerms}"/>
</OpenSearchDescription>
``` | /content/code_sandbox/999_old-code/059_movie-website_TODO/02_image-upload-GCS/public/opensearch.xml | xml | 2016-08-24T22:50:00 | 2024-08-15T19:57:40 | golang-web-dev | GoesToEleven/golang-web-dev | 3,336 | 82 |
```xml
import React from "react";
import { DetailsTab } from "@requestly-ui/resource-table";
import { ExecutionEvent } from "../../../types";
import ExecutionDetails from "./ExecutionDetails";
const executionDetailsTabs: DetailsTab<ExecutionEvent>[] = [
{
key: "details",
label: "Details",
render: (execution) => <ExecutionDetails execution={execution} />,
},
];
export default executionDetailsTabs;
``` | /content/code_sandbox/browser-extension/common/src/devtools/containers/executions/details-tabs/index.tsx | xml | 2016-12-01T04:36:06 | 2024-08-16T19:12:19 | requestly | requestly/requestly | 2,121 | 88 |
```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
*/
import { browser } from "protractor";
import { LoginPage } from "../PageObjects/LoginPage.po";
import { TopNavigationPage } from "../PageObjects/TopNavigationPage.po";
import { api } from "../config";
import { ServiceCategoriesPage } from "../PageObjects/ServiceCategories.po";
import { serviceCategories } from "../Data";
const loginPage = new LoginPage();
const topNavigation = new TopNavigationPage();
const serviceCategoriesPage = new ServiceCategoriesPage();
describe("Setup API for Service Categories Test", () => {
it("Setup", async () => {
await api.UseAPI(serviceCategories.setup);
});
});
serviceCategories.tests.forEach(async (serviceCategoriesData) => {
serviceCategoriesData.logins.forEach((login) => {
describe(`Traffic Portal - ServiceCategories - ${login.description}`, () => {
it("can login", async () => {
browser.get(browser.params.baseUrl);
await loginPage.Login(login);
expect(await loginPage.CheckUserName(login)).toBeTruthy();
});
it("can open service categories page", async () => {
await serviceCategoriesPage.OpenServicesMenu();
await serviceCategoriesPage.OpenServiceCategoriesPage();
});
serviceCategoriesData.add.forEach((add) => {
it(add.description, async () => {
expect(
await serviceCategoriesPage.CreateServiceCategories(
add,
add.validationMessage
)
).toBeTruthy();
await serviceCategoriesPage.OpenServiceCategoriesPage();
});
});
serviceCategoriesData.update.forEach((update) => {
it(update.description, async () => {
await serviceCategoriesPage.SearchServiceCategories(
update.Name
);
expect(
await serviceCategoriesPage.UpdateServiceCategories(
update,
update.validationMessage
)
).toBeTruthy();
await serviceCategoriesPage.OpenServiceCategoriesPage();
});
});
serviceCategoriesData.remove.forEach((remove) => {
it(remove.description, async () => {
await serviceCategoriesPage.SearchServiceCategories(
remove.Name
);
expect(
await serviceCategoriesPage.DeleteServiceCategories(
remove,
remove.validationMessage
)
).toBeTruthy();
await serviceCategoriesPage.OpenServiceCategoriesPage();
});
});
it("can logout", async () => {
expect(await topNavigation.Logout()).toBeTruthy();
});
});
});
});
describe("Clean Up API for Service Categories Test", () => {
it("Cleanup", async () => {
await api.UseAPI(serviceCategories.cleanup);
});
});
``` | /content/code_sandbox/traffic_portal/test/integration/specs/ServiceCategories.spec.ts | xml | 2016-09-02T07:00:06 | 2024-08-16T03:50:21 | trafficcontrol | apache/trafficcontrol | 1,043 | 589 |
```xml
import { IterableX } from '../iterablex.js';
import { RefCountList } from './_refcountlist.js';
import { create } from '../create.js';
import { OperatorFunction } from '../../interfaces.js';
class PublishedBuffer<T> extends IterableX<T> {
private _buffer: RefCountList<T>;
private _source: Iterator<T>;
private _error: any;
private _stopped = false;
constructor(source: Iterator<T>) {
super();
this._source = source;
this._buffer = new RefCountList<T>(0);
}
// eslint-disable-next-line complexity
private *_getIterable(i: number): Iterable<T> {
try {
while (1) {
let hasValue = false;
let current = <T>{};
if (i >= this._buffer.count) {
if (!this._stopped) {
try {
const next = this._source.next();
hasValue = !next.done;
// eslint-disable-next-line max-depth
if (hasValue) {
current = next.value;
}
} catch (e) {
this._error = e;
this._stopped = true;
}
}
if (this._stopped) {
if (this._error) {
throw this._error;
} else {
break;
}
}
if (hasValue) {
this._buffer.push(current);
}
} else {
hasValue = true;
}
if (hasValue) {
yield this._buffer.get(i);
} else {
break;
}
// eslint-disable-next-line no-param-reassign
i++;
}
} finally {
this._buffer.done();
}
}
[Symbol.iterator](): Iterator<T> {
this._buffer.readerCount++;
return this._getIterable(this._buffer.count)[Symbol.iterator]();
}
}
/**
* Creates a buffer with a view over the source sequence, causing each iterator to obtain access to the
* remainder of the sequence from the current index in the buffer.
*
* @template TSource Source sequence element type.
* @returns {OperatorFunction<TSource, TSource>} Buffer enabling each iterator to retrieve elements from
* the shared source sequence, starting from the index at the point of obtaining the enumerator.
*/
export function publish<TSource>(): OperatorFunction<TSource, TSource>;
/**
* Buffer enabling each iterator to retrieve elements from the shared source sequence, starting from the
* index at the point of obtaining the iterator.
*
* @template TSource Source sequence element type.
* @template TResult Result sequence element type.
* @param {(value: Iterable<TSource>) => Iterable<TResult>} [selector] Selector function with published
* access to the source sequence for each iterator.
* @returns {OperatorFunction<TSource, TResult>} Sequence resulting from applying the selector function to the
* published view over the source sequence.
*/
export function publish<TSource, TResult>(
selector?: (value: Iterable<TSource>) => Iterable<TResult>
): OperatorFunction<TSource, TResult>;
/**
* Buffer enabling each iterator to retrieve elements from the shared source sequence, starting from the
* index at the point of obtaining the iterator.
*
* @template TSource Source sequence element type.
* @template TResult Result sequence element type.
* @param {(value: Iterable<TSource>) => Iterable<TResult>} [selector] Selector function with published
* access to the source sequence for each iterator.
* @returns {(OperatorFunction<TSource, TSource | TResult>)} Sequence resulting from applying the selector function to the
* published view over the source sequence.
*/
export function publish<TSource, TResult>(
selector?: (value: Iterable<TSource>) => Iterable<TResult>
): OperatorFunction<TSource, TSource | TResult> {
return function publishOperatorFunction(source: Iterable<TSource>): IterableX<TSource | TResult> {
return selector
? create(() => selector(publish<TSource>()(source))[Symbol.iterator]())
: new PublishedBuffer<TSource>(source[Symbol.iterator]());
};
}
``` | /content/code_sandbox/src/iterable/operators/publish.ts | xml | 2016-02-22T20:04:19 | 2024-08-09T18:46:41 | IxJS | ReactiveX/IxJS | 1,319 | 838 |
```xml
import { localized, React } from 'mailspring-exports';
import { ipcRenderer, shell } from 'electron';
import { Notification } from 'mailspring-component-kit';
import { Disposable } from 'event-kit';
interface UpdateNotificationState {
updateAvailable: boolean;
version: string;
updateIsManual: boolean;
}
export default class UpdateNotification extends React.Component<
Record<string, unknown>,
UpdateNotificationState
> {
static displayName = 'UpdateNotification';
disposable?: Disposable;
constructor(props) {
super(props);
this.state = this.getStateFromStores();
}
componentDidMount() {
this.disposable = AppEnv.onUpdateAvailable(() => {
this.setState(this.getStateFromStores());
});
}
componentWillUnmount() {
this.disposable.dispose();
}
getStateFromStores() {
const updater = require('@electron/remote').getGlobal('application').autoUpdateManager;
const updateAvailable = updater.getState() === 'update-available';
const info = updateAvailable ? updater.getReleaseDetails() : {};
return {
updateAvailable,
updateIsManual: info.releaseNotes === 'manual-download',
version: info.releaseVersion,
};
}
_onUpdate = () => {
ipcRenderer.send('command', 'application:install-update');
};
_onViewChangelog = () => {
shell.openExternal('path_to_url
};
render() {
const { updateAvailable, version, updateIsManual } = this.state;
if (!updateAvailable) {
return <span />;
}
return (
<Notification
priority="4"
title={localized(
`An update to Mailspring is available %@`,
version ? `(${version.replace('Mailspring', '').trim()})` : ''
)}
subtitle={localized('View changelog')}
subtitleAction={this._onViewChangelog}
icon="volstead-upgrade.png"
actions={[
{
label: updateIsManual ? localized('Download Now') : localized('Install'),
fn: this._onUpdate,
},
]}
isDismissable
/>
);
}
}
``` | /content/code_sandbox/app/internal_packages/notifications/lib/items/update-notification.tsx | xml | 2016-10-13T06:45:50 | 2024-08-16T18:14:37 | Mailspring | Foundry376/Mailspring | 15,331 | 451 |
```xml
<resources>
<string name="app_name">MyDiary</string>
<!--Release Note-->
<string name="release_note_title"></string>
<string name="release_note">**0.3.0.170424_1_A\n
-Fix bug\n
-Support simple photo function\n
-Modify layout\n\n
**0.2.9.170416_1_AH\n
-fix bug\n\n
**0.2.9.170406_1_A\n
-Support auto temp save for diary \n
-Add cloudy option to share backup file\n
-Add OOBE\n
-Fix bug\n\n
**0.2.8.170323_1_AH\n
-Fix file issue on Android N\n
-Merge Thai patch\n\n
**0.2.8.170319_1_A\n
-Fix error when memory is low\n
-Fix bug\n
-Modify layout\n
-Implement search for topic\n
-Add month mode and fix bug in calendar\n\n
**0.2.7.170219_1_A\n
-Now it is alpha version :)\n
-Support simple backup\n
-Optimizing add and show photo in diary\n
-Fix calendar shadow bug on Android 4.2\n
(If your device still have calendar issue , send mail for me!)\n
-Fix click fail on topic list\n\n
</string>
<string name="release_note_close_remind"></string>
<!--init-->
<string name="init_message"> MyDiary</string>
<!--Profile-->
<string name="profile_username_taki"></string>
<string name="profile_username_mitsuha"></string>
<string name="toast_change_theme">…</string>
<string name="your_name_is"></string>
<!--Topic detail-->
<string name="topic_detail_name"></string>
<string name="topic_detail_text_color"></string>
<string name="topic_dialog_delete_title"></string>
<string name="topic_dialog_delete_content">%1$s?</string>
<string name="toast_topic_empty"></string>
<string name="topic_topic_bg_fail">…</string>
<string name="topic_detail_current_bg"></string>
<string name="topic_detail_default_bg"></string>
<!--Dialog -->
<string name="dialog_button_ok"></string>
<string name="dialog_button_call"></string>
<string name="dialog_button_cancel"></string>
<string name="dialog_button_delete"></string>
<string name="process_dialog_loading">…</string>
<string name="process_dialog_saving">…</string>
<!--Diary Activity-->
<string name="segmented_entries"></string>
<string name="segmented_calendar"></string>
<string name="segmented_Diary"></string>
<string name="diary_back_message"> ?</string>
<!--Entries -->
<plurals name="entries_count">
<item quantity="other">%1$d </item>
</plurals>
<string name="entries_edit_view"></string>
<string name="entries_edit_dialog_delete_content"> ?</string>
<string name="entries_summary_photo">****</string>
<string name="toast_diary_long_click_edit">…</string>
<!--Diary -->
<string name="diary_no_location"></string>
<string name="diary_location_permission_title"></string>
<string name="diary_location_permission_content"></string>
<string name="diary_photo_permission_content"></string>
<string name="diary_title_hint"></string>
<string name="diary_content_hint"></string>
<string name="diary_clear_message"> ?</string>
<string name="diary_no_title"></string>
<string name="toast_diary_empty"></string>
<string name="toast_not_image"></string>
<string name="toast_photo_path_error"></string>
<string name="toast_photo_intent_error"></string>
<string name="toast_max_photo"> %1$d </string>
<string name="toast_space_insufficient"></string>
<string name="toast_diary_update_successful"></string>
<string name="toast_diary_update_fail"></string>
<string name="toast_diary_insert_successful"></string>
<string name="toast_diary_insert_fail">…</string>
<!--Diary Viewer edit-->
<string name="toast_diary_copy_to_edit_fail">…</string>
<!--Memo-->
<string name="memo_item_add"></string>
<string name="toast_memo_empty">!</string>
<!--Contacts-->
<string name="contacts_call_phone_permission_title"></string>
<string name="contacts_call_phone_permission_content"></string>
<string name="contacts_call_phone_no_call_function"></string>
<string name="contacts_detail_edt_name"></string>
<string name="contacts_detail_edt_phone_number"></string>
<string name="toast_contacts_empty">!</string>
<!--About-->
<string name="about_title"></string>
<!--Setting-->
<string name="setting_theme_title"></string>
<string name="setting_theme_hint"></string>
<string name="setting_theme_main_color"></string>
<string name="setting_theme_sec_color"></string>
<string name="setting_theme_default_profile_bg"></string>
<string name="setting_theme_default_color"></string>
<string name="setting_theme_apply"></string>
<string name="setting_theme_profile_bg"></string>
<string name="setting_language_title"></string>
<string name="setting_language_hint"></string>
<string name="toast_save_profile_banner_fail">…</string>
<string name="toast_crop_profile_banner_fail">…</string>
<string name="toast_save_profile_picture_fail">…</string>
<string name="toast_crop_profile_picture_fail">…</string>
<string name="setting_system_title"></string>
<string name="setting_system_fix_dir_hint"> </string>
<string name="setting_system_fix_dir_button"></string>
<string name="toast_setting_successful"></string>
<string name="toast_setting_wont_fix"></string>
<string name="toast_setting_fail"></string>
<!--Google service API-->
<string name="toast_google_service_not_work">Google Service </string>
<!--Diary Geocoder & Location -->
<string name="toast_location_not_open"></string>
<string name="toast_geocoder_fail"></string>
<string name="toast_location_timeout"></string>
<!--Password-->
<string name="password_create_pwd"></string>
<string name="password_create_pwd_with_verify"></string>
<string name="password_verify_pwd"></string>
<string name="password_remove_pwd"></string>
<string name="password_create_pwd_with_verify_msg"></string>
<string name="password_verify_pwd_msg"></string>
<string name="password_remove_pwd_msg"></string>
<!--Back event-->
<string name="main_activity_exit_app"></string>
<!--Backup overwrite string-->
<string name="nnf_select_something_first">/ </string>
<string name="nnf_permission_external_write_denied"></string>
<!--Backup-->
<string name="backup_title"></string>
<string name="backup_export_title"></string>
<string name="backup_export_hint"> ()</string>
<string name="backup_export_path_hint"></string>
<string name="backup_export_button"></string>
<string name="backup_export_share_title">Share with</string>
<string name="backup_export_can_not_write">Can\'t write into this path , please select again</string>
<string name="toast_export_successful">%1$s\n</string>
<string name="toast_export_fail">…</string>
<string name="backup_import_title"></string>
<string name="backup_import_hint"> ()</string>
<string name="backup_import_path_hint"></string>
<string name="backup_import_button"></string>
<string name="backup_import_can_not_read">Can\'t read this file , please select again</string>
<string name="toast_import_successful"></string>
<string name="toast_import_fail">…</string>
<!--OOBE-->
<string name="oobe_next_button">Next</string>
<string name="oobe_main_your_name_title">Your name</string>
<string name="oobe_main_your_name_content">You can set your personal information.</string>
<string name="oobe_main_topic_list_title">Topic list</string>
<string name="oobe_main_topic_list_content">Your personal diary, memo or contacts!\nSwipe it to edit or delete.\n(The default Japanese data is from movie, you can delete it)</string>
<string name="oobe_main_search_title">Search</string>
<string name="oobe_main_search_content">You can search some topic.</string>
<string name="oobe_main_adv_setting_title">Advanced setting.</string>
<string name="oobe_main_adv_setting_content">Open the advanced setting.\nIncluding create topic, app setting, passcode ,backup and about.</string>
<string name="oobe_main_mydiary_title">MyDiary</string>
<string name="oobe_main_mydiary_content">however you see the movie or not.\nI hope you can get something from this app.\nTo write the story about your name now!</string>
<!--Photo viewer-->
<string name="photo_viewer_topic_fail">get diary fail</string>
<string name="photo_viewer_photo_path_fail">get photo path fail</string>
<string name="photo_viewer_no_images">No images</string>
</resources>
``` | /content/code_sandbox/app/src/main/res/values-th/strings.xml | xml | 2016-11-04T02:04:13 | 2024-08-07T01:13:41 | MyDiary | DaxiaK/MyDiary | 1,580 | 2,149 |
```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.
-->
<resources xmlns:tools="path_to_url" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="mtrl_exceed_max_badge_number_content_description" tools:ignore="PluralsCandidate">Tbb mint %1$d j rtests</string>
<string name="mtrl_badge_numberless_content_description">j rtests</string>
<plurals name="mtrl_badge_content_description">
<item quantity="one">%d j rtests</item>
<item quantity="other">%d j rtests</item>
</plurals>
</resources>
``` | /content/code_sandbox/lib/java/com/google/android/material/badge/res/values-hu/strings.xml | xml | 2016-12-05T16:11:29 | 2024-08-16T17:51:42 | material-components-android | material-components/material-components-android | 16,176 | 203 |
```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="es" original="../Resources.resx">
<body>
<trans-unit id="CouldNotResolveReference">
<source>Could not resolve reference '{0}' in any of the provided search directories.</source>
<target state="translated">No se pudo resolver la referencia "{0}" en ninguno de los directorios de bsqueda proporcionados.</target>
<note />
</trans-unit>
<trans-unit id="MatchingAssemblyNotFound">
<source>Could not find matching assembly: '{0}' in any of the search directories.</source>
<target state="translated">No se han encontrado coincidencias de ensamblado: "{0}" en ninguno de los directorios de bsqueda.</target>
<note />
</trans-unit>
<trans-unit id="ProvidedPathToLoadBinariesFromNotFound">
<source>Could not find the provided path '{0}' to load binaries from.</source>
<target state="translated">No se pudo encontrar la ruta de acceso proporcionada "{0}" desde donde cargar archivos binarios.</target>
<note />
</trans-unit>
<trans-unit id="ProvidedStreamDoesNotHaveMetadata">
<source>Provided stream for assembly '{0}' doesn't have any metadata to read. from.</source>
<target state="translated">La secuencia proporcionada para el ensamblado "{0}" no tiene metadatos que leer.</target>
<note />
</trans-unit>
<trans-unit id="ShouldNotBeNullAndContainAtLeastOneElement">
<source>Should not be null and contain at least one element.</source>
<target state="translated">No debe ser nulo y debe contener al menos un elemento.</target>
<note />
</trans-unit>
<trans-unit id="ShouldProvideValidAssemblyName">
<source>Should provide a valid assembly name.</source>
<target state="translated">Debe proporcionar un nombre de ensamblado vlido.</target>
<note />
</trans-unit>
<trans-unit id="StreamPositionGreaterThanLength">
<source>Stream position is greater than it's length, so there are no contents available to read.</source>
<target state="translated">La posicin de la secuencia es mayor que su longitud, por lo que no hay contenido disponible para leer.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
``` | /content/code_sandbox/src/Compatibility/Microsoft.DotNet.ApiSymbolExtensions/xlf/Resources.es.xlf | xml | 2016-07-22T21:26:02 | 2024-08-16T17:23:58 | sdk | dotnet/sdk | 2,627 | 621 |
```xml
import React, {useEffect, useRef, useState} from 'react'
import {Timer} from '../utils'
import {Notification as NotificationType} from '../reducers/notifications/types'
import {DismissNotification} from './NotificationsSystem'
import {useComponentsContext} from '../hooks/useComponentsContext'
import SlideTransition from './SlideTransition'
import {useTheme} from '../hooks/useTheme'
import NotificationComponent from './Notification'
import {TransitionProps} from 'react-transition-group/Transition'
type Props = {
notification: NotificationType
dismissNotification: DismissNotification
} & Omit<TransitionProps, 'addEndListener'>
const NotificationContainer = (props: Props) => {
const {notification, dismissNotification, ...transitionProps} = props
const {dismissAfter, onAdd, onDismiss} = notification
const components = useComponentsContext()
const theme = useTheme()
const Transition = components.Transition || SlideTransition
const Notification = components.Notification || NotificationComponent
const [timer, setTimer] = useState<Timer | null>(null)
const nodeRef = useRef(null)
useEffect(() => {
if (onAdd) {
onAdd()
}
return () => {
if (onDismiss) {
onDismiss()
}
}
}, [])
useEffect(() => {
if (!timer && dismissAfter && dismissAfter > 0) {
const timer = new Timer(dismissAfter, () => dismissNotification(notification.id))
timer.resume()
setTimer(timer)
} else if (timer && !dismissAfter) {
timer.pause()
setTimer(null)
}
}, [dismissAfter])
return (
<Transition notification={notification} nodeRef={nodeRef} {...transitionProps}>
<div
ref={nodeRef}
data-testid="timed-notification"
onMouseEnter={timer ? () => timer.pause() : undefined}
onMouseLeave={timer ? () => timer.resume() : undefined}
>
<Notification
notification={notification}
theme={theme}
dismissNotification={() => dismissNotification(notification.id)}
components={components}
/>
</div>
</Transition>
)
}
export default NotificationContainer
``` | /content/code_sandbox/src/components/NotificationContainer.tsx | xml | 2016-04-18T14:42:12 | 2024-08-13T16:26:17 | reapop | LouisBarranqueiro/reapop | 1,547 | 464 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file source-language="en" target-language="sl" datatype="plaintext" original="wizard.en.xlf">
<body>
<trans-unit id="9XidDHG" resname="wizard.intro.title">
<source>wizard.intro.title</source>
<target state="translated">Dobrodoli</target>
</trans-unit>
</body>
</file>
</xliff>
``` | /content/code_sandbox/translations/wizard.sl.xlf | xml | 2016-10-20T17:06:34 | 2024-08-16T18:27:30 | kimai | kimai/kimai | 3,084 | 131 |
```xml
// See LICENSE.txt for license information.
import React, {useCallback} from 'react';
import {useIntl} from 'react-intl';
import {Keyboard} from 'react-native';
import FormattedRelativeTime from '@components/formatted_relative_time';
import UserItem from '@components/user_item';
import {Screens} from '@constants';
import {useTheme} from '@context/theme';
import {dismissBottomSheet, openAsBottomSheet} from '@screens/navigation';
import {changeOpacity, makeStyleSheetFromTheme} from '@utils/theme';
import {typography} from '@utils/typography';
import type UserModel from '@typings/database/models/servers/user';
export const USER_ROW_HEIGHT = 60;
const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => ({
container: {
paddingLeft: 0,
height: USER_ROW_HEIGHT,
},
pictureContainer: {
alignItems: 'flex-start',
width: 40,
},
time: {
color: changeOpacity(theme.centerChannelColor, 0.64),
...typography('Body', 75),
},
}));
type Props = {
channelId: string;
location: string;
user: UserModel;
userAcknowledgement: number;
timezone?: UserTimezone;
}
const UserListItem = ({
channelId,
location,
timezone,
user,
userAcknowledgement,
}: Props) => {
const intl = useIntl();
const theme = useTheme();
const style = getStyleSheet(theme);
const handleUserPress = useCallback(async (userProfile: UserProfile) => {
if (userProfile) {
await dismissBottomSheet(Screens.BOTTOM_SHEET);
const screen = Screens.USER_PROFILE;
const title = intl.formatMessage({id: 'mobile.routes.user_profile', defaultMessage: 'Profile'});
const closeButtonId = 'close-user-profile';
const props = {closeButtonId, location, userId: userProfile.id, channelId};
Keyboard.dismiss();
openAsBottomSheet({screen, title, theme, closeButtonId, props});
}
}, [channelId, location]);
return (
<UserItem
FooterComponent={
<FormattedRelativeTime
value={userAcknowledgement}
timezone={timezone}
style={style.time}
/>
}
containerStyle={style.container}
onUserPress={handleUserPress}
size={40}
user={user}
/>
);
};
export default UserListItem;
``` | /content/code_sandbox/app/components/post_list/post/body/acknowledgements/users_list/user_list_item.tsx | xml | 2016-10-07T16:52:32 | 2024-08-16T12:08:38 | mattermost-mobile | mattermost/mattermost-mobile | 2,155 | 511 |
```xml
<resources>
<string name="app_name">TedPermission</string>
<string name="tedpermission_setting">Setting</string>
<string name="tedpermission_close">Close</string>
<string name="tedpermission_confirm">Confirm</string>
</resources>
``` | /content/code_sandbox/tedpermission/src/main/res/values/strings.xml | xml | 2016-02-18T01:37:51 | 2024-08-14T10:57:59 | TedPermission | ParkSangGwon/TedPermission | 1,733 | 59 |
```xml
// import * as cdk from 'aws-cdk-lib';
// import { Template } from 'aws-cdk-lib/assertions';
// import * as Cdk from '../lib/cdk-stack';
// example test. To run these tests, uncomment this file along with the
// example resource in lib/cdk-stack.ts
test('SQS Queue Created', () => {
// const app = new cdk.App();
// // WHEN
// const stack = new Cdk.CdkStack(app, 'MyTestStack');
// // THEN
// const template = Template.fromStack(stack);
// template.hasResourceProperties('AWS::SQS::Queue', {
// VisibilityTimeout: 300
// });
});
``` | /content/code_sandbox/applications/feedback_sentiment_analyzer/cdk/test/cdk.test.ts | xml | 2016-08-18T19:06:57 | 2024-08-16T18:59:44 | aws-doc-sdk-examples | awsdocs/aws-doc-sdk-examples | 9,298 | 152 |
```xml
import type { Dispatch, SetStateAction } from 'react';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { c, msgid } from 'ttag';
import { useGetEncryptionPreferences, useKeyTransparencyContext } from '@proton/components';
import { useModalTwo } from '@proton/components/components/modalTwo/useModalTwo';
import type { PublicKeyReference } from '@proton/crypto';
import useIsMounted from '@proton/hooks/useIsMounted';
import { processApiRequestsSafe } from '@proton/shared/lib/api/helpers/safeApiRequests';
import { validateEmailAddress } from '@proton/shared/lib/helpers/email';
import { omit } from '@proton/shared/lib/helpers/object';
import type { KeyTransparencyActivation } from '@proton/shared/lib/interfaces';
import type { Recipient } from '@proton/shared/lib/interfaces/Address';
import type { ContactEmail } from '@proton/shared/lib/interfaces/contacts';
import type { GetEncryptionPreferences } from '@proton/shared/lib/interfaces/hooks/GetEncryptionPreferences';
import { ENCRYPTION_PREFERENCES_ERROR_TYPES } from '@proton/shared/lib/mail/encryptionPreferences';
import { getRecipientsAddresses } from '@proton/shared/lib/mail/messages';
import getSendPreferences from '@proton/shared/lib/mail/send/getSendPreferences';
import isTruthy from '@proton/utils/isTruthy';
import noop from '@proton/utils/noop';
import AskForKeyPinningModal from '../components/composer/addresses/AskForKeyPinningModal';
import ContactResignModal from '../components/message/modals/ContactResignModal';
import { getSendStatusIcon } from '../helpers/message/icon';
import type { MapSendInfo } from '../models/crypto';
import { STATUS_ICONS_FILLS } from '../models/crypto';
import type { ContactsMap } from '../store/contacts/contactsTypes';
import type { MessageState } from '../store/messages/messagesTypes';
import { useContactsMap } from './contact/useContacts';
const { PRIMARY_NOT_PINNED, CONTACT_SIGNATURE_NOT_VERIFIED } = ENCRYPTION_PREFERENCES_ERROR_TYPES;
const getSignText = (n: number, contactNames: string, contactAddresses: string) => {
return c('Info').ngettext(
msgid`The verification of ${contactNames} has failed: the contact is not signed correctly.
This may be the result of a password reset.
You must re-sign the contact in order to send a message to ${contactAddresses} or edit the contact.`,
`The verification of ${contactNames} has failed: the contacts are not signed correctly.
This may be the result of a password reset.
You must re-sign the contacts in order to send a message to ${contactAddresses} or edit the contacts.`,
n
);
};
export interface MessageSendInfo {
message: MessageState;
mapSendInfo: MapSendInfo;
setMapSendInfo: Dispatch<SetStateAction<MapSendInfo>>;
}
export const useMessageSendInfo = (message: MessageState) => {
const isMounted = useIsMounted();
// Map of send preferences and send icons for each recipient
const [mapSendInfo, setMapSendInfo] = useState<MapSendInfo>({});
const safeSetMapSendInfo = (value: SetStateAction<MapSendInfo>) => isMounted() && setMapSendInfo(value);
// Use memo is ok there but not really effective as any message change will update the ref
const messageSendInfo: MessageSendInfo = useMemo(
() => ({
message,
mapSendInfo,
setMapSendInfo: safeSetMapSendInfo,
}),
[message, mapSendInfo]
);
return messageSendInfo;
};
export const useUpdateRecipientSendInfo = (
messageSendInfo: MessageSendInfo | undefined,
recipient: Recipient,
onRemove: () => void
) => {
const getEncryptionPreferences = useGetEncryptionPreferences();
const contactsMap = useContactsMap();
const emailAddress = recipient.Address;
const { ktActivation } = useKeyTransparencyContext();
const [askForKeyPinningModal, handleShowAskForKeyPinningModal] = useModalTwo(AskForKeyPinningModal);
const [contactResignModal, handleContactResignModal] = useModalTwo(ContactResignModal);
const handleRemove = () => {
if (messageSendInfo) {
const { setMapSendInfo } = messageSendInfo;
setMapSendInfo((mapSendInfo) => omit(mapSendInfo, [emailAddress]));
}
onRemove();
};
useEffect(() => {
const updateRecipientIcon = async (): Promise<void> => {
// Inactive if no send info or data already present
if (!messageSendInfo || messageSendInfo.mapSendInfo[emailAddress]) {
return;
}
const { message, setMapSendInfo } = messageSendInfo;
const emailValidation = validateEmailAddress(emailAddress);
// Prevent sending request if email is not even valid
if (!emailValidation) {
setMapSendInfo((mapSendInfo) => ({
...mapSendInfo,
[emailAddress]: {
encryptionPreferenceError: ENCRYPTION_PREFERENCES_ERROR_TYPES.EMAIL_ADDRESS_ERROR,
sendPreferences: undefined,
sendIcon: {
colorClassName: 'color-danger',
isEncrypted: false,
fill: STATUS_ICONS_FILLS.FAIL,
text: c('Composer email icon').t`The address might be misspelled`,
},
loading: false,
emailValidation,
emailAddressWarnings: [],
contactSignatureInfo: undefined,
},
}));
return;
}
setMapSendInfo((mapSendInfo) => ({
...mapSendInfo,
[emailAddress]: {
loading: true,
emailValidation,
},
}));
const encryptionPreferences = await getEncryptionPreferences({
email: emailAddress,
lifetime: 0,
contactEmailsMap: contactsMap,
});
const sendPreferences = getSendPreferences(encryptionPreferences, message.data);
if (sendPreferences.error?.type === CONTACT_SIGNATURE_NOT_VERIFIED) {
if (!recipient.ContactID) {
return;
}
const contact = { contactID: recipient.ContactID };
const contactAddress = recipient.Address;
const contactName = recipient.Name || contactAddress;
const text = getSignText(1, contactName, contactAddress);
await handleContactResignModal({
title: c('Title').t`Re-sign contact`,
contacts: [contact],
onNotResign: onRemove,
onError: handleRemove,
children: text,
});
return updateRecipientIcon();
}
if (sendPreferences.error?.type === PRIMARY_NOT_PINNED) {
if (!recipient.ContactID) {
return;
}
const contacts = [
{
contactID: recipient.ContactID,
emailAddress,
isInternal: encryptionPreferences.isInternal,
bePinnedPublicKey: encryptionPreferences.sendKey as PublicKeyReference,
},
];
await handleShowAskForKeyPinningModal({
contacts,
onNotTrust: handleRemove,
onError: handleRemove,
});
return updateRecipientIcon();
}
const sendIcon = getSendStatusIcon(sendPreferences);
const contactSignatureInfo = {
isVerified: encryptionPreferences.isContactSignatureVerified,
creationTime: encryptionPreferences.contactSignatureTimestamp,
};
setMapSendInfo((mapSendInfo) => ({
...mapSendInfo,
[emailAddress]: {
sendPreferences,
sendIcon,
loading: false,
emailValidation,
encryptionPreferenceError: encryptionPreferences.error?.type,
emailAddressWarnings: encryptionPreferences.emailAddressWarnings || [],
contactSignatureInfo,
},
}));
};
void updateRecipientIcon();
}, [emailAddress, contactsMap, ktActivation]);
return { handleRemove, askForKeyPinningModal, contactResignModal };
};
interface LoadParams {
emailAddress: string;
contactID: string;
contactName: string;
abortController: AbortController;
checkForError: boolean;
}
export const useUpdateGroupSendInfo = (
messageSendInfo: MessageSendInfo | undefined,
contacts: ContactEmail[],
onRemove: () => void
) => {
const getEncryptionPreferences = useGetEncryptionPreferences();
const contactsMap = useContactsMap();
const emailsInGroup = contacts.map(({ Email }) => Email);
const [askForKeyPinningModal, handleShowAskForKeyPinningModal] = useModalTwo(AskForKeyPinningModal);
const [contactResignModal, handleContactResignModal] = useModalTwo(ContactResignModal);
const handleRemove = () => {
if (messageSendInfo) {
const { setMapSendInfo } = messageSendInfo;
setMapSendInfo((mapSendInfo) => omit(mapSendInfo, emailsInGroup));
}
onRemove();
};
const { ktActivation } = useKeyTransparencyContext();
useEffect(() => {
const abortController = new AbortController();
// loadSendIcon tries to load the corresponding icon for an email address. If all goes well, it returns nothing.
// If there are errors, it returns an error type and information about the email address that failed
const loadSendIcon = async ({
emailAddress,
contactID,
contactName,
abortController,
checkForError,
}: LoadParams) => {
const { signal } = abortController;
const icon = messageSendInfo?.mapSendInfo[emailAddress]?.sendIcon;
const emailValidation = validateEmailAddress(emailAddress);
if (
!emailValidation ||
!emailAddress ||
icon ||
!messageSendInfo ||
!!messageSendInfo.mapSendInfo[emailAddress] ||
signal.aborted
) {
return;
}
const { message, setMapSendInfo } = messageSendInfo;
if (!signal.aborted) {
setMapSendInfo((mapSendInfo) => {
const sendInfo = mapSendInfo[emailAddress];
return {
...mapSendInfo,
[emailAddress]: { ...sendInfo, loading: true, emailValidation },
};
});
}
const encryptionPreferences = await getEncryptionPreferences({
email: emailAddress,
lifetime: 0,
contactEmailsMap: contactsMap,
});
const sendPreferences = getSendPreferences(encryptionPreferences, message.data);
const sendIcon = getSendStatusIcon(sendPreferences);
const contactSignatureInfo = {
isVerified: encryptionPreferences.isContactSignatureVerified,
creationTime: encryptionPreferences.contactSignatureTimestamp,
};
if (!signal.aborted) {
setMapSendInfo((mapSendInfo) => ({
...mapSendInfo,
[emailAddress]: {
sendPreferences,
sendIcon,
loading: false,
emailValidation,
emailAddressWarnings: encryptionPreferences.emailAddressWarnings || [],
contactSignatureInfo,
},
}));
}
if (checkForError && sendPreferences.error) {
return {
error: sendPreferences.error,
contact: {
contactID,
contactName,
emailAddress,
isInternal: encryptionPreferences.isInternal,
bePinnedPublicKey: encryptionPreferences.sendKey as PublicKeyReference,
},
};
}
};
const loadSendIcons = async ({
abortController,
checkForError,
}: Pick<LoadParams, 'abortController' | 'checkForError'>): Promise<void> => {
const requests = contacts.map(
({ Email, ContactID, Name }) =>
() =>
loadSendIcon({
emailAddress: Email,
contactID: ContactID,
contactName: Name,
abortController,
checkForError,
})
);
// the routes called in requests support 100 calls every 10 seconds
const results = await processApiRequestsSafe(requests, 100, 10 * 1000);
const contactsResign = results
.filter(isTruthy)
.filter(({ error: { type } }) => type === CONTACT_SIGNATURE_NOT_VERIFIED)
.map(({ contact }) => contact);
const totalContactsResign = contactsResign.length;
if (totalContactsResign) {
const title = c('Title').ngettext(msgid`Re-sign contact`, `Re-sign contacts`, totalContactsResign);
const contactNames = contactsResign.map(({ contactName }) => contactName).join(', ');
const contactAddresses = contactsResign.map(({ emailAddress }) => emailAddress).join(', ');
const text = getSignText(totalContactsResign, contactNames, contactAddresses);
await handleContactResignModal({
title: title,
contacts: contactsResign,
onNotResign: noop,
onError: noop,
children: text,
});
return loadSendIcons({ abortController, checkForError: false });
}
const contactsKeyPinning = results
.filter(isTruthy)
.filter(({ error: { type } }) => type === PRIMARY_NOT_PINNED)
.map(({ contact }) => contact);
if (contactsKeyPinning.length) {
await handleShowAskForKeyPinningModal({
contacts: contactsKeyPinning,
onNotTrust: noop,
onError: noop,
});
return loadSendIcons({ abortController, checkForError: false });
}
};
void loadSendIcons({ abortController, checkForError: true });
return () => {
abortController.abort();
};
}, [ktActivation]);
return { handleRemove, askForKeyPinningModal, contactResignModal };
};
const getUpdatedSendInfo = async (
emailAddress: string,
message: MessageState,
setMapSendInfo: Dispatch<SetStateAction<MapSendInfo>>,
getEncryptionPreferences: GetEncryptionPreferences,
ktActivation: KeyTransparencyActivation,
contactsMap: ContactsMap
) => {
const encryptionPreferences = await getEncryptionPreferences({
email: emailAddress,
lifetime: 0,
contactEmailsMap: contactsMap,
});
const sendPreferences = getSendPreferences(encryptionPreferences, message.data);
const sendIcon = getSendStatusIcon(sendPreferences);
const contactSignatureInfo = {
isVerified: encryptionPreferences.isContactSignatureVerified,
creationTime: encryptionPreferences.contactSignatureTimestamp,
};
const updatedSendInfo = {
sendPreferences,
sendIcon,
loading: false,
emailAddressWarnings: encryptionPreferences.emailAddressWarnings || [],
contactSignatureInfo,
};
setMapSendInfo((mapSendInfo) => {
const sendInfo = mapSendInfo[emailAddress];
if (!sendInfo) {
return { ...mapSendInfo };
}
return {
...mapSendInfo,
[emailAddress]: { ...sendInfo, ...updatedSendInfo },
};
});
};
export const useReloadSendInfo = () => {
const getEncryptionPreferences = useGetEncryptionPreferences();
const contactsMap = useContactsMap();
const { ktActivation } = useKeyTransparencyContext();
return useCallback(
async (messageSendInfo: MessageSendInfo | undefined, message: MessageState) => {
const { mapSendInfo, setMapSendInfo } = messageSendInfo || {};
if (mapSendInfo === undefined || !setMapSendInfo || !message.data) {
return;
}
const recipients = getRecipientsAddresses(message.data);
const requests = recipients.map(
(emailAddress) => () =>
getUpdatedSendInfo(
emailAddress,
message,
setMapSendInfo,
getEncryptionPreferences,
ktActivation,
contactsMap
)
);
const loadingMapSendInfo = recipients.reduce(
(acc, emailAddress) => {
const sendInfo = acc[emailAddress] || { emailValidation: validateEmailAddress(emailAddress) };
acc[emailAddress] = { ...sendInfo, loading: true };
return acc;
},
{ ...mapSendInfo }
);
setMapSendInfo(loadingMapSendInfo);
// the routes called in requests support 100 calls every 10 seconds
await processApiRequestsSafe(requests, 100, 10 * 1000);
},
[getEncryptionPreferences, contactsMap, ktActivation]
);
};
``` | /content/code_sandbox/applications/mail/src/app/hooks/useSendInfo.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 3,422 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="StateButton">
<!--text color-->
<attr name="normalTextColor" format="color|reference"/>
<attr name="pressedTextColor" format="color|reference"/>
<attr name="unableTextColor" format="color|reference"/>
<!--stroke width and color, dash width, dash gap-->
<attr name="strokeDashWidth" format="dimension|reference"/>
<attr name="strokeDashGap" format="dimension|reference"/>
<attr name="normalStrokeWidth" format="dimension|reference"/>
<attr name="pressedStrokeWidth" format="dimension|reference"/>
<attr name="unableStrokeWidth" format="dimension|reference"/>
<attr name="normalStrokeColor" format="color|reference"/>
<attr name="pressedStrokeColor" format="color|reference"/>
<attr name="unableStrokeColor" format="color|reference"/>
<!--background color-->
<attr name="normalBackgroundColor" format="color|reference"/>
<attr name="pressedBackgroundColor" format="color|reference"/>
<attr name="unableBackgroundColor" format="color|reference"/>
<!--background radius-->
<attr name="radius" format="dimension|reference"/>
<attr name="round" format="boolean|reference"/>
<!--animation duration-->
<attr name="animationDuration" format="integer|reference"/>
</declare-styleable>
<declare-styleable name="StateImageView">
<attr name="normalBackground" format="color|reference"/>
<attr name="pressedBackground" format="color|reference"/>
<attr name="unableBackground" format="color|reference"/>
<!--animation duration-->
<attr name="AnimationDuration" format="integer|reference"/>
</declare-styleable>
</resources>
``` | /content/code_sandbox/libary/src/main/res/values/attrs.xml | xml | 2016-11-07T16:11:44 | 2024-08-02T07:34:12 | StateButton | niniloveyou/StateButton | 1,302 | 392 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="path_to_url"
xmlns:tools="path_to_url">
<TextView
android:id="@+id/title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lineSpacingMultiplier="0.8"
android:paddingTop="24dp"
android:textColor="#000000"
android:textSize="38sp"
tools:text="Title" />
<TextView
android:id="@+id/caption_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="#000000"
android:textSize="20sp"
tools:text="caption" />
<Space
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:minHeight="24dp" />
</merge>
``` | /content/code_sandbox/epoxy-sample/src/main/res/layout/view_header.xml | xml | 2016-08-08T23:05:11 | 2024-08-16T16:11:07 | epoxy | airbnb/epoxy | 8,486 | 215 |
```xml
'use strict';
import { expect } from 'chai';
import { SemVer } from 'semver';
import * as TypeMoq from 'typemoq';
import { ConfigurationTarget, TextDocument, TextEditor, Uri } from 'vscode';
import { IDocumentManager, IWorkspaceService } from '../../client/common/application/types';
import { IComponentAdapter } from '../../client/interpreter/contracts';
import { InterpreterHelper } from '../../client/interpreter/helpers';
import { IServiceContainer } from '../../client/ioc/types';
suite('Interpreters Display Helper', () => {
let documentManager: TypeMoq.IMock<IDocumentManager>;
let workspaceService: TypeMoq.IMock<IWorkspaceService>;
let serviceContainer: TypeMoq.IMock<IServiceContainer>;
let helper: InterpreterHelper;
let pyenvs: TypeMoq.IMock<IComponentAdapter>;
setup(() => {
serviceContainer = TypeMoq.Mock.ofType<IServiceContainer>();
workspaceService = TypeMoq.Mock.ofType<IWorkspaceService>();
documentManager = TypeMoq.Mock.ofType<IDocumentManager>();
pyenvs = TypeMoq.Mock.ofType<IComponentAdapter>();
serviceContainer
.setup((c) => c.get(TypeMoq.It.isValue(IWorkspaceService)))
.returns(() => workspaceService.object);
serviceContainer
.setup((c) => c.get(TypeMoq.It.isValue(IDocumentManager)))
.returns(() => documentManager.object);
helper = new InterpreterHelper(serviceContainer.object, pyenvs.object);
});
test('getActiveWorkspaceUri should return undefined if there are no workspaces', () => {
workspaceService.setup((w) => w.workspaceFolders).returns(() => []);
documentManager.setup((doc) => doc.activeTextEditor).returns(() => undefined);
const workspace = helper.getActiveWorkspaceUri(undefined);
expect(workspace).to.be.equal(undefined, 'incorrect value');
});
test('getActiveWorkspaceUri should return the workspace if there is only one', () => {
const folderUri = Uri.file('abc');
workspaceService.setup((w) => w.workspaceFolders).returns(() => [{ uri: folderUri } as any]);
const workspace = helper.getActiveWorkspaceUri(undefined);
expect(workspace).to.be.not.equal(undefined, 'incorrect value');
expect(workspace!.folderUri).to.be.equal(folderUri);
expect(workspace!.configTarget).to.be.equal(ConfigurationTarget.Workspace);
});
test('getActiveWorkspaceUri should return undefined if we no active editor and have more than one workspace folder', () => {
const folderUri = Uri.file('abc');
workspaceService.setup((w) => w.workspaceFolders).returns(() => [{ uri: folderUri } as any, undefined as any]);
documentManager.setup((d) => d.activeTextEditor).returns(() => undefined);
const workspace = helper.getActiveWorkspaceUri(undefined);
expect(workspace).to.be.equal(undefined, 'incorrect value');
});
test('getActiveWorkspaceUri should return undefined of the active editor does not belong to a workspace and if we have more than one workspace folder', () => {
const folderUri = Uri.file('abc');
const documentUri = Uri.file('file');
workspaceService.setup((w) => w.workspaceFolders).returns(() => [{ uri: folderUri } as any, undefined as any]);
const textEditor = TypeMoq.Mock.ofType<TextEditor>();
const document = TypeMoq.Mock.ofType<TextDocument>();
textEditor.setup((t) => t.document).returns(() => document.object);
document.setup((d) => d.uri).returns(() => documentUri);
documentManager.setup((d) => d.activeTextEditor).returns(() => textEditor.object);
workspaceService.setup((w) => w.getWorkspaceFolder(TypeMoq.It.isValue(documentUri))).returns(() => undefined);
const workspace = helper.getActiveWorkspaceUri(undefined);
expect(workspace).to.be.equal(undefined, 'incorrect value');
});
test('getActiveWorkspaceUri should return workspace folder of the active editor if belongs to a workspace and if we have more than one workspace folder', () => {
const folderUri = Uri.file('abc');
const documentWorkspaceFolderUri = Uri.file('file.abc');
const documentUri = Uri.file('file');
workspaceService.setup((w) => w.workspaceFolders).returns(() => [{ uri: folderUri } as any, undefined as any]);
const textEditor = TypeMoq.Mock.ofType<TextEditor>();
const document = TypeMoq.Mock.ofType<TextDocument>();
textEditor.setup((t) => t.document).returns(() => document.object);
document.setup((d) => d.uri).returns(() => documentUri);
documentManager.setup((d) => d.activeTextEditor).returns(() => textEditor.object);
workspaceService
.setup((w) => w.getWorkspaceFolder(TypeMoq.It.isValue(documentUri)))
.returns(() => {
return { uri: documentWorkspaceFolderUri } as any;
});
const workspace = helper.getActiveWorkspaceUri(undefined);
expect(workspace).to.be.not.equal(undefined, 'incorrect value');
expect(workspace!.folderUri).to.be.equal(documentWorkspaceFolderUri);
expect(workspace!.configTarget).to.be.equal(ConfigurationTarget.WorkspaceFolder);
});
test('getBestInterpreter should return undefined for an empty list', () => {
expect(helper.getBestInterpreter([])).to.be.equal(undefined, 'should be undefined');
expect(helper.getBestInterpreter(undefined)).to.be.equal(undefined, 'should be undefined');
});
test('getBestInterpreter should return first item if there is only one', () => {
expect(helper.getBestInterpreter(['a'] as any)).to.be.equal('a', 'should be undefined');
});
test('getBestInterpreter should return interpreter with highest version', () => {
const interpreter1 = { version: JSON.parse(JSON.stringify(new SemVer('1.0.0-alpha'))) };
const interpreter2 = { version: JSON.parse(JSON.stringify(new SemVer('3.6.0'))) };
const interpreter3 = { version: JSON.parse(JSON.stringify(new SemVer('3.7.1-alpha'))) };
const interpreter4 = { version: JSON.parse(JSON.stringify(new SemVer('3.6.0-alpha'))) };
const interpreters = [interpreter1, interpreter2, interpreter3, interpreter4] as any;
expect(helper.getBestInterpreter(interpreters)).to.be.deep.equal(interpreter3);
});
});
``` | /content/code_sandbox/src/test/interpreters/helpers.unit.test.ts | xml | 2016-01-19T10:50:01 | 2024-08-12T21:05:24 | pythonVSCode | DonJayamanne/pythonVSCode | 2,078 | 1,361 |
```xml
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChildren,
EventEmitter,
Input,
Output,
QueryList,
ViewChildren
} from "@angular/core";
import { UntypedFormGroup } from "@angular/forms";
import {
DynamicFormComponent,
DynamicFormComponentService,
DynamicFormControlEvent,
DynamicFormLayout,
DynamicFormModel,
DynamicTemplateDirective
} from "@ng-dynamic-forms/core";
import { DynamicBasicFormControlContainerComponent } from "./dynamic-basic-form-control-container.component";
import { NgFor } from "@angular/common";
@Component({
selector: "dynamic-basic-form",
templateUrl: "./dynamic-basic-form.component.html",
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [NgFor, DynamicBasicFormControlContainerComponent]
})
export class DynamicBasicFormComponent extends DynamicFormComponent {
@Input() group!: UntypedFormGroup;
@Input() model!: DynamicFormModel;
@Input() layout?: DynamicFormLayout;
@Output() blur: EventEmitter<DynamicFormControlEvent> = new EventEmitter<DynamicFormControlEvent>();
@Output() change: EventEmitter<DynamicFormControlEvent> = new EventEmitter<DynamicFormControlEvent>();
@Output() focus: EventEmitter<DynamicFormControlEvent> = new EventEmitter<DynamicFormControlEvent>();
@ContentChildren(DynamicTemplateDirective) templates!: QueryList<DynamicTemplateDirective>;
@ViewChildren(DynamicBasicFormControlContainerComponent) components!: QueryList<DynamicBasicFormControlContainerComponent>;
constructor(protected changeDetectorRef: ChangeDetectorRef, protected componentService: DynamicFormComponentService) {
super(changeDetectorRef, componentService);
}
}
``` | /content/code_sandbox/projects/ng-dynamic-forms/ui-basic/src/lib/dynamic-basic-form.component.ts | xml | 2016-06-01T20:26:33 | 2024-08-05T16:40:39 | ng-dynamic-forms | udos86/ng-dynamic-forms | 1,315 | 348 |
```xml
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# You may obtain a copy of the Licence at
# path_to_url
#
# As a special exception this file can also be included in modules
# with other source code as long as that source code has been
# released under an Open Source Initiative certificed licence.
# More information about OSI certification can be found at:
# path_to_url
#
# This module 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
# GNU Lesser General Public Licence for more details.
#
# This module was created by members of the firebird development
# those individuals and all rights are reserved. Contributors to
# this file are either listed below or can be obtained from a CVS
# history command.
#
# Created by: Mark O'Donohue <mark.odonohue@ludwig.edu.au>
#
# Contributor(s):
#
#
#
#-----------------------------------------------------------
# Amongst a number of makefiles some of the targets have
# specific rules. Rather than duplicate the rules in a
# number of makefiles, these have been included here.
#
# Hopefully this file is an intermediate step, on the way to
# potentially a single makefile, or at least one per directory.
# MOD 07-Oct-2002
# This rule creates parse.cpp from parse.y
# With make 4.3 this can be simplified with a simple group target (&:) dependency.
$(OBJ)/dsql/parse.cpp $(SRC_ROOT)/include/gen/parse.h: $(OBJ)/.parse-gen-sentinel ;
$(OBJ)/.parse-gen-sentinel: $(SRC_ROOT)/dsql/parse.y $(SRC_ROOT)/dsql/btyacc_fb.ske
sed -n '/%type .*/p' < $< > $(GEN_ROOT)/types.y
sed 's/%type .*//' < $< > $(GEN_ROOT)/y.y
($(BTYACC) -l -d -S $(SRC_ROOT)/dsql/btyacc_fb.ske $(GEN_ROOT)/y.y; echo $$? > $(GEN_ROOT)/y.status) 2>&1 | tee $(GEN_ROOT)/y.txt
(exit `cat $(GEN_ROOT)/y.status`)
sed -n -e "s/.*btyacc: \(.*conflicts.*\)/\1/p" $(GEN_ROOT)/y.txt > $(SRC_ROOT)/dsql/parse-conflicts.txt
sed -i -e 's/#define \([A-Z].*\)/#define TOK_\1/' $(GEN_ROOT)/y_tab.h
sed -i -e 's/#define TOK_YY\(.*\)/#define YY\1/' $(GEN_ROOT)/y_tab.h
$(MV) $(GEN_ROOT)/y_tab.h $(SRC_ROOT)/include/gen/parse.h
$(MV) $(GEN_ROOT)/y_tab.c $(OBJ)/dsql/parse.cpp
touch $@
# gpre_meta needs a special boot build since there is no database.
$(SRC_ROOT)/gpre/gpre_meta.cpp: $(SRC_ROOT)/gpre/gpre_meta.epp
$(GPRE_BOOT) -lang_internal $(GPRE_FLAGS) $< $@
# Explicit dependence on generated header (parser)
$(OBJ)/dsql/Parser.o $(OBJ)/dsql/Keywords.o $(OBJ)/dsql/dsql.o: $(SRC_ROOT)/include/gen/parse.h
# Special cases for building cpp from epp
$(OBJ)/dsql/metd.cpp: $(SRC_ROOT)/dsql/metd.epp
$(GPRE_CURRENT) $(JRD_GPRE_FLAGS) $< $@
$(OBJ)/dsql/DdlNodes.cpp: $(SRC_ROOT)/dsql/DdlNodes.epp
$(GPRE_CURRENT) $(JRD_GPRE_FLAGS) $< $@
$(OBJ)/dsql/PackageNodes.cpp: $(SRC_ROOT)/dsql/PackageNodes.epp
$(GPRE_CURRENT) $(JRD_GPRE_FLAGS) $< $@
# Adding resources as prerequisite for some files
$(FilesToAddVersionInfo): $(GEN_ROOT)/jrd/version.res
$(FilesToAddDialog): $(GEN_ROOT)/remote/os/win32/window.res
$(FilesToAddDialog2): $(GEN_ROOT)/iscguard/iscguard.res
# Explicit dependence of resource script
$(GEN_ROOT)/remote/os/win32/window.res: $(SRC_ROOT)/remote/os/win32/window.rc $(SRC_ROOT)/remote/os/win32/window.rh \
$(SRC_ROOT)/jrd/version.rc $(SRC_ROOT)/jrd/build_no.h $(SRC_ROOT)/remote/os/win32/property.rc \
$(SRC_ROOT)/remote/os/win32/property.rh
$(GEN_ROOT)/iscguard/iscguard.res: $(SRC_ROOT)/iscguard/iscguard.rc $(SRC_ROOT)/iscguard/iscguard.rh \
$(SRC_ROOT)/jrd/version.rc
.PHONY: FORCE
# This target is used in the generated dependancy xxx.d files which are
# automatically created from the .cpp files. To simplify the build
# process, if the .d files does not yet exist, a line is written
# of the form fred.o : FORCE to ennsure that fred.cpp will be
# recompiled MOD 7-Oct-2002
FORCE:
``` | /content/code_sandbox/builds/posix/make.shared.targets | xml | 2016-03-16T06:10:37 | 2024-08-16T14:13:51 | firebird | FirebirdSQL/firebird | 1,223 | 1,158 |
```xml
declare interface IReactOfflineFirstWebPartStrings {
PropertyPaneDescription: string;
BasicGroupName: string;
DescriptionFieldLabel: string;
}
declare module 'ReactOfflineFirstWebPartStrings' {
const strings: IReactOfflineFirstWebPartStrings;
export = strings;
}
``` | /content/code_sandbox/samples/react-offline-first/src/webparts/reactOfflineFirst/loc/mystrings.d.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 61 |
```xml
import * as CHANNELS from '@storybook/core/channels';
import * as TYPES from '@storybook/core/types';
import * as GLOBAL from '@storybook/global';
import * as CLIENT_LOGGER from '@storybook/core/client-logger';
import * as CORE_EVENTS from '@storybook/core/core-events';
import * as PREVIEW_API from '@storybook/core/preview-api';
import * as CORE_EVENTS_PREVIEW_ERRORS from '@storybook/core/preview-errors';
import type { globalsNameReferenceMap } from './globals';
// Here we map the name of a module to their VALUE in the global scope.
export const globalsNameValueMap: Required<Record<keyof typeof globalsNameReferenceMap, any>> = {
'@storybook/global': GLOBAL,
'storybook/internal/channels': CHANNELS,
'@storybook/channels': CHANNELS,
'@storybook/core/channels': CHANNELS,
'storybook/internal/client-logger': CLIENT_LOGGER,
'@storybook/client-logger': CLIENT_LOGGER,
'@storybook/core/client-logger': CLIENT_LOGGER,
'storybook/internal/core-events': CORE_EVENTS,
'@storybook/core-events': CORE_EVENTS,
'@storybook/core/core-events': CORE_EVENTS,
'storybook/internal/preview-errors': CORE_EVENTS_PREVIEW_ERRORS,
'@storybook/core-events/preview-errors': CORE_EVENTS_PREVIEW_ERRORS,
'@storybook/core/preview-errors': CORE_EVENTS_PREVIEW_ERRORS,
'storybook/internal/preview-api': PREVIEW_API,
'@storybook/preview-api': PREVIEW_API,
'@storybook/core/preview-api': PREVIEW_API,
'storybook/internal/types': TYPES,
'@storybook/types': TYPES,
'@storybook/core/types': TYPES,
};
``` | /content/code_sandbox/code/core/src/preview/globals/runtime.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 334 |
```xml
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
import { ApiService } from "@bitwarden/common/abstractions/api.service";
import { UserVerificationService } from "@bitwarden/common/auth/abstractions/user-verification/user-verification.service.abstraction";
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
import { DialogService } from "@bitwarden/components";
import { ApiKeyComponent } from "./api-key.component";
@Component({
selector: "app-security-keys",
templateUrl: "security-keys.component.html",
})
export class SecurityKeysComponent implements OnInit {
@ViewChild("viewUserApiKeyTemplate", { read: ViewContainerRef, static: true })
viewUserApiKeyModalRef: ViewContainerRef;
@ViewChild("rotateUserApiKeyTemplate", { read: ViewContainerRef, static: true })
rotateUserApiKeyModalRef: ViewContainerRef;
showChangeKdf = true;
constructor(
private userVerificationService: UserVerificationService,
private stateService: StateService,
private apiService: ApiService,
private dialogService: DialogService,
) {}
async ngOnInit() {
this.showChangeKdf = await this.userVerificationService.hasMasterPassword();
}
async viewUserApiKey() {
const entityId = await this.stateService.getUserId();
await ApiKeyComponent.open(this.dialogService, {
data: {
keyType: "user",
entityId: entityId,
postKey: this.apiService.postUserApiKey.bind(this.apiService),
scope: "api",
grantType: "client_credentials",
apiKeyTitle: "apiKey",
apiKeyWarning: "userApiKeyWarning",
apiKeyDescription: "userApiKeyDesc",
},
});
}
async rotateUserApiKey() {
const entityId = await this.stateService.getUserId();
await ApiKeyComponent.open(this.dialogService, {
data: {
keyType: "user",
isRotation: true,
entityId: entityId,
postKey: this.apiService.postUserRotateApiKey.bind(this.apiService),
scope: "api",
grantType: "client_credentials",
apiKeyTitle: "apiKey",
apiKeyWarning: "userApiKeyWarning",
apiKeyDescription: "apiKeyRotateDesc",
},
});
}
}
``` | /content/code_sandbox/apps/web/src/app/auth/settings/security/security-keys.component.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 478 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.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>
<PropertyGroup Label="Globals">
<ProjectGuid>{0BB7249A-FBE7-50DC-F07B-49AF5F4D49B6}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>translator_static</RootNamespace>
<IgnoreWarnCompileDuplicatedFilename>true</IgnoreWarnCompileDuplicatedFilename>
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props"/>
<PropertyGroup Label="Configuration">
<CharacterSet>Unicode</CharacterSet>
<ConfigurationType>StaticLibrary</ConfigurationType>
</PropertyGroup>
<PropertyGroup Label="Locals">
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props"/>
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props"/>
<ImportGroup Label="ExtensionSettings"/>
<ImportGroup Label="PropertySheets">
<Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"/>
</ImportGroup>
<PropertyGroup Label="UserMacros"/>
<PropertyGroup>
<EmbedManifest>false</EmbedManifest>
<ExecutablePath>$(ExecutablePath);$(MSBuildProjectDirectory)\.\bin\;$(MSBuildProjectDirectory)\.\bin\</ExecutablePath>
<OutDir>..\..\..\out\$(Configuration)\</OutDir>
<IntDir>$(OutDir)obj\$(ProjectName)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
<TargetName>$(ProjectName)</TargetName>
<TargetPath>$(OutDir)lib\$(ProjectName)$(TargetExt)</TargetPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>$(OutDir)gen;..\..\..\third_party\wtl\include;.;..\include;C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/MP /bigobj /Zc:sizedDealloc- %(AdditionalOptions)</AdditionalOptions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<BufferSecurityCheck>true</BufferSecurityCheck>
<CompileAsWinRT>false</CompileAsWinRT>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DisableSpecificWarnings>4091;4127;4351;4355;4503;4589;4611;4100;4121;4244;4481;4505;4510;4512;4610;4838;4995;4996;4456;4457;4458;4459;4702;4718;4251;4800;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ExceptionHandling>false</ExceptionHandling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<MinimalRebuild>false</MinimalRebuild>
<Optimization>Disabled</Optimization>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;_HAS_EXCEPTIONS=0;NOMINMAX;_DEBUG;V8_DEPRECATION_WARNINGS;CLD_VERSION=2;_WIN32_WINNT=0x0603;WINVER=0x0603;WIN32;_WINDOWS;NOMINMAX;PSAPI_VERSION=1;_CRT_RAND_S;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;WIN32_LEAN_AND_MEAN;_ATL_NO_OPENGL;_SECURE_ATL;_HAS_EXCEPTIONS=0;_WINSOCK_DEPRECATED_NO_WARNINGS;DISABLE_NACL;CHROMIUM_BUILD;CR_CLANG_REVISION=247874-1;COMPONENT_BUILD;USE_AURA=1;USE_ASH=1;USE_DEFAULT_RENDER_THEME=1;USE_LIBJPEG_TURBO=1;ENABLE_ONE_CLICK_SIGNIN;ENABLE_PRE_SYNC_BACKUP;ENABLE_WEBRTC=1;ENABLE_MEDIA_ROUTER=1;ENABLE_PEPPER_CDMS;ENABLE_CONFIGURATION_POLICY;ENABLE_NOTIFICATIONS;ENABLE_HIDPI=1;ENABLE_TOPCHROME_MD=1;DONT_EMBED_BUILD_METADATA;FIELDTRIAL_TESTING_ENABLED;NO_TCMALLOC;__STD_C;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;NTDDI_VERSION=0x06030000;_USING_V110_SDK71_;ENABLE_TASK_MANAGER=1;ENABLE_EXTENSIONS=1;ENABLE_PDF=1;ENABLE_PLUGIN_INSTALLATION=1;ENABLE_PLUGINS=1;ENABLE_SESSION_SERVICE=1;ENABLE_THEMES=1;ENABLE_AUTOFILL_DIALOG=1;ENABLE_BACKGROUND=1;ENABLE_GOOGLE_NOW=1;ENABLE_PRINTING=1;ENABLE_BASIC_PRINTING=1;ENABLE_PRINT_PREVIEW=1;ENABLE_SPELLCHECK=1;ENABLE_CAPTIVE_PORTAL_DETECTION=1;ENABLE_APP_LIST=1;ENABLE_SETTINGS_APP=1;ENABLE_SUPERVISED_USERS=1;ENABLE_MDNS=1;ENABLE_SERVICE_DISCOVERY=1;V8_USE_EXTERNAL_STARTUP_DATA;FULL_SAFE_BROWSING;SAFE_BROWSING_CSD;SAFE_BROWSING_DB_LOCAL;ANGLE_TRANSLATOR_STATIC;ANGLE_ENABLE_HLSL;USE_LIBPCI=1;USE_OPENSSL=1;_CRT_NONSTDC_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;DYNAMIC_ANNOTATIONS_ENABLED=1;WTF_USE_DYNAMIC_ANNOTATIONS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<TreatWarningAsError>true</TreatWarningAsError>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
<Lib>
<AdditionalLibraryDirectories>C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalOptions>/ignore:4221 %(AdditionalOptions)</AdditionalOptions>
<OutputFile>$(OutDir)lib\$(ProjectName)$(TargetExt)</OutputFile>
<TargetMachine>MachineX86</TargetMachine>
</Lib>
<Link>
<AdditionalDependencies>wininet.lib;dnsapi.lib;version.lib;msimg32.lib;ws2_32.lib;usp10.lib;psapi.lib;dbghelp.lib;winmm.lib;shlwapi.lib;kernel32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;user32.lib;uuid.lib;odbc32.lib;odbccp32.lib;delayimp.lib;credui.lib;netapi32.lib</AdditionalDependencies>
<AdditionalLibraryDirectories>C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalOptions>/maxilksize:0x7ff00000 /safeseh /dynamicbase /ignore:4199 /ignore:4221 /nxcompat /largeaddressaware %(AdditionalOptions)</AdditionalOptions>
<DelayLoadDLLs>dbghelp.dll;dwmapi.dll;shell32.dll;uxtheme.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
<FixedBaseAddress>false</FixedBaseAddress>
<GenerateDebugInformation>true</GenerateDebugInformation>
<MapFileName>$(OutDir)$(TargetName).map</MapFileName>
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<Midl>
<AdditionalIncludeDirectories>C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DllDataFileName>%(Filename).dlldata.c</DllDataFileName>
<GenerateStublessProxies>true</GenerateStublessProxies>
<HeaderFileName>%(Filename).h</HeaderFileName>
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
<OutputDirectory>$(IntDir)</OutputDirectory>
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
</Midl>
<ResourceCompile>
<AdditionalIncludeDirectories>../../..;$(OutDir)gen;$(OutDir)gen;..\..\..\third_party\wtl\include;.;..\include;C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<Culture>0x0409</Culture>
<PreprocessorDefinitions>_DEBUG;V8_DEPRECATION_WARNINGS;CLD_VERSION=2;_WIN32_WINNT=0x0603;WINVER=0x0603;WIN32;_WINDOWS;NOMINMAX;PSAPI_VERSION=1;_CRT_RAND_S;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;WIN32_LEAN_AND_MEAN;_ATL_NO_OPENGL;_SECURE_ATL;_HAS_EXCEPTIONS=0;_WINSOCK_DEPRECATED_NO_WARNINGS;DISABLE_NACL;CHROMIUM_BUILD;CR_CLANG_REVISION=247874-1;COMPONENT_BUILD;USE_AURA=1;USE_ASH=1;USE_DEFAULT_RENDER_THEME=1;USE_LIBJPEG_TURBO=1;ENABLE_ONE_CLICK_SIGNIN;ENABLE_PRE_SYNC_BACKUP;ENABLE_WEBRTC=1;ENABLE_MEDIA_ROUTER=1;ENABLE_PEPPER_CDMS;ENABLE_CONFIGURATION_POLICY;ENABLE_NOTIFICATIONS;ENABLE_HIDPI=1;ENABLE_TOPCHROME_MD=1;DONT_EMBED_BUILD_METADATA;FIELDTRIAL_TESTING_ENABLED;NO_TCMALLOC;__STD_C;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;NTDDI_VERSION=0x06030000;_USING_V110_SDK71_;ENABLE_TASK_MANAGER=1;ENABLE_EXTENSIONS=1;ENABLE_PDF=1;ENABLE_PLUGIN_INSTALLATION=1;ENABLE_PLUGINS=1;ENABLE_SESSION_SERVICE=1;ENABLE_THEMES=1;ENABLE_AUTOFILL_DIALOG=1;ENABLE_BACKGROUND=1;ENABLE_GOOGLE_NOW=1;ENABLE_PRINTING=1;ENABLE_BASIC_PRINTING=1;ENABLE_PRINT_PREVIEW=1;ENABLE_SPELLCHECK=1;ENABLE_CAPTIVE_PORTAL_DETECTION=1;ENABLE_APP_LIST=1;ENABLE_SETTINGS_APP=1;ENABLE_SUPERVISED_USERS=1;ENABLE_MDNS=1;ENABLE_SERVICE_DISCOVERY=1;V8_USE_EXTERNAL_STARTUP_DATA;FULL_SAFE_BROWSING;SAFE_BROWSING_CSD;SAFE_BROWSING_DB_LOCAL;ANGLE_TRANSLATOR_STATIC;ANGLE_ENABLE_HLSL;USE_LIBPCI=1;USE_OPENSSL=1;_CRT_NONSTDC_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;DYNAMIC_ANNOTATIONS_ENABLED=1;WTF_USE_DYNAMIC_ANNOTATIONS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<AdditionalIncludeDirectories>$(OutDir)gen;..\..\..\third_party\wtl\include;.;..\include;C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/MP /bigobj /Zc:sizedDealloc- %(AdditionalOptions)</AdditionalOptions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<BufferSecurityCheck>true</BufferSecurityCheck>
<CompileAsWinRT>false</CompileAsWinRT>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DisableSpecificWarnings>4091;4127;4351;4355;4503;4589;4611;4100;4121;4244;4481;4505;4510;4512;4610;4838;4995;4996;4456;4457;4458;4459;4702;4718;4251;4800;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ExceptionHandling>false</ExceptionHandling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<MinimalRebuild>false</MinimalRebuild>
<Optimization>Disabled</Optimization>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;_HAS_EXCEPTIONS=0;NOMINMAX;_DEBUG;V8_DEPRECATION_WARNINGS;CLD_VERSION=2;_WIN32_WINNT=0x0603;WINVER=0x0603;WIN32;_WINDOWS;NOMINMAX;PSAPI_VERSION=1;_CRT_RAND_S;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;WIN32_LEAN_AND_MEAN;_ATL_NO_OPENGL;_SECURE_ATL;_HAS_EXCEPTIONS=0;_WINSOCK_DEPRECATED_NO_WARNINGS;DISABLE_NACL;CHROMIUM_BUILD;CR_CLANG_REVISION=247874-1;COMPONENT_BUILD;USE_AURA=1;USE_ASH=1;USE_DEFAULT_RENDER_THEME=1;USE_LIBJPEG_TURBO=1;ENABLE_ONE_CLICK_SIGNIN;ENABLE_PRE_SYNC_BACKUP;ENABLE_WEBRTC=1;ENABLE_MEDIA_ROUTER=1;ENABLE_PEPPER_CDMS;ENABLE_CONFIGURATION_POLICY;ENABLE_NOTIFICATIONS;ENABLE_HIDPI=1;ENABLE_TOPCHROME_MD=1;DONT_EMBED_BUILD_METADATA;FIELDTRIAL_TESTING_ENABLED;NO_TCMALLOC;__STD_C;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;NTDDI_VERSION=0x06030000;_USING_V110_SDK71_;ENABLE_TASK_MANAGER=1;ENABLE_EXTENSIONS=1;ENABLE_PDF=1;ENABLE_PLUGIN_INSTALLATION=1;ENABLE_PLUGINS=1;ENABLE_SESSION_SERVICE=1;ENABLE_THEMES=1;ENABLE_AUTOFILL_DIALOG=1;ENABLE_BACKGROUND=1;ENABLE_GOOGLE_NOW=1;ENABLE_PRINTING=1;ENABLE_BASIC_PRINTING=1;ENABLE_PRINT_PREVIEW=1;ENABLE_SPELLCHECK=1;ENABLE_CAPTIVE_PORTAL_DETECTION=1;ENABLE_APP_LIST=1;ENABLE_SETTINGS_APP=1;ENABLE_SUPERVISED_USERS=1;ENABLE_MDNS=1;ENABLE_SERVICE_DISCOVERY=1;V8_USE_EXTERNAL_STARTUP_DATA;FULL_SAFE_BROWSING;SAFE_BROWSING_CSD;SAFE_BROWSING_DB_LOCAL;ANGLE_TRANSLATOR_STATIC;ANGLE_ENABLE_HLSL;USE_LIBPCI=1;USE_OPENSSL=1;_CRT_NONSTDC_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;DYNAMIC_ANNOTATIONS_ENABLED=1;WTF_USE_DYNAMIC_ANNOTATIONS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<TreatWarningAsError>true</TreatWarningAsError>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
<Lib>
<AdditionalLibraryDirectories>C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalOptions>/ignore:4221 %(AdditionalOptions)</AdditionalOptions>
<OutputFile>$(OutDir)lib\$(ProjectName)$(TargetExt)</OutputFile>
<TargetMachine>MachineX64</TargetMachine>
</Lib>
<Link>
<AdditionalDependencies>wininet.lib;dnsapi.lib;version.lib;msimg32.lib;ws2_32.lib;usp10.lib;psapi.lib;dbghelp.lib;winmm.lib;shlwapi.lib;kernel32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;user32.lib;uuid.lib;odbc32.lib;odbccp32.lib;delayimp.lib;credui.lib;netapi32.lib</AdditionalDependencies>
<AdditionalLibraryDirectories>C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalOptions>/maxilksize:0x7ff00000 /dynamicbase /ignore:4199 /ignore:4221 /nxcompat %(AdditionalOptions)</AdditionalOptions>
<DelayLoadDLLs>dbghelp.dll;dwmapi.dll;shell32.dll;uxtheme.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
<FixedBaseAddress>false</FixedBaseAddress>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreSpecificDefaultLibraries>olepro32.lib</IgnoreSpecificDefaultLibraries>
<MapFileName>$(OutDir)$(TargetName).map</MapFileName>
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX64</TargetMachine>
</Link>
<Midl>
<AdditionalIncludeDirectories>C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DllDataFileName>%(Filename).dlldata.c</DllDataFileName>
<GenerateStublessProxies>true</GenerateStublessProxies>
<HeaderFileName>%(Filename).h</HeaderFileName>
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
<OutputDirectory>$(IntDir)</OutputDirectory>
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
</Midl>
<ResourceCompile>
<AdditionalIncludeDirectories>../../..;$(OutDir)gen;$(OutDir)gen;..\..\..\third_party\wtl\include;.;..\include;C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<Culture>0x0409</Culture>
<PreprocessorDefinitions>_DEBUG;V8_DEPRECATION_WARNINGS;CLD_VERSION=2;_WIN32_WINNT=0x0603;WINVER=0x0603;WIN32;_WINDOWS;NOMINMAX;PSAPI_VERSION=1;_CRT_RAND_S;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;WIN32_LEAN_AND_MEAN;_ATL_NO_OPENGL;_SECURE_ATL;_HAS_EXCEPTIONS=0;_WINSOCK_DEPRECATED_NO_WARNINGS;DISABLE_NACL;CHROMIUM_BUILD;CR_CLANG_REVISION=247874-1;COMPONENT_BUILD;USE_AURA=1;USE_ASH=1;USE_DEFAULT_RENDER_THEME=1;USE_LIBJPEG_TURBO=1;ENABLE_ONE_CLICK_SIGNIN;ENABLE_PRE_SYNC_BACKUP;ENABLE_WEBRTC=1;ENABLE_MEDIA_ROUTER=1;ENABLE_PEPPER_CDMS;ENABLE_CONFIGURATION_POLICY;ENABLE_NOTIFICATIONS;ENABLE_HIDPI=1;ENABLE_TOPCHROME_MD=1;DONT_EMBED_BUILD_METADATA;FIELDTRIAL_TESTING_ENABLED;NO_TCMALLOC;__STD_C;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;NTDDI_VERSION=0x06030000;_USING_V110_SDK71_;ENABLE_TASK_MANAGER=1;ENABLE_EXTENSIONS=1;ENABLE_PDF=1;ENABLE_PLUGIN_INSTALLATION=1;ENABLE_PLUGINS=1;ENABLE_SESSION_SERVICE=1;ENABLE_THEMES=1;ENABLE_AUTOFILL_DIALOG=1;ENABLE_BACKGROUND=1;ENABLE_GOOGLE_NOW=1;ENABLE_PRINTING=1;ENABLE_BASIC_PRINTING=1;ENABLE_PRINT_PREVIEW=1;ENABLE_SPELLCHECK=1;ENABLE_CAPTIVE_PORTAL_DETECTION=1;ENABLE_APP_LIST=1;ENABLE_SETTINGS_APP=1;ENABLE_SUPERVISED_USERS=1;ENABLE_MDNS=1;ENABLE_SERVICE_DISCOVERY=1;V8_USE_EXTERNAL_STARTUP_DATA;FULL_SAFE_BROWSING;SAFE_BROWSING_CSD;SAFE_BROWSING_DB_LOCAL;ANGLE_TRANSLATOR_STATIC;ANGLE_ENABLE_HLSL;USE_LIBPCI=1;USE_OPENSSL=1;_CRT_NONSTDC_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;DYNAMIC_ANNOTATIONS_ENABLED=1;WTF_USE_DYNAMIC_ANNOTATIONS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>$(OutDir)gen;..\..\..\third_party\wtl\include;.;..\include;C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/MP /bigobj /Zc:sizedDealloc- /d2Zi+ /Zc:inline /Oy- /Gw %(AdditionalOptions)</AdditionalOptions>
<BufferSecurityCheck>true</BufferSecurityCheck>
<CompileAsWinRT>false</CompileAsWinRT>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DisableSpecificWarnings>4091;4127;4351;4355;4503;4589;4611;4100;4121;4244;4481;4505;4510;4512;4610;4838;4995;4996;4456;4457;4458;4459;4702;4718;4251;4800;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ExceptionHandling>false</ExceptionHandling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<MinimalRebuild>false</MinimalRebuild>
<OmitFramePointers>false</OmitFramePointers>
<Optimization>MaxSpeed</Optimization>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;_HAS_EXCEPTIONS=0;NOMINMAX;V8_DEPRECATION_WARNINGS;CLD_VERSION=2;_WIN32_WINNT=0x0603;WINVER=0x0603;WIN32;_WINDOWS;NOMINMAX;PSAPI_VERSION=1;_CRT_RAND_S;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;WIN32_LEAN_AND_MEAN;_ATL_NO_OPENGL;_SECURE_ATL;_HAS_EXCEPTIONS=0;_WINSOCK_DEPRECATED_NO_WARNINGS;DISABLE_NACL;CHROMIUM_BUILD;CR_CLANG_REVISION=247874-1;COMPONENT_BUILD;USE_AURA=1;USE_ASH=1;USE_DEFAULT_RENDER_THEME=1;USE_LIBJPEG_TURBO=1;ENABLE_ONE_CLICK_SIGNIN;ENABLE_PRE_SYNC_BACKUP;ENABLE_WEBRTC=1;ENABLE_MEDIA_ROUTER=1;ENABLE_PEPPER_CDMS;ENABLE_CONFIGURATION_POLICY;ENABLE_NOTIFICATIONS;ENABLE_HIDPI=1;ENABLE_TOPCHROME_MD=1;DONT_EMBED_BUILD_METADATA;FIELDTRIAL_TESTING_ENABLED;NO_TCMALLOC;__STD_C;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;NTDDI_VERSION=0x06030000;_USING_V110_SDK71_;ENABLE_TASK_MANAGER=1;ENABLE_EXTENSIONS=1;ENABLE_PDF=1;ENABLE_PLUGIN_INSTALLATION=1;ENABLE_PLUGINS=1;ENABLE_SESSION_SERVICE=1;ENABLE_THEMES=1;ENABLE_AUTOFILL_DIALOG=1;ENABLE_BACKGROUND=1;ENABLE_GOOGLE_NOW=1;ENABLE_PRINTING=1;ENABLE_BASIC_PRINTING=1;ENABLE_PRINT_PREVIEW=1;ENABLE_SPELLCHECK=1;ENABLE_CAPTIVE_PORTAL_DETECTION=1;ENABLE_APP_LIST=1;ENABLE_SETTINGS_APP=1;ENABLE_SUPERVISED_USERS=1;ENABLE_MDNS=1;ENABLE_SERVICE_DISCOVERY=1;V8_USE_EXTERNAL_STARTUP_DATA;FULL_SAFE_BROWSING;SAFE_BROWSING_CSD;SAFE_BROWSING_DB_LOCAL;ANGLE_TRANSLATOR_STATIC;ANGLE_ENABLE_HLSL;USE_LIBPCI=1;USE_OPENSSL=1;_CRT_NONSTDC_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;NVALGRIND;DYNAMIC_ANNOTATIONS_ENABLED=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<StringPooling>true</StringPooling>
<TreatWarningAsError>true</TreatWarningAsError>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
<Lib>
<AdditionalLibraryDirectories>C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalOptions>/ignore:4221 %(AdditionalOptions)</AdditionalOptions>
<OutputFile>$(OutDir)lib\$(ProjectName)$(TargetExt)</OutputFile>
<TargetMachine>MachineX86</TargetMachine>
</Lib>
<Link>
<AdditionalDependencies>wininet.lib;dnsapi.lib;version.lib;msimg32.lib;ws2_32.lib;usp10.lib;psapi.lib;dbghelp.lib;winmm.lib;shlwapi.lib;kernel32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;user32.lib;uuid.lib;odbc32.lib;odbccp32.lib;delayimp.lib;credui.lib;netapi32.lib</AdditionalDependencies>
<AdditionalLibraryDirectories>C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalOptions>/maxilksize:0x7ff00000 /safeseh /dynamicbase /ignore:4199 /ignore:4221 /nxcompat /largeaddressaware %(AdditionalOptions)</AdditionalOptions>
<DelayLoadDLLs>dbghelp.dll;dwmapi.dll;shell32.dll;uxtheme.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<FixedBaseAddress>false</FixedBaseAddress>
<GenerateDebugInformation>true</GenerateDebugInformation>
<MapFileName>$(OutDir)$(TargetName).map</MapFileName>
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
<OptimizeReferences>true</OptimizeReferences>
<Profile>true</Profile>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<Midl>
<AdditionalIncludeDirectories>C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DllDataFileName>%(Filename).dlldata.c</DllDataFileName>
<GenerateStublessProxies>true</GenerateStublessProxies>
<HeaderFileName>%(Filename).h</HeaderFileName>
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
<OutputDirectory>$(IntDir)</OutputDirectory>
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
</Midl>
<ResourceCompile>
<AdditionalIncludeDirectories>../../..;$(OutDir)gen;$(OutDir)gen;..\..\..\third_party\wtl\include;.;..\include;C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<Culture>0x0409</Culture>
<PreprocessorDefinitions>V8_DEPRECATION_WARNINGS;CLD_VERSION=2;_WIN32_WINNT=0x0603;WINVER=0x0603;WIN32;_WINDOWS;NOMINMAX;PSAPI_VERSION=1;_CRT_RAND_S;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;WIN32_LEAN_AND_MEAN;_ATL_NO_OPENGL;_SECURE_ATL;_HAS_EXCEPTIONS=0;_WINSOCK_DEPRECATED_NO_WARNINGS;DISABLE_NACL;CHROMIUM_BUILD;CR_CLANG_REVISION=247874-1;COMPONENT_BUILD;USE_AURA=1;USE_ASH=1;USE_DEFAULT_RENDER_THEME=1;USE_LIBJPEG_TURBO=1;ENABLE_ONE_CLICK_SIGNIN;ENABLE_PRE_SYNC_BACKUP;ENABLE_WEBRTC=1;ENABLE_MEDIA_ROUTER=1;ENABLE_PEPPER_CDMS;ENABLE_CONFIGURATION_POLICY;ENABLE_NOTIFICATIONS;ENABLE_HIDPI=1;ENABLE_TOPCHROME_MD=1;DONT_EMBED_BUILD_METADATA;FIELDTRIAL_TESTING_ENABLED;NO_TCMALLOC;__STD_C;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;NTDDI_VERSION=0x06030000;_USING_V110_SDK71_;ENABLE_TASK_MANAGER=1;ENABLE_EXTENSIONS=1;ENABLE_PDF=1;ENABLE_PLUGIN_INSTALLATION=1;ENABLE_PLUGINS=1;ENABLE_SESSION_SERVICE=1;ENABLE_THEMES=1;ENABLE_AUTOFILL_DIALOG=1;ENABLE_BACKGROUND=1;ENABLE_GOOGLE_NOW=1;ENABLE_PRINTING=1;ENABLE_BASIC_PRINTING=1;ENABLE_PRINT_PREVIEW=1;ENABLE_SPELLCHECK=1;ENABLE_CAPTIVE_PORTAL_DETECTION=1;ENABLE_APP_LIST=1;ENABLE_SETTINGS_APP=1;ENABLE_SUPERVISED_USERS=1;ENABLE_MDNS=1;ENABLE_SERVICE_DISCOVERY=1;V8_USE_EXTERNAL_STARTUP_DATA;FULL_SAFE_BROWSING;SAFE_BROWSING_CSD;SAFE_BROWSING_DB_LOCAL;ANGLE_TRANSLATOR_STATIC;ANGLE_ENABLE_HLSL;USE_LIBPCI=1;USE_OPENSSL=1;_CRT_NONSTDC_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;NVALGRIND;DYNAMIC_ANNOTATIONS_ENABLED=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<AdditionalIncludeDirectories>$(OutDir)gen;..\..\..\third_party\wtl\include;.;..\include;C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/MP /bigobj /Zc:sizedDealloc- /d2Zi+ /Zc:inline /Oy- /Gw %(AdditionalOptions)</AdditionalOptions>
<BufferSecurityCheck>true</BufferSecurityCheck>
<CompileAsWinRT>false</CompileAsWinRT>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DisableSpecificWarnings>4091;4127;4351;4355;4503;4589;4611;4100;4121;4244;4481;4505;4510;4512;4610;4838;4995;4996;4456;4457;4458;4459;4702;4718;4251;4800;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ExceptionHandling>false</ExceptionHandling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<MinimalRebuild>false</MinimalRebuild>
<OmitFramePointers>false</OmitFramePointers>
<Optimization>MaxSpeed</Optimization>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_WARNINGS;_HAS_EXCEPTIONS=0;NOMINMAX;V8_DEPRECATION_WARNINGS;CLD_VERSION=2;_WIN32_WINNT=0x0603;WINVER=0x0603;WIN32;_WINDOWS;NOMINMAX;PSAPI_VERSION=1;_CRT_RAND_S;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;WIN32_LEAN_AND_MEAN;_ATL_NO_OPENGL;_SECURE_ATL;_HAS_EXCEPTIONS=0;_WINSOCK_DEPRECATED_NO_WARNINGS;DISABLE_NACL;CHROMIUM_BUILD;CR_CLANG_REVISION=247874-1;COMPONENT_BUILD;USE_AURA=1;USE_ASH=1;USE_DEFAULT_RENDER_THEME=1;USE_LIBJPEG_TURBO=1;ENABLE_ONE_CLICK_SIGNIN;ENABLE_PRE_SYNC_BACKUP;ENABLE_WEBRTC=1;ENABLE_MEDIA_ROUTER=1;ENABLE_PEPPER_CDMS;ENABLE_CONFIGURATION_POLICY;ENABLE_NOTIFICATIONS;ENABLE_HIDPI=1;ENABLE_TOPCHROME_MD=1;DONT_EMBED_BUILD_METADATA;FIELDTRIAL_TESTING_ENABLED;NO_TCMALLOC;__STD_C;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;NTDDI_VERSION=0x06030000;_USING_V110_SDK71_;ENABLE_TASK_MANAGER=1;ENABLE_EXTENSIONS=1;ENABLE_PDF=1;ENABLE_PLUGIN_INSTALLATION=1;ENABLE_PLUGINS=1;ENABLE_SESSION_SERVICE=1;ENABLE_THEMES=1;ENABLE_AUTOFILL_DIALOG=1;ENABLE_BACKGROUND=1;ENABLE_GOOGLE_NOW=1;ENABLE_PRINTING=1;ENABLE_BASIC_PRINTING=1;ENABLE_PRINT_PREVIEW=1;ENABLE_SPELLCHECK=1;ENABLE_CAPTIVE_PORTAL_DETECTION=1;ENABLE_APP_LIST=1;ENABLE_SETTINGS_APP=1;ENABLE_SUPERVISED_USERS=1;ENABLE_MDNS=1;ENABLE_SERVICE_DISCOVERY=1;V8_USE_EXTERNAL_STARTUP_DATA;FULL_SAFE_BROWSING;SAFE_BROWSING_CSD;SAFE_BROWSING_DB_LOCAL;ANGLE_TRANSLATOR_STATIC;ANGLE_ENABLE_HLSL;USE_LIBPCI=1;USE_OPENSSL=1;_CRT_NONSTDC_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;NVALGRIND;DYNAMIC_ANNOTATIONS_ENABLED=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<StringPooling>true</StringPooling>
<TreatWarningAsError>true</TreatWarningAsError>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
<Lib>
<AdditionalLibraryDirectories>C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalOptions>/ignore:4221 %(AdditionalOptions)</AdditionalOptions>
<OutputFile>$(OutDir)lib\$(ProjectName)$(TargetExt)</OutputFile>
<TargetMachine>MachineX64</TargetMachine>
</Lib>
<Link>
<AdditionalDependencies>wininet.lib;dnsapi.lib;version.lib;msimg32.lib;ws2_32.lib;usp10.lib;psapi.lib;dbghelp.lib;winmm.lib;shlwapi.lib;kernel32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;user32.lib;uuid.lib;odbc32.lib;odbccp32.lib;delayimp.lib;credui.lib;netapi32.lib</AdditionalDependencies>
<AdditionalLibraryDirectories>C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalOptions>/maxilksize:0x7ff00000 /dynamicbase /ignore:4199 /ignore:4221 /nxcompat %(AdditionalOptions)</AdditionalOptions>
<DelayLoadDLLs>dbghelp.dll;dwmapi.dll;shell32.dll;uxtheme.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<FixedBaseAddress>false</FixedBaseAddress>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreSpecificDefaultLibraries>olepro32.lib</IgnoreSpecificDefaultLibraries>
<MapFileName>$(OutDir)$(TargetName).map</MapFileName>
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
<OptimizeReferences>true</OptimizeReferences>
<Profile>true</Profile>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX64</TargetMachine>
</Link>
<Midl>
<AdditionalIncludeDirectories>C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DllDataFileName>%(Filename).dlldata.c</DllDataFileName>
<GenerateStublessProxies>true</GenerateStublessProxies>
<HeaderFileName>%(Filename).h</HeaderFileName>
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
<OutputDirectory>$(IntDir)</OutputDirectory>
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
</Midl>
<ResourceCompile>
<AdditionalIncludeDirectories>../../..;$(OutDir)gen;$(OutDir)gen;..\..\..\third_party\wtl\include;.;..\include;C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;$(VSInstallDir)\VC\atlmfc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<Culture>0x0409</Culture>
<PreprocessorDefinitions>V8_DEPRECATION_WARNINGS;CLD_VERSION=2;_WIN32_WINNT=0x0603;WINVER=0x0603;WIN32;_WINDOWS;NOMINMAX;PSAPI_VERSION=1;_CRT_RAND_S;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;WIN32_LEAN_AND_MEAN;_ATL_NO_OPENGL;_SECURE_ATL;_HAS_EXCEPTIONS=0;_WINSOCK_DEPRECATED_NO_WARNINGS;DISABLE_NACL;CHROMIUM_BUILD;CR_CLANG_REVISION=247874-1;COMPONENT_BUILD;USE_AURA=1;USE_ASH=1;USE_DEFAULT_RENDER_THEME=1;USE_LIBJPEG_TURBO=1;ENABLE_ONE_CLICK_SIGNIN;ENABLE_PRE_SYNC_BACKUP;ENABLE_WEBRTC=1;ENABLE_MEDIA_ROUTER=1;ENABLE_PEPPER_CDMS;ENABLE_CONFIGURATION_POLICY;ENABLE_NOTIFICATIONS;ENABLE_HIDPI=1;ENABLE_TOPCHROME_MD=1;DONT_EMBED_BUILD_METADATA;FIELDTRIAL_TESTING_ENABLED;NO_TCMALLOC;__STD_C;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;NTDDI_VERSION=0x06030000;_USING_V110_SDK71_;ENABLE_TASK_MANAGER=1;ENABLE_EXTENSIONS=1;ENABLE_PDF=1;ENABLE_PLUGIN_INSTALLATION=1;ENABLE_PLUGINS=1;ENABLE_SESSION_SERVICE=1;ENABLE_THEMES=1;ENABLE_AUTOFILL_DIALOG=1;ENABLE_BACKGROUND=1;ENABLE_GOOGLE_NOW=1;ENABLE_PRINTING=1;ENABLE_BASIC_PRINTING=1;ENABLE_PRINT_PREVIEW=1;ENABLE_SPELLCHECK=1;ENABLE_CAPTIVE_PORTAL_DETECTION=1;ENABLE_APP_LIST=1;ENABLE_SETTINGS_APP=1;ENABLE_SUPERVISED_USERS=1;ENABLE_MDNS=1;ENABLE_SERVICE_DISCOVERY=1;V8_USE_EXTERNAL_STARTUP_DATA;FULL_SAFE_BROWSING;SAFE_BROWSING_CSD;SAFE_BROWSING_DB_LOCAL;ANGLE_TRANSLATOR_STATIC;ANGLE_ENABLE_HLSL;USE_LIBPCI=1;USE_OPENSSL=1;_CRT_NONSTDC_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;NVALGRIND;DYNAMIC_ANNOTATIONS_ENABLED=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemGroup>
<None Include="angle.gyp"/>
</ItemGroup>
<ItemGroup>
<ClCompile Include="compiler\translator\ShaderLang.cpp"/>
<ClCompile Include="compiler\translator\ShaderVars.cpp"/>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets"/>
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets"/>
<ImportGroup Label="ExtensionTargets"/>
<Target Name="Build">
<Exec Command="call ninja.exe -C $(OutDir) $(ProjectName)"/>
</Target>
<Target Name="Clean">
<Exec Command="call ninja.exe -C $(OutDir) -tclean $(ProjectName)"/>
</Target>
<Target Name="ClCompile">
<Exec Command="call E:\mycode\chromium\depot_tools\python276_bin\python.exe $(OutDir)gyp-win-tool cl-compile $(ProjectDir) $(SelectedFiles)"/>
</Target>
</Project>
``` | /content/code_sandbox/third_party/angle/src/translator_static.vcxproj | xml | 2016-09-27T03:41:10 | 2024-08-16T10:42:57 | miniblink49 | weolar/miniblink49 | 7,069 | 9,879 |
```xml
import { MultiStepInput, InputStep } from "../multiStepInput";
import { ILaunchRequestArgs } from "../../../debugger/debugSessionBase";
import {
DebugConfigurationState,
platformTypeDirectPickConfig,
DEBUG_TYPES,
DebugScenarioType,
} from "../debugConfigTypesAndConstants";
import { BaseConfigProvider } from "./baseConfigProvider";
export class AttachConfigProvider extends BaseConfigProvider {
private readonly defaultAddress: string;
constructor() {
super();
this.defaultAddress = "localhost";
this.maxStepCount = 3;
}
public async buildConfiguration(
input: MultiStepInput<DebugConfigurationState>,
state: DebugConfigurationState,
): Promise<InputStep<DebugConfigurationState> | void> {
this.maxStepCount = 3;
state.config = {};
const config: Partial<ILaunchRequestArgs> = {
name: "Attach to application",
request: "attach",
type: DEBUG_TYPES.REACT_NATIVE,
cwd: "${workspaceFolder}",
};
state.scenarioType = DebugScenarioType.AttachApp;
await this.configurationProviderHelper.selectApplicationType(
input,
config,
1,
this.maxStepCount,
);
Object.assign(state.config, config);
if (state.config.type === DEBUG_TYPES.REACT_NATIVE_DIRECT) {
this.maxStepCount++;
return () => this.configureDirectPlatform(input, state.config);
}
return () => this.configureAddress(input, state.config);
}
private async configureDirectPlatform(
input: MultiStepInput<DebugConfigurationState>,
config: Partial<ILaunchRequestArgs>,
): Promise<InputStep<DebugConfigurationState> | void> {
delete config.platform;
await this.configurationProviderHelper.selectPlatform(
input,
config,
platformTypeDirectPickConfig,
2,
this.maxStepCount,
);
if (!config.platform) {
delete config.platform;
delete config.useHermesEngine;
} else {
config.useHermesEngine = false;
}
return () => this.configureAddress(input, config);
}
private async configureAddress(
input: MultiStepInput<DebugConfigurationState>,
config: Partial<ILaunchRequestArgs>,
): Promise<InputStep<DebugConfigurationState> | void> {
await this.configurationProviderHelper.configureAddress(
input,
config,
config.type === DEBUG_TYPES.REACT_NATIVE_DIRECT ? 3 : 2,
this.maxStepCount,
this.defaultAddress,
);
return () => this.configurePort(input, config);
}
private async configurePort(
input: MultiStepInput<DebugConfigurationState>,
config: Partial<ILaunchRequestArgs>,
): Promise<InputStep<DebugConfigurationState> | void> {
await this.configurationProviderHelper.configurePort(
input,
config,
config.type === DEBUG_TYPES.REACT_NATIVE_DIRECT ? 4 : 3,
this.maxStepCount,
);
}
}
``` | /content/code_sandbox/src/extension/debuggingConfiguration/configurationProviders/attachConfigProvider.ts | xml | 2016-01-20T21:10:07 | 2024-08-16T15:29:52 | vscode-react-native | microsoft/vscode-react-native | 2,617 | 625 |
```xml
import { lockfileToDepGraph } from '@pnpm/calc-dep-state'
import { type DepPath } from '@pnpm/types'
test('lockfileToDepGraph', () => {
expect(lockfileToDepGraph({
lockfileVersion: '9.0',
importers: {},
packages: {
['foo@1.0.0' as DepPath]: {
dependencies: {
bar: '1.0.0',
},
optionalDependencies: {
qar: '1.0.0',
},
resolution: {
integrity: '',
},
},
['bar@1.0.0' as DepPath]: {
dependencies: {
qar: '1.0.0',
},
resolution: {
integrity: '',
},
},
['qar@1.0.0' as DepPath]: {
resolution: {
integrity: '',
},
},
},
})).toStrictEqual({
'bar@1.0.0': {
children: {
qar: 'qar@1.0.0',
},
pkgIdWithPatchHash: 'bar@1.0.0',
},
'foo@1.0.0': {
children: {
bar: 'bar@1.0.0',
qar: 'qar@1.0.0',
},
pkgIdWithPatchHash: 'foo@1.0.0',
},
'qar@1.0.0': {
children: {},
pkgIdWithPatchHash: 'qar@1.0.0',
},
})
})
``` | /content/code_sandbox/packages/calc-dep-state/test/lockfileToDepGraph.test.ts | xml | 2016-01-28T07:40:43 | 2024-08-16T12:38:47 | pnpm | pnpm/pnpm | 28,869 | 357 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="path_to_url" xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url">
<modelVersion>4.0.0</modelVersion>
<groupId>com.didispace</groupId>
<artifactId>eureka-feign-upload-client</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>eureka-feign-upload-client</name>
<description>Spring Cloud In Action</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
<relativePath/>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-feign</artifactId>
</dependency>
<dependency>
<groupId>io.github.openfeign.form</groupId>
<artifactId>feign-form</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>io.github.openfeign.form</groupId>
<artifactId>feign-form-spring</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.3</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.20</version>
<scope>provided</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Dalston.SR2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
``` | /content/code_sandbox/2-Dalston版教程示例/eureka-feign-upload-client/pom.xml | xml | 2016-08-21T03:39:52 | 2024-08-13T15:13:21 | SpringCloud-Learning | dyc87112/SpringCloud-Learning | 7,344 | 733 |
```xml
import { NotificationCategory } from "./category";
import { featured } from "./featured";
import { moderation } from "./moderation";
import { reply } from "./reply";
import { staffReply } from "./staffReply";
/**
* categories stores all the notification categories in a flat list.
*/
const categories: NotificationCategory[] = [
reply,
staffReply,
moderation,
featured,
];
export default categories;
``` | /content/code_sandbox/server/src/core/server/services/notifications/email/categories/categories.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 85 |
```xml
<clickhouse>
<profiles>
<default>
<any_join_distinct_right_table_keys>1</any_join_distinct_right_table_keys>
</default>
</profiles>
</clickhouse>
``` | /content/code_sandbox/tests/integration/test_row_policy/configs/users.d/any_join_distinct_right_table_keys.xml | xml | 2016-06-02T08:28:18 | 2024-08-16T18:39:33 | ClickHouse | ClickHouse/ClickHouse | 36,234 | 45 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const BIDashboardIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M512 896h384v1152H512V896zm128 1024h128v-896H640v896zm384-768h384v896h-384v-896zm128 768h128v-640h-128v640zM0 1408h384v640H0v-640zm128 512h128v-384H128v384zM1536 640h384v1408h-384V640zm128 1280h128V768h-128v1152zM1389 621q19 41 19 83 0 40-15 75t-41 61-61 41-75 15q-40 0-75-15t-61-41-41-61-15-75v-12q0-6 1-12l-188-94q-26 26-61 40t-72 14q-42 0-83-19L365 877q19 41 19 83 0 40-15 75t-41 61-61 41-75 15q-40 0-75-15t-61-41-41-61-15-75q0-40 15-75t41-61 61-41 75-15q42 0 83 19l256-256q-19-41-19-83 0-40 15-75t41-61 61-41 75-15q40 0 75 15t61 41 41 61 15 75v12q0 6-1 12l188 94q26-26 61-40t72-14q42 0 83 19l256-256q-19-41-19-83 0-40 15-75t41-61 61-41 75-15q40 0 75 15t61 41 41 61 15 75q0 40-15 75t-41 61-61 41-75 15q-42 0-83-19l-256 256zM192 1024q26 0 45-19t19-45q0-26-19-45t-45-19q-26 0-45 19t-19 45q0 26 19 45t45 19zm1536-896q-26 0-45 19t-19 45q0 26 19 45t45 19q26 0 45-19t19-45q0-26-19-45t-45-19zM704 512q26 0 45-19t19-45q0-26-19-45t-45-19q-26 0-45 19t-19 45q0 26 19 45t45 19zm512 256q26 0 45-19t19-45q0-26-19-45t-45-19q-26 0-45 19t-19 45q0 26 19 45t45 19z" />
</svg>
),
displayName: 'BIDashboardIcon',
});
export default BIDashboardIcon;
``` | /content/code_sandbox/packages/react-icons-mdl2/src/components/BIDashboardIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 787 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.