text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```xml
import * as Blockly from "blockly";
import { InlineSvgsExtensionBlock } from "../functions";
type TextJoinMixinType = typeof TEXT_JOIN_MUTATOR_MIXIN;
interface TextJoinMixin extends TextJoinMixinType { }
export type TextJoinBlock = InlineSvgsExtensionBlock & TextJoinMixin;
const TEXT_JOIN_MUTATOR_MIXIN = {
itemCount_: 0,
valueConnections_: [] as Blockly.Connection[],
mutationToDom: function (this: TextJoinBlock) {
const container = Blockly.utils.xml.createElement('mutation');
container.setAttribute('items', this.itemCount_ + "");
return container;
},
domToMutation: function (this: TextJoinBlock, xmlElement: Element) {
this.itemCount_ = parseInt(xmlElement.getAttribute('items'), 10);
this.updateShape_();
},
storeValueConnections_: function (this: TextJoinBlock) {
this.valueConnections_ = [];
for (let i = 0; i < this.itemCount_; i++) {
this.valueConnections_.push(this.getInput('ADD' + i).connection.targetConnection);
}
},
restoreValueConnections_: function (this: TextJoinBlock) {
for (let i = 0; i < this.itemCount_; i++) {
this.valueConnections_[i]?.reconnect(this, 'ADD' + i);
}
},
addItem_: function (this: TextJoinBlock) {
this.storeValueConnections_();
const update = () => {
this.itemCount_++;
};
this.update_(update);
this.restoreValueConnections_();
// Add shadow block
if (this.itemCount_ > 1) {
// Find shadow type
const firstInput = this.getInput('ADD' + 0);
if (firstInput && firstInput.connection.targetConnection) {
// Create a new shadow DOM with the same type as the first input
// but with an empty default value
const newInput = this.getInput('ADD' + (this.itemCount_ - 1));
const shadowInputDom = firstInput.connection.getShadowDom();
if (shadowInputDom) {
const shadowDom = Blockly.utils.xml.createElement('shadow');
const shadowInputType = shadowInputDom.getAttribute('type');
shadowDom.setAttribute('type', shadowInputType);
if (shadowDom) {
shadowDom.setAttribute('id', Blockly.utils.idGenerator.genUid());
newInput.connection.setShadowDom(shadowDom);
// newInput.connection.respawnShadow_();
}
}
}
}
},
removeItem_: function (this: TextJoinBlock) {
this.storeValueConnections_();
const update = () => {
this.itemCount_--;
};
this.update_(update);
this.restoreValueConnections_();
},
update_: function (this: TextJoinBlock, update: () => void) {
Blockly.Events.setGroup(true);
const block = this;
const oldMutationDom = block.mutationToDom();
const oldMutation = oldMutationDom && Blockly.Xml.domToText(oldMutationDom);
// Update the mutation
if (update) update.call(this);
// Allow the source block to rebuild itself.
this.updateShape_();
// Mutation may have added some elements that need initializing.
if (block instanceof Blockly.BlockSvg) {
block.initSvg();
}
// Ensure that any bump is part of this mutation's event group.
const group = Blockly.Events.getGroup();
const newMutationDom = block.mutationToDom();
const newMutation = newMutationDom && Blockly.Xml.domToText(newMutationDom);
if (oldMutation != newMutation) {
Blockly.Events.fire(new Blockly.Events.BlockChange(
block, 'mutation', null, oldMutation, newMutation));
setTimeout(function () {
Blockly.Events.setGroup(group);
block.bumpNeighbours();
Blockly.Events.setGroup(false);
}, Blockly.config.bumpDelay);
}
if (block.rendered && block instanceof Blockly.BlockSvg) {
block.render();
}
Blockly.Events.setGroup(false);
},
/**
* Modify this block to have the correct number of inputs.
* @private
* @this {Blockly.Block}
*/
updateShape_: function (this: TextJoinBlock) {
const that = this;
const add = function () {
that.addItem_();
};
const remove = function () {
that.removeItem_();
};
// pxt-blockly: our join block can't be empty
if (this.getInput('EMPTY')) {
this.removeInput('EMPTY');
}
if (!this.getInput('TITLE')) {
this.appendDummyInput('TITLE')
.appendField(Blockly.Msg['TEXT_JOIN_TITLE_CREATEWITH']);
}
// Add new inputs.
let i: number;
for (i = 0; i < this.itemCount_; i++) {
if (!this.getInput('ADD' + i)) {
const input = this.appendValueInput('ADD' + i)
// pxt-blockly: pxt-blockly/pull/112
.setAlign(Blockly.inputs.Align.LEFT);
// if (i == 0) {
// input.appendField(Blockly.Msg['TEXT_JOIN_TITLE_CREATEWITH']);
// }
}
}
// Remove deleted inputs.
while (this.getInput('ADD' + i)) {
this.removeInput('ADD' + i);
i++;
}
// pxt-blockly: Use +/- buttons for mutation
if (this.getInput('BUTTONS')) this.removeInput('BUTTONS');
const buttons = this.appendDummyInput('BUTTONS');
if (this.itemCount_ > 1) {
buttons.appendField(new Blockly.FieldImage(this.REMOVE_IMAGE_DATAURI, 24, 24, "*", remove, false));
}
buttons.appendField(new Blockly.FieldImage(this.ADD_IMAGE_DATAURI, 24, 24, "*", add, false));
// Switch to vertical list when there are too many items
const horizontalLayout = this.itemCount_ <= 4;
this.setInputsInline(horizontalLayout);
if (this.workspace instanceof Blockly.WorkspaceSvg) {
const renderer = this.workspace.getRenderer();
this.setOutputShape(horizontalLayout ?
renderer.getConstants().SHAPES["ROUND"] : renderer.getConstants().SHAPES["SQUARE"]);
}
}
};
/**
* Performs final setup of a text_join block.
* @this {Blockly.Block}
*/
const TEXT_JOIN_EXTENSION = function (this: TextJoinBlock) {
// Add the quote mixin for the itemCount_ = 0 case.
// this.mixin(Blockly.Constants.Text.QUOTE_IMAGE_MIXIN);
// Initialize the mutator values.
Blockly.Extensions.apply('inline-svgs', this, false);
this.itemCount_ = 2;
this.updateShape_();
};
Blockly.Extensions.registerMutator('pxt_text_join_mutator',
TEXT_JOIN_MUTATOR_MIXIN,
TEXT_JOIN_EXTENSION
);
Blockly.defineBlocksWithJsonArray([
{
"type": "text_join",
"message0": "",
"output": "String",
"outputShape": new Blockly.zelos.ConstantProvider().SHAPES.ROUND,
"style": "text_blocks",
"helpUrl": "%{BKY_TEXT_JOIN_HELPURL}",
"tooltip": "%{BKY_TEXT_JOIN_TOOLTIP}",
"mutator": "pxt_text_join_mutator"
},
])
``` | /content/code_sandbox/pxtblocks/plugins/text/join.ts | xml | 2016-01-24T19:35:52 | 2024-08-16T16:39:39 | pxt | microsoft/pxt | 2,069 | 1,568 |
```xml
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import * as React from 'react';
import { useAtomValue } from 'jotai';
import {
Avatar,
Badge,
createTableColumn,
DataGrid,
DataGridBody,
DataGridCell,
DataGridHeader,
DataGridHeaderCell,
DataGridProps,
DataGridRow,
Link,
TableCellLayout,
TableColumnDefinition,
tokens,
} from '@fluentui/react-components';
import { appGlobalStateAtom } from '../../atoms/appGlobalStateAtom';
import { ICustomer } from '../../models/ICustomer';
import { useCustomerGridStyles } from './useCustomerGridStyles';
const columns: TableColumnDefinition<ICustomer>[] = [
createTableColumn<ICustomer>({
columnId: "code",
compare: (a, b) => {
return a.customerCode < b.customerCode ? -1 : 1;
},
renderHeaderCell: () => {
return <span style={{ fontWeight: 700 }}>Id</span>;
},
renderCell: (item) => {
return <TableCellLayout truncate>{item.customerCode}</TableCellLayout>;
},
}),
createTableColumn<ICustomer>({
columnId: "customer",
compare: (a, b) => {
return a.customerName.localeCompare(b.customerName);
},
renderHeaderCell: () => {
return <span style={{ fontWeight: 700 }}>Customer</span>;
},
renderCell: (item) => {
return (
<TableCellLayout appearance="primary" truncate media={<Avatar name={item.customerName} color="colorful" />}>
{item.customerName}
</TableCellLayout>
);
},
}),
createTableColumn<ICustomer>({
columnId: "state",
compare: (a, b) => {
return a.customerState.localeCompare(b.customerState);
},
renderHeaderCell: () => {
return <span style={{ fontWeight: 600 }}>State</span>;
},
renderCell: (item) => {
return <TableCellLayout truncate>{item.customerState}</TableCellLayout>;
},
}),
createTableColumn<ICustomer>({
columnId: "country",
compare: (a, b) => {
return a.customerCountry.localeCompare(b.customerCountry);
},
renderHeaderCell: () => {
return <span style={{ fontWeight: 600 }}>Country</span>;
},
renderCell: (item) => {
return <TableCellLayout truncate>{item.customerCountry}</TableCellLayout>;
},
}),
createTableColumn<ICustomer>({
columnId: "email",
compare: (a, b) => {
return a.customerEmail.localeCompare(b.customerEmail);
},
renderHeaderCell: () => {
return <span style={{ fontWeight: 700 }}>Email</span>;
},
renderCell: (item) => {
return (
<TableCellLayout truncate>
<Link href={`mailto:${item.customerEmail}`}>{item.customerEmail} </Link>
</TableCellLayout>
);
},
}),
createTableColumn<ICustomer>({
columnId: "totalOrders",
compare: (a, b) => {
return a.totalOrders < b.totalOrders ? -1 : 1;
},
renderHeaderCell: () => {
return <span style={{ fontWeight: 700 }}>Total Orders</span>;
},
renderCell: (item) => {
return <TableCellLayout truncate>{item.totalOrders}</TableCellLayout>;
},
}),
createTableColumn<ICustomer>({
columnId: "lastOrder",
compare: (a, b) => {
return a.lastOrder < b.lastOrder ? -1 : 1;
},
renderHeaderCell: () => {
return <span style={{ fontWeight: 700 }}>Last Order</span>;
},
renderCell: (item) => {
return <TableCellLayout truncate>{item.lastOrder}</TableCellLayout>;
},
}),
createTableColumn<ICustomer>({
columnId: "lastOrderDate",
compare: (a, b) => {
return a.lastOrderDate.localeCompare(b.lastOrderDate);
},
renderHeaderCell: () => {
return <span style={{ fontWeight: 700 }}>Last Order date</span>;
},
renderCell: (item) => {
return <TableCellLayout truncate>{item.lastOrderDate}</TableCellLayout>;
},
}),
createTableColumn<ICustomer>({
columnId: "lastOrderTotal",
compare: (a, b) => {
return a.lastOrderTotal < b.lastOrderTotal ? -1 : 1;
},
renderHeaderCell: () => {
return <span style={{ fontWeight: 700 }}>Last Order Total</span>;
},
renderCell: (item) => {
return (
<TableCellLayout truncate>
<span style={{ color: tokens.colorBrandForeground1 }}>$ {item.lastOrderTotal}</span>
</TableCellLayout>
);
},
}),
createTableColumn<ICustomer>({
columnId: "status",
compare: (a, b) => {
return a.lastOrderStatus.localeCompare(b.lastOrderStatus);
},
renderHeaderCell: () => {
return <span style={{ fontWeight: 700 }}>Status</span>;
},
renderCell: (item) => {
const getColor = (status: string) => {
switch (status) {
case "In-Process":
return "severe";
case "Shipped":
return "success";
case "New":
return "warning";
default:
return "brand";
}
};
return (
<TableCellLayout
truncate
media={
<Badge appearance="filled" color={getColor(item.lastOrderStatus)}>
{item.lastOrderStatus}
</Badge>
}
/>
);
},
}),
];
const columnSizingOptions = {
code: {
minWidth: 50,
defaultWidth: 50,
idealWidth: 50,
maxWidth: 50,
},
customer: {
defaultWidth: 180,
minWidth: 120,
idealWidth: 180,
},
email: {
defaultWidth: 180,
minWidth: 120,
idealWidth: 180,
},
state: {
defaultWidth: 50,
minWidth: 50,
idealWidth: 50,
},
country: {
defaultWidth: 50,
minWidth: 50,
idealWidth: 50,
},
totalOrders: {
defaultWidth: 60,
minWidth: 60,
idealWidth: 60,
},
};
interface ICustomersGridProps {
items: ICustomer[];
}
export const CustomersGrid: React.FunctionComponent<ICustomersGridProps> = (
props: React.PropsWithChildren<ICustomersGridProps>
) => {
const { items } = props;
const appGlobalState = useAtomValue(appGlobalStateAtom);
const {hasTeamsContext } = appGlobalState;
const [sortState, setSortState] = React.useState<Parameters<NonNullable<DataGridProps["onSortChange"]>>[1]>({
sortColumn: "customer",
sortDirection: "ascending",
});
const onSortChange = React.useCallback((e, nextSortState) => {
setSortState(nextSortState);
}, []);
const styles = useCustomerGridStyles();
return (
<div className={styles.gridContainer} style={{height: !hasTeamsContext ? 'calc(100vh - 397px': 'calc(100vh - 240px' }}>
<DataGrid
items={items}
columns={columns}
sortable
sortState={sortState}
onSortChange={onSortChange}
resizableColumns
columnSizingOptions={columnSizingOptions}
size="medium"
>
<DataGridHeader>
<DataGridRow>
{({ renderHeaderCell }) => <DataGridHeaderCell>{renderHeaderCell()}</DataGridHeaderCell>}
</DataGridRow>
</DataGridHeader>
<DataGridBody<ICustomer>>
{({ item, rowId }) => (
<DataGridRow<ICustomer> key={rowId}>
{({ renderCell }) => <DataGridCell>{renderCell(item)}</DataGridCell>}
</DataGridRow>
)}
</DataGridBody>
</DataGrid>
</div>
);
};
``` | /content/code_sandbox/samples/react-sales-orders/src/src/components/customersGrid/CustomersGrid.tsx | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 1,826 |
```xml
/**
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import './PullRequest.css';
import type {GitHubPullRequestParams} from './recoil';
import CenteredSpinner from './CenteredSpinner';
import DiffView from './DiffView';
import PullRequestLabels from './PullRequestLabels';
import PullRequestReviewers from './PullRequestReviewers';
import PullRequestSignals from './PullRequestSignals';
import TrustedRenderedMarkdown from './TrustedRenderedMarkdown';
import {stripStackInfoFromBodyHTML} from './ghstackUtils';
import {
gitHubPullRequest,
gitHubOrgAndRepo,
gitHubPullRequestForParams,
gitHubPullRequestID,
gitHubPullRequestComparableVersions,
gitHubPullRequestVersionDiff,
} from './recoil';
import {stripStackInfoFromSaplingBodyHTML} from './saplingStack';
import {stackedPullRequest} from './stackState';
import {Box, Text} from '@primer/react';
import {Suspense, useEffect} from 'react';
import {
useRecoilValue,
useRecoilValueLoadable,
useResetRecoilState,
useSetRecoilState,
} from 'recoil';
export default function PullRequest() {
const resetComparableVersions = useResetRecoilState(gitHubPullRequestComparableVersions);
// Reset the radio buttons as part of the initial page load.
useEffect(() => {
resetComparableVersions();
}, [resetComparableVersions]);
return (
<Suspense fallback={<CenteredSpinner />}>
<div className="PullRequest-container">
<PullRequestBootstrap />
</div>
</Suspense>
);
}
function PullRequestBootstrap() {
const number = useRecoilValue(gitHubPullRequestID);
const orgAndRepo = useRecoilValue(gitHubOrgAndRepo);
if (number != null && orgAndRepo != null) {
return <PullRequestWithParams params={{orgAndRepo, number}} />;
} else {
return <Text>This is not a URL for a pull request.</Text>;
}
}
function PullRequestWithParams({params}: {params: GitHubPullRequestParams}) {
// When useRefreshPullRequest() is used to update gitHubPullRequestForParams,
// we expect *most* of the data that comes back to be the same as before.
// As such, we would prefer to avoid triggering <Suspense>, as the user would
// briefly see a loading indicator followed by a massive redraw to restore
// what they were just looking at. To avoid this, we leverage
// useRecoilValueLoadable() to probe for updates to gitHubPullRequestForParams
// while using the gitHubPullRequest for the purposes of rendering, as it is
// updated synchronously and therefore will not trigger <Suspense>.
const pullRequestLoadable = useRecoilValueLoadable(gitHubPullRequestForParams(params));
const setPullRequest = useSetRecoilState(gitHubPullRequest);
const pullRequest =
pullRequestLoadable.state === 'hasValue' ? pullRequestLoadable.contents : null;
const isPullRequestNotFound = pullRequestLoadable.state === 'hasValue' && pullRequest == null;
useEffect(() => {
if (pullRequest != null) {
// Here we should diff the new value with the existing value for the
// gitHubPullRequest atom, preserving as many of the original references
// as possible to limit the number of updates to the dataflow graph,
// which will short-circuit a bunch off diff'ing React will have to do.
setPullRequest(pullRequest);
}
}, [pullRequest, setPullRequest]);
if (isPullRequestNotFound) {
return <PullRequestNotFound />;
} else {
return <PullRequestDetails />;
}
}
function PullRequestNotFound() {
return <Text>The specified pull request could not be found.</Text>;
}
function PullRequestDetails() {
const pullRequest = useRecoilValue(gitHubPullRequest);
const pullRequestStack = useRecoilValueLoadable(stackedPullRequest);
if (pullRequest == null || pullRequestStack.state !== 'hasValue') {
return null;
}
const stack = pullRequestStack.contents;
const {bodyHTML} = pullRequest;
let pullRequestBodyHTML;
switch (stack.type) {
case 'no-stack':
pullRequestBodyHTML = bodyHTML;
break;
case 'sapling':
pullRequestBodyHTML = stripStackInfoFromSaplingBodyHTML(bodyHTML, stack.body.format);
break;
case 'ghstack':
pullRequestBodyHTML = stripStackInfoFromBodyHTML(bodyHTML);
break;
}
return (
<Box display="flex" flexDirection="column" paddingTop={3} gridGap={3}>
<PullRequestReviewers />
<PullRequestLabels />
<Box
borderWidth={1}
borderStyle="solid"
borderColor="accent.muted"
borderRadius={4}
fontSize={14}
padding={3}>
<TrustedRenderedMarkdown trustedHTML={pullRequestBodyHTML} />
</Box>
<PullRequestSignals />
<Suspense fallback={<CenteredSpinner />}>
<PullRequestVersionDiff />
</Suspense>
</Box>
);
}
function PullRequestVersionDiff() {
const loadable = useRecoilValueLoadable(gitHubPullRequestVersionDiff);
const diff = loadable.getValue();
if (diff != null) {
return (
<Suspense
fallback={<CenteredSpinner message={'Loading ' + diff.diff.length + ' changes...'} />}>
<DiffView diff={diff.diff} isPullRequest={true} />
</Suspense>
);
} else {
return null;
}
}
``` | /content/code_sandbox/eden/contrib/reviewstack/src/PullRequest.tsx | xml | 2016-05-05T16:53:47 | 2024-08-16T19:12:02 | sapling | facebook/sapling | 5,987 | 1,254 |
```xml
// See LICENSE.txt for license information.
import ClientCalls, {type ClientCallsMix} from '@calls/client/rest';
import ClientPlugins, {type ClientPluginsMix} from '@client/rest/plugins';
import mix from '@utils/mix';
import ClientApps, {type ClientAppsMix} from './apps';
import ClientBase from './base';
import ClientCategories, {type ClientCategoriesMix} from './categories';
import ClientChannelBookmarks, {type ClientChannelBookmarksMix} from './channel_bookmark';
import ClientChannels, {type ClientChannelsMix} from './channels';
import {DEFAULT_LIMIT_AFTER, DEFAULT_LIMIT_BEFORE, HEADER_X_VERSION_ID} from './constants';
import ClientEmojis, {type ClientEmojisMix} from './emojis';
import ClientFiles, {type ClientFilesMix} from './files';
import ClientGeneral, {type ClientGeneralMix} from './general';
import ClientGroups, {type ClientGroupsMix} from './groups';
import ClientIntegrations, {type ClientIntegrationsMix} from './integrations';
import ClientNPS, {type ClientNPSMix} from './nps';
import ClientPosts, {type ClientPostsMix} from './posts';
import ClientPreferences, {type ClientPreferencesMix} from './preferences';
import ClientTeams, {type ClientTeamsMix} from './teams';
import ClientThreads, {type ClientThreadsMix} from './threads';
import ClientTos, {type ClientTosMix} from './tos';
import ClientUsers, {type ClientUsersMix} from './users';
import type {APIClientInterface} from '@mattermost/react-native-network-client';
interface Client extends ClientBase,
ClientAppsMix,
ClientCategoriesMix,
ClientChannelsMix,
ClientChannelBookmarksMix,
ClientEmojisMix,
ClientFilesMix,
ClientGeneralMix,
ClientGroupsMix,
ClientIntegrationsMix,
ClientPostsMix,
ClientPreferencesMix,
ClientTeamsMix,
ClientThreadsMix,
ClientTosMix,
ClientUsersMix,
ClientCallsMix,
ClientPluginsMix,
ClientNPSMix
{}
class Client extends mix(ClientBase).with(
ClientApps,
ClientCategories,
ClientChannels,
ClientChannelBookmarks,
ClientEmojis,
ClientFiles,
ClientGeneral,
ClientGroups,
ClientIntegrations,
ClientPosts,
ClientPreferences,
ClientTeams,
ClientThreads,
ClientTos,
ClientUsers,
ClientCalls,
ClientPlugins,
ClientNPS,
) {
// eslint-disable-next-line no-useless-constructor
constructor(apiClient: APIClientInterface, serverUrl: string, bearerToken?: string, csrfToken?: string) {
super(apiClient, serverUrl, bearerToken, csrfToken);
}
}
export {Client, DEFAULT_LIMIT_AFTER, DEFAULT_LIMIT_BEFORE, HEADER_X_VERSION_ID};
``` | /content/code_sandbox/app/client/rest/index.ts | xml | 2016-10-07T16:52:32 | 2024-08-16T12:08:38 | mattermost-mobile | mattermost/mattermost-mobile | 2,155 | 599 |
```xml
import { Dialog, DialogSurface, DialogTitle, DialogActions, DialogTrigger } from '@fluentui/react-components';
import descriptionMd from './DialogDescription.md';
import bestPracticesMd from './DialogBestPractices.md';
import a11yMd from './DialogA11y.md';
export { Default } from './DialogDefault.stories';
export { NonModal } from './DialogNonModal.stories';
export { Alert } from './DialogAlert.stories';
export { ScrollingLongContent } from './DialogScrollingLongContent.stories';
export { Actions } from './DialogActions.stories';
export { FluidActions } from './DialogFluidDialogActions.stories';
export { NoFocusableElement } from './DialogNoFocusableElement.stories';
export { ControllingOpenAndClose } from './DialogControllingOpenAndClose.stories';
export { ChangeFocus } from './DialogChangeFocus.stories';
export { TriggerOutsideDialog } from './DialogTriggerOutsideDialog.stories';
export { CustomTrigger } from './DialogCustomTrigger.stories';
export { WithForm } from './DialogWithForm.stories';
export { TitleCustomAction } from './DialogTitleCustomAction.stories';
export { TitleNoAction } from './DialogTitleNoAction.stories';
// Typing with Meta<typeof Dialog> generates a type error for the `subcomponents` property.
// path_to_url
//
// TODO: bring back typing when the issue is resolved
const metadata = {
title: 'Components/Dialog',
component: Dialog,
subcomponents: {
DialogTrigger,
DialogSurface,
DialogTitle,
DialogActions,
},
parameters: {
docs: {
description: {
component: [descriptionMd, bestPracticesMd, a11yMd].join('\n'),
},
},
},
};
export default metadata;
``` | /content/code_sandbox/packages/react-components/react-dialog/stories/src/Dialog/index.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 377 |
```xml
import {shallow} from 'enzyme'
import React from 'react'
import MeasurementListItem from 'src/shared/components/MeasurementListItem'
import TagList from 'src/shared/components/TagList'
import {query as defaultQuery} from 'test/resources'
const setup = (overrides = {}) => {
const props = {
query: defaultQuery,
querySource: {
links: {
proxy: '',
},
},
isActive: true,
measurement: defaultQuery.measurement,
numTagsActive: 3,
areTagsAccepted: true,
isQuerySupportedByExplorer: true,
onChooseTag: () => {},
onGroupByTag: () => {},
onAcceptReject: () => {},
onChooseMeasurement: () => () => {},
...overrides,
}
return shallow(<MeasurementListItem {...props} />)
}
describe('MeasurementListItem', () => {
describe('render', () => {
describe('toggling measurement', () => {
it('shows the correct state', () => {
const trigger = jest.fn()
const factory = jest.fn(() => trigger)
const wrapper = setup({onChooseMeasurement: factory})
expect(wrapper.find(TagList).exists()).toBe(true)
wrapper.simulate('click')
expect(factory).not.toHaveBeenCalled()
expect(wrapper.find(TagList).exists()).toBe(false)
wrapper.simulate('click')
expect(factory).not.toHaveBeenCalled()
expect(wrapper.find(TagList).exists()).toBe(true)
})
})
it('triggers callback when not current measurement', () => {
const trigger = jest.fn()
let measurement = 'boo'
const query = {...defaultQuery, measurement}
const factory = jest.fn((m: string) => {
measurement = m
return trigger
})
const wrapper = setup({
onChooseMeasurement: factory,
query,
})
expect(wrapper.find(TagList).exists()).toBe(false)
wrapper.simulate('click')
wrapper.setProps({query: {...defaultQuery, measurement}})
expect(factory).toHaveBeenCalledWith(defaultQuery.measurement)
expect(trigger).toHaveBeenCalled()
expect(wrapper.find(TagList).exists()).toBe(true)
})
})
})
``` | /content/code_sandbox/ui/test/shared/components/MeasurementListItem.test.tsx | xml | 2016-08-24T23:28:56 | 2024-08-13T19:50:03 | chronograf | influxdata/chronograf | 1,494 | 462 |
```xml
import { isPlatformBrowser } from '@angular/common';
import { Component, Inject, OnInit, PLATFORM_ID, ChangeDetectorRef } from '@angular/core';
import { Code } from '@domain/code';
import { Subscription, debounceTime } from 'rxjs';
import { AppConfigService } from '@service/appconfigservice';
@Component({
selector: 'chart-radar-demo',
template: `
<app-docsectiontext>
<p>A radar chart is a graphical method of displaying multivariate data in the form of a two-dimensional chart of three or more quantitative variables represented on axes starting from the same point.</p>
</app-docsectiontext>
<div class="card flex justify-content-center">
<p-chart type="radar" [data]="data" [options]="options" />
</div>
<app-code [code]="code" selector="chart-radar-demo"></app-code>
`
})
export class RadarDoc implements OnInit {
data: any;
options: any;
subscription!: Subscription;
constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) {
this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => {
this.initChart();
this.cd.markForCheck();
});
}
ngOnInit() {
this.initChart();
}
initChart() {
if (isPlatformBrowser(this.platformId)) {
const documentStyle = getComputedStyle(document.documentElement);
const textColor = documentStyle.getPropertyValue('--text-color');
const textColorSecondary = documentStyle.getPropertyValue('--text-color-secondary');
this.data = {
labels: ['Eating', 'Drinking', 'Sleeping', 'Designing', 'Coding', 'Cycling', 'Running'],
datasets: [
{
label: 'My First dataset',
borderColor: documentStyle.getPropertyValue('--bluegray-400'),
pointBackgroundColor: documentStyle.getPropertyValue('--bluegray-400'),
pointBorderColor: documentStyle.getPropertyValue('--bluegray-400'),
pointHoverBackgroundColor: textColor,
pointHoverBorderColor: documentStyle.getPropertyValue('--bluegray-400'),
data: [65, 59, 90, 81, 56, 55, 40]
},
{
label: 'My Second dataset',
borderColor: documentStyle.getPropertyValue('--pink-400'),
pointBackgroundColor: documentStyle.getPropertyValue('--pink-400'),
pointBorderColor: documentStyle.getPropertyValue('--pink-400'),
pointHoverBackgroundColor: textColor,
pointHoverBorderColor: documentStyle.getPropertyValue('--pink-400'),
data: [28, 48, 40, 19, 96, 27, 100]
}
]
};
this.options = {
plugins: {
legend: {
labels: {
color: textColor
}
}
},
scales: {
r: {
grid: {
color: textColorSecondary
},
pointLabels: {
color: textColorSecondary
}
}
}
};
}
}
code: Code = {
basic: `<p-chart type="radar" [data]="data" [options]="options" />`,
html: `<div class="card flex justify-content-center">
<p-chart type="radar" [data]="data" [options]="options" />
</div>`,
typescript: `import { Component, OnInit } from '@angular/core';
import { ChartModule } from 'primeng/chart';
@Component({
selector: 'chart-radar-demo',
templateUrl: './chart-radar-demo.html',
standalone: true,
imports: [ChartModule]
})
export class ChartRadarDemo implements OnInit {
data: any;
options: any;
ngOnInit() {
const documentStyle = getComputedStyle(document.documentElement);
const textColor = documentStyle.getPropertyValue('--text-color');
const textColorSecondary = documentStyle.getPropertyValue('--text-color-secondary');
this.data = {
labels: ['Eating', 'Drinking', 'Sleeping', 'Designing', 'Coding', 'Cycling', 'Running'],
datasets: [
{
label: 'My First dataset',
borderColor: documentStyle.getPropertyValue('--bluegray-400'),
pointBackgroundColor: documentStyle.getPropertyValue('--bluegray-400'),
pointBorderColor: documentStyle.getPropertyValue('--bluegray-400'),
pointHoverBackgroundColor: textColor,
pointHoverBorderColor: documentStyle.getPropertyValue('--bluegray-400'),
data: [65, 59, 90, 81, 56, 55, 40]
},
{
label: 'My Second dataset',
borderColor: documentStyle.getPropertyValue('--pink-400'),
pointBackgroundColor: documentStyle.getPropertyValue('--pink-400'),
pointBorderColor: documentStyle.getPropertyValue('--pink-400'),
pointHoverBackgroundColor: textColor,
pointHoverBorderColor: documentStyle.getPropertyValue('--pink-400'),
data: [28, 48, 40, 19, 96, 27, 100]
}
]
};
this.options = {
plugins: {
legend: {
labels: {
color: textColor
}
}
},
scales: {
r: {
grid: {
color: textColorSecondary
},
pointLabels: {
color: textColorSecondary
}
}
}
};
}
}`
};
}
``` | /content/code_sandbox/src/app/showcase/doc/chart/radardoc.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 1,147 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ja" original="../VBScriptingResources.resx">
<body>
<trans-unit id="LogoLine1">
<source>Microsoft (R) Visual Basic Interactive Compiler version {0}</source>
<target state="translated">Microsoft (R) Visual Basic {0}</target>
<note />
</trans-unit>
<trans-unit id="LogoLine2">
<note />
</trans-unit>
<trans-unit id="InteractiveHelp">
<source>Usage: vbi [options] [script-file.vbx] [-- script-arguments]
If script-file is specified executes the script, otherwise launches an interactive REPL (Read Eval Print Loop).
Options:
/help Display this usage message (Short form: /?)
/version Display the version and exit
/reference:<alias>=<file> Reference metadata from the specified assembly file using the given alias (Short form: /r)
/reference:<file list> Reference metadata from the specified assembly files (Short form: /r)
/referencePath:<path list> List of paths where to look for metadata references specified as unrooted paths. (Short form: /rp)
/using:<namespace> Define global namespace using (Short form: /u)
/define:<name>=<value>,... Declare global conditional compilation symbol(s) (Short form: /d)
@<file> Read response file for more options
</source>
<target state="translated">: vbi [options] [script-file.vbx] [-- script-arguments]
script-file REPL (Read Eval Print Loop)
:
/help (: /?)
/version
/reference:<alias>=<file> (: /?)
/reference:<file list> (: /r)
/referencePath:<path list> (: /rp)
/using:<namespace> (: /u)
/define:<name>=<value>,... (: /d)
@<file>
</target>
<note />
</trans-unit>
<trans-unit id="ExceptionEscapeWithoutQuote">
<source>Cannot escape non-printable characters in Visual Basic notation unless quotes are used.</source>
<target state="translated">Visual Basic </target>
<note />
</trans-unit>
</body>
</file>
</xliff>
``` | /content/code_sandbox/src/VisualBasic/xlf/VBScriptingResources.ja.xlf | xml | 2016-08-25T20:07:20 | 2024-08-13T22:23:35 | CoreWF | UiPath/CoreWF | 1,126 | 648 |
```xml
<dict>
<key>CommonPeripheralDSP</key>
<array>
<dict>
<key>DeviceID</key>
<integer>0</integer>
<key>DeviceType</key>
<string>Headphone</string>
</dict>
<dict>
<key>DeviceID</key>
<integer>0</integer>
<key>DeviceType</key>
<string>Microphone</string>
</dict>
</array>
<key>PathMaps</key>
<array>
<dict>
<key>PathMap</key>
<array>
<array>
<array>
<array>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<true/>
</dict>
<key>NodeID</key>
<integer>19</integer>
</dict>
<dict>
<key>Boost</key>
<integer>2</integer>
<key>NodeID</key>
<integer>26</integer>
</dict>
</array>
</array>
</array>
<array>
<array>
<array>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<true/>
</dict>
<key>NodeID</key>
<integer>20</integer>
</dict>
<dict>
<key>Boost</key>
<integer>2</integer>
<key>NodeID</key>
<integer>25</integer>
</dict>
</array>
</array>
</array>
<array>
<array>
<array>
<dict>
<key>Amp</key>
<dict>
<key>MuteInputAmp</key>
<false/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>21</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<false/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>16</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>MuteInputAmp</key>
<false/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>23</integer>
</dict>
</array>
</array>
<array>
<array>
<dict>
<key>Amp</key>
<dict>
<key>MuteInputAmp</key>
<false/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>21</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<false/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>16</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>MuteInputAmp</key>
<false/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>22</integer>
</dict>
</array>
</array>
</array>
</array>
<key>PathMapID</key>
<integer>15</integer>
</dict>
</array>
</dict>
``` | /content/code_sandbox/Resources/CX20753_4/Platforms15.xml | xml | 2016-03-07T20:45:58 | 2024-08-14T08:57:03 | AppleALC | acidanthera/AppleALC | 3,420 | 1,740 |
```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.
-->
<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.google.training</groupId>
<artifactId>appdev</artifactId>
<version>0.0.1</version>
<packaging>jar</packaging>
<name>appdev</name>
<description>Quiz Application</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.0.RELEASE</version>
<relativePath/>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<google.datastore.version>1.102.4</google.datastore.version>
<google.pubsub.version>1.106.0</google.pubsub.version>
<google.languageapi.version>1.100.0</google.languageapi.version>
<google.spanner.version>1.54.0</google.spanner.version>
<google.cloudstorage.version>1.108.0</google.cloudstorage.version>
<google-api-pubsub.version>v1-rev452-1.25.0</google-api-pubsub.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-datastore</artifactId>
<version>${google.datastore.version}</version>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<version>${google.cloudstorage.version}</version>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-pubsub</artifactId>
<version>${google.pubsub.version}</version>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.3.Final</version>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-language</artifactId>
<version>${google.languageapi.version}</version>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-spanner</artifactId>
<version>${google.spanner.version}</version>
</dependency>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-pubsub</artifactId>
<version>${google-api-pubsub.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>worker</id>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>com.google.training.appdev.console.ConsoleApp</mainClass>
</configuration>
</execution>
<execution>
<id>create-entities</id>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>com.google.training.appdev.setup.QuestionBuilder</mainClass>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
``` | /content/code_sandbox/courses/developingapps/v1.2/java/cloudstorage/end/pom.xml | xml | 2016-04-17T21:39:27 | 2024-08-16T17:22:27 | training-data-analyst | GoogleCloudPlatform/training-data-analyst | 7,726 | 1,308 |
```xml
import { PopoverTriggerChildProps, PopoverTriggerProps, PopoverTriggerState } from '@fluentui/react-popover';
/**
* TeachingPopoverTrigger Props
*/
export type TeachingPopoverTriggerProps = PopoverTriggerProps;
/**
* TeachingPopoverTrigger State
*/
export type TeachingPopoverTriggerState = PopoverTriggerState;
/**
* Props that are passed to the child of the DialogTrigger when cloned to ensure correct behavior for the Dialog
*/
export type TeachingPopoverTriggerChildProps = PopoverTriggerChildProps;
``` | /content/code_sandbox/packages/react-components/react-teaching-popover/library/src/components/TeachingPopoverTrigger/TeachingPopoverTrigger.types.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 106 |
```xml
export default function Layout({ children }) {
return (
<div>
<h1>Parallel group slot Layout</h1>
{children}
</div>
)
}
``` | /content/code_sandbox/test/e2e/app-dir/parallel-routes-and-interception/app/parallel-layout/@groupslot/(slot)/layout.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 40 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="path_to_url"
xmlns:context="path_to_url" xmlns:p="path_to_url"
xmlns:aop="path_to_url" xmlns:tx="path_to_url"
xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url
path_to_url path_to_url
path_to_url path_to_url path_to_url path_to_url
path_to_url path_to_url">
<!-- -->
<bean id="masterDataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init"
destroy-method="close">
<property name="url" value="${master.jdbc.url}" />
<property name="username" value="${master.jdbc.username}" />
<property name="password" value="${master.jdbc.password}" />
<property name="driverClassName" value="${master.jdbc.driver}" />
<property name="maxActive" value="10" />
<property name="minIdle" value="5" />
</bean>
<!-- mapper -->
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="org.goshop.*.mapper.master"></property>
<property name="sqlSessionFactoryBeanName" value="masterSqlSessionFactory" />
</bean>
<!-- sqlsessionFactory -->
<bean id="masterSqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="configLocation" value="classpath:mybatis/SqlMapConfig.xml"></property>
<property name="dataSource" ref="masterDataSource"></property>
</bean>
<!-- -->
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<!-- -->
<property name="dataSource" ref="masterDataSource" />
</bean>
<!-- -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<!-- -->
<tx:method name="save*" propagation="REQUIRED" />
<tx:method name="insert*" propagation="REQUIRED" />
<tx:method name="add*" propagation="REQUIRED" />
<tx:method name="create*" propagation="REQUIRED" />
<tx:method name="delete*" propagation="REQUIRED" />
<tx:method name="update*" propagation="REQUIRED" />
<tx:method name="find*" propagation="SUPPORTS" read-only="true" />
<tx:method name="select*" propagation="SUPPORTS" read-only="true" />
<tx:method name="get*" propagation="SUPPORTS" read-only="true" />
</tx:attributes>
</tx:advice>
<!-- -->
<aop:config>
<aop:advisor advice-ref="txAdvice"
pointcut="execution(* org.goshop.*.service.*.*(..))" />
</aop:config>
<!-- -->
<bean id="readDataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init"
destroy-method="close">
<property name="url" value="${read.jdbc.url}" />
<property name="username" value="${read.jdbc.username}" />
<property name="password" value="${read.jdbc.password}" />
<property name="driverClassName" value="${read.jdbc.driver}" />
<property name="maxActive" value="10" />
<property name="minIdle" value="5" />
</bean>
<!-- mapper -->
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="org.goshop.*.mapper.read"></property>
<property name="sqlSessionFactoryBeanName" value="readSqlSessionFactory" />
</bean>
<!--sqlsessionFactory-->
<bean id="readSqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="configLocation" value="classpath:mybatis/SqlMapConfig.xml"></property>
<property name="dataSource" ref="readDataSource"></property>
</bean>
</beans>
``` | /content/code_sandbox/goshop-service-cms/src/main/resources/spring/applicationContext-dao.xml | xml | 2016-06-18T10:16:23 | 2024-08-01T09:11:36 | goshop2 | pzhgugu/goshop2 | 1,106 | 917 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "dictionary.dtd">
<!-- WiMax ASN R6 message dissection specification. -->
<!-- Supports following NWG versions: -->
<!-- 0 - NWG R1.0 V1.0.0 -->
<!-- 1 - NWG R1.0 V1.2.0 -->
<!-- 2 - NWG R1.0 V1.2.1 -->
<dictionary>
<!-- ****************************************************************** -->
<tlv name="Accept/Reject Indicator"
type="1"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="accept"
code="0x00"/>
<enum name="reject"
code="0x01"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Accounting Extension"
type="2"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Action Code"
type="3"
decoder="WIMAXASNCP_TLV_ENUM16">
<enum name="Deregister MS"
code="0x0000"/>
<enum name="Suspend all MS traffic"
code="0x0001"/>
<enum name="Suspend user traffic"
code="0x0002"/>
<enum name="Resume traffic"
code="0x0003"/>
<enum name="Reserved (was: MS terminate current normal operations with BS)"
code="0x0004"/>
<enum name="MS shall be put into idle mode"
code="0x0005"/>
<enum name="Initial Authentication Failure"
code="0xFFFE"/>
<enum name="MS shall be sent the RES-CMD by the BS"
code="0xFFFF"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Action Time"
type="4"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="AK"
type="5"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="AK Context"
type="6"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="AK ID"
type="7"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="AK Lifetime"
type="8"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<tlv name="AK Lifetime"
type="8"
decoder="WIMAXASNCP_TLV_DEC32"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="AK SN"
type="9"
decoder="WIMAXASNCP_TLV_HEX8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Anchor ASN GW ID / Anchor DPF Identifier"
type="10"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Anchor MM Context"
type="11"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Anchor PCID - Anchor Paging Controller ID"
type="12"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Anchor PC Relocation Destination"
type="13"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Anchor PC Relocation Request Response"
type="14"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Accept"
code="0x00"/>
<enum name="Refuse"
code="0x01"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Associated PHSI"
type="15"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Anchor Authenticator ID"
type="16"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<tlv name="FA Revoke Reason"
type="16"
decoder="WIMAXASNCP_TLV_ENUM8"
since="1">
<enum name="DHCP Release"
code="0x00"/>
<enum name="DHCP expiry"
code="0x01"/>
<enum name="FA initiated release"
code="0x02"/>
<enum name="HA initiated release"
code="0x03"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Authentication Complete"
type="17"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Authentication Result"
type="18"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Success"
code="0x00"/>
<enum name="Failure"
code="0x01"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Authenticator Identifier"
type="19"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name=" Auth-IND"
type="20"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<tlv name="RRQ"
type="20"
decoder="WIMAXASNCP_TLV_BYTES"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Authorization Policy"
type="21"
decoder="WIMAXASNCP_TLV_BITFLAGS16">
<enum name="RSA authorization"
code="WIMAXASNCP_BIT16(15)"/>
<enum name="EAP authorization"
code="WIMAXASNCP_BIT16(14)"/>
<enum name="Authenticated-EAP authorization"
code="WIMAXASNCP_BIT16(13)"/>
<enum name="HMAC supported"
code="WIMAXASNCP_BIT16(12)"/>
<enum name="CMAC supported"
code="WIMAXASNCP_BIT16(11)"/>
<enum name="64-bit Short-HMAC"
code="WIMAXASNCP_BIT16(10)"/>
<enum name="80-bit Short-HMAC"
code="WIMAXASNCP_BIT16(9)"/>
<enum name="96-bit Short-HMAC"
code="WIMAXASNCP_BIT16(8)"/>
</tlv>
<tlv name="Authorization Policy"
type="21"
decoder="WIMAXASNCP_TLV_BITFLAGS8"
since="1">
<enum name="RSA-based authorization at the initial network entry"
code="WIMAXASNCP_BIT8(7)"/>
<enum name="EAP-based authorization at the initial network entry"
code="WIMAXASNCP_BIT8(6)"/>
<enum name="Authenticated EAP-based authorization at the initial network entry"
code="WIMAXASNCP_BIT8(5)"/>
<enum name="Reserved (was: HMAC supported)"
code="WIMAXASNCP_BIT8(4)"/>
<enum name="RSA-based authorization at reentry"
code="WIMAXASNCP_BIT8(3)"/>
<enum name="EAP-based authorization at reentry"
code="WIMAXASNCP_BIT8(2)"/>
<enum name="Authenticated EAP-based authorization at reentry"
code="WIMAXASNCP_BIT8(1)"/>
<enum name="Reserved"
code="WIMAXASNCP_BIT8(0)"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Available Radio Resource DL"
type="22"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Available Radio Resource UL"
type="23"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="BE Data Delivery Service"
type="24"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="BS ID"
type="25"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name="BS Info"
type="26"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="BS-originated EAP-Start Flag"
type="27"
decoder="WIMAXASNCP_TLV_FLAG0">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Care-Of Address (CoA)"
type="28"
decoder="WIMAXASNCP_TLV_IPV4_ADDRESS">
</tlv>
<!-- ****************************************************************** -->
<tlv name="CID"
type="29"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Classification Rule"
type="30"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<tlv name="Classification Rule Index"
type="30"
decoder="WIMAXASNCP_TLV_DEC16"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Classification Rule Action"
type="31"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Add Classification Rule"
code="0"/>
<enum name="Replace Classification Rule"
code="1"/>
<enum name="Delete Classification Rule"
code="2"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Classification Rule Priority"
type="32"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Classifier Type"
type="33"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="IP TOS/DSCP Range and Mask"
code="1"/>
<enum name="Protocol"
code="2"/>
<enum name="IP Source Address and Mask"
code="3"/>
<enum name="IP Destination Address and Mask"
code="4"/>
<enum name="Protocol Source Port Range"
code="5"/>
<enum name="Protocol Destination Port Range"
code="6"/>
<enum name="IEEE 802.3/Ethernet Destination MAC address"
code="7"/>
<enum name="IEEE 802.3/Ethernet Source MAC address"
code="8"/>
<enum name="Ethertype/IEEE 802.2 SAP"
code="9"/>
<enum name="IEEE 802.1D User_Priority"
code="10"/>
<enum name="IEEE 802.1Q VLAN_ID"
code="11"/>
</tlv>
<tlv name="Authentication Indication"
type="33"
decoder="WIMAXASNCP_TLV_ENUM8"
since="1">
<enum name="No Authentication Information"
code="0x00"/>
<enum name="Authentication Information present"
code="0x01"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="CMAC_KEY_COUNT"
type="34"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Combined Resources Required"
type="35"
decoder="WIMAXASNCP_TLV_ENUM16">
<enum name="Not combined"
code="0x0000"/>
<enum name="Combined"
code="0x0001"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Context Purpose Indicator"
type="36"
decoder="WIMAXASNCP_TLV_BITFLAGS32">
<enum name="MS AK Context"
code="WIMAXASNCP_BIT32(0)"/>
<enum name="Reserved (was: MS Network Context)"
code="WIMAXASNCP_BIT32(1)"/>
<enum name="MS MAC Context"
code="WIMAXASNCP_BIT32(2)"/>
<enum name="MS Authorization Context"
code="WIMAXASNCP_BIT32(3)"/>
<enum name="Anchor MM Context"
code="WIMAXASNCP_BIT32(4)"/>
<enum name="Accounting context"
code="WIMAXASNCP_BIT32(5)"/>
<enum name="MS Security History"
code="WIMAXASNCP_BIT32(6)"/>
<enum name="SA Context"
code="WIMAXASNCP_BIT32(7)"/>
<enum name="MN-FA key context"
code="WIMAXASNCP_BIT32(8)"/>
<enum name="FA-HA key context"
code="WIMAXASNCP_BIT32(9)"/>
<enum name="DHCP-Relay-Info"
code="WIMAXASNCP_BIT32(10)"/>
<enum name="Security Context Delivery"
code="WIMAXASNCP_BIT32(11)"/>
<enum name="MIP6 handover successful"
code="WIMAXASNCP_BIT32(12)"/>
<enum name="Online Accounting context"
code="WIMAXASNCP_BIT32(13)"/>
<enum name="Offline Accounting context"
code="WIMAXASNCP_BIT32(14)"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Correlation ID"
type="37"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Cryptographic Suite"
type="38"
decoder="WIMAXASNCP_TLV_ENUM32">
<enum name="No data encryption, no data authentication & 3-DES, 128"
code="0x000000"/>
<enum name="CBC-Mode 56-bit DES, no data authentication & 3-DES, 128"
code="0x010001"/>
<enum name="No data encryption, no data authentication & RSA, 1024"
code="0x000002"/>
<enum name="CBC-Mode 56-bit DES, no data authentication & RSA, 1024"
code="0x010002"/>
<enum name="CCM-Mode 128-bit AES, CCM-Mode, 128-bit, ECB mode AES with 128-bit key"
code="0x020103"/>
<enum name="CCM-Mode 128bits AES, CCM-Mode, AES Key Wrap with 128-bit key"
code="0x020104"/>
<enum name="CBC-Mode 128-bit AES, no data authentication, ECB mode AES with 128-bit key"
code="0x030003"/>
<enum name="MBS CTR Mode 128 bits AES, no data authentication, AES ECB mode with 128-bit key"
code="0x800003"/>
<enum name="MBS CTR mode 128 bits AES, no data authentication, AES Key Wrap with 128-bit key"
code="0x800004"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="CS Type"
type="39"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="All CS Types"
code="0x00"/>
<enum name="Packet, IPv4"
code="0x01"/>
<enum name="Packet, IPv6"
code="0x02"/>
<enum name="Packet, 802.3"
code="0x03"/>
<enum name="Packet, 802.1Q"
code="0x04"/>
<enum name="Packet, IPv4over802.3"
code="0x05"/>
<enum name="Packet, IPv6over802.3"
code="0x06"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Data Integrity"
type="40"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="No recommendation"
code="0x0"/>
<enum name="Data integrity requested"
code="0x1"/>
<enum name="Data delay jitter sensitive"
code="0x2"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Data Integrity Info"
type="41"
decoder="WIMAXASNCP_TLV_TBD">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Data Path Encapsulation Type"
type="42"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="GRE"
code="1"/>
<enum name="IP-in-IP"
code="2"/>
<enum name="VLAN"
code="3"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Data Path Establishment Option"
type="43"
decoder="WIMAXASNCP_TLV_HEX8">
<enum name="Do not (Pre-) Establish DP"
code="0"/>
<enum name="(Pre-) Establish DP"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Data Path ID"
type="44"
decoder="WIMAXASNCP_TLV_HEX32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Data Path Info"
type="45"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Data Path Integrity Mechanism"
type="46"
decoder="WIMAXASNCP_TLV_ENUM8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Data Path Type"
type="47"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Type1"
code="0"/>
<enum name="Type2"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="DCD/UCD Configuration Change Count"
type="48"
decoder="WIMAXASNCP_TLV_BITFLAGS8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="DCD Setting"
type="49"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Device Authentication Indicator"
type="50"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Reserved"
code="0"/>
<enum name="Certificate-based device authentication has been successfully performed (MS MAC address is verified)"
code="1"/>
<enum name="Device authentication has been successfully performed"
code="2"/>
</tlv>
<tlv name="OFDMA Parameter Set"
type="50"
decoder="WIMAXASNCP_TLV_BITFLAGS8"
since="1">
<enum name="support OFDMA PHY parameter set A"
code="0"/>
<enum name="support OFDMA PHY parameter set B"
code="1"/>
<enum name="HARQ parameters set"
code="2"/>
<enum name="support OFDMA MAC parameters set A"
code="5"/>
<enum name="support OFDMA MAC parameters set B"
code="6"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="DHCP Key"
type="51"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="DHCP Key ID"
type="52"
decoder="WIMAXASNCP_TLV_HEX32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="DHCP Key Lifetime"
type="53"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="DHCP Proxy Info"
type="54"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="DHCP Relay Address"
type="55"
decoder="WIMAXASNCP_TLV_IP_ADDRESS">
</tlv>
<!-- ****************************************************************** -->
<tlv name="DHCP Relay Info"
type="56"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="DHCP Server Address"
type="57"
decoder="WIMAXASNCP_TLV_IP_ADDRESS">
</tlv>
<!-- ****************************************************************** -->
<tlv name="DHCP Server List"
type="58"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Direction"
type="59"
decoder="WIMAXASNCP_TLV_ENUM16">
<enum name="For Uplink"
code="0x0000"/>
<enum name="For Downlink"
code="0x0001"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="DL PHY Quality Info"
type="60"
decoder="WIMAXASNCP_TLV_HEX32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="DL PHY Service Level"
type="61"
decoder="WIMAXASNCP_TLV_HEX32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="EAP Payload"
type="62"
decoder="WIMAXASNCP_TLV_EAP">
</tlv>
<!-- ****************************************************************** -->
<tlv name="EIK"
type="63"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ERT-VR Data Delivery Service"
type="64"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Exit IDLE Mode Operation Indication"
type="65"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="No"
code="0"/>
<enum name="Yes"
code="1"/>
</tlv>
<tlv name="PPAC"
type="65"
decoder="WIMAXASNCP_TLV_COMPOUND"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="FA-HA Key"
type="66"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="FA-HA Key Lifetime"
type="67"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="FA-HA Key SPI"
type="68"
decoder="WIMAXASNCP_TLV_HEX32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Failure Indication"
type="69"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Unspecified Error"
code="0"/>
<enum name="Incompatible Version Number"
code="1"/>
<enum name="Invalid Function Type"
code="2"/>
<enum name="Invalid Message Type"
code="3"/>
<enum name="Unknown MSID"
code="4"/>
<enum name="Transaction Failure"
code="5"/>
<enum name="Unknown Source Identifier"
code="6"/>
<enum name="Unknown Destination Identifier"
code="7"/>
<enum name="Invalid Message Header"
code="8"/>
<enum name="Invalid message format"
code="16"/>
<enum name="Mandatory TLV missing"
code="17"/>
<enum name="TLV Value Invalid"
code="18"/>
<enum name="Unsupported Options"
code="19"/>
<enum name="Timer expired without response"
code="32"/>
<enum name="Requested Context Unavailable"
code="48"/>
<enum name="Authorization Failure"
code="49"/>
<enum name="Registration Failure"
code="50"/>
<enum name="No Resources"
code="51"/>
<enum name="Failure by rejection of MS"
code="52"/>
<enum name="Authenticator relocated"
code="53"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="FA IP Address"
type="70"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name="FA Relocation Indication"
type="71"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Success"
code="0"/>
<enum name="Failure"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Full DCD Setting"
type="72"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Full UCD Setting"
type="73"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Global Service Class Name"
type="74"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="HA IP Address"
type="75"
decoder="WIMAXASNCP_TLV_IP_ADDRESS">
</tlv>
<!-- ****************************************************************** -->
<tlv name="HO Confirm Type"
type="76"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Confirm"
code="0"/>
<enum name="Unconfirm"
code="1"/>
<enum name="Cancel"
code="2"/>
<enum name="Reject"
code="3"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Home Address (HoA)"
type="77"
decoder="WIMAXASNCP_TLV_IPV4_ADDRESS">
</tlv>
<!-- ****************************************************************** -->
<tlv name="HO Process Optimization"
type="78"
decoder="WIMAXASNCP_TLV_HEX8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="HO Type"
type="79"
decoder="WIMAXASNCP_TLV_ENUM32">
<enum name="Hard Handoff (HHO)"
code="0x00000000"/>
<enum name="Fast Base Station Switching (FBSS)"
code="0x00000001"/>
<enum name="Macro Diversity Handoff (MDHO)"
code="0x00000002"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="IDLE Mode Info"
type="80"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="IDLE Mode Retain Info"
type="81"
decoder="WIMAXASNCP_TLV_BITFLAGS8">
<enum name="Retain MS service and operational information associated with SBC-REQ/RSP messages."
code="WIMAXASNCP_BIT8(0)"/>
<enum name="Retain MS service and operational information associated with PKM-REQ/RSP messages."
code="WIMAXASNCP_BIT8(1)"/>
<enum name="Retain MS service and operational information associated with REG-REQ/RSP messages."
code="WIMAXASNCP_BIT8(2)"/>
<enum name="Retain MS service and operational information associated with Network Address."
code="WIMAXASNCP_BIT8(3)"/>
<enum name="Retain MS service and operational information associated with Time of Day."
code="WIMAXASNCP_BIT8(4)"/>
<enum name="Retain MS service and operational information associated with TFTP messages."
code="WIMAXASNCP_BIT8(5)"/>
<enum name="Retain MS service and operation information associated with Full service."
code="WIMAXASNCP_BIT8(6)"/>
<enum name="Consider Paging Preference of each Service Flow in resource retention."
code="WIMAXASNCP_BIT8(7)"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="IP Destination Address and Mask"
type="82"
decoder="WIMAXASNCP_TLV_IP_ADDRESS_MASK_LIST">
</tlv>
<!-- ****************************************************************** -->
<tlv name="IP Remained Time"
type="83"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="IP Source Address and Mask"
type="84"
decoder="WIMAXASNCP_TLV_IP_ADDRESS_MASK_LIST">
</tlv>
<!-- ****************************************************************** -->
<tlv name="IP TOS/DSCP Range and Mask"
type="85"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Key Change Indicator"
type="86"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Success"
code="0"/>
<enum name="Failure"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="L-BSID"
type="87"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Location Update Status"
type="88"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Accept"
code="0"/>
<enum name="Refuse"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Location Update Success/Failure Indication"
type="89"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Success"
code="0"/>
<enum name="Failure"
code="1"/>
</tlv>
<tlv name="Available In Client"
type="89"
decoder="WIMAXASNCP_TLV_ENUM32"
since="1">
<enum name="Reserved"
code="0"/>
<enum name="Volume metering supported"
code="0x00000001"/>
<enum name="Duration metering supported"
code="0x00000002"/>
<enum name="Resource metering supported"
code="0x00000004"/>
<enum name="Pools supported"
code="0x00000008"/>
<enum name="Rating groups supported"
code="0x00000010"/>
<enum name="Multi-Services supported"
code="0x00000020"/>
<enum name="Tariff Switch supported"
code="0x00000040"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="LU Result Indicator"
type="90"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Success"
code="0"/>
<enum name="Failure"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum Latency"
type="91"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum Sustained Traffic Rate"
type="92"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum Traffic Burst"
type="93"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Media Flow Type"
type="94"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Voice over IP"
code="1"/>
<enum name="Robust Browser"
code="2"/>
<enum name="Secure Browser/ VPN"
code="3"/>
<enum name="Streaming video on demand"
code="4"/>
<enum name="Streaming live TV"
code="5"/>
<enum name="Music and Photo Download"
code="6"/>
<enum name="Multi-player gaming"
code="7"/>
<enum name="Location-based services"
code="8"/>
<enum name="Text and Audio Books with Graphics"
code="9"/>
<enum name="Video Conversation"
code="10"/>
<enum name="Message"
code="11"/>
<enum name="Control"
code="12"/>
<enum name="Data"
code="13"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Minimum Reserved Traffic Rate"
type="95"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MIP4 Info"
type="96"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MIP4 Security Info"
type="97"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<tlv name="RRP"
type="97"
decoder="WIMAXASNCP_TLV_BYTES"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MN-FA Key"
type="98"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MN-FA SPI"
type="99"
decoder="WIMAXASNCP_TLV_HEX32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS Authorization Context"
type="100"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS FA Context"
type="101"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS ID"
type="102"
decoder="WIMAXASNCP_TLV_ETHER">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS Info"
type="103"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS Mobility Mode"
type="104"
decoder="WIMAXASNCP_TLV_ENUM16">
<enum name="PMIP4"
code="0"/>
<enum name="CMIP4"
code="1"/>
<enum name="CMIP6"
code="2"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS NAI"
type="105"
decoder="WIMAXASNCP_TLV_ASCII_STRING">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS Networking Context"
type="106"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<tlv name="Obsolete"
type="106"
decoder="WIMAXASNCP_TLV_UNKNOWN"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS Security Context"
type="107"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS Security History"
type="108"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Network Exit Indicator"
type="109"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="MS Power Down indication"
code="0x00"/>
<enum name="Radio link with MS is lost"
code="0x01"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Newer TEK Parameters"
type="110"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="NRT-VR Data Delivery Service"
type="111"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Older TEK Parameters"
type="112"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Old Anchor PC ID"
type="113"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Packet Classification Rule / Media Flow Description"
type="114"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Paging Announce Timer"
type="115"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Paging Cause"
type="116"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Location Update"
code="1"/>
<enum name="Network Re-entry"
code="2"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Paging Controller Identifier"
type="117"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Paging Cycle"
type="118"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Paging Information"
type="119"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Paging Offset"
type="120"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Paging Start/Stop"
type="121"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Stop"
code="0"/>
<enum name="Start"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="PC Relocation Indication"
type="122"
decoder="WIMAXASNCP_TLV_HEX8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PGID - Paging Group ID"
type="123"
decoder="WIMAXASNCP_TLV_HEX16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PHSF"
type="124"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PHSI"
type="125"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PHSM"
type="126"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PHS Rule"
type="127"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PHS Rule Action"
type="128"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Add PHS Rule"
code="0"/>
<enum name="Replace PHS Rule"
code="1"/>
<enum name="Delete PHS Rule"
code="2"/>
<enum name="Delete All PHS Rules"
code="3"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="PHSS"
type="129"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PHSV"
type="130"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Verify"
code="0"/>
<enum name="Don't verify"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="PKM Context"
type="131"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="PKM Capabilities defined in the MTG Profile"
code="0"/>
</tlv>
<tlv name="PPAQ"
type="131"
decoder="WIMAXASNCP_TLV_COMPOUND"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PMIP4 Client Location"
type="132"
decoder="WIMAXASNCP_TLV_IPV4_ADDRESS">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PMK SN"
type="133"
decoder="WIMAXASNCP_TLV_HEX8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PKM2 Message Code"
type="134"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="EAP Transfer"
code="18"/>
<enum name="Authenticated EAP Transfer"
code="19"/>
<enum name="EAP Complete"
code="29"/>
</tlv>
<tlv name="PKM2 Message Code"
type="134"
decoder="WIMAXASNCP_TLV_ENUM8"
since="1">
<enum name="EAP Transfer"
code="18"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="PMK2 SN"
type="135"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<tlv name="Paging Interval Length"
type="135"
decoder="WIMAXASNCP_TLV_DEC16"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PN Counter"
type="136"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Preamble Index/Sub-channel Index"
type="137"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Protocol"
type="138"
decoder="WIMAXASNCP_TLV_PROTOCOL_LIST">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Protocol Destination Port Range"
type="139"
decoder="WIMAXASNCP_TLV_PORT_RANGE_LIST">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Protocol Source Port Range"
type="140"
decoder="WIMAXASNCP_TLV_PORT_RANGE_LIST">
</tlv>
<!-- ****************************************************************** -->
<tlv name="QoS Parameters"
type="141"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Radio Resource Fluctuation"
type="142"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Reduced Resources Code"
type="143"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<tlv name="MTG Profile"
type="143"
decoder="WIMAXASNCP_TLV_ENUM8"
since="1">
<enum name="REG handshake related capabilities defined in the MTG Profile"
code="0"/>
</tlv>
<tlv name="Obsolete"
type="143"
decoder="WIMAXASNCP_TLV_UNKNOWN"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="REG Context"
type="144"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="REG handshake related capabilities defined in the MTG Profile"
code="0"/>
</tlv>
<tlv name="REG Context"
type="144"
decoder="WIMAXASNCP_TLV_COMPOUND"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Registration Type"
type="145"
decoder="WIMAXASNCP_TLV_ENUM32">
<enum name="Initial Network Entry"
code="0"/>
<enum name="Handoff"
code="1"/>
<enum name="In-Service Data Path Establishment"
code="2"/>
<enum name="MS Network Exit"
code="3"/>
<enum name="Idle Mode Entry"
code="4"/>
<enum name="Idle Mode Exit"
code="5"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Relative Delay"
type="146"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Relocation Destination ID"
type="147"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<tlv name="Registration Lifetime"
type="147"
decoder="WIMAXASNCP_TLV_DEC16"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Relocation Response"
type="148"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Accept"
code="0"/>
<enum name="Refuse"
code="1"/>
</tlv>
<tlv name="Quota Identifier"
type="148"
decoder="WIMAXASNCP_TLV_BYTES"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Relocation Success Indicator"
type="149"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Accept"
code="0"/>
<enum name="Refuse"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Request/Transmission Policy"
type="150"
decoder="WIMAXASNCP_TLV_BITFLAGS32">
<enum name="Service flow SHALL not use broadcast bandwidth request opportunities"
code="WIMAXASNCP_BIT32(0)"/>
<enum name="Reserved"
code="WIMAXASNCP_BIT32(1)"/>
<enum name="Service flow SHALL not piggyback requests with data"
code="WIMAXASNCP_BIT32(2)"/>
<enum name="Service flow SHALL not fragment data"
code="WIMAXASNCP_BIT32(3)"/>
<enum name="Service flow SHALL not suppress payload headers"
code="WIMAXASNCP_BIT32(4)"/>
<enum name="Service flow SHALL not pack multiple SDUs (or fragments) into single MAC PDUs"
code="WIMAXASNCP_BIT32(5)"/>
<enum name="Service flow SHALL not include CRC in the MAC PDU"
code="WIMAXASNCP_BIT32(6)"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Reservation Action"
type="151"
decoder="WIMAXASNCP_TLV_BITFLAGS16">
<enum name="Create service flow"
code="WIMAXASNCP_BIT16(15)"/>
<enum name="Admit service flow"
code="WIMAXASNCP_BIT16(14)"/>
<enum name="Activate service flow"
code="WIMAXASNCP_BIT16(13)"/>
<enum name="Modify service flow"
code="WIMAXASNCP_BIT16(12)"/>
<enum name="Delete service flow"
code="WIMAXASNCP_BIT16(11)"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Reservation Result"
type="152"
decoder="WIMAXASNCP_TLV_ENUM16">
<enum name="Successfully Created"
code="0x0000"/>
<enum name="Request Denied - No resources"
code="0x0001"/>
<enum name="Request Denied due to Policy"
code="0x0002"/>
<enum name="Request Denied due to Requests for Other Flows Failed"
code="0x0003"/>
<enum name="Request Failed (Unspecified reason)"
code="0x0004"/>
<enum name="Request Denied due to MS reason"
code="0x0005"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Response Code"
type="153"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="not allowed - Paging Reference is zero"
code="0x00"/>
<enum name="not allowed - no such SF"
code="0x01"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Result Code"
type="154"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Success"
code="0"/>
<enum name="Failure - No resources"
code="1"/>
<enum name="Failure - Not supported"
code="2"/>
<enum name="Partial Response"
code="3"/>
<enum name="Multiple Not Supported"
code="4"/>
<enum name="Request Failure"
code="5"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="ROHC/ECRTP Context ID"
type="155"
decoder="WIMAXASNCP_TLV_TBD">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Round Trip Delay"
type="156"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="RRM Absolute Threshold Value J"
type="157"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="RRM Averaging Time T"
type="158"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="RRM BS Info"
type="159"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="RRM BS-MS PHY Quality Info"
type="160"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="RRM Relative Threshold RT"
type="161"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="RRM Reporting Characteristics"
type="162"
decoder="WIMAXASNCP_TLV_BITFLAGS32">
<enum name="periodically as defined by reporting period P"
code="WIMAXASNCP_BIT32(0)"/>
<enum name="regularly whenever resources have changed as defined by RT since the last measurement period"
code="WIMAXASNCP_BIT32(1)"/>
<enum name="regularly whenever resources cross predefined total threshold(s) defined by reporting absolute threshold values J"
code="WIMAXASNCP_BIT32(2)"/>
<enum name="DCD/UCD Configuration Change Count modification"
code="WIMAXASNCP_BIT32(3)"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="RRM Reporting Period P"
type="163"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="RRM Spare Capacity Report Type"
type="164"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Type 1: Available radio resource indicator"
code="0"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="RT-VR Data Delivery Service"
type="165"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="RxPN Counter"
type="166"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="R3 Operation Status"
type="167"
decoder="WIMAXASNCP_TLV_ENUM16">
<enum name="Success"
code="0x0"/>
<enum name="Failure"
code="0x1"/>
<enum name="Pending"
code="0x2"/>
<enum name="Reserved"
code="0x3"/>
</tlv>
<tlv name="Volume Quota"
type="167"
decoder="WIMAXASNCP_TLV_DEC32"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="R3 Release Reason"
type="168"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="MS power down"
code="0x0"/>
</tlv>
<tlv name="Volume Threshold"
type="168"
decoder="WIMAXASNCP_TLV_DEC32"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="SAID"
type="169"
decoder="WIMAXASNCP_TLV_HEX32">
</tlv>
<tlv name="SAID"
type="169"
decoder="WIMAXASNCP_TLV_HEX16"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="SA Descriptor"
type="170"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="SA Index"
type="171"
decoder="WIMAXASNCP_TLV_HEX32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="SA Service Type"
type="172"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Unicast Service"
code="0"/>
<enum name="Group Multicast Service"
code="1"/>
<enum name="MBS Service"
code="2"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="SA Type"
type="173"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Primary"
code="0"/>
<enum name="Static"
code="1"/>
<enum name="Dynamic"
code="2"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="SBC Context"
type="174"
decoder="WIMAXASNCP_TLV_HEX8">
</tlv>
<tlv name="SBC Context"
type="174"
decoder="WIMAXASNCP_TLV_COMPOUND"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="SDU BSN Map"
type="175"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="SDU Info"
type="176"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="SDU Size"
type="177"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<tlv name="SDU Size"
type="177"
decoder="WIMAXASNCP_TLV_DEC16"
since="1">
</tlv>
<!-- ****************************************************************** -->
<tlv name="SDU SN"
type="178"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Service Class Name"
type="179"
decoder="WIMAXASNCP_TLV_ASCII_STRING">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Service Level Prediction"
type="180"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Service Authorization Code"
type="181"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="service authorized"
code="0"/>
<enum name="service not authorized"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Serving/Target Indicator"
type="182"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Serving"
code="0"/>
<enum name="Target"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="SF Classification"
type="183"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="SF classification not supported"
code="0"/>
<enum name="SF classification supported"
code="1"/>
</tlv>
<tlv name="SBC Capability Profile"
type="183"
decoder="WIMAXASNCP_TLV_BITFLAGS8"
since="1">
<enum name="Support OFDMA PHY parameter set A"
code="WIMAXASNCP_BIT8(7)"/>
<enum name="Support OFDMA PHY parameter set B"
code="WIMAXASNCP_BIT8(6)"/>
<enum name="HARQ set"
code="WIMAXASNCP_BIT8(5)"/>
<enum name="HARQ set"
code="WIMAXASNCP_BIT8(4)"/>
<enum name="HARQ set"
code="WIMAXASNCP_BIT8(3)"/>
</tlv>
<tlv name="Obsolete"
type="183"
decoder="WIMAXASNCP_TLV_UNKNOWN"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="SFID"
type="184"
decoder="WIMAXASNCP_TLV_HEX32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="SF Info"
type="185"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Spare Capacity Indicator"
type="186"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="TEK"
type="187"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="TEK Lifetime"
type="188"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="TEK SN"
type="189"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Tolerated Jitter"
type="190"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Total Slots DL"
type="191"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Total Slots UL"
type="192"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Traffic Priority/QoS Priority"
type="193"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Tunnel Endpoint"
type="194"
decoder="WIMAXASNCP_TLV_IP_ADDRESS">
</tlv>
<!-- ****************************************************************** -->
<tlv name="UCD Setting"
type="195"
decoder="WIMAXASNCP_TLV_TBD">
</tlv>
<!-- ****************************************************************** -->
<tlv name="UGS Data Delivery Service"
type="196"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="UL PHY Quality Info"
type="197"
decoder="WIMAXASNCP_TLV_HEX32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="UL PHY Service Level"
type="198"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Unsolicited Grant Interval"
type="199"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Unsolicited Polling Interval"
type="200"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="VAAA IP Address"
type="201"
decoder="WIMAXASNCP_TLV_IP_ADDRESS">
</tlv>
<!-- ****************************************************************** -->
<tlv name="VAAA Realm"
type="202"
decoder="WIMAXASNCP_TLV_ASCII_STRING">
</tlv>
<!-- ****************************************************************** -->
<tlv name="BS HO RSP Code"
type="203"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="success"
code="0"/>
<enum name="Target BS doesn't support this HO Type"
code="1"/>
<enum name="Target BS's air link resource is not enough"
code="2"/>
<enum name="Target BS's CPU overload"
code="3"/>
<enum name="Target BS rejects for other reasons"
code="4"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Accounting Context"
type="204"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="HO ID"
type="205"
decoder="WIMAXASNCP_TLV_HEX8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Combined Resource Indicator"
type="206"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Media Flow Description in SDP Format"
type="228"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Service Class Name"
type="229"
decoder="WIMAXASNCP_TLV_STRING">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Traffic Priority/QoS Priority"
type="231"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum Sustained Traffic Rate"
type="232"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<tlv name="Obsolete"
type="232"
decoder="WIMAXASNCP_TLV_UNKNOWN"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Minimum Reserved Traffic Rate"
type="233"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<tlv name="Obsolete"
type="233"
decoder="WIMAXASNCP_TLV_UNKNOWN"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum Traffic Burst"
type="234"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<tlv name="Obsolete"
type="234"
decoder="WIMAXASNCP_TLV_UNKNOWN"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Tolerated Jitter"
type="235"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<tlv name="Obsolete"
type="235"
decoder="WIMAXASNCP_TLV_UNKNOWN"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="R3 Maximum Latency"
type="236"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Reduced Resources Code"
type="237"
decoder="WIMAXASNCP_TLV_FLAG0">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Unsolicited Grant Interval"
type="239"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Accounting Session/Flow Volume Counts"
type="244"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Accounting Number of Bulk Sessions/Flows"
type="245"
decoder="WIMAXASNCP_TLV_DEC8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Accounting Bulk Session/Flow"
type="246"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Interim Update Interval"
type="248"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Cumulative Uplink Octets"
type="249"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Cumulative Downlink Octets"
type="250"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Cumulative Uplink Packets"
type="251"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Cumulative Downlink Packets"
type="252"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Time of Day Tariff Switch"
type="253"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Time of Day Tariff Switch Time"
type="254"
decoder="WIMAXASNCP_TLV_HEX16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Time of Day Tariff Switch Offset"
type="255"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Uplink Octets at Tariff Switch"
type="257"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Downlink Octets at Tariff Switch"
type="258"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Uplink Packets at Tariff Switch"
type="259"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Downlink Packets at Tariff Switch"
type="260"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Vendor Specific TLV"
type="261"
decoder="WIMAXASNCP_TLV_VENDOR_SPECIFIC">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Paging Preference"
type="262"
decoder="WIMAXASNCP_TLV_HEX8">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Idle Mode Authorization Indication"
type="263"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Success"
code="0"/>
<enum name="Failure"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Accounting IP Address"
type="264"
decoder="WIMAXASNCP_TLV_IP_ADDRESS">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Data Delivery Trigger"
type="265"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="No trigger"
code="0x00"/>
<enum name="Triggers immediate delivery of data for the specified Service Flow"
code="0x01"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="MIP4 Security Info"
type="266"
decoder="WIMAXASNCP_TLV_COMPOUND">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MN-FA Key Lifetime"
type="267"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Idle Mode Timeout"
type="268"
decoder="WIMAXASNCP_TLV_DEC16">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Classification Result"
type="269"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="None"
code="0x00"/>
<enum name="Discard packet"
code="0x01"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Network assisted HO Supported"
type="270"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Network Assisted HO not supported"
code="0x00"/>
<enum name="Network Assisted HO supported"
code="0x01"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Destination Identifier"
type="271"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Source Identifier"
type="272"
decoder="WIMAXASNCP_TLV_ID">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Ungraceful Network Exit Indication"
type="274"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Ungraceful Network Exit No Reason"
code="0x00"/>
<enum name="AAA initiated Ungraceful Network Exit"
code="0x01"/>
<enum name="Authenticator initiated Ungraceful Network Exit"
code="0x02"/>
<enum name="Ungraceful Network Exit by MIP session termination"
code="0x03"/>
<enum name="PC initiated Ungraceful Network Exit"
code="0x04"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Duration Quota"
type="275"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Duration Threshold"
type="276"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Resource Quota"
type="277"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Resource Threshold"
type="278"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Update Reason"
type="279"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Pre-initialization"
code="0x01"/>
<enum name="Initial-Request"
code="0x02"/>
<enum name="Threshold Reached"
code="0x03"/>
<enum name="Quota Reached"
code="0x04"/>
<enum name="TITSU Approaching"
code="0x05"/>
<enum name="Remote Forced Disconnect"
code="0x06"/>
<enum name="Client Service Termination"
code="0x07"/>
<enum name="Access Service Terminatedt"
code="0x08"/>
<enum name="Service not established"
code="0x09"/>
<enum name="One-time Charging"
code="0x0A"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="Service-ID"
type="280"
decoder="WIMAXASNCP_TLV_BYTES">
</tlv>
<tlv name="Service-ID / R3 Media Flow Description in SDP format"
type="280"
decoder="WIMAXASNCP_TLV_BYTES"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Rating-Group-ID"
type="281"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<tlv name="Rating-Group-ID / VolumeUsed"
type="281"
decoder="WIMAXASNCP_TLV_DEC32"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Termination Action"
type="282"
decoder="WIMAXASNCP_TLV_ENUM8">
<enum name="Terminate"
code="0x01"/>
<enum name="Request more quota"
code="0x02"/>
<enum name="Redirect/Filter"
code="0x03"/>
</tlv>
<tlv name="Termination Action / Time Stamp"
type="282"
decoder="WIMAXASNCP_TLV_DEC32"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Pool-ID"
type="283"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<tlv name="Pool-ID / State / Accounting Bulk Session/Flow Volume Counts"
type="283"
decoder="WIMAXASNCP_TLV_DEC32"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Pool-Multiplier"
type="284"
decoder="WIMAXASNCP_TLV_DEC32">
</tlv>
<tlv name="Pool-Multiplier / Offline Accounting Context"
type="284"
decoder="WIMAXASNCP_TLV_DEC32"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Prepaid Server"
type="285"
decoder="WIMAXASNCP_TLV_IP_ADDRESS">
</tlv>
<tlv name="Prepaid Server / R3 Acct Session Time"
type="285"
decoder="WIMAXASNCP_TLV_IP_ADDRESS"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="R3 Active Time"
type="286"
decoder="WIMAXASNCP_TLV_DEC32"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Interim Update Interval Remaining"
type="287"
decoder="WIMAXASNCP_TLV_DEC32"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Number of UL Transport CIDs Support"
type="288"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Number of DL Transport CIDs Support"
type="289"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Classification/PHS Options and SDU Encapsulation Support Type"
type="290"
decoder="WIMAXASNCP_TLV_BYTES"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum Number of Classifier"
type="291"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PHS Support"
type="292"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ Support"
type="293"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="DSx Flow Control"
type="294"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Total Number of Provisioned Service Flows"
type="295"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum MAC Data per Frame Support"
type="296"
decoder="WIMAXASNCP_TLV_COMPOUND"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum amount of MAC Level Data per DL Frame"
type="297"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum amount of MAC Level Data per UL Frame"
type="298"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Packing Support"
type="299"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MAC ertPS Support"
type="300"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum Number of Bursts Transmitted Concurrently to the MS"
type="301"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="HO Supported"
type="302"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="HO Process Optimization MS Timer"
type="303"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Mobility Features Supported"
type="304"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Sleep Mode Recovery Time"
type="305"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ Ack Type"
type="307"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS HO Connections Parameters Proc Time"
type="308"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS HO TEK Proc Time"
type="309"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MAC Header and Extended Sub-Header Support"
type="310"
decoder="WIMAXASNCP_TLV_BYTES"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="System Resource Retain Timer"
type="311"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="MS Handover Retransmission Timer"
type="312"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Handover Indication Readiness Timer"
type="313"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="BS Switching Timer"
type="314"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Power Saving Class Capability"
type="315"
decoder="WIMAXASNCP_TLV_HEX16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Subscriber Transition Gaps"
type="316"
decoder="WIMAXASNCP_TLV_HEX16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum Transmit Power"
type="317"
decoder="WIMAXASNCP_TLV_HEX32"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Capabilities for Construction and Transmission of MAC PDUs"
type="318"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PKM Flow Control"
type="319"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum Number of Supported Security Associations"
type="320"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Security Negotiation Parameters"
type="321"
decoder="WIMAXASNCP_TLV_COMPOUND"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Authorization Policy"
type="322"
decoder="WIMAXASNCP_TLV_BITFLAGS8"
since="2">
<enum name="RSA-based authorization at the initial network entry"
code="WIMAXASNCP_BIT8(7)"/>
<enum name="EAP-based authorization at the initial network entry"
code="WIMAXASNCP_BIT8(6)"/>
<enum name="Authenticated EAP-based authorization at the initial network entry"
code="WIMAXASNCP_BIT8(5)"/>
<enum name="Reserved (was: HMAC supported)"
code="WIMAXASNCP_BIT8(4)"/>
<enum name="RSA-based authorization at reentry"
code="WIMAXASNCP_BIT8(3)"/>
<enum name="EAP-based authorization at reentry"
code="WIMAXASNCP_BIT8(2)"/>
<enum name="Authenticated EAP-based authorization at reentry"
code="WIMAXASNCP_BIT8(1)"/>
<enum name="Reserved"
code="WIMAXASNCP_BIT8(0)"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="MAC Mode"
type="323"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="PN Window Size"
type="324"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Extended Subheader Capability"
type="325"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="HO Trigger Metric Support"
type="326"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Current Transmit Power"
type="327"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA SS FFT Sizes"
type="328"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA SS demodulator"
type="329"
decoder="WIMAXASNCP_TLV_BYTES"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA SS modulator"
type="330"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="The number of UL HARQ Channel"
type="331"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA SS Permutation support"
type="332"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA SS CINR Measurement Capability"
type="333"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="The number of DL HARQ Channels"
type="334"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="HARQ Chase Combining and CC-IR Buffer Capability"
type="335"
decoder="WIMAXASNCP_TLV_HEX16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA SS Uplink Power Control Support"
type="336"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA SS Uplink Power Control Scheme Switching Delay"
type="337"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA MAP Capability"
type="338"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Uplink Control Channel Support"
type="339"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA MS CSIT Capability"
type="340"
decoder="WIMAXASNCP_TLV_HEX16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Maximum Number of Burst per Frame Capability in HARQ"
type="341"
decoder="WIMAXASNCP_TLV_DEC8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA SS demodulator for MIMO Support"
type="342"
decoder="WIMAXASNCP_TLV_BYTES"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="OFDMA SS modulator for MIMO Support"
type="343"
decoder="WIMAXASNCP_TLV_HEX16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ Context"
type="344"
decoder="WIMAXASNCP_TLV_COMPOUND"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ Enable"
type="345"
decoder="WIMAXASNCP_TLV_ENUM8"
since="2">
<enum name="ARQ Not Requested/Accepted"
code="0"/>
<enum name="ARQ Requested/Accepted"
code="1"/>
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ WINDOW SIZE"
type="346"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ_RETRY_TIMEOUT-Transmitter Delay"
type="347"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ_RETRY_TIMEOUT-Receiver Delay"
type="348"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ_BLOCK_LIFETIME"
type="349"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ_SYNC_LOSS_TIMEOUT"
type="350"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ_DELIVER_IN_ORDER"
type="351"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ_RX_PURGE_TIMEOUT"
type="352"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="ARQ_BLOCK_SIZE"
type="353"
decoder="WIMAXASNCP_TLV_DEC16"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="RECEIVER_ARQ_ACK_PROCESSING TIME"
type="354"
decoder="WIMAXASNCP_TLV_HEX8"
since="2">
</tlv>
<!-- ****************************************************************** -->
<tlv name="Vendor Specific Information Field"
type="0xffff"
decoder="WIMAXASNCP_TLV_VENDOR_SPECIFIC">
</tlv>
</dictionary>
``` | /content/code_sandbox/utilities/wireshark/wimaxasncp/dictionary.xml | xml | 2016-10-27T09:31:28 | 2024-08-16T19:00:35 | nexmon | seemoo-lab/nexmon | 2,381 | 20,172 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AWSSDK.CognitoIdentityProvider" Version="3.7.101.70" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="Xunit.Extensions.Ordering" Version="1.4.5" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.2.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Content Include="testsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="testsettings.*.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<DependentUpon>testsettings.json</DependentUpon>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Actions\CognitoActions.csproj" />
</ItemGroup>
</Project>
``` | /content/code_sandbox/dotnetv3/Cognito/Tests/CognitoTests.csproj | xml | 2016-08-18T19:06:57 | 2024-08-16T18:59:44 | aws-doc-sdk-examples | awsdocs/aws-doc-sdk-examples | 9,298 | 413 |
```xml
import "./PgTablesPlugin.js";
import "graphile-config";
import type { GraphQLEnumType } from "grafast/graphql";
import { version } from "../version.js";
declare global {
namespace GraphileConfig {
interface Plugins {
PgConnectionArgOrderByDefaultValuePlugin: true;
}
}
}
export const PgConnectionArgOrderByDefaultValuePlugin: GraphileConfig.Plugin = {
name: "PgConnectionArgOrderByDefaultValuePlugin",
description: "Sets the default 'orderBy' for a table",
version: version,
schema: {
hooks: {
GraphQLObjectType_fields_field_args_arg(arg, build, context) {
const { extend, getTypeByName, inflection } = build;
const {
scope: {
fieldName,
isPgFieldConnection,
pgFieldResource: pgResource,
argName,
},
Self,
} = context;
if (argName !== "orderBy") {
return arg;
}
if (
!isPgFieldConnection ||
!pgResource ||
!pgResource.codec.attributes ||
pgResource.parameters
) {
return arg;
}
const tableTypeName = inflection.tableType(pgResource.codec);
const TableOrderByType = getTypeByName(
inflection.orderByType(tableTypeName),
) as GraphQLEnumType;
if (!TableOrderByType) {
return arg;
}
const primaryKeyAsc = inflection.builtin("PRIMARY_KEY_ASC");
const defaultValueEnum =
TableOrderByType.getValues().find((v) => v.name === primaryKeyAsc) ||
TableOrderByType.getValues()[0];
if (!defaultValueEnum) {
return arg;
}
return extend(
arg,
{
defaultValue: defaultValueEnum && [defaultValueEnum.value],
},
`Adding defaultValue to orderBy for field '${fieldName}' of '${Self.name}'`,
);
},
},
},
};
``` | /content/code_sandbox/graphile-build/graphile-build-pg/src/plugins/PgConnectionArgOrderByDefaultValuePlugin.ts | xml | 2016-04-14T21:29:19 | 2024-08-16T17:12:51 | crystal | graphile/crystal | 12,539 | 399 |
```xml
import {
BaseEntity,
Entity,
Column,
UpdateDateColumn,
PrimaryGeneratedColumn,
} from "../../../../src"
@Entity()
export class Post extends BaseEntity {
@PrimaryGeneratedColumn()
id: number
@Column({ type: "varchar", unique: true })
title: string
@Column({ type: "varchar" })
description: string
@UpdateDateColumn()
updated_at: Date
}
``` | /content/code_sandbox/test/github-issues/9015/entity/Post.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 92 |
```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.
*/
-->
<!--
Norwegian Keyboard Layout
Just a copy of the Swedish layout, with / and / switched.
-->
<Keyboard
xmlns:android="path_to_url"
android:keyWidth="9.09%p"
android:horizontalGap="0px"
android:verticalGap="@dimen/key_bottom_gap"
>
<Row
android:rowEdgeFlags="top"
>
<Key
android:keyLabel="q"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_q"
android:keyEdgeFlags="left" />
<Key
android:keyLabel="w"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_w" />
<Key
android:keyLabel="e"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_e" />
<Key
android:keyLabel="r"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_r" />
<Key
android:keyLabel="t"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_t" />
<Key
android:keyLabel="y"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_y" />
<Key
android:keyLabel="u"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_u" />
<Key
android:keyLabel="i"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_i" />
<Key
android:keyLabel="o"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_o" />
<Key
android:keyLabel="p"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_p" />
<Key
android:keyLabel=""
android:keyEdgeFlags="right" />
</Row>
<Row>
<Key
android:keyLabel="a"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_a"
android:keyEdgeFlags="left" />
<Key
android:keyLabel="s"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_s" />
<Key
android:keyLabel="d"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_d" />
<Key
android:keyLabel="f" />
<Key
android:keyLabel="g"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_g" />
<Key
android:keyLabel="h" />
<Key
android:keyLabel="j" />
<Key
android:keyLabel="k" />
<Key
android:keyLabel="l"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_l" />
<Key
android:keyLabel=""
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_ae" />
<Key
android:keyLabel=""
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_oe"
android:keyEdgeFlags="right" />
</Row>
<Row>
<Key
android:codes="@integer/key_shift"
android:keyIcon="@drawable/sym_keyboard_shift"
android:iconPreview="@drawable/sym_keyboard_feedback_shift"
android:keyWidth="13.63%p"
android:isModifier="true"
android:isSticky="true"
android:keyEdgeFlags="left" />
<Key
android:keyLabel="z"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_z" />
<Key
android:keyLabel="x" />
<Key
android:keyLabel="c"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_c" />
<Key
android:keyLabel="v"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_v" />
<Key
android:keyLabel="b" />
<Key
android:keyLabel="n"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_n" />
<Key
android:keyLabel="m" />
<Key
android:keyLabel="\'"
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="̀́̂̈̃" />
<Key
android:codes="@integer/key_delete"
android:keyIcon="@drawable/sym_keyboard_delete"
android:iconPreview="@drawable/sym_keyboard_feedback_delete"
android:keyWidth="13.63%p"
android:isModifier="true"
android:isRepeatable="true"
android:keyEdgeFlags="right" />
</Row>
<Row
android:keyboardMode="@+id/mode_normal"
android:keyWidth="10%p"
android:rowEdgeFlags="bottom"
>
<Key
android:codes="@integer/key_symbol"
android:keyLabel="@string/label_symbol_key"
android:keyWidth="20%p"
android:isModifier="true"
android:keyEdgeFlags="left" />
<Key
android:codes="@integer/key_f1"
android:isModifier="true" />
<Key
android:codes="@integer/key_space"
android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
android:keyWidth="40%p"
android:isModifier="true" />
<Key
android:keyLabel="."
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_punctuation"
android:isModifier="true" />
<Key
android:codes="@integer/key_return"
android:keyIcon="@drawable/sym_keyboard_return"
android:iconPreview="@drawable/sym_keyboard_feedback_return"
android:keyWidth="20%p"
android:isModifier="true"
android:keyEdgeFlags="right" />
</Row>
<Row
android:keyboardMode="@+id/mode_url"
android:keyWidth="10%p"
android:rowEdgeFlags="bottom"
>
<Key
android:codes="@integer/key_symbol"
android:keyLabel="@string/label_symbol_key"
android:keyWidth="20%p"
android:isModifier="true"
android:keyEdgeFlags="left" />
<Key
android:codes="@integer/key_f1"
android:isModifier="true" />
<Key
android:codes="@integer/key_space"
android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
android:keyWidth="40%p"
android:isModifier="true" />
<Key
android:keyLabel="."
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_punctuation"
android:isModifier="true" />
<Key
android:codes="@integer/key_return"
android:keyIcon="@drawable/sym_keyboard_return"
android:iconPreview="@drawable/sym_keyboard_feedback_return"
android:keyWidth="20%p"
android:isModifier="true"
android:keyEdgeFlags="right" />
</Row>
<Row
android:keyboardMode="@+id/mode_email"
android:keyWidth="10%p"
android:rowEdgeFlags="bottom"
>
<Key
android:codes="@integer/key_symbol"
android:keyLabel="@string/label_symbol_key"
android:keyWidth="20%p"
android:isModifier="true"
android:keyEdgeFlags="left" />
<Key
android:codes="@integer/key_f1"
android:isModifier="true" />
<Key
android:codes="@integer/key_space"
android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
android:keyWidth="40%p"
android:isModifier="true" />
<Key
android:keyLabel="."
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_punctuation"
android:isModifier="true" />
<Key
android:codes="@integer/key_return"
android:keyIcon="@drawable/sym_keyboard_return"
android:iconPreview="@drawable/sym_keyboard_feedback_return"
android:keyWidth="20%p"
android:isModifier="true"
android:keyEdgeFlags="right" />
</Row>
<Row
android:keyboardMode="@+id/mode_im"
android:keyWidth="10%p"
android:rowEdgeFlags="bottom"
>
<Key
android:codes="@integer/key_symbol"
android:keyLabel="@string/label_symbol_key"
android:keyWidth="20%p"
android:isModifier="true"
android:keyEdgeFlags="left" />
<Key
android:codes="@integer/key_f1"
android:isModifier="true" />
<Key
android:codes="@integer/key_space"
android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
android:keyWidth="40%p"
android:isModifier="true" />
<Key
android:keyLabel="."
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_punctuation"
android:isModifier="true" />
<Key
android:keyLabel=":-)"
android:keyOutputText=":-) "
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_smileys"
android:keyWidth="20%p"
android:isModifier="true"
android:keyEdgeFlags="right" />
</Row>
<Row
android:keyboardMode="@+id/mode_webentry"
android:keyWidth="10%p"
android:rowEdgeFlags="bottom"
>
<Key
android:codes="@integer/key_symbol"
android:keyLabel="@string/label_symbol_key"
android:keyWidth="20%p"
android:isModifier="true"
android:keyEdgeFlags="left" />
<Key
android:codes="@integer/key_f1"
android:isModifier="true" />
<Key
android:codes="@integer/key_space"
android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
android:keyWidth="30%p"
android:isModifier="true" />
<Key
android:codes="@integer/key_tab"
android:keyIcon="@drawable/sym_keyboard_tab"
android:iconPreview="@drawable/sym_keyboard_feedback_tab"
android:isModifier="true" />
<Key
android:keyLabel="."
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_punctuation"
android:isModifier="true" />
<Key
android:codes="@integer/key_return"
android:keyIcon="@drawable/sym_keyboard_return"
android:iconPreview="@drawable/sym_keyboard_feedback_return"
android:keyWidth="20%p"
android:isModifier="true"
android:keyEdgeFlags="right" />
</Row>
<Row
android:keyboardMode="@+id/mode_normal_with_settings_key"
android:keyWidth="10%p"
android:rowEdgeFlags="bottom"
>
<Key
android:codes="@integer/key_symbol"
android:keyLabel="@string/label_symbol_key"
android:keyWidth="15%p"
android:isModifier="true"
android:keyEdgeFlags="left" />
<Key
android:codes="@integer/key_settings"
android:keyIcon="@drawable/sym_keyboard_settings"
android:iconPreview="@drawable/sym_keyboard_feedback_settings"
android:isModifier="true" />
<Key
android:codes="@integer/key_f1"
android:isModifier="true" />
<Key
android:codes="@integer/key_space"
android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
android:keyWidth="30%p"
android:isModifier="true" />
<Key
android:keyLabel="."
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_punctuation"
android:isModifier="true" />
<Key
android:codes="@integer/key_return"
android:keyIcon="@drawable/sym_keyboard_return"
android:iconPreview="@drawable/sym_keyboard_feedback_return"
android:keyWidth="25%p"
android:isModifier="true"
android:keyEdgeFlags="right" />
</Row>
<Row
android:keyboardMode="@+id/mode_url_with_settings_key"
android:keyWidth="10%p"
android:rowEdgeFlags="bottom"
>
<Key
android:codes="@integer/key_symbol"
android:keyLabel="@string/label_symbol_key"
android:keyWidth="15%p"
android:isModifier="true"
android:keyEdgeFlags="left" />
<Key
android:codes="@integer/key_settings"
android:keyIcon="@drawable/sym_keyboard_settings"
android:iconPreview="@drawable/sym_keyboard_feedback_settings"
android:isModifier="true" />
<Key
android:codes="@integer/key_f1"
android:isModifier="true" />
<Key
android:codes="@integer/key_space"
android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
android:keyWidth="30%p"
android:isModifier="true" />
<Key
android:keyLabel="."
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_punctuation"
android:isModifier="true" />
<Key
android:codes="@integer/key_return"
android:keyIcon="@drawable/sym_keyboard_return"
android:iconPreview="@drawable/sym_keyboard_feedback_return"
android:keyWidth="25%p"
android:isModifier="true"
android:keyEdgeFlags="right" />
</Row>
<Row
android:keyboardMode="@+id/mode_email_with_settings_key"
android:keyWidth="10%p"
android:rowEdgeFlags="bottom"
>
<Key
android:codes="@integer/key_symbol"
android:keyLabel="@string/label_symbol_key"
android:keyWidth="15%p"
android:isModifier="true"
android:keyEdgeFlags="left" />
<Key
android:codes="@integer/key_settings"
android:keyIcon="@drawable/sym_keyboard_settings"
android:iconPreview="@drawable/sym_keyboard_feedback_settings"
android:isModifier="true" />
<Key
android:codes="@integer/key_f1"
android:isModifier="true" />
<Key
android:codes="@integer/key_space"
android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
android:keyWidth="30%p"
android:isModifier="true" />
<Key
android:keyLabel="."
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_punctuation"
android:isModifier="true" />
<Key
android:codes="@integer/key_return"
android:keyIcon="@drawable/sym_keyboard_return"
android:iconPreview="@drawable/sym_keyboard_feedback_return"
android:keyWidth="25%p"
android:isModifier="true"
android:keyEdgeFlags="right" />
</Row>
<Row
android:keyboardMode="@+id/mode_im_with_settings_key"
android:keyWidth="10%p"
android:rowEdgeFlags="bottom"
>
<Key
android:codes="@integer/key_symbol"
android:keyLabel="@string/label_symbol_key"
android:keyWidth="15%p"
android:isModifier="true"
android:keyEdgeFlags="left" />
<Key
android:codes="@integer/key_settings"
android:keyIcon="@drawable/sym_keyboard_settings"
android:iconPreview="@drawable/sym_keyboard_feedback_settings"
android:isModifier="true" />
<Key
android:codes="@integer/key_f1"
android:isModifier="true" />
<Key
android:codes="@integer/key_space"
android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
android:keyWidth="30%p"
android:isModifier="true" />
<Key
android:keyLabel="."
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_punctuation"
android:isModifier="true" />
<Key
android:keyLabel=":-)"
android:keyOutputText=":-) "
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_smileys"
android:keyWidth="25%p"
android:isModifier="true"
android:keyEdgeFlags="right" />
</Row>
<Row
android:keyboardMode="@+id/mode_webentry_with_settings_key"
android:keyWidth="10%p"
android:rowEdgeFlags="bottom"
>
<Key
android:codes="@integer/key_symbol"
android:keyLabel="@string/label_symbol_key"
android:keyWidth="15%p"
android:isModifier="true"
android:keyEdgeFlags="left" />
<Key
android:codes="@integer/key_settings"
android:keyIcon="@drawable/sym_keyboard_settings"
android:iconPreview="@drawable/sym_keyboard_feedback_settings"
android:isModifier="true" />
<Key
android:codes="@integer/key_f1"
android:isModifier="true" />
<Key
android:codes="@integer/key_space"
android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
android:keyWidth="30%p"
android:isModifier="true" />
<Key
android:codes="@integer/key_tab"
android:keyIcon="@drawable/sym_keyboard_tab"
android:iconPreview="@drawable/sym_keyboard_feedback_tab"
android:isModifier="true" />
<Key
android:keyLabel="."
android:keyIcon="@drawable/hint_popup"
android:popupKeyboard="@xml/popup_punctuation"
android:isModifier="true" />
<Key
android:codes="@integer/key_return"
android:keyIcon="@drawable/sym_keyboard_return"
android:iconPreview="@drawable/sym_keyboard_feedback_return"
android:keyWidth="15%p"
android:isModifier="true"
android:keyEdgeFlags="right" />
</Row>
</Keyboard>
``` | /content/code_sandbox/app/src/main/res/xml-da/kbd_qwerty.xml | xml | 2016-01-22T21:40:54 | 2024-08-16T11:54:30 | hackerskeyboard | klausw/hackerskeyboard | 1,807 | 4,285 |
```xml
'use strict';
import * as path from 'path';
import { WorkspaceConfiguration } from 'vscode';
import './common/extensions';
import { FileSystem } from './common/platform/fileSystem';
import { EXTENSION_ROOT_DIR } from './constants';
import { traceError } from './logging';
type VSCode = typeof import('vscode');
const setting = 'sourceMapsEnabled';
export class SourceMapSupport {
private readonly config: WorkspaceConfiguration;
constructor(private readonly vscode: VSCode) {
this.config = this.vscode.workspace.getConfiguration('python.diagnostics', null);
}
public async initialize(): Promise<void> {
if (!this.enabled) {
return;
}
await this.enableSourceMaps(true);
require('source-map-support').install();
const localize = require('./common/utils/localize') as typeof import('./common/utils/localize');
const disable = localize.Diagnostics.disableSourceMaps;
this.vscode.window.showWarningMessage(localize.Diagnostics.warnSourceMaps, disable).then((selection) => {
if (selection === disable) {
this.disable().ignoreErrors();
}
});
}
public get enabled(): boolean {
return this.config.get<boolean>(setting, false);
}
public async disable(): Promise<void> {
if (this.enabled) {
await this.config.update(setting, false, this.vscode.ConfigurationTarget.Global);
}
await this.enableSourceMaps(false);
}
protected async enableSourceMaps(enable: boolean) {
const extensionSourceFile = path.join(EXTENSION_ROOT_DIR, 'out', 'client', 'extension.js');
const debuggerSourceFile = path.join(
EXTENSION_ROOT_DIR,
'out',
'client',
'debugger',
'debugAdapter',
'main.js',
);
await Promise.all([
this.enableSourceMap(enable, extensionSourceFile),
this.enableSourceMap(enable, debuggerSourceFile),
]);
}
protected async enableSourceMap(enable: boolean, sourceFile: string) {
const sourceMapFile = `${sourceFile}.map`;
const disabledSourceMapFile = `${sourceFile}.map.disabled`;
if (enable) {
await this.rename(disabledSourceMapFile, sourceMapFile);
} else {
await this.rename(sourceMapFile, disabledSourceMapFile);
}
}
protected async rename(sourceFile: string, targetFile: string) {
const fs = new FileSystem();
if (await fs.fileExists(targetFile)) {
return;
}
await fs.move(sourceFile, targetFile);
}
}
export function initialize(vscode: VSCode = require('vscode')) {
if (!vscode.workspace.getConfiguration('python.diagnostics', null).get('sourceMapsEnabled', false)) {
new SourceMapSupport(vscode).disable().ignoreErrors();
return;
}
new SourceMapSupport(vscode).initialize().catch((_ex) => {
traceError('Failed to initialize source map support in extension');
});
}
``` | /content/code_sandbox/src/client/sourceMapSupport.ts | xml | 2016-01-19T10:50:01 | 2024-08-12T21:05:24 | pythonVSCode | DonJayamanne/pythonVSCode | 2,078 | 625 |
```xml
import { createNext, FileRef } from 'e2e-utils'
import { NextInstance } from 'e2e-utils'
import { join } from 'path'
describe('app-dir-hide-suppressed-error-during-next-export', () => {
let next: NextInstance
beforeAll(async () => {
next = await createNext({
skipStart: true,
files: {
'next.config.js': new FileRef(join(__dirname, 'next.config.js')),
app: new FileRef(join(__dirname, 'app')),
},
})
})
afterAll(() => next.destroy())
it('should not log suppressed error when exporting static page', async () => {
await expect(next.start()).rejects.toThrow('next build failed')
expect(next.cliOutput).toInclude('Page build time error')
expect(next.cliOutput).toInclude('occurred prerendering page "/"')
expect(next.cliOutput).toInclude(
'Export encountered errors on following paths'
)
expect(next.cliOutput).not.toInclude(
'The specific message is omitted in production builds to avoid leaking sensitive details.'
)
})
})
``` | /content/code_sandbox/test/production/app-dir-hide-suppressed-error-during-next-export/index.test.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 242 |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<vector xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path
android:fillColor="#FFFFFF"
android:pathData="M6,18l8.5,-6L6,6v12zM16,6v12h2V6h-2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/ic_skip_next.xml | xml | 2016-04-09T15:47:45 | 2024-08-14T04:30:04 | MusicLake | caiyonglong/MusicLake | 2,654 | 116 |
```xml
import { TestBed, inject, getTestBed } from '@angular/core/testing';
import {
HttpClientTestingModule,
HttpTestingController,
} from '@angular/common/http/testing';
import { CookieService } from 'ngx-cookie';
import { AppConfigService } from './app-config.service';
import { AppConfig } from './app-config';
import { CURRENT_BASE_HREF } from '../shared/units/utils';
describe('AppConfigService', () => {
let injector: TestBed;
let service: AppConfigService;
let httpMock: HttpTestingController;
let fakeCookieService = {
get: function (key) {
return null;
},
};
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [
AppConfigService,
{ provide: CookieService, useValue: fakeCookieService },
],
});
injector = getTestBed();
service = injector.get(AppConfigService);
httpMock = injector.get(HttpTestingController);
});
let systeminfo = new AppConfig();
it('should be created', inject(
[AppConfigService],
(service1: AppConfigService) => {
expect(service1).toBeTruthy();
}
));
it('load() should return data', () => {
service.load().subscribe(res => {
expect(res).toEqual(systeminfo);
});
const req = httpMock.expectOne(CURRENT_BASE_HREF + '/systeminfo');
expect(req.request.method).toBe('GET');
req.flush(systeminfo);
expect(service.getConfig()).toEqual(systeminfo);
expect(service.isLdapMode()).toBeFalsy();
expect(service.isHttpAuthMode()).toBeFalsy();
expect(service.isOidcMode()).toBeFalsy();
});
});
``` | /content/code_sandbox/src/portal/src/app/services/app-config.service.spec.ts | xml | 2016-01-28T21:10:28 | 2024-08-16T15:28:34 | harbor | goharbor/harbor | 23,335 | 355 |
```xml
import symbolicateStackTrace from 'react-native/Libraries/Core/Devtools/symbolicateStackTrace';
export default symbolicateStackTrace;
``` | /content/code_sandbox/packages/@expo/metro-runtime/src/error-overlay/modules/symbolicateStackTrace/index.native.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 26 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="path_to_url">
<solid android:color="#5d4773"/>
<corners android:radius="30px"/>
<padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />
</shape>
``` | /content/code_sandbox/catloadinglibrary/src/main/res/drawable/background.xml | xml | 2016-04-01T09:02:26 | 2024-08-02T07:37:09 | CatLoadingView | Rogero0o/CatLoadingView | 1,066 | 81 |
```xml
export * from './templates/basicTemplateAstVisitor';
export * from './styles/basicCssAstVisitor';
export * from './config';
export * from './metadata';
export * from './ngWalker';
``` | /content/code_sandbox/src/angular/index.ts | xml | 2016-02-10T17:22:40 | 2024-08-14T16:41:28 | codelyzer | mgechev/codelyzer | 2,446 | 40 |
```xml
import React from 'react';
import { BlockQuoteProps, QuoteProps, TimeProps } from './Text.types';
import { TextProps } from '../primitives/Text';
import { ViewProps } from '../primitives/View';
export declare const P: React.ComponentType<TextProps>;
export declare const B: React.ComponentType<TextProps>;
export declare const S: React.ComponentType<TextProps>;
export declare const I: React.ComponentType<TextProps>;
export declare const Q: React.ComponentType<QuoteProps>;
export declare const BlockQuote: React.ComponentType<BlockQuoteProps>;
export declare const BR: React.ComponentType<TextProps>;
export declare const Mark: React.ComponentType<TextProps>;
export declare const Code: React.ComponentType<TextProps>;
type PreProps = TextProps | ViewProps;
export declare const Pre: React.ComponentType<PreProps>;
export declare const Time: React.ComponentType<TimeProps>;
export declare const Strong: React.ComponentType<TextProps>;
export declare const Del: React.ComponentType<TextProps>;
export declare const EM: React.ComponentType<TextProps>;
export declare const Span: React.ComponentType<TextProps>;
export {};
//# sourceMappingURL=Text.d.ts.map
``` | /content/code_sandbox/packages/html-elements/build/elements/Text.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 237 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\..\configureawait.props" />
<Import Project="..\..\..\..\common.props" />
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0</TargetFrameworks>
<AssemblyName>Volo.Blogging.HttpApi.Client</AssemblyName>
<PackageId>Volo.Blogging.HttpApi.Client</PackageId>
<RootNamespace />
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Volo.Blogging.Application.Contracts\Volo.Blogging.Application.Contracts.csproj" />
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Http.Client\Volo.Abp.Http.Client.csproj" />
</ItemGroup>
</Project>
``` | /content/code_sandbox/modules/blogging/src/Volo.Blogging.HttpApi.Client/Volo.Blogging.HttpApi.Client.csproj | xml | 2016-12-03T22:56:24 | 2024-08-16T16:24:05 | abp | abpframework/abp | 12,657 | 171 |
```xml
interface Options {
itemTypes?: ('file' | 'directory')[];
extensions?: string[];
}
interface FileSelection {
filePath: string;
canceled: boolean;
}
export const selectFileOrFolder = async ({ itemTypes, extensions }: Options) => {
// If no types are selected then default to just files and not directories
const types = itemTypes || ['file'];
let title = 'Select ';
if (types.includes('file')) {
title += ' File';
if (types.length > 2) {
title += ' or';
}
}
if (types.includes('directory')) {
title += ' Directory';
}
const { canceled, filePaths } = await window.dialog.showOpenDialog({
title,
buttonLabel: 'Select',
properties: types.map(type => {
switch (type) {
case 'file':
return 'openFile';
case 'directory':
return 'openDirectory';
default:
throw new Error(`unrecognized item type: "${type}"`);
}
}),
filters: [{
extensions: (extensions?.length ? extensions : ['*']),
name: '',
}],
});
const fileSelection: FileSelection = {
filePath: filePaths[0],
canceled,
};
return fileSelection;
};
``` | /content/code_sandbox/packages/insomnia/src/common/select-file-or-folder.ts | xml | 2016-04-23T03:54:26 | 2024-08-16T16:50:44 | insomnia | Kong/insomnia | 34,054 | 276 |
```xml
import * as React from 'react'
import { Collapse } from 'element-react'
import { Collapse as CollapseNext } from 'element-react/next'
class Component extends React.Component<{}, {}> {
onChange = (activeNames) => { }
onClick = (item) => { }
render() {
return (
<div>
<Collapse className="className" style={{ width: 100 }}>
<Collapse.Item className="className" style={{ width: 100 }}>item</Collapse.Item>
</Collapse>
<Collapse accordion={true} value="32" onChange={this.onChange}>
<Collapse.Item onClick={this.onClick} isActive={true} title={true ? 'title' : (<div>title</div>)} name="name">item</Collapse.Item>
</Collapse>
<CollapseNext className="className" style={{ width: 100 }}>
<CollapseNext.Item className="className" style={{ width: 100 }}>item</CollapseNext.Item>
</CollapseNext>
<CollapseNext accordion={true} value="32" onChange={this.onChange}>
<CollapseNext.Item onClick={this.onClick} isActive={true} title={true ? 'title' : (<div>title</div>)} name="name">item</CollapseNext.Item>
</CollapseNext>
</div>
)
}
}
``` | /content/code_sandbox/typings/typing-tests/Collapse.tsx | xml | 2016-10-18T06:56:20 | 2024-08-13T18:56:20 | element-react | ElemeFE/element-react | 2,831 | 281 |
```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>CFBundleDisplayName</key>
<string>ServiceModel_Test</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.xamarin.ServiceModel_Test</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>ServiceModel_Test</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>10.15</string>
<string>MM</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
``` | /content/code_sandbox/tests/common/TestProjects/ServiceModel_Test/ServiceModel_Test/Info.plist | xml | 2016-04-20T18:24:26 | 2024-08-16T13:29:19 | xamarin-macios | xamarin/xamarin-macios | 2,436 | 287 |
```xml
import Options from './options'
export interface ColumnDefinition {
udtName: string,
nullable: boolean,
tsType?: string
}
export interface TableDefinition {
[columnName: string]: ColumnDefinition
}
export interface Database {
connectionString: string
query (queryString: string): Promise<Object[]>
getDefaultSchema (): string
getEnumTypes (schema?: string): any
getTableDefinition (tableName: string, tableSchema: string): Promise<TableDefinition>
getTableTypes (tableName: string, tableSchema: string, options: Options): Promise<TableDefinition>
getSchemaTables (schemaName: string): Promise<string[]>
}
``` | /content/code_sandbox/src/schemaInterfaces.ts | xml | 2016-08-15T17:54:26 | 2024-08-08T15:46:34 | schemats | SweetIQ/schemats | 1,032 | 138 |
```xml
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
/**
* Tests for HtmlView module.
*/
import * as React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { act } from 'react-dom/test-utils';
import { HtmlView, IHtmlProvider, importHtml } from '../../common/HtmlView';
let container: null | Element = null;
beforeEach(() => {
container = document.createElement('div');
document.body.appendChild(container);
});
afterEach(() => {
unmountComponentAtNode(container);
container.remove();
container = null;
jest.clearAllMocks();
});
describe('HtmlView', () => {
it('renders provided html', () => {
const htmlViewRef: React.RefObject<HtmlView> = React.createRef<HtmlView>();
const spiedConsole = jest.spyOn(console, 'log');
const fakeHtmlProvider = {
html: '<div>Test</div>',
script: ['console.log(1);', 'console.log(2);']
} as IHtmlProvider;
act(() => {
render(
<HtmlView ref={htmlViewRef} htmlProvider={fakeHtmlProvider} />,
container
);
const htmlView = htmlViewRef.current;
if (htmlView) {
htmlView.updateRender();
}
});
const htmlViewElement: Element = container.firstElementChild;
expect(htmlViewElement.tagName).toBe('DIV');
expect(htmlViewElement.innerHTML).toBe('<div>Test</div>');
expect(spiedConsole).toHaveBeenCalledWith(1);
expect(spiedConsole).toHaveBeenCalledWith(2);
expect(spiedConsole).toHaveBeenCalledTimes(2);
});
it(
'only executes incrementally updated Javascript ' +
'as html provider updated',
() => {
const htmlViewRef: React.RefObject<HtmlView> =
React.createRef<HtmlView>();
const spiedConsole = jest.spyOn(console, 'log');
const fakeHtmlProvider = {
html: '<div></div>',
script: ['console.log(1);']
} as IHtmlProvider;
act(() => {
render(
<HtmlView ref={htmlViewRef} htmlProvider={fakeHtmlProvider} />,
container
);
const htmlView = htmlViewRef.current;
if (htmlView) {
htmlView.updateRender();
}
});
expect(spiedConsole).toHaveBeenCalledWith(1);
expect(spiedConsole).toHaveBeenCalledTimes(1);
fakeHtmlProvider.script.push('console.log(2);');
act(() => {
const htmlView = htmlViewRef.current;
if (htmlView) {
htmlView.updateRender();
}
});
expect(spiedConsole).toHaveBeenCalledWith(2);
expect(spiedConsole).toHaveBeenCalledTimes(2);
}
);
});
describe('Function importHtml', () => {
it('imports webcomponents script', () => {
act(() => {
importHtml([]);
});
const scriptElement: Element = document.head.firstElementChild;
expect(scriptElement.tagName).toBe('SCRIPT');
expect(scriptElement.getAttribute('src')).toBe(
'path_to_url
);
});
});
``` | /content/code_sandbox/sdks/python/apache_beam/runners/interactive/extensions/apache-beam-jupyterlab-sidepanel/src/__tests__/common/HtmlView.test.tsx | xml | 2016-02-02T08:00:06 | 2024-08-16T18:58:11 | beam | apache/beam | 7,730 | 697 |
```xml
import { TestBed } from '@angular/core/testing';
import { Component } from '@angular/core';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { multi } from '../../../../../../src/app/data';
import { APP_BASE_HREF } from '@angular/common';
import { NumberCardModule } from './number-card.module';
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
@Component({
selector: 'test-component',
template: ''
})
class TestComponent {
multi: any = multi;
colorScheme = {
domain: ['#5AA454', '#A10A28', '#C7B42C', '#AAAAAA']
};
}
describe('<ngx-charts-number-card>', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [TestComponent],
imports: [NoopAnimationsModule, NumberCardModule],
providers: [{ provide: APP_BASE_HREF, useValue: '/' }]
});
});
describe('basic setup', () => {
beforeEach(() => {
TestBed.overrideComponent(TestComponent, {
set: {
template: `
<ngx-charts-number-card
[animations]="false"
[view]="[400,800]"
[scheme]="colorScheme"
[results]="multi">
</ngx-charts-number-card>`
}
}).compileComponents();
});
it('should set the svg width and height', () => {
const fixture = TestBed.createComponent(TestComponent);
fixture.detectChanges();
const svg = fixture.debugElement.nativeElement.querySelector('svg');
expect(svg.getAttribute('width')).toBe('400');
expect(svg.getAttribute('height')).toBe('800');
});
it(`should render ${multi.length} ngx-charts-cards`, () => {
const fixture = TestBed.createComponent(TestComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelectorAll('g[ngx-charts-card]').length).toEqual(multi.length);
});
});
});
``` | /content/code_sandbox/projects/swimlane/ngx-charts/src/lib/number-card/number-card.component.spec.ts | xml | 2016-07-22T15:58:41 | 2024-08-02T15:56:24 | ngx-charts | swimlane/ngx-charts | 4,284 | 405 |
```xml
import {Component} from '@angular/core';
import {TestBed, fakeAsync, flush} from '@angular/core/testing';
import {DEFAULT_OPTIONS, GoogleMap} from '../google-map/google-map';
import {
createMapConstructorSpy,
createMapSpy,
createTrafficLayerConstructorSpy,
createTrafficLayerSpy,
} from '../testing/fake-google-map-utils';
import {MapTrafficLayer} from './map-traffic-layer';
describe('MapTrafficLayer', () => {
let mapSpy: jasmine.SpyObj<google.maps.Map>;
const trafficLayerOptions: google.maps.TrafficLayerOptions = {autoRefresh: false};
beforeEach(() => {
mapSpy = createMapSpy(DEFAULT_OPTIONS);
createMapConstructorSpy(mapSpy);
});
afterEach(() => {
(window.google as any) = undefined;
});
it('initializes a Google Map Traffic Layer', fakeAsync(() => {
const trafficLayerSpy = createTrafficLayerSpy(trafficLayerOptions);
const trafficLayerConstructorSpy = createTrafficLayerConstructorSpy(trafficLayerSpy);
const fixture = TestBed.createComponent(TestApp);
fixture.componentInstance.autoRefresh = false;
fixture.detectChanges();
flush();
expect(trafficLayerConstructorSpy).toHaveBeenCalledWith(trafficLayerOptions);
expect(trafficLayerSpy.setMap).toHaveBeenCalledWith(mapSpy);
}));
});
@Component({
selector: 'test-app',
template: `
<google-map>
<map-traffic-layer [autoRefresh]="autoRefresh" />
</google-map>
`,
standalone: true,
imports: [GoogleMap, MapTrafficLayer],
})
class TestApp {
autoRefresh?: boolean;
}
``` | /content/code_sandbox/src/google-maps/map-traffic-layer/map-traffic-layer.spec.ts | xml | 2016-01-04T18:50:02 | 2024-08-16T11:21:13 | components | angular/components | 24,263 | 344 |
```xml
<!--
Description: entry source author - multiple
-->
<feed xmlns="path_to_url">
<entry>
<source>
<author>
<name>Author Name 1</name>
<email>email@example.org</email>
<uri>path_to_url
</author>
<author>
<name>Author Name 2</name>
<email>email2@example.org</email>
<uri>path_to_url
</author>
</source>
</entry>
</feed>
``` | /content/code_sandbox/testdata/parser/atom/atom10_feed_entry_source_authors_multiple.xml | xml | 2016-01-23T02:44:34 | 2024-08-16T15:16:03 | gofeed | mmcdole/gofeed | 2,547 | 117 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="path_to_url"
xmlns="path_to_url"
xmlns:s="path_to_url"
targetNamespace="path_to_url"
blockDefault="#all" elementFormDefault="qualified">
<xsd:import namespace="path_to_url"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:simpleType name="ST_VectorBaseType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="variant"/>
<xsd:enumeration value="i1"/>
<xsd:enumeration value="i2"/>
<xsd:enumeration value="i4"/>
<xsd:enumeration value="i8"/>
<xsd:enumeration value="ui1"/>
<xsd:enumeration value="ui2"/>
<xsd:enumeration value="ui4"/>
<xsd:enumeration value="ui8"/>
<xsd:enumeration value="r4"/>
<xsd:enumeration value="r8"/>
<xsd:enumeration value="lpstr"/>
<xsd:enumeration value="lpwstr"/>
<xsd:enumeration value="bstr"/>
<xsd:enumeration value="date"/>
<xsd:enumeration value="filetime"/>
<xsd:enumeration value="bool"/>
<xsd:enumeration value="cy"/>
<xsd:enumeration value="error"/>
<xsd:enumeration value="clsid"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ArrayBaseType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="variant"/>
<xsd:enumeration value="i1"/>
<xsd:enumeration value="i2"/>
<xsd:enumeration value="i4"/>
<xsd:enumeration value="int"/>
<xsd:enumeration value="ui1"/>
<xsd:enumeration value="ui2"/>
<xsd:enumeration value="ui4"/>
<xsd:enumeration value="uint"/>
<xsd:enumeration value="r4"/>
<xsd:enumeration value="r8"/>
<xsd:enumeration value="decimal"/>
<xsd:enumeration value="bstr"/>
<xsd:enumeration value="date"/>
<xsd:enumeration value="bool"/>
<xsd:enumeration value="cy"/>
<xsd:enumeration value="error"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Cy">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\s*[0-9]*\.[0-9]{4}\s*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Error">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\s*0x[0-9A-Za-z]{8}\s*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Empty"/>
<xsd:complexType name="CT_Null"/>
<xsd:complexType name="CT_Vector">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="variant"/>
<xsd:element ref="i1"/>
<xsd:element ref="i2"/>
<xsd:element ref="i4"/>
<xsd:element ref="i8"/>
<xsd:element ref="ui1"/>
<xsd:element ref="ui2"/>
<xsd:element ref="ui4"/>
<xsd:element ref="ui8"/>
<xsd:element ref="r4"/>
<xsd:element ref="r8"/>
<xsd:element ref="lpstr"/>
<xsd:element ref="lpwstr"/>
<xsd:element ref="bstr"/>
<xsd:element ref="date"/>
<xsd:element ref="filetime"/>
<xsd:element ref="bool"/>
<xsd:element ref="cy"/>
<xsd:element ref="error"/>
<xsd:element ref="clsid"/>
</xsd:choice>
<xsd:attribute name="baseType" type="ST_VectorBaseType" use="required"/>
<xsd:attribute name="size" type="xsd:unsignedInt" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_Array">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="variant"/>
<xsd:element ref="i1"/>
<xsd:element ref="i2"/>
<xsd:element ref="i4"/>
<xsd:element ref="int"/>
<xsd:element ref="ui1"/>
<xsd:element ref="ui2"/>
<xsd:element ref="ui4"/>
<xsd:element ref="uint"/>
<xsd:element ref="r4"/>
<xsd:element ref="r8"/>
<xsd:element ref="decimal"/>
<xsd:element ref="bstr"/>
<xsd:element ref="date"/>
<xsd:element ref="bool"/>
<xsd:element ref="error"/>
<xsd:element ref="cy"/>
</xsd:choice>
<xsd:attribute name="lBounds" type="xsd:int" use="required"/>
<xsd:attribute name="uBounds" type="xsd:int" use="required"/>
<xsd:attribute name="baseType" type="ST_ArrayBaseType" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_Variant">
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element ref="variant"/>
<xsd:element ref="vector"/>
<xsd:element ref="array"/>
<xsd:element ref="blob"/>
<xsd:element ref="oblob"/>
<xsd:element ref="empty"/>
<xsd:element ref="null"/>
<xsd:element ref="i1"/>
<xsd:element ref="i2"/>
<xsd:element ref="i4"/>
<xsd:element ref="i8"/>
<xsd:element ref="int"/>
<xsd:element ref="ui1"/>
<xsd:element ref="ui2"/>
<xsd:element ref="ui4"/>
<xsd:element ref="ui8"/>
<xsd:element ref="uint"/>
<xsd:element ref="r4"/>
<xsd:element ref="r8"/>
<xsd:element ref="decimal"/>
<xsd:element ref="lpstr"/>
<xsd:element ref="lpwstr"/>
<xsd:element ref="bstr"/>
<xsd:element ref="date"/>
<xsd:element ref="filetime"/>
<xsd:element ref="bool"/>
<xsd:element ref="cy"/>
<xsd:element ref="error"/>
<xsd:element ref="stream"/>
<xsd:element ref="ostream"/>
<xsd:element ref="storage"/>
<xsd:element ref="ostorage"/>
<xsd:element ref="vstream"/>
<xsd:element ref="clsid"/>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="CT_Vstream">
<xsd:simpleContent>
<xsd:extension base="xsd:base64Binary">
<xsd:attribute name="version" type="s:ST_Guid"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:element name="variant" type="CT_Variant"/>
<xsd:element name="vector" type="CT_Vector"/>
<xsd:element name="array" type="CT_Array"/>
<xsd:element name="blob" type="xsd:base64Binary"/>
<xsd:element name="oblob" type="xsd:base64Binary"/>
<xsd:element name="empty" type="CT_Empty"/>
<xsd:element name="null" type="CT_Null"/>
<xsd:element name="i1" type="xsd:byte"/>
<xsd:element name="i2" type="xsd:short"/>
<xsd:element name="i4" type="xsd:int"/>
<xsd:element name="i8" type="xsd:long"/>
<xsd:element name="int" type="xsd:int"/>
<xsd:element name="ui1" type="xsd:unsignedByte"/>
<xsd:element name="ui2" type="xsd:unsignedShort"/>
<xsd:element name="ui4" type="xsd:unsignedInt"/>
<xsd:element name="ui8" type="xsd:unsignedLong"/>
<xsd:element name="uint" type="xsd:unsignedInt"/>
<xsd:element name="r4" type="xsd:float"/>
<xsd:element name="r8" type="xsd:double"/>
<xsd:element name="decimal" type="xsd:decimal"/>
<xsd:element name="lpstr" type="xsd:string"/>
<xsd:element name="lpwstr" type="xsd:string"/>
<xsd:element name="bstr" type="xsd:string"/>
<xsd:element name="date" type="xsd:dateTime"/>
<xsd:element name="filetime" type="xsd:dateTime"/>
<xsd:element name="bool" type="xsd:boolean"/>
<xsd:element name="cy" type="ST_Cy"/>
<xsd:element name="error" type="ST_Error"/>
<xsd:element name="stream" type="xsd:base64Binary"/>
<xsd:element name="ostream" type="xsd:base64Binary"/>
<xsd:element name="storage" type="xsd:base64Binary"/>
<xsd:element name="ostorage" type="xsd:base64Binary"/>
<xsd:element name="vstream" type="CT_Vstream"/>
<xsd:element name="clsid" type="s:ST_Guid"/>
</xsd:schema>
``` | /content/code_sandbox/ooxml-schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd | xml | 2016-03-26T23:43:56 | 2024-08-16T13:02:47 | docx | dolanmiu/docx | 4,139 | 2,193 |
```xml
export {
default,
default as ArchivedReportFlowContainer,
} from "./ArchivedReportFlowContainer";
``` | /content/code_sandbox/client/src/core/client/stream/tabs/Comments/Comment/ArchivedReportFlow/index.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 23 |
```xml
export function isNonNullObject(obj: any): obj is Record<string | number, any> {
return obj !== null && typeof obj === "object";
}
export function isPlainObject(obj: any): obj is Record<string | number, any> {
return (
obj !== null &&
typeof obj === "object" &&
(Object.getPrototypeOf(obj) === Object.prototype ||
Object.getPrototypeOf(obj) === null)
);
}
``` | /content/code_sandbox/src/utilities/common/objects.ts | xml | 2016-02-26T20:25:00 | 2024-08-16T10:56:57 | apollo-client | apollographql/apollo-client | 19,304 | 91 |
```xml
import {
ICommonFormProps,
ICommonListProps,
} from "@erxes/ui-settings/src/common/types";
import { gql, useMutation, useQuery } from "@apollo/client";
import { mutations, queries } from "../graphql";
import { Alert } from "@erxes/ui/src/utils";
import { IButtonMutateProps } from "@erxes/ui/src/types";
import { IEmailTemplate } from "@erxes/ui-emailtemplates/src/types";
import List from "../components/List";
import React from "react";
import client from "@erxes/ui/src/apolloClient";
import { confirm } from "@erxes/ui/src/utils";
import { generatePaginationParams } from "@erxes/ui/src/utils/router";
export type EmailTemplatesTotalCountQueryResponse = {
emailTemplatesTotalCount: number;
};
export type EmailTemplatesQueryResponse = {
fetchMore: (params: {
variables: { page: number };
updateQuery: (prev: any, fetchMoreResult: any) => void;
}) => void;
emailTemplates: IEmailTemplate[];
variables: { [key: string]: string | number };
loading: boolean;
refetch: () => void;
};
type Props = {
queryParams: any;
location: any;
navigate: any;
renderButton: (props: IButtonMutateProps) => JSX.Element;
listQuery: any;
} & ICommonListProps &
ICommonFormProps;
const EmailListContainer = (props: Props) => {
const { queryParams } = props;
const listQuery = useQuery<EmailTemplatesQueryResponse>(
gql(queries.emailTemplates),
{
variables: {
searchValue: queryParams.searchValue,
status: queryParams.status,
...generatePaginationParams(queryParams),
},
}
);
const totalCountQuery = useQuery<EmailTemplatesTotalCountQueryResponse>(
gql(queries.totalCount),
{
variables: {
searchValue: queryParams.searchValue,
},
}
);
const [emailTemplatesRemove] = useMutation(
gql(mutations.emailTemplatesRemove),
{
refetchQueries: ["emailTemplates", "emailTemplatesTotalCount"],
}
);
const [emailTemplatesDuplicate] = useMutation(
gql(mutations.emailTemplatesDuplicate),
{
refetchQueries: ["emailTemplates", "emailTemplatesTotalCount"],
}
);
const remove = (id: string) => {
confirm().then(() => {
emailTemplatesRemove({
variables: { _id: id },
})
.then(() => {
Alert.success("Successfully deleted a template");
})
.catch((error) => {
Alert.error(error.message);
});
});
};
const duplicate = (id: string) => {
client;
emailTemplatesDuplicate({
variables: { _id: id },
})
.then(() => {
Alert.success("Successfully duplicated a template");
})
.catch((e) => {
Alert.error(e.message);
});
};
const updatedProps = {
...props,
remove,
duplicate,
objects: listQuery?.data?.emailTemplates || [],
totalCount: totalCountQuery?.data?.emailTemplatesTotalCount || 0,
loading: listQuery.loading || totalCountQuery.loading,
};
return <List {...updatedProps} />;
};
export default EmailListContainer;
``` | /content/code_sandbox/packages/plugin-emailtemplates-ui/src/containers/List.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 708 |
```xml
<RelativeLayout xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
</FrameLayout>
<LinearLayout
android:id="@+id/menu_container"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="6dp"
android:layout_alignParentBottom="true"
android:layerType="hardware" >
</LinearLayout>
</RelativeLayout>
``` | /content/code_sandbox/app/src/main/res/layout/activity_root.xml | xml | 2016-04-27T09:37:28 | 2024-08-14T04:17:17 | Depth-LIB-Android- | danielzeller/Depth-LIB-Android- | 4,559 | 144 |
```xml
<vector xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#000000"
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/ic_add_black_24dp.xml | xml | 2016-02-22T10:00:46 | 2024-08-16T15:37:50 | Images-to-PDF | Swati4star/Images-to-PDF | 1,174 | 102 |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="X5k-f2-b5h">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="gAE-YM-kbH">
<objects>
<viewController id="X5k-f2-b5h" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Y8P-hJ-Z43"/>
<viewControllerLayoutGuide type="bottom" id="9ZL-r4-8FZ"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="yd7-JS-zBw">
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="23" image="xamarin_logo">
<rect key="frame" x="97" y="342" width="220" height="51"/>
<rect key="contentStretch" x="0.0" y="0.0" width="0.0" height="0.0"/>
</imageView>
</subviews>
<color key="backgroundColor" red="0.20392156862745098" green="0.59607843137254901" blue="0.85882352941176465" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="23" firstAttribute="centerY" secondItem="yd7-JS-zBw" secondAttribute="centerY" priority="1" id="39"/>
<constraint firstItem="23" firstAttribute="centerX" secondItem="yd7-JS-zBw" secondAttribute="centerX" priority="1" id="41"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="XAI-xm-WK6" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="349" y="339"/>
</scene>
</scenes>
</document>
``` | /content/code_sandbox/Xamarin.Forms.ControlGallery.iOS/Resources/LaunchScreen.storyboard | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 636 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<schema targetNamespace="path_to_url"
xmlns:doc="path_to_url"
xmlns:maml="path_to_url"
xmlns="path_to_url"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
blockDefault="#all"
xml:lang="en">
<!-- Schema documentation -->
<annotation>
<documentation>This schema definition defines common structure types for the Content Studio Schema. This schema is part of the base layer.</documentation>
</annotation>
<!-- include and import declarations -->
<include schemaLocation="base.xsd"/>
<!-- element declarations -->
<element name="list">
<annotation>
<documentation>Describes a span of content to present in a list format.</documentation>
</annotation>
<complexType>
<sequence>
<element ref="maml:listItem" maxOccurs="unbounded"/>
</sequence>
<attribute name="class" default="unordered">
<annotation>
<documentation>Specifies the type of list to create.</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="unordered"/>
<enumeration value="ordered"/>
<enumeration value="multiSelect"/>
<enumeration value="singleSelect"/>
</restriction>
</simpleType>
</attribute>
<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
</complexType>
</element>
<element name="listItem">
<annotation>
<documentation>Describes an item within a list element. The content of the listItem element is treated as a unit.</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="maml:structureType">
<attribute name="selectionDefault" use="optional">
<annotation>
<documentation>Indicates whether the list item, if selectable, is selected in a default rendering.</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="selected"/>
<enumeration value="unselected"/>
</restriction>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
<element name="alert">
<annotation>
<documentation>Specifies content of elevated importance or otherwise that needs to be called out. The alert element is a single-level alert structure.</documentation>
</annotation>
<complexType>
<group ref="maml:structureGroup" maxOccurs="unbounded"/>
<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
</complexType>
</element>
<element name="alertSet">
<annotation>
<documentation>Contains a collection of alert elements. An alertSet element can have one or more alert elements as children. Use the alertSet element for more than one alert item of the same type. For example, if a topic had three items for the notes section, an alertSet could be used to combine them.</documentation>
</annotation>
<complexType>
<sequence>
<element ref="maml:title" minOccurs="0"/>
<element ref="maml:alert" maxOccurs="unbounded"/>
</sequence>
<attribute name="class" type="maml:alertTypesEnumType" default="note">
<annotation>
<documentation>Specifies the type of alert.</documentation>
</annotation>
</attribute>
<attributeGroup ref="maml:expandCollapseGroup"/>
<attributeGroup ref="maml:contentIdentificationSharingAndConditionGroup"/>
</complexType>
</element>
<!-- group declarations -->
<group name="structureListGroup">
<annotation>
<documentation>Describes the common lists that can be used to describe list data.</documentation>
</annotation>
<sequence>
<element ref="maml:list"/>
</sequence>
</group>
</schema>
``` | /content/code_sandbox/src/Schemas/PSMaml/structureList.xsd | xml | 2016-01-13T23:41:35 | 2024-08-16T19:59:07 | PowerShell | PowerShell/PowerShell | 44,388 | 841 |
```xml
import resolve from "rollup-plugin-node-resolve";
import babel from "rollup-plugin-babel";
import filesize from "rollup-plugin-filesize";
import minify from "rollup-plugin-babel-minify";
const pkg = require("./package.json");
export default {
input: "src/reactotron-template.ts",
output: [
{
file: pkg.main,
format: "commonjs",
},
{
file: pkg.module,
format: "esm",
},
],
plugins: [
resolve({ extensions: [".ts"] }),
babel({ extensions: [".ts"], runtimeHelpers: true }),
process.env.NODE_ENV === "production"
? minify({
comments: false,
})
: null,
filesize(),
],
// put any external react-native- deps here
external: ["reactotron-core-client"],
};
``` | /content/code_sandbox/scripts/template/rollup.config.ts | xml | 2016-04-15T21:58:32 | 2024-08-16T11:39:46 | reactotron | infinitered/reactotron | 14,757 | 185 |
```xml
import React from 'react';
import { render } from '@testing-library/react';
import PanelGroup from '../index';
import { getStyle, itChrome } from '@test/utils';
import '../styles/index.less';
describe('PanelGroup styles', () => {
itChrome('Should render the correct styles', () => {
const instanceRef = React.createRef();
render(<PanelGroup ref={instanceRef} />);
const dom = instanceRef.current as Element;
assert.equal(getStyle(dom, 'borderRadius'), '6px', 'Panel border-radius');
});
});
``` | /content/code_sandbox/src/PanelGroup/test/PanelGroupStylesSpec.tsx | xml | 2016-06-06T02:27:46 | 2024-08-16T16:41:54 | rsuite | rsuite/rsuite | 8,263 | 118 |
```xml
// auto generated file, do not edit
export default {
'@storybook/addon-a11y': '8.3.0-alpha.7',
'@storybook/addon-actions': '8.3.0-alpha.7',
'@storybook/addon-backgrounds': '8.3.0-alpha.7',
'@storybook/addon-controls': '8.3.0-alpha.7',
'@storybook/addon-docs': '8.3.0-alpha.7',
'@storybook/addon-essentials': '8.3.0-alpha.7',
'@storybook/addon-mdx-gfm': '8.3.0-alpha.7',
'@storybook/addon-highlight': '8.3.0-alpha.7',
'@storybook/addon-interactions': '8.3.0-alpha.7',
'@storybook/addon-jest': '8.3.0-alpha.7',
'@storybook/addon-links': '8.3.0-alpha.7',
'@storybook/addon-measure': '8.3.0-alpha.7',
'@storybook/addon-onboarding': '8.3.0-alpha.7',
'@storybook/addon-outline': '8.3.0-alpha.7',
'@storybook/addon-storysource': '8.3.0-alpha.7',
'@storybook/addon-themes': '8.3.0-alpha.7',
'@storybook/addon-toolbars': '8.3.0-alpha.7',
'@storybook/addon-viewport': '8.3.0-alpha.7',
'@storybook/experimental-addon-vitest': '8.3.0-alpha.7',
'@storybook/builder-vite': '8.3.0-alpha.7',
'@storybook/builder-webpack5': '8.3.0-alpha.7',
'@storybook/core': '8.3.0-alpha.7',
'@storybook/builder-manager': '8.3.0-alpha.7',
'@storybook/channels': '8.3.0-alpha.7',
'@storybook/client-logger': '8.3.0-alpha.7',
'@storybook/components': '8.3.0-alpha.7',
'@storybook/core-common': '8.3.0-alpha.7',
'@storybook/core-events': '8.3.0-alpha.7',
'@storybook/core-server': '8.3.0-alpha.7',
'@storybook/csf-tools': '8.3.0-alpha.7',
'@storybook/docs-tools': '8.3.0-alpha.7',
'@storybook/manager': '8.3.0-alpha.7',
'@storybook/manager-api': '8.3.0-alpha.7',
'@storybook/node-logger': '8.3.0-alpha.7',
'@storybook/preview': '8.3.0-alpha.7',
'@storybook/preview-api': '8.3.0-alpha.7',
'@storybook/router': '8.3.0-alpha.7',
'@storybook/telemetry': '8.3.0-alpha.7',
'@storybook/theming': '8.3.0-alpha.7',
'@storybook/types': '8.3.0-alpha.7',
'@storybook/angular': '8.3.0-alpha.7',
'@storybook/ember': '8.3.0-alpha.7',
'@storybook/experimental-nextjs-vite': '8.3.0-alpha.7',
'@storybook/html-vite': '8.3.0-alpha.7',
'@storybook/html-webpack5': '8.3.0-alpha.7',
'@storybook/nextjs': '8.3.0-alpha.7',
'@storybook/preact-vite': '8.3.0-alpha.7',
'@storybook/preact-webpack5': '8.3.0-alpha.7',
'@storybook/react-vite': '8.3.0-alpha.7',
'@storybook/react-webpack5': '8.3.0-alpha.7',
'@storybook/server-webpack5': '8.3.0-alpha.7',
'@storybook/svelte-vite': '8.3.0-alpha.7',
'@storybook/svelte-webpack5': '8.3.0-alpha.7',
'@storybook/sveltekit': '8.3.0-alpha.7',
'@storybook/vue3-vite': '8.3.0-alpha.7',
'@storybook/vue3-webpack5': '8.3.0-alpha.7',
'@storybook/web-components-vite': '8.3.0-alpha.7',
'@storybook/web-components-webpack5': '8.3.0-alpha.7',
'@storybook/blocks': '8.3.0-alpha.7',
storybook: '8.3.0-alpha.7',
sb: '8.3.0-alpha.7',
'@storybook/cli': '8.3.0-alpha.7',
'@storybook/codemod': '8.3.0-alpha.7',
'@storybook/core-webpack': '8.3.0-alpha.7',
'create-storybook': '8.3.0-alpha.7',
'@storybook/csf-plugin': '8.3.0-alpha.7',
'@storybook/instrumenter': '8.3.0-alpha.7',
'@storybook/react-dom-shim': '8.3.0-alpha.7',
'@storybook/source-loader': '8.3.0-alpha.7',
'@storybook/test': '8.3.0-alpha.7',
'@storybook/preset-create-react-app': '8.3.0-alpha.7',
'@storybook/preset-html-webpack': '8.3.0-alpha.7',
'@storybook/preset-preact-webpack': '8.3.0-alpha.7',
'@storybook/preset-react-webpack': '8.3.0-alpha.7',
'@storybook/preset-server-webpack': '8.3.0-alpha.7',
'@storybook/preset-svelte-webpack': '8.3.0-alpha.7',
'@storybook/preset-vue3-webpack': '8.3.0-alpha.7',
'@storybook/html': '8.3.0-alpha.7',
'@storybook/preact': '8.3.0-alpha.7',
'@storybook/react': '8.3.0-alpha.7',
'@storybook/server': '8.3.0-alpha.7',
'@storybook/svelte': '8.3.0-alpha.7',
'@storybook/vue3': '8.3.0-alpha.7',
'@storybook/web-components': '8.3.0-alpha.7',
};
``` | /content/code_sandbox/code/core/src/common/versions.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 1,443 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="path_to_url"
xmlns:app="path_to_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="5dp">
<ProgressBar
android:id="@+id/test_progress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="5"
android:maxHeight="5dp"
android:minHeight="5dp"
android:minWidth="0dp"
android:progressDrawable="@drawable/progress_horizontal_holo_blue_dark"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingEnd="35dp"
android:paddingStart="20dp"
android:paddingTop="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="2dp"
android:text="Airodump-ng"
android:textColor="@android:color/white"/>
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:srcCompat="@drawable/failed_drawable"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="2dp"
android:text="Aireplay-ng"
android:textColor="@android:color/white"/>
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:srcCompat="@drawable/done_drawable"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="2dp"
android:text="MDK3"
android:textColor="@android:color/white"/>
<ImageView
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:srcCompat="@drawable/testing_drawable"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="2dp"
android:text="Reaver"
android:textColor="@android:color/white"/>
<ImageView
android:id="@+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:srcCompat="@drawable/testing_drawable"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="2dp"
android:text="Kali chroot"
android:textColor="@android:color/white"/>
<ImageView
android:id="@+id/imageView5"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:srcCompat="@drawable/testing_drawable"/>
</LinearLayout>
<TextView
android:id="@+id/current_cmd"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:clickable="true"
android:lines="4"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:paddingTop="5dp"
android:textColor="@android:color/white"
android:textSize="12sp"
android:typeface="monospace"
android:focusable="true" />
</LinearLayout>
</LinearLayout>
``` | /content/code_sandbox/app/src/main/res/layout/test.xml | xml | 2016-11-25T01:39:07 | 2024-08-13T12:17:17 | Hijacker | chrisk44/Hijacker | 2,371 | 1,006 |
```xml
import React from 'react';
import styled from 'styled-components';
import {UserPrefRepo} from '../../Repository/UserPrefRepo';
import {Text} from './Text';
type MessageCatalog = {
prefSetup: {
side: {
selectGitHubHost: string;
accessToken: string;
confirm: string;
};
host: {
github: string;
ghe: string;
gheDesc: string;
https: string;
importData: {
button: string;
buttonDesc: string;
help: string;
step1: string;
step2: string;
step3: string;
step4: string;
};
};
accessToken: {
useOauth: string;
usePat: string;
oauth: {
enterCode: string;
copyCode: string;
successCopy: string;
},
pat: {
enterPat: string;
patDesc: string;
scopeDesc: string;
}
}
confirm: {
success: string;
host: string;
accessToken: string;
pathPrefix: string;
webHost: string;
browser: string;
builtin: string;
external: string;
https: string;
error: {
fail: string;
network: string;
scope: string;
openGitHub: string;
openSetting: string;
}
}
};
prefEditor: {
title: string;
tabs: {
notification: string;
browse: string;
stream: string;
storage: string;
export: string;
};
github: {
host: string;
accessToken: string;
pathPrefix: string;
interval: string;
webHost: string;
https: string;
},
notification: {
enable: string;
silent: string;
badge: string;
sync: string;
};
browse: {
browser: {
browser: string;
builtin: string;
external: string;
};
theme: {
theme: string;
system: string;
light: string;
dark: string;
};
lang: {
title: string;
system: string;
en: string;
ja: string;
restart: string;
};
externalUrl: string;
onlyUnread: string;
};
streams: {
enable: string;
notification: string;
library: string;
system: string;
stream: string;
};
storage: {
current: string;
max: string;
};
export: {
export: string;
exportDesc: string;
import: string;
importDesc: string;
};
};
prefCover: {
edit: string;
delete: string;
addNew: string;
};
prefNetworkError: {
fail: string;
check: string;
open: string;
};
prefScopeError: {
desc: string;
};
prefUnauthorized: {
invalid: string;
setting: string;
};
streamSetup: {
card: {
title: string;
desc: string;
};
side: {
loading: string;
repo: string;
team: string;
project: string;
create: string;
};
loading: {
desc: string;
label: string;
finish: string;
};
repo: {
desc: string;
filter: string;
recentlyOrg: string;
recentlyRepo: string;
watchingRepo: string;
empty: string;
};
team: {
desc: string;
filter: string;
empty: string;
};
project: {
desc: string;
filter: string;
empty: string;
};
create: {
desc: string;
repo: string;
org: string;
team: string;
project: string;
};
finish: {
desc: string;
};
button: {
next: string;
back: string;
create: string;
close: string;
};
};
streamRow: {
allRead: string;
edit: string;
subscribe: string;
delete: string;
addFilter: string;
createStream: string;
createProjectStream: string;
},
issueRow: {
unsubscribe: string;
copyUrl: string;
copyJson: string;
openBrowser: string;
currentAllRead: string;
allRead: string;
createFilter: string;
};
issueList: {
updated: string;
projectOpen: string;
initialLoading: string;
};
issueHeader: {
filter: {
unread: string;
open: string;
bookmark: string;
};
edit: {
show: string;
close: string;
};
sort: {
updated: string;
read: string;
created: string;
closed: string;
merged:string;
due: string;
};
};
userStreamEditor: {
name: string;
query: string;
preview: string;
help: string;
addQuery: string;
showDetail: string;
color: string;
icon: string;
allIcons: string;
notification: string;
cancel: string;
warning: string;
};
filterStreamEditor: {
stream: string;
name: string;
filter: string;
help: string;
addFilter: string;
showDetail: string;
color: string;
icon: string;
allIcons: string;
notification: string;
cancel: string;
};
projectStreamEditor: {
suggestion: string;
manual: string;
name: string;
url: string;
preview: string;
help: string;
color: string;
icon: string;
allIcons: string;
notification: string;
showDetail: string;
cancel: string;
},
libraryStreamEditor: {
name: string;
enable: string;
notification: string;
filter: string;
cancel: string;
};
systemStreamEditor: {
name: string;
enable: string;
notification: string;
query: string;
desc: string;
cancel: string;
};
subscribeEditor: {
desc: string;
cancel: string;
};
userStream: {
title: string;
addStream: string;
addFilter: string;
addProject: string;
confirm: {
allRead: string;
delete: string;
};
};
systemStream: {
title: string;
confirm: {
allRead: string;
};
};
libraryStream: {
title: string;
confirm: {
allRead: string;
};
};
browserFrame: {
jump: string;
notification: string;
layout: string;
unread: string;
moveStream: string;
moveIssue: string;
movePage: string;
space: string;
shift: string;
handbook: string;
handbookDesc: string;
};
jumpNavigation: {
desc: string;
history: string;
stream: string;
repository: string;
issue: string;
};
exportData: {
title: string;
step1: string;
step2: string;
step3: string;
help: string;
};
versionUpdate: {
desc: string;
};
};
const enMessageCatalog: MessageCatalog = {
prefSetup: {
side: {
selectGitHubHost: 'Select GitHub Host',
accessToken: 'Access Token',
confirm: 'Confirm',
},
host: {
github: 'Use standard GitHub (github.com).',
ghe: 'Use GitHub Enterprise.',
gheDesc: 'Please enter your GitHub Enterprise host. (e.g. ghe.example.com)',
https: 'Use HTTPS',
importData: {
button: 'Import Data',
buttonDesc: 'Import existing Jasper data.',
help: 'Help',
step1: ' Export existing all data from {menu} of current Jasper',
step2: ' Open data directory',
step3: ' Copy existing all data to the data directory',
step4: ' Restart Jasper',
},
},
accessToken: {
useOauth: 'Use OAuth (recommended)',
usePat: 'Use Personal Access Token',
oauth: {
enterCode: 'Access {url} and enter the code.',
copyCode: 'Copy code',
successCopy: 'success copy.',
},
pat: {
enterPat: 'Please enter your {url} of GitHub.',
patDesc: 'GitHub Settings Developer settings Personal access tokens Generate new token',
scopeDesc: 'Jasper requires {repo}, {user}, {notifications}, {readOrg} and {readProject} scopes.'
}
},
confirm: {
success: 'Hello {user}',
host: 'API Host',
accessToken: 'Access Token',
pathPrefix: 'Path Prefix',
webHost: 'Web Host',
browser: 'Browser',
builtin: 'Built-In Browser',
external: 'External Browser',
https: 'Use HTTPS',
error: {
fail: 'connection fail',
network: 'Fail requesting to GitHub/GHE. Please check settings, network, VPN, ssh-proxy and more.',
scope: 'Jasper requires {repo}, {user}, {notifications}, {readOrg} and {readProject} scopes. Please enable those scopes at GitHub/GHE site.',
openGitHub: 'Open GitHub/GHE to check access',
openSetting: 'Open Settings',
}
}
},
prefEditor: {
title: 'Preferences',
tabs: {
notification: 'Notification',
browse: 'Browse',
stream: 'Streams',
storage: 'Storage',
export: 'Export',
},
github: {
host: 'API Host',
accessToken: 'Access Token',
pathPrefix: 'Path Prefix',
interval: 'API Interval(sec)',
webHost: 'Web Host',
https: 'Use HTTPS',
},
notification: {
enable: 'Enable notification',
silent: 'Silent notification',
badge: 'Display unread count badge in dock (Mac only)',
sync: 'Sync issues read/unread from GitHub Notification',
},
browse: {
browser: {
browser: 'Browser',
builtin: 'Built-in Browser',
external: 'External Browser',
},
theme: {
theme: 'Theme',
system: 'System Default',
light: 'Light Mode',
dark: 'Dark Mode',
},
lang: {
title: 'Language',
system: 'System',
en: 'English',
ja: '',
restart: 'Restart Jasper if you change the language',
},
externalUrl: 'Always open external URL in external browser',
onlyUnread: 'Show only unread issues',
},
streams: {
enable: 'Enabled',
notification: 'Notification',
library: 'LIBRARY',
system: 'SYSTEM',
stream: 'STREAMS',
},
storage: {
current: 'Current Records',
max: 'Maximum Records',
},
export: {
export: 'Export',
exportDesc: 'Export streams settings.',
import: 'Import',
importDesc: 'Import streams settings.',
},
},
prefCover: {
edit: 'Edit',
delete: 'Delete',
addNew: 'Add New',
},
prefNetworkError: {
fail: 'Fail connection to GitHub/GHE.',
check: 'Please check network, VPN, proxy and more.',
open: 'Open GitHub/GHE',
},
prefScopeError: {
desc: 'The currently used access token does not have the required scopes set in Jasper v{version}. Please set a new access token.{br}{br}If you are using a Personal Access Token, you can also add a scope to the currently used access token from the {url} page.',
},
prefUnauthorized: {
invalid: 'The access token is not valid.',
setting: 'Please set a valid access token.',
},
streamSetup: {
card: {
title: 'Creating Streams',
desc: 'Let\'s also create streams to browse repositories, teams, and GitHub projects.',
},
side: {
loading: 'Loading Data',
repo: 'Repository Selection',
team: 'Team Selection',
project: 'Project Selection',
create: 'Stream Creation',
},
loading: {
desc: 'Jasper allows you to view issues and pull requests in the following order.{br}{br}- Repository and/or Organization{br}- Mention and/or Review Request to Team{br}- GitHub Project{br}- Labels, authors, and/or various other criteria{br}{br}This section will create a stream for viewing them. When you have finished loading the necessary data, please proceed.{br}',
label: 'loading data',
finish: 'Loading complete',
},
repo: {
desc: 'Please select the repository and/or organization you wish to view in Jasper. You can change this information later.',
filter: 'filter by name',
recentlyOrg: 'Recently active Organizations',
recentlyRepo: 'Recently active repositories',
watchingRepo: 'Watched repositories (partial)',
empty: 'No related repository and Organization found',
},
team: {
desc: 'Please select the teams you wish to view in Jasper. You can change this information later.',
filter: 'filter by name',
empty: 'No team affiliation found',
},
project: {
desc: 'Please select the GitHub projects you wish to view in Jasper. You can change this information later.',
filter: 'filter by name',
empty: 'No recently active GitHub projects found',
},
create: {
desc: 'Creates a stream based on the selected content. The contents of the stream can be changed later.',
repo: 'Streams associated with the repositories',
org: 'Streams related to the organizations',
team: 'Streams associated with the teams',
project: 'Streams associated with the projects',
},
finish: {
desc: 'Thanks for the setup{br}{br}We are currently loading issues. It will take a few minutes for the initial load to complete. During that time, please use it without closing Jasper.{br}{br}For details on how to use Jasper such as Streams and keyboard shortcuts, see {handbook}.'
},
button: {
next: 'Next',
back: 'Back',
create: 'Create streams',
close: 'Close',
},
},
streamRow: {
allRead: 'Mark All as Read',
edit: 'Edit',
subscribe: 'Subscribe',
delete: 'Delete',
addFilter: 'Add Filter Stream',
createStream: 'Create Stream',
createProjectStream: 'Create Project Stream',
},
issueRow: {
unsubscribe: 'Unsubscribe',
copyUrl: 'Copy as URL',
copyJson: 'Copy as JSON',
openBrowser: 'Open with Browser',
currentAllRead: 'Mark All Current as Read',
allRead: 'Mark All as Read',
createFilter: 'Create Filter Stream',
},
issueList: {
updated: '{count} issues were updated',
projectOpen: 'Browse "{icon}{name}" board',
initialLoading: 'Currently initial loading...',
},
issueHeader: {
filter: {
unread: 'Filter by unread',
open: 'Filter by open',
bookmark: 'Filter by bookmark',
},
edit: {
show: 'Show Filter Edit',
close: 'Close Filter Edit',
},
sort: {
updated: 'Sort by updated at',
read: 'Sort by read at',
created: 'Sort by created at',
closed: 'Sort by closed at',
merged: 'Sort by merged at',
due: 'Sort by due on',
},
},
userStreamEditor: {
name: 'Name',
query: 'Queries',
preview: 'preview',
help: 'help',
addQuery: 'Add Query(OR)',
showDetail: 'Show Details',
color: 'Color',
icon: 'Icon',
allIcons: 'All Icons',
notification: 'Notification',
cancel: 'Cancel',
warning: 'Warning: {isOpen} may not be the behavior you expect. Please see {link} for details.',
},
filterStreamEditor: {
stream: 'Stream: {name}',
name: 'Name',
filter: 'Filter',
addFilter: 'Add Filter(OR)',
help: 'help',
showDetail: 'Show Details',
color: 'Color',
icon: 'Icon',
allIcons: 'All Icons',
notification: 'Notification',
cancel: 'Cancel',
},
projectStreamEditor: {
suggestion: 'Project Suggestions',
manual: 'Enter manually',
name: 'Name',
url: 'Project URL',
preview: 'preview',
help: 'help',
color: 'Color',
icon: 'Icon',
allIcons: 'All Icons',
notification: 'Notification',
cancel: 'Cancel',
showDetail: 'Show Details',
},
libraryStreamEditor: {
name: 'Name',
enable: 'Enabled',
notification: 'Notification',
filter: 'Filter',
cancel: 'Cancel',
},
systemStreamEditor: {
name: 'Name',
enable: 'Enabled',
notification: 'Notification',
query: 'Queries',
cancel: 'Cancel',
desc: 'If you do not use this stream, we recommend disabling it. This will speed up the update interval for other streams',
},
subscribeEditor: {
desc: 'Please enter issue URL you want subscribe to.',
cancel: 'Cancel',
},
userStream: {
title: 'STREAMS',
addStream: 'Add Stream',
addFilter: 'Add Filter Stream',
addProject: 'Add Project Stream',
confirm: {
allRead: 'Would you like to mark "{name}" all as read?',
delete: 'Do you delete "{name}"?',
},
},
systemStream: {
title: 'SYSTEM',
confirm: {
allRead: 'Would you like to mark "{name}" all as read?',
},
},
libraryStream: {
title: 'LIBRARY',
confirm: {
allRead: 'Would you like to mark "{name}" all as read?',
},
},
browserFrame: {
jump: 'Jump Navigation',
notification: 'Notification On/Off',
layout: 'Change Pane Layout',
unread: 'Only Unread Issue on List',
moveStream: 'Next or Previous Stream on List',
moveIssue: 'Next or Previous Issue on List',
movePage: 'Page Down or Up on Browser',
space: 'Space',
shift: 'Shift',
handbook: 'Jasper Handbook',
handbookDesc: ' describes all keyboard shortcuts, streams, filter and more.',
},
jumpNavigation: {
desc: 'Jump to streams and issues.',
history: 'HISTORIES',
stream: 'STREAMS ({count})',
repository: 'REPOSITORIES ({count})',
issue: 'ISSUES ({count})',
},
exportData: {
title: 'Export Jasper data',
step1: 'Open data directory',
step2: 'Copy all {config} and {db} from the directory to user desktop',
step3: 'Import these data when setting up Jasper on a new machine',
help: 'Help',
},
versionUpdate: {
desc: 'New Version Available!',
},
};
const jaMessageCatalog: MessageCatalog = {
prefSetup: {
side: {
selectGitHubHost: 'GitHub',
accessToken: '',
confirm: '',
},
host: {
github: 'GitHub (github.com)',
ghe: 'GitHub Enterprise',
gheDesc: 'GitHub ghe.example.com',
https: 'HTTPS',
importData: {
button: '',
buttonDesc: 'Jasper',
help: '',
step1: ' Jasper{menu}',
step2: ' ',
step3: ' ',
step4: ' Jasper',
},
},
accessToken: {
useOauth: 'OAuth',
usePat: 'Personal Access Token',
oauth: {
enterCode: '{url} ',
copyCode: '',
successCopy: '',
},
pat: {
enterPat: 'GitHub{url}',
patDesc: 'GitHub Settings Developer settings Personal access tokens Generate new token',
scopeDesc: 'Jasper{repo}{user}{notifications}{readOrg}{readProject}'
},
},
confirm: {
success: '{user}',
host: 'API',
accessToken: '',
pathPrefix: ' ',
webHost: 'Web',
browser: '',
builtin: '',
external: '',
https: 'HTTPS',
error: {
fail: '',
network: 'GitHub/GHEVPNSSH',
scope: 'Jasper{repo}{user}{notifications}{readOrg}{readProject}GitHub/GHE',
openGitHub: 'GitHub/GHE',
openSetting: '',
},
},
},
prefEditor: {
title: '',
tabs: {
notification: '',
browse: '',
stream: '',
storage: '',
export: '',
},
github: {
host: 'API',
accessToken: '',
pathPrefix: ' ',
interval: 'API',
webHost: 'Web',
https: 'HTTPS',
},
notification: {
enable: '',
silent: '',
badge: 'Mac',
sync: 'Issues/GitHub Notification',
},
browse: {
browser: {
browser: '',
builtin: '',
external: '',
},
theme: {
theme: '',
system: '',
light: '',
dark: '',
},
lang: {
title: '',
system: '',
en: 'English',
ja: '',
restart: '',
},
externalUrl: 'URL',
onlyUnread: 'Issues',
},
streams: {
enable: 'Enabled',
notification: 'Notification',
library: '',
system: '',
stream: '',
},
storage: {
current: '',
max: '',
},
export: {
export: '',
exportDesc: '',
import: '',
importDesc: '',
},
},
prefCover: {
edit: '',
delete: '',
addNew: '',
},
prefNetworkError: {
fail: 'GitHub/GHE',
check: 'VPN',
open: 'GitHub/GHE',
},
prefScopeError: {
desc: 'Jasper v{version}{br}{br}Personal Access Token{url}',
},
prefUnauthorized: {
invalid: '',
setting: '',
},
streamSetup: {
card: {
title: '',
desc: 'GitHub',
},
side: {
loading: '',
repo: '',
team: '',
project: '',
create: '',
},
loading: {
desc: 'JasperIssue{br}{br}Organization{br}{br}GitHub{br}{br}{br}{br}',
label: '',
finish: ''
},
repo: {
desc: 'JasperOrganization',
filter: '',
recentlyOrg: 'Organization',
recentlyRepo: '',
watchingRepo: '',
empty: 'Organization',
},
team: {
desc: 'Jasper',
filter: '',
empty: '',
},
project: {
desc: 'JasperGitHub',
filter: '',
empty: 'GitHub',
},
create: {
desc: '',
repo: '',
org: 'Organization',
team: '',
project: '',
},
finish: {
desc: '{br}{br}IssueJasper{br}{br}Jasper{handbook}'
},
button: {
next: '',
back: '',
create: '',
close: '',
},
},
streamRow: {
allRead: '',
edit: '',
subscribe: '',
delete: '',
addFilter: '',
createStream: '',
createProjectStream: '',
},
issueRow: {
unsubscribe: '',
copyUrl: 'URL',
copyJson: 'JSON',
openBrowser: '',
currentAllRead: 'Issues',
allRead: '',
createFilter: '',
},
issueList: {
updated: '{count}issues',
projectOpen: '{icon}{name}',
initialLoading: '...',
},
issueHeader: {
filter: {
unread: '',
open: '',
bookmark: '',
},
edit: {
show: '',
close: '',
},
sort: {
updated: '',
read: '',
created: '',
closed: '',
merged: '',
due: '',
},
},
userStreamEditor: {
name: '',
query: '',
preview: '',
help: '',
addQuery: '(OR)',
showDetail: '',
color: '',
icon: '',
allIcons: '',
notification: '',
cancel: '',
warning: ': {isOpen}{link}',
},
filterStreamEditor: {
stream: ': {name}',
name: '',
filter: '',
addFilter: '(OR)',
help: '',
showDetail: '',
color: '',
icon: '',
allIcons: '',
notification: '',
cancel: '',
},
projectStreamEditor: {
suggestion: '',
manual: '',
name: '',
url: 'URL',
preview: '',
help: '',
color: '',
icon: '',
allIcons: '',
notification: '',
cancel: '',
showDetail: '',
},
libraryStreamEditor: {
name: '',
enable: '',
notification: '',
filter: '',
cancel: '',
},
systemStreamEditor: {
name: '',
enable: '',
notification: '',
query: '',
cancel: '',
desc: '',
},
subscribeEditor: {
desc: 'IssueURL',
cancel: '',
},
userStream: {
title: '',
addStream: '',
addFilter: '',
addProject: '',
confirm: {
allRead: '"{name}"',
delete: '"{name}"',
},
},
systemStream: {
title: '',
confirm: {
allRead: '"{name}"',
},
},
libraryStream: {
title: '',
confirm: {
allRead: '"{name}"',
},
},
browserFrame: {
jump: '',
notification: '',
layout: '',
unread: 'Issues',
moveStream: '',
moveIssue: 'Issues',
movePage: '',
space: '',
shift: '',
handbook: 'Jasper',
handbookDesc: '',
},
jumpNavigation: {
desc: 'Issues',
history: '',
stream: ' ({count})',
repository: ' ({count})',
issue: 'Issues ({count})',
},
exportData: {
title: 'Jasper',
step1: '',
step2: '{config}{db}',
step3: 'Jasper',
help: '',
},
versionUpdate: {
desc: '',
},
};
type Props = {
onMessage: (mc: MessageCatalog) => string;
lang?: 'ja' | 'en';
values?: {[key: string]: string | number | React.ReactNode};
style?: React.CSSProperties;
className?: string;
};
export const Translate: React.FC<Props> = (props) => {
const message = props.onMessage(mc());
return <StyledText style={props.style} className={props.className}>{rep(message, props.values ?? {})}</StyledText>
}
// message catalog
export function mc(): MessageCatalog {
let lang = UserPrefRepo.getPref()?.general.lang;
if (lang == null || lang === 'system') {
lang = navigator.language === 'ja' ? 'ja' : 'en';
}
return lang === 'ja' ? jaMessageCatalog : enMessageCatalog;
}
// messagevalues
export function rep(message: string, values: Props['values']): (string | JSX.Element)[] {
const msgTokens = message.split(/({.+?})/); // `foo {url1} bar {url2}` => [foo, {url1}, bar, {url2}]
return msgTokens.map((msgToken, index) => {
if (msgToken.startsWith('{')) {
const key = msgToken.replace(/[{}]/g, '');
if (key === 'br') return <br key={index}/>;
const value = values[key];
if (value == null) return msgToken;
if (typeof value === 'string' || typeof value === 'number') {
return value.toString();
} else {
return <span key={index}>{value}</span>;
}
} else {
return msgToken;
}
});
}
const StyledText = styled(Text)`
color: inherit;
font-size: inherit;
`;
``` | /content/code_sandbox/src/Renderer/Library/View/Translate.tsx | xml | 2016-05-10T12:55:31 | 2024-08-11T04:32:50 | jasper | jasperapp/jasper | 1,318 | 6,309 |
```xml
'use strict';
import { Container } from 'inversify';
import { Disposable, Memento, window } from 'vscode';
import { instance, mock } from 'ts-mockito';
import { registerTypes as platformRegisterTypes } from './common/platform/serviceRegistry';
import { registerTypes as processRegisterTypes } from './common/process/serviceRegistry';
import { registerTypes as commonRegisterTypes } from './common/serviceRegistry';
import { registerTypes as interpretersRegisterTypes } from './interpreter/serviceRegistry';
import {
GLOBAL_MEMENTO,
IDisposableRegistry,
IExtensionContext,
IMemento,
ILogOutputChannel,
ITestOutputChannel,
WORKSPACE_MEMENTO,
} from './common/types';
import { registerTypes as variableRegisterTypes } from './common/variables/serviceRegistry';
import { OutputChannelNames } from './common/utils/localize';
import { ExtensionState } from './components';
import { ServiceContainer } from './ioc/container';
import { ServiceManager } from './ioc/serviceManager';
import { IServiceContainer, IServiceManager } from './ioc/types';
import * as pythonEnvironments from './pythonEnvironments';
import { IDiscoveryAPI } from './pythonEnvironments/base/locator';
import { registerLogger } from './logging';
import { OutputChannelLogger } from './logging/outputChannelLogger';
import { WorkspaceService } from './common/application/workspace';
// The code in this module should do nothing more complex than register
// objects to DI and simple init (e.g. no side effects). That implies
// that constructors are likewise simple and do no work. It also means
// that it is inherently synchronous.
export function initializeGlobals(
// This is stored in ExtensionState.
context: IExtensionContext,
): ExtensionState {
const disposables: IDisposableRegistry = context.subscriptions;
const cont = new Container({ skipBaseClassChecks: true });
const serviceManager = new ServiceManager(cont);
const serviceContainer = new ServiceContainer(cont);
serviceManager.addSingletonInstance<IServiceContainer>(IServiceContainer, serviceContainer);
serviceManager.addSingletonInstance<IServiceManager>(IServiceManager, serviceManager);
serviceManager.addSingletonInstance<Disposable[]>(IDisposableRegistry, disposables);
serviceManager.addSingletonInstance<Memento>(IMemento, context.globalState, GLOBAL_MEMENTO);
serviceManager.addSingletonInstance<Memento>(IMemento, context.workspaceState, WORKSPACE_MEMENTO);
serviceManager.addSingletonInstance<IExtensionContext>(IExtensionContext, context);
const standardOutputChannel = window.createOutputChannel(OutputChannelNames.python, { log: true });
disposables.push(standardOutputChannel);
disposables.push(registerLogger(new OutputChannelLogger(standardOutputChannel)));
const workspaceService = new WorkspaceService();
const unitTestOutChannel =
workspaceService.isVirtualWorkspace || !workspaceService.isTrusted
? // Do not create any test related output UI when using virtual workspaces.
instance(mock<ITestOutputChannel>())
: window.createOutputChannel(OutputChannelNames.pythonTest);
disposables.push(unitTestOutChannel);
serviceManager.addSingletonInstance<ILogOutputChannel>(ILogOutputChannel, standardOutputChannel);
serviceManager.addSingletonInstance<ITestOutputChannel>(ITestOutputChannel, unitTestOutChannel);
return {
context,
disposables,
legacyIOC: { serviceManager, serviceContainer },
};
}
/**
* Registers standard utils like experiment and platform code which are fundamental to the extension.
*/
export function initializeStandard(ext: ExtensionState): void {
const { serviceManager } = ext.legacyIOC;
// Core registrations (non-feature specific).
commonRegisterTypes(serviceManager);
variableRegisterTypes(serviceManager);
platformRegisterTypes(serviceManager);
processRegisterTypes(serviceManager);
interpretersRegisterTypes(serviceManager);
// We will be pulling other code over from activateLegacy().
}
/**
* The set of public APIs from initialized components.
*/
export type Components = {
pythonEnvs: IDiscoveryAPI;
};
/**
* Initialize all components in the extension.
*/
export async function initializeComponents(ext: ExtensionState): Promise<Components> {
const pythonEnvs = await pythonEnvironments.initialize(ext);
// Other component initializers go here.
// We will be factoring them out of activateLegacy().
return {
pythonEnvs,
};
}
``` | /content/code_sandbox/src/client/extensionInit.ts | xml | 2016-01-19T10:50:01 | 2024-08-12T21:05:24 | pythonVSCode | DonJayamanne/pythonVSCode | 2,078 | 904 |
```xml
<?xml version='1.0' encoding='utf-8'?>
<!--
All rights reserved. This program and the accompanying materials
which accompanies this distribution, and is available at
path_to_url
Contributors:
Intel Corporation - initial implementation and documentation
-->
<toc href='html/content.html#SGX_title' label='Intel(R) SGX Plugin Developer Guide'>
<topic label='Legal Information' href='html/content.html#Legal_Information' />
<topic label='Introduction' href='html/content.html#Introduction'>
<topic label='Introducing Intel(R) SGX' href='html/content.html#Introducing_Intel_Software_Guard _Extensions_Eclipse_Plugin' />
<topic label='Introducing Intel(R) SGX Plug-in' href='html/content.html#Introducing_Intel_Software_Guard_Extensions' />
</topic>
<topic label='Getting Started with Intel(R) SGX Plug-in' href='html/content.html#Getting_Started'>
<topic label='Pre-requisites' href='html/content.html#Prerequisites' />
<topic label='Installing Intel(R) SGX Plug-in' href='html/content.html#Installing_Intel_Software_Guard_Extensions_Eclipse_Plugin' />
<topic label='Configuring Intel(R) SGX Plug-in' href='html/content.html#Configuring_Intel_Software_Guard_Extensions_Eclipse_Plug-in' />
</topic>
<topic label='Command Reference' href='html/content.html#Command_Reference'>
<topic label='Adding Intel(R) SGX Nature to a Project' href='html/content.html#Adding_SGX_Nature_to_a_Project'>
<topic label='Adding Intel(R) SGX Nature to a non-SGX project' href='html/content.html#Adding_SGX_Nature_to_a_non_SGX_project' />
<topic label='Creating a New C/C++ Project with Intel(R) SGX Nature' href='html/content.html#Creating_a_New_C_C_Project_with_SGX_Nature' />
</topic>
<topic label='Adding an Intel(R) SGX Enclave' href='html/content.html#Adding_an_SGX_Enclave' />
<topic label='Adding an Intel(R) SGX Trusted Library' href='html/content.html#Adding_an_SGX_Trusted_Library' />
<topic label='Adding an Intel(R) SGX Untrusted Module' href='html/content.html#Adding_an_SGX_Untrusted_Module' />
<topic label='Updating Intel(R) SGX Enclave Signing Key' href='html/content.html#Updating_SGX_Enclave_Signing_Key' />
<topic label='Updating Enclave Configuration Files' href='html/content.html#Updating_Enclave_Configuration_Files' />
<topic label='Two Steps Sign Enclave' href='html/content.html#Two_Steps_Sign_Enclave'>
<topic label='Generate Hash' href='html/content.html#Generate_Hash' />
<topic label='Generate Signed Enclaves' href='html/content.html#Generate_Signed_Enclaves' />
</topic>
</topic>
<topic label='Building and Running Intel(R) SGX Code' href='html/content.html#Building_and_Running_SGX_Code'>
<topic label='Intel(R) SGX Build Configurations' href='html/content.html#SGX_Build_Configurations' />
<topic label='Running Samples Generated for Enclaves' href='html/content.html#Running_Samples_Generated_for_Enclaves' />
</topic>
</toc>
``` | /content/code_sandbox/Linux_SGXEclipsePlugin/build_directory/plugins/com.intel.sgx.userguide/toc.xml | xml | 2016-02-23T23:41:25 | 2024-08-15T10:13:48 | linux-sgx | intel/linux-sgx | 1,313 | 761 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:id="@+id/icon_list"
android:name="com.amazon.styledictionaryexample.IconListFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutManager="LinearLayoutManager"
tools:context="com.amazon.styledictionaryexample.icon.IconListActivity"
tools:listitem="@layout/icon_list_content" />
``` | /content/code_sandbox/examples/complete/android/demo/src/main/res/layout/activity_icon_list.xml | xml | 2016-11-29T20:53:51 | 2024-08-16T14:22:09 | style-dictionary | amzn/style-dictionary | 3,815 | 124 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns="path_to_url"
xmlns:activiti="path_to_url"
targetNamespace="Examples">
<process id="startProcessFromDelegate" isExecutable="true">
<startEvent id="theStart"/>
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="service"/>
<serviceTask id="service"
activiti:class="org.activiti.engine.test.bpmn.servicetask.StartProcessInstanceTestDelegate"/>
<sequenceFlow id="flow2" sourceRef="service" targetRef="failingScriptTask"/>
<scriptTask id="failingScriptTask" name="Execute script" scriptFormat="groovy">
<script>
// Throw an exception in script task
throw new RuntimeException("This is an exception thrown from scriptTask")
</script>
</scriptTask>
<sequenceFlow id="flow3" sourceRef="failingScriptTask" targetRef="theEnd"/>
<endEvent id="theEnd"/>
</process>
<process id="oneTaskProcess" isExecutable="true">
<startEvent id="oneTaskProcessStart"/>
<sequenceFlow id="oneTaskProcessFlow1" sourceRef="oneTaskProcessStart" targetRef="oneTaskProcessUserTask"/>
<userTask id="oneTaskProcessUserTask"/>
<sequenceFlow id="oneTaskProcessFlow2" sourceRef="oneTaskProcessUserTask" targetRef="oneTaskProcessEnd"/>
<endEvent id="oneTaskProcessEnd"/>
</process>
</definitions>
``` | /content/code_sandbox/modules/flowable5-spring-test/src/test/resources/org/activiti/spring/test/servicetask/UseFlowableServiceInServiceTaskTest.testRollBackOnException.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 344 |
```xml
<Project Sdk="Microsoft.NET.Sdk.Web">
<Import Project="..\..\common.props" />
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish>
<PreserveCompilationReferences>true</PreserveCompilationReferences>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Blazorise.Bootstrap5" Version="1.5.2" />
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.5.2" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.4" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\MyCompanyName.MyProjectName.Application\MyCompanyName.MyProjectName.Application.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.EntityFrameworkCore.SqlServer\Volo.Abp.EntityFrameworkCore.SqlServer.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\basic-theme\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Swashbuckle\Volo.Abp.Swashbuckle.csproj" />
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.AspNetCore.Serilog\Volo.Abp.AspNetCore.Serilog.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\basic-theme\src\Volo.Abp.AspNetCore.Components.Server.BasicTheme\Volo.Abp.AspNetCore.Components.Server.BasicTheme.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\audit-logging\src\Volo.Abp.AuditLogging.EntityFrameworkCore\Volo.Abp.AuditLogging.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\account\src\Volo.Abp.Account.Web.OpenIddict\Volo.Abp.Account.Web.OpenIddict.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\account\src\Volo.Abp.Account.Application\Volo.Abp.Account.Application.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\account\src\Volo.Abp.Account.HttpApi\Volo.Abp.Account.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\feature-management\src\Volo.Abp.FeatureManagement.EntityFrameworkCore\Volo.Abp.FeatureManagement.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\feature-management\src\Volo.Abp.FeatureManagement.Application\Volo.Abp.FeatureManagement.Application.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\identity\src\Volo.Abp.Identity.Blazor.Server\Volo.Abp.Identity.Blazor.Server.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\identity\src\Volo.Abp.Identity.EntityFrameworkCore\Volo.Abp.Identity.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\identity\src\Volo.Abp.Identity.Application\Volo.Abp.Identity.Application.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.Blazor.Server\Volo.Abp.TenantManagement.Blazor.Server.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.EntityFrameworkCore\Volo.Abp.TenantManagement.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.Application\Volo.Abp.TenantManagement.Application.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.Blazor.Server\Volo.Abp.SettingManagement.Blazor.Server.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.EntityFrameworkCore\Volo.Abp.SettingManagement.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.Application\Volo.Abp.SettingManagement.Application.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\permission-management\src\Volo.Abp.PermissionManagement.Application\Volo.Abp.PermissionManagement.Application.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\permission-management\src\Volo.Abp.PermissionManagement.EntityFrameworkCore\Volo.Abp.PermissionManagement.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\\identity\src\Volo.Abp.PermissionManagement.Domain.Identity\Volo.Abp.PermissionManagement.Domain.Identity.csproj" />
<ProjectReference Include="..\..\src\MyCompanyName.MyProjectName.Blazor.Server\MyCompanyName.MyProjectName.Blazor.Server.csproj" />
<ProjectReference Include="..\..\src\MyCompanyName.MyProjectName.EntityFrameworkCore\MyCompanyName.MyProjectName.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\src\MyCompanyName.MyProjectName.HttpApi\MyCompanyName.MyProjectName.HttpApi.csproj" />
<ProjectReference Include="..\MyCompanyName.MyProjectName.Host.Shared\MyCompanyName.MyProjectName.Host.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Logs\**" />
<Content Remove="Logs\**" />
<EmbeddedResource Remove="Logs\**" />
<None Remove="Logs\**" />
</ItemGroup>
<ItemGroup>
<None Update="Pages\**\*.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Pages\**\*.css">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
``` | /content/code_sandbox/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Server.Host/MyCompanyName.MyProjectName.Blazor.Server.Host.csproj | xml | 2016-12-03T22:56:24 | 2024-08-16T16:24:05 | abp | abpframework/abp | 12,657 | 1,383 |
```xml
import { c } from 'ttag';
import { ButtonLike, Href } from '@proton/atoms';
import getBoldFormattedText from '@proton/components/helpers/getBoldFormattedText';
import { SECURITY_CHECKUP_PATHS } from '@proton/shared/lib/constants';
import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url';
import { MNEMONIC_STATUS } from '@proton/shared/lib/interfaces';
import SecurityCheckupCohort from '@proton/shared/lib/interfaces/securityCheckup/SecurityCheckupCohort';
import clsx from '@proton/utils/clsx';
import isTruthy from '@proton/utils/isTruthy';
import type { IconName } from '../../components';
import { AppLink, Icon, Loader, SubTitle } from '../../components';
import {
useHasOutdatedRecoveryFile,
useIsDataRecoveryAvailable,
useIsMnemonicAvailable,
useIsSecurityCheckupAvailable,
useIsSentinelUser,
useRecoverySecrets,
useRecoveryStatus,
useSecurityCheckup,
useUser,
useUserSettings,
} from '../../hooks';
import { useIsRecoveryFileAvailable } from '../../hooks/recoveryFile';
import { SettingsSectionTitle } from '../account';
import type { RecoveryCardStatusProps } from './RecoveryCardStatus';
import RecoveryCardStatus from './RecoveryCardStatus';
import getSentinelRecoveryProps from './getSentinelRecoveryProps';
interface SentinelUserRecoveryCardProps {
ids: {
account: string;
data: string;
};
canDisplayNewSentinelSettings?: boolean;
isSentinelUser: boolean;
}
const SentinelUserRecoveryCard = ({
ids,
canDisplayNewSentinelSettings,
isSentinelUser,
}: SentinelUserRecoveryCardProps) => {
const [user] = useUser();
const [userSettings, loadingUserSettings] = useUserSettings();
const [{ accountRecoveryStatus, dataRecoveryStatus }, loadingRecoveryStatus] = useRecoveryStatus();
const [isRecoveryFileAvailable, loadingIsRecoveryFileAvailable] = useIsRecoveryFileAvailable();
const [isMnemonicAvailable, loadingIsMnemonicAvailable] = useIsMnemonicAvailable();
const [isDataRecoveryAvailable, loadingIsDataRecoveryAvailable] = useIsDataRecoveryAvailable();
const hasOutdatedRecoveryFile = useHasOutdatedRecoveryFile();
const recoverySecrets = useRecoverySecrets();
if (
loadingRecoveryStatus ||
loadingIsDataRecoveryAvailable ||
loadingIsRecoveryFileAvailable ||
loadingIsMnemonicAvailable ||
loadingUserSettings
) {
return <Loader />;
}
const hasMnemonic = isMnemonicAvailable && user.MnemonicStatus === MNEMONIC_STATUS.SET;
const boldImperative = (
<b key="imperative-bold-text">{
// translator: Full sentence is 'If you lose your login details and need to reset your account, its imperative that you have both an account recovery and data recovery method in place, otherwise you might not be able to access any of your emails, contacts, or files.'
c('Info').t`its imperative`
}</b>
);
const boldAccountAndRecovery = (
<b key="account-and-recovery-bold-text">{
// translator: Full sentence is 'If you lose your login details and need to reset your account, its imperative that you have both an account recovery and data recovery method in place, otherwise you might not be able to access any of your emails, contacts, or files.'
c('Info').t`account recovery and data recovery method`
}</b>
);
const boldAccountRecovery = (
<b key="account-recovery-bold-text">{
// translator: Full sentence is 'If you lose your login details and need to reset your account, its imperative that you have an account recovery method in place.'
c('Info').t`account recovery method`
}</b>
);
const sentinelAccountProps: RecoveryCardStatusProps = (() => {
if (user.MnemonicStatus === MNEMONIC_STATUS.OUTDATED) {
return {
type: 'danger',
statusText: c('Info').t`Outdated recovery phrase; update to ensure access to your data`,
callToActions: [
{
text: c('Info').t`Update recovery phrase`,
path: `/recovery#${ids.data}`,
},
],
};
}
return getSentinelRecoveryProps(userSettings.Email, userSettings.Phone, hasMnemonic, ids);
})();
const accountStatusProps: RecoveryCardStatusProps | undefined = (() => {
if (accountRecoveryStatus === 'complete') {
return {
type: 'success',
statusText: c('Info').t`Your account recovery method is set`,
callToActions: [],
};
}
const emailCTA = {
text:
!!userSettings.Email.Value && !userSettings.Email.Reset
? c('Info').t`Allow recovery by email`
: c('Info').t`Add a recovery email address`,
path: `/recovery#${ids.account}`,
};
const phoneCTA = {
text:
!!userSettings.Phone.Value && !userSettings.Phone.Reset
? c('Info').t`Allow recovery by phone`
: c('Info').t`Add a recovery phone number`,
path: `/recovery#${ids.account}`,
};
if (user.MnemonicStatus === MNEMONIC_STATUS.SET) {
return {
type: 'info',
statusText: c('Info').t`To ensure continuous access to your account, set an account recovery method`,
callToActions: [emailCTA, phoneCTA],
};
}
return {
type: 'warning',
statusText: c('Info').t`No account recovery method set; you are at risk of losing access to your account`,
callToActions: [emailCTA, phoneCTA],
};
})();
const dataStatusProps: RecoveryCardStatusProps | undefined = (() => {
if (!isRecoveryFileAvailable && !isMnemonicAvailable) {
return;
}
const recoveryFileCTA = isRecoveryFileAvailable && {
text: c('Info').t`Download recovery file`,
path: `/recovery#${ids.data}`,
};
const updateRecoveryFileCTA = isRecoveryFileAvailable && {
text: c('Info').t`Update recovery file`,
path: `/recovery#${ids.data}`,
};
const recoveryPhraseCTA = isMnemonicAvailable && {
text: c('Info').t`Set recovery phrase`,
path: `/recovery#${ids.data}`,
};
const updateRecoveryPhraseCTA = isMnemonicAvailable && {
text: c('Info').t`Update recovery phrase`,
path: `/recovery#${ids.data}`,
};
if (user.MnemonicStatus === MNEMONIC_STATUS.OUTDATED && hasOutdatedRecoveryFile) {
return {
type: 'danger',
statusText: c('Info').t`Outdated recovery methods; update to ensure access to your data`,
callToActions: [updateRecoveryPhraseCTA, updateRecoveryFileCTA].filter(isTruthy),
};
}
if (user.MnemonicStatus === MNEMONIC_STATUS.OUTDATED) {
return {
type: 'danger',
statusText: c('Info').t`Outdated recovery phrase; update to ensure access to your data`,
callToActions: [updateRecoveryPhraseCTA, recoverySecrets.length === 0 && recoveryFileCTA].filter(
isTruthy
),
};
}
if (hasOutdatedRecoveryFile) {
return {
type: 'danger',
statusText: c('Info').t`Outdated recovery file; update to ensure access to your data`,
callToActions: [
user.MnemonicStatus !== MNEMONIC_STATUS.SET && recoveryPhraseCTA,
updateRecoveryFileCTA,
].filter(isTruthy),
};
}
if (dataRecoveryStatus === 'complete') {
return {
type: 'success',
statusText: c('Info').t`Your data recovery method is set`,
callToActions: [],
};
}
return {
type: 'warning',
statusText: c('Info').t`No data recovery method set; you are at risk of losing access to your data`,
callToActions: [recoveryPhraseCTA, recoveryFileCTA].filter(isTruthy),
};
})();
return (
<div className="rounded border p-8 max-w-custom" style={{ '--max-w-custom': '46em' }}>
<SettingsSectionTitle className="h3">
{c('Title').t`Take precautions to avoid data loss!`}
</SettingsSectionTitle>
<p>
{isDataRecoveryAvailable
? // translator: Full sentence is 'If you lose your login details and need to reset your account, its imperative that you have both an account recovery and data recovery method in place, otherwise you might not be able to access any of your emails, contacts, or files.'
c('Info')
.jt`If you lose your password and need to reset your account, ${boldImperative} that you have both an ${boldAccountAndRecovery} in place, otherwise you might not be able to access any of your emails, contacts, or files.`
: // translator: Full sentence is 'If you lose your login details and need to reset your account, its imperative that you have an account recovery method in place.'
c('Info')
.jt`If you lose your password and need to reset your account, ${boldImperative} that you have an ${boldAccountRecovery} in place.`}
<br />
<Href href={getKnowledgeBaseUrl('/set-account-recovery-methods')}>
{c('Link').t`Why set recovery methods?`}
</Href>
</p>
<h3 className="text-bold text-rg mb-4">{c('Title').t`Your recovery status`}</h3>
<ul className="unstyled m-0">
{canDisplayNewSentinelSettings && isSentinelUser ? (
<li>
<RecoveryCardStatus {...sentinelAccountProps} />
</li>
) : (
<>
{accountStatusProps && (
<li>
<RecoveryCardStatus {...accountStatusProps} />
</li>
)}
{dataStatusProps && (
<li className="mt-2">
<RecoveryCardStatus {...dataStatusProps} />
</li>
)}
</>
)}
</ul>
</div>
);
};
const GenericSecurityCheckupCard = ({
title,
subtitle,
icon,
color,
description,
cta,
}: {
title: string;
subtitle: string;
icon: IconName;
color: 'success' | 'danger' | 'info' | 'warning';
description?: string | ReturnType<typeof getBoldFormattedText>;
cta: string;
}) => {
return (
<div className="rounded border max-w-custom p-8 flex flex-column gap-8" style={{ '--max-w-custom': '46em' }}>
<div className="flex flex-nowrap items-center gap-4">
<div className={clsx('rounded p-2 overflow-hidden', `security-checkup-color--${color}`)}>
<Icon name={icon} size={10} />
</div>
<div>
<SubTitle className="h3 text-bold mb-0">{title}</SubTitle>
<div className="color-weak max-w-custom">{subtitle}</div>
</div>
</div>
<div>{description}</div>
<ButtonLike
className="self-start"
as={AppLink}
to={`${SECURITY_CHECKUP_PATHS.ROOT}?back=${encodeURIComponent(window.location.href)}`}
color="norm"
>
{cta}
</ButtonLike>
</div>
);
};
const SecurityCheckupCard = () => {
const securityCheckup = useSecurityCheckup();
const { actions, furtherActions, cohort } = securityCheckup;
if (cohort === SecurityCheckupCohort.COMPLETE_RECOVERY_MULTIPLE) {
return (
<GenericSecurityCheckupCard
title={c('Safety review').t`Your account and data can be recovered`}
subtitle={c('Safety review').t`Your account is fully secure.`}
icon="pass-shield-ok"
color="success"
description={c('Safety review')
.t`Your account and data can be recovered. Check if you can still access your recovery methods.`}
cta={c('Safety review').t`Check account security`}
/>
);
}
if (cohort === SecurityCheckupCohort.COMPLETE_RECOVERY_SINGLE) {
return (
<GenericSecurityCheckupCard
title={c('Safety review').t`Safeguard your account`}
subtitle={c('Safety review').t`You have recommended actions.`}
icon="pass-shield-warning"
color="info"
description={c('Safety review')
.t`Your account and data can be recovered. You have recommended actions to Safeguard your account further.`}
cta={c('Safety review').t`Safeguard account now`}
/>
);
}
if (cohort === SecurityCheckupCohort.ACCOUNT_RECOVERY_ENABLED) {
return (
<GenericSecurityCheckupCard
title={c('Safety review').t`Safeguard your account`}
subtitle={c('Safety review').t`You are at risk of losing access to your data.`}
icon="pass-shield-warning"
color="warning"
description={getBoldFormattedText(
c('Safety review')
.t`If you lose your login details and need to reset your account, **its imperative** that you have both an **account recovery and data recovery method** in place, otherwise you might not be able to access any of your emails, contacts, files or passwords.`
)}
cta={c('Safety review').t`Safeguard account now`}
/>
);
}
if (cohort === SecurityCheckupCohort.NO_RECOVERY_METHOD) {
return (
<GenericSecurityCheckupCard
title={c('Safety review').t`Safeguard your account`}
subtitle={c('Safety review').t`You are at risk of losing access to your account and data.`}
icon="pass-shield-warning"
color="danger"
description={getBoldFormattedText(
c('Safety review')
.t`If you lose your login details and need to reset your account, **its imperative** that you have both an **account recovery and data recovery method** in place, otherwise you might not be able to access any of your emails, contacts, files or passwords.`
)}
cta={c('Safety review').t`Safeguard account now`}
/>
);
}
if (actions.length || furtherActions.length) {
return (
<GenericSecurityCheckupCard
title={c('Safety review').t`Safeguard your account`}
subtitle={c('Safety review').t`You have recommended actions.`}
icon="pass-shield-warning"
color="info"
cta={c('Safety review').t`Safeguard account now`}
/>
);
}
return (
<GenericSecurityCheckupCard
title={c('Safety review').t`Safeguard your account`}
subtitle={c('Safety review').t`Your account is fully secure.`}
icon="pass-shield-ok"
color="success"
cta={c('Safety review').t`Check account security`}
/>
);
};
interface RecoveryCardProps {
ids: {
account: string;
data: string;
};
canDisplayNewSentinelSettings?: boolean;
}
const RecoveryCard = ({ ids, canDisplayNewSentinelSettings }: RecoveryCardProps) => {
const [{ isSentinelUser }, loadingIsSentinelUser] = useIsSentinelUser();
const isSecurityCheckupAvailable = useIsSecurityCheckupAvailable();
if (loadingIsSentinelUser) {
return <Loader />;
}
if (isSentinelUser || !isSecurityCheckupAvailable) {
return (
<SentinelUserRecoveryCard
ids={ids}
canDisplayNewSentinelSettings={canDisplayNewSentinelSettings}
isSentinelUser={isSentinelUser}
/>
);
}
return <SecurityCheckupCard />;
};
export default RecoveryCard;
``` | /content/code_sandbox/packages/components/containers/recovery/RecoveryCard.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 3,607 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup>
<ClInclude Include="Debug.hpp" />
<ClInclude Include="PresentMonTraceConsumer.hpp" />
<ClInclude Include="TraceConsumer.hpp" />
<ClInclude Include="PresentMonTraceSession.hpp" />
<ClInclude Include="ETW\Intel_PresentMon.h">
<Filter>ETW</Filter>
</ClInclude>
<ClInclude Include="ETW\Microsoft_Windows_D3D9.h">
<Filter>ETW</Filter>
</ClInclude>
<ClInclude Include="ETW\Microsoft_Windows_Dwm_Core.h">
<Filter>ETW</Filter>
</ClInclude>
<ClInclude Include="ETW\Microsoft_Windows_DXGI.h">
<Filter>ETW</Filter>
</ClInclude>
<ClInclude Include="ETW\Microsoft_Windows_DxgKrnl.h">
<Filter>ETW</Filter>
</ClInclude>
<ClInclude Include="ETW\Microsoft_Windows_EventMetadata.h">
<Filter>ETW</Filter>
</ClInclude>
<ClInclude Include="ETW\Microsoft_Windows_Kernel_Process.h">
<Filter>ETW</Filter>
</ClInclude>
<ClInclude Include="ETW\Microsoft_Windows_Win32k.h">
<Filter>ETW</Filter>
</ClInclude>
<ClInclude Include="ETW\NT_Process.h">
<Filter>ETW</Filter>
</ClInclude>
<ClInclude Include="GpuTrace.hpp" />
<ClInclude Include="ETW\Microsoft_Windows_DxgKrnl_Win7.h">
<Filter>ETW</Filter>
</ClInclude>
<ClInclude Include="ETW\Microsoft_Windows_Dwm_Core_Win7.h">
<Filter>ETW</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Debug.cpp" />
<ClCompile Include="PresentMonTraceConsumer.cpp" />
<ClCompile Include="TraceConsumer.cpp" />
<ClCompile Include="PresentMonTraceSession.cpp" />
<ClCompile Include="GpuTrace.cpp" />
</ItemGroup>
<ItemGroup>
<Filter Include="ETW">
<UniqueIdentifier>{52014f4c-b511-4bc3-a029-ded458b8b84b}</UniqueIdentifier>
</Filter>
</ItemGroup>
</Project>
``` | /content/code_sandbox/PresentData/PresentData.vcxproj.filters | xml | 2016-03-09T18:44:16 | 2024-08-15T19:51:10 | PresentMon | GameTechDev/PresentMon | 1,580 | 567 |
```xml
/**
*
*/
export enum SocketProviderTypes {
SERVICE = "service",
MIDDLEWARE = "middleware"
}
``` | /content/code_sandbox/packages/third-parties/socketio/src/interfaces/SocketProviderTypes.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 25 |
```xml
import { mockStore, screen, simpleRender } from 'test-utils';
import { fAccounts } from '@fixtures';
import { ClaimState, ClaimType, ITxValue } from '@types';
import { truncate } from '@utils';
import { ClaimTable } from '../components/ClaimTable';
function getComponent() {
return simpleRender(<ClaimTable type={ClaimType.UNI} />, {
initialState: mockStore({
dataStoreState: {
claims: {
claims: {
[ClaimType.UNI]: [
{
address: fAccounts[0].address,
state: ClaimState.UNCLAIMED,
amount: '403' as ITxValue
},
{
address: fAccounts[2].address,
state: ClaimState.CLAIMED,
amount: '403' as ITxValue
}
]
},
error: false
}
}
})
});
}
describe('ClaimTable', () => {
test('render the table', async () => {
getComponent();
expect(screen.getByText(new RegExp(truncate(fAccounts[0].address), 'i'))).toBeDefined();
});
test("don't show claimed addresses", () => {
getComponent();
expect(screen.queryByText(new RegExp(truncate(fAccounts[2].address), 'i'))).toBeNull();
});
});
``` | /content/code_sandbox/src/components/ActionsPanel/__tests__/ClaimTable.test.tsx | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 285 |
```xml
<resources>
<string name="app_name">NearbyPlaces</string>
</resources>
``` | /content/code_sandbox/Android/NearbyPlaces/app/src/main/res/values/strings.xml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 21 |
```xml
import * as React from 'react';
import { Tag, makeStyles } from '@fluentui/react-components';
import { CalendarMonthRegular } from '@fluentui/react-icons';
const useContainerStyles = makeStyles({
container: {
columnGap: '10px',
display: 'flex',
},
});
export const Appearance = () => {
const styles = useContainerStyles();
return (
<div className={styles.container}>
<Tag icon={<CalendarMonthRegular />} dismissible dismissIcon={{ 'aria-label': 'remove' }}>
filled
</Tag>
<Tag appearance="outline" icon={<CalendarMonthRegular />} dismissible dismissIcon={{ 'aria-label': 'remove' }}>
outline
</Tag>
<Tag appearance="brand" icon={<CalendarMonthRegular />} dismissible dismissIcon={{ 'aria-label': 'remove' }}>
brand
</Tag>
</div>
);
};
Appearance.storyName = 'Appearance';
Appearance.parameters = {
docs: {
description: {
story: 'A tag can have a `filled`, `outline` or `brand` appearance. The default is `filled`.',
},
},
};
``` | /content/code_sandbox/packages/react-components/react-tags/stories/src/Tag/TagAppearance.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 245 |
```xml
import { getErrorMessage, Rule } from '../src/templateAccessibilityElementsContentRule';
import { assertAnnotated, assertSuccess } from './testHelper';
const {
metadata: { ruleName },
} = Rule;
describe(ruleName, () => {
describe('failure', () => {
it('should fail with no content in heading tag', () => {
const source = `
@Component({
template: \`
<h1 class="size-1"></h1>
~~~~~~~~~~~~~~~~~~~
\`
})
class Bar {}
`;
assertAnnotated({
message: getErrorMessage('h1'),
ruleName,
source,
});
});
it('should fail with no content in anchor tag', () => {
const source = `
@Component({
template: \`
<a href="#" [routerLink]="['route1']"></a>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\`
})
class Bar {}
`;
assertAnnotated({
message: getErrorMessage('a'),
ruleName,
source,
});
});
it('should fail with no content in anchor tag', () => {
const source = `
@Component({
template: \`
<button></button>
~~~~~~~~
\`
})
class Bar {}
`;
assertAnnotated({
message: getErrorMessage('button'),
ruleName,
source,
});
});
});
describe('success', () => {
it('should work when anchor or headings has any kind of content in it', () => {
const source = `
@Component({
template: \`
<h1>Heading Content!</h1>
<h2><app-content></app-content></h2>
<h3 [innerHTML]="dangerouslySetHTML"></h3>
<h4 [innerText]="text"></h4>
<a>Anchor Content!</a>
<a><app-content></app-content></a>
<a [innerHTML]="dangerouslySetHTML"></a>
<a [innerText]="text"></a>
\`
})
class Bar {}
`;
assertSuccess(ruleName, source);
});
});
});
``` | /content/code_sandbox/test/templateAccessibilityElementsContentRule.spec.ts | xml | 2016-02-10T17:22:40 | 2024-08-14T16:41:28 | codelyzer | mgechev/codelyzer | 2,446 | 466 |
```xml
/**
* Snippets.ts
*
* Manages snippet integration
*/
import * as detectIndent from "detect-indent"
import * as types from "vscode-languageserver-types"
import * as Oni from "oni-api"
import * as Log from "oni-core-logging"
import { Event, IEvent } from "oni-types"
import { OniSnippet, OniSnippetPlaceholder } from "./OniSnippet"
import { BufferIndentationInfo, IBuffer } from "./../../Editor/BufferManager"
import { SnippetVariableResolver } from "./SnippetVariableResolver"
export const splitLineAtPosition = (line: string, position: number): [string, string] => {
const prefix = line.substring(0, position)
const post = line.substring(position, line.length)
return [prefix, post]
}
export const getFirstPlaceholder = (
placeholders: OniSnippetPlaceholder[],
): OniSnippetPlaceholder => {
return placeholders.reduce((prev: OniSnippetPlaceholder, curr: OniSnippetPlaceholder) => {
if (!prev || prev.isFinalTabstop) {
return curr
}
if (curr.index < prev.index && !curr.isFinalTabstop) {
return curr
}
return prev
}, null)
}
export const getPlaceholderByIndex = (
placeholders: OniSnippetPlaceholder[],
index: number,
): OniSnippetPlaceholder | null => {
const matchingPlaceholders = placeholders.filter(p => p.index === index)
if (matchingPlaceholders.length === 0) {
return null
}
return matchingPlaceholders[0]
}
export const getFinalPlaceholder = (
placeholders: OniSnippetPlaceholder[],
): OniSnippetPlaceholder | null => {
const matchingPlaceholders = placeholders.filter(p => p.isFinalTabstop)
if (matchingPlaceholders.length === 0) {
return null
}
return matchingPlaceholders[0]
}
export interface IMirrorCursorUpdateEvent {
mode: Oni.Vim.Mode
cursors: types.Range[]
}
export const makeSnippetConsistentWithExistingWhitespace = (
snippet: string,
info: BufferIndentationInfo,
) => {
return snippet.split("\t").join(info.indent)
}
export const makeSnippetIndentationConsistent = (snippet: string, info: BufferIndentationInfo) => {
return snippet
.split("\n")
.map((line, index) => {
if (index === 0) {
return line
} else {
return info.indent + line
}
})
.join("\n")
}
export class SnippetSession {
private _buffer: IBuffer
private _snippet: OniSnippet
private _position: types.Position
private _onCancelEvent: Event<void> = new Event<void>()
private _onCursorMovedEvent: Event<IMirrorCursorUpdateEvent> = new Event<
IMirrorCursorUpdateEvent
>()
// Get state of line where we inserted
private _prefix: string
private _suffix: string
private _currentPlaceholder: OniSnippetPlaceholder = null
private _lastCursorMovedEvent: IMirrorCursorUpdateEvent = {
mode: null,
cursors: [],
}
public get buffer(): IBuffer {
return this._buffer
}
public get onCancel(): IEvent<void> {
return this._onCancelEvent
}
public get onCursorMoved(): IEvent<IMirrorCursorUpdateEvent> {
return this._onCursorMovedEvent
}
public get position(): types.Position {
return this._position
}
public get lines(): string[] {
return this._snippet.getLines()
}
constructor(private _editor: Oni.Editor, private _snippetString: string) {}
public async start(): Promise<void> {
this._buffer = this._editor.activeBuffer as IBuffer
const cursorPosition = await this._buffer.getCursorPosition()
const [currentLine] = await this._buffer.getLines(
cursorPosition.line,
cursorPosition.line + 1,
)
this._position = cursorPosition
const [prefix, suffix] = splitLineAtPosition(currentLine, cursorPosition.character)
const currentIndent = detectIndent(currentLine)
this._prefix = prefix
this._suffix = suffix
const whitespaceSettings = await this._buffer.detectIndentation()
const normalizedSnippet = makeSnippetConsistentWithExistingWhitespace(
this._snippetString,
whitespaceSettings,
)
const indentedSnippet = makeSnippetIndentationConsistent(normalizedSnippet, currentIndent)
this._snippet = new OniSnippet(indentedSnippet, new SnippetVariableResolver(this._buffer))
const snippetLines = this._snippet.getLines()
const lastIndex = snippetLines.length - 1
snippetLines[0] = this._prefix + snippetLines[0]
snippetLines[lastIndex] = snippetLines[lastIndex] + this._suffix
// If there are no placeholders, add an implicit one at the end
if (this._snippet.getPlaceholders().length === 0) {
this._snippet = new OniSnippet(
// tslint:disable-next-line
indentedSnippet + "${0}",
new SnippetVariableResolver(this._buffer),
)
}
await this._buffer.setLines(cursorPosition.line, cursorPosition.line + 1, snippetLines)
const placeholders = this._snippet.getPlaceholders()
if (!placeholders || placeholders.length === 0) {
// If no placeholders, we're done with the session
this._finish()
return
}
await this.nextPlaceholder()
await this.updateCursorPosition()
}
public async nextPlaceholder(): Promise<void> {
const placeholders = this._snippet.getPlaceholders()
if (!this._currentPlaceholder) {
const newPlaceholder = getFirstPlaceholder(placeholders)
this._currentPlaceholder = newPlaceholder
} else {
if (this._currentPlaceholder.isFinalTabstop) {
this._finish()
return
}
const nextPlaceholder = getPlaceholderByIndex(
placeholders,
this._currentPlaceholder.index + 1,
)
this._currentPlaceholder = nextPlaceholder || getFinalPlaceholder(placeholders)
}
await this._highlightPlaceholder(this._currentPlaceholder)
}
public async previousPlaceholder(): Promise<void> {
const placeholders = this._snippet.getPlaceholders()
const nextPlaceholder = getPlaceholderByIndex(
placeholders,
this._currentPlaceholder.index - 1,
)
this._currentPlaceholder = nextPlaceholder || getFirstPlaceholder(placeholders)
await this._highlightPlaceholder(this._currentPlaceholder)
}
public async setPlaceholderValue(index: number, val: string): Promise<void> {
const previousValue = this._snippet.getPlaceholderValue(index)
if (previousValue === val) {
Log.verbose(
"[SnippetSession::setPlaceHolderValue] Skipping because new placeholder value is same as previous",
)
return
}
await this._snippet.setPlaceholder(index, val)
// Update current placeholder
this._currentPlaceholder = getPlaceholderByIndex(this._snippet.getPlaceholders(), index)
await this._updateSnippet()
}
// Update the cursor position relative to all placeholders
public async updateCursorPosition(): Promise<void> {
const pos = await this._buffer.getCursorPosition()
const mode = this._editor.mode as Oni.Vim.Mode
if (
!this._currentPlaceholder ||
pos.line !== this._currentPlaceholder.line + this._position.line
) {
return
}
const boundsForPlaceholder = this._getBoundsForPlaceholder()
const offset = pos.character - boundsForPlaceholder.start
const allPlaceholdersAtIndex = this._snippet
.getPlaceholders()
.filter(
f =>
f.index === this._currentPlaceholder.index &&
!(
f.line === this._currentPlaceholder.line &&
f.character === this._currentPlaceholder.character
),
)
const cursorPositions: types.Range[] = allPlaceholdersAtIndex.map(p => {
if (mode === "visual") {
const bounds = this._getBoundsForPlaceholder(p)
return types.Range.create(
bounds.line,
bounds.start,
bounds.line,
bounds.start + bounds.length,
)
} else {
const bounds = this._getBoundsForPlaceholder(p)
return types.Range.create(
bounds.line,
bounds.start + offset,
bounds.line,
bounds.start + offset,
)
}
})
this._lastCursorMovedEvent = {
mode,
cursors: cursorPositions,
}
this._onCursorMovedEvent.dispatch(this._lastCursorMovedEvent)
}
public getLatestCursors(): IMirrorCursorUpdateEvent {
return this._lastCursorMovedEvent
}
// Helper method to query the value of the current placeholder,
// propagate that to any other placeholders, and update the snippet
public async synchronizeUpdatedPlaceholders(): Promise<void> {
// Get current cursor position
const cursorPosition = await this._buffer.getCursorPosition()
if (!this._currentPlaceholder) {
return
}
const bounds = this._getBoundsForPlaceholder()
if (cursorPosition.line !== bounds.line) {
Log.info(
"[SnippetSession::synchronizeUpdatedPlaceholder] Cursor outside snippet, cancelling snippet session",
)
this._onCancelEvent.dispatch()
return
}
// Check substring of placeholder start / placeholder finish
const [currentLine] = await this._buffer.getLines(bounds.line, bounds.line + 1)
const startPosition = bounds.start
const endPosition = currentLine.length - bounds.distanceFromEnd
if (
cursorPosition.character < startPosition ||
cursorPosition.character > endPosition + 2
) {
return
}
// Set placeholder value
const newPlaceholderValue = currentLine.substring(startPosition, endPosition)
await this.setPlaceholderValue(bounds.index, newPlaceholderValue)
}
private _finish(): void {
this._onCancelEvent.dispatch()
}
private _getBoundsForPlaceholder(
currentPlaceholder: OniSnippetPlaceholder = this._currentPlaceholder,
): {
index: number
line: number
start: number
length: number
distanceFromEnd: number
} {
const currentSnippetLines = this._snippet.getLines()
const start =
currentPlaceholder.line === 0
? this._prefix.length + currentPlaceholder.character
: currentPlaceholder.character
const length = currentPlaceholder.value.length
const distanceFromEnd =
currentSnippetLines[currentPlaceholder.line].length -
(currentPlaceholder.character + length)
const line = currentPlaceholder.line + this._position.line
return { index: currentPlaceholder.index, line, start, length, distanceFromEnd }
}
private async _updateSnippet(): Promise<void> {
const snippetLines = this._snippet.getLines()
const lastIndex = snippetLines.length - 1
snippetLines[0] = this._prefix + snippetLines[0]
snippetLines[lastIndex] = snippetLines[lastIndex] + this._suffix
await this._buffer.setLines(
this._position.line,
this._position.line + snippetLines.length,
snippetLines,
)
}
private async _highlightPlaceholder(currentPlaceholder: OniSnippetPlaceholder): Promise<void> {
if (!currentPlaceholder) {
return
}
const adjustedLine = currentPlaceholder.line + this._position.line
const adjustedCharacter =
currentPlaceholder.line === 0
? this._position.character + currentPlaceholder.character
: currentPlaceholder.character
const placeHolderLength = currentPlaceholder.value.length
if (placeHolderLength === 0) {
await (this._editor as any).clearSelection()
await this._editor.activeBuffer.setCursorPosition(adjustedLine, adjustedCharacter)
} else {
await this._editor.setSelection(
types.Range.create(
adjustedLine,
adjustedCharacter,
adjustedLine,
adjustedCharacter + placeHolderLength - 1,
),
)
}
}
}
``` | /content/code_sandbox/browser/src/Services/Snippets/SnippetSession.ts | xml | 2016-11-16T14:42:55 | 2024-08-14T11:48:05 | oni | onivim/oni | 11,355 | 2,564 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns="path_to_url"
xmlns:camunda="path_to_url"
targetNamespace="path_to_url">
<message id="message"/>
<error id="error"/>
<itemDefinition id="itemDef"/>
<signal id="signal" name="signal" structureRef="itemDef"/>
<escalation id="escalation" name="escalation" escalationCode="1337" structureRef="itemDef"/>
<process id="process">
<intermediateThrowEvent id="event">
<cancelEventDefinition/>
<compensateEventDefinition waitForCompletion="true" activityRef="task"/>
<conditionalEventDefinition>
<condition>${test}</condition>
</conditionalEventDefinition>
<escalationEventDefinition escalationRef="escalation"/>
<errorEventDefinition errorRef="error"/>
<linkEventDefinition id="link" name="link">
<source>link</source>
<target>link</target>
</linkEventDefinition>
<messageEventDefinition messageRef="message" camunda:taskPriority="5"/>
<signalEventDefinition signalRef="signal"/>
<terminateEventDefinition/>
<timerEventDefinition id="date">
<timeDate>${test}</timeDate>
</timerEventDefinition>
<timerEventDefinition id="duration">
<timeDuration>${test}</timeDuration>
</timerEventDefinition>
<timerEventDefinition id="cycle">
<timeCycle>${test}</timeCycle>
</timerEventDefinition>
</intermediateThrowEvent>
<userTask id="task"/>
</process>
</definitions>
``` | /content/code_sandbox/zeebe/bpmn-model/src/test/resources/io/camunda/zeebe/model/bpmn/EventDefinitionsTest.xml | xml | 2016-03-20T03:38:04 | 2024-08-16T19:59:58 | camunda | camunda/camunda | 3,172 | 357 |
```xml
export default function Root({ children }: { children: React.ReactNode }) {
return (
<html>
<body>{children}</body>
</html>
)
}
``` | /content/code_sandbox/test/development/app-dir/hmr-move-file/app/layout.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 37 |
```xml
type WaitUntilCallback = (() => boolean) | { check: () => boolean; cancel: () => boolean };
export const waitUntil = (cb: WaitUntilCallback, refresh: number, timeout: number = 5_000): Promise<void> => {
const check = typeof cb === 'function' ? cb : cb.check;
const cancel = typeof cb === 'function' ? undefined : cb.cancel;
let timer: NodeJS.Timeout;
let interval: NodeJS.Timeout;
const clear = () => {
clearTimeout(timer);
clearInterval(interval);
};
return new Promise<void>((resolve, reject) => {
if (cancel?.()) return reject();
if (check()) return resolve();
timer = setTimeout(() => reject(clear()), timeout);
interval = setInterval(() => {
if (cancel?.()) return reject(clear());
if (!check()) return;
resolve(clear());
}, refresh);
});
};
``` | /content/code_sandbox/packages/pass/utils/fp/wait-until.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 197 |
```xml
import { svgIcon } from "@bitwarden/components";
export const DeactivatedOrg = svgIcon`
<svg width="138" height="118" viewBox="0 0 138 118" fill="none" xmlns="path_to_url">
<g clip-path="url(#clip0_2929_17380)">
<path class="tw-stroke-text-headers" d="M80.0852 15.889V11.7504C80.0852 9.75243 78.6181 8.18262 76.7509 8.18262H53.1445C51.2773 8.18262 49.8102 9.75243 49.8102 11.7504V16.0317" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M73.3568 7.06126V3.568C73.3568 1.75668 71.8648 0.333496 69.9658 0.333496H59.9285C58.0295 0.333496 56.5374 1.75668 56.5374 3.568V7.06126" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M41.9611 29.8517V20.5736C41.9611 18.658 43.4441 17.1528 45.3315 17.1528H84.5637C86.4511 17.1528 87.9341 18.658 87.9341 20.5736V83.2728" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M12.8074 103.493V32.9262C12.8074 31.0004 14.3311 29.4873 16.2703 29.4873H56.4389C58.3781 29.4873 59.9018 31.0004 59.9018 32.9262V103.493" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M36.3545 39.5791V94.5225" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M47.5677 39.5791V94.5225" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M78.9634 26.1235V37.3365" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M78.9634 45.1851V56.398" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M78.9634 64.2476V75.4605" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M78.9634 83.3091V94.522" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M69.9932 26.1235V37.3365" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M69.9932 45.1851V56.398" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M69.9932 64.2476V75.4605" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M69.9932 83.3091V94.522" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M24.0202 39.5791V94.5225" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-stroke-text-headers" d="M0.473145 104.614H75.3408" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path class="tw-fill-danger-600" fill-rule="evenodd" clip-rule="evenodd" d="M121.425 111.921L99.1265 73.2989C98.3006 71.8685 96.236 71.8685 95.4101 73.2989L73.1119 111.921C72.286 113.351 73.3183 115.139 74.97 115.139H119.567C121.218 115.139 122.251 113.351 121.425 111.921ZM101.604 71.8685C99.6771 68.5308 94.8595 68.5308 92.9325 71.8685L70.6343 110.49C68.7073 113.828 71.116 118 74.97 118H119.567C123.421 118 125.829 113.828 123.902 110.49L101.604 71.8685Z"/>
<path class="tw-fill-danger-600" d="M98.2704 84.3848C98.8321 84.3848 99.2836 84.8473 99.2701 85.4088L98.8811 101.584C98.8681 102.127 98.4243 102.56 97.8814 102.56H96.6544C96.1118 102.56 95.6682 102.127 95.6547 101.585L95.254 85.4095C95.24 84.8477 95.6917 84.3848 96.2537 84.3848H98.2704Z" />
<circle class="tw-fill-danger-600" cx="97.2682" cy="106.556" r="2.14565" />
</g>
<defs>
<clipPath id="clip0_2929_17380">
<rect width="138" height="118" class="tw-fill-danger-600"/>
</clipPath>
</defs>
</svg>
`;
``` | /content/code_sandbox/libs/vault/src/icons/deactivated-org.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 1,543 |
```xml
export * from './CarouselNavImageButton';
export * from './CarouselNavImageButton.types';
export * from './renderCarouselNavImageButton';
export * from './useCarouselNavImageButton';
export * from './useCarouselNavImageButtonStyles.styles';
``` | /content/code_sandbox/packages/react-components/react-carousel-preview/library/src/components/CarouselNavImageButton/index.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 47 |
```xml
export * from './AvatarGroup';
export * from './AvatarGroup.types';
export * from './renderAvatarGroup';
export * from './useAvatarGroup';
export * from './useAvatarGroupStyles.styles';
export * from './useAvatarGroupContextValues';
``` | /content/code_sandbox/packages/react-components/react-avatar/library/src/components/AvatarGroup/index.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 52 |
```xml
import "@polymer/iron-demo-helpers/demo-pages-shared-styles";
import "@polymer/iron-demo-helpers/demo-snippet";
import "@openremote/or-map";
import manager, {Auth} from "@openremote/core";
import {OrMap, OrMapMarkerClickedEvent} from "@openremote/or-map";
import {getBuildingAsset} from "../../demo-core/src/util";
manager.init({
auth: Auth.KEYCLOAK,
autoLogin: true,
managerUrl: "path_to_url",
realm: "smartcity"
})
.then(getBuildingAsset)
.then((apartment1) => {
const maps = document.querySelectorAll("or-map");
const rasterMap = maps[0] as OrMap;
const vectorMap = maps[1] as OrMap;
rasterMap.addEventListener(OrMapMarkerClickedEvent.NAME, (evt) => {
console.log("RASTER MAP: Marker clicked: " + JSON.stringify(evt.detail));
});
rasterMap.addEventListener("click", (evt) => {
console.log("RASTER MAP: Map clicked");
});
vectorMap.addEventListener(OrMapMarkerClickedEvent.NAME, (evt) => {
console.log("VECTOR MAP: Marker clicked: " + JSON.stringify(evt.detail));
});
vectorMap.addEventListener("click", (evt) => {
console.log("VECTOR MAP: Map clicked");
});
if (apartment1) {
// Add an or-map-marker-asset to the vector map
const assetMarker = document.createElement("or-map-marker-asset");
assetMarker.setAttribute("assetid", apartment1.id!);
vectorMap.appendChild(assetMarker);
}
});
``` | /content/code_sandbox/ui/demo/demo-or-map/src/index.ts | xml | 2016-02-03T11:14:02 | 2024-08-16T12:45:50 | openremote | openremote/openremote | 1,184 | 348 |
```xml
import { ImportType } from '../interfaces/ImportType';
import { initCommonTransform } from '../testUtils';
import { ExportTransformer } from '../transformers/shared/ExportTransformer';
import { ImportTransformer } from '../transformers/shared/ImportTransformer';
import { CommonTSfeaturesTransformer } from '../transformers/ts/CommonTSfeaturesTransformer';
/**
to test:
import * as hey from "./oi"
hey.something();
*/
const testTranspile = (props: { code: string; jsx?: boolean }) => {
return initCommonTransform({
code: props.code,
jsx: props.jsx,
transformers: [ImportTransformer(), ExportTransformer(), CommonTSfeaturesTransformer()],
});
};
describe('Es imports tests', () => {
describe('import =', () => {
it('should handle ImportEqualStatement', () => {
const result = testTranspile({
code: `
import _ = require('lodash');
`,
});
expect(result.requireStatementCollection).toEqual([
{
importType: ImportType.RAW_IMPORT,
statement: {
arguments: [{ type: 'Literal', value: 'lodash' }],
callee: { name: 'require', type: 'Identifier' },
type: 'CallExpression',
},
},
]);
expect(result.code).toMatchSnapshot();
});
});
describe('Local variable replacement', () => {
it('should not collide with local scope', () => {
const result = testTranspile({
code: `
import { foo, bar as stuff } from "./hello";
function hello(foo) {
console.log(foo, stuff);
}
`,
});
expect(result.code).toMatchSnapshot();
});
it('should not collide with local scope 2', () => {
const result = testTranspile({
code: `
import { foo, bar as stuff } from "./hello";
function hello(foo) {
console.log(foo, stuff);
}
console.log(foo, stuff)
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import something a trace it down', () => {
const result = testTranspile({
code: `
import {foobar} from "foo"
console.log(1);
foobar();
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import something a trace it down 2', () => {
const result = testTranspile({
code: `
import {FooBar} from "foo"
console.log(1);
new FooBar();
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import something a trace it down 3', () => {
const result = testTranspile({
code: `
import {Foobar} from "foo"
console.log(Foobar)
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import something a trace it down 4', () => {
const result = testTranspile({
code: `
import {Foobar} from "foo"
console.log([Foobar])
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import something a trace it down 5', () => {
const result = testTranspile({
code: `
import FooBar from "foo"
console.log(FooBar)
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import multiple and trace it down', () => {
const result = testTranspile({
code: `
import a, {b} from "c";
console.log(a, b)
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import multiple and trace it down 2', () => {
const result = testTranspile({
code: `
import {a, b} from "c";
console.log(a, b)
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import everything and replace in an object', () => {
const result = testTranspile({
code: `
import {oi} from "c";
const a = {
oi : oi(String)
}
`,
});
expect(result.code).toMatchSnapshot();
});
it('should import with alias', () => {
const result = testTranspile({
code: `
import { ng as angular } from './angular';
angular.module()
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import everything use it', () => {
const result = testTranspile({
code: `
import * as tslib_1 from "tslib";
tslib_1.something()
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import everything use it 2', () => {
const result = testTranspile({
code: `
import MySuperClass, * as everything from "module-name";
everything.something();
new MySuperClass();
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import everything use it 3', () => {
const result = testTranspile({
code: `
import * as everything from "module-name";
console.log(everything)
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import everything amd remove it (override)', () => {
const result = testTranspile({
code: `
import * as everything from "module-name";
const everything = {}
console.log(everything)
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should trace down assignable', () => {
const result = testTranspile({
code: `
import { foo } from "foo";
Oi.prototype[foo] = function(){}
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import and replace in extends', () => {
const result = testTranspile({
code: `
import { Foo } from "foo";
class App extends Foo {
}
`,
});
expect(result.code).toMatchSnapshot();
});
it('Should import with sideeffects', () => {
const result = testTranspile({
code: `
console.log(1);
import "foo"
console.log(2);
`,
});
expect(result.code).toMatchSnapshot();
});
it('should not mess with the scope 2', () => {
const result = testTranspile({
code: `
import {foo, bar} from "foo"
const foo = 1;
console.log(foo, bar);
`,
});
expect(result.code).toMatchSnapshot();
});
it('should not mess with the scope 3', () => {
const result = testTranspile({
code: `
import func from './function.js';
var mixin = (function(func) {
console.log(func)
});
`,
});
expect(result.code).toMatchSnapshot();
});
});
describe('Import interfaces', () => {
it('should ignore the import of an interface', () => {
const result = testTranspile({
code: `
import { Type } from './types';
export function hey(t: Type) {
return 1;
}
`,
});
expect(result.code).toMatchSnapshot();
});
it('should keey the statement if at least one of the imports are used', () => {
const result = testTranspile({
code: `
import { Type, oi } from './types';
export function hey(t: Type) {
return oi();
}
`,
});
expect(result.code).toMatchSnapshot();
});
});
describe('Test require statement collection', () => {
it('should not emit a require statement ', () => {
const result = testTranspile({
code: `
import { Type, oi } from './types';
export function hey(t: Type) {
}
`,
});
expect(result.requireStatementCollection).toEqual([]);
});
it('should emit require statement ', () => {
const result = testTranspile({
code: `
import { Type, oi } from './types';
export function hey(t: Type) {
console.log(oi);
}
`,
});
expect(result.requireStatementCollection).toEqual([
{
importType: ImportType.FROM,
statement: {
arguments: [{ type: 'Literal', value: './types' }],
callee: { name: 'require', type: 'Identifier' },
type: 'CallExpression',
},
},
]);
});
it('should emit raw import statement ', () => {
const result = testTranspile({
code: `
import "./foo"
`,
});
expect(result.requireStatementCollection).toEqual([
{
importType: ImportType.RAW_IMPORT,
statement: {
arguments: [{ type: 'Literal', value: './foo' }],
callee: { name: 'require', type: 'Identifier' },
type: 'CallExpression',
},
},
]);
});
});
describe('Edge cases', () => {
it('should handle lodash edge case 1', () => {
const result = testTranspile({
code: `
import toString from './toString.js';
import upperFirst from './upperFirst.js';
function capitalize(string) {
return upperFirst(toString(string).toLowerCase());
}
export default capitalize;
`,
});
expect(result.code).toMatchSnapshot();
});
});
describe('Naming should always be correct', () => {
it('should start every unique module with 1', () => {
const result = testTranspile({
code: `
import { test } from 'react';
import { useEffect } from 'react';
import { someOther } from './someOther';
useEffect(() => {
console.log(test);
console.log(someOther);
});
`,
});
expect(result.code).toMatch(/react_1/);
expect(result.code).toMatch(/react_2/);
expect(result.code).toMatch(/someOther_1/);
expect(result.code).toMatchSnapshot();
});
});
describe('import type', () => {
it('should ignore export type"', () => {
const result = testTranspile({
code: `
import type { foo } from "bar"
console.log(foo)
`,
});
expect(result.code).toMatchSnapshot();
});
});
});
``` | /content/code_sandbox/src/compiler/__tests__/es.imports.test.ts | xml | 2016-10-28T10:37:16 | 2024-07-27T15:17:43 | fuse-box | fuse-box/fuse-box | 4,003 | 2,225 |
```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>
<declare-styleable name="TwentyFourHourGridItem">
<attr name="primaryText" format="string"/>
<attr name="secondaryText" format="string"/>
</declare-styleable>
</resources>
``` | /content/code_sandbox/bottomsheetpickers/src/main/res/values/attrs.xml | xml | 2016-10-06T01:20:05 | 2024-08-05T10:12:07 | BottomSheetPickers | philliphsu/BottomSheetPickers | 1,101 | 99 |
```xml
<resources>
<string name="app_name">AdMob Quickstart</string>
<string name="hello_world">Hello world!</string>
<string name="interstitial_button_text">Show Interstitial Ad</string>
<string name="first_fragment_title">FirstFragment</string>
<string name="second_fragment_title">SecondFragment</string>
<string name="second_fragment_content">This is the second fragment.</string>
<!--
TODO: Replace this with your own Admob App ID! This value is only a sample.
-->
<string name="admob_app_id">ca-app-pub-3940256099942544~3347511713</string>
<string name="banner_ad_unit_id">ca-app-pub-3940256099942544/6300978111</string>
<string name="interstitial_ad_unit_id">ca-app-pub-3940256099942544/1033173712</string>
</resources>
``` | /content/code_sandbox/admob/app/src/main/res/values/strings.xml | xml | 2016-04-26T17:13:27 | 2024-08-16T18:37:58 | quickstart-android | firebase/quickstart-android | 8,797 | 210 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/**
* Tests if a 32-bit integer is even.
*
* @param x - value to test
* @returns boolean indicating whether the value is even
*
* @example
* var bool = isEven( 5 );
* // returns false
*
* @example
* var bool = isEven( -2 );
* // returns true
*
* @example
* var bool = isEven( 0 );
* // returns true
*/
declare function isEven( x: number ): boolean;
// EXPORTS //
export = isEven;
``` | /content/code_sandbox/lib/node_modules/@stdlib/math/base/assert/int32-is-even/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 173 |
```xml
import useActivityAcknowledgementContext from './private/useContext';
export default function useLastAcknowledgedActivityKey(): readonly [string] {
return useActivityAcknowledgementContext().lastAcknowledgedActivityKeyState;
}
``` | /content/code_sandbox/packages/api/src/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.ts | xml | 2016-07-07T23:16:57 | 2024-08-16T00:12:37 | BotFramework-WebChat | microsoft/BotFramework-WebChat | 1,567 | 44 |
```xml
import { NgModule } from '@angular/core';
import { ROUTES} from '@angular/router';
import { ElementsLoader } from './elements-loader';
import {
ELEMENT_MODULE_LOAD_CALLBACKS,
ELEMENT_MODULE_LOAD_CALLBACKS_AS_ROUTES,
ELEMENT_MODULE_LOAD_CALLBACKS_TOKEN
} from './element-registry';
import { LazyCustomElementComponent } from './lazy-custom-element.component';
@NgModule({
declarations: [ LazyCustomElementComponent ],
exports: [ LazyCustomElementComponent ],
providers: [
ElementsLoader,
{ provide: ELEMENT_MODULE_LOAD_CALLBACKS_TOKEN, useValue: ELEMENT_MODULE_LOAD_CALLBACKS },
// Providing these routes as a signal to the build system that these modules should be
// registered as lazy-loadable.
// TODO(andrewjs): Provide first-class support for providing this.
// { provide: ROUTES, useValue: ELEMENT_MODULE_LOAD_CALLBACKS_AS_ROUTES, multi: true },
],
})
export class CustomElementsModule { }
``` | /content/code_sandbox/projects/docs-app/src/app/custom-elements/custom-elements.module.ts | xml | 2016-03-10T21:29:15 | 2024-08-15T07:07:30 | angular-tree-component | CirclonGroup/angular-tree-component | 1,093 | 201 |
```xml
/*
* Squidex Headless CMS
*
* @license
*/
import { Component, Input } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ControlErrorsComponent, EditSchemaForm, FormAlertComponent, FormHintComponent, SchemaDto, SchemasState, TagEditorComponent, TranslatePipe } from '@app/shared';
@Component({
standalone: true,
selector: 'sqx-schema-edit-form',
styleUrls: ['./schema-edit-form.component.scss'],
templateUrl: './schema-edit-form.component.html',
imports: [
ControlErrorsComponent,
FormAlertComponent,
FormHintComponent,
FormsModule,
ReactiveFormsModule,
TagEditorComponent,
TranslatePipe,
],
})
export class SchemaEditFormComponent {
@Input({ required: true })
public schema!: SchemaDto;
public fieldForm = new EditSchemaForm();
public isEditable?: boolean | null;
constructor(
private readonly schemasState: SchemasState,
) {
}
public ngOnChanges() {
this.isEditable = this.schema.canUpdate;
this.fieldForm.load(this.schema.properties);
this.fieldForm.setEnabled(this.isEditable);
}
public saveSchema() {
if (!this.isEditable) {
return;
}
const value = this.fieldForm.submit();
if (value) {
this.schemasState.update(this.schema, value)
.subscribe({
next: () => {
this.fieldForm.submitCompleted({ noReset: true });
},
error: error => {
this.fieldForm.submitFailed(error);
},
});
}
}
}
``` | /content/code_sandbox/frontend/src/app/features/schemas/pages/schema/common/schema-edit-form.component.ts | xml | 2016-08-29T05:53:40 | 2024-08-16T17:39:38 | squidex | Squidex/squidex | 2,222 | 336 |
```xml
<RelativeLayout xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/fl_zxing_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
``` | /content/code_sandbox/lib-zxing/src/main/res/layout/camera.xml | xml | 2016-07-26T08:00:18 | 2024-08-14T04:40:58 | android-zxingLibrary | yipianfengye/android-zxingLibrary | 5,000 | 68 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AWSSDK.Core" Version="3.7.3.17" />
<PackageReference Include="AWSSDK.Polly" Version="3.7.3.20" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>
``` | /content/code_sandbox/dotnetv3/Polly/GetLexiconExample/GetLexiconExample.csproj | xml | 2016-08-18T19:06:57 | 2024-08-16T18:59:44 | aws-doc-sdk-examples | awsdocs/aws-doc-sdk-examples | 9,298 | 160 |
```xml
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { Component, ElementRef } from '@angular/core';
import { By } from '@angular/platform-browser';
import { OrderableDirective } from './orderable.directive';
import { DraggableDirective } from './draggable.directive';
import { id } from '../utils/id';
@Component({
selector: 'test-fixture-component',
template: ` <div orderable></div> `
})
class TestFixtureComponent {}
describe('OrderableDirective', () => {
let fixture: ComponentFixture<TestFixtureComponent>;
let component: TestFixtureComponent;
let element;
// provide our implementations or mocks to the dependency injector
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [OrderableDirective, TestFixtureComponent]
});
});
beforeEach(
waitForAsync(() => {
TestBed.compileComponents().then(() => {
fixture = TestBed.createComponent(TestFixtureComponent);
component = fixture.componentInstance;
element = fixture.nativeElement;
/* This is required in order to resolve the `ContentChildren`.
* If we don't go through at least on change detection cycle
* the `draggables` will be `undefined` and `ngOnDestroy` will
* fail.
*/
fixture.detectChanges();
});
})
);
describe('fixture', () => {
let directive: OrderableDirective;
beforeEach(() => {
directive = fixture.debugElement.query(By.directive(OrderableDirective)).injector.get(OrderableDirective);
});
it('should have a component instance', () => {
expect(component).toBeTruthy();
});
it('should have OrderableDirective directive', () => {
expect(directive).toBeTruthy();
});
describe('when a draggable is removed', () => {
function checkAllSubscriptionsForActiveObservers() {
const subs = directive.draggables.map(d => {
expect(d.dragEnd.isStopped).toBe(false);
expect(d.dragStart.isStopped).toBe(false);
return {
dragStart: d.dragStart.observers,
dragEnd: d.dragEnd.observers
};
});
subs.forEach(sub => {
expect(sub.dragStart.length).toBe(1);
expect(sub.dragEnd.length).toBe(1);
});
}
function newDraggable() {
// tslint:disable-next-line: no-object-literal-type-assertion
const draggable = new DraggableDirective(<ElementRef>{});
// used for the KeyValueDiffer
draggable.dragModel = {
$$id: id()
};
return draggable;
}
let draggables: DraggableDirective[];
beforeEach(() => {
draggables = [newDraggable(), newDraggable(), newDraggable()];
directive.draggables.reset(draggables);
directive.updateSubscriptions();
checkAllSubscriptionsForActiveObservers();
});
it('then dragStart and dragEnd are unsubscribed from the removed draggable', () => {
const unsubbed = draggables.splice(0, 1)[0];
expect(unsubbed.dragStart.isStopped).toBe(false);
expect(unsubbed.dragEnd.isStopped).toBe(false);
directive.draggables.reset(draggables);
directive.updateSubscriptions();
checkAllSubscriptionsForActiveObservers();
expect(unsubbed.dragStart.isStopped).toBe(true);
expect(unsubbed.dragEnd.isStopped).toBe(true);
});
});
});
});
``` | /content/code_sandbox/projects/swimlane/ngx-datatable/src/lib/directives/orderable.directive.spec.ts | xml | 2016-05-31T19:25:47 | 2024-08-06T15:02:47 | ngx-datatable | swimlane/ngx-datatable | 4,624 | 725 |
```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="it" original="../LocalizableStrings.resx">
<body>
<trans-unit id="CommandDescription">
<source>Interact with servers started from a build.</source>
<target state="translated">Interagisce con server avviati da una compilazione.</target>
<note />
</trans-unit>
<trans-unit id="BuildServerCommandName">
<source>.NET Build Server Command</source>
<target state="translated">Comando del server di compilazione di .NET</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
``` | /content/code_sandbox/src/Cli/dotnet/commands/dotnet-buildserver/xlf/LocalizableStrings.it.xlf | xml | 2016-07-22T21:26:02 | 2024-08-16T17:23:58 | sdk | dotnet/sdk | 2,627 | 230 |
```xml
import { waitUntil } from './wait-until';
describe('waitUntil', () => {
const TIMEOUT = 500;
let clearIntervalSpy: jest.SpyInstance,
clearTimeoutSpy: jest.SpyInstance,
setIntervalSpy: jest.SpyInstance,
setTimeoutSpy: jest.SpyInstance;
beforeEach(() => {
jest.useFakeTimers();
clearIntervalSpy = jest.spyOn(global, 'clearInterval');
clearTimeoutSpy = jest.spyOn(global, 'clearTimeout');
setIntervalSpy = jest.spyOn(global, 'setInterval');
setTimeoutSpy = jest.spyOn(global, 'setTimeout');
});
afterEach(() => {
jest.clearAllTimers();
clearIntervalSpy.mockRestore();
clearTimeoutSpy.mockRestore();
setIntervalSpy.mockRestore();
setTimeoutSpy.mockRestore();
});
test('should resolve immediately if condition is already true', async () => {
const checkTrue = jest.fn(() => true);
await expect(waitUntil(checkTrue, 100, TIMEOUT)).resolves.toBeUndefined();
expect(checkTrue).toHaveBeenCalledTimes(1);
expect(setTimeoutSpy).not.toHaveBeenCalled();
expect(setIntervalSpy).not.toHaveBeenCalled();
});
test('should reject if condition is false after timeout', async () => {
const checkFalse = jest.fn(() => false);
const job = waitUntil(checkFalse, 100, TIMEOUT);
expect(checkFalse).toHaveBeenCalledTimes(1);
jest.advanceTimersByTime(TIMEOUT);
await expect(job).rejects.toBeUndefined();
expect(checkFalse).toHaveBeenCalledTimes(5);
expect(clearIntervalSpy).toHaveBeenCalledTimes(1);
expect(clearTimeoutSpy).toHaveBeenCalledTimes(1);
});
test('should reject if cancel returns true', async () => {
const checkFalse = jest.fn(() => false);
const cancel = jest.fn(() => true);
await expect(waitUntil({ check: checkFalse, cancel }, 100, TIMEOUT)).rejects.toBeUndefined();
expect(checkFalse).toHaveBeenCalledTimes(0);
expect(cancel).toHaveBeenCalledTimes(1);
expect(setTimeoutSpy).not.toHaveBeenCalled();
expect(setIntervalSpy).not.toHaveBeenCalled();
});
test('should resolve if condition becomes true before timeout', async () => {
const check = jest.fn().mockReturnValueOnce(false).mockReturnValueOnce(false).mockReturnValueOnce(true);
const job = waitUntil(check, 100, TIMEOUT);
jest.advanceTimersByTime(TIMEOUT);
await expect(job).resolves.toBeUndefined();
expect(check).toHaveBeenCalledTimes(3);
expect(clearIntervalSpy).toHaveBeenCalledTimes(1);
expect(clearTimeoutSpy).toHaveBeenCalledTimes(1);
});
test('should call cancel and reject if cancel returns true while waiting', async () => {
const checkFalse = jest.fn(() => false);
const cancel = jest.fn().mockReturnValueOnce(false).mockReturnValueOnce(false).mockReturnValueOnce(true);
const job = waitUntil({ check: checkFalse, cancel }, 100, TIMEOUT);
jest.advanceTimersByTime(TIMEOUT);
await expect(job).rejects.toBeUndefined();
expect(checkFalse).toHaveBeenCalledTimes(2);
expect(cancel).toHaveBeenCalledTimes(3);
expect(clearIntervalSpy).toHaveBeenCalledTimes(1);
expect(clearTimeoutSpy).toHaveBeenCalledTimes(1);
});
});
``` | /content/code_sandbox/packages/pass/utils/fp/wait-until.spec.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 686 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="path_to_url">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="debug|x64">
<Configuration>debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="checked|x64">
<Configuration>checked</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="profile|x64">
<Configuration>profile</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="release|x64">
<Configuration>release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{448AB256-3448-2840-99B8-CCD61CACF998}</ProjectGuid>
<RootNamespace>SnippetVehicleMultiThreading</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='checked|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='profile|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='checked|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='profile|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|x64'">
<OutDir>./../../../bin/vc12win64\</OutDir>
<IntDir>./x64/SnippetVehicleMultiThreading/debug\</IntDir>
<TargetExt>.exe</TargetExt>
<TargetName>$(ProjectName)DEBUG</TargetName>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRules />
<CodeAnalysisRuleAssemblies />
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='debug|x64'">
<ClCompile>
<TreatWarningAsError>true</TreatWarningAsError>
<StringPooling>true</StringPooling>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<BufferSecurityCheck>false</BufferSecurityCheck>
<FloatingPointModel>Fast</FloatingPointModel>
<BasicRuntimeChecks>UninitializedLocalUsageCheck</BasicRuntimeChecks>
<AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4350 /wd4668 /wd4365 /wd4548 /d2Zi+</AdditionalOptions>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>./../../../Include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../Graphics/include/win32/GL;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_HAS_EXCEPTIONS=0;WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PHYSX_PROFILE_SDK;RENDER_SNIPPET;_DEBUG;PX_DEBUG=1;PX_CHECKED=1;PX_NVTX=1;PX_SUPPORT_PVD=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<WarningLevel>Level4</WarningLevel>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile></PrecompiledHeaderFile>
<ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalOptions>/LIBPATH:../../../Lib/vc12win64 PhysX3CommonDEBUG_x64.lib PhysX3DEBUG_x64.lib PhysX3CookingDEBUG_x64.lib PhysX3CharacterKinematicDEBUG_x64.lib PhysX3ExtensionsDEBUG.lib PhysX3VehicleDEBUG.lib PxTaskDEBUG_x64.lib PxFoundationDEBUG_x64.lib PsFastXmlDEBUG_x64.lib PxPvdSDKDEBUG_x64.lib /LIBPATH:../../lib/vc12win64 SnippetUtilsDEBUG.lib /DEBUG</AdditionalOptions>
<AdditionalDependencies>Winmm.lib;OpenGL32.lib;glut32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(OutDir)$(ProjectName)DEBUG.exe</OutputFile>
<AdditionalLibraryDirectories>./../../../Common/lib/vc12win64;./../../lib/vc12win64;./../../../../PxShared/lib/vc12win64;./../../Graphics/lib/win64/glut;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
<GenerateDebugInformation>true</GenerateDebugInformation>
<TargetMachine>MachineX64</TargetMachine>
</Link>
<ResourceCompile>
</ResourceCompile>
<ProjectReference>
</ProjectReference>
<PostBuildEvent>
<Command>XCOPY "../../../../PxShared/bin\vc12win64\PxFoundationDEBUG_x64.dll" "$(OutDir)" /D /Y
 XCOPY "../../../../PxShared/bin\vc12win64\PxPvdSDKDEBUG_x64.dll" "$(OutDir)" /D /Y</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='checked|x64'">
<OutDir>./../../../bin/vc12win64\</OutDir>
<IntDir>./x64/SnippetVehicleMultiThreading/checked\</IntDir>
<TargetExt>.exe</TargetExt>
<TargetName>$(ProjectName)CHECKED</TargetName>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRules />
<CodeAnalysisRuleAssemblies />
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='checked|x64'">
<ClCompile>
<TreatWarningAsError>true</TreatWarningAsError>
<StringPooling>true</StringPooling>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<BufferSecurityCheck>false</BufferSecurityCheck>
<FloatingPointModel>Fast</FloatingPointModel>
<AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4350 /wd4668 /wd4365 /wd4548 /d2Zi+</AdditionalOptions>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>./../../../Include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../Graphics/include/win32/GL;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_HAS_EXCEPTIONS=0;WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PHYSX_PROFILE_SDK;RENDER_SNIPPET;NDEBUG;PX_CHECKED=1;PX_NVTX=1;PX_SUPPORT_PVD=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<WarningLevel>Level4</WarningLevel>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile></PrecompiledHeaderFile>
<ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalOptions>/LIBPATH:../../../Lib/vc12win64 PhysX3CommonCHECKED_x64.lib PhysX3CHECKED_x64.lib PhysX3CookingCHECKED_x64.lib PhysX3CharacterKinematicCHECKED_x64.lib PhysX3ExtensionsCHECKED.lib PhysX3VehicleCHECKED.lib PxTaskCHECKED_x64.lib PxFoundationCHECKED_x64.lib PsFastXmlCHECKED_x64.lib PxPvdSDKCHECKED_x64.lib /LIBPATH:../../lib/vc12win64 SnippetUtilsCHECKED.lib</AdditionalOptions>
<AdditionalDependencies>Winmm.lib;OpenGL32.lib;glut32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(OutDir)$(ProjectName)CHECKED.exe</OutputFile>
<AdditionalLibraryDirectories>./../../../Common/lib/vc12win64;./../../lib/vc12win64;./../../../../PxShared/lib/vc12win64;./../../Graphics/lib/win64/glut;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
<GenerateDebugInformation>true</GenerateDebugInformation>
<TargetMachine>MachineX64</TargetMachine>
</Link>
<ResourceCompile>
</ResourceCompile>
<ProjectReference>
</ProjectReference>
<PostBuildEvent>
<Command>XCOPY "../../../../PxShared/bin\vc12win64\PxFoundationCHECKED_x64.dll" "$(OutDir)" /D /Y
 XCOPY "../../../../PxShared/bin\vc12win64\PxPvdSDKCHECKED_x64.dll" "$(OutDir)" /D /Y</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='profile|x64'">
<OutDir>./../../../bin/vc12win64\</OutDir>
<IntDir>./x64/SnippetVehicleMultiThreading/profile\</IntDir>
<TargetExt>.exe</TargetExt>
<TargetName>$(ProjectName)PROFILE</TargetName>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRules />
<CodeAnalysisRuleAssemblies />
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='profile|x64'">
<ClCompile>
<TreatWarningAsError>true</TreatWarningAsError>
<StringPooling>true</StringPooling>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<BufferSecurityCheck>false</BufferSecurityCheck>
<FloatingPointModel>Fast</FloatingPointModel>
<AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4350 /wd4668 /wd4365 /wd4548 /d2Zi+</AdditionalOptions>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>./../../../Include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../Graphics/include/win32/GL;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_HAS_EXCEPTIONS=0;WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PHYSX_PROFILE_SDK;RENDER_SNIPPET;NDEBUG;PX_PROFILE=1;PX_NVTX=1;PX_SUPPORT_PVD=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<WarningLevel>Level4</WarningLevel>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile></PrecompiledHeaderFile>
<ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalOptions>/INCREMENTAL:NO /LIBPATH:../../../Lib/vc12win64 PhysX3CommonPROFILE_x64.lib PhysX3PROFILE_x64.lib PhysX3CookingPROFILE_x64.lib PhysX3CharacterKinematicPROFILE_x64.lib PhysX3ExtensionsPROFILE.lib PhysX3VehiclePROFILE.lib PxTaskPROFILE_x64.lib PxFoundationPROFILE_x64.lib PsFastXmlPROFILE_x64.lib PxPvdSDKPROFILE_x64.lib /LIBPATH:../../lib/vc12win64 SnippetUtilsPROFILE.lib /DEBUG</AdditionalOptions>
<AdditionalDependencies>Winmm.lib;OpenGL32.lib;glut32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(OutDir)$(ProjectName)PROFILE.exe</OutputFile>
<AdditionalLibraryDirectories>./../../../Common/lib/vc12win64;./../../lib/vc12win64;./../../../../PxShared/lib/vc12win64;./../../Graphics/lib/win64/glut;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
<GenerateDebugInformation>true</GenerateDebugInformation>
<TargetMachine>MachineX64</TargetMachine>
</Link>
<ResourceCompile>
</ResourceCompile>
<ProjectReference>
</ProjectReference>
<PostBuildEvent>
<Command>XCOPY "../../../../PxShared/bin\vc12win64\PxFoundationPROFILE_x64.dll" "$(OutDir)" /D /Y
 XCOPY "../../../../PxShared/bin\vc12win64\PxPvdSDKPROFILE_x64.dll" "$(OutDir)" /D /Y</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|x64'">
<OutDir>./../../../bin/vc12win64\</OutDir>
<IntDir>./x64/SnippetVehicleMultiThreading/release\</IntDir>
<TargetExt>.exe</TargetExt>
<TargetName>$(ProjectName)</TargetName>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRules />
<CodeAnalysisRuleAssemblies />
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='release|x64'">
<ClCompile>
<TreatWarningAsError>true</TreatWarningAsError>
<StringPooling>true</StringPooling>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<BufferSecurityCheck>false</BufferSecurityCheck>
<FloatingPointModel>Fast</FloatingPointModel>
<AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4350 /wd4668 /wd4365 /wd4548 /d2Zi+</AdditionalOptions>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>./../../../Include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../Graphics/include/win32/GL;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_HAS_EXCEPTIONS=0;WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PHYSX_PROFILE_SDK;RENDER_SNIPPET;NDEBUG;PX_SUPPORT_PVD=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<WarningLevel>Level4</WarningLevel>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile></PrecompiledHeaderFile>
<ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalOptions>/INCREMENTAL:NO /LIBPATH:../../../Lib/vc12win64 PhysX3Common_x64.lib PhysX3_x64.lib PhysX3Cooking_x64.lib PhysX3CharacterKinematic_x64.lib PhysX3Extensions.lib PhysX3Vehicle.lib PxTask_x64.lib PxFoundation_x64.lib PsFastXml_x64.lib PxPvdSDK_x64.lib /LIBPATH:../../lib/vc12win64 SnippetUtils.lib</AdditionalOptions>
<AdditionalDependencies>Winmm.lib;OpenGL32.lib;glut32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(OutDir)$(ProjectName).exe</OutputFile>
<AdditionalLibraryDirectories>./../../../Common/lib/vc12win64;./../../lib/vc12win64;./../../../../PxShared/lib/vc12win64;./../../Graphics/lib/win64/glut;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
<GenerateDebugInformation>true</GenerateDebugInformation>
<TargetMachine>MachineX64</TargetMachine>
</Link>
<ResourceCompile>
</ResourceCompile>
<ProjectReference>
</ProjectReference>
<PostBuildEvent>
<Command>XCOPY "../../../../PxShared/bin\vc12win64\PxFoundation_x64.dll" "$(OutDir)" /D /Y
 XCOPY "../../../../PxShared/bin\vc12win64\PxPvdSDK_x64.dll" "$(OutDir)" /D /Y</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\SnippetCommon\ClassicMain.cpp">
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\SnippetVehicleMultiThreading\SnippetVehicleMultiThreading.cpp">
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\SnippetVehicleCommon\SnippetVehicle4WCreate.cpp">
</ClCompile>
<ClCompile Include="..\..\SnippetVehicleCommon\SnippetVehicleCreate.cpp">
</ClCompile>
<ClCompile Include="..\..\SnippetVehicleCommon\SnippetVehicleFilterShader.cpp">
</ClCompile>
<ClCompile Include="..\..\SnippetVehicleCommon\SnippetVehicleNoDriveCreate.cpp">
</ClCompile>
<ClCompile Include="..\..\SnippetVehicleCommon\SnippetVehicleSceneQuery.cpp">
</ClCompile>
<ClCompile Include="..\..\SnippetVehicleCommon\SnippetVehicleTankCreate.cpp">
</ClCompile>
<ClCompile Include="..\..\SnippetVehicleCommon\SnippetVehicleTireFriction.cpp">
</ClCompile>
<ClInclude Include="..\..\SnippetVehicleCommon\SnippetVehicleConcurrency.h">
</ClInclude>
<ClInclude Include="..\..\SnippetVehicleCommon\SnippetVehicleCreate.h">
</ClInclude>
<ClInclude Include="..\..\SnippetVehicleCommon\SnippetVehicleFilterShader.h">
</ClInclude>
<ClInclude Include="..\..\SnippetVehicleCommon\SnippetVehicleSceneQuery.h">
</ClInclude>
<ClInclude Include="..\..\SnippetVehicleCommon\SnippetVehicleTireFriction.h">
</ClInclude>
<ClInclude Include="..\..\SnippetVehicleCommon\SnippetVehicleWheelQueryResult.h">
</ClInclude>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="./SnippetUtils.vcxproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="./SnippetRender.vcxproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"></ImportGroup>
</Project>
``` | /content/code_sandbox/PhysX_3.4/Snippets/compiler/vc12win64/SnippetVehicleMultiThreading.vcxproj | xml | 2016-10-12T16:34:31 | 2024-08-16T09:40:38 | PhysX-3.4 | NVIDIAGameWorks/PhysX-3.4 | 2,343 | 5,043 |
```xml
export const PERMISSION_INVITE_USERS = 0x0000000000010000;
export const PERMISSION_MANAGE_USERS = 0x0000000000000400;
export const PERMISSION_MANAGE_FEDERATION = 0x0000000000000020;
export const PERMISSION_MANAGE_REPORTS = 0x0000000000000010;
``` | /content/code_sandbox/app/javascript/mastodon/permissions.ts | xml | 2016-02-22T15:01:25 | 2024-08-16T19:27:35 | mastodon | mastodon/mastodon | 46,560 | 73 |
```xml
import dedent from 'dedent-js';
import { format as originalFormat, FormatFn } from '../src/sqlFormatter.js';
import behavesLikeMariaDbFormatter from './behavesLikeMariaDbFormatter.js';
import supportsJoin from './features/join.js';
import supportsOperators from './features/operators.js';
import supportsWindow from './features/window.js';
import supportsSetOperations from './features/setOperations.js';
import supportsLimiting from './features/limiting.js';
import supportsCreateTable from './features/createTable.js';
import supportsParams from './options/param.js';
import supportsCreateView from './features/createView.js';
import supportsAlterTable from './features/alterTable.js';
import supportsStrings from './features/strings.js';
import supportsConstraints from './features/constraints.js';
import supportsDataTypeCase from './options/dataTypeCase.js';
describe('MySqlFormatter', () => {
const language = 'mysql';
const format: FormatFn = (query, cfg = {}) => originalFormat(query, { ...cfg, language });
behavesLikeMariaDbFormatter(format);
// in addition to string types listed in behavesLikeMariaDbFormatter
supportsStrings(format, ["N''"]);
supportsJoin(format, {
without: ['FULL'],
additionally: ['STRAIGHT_JOIN'],
});
supportsSetOperations(format, ['UNION', 'UNION ALL', 'UNION DISTINCT']);
supportsOperators(
format,
['%', ':=', '&', '|', '^', '~', '<<', '>>', '<=>', '->', '->>', '&&', '||', '!'],
{
logicalOperators: ['AND', 'OR', 'XOR'],
any: true,
}
);
supportsWindow(format);
supportsLimiting(format, { limit: true, offset: true });
supportsCreateTable(format, { ifNotExists: true, columnComment: true, tableComment: true });
supportsConstraints(format, [
'RESTRICT',
'CASCADE',
'SET NULL',
'NO ACTION',
'NOW',
'CURRENT_TIMESTAMP',
]);
supportsParams(format, { positional: true });
supportsCreateView(format, { orReplace: true });
supportsAlterTable(format, {
addColumn: true,
dropColumn: true,
modify: true,
renameTo: true,
renameColumn: true,
});
supportsDataTypeCase(format);
it(`supports @"name" variables`, () => {
expect(format(`SELECT @"foo fo", @"foo\\"x", @"foo""y" FROM tbl;`)).toBe(dedent`
SELECT
@"foo fo",
@"foo\\"x",
@"foo""y"
FROM
tbl;
`);
});
it(`supports @'name' variables`, () => {
expect(format(`SELECT @'bar ar', @'bar\\'x', @'bar''y' FROM tbl;`)).toBe(dedent`
SELECT
@'bar ar',
@'bar\\'x',
@'bar''y'
FROM
tbl;
`);
});
it('formats ALTER TABLE ... ALTER COLUMN', () => {
expect(
format(
`ALTER TABLE t ALTER COLUMN foo SET DEFAULT 10;
ALTER TABLE t ALTER COLUMN foo DROP DEFAULT;`
)
).toBe(dedent`
ALTER TABLE t
ALTER COLUMN foo
SET DEFAULT 10;
ALTER TABLE t
ALTER COLUMN foo
DROP DEFAULT;
`);
});
});
``` | /content/code_sandbox/test/mysql.test.ts | xml | 2016-09-12T13:09:04 | 2024-08-16T10:30:12 | sql-formatter | sql-formatter-org/sql-formatter | 2,272 | 739 |
```xml
import { EventEmitter } from "events"
import { pathExistsSync } from "fs-extra"
import * as path from "path"
import * as mkdirp from "mkdirp"
import * as Oni from "oni-api"
import * as Log from "oni-core-logging"
import { Event, IDisposable, IEvent } from "oni-types"
import * as Performance from "./../Performance"
import { CommandContext } from "./CommandContext"
import { EventContext } from "./EventContext"
import { addDefaultUnitIfNeeded, measureFont } from "./../Font"
import * as Platform from "./../Platform"
import { Configuration } from "./../Services/Configuration"
import * as Actions from "./actions"
import { NeovimBufferReference } from "./MsgPack"
import { INeovimAutoCommands, NeovimAutoCommands } from "./NeovimAutoCommands"
import { INeovimMarks, NeovimMarks } from "./NeovimMarks"
import { INeovimStartOptions, startNeovim } from "./NeovimProcessSpawner"
import { IQuickFixList, QuickFixList } from "./QuickFix"
import { IPixelPosition, IPosition } from "./Screen"
import { Session } from "./Session"
import { PromiseQueue } from "./../Services/Language/PromiseQueue"
import { TokenColor } from "./../Services/TokenColors"
import { INeovimBufferUpdate, NeovimBufferUpdateManager } from "./NeovimBufferUpdateManager"
import { NeovimTokenColorSynchronizer } from "./NeovimTokenColorSynchronizer"
import {
IVimHighlight,
VimHighlightToDefaultScope,
vimHighlightToTokenColorStyle,
} from "./VimHighlights"
export interface INeovimYankInfo {
operator: string
regcontents: string[]
regname: string
regtype: string
}
export interface INeovimApiVersion {
major: number
minor: number
patch: number
}
export interface IFullBufferUpdateEvent {
context: EventContext
bufferLines: string[]
}
export interface IIncrementalBufferUpdateEvent {
context: EventContext
lineNumber: number
lineContents: string
}
export interface INeovimCompletionItem {
word: string
kind: string
menu: string
info: string
}
export interface INeovimCompletionInfo {
items: INeovimCompletionItem[]
selectedIndex: number
row: number
col: number
}
export type CommandLineContent = [any, string]
export type MapcheckModes = "n" | "v" | "i"
interface IMapping {
key: string
mode: MapcheckModes
}
export interface INeovimCommandLineShowEvent {
content: CommandLineContent[]
pos: number
firstc: string
prompt: string
indent: number
level: number
}
export interface IWildMenuShowEvent {
options: string[]
}
export interface IWildMenuSelectEvent {
selected: any
}
export interface INeovimCommandLineSetCursorPosition {
pos: number
level: number
}
export interface IMessageInfo {
severity: "warn" | "error" | "info"
title: string
details: string
}
// Limit for the number of lines to handle buffer updates
// If the file is too large, it ends up being too much traffic
// between Neovim <-> Oni <-> Language Servers - so
// set a hard limit. In the future, if need be, this could be
// moved to a configuration setting.
export const MAX_LINES_FOR_BUFFER_UPDATE = 5000
export type NeovimEventHandler = (...args: any[]) => void
export interface INeovimEvent {
eventName: string
eventContext: EventContext
}
export interface INeovimInstance {
cursorPosition: IPosition
quickFix: IQuickFixList
// Events
onYank: IEvent<INeovimYankInfo>
onBufferUpdate: IEvent<INeovimBufferUpdate>
onRedrawComplete: IEvent<void>
onScroll: IEvent<EventContext>
onTitleChanged: IEvent<string>
// When an OniCommand is requested, ie :OniCommand("quickOpen.show")
onOniCommand: IEvent<CommandContext>
onHidePopupMenu: IEvent<void>
onShowPopupMenu: IEvent<INeovimCompletionInfo>
onColorsChanged: IEvent<void>
onCommandLineShow: IEvent<INeovimCommandLineShowEvent>
onCommandLineHide: IEvent<void>
onCommandLineSetCursorPosition: IEvent<INeovimCommandLineSetCursorPosition>
onMessage: IEvent<IMessageInfo>
onVimEvent: IEvent<INeovimEvent>
autoCommands: INeovimAutoCommands
marks: INeovimMarks
screenToPixels(row: number, col: number): IPixelPosition
/**
* Supply input (keyboard/mouse) to Neovim
*/
input(inputString: string): Promise<void>
/**
* Call a VimL function
*/
callFunction(functionName: string, args: any[]): Promise<any>
/**
* Change the working directory of Neovim
*/
chdir(directoryPath: string): Promise<any>
/**
* Execute a VimL command
*/
command(command: string): Promise<any>
/**
* Evaluate a VimL block
*/
eval(expression: string): Promise<any>
// TODO:
// - Refactor remaining events into strongly typed events, as part of the interface
on(event: string, handler: NeovimEventHandler): void
setFont(fontFamily: string, fontSize: string, fontWeight: string, linePadding: number): void
getBufferIds(): Promise<number[]>
getApiVersion(): Promise<INeovimApiVersion>
open(fileName: string): Promise<void>
openInitVim(): Promise<void>
}
/**
* Integration with NeoVim API
*/
export class NeovimInstance extends EventEmitter implements INeovimInstance {
private _neovim: Session
private _isDisposed: boolean = false
private _initPromise: Promise<void>
private _isLeaving: boolean
private _currentVimDirectory: string
private _inputQueue: PromiseQueue = new PromiseQueue()
private _configuration: Configuration
private _autoCommands: NeovimAutoCommands
private _fontFamily: string
private _fontSize: string
private _fontWeight: string
private _fontWidthInPixels: number
private _fontHeightInPixels: number
private _lastHeightInPixels: number
private _lastWidthInPixels: number
private _rows: number
private _cols: number
private _quickFix: QuickFixList
private _marks: NeovimMarks
private _initComplete: boolean
private _onDirectoryChanged = new Event<string>()
private _onErrorEvent = new Event<Error | string>()
private _onYank = new Event<INeovimYankInfo>()
private _onOniCommand = new Event<CommandContext>()
private _onRedrawComplete = new Event<void>()
private _onScroll = new Event<EventContext>()
private _onTitleChanged = new Event<string>()
private _onModeChanged = new Event<Oni.Vim.Mode>()
private _onHidePopupMenu = new Event<void>()
private _onShowPopupMenu = new Event<INeovimCompletionInfo>()
private _onSelectPopupMenu = new Event<number>()
private _onLeave = new Event<void>()
private _onMessage = new Event<IMessageInfo>()
private _onColorsChanged = new Event<void>()
private _onCommandLineShowEvent = new Event<INeovimCommandLineShowEvent>()
private _onCommandLineHideEvent = new Event<void>()
private _onCommandLineSetCursorPositionEvent = new Event<INeovimCommandLineSetCursorPosition>()
private _onVimEvent = new Event<INeovimEvent>()
private _onWildMenuHideEvent = new Event<void>()
private _onWildMenuSelectEvent = new Event<IWildMenuSelectEvent>()
private _onWildMenuShowEvent = new Event<IWildMenuShowEvent>()
private _bufferUpdateManager: NeovimBufferUpdateManager
private _tokenColorSynchronizer: NeovimTokenColorSynchronizer
private _pendingScrollTimeout: number | null = null
private _disposables: IDisposable[] = []
public get isInitialized(): boolean {
return this._initComplete
}
public get quickFix(): IQuickFixList {
return this._quickFix
}
public get onBufferUpdate(): IEvent<INeovimBufferUpdate> {
return this._bufferUpdateManager.onBufferUpdate
}
public get onColorsChanged(): IEvent<void> {
return this._onColorsChanged
}
public get onDirectoryChanged(): IEvent<string> {
return this._onDirectoryChanged
}
public get onError(): IEvent<Error | string> {
return this._onErrorEvent
}
public get onLeave(): IEvent<void> {
return this._onLeave
}
public get onMessage(): IEvent<IMessageInfo> {
return this._onMessage
}
public get onModeChanged(): IEvent<Oni.Vim.Mode> {
return this._onModeChanged
}
public get onOniCommand(): IEvent<CommandContext> {
return this._onOniCommand
}
public get onRedrawComplete(): IEvent<void> {
return this._onRedrawComplete
}
public get onScroll(): IEvent<EventContext> {
return this._onScroll
}
public get onTitleChanged(): IEvent<string> {
return this._onTitleChanged
}
public get onHidePopupMenu(): IEvent<void> {
return this._onHidePopupMenu
}
public get onSelectPopupMenu(): IEvent<number> {
return this._onSelectPopupMenu
}
public get onShowPopupMenu(): IEvent<INeovimCompletionInfo> {
return this._onShowPopupMenu
}
public get onCommandLineShow(): IEvent<INeovimCommandLineShowEvent> {
return this._onCommandLineShowEvent
}
public get onCommandLineHide(): IEvent<void> {
return this._onCommandLineHideEvent
}
public get onCommandLineSetCursorPosition(): IEvent<INeovimCommandLineSetCursorPosition> {
return this._onCommandLineSetCursorPositionEvent
}
public get onVimEvent(): IEvent<INeovimEvent> {
return this._onVimEvent
}
public get onWildMenuShow(): IEvent<IWildMenuShowEvent> {
return this._onWildMenuShowEvent
}
public get onWildMenuSelect(): IEvent<IWildMenuSelectEvent> {
return this._onWildMenuSelectEvent
}
public get onWildMenuHide(): IEvent<void> {
return this._onWildMenuHideEvent
}
public get onYank(): IEvent<INeovimYankInfo> {
return this._onYank
}
public get autoCommands(): INeovimAutoCommands {
return this._autoCommands
}
public get marks(): INeovimMarks {
return this._marks
}
public get tokenColorSynchronizer(): NeovimTokenColorSynchronizer {
return this._tokenColorSynchronizer
}
public get currentVimDirectory(): string {
return this._currentVimDirectory
}
constructor(widthInPixels: number, heightInPixels: number, configuration: Configuration) {
super()
this._configuration = configuration
this._fontFamily = this._configuration.getValue("editor.fontFamily")
this._fontSize = addDefaultUnitIfNeeded(this._configuration.getValue("editor.fontSize"))
this._fontWeight = this._configuration.getValue("editor.fontWeight")
this._lastWidthInPixels = widthInPixels
this._lastHeightInPixels = heightInPixels
this._quickFix = new QuickFixList(this)
this._autoCommands = new NeovimAutoCommands(this)
this._marks = new NeovimMarks(this)
this._tokenColorSynchronizer = new NeovimTokenColorSynchronizer(this)
this._bufferUpdateManager = new NeovimBufferUpdateManager(this._configuration, this)
const s1 = this._onModeChanged.subscribe(newMode => {
this._bufferUpdateManager.notifyModeChanged(newMode)
})
const dispatchScroll = () => this._dispatchScrollEvent()
const s2 = this._autoCommands.onCursorMoved.subscribe(dispatchScroll)
const s3 = this._autoCommands.onCursorMovedI.subscribe(dispatchScroll)
this._disposables = [s1, s2, s3]
}
public dispose(): void {
if (this._neovim) {
this._neovim.dispose()
this._neovim = null
}
if (this._disposables) {
this._disposables.forEach(d => d.dispose())
}
this._configuration = null
}
public async chdir(directoryPath: string): Promise<void> {
await this.command(`cd! ${directoryPath}`)
}
public async checkUserMapping({ key, mode = "n" }: IMapping) {
const mapping: string = await this.callFunction("mapcheck", [key, mode])
return { key, mapping }
}
public async checkUserMappings(keys: IMapping[]) {
const mappings = await Promise.all(keys.map(this.checkUserMapping))
return mappings
}
// Make a direct request against the msgpack API
public async request<T>(request: string, args: any[]): Promise<T> {
if (!this._neovim || this._neovim.isDisposed) {
Log.warn("[NeovimInstance::request] Attempted to request on a disposed neovim instance")
return null
}
return this._neovim.request<T>(request, args)
}
public async getContext(): Promise<EventContext> {
return this.callFunction("OniGetContext", [])
}
public async start(startOptions?: INeovimStartOptions): Promise<void> {
Performance.startMeasure("NeovimInstance.Start")
this._initPromise = startNeovim(startOptions).then(async nv => {
Log.info("NeovimInstance: Neovim started")
// Workaround for issue where UI
// can fail to attach if there is a UI-blocking error
// nv.input("<ESC>")
this._neovim = nv
this._neovim.on("error", (err: Error) => {
this._onError(err)
})
this._neovim.on("notification", (method: any, args: any) =>
this._onNotification(method, args),
)
this._neovim.on("request", (method: any, _args: any, _resp: any) => {
Log.warn("Unhandled request: " + method)
})
this._neovim.on("disconnect", () => {
if (!this._isLeaving) {
this._onError(
"Neovim disconnected. This likely means that the Neovim process crashed.",
)
}
})
await this._checkAndFixIfBlocked()
const size = this._getSize()
this._rows = size.rows
this._cols = size.cols
// Workaround for bug in neovim/node-client
// The 'uiAttach' method overrides the new 'nvim_ui_attach' method
Performance.startMeasure("NeovimInstance.Start.Attach")
return this._attachUI(size.cols, size.rows).then(
async () => {
Log.info("Attach success")
Performance.endMeasure("NeovimInstance.Start.Attach")
// TODO: #702 - Batch these calls via `nvim_call_atomic`
// Override completeopt so Oni works correctly with external popupmenu
// await this.command("set completeopt=longest,menu")
// set title after attaching listeners so we can get the initial title
await this.command("set title")
Performance.endMeasure("NeovimInstance.Start")
this._initComplete = true
},
(err: any) => {
this._onError(err)
this._initComplete = true
},
)
})
return this._initPromise
}
public async getTokenColors(): Promise<TokenColor[]> {
const vimHighlights = Object.keys(VimHighlightToDefaultScope)
const atomicCalls = vimHighlights.map(highlight => {
return ["nvim_get_hl_by_name", [highlight, 1]]
})
const [highlightInfo] = await this.request<[IVimHighlight[]]>("nvim_call_atomic", [
atomicCalls,
])
const ret = highlightInfo.reduce(
(prev: TokenColor[], currentValue: IVimHighlight, currentIndex: number) => {
const highlightGroupName = vimHighlights[currentIndex]
const settings = vimHighlightToTokenColorStyle(currentValue)
const newScopeNames: string[] = VimHighlightToDefaultScope[highlightGroupName] || []
const newScopes = newScopeNames.map(scope => ({
scope: [scope],
settings,
}))
return [...prev, ...newScopes]
},
[] as TokenColor[],
)
return ret
}
public setFont(
fontFamily: string,
fontSize: string,
fontWeight: string,
linePadding: number,
): void {
this._fontFamily = fontFamily
this._fontSize = fontSize
this._fontWeight = fontWeight
const { width, height, isBoldAvailable, isItalicAvailable } = measureFont(
this._fontFamily,
this._fontSize,
this._fontWeight,
)
this._fontWidthInPixels = width
this._fontHeightInPixels = height + linePadding
this.emit(
"action",
Actions.setFont({
fontFamily,
fontSize,
fontWeight,
fontWidthInPixels: width,
fontHeightInPixels: height + linePadding,
linePaddingInPixels: linePadding,
isItalicAvailable,
isBoldAvailable,
}),
)
this.resize(this._lastWidthInPixels, this._lastHeightInPixels)
}
public open(fileName: string): Promise<void> {
return this.command(`e! ${fileName}`)
}
/**
* closeAllBuffers
*
* silently close all open buffers
*/
public async closeAllBuffers() {
await this.command(`silent! %bdelete`)
}
/**
* getInitVimPath
* return the init vim path with no check to ensure existence
*/
public getInitVimPath(): string {
// tslint:disable no-string-literal
const MYVIMRC = process.env["MYVIMRC"]
const rootFolder = Platform.isWindows()
? // Use path from: path_to_url
path.join(process.env["LOCALAPPDATA"], "nvim")
: path.join(Platform.getUserHome(), ".config", "nvim")
const initVimPath = MYVIMRC || path.join(rootFolder, "init.vim")
return initVimPath
// tslint:enable no-string-literal
}
/**
* doesInitVimExist
* Returns the init.vim path after checking the file exists
*/
public doesInitVimExist(): string {
const initVimPath = this.getInitVimPath()
try {
return pathExistsSync(initVimPath) ? initVimPath : null
} catch (e) {
return null
}
}
public openInitVim(): Promise<void> {
const loadInitVim = this._configuration.getValue("oni.loadInitVim")
if (typeof loadInitVim === "string") {
return this.open(loadInitVim)
} else {
const initVimPath = this.getInitVimPath()
const rootFolder = path.dirname(initVimPath)
mkdirp.sync(rootFolder)
return this.open(initVimPath)
}
}
public eval<T>(expression: string): Promise<T> {
return this.request("nvim_eval", [expression])
}
public command(command: string): Promise<any> {
Log.verbose("[NeovimInstance] Executing command: " + command)
return this.request<any>("nvim_command", [command])
}
public callFunction(functionName: string, args: any[]): Promise<any> {
return this.request<void>("nvim_call_function", [functionName, args])
}
public async getBufferIds(): Promise<number[]> {
const buffers = await this.request<NeovimBufferReference[]>("nvim_list_bufs", [])
return buffers.map(b => b.id as any)
}
public async getCurrentWorkingDirectory(): Promise<string> {
const currentWorkingDirectory = await this.eval<string>("getcwd()")
return path.normalize(currentWorkingDirectory)
}
public get cursorPosition(): IPosition {
return {
row: 0,
column: 0,
}
}
public screenToPixels(_row: number, _col: number): IPixelPosition {
return {
x: 0,
y: 0,
}
}
public input(inputString: string): Promise<void> {
return this._inputQueue.enqueuePromise(async () => {
await this._neovim.request("nvim_input", [inputString])
})
}
public blockInput(func: (opt?: any) => Promise<void>): void {
const forceInput = (inputString: string) => {
return this._neovim.request("nvim_input", [inputString])
}
this._inputQueue.enqueuePromise(async () => {
await func(forceInput)
})
}
public resize(widthInPixels: number, heightInPixels: number): Promise<{}> {
this._lastWidthInPixels = widthInPixels
this._lastHeightInPixels = heightInPixels
const size = this._getSize()
return this._resizeInternal(size.rows, size.cols)
}
public async getApiVersion(): Promise<INeovimApiVersion> {
const versionInfo = await this._neovim.request("nvim_get_api_info", [])
return versionInfo[1].version as any
}
public async quit(): Promise<void> {
// This command won't resolve the promise (since it's quitting),
// so we're not awaiting..
// TODO: Is there a way we can deterministically resolve the promise? Like use the `VimLeave` event?
this.command(":qa!")
}
private async _checkAndFixIfBlocked(): Promise<void> {
Log.info("[NeovimInstance::_checkAndFixIfBlocked] checking mode...")
const mode: any = await this._neovim.request("nvim_get_mode", [])
if (mode && mode.blocking) {
Log.info("[NeovimInstance::_checkAndFixIfBlocked] mode is blocking, attempt to cancel.")
// The UI is blocked on some error message.
// Let's grab the message and show it, and unblock the UI
await this.input("<esc>")
const output = await this._neovim.request<string>("nvim_command_output", [":messages"])
Log.info("[NeovimInstance::_checkAndFixIfBlocked] sent esc, getting command")
this._onMessage.dispatch({
severity: "error",
title: "Problem loading `init.vim`:",
details: output,
})
} else {
Log.info("[NeovimInstance::_checkAndFixIfBlocked] Not blocking mode.")
}
}
private _dispatchScrollEvent(): void {
if (this._pendingScrollTimeout || this._isDisposed) {
return
}
this._pendingScrollTimeout = window.setTimeout(async () => {
if (this._isDisposed) {
return
}
const evt = await this.getContext()
this._onScroll.dispatch(evt)
this._pendingScrollTimeout = null
})
}
private _resizeInternal(rows: number, columns: number): Promise<{}> {
if (this._configuration.hasValue("debug.fixedSize")) {
const fixedSize = this._configuration.getValue("debug.fixedSize")
rows = fixedSize.rows
columns = fixedSize.columns
Log.warn("Overriding screen size based on debug.fixedSize")
}
if (rows === this._rows && columns === this._cols) {
return Promise.resolve({})
}
this._rows = rows
this._cols = columns
// If _initPromise isn't initialized, it means the UI hasn't attached to NeoVim
// yet. In that case, we don't need to call uiTryResize
if (!this._initPromise) {
return Promise.resolve({})
}
return this._initPromise.then(() => {
return this._neovim.request("nvim_ui_try_resize", [columns, rows])
})
}
private _getSize() {
const rows = Math.floor(this._lastHeightInPixels / this._fontHeightInPixels)
const cols = Math.floor(this._lastWidthInPixels / this._fontWidthInPixels)
return { rows, cols }
}
private _handleNotification(_method: any, args: any): void {
if (this._isDisposed) {
Log.warn(`[NeovimInstance] - ignoring ${_method} because disposed`)
return
}
args.forEach((a: any[]) => {
const command = a[0]
a = a.slice(1)
switch (command) {
case "cursor_goto":
this.emit("action", Actions.createCursorGotoAction(a[0][0], a[0][1]))
break
case "put":
const charactersToPut = a.map(v => v[0])
this.emit("action", Actions.put(charactersToPut))
break
case "set_scroll_region":
const param = a[0]
this.emit(
"action",
Actions.setScrollRegion(param[0], param[1], param[2], param[3]),
)
break
case "scroll":
this.emit("action", Actions.scroll(a[0][0]))
this._dispatchScrollEvent()
break
case "highlight_set":
const highlightInfo = a[a.length - 1][0]
this.emit(
"action",
Actions.setHighlight(
!!highlightInfo.bold,
!!highlightInfo.italic,
!!highlightInfo.reverse,
!!highlightInfo.underline,
!!highlightInfo.undercurl,
highlightInfo.foreground,
highlightInfo.background,
highlightInfo.special,
),
)
break
case "resize":
this.emit("action", Actions.resize(a[0][0], a[0][1]))
break
case "set_title":
this._onTitleChanged.dispatch(a[0][0])
break
case "set_icon":
// window title when minimized, no-op
break
case "eol_clear":
this.emit("action", Actions.clearToEndOfLine())
break
case "clear":
this.emit("action", Actions.clear())
break
case "mouse_on":
// TODO
break
case "update_bg":
this.emit("action", Actions.updateBackground(a[0][0]))
break
case "update_fg":
this.emit("action", Actions.updateForeground(a[0][0]))
break
case "mode_change":
const newMode = a[a.length - 1][0]
this.emit("action", Actions.changeMode(newMode))
this._onModeChanged.dispatch(newMode as Oni.Vim.Mode)
break
case "popupmenu_select":
this._onSelectPopupMenu.dispatch(a[0][0])
break
case "popupmenu_hide":
this._onHidePopupMenu.dispatch()
break
case "popupmenu_show":
const [items, selected, row, col] = a[0]
const mappedItems = items.map((item: string[]) => {
const [word, kind, menu, info] = item
return {
word,
kind,
menu,
info,
}
})
const completionInfo: INeovimCompletionInfo = {
items: mappedItems,
selectedIndex: selected,
row,
col,
}
this._onShowPopupMenu.dispatch(completionInfo)
break
case "tabline_update":
const [currentTab, tabs] = a[0]
const mappedTabs: any = tabs.map((t: any) => ({
id: t.tab.id,
name: t.name,
}))
this.emit("tabline-update", currentTab.id, mappedTabs)
break
case "bell":
const bellUrl = this._configuration.getValue("oni.audio.bellUrl")
if (bellUrl) {
const audio = new Audio(bellUrl)
audio.play()
}
break
case "cmdline_show":
{
const [content, pos, firstc, prompt, indent, level] = a[0]
const commandLineShowInfo: INeovimCommandLineShowEvent = {
content,
pos,
firstc,
prompt,
indent,
level,
}
this._onCommandLineShowEvent.dispatch(commandLineShowInfo)
}
break
case "cmdline_pos":
{
const [pos, level] = a[0]
const commandLinePositionInfo: INeovimCommandLineSetCursorPosition = {
pos,
level,
}
this._onCommandLineSetCursorPositionEvent.dispatch(commandLinePositionInfo)
}
break
case "cmdline_hide":
this._onCommandLineHideEvent.dispatch()
break
case "wildmenu_show":
const [[options]] = a
this._onWildMenuShowEvent.dispatch({ options })
break
case "wildmenu_select":
const [[selection]] = a
this._onWildMenuSelectEvent.dispatch({ selected: selection })
break
case "wildmenu_hide":
this._onWildMenuHideEvent.dispatch()
break
case "update_sp":
case "mode_info_set":
case "busy_start":
case "busy_stop":
Log.verbose("Ignore command: " + command)
break
default:
Log.warn("Unhandled command: " + command)
}
})
}
private _onError(error: Error | string): void {
Log.error(error)
this._onErrorEvent.dispatch(error)
}
private _onNotification(method: string, args: any): void {
if (method === "redraw") {
this._handleNotification(method, args)
this._onRedrawComplete.dispatch()
} else if (method === "oni_plugin_notify") {
const pluginArgs = args[0]
const pluginMethod = pluginArgs.shift()
// TODO: Update pluginManager to subscribe from event here, instead of dupliating this
if (pluginMethod === "buffer_update") {
const eventContext: EventContext = args[0][0]
this._bufferUpdateManager.notifyFullBufferUpdate(eventContext)
} else if (pluginMethod === "oni_yank") {
this._onYank.dispatch(args[0][0])
} else if (pluginMethod === "oni_command") {
this._onOniCommand.dispatch(args[0][0])
} else if (pluginMethod === "event") {
const eventName = args[0][0]
const eventContext = args[0][1]
if (eventName === "DirChanged") {
this._updateProcessDirectory()
} else if (eventName === "VimLeave") {
this._isLeaving = true
this._onLeave.dispatch()
} else if (eventName === "ColorScheme") {
this._onColorsChanged.dispatch()
}
this._autoCommands.notifyAutocommand(eventName, eventContext)
this._dispatchEvent(eventName, eventContext)
} else if (pluginMethod === "incremental_buffer_update") {
const eventContext = args[0][0]
const lineContents = args[0][1]
const lineNumber = args[0][2]
this._bufferUpdateManager.notifyIncrementalBufferUpdate(
eventContext,
lineNumber,
lineContents,
)
} else {
Log.warn("Unknown event from oni_plugin_notify: " + pluginMethod)
}
} else {
Log.warn("Unknown notification: " + method)
}
}
private _dispatchEvent(eventName: string, context: any): void {
const eventContext: EventContext = context.current || context
this._onVimEvent.dispatch({
eventName,
eventContext,
})
// TODO: Remove this
this.emit("event", eventName, eventContext)
}
private async _updateProcessDirectory(): Promise<void> {
this._currentVimDirectory = await this.getCurrentWorkingDirectory()
this._onDirectoryChanged.dispatch(this._currentVimDirectory)
}
private async _attachUI(columns: number, rows: number): Promise<void> {
const version = await this.getApiVersion()
const useNativeTabs = this._configuration.getValue("tabs.mode") === "native"
const useNativePopupWindows =
this._configuration.getValue("editor.completions.mode") === "native"
const externaliseTabline = !useNativeTabs
const externalisePopupWindows = !useNativePopupWindows
Log.info(
`[NeovimInstance::_attachUI] Neovim version reported as ${version.major}.${
version.minor
}.${version.patch}`,
) // tslint:disable-line no-console
const startupOptions = this._getStartupOptionsForVersion(
version.major,
version.minor,
version.patch,
externaliseTabline,
externalisePopupWindows,
)
Log.info(
`[NeovimInstance::_attachUI] Using startup options: ${JSON.stringify(
startupOptions,
)} and size: ${columns}, ${rows}`,
)
await this._neovim.request("nvim_ui_attach", [columns, rows, startupOptions])
}
private _getStartupOptionsForVersion(
major: number,
minor: number,
patch: number,
shouldExtTabs: boolean,
shouldExtPopups: boolean,
) {
if (major > 0 || minor > 2 || (minor === 2 && patch >= 1)) {
const useExtCmdLine = this._configuration.getValue("commandline.mode")
const useExtWildMenu = this._configuration.getValue("wildmenu.mode")
return {
rgb: true,
popupmenu_external: shouldExtPopups,
ext_tabline: shouldExtTabs,
ext_cmdline: useExtCmdLine,
ext_wildmenu: useExtWildMenu,
}
} else if (major === 0 && minor === 2) {
// 0.1 and below does not support external tabline
// See #579 for more info on the manifestation.
return {
rgb: true,
popupmenu_external: shouldExtPopups,
}
} else {
throw new Error("Unsupported version of Neovim.")
}
}
}
``` | /content/code_sandbox/browser/src/neovim/NeovimInstance.ts | xml | 2016-11-16T14:42:55 | 2024-08-14T11:48:05 | oni | onivim/oni | 11,355 | 7,668 |
```xml
import { useUpdateEffect } from 'ahooks';
import clamp from 'lodash/clamp';
import isEqual from 'lodash/isEqual';
import * as React from 'react';
import PickerView, {
PickerColumnItem,
PickerValue,
PickerViewCssVars,
PickerViewInstance,
} from '../picker-view';
import { resolved } from '../picker-view/utils';
import { HTMLProps } from '../utils/utilityTypes';
import { BaseDatePickerViewProps, COLUMN_TYPE } from './interface';
import {
dateToNumberArray,
generateDatePickerColumns,
numberArrayToDate,
useRenderLabel,
} from './utils';
const currentYear = new Date().getFullYear();
export type DatePickerViewProps = BaseDatePickerViewProps & HTMLProps<PickerViewCssVars>;
export interface DatePickerViewInstance {
value: Date;
items: PickerColumnItem[];
reset: () => void;
}
const DatePickerView = React.forwardRef<DatePickerViewInstance, DatePickerViewProps>(
(props, ref) => {
const {
min = new Date(new Date().setFullYear(currentYear - 10)),
max = new Date(new Date().setFullYear(currentYear + 10)),
columnType = [COLUMN_TYPE.YEAR, COLUMN_TYPE.MONTH, COLUMN_TYPE.DAY],
value,
defaultValue,
filter,
renderLabel,
onChange,
...rest
} = props;
const pickerViewRef = React.useRef<PickerViewInstance>(null);
const [innerValue, setInnerValue] = React.useState(value || defaultValue);
const prevColumnType = React.useRef(columnType);
const defaultRenderLabel = useRenderLabel(renderLabel);
useUpdateEffect(() => {
if (isEqual(props.value, innerValue)) return;
setInnerValue(props.value);
}, [props.value]);
React.useEffect(() => {
prevColumnType.current = columnType;
}, [columnType]);
const now = React.useMemo(() => new Date(), []);
const currentValue = React.useMemo(() => {
const date = innerValue || now;
return new Date(clamp(date.getTime(), min.getTime(), max.getTime()));
}, [innerValue, min, max, columnType]);
const pickerValue = React.useMemo(
() => dateToNumberArray(currentValue, columnType),
[currentValue, columnType],
);
const wheelDefaultValue = React.useMemo(
() => dateToNumberArray(props.wheelDefaultValue, columnType),
[props.wheelDefaultValue, columnType],
);
const handleChange = React.useCallback(
(changedPickerValue: PickerValue[], items: PickerColumnItem[], level: number) => {
if (prevColumnType.current[level] !== columnType[level]) return;
const date = numberArrayToDate(
currentValue,
changedPickerValue as number[],
columnType,
level,
);
setInnerValue(date);
onChange?.(date, items, level);
},
[currentValue, prevColumnType, columnType],
);
const { items, columns } = resolved({
dataSource: generateDatePickerColumns(
currentValue,
min,
max,
columnType,
defaultRenderLabel,
filter,
),
value: pickerValue,
});
React.useImperativeHandle(ref, () => ({
value: currentValue,
items,
reset: pickerViewRef.current?.reset,
}));
return (
<PickerView
{...rest}
value={pickerValue}
wheelDefaultValue={wheelDefaultValue}
dataSource={columns}
onChange={handleChange}
/>
);
},
);
export default DatePickerView;
``` | /content/code_sandbox/packages/zarm/src/date-picker-view/DatePickerView.tsx | xml | 2016-07-13T11:45:37 | 2024-08-12T19:23:48 | zarm | ZhongAnTech/zarm | 1,707 | 749 |
```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.
-->
<merge xmlns:android="path_to_url">
<SurfaceView
android:id="@+id/surface_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
/>
</merge>
``` | /content/code_sandbox/library/src/main/res/layout/surface_view.xml | xml | 2016-08-04T05:22:14 | 2024-08-08T07:34:11 | cameraview | google/cameraview | 4,736 | 105 |
```xml
import { mat4, vec3 } from "gl-matrix";
import { HIBase, HIBaseFlags } from "./HIBase.js";
import { HIScene } from "./HIScene.js";
import { HIModelAssetInfo, HIModelInstance } from "./HIModel.js";
import { RwEngine, RwStream } from "./rw/rwcore.js";
import { HILightKit } from "./HILightKit.js";
import { RpClump } from "./rw/rpworld.js";
export const enum HIEntFlags {
Visible = 0x1
}
export class HIEntAsset {
public flags: number;
public subtype: number;
public pflags: number;
public moreFlags: number;
public surfaceID: number;
public ang: vec3;
public pos: vec3;
public scale: vec3;
public redMult: number;
public greenMult: number;
public blueMult: number;
public seeThru: number;
public seeThruSpeed: number;
public modelInfoID: number;
public animListID: number;
constructor(stream: RwStream) {
this.flags = stream.readUint8();
this.subtype = stream.readUint8();
this.pflags = stream.readUint8();
this.moreFlags = stream.readUint8();
stream.pos += 4; // padding
this.surfaceID = stream.readUint32();
this.ang = stream.readVec3();
this.pos = stream.readVec3();
this.scale = stream.readVec3();
this.redMult = stream.readFloat();
this.greenMult = stream.readFloat();
this.blueMult = stream.readFloat();
this.seeThru = stream.readFloat();
this.seeThruSpeed = stream.readFloat();
this.modelInfoID = stream.readUint32();
this.animListID = stream.readUint32();
}
}
export abstract class HIEnt extends HIBase {
public entAsset: HIEntAsset;
public flags: number;
public moreFlags: number;
public subType: number;
public model: HIModelInstance | null = null;
public lightKit: HILightKit | null = null;
constructor(stream: RwStream, scene: HIScene) {
super(stream, scene);
this.entAsset = new HIEntAsset(stream);
this.flags = this.entAsset.flags;
this.moreFlags = this.entAsset.moreFlags;
this.subType = this.entAsset.subtype;
this.baseFlags |= HIBaseFlags.IsEntity;
}
public override setup(scene: HIScene): void {
super.setup(scene);
if (this.model) {
this.model.redMultiplier = this.entAsset.redMult;
this.model.greenMultiplier = this.entAsset.greenMult;
this.model.blueMultiplier = this.entAsset.blueMult;
this.model.alpha = this.entAsset.seeThru;
}
}
public parseModelInfo(assetID: number, scene: HIScene) {
if (scene.models.has(assetID)) {
this.loadModel(scene.models.get(assetID)!, scene);
} else if (scene.modelInfos.has(assetID)) {
this.model = this.recurseModelInfo(scene.modelInfos.get(assetID)!, scene);
} else {
console.warn(`Model info ID not found: 0x${assetID}`);
}
}
public loadModel(clump: RpClump, scene: HIScene) {
this.model = new HIModelInstance(clump.atomics[0], scene);
for (let i = 1; i < clump.atomics.length; i++) {
this.model.attach(new HIModelInstance(clump.atomics[i], scene));
}
}
private recurseModelInfo(info: HIModelAssetInfo, scene: HIScene): HIModelInstance | null {
const tempInst: HIModelInstance[] = [];
tempInst.length = info.modelInst.length;
for (let i = 0; i < info.modelInst.length; i++) {
const inst = info.modelInst[i];
if (scene.models.has(inst.modelID)) {
const clump = scene.models.get(inst.modelID)!;
if (i === 0) {
tempInst[i] = new HIModelInstance(clump.atomics[0], scene);
for (let j = 1; j < clump.atomics.length; j++) {
tempInst[i].attach(new HIModelInstance(clump.atomics[j], scene));
}
} else {
tempInst[i] = new HIModelInstance(clump.atomics[0], scene, inst.flags, inst.bone);
tempInst[inst.parent]!.attach(tempInst[i]);
for (let j = 1; j < clump.atomics.length; j++) {
tempInst[i].attach(new HIModelInstance(clump.atomics[j], scene));
}
}
} else if (scene.modelInfos.has(inst.modelID)) {
const info = scene.modelInfos.get(inst.modelID)!;
const minst = this.recurseModelInfo(info, scene);
if (!minst) return null;
tempInst[i] = minst;
if (i !== 0) {
tempInst[i].flags |= inst.flags;
tempInst[i].boneIndex = inst.bone;
tempInst[inst.parent].attach(tempInst[i]);
}
} else {
console.warn(`Model ID not found: 0x${inst.modelID}`);
return null;
}
}
return tempInst[0];
}
public isVisible() {
return (this.flags & HIEntFlags.Visible) !== 0;
}
public show() {
this.flags |= HIEntFlags.Visible;
}
public hide() {
this.flags &= ~HIEntFlags.Visible;
}
public override reset(scene: HIScene) {
super.reset(scene);
if (this.model) {
const mat = mat4.create();
mat4.translate(mat, mat, this.entAsset.pos);
mat4.rotateY(mat, mat, this.entAsset.ang[0]);
mat4.rotateX(mat, mat, this.entAsset.ang[1]);
mat4.rotateZ(mat, mat, this.entAsset.ang[2]);
mat4.scale(mat, mat, this.entAsset.scale);
mat4.copy(this.model.mat, mat);
}
}
public beginUpdate(scene: HIScene, dt: number) {
if (this.model) {
this.model.update(dt);
}
}
public endUpdate(scene: HIScene, dt: number) {
if (this.model) {
this.model.eval();
}
}
public update(scene: HIScene, dt: number) {
this.beginUpdate(scene, dt);
// update physics, motion, etc.
this.endUpdate(scene, dt);
}
public render(scene: HIScene, rw: RwEngine) {
if (!this.isVisible() && !scene.renderHacks.showAllEntities) return;
if (!this.model) return;
this.model.render(scene, rw);
}
}
``` | /content/code_sandbox/src/HeavyIron/HIEnt.ts | xml | 2016-10-06T21:43:45 | 2024-08-16T17:03:52 | noclip.website | magcius/noclip.website | 3,206 | 1,517 |
```xml
<!--
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~
~ path_to_url
~
~ Unless required by applicable law or agreed to in writing, software
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<dataset>
<metadata table-name="t_broadcast_table_for_ddl" data-nodes="write_ds.t_broadcast_table_for_ddl,read_${0..1}.t_broadcast_table_for_ddl" />
</dataset>
``` | /content/code_sandbox/test/e2e/sql/src/test/resources/cases/ddl/dataset/readwrite_splitting/drop_broadcast_table.xml | xml | 2016-01-18T12:49:26 | 2024-08-16T15:48:11 | shardingsphere | apache/shardingsphere | 19,707 | 118 |
```xml
import { ServeApplicationsRsp } from "../type/serve";
import { get } from "./requestHandlers";
export const getServeApplications = () => {
return get<ServeApplicationsRsp>("api/serve/applications/");
};
``` | /content/code_sandbox/python/ray/dashboard/client/src/service/serve.ts | xml | 2016-10-25T19:38:30 | 2024-08-16T19:46:34 | ray | ray-project/ray | 32,670 | 48 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:id="@+id/layout_me_top"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_rechange"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_me_nickname"
android:layout_gravity="center"
android:layout_marginBottom="10.0dip"
android:layout_marginLeft="15.0dip"
android:layout_marginRight="15.0dip"
android:layout_marginTop="10.0dip"
android:background="@drawable/shape_mine_recharge"
android:gravity="center_horizontal"
android:padding="10.0dip"
android:visibility="gone">
<TextView
android:id="@+id/tv_me_seek"
style="@style/font14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:drawableLeft="@mipmap/seek"
android:drawablePadding="5.0dip"
android:text="0" />
<LinearLayout
android:id="@+id/layout_me_energy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/tv_me_seek"
android:layout_centerVertical="true"
android:layout_gravity="center"
android:layout_marginLeft="15.0dip"
android:layout_toRightOf="@+id/tv_me_seek"
android:orientation="horizontal">
<TextView
style="@style/font14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:drawableLeft="@mipmap/platform_icon"
android:drawablePadding="5.0dip"
android:text="0" />
</LinearLayout>
<TextView
style="@style/Base.TextAppearance.AppCompat.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/layout_me_energy"
android:layout_marginLeft="15.0dip"
android:background="@drawable/btn_mine_topup"
android:gravity="center"
android:text=""
android:textColor="@color/login_title_color" />
</RelativeLayout>
<View
android:layout_width="fill_parent"
android:layout_height="0.5dip"
android:background="@color/divider_high" />
<RelativeLayout
android:id="@+id/layout_me_room_manage"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/btn_selbg_white"
android:paddingBottom="10.0dip"
android:paddingTop="10.0dip">
<ImageView
android:id="@+id/iv_me_manage"
android:layout_width="20.0dip"
android:layout_height="20.0dip"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="15.0dip"
android:src="@mipmap/ic_profile_host_room" />
<TextView
style="@style/font14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/iv_me_manage"
android:paddingLeft="5.0dip"
android:text="@string/my_room_manage" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="15.0dip"
android:scaleType="fitXY"
android:src="@mipmap/btn_profile_enter" />
</RelativeLayout>
<View
android:layout_width="fill_parent"
android:layout_height="0.5dip"
android:layout_marginLeft="15.0dip"
android:background="@color/divider_low" />
<LinearLayout
android:id="@+id/layout_me_host_manage"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/btn_selbg_white"
android:orientation="vertical">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10.0dip"
android:paddingTop="10.0dip">
<ImageView
android:id="@+id/iv_host_manage"
android:layout_width="20.0dip"
android:layout_height="20.0dip"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="15.0dip"
android:src="@mipmap/ic_profile_room" />
<TextView
android:id="@+id/tv_host_manage"
style="@style/font14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/iv_host_manage"
android:paddingLeft="5.0dip"
android:text="@string/my_host_manage" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="15.0dip"
android:scaleType="fitXY"
android:src="@mipmap/btn_profile_enter" />
</RelativeLayout>
<View
android:layout_width="fill_parent"
android:layout_height="0.5dip"
android:layout_marginLeft="15.0dip"
android:background="@color/divider_low" />
</LinearLayout>
<RelativeLayout
android:id="@+id/layout_me_focus"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/btn_selbg_white"
android:paddingBottom="10.0dip"
android:paddingTop="10.0dip">
<ImageView
android:id="@+id/iv_me_focus"
android:layout_width="20.0dip"
android:layout_height="20.0dip"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="15.0dip"
android:src="@mipmap/ic_profile_concern" />
<TextView
android:id="@+id/tv_me_focus"
style="@style/font14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/iv_me_focus"
android:paddingLeft="5.0dip"
android:text="@string/my_focus_on" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="15.0dip"
android:scaleType="fitXY"
android:src="@mipmap/btn_profile_enter" />
</RelativeLayout>
<View
android:layout_width="fill_parent"
android:layout_height="0.5dip"
android:layout_marginLeft="15.0dip"
android:background="@color/divider_low" />
<RelativeLayout
android:id="@+id/layout_me_history"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/btn_selbg_white"
android:paddingBottom="10.0dip"
android:paddingTop="10.0dip">
<ImageView
android:id="@+id/iv_me_history"
android:layout_width="20.0dip"
android:layout_height="20.0dip"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="15.0dip"
android:src="@mipmap/ic_profile_histoy" />
<TextView
android:id="@+id/tv_me_history"
style="@style/font14"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/iv_me_history"
android:paddingLeft="5.0dip"
android:text="@string/my_history" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="15.0dip"
android:scaleType="fitXY"
android:src="@mipmap/btn_profile_enter" />
</RelativeLayout>
<View
android:layout_width="fill_parent"
android:layout_height="0.5dip"
android:layout_marginLeft="15.0dip"
android:background="@color/divider_low" />
<RelativeLayout
android:id="@+id/layout_me_mind"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/me_line1"
android:background="@drawable/btn_selbg_white"
android:paddingBottom="10.0dip"
android:paddingTop="10.0dip">
<ImageView
android:id="@+id/iv_me_mind"
android:layout_width="20.0dip"
android:layout_height="20.0dip"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="15.0dip"
android:src="@mipmap/icon_profile_remind" />
<TextView
android:id="@+id/tv_me_mind"
style="@style/font14"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/iv_me_mind"
android:paddingLeft="5.0dip"
android:text="@string/my_mind" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="15.0dip"
android:scaleType="fitXY"
android:src="@mipmap/btn_profile_enter" />
</RelativeLayout>
<View
android:layout_width="fill_parent"
android:layout_height="0.5dip"
android:layout_marginLeft="15.0dip"
android:background="@color/divider_low" />
<RelativeLayout
android:id="@+id/layout_me_task"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/btn_selbg_white"
android:paddingBottom="10.0dip"
android:paddingTop="10.0dip">
<ImageView
android:id="@+id/iv_me_task"
android:layout_width="20.0dip"
android:layout_height="20.0dip"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="15.0dip"
android:src="@mipmap/ic_profile_task" />
<TextView
android:id="@+id/tv_me_task"
android:layout_width="70.0dip"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/iv_me_task"
android:paddingLeft="5.0dip"
android:text="@string/my_task"
android:textColor="@color/login_forget_pw_color" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="15.0dip"
android:scaleType="fitXY"
android:src="@mipmap/btn_profile_enter" />
</RelativeLayout>
<View
android:layout_width="fill_parent"
android:layout_height="0.5dip"
android:layout_marginLeft="15.0dip"
android:background="@color/divider_low" />
<RelativeLayout
android:id="@+id/layout_me_getseed"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@drawable/btn_selbg_white"
android:paddingBottom="10.0dip"
android:paddingTop="10.0dip">
<ImageView
android:id="@+id/iv_me_getseed"
android:layout_width="20.0dip"
android:layout_height="20.0dip"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="15.0dip"
android:src="@mipmap/ic_profile_game" />
<TextView
android:id="@+id/tv_me_getseed"
style="@style/font14"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/iv_me_getseed"
android:paddingLeft="5.0dip"
android:text="@string/my_getseed" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="15.0dip"
android:scaleType="fitXY"
android:src="@mipmap/btn_profile_enter" />
</RelativeLayout>
<View
android:layout_width="fill_parent"
android:layout_height="0.5dip"
android:background="@color/divider_high" />
</LinearLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/layout_me_top"
android:layout_marginBottom="10.0dip"
android:background="@color/login_title_color" />
<View
android:layout_width="wrap_content"
android:layout_height="54dp"/>
</RelativeLayout>
</LinearLayout>
``` | /content/code_sandbox/app/src/main/res/layout/widget_profile_contentview.xml | xml | 2016-11-21T02:35:32 | 2024-07-16T14:34:43 | likequanmintv | chenchengyin/likequanmintv | 1,050 | 3,312 |
```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">Ms de %1$d notificaciones nuevas</string>
<string name="mtrl_badge_numberless_content_description">Notificacin nueva</string>
<plurals name="mtrl_badge_content_description">
<item quantity="one">%d notificacin nueva</item>
<item quantity="other">%d notificaciones nuevas</item>
</plurals>
</resources>
``` | /content/code_sandbox/lib/java/com/google/android/material/badge/res/values-b+es+419/strings.xml | xml | 2016-12-05T16:11:29 | 2024-08-16T17:51:42 | material-components-android | material-components/material-components-android | 16,176 | 204 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="path_to_url path_to_url"
xmlns="path_to_url" xmlns:xsi="path_to_url">
<modelVersion>4.0.0</modelVersion>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-java</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>clickhouse-java</name>
<description>Java libraries for ClickHouse</description>
<url>path_to_url
<inceptionYear>2015</inceptionYear>
<organization>
<name>ClickHouse, Inc.</name>
<url>path_to_url
</organization>
<licenses>
<license>
<url>path_to_url
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>zhicwu</id>
<name>Zhichun Wu</name>
<email>zhicwu@gmail.com</email>
<timezone>+8</timezone>
</developer>
</developers>
<modules>
<!-- shared -->
<module>clickhouse-data</module>
<!-- module>clickhouse-parser</module -->
<!-- client -->
<module>clickhouse-client</module>
<module>clickhouse-cli-client</module>
<module>clickhouse-grpc-client</module>
<module>clickhouse-http-client</module>
<module>client-v2</module>
<!-- driver -->
<module>clickhouse-jdbc</module>
<module>clickhouse-r2dbc</module>
<!-- server -->
<!-- module>clickhouse-bridge-server</module -->
<!-- module>clickhouse-graphql-server</module -->
<!-- misc -->
<module>clickhouse-benchmark</module>
</modules>
<scm>
<url>path_to_url
<connection>scm:git@github.com:ClickHouse/clickhouse-java.git</connection>
<developerConnection>scm:git@github.com:ClickHouse/clickhouse-java.git</developerConnection>
<tag>HEAD</tag>
</scm>
<issueManagement>
<system>Github</system>
<url>path_to_url
</issueManagement>
<ciManagement>
<system>Github</system>
<url>path_to_url
</ciManagement>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>path_to_url
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>path_to_url
</repository>
</distributionManagement>
<properties>
<revision>0.6.4-SNAPSHOT</revision>
<project.current.year>2024</project.current.year>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<annotations-api.version>6.0.53</annotations-api.version>
<apache.httpclient.version>5.2.1</apache.httpclient.version>
<arrow.version>12.0.1</arrow.version>
<asm.version>9.5</asm.version>
<avro.version>1.11.3</avro.version>
<brotli.version>0.1.2</brotli.version>
<brotli4j.version>1.12.0</brotli4j.version>
<caffeine.version>3.1.7</caffeine.version>
<compress.version>1.26.1</compress.version>
<dnsjava.version>3.5.2</dnsjava.version>
<fastutil.version>8.5.12</fastutil.version>
<grpc.version>1.57.1</grpc.version>
<gson.version>2.10.1</gson.version>
<jctools.version>4.0.1</jctools.version>
<opencensus.version>0.31.1</opencensus.version>
<protobuf.version>3.23.4</protobuf.version>
<lz4.version>1.8.0</lz4.version>
<msgpack.version>0.9.5</msgpack.version>
<roaring-bitmap.version>0.9.47</roaring-bitmap.version>
<slf4j.version>2.0.7</slf4j.version>
<snappy.version>1.1.10.4</snappy.version>
<xz.version>1.9</xz.version>
<zstd-jni.version>1.5.5-5</zstd-jni.version>
<testcontainers.version>1.19.7</testcontainers.version>
<!-- stay 7.5 for JDK 8 support -->
<testng.version>7.5.1</testng.version>
<mariadb-driver.version>3.1.4</mariadb-driver.version>
<mysql-driver.version>8.1.0</mysql-driver.version>
<postgresql-driver.version>42.6.1</postgresql-driver.version>
<repackaged.version>1.9.2</repackaged.version>
<shade.base>${project.groupId}.client.internal</shade.base>
<antrun-plugin.version>3.1.0</antrun-plugin.version>
<assembly-plugin.version>3.6.0</assembly-plugin.version>
<clean-plugin.version>3.3.1</clean-plugin.version>
<compiler-plugin.version>3.13.0</compiler-plugin.version>
<deploy-plugin.version>3.1.1</deploy-plugin.version>
<enforcer-plugin.version>3.3.0</enforcer-plugin.version>
<exec-plugin.version>3.1.0</exec-plugin.version>
<failsafe-plugin.version>3.1.2</failsafe-plugin.version>
<flatten-plugin.version>1.2.7</flatten-plugin.version>
<git-plugin.version>6.0.0</git-plugin.version>
<gpg-plugin.version>3.1.0</gpg-plugin.version>
<helper-plugin.version>3.4.0</helper-plugin.version>
<jacoco-plugin.version>0.8.10</jacoco-plugin.version>
<jar-plugin.version>3.3.0</jar-plugin.version>
<javadoc-plugin.version>3.5.0</javadoc-plugin.version>
<native-plugin.version>0.9.23</native-plugin.version>
<os-plugin.version>1.7.1</os-plugin.version>
<protobuf-plugin.version>0.6.1</protobuf-plugin.version>
<shade-plugin.version>3.5.0</shade-plugin.version>
<source-plugin.version>3.2.1</source-plugin.version>
<staging-plugin.version>1.6.13</staging-plugin.version>
<surefire-plugin.version>3.2.5</surefire-plugin.version>
<toolchains-plugin.version>3.1.0</toolchains-plugin.version>
<versions-plugin.version>2.16.0</versions-plugin.version>
<minJdk>1.8</minJdk>
<skipTests>false</skipTests>
<skipITs>${skipTests}</skipITs>
<skipUTs>${skipTests}</skipUTs>
<sonar.projectKey>zhicwu_clickhouse-jdbc</sonar.projectKey>
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
<sonar.organization>zhicwu</sonar.organization>
<sonar.host.url>path_to_url
<sonar.projectVersion>0.6.2</sonar.projectVersion>
<sonar.cpd.exclusions>**/*0*.java,**/data/*Value.java,**/data/array/*Value.java,**/stream/*Stream.java</sonar.cpd.exclusions>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>com.javacc</artifactId>
<version>${repackaged.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>io.grpc</artifactId>
<version>${repackaged.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>org.apache.commons.compress</artifactId>
<version>${repackaged.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>org.roaringbitmap</artifactId>
<version>${repackaged.version}</version>
</dependency>
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>brotli4j</artifactId>
<version>${brotli4j.version}</version>
</dependency>
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>native-linux-x86_64</artifactId>
<version>${brotli4j.version}</version>
</dependency>
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>native-osx-aarch64</artifactId>
<version>${brotli4j.version}</version>
</dependency>
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>native-osx-x86_64</artifactId>
<version>${brotli4j.version}</version>
</dependency>
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>native-windows-x86_64</artifactId>
<version>${brotli4j.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>${caffeine.version}</version>
</dependency>
<dependency>
<groupId>com.github.luben</groupId>
<artifactId>zstd-jni</artifactId>
<version>${zstd-jni.version}</version>
</dependency>
<dependency>
<groupId>dnsjava</groupId>
<artifactId>dnsjava</artifactId>
<version>${dnsjava.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-api</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-core</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-context</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>${grpc.version}</version>
</dependency>
<!-- separate classifier did not work well with flatten plugin -->
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-okhttp</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<!-- grpc-protobuf-lite is not compatible with v3 -->
<artifactId>grpc-protobuf</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-api</artifactId>
<version>${opencensus.version}</version>
</dependency>
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-impl</artifactId>
<version>${opencensus.version}</version>
</dependency>
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-contrib-grpc-metrics</artifactId>
<version>${opencensus.version}</version>
</dependency>
<dependency>
<groupId>it.unimi.dsi</groupId>
<artifactId>fastutil</artifactId>
<version>${fastutil.version}</version>
</dependency>
<dependency>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-memory</artifactId>
<type>pom</type>
<version>${arrow.version}</version>
</dependency>
<dependency>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-vector</artifactId>
<version>${arrow.version}</version>
</dependency>
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
<version>${avro.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>${compress.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>annotations-api</artifactId>
<version>${annotations-api.version}</version>
</dependency>
<dependency>
<groupId>org.brotli</groupId>
<artifactId>dec</artifactId>
<version>${brotli.version}</version>
</dependency>
<dependency>
<groupId>org.jctools</groupId>
<artifactId>jctools-core</artifactId>
<version>${jctools.version}</version>
</dependency>
<dependency>
<groupId>org.lz4</groupId>
<artifactId>lz4-java</artifactId>
<version>${lz4.version}</version>
</dependency>
<dependency>
<groupId>org.lz4</groupId>
<artifactId>lz4-pure-java</artifactId>
<version>${lz4.version}</version>
</dependency>
<dependency>
<groupId>org.msgpack</groupId>
<artifactId>msgpack-core</artifactId>
<version>${msgpack.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.roaringbitmap</groupId>
<artifactId>RoaringBitmap</artifactId>
<version>${roaring-bitmap.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.tukaani</groupId>
<artifactId>xz</artifactId>
<version>${xz.version}</version>
</dependency>
<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>${snappy.version}</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>${testcontainers.version}</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>toxiproxy</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>${apache.httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
<version>${apache.httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5-h2</artifactId>
<version>${apache.httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>${mariadb-driver.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>${mysql-driver.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql-driver.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>${os-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${antrun-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${assembly-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${clean-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${deploy-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${enforcer-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${gpg-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${jar-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${shade-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${source-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>${toolchains-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${failsafe-plugin.version}</version>
<configuration>
<includes>**/*.java</includes>
<groups>integration</groups>
<skipTests>${skipTests}</skipTests>
<skipITs>${skipITs}</skipITs>
<useSystemClassLoader>true</useSystemClassLoader>
<useModulePath>false</useModulePath>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
<executions>
<execution>
<id>run-integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<excludedGroups>${excludedGroups}</excludedGroups>
<groups>unit</groups>
<skipTests>${skipUTs}</skipTests>
<useModulePath>false</useModulePath>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${helper-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-plugin.version}</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenDependencyMode>all</flattenDependencyMode>
<flattenMode>ossrh</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
<inherited>true</inherited>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>${native-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${staging-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>${protobuf-plugin.version}</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>${git-plugin.version}</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<commitIdGenerationMode>full</commitIdGenerationMode>
<generateGitPropertiesFile>false</generateGitPropertiesFile>
<includeOnlyProperties>
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
</includeOnlyProperties>
<offline>true</offline>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${minJdk}</source>
<target>${minJdk}</target>
<showWarnings>true</showWarnings>
<compilerArgs>
<arg>-Xlint:all</arg>
<!-- arg>-Werror</arg -->
</compilerArgs>
</configuration>
<executions>
<execution>
<id>java9</id>
<phase>none</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>9</release>
<jdkToolchain>
<version>9</version>
</jdkToolchain>
<compileSourceRoots>
<compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot>
</compileSourceRoots>
<multiReleaseOutput>true</multiReleaseOutput>
</configuration>
</execution>
<execution>
<id>java11</id>
<phase>none</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>11</release>
<jdkToolchain>
<version>11</version>
</jdkToolchain>
<compileSourceRoots>
<compileSourceRoot>${project.basedir}/src/main/java11</compileSourceRoot>
</compileSourceRoots>
<multiReleaseOutput>true</multiReleaseOutput>
</configuration>
</execution>
<execution>
<id>java17</id>
<phase>none</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>17</release>
<jdkToolchain>
<version>17</version>
</jdkToolchain>
<compileSourceRoots>
<compileSourceRoot>${project.basedir}/src/main/java17</compileSourceRoot>
</compileSourceRoots>
<multiReleaseOutput>true</multiReleaseOutput>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)
</version>
<message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures and checksums respectively.</message>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>analysis</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-plugin.version}</version>
<configuration>
<!-- workaround for multi-release jar -->
<excludes>
<exclude>META-INF/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>jacoco-prepare-ut</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
</configuration>
</execution>
<execution>
<id>jacoco-prepare-it</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
</configuration>
</execution>
<execution>
<id>jacoco-ut</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<skip>${skipUTs}</skip>
<destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
<propertyName>surefireArgLine</propertyName>
<append>true</append>
</configuration>
</execution>
<execution>
<id>jacoco-it</id>
<goals>
<goal>prepare-agent-integration</goal>
</goals>
<configuration>
<skip>${skipITs}</skip>
<destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
<propertyName>failsafeArgLine</propertyName>
<append>true</append>
</configuration>
</execution>
<execution>
<id>jacoco-it-report</id>
<phase>post-integration-test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
</configuration>
</execution>
<execution>
<id>jacoco-ut-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
</configuration>
</execution>
<execution>
<id>jacoco-merge</id>
<phase>verify</phase>
<goals>
<goal>merge</goal>
</goals>
<configuration>
<fileSets>
<fileSet>
<directory>${project.build.directory}/coverage-reports</directory>
<includes>
<include>*.exec</include>
</includes>
</fileSet>
</fileSets>
<destFile>${project.build.directory}/coverage-reports/aggregate.exec</destFile>
</configuration>
</execution>
<execution>
<id>jacoco-merge-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>${project.build.directory}/coverage-reports/aggregate.exec</dataFile>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-aggregate</outputDirectory>
<rules>
<rule>
<element>CLASS</element>
<excludes>
<exclude>*Test</exclude>
</excludes>
<limits>
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>0.0</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>compile-java8</id>
<activation>
<!-- jdk>(,8]</jdk -->
<property>
<name>j8</name>
</property>
</activation>
<properties>
<caffeine.version>2.9.2</caffeine.version>
</properties>
</profile>
<profile>
<id>compile-java9</id>
<activation>
<jdk>[9,)</jdk>
<property>
<name>!j8</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>java9</id>
<phase>compile</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>compile-java11</id>
<activation>
<jdk>[11,)</jdk>
<property>
<name>!j8</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>java11</id>
<phase>compile</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>compile-java17</id>
<activation>
<jdk>[17,)</jdk>
<property>
<name>!j8</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>java17</id>
<phase>compile</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>9</version>
</jdk>
<jdk>
<version>11</version>
</jdk>
<jdk>
<version>17</version>
</jdk>
</toolchains>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>java9</id>
<phase>compile</phase>
</execution>
<execution>
<id>java11</id>
<phase>compile</phase>
</execution>
<execution>
<id>java17</id>
<phase>compile</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<addDefaultEntries>true</addDefaultEntries>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
</manifest>
<manifestEntries>
<Multi-Release>true</Multi-Release>
<Implementation-URL>${project.url}</Implementation-URL>
<Implementation-Vendor>ClickHouse, Inc.</Implementation-Vendor>
<Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
<Implementation-Version><![CDATA[${project.artifactId} ${project.version} (revision: ${git.commit.id.abbrev})]]></Implementation-Version>
<SCM-Revision>${git.commit.id.full}</SCM-Revision>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>${minJdk}</source>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<configuration>
<!-- Prevent `gpg` from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>path_to_url
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>update</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<configuration>
<allowSnapshots>false</allowSnapshots>
<excludes>
<exclude>org.slf4j:*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>update-properties</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>build8</id>
<activation>
<property>
<name>j8</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${minJdk}</source>
<target>${minJdk}</target>
<showWarnings>true</showWarnings>
<compilerArgs>
<arg>-Xlint:all</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<jvm>${env.JAVA_HOME}/bin/java</jvm>
<argLine>${surefireArgLine}</argLine>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<jvm>${env.JAVA_HOME}/bin/java</jvm>
<argLine>${failsafeArgLine}</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>build9</id>
<activation>
<property>
<name>!j8</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>9</version>
</jdk>
<jdk>
<version>11</version>
</jdk>
<jdk>
<version>17</version>
</jdk>
</toolchains>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>java9</id>
<phase>compile</phase>
</execution>
<execution>
<id>java11</id>
<phase>compile</phase>
</execution>
<execution>
<id>java17</id>
<phase>compile</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<addDefaultEntries>true</addDefaultEntries>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
</manifest>
<manifestEntries>
<Multi-Release>true</Multi-Release>
<Implementation-URL>${project.url}</Implementation-URL>
<Implementation-Vendor>ClickHouse, Inc.</Implementation-Vendor>
<Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
<Implementation-Version><![CDATA[${project.artifactId} ${project.version} (revision: ${git.commit.id.abbrev})]]></Implementation-Version>
<SCM-Revision>${git.commit.id.full}</SCM-Revision>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>${minJdk}</source>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
``` | /content/code_sandbox/pom.xml | xml | 2016-07-15T12:48:27 | 2024-08-16T15:57:09 | clickhouse-java | ClickHouse/clickhouse-java | 1,413 | 9,941 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!-- This project was created with react-native-windows 0.74.9 -->
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="path_to_url">
<Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
<PropertyGroup Label="Globals">
<CppWinRTOptimized>true</CppWinRTOptimized>
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
<MinimalCoreWin>true</MinimalCoreWin>
<ProjectGuid>{0d798b26-17a1-497a-8524-201a4eac00dc}</ProjectGuid>
<ProjectName>Example</ProjectName>
<RootNamespace>Example</RootNamespace>
<DefaultLanguage>en-US</DefaultLanguage>
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
<AppContainerApplication>true</AppContainerApplication>
<ApplicationType>Windows Store</ApplicationType>
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
</PropertyGroup>
<PropertyGroup Label="ReactNativeWindowsProps">
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
</PropertyGroup>
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|ARM64">
<Configuration>Debug</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
<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|ARM64">
<Configuration>Release</Configuration>
<Platform>ARM64</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="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings"></ImportGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets">
<Import Project="PropertySheet.props" />
</ImportGroup>
<ImportGroup Label="ReactNativeWindowsPropertySheets">
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\external\Microsoft.ReactNative.Uwp.CppApp.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props')" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<ItemDefinitionGroup>
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
<WarningLevel>Level4</WarningLevel>
<AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="MainPage.h">
<DependentUpon>MainPage.xaml</DependentUpon>
<SubType>Code</SubType>
</ClInclude>
<ClInclude Include="ReactPackageProvider.h" />
<ClInclude Include="AutolinkedNativeModules.g.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="App.h">
<DependentUpon>App.xaml</DependentUpon>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<SubType>Designer</SubType>
</ApplicationDefinition>
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Image Include="Assets\LockScreenLogo.scale-200.png" />
<Image Include="Assets\SplashScreen.scale-200.png" />
<Image Include="Assets\Square150x150Logo.scale-200.png" />
<Image Include="Assets\Square44x44Logo.scale-200.png" />
<Image Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Image Include="Assets\StoreLogo.png" />
<Image Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="MainPage.cpp">
<DependentUpon>MainPage.xaml</DependentUpon>
<SubType>Code</SubType>
</ClCompile>
<ClCompile Include="ReactPackageProvider.cpp" />
<ClCompile Include="AutolinkedNativeModules.g.cpp" />
<ClCompile Include="pch.cpp">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="App.cpp">
<DependentUpon>App.xaml</DependentUpon>
</ClCompile>
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
</ItemGroup>
<ItemGroup>
<Midl Include="App.idl">
<DependentUpon>App.xaml</DependentUpon>
</Midl>
<Midl Include="MainPage.idl">
<DependentUpon>MainPage.xaml</DependentUpon>
<SubType>Code</SubType>
</Midl>
</ItemGroup>
<ItemGroup>
<None Include="PropertySheet.props" />
<Text Include="readme.txt">
<DeploymentContent>false</DeploymentContent>
</Text>
</ItemGroup>
<ItemGroup>
<Page Include="MainPage.xaml">
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ReactNativeWindowsTargets">
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets')" />
</ImportGroup>
<Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references targets in your node_modules\react-native-windows folder that are missing. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props'))" />
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets'))" />
</Target>
</Project>
``` | /content/code_sandbox/example/windows/Example/Example.vcxproj | xml | 2016-01-17T14:29:21 | 2024-08-16T13:35:44 | react-native-svg | software-mansion/react-native-svg | 7,397 | 2,022 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.kymjs.rxvolley.demo.MainActivity">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher" />
</RelativeLayout>
``` | /content/code_sandbox/app/src/main/res/layout/activity_main.xml | xml | 2016-01-04T03:38:41 | 2024-07-13T12:27:30 | RxVolley | kymjs/RxVolley | 1,157 | 160 |
```xml
// also exported from '@storybook/angular' if you can deal with breaking changes in 6.1
import { APP_BASE_HREF, CommonModule } from '@angular/common';
import { Story, Meta, moduleMetadata } from '@storybook/angular';
import { IRecentlyRequested, RequestType } from '../../interfaces';
import { DetailedCardComponent } from './detailed-card.component';
import { TranslateModule } from "@ngx-translate/core";
import { ImageService } from "../../services/image.service";
import { Observable, of } from 'rxjs';
import { SharedModule } from '../../shared/shared.module';
import { PipeModule } from '../../pipes/pipe.module';
import { ImageComponent } from '../image/image.component';
function imageServiceMock(): Partial<ImageService> {
return {
getMoviePoster: () : Observable<string> => of("path_to_url"),
getMovieBackground : () : Observable<string> => of("path_to_url"),
getTmdbTvPoster : () : Observable<string> => of("/bfxwMdQyJc0CL24m5VjtWAN30mt.jpg"),
getTmdbTvBackground : () : Observable<string> => of("/bfxwMdQyJc0CL24m5VjtWAN30mt.jpg"),
};
}
// More on default export: path_to_url#default-export
export default {
title: 'Detailed Card Component',
component: DetailedCardComponent,
decorators: [
moduleMetadata({
providers: [
{
provide: APP_BASE_HREF,
useValue: {}
},
{
provide: ImageService,
useValue: imageServiceMock()
}
],
imports: [
TranslateModule.forRoot(),
CommonModule,
ImageComponent,
SharedModule,
PipeModule
]
})
]
} as Meta;
// More on component templates: path_to_url#using-args
const Template: Story<DetailedCardComponent> = (args: DetailedCardComponent) => ({
props: args,
});
export const NewMovieRequest = Template.bind({});
// More on args: path_to_url
NewMovieRequest.args = {
request: {
title: 'The Matrix',
approved: false,
available: false,
tvPartiallyAvailable: false,
requestDate: new Date(2022, 1, 1),
username: 'John Doe',
userId: '12345',
type: RequestType.movie,
mediaId: '603',
overview: 'The Matrix is a movie about a group of people who are forced to fight against a powerful computer system that controls them.',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
isAdmin: false,
};
export const MovieNoUsername = Template.bind({});
// More on args: path_to_url
MovieNoUsername.args = {
request: {
title: 'The Matrix',
approved: false,
available: false,
tvPartiallyAvailable: false,
requestDate: new Date(2022, 1, 1),
userId: '12345',
type: RequestType.movie,
mediaId: '603',
overview: 'The Matrix is a movie about a group of people who are forced to fight against a powerful computer system that controls them.',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
};
export const AvailableMovie = Template.bind({});
// More on args: path_to_url
AvailableMovie.args = {
request: {
title: 'The Matrix',
approved: false,
available: true,
tvPartiallyAvailable: false,
requestDate: new Date(2022, 1, 1),
username: 'John Doe',
userId: '12345',
type: RequestType.movie,
mediaId: '603',
overview: 'The Matrix is a movie about a group of people who are forced to fight against a powerful computer system that controls them.',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
};
export const ApprovedMovie = Template.bind({});
// More on args: path_to_url
ApprovedMovie.args = {
request: {
title: 'The Matrix',
approved: true,
available: false,
tvPartiallyAvailable: false,
requestDate: new Date(2022, 1, 1),
username: 'John Doe',
userId: '12345',
type: RequestType.movie,
mediaId: '603',
overview: 'The Matrix is a movie about a group of people who are forced to fight against a powerful computer system that controls them.',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
};
export const NewTvRequest = Template.bind({});
// More on args: path_to_url
NewTvRequest.args = {
request: {
title: 'For All Mankind',
approved: false,
available: false,
tvPartiallyAvailable: false,
requestDate: new Date(2022, 1, 1),
username: 'John Doe',
userId: '12345',
type: RequestType.tvShow,
mediaId: '603',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
};
export const ApprovedTv = Template.bind({});
// More on args: path_to_url
ApprovedTv.args = {
request: {
title: 'For All Mankind',
approved: true,
available: false,
tvPartiallyAvailable: false,
requestDate: new Date(2022, 1, 1),
username: 'John Doe',
userId: '12345',
type: RequestType.tvShow,
mediaId: '603',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
};
export const AvailableTv = Template.bind({});
// More on args: path_to_url
AvailableTv.args = {
request: {
title: 'For All Mankind',
approved: true,
available: true,
tvPartiallyAvailable: false,
requestDate: new Date(2022, 1, 1),
username: 'John Doe',
userId: '12345',
type: RequestType.tvShow,
mediaId: '603',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
};
export const PartiallyAvailableTv = Template.bind({});
// More on args: path_to_url
PartiallyAvailableTv.args = {
request: {
title: 'For All Mankind',
approved: true,
available: false,
tvPartiallyAvailable: true,
requestDate: new Date(2022, 1, 1),
username: 'John Doe',
userId: '12345',
type: RequestType.tvShow,
mediaId: '603',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
};
export const TvNoUsername = Template.bind({});
// More on args: path_to_url
TvNoUsername.args = {
request: {
title: 'For All Mankind',
approved: true,
available: false,
tvPartiallyAvailable: true,
requestDate: new Date(2022, 1, 1),
userId: '12345',
type: RequestType.tvShow,
mediaId: '603',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
};
export const AdminNewMovie = Template.bind({});
// More on args: path_to_url
AdminNewMovie.args = {
request: {
title: 'The Matrix',
approved: false,
available: false,
tvPartiallyAvailable: false,
requestDate: new Date(2022, 1, 1),
username: 'John Doe',
userId: '12345',
type: RequestType.movie,
mediaId: '603',
overview: 'The Matrix is a movie about a group of people who are forced to fight against a powerful computer system that controls them.',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
isAdmin: true,
};
export const AdminTvShow = Template.bind({});
// More on args: path_to_url
AdminTvShow.args = {
request: {
title: 'For All Mankind',
approved: false,
available: false,
tvPartiallyAvailable: true,
requestDate: new Date(2022, 1, 1),
userId: '12345',
type: RequestType.tvShow,
mediaId: '603',
username: 'John Doe',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
isAdmin: true,
};
export const AdminApprovedMovie = Template.bind({});
// More on args: path_to_url
AdminApprovedMovie.args = {
request: {
title: 'The Matrix',
approved: true,
available: false,
tvPartiallyAvailable: false,
requestDate: new Date(2022, 1, 1),
username: 'John Doe',
userId: '12345',
type: RequestType.movie,
mediaId: '603',
overview: 'The Matrix is a movie about a group of people who are forced to fight against a powerful computer system that controls them.',
releaseDate: new Date(2020, 1, 1),
} as IRecentlyRequested,
isAdmin: true,
};
``` | /content/code_sandbox/src/Ombi/ClientApp/src/app/components/detailed-card/detailed-card.component.stories.ts | xml | 2016-02-25T12:14:54 | 2024-08-14T22:56:44 | Ombi | Ombi-app/Ombi | 3,674 | 2,052 |
```xml
import { css, html, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { elementBase } from '../../shared/components/styles/lit/base.css';
import '../../shared/components/overlays/tooltip';
@customElement('video-button')
export class VideoButton extends LitElement {
static override styles = [
elementBase,
css`
:host {
--video-button-background: #01000a;
--video-button-foreground: #fff;
display: block;
}
.video-button {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
background-color: var(--video-button-background);
padding: 0 2rem 0 1rem;
color: var(--video-button-foreground);
transition: background-color ease-in-out 150ms;
border-radius: 0.4rem;
position: relative;
overflow: hidden;
height: 70px;
text-decoration: none;
}
.video-button .play {
transform: scale(1.2);
transition: transform ease-in-out 150ms;
}
.video-button:hover .play {
transform: scale(1.4);
}
.background {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
transition: transform ease-in-out 150ms;
}
.video-button:hover .background {
transform: translateX(-3px) scale(1.05);
}
.background__base {
fill: var(--video-button-background);
transition: fill ease-in-out 150ms;
}
.video-button:hover .background__base {
opacity: 0.5;
}
.title {
/* position: absolute; */
align-self: center;
color: var(--video-button-foreground);
font-weight: 400;
text-shadow:
0 0 5px rgba(0, 0, 0, 1),
0 0 10px rgba(0, 0, 0, 1),
0 0 15px rgba(0, 0, 0, 1);
transform: scale(1.2);
transform-origin: left;
transition: transform ease-in-out 150ms;
z-index: 1;
}
.video-button:hover .title {
transform: scale(1.4);
}
`,
];
@property({ reflect: true })
src: string | undefined;
override render() {
return html` <a
class="video-button"
href="path_to_url"
aria-label="Watch the Tutorial video"
>
<img class="background" .src=${this.src} alt="Video thumbnail" />
<span class="title">Tutorial Video</span>
<!-- Don't reformat or let prettier reformat the SVG otherwise whitespace will get added incorrect and screw up the positioning -->
<!-- prettier-ignore -->
<svg class="play" width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="path_to_url">
<path
d="M13.8626 11.0319C14.3464 10.5343 24.5 16.0074 24.5 17.5C24.5 18.9926 14.346 24.4657 13.8627 23.9681C13.3794 23.4706 13.3788 11.5294 13.8626 11.0319Z"
fill="currentColor"
></path>
<path
d="M34 18C34 26.8366 26.8366 34 18 34C9.16344 34 2 26.8366 2 18C2 9.16344 9.16344 2 18 2C26.8366 2 34 9.16344 34 18Z"
stroke="#DE98FF"
></path>
</svg>
</a>`;
}
}
``` | /content/code_sandbox/src/webviews/apps/welcome/components/video-button.ts | xml | 2016-08-08T14:50:30 | 2024-08-15T21:25:09 | vscode-gitlens | gitkraken/vscode-gitlens | 8,889 | 974 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="path_to_url">
<PropertyGroup>
<LangVersion>latest</LangVersion>
<_TargetFrameworkDirectories>non_empty_path_generated_by_unity.rider.package</_TargetFrameworkDirectories>
<_FullFrameworkReferenceAssemblyPaths>non_empty_path_generated_by_unity.rider.package</_FullFrameworkReferenceAssemblyPaths>
<DisableHandlePackageFileConflicts>true</DisableHandlePackageFileConflicts>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<RootNamespace></RootNamespace>
<ProjectGuid>{9990D7BF-74F6-AA5B-37F7-530C71F81DA6}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<AssemblyName>Assembly-CSharp-Editor</AssemblyName>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<BaseDirectory>.</BaseDirectory>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;UNITY_2019_3_7;UNITY_2019_3;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_4_6;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;UNITY_PRO_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;xLua;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Temp\bin\Release\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<NoConfig>true</NoConfig>
<NoStdLib>true</NoStdLib>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
<ImplicitlyExpandNETStandardFacades>false</ImplicitlyExpandNETStandardFacades>
<ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>
</PropertyGroup>
<ItemGroup>
<Reference Include="UnityEngine">
<HintPath>C:\Program Files\Unity\Editor\Data\Managed/UnityEngine/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>C:\Program Files\Unity\Editor\Data\Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\Code\Editor\EmmyLuaServiceWithExtendMethod.cs" />
<Compile Include="Assets\Code\Editor\ExportIdeaLuaSyntax.cs" />
<Compile Include="Assets\KSFramework\Editor\I18NCustom\StringsTableI18NCollector.cs" />
<Compile Include="Assets\KSFramework\Editor\I18NCustom\TableColumnCollector.cs" />
<Compile Include="Assets\KSFramework\Editor\Importers\UIImageImporter.cs" />
<Compile Include="Assets\KSFramework\Editor\KSFrameworkCustom.cs" />
<Compile Include="Assets\KSFramework\Editor\KSFrameworkEditor.cs" />
<Compile Include="Assets\KSFramework\Editor\KSFrameworkTests.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\AlignEditor\AlignEditor.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\AppEngineInspector.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\AssetVersionControl.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\BuildTools.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\CommandLine.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\ExcelFile.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\KAutoBuilder.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\KCommonProductPrefabExporter.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\KEngineUtils.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\KObjectDebuggerEditor.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\KQuickWindowEditor.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\ResourcesBuild\KResourceBuilder.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\SettingModuleBuildHandler.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\SettingModuleEditor.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\UnityLock\UnityLock.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.EditorTools\DirectoryWatcher.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.EditorTools\KDefineSymbolsHelper.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.EditorTools\KDirectoryWatcher.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.EditorTools\KEditorUtils.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.EditorTools\KSymbolLinkHelper.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.EditorTools\KUnityEditorEventCatcher.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.UI.Editor\KBuild_UGUI.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.UI.Editor\KUIMenu.cs" />
<Compile Include="Assets\KSFramework\KEngine\Editor\KEngine.UI.Editor\KUIWindowAssetEditor.cs" />
<Compile Include="Assets\KSFramework\Modules\I18N\Editor\I18NCollector.cs" />
<Compile Include="Assets\KSFramework\Modules\I18N\Editor\I18NEditor.cs" />
<Compile Include="Assets\KSFramework\Modules\I18N\Editor\I18NItems.cs" />
<Compile Include="Assets\KSFramework\Modules\LuaModule\Editor\LuaModuleEditor.cs" />
<Compile Include="Assets\KSFramework\Modules\UI\Editor\KSUIEditor.cs" />
<Compile Include="Assets\KSFramework\Modules\UI\Editor\UILuaOutletEditor.cs" />
<Compile Include="Assets\XLua\Editor\ExampleConfig.cs" />
<Compile Include="Assets\XLua\Examples\13_BuildFromCLI\Editor\BuildFromCLI.cs" />
<Compile Include="Assets\XLua\Src\Editor\Generator.cs" />
<Compile Include="Assets\XLua\Src\Editor\Hotfix.cs" />
<Compile Include="Assets\XLua\Src\Editor\LinkXmlGen\LinkXmlGen.cs" />
<Compile Include="Assets\XLua\Src\Editor\TemplateRef.cs" />
<None Include="Assets\XLua\Src\Editor\Template\LuaInterfaceBridge.tpl.txt" />
<None Include="Assets\XLua\Src\Editor\Template\LuaWrapPusher.tpl.txt" />
<None Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\AlignEditor\README.txt" />
<None Include="Assets\XLua\Src\Editor\Template\LuaDelegateWrap.tpl.txt" />
<None Include="Assets\XLua\Src\Editor\Template\LuaRegister.tpl.txt" />
<None Include="Assets\XLua\Src\Editor\Template\LuaClassWrap.tpl.txt" />
<None Include="Assets\XLua\Src\Editor\Template\LuaRegisterGCM.tpl.txt" />
<None Include="Assets\XLua\Src\Editor\LinkXmlGen\LinkXmlGen.tpl.txt" />
<None Include="Assets\XLua\Src\Editor\Template\PackUnpack.tpl.txt" />
<None Include="Assets\XLua\Src\Editor\Template\LuaEnumWrapGCM.tpl.txt" />
<None Include="Assets\XLua\Src\Editor\Template\LuaClassWrapGCM.tpl.txt" />
<None Include="Assets\XLua\Src\Editor\Template\TemplateCommon.lua.txt" />
<None Include="Assets\XLua\Src\Editor\Template\LuaDelegateBridge.tpl.txt" />
<None Include="Assets\KSFramework\KEngine\Editor\KEngine.Editor\UnityLock\ReadMe.txt" />
<None Include="Assets\XLua\Src\Editor\Template\LuaEnumWrap.tpl.txt" />
<Reference Include="UnityEditor.TestRunner">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/UnityEditor.TestRunner.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TestRunner">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/UnityEngine.TestRunner.dll</HintPath>
</Reference>
<Reference Include="Unity.Timeline.Editor">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/Unity.Timeline.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.VSCode.Editor">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/Unity.VSCode.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro.Editor">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="Unity.Timeline">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/Unity.Timeline.dll</HintPath>
</Reference>
<Reference Include="Unity.CollabProxy.Editor">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/Unity.CollabProxy.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.Rider.Editor">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/Unity.Rider.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/Unity.TextMeshPro.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.UI">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/UnityEditor.UI.dll</HintPath>
</Reference>
<Reference Include="Unity.2D.Sprite.Editor">
<HintPath>E:/Code/KSFramework/KSFramework/Library/ScriptAssemblies/Unity.2D.Sprite.Editor.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AIModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ARModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AccessibilityModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AndroidJNIModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AnimationModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AssetBundleModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AudioModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ClothModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ClusterInputModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ClusterRendererModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CrashReportingModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.DSPGraphModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.DirectorModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.GameCenterModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.GridModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.HotReloadModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.HotReloadModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ImageConversionModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.InputModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.InputLegacyModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.JSONSerializeModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.LocalizationModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.LocalizationModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ParticleSystemModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PerformanceReportingModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.Physics2DModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ProfilerModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ProfilerModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ScreenCaptureModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.SharedInternalsModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.SpriteMaskModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.SpriteShapeModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.StreamingModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StreamingModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.SubstanceModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubstanceModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.SubsystemsModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TLSModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TLSModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TerrainModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TerrainPhysicsModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TextCoreModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextCoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TilemapModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UIElementsModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UNETModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UmbraModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UmbraModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityAnalyticsModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityConnectModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityTestProtocolModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityTestProtocolModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestAssetBundleModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAssetBundleModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestAudioModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestTextureModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UnityWebRequestWWWModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.VFXModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VFXModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.VRModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.VehiclesModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.VideoModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.WindModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.XRModule">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.XRModule.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.VR">
<HintPath>C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.Graphs">
<HintPath>C:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.WindowsStandalone.Extensions">
<HintPath>C:/Program Files/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll</HintPath>
</Reference>
<Reference Include="INIFileParser">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/INIFileParser.dll</HintPath>
</Reference>
<Reference Include="TableML">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/TableML/TableML.dll</HintPath>
</Reference>
<Reference Include="CsvHelper">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/TableMLCompiler/CsvHelper.dll</HintPath>
</Reference>
<Reference Include="DotLiquid">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/TableMLCompiler/DotLiquid.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.SharpZipLib">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/TableMLCompiler/ICSharpCode.SharpZipLib.dll</HintPath>
</Reference>
<Reference Include="NPOI">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/TableMLCompiler/NPOI.dll</HintPath>
</Reference>
<Reference Include="NPOI.OOXML">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/TableMLCompiler/NPOI.OOXML.dll</HintPath>
</Reference>
<Reference Include="NPOI.OpenXml4Net">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/TableMLCompiler/NPOI.OpenXml4Net.dll</HintPath>
</Reference>
<Reference Include="NPOI.OpenXmlFormats">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/TableMLCompiler/NPOI.OpenXmlFormats.dll</HintPath>
</Reference>
<Reference Include="System.ValueTuple">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/TableMLCompiler/System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="TableMLCompiler">
<HintPath>E:/Code/KSFramework/KSFramework/Assets/KSFramework/KEngine/KEngine.Lib/TableMLCompiler/TableMLCompiler.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<HintPath>E:/Code/KSFramework/KSFramework/Library/PackageCache/com.unity.ext.nunit@1.0.0/net35/unity-custom/nunit.framework.dll</HintPath>
</Reference>
<Reference Include="mscorlib">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/mscorlib.dll</HintPath>
</Reference>
<Reference Include="System">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.dll</HintPath>
</Reference>
<Reference Include="System.Core">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Core.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Runtime.Serialization.dll</HintPath>
</Reference>
<Reference Include="System.Xml">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Xml.Linq.dll</HintPath>
</Reference>
<Reference Include="System.Numerics">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.dll</HintPath>
</Reference>
<Reference Include="System.Numerics.Vectors">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Numerics.Vectors.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Net.Http.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Microsoft.CSharp.dll</HintPath>
</Reference>
<Reference Include="System.Data">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/System.Data.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Win32.Primitives">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/Microsoft.Win32.Primitives.dll</HintPath>
</Reference>
<Reference Include="netstandard">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/netstandard.dll</HintPath>
</Reference>
<Reference Include="System.AppContext">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.AppContext.dll</HintPath>
</Reference>
<Reference Include="System.Collections.Concurrent">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Concurrent.dll</HintPath>
</Reference>
<Reference Include="System.Collections">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.dll</HintPath>
</Reference>
<Reference Include="System.Collections.NonGeneric">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.NonGeneric.dll</HintPath>
</Reference>
<Reference Include="System.Collections.Specialized">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Collections.Specialized.dll</HintPath>
</Reference>
<Reference Include="System.ComponentModel.Annotations">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Annotations.dll</HintPath>
</Reference>
<Reference Include="System.ComponentModel">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.dll</HintPath>
</Reference>
<Reference Include="System.ComponentModel.EventBasedAsync">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.EventBasedAsync.dll</HintPath>
</Reference>
<Reference Include="System.ComponentModel.Primitives">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.ComponentModel.TypeConverter">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ComponentModel.TypeConverter.dll</HintPath>
</Reference>
<Reference Include="System.Console">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Console.dll</HintPath>
</Reference>
<Reference Include="System.Data.Common">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Data.Common.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.Contracts">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Contracts.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.Debug">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Debug.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.FileVersionInfo">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.FileVersionInfo.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.Process">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Process.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.StackTrace">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.StackTrace.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.TextWriterTraceListener">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TextWriterTraceListener.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.Tools">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.Tools.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.TraceSource">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Diagnostics.TraceSource.dll</HintPath>
</Reference>
<Reference Include="System.Drawing.Primitives">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Drawing.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.Dynamic.Runtime">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Dynamic.Runtime.dll</HintPath>
</Reference>
<Reference Include="System.Globalization.Calendars">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Calendars.dll</HintPath>
</Reference>
<Reference Include="System.Globalization">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.dll</HintPath>
</Reference>
<Reference Include="System.Globalization.Extensions">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Globalization.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.IO.Compression.ZipFile">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Compression.ZipFile.dll</HintPath>
</Reference>
<Reference Include="System.IO">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.dll</HintPath>
</Reference>
<Reference Include="System.IO.FileSystem">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.dll</HintPath>
</Reference>
<Reference Include="System.IO.FileSystem.DriveInfo">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.DriveInfo.dll</HintPath>
</Reference>
<Reference Include="System.IO.FileSystem.Primitives">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.IO.FileSystem.Watcher">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.FileSystem.Watcher.dll</HintPath>
</Reference>
<Reference Include="System.IO.IsolatedStorage">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.IsolatedStorage.dll</HintPath>
</Reference>
<Reference Include="System.IO.MemoryMappedFiles">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.MemoryMappedFiles.dll</HintPath>
</Reference>
<Reference Include="System.IO.Pipes">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.Pipes.dll</HintPath>
</Reference>
<Reference Include="System.IO.UnmanagedMemoryStream">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.IO.UnmanagedMemoryStream.dll</HintPath>
</Reference>
<Reference Include="System.Linq">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.dll</HintPath>
</Reference>
<Reference Include="System.Linq.Expressions">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Expressions.dll</HintPath>
</Reference>
<Reference Include="System.Linq.Parallel">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Parallel.dll</HintPath>
</Reference>
<Reference Include="System.Linq.Queryable">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Linq.Queryable.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Rtc">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Http.Rtc.dll</HintPath>
</Reference>
<Reference Include="System.Net.NameResolution">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NameResolution.dll</HintPath>
</Reference>
<Reference Include="System.Net.NetworkInformation">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.NetworkInformation.dll</HintPath>
</Reference>
<Reference Include="System.Net.Ping">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Ping.dll</HintPath>
</Reference>
<Reference Include="System.Net.Primitives">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.Net.Requests">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Requests.dll</HintPath>
</Reference>
<Reference Include="System.Net.Security">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Security.dll</HintPath>
</Reference>
<Reference Include="System.Net.Sockets">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.Sockets.dll</HintPath>
</Reference>
<Reference Include="System.Net.WebHeaderCollection">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebHeaderCollection.dll</HintPath>
</Reference>
<Reference Include="System.Net.WebSockets.Client">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.Client.dll</HintPath>
</Reference>
<Reference Include="System.Net.WebSockets">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Net.WebSockets.dll</HintPath>
</Reference>
<Reference Include="System.ObjectModel">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ObjectModel.dll</HintPath>
</Reference>
<Reference Include="System.Reflection">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.dll</HintPath>
</Reference>
<Reference Include="System.Reflection.Emit">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.dll</HintPath>
</Reference>
<Reference Include="System.Reflection.Emit.ILGeneration">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.ILGeneration.dll</HintPath>
</Reference>
<Reference Include="System.Reflection.Emit.Lightweight">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Emit.Lightweight.dll</HintPath>
</Reference>
<Reference Include="System.Reflection.Extensions">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Reflection.Primitives">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Reflection.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.Resources.Reader">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Reader.dll</HintPath>
</Reference>
<Reference Include="System.Resources.ResourceManager">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.ResourceManager.dll</HintPath>
</Reference>
<Reference Include="System.Resources.Writer">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Resources.Writer.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.CompilerServices.VisualC">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.CompilerServices.VisualC.dll</HintPath>
</Reference>
<Reference Include="System.Runtime">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Extensions">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Handles">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Handles.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.InteropServices">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.InteropServices.RuntimeInformation">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.InteropServices.WindowsRuntime">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Numerics">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Numerics.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization.Formatters">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Formatters.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization.Json">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Json.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization.Primitives">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization.Xml">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Runtime.Serialization.Xml.dll</HintPath>
</Reference>
<Reference Include="System.Security.Claims">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Claims.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.Algorithms">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Algorithms.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.Csp">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Csp.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.Encoding">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Encoding.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.Primitives">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.X509Certificates">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Cryptography.X509Certificates.dll</HintPath>
</Reference>
<Reference Include="System.Security.Principal">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.Principal.dll</HintPath>
</Reference>
<Reference Include="System.Security.SecureString">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Security.SecureString.dll</HintPath>
</Reference>
<Reference Include="System.ServiceModel.Duplex">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Duplex.dll</HintPath>
</Reference>
<Reference Include="System.ServiceModel.Http">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Http.dll</HintPath>
</Reference>
<Reference Include="System.ServiceModel.NetTcp">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.NetTcp.dll</HintPath>
</Reference>
<Reference Include="System.ServiceModel.Primitives">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.ServiceModel.Security">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ServiceModel.Security.dll</HintPath>
</Reference>
<Reference Include="System.Text.Encoding">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.dll</HintPath>
</Reference>
<Reference Include="System.Text.Encoding.Extensions">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.Encoding.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Text.RegularExpressions">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Text.RegularExpressions.dll</HintPath>
</Reference>
<Reference Include="System.Threading">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Overlapped">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Overlapped.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Parallel">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Tasks.Parallel.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Thread">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Thread.dll</HintPath>
</Reference>
<Reference Include="System.Threading.ThreadPool">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.ThreadPool.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Timer">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Threading.Timer.dll</HintPath>
</Reference>
<Reference Include="System.ValueTuple">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Xml.ReaderWriter">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.ReaderWriter.dll</HintPath>
</Reference>
<Reference Include="System.Xml.XDocument">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XDocument.dll</HintPath>
</Reference>
<Reference Include="System.Xml.XmlDocument">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlDocument.dll</HintPath>
</Reference>
<Reference Include="System.Xml.XmlSerializer">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XmlSerializer.dll</HintPath>
</Reference>
<Reference Include="System.Xml.XPath">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.dll</HintPath>
</Reference>
<Reference Include="System.Xml.XPath.XDocument">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/4.7.1-api/Facades/System.Xml.XPath.XDocument.dll</HintPath>
</Reference>
<Reference Include="UnityScript">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.dll</HintPath>
</Reference>
<Reference Include="UnityScript.Lang">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/UnityScript.Lang.dll</HintPath>
</Reference>
<Reference Include="Boo.Lang">
<HintPath>C:/Program Files/Unity/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="Assembly-CSharp.csproj">
<Project>{51075F5C-7112-60D0-80E0-6DC8667FADA0}</Project>
<Name>Assembly-CSharp</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
``` | /content/code_sandbox/KSFramework/Assembly-CSharp-Editor.csproj | xml | 2016-05-21T08:34:33 | 2024-08-11T05:58:57 | KSFramework | mr-kelly/KSFramework | 1,764 | 12,242 |
```xml
import { describe, expect, it } from 'vitest';
import type { Args } from 'storybook/internal/types';
import { generateSvelteSource } from './sourceDecorator';
expect.addSnapshotSerializer({
print: (val: any) => val,
test: (val: unknown) => typeof val === 'string',
});
const loremIpsum = 'Lorem ipsum dolor sit amet';
const lotOfProperties = { property1: loremIpsum, property2: loremIpsum, property3: loremIpsum };
function generateForArgs(args: Args, slotProperty: string | null = null) {
return generateSvelteSource({ name: 'Component' }, args, {}, slotProperty);
}
describe('generateSvelteSource', () => {
it('boolean true', () => {
expect(generateForArgs({ bool: true })).toMatchInlineSnapshot(`<Component bool/>`);
});
it('boolean false', () => {
expect(generateForArgs({ bool: false })).toMatchInlineSnapshot(`<Component bool={false}/>`);
});
it('null property', () => {
expect(generateForArgs({ propnull: null })).toMatchInlineSnapshot(`<Component />`);
});
it('string property', () => {
expect(generateForArgs({ str: 'mystr' })).toMatchInlineSnapshot(`<Component str="mystr"/>`);
});
it('number property', () => {
expect(generateForArgs({ count: 42 })).toMatchInlineSnapshot(`<Component count={42}/>`);
});
it('object property', () => {
expect(generateForArgs({ obj: { x: true } })).toMatchInlineSnapshot(
`<Component obj={{"x":true}}/>`
);
});
it('multiple properties', () => {
expect(generateForArgs({ a: 1, b: 2 })).toMatchInlineSnapshot(`<Component a={1} b={2}/>`);
});
it('lot of properties', () => {
expect(generateForArgs(lotOfProperties)).toMatchInlineSnapshot(`
<Component
property1="Lorem ipsum dolor sit amet"
property2="Lorem ipsum dolor sit amet"
property3="Lorem ipsum dolor sit amet"/>
`);
});
it('slot property', () => {
expect(generateForArgs({ content: 'xyz', myProp: 'abc' }, 'content')).toMatchInlineSnapshot(`
<Component myProp="abc">
xyz
</Component>
`);
});
it('slot property with lot of properties', () => {
expect(generateForArgs({ content: 'xyz', ...lotOfProperties }, 'content'))
.toMatchInlineSnapshot(`
<Component
property1="Lorem ipsum dolor sit amet"
property2="Lorem ipsum dolor sit amet"
property3="Lorem ipsum dolor sit amet">
xyz
</Component>
`);
});
it('component is not set', () => {
expect(generateSvelteSource(null, {}, {}, null)).toBeNull();
});
it('Skip event property', () => {
expect(
generateSvelteSource(
{ name: 'Component' },
{ event_click: () => {} },
{ event_click: { action: 'click' } }
)
).toMatchInlineSnapshot(`<Component />`);
});
it('Property value is a function', () => {
expect(
generateSvelteSource({ name: 'Component' }, { myHandler: () => {} }, {})
).toMatchInlineSnapshot(`<Component myHandler={<handler>}/>`);
});
});
``` | /content/code_sandbox/code/renderers/svelte/src/docs/sourceDecorator.test.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 751 |
```xml
// Due to the react reference, putting these under /types doesn't work well
/* eslint-disable spaced-comment, @fluentui/no-global-react */
/// <reference types="react" />
declare const __DEV__: boolean;
declare const __PATH_SEP__: string;
declare const __BASENAME__: string;
declare module '*.json' {
const value: any;
export default value;
}
declare module '*.mdx' {
export const meta: {
title: string;
};
const value: React.ComponentType;
export default value;
}
declare interface Window {
resetExternalLayout?: () => void;
switchTheme?: (themeName: string) => void;
}
``` | /content/code_sandbox/packages/fluentui/docs/src/global.d.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 142 |
```xml
import { Directive, HostListener, ElementRef, Inject } from '@angular/core';
import { DOCUMENT } from '@angular/common';
interface IFsDocument extends HTMLDocument {
fullscreenElement: Element;
webkitFullscreenElement: Element;
mozFullscreenElement: Element;
msFullscreenElement: Element;
webkitExitFullscreen: () => void;
mozCancelFullScreen: () => void;
msExitFullscreen: () => void;
}
@Directive({
selector: '[tdFullScreen]',
exportAs: 'tdFullScreen',
})
export class TdFullscreenDirective {
fullScreenIsActive = false;
constructor(
@Inject(DOCUMENT) private _document: IFsDocument,
private _el: ElementRef
) {}
@HostListener('document:fullscreenchange', ['$event'])
@HostListener('document:webkitfullscreenchange', ['$event'])
@HostListener('document:mozfullscreenchange', ['$event'])
@HostListener('document:msfullscreenchange', ['$event'])
public fsChangeHandler(event: Event): void {
this.fullScreenIsActive = event.srcElement === this._getFullScreenElement();
}
public toggleFullScreen(): void {
this._getFullScreenElement() === this._el.nativeElement
? this.exitFullScreen()
: this.enterFullScreen();
}
public enterFullScreen(): void {
const {
_el: { nativeElement },
}: TdFullscreenDirective = this;
const enterFullScreenMap: { [key: string]: () => void } = {
requestFullscreen: () => nativeElement.requestFullscreen(), // Chrome
webkitRequestFullscreen: () => nativeElement.webkitRequestFullscreen(), // Safari
mozRequestFullScreen: () => nativeElement.mozRequestFullScreen(), // Firefox
msRequestFullscreen: () => nativeElement.msRequestFullscreen(), // IE
};
for (const handler of Object.keys(enterFullScreenMap)) {
if (nativeElement[handler]) {
enterFullScreenMap[handler]();
}
}
}
public exitFullScreen(): void {
const exitFullScreenMap: { [key: string]: () => void } = {
exitFullscreen: () => this._document.exitFullscreen(), // Chrome
webkitExitFullscreen: () => this._document.webkitExitFullscreen(), // Safari
mozCancelFullScreen: () => this._document.mozCancelFullScreen(), // Firefox
msExitFullscreen: () => this._document.msExitFullscreen(), // IE
};
for (const handler of Object.keys(exitFullScreenMap)) {
if (
exitFullScreenMap[handler] &&
this._getFullScreenElement() === this._el.nativeElement
) {
exitFullScreenMap[handler]();
}
}
}
private _getFullScreenElement(): Element | undefined {
const tdFullScreenElementMap: { [key: string]: () => Element } = {
fullscreenElement: () => this._document.fullscreenElement, // Chrome, Opera
webkitFullscreenElement: () => this._document.webkitFullscreenElement, // Safari
mozFullscreenElement: () => this._document.mozFullscreenElement, // Firefox
msFullscreenElement: () => this._document.msFullscreenElement, // IE, Edge
};
for (const props of Object.keys(tdFullScreenElementMap)) {
if (tdFullScreenElementMap[props]) {
return tdFullScreenElementMap[props]();
}
}
return undefined;
}
}
``` | /content/code_sandbox/libs/angular/common/src/directives/fullscreen/fullscreen.directive.ts | xml | 2016-07-11T23:30:52 | 2024-08-15T15:20:45 | covalent | Teradata/covalent | 2,228 | 717 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.