text
stringlengths
9
39.2M
dir
stringlengths
26
295
lang
stringclasses
185 values
created_date
timestamp[us]
updated_date
timestamp[us]
repo_name
stringlengths
1
97
repo_full_name
stringlengths
7
106
star
int64
1k
183k
len_tokens
int64
1
13.8M
```xml import type { ReduxState } from '../types/internal/ReduxState'; export default ({ sendBoxValue }: ReduxState): string => sendBoxValue; ```
/content/code_sandbox/packages/core/src/selectors/sendBoxValue.ts
xml
2016-07-07T23:16:57
2024-08-16T00:12:37
BotFramework-WebChat
microsoft/BotFramework-WebChat
1,567
31
```xml import { nextTestSetup } from 'e2e-utils' describe('app dir - metadata', () => { const { next } = nextTestSetup({ files: __dirname, }) it('should have statically optimized metadata routes by default', async () => { const prerenderManifest = JSON.parse( await next.readFile('.next/prerender-manifest.json') ) for (const key of [ '/robots.txt', '/sitemap.xml', '/opengraph-image', '/manifest.webmanifest', ]) { expect(prerenderManifest.routes[key]).toBeTruthy() expect(prerenderManifest.routes[key].initialRevalidateSeconds).toBe(false) const res = await next.fetch(key) expect(res.status).toBe(200) expect(res.headers.get('x-nextjs-cache')).toBe('HIT') } }) }) ```
/content/code_sandbox/test/production/app-dir/metadata-static/metadata-static.test.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
182
```xml import Runtype, { create } from "./Runtype.ts" import Reflect from "./utils/Reflect.ts" import FAILURE from "./utils-internal/FAILURE.ts" import SUCCESS from "./utils-internal/SUCCESS.ts" /** * The super type of all literal types. */ type LiteralBase = undefined | null | boolean | number | bigint | string interface Literal<A extends LiteralBase> extends Runtype<A> { tag: "literal" value: A } /** * Be aware of an Array of Symbols `[Symbol()]` which would throw "TypeError: Cannot convert a Symbol value to a string" */ const literal = (value: unknown) => Array.isArray(value) ? globalThis.String(value.map(globalThis.String)) : typeof value === "bigint" ? globalThis.String(value) + "n" : globalThis.String(value) /** * Construct a runtype for a type literal. */ const Literal = <A extends LiteralBase>(value: A): Literal<A> => { const self = { tag: "literal", value } as unknown as Reflect return create<Literal<A>>( x => x === value ? SUCCESS(x) : FAILURE.VALUE_INCORRECT("literal", `\`${literal(value)}\``, `\`${literal(x)}\``), self, ) } export default Literal // eslint-disable-next-line import/no-named-export export { literal, type LiteralBase } ```
/content/code_sandbox/src/Literal.ts
xml
2016-05-20T01:24:26
2024-08-13T20:57:11
runtypes
runtypes/runtypes
2,575
299
```xml // See LICENSE.txt for license information. import {withDatabase, withObservables} from '@nozbe/watermelondb/react'; import {switchMap} from 'rxjs/operators'; import {observeCurrentChannelId, observeCurrentTeamId} from '@queries/servers/system'; import {observeUnreadsAndMentionsInTeam} from '@queries/servers/thread'; import ThreadsButton from './threads_button'; import type {WithDatabaseArgs} from '@typings/database/database'; const enhanced = withObservables([], ({database}: WithDatabaseArgs) => { const currentTeamId = observeCurrentTeamId(database); return { currentChannelId: observeCurrentChannelId(database), unreadsAndMentions: currentTeamId.pipe( switchMap( (teamId) => observeUnreadsAndMentionsInTeam(database, teamId), ), ), }; }); export default withDatabase(enhanced(ThreadsButton)); ```
/content/code_sandbox/app/components/threads_button/index.ts
xml
2016-10-07T16:52:32
2024-08-16T12:08:38
mattermost-mobile
mattermost/mattermost-mobile
2,155
192
```xml <?xml version="1.0" encoding="utf-8"?> <project name="sencha-charts" default=".help"> <!-- The build-impl.xml file imported here contains the guts of the build process. It is a great idea to read that file to understand how the process works, but it is best to limit your changes to this file. --> <import file="${basedir}/.sencha/package/build-impl.xml"/> <!-- The following targets can be provided to inject logic before and/or after key steps of the build process: The "init-local" target is used to initialize properties that may be personalized for the local machine. <target name="-before-init-local"/> <target name="-after-init-local"/> The "clean" target is used to clean build output from the build.dir. <target name="-before-clean"/> <target name="-after-clean"/> The general "init" target is used to initialize all other properties, including those provided by Sencha Cmd. <target name="-before-init"/> <target name="-after-init"/> The "build" target performs the call to Sencha Cmd to build the application. <target name="-before-build"/> <target name="-after-build"/> --> </project> ```
/content/code_sandbox/ext/packages/sencha-charts/build.xml
xml
2016-04-12T18:27:27
2024-08-16T16:17:46
community-edition
ramboxapp/community-edition
6,351
280
```xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="path_to_url" android:shape="oval"> <solid android:color="@color/recently_seen_dot" /> </shape> ```
/content/code_sandbox/src/main/res/drawable/ic_circle_status.xml
xml
2016-07-03T07:32:36
2024-08-16T16:51:15
deltachat-android
deltachat/deltachat-android
1,082
52
```xml import type { PropsWithChildren, ReactElement } from 'react'; import React from 'react'; import type { IconName } from '@proton/components'; import { DropdownMenuButton, Icon } from '@proton/components'; interface Props { name: string; icon: IconName | ReactElement<any>; testId: string; action: () => void; close: () => void; } const ContextMenuButton = ({ name, icon, testId, action, close, children }: PropsWithChildren<Props>) => { return ( <DropdownMenuButton key={name} onContextMenu={(e) => e.stopPropagation()} className="flex items-center justify-space-between flex-nowrap" onClick={(e) => { e.stopPropagation(); action(); close(); }} data-testid={testId} > <div className="flex items-center flex-nowrap text-left shrink-0"> {typeof icon === 'string' ? <Icon className="mr-2 shrink-0" name={icon} /> : icon} {name} </div> {children} </DropdownMenuButton> ); }; export default ContextMenuButton; ```
/content/code_sandbox/applications/drive/src/app/components/sections/ContextMenu/ContextMenuButton.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
249
```xml <?xml version="1.0"?> <Mission xmlns="path_to_url" xmlns:xsi="path_to_url"> <About> <Summary>Healthy diet. Eating right and wrong objects</Summary> </About> <ModSettings> <MsPerTick>50</MsPerTick> </ModSettings> <ServerSection> <ServerInitialConditions> <Time> <StartTime>6000</StartTime> <AllowPassageOfTime>false</AllowPassageOfTime> </Time> <Weather>clear</Weather> <AllowSpawning>false</AllowSpawning> </ServerInitialConditions> <ServerHandlers> <FlatWorldGenerator generatorString="3;7,220*1,5*3,2;3;,biome_1"/> <DrawingDecorator> <DrawCuboid colour="RED" face="UP" type="carpet" x1="-50" x2="50" y1="226" y2="226" z1="-50" z2="50"/> <DrawItem type="egg" x="-41" y="250" z="-46"/> <DrawItem type="egg" x="-33" y="250" z="-18"/> <DrawItem type="egg" x="2" y="250" z="-19"/> <DrawItem type="carrot" x="-28" y="250" z="-44"/> <DrawItem type="apple" x="41" y="250" z="30"/> <DrawItem type="apple" x="-23" y="250" z="18"/> <DrawItem type="potato" x="-28" y="250" z="25"/> <DrawItem type="pumpkin_pie" x="-12" y="250" z="3"/> <DrawItem type="sugar" x="-9" y="250" z="10"/> <DrawItem type="sugar" x="2" y="250" z="46"/> <DrawItem type="chicken" x="-3" y="250" z="29"/> <DrawItem type="egg" x="33" y="250" z="13"/> <DrawItem type="carrot" x="0" y="250" z="-1"/> <DrawItem type="cake" x="-26" y="250" z="-14"/> <DrawItem type="potato" x="49" y="250" z="-5"/> <DrawItem type="potato" x="-48" y="250" z="41"/> <DrawItem type="potato" x="-48" y="250" z="-12"/> <DrawItem type="potato" x="-7" y="250" z="-42"/> <DrawItem type="beef" x="26" y="250" z="9"/> <DrawItem type="pumpkin_pie" x="-7" y="250" z="-40"/> <DrawItem type="sugar" x="-2" y="250" z="-48"/> <DrawItem type="egg" x="7" y="250" z="-27"/> <DrawItem type="pumpkin_pie" x="17" y="250" z="38"/> <DrawItem type="porkchop" x="-8" y="250" z="-6"/> <DrawItem type="egg" x="4" y="250" z="31"/> <DrawItem type="chicken" x="-49" y="250" z="-11"/> <DrawItem type="pumpkin_pie" x="-1" y="250" z="11"/> <DrawItem type="apple" x="-6" y="250" z="-35"/> <DrawItem type="fish" x="-38" y="250" z="18"/> <DrawItem type="cookie" x="34" y="250" z="5"/> <DrawItem type="fish" x="46" y="250" z="-11"/> <DrawItem type="fish" x="-21" y="250" z="-29"/> <DrawItem type="carrot" x="-10" y="250" z="-47"/> <DrawItem type="cake" x="-26" y="250" z="26"/> <DrawItem type="pumpkin_pie" x="-25" y="250" z="-13"/> <DrawItem type="fish" x="43" y="250" z="2"/> <DrawItem type="apple" x="46" y="250" z="47"/> <DrawItem type="mutton" x="15" y="250" z="-48"/> <DrawItem type="beef" x="46" y="250" z="-1"/> <DrawItem type="carrot" x="16" y="250" z="6"/> <DrawItem type="mutton" x="-27" y="250" z="26"/> <DrawItem type="beef" x="35" y="250" z="-13"/> <DrawItem type="chicken" x="44" y="250" z="3"/> <DrawItem type="rabbit" x="-44" y="250" z="42"/> <DrawItem type="egg" x="43" y="250" z="15"/> <DrawItem type="rabbit" x="33" y="250" z="-37"/> <DrawItem type="fish" x="-9" y="250" z="-25"/> <DrawItem type="melon" x="-45" y="250" z="-21"/> <DrawItem type="mutton" x="-13" y="250" z="-40"/> <DrawItem type="cookie" x="-7" y="250" z="-31"/> <DrawItem type="cookie" x="32" y="250" z="-22"/> <DrawItem type="rabbit" x="15" y="250" z="16"/> <DrawItem type="mutton" x="-37" y="250" z="26"/> <DrawItem type="cookie" x="19" y="250" z="47"/> <DrawItem type="beef" x="33" y="250" z="-22"/> <DrawItem type="melon" x="19" y="250" z="-25"/> <DrawItem type="sugar" x="8" y="250" z="10"/> <DrawItem type="egg" x="-41" y="250" z="32"/> <DrawItem type="beef" x="49" y="250" z="-18"/> <DrawItem type="beef" x="-26" y="250" z="8"/> <DrawItem type="porkchop" x="-49" y="250" z="19"/> <DrawItem type="beef" x="-34" y="250" z="39"/> <DrawItem type="potato" x="-26" y="250" z="-24"/> <DrawItem type="melon" x="37" y="250" z="-17"/> <DrawItem type="melon" x="-49" y="250" z="-49"/> <DrawItem type="potato" x="-45" y="250" z="23"/> <DrawItem type="potato" x="40" y="250" z="-18"/> <DrawItem type="cake" x="-5" y="250" z="-49"/> <DrawItem type="chicken" x="34" y="250" z="-9"/> <DrawItem type="sugar" x="-8" y="250" z="44"/> <DrawItem type="egg" x="-7" y="250" z="-22"/> <DrawItem type="carrot" x="20" y="250" z="36"/> <DrawItem type="egg" x="-21" y="250" z="-9"/> <DrawItem type="sugar" x="50" y="250" z="22"/> <DrawItem type="apple" x="31" y="250" z="-13"/> <DrawItem type="mutton" x="-46" y="250" z="-23"/> <DrawItem type="cake" x="19" y="250" z="-8"/> <DrawItem type="beef" x="29" y="250" z="-43"/> <DrawItem type="pumpkin_pie" x="-43" y="250" z="37"/> <DrawItem type="chicken" x="-12" y="250" z="45"/> <DrawItem type="beef" x="-19" y="250" z="2"/> <DrawItem type="egg" x="-32" y="250" z="-13"/> <DrawItem type="egg" x="41" y="250" z="13"/> <DrawItem type="apple" x="34" y="250" z="-13"/> <DrawItem type="carrot" x="25" y="250" z="49"/> <DrawItem type="rabbit" x="-10" y="250" z="24"/> <DrawItem type="chicken" x="45" y="250" z="-27"/> <DrawItem type="egg" x="-22" y="250" z="44"/> <DrawItem type="melon" x="44" y="250" z="39"/> <DrawItem type="beef" x="48" y="250" z="-8"/> <DrawItem type="cake" x="-45" y="250" z="18"/> <DrawItem type="fish" x="-27" y="250" z="34"/> <DrawItem type="potato" x="24" y="250" z="-18"/> <DrawItem type="melon" x="50" y="250" z="43"/> <DrawItem type="egg" x="-23" y="250" z="34"/> <DrawItem type="carrot" x="-11" y="250" z="27"/> <DrawItem type="mutton" x="28" y="250" z="-44"/> <DrawItem type="rabbit" x="-47" y="250" z="-29"/> <DrawItem type="fish" x="17" y="250" z="-5"/> <DrawItem type="porkchop" x="-42" y="250" z="25"/> <DrawItem type="sugar" x="26" y="250" z="48"/> <DrawItem type="melon" x="44" y="250" z="-26"/> <DrawItem type="chicken" x="-14" y="250" z="-33"/> <DrawItem type="egg" x="17" y="250" z="7"/> <DrawItem type="cookie" x="-36" y="250" z="40"/> <DrawItem type="cookie" x="-32" y="250" z="28"/> <DrawItem type="rabbit" x="48" y="250" z="-18"/> <DrawItem type="porkchop" x="24" y="250" z="-24"/> <DrawItem type="melon" x="-13" y="250" z="-17"/> <DrawItem type="rabbit" x="-25" y="250" z="38"/> <DrawItem type="porkchop" x="18" y="250" z="47"/> <DrawItem type="porkchop" x="-47" y="250" z="34"/> <DrawItem type="mutton" x="-11" y="250" z="10"/> <DrawItem type="potato" x="-17" y="250" z="-38"/> <DrawItem type="mutton" x="-42" y="250" z="34"/> <DrawItem type="potato" x="-4" y="250" z="-33"/> <DrawItem type="mutton" x="-10" y="250" z="39"/> <DrawItem type="fish" x="44" y="250" z="-38"/> <DrawItem type="apple" x="-11" y="250" z="34"/> <DrawItem type="porkchop" x="-30" y="250" z="-4"/> <DrawItem type="melon" x="11" y="250" z="19"/> <DrawItem type="melon" x="36" y="250" z="2"/> <DrawItem type="carrot" x="32" y="250" z="-41"/> <DrawItem type="cookie" x="32" y="250" z="-39"/> <DrawItem type="melon" x="26" y="250" z="-27"/> <DrawItem type="mutton" x="46" y="250" z="-12"/> <DrawItem type="porkchop" x="32" y="250" z="-41"/> <DrawItem type="potato" x="-40" y="250" z="11"/> <DrawItem type="egg" x="-1" y="250" z="-13"/> <DrawItem type="fish" x="4" y="250" z="2"/> <DrawItem type="chicken" x="-9" y="250" z="22"/> <DrawItem type="pumpkin_pie" x="31" y="250" z="5"/> <DrawItem type="apple" x="-13" y="250" z="-38"/> <DrawItem type="rabbit" x="4" y="250" z="38"/> <DrawItem type="potato" x="-2" y="250" z="45"/> <DrawItem type="potato" x="7" y="250" z="-18"/> <DrawItem type="sugar" x="-34" y="250" z="45"/> <DrawItem type="sugar" x="31" y="250" z="-30"/> <DrawItem type="egg" x="-26" y="250" z="29"/> <DrawItem type="potato" x="13" y="250" z="37"/> <DrawItem type="beef" x="-45" y="250" z="-33"/> <DrawItem type="carrot" x="20" y="250" z="29"/> <DrawItem type="potato" x="-48" y="250" z="-41"/> <DrawItem type="sugar" x="-11" y="250" z="-22"/> <DrawItem type="melon" x="-48" y="250" z="25"/> <DrawItem type="egg" x="-32" y="250" z="-24"/> <DrawItem type="chicken" x="-46" y="250" z="-12"/> <DrawItem type="sugar" x="17" y="250" z="34"/> <DrawItem type="mutton" x="-37" y="250" z="-44"/> <DrawItem type="carrot" x="-15" y="250" z="26"/> <DrawItem type="egg" x="-48" y="250" z="40"/> <DrawItem type="melon" x="-22" y="250" z="-6"/> <DrawItem type="sugar" x="-4" y="250" z="33"/> <DrawItem type="pumpkin_pie" x="24" y="250" z="29"/> <DrawItem type="beef" x="-16" y="250" z="22"/> <DrawItem type="beef" x="-50" y="250" z="6"/> <DrawItem type="porkchop" x="19" y="250" z="30"/> <DrawItem type="carrot" x="-49" y="250" z="-32"/> <DrawItem type="cookie" x="3" y="250" z="-27"/> <DrawItem type="melon" x="46" y="250" z="13"/> <DrawItem type="porkchop" x="-32" y="250" z="-3"/> <DrawItem type="mutton" x="-33" y="250" z="-40"/> <DrawItem type="cookie" x="43" y="250" z="7"/> <DrawItem type="carrot" x="32" y="250" z="-13"/> <DrawItem type="chicken" x="-50" y="250" z="-50"/> <DrawItem type="cookie" x="32" y="250" z="-15"/> <DrawItem type="sugar" x="30" y="250" z="34"/> <DrawItem type="mutton" x="-7" y="250" z="8"/> <DrawItem type="chicken" x="31" y="250" z="-42"/> <DrawItem type="chicken" x="-36" y="250" z="31"/> <DrawItem type="egg" x="-5" y="250" z="49"/> <DrawItem type="cookie" x="-31" y="250" z="-45"/> <DrawItem type="carrot" x="38" y="250" z="50"/> <DrawItem type="chicken" x="0" y="250" z="26"/> <DrawItem type="apple" x="43" y="250" z="1"/> <DrawItem type="beef" x="-46" y="250" z="30"/> <DrawItem type="sugar" x="16" y="250" z="24"/> <DrawItem type="beef" x="-50" y="250" z="21"/> <DrawItem type="sugar" x="-14" y="250" z="20"/> <DrawItem type="mutton" x="-29" y="250" z="24"/> <DrawItem type="melon" x="-26" y="250" z="24"/> <DrawItem type="beef" x="-2" y="250" z="-16"/> <DrawItem type="melon" x="-30" y="250" z="42"/> <DrawItem type="rabbit" x="38" y="250" z="-48"/> <DrawItem type="rabbit" x="35" y="250" z="5"/> <DrawItem type="carrot" x="-11" y="250" z="-25"/> <DrawItem type="porkchop" x="30" y="250" z="-27"/> <DrawItem type="carrot" x="-6" y="250" z="-37"/> <DrawItem type="carrot" x="-42" y="250" z="22"/> <DrawItem type="egg" x="50" y="250" z="-5"/> <DrawItem type="carrot" x="20" y="250" z="-5"/> <DrawItem type="beef" x="19" y="250" z="33"/> <DrawItem type="cookie" x="-28" y="250" z="17"/> <DrawItem type="mutton" x="25" y="250" z="16"/> <DrawItem type="cake" x="-23" y="250" z="-26"/> <DrawItem type="rabbit" x="49" y="250" z="11"/> <DrawItem type="potato" x="-36" y="250" z="-13"/> <DrawItem type="egg" x="5" y="250" z="18"/> <DrawItem type="cake" x="30" y="250" z="21"/> <DrawItem type="porkchop" x="46" y="250" z="-49"/> <DrawItem type="potato" x="-1" y="250" z="6"/> <DrawItem type="sugar" x="-4" y="250" z="20"/> <DrawItem type="cookie" x="-22" y="250" z="-44"/> <DrawItem type="cookie" x="-43" y="250" z="-20"/> <DrawItem type="rabbit" x="27" y="250" z="23"/> <DrawItem type="porkchop" x="12" y="250" z="32"/> <DrawItem type="melon" x="10" y="250" z="-22"/> <DrawItem type="potato" x="6" y="250" z="-38"/> <DrawItem type="cookie" x="-1" y="250" z="17"/> <DrawItem type="mutton" x="-36" y="250" z="-21"/> <DrawItem type="cake" x="5" y="250" z="37"/> <DrawItem type="beef" x="26" y="250" z="-49"/> <DrawItem type="fish" x="25" y="250" z="-34"/> <DrawItem type="melon" x="30" y="250" z="23"/> <DrawItem type="sugar" x="-33" y="250" z="35"/> <DrawItem type="carrot" x="-34" y="250" z="-11"/> <DrawItem type="beef" x="32" y="250" z="-38"/> <DrawItem type="egg" x="40" y="250" z="20"/> <DrawItem type="pumpkin_pie" x="26" y="250" z="-27"/> <DrawItem type="mutton" x="23" y="250" z="-35"/> <DrawItem type="cookie" x="26" y="250" z="15"/> <DrawItem type="rabbit" x="-43" y="250" z="33"/> <DrawItem type="cake" x="8" y="250" z="-46"/> <DrawItem type="fish" x="12" y="250" z="34"/> <DrawItem type="beef" x="-26" y="250" z="-23"/> <DrawItem type="chicken" x="-9" y="250" z="-3"/> <DrawItem type="porkchop" x="-5" y="250" z="42"/> <DrawItem type="rabbit" x="-18" y="250" z="-48"/> <DrawItem type="apple" x="16" y="250" z="50"/> <DrawItem type="cake" x="-37" y="250" z="-40"/> <DrawItem type="carrot" x="-42" y="250" z="18"/> <DrawItem type="cake" x="-13" y="250" z="26"/> <DrawItem type="beef" x="-17" y="250" z="3"/> <DrawItem type="potato" x="50" y="250" z="-20"/> <DrawItem type="beef" x="20" y="250" z="-26"/> <DrawItem type="cake" x="50" y="250" z="-28"/> <DrawItem type="porkchop" x="-49" y="250" z="-24"/> <DrawItem type="pumpkin_pie" x="9" y="250" z="-33"/> <DrawItem type="potato" x="0" y="250" z="1"/> <DrawItem type="carrot" x="-7" y="250" z="-47"/> <DrawItem type="mutton" x="21" y="250" z="37"/> <DrawItem type="cake" x="25" y="250" z="-32"/> <DrawItem type="chicken" x="6" y="250" z="23"/> <DrawItem type="fish" x="-28" y="250" z="-17"/> <DrawItem type="potato" x="-45" y="250" z="-46"/> <DrawItem type="beef" x="-28" y="250" z="1"/> <DrawItem type="cookie" x="-11" y="250" z="-14"/> <DrawItem type="pumpkin_pie" x="-28" y="250" z="21"/> <DrawItem type="mutton" x="11" y="250" z="14"/> <DrawItem type="carrot" x="12" y="250" z="41"/> <DrawItem type="cookie" x="13" y="250" z="-31"/> <DrawItem type="pumpkin_pie" x="-29" y="250" z="47"/> <DrawItem type="melon" x="-4" y="250" z="45"/> <DrawItem type="beef" x="-41" y="250" z="-37"/> <DrawItem type="potato" x="50" y="250" z="33"/> <DrawItem type="porkchop" x="-33" y="250" z="-31"/> <DrawItem type="pumpkin_pie" x="19" y="250" z="3"/> <DrawItem type="mutton" x="-10" y="250" z="-35"/> <DrawItem type="cookie" x="46" y="250" z="2"/> <DrawItem type="carrot" x="2" y="250" z="40"/> <DrawItem type="chicken" x="0" y="250" z="2"/> <DrawItem type="pumpkin_pie" x="13" y="250" z="-5"/> <DrawItem type="beef" x="15" y="250" z="41"/> <DrawItem type="rabbit" x="-24" y="250" z="-9"/> <DrawItem type="melon" x="-14" y="250" z="-33"/> <DrawItem type="beef" x="10" y="250" z="-11"/> <DrawItem type="pumpkin_pie" x="25" y="250" z="8"/> <DrawItem type="porkchop" x="-30" y="250" z="11"/> <DrawItem type="fish" x="23" y="250" z="6"/> <DrawItem type="pumpkin_pie" x="-13" y="250" z="41"/> <DrawItem type="fish" x="40" y="250" z="-43"/> <DrawItem type="egg" x="-20" y="250" z="31"/> <DrawItem type="apple" x="-38" y="250" z="-47"/> <DrawItem type="rabbit" x="-5" y="250" z="-28"/> <DrawItem type="pumpkin_pie" x="18" y="250" z="23"/> <DrawItem type="melon" x="-29" y="250" z="-19"/> <DrawItem type="beef" x="-35" y="250" z="0"/> <DrawItem type="cookie" x="-12" y="250" z="10"/> <DrawItem type="potato" x="28" y="250" z="36"/> <DrawItem type="mutton" x="31" y="250" z="9"/> <DrawItem type="pumpkin_pie" x="-39" y="250" z="-23"/> <DrawItem type="rabbit" x="-21" y="250" z="-27"/> <DrawItem type="potato" x="8" y="250" z="34"/> <DrawItem type="mutton" x="1" y="250" z="12"/> <DrawItem type="melon" x="1" y="250" z="-27"/> <DrawItem type="egg" x="22" y="250" z="28"/> <DrawItem type="cookie" x="-47" y="250" z="-25"/> <DrawItem type="mutton" x="-11" y="250" z="14"/> <DrawItem type="apple" x="20" y="250" z="4"/> <DrawItem type="pumpkin_pie" x="-31" y="250" z="44"/> <DrawItem type="sugar" x="-14" y="250" z="-45"/> <DrawItem type="porkchop" x="24" y="250" z="19"/> <DrawItem type="beef" x="40" y="250" z="-1"/> <DrawItem type="mutton" x="37" y="250" z="0"/> <DrawItem type="cookie" x="-48" y="250" z="-23"/> <DrawItem type="rabbit" x="-15" y="250" z="23"/> <DrawItem type="carrot" x="13" y="250" z="-11"/> <DrawItem type="potato" x="4" y="250" z="31"/> <DrawItem type="fish" x="29" y="250" z="-18"/> <DrawItem type="rabbit" x="-41" y="250" z="41"/> <DrawItem type="egg" x="16" y="250" z="13"/> <DrawItem type="melon" x="-41" y="250" z="-40"/> <DrawItem type="chicken" x="7" y="250" z="20"/> <DrawItem type="apple" x="17" y="250" z="-43"/> <DrawItem type="carrot" x="34" y="250" z="23"/> <DrawItem type="melon" x="-49" y="250" z="-5"/> <DrawItem type="potato" x="-39" y="250" z="18"/> <DrawItem type="porkchop" x="-39" y="250" z="-15"/> <DrawItem type="rabbit" x="44" y="250" z="34"/> <DrawItem type="fish" x="-35" y="250" z="34"/> <DrawItem type="sugar" x="43" y="250" z="46"/> <DrawItem type="apple" x="-6" y="250" z="31"/> <DrawItem type="rabbit" x="13" y="250" z="5"/> <DrawItem type="egg" x="-17" y="250" z="-33"/> <DrawItem type="porkchop" x="-2" y="250" z="14"/> <DrawItem type="porkchop" x="31" y="250" z="-22"/> <DrawItem type="melon" x="46" y="250" z="-35"/> <DrawItem type="porkchop" x="-42" y="250" z="-23"/> <DrawItem type="cake" x="-45" y="250" z="-42"/> <DrawItem type="cookie" x="5" y="250" z="-2"/> <DrawItem type="fish" x="47" y="250" z="29"/> <DrawItem type="fish" x="39" y="250" z="-20"/> <DrawItem type="cake" x="-29" y="250" z="16"/> <DrawItem type="carrot" x="33" y="250" z="8"/> <DrawItem type="fish" x="-47" y="250" z="6"/> <DrawItem type="cookie" x="-2" y="250" z="13"/> <DrawItem type="pumpkin_pie" x="25" y="250" z="-2"/> <DrawItem type="apple" x="-39" y="250" z="23"/> <DrawItem type="fish" x="37" y="250" z="4"/> <DrawItem type="fish" x="8" y="250" z="37"/> <DrawItem type="cookie" x="-29" y="250" z="38"/> <DrawItem type="cookie" x="-39" y="250" z="-5"/> <DrawItem type="pumpkin_pie" x="17" y="250" z="-38"/> <DrawItem type="carrot" x="-38" y="250" z="-34"/> <DrawItem type="porkchop" x="-17" y="250" z="2"/> <DrawItem type="pumpkin_pie" x="6" y="250" z="0"/> <DrawItem type="beef" x="43" y="250" z="-36"/> <DrawItem type="carrot" x="1" y="250" z="3"/> <DrawItem type="apple" x="-23" y="250" z="-14"/> <DrawItem type="mutton" x="-19" y="250" z="30"/> <DrawItem type="fish" x="12" y="250" z="-3"/> <DrawItem type="porkchop" x="38" y="250" z="14"/> <DrawItem type="apple" x="7" y="250" z="28"/> <DrawItem type="cake" x="9" y="250" z="-5"/> <DrawItem type="melon" x="-49" y="250" z="22"/> <DrawItem type="fish" x="-39" y="250" z="-42"/> <DrawItem type="rabbit" x="23" y="250" z="22"/> <DrawItem type="rabbit" x="8" y="250" z="-14"/> <DrawItem type="chicken" x="-10" y="250" z="-19"/> <DrawItem type="porkchop" x="-1" y="250" z="8"/> <DrawItem type="pumpkin_pie" x="8" y="250" z="23"/> <DrawItem type="cookie" x="34" y="250" z="-1"/> <DrawItem type="carrot" x="32" y="250" z="-5"/> <DrawItem type="egg" x="50" y="250" z="-29"/> <DrawItem type="cake" x="40" y="250" z="31"/> <DrawItem type="pumpkin_pie" x="48" y="250" z="23"/> <DrawItem type="rabbit" x="36" y="250" z="17"/> <DrawItem type="sugar" x="-10" y="250" z="-31"/> <DrawItem type="mutton" x="-25" y="250" z="-31"/> <DrawItem type="egg" x="33" y="250" z="42"/> <DrawItem type="fish" x="-23" y="250" z="-8"/> <DrawItem type="rabbit" x="27" y="250" z="32"/> <DrawItem type="apple" x="-41" y="250" z="-37"/> <DrawItem type="egg" x="40" y="250" z="-17"/> <DrawItem type="apple" x="-41" y="250" z="-32"/> <DrawItem type="carrot" x="-16" y="250" z="42"/> <DrawItem type="cake" x="-16" y="250" z="45"/> <DrawItem type="mutton" x="-35" y="250" z="38"/> <DrawItem type="fish" x="-45" y="250" z="38"/> <DrawItem type="apple" x="-7" y="250" z="31"/> <DrawItem type="apple" x="0" y="250" z="-36"/> <DrawItem type="mutton" x="-46" y="250" z="2"/> <DrawItem type="cake" x="28" y="250" z="46"/> <DrawItem type="melon" x="33" y="250" z="-38"/> <DrawItem type="fish" x="37" y="250" z="-23"/> <DrawItem type="chicken" x="-32" y="250" z="-46"/> <DrawItem type="potato" x="26" y="250" z="-44"/> <DrawItem type="melon" x="-16" y="250" z="-48"/> <DrawItem type="porkchop" x="50" y="250" z="44"/> <DrawItem type="mutton" x="-34" y="250" z="-50"/> <DrawItem type="pumpkin_pie" x="38" y="250" z="24"/> <DrawItem type="mutton" x="-10" y="250" z="-1"/> <DrawItem type="pumpkin_pie" x="41" y="250" z="-10"/> <DrawItem type="beef" x="2" y="250" z="-50"/> <DrawItem type="sugar" x="42" y="250" z="-50"/> <DrawItem type="beef" x="-47" y="250" z="20"/> <DrawItem type="mutton" x="-22" y="250" z="46"/> <DrawItem type="cookie" x="28" y="250" z="-48"/> <DrawItem type="mutton" x="-7" y="250" z="20"/> <DrawItem type="egg" x="48" y="250" z="41"/> <DrawItem type="egg" x="49" y="250" z="27"/> <DrawItem type="apple" x="-20" y="250" z="14"/> <DrawItem type="fish" x="-13" y="250" z="-21"/> <DrawItem type="carrot" x="-12" y="250" z="-24"/> <DrawItem type="rabbit" x="-7" y="250" z="9"/> <DrawItem type="pumpkin_pie" x="15" y="250" z="48"/> <DrawItem type="beef" x="30" y="250" z="-23"/> <DrawItem type="cookie" x="50" y="250" z="5"/> <DrawItem type="chicken" x="-33" y="250" z="-25"/> <DrawItem type="cake" x="18" y="250" z="-13"/> </DrawingDecorator> <ServerQuitFromTimeUp description="" timeLimitMs="60000"/> <ServerQuitWhenAnyAgentFinishes description=""/> </ServerHandlers> </ServerSection> <AgentSection mode="Survival"> <Name>Agent0</Name> <AgentStart> <Placement pitch="0" x="0.5" y="227.0" yaw="0" z="0.5"/> <Inventory/> </AgentStart> <AgentHandlers> <VideoProducer want_depth="false"> <Width>480</Width> <Height>320</Height> </VideoProducer> <ObservationFromFullStats /> <RewardForCollectingItem> <Item reward="2" type="fish porkchop beef chicken rabbit mutton"/> <Item reward="1" type="potato egg carrot"/> <Item reward="-1" type="apple melon"/> <Item reward="-2" type="sugar cake cookie pumpkin_pie"/> </RewardForCollectingItem> <ContinuousMovementCommands turnSpeedDegs="240"> <ModifierList type="deny-list"> <command>attack</command> </ModifierList> </ContinuousMovementCommands> <MissionQuitCommands/> </AgentHandlers> </AgentSection> </Mission> ```
/content/code_sandbox/MalmoEnv/missions/eating.xml
xml
2016-05-17T14:58:40
2024-08-13T12:38:11
malmo
microsoft/malmo
4,051
8,834
```xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="path_to_url"> <item android:state_pressed="true"> <shape android:shape="rectangle"> <corners android:radius="3dp"/> <solid android:color="#084e61"/> </shape> </item> <item android:state_pressed="false"> <shape android:shape="rectangle"> <corners android:radius="3dp"/> <solid android:color="#0c82a3"/> </shape> </item> </selector> ```
/content/code_sandbox/sample/src/main/res/drawable/bg_btn_shape.xml
xml
2016-03-05T04:47:40
2024-08-04T19:55:42
NineGridImageView
laobie/NineGridImageView
1,449
128
```xml <?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="path_to_url" xmlns:app="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"> <com.github.rubensousa.gravitysnaphelper.GravitySnapRecyclerView android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" app:snapEnabled="false" app:snapGravity="top" app:snapMaxFlingSizeFraction="2" app:snapScrollMsPerInch="50" /> <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"> <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?actionBarSize" app:popupTheme="@style/AppTheme.PopupOverlay" app:title="@string/app_name" /> </com.google.android.material.appbar.AppBarLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout> ```
/content/code_sandbox/app/src/main/res/layout/activity_main.xml
xml
2016-08-31T07:25:23
2024-08-13T00:30:46
GravitySnapHelper
rubensousa/GravitySnapHelper
4,998
291
```xml import { type Observable, type WebChatActivity } from 'botframework-webchat-core'; import useWebChatAPIContext from './internal/useWebChatAPIContext'; export default function usePostActivity(): (activity: WebChatActivity) => Observable<string> { return useWebChatAPIContext().postActivity; } ```
/content/code_sandbox/packages/api/src/hooks/usePostActivity.ts
xml
2016-07-07T23:16:57
2024-08-16T00:12:37
BotFramework-WebChat
microsoft/BotFramework-WebChat
1,567
65
```xml import React from 'react'; type IconProps = React.SVGProps<SVGSVGElement>; export declare const IcArrowsUpAndLeftBig: (props: IconProps) => React.JSX.Element; export {}; ```
/content/code_sandbox/packages/icons/lib/icArrowsUpAndLeftBig.d.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
47
```xml interface LiveExample { /** Title of the example. */ title: string; /** Name of the example component. */ componentName: string; /** Selector to match the component of this example. */ selector: string; /** Name of the primary file of this example. */ primaryFile: string; /** List of files which are part of the example. */ files: string[]; /** Path to the directory containing the example. */ packagePath: string; /** List of additional components which are part of the example. */ additionalComponents: string[]; /** Path from which to import the xample. */ importPath: string; } export const EXAMPLE_COMPONENTS: {[id: string]: LiveExample}; ```
/content/code_sandbox/src/components-examples/example-module.d.ts
xml
2016-01-04T18:50:02
2024-08-16T11:21:13
components
angular/components
24,263
155
```xml /* * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modified, * propagated, or distributed except according to the terms contained in the * LICENSE file. * * Removal or modification of this copyright notice is prohibited. * */ import { EventCallback, Channel, RegisteredSchemas, NodeInfo, ModuleMetadata } from './types'; import { NodeMethods } from './node_methods'; import { BlockMethods } from './block_methods'; import { TransactionMethods } from './transaction_methods'; import { EventMethods } from './event_methods'; export class APIClient { private readonly _channel: Channel; private _schema!: RegisteredSchemas; private _metadata!: ModuleMetadata[]; private _nodeInfo!: NodeInfo; private _nodeMethods!: NodeMethods; private _blockMethods!: BlockMethods; private _transactionMethods!: TransactionMethods; private _eventMethods!: EventMethods; public constructor(channel: Channel) { this._channel = channel; } public async init(): Promise<void> { const { modules } = await this._channel.invoke<{ modules: ModuleMetadata[] }>( 'system_getMetadata', ); this._metadata = modules; this._schema = await this._channel.invoke<RegisteredSchemas>('system_getSchema'); this._nodeMethods = new NodeMethods(this._channel); this._blockMethods = new BlockMethods(this._channel, this._schema, this._metadata); this._nodeInfo = await this._nodeMethods.getNodeInfo(); this._transactionMethods = new TransactionMethods( this._channel, this._schema, this._metadata, this._nodeInfo, ); this._eventMethods = new EventMethods(this._channel, this._metadata); } public async disconnect(): Promise<void> { return this._channel.disconnect(); } public async invoke<T = Record<string, unknown>>( actionName: string, params?: Record<string, unknown>, ): Promise<T> { return this._channel.invoke(actionName, params); } public subscribe(eventName: string, cb: EventCallback): void { this._channel.subscribe(eventName, cb); } public get schema(): RegisteredSchemas { return this._schema; } public get metadata(): ModuleMetadata[] { return this._metadata; } public get node(): NodeMethods { return this._nodeMethods; } public get block(): BlockMethods { return this._blockMethods; } public get transaction(): TransactionMethods { return this._transactionMethods; } public get event(): EventMethods { return this._eventMethods; } } ```
/content/code_sandbox/elements/lisk-api-client/src/api_client.ts
xml
2016-02-01T21:45:35
2024-08-15T19:16:48
lisk-sdk
LiskArchive/lisk-sdk
2,721
576
```xml import * as path from 'path'; import { testUtils } from '../../utils/test_utils'; import { findTsConfig } from '../findTSConfig'; testUtils(); const cases = path.join(__dirname, 'cases'); describe('Find typescript config', () => { it('Should find by directory', () => { const data = findTsConfig({ directory: path.join(cases, 'case1/src/foo/bar'), root: cases, }); expect(data).toMatchFilePath('cases/case1/tsconfig.json$'); }); it('Should find by fileName', () => { const data = findTsConfig({ fileName: path.join(cases, 'case1/src/foo/bar/hello.js'), root: cases, }); expect(data).toMatchFilePath('cases/case1/tsconfig.json$'); }); it('Should not find', () => { const data = findTsConfig({ directory: path.join(cases, 'case1/src/foo/bar'), root: path.join(cases, 'case1/src'), }); expect(data).toBeUndefined(); }); it('Should not find (max iterations reached)', () => { const directories = [cases]; for (let i = 0; i <= 30; i++) { directories.push(`dir_${i}`); } const data = findTsConfig({ directory: path.join(...directories), root: cases, }); expect(data).toBeUndefined(); }); }); ```
/content/code_sandbox/src/compilerOptions/__tests__/compilerOptions.test.ts
xml
2016-10-28T10:37:16
2024-07-27T15:17:43
fuse-box
fuse-box/fuse-box
4,003
315
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <rde:deposit xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xmlns:rdeContact="urn:ietf:params:xml:ns:rdeContact-1.0" xmlns:rdeDomain="urn:ietf:params:xml:ns:rdeDomain-1.0" xmlns:epp="urn:ietf:params:xml:ns:epp-1.0" xmlns:rdeNNDN="urn:ietf:params:xml:ns:rdeNNDN-1.0" xmlns:rdeRegistrar="urn:ietf:params:xml:ns:rdeRegistrar-1.0" xmlns:rgp="urn:ietf:params:xml:ns:rgp-1.0" xmlns:dsig="path_to_url#" xmlns:launch="urn:ietf:params:xml:ns:launch-1.0" xmlns:rde="urn:ietf:params:xml:ns:rde-1.0" xmlns:rdeEppParams="urn:ietf:params:xml:ns:rdeEppParams-1.0" xmlns:rdeNotification="urn:ietf:params:xml:ns:rdeNotification-1.0" xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1" xmlns:host="urn:ietf:params:xml:ns:host-1.0" xmlns:mark="urn:ietf:params:xml:ns:mark-1.0" xmlns:rdeIDN="urn:ietf:params:xml:ns:rdeIDN-1.0" xmlns:rdePolicy="urn:ietf:params:xml:ns:rdePolicy-1.0" xmlns:eppcom="urn:ietf:params:xml:ns:eppcom-1.0" xmlns:smd="urn:ietf:params:xml:ns:signedMark-1.0" xmlns:rdeHost="urn:ietf:params:xml:ns:rdeHost-1.0" xmlns:rdeReport="urn:ietf:params:xml:ns:rdeReport-1.0" xmlns:iirdea="urn:ietf:params:xml:ns:iirdea-1.0" xmlns:rdeHeader="urn:ietf:params:xml:ns:rdeHeader-1.0" type="FULL" id="AAAACK5XPRKAA"> <rde:watermark>2010-10-17T00:00:00Z</rde:watermark> <rde:rdeMenu> <rde:version>1.0</rde:version> <rde:objURI>urn:ietf:params:xml:ns:rdeContact-1.0</rde:objURI> <rde:objURI>urn:ietf:params:xml:ns:rdeDomain-1.0</rde:objURI> <rde:objURI>urn:ietf:params:xml:ns:rdeHost-1.0</rde:objURI> <rde:objURI>urn:ietf:params:xml:ns:rdeRegistrar-1.0</rde:objURI> <rde:objURI>urn:ietf:params:xml:ns:rdeHeader-1.0</rde:objURI> <rde:objURI>urn:ietf:params:xml:ns:rdeIDN-1.0</rde:objURI> </rde:rdeMenu> <rde:contents> <rdeHost:host> <rdeHost:name>ns1.cat.lol</rdeHost:name> <rdeHost:roid>5-ROID</rdeHost:roid> <rdeHost:status s="ok"/> <rdeHost:addr ip="v6">feed::a:bee</rdeHost:addr> <rdeHost:clID>BusinessCat</rdeHost:clID> <rdeHost:crRr>LawyerCat</rdeHost:crRr> <rdeHost:crDate>1999-12-31T00:00:00Z</rdeHost:crDate> <rdeHost:upRr>CeilingCat</rdeHost:upRr> <rdeHost:upDate>1999-12-31T00:00:00Z</rdeHost:upDate> <rdeHost:trDate>1910-01-01T00:00:00Z</rdeHost:trDate> </rdeHost:host> <rdeRegistrar:registrar> <rdeRegistrar:id>NewRegistrar</rdeRegistrar:id> <rdeRegistrar:name>New Registrar</rdeRegistrar:name> <rdeRegistrar:gurid>8</rdeRegistrar:gurid> <rdeRegistrar:status>ok</rdeRegistrar:status> <rdeRegistrar:postalInfo type="loc"> <rdeRegistrar:addr> <rdeRegistrar:street>123 Example Bulevard</rdeRegistrar:street> <rdeRegistrar:city>Williamsburg</rdeRegistrar:city> <rdeRegistrar:sp>NY</rdeRegistrar:sp> <rdeRegistrar:pc>11211</rdeRegistrar:pc> <rdeRegistrar:cc>US</rdeRegistrar:cc> </rdeRegistrar:addr> </rdeRegistrar:postalInfo> <rdeRegistrar:postalInfo type="int"> <rdeRegistrar:addr> <rdeRegistrar:street>123 Example Boulevard</rdeRegistrar:street> <rdeRegistrar:city>Williamsburg</rdeRegistrar:city> <rdeRegistrar:sp>NY</rdeRegistrar:sp> <rdeRegistrar:pc>11211</rdeRegistrar:pc> <rdeRegistrar:cc>US</rdeRegistrar:cc> </rdeRegistrar:addr> </rdeRegistrar:postalInfo> <rdeRegistrar:voice>+1.3334445555</rdeRegistrar:voice> <rdeRegistrar:email>new.registrar@example.com</rdeRegistrar:email> <rdeRegistrar:whoisInfo> <rdeRegistrar:name>whois.nic.fakewhois.example</rdeRegistrar:name> </rdeRegistrar:whoisInfo> <rdeRegistrar:crDate>2015-08-10T14:53:45Z</rdeRegistrar:crDate> <rdeRegistrar:upDate>2015-08-10T14:53:45Z</rdeRegistrar:upDate> </rdeRegistrar:registrar> <rdeRegistrar:registrar> <rdeRegistrar:id>TheRegistrar</rdeRegistrar:id> <rdeRegistrar:name>The Registrar</rdeRegistrar:name> <rdeRegistrar:gurid>1</rdeRegistrar:gurid> <rdeRegistrar:status>ok</rdeRegistrar:status> <rdeRegistrar:postalInfo type="loc"> <rdeRegistrar:addr> <rdeRegistrar:street>123 Example Bulevard</rdeRegistrar:street> <rdeRegistrar:city>Williamsburg</rdeRegistrar:city> <rdeRegistrar:sp>NY</rdeRegistrar:sp> <rdeRegistrar:pc>11211</rdeRegistrar:pc> <rdeRegistrar:cc>US</rdeRegistrar:cc> </rdeRegistrar:addr> </rdeRegistrar:postalInfo> <rdeRegistrar:postalInfo type="int"> <rdeRegistrar:addr> <rdeRegistrar:street>123 Example Boulevard</rdeRegistrar:street> <rdeRegistrar:city>Williamsburg</rdeRegistrar:city> <rdeRegistrar:sp>NY</rdeRegistrar:sp> <rdeRegistrar:pc>11211</rdeRegistrar:pc> <rdeRegistrar:cc>US</rdeRegistrar:cc> </rdeRegistrar:addr> </rdeRegistrar:postalInfo> <rdeRegistrar:voice>+1.2223334444</rdeRegistrar:voice> <rdeRegistrar:email>the.registrar@example.com</rdeRegistrar:email> <rdeRegistrar:whoisInfo> <rdeRegistrar:name>whois.nic.fakewhois.example</rdeRegistrar:name> </rdeRegistrar:whoisInfo> <rdeRegistrar:crDate>2015-08-10T14:53:45Z</rdeRegistrar:crDate> <rdeRegistrar:upDate>2015-08-10T14:53:45Z</rdeRegistrar:upDate> </rdeRegistrar:registrar> <rdeIDN:idnTableRef id="extended_latin"> <rdeIDN:url>path_to_url <rdeIDN:urlPolicy>path_to_url </rdeIDN:idnTableRef> <rdeIDN:idnTableRef id="unconfusable_latin"> <rdeIDN:url>path_to_url <rdeIDN:urlPolicy>path_to_url </rdeIDN:idnTableRef> <rdeIDN:idnTableRef id="ja"> <rdeIDN:url>path_to_url <rdeIDN:urlPolicy>path_to_url </rdeIDN:idnTableRef> <rdeHeader:header> <rdeHeader:tld>xn--q9jyb4c</rdeHeader:tld> <rdeHeader:count uri="urn:ietf:params:xml:ns:rdeDomain-1.0">0</rdeHeader:count> <rdeHeader:count uri="urn:ietf:params:xml:ns:rdeContact-1.0">0</rdeHeader:count> <rdeHeader:count uri="urn:ietf:params:xml:ns:rdeHost-1.0">1</rdeHeader:count> <rdeHeader:count uri="urn:ietf:params:xml:ns:rdeRegistrar-1.0">2</rdeHeader:count> <rdeHeader:count uri="urn:ietf:params:xml:ns:rdeIDN-1.0">3</rdeHeader:count> </rdeHeader:header> </rde:contents> </rde:deposit> ```
/content/code_sandbox/core/src/test/resources/google/registry/tools/server/xn--q9jyb4c_2010-10-17_full_S1_R0.xml
xml
2016-02-29T20:16:48
2024-08-15T19:49:29
nomulus
google/nomulus
1,685
2,322
```xml import { listOutputFiles, Template } from './index.js'; import { colorSetToVariants } from '../color-set/index.js'; const CELL_WIDTH = 676; const CELL_HEIGHT = 720; const PATTERN_WIDTH = CELL_WIDTH * 8; const PATTERN_HEIGHT = CELL_HEIGHT * 6; const template: Template = { name: 'Shirts wallpaper', render: async function* (colorSet, options) { const variants = colorSetToVariants(colorSet); for (const variant of variants) { for (const size of options.wallpaperSizes) { const { shade0, shade1, shade2, shade3, shade4, shade5, shade6, shade7, accent0, accent1, accent2, accent3, accent4, accent5, accent6, accent7, } = variant.colors; const scaleFactor = 3.25; const adjustedCellWidth = CELL_WIDTH / scaleFactor; const adjustedCellHeight = CELL_HEIGHT / scaleFactor; const cellCountX = size.w / adjustedCellWidth; const cellCountY = size.h / adjustedCellHeight; const surpriseX = Math.floor(cellCountX / 2) * adjustedCellWidth + (Math.floor(cellCountY / 2) % 2 === 0 ? 0 : adjustedCellWidth / 2); const surpriseY = Math.floor(cellCountY / 2) * adjustedCellHeight; const svg = ` <svg width="${size.w}" height="${size.h}" viewBox="0 0 ${size.w} ${size.h}" fill="none" xmlns="path_to_url" > <defs> <pattern id="bg" width="${PATTERN_WIDTH / scaleFactor}" height="${PATTERN_HEIGHT / scaleFactor}" viewBox="0 0 ${PATTERN_WIDTH} ${PATTERN_HEIGHT}" patternUnits="userSpaceOnUse" > <rect width="${PATTERN_WIDTH}" height="${PATTERN_HEIGHT}" fill="${shade0}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M296.113 238.887L204 292.069L236.125 347.71L273 326.42V480.569H335.021H341H403.021V326.42L439.897 347.71L472.021 292.069L380.77 239.385C376.138 258.429 358.97 272.569 338.5 272.569C317.852 272.569 300.564 258.183 296.113 238.887Z" fill="${accent1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M1006.96 280.022C1010.86 283.886 1017.14 283.886 1021.04 280.022L1062.07 239.35L1125 275.82L1102.2 315.468L1077.38 301.085C1072.73 310.807 1065.66 329.016 1065.31 350.255C1064.87 377.153 1076.72 451.89 1080.34 474.047V480.836H1018H1010H947.662V474.047C951.284 451.89 963.131 377.153 962.692 350.255C962.345 329.016 955.266 310.807 950.622 301.085L925.804 315.468L903 275.82L965.928 239.35L1006.96 280.022Z" fill="url(#paint0_linear)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M1648.11 238.887L1556 292.069L1588.12 347.71L1625 326.42V480.569H1687.02H1693H1755.02V326.42L1791.9 347.71L1824.02 292.069L1732.77 239.385C1728.14 258.429 1710.97 272.569 1690.5 272.569C1669.85 272.569 1652.56 258.183 1648.11 238.887Z" fill="${accent7}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M1734 309H1704V341L1719 345L1734 341V309Z" fill="${shade2}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M2324.11 238.887L2232 292.069L2264.12 347.71L2301 326.42V480.569H2363.02H2369H2431.02V326.42L2467.9 347.71L2500.02 292.069L2408.77 239.385C2404.14 258.429 2386.97 272.569 2366.5 272.569C2345.85 272.569 2328.56 258.183 2324.11 238.887Z" fill="url(#paint1_radial)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M3034.96 280.022C3038.86 283.886 3045.14 283.886 3049.04 280.022L3090.07 239.35L3153 275.82L3130.2 315.468L3105.38 301.085C3100.73 310.807 3093.66 329.016 3093.31 350.255C3092.87 377.153 3104.72 451.89 3108.34 474.047V480.836H3046H3038H2975.66V474.047C2979.28 451.89 2991.13 377.153 2990.69 350.255C2990.34 329.016 2983.27 310.807 2978.62 301.085L2953.8 315.468L2931 275.82L2993.93 239.35L3034.96 280.022Z" fill="${shade6}"/> <mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="2931" y="239" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M3034.96 280.022C3038.86 283.886 3045.14 283.886 3049.04 280.022L3090.07 239.35L3153 275.82L3130.2 315.468L3105.38 301.085C3100.73 310.807 3093.66 329.016 3093.31 350.255C3092.87 377.153 3104.72 451.89 3108.34 474.047V480.836H3046H3038H2975.66V474.047C2979.28 451.89 2991.13 377.153 2990.69 350.255C2990.34 329.016 2983.27 310.807 2978.62 301.085L2953.8 315.468L2931 275.82L2993.93 239.35L3034.96 280.022Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask0)"> <rect x="2915.33" y="269.577" width="199.795" height="290.528" transform="rotate(-34.9168 2915.33 269.577)" fill="${shade4}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M3083 301H3053V333L3068 337L3083 333V301Z" fill="${accent7}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M634.113 958.887L542 1012.07L574.125 1067.71L611 1046.42V1200.57H673.021H679H741.021V1046.42L777.897 1067.71L810.021 1012.07L718.77 959.385C714.138 978.43 696.97 992.569 676.5 992.569C655.852 992.569 638.564 978.183 634.113 958.887Z" fill="${shade7}"/> <mask id="mask1" mask-type="alpha" maskUnits="userSpaceOnUse" x="542" y="958" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M634.113 958.887L542 1012.07L574.125 1067.71L611 1046.42V1200.57H673.021H679H741.021V1046.42L777.897 1067.71L810.021 1012.07L718.77 959.385C714.138 978.43 696.97 992.569 676.5 992.569C655.852 992.569 638.564 978.183 634.113 958.887Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask1)"> <rect x="559" y="1105.41" width="134" height="49" transform="rotate(-18 559 1105.41)" fill="${shade5}" fill-opacity="0.5"/> <rect x="559" y="1132.41" width="122.167" height="49" transform="rotate(-18 559 1132.41)" fill="${accent5}" fill-opacity="0.5"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M1344.96 1000.02C1348.86 1003.89 1355.14 1003.89 1359.04 1000.02L1400.07 959.35L1463 995.82L1440.2 1035.47L1415.38 1021.08C1410.73 1030.81 1403.66 1049.02 1403.31 1070.25C1402.87 1097.15 1414.72 1171.89 1418.34 1194.05V1200.84H1356H1348H1285.66V1194.05C1289.28 1171.89 1301.13 1097.15 1300.69 1070.25C1300.34 1049.02 1293.27 1030.81 1288.62 1021.08L1263.8 1035.47L1241 995.82L1303.93 959.35L1344.96 1000.02Z" fill="${shade1}"/> <mask id="mask2" mask-type="alpha" maskUnits="userSpaceOnUse" x="1241" y="959" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M1344.96 1000.02C1348.86 1003.89 1355.14 1003.89 1359.04 1000.02L1400.07 959.35L1463 995.82L1440.2 1035.47L1415.38 1021.08C1410.73 1030.81 1403.66 1049.02 1403.31 1070.25C1402.87 1097.15 1414.72 1171.89 1418.34 1194.05V1200.84H1356H1348H1285.66V1194.05C1289.28 1171.89 1301.13 1097.15 1300.69 1070.25C1300.34 1049.02 1293.27 1030.81 1288.62 1021.08L1263.8 1035.47L1241 995.82L1303.93 959.35L1344.96 1000.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask2)"> <circle cx="1351.5" cy="1064.5" r="89.5" fill="${shade2}"/> <circle cx="1351.5" cy="1064.5" r="71.5" fill="${shade3}"/> <circle cx="1351.5" cy="1064.5" r="54.5" fill="${shade4}"/> <circle cx="1351.5" cy="1064.5" r="34.5" fill="${shade5}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M2020.96 1000.02C2024.86 1003.89 2031.14 1003.89 2035.04 1000.02L2076.07 959.35L2139 995.82L2116.2 1035.47L2091.38 1021.08C2086.73 1030.81 2079.66 1049.02 2079.31 1070.25C2078.87 1097.15 2090.72 1171.89 2094.34 1194.05V1200.84H2032H2024H1961.66V1194.05C1965.28 1171.89 1977.13 1097.15 1976.69 1070.25C1976.34 1049.02 1969.27 1030.81 1964.62 1021.08L1939.8 1035.47L1917 995.82L1979.93 959.35L2020.96 1000.02Z" fill="${accent0}"/> <rect x="1994" y="1027" width="68" height="73" fill="${shade7}" fill-opacity="0.2"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M2662.11 958.887L2570 1012.07L2602.12 1067.71L2639 1046.42V1200.57H2701.02H2707H2769.02V1046.42L2805.9 1067.71L2838.02 1012.07L2746.77 959.385C2742.14 978.43 2724.97 992.569 2704.5 992.569C2683.85 992.569 2666.56 978.183 2662.11 958.887Z" fill="${shade6}"/> <mask id="mask3" mask-type="alpha" maskUnits="userSpaceOnUse" x="2570" y="958" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M2662.11 958.887L2570 1012.07L2602.12 1067.71L2639 1046.42V1200.57H2701.02H2707H2769.02V1046.42L2805.9 1067.71L2838.02 1012.07L2746.77 959.385C2742.14 978.429 2724.97 992.569 2704.5 992.569C2683.85 992.569 2666.56 978.183 2662.11 958.887Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask3)"> <path d="M2704 1045L2804.46 1214.5H2603.54L2704 1045Z" fill="${accent6}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M3372.96 1000.02C3376.86 1003.89 3383.14 1003.89 3387.04 1000.02L3428.07 959.35L3491 995.82L3468.2 1035.47L3443.38 1021.08C3438.73 1030.81 3431.66 1049.02 3431.31 1070.25C3430.87 1097.15 3442.72 1171.89 3446.34 1194.05V1200.84H3384H3376H3313.66V1194.05C3317.28 1171.89 3329.13 1097.15 3328.69 1070.25C3328.34 1049.02 3321.27 1030.81 3316.62 1021.08L3291.8 1035.47L3269 995.82L3331.93 959.35L3372.96 1000.02Z" fill="${accent2}"/> <line x1="3345.77" y1="1029.23" x2="3417.77" y2="1101.23" stroke="${shade0}" stroke-width="5"/> <line x1="3342.23" y1="1101.23" x2="3414.23" y2="1029.23" stroke="${shade0}" stroke-width="5"/> <circle cx="3380" cy="1032" r="7" fill="${shade0}" fill-opacity="0.6"/> <circle cx="3380" cy="1092" r="7" fill="${shade0}" fill-opacity="0.6"/> <circle cx="3350" cy="1062" r="7" fill="${shade0}" fill-opacity="0.6"/> <circle cx="3410" cy="1062" r="7" fill="${shade0}" fill-opacity="0.6"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M972.113 1678.89L880 1732.07L912.125 1787.71L949 1766.42V1920.57H1011.02H1017H1079.02V1766.42L1115.9 1787.71L1148.02 1732.07L1056.77 1679.38C1052.14 1698.43 1034.97 1712.57 1014.5 1712.57C993.852 1712.57 976.564 1698.18 972.113 1678.89Z" fill="${accent1}"/> <mask id="mask4" mask-type="alpha" maskUnits="userSpaceOnUse" x="880" y="1678" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M972.113 1678.89L880 1732.07L912.125 1787.71L949 1766.42V1920.57H1011.02H1017H1079.02V1766.42L1115.9 1787.71L1148.02 1732.07L1056.77 1679.38C1052.14 1698.43 1034.97 1712.57 1014.5 1712.57C993.852 1712.57 976.564 1698.18 972.113 1678.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask4)"> <rect x="937" y="1811" width="154" height="115" fill="${shade2}"/> <rect x="949" y="1767" width="130" height="44" fill="${shade1}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M330.96 1720.02C334.858 1723.89 341.142 1723.89 345.04 1720.02L386.072 1679.35L449 1715.82L426.197 1755.47L401.378 1741.08C396.734 1750.81 389.655 1769.02 389.308 1790.25C388.869 1817.15 400.717 1891.89 404.338 1914.05V1920.84H342.002H333.998H271.662V1914.05C275.284 1891.89 287.131 1817.15 286.692 1790.25C286.345 1769.02 279.266 1750.81 274.622 1741.08L249.804 1755.47L227 1715.82L289.928 1679.35L330.96 1720.02Z" fill="${accent3}"/> <mask id="mask5" mask-type="alpha" maskUnits="userSpaceOnUse" x="227" y="1679" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M330.96 1720.02C334.858 1723.89 341.142 1723.89 345.04 1720.02L386.072 1679.35L449 1715.82L426.197 1755.47L401.378 1741.08C396.734 1750.81 389.655 1769.02 389.308 1790.25C388.869 1817.15 400.717 1891.89 404.338 1914.05V1920.84H342.002H333.998H271.662V1914.05C275.284 1891.89 287.131 1817.15 286.692 1790.25C286.345 1769.02 279.266 1750.81 274.622 1741.08L249.804 1755.47L227 1715.82L289.928 1679.35L330.96 1720.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask5)"> <circle cx="279" cy="1712" r="12" fill="${shade7}"/> <circle cx="279" cy="1762" r="12" fill="${shade7}"/> <circle cx="229" cy="1737" r="12" fill="${shade7}"/> <circle cx="279" cy="1812" r="12" fill="${shade7}"/> <circle cx="279" cy="1862" r="12" fill="${shade7}"/> <circle cx="279" cy="1912" r="12" fill="${shade7}"/> <circle cx="319" cy="1687" r="12" fill="${shade7}"/> <circle cx="319" cy="1737" r="12" fill="${shade7}"/> <circle cx="319" cy="1787" r="12" fill="${shade7}"/> <circle cx="319" cy="1837" r="12" fill="${shade7}"/> <circle cx="319" cy="1887" r="12" fill="${shade7}"/> <circle cx="369" cy="1712" r="12" fill="${shade7}"/> <circle cx="369" cy="1762" r="12" fill="${shade7}"/> <circle cx="369" cy="1812" r="12" fill="${shade7}"/> <circle cx="369" cy="1862" r="12" fill="${shade7}"/> <circle cx="369" cy="1912" r="12" fill="${shade7}"/> <circle cx="419" cy="1687" r="12" fill="${shade7}"/> <circle cx="419" cy="1737" r="12" fill="${shade7}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M1648.11 1678.89L1556 1732.07L1588.12 1787.71L1625 1766.42V1920.57H1687.02H1693H1755.02V1766.42L1791.9 1787.71L1824.02 1732.07L1732.77 1679.38C1728.14 1698.43 1710.97 1712.57 1690.5 1712.57C1669.85 1712.57 1652.56 1698.18 1648.11 1678.89Z" fill="${accent4}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M2324.11 1678.89L2232 1732.07L2264.12 1787.71L2301 1766.42V1920.57H2363.02H2369H2431.02V1766.42L2467.9 1787.71L2500.02 1732.07L2408.77 1679.38C2404.14 1698.43 2386.97 1712.57 2366.5 1712.57C2345.85 1712.57 2328.56 1698.18 2324.11 1678.89Z" fill="${shade7}"/> <mask id="mask6" mask-type="alpha" maskUnits="userSpaceOnUse" x="2232" y="1678" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M2324.11 1678.89L2232 1732.07L2264.12 1787.71L2301 1766.42V1920.57H2363.02H2369H2431.02V1766.42L2467.9 1787.71L2500.02 1732.07L2408.77 1679.38C2404.14 1698.43 2386.97 1712.57 2366.5 1712.57C2345.85 1712.57 2328.56 1698.18 2324.11 1678.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask6)"> <line x1="2232" y1="1695" x2="2500" y2="1695" stroke="${accent5}" stroke-width="10"/> <line x1="2232" y1="1725" x2="2500" y2="1725" stroke="${accent5}" stroke-width="10"/> <line x1="2232" y1="1755" x2="2500" y2="1755" stroke="${accent5}" stroke-width="10"/> <line x1="2232" y1="1785" x2="2500" y2="1785" stroke="${accent5}" stroke-width="10"/> <line x1="2232" y1="1815" x2="2500" y2="1815" stroke="${accent5}" stroke-width="10"/> <line x1="2232" y1="1845" x2="2500" y2="1845" stroke="${accent5}" stroke-width="10"/> <line x1="2232" y1="1875" x2="2500" y2="1875" stroke="${accent5}" stroke-width="10"/> <line x1="2232" y1="1905" x2="2500" y2="1905" stroke="${accent5}" stroke-width="10"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M3034.96 1720.02C3038.86 1723.89 3045.14 1723.89 3049.04 1720.02L3090.07 1679.35L3153 1715.82L3130.2 1755.47L3105.38 1741.08C3100.73 1750.81 3093.66 1769.02 3093.31 1790.25C3092.87 1817.15 3104.72 1891.89 3108.34 1914.05V1920.84H3046H3038H2975.66V1914.05C2979.28 1891.89 2991.13 1817.15 2990.69 1790.25C2990.34 1769.02 2983.27 1750.81 2978.62 1741.08L2953.8 1755.47L2931 1715.82L2993.93 1679.35L3034.96 1720.02Z" fill="${shade3}"/> <mask id="mask7" mask-type="alpha" maskUnits="userSpaceOnUse" x="2931" y="1679" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M3034.96 1720.02C3038.86 1723.89 3045.14 1723.89 3049.04 1720.02L3090.07 1679.35L3153 1715.82L3130.2 1755.47L3105.38 1741.08C3100.73 1750.81 3093.66 1769.02 3093.31 1790.25C3092.87 1817.15 3104.72 1891.89 3108.34 1914.05V1920.84H3046H3038H2975.66V1914.05C2979.28 1891.89 2991.13 1817.15 2990.69 1790.25C2990.34 1769.02 2983.27 1750.81 2978.62 1741.08L2953.8 1755.47L2931 1715.82L2993.93 1679.35L3034.96 1720.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask7)"> <rect x="2985" y="1675" width="32" height="250" fill="${accent0}" fill-opacity="0.6"/> <rect x="2925" y="1675" width="32" height="250" fill="${accent0}" fill-opacity="0.6"/> <rect x="3045" y="1675" width="32" height="250" fill="${accent0}" fill-opacity="0.6"/> <rect x="3105" y="1675" width="32" height="250" fill="${accent0}" fill-opacity="0.6"/> <rect x="2920" y="1698" width="237" height="40" fill="${accent5}" fill-opacity="0.54"/> <rect x="2920" y="1758" width="237" height="40" fill="${accent5}" fill-opacity="0.54"/> <rect x="2920" y="1818" width="237" height="40" fill="${accent5}" fill-opacity="0.54"/> <rect x="2920" y="1878" width="237" height="40" fill="${accent5}" fill-opacity="0.54"/> <line x1="2920" y1="1721.5" x2="3157" y2="1721.5" stroke="${accent3}" stroke-opacity="0.5" stroke-width="3"/> <line x1="2920" y1="1781.5" x2="3157" y2="1781.5" stroke="${accent3}" stroke-opacity="0.5" stroke-width="3"/> <line x1="2920" y1="1841.5" x2="3157" y2="1841.5" stroke="${accent3}" stroke-opacity="0.5" stroke-width="3"/> <line x1="2920" y1="1901.5" x2="3157" y2="1901.5" stroke="${accent3}" stroke-opacity="0.5" stroke-width="3"/> <line x1="2970.5" y1="1675" x2="2970.5" y2="1925" stroke="${accent2}" stroke-opacity="0.2" stroke-width="3"/> <line x1="3030.5" y1="1675" x2="3030.5" y2="1925" stroke="${accent2}" stroke-opacity="0.2" stroke-width="3"/> <line x1="3090.5" y1="1675" x2="3090.5" y2="1925" stroke="${accent2}" stroke-opacity="0.2" stroke-width="3"/> <line x1="3150.5" y1="1675" x2="3150.5" y2="1925" stroke="${accent2}" stroke-opacity="0.2" stroke-width="3"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M668.96 2440.02C672.858 2443.89 679.142 2443.89 683.04 2440.02L724.072 2399.35L787 2435.82L764.197 2475.47L739.378 2461.08C734.734 2470.81 727.655 2489.02 727.309 2510.25C726.869 2537.15 738.717 2611.89 742.338 2634.05V2640.84H680.002H671.998H609.662V2634.05C613.284 2611.89 625.131 2537.15 624.692 2510.25C624.345 2489.02 617.266 2470.81 612.622 2461.08L587.804 2475.47L565 2435.82L627.928 2399.35L668.96 2440.02Z" fill="url(#paint2_radial)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M1344.96 2440.02C1348.86 2443.89 1355.14 2443.89 1359.04 2440.02L1400.07 2399.35L1463 2435.82L1440.2 2475.47L1415.38 2461.08C1410.73 2470.81 1403.66 2489.02 1403.31 2510.25C1402.87 2537.15 1414.72 2611.89 1418.34 2634.05V2640.84H1356H1348H1285.66V2634.05C1289.28 2611.89 1301.13 2537.15 1300.69 2510.25C1300.34 2489.02 1293.27 2470.81 1288.62 2461.08L1263.8 2475.47L1241 2435.82L1303.93 2399.35L1344.96 2440.02Z" fill="${accent6}"/> <mask id="mask8" mask-type="alpha" maskUnits="userSpaceOnUse" x="1241" y="2399" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M1344.96 2440.02C1348.86 2443.89 1355.14 2443.89 1359.04 2440.02L1400.07 2399.35L1463 2435.82L1440.2 2475.47L1415.38 2461.08C1410.73 2470.81 1403.66 2489.02 1403.31 2510.25C1402.87 2537.15 1414.72 2611.89 1418.34 2634.05V2640.84H1356H1348H1285.66V2634.05C1289.28 2611.89 1301.13 2537.15 1300.69 2510.25C1300.34 2489.02 1293.27 2470.81 1288.62 2461.08L1263.8 2475.47L1241 2435.82L1303.93 2399.35L1344.96 2440.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask8)"> <line x1="1255" y1="2399" x2="1255" y2="2641" stroke="${shade7}" stroke-width="10"/> <line x1="1275" y1="2399" x2="1275" y2="2641" stroke="${shade7}" stroke-width="10"/> <line x1="1295" y1="2399" x2="1295" y2="2641" stroke="${shade7}" stroke-width="10"/> <line x1="1315" y1="2399" x2="1315" y2="2641" stroke="${shade7}" stroke-width="10"/> <line x1="1335" y1="2399" x2="1335" y2="2641" stroke="${shade7}" stroke-width="10"/> <line x1="1355" y1="2399" x2="1355" y2="2641" stroke="${shade7}" stroke-width="10"/> <line x1="1375" y1="2399" x2="1375" y2="2641" stroke="${shade7}" stroke-width="10"/> <line x1="1395" y1="2399" x2="1395" y2="2641" stroke="${shade7}" stroke-width="10"/> <line x1="1415" y1="2399" x2="1415" y2="2641" stroke="${shade7}" stroke-width="10"/> <line x1="1435" y1="2399" x2="1435" y2="2641" stroke="${shade7}" stroke-width="10"/> <line x1="1455" y1="2399" x2="1455" y2="2641" stroke="${shade7}" stroke-width="10"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M1986.11 2398.89L1894 2452.07L1926.12 2507.71L1963 2486.42V2640.57H2025.02H2031H2093.02V2486.42L2129.9 2507.71L2162.02 2452.07L2070.77 2399.38C2066.14 2418.43 2048.97 2432.57 2028.5 2432.57C2007.85 2432.57 1990.56 2418.18 1986.11 2398.89Z" fill="${shade1}"/> <path d="M2028 2464L2061.77 2522.5H1994.23L2028 2464Z" stroke="${accent7}" stroke-opacity="0.61" stroke-width="5"/> <path d="M2028 2495L2061.77 2553.5H1994.23L2028 2495Z" stroke="${accent7}" stroke-opacity="0.61" stroke-width="5"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M2696.96 2440.02C2700.86 2443.89 2707.14 2443.89 2711.04 2440.02L2752.07 2399.35L2815 2435.82L2792.2 2475.47L2767.38 2461.08C2762.73 2470.81 2755.66 2489.02 2755.31 2510.25C2754.87 2537.15 2766.72 2611.89 2770.34 2634.05V2640.84H2708H2700H2637.66V2634.05C2641.28 2611.89 2653.13 2537.15 2652.69 2510.25C2652.34 2489.02 2645.27 2470.81 2640.62 2461.08L2615.8 2475.47L2593 2435.82L2655.93 2399.35L2696.96 2440.02Z" fill="${shade7}"/> <circle cx="2704" cy="2498" r="37" fill="${accent1}"/> <mask id="mask9" mask-type="alpha" maskUnits="userSpaceOnUse" x="2667" y="2461" width="74" height="74"> <circle cx="2704" cy="2498" r="37" fill="${accent1}"/> </mask> <g mask="url(#mask9)"> <path d="M2674 2505L2661 2509.5L2672.5 2534.5L2705.5 2548.5L2738.5 2534.5L2751 2506.5L2731.5 2497.5L2721.5 2502L2709.5 2489L2693.5 2500L2688 2493L2674 2505Z" fill="${shade2}" stroke="${shade7}" stroke-width="5"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M3338.11 2398.89L3246 2452.07L3278.12 2507.71L3315 2486.42V2640.57H3377.02H3383H3445.02V2486.42L3481.9 2507.71L3514.02 2452.07L3422.77 2399.38C3418.14 2418.43 3400.97 2432.57 3380.5 2432.57C3359.85 2432.57 3342.56 2418.18 3338.11 2398.89Z" fill="${accent4}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M3425 2469H3395V2501L3410 2505L3425 2501V2469Z" fill="${shade4}"/> <mask id="mask10" mask-type="alpha" maskUnits="userSpaceOnUse" x="3246" y="2398" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M3338.11 2398.89L3246 2452.07L3278.12 2507.71L3315 2486.42V2640.57H3377.02H3383H3445.02V2486.42L3481.9 2507.71L3514.02 2452.07L3422.77 2399.38C3418.14 2418.43 3400.97 2432.57 3380.5 2432.57C3359.85 2432.57 3342.56 2418.18 3338.11 2398.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask10)"> <rect x="3246" y="2407" width="69" height="102" fill="${shade4}"/> <rect x="3445" y="2407" width="69" height="102" fill="${shade4}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M296.113 3118.89L204 3172.07L236.125 3227.71L273 3206.42V3360.57H335.021H341H403.021V3206.42L439.897 3227.71L472.021 3172.07L380.77 3119.38C376.138 3138.43 358.97 3152.57 338.5 3152.57C317.852 3152.57 300.564 3138.18 296.113 3118.89Z" fill="${accent6}"/> <mask id="mask11" mask-type="alpha" maskUnits="userSpaceOnUse" x="204" y="3118" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M296.113 3118.89L204 3172.07L236.125 3227.71L273 3206.42V3360.57H335.021H341H403.021V3206.42L439.897 3227.71L472.021 3172.07L380.77 3119.38C376.138 3138.43 358.97 3152.57 338.5 3152.57C317.852 3152.57 300.564 3138.18 296.113 3118.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask11)"> <rect x="234.255" y="3147.95" width="42" height="248.77" transform="rotate(-45 234.255 3147.95)" fill="${shade7}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M1006.96 3160.02C1010.86 3163.89 1017.14 3163.89 1021.04 3160.02L1062.07 3119.35L1125 3155.82L1102.2 3195.47L1077.38 3181.08C1072.73 3190.81 1065.66 3209.02 1065.31 3230.25C1064.87 3257.15 1076.72 3331.89 1080.34 3354.05V3360.84H1018H1010H947.662V3354.05C951.284 3331.89 963.131 3257.15 962.692 3230.25C962.345 3209.02 955.266 3190.81 950.622 3181.08L925.804 3195.47L903 3155.82L965.928 3119.35L1006.96 3160.02Z" fill="url(#paint3_linear)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M1052 3188H1022V3220L1037 3224L1052 3220V3188Z" fill="${accent2}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M2358.96 3160.02C2362.86 3163.89 2369.14 3163.89 2373.04 3160.02L2414.07 3119.35L2477 3155.82L2454.2 3195.47L2429.38 3181.08C2424.73 3190.81 2417.66 3209.02 2417.31 3230.25C2416.87 3257.15 2428.72 3331.89 2432.34 3354.05V3360.84H2370H2362H2299.66V3354.05C2303.28 3331.89 2315.13 3257.15 2314.69 3230.25C2314.34 3209.02 2307.27 3190.81 2302.62 3181.08L2277.8 3195.47L2255 3155.82L2317.93 3119.35L2358.96 3160.02Z" fill="${accent1}"/> <mask id="mask12" mask-type="alpha" maskUnits="userSpaceOnUse" x="2255" y="3119" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M2358.96 3160.02C2362.86 3163.89 2369.14 3163.89 2373.04 3160.02L2414.07 3119.35L2477 3155.82L2454.2 3195.47L2429.38 3181.08C2424.73 3190.81 2417.66 3209.02 2417.31 3230.25C2416.87 3257.15 2428.72 3331.89 2432.34 3354.05V3360.84H2370H2362H2299.66V3354.05C2303.28 3331.89 2315.13 3257.15 2314.69 3230.25C2314.34 3209.02 2307.27 3190.81 2302.62 3181.08L2277.8 3195.47L2255 3155.82L2317.93 3119.35L2358.96 3160.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask12)"> <path d="M2322.5 3319.5L2296.5 3344L2269 3375.5L2451 3378V3319.5L2429.5 3344L2408.5 3319.5L2388.5 3344L2366.5 3319.5L2343.5 3344L2322.5 3319.5Z" stroke="${accent4}" stroke-width="5"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M1648.11 3118.89L1556 3172.07L1588.12 3227.71L1625 3206.42V3360.57H1687.02H1693H1755.02V3206.42L1791.9 3227.71L1824.02 3172.07L1732.77 3119.38C1728.14 3138.43 1710.97 3152.57 1690.5 3152.57C1669.85 3152.57 1652.56 3138.18 1648.11 3118.89Z" fill="${accent5}"/> <mask id="mask13" mask-type="alpha" maskUnits="userSpaceOnUse" x="1556" y="3118" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M1648.11 3118.89L1556 3172.07L1588.12 3227.71L1625 3206.42V3360.57H1687.02H1693H1755.02V3206.42L1791.9 3227.71L1824.02 3172.07L1732.77 3119.38C1728.14 3138.43 1710.97 3152.57 1690.5 3152.57C1669.85 3152.57 1652.56 3138.18 1648.11 3118.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask13)"> <circle cx="1632.5" cy="3286.5" r="88.5" fill="${shade7}" fill-opacity="0.25"/> <circle cx="1721.5" cy="3198.5" r="88.5" fill="${shade7}" fill-opacity="0.25"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M3000.11 3118.89L2908 3172.07L2940.12 3227.71L2977 3206.42V3360.57H3039.02H3045H3107.02V3206.42L3143.9 3227.71L3176.02 3172.07L3084.77 3119.38C3080.14 3138.43 3062.97 3152.57 3042.5 3152.57C3021.85 3152.57 3004.56 3138.18 3000.11 3118.89Z" fill="${accent0}"/> <path d="M3065 3230L3043.82 3276.5C3043.11 3278.06 3040.89 3278.06 3040.18 3276.5L3019 3230C2995 3175 3089 3175 3065 3230Z" fill="${shade4}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M668.96 3880.02C672.858 3883.89 679.142 3883.89 683.04 3880.02L724.072 3839.35L787 3875.82L764.197 3915.47L739.378 3901.08C734.734 3910.81 727.655 3929.02 727.309 3950.25C726.869 3977.15 738.717 4051.89 742.338 4074.05V4080.84H680.002H671.998H609.662V4074.05C613.284 4051.89 625.131 3977.15 624.692 3950.25C624.345 3929.02 617.266 3910.81 612.622 3901.08L587.804 3915.47L565 3875.82L627.928 3839.35L668.96 3880.02Z" fill="${shade6}"/> <mask id="mask14" mask-type="alpha" maskUnits="userSpaceOnUse" x="565" y="3839" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M668.96 3880.02C672.858 3883.89 679.142 3883.89 683.04 3880.02L724.072 3839.35L787 3875.82L764.197 3915.47L739.378 3901.08C734.734 3910.81 727.655 3929.02 727.309 3950.25C726.869 3977.15 738.717 4051.89 742.338 4074.05V4080.84H680.002H671.998H609.662V4074.05C613.284 4051.89 625.131 3977.15 624.692 3950.25C624.345 3929.02 617.266 3910.81 612.622 3901.08L587.804 3915.47L565 3875.82L627.928 3839.35L668.96 3880.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask14)"> <path d="M648 3849L700.828 3957.75H595.172L648 3849Z" fill="${accent7}" fill-opacity="0.5"/> <path d="M704 3849L756.828 3957.75H651.172L704 3849Z" fill="${accent2}" fill-opacity="0.5"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M1310.11 3838.89L1218 3892.07L1250.12 3947.71L1287 3926.42V4080.57H1349.02H1355H1417.02V3926.42L1453.9 3947.71L1486.02 3892.07L1394.77 3839.38C1390.14 3858.43 1372.97 3872.57 1352.5 3872.57C1331.85 3872.57 1314.56 3858.18 1310.11 3838.89Z" fill="url(#paint4_linear)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M2020.96 3880.02C2024.86 3883.89 2031.14 3883.89 2035.04 3880.02L2076.07 3839.35L2139 3875.82L2116.2 3915.47L2091.38 3901.08C2086.73 3910.81 2079.66 3929.02 2079.31 3950.25C2078.87 3977.15 2090.72 4051.89 2094.34 4074.05V4080.84H2032H2024H1961.66V4074.05C1965.28 4051.89 1977.13 3977.15 1976.69 3950.25C1976.34 3929.02 1969.27 3910.81 1964.62 3901.08L1939.8 3915.47L1917 3875.82L1979.93 3839.35L2020.96 3880.02Z" fill="${accent2}"/> <circle cx="2028" cy="3896" r="4" fill="${shade0}"/> <circle cx="2028" cy="3909" r="4" fill="${shade0}"/> <circle cx="2028" cy="3922" r="4" fill="${shade0}"/> <circle cx="2028" cy="3935" r="4" fill="${shade0}"/> <circle cx="2028" cy="3948" r="4" fill="${shade0}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M2696.96 3880.02C2700.86 3883.89 2707.14 3883.89 2711.04 3880.02L2752.07 3839.35L2815 3875.82L2792.2 3915.47L2767.38 3901.08C2762.73 3910.81 2755.66 3929.02 2755.31 3950.25C2754.87 3977.15 2766.72 4051.89 2770.34 4074.05V4080.84H2708H2700H2637.66V4074.05C2641.28 4051.89 2653.13 3977.15 2652.69 3950.25C2652.34 3929.02 2645.27 3910.81 2640.62 3901.08L2615.8 3915.47L2593 3875.82L2655.93 3839.35L2696.96 3880.02Z" fill="${shade5}"/> <path d="M2670 3945.94L2681.31 3957.25L2692.63 3945.94L2703.94 3957.25L2715.25 3945.94L2726.57 3957.25L2737.88 3945.94L2703.94 3912L2670 3945.94Z" fill="${accent4}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M3338.11 3838.89L3246 3892.07L3278.12 3947.71L3315 3926.42V4080.57H3377.02H3383H3445.02V3926.42L3481.9 3947.71L3514.02 3892.07L3422.77 3839.38C3418.14 3858.43 3400.97 3872.57 3380.5 3872.57C3359.85 3872.57 3342.56 3858.18 3338.11 3838.89Z" fill="${accent3}"/> <rect x="3344" y="3911" width="72" height="97" fill="url(#paint5_linear)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M3710.96 280.022C3714.86 283.886 3721.14 283.886 3725.04 280.022L3766.07 239.35L3829 275.82L3806.2 315.468L3781.38 301.085C3776.73 310.807 3769.66 329.016 3769.31 350.255C3768.87 377.152 3780.72 451.889 3784.34 474.047V480.836H3722H3714H3651.66V474.047C3655.28 451.889 3667.13 377.152 3666.69 350.255C3666.34 329.016 3659.27 310.807 3654.62 301.085L3629.8 315.468L3607 275.82L3669.93 239.35L3710.96 280.022Z" fill="${shade1}"/> <path d="M3718 301L3724.96 322.42H3747.48L3729.26 335.659L3736.22 357.08L3718 343.841L3699.78 357.08L3706.74 335.659L3688.52 322.42H3711.04L3718 301Z" fill="${accent4}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4014.11 2398.89L3922 2452.07L3954.12 2507.71L3991 2486.42V2640.57H4053.02H4059H4121.02V2486.42L4157.9 2507.71L4190.02 2452.07L4098.77 2399.38C4094.14 2418.43 4076.97 2432.57 4056.5 2432.57C4035.85 2432.57 4018.56 2418.18 4014.11 2398.89Z" fill="${shade4}"/> <mask id="mask15" mask-type="alpha" maskUnits="userSpaceOnUse" x="3922" y="2398" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4014.11 2398.89L3922 2452.07L3954.12 2507.71L3991 2486.42V2640.57H4053.02H4059H4121.02V2486.42L4157.9 2507.71L4190.02 2452.07L4098.77 2399.38C4094.14 2418.43 4076.97 2432.57 4056.5 2432.57C4035.85 2432.57 4018.56 2418.18 4014.11 2398.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask15)"> <line y1="-1.5" x2="262" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4156.26 2423)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="241.831" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4142 2417.26)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="223.446" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4129 2410.26)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="203.647" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4115 2404.26)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="189.505" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4105 2394.26)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="125.865" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4060 2419.26)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="141.421" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4041.26 2418)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="134.35" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4029.26 2410)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="131.522" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4019.26 2400)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="131.522" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4012.26 2387)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="87.6812" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 3973.26 2406)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="280.014" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4169 2430.26)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="295.571" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4180 2439.26)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="291.328" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4193 2446.26)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="231.931" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4173.26 2486)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="132.936" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4122.26 2557)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="103.238" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4121.26 2578)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="76.3675" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4122 2597.26)" stroke="${shade7}" stroke-width="3"/> <line y1="-1.5" x2="46.669" y2="-1.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 4121.26 2618)" stroke="${shade7}" stroke-width="3"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M5062.96 280.022C5066.86 283.886 5073.14 283.886 5077.04 280.022L5118.07 239.35L5181 275.82L5158.2 315.468L5133.38 301.085C5128.73 310.807 5121.66 329.016 5121.31 350.255C5120.87 377.152 5132.72 451.889 5136.34 474.047V480.836H5074H5066H5003.66V474.047C5007.28 451.889 5019.13 377.152 5018.69 350.255C5018.34 329.016 5011.27 310.807 5006.62 301.085L4981.8 315.468L4959 275.82L5021.93 239.35L5062.96 280.022Z" fill="${accent6}"/> <rect x="5038" y="310" width="64" height="88" fill="url(#paint6_linear)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4014.11 958.887L3922 1012.07L3954.12 1067.71L3991 1046.42V1200.57H4053.02H4059H4121.02V1046.42L4157.9 1067.71L4190.02 1012.07L4098.77 959.385C4094.14 978.43 4076.97 992.569 4056.5 992.569C4035.85 992.569 4018.56 978.183 4014.11 958.887Z" fill="url(#paint7_linear)"/> <circle cx="4056" cy="1057" r="35" stroke="${shade7}" stroke-width="8"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M3676.11 3118.89L3584 3172.07L3616.12 3227.71L3653 3206.42V3360.57H3715.02H3721H3783.02V3206.42L3819.9 3227.71L3852.02 3172.07L3760.77 3119.38C3756.14 3138.43 3738.97 3152.57 3718.5 3152.57C3697.85 3152.57 3680.56 3138.18 3676.11 3118.89Z" fill="${accent7}"/> <mask id="mask16" mask-type="alpha" maskUnits="userSpaceOnUse" x="3584" y="3118" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M3676.11 3118.89L3584 3172.07L3616.12 3227.71L3653 3206.42V3360.57H3715.02H3721H3783.02V3206.42L3819.9 3227.71L3852.02 3172.07L3760.77 3119.38C3756.14 3138.43 3738.97 3152.57 3718.5 3152.57C3697.85 3152.57 3680.56 3138.18 3676.11 3118.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask16)"> <circle cx="3633" cy="3163" r="6" fill="${shade6}"/> <circle cx="3633" cy="3143" r="6" fill="${shade6}"/> <circle cx="3633" cy="3183" r="6" fill="${shade6}"/> <circle cx="3633" cy="3203" r="6" fill="${shade6}"/> <circle cx="3633" cy="3223" r="6" fill="${shade6}"/> <circle cx="3613" cy="3173" r="6" fill="${shade6}"/> <circle cx="3613" cy="3153" r="6" fill="${shade6}"/> <circle cx="3613" cy="3193" r="6" fill="${shade6}"/> <circle cx="3613" cy="3213" r="6" fill="${shade6}"/> <circle cx="3593" cy="3163" r="6" fill="${shade6}"/> <circle cx="3593" cy="3183" r="6" fill="${shade6}"/> <circle cx="3653" cy="3173" r="6" fill="${shade6}"/> <circle cx="3653" cy="3153" r="6" fill="${shade6}"/> <circle cx="3653" cy="3193" r="6" fill="${shade6}"/> <circle cx="3653" cy="3213" r="6" fill="${shade6}"/> <circle cx="3653" cy="3253" r="6" fill="${shade6}"/> <circle cx="3653" cy="3233" r="6" fill="${shade6}"/> <circle cx="3653" cy="3273" r="6" fill="${shade6}"/> <circle cx="3653" cy="3293" r="6" fill="${shade6}"/> <circle cx="3653" cy="3333" r="6" fill="${shade6}"/> <circle cx="3653" cy="3313" r="6" fill="${shade6}"/> <circle cx="3653" cy="3353" r="6" fill="${shade6}"/> <circle cx="3653" cy="3133" r="6" fill="${shade6}"/> <circle cx="3673" cy="3163" r="6" fill="${shade6}"/> <circle cx="3673" cy="3143" r="6" fill="${shade6}"/> <circle cx="3673" cy="3183" r="6" fill="${shade6}"/> <circle cx="3673" cy="3203" r="6" fill="${shade6}"/> <circle cx="3673" cy="3243" r="6" fill="${shade6}"/> <circle cx="3673" cy="3223" r="6" fill="${shade6}"/> <circle cx="3673" cy="3263" r="6" fill="${shade6}"/> <circle cx="3673" cy="3283" r="6" fill="${shade6}"/> <circle cx="3673" cy="3323" r="6" fill="${shade6}"/> <circle cx="3673" cy="3303" r="6" fill="${shade6}"/> <circle cx="3673" cy="3343" r="6" fill="${shade6}"/> <circle cx="3673" cy="3363" r="6" fill="${shade6}"/> <circle cx="3673" cy="3123" r="6" fill="${shade6}"/> <circle cx="3693" cy="3173" r="6" fill="${shade6}"/> <circle cx="3693" cy="3153" r="6" fill="${shade6}"/> <circle cx="3693" cy="3193" r="6" fill="${shade6}"/> <circle cx="3693" cy="3213" r="6" fill="${shade6}"/> <circle cx="3693" cy="3253" r="6" fill="${shade6}"/> <circle cx="3693" cy="3233" r="6" fill="${shade6}"/> <circle cx="3693" cy="3273" r="6" fill="${shade6}"/> <circle cx="3693" cy="3293" r="6" fill="${shade6}"/> <circle cx="3693" cy="3333" r="6" fill="${shade6}"/> <circle cx="3693" cy="3313" r="6" fill="${shade6}"/> <circle cx="3693" cy="3353" r="6" fill="${shade6}"/> <circle cx="3713" cy="3163" r="6" fill="${shade6}"/> <circle cx="3713" cy="3183" r="6" fill="${shade6}"/> <circle cx="3713" cy="3203" r="6" fill="${shade6}"/> <circle cx="3713" cy="3243" r="6" fill="${shade6}"/> <circle cx="3713" cy="3223" r="6" fill="${shade6}"/> <circle cx="3713" cy="3263" r="6" fill="${shade6}"/> <circle cx="3713" cy="3283" r="6" fill="${shade6}"/> <circle cx="3713" cy="3323" r="6" fill="${shade6}"/> <circle cx="3713" cy="3303" r="6" fill="${shade6}"/> <circle cx="3713" cy="3343" r="6" fill="${shade6}"/> <circle cx="3713" cy="3363" r="6" fill="${shade6}"/> <circle cx="3733" cy="3173" r="6" fill="${shade6}"/> <circle cx="3733" cy="3153" r="6" fill="${shade6}"/> <circle cx="3733" cy="3193" r="6" fill="${shade6}"/> <circle cx="3733" cy="3213" r="6" fill="${shade6}"/> <circle cx="3733" cy="3253" r="6" fill="${shade6}"/> <circle cx="3733" cy="3233" r="6" fill="${shade6}"/> <circle cx="3733" cy="3273" r="6" fill="${shade6}"/> <circle cx="3733" cy="3293" r="6" fill="${shade6}"/> <circle cx="3733" cy="3333" r="6" fill="${shade6}"/> <circle cx="3733" cy="3313" r="6" fill="${shade6}"/> <circle cx="3733" cy="3353" r="6" fill="${shade6}"/> <circle cx="3753" cy="3163" r="6" fill="${shade6}"/> <circle cx="3753" cy="3143" r="6" fill="${shade6}"/> <circle cx="3753" cy="3183" r="6" fill="${shade6}"/> <circle cx="3753" cy="3203" r="6" fill="${shade6}"/> <circle cx="3753" cy="3243" r="6" fill="${shade6}"/> <circle cx="3753" cy="3223" r="6" fill="${shade6}"/> <circle cx="3753" cy="3263" r="6" fill="${shade6}"/> <circle cx="3753" cy="3283" r="6" fill="${shade6}"/> <circle cx="3753" cy="3323" r="6" fill="${shade6}"/> <circle cx="3753" cy="3303" r="6" fill="${shade6}"/> <circle cx="3753" cy="3343" r="6" fill="${shade6}"/> <circle cx="3753" cy="3363" r="6" fill="${shade6}"/> <circle cx="3773" cy="3173" r="6" fill="${shade6}"/> <circle cx="3773" cy="3153" r="6" fill="${shade6}"/> <circle cx="3773" cy="3193" r="6" fill="${shade6}"/> <circle cx="3773" cy="3213" r="6" fill="${shade6}"/> <circle cx="3773" cy="3253" r="6" fill="${shade6}"/> <circle cx="3773" cy="3233" r="6" fill="${shade6}"/> <circle cx="3773" cy="3273" r="6" fill="${shade6}"/> <circle cx="3773" cy="3293" r="6" fill="${shade6}"/> <circle cx="3773" cy="3333" r="6" fill="${shade6}"/> <circle cx="3773" cy="3313" r="6" fill="${shade6}"/> <circle cx="3773" cy="3353" r="6" fill="${shade6}"/> <circle cx="3773" cy="3133" r="6" fill="${shade6}"/> <circle cx="3793" cy="3163" r="6" fill="${shade6}"/> <circle cx="3793" cy="3143" r="6" fill="${shade6}"/> <circle cx="3793" cy="3183" r="6" fill="${shade6}"/> <circle cx="3793" cy="3203" r="6" fill="${shade6}"/> <circle cx="3813" cy="3173" r="6" fill="${shade6}"/> <circle cx="3813" cy="3153" r="6" fill="${shade6}"/> <circle cx="3813" cy="3193" r="6" fill="${shade6}"/> <circle cx="3813" cy="3213" r="6" fill="${shade6}"/> <circle cx="3833" cy="3163" r="6" fill="${shade6}"/> <circle cx="3833" cy="3183" r="6" fill="${shade6}"/> <circle cx="3833" cy="3203" r="6" fill="${shade6}"/> <circle cx="3853" cy="3173" r="6" fill="${shade6}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M3710.96 1720.02C3714.86 1723.89 3721.14 1723.89 3725.04 1720.02L3766.07 1679.35L3829 1715.82L3806.2 1755.47L3781.38 1741.08C3776.73 1750.81 3769.66 1769.02 3769.31 1790.25C3768.87 1817.15 3780.72 1891.89 3784.34 1914.05V1920.84H3722H3714H3651.66V1914.05C3655.28 1891.89 3667.13 1817.15 3666.69 1790.25C3666.34 1769.02 3659.27 1750.81 3654.62 1741.08L3629.8 1755.47L3607 1715.82L3669.93 1679.35L3710.96 1720.02Z" fill="url(#paint8_linear)"/> <path d="M3727 1745V1743.5H3725.5V1745H3727ZM3757 1745H3758.5V1743.5H3757V1745ZM3727 1777H3725.5V1778.15L3726.61 1778.45L3727 1777ZM3742 1781L3741.61 1782.45L3742 1782.55L3742.39 1782.45L3742 1781ZM3757 1777L3757.39 1778.45L3758.5 1778.15V1777H3757ZM3727 1746.5H3757V1743.5H3727V1746.5ZM3728.5 1777V1745H3725.5V1777H3728.5ZM3742.39 1779.55L3727.39 1775.55L3726.61 1778.45L3741.61 1782.45L3742.39 1779.55ZM3756.61 1775.55L3741.61 1779.55L3742.39 1782.45L3757.39 1778.45L3756.61 1775.55ZM3755.5 1745V1777H3758.5V1745H3755.5Z" fill="${shade5}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M-7.03987 1000.02C-3.14187 1003.89 3.14188 1003.89 7.03987 1000.02L48.0718 959.35L111 995.82L88.1965 1035.47L63.3783 1021.08C58.7337 1030.81 51.6553 1049.02 51.3085 1070.25C50.8692 1097.15 62.7165 1171.89 66.3382 1194.05V1200.84H4.00199H-4.00181H-66.338V1194.05C-62.7164 1171.89 -50.869 1097.15 -51.3083 1070.25C-51.6551 1049.02 -58.7336 1030.81 -63.3781 1021.08L-88.1963 1035.47L-111 995.82L-48.0717 959.35L-7.03987 1000.02Z" fill="${shade6}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M40 1020H10V1052L25 1056L40 1052V1020Z" fill="${accent5}"/> <mask id="mask17" mask-type="alpha" maskUnits="userSpaceOnUse" x="-111" y="959" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M-7.03987 1000.02C-3.14187 1003.89 3.14188 1003.89 7.03987 1000.02L48.0718 959.35L111 995.82L88.1965 1035.47L63.3783 1021.08C58.7337 1030.81 51.6553 1049.02 51.3085 1070.25C50.8692 1097.15 62.7165 1171.89 66.3382 1194.05V1200.84H4.00199H-4.00181H-66.338V1194.05C-62.7164 1171.89 -50.869 1097.15 -51.3083 1070.25C-51.6551 1049.02 -58.7336 1030.81 -63.3781 1021.08L-88.1963 1035.47L-111 995.82L-48.0717 959.35L-7.03987 1000.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask17)"> <rect x="63" y="962" width="50" height="77" fill="${accent5}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M5400.96 1000.02C5404.86 1003.89 5411.14 1003.89 5415.04 1000.02L5456.07 959.35L5519 995.82L5496.2 1035.47L5471.38 1021.08C5466.73 1030.81 5459.66 1049.02 5459.31 1070.25C5458.87 1097.15 5470.72 1171.89 5474.34 1194.05V1200.84H5412H5404H5341.66V1194.05C5345.28 1171.89 5357.13 1097.15 5356.69 1070.25C5356.34 1049.02 5349.27 1030.81 5344.62 1021.08L5319.8 1035.47L5297 995.82L5359.93 959.35L5400.96 1000.02Z" fill="${shade6}"/> <mask id="mask18" mask-type="alpha" maskUnits="userSpaceOnUse" x="5297" y="959" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5400.96 1000.02C5404.86 1003.89 5411.14 1003.89 5415.04 1000.02L5456.07 959.35L5519 995.82L5496.2 1035.47L5471.38 1021.08C5466.73 1030.81 5459.66 1049.02 5459.31 1070.25C5458.87 1097.15 5470.72 1171.89 5474.34 1194.05V1200.84H5412H5404H5341.66V1194.05C5345.28 1171.89 5357.13 1097.15 5356.69 1070.25C5356.34 1049.02 5349.27 1030.81 5344.62 1021.08L5319.8 1035.47L5297 995.82L5359.93 959.35L5400.96 1000.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask18)"> <rect x="5295" y="962" width="50" height="77" fill="${accent5}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M4014.11 3838.89L3922 3892.07L3954.12 3947.71L3991 3926.42V4080.57H4053.02H4059H4121.02V3926.42L4157.9 3947.71L4190.02 3892.07L4098.77 3839.38C4094.14 3858.43 4076.97 3872.57 4056.5 3872.57C4035.85 3872.57 4018.56 3858.18 4014.11 3838.89Z" fill="${shade3}"/> <mask id="mask19" mask-type="alpha" maskUnits="userSpaceOnUse" x="3922" y="3838" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4014.11 3838.89L3922 3892.07L3954.12 3947.71L3991 3926.42V4080.57H4053.02H4059H4121.02V3926.42L4157.9 3947.71L4190.02 3892.07L4098.77 3839.38C4094.14 3858.43 4076.97 3872.57 4056.5 3872.57C4035.85 3872.57 4018.56 3858.18 4014.11 3838.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask19)"> <rect x="4088" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="4108" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="4128" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="4148" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="4168" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="4188" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="4068" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="4048" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="4028" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="4008" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="3988" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="3968" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="3948" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="3928" y="3831" width="10" height="256" fill="${accent1}" fill-opacity="0.5"/> <rect x="3916" y="3834" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3916" y="3854" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3916" y="3874" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3916" y="3894" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3916" y="3914" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3916" y="3934" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3916" y="3952" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3916" y="3972" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3916" y="3992" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3916" y="4012" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3917" y="4032" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3917" y="4052" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3917" y="4072" width="282" height="10" fill="${shade2}" fill-opacity="0.5"/> <rect x="3932" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="3952" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="3972" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="3992" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="4012" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="4032" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="4052" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="4072" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="4092" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="4112" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="4132" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="4152" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> <rect x="4172" y="3831" width="2" height="256" fill="${accent2}" fill-opacity="0.75"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M4386.96 3160.02C4390.86 3163.89 4397.14 3163.89 4401.04 3160.02L4442.07 3119.35L4505 3155.82L4482.2 3195.47L4457.38 3181.08C4452.73 3190.81 4445.66 3209.02 4445.31 3230.25C4444.87 3257.15 4456.72 3331.89 4460.34 3354.05V3360.84H4398H4390H4327.66V3354.05C4331.28 3331.89 4343.13 3257.15 4342.69 3230.25C4342.34 3209.02 4335.27 3190.81 4330.62 3181.08L4305.8 3195.47L4283 3155.82L4345.93 3119.35L4386.96 3160.02Z" fill="${shade7}"/> <mask id="mask20" mask-type="alpha" maskUnits="userSpaceOnUse" x="4283" y="3119" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4386.96 3160.02C4390.86 3163.89 4397.14 3163.89 4401.04 3160.02L4442.07 3119.35L4505 3155.82L4482.2 3195.47L4457.38 3181.08C4452.73 3190.81 4445.66 3209.02 4445.31 3230.25C4444.87 3257.15 4456.72 3331.89 4460.34 3354.05V3360.84H4398H4390H4327.66V3354.05C4331.28 3331.89 4343.13 3257.15 4342.69 3230.25C4342.34 3209.02 4335.27 3190.81 4330.62 3181.08L4305.8 3195.47L4283 3155.82L4345.93 3119.35L4386.96 3160.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask20)"> <rect x="4290" y="3138" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4320" y="3168" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4440" y="3168" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4470" y="3138" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4440" y="3108" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4350" y="3198" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4380" y="3228" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4410" y="3198" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4380" y="3168" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4410" y="3138" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4350" y="3258" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4320" y="3228" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4320" y="3288" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4350" y="3318" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4410" y="3318" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4380" y="3288" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4410" y="3258" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4440" y="3228" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4440" y="3288" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4440" y="3348" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4320" y="3348" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4380" y="3348" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4350" y="3138" width="30" height="30" stroke="${shade2}" stroke-width="2"/> <rect x="4320" y="3108" width="30" height="30" stroke="${shade2}" stroke-width="2"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M4724.96 1000.02C4728.86 1003.89 4735.14 1003.89 4739.04 1000.02L4780.07 959.35L4843 995.82L4820.2 1035.47L4795.38 1021.08C4790.73 1030.81 4783.66 1049.02 4783.31 1070.25C4782.87 1097.15 4794.72 1171.89 4798.34 1194.05V1200.84H4736H4728H4665.66V1194.05C4669.28 1171.89 4681.13 1097.15 4680.69 1070.25C4680.34 1049.02 4673.27 1030.81 4668.62 1021.08L4643.8 1035.47L4621 995.82L4683.93 959.35L4724.96 1000.02Z" fill="url(#paint9_linear)"/> <mask id="mask21" mask-type="alpha" maskUnits="userSpaceOnUse" x="4621" y="959" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4724.96 1000.02C4728.86 1003.89 4735.14 1003.89 4739.04 1000.02L4780.07 959.35L4843 995.82L4820.2 1035.47L4795.38 1021.08C4790.73 1030.81 4783.66 1049.02 4783.31 1070.25C4782.87 1097.15 4794.72 1171.89 4798.34 1194.05V1200.84H4736H4728H4665.66V1194.05C4669.28 1171.89 4681.13 1097.15 4680.69 1070.25C4680.34 1049.02 4673.27 1030.81 4668.62 1021.08L4643.8 1035.47L4621 995.82L4683.93 959.35L4724.96 1000.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask21)"> <rect x="4668" y="1022" width="128" height="47" fill="${shade7}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M5062.96 3160.02C5066.86 3163.89 5073.14 3163.89 5077.04 3160.02L5118.07 3119.35L5181 3155.82L5158.2 3195.47L5133.38 3181.08C5128.73 3190.81 5121.66 3209.02 5121.31 3230.25C5120.87 3257.15 5132.72 3331.89 5136.34 3354.05V3360.84H5074H5066H5003.66V3354.05C5007.28 3331.89 5019.13 3257.15 5018.69 3230.25C5018.34 3209.02 5011.27 3190.81 5006.62 3181.08L4981.8 3195.47L4959 3155.82L5021.93 3119.35L5062.96 3160.02Z" fill="${shade3}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5028.11 1678.89L4936 1732.07L4968.12 1787.71L5005 1766.42V1920.57H5067.02H5073H5135.02V1766.42L5171.9 1787.71L5204.02 1732.07L5112.77 1679.38C5108.14 1698.43 5090.97 1712.57 5070.5 1712.57C5049.85 1712.57 5032.56 1698.18 5028.11 1678.89Z" fill="${shade6}"/> <path d="M5040 1771C5048 1762 5062 1762 5070 1771C5078 1780 5092 1780 5100 1771" stroke="${accent6}" stroke-width="5"/> <path d="M5040 1786C5048 1777 5062 1777 5070 1786C5078 1795 5092 1795 5100 1786" stroke="${accent6}" stroke-width="5"/> <path d="M5040 1756C5048 1747 5062 1747 5070 1756C5078 1765 5092 1765 5100 1756" stroke="${accent6}" stroke-width="5"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4724.96 3880.02C4728.86 3883.89 4735.14 3883.89 4739.04 3880.02L4780.07 3839.35L4843 3875.82L4820.2 3915.47L4795.38 3901.08C4790.73 3910.81 4783.66 3929.02 4783.31 3950.25C4782.87 3977.15 4794.72 4051.89 4798.34 4074.05V4080.84H4736H4728H4665.66V4074.05C4669.28 4051.89 4681.13 3977.15 4680.69 3950.25C4680.34 3929.02 4673.27 3910.81 4668.62 3901.08L4643.8 3915.47L4621 3875.82L4683.93 3839.35L4724.96 3880.02Z" fill="url(#paint10_linear)"/> <mask id="mask22" mask-type="alpha" maskUnits="userSpaceOnUse" x="4621" y="3839" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4724.96 3880.02C4728.86 3883.89 4735.14 3883.89 4739.04 3880.02L4780.07 3839.35L4843 3875.82L4820.2 3915.47L4795.38 3901.08C4790.73 3910.81 4783.66 3929.02 4783.31 3950.25C4782.87 3977.15 4794.72 4051.89 4798.34 4074.05V4080.84H4736H4728H4665.66V4074.05C4669.28 4051.89 4681.13 3977.15 4680.69 3950.25C4680.34 3929.02 4673.27 3910.81 4668.62 3901.08L4643.8 3915.47L4621 3875.82L4683.93 3839.35L4724.96 3880.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask22)"> <line x1="4645.06" y1="3849.94" x2="4803.06" y2="4007.94" stroke="${shade7}" stroke-width="3"/> <line x1="4633.06" y1="3857.94" x2="4803.06" y2="4027.94" stroke="${shade7}" stroke-width="3"/> <line x1="4622.06" y1="3866.94" x2="4803.06" y2="4047.94" stroke="${shade7}" stroke-width="3"/> <line x1="4622.06" y1="3886.94" x2="4803.06" y2="4067.94" stroke="${shade7}" stroke-width="3"/> <line x1="4672.06" y1="3956.94" x2="4803.06" y2="4087.94" stroke="${shade7}" stroke-width="3"/> <line x1="4672.06" y1="3976.94" x2="4784.06" y2="4088.94" stroke="${shade7}" stroke-width="3"/> <line x1="4672.06" y1="3996.94" x2="4763.06" y2="4087.94" stroke="${shade7}" stroke-width="3"/> <line x1="4672.06" y1="4016.94" x2="4741.06" y2="4085.94" stroke="${shade7}" stroke-width="3"/> <line x1="4672.06" y1="4036.94" x2="4721.06" y2="4085.94" stroke="${shade7}" stroke-width="3"/> <line x1="4662.06" y1="4046.94" x2="4702.06" y2="4086.94" stroke="${shade7}" stroke-width="3"/> <line x1="4662.06" y1="4066.94" x2="4680.06" y2="4084.94" stroke="${shade7}" stroke-width="3"/> <line x1="4658.06" y1="3842.94" x2="4803.06" y2="3987.94" stroke="${shade7}" stroke-width="3"/> <line x1="4670.06" y1="3834.94" x2="4803.06" y2="3967.94" stroke="${shade7}" stroke-width="3"/> <line x1="4730.06" y1="3874.94" x2="4803.06" y2="3947.94" stroke="${shade7}" stroke-width="3"/> <line x1="4739.06" y1="3863.94" x2="4803.06" y2="3927.94" stroke="${shade7}" stroke-width="3"/> <line x1="4749.06" y1="3853.94" x2="4811.06" y2="3915.94" stroke="${shade7}" stroke-width="3"/> <line x1="4761.06" y1="3845.94" x2="4828.06" y2="3912.94" stroke="${shade7}" stroke-width="3"/> <line x1="4771.06" y1="3835.94" x2="4836.06" y2="3900.94" stroke="${shade7}" stroke-width="3"/> <line x1="4795.06" y1="3839.94" x2="4843.06" y2="3887.94" stroke="${shade7}" stroke-width="3"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M4352.11 238.887L4260 292.069L4292.12 347.71L4329 326.42V480.569H4391.02H4397H4459.02V326.42L4495.9 347.71L4528.02 292.069L4436.77 239.385C4432.14 258.43 4414.97 272.569 4394.5 272.569C4373.85 272.569 4356.56 258.183 4352.11 238.887Z" fill="${accent7}"/> <mask id="mask23" mask-type="alpha" maskUnits="userSpaceOnUse" x="4260" y="238" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4352.11 238.887L4260 292.069L4292.12 347.71L4329 326.42V480.569H4391.02H4397H4459.02V326.42L4495.9 347.71L4528.02 292.069L4436.77 239.385C4432.14 258.43 4414.97 272.569 4394.5 272.569C4373.85 272.569 4356.56 258.183 4352.11 238.887Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask23)"> <path d="M4378.5 370L4455.5 230L4549 283L4482.5 496.5L4449.5 508.5L4378.5 370Z" fill="url(#paint11_linear)"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M-7.03987 2440.02C-3.14187 2443.89 3.14188 2443.89 7.03987 2440.02L48.0718 2399.35L111 2435.82L88.1965 2475.47L63.3783 2461.08C58.7338 2470.81 51.6553 2489.02 51.3085 2510.25C50.8692 2537.15 62.7165 2611.89 66.3382 2634.05V2640.84H4.00199H-4.00181H-66.338V2634.05C-62.7164 2611.89 -50.869 2537.15 -51.3083 2510.25C-51.6551 2489.02 -58.7336 2470.81 -63.3781 2461.08L-88.1963 2475.47L-111 2435.82L-48.0718 2399.35L-7.03987 2440.02Z" fill="${shade2}"/> <rect x="-30" y="2469" width="60" height="14" fill="${accent0}"/> <rect x="-30" y="2483" width="60" height="14" fill="${accent1}"/> <rect x="-30" y="2497" width="60" height="14" fill="${accent2}"/> <rect x="-30" y="2511" width="60" height="14" fill="${accent3}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5400.96 2440.02C5404.86 2443.89 5411.14 2443.89 5415.04 2440.02L5456.07 2399.35L5519 2435.82L5496.2 2475.47L5471.38 2461.08C5466.73 2470.81 5459.66 2489.02 5459.31 2510.25C5458.87 2537.15 5470.72 2611.89 5474.34 2634.05V2640.84H5412H5404H5341.66V2634.05C5345.28 2611.89 5357.13 2537.15 5356.69 2510.25C5356.34 2489.02 5349.27 2470.81 5344.62 2461.08L5319.8 2475.47L5297 2435.82L5359.93 2399.35L5400.96 2440.02Z" fill="${shade2}"/> <rect x="5378" y="2469" width="60" height="14" fill="${accent0}"/> <rect x="5378" y="2483" width="60" height="14" fill="${accent1}"/> <rect x="5378" y="2497" width="60" height="14" fill="${accent2}"/> <rect x="5378" y="2511" width="60" height="14" fill="${accent3}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M-41.8873 3838.89L-134 3892.07L-101.875 3947.71L-65 3926.42V4080.57H-2.97888H3H65.0211V3926.42L101.897 3947.71L134.021 3892.07L42.7695 3839.38C38.1379 3858.43 20.9702 3872.57 0.5 3872.57C-20.1479 3872.57 -37.4357 3858.18 -41.8873 3838.89Z" fill="${accent4}"/> <mask id="mask24" mask-type="alpha" maskUnits="userSpaceOnUse" x="-134" y="3838" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M-41.8873 3838.89L-134 3892.07L-101.875 3947.71L-65 3926.42V4080.57H-2.97888H3H65.0211V3926.42L101.897 3947.71L134.021 3892.07L42.7695 3839.38C38.1379 3858.43 20.9702 3872.57 0.5 3872.57C-20.1479 3872.57 -37.4357 3858.18 -41.8873 3838.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask24)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 3898V3908H13V3898H23V3895H13V3885H10V3895H0V3898H10Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 3940V3950H13V3940H23V3937H13V3927H10V3937H0V3940H10Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 3982V3992H13V3982H23V3979H13V3969H10V3979H0V3982H10Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 4024V4034H13V4024H23V4021H13V4011H10V4021H0V4024H10Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 4066V4076H13V4066H23V4063H13V4053H10V4063H0V4066H10Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M33 3919V3929H36V3919H46V3916H36V3906H33V3916H23V3919H33Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M33 3877V3887H36V3877H46V3874H36V3864H33V3874H23V3877H33Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M33 3961V3971H36V3961H46V3958H36V3948H33V3958H23V3961H33Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M33 4003V4013H36V4003H46V4000H36V3990H33V4000H23V4003H33Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M33 4045V4055H36V4045H46V4042H36V4032H33V4042H23V4045H33Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M33 4087V4097H36V4087H46V4084H36V4074H33V4084H23V4087H33Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M56 3898V3908H59V3898H69V3895H59V3885H56V3895H46V3898H56Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M56 3856V3866H59V3856H69V3853H59V3843H56V3853H46V3856H56Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M56 3940V3950H59V3940H69V3937H59V3927H56V3937H46V3940H56Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M56 3982V3992H59V3982H69V3979H59V3969H56V3979H46V3982H56Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M56 4024V4034H59V4024H69V4021H59V4011H56V4021H46V4024H56Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M56 4066V4076H59V4066H69V4063H59V4053H56V4063H46V4066H56Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M79 3919V3929H82V3919H92V3916H82V3906H79V3916H69V3919H79Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M79 3877V3887H82V3877H92V3874H82V3864H79V3874H69V3877H79Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M102 3898V3908H105V3898H115V3895H105V3885H102V3895H92V3898H102Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M102 3940V3950H105V3940H115V3937H105V3927H102V3937H92V3940H102Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M125 3919V3929H128V3919H138V3916H128V3906H125V3916H115V3919H125Z" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M125 3877V3887H128V3877H138V3874H128V3864H125V3874H115V3877H125Z" fill="${shade1}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M5366.11 3838.89L5274 3892.07L5306.12 3947.71L5343 3926.42V4080.57H5405.02H5411H5473.02V3926.42L5509.9 3947.71L5542.02 3892.07L5450.77 3839.38C5446.14 3858.43 5428.97 3872.57 5408.5 3872.57C5387.85 3872.57 5370.56 3858.18 5366.11 3838.89Z" fill="${accent4}"/> <mask id="mask25" mask-type="alpha" maskUnits="userSpaceOnUse" x="5274" y="3838" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5366.11 3838.89L5274 3892.07L5306.12 3947.71L5343 3926.42V4080.57H5405.02H5411H5473.02V3926.42L5509.9 3947.71L5542.02 3892.07L5450.77 3839.38C5446.14 3858.43 5428.97 3872.57 5408.5 3872.57C5387.85 3872.57 5370.56 3858.18 5366.11 3838.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask25)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5372 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5372 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5372 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5372 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5372 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5372 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5395 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5395 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5395 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5395 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5395 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5395 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5326 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5326 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5326 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5349 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5349 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5349 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5349 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5349 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5349 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5280 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5303 your_sha256_hashZ" fill="${shade1}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5303 your_sha256_hashZ" fill="${shade1}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M4386.96 1720.02C4390.86 1723.89 4397.14 1723.89 4401.04 1720.02L4442.07 1679.35L4505 1715.82L4482.2 1755.47L4457.38 1741.08C4452.73 1750.81 4445.66 1769.02 4445.31 1790.25C4444.87 1817.15 4456.72 1891.89 4460.34 1914.05V1920.84H4398H4390H4327.66V1914.05C4331.28 1891.89 4343.13 1817.15 4342.69 1790.25C4342.34 1769.02 4335.27 1750.81 4330.62 1741.08L4305.8 1755.47L4283 1715.82L4345.93 1679.35L4386.96 1720.02Z" fill="${accent2}"/> <mask id="mask26" mask-type="alpha" maskUnits="userSpaceOnUse" x="4283" y="1679" width="223" height="242"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4386.96 1720.02C4390.86 1723.89 4397.14 1723.89 4401.04 1720.02L4442.07 1679.35L4505 1715.82L4482.2 1755.47L4457.38 1741.08C4452.73 1750.81 4445.66 1769.02 4445.31 1790.25C4444.87 1817.15 4456.72 1891.89 4460.34 1914.05V1920.84H4398H4390H4327.66V1914.05C4331.28 1891.89 4343.13 1817.15 4342.69 1790.25C4342.34 1769.02 4335.27 1750.81 4330.62 1741.08L4305.8 1755.47L4283 1715.82L4345.93 1679.35L4386.96 1720.02Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask26)"> <path d="M4326 1921.5C4338.5 1815 4355 1785 4323 1691.5L4339 1682.5C4356.31 1734.31 4376.5 1741.5 4395 1741.5V1921.5H4326Z" fill="${shade7}"/> <path d="M4462 1921.5C4449.5 1815 4433 1785 4465 1691.5L4449 1682.5C4431.69 1734.31 4411.5 1741.5 4393 1741.5V1921.5H4462Z" fill="${shade7}"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M4690.11 2398.89L4598 2452.07L4630.12 2507.71L4667 2486.42V2640.57H4729.02H4735H4797.02V2486.42L4833.9 2507.71L4866.02 2452.07L4774.77 2399.38C4770.14 2418.43 4752.97 2432.57 4732.5 2432.57C4711.85 2432.57 4694.56 2418.18 4690.11 2398.89Z" fill="${accent1}"/> <mask id="mask27" mask-type="alpha" maskUnits="userSpaceOnUse" x="4598" y="2398" width="269" height="243"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4690.11 2398.89L4598 2452.07L4630.12 2507.71L4667 2486.42V2640.57H4729.02H4735H4797.02V2486.42L4833.9 2507.71L4866.02 2452.07L4774.77 2399.38C4770.14 2418.43 4752.97 2432.57 4732.5 2432.57C4711.85 2432.57 4694.56 2418.18 4690.11 2398.89Z" fill="#C4C4C4"/> </mask> <g mask="url(#mask27)"> <rect x="4729" y="2426" width="6" height="66" rx="3" fill="${shade7}"/> </g> <defs> <linearGradient id="paint0_linear" x1="1014" y1="239.35" x2="1014" y2="480.836" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent5}"/> <stop offset="1" stop-color="${accent4}"/> </linearGradient> <radialGradient id="paint1_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(2366.01 359.728) rotate(90) scale(120.841 134.011)"> <stop stop-color="${accent2}"/> <stop offset="1" stop-color="${accent2}" stop-opacity="0.71"/> </radialGradient> <radialGradient id="paint2_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(676 2520.09) rotate(90) scale(120.743 111)"> <stop stop-color="${accent2}"/> <stop offset="1" stop-color="${accent3}"/> </radialGradient> <linearGradient id="paint3_linear" x1="1014" y1="3119.35" x2="1014" y2="3360.84" gradientUnits="userSpaceOnUse"> <stop stop-color="${shade4}"/> <stop offset="1" stop-color="${shade3}"/> </linearGradient> <linearGradient id="paint4_linear" x1="1352.01" y1="3838.89" x2="1352.01" y2="4080.57" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent0}"/> <stop offset="1" stop-color="${accent0}" stop-opacity="0.75"/> </linearGradient> <linearGradient id="paint5_linear" x1="3380" y1="3911" x2="3380" y2="4008" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent2}"/> <stop offset="1" stop-color="${accent2}" stop-opacity="0"/> </linearGradient> <linearGradient id="paint6_linear" x1="5070" y1="310" x2="5070" y2="398" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent5}"/> <stop offset="1" stop-color="${accent5}" stop-opacity="0"/> </linearGradient> <linearGradient id="paint7_linear" x1="4056.01" y1="958.887" x2="4056.01" y2="1200.57" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent5}"/> <stop offset="1" stop-color="${accent5}" stop-opacity="0.6"/> </linearGradient> <linearGradient id="paint8_linear" x1="3718" y1="1679.35" x2="3718" y2="1920.84" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent7}"/> <stop offset="1" stop-color="${accent7}" stop-opacity="0.67"/> </linearGradient> <linearGradient id="paint9_linear" x1="4732" y1="959.35" x2="4732" y2="1200.84" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent0}"/> <stop offset="1" stop-color="${accent0}" stop-opacity="0.75"/> </linearGradient> <linearGradient id="paint10_linear" x1="4732" y1="3839.35" x2="4732" y2="4080.84" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent3}"/> <stop offset="1" stop-color="${accent4}"/> </linearGradient> <linearGradient id="paint11_linear" x1="4463.75" y1="230" x2="4463.75" y2="508.5" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent3}"/> <stop offset="1" stop-color="${accent3}" stop-opacity="0.4"/> </linearGradient> </defs> </pattern> </defs> <rect x="0" y="0" width="100%" height="100%" fill="url(#bg)" /> <svg x="${surpriseX}" y="${surpriseY}" width="${adjustedCellWidth}" height="${adjustedCellHeight}" viewBox="0 0 ${CELL_WIDTH} ${CELL_HEIGHT}" fill="none" xmlns="path_to_url"> <rect width="676" height="720" fill="${shade0}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M276.304 281.14L273.067 476.934C273.03 479.169 274.832 481 277.067 481H314.317C316.399 481 318.132 479.404 318.304 477.329L332.463 306H338V239H289.995L276.304 281.14ZM292.532 275.275C294.125 270.535 294.81 265.516 295.315 258.823L298.307 259.049C297.797 265.806 297.091 271.127 295.375 276.231C293.654 281.352 290.947 286.17 286.539 291.99L284.148 290.179C288.425 284.531 290.944 280 292.532 275.275Z" fill="url(#pant0_linear)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M386.005 239L399.696 281.14L402.933 476.934C402.97 479.169 401.168 481 398.933 481H361.683C359.601 481 357.868 479.404 357.696 477.329L343.537 306H338V239H386.005ZM383.468 275.275C381.875 270.535 381.19 265.516 380.685 258.823L377.693 259.049C378.203 265.806 378.909 271.127 380.625 276.231C382.346 281.352 385.053 286.17 389.461 291.99L391.852 290.179C387.575 284.531 385.056 280 383.468 275.275Z" fill="url(#pant1_linear)"/> <defs> <linearGradient id="pant0_linear" x1="305.533" y1="239" x2="305.533" y2="481" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent5}"/> <stop offset="1" stop-color="${accent5}" stop-opacity="0.67"/> </linearGradient> <linearGradient id="pant1_linear" x1="370.467" y1="239" x2="370.467" y2="481" gradientUnits="userSpaceOnUse"> <stop stop-color="${accent5}"/> <stop offset="1" stop-color="${accent5}" stop-opacity="0.67"/> </linearGradient> </defs> </svg> </svg> `; yield { path: `${variant.title.kebab}-${size.w}x${size.h}.svg`, content: svg, }; } } }, renderInstructions: listOutputFiles, }; export default template; ```
/content/code_sandbox/cli/src/template/wallpaper-shirts.ts
xml
2016-11-21T13:42:28
2024-08-16T10:14:09
themer
themerdev/themer
5,463
34,542
```xml import { runMigrator } from "../migration-helper.spec"; import { MoveBrowserSettingsToGlobal } from "./9-move-browser-settings-to-global"; describe("MoveBrowserSettingsToGlobal", () => { const myMigrator = new MoveBrowserSettingsToGlobal(8, 9); // This could be the state for a browser client who has never touched the settings or this could // be a different client who doesn't make it possible to toggle these settings it("doesn't set any value to global if there is no equivalent settings on the account", async () => { const output = await runMigrator(myMigrator, { authenticatedAccounts: ["user1"], global: { theme: "system", // A real global setting that should persist after migration }, user1: { settings: { region: "Self-hosted", }, }, }); // No additions to the global state expect(output["global"]).toEqual({ theme: "system", }); // No additions to user state expect(output["user1"]).toEqual({ settings: { region: "Self-hosted", }, }); }); // This could be a user who opened up the settings page and toggled the checkbox, since this setting infers undefined // as false this is essentially the default value. it("sets the setting from the users settings if they have toggled the setting but placed it back to it's inferred", async () => { const output = await runMigrator(myMigrator, { authenticatedAccounts: ["user1"], global: { theme: "system", // A real global setting that should persist after migration }, user1: { settings: { disableAddLoginNotification: false, disableChangedPasswordNotification: false, disableContextMenuItem: false, neverDomains: { "example.com": null, }, region: "Self-hosted", }, }, }); // User settings should have moved to global expect(output["global"]).toEqual({ theme: "system", disableAddLoginNotification: false, disableChangedPasswordNotification: false, disableContextMenuItem: false, neverDomains: { "example.com": null, }, }); // Migrated settings should be deleted expect(output["user1"]).toEqual({ settings: { region: "Self-hosted" }, }); }); // The user has set a value and it's not the default, we should respect that choice globally it("should take the only users settings", async () => { const output = await runMigrator(myMigrator, { authenticatedAccounts: ["user1"], global: { theme: "system", // A real global setting that should persist after migration }, user1: { settings: { disableAddLoginNotification: true, disableChangedPasswordNotification: true, disableContextMenuItem: true, neverDomains: { "example.com": null, }, region: "Self-hosted", }, }, }); // The value for the single user value should be set to global expect(output["global"]).toEqual({ theme: "system", disableAddLoginNotification: true, disableChangedPasswordNotification: true, disableContextMenuItem: true, neverDomains: { "example.com": null, }, }); expect(output["user1"]).toEqual({ settings: { region: "Self-hosted" }, }); }); // No browser client at the time of this writing should ever have multiple authenticatedAccounts // but in the bizzare case, we should interpret any user having the feature turned on as the value for // all the accounts. it("should take the false value if there are conflicting choices", async () => { const output = await runMigrator(myMigrator, { authenticatedAccounts: ["user1", "user2"], global: { theme: "system", // A real global setting that should persist after migration }, user1: { settings: { disableAddLoginNotification: true, disableChangedPasswordNotification: true, disableContextMenuItem: true, neverDomains: { "example.com": null, }, region: "Self-hosted", }, }, user2: { settings: { disableAddLoginNotification: false, disableChangedPasswordNotification: false, disableContextMenuItem: false, neverDomains: { "example2.com": null, }, region: "Self-hosted", }, }, }); // The false settings should be respected over the true values // neverDomains should be combined into a single object expect(output["global"]).toEqual({ theme: "system", disableAddLoginNotification: false, disableChangedPasswordNotification: false, disableContextMenuItem: false, neverDomains: { "example.com": null, "example2.com": null, }, }); expect(output["user1"]).toEqual({ settings: { region: "Self-hosted" }, }); expect(output["user2"]).toEqual({ settings: { region: "Self-hosted" }, }); }); // Once again, no normal browser should have conflicting values at the time of this comment but: // if one user has toggled the setting back to on and one user has never touched the setting, // persist the false value into the global state. it("should persist the false value if one user has that in their settings", async () => { const output = await runMigrator(myMigrator, { authenticatedAccounts: ["user1", "user2"], global: { theme: "system", // A real global setting that should persist after migration }, user1: { settings: { region: "Self-hosted", }, }, user2: { settings: { disableAddLoginNotification: false, disableChangedPasswordNotification: false, disableContextMenuItem: false, neverDomains: { "example.com": null, }, region: "Self-hosted", }, }, }); // The false settings should be respected over the true values // neverDomains should be combined into a single object expect(output["global"]).toEqual({ theme: "system", disableAddLoginNotification: false, disableChangedPasswordNotification: false, disableContextMenuItem: false, neverDomains: { "example.com": null, }, }); expect(output["user1"]).toEqual({ settings: { region: "Self-hosted" }, }); expect(output["user2"]).toEqual({ settings: { region: "Self-hosted" }, }); }); // Once again, no normal browser should have conflicting values at the time of this comment but: // if one user has toggled the setting off and one user has never touched the setting, // persist the false value into the global state. it("should persist the false value from a user with no settings since undefined is inferred as false", async () => { const output = await runMigrator(myMigrator, { authenticatedAccounts: ["user1", "user2"], global: { theme: "system", // A real global setting that should persist after migration }, user1: { settings: { region: "Self-hosted", }, }, user2: { settings: { disableAddLoginNotification: true, disableChangedPasswordNotification: true, disableContextMenuItem: true, neverDomains: { "example.com": null, }, region: "Self-hosted", }, }, }); // The false settings should be respected over the true values // neverDomains should be combined into a single object expect(output["global"]).toEqual({ theme: "system", disableAddLoginNotification: false, disableChangedPasswordNotification: false, disableContextMenuItem: false, neverDomains: { "example.com": null, }, }); expect(output["user1"]).toEqual({ settings: { region: "Self-hosted" }, }); expect(output["user2"]).toEqual({ settings: { region: "Self-hosted" }, }); }); // This is more realistic, a browser user could have signed into the application and logged out, then signed // into a different account. Pre browser account switching, the state for the user _is_ kept on disk but the account // id of the non-current account isn't saved to the authenticatedAccounts array so we don't have a great way to // get the state and include it in our calculations for what the global state should be. it("only cares about users defined in authenticatedAccounts", async () => { const output = await runMigrator(myMigrator, { authenticatedAccounts: ["user1"], global: { theme: "system", // A real global setting that should persist after migration }, user1: { settings: { disableAddLoginNotification: true, disableChangedPasswordNotification: true, disableContextMenuItem: true, neverDomains: { "example.com": null, }, region: "Self-hosted", }, }, user2: { settings: { disableAddLoginNotification: false, disableChangedPasswordNotification: false, disableContextMenuItem: false, neverDomains: { "example2.com": null, }, region: "Self-hosted", }, }, }); // The true settings should be respected over the false values because that whole users values // shouldn't be respected. // neverDomains should be combined into a single object expect(output["global"]).toEqual({ theme: "system", disableAddLoginNotification: true, disableChangedPasswordNotification: true, disableContextMenuItem: true, neverDomains: { "example.com": null, }, }); expect(output["user1"]).toEqual({ settings: { region: "Self-hosted" }, }); expect(output["user2"]).toEqual({ settings: { disableAddLoginNotification: false, disableChangedPasswordNotification: false, disableContextMenuItem: false, neverDomains: { "example2.com": null, }, region: "Self-hosted", }, }); }); }); ```
/content/code_sandbox/libs/common/src/state-migrations/migrations/9-move-browser-settings-to-global.spec.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
2,245
```xml import { toVCard } from '@proton/shared/lib/contacts/helpers/csv'; import { display as getDisplay } from '@proton/shared/lib/contacts/helpers/csvFormat'; import type { PreVcardsProperty } from '@proton/shared/lib/interfaces/contacts/Import'; import { Checkbox } from '../../../../components'; import ContactImportCsvSelectField from './ContactImportCsvSelectField'; import ContactImportCsvSelectType from './ContactImportCsvSelectType'; import ContactImportCsvTableRowsNField from './ContactImportCsvTableRowsNField'; interface Props { preVcards: PreVcardsProperty; onToggle: (index: number) => void; onChangeField: (field: string) => void; onChangeType: (type: string) => void; } const ContactImportCsvTableRows = ({ preVcards, onToggle, onChangeField, onChangeType }: Props) => { const { field, params } = toVCard(preVcards) || {}; const display = preVcards[0]?.custom ? getDisplay.custom(preVcards) : getDisplay[field as string](preVcards); if (field === 'categories') { // Do not display CATEGORIES vcard fields since they cannot be edited from the contact modal return null; } return ( <> {field === 'n' ? ( <ContactImportCsvTableRowsNField preVcards={preVcards} onToggle={onToggle} /> ) : ( preVcards.map(({ checked, header }, i) => ( // eslint-disable-next-line react/no-array-index-key <tr key={i}> <td className="text-center"> <Checkbox checked={checked} onChange={() => onToggle(i)} /> </td> <td>{header}</td> {i === 0 ? ( <> <td rowSpan={preVcards.length}> <div className="flex"> <ContactImportCsvSelectField value={field} onChangeField={onChangeField} /> {params?.type !== undefined ? ( <ContactImportCsvSelectType field={field} value={params.type} onChangeType={onChangeType} /> ) : null} </div> </td> <td rowSpan={preVcards.length} className="text-ellipsis" title={display}> {display} </td> </> ) : null} </tr> )) )} </> ); }; export default ContactImportCsvTableRows; ```
/content/code_sandbox/packages/components/containers/contacts/import/steps/ContactImportCsvTableRows.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
531
```xml import { serveCoverage } from '../../utils'; /** * Executes the build process, serving unit test coverage report using an `express` server. */ export = serveCoverage; ```
/content/code_sandbox/tools/tasks/seed/serve.coverage.ts
xml
2016-01-27T07:12:46
2024-08-15T11:32:04
angular-seed-advanced
NathanWalker/angular-seed-advanced
2,261
35
```xml <shapes name="mxgraph.gcp.identity_and_security"> <shape aspect="variable" h="113.82" name="BeyondCorp" strokewidth="inherit" w="128.74"> <connections/> <foreground> <save/> <path> <move x="126.71" y="51.31"/> <line x="100.46" y="5.77"/> <arc large-arc-flag="0" rx="11.43" ry="11.43" sweep-flag="0" x="90.62" x-axis-rotation="0" y="0"/> <line x="38.12" y="0"/> <arc large-arc-flag="0" rx="11.43" ry="11.43" sweep-flag="0" x="28.28" x-axis-rotation="0" y="5.76"/> <line x="2.03" y="51.27"/> <arc large-arc-flag="0" rx="11.4" ry="11.4" sweep-flag="0" x="2.03" x-axis-rotation="0" y="62.66"/> <line x="28.28" y="108.13"/> <arc large-arc-flag="0" rx="11.36" ry="11.36" sweep-flag="0" x="38.12" x-axis-rotation="0" y="113.82"/> <line x="90.61" y="113.82"/> <arc large-arc-flag="0" rx="11.36" ry="11.36" sweep-flag="0" x="100.45" x-axis-rotation="0" y="108.14"/> <line x="126.7" y="62.68"/> <arc large-arc-flag="0" rx="11.36" ry="11.36" sweep-flag="0" x="126.71" x-axis-rotation="0" y="51.31"/> <close/> </path> <fillstroke/> <strokecolor color="none"/> <fillcolor color="#000000"/> <alpha alpha="0.07"/> <path> <move x="100.45" y="108.14"/> <line x="126.7" y="62.68"/> <curve x1="126.82" x2="126.91" x3="127.02" y1="62.47" y2="62.26" y3="62.04"/> <line x="88.1" y="23.11"/> <line x="80.44" y="24"/> <curve x1="75.64" x2="69.8" x3="63.95" y1="30.43" y2="28.36" y3="28.36"/> <arc large-arc-flag="0" rx="28.57" ry="28.57" sweep-flag="0" x="43.44" x-axis-rotation="0" y="76.83"/> <line x="41.51" y="79.11"/> <line x="76.22" y="113.82"/> <line x="90.61" y="113.82"/> <arc large-arc-flag="0" rx="11.36" ry="11.36" sweep-flag="0" x="100.45" x-axis-rotation="0" y="108.14"/> <close/> </path> <fill/> <restore/> <rect/> <stroke/> <strokecolor color="none"/> <fillcolor color="#fff"/> <path> <move x="89.16" y="37.91"/> <arc large-arc-flag="0" rx="38.7" ry="38.7" sweep-flag="1" x="85.92" x-axis-rotation="0" y="41"/> <arc large-arc-flag="0" rx="27.18" ry="27.18" sweep-flag="1" x="50.63" x-axis-rotation="0" y="80.7"/> <line x="56.4" y="80.7"/> <arc large-arc-flag="0" rx="25.11" ry="25.11" sweep-flag="1" x="53.51" x-axis-rotation="0" y="76.32"/> <line x="44.84" y="76.32"/> <arc large-arc-flag="0" rx="27.41" ry="27.41" sweep-flag="1" x="41.49" x-axis-rotation="0" y="72.32"/> <line x="51.73" y="72.32"/> <arc large-arc-flag="0" rx="39.94" ry="39.94" sweep-flag="1" x="50.4" x-axis-rotation="0" y="67.94"/> <line x="39.06" y="67.94"/> <arc large-arc-flag="0" rx="27" ry="27" sweep-flag="1" x="37.65" x-axis-rotation="0" y="63.94"/> <line x="49.65" y="63.94"/> <quad x1="49.33" x2="49.2" y1="61.81" y2="59.56"/> <line x="36.87" y="59.56"/> <curve x1="36.79" x2="36.75" x3="36.75" y1="58.72" y2="57.86" y3="57"/> <line x="36.75" y="55.55"/> <line x="49.05" y="55.55"/> <arc large-arc-flag="0" rx="41.04" ry="41.04" sweep-flag="1" x="49.32" x-axis-rotation="0" y="51.17"/> <line x="37.32" y="51.17"/> <arc large-arc-flag="0" rx="27" ry="27" sweep-flag="1" x="38.53" x-axis-rotation="0" y="47.17"/> <line x="49.97" y="47.17"/> <arc large-arc-flag="0" rx="42.49" ry="42.49" sweep-flag="1" x="51.07" x-axis-rotation="0" y="42.79"/> <line x="40.77" y="42.79"/> <arc large-arc-flag="0" rx="27.36" ry="27.36" sweep-flag="1" x="43.77" x-axis-rotation="0" y="38.79"/> <line x="52.57" y="38.79"/> <arc large-arc-flag="0" rx="29.14" ry="29.14" sweep-flag="1" x="54.96" x-axis-rotation="0" y="34.41"/> <line x="48.82" y="34.41"/> <arc large-arc-flag="0" rx="27" ry="27" sweep-flag="1" x="74.82" x-axis-rotation="0" y="32.09"/> <arc large-arc-flag="0" rx="35.72" ry="35.72" sweep-flag="0" x="79.15" x-axis-rotation="0" y="42.8"/> <curve x1="79.16" x2="89" x3="90.51" y1="42.8" y2="37.18" y3="31.23"/> <arc large-arc-flag="0" rx="8.13" ry="8.13" sweep-flag="0" x="74.79" x-axis-rotation="0" y="27.11"/> <line x="74.79" y="27.33"/> <arc large-arc-flag="1" rx="31.57" ry="31.57" sweep-flag="0" x="95.51" x-axis-rotation="0" y="57"/> <arc large-arc-flag="0" rx="29.32" ry="29.32" sweep-flag="0" x="89.16" x-axis-rotation="0" y="37.91"/> <close/> <move x="79.03" y="28.13"/> <arc large-arc-flag="1" rx="3.82" ry="3.82" sweep-flag="1" x="81.77" x-axis-rotation="0" y="32.79"/> <line x="81.77" y="32.79"/> <line x="81.76" y="32.79"/> <arc large-arc-flag="0" rx="3.82" ry="3.82" sweep-flag="1" x="79.03" x-axis-rotation="0" y="28.13"/> <close/> </path> <fill/> </foreground> </shape> <shape aspect="variable" h="113.93" name="Cloud Data Loss Prevention API" strokewidth="inherit" w="129.03"> <connections/> <foreground> <save/> <path> <move x="28.3" y="108.18"/> <line x="2.05" y="62.72"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="2.05" x-axis-rotation="0" y="51.22"/> <line x="28.3" y="5.75"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="38.26" x-axis-rotation="0" y="0"/> <line x="90.76" y="0"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="100.72" x-axis-rotation="0" y="5.75"/> <line x="126.97" y="51.22"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="126.97" x-axis-rotation="0" y="62.72"/> <line x="100.72" y="108.18"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="90.76" x-axis-rotation="0" y="113.93"/> <line x="38.26" y="113.93"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="28.3" x-axis-rotation="0" y="108.18"/> <close/> </path> <fillstroke/> <strokecolor color="none"/> <fillcolor color="#000000"/> <alpha alpha="0.07"/> <path> <move x="103.28" y="43.15"/> <line x="99.64" y="44.01"/> <line x="99.1" y="46.8"/> <line x="102.22" y="46.92"/> <line x="102.23" y="50.64"/> <line x="100.38" y="50.97"/> <line x="99.5" y="50.19"/> <line x="92.43" y="43.14"/> <line x="88.85" y="45.68"/> <line x="91.23" y="48.06"/> <line x="91.51" y="49.59"/> <line x="79.49" y="37.58"/> <line x="53.76" y="37.58"/> <line x="48.51" y="43.47"/> <line x="44.99" y="49.15"/> <line x="39.31" y="43.47"/> <line x="35.73" y="46.01"/> <line x="38.1" y="48.37"/> <line x="39.07" y="51.38"/> <line x="31.17" y="43.48"/> <line x="26.93" y="44.93"/> <line x="27.62" y="46.81"/> <line x="30.57" y="47.8"/> <line x="30.27" y="50.8"/> <line x="26.57" y="51"/> <line x="35.97" y="60.39"/> <line x="36.31" y="60.99"/> <line x="29.81" y="54.49"/> <line x="26.24" y="57.03"/> <line x="28.89" y="59.68"/> <line x="28.18" y="62.71"/> <line x="45.73" y="80.25"/> <line x="41.73" y="85.55"/> <line x="70.13" y="113.93"/> <line x="90.76" y="113.93"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="0" x="100.72" x-axis-rotation="0" y="108.18"/> <line x="125.46" y="65.33"/> <close/> </path> <fill/> <restore/> <rect/> <stroke/> <strokecolor color="none"/> <fillcolor color="#fff"/> <path> <move x="75.83" y="34.67"/> <arc large-arc-flag="0" rx="21.27" ry="21.27" sweep-flag="0" x="48.41" x-axis-rotation="0" y="38.76"/> <arc large-arc-flag="0" rx="20.56" ry="20.56" sweep-flag="0" x="43.23" x-axis-rotation="0" y="52.77"/> <curve x1="43.32" x2="46.61" x3="52.57" y1="60.18" y2="65.99" y3="70.35"/> <line x="51.91" y="71.44"/> <line x="49.71" y="72.05"/> <curve x1="46.26" x2="45.01" x3="41.73" y1="78.11" y2="79.79" y3="85.55"/> <line x="47.46" y="88.86"/> <curve x1="50.78" x2="52.03" x3="55.45" y1="83.03" y2="81.34" y3="75.34"/> <line x="54.8" y="72.98"/> <line x="55.36" y="71.99"/> <arc large-arc-flag="0" rx="21.32" ry="21.32" sweep-flag="0" x="75.83" x-axis-rotation="0" y="34.67"/> <close/> <move x="68.36" y="66.91"/> <arc large-arc-flag="1" rx="14.74" ry="14.74" sweep-flag="1" x="78.72" x-axis-rotation="0" y="48.82"/> <line x="78.73" y="48.87"/> <arc large-arc-flag="0" rx="14.76" ry="14.76" sweep-flag="1" x="68.36" x-axis-rotation="0" y="66.91"/> <close/> <move x="26.1" y="47.65"/> <line x="26.57" y="43.48"/> <line x="31.17" y="43.48"/> <line x="31.17" y="44.83"/> <line x="27.91" y="44.83"/> <line x="27.7" y="46.6"/> <arc large-arc-flag="0" rx="2.58" ry="2.58" sweep-flag="1" x="28.94" x-axis-rotation="0" y="46.29"/> <arc large-arc-flag="0" rx="2.37" ry="2.37" sweep-flag="1" x="30.78" x-axis-rotation="0" y="47.01"/> <arc large-arc-flag="0" rx="2.9" ry="2.9" sweep-flag="1" x="31.44" x-axis-rotation="0" y="49.05"/> <arc large-arc-flag="0" rx="2.97" ry="2.97" sweep-flag="1" x="31.11" x-axis-rotation="0" y="50.47"/> <arc large-arc-flag="0" rx="2.37" ry="2.37" sweep-flag="1" x="30.14" x-axis-rotation="0" y="51.45"/> <arc large-arc-flag="0" rx="3" ry="3" sweep-flag="1" x="28.67" x-axis-rotation="0" y="51.79"/> <arc large-arc-flag="0" rx="3.19" ry="3.19" sweep-flag="1" x="27.29" x-axis-rotation="0" y="51.49"/> <arc large-arc-flag="0" rx="2.45" ry="2.45" sweep-flag="1" x="26.28" x-axis-rotation="0" y="50.64"/> <arc large-arc-flag="0" rx="2.32" ry="2.32" sweep-flag="1" x="25.89" x-axis-rotation="0" y="49.4"/> <line x="27.5" y="49.4"/> <arc large-arc-flag="0" rx="1.2" ry="1.2" sweep-flag="0" x="27.86" x-axis-rotation="0" y="50.2"/> <arc large-arc-flag="0" rx="1.13" ry="1.13" sweep-flag="0" x="28.66" x-axis-rotation="0" y="50.48"/> <arc large-arc-flag="0" rx="1" ry="1" sweep-flag="0" x="29.51" x-axis-rotation="0" y="50.08"/> <arc large-arc-flag="0" rx="1.84" ry="1.84" sweep-flag="0" x="29.81" x-axis-rotation="0" y="48.96"/> <arc large-arc-flag="0" rx="1.52" ry="1.52" sweep-flag="0" x="29.47" x-axis-rotation="0" y="47.89"/> <arc large-arc-flag="0" rx="1.26" ry="1.26" sweep-flag="0" x="28.49" x-axis-rotation="0" y="47.52"/> <arc large-arc-flag="0" rx="1.41" ry="1.41" sweep-flag="0" x="27.55" x-axis-rotation="0" y="47.82"/> <line x="27.4" y="47.97"/> <close/> <move x="39.31" y="51.68"/> <line x="37.68" y="51.68"/> <line x="37.68" y="45.4"/> <line x="35.73" y="46.01"/> <line x="35.73" y="44.68"/> <line x="39.13" y="43.47"/> <line x="39.31" y="43.47"/> <close/> <move x="29.81" y="62.71"/> <line x="28.18" y="62.71"/> <line x="28.18" y="56.43"/> <line x="26.24" y="57.03"/> <line x="26.24" y="55.71"/> <line x="29.64" y="54.49"/> <line x="29.81" y="54.49"/> <close/> <move x="40.87" y="59.31"/> <arc large-arc-flag="0" rx="4.15" ry="4.15" sweep-flag="1" x="40.17" x-axis-rotation="0" y="61.92"/> <arc large-arc-flag="0" rx="2.82" ry="2.82" sweep-flag="1" x="36.19" x-axis-rotation="0" y="62.07"/> <quad x1="36.12" x2="36.05" y1="62" y2="61.93"/> <arc large-arc-flag="0" rx="4.04" ry="4.04" sweep-flag="1" x="35.33" x-axis-rotation="0" y="59.4"/> <line x="35.33" y="57.89"/> <arc large-arc-flag="0" rx="4.1" ry="4.1" sweep-flag="1" x="36.04" x-axis-rotation="0" y="55.28"/> <arc large-arc-flag="0" rx="2.82" ry="2.82" sweep-flag="1" x="40.03" x-axis-rotation="0" y="55.15"/> <quad x1="40.09" x2="40.15" y1="55.21" y2="55.27"/> <arc large-arc-flag="0" rx="4.02" ry="4.02" sweep-flag="1" x="40.87" x-axis-rotation="0" y="57.8"/> <close/> <move x="39.24" y="57.65"/> <arc large-arc-flag="0" rx="3" ry="3" sweep-flag="0" x="38.96" x-axis-rotation="0" y="56.17"/> <arc large-arc-flag="0" rx="0.94" ry="0.94" sweep-flag="0" x="38.09" x-axis-rotation="0" y="55.7"/> <arc large-arc-flag="0" rx="0.93" ry="0.93" sweep-flag="0" x="37.25" x-axis-rotation="0" y="56.15"/> <arc large-arc-flag="0" rx="2.81" ry="2.81" sweep-flag="0" x="36.96" x-axis-rotation="0" y="57.53"/> <line x="36.96" y="59.53"/> <arc large-arc-flag="0" rx="3.15" ry="3.15" sweep-flag="0" x="37.23" x-axis-rotation="0" y="61.02"/> <arc large-arc-flag="0" rx="0.93" ry="0.93" sweep-flag="0" x="38.11" x-axis-rotation="0" y="61.51"/> <arc large-arc-flag="0" rx="0.92" ry="0.92" sweep-flag="0" x="38.97" x-axis-rotation="0" y="61.04"/> <arc large-arc-flag="0" rx="3.08" ry="3.08" sweep-flag="0" x="39.24" x-axis-rotation="0" y="59.61"/> <close/> <move x="92.43" y="51.35"/> <line x="90.8" y="51.35"/> <line x="90.8" y="45.07"/> <line x="88.85" y="45.68"/> <line x="88.85" y="44.35"/> <line x="92.25" y="43.14"/> <line x="92.43" y="43.14"/> <close/> <move x="98.21" y="47.32"/> <line x="98.68" y="43.15"/> <line x="103.28" y="43.15"/> <line x="103.28" y="44.51"/> <line x="100.02" y="44.51"/> <line x="99.81" y="46.27"/> <arc large-arc-flag="0" rx="2.58" ry="2.58" sweep-flag="1" x="101.05" x-axis-rotation="0" y="45.96"/> <arc large-arc-flag="0" rx="2.37" ry="2.37" sweep-flag="1" x="102.88" x-axis-rotation="0" y="46.69"/> <arc large-arc-flag="0" rx="2.9" ry="2.9" sweep-flag="1" x="103.55" x-axis-rotation="0" y="48.72"/> <arc large-arc-flag="0" rx="2.97" ry="2.97" sweep-flag="1" x="103.21" x-axis-rotation="0" y="50.14"/> <arc large-arc-flag="0" rx="2.37" ry="2.37" sweep-flag="1" x="102.25" x-axis-rotation="0" y="51.12"/> <arc large-arc-flag="0" rx="3" ry="3" sweep-flag="1" x="100.78" x-axis-rotation="0" y="51.46"/> <arc large-arc-flag="0" rx="3.19" ry="3.19" sweep-flag="1" x="99.4" x-axis-rotation="0" y="51.16"/> <arc large-arc-flag="0" rx="2.45" ry="2.45" sweep-flag="1" x="98.39" x-axis-rotation="0" y="50.31"/> <arc large-arc-flag="0" rx="2.32" ry="2.32" sweep-flag="1" x="98" x-axis-rotation="0" y="49.07"/> <line x="99.61" y="49.07"/> <arc large-arc-flag="0" rx="1.2" ry="1.2" sweep-flag="0" x="99.97" x-axis-rotation="0" y="49.87"/> <arc large-arc-flag="0" rx="1.13" ry="1.13" sweep-flag="0" x="100.77" x-axis-rotation="0" y="50.15"/> <arc large-arc-flag="0" rx="1" ry="1" sweep-flag="0" x="101.62" x-axis-rotation="0" y="49.75"/> <arc large-arc-flag="0" rx="1.84" ry="1.84" sweep-flag="0" x="101.92" x-axis-rotation="0" y="48.63"/> <arc large-arc-flag="0" rx="1.52" ry="1.52" sweep-flag="0" x="101.58" x-axis-rotation="0" y="47.56"/> <arc large-arc-flag="0" rx="1.26" ry="1.26" sweep-flag="0" x="100.6" x-axis-rotation="0" y="47.19"/> <arc large-arc-flag="0" rx="1.41" ry="1.41" sweep-flag="0" x="99.66" x-axis-rotation="0" y="47.49"/> <line x="99.5" y="47.64"/> <close/> <move x="93.99" y="59.31"/> <arc large-arc-flag="0" rx="4.15" ry="4.15" sweep-flag="1" x="93.29" x-axis-rotation="0" y="61.92"/> <arc large-arc-flag="0" rx="2.82" ry="2.82" sweep-flag="1" x="89.31" x-axis-rotation="0" y="62.07"/> <quad x1="89.24" x2="89.18" y1="62" y2="61.93"/> <arc large-arc-flag="0" rx="4.04" ry="4.04" sweep-flag="1" x="88.45" x-axis-rotation="0" y="59.4"/> <line x="88.45" y="57.89"/> <arc large-arc-flag="0" rx="4.1" ry="4.1" sweep-flag="1" x="89.16" x-axis-rotation="0" y="55.28"/> <arc large-arc-flag="0" rx="2.82" ry="2.82" sweep-flag="1" x="93.15" x-axis-rotation="0" y="55.15"/> <quad x1="93.21" x2="93.27" y1="55.21" y2="55.27"/> <arc large-arc-flag="0" rx="4.02" ry="4.02" sweep-flag="1" x="93.99" x-axis-rotation="0" y="57.8"/> <close/> <move x="92.37" y="57.65"/> <arc large-arc-flag="0" rx="3" ry="3" sweep-flag="0" x="92.09" x-axis-rotation="0" y="56.17"/> <arc large-arc-flag="0" rx="0.94" ry="0.94" sweep-flag="0" x="91.22" x-axis-rotation="0" y="55.7"/> <arc large-arc-flag="0" rx="0.93" ry="0.93" sweep-flag="0" x="90.37" x-axis-rotation="0" y="56.15"/> <arc large-arc-flag="0" rx="2.81" ry="2.81" sweep-flag="0" x="90.08" x-axis-rotation="0" y="57.53"/> <line x="90.08" y="59.53"/> <arc large-arc-flag="0" rx="3.15" ry="3.15" sweep-flag="0" x="90.35" x-axis-rotation="0" y="61.02"/> <arc large-arc-flag="0" rx="0.93" ry="0.93" sweep-flag="0" x="91.23" x-axis-rotation="0" y="61.51"/> <arc large-arc-flag="0" rx="0.92" ry="0.92" sweep-flag="0" x="92.09" x-axis-rotation="0" y="61.04"/> <arc large-arc-flag="0" rx="3.08" ry="3.08" sweep-flag="0" x="92.37" x-axis-rotation="0" y="59.61"/> <close/> <move x="98.21" y="58.67"/> <line x="98.68" y="54.5"/> <line x="103.28" y="54.5"/> <line x="103.28" y="55.86"/> <line x="100.02" y="55.86"/> <line x="99.81" y="57.62"/> <arc large-arc-flag="0" rx="2.58" ry="2.58" sweep-flag="1" x="101.05" x-axis-rotation="0" y="57.31"/> <arc large-arc-flag="0" rx="2.37" ry="2.37" sweep-flag="1" x="102.88" x-axis-rotation="0" y="58.04"/> <arc large-arc-flag="0" rx="2.9" ry="2.9" sweep-flag="1" x="103.55" x-axis-rotation="0" y="60.08"/> <arc large-arc-flag="0" rx="2.97" ry="2.97" sweep-flag="1" x="103.21" x-axis-rotation="0" y="61.5"/> <arc large-arc-flag="0" rx="2.37" ry="2.37" sweep-flag="1" x="102.25" x-axis-rotation="0" y="62.47"/> <arc large-arc-flag="0" rx="3" ry="3" sweep-flag="1" x="100.78" x-axis-rotation="0" y="62.82"/> <arc large-arc-flag="0" rx="3.19" ry="3.19" sweep-flag="1" x="99.4" x-axis-rotation="0" y="62.52"/> <arc large-arc-flag="0" rx="2.46" ry="2.46" sweep-flag="1" x="98.39" x-axis-rotation="0" y="61.67"/> <arc large-arc-flag="0" rx="2.32" ry="2.32" sweep-flag="1" x="98" x-axis-rotation="0" y="60.42"/> <line x="99.61" y="60.42"/> <arc large-arc-flag="0" rx="1.2" ry="1.2" sweep-flag="0" x="99.97" x-axis-rotation="0" y="61.22"/> <arc large-arc-flag="0" rx="1.14" ry="1.14" sweep-flag="0" x="100.77" x-axis-rotation="0" y="61.51"/> <arc large-arc-flag="0" rx="1" ry="1" sweep-flag="0" x="101.62" x-axis-rotation="0" y="61.11"/> <arc large-arc-flag="0" rx="1.84" ry="1.84" sweep-flag="0" x="101.92" x-axis-rotation="0" y="59.98"/> <arc large-arc-flag="0" rx="1.52" ry="1.52" sweep-flag="0" x="101.58" x-axis-rotation="0" y="58.91"/> <arc large-arc-flag="0" rx="1.26" ry="1.26" sweep-flag="0" x="100.6" x-axis-rotation="0" y="58.54"/> <arc large-arc-flag="0" rx="1.41" ry="1.41" sweep-flag="0" x="99.66" x-axis-rotation="0" y="58.85"/> <line x="99.5" y="58.99"/> <close/> <move x="55.91" y="60.54"/> <curve x1="55.91" x2="55.87" x3="55.92" y1="59.3" y2="58.09" y3="56.89"/> <arc large-arc-flag="0" rx="3.24" ry="3.24" sweep-flag="1" x="57.25" x-axis-rotation="0" y="54.52"/> <arc large-arc-flag="0" rx="9.33" ry="9.33" sweep-flag="1" x="60.48" x-axis-rotation="0" y="52.83"/> <arc large-arc-flag="0" rx="11.11" ry="11.11" sweep-flag="1" x="69.88" x-axis-rotation="0" y="53.9"/> <arc large-arc-flag="0" rx="5.99" ry="5.99" sweep-flag="1" x="70.93" x-axis-rotation="0" y="54.69"/> <arc large-arc-flag="0" rx="3.47" ry="3.47" sweep-flag="1" x="72.1" x-axis-rotation="0" y="57.59"/> <curve x1="72.05" x2="72.09" x3="72.09" y1="58.56" y2="59.54" y3="60.54"/> <close/> <move x="63.99" y="50.42"/> <arc large-arc-flag="1" rx="4.18" ry="4.18" sweep-flag="1" x="68.17" x-axis-rotation="0" y="46.25"/> <line x="68.17" y="46.29"/> <arc large-arc-flag="0" rx="4.18" ry="4.18" sweep-flag="1" x="63.99" x-axis-rotation="0" y="50.42"/> <close/> </path> <fill/> </foreground> </shape> <shape aspect="variable" h="114" name="Cloud IAM" strokewidth="inherit" w="129.03"> <connections/> <foreground> <save/> <path> <move x="28.3" y="108.25"/> <line x="2.05" y="62.75"/> <arc large-arc-flag="0" rx="11.51" ry="11.51" sweep-flag="1" x="2.05" x-axis-rotation="0" y="51.25"/> <line x="28.3" y="5.75"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="38.26" x-axis-rotation="0" y="0"/> <line x="90.76" y="0"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="100.72" x-axis-rotation="0" y="5.75"/> <line x="126.97" y="51.25"/> <arc large-arc-flag="0" rx="11.51" ry="11.51" sweep-flag="1" x="126.97" x-axis-rotation="0" y="62.75"/> <line x="100.72" y="108.25"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="90.76" x-axis-rotation="0" y="114"/> <line x="38.26" y="114"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="28.3" x-axis-rotation="0" y="108.25"/> <close/> </path> <fillstroke/> <strokecolor color="none"/> <fillcolor color="#000000"/> <alpha alpha="0.07"/> <path> <move x="89.51" y="37.75"/> <line x="50.55" y="36.98"/> <line x="47.51" y="71.5"/> <line x="50.19" y="79.83"/> <line x="84.33" y="113.97"/> <line x="90.76" y="113.97"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="0" x="100.72" x-axis-rotation="0" y="108.22"/> <line x="122.41" y="70.65"/> <close/> </path> <fill/> <restore/> <rect/> <stroke/> <strokecolor color="none"/> <fillcolor color="#fff"/> <path> <move x="64.51" y="26.73"/> <line x="39.51" y="37.84"/> <line x="39.51" y="54.51"/> <curve x1="39.51" x2="50.18" x3="64.51" y1="69.92" y2="84.34" y3="87.84"/> <curve x1="78.85" x2="89.51" x3="89.51" y1="84.34" y2="69.92" y3="54.51"/> <line x="89.51" y="37.84"/> <close/> <move x="64.51" y="38.5"/> <arc large-arc-flag="1" rx="8" ry="8" sweep-flag="1" x="56.51" x-axis-rotation="0" y="46.5"/> <arc large-arc-flag="0" rx="8" ry="8" sweep-flag="1" x="64.51" x-axis-rotation="0" y="38.5"/> <close/> <move x="79.51" y="71.58"/> <arc large-arc-flag="0" rx="1" ry="1" sweep-flag="1" x="79.34" x-axis-rotation="0" y="72.14"/> <curve x1="79.16" x2="78.98" x3="78.78" y1="72.41" y2="72.69" y3="72.95"/> <arc large-arc-flag="0" rx="27.87" ry="27.87" sweep-flag="1" x="64.51" x-axis-rotation="0" y="83.18"/> <arc large-arc-flag="0" rx="27.87" ry="27.87" sweep-flag="1" x="50.24" x-axis-rotation="0" y="72.95"/> <curve x1="50.04" x2="49.86" x3="49.68" y1="72.69" y2="72.41" y3="72.14"/> <arc large-arc-flag="0" rx="1" ry="1" sweep-flag="1" x="49.51" x-axis-rotation="0" y="71.58"/> <line x="49.51" y="67.14"/> <curve x1="49.51" x2="59.51" x3="64.51" y1="61.01" y2="57.92" y3="57.92"/> <curve x1="69.52" x2="79.51" x3="79.51" y1="57.92" y2="61.01" y3="67.14"/> <line x="79.51" y="71.58"/> <close/> </path> <fill/> </foreground> </shape> <shape aspect="variable" h="113.93" name="Cloud Identity Aware Proxy" strokewidth="inherit" w="129.03"> <connections/> <foreground> <save/> <path> <move x="28.3" y="108.18"/> <line x="2.05" y="62.72"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="2.05" x-axis-rotation="0" y="51.22"/> <line x="28.3" y="5.75"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="38.26" x-axis-rotation="0" y="0"/> <line x="90.76" y="0"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="100.72" x-axis-rotation="0" y="5.75"/> <line x="126.97" y="51.22"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="126.97" x-axis-rotation="0" y="62.72"/> <line x="100.72" y="108.18"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="90.76" x-axis-rotation="0" y="113.93"/> <line x="38.26" y="113.93"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="28.3" x-axis-rotation="0" y="108.18"/> <close/> </path> <fillstroke/> <strokecolor color="none"/> <fillcolor color="#000000"/> <alpha alpha="0.07"/> <path> <move x="90.76" y="113.93"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="0" x="100.72" x-axis-rotation="0" y="108.18"/> <line x="122.28" y="70.84"/> <line x="90.1" y="38.7"/> <line x="81.46" y="41.28"/> <line x="83.75" y="43.57"/> <line x="81.86" y="44.7"/> <line x="92.74" y="55.58"/> <line x="86.89" y="57.05"/> <line x="74.47" y="44.63"/> <line x="58.45" y="41.72"/> <line x="47.92" y="49.03"/> <line x="46.99" y="65.5"/> <line x="35.39" y="53.6"/> <line x="29.23" y="54.33"/> <line x="28.72" y="60.34"/> <line x="82.31" y="113.93"/> <close/> </path> <fill/> <restore/> <rect/> <stroke/> <strokecolor color="none"/> <fillcolor color="#fff"/> <path> <move x="61.88" y="39.45"/> <arc large-arc-flag="1" rx="17.9" ry="17.9" sweep-flag="0" x="79.78" x-axis-rotation="0" y="57.35"/> <arc large-arc-flag="0" rx="17.9" ry="17.9" sweep-flag="0" x="61.88" x-axis-rotation="0" y="39.45"/> <close/> <move x="61.88" y="71.32"/> <arc large-arc-flag="1" rx="13.96" ry="13.96" sweep-flag="1" x="75.84" x-axis-rotation="0" y="57.35"/> <arc large-arc-flag="0" rx="13.96" ry="13.96" sweep-flag="1" x="61.88" x-axis-rotation="0" y="71.32"/> <close/> <move x="68.62" y="59.47"/> <arc large-arc-flag="0" rx="5.83" ry="5.83" sweep-flag="0" x="67.61" x-axis-rotation="0" y="58.7"/> <arc large-arc-flag="0" rx="10.82" ry="10.82" sweep-flag="0" x="58.45" x-axis-rotation="0" y="57.66"/> <arc large-arc-flag="0" rx="9.08" ry="9.08" sweep-flag="0" x="55.31" x-axis-rotation="0" y="59.3"/> <arc large-arc-flag="0" rx="3.15" ry="3.15" sweep-flag="0" x="54.01" x-axis-rotation="0" y="61.61"/> <curve x1="53.97" x2="54" x3="54" y1="62.78" y2="63.96" y3="65.16"/> <line x="69.76" y="65.16"/> <curve x1="69.76" x2="69.72" x3="69.77" y1="64.19" y2="63.24" y3="62.29"/> <arc large-arc-flag="0" rx="3.38" ry="3.38" sweep-flag="0" x="68.62" x-axis-rotation="0" y="59.47"/> <close/> <move x="61.87" y="55.32"/> <arc large-arc-flag="1" rx="4.06" ry="4.06" sweep-flag="0" x="61.84" x-axis-rotation="0" y="55.32"/> <close/> <move x="93.21" y="52.48"/> <line x="89.57" y="52.48"/> <line x="92.28" y="55.19"/> <line x="84.5" y="55.19"/> <line x="84.5" y="58.36"/> <line x="92.28" y="58.36"/> <line x="89.57" y="61.07"/> <line x="93.21" y="61.07"/> <line x="97.5" y="56.77"/> <line x="93.21" y="52.48"/> <close/> <move x="81.86" y="44.7"/> <line x="84.1" y="46.94"/> <line x="87.53" y="43.51"/> <line x="87.53" y="47.35"/> <line x="90.1" y="44.77"/> <line x="90.1" y="38.7"/> <line x="84.03" y="38.7"/> <line x="81.46" y="41.28"/> <line x="85.29" y="41.28"/> <line x="81.86" y="44.7"/> <close/> <move x="87.53" y="70.42"/> <line x="84.1" y="66.99"/> <line x="81.86" y="69.23"/> <line x="85.29" y="72.66"/> <line x="81.46" y="72.66"/> <line x="84.03" y="75.23"/> <line x="90.1" y="75.23"/> <line x="90.1" y="69.16"/> <line x="87.53" y="66.59"/> <line x="87.53" y="70.42"/> <close/> <move x="32.05" y="52.22"/> <arc large-arc-flag="1" rx="4.75" ry="4.75" sweep-flag="0" x="36.8" x-axis-rotation="0" y="56.97"/> <arc large-arc-flag="0" rx="4.75" ry="4.75" sweep-flag="0" x="32.05" x-axis-rotation="0" y="52.22"/> <close/> <move x="32.05" y="59.6"/> <arc large-arc-flag="1" rx="2.64" ry="2.64" sweep-flag="1" x="34.69" x-axis-rotation="0" y="56.97"/> <arc large-arc-flag="0" rx="2.64" ry="2.64" sweep-flag="1" x="32.05" x-axis-rotation="0" y="59.6"/> <close/> </path> <fill/> </foreground> </shape> <shape aspect="variable" h="113.97" name="Cloud Platform Security" strokewidth="inherit" w="129.07"> <connections/> <foreground> <save/> <path> <move x="28.3" y="108.23"/> <line x="2.05" y="62.76"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="2.05" x-axis-rotation="0" y="51.26"/> <line x="28.3" y="5.79"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="38.26" x-axis-rotation="0" y="0.01"/> <line x="90.76" y="0.01"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="100.76" x-axis-rotation="0" y="5.76"/> <line x="127.01" y="51.23"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="127.01" x-axis-rotation="0" y="62.73"/> <line x="100.76" y="108.2"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="90.76" x-axis-rotation="0" y="113.95"/> <line x="38.26" y="113.95"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="28.3" x-axis-rotation="0" y="108.23"/> <close/> </path> <fillstroke/> <strokecolor color="none"/> <fillcolor color="#000000"/> <alpha alpha="0.07"/> <path> <move x="89.06" y="38.01"/> <line x="66.24" y="35.01"/> <line x="46.24" y="40.24"/> <line x="44.91" y="66.52"/> <line x="51.82" y="75.66"/> <line x="49.34" y="77.93"/> <line x="85.34" y="113.93"/> <line x="90.72" y="113.93"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="0" x="100.72" x-axis-rotation="0" y="108.18"/> <line x="122.16" y="71.04"/> <close/> </path> <fill/> <restore/> <rect/> <stroke/> <strokecolor color="none"/> <fillcolor color="#fff"/> <path> <move x="64.63" y="41.01"/> <arc large-arc-flag="0" rx="5.65" ry="5.65" sweep-flag="0" x="58.99" x-axis-rotation="0" y="46.65"/> <line x="58.99" y="49.01"/> <line x="70.27" y="49.01"/> <line x="70.27" y="46.61"/> <arc large-arc-flag="0" rx="5.65" ry="5.65" sweep-flag="0" x="64.63" x-axis-rotation="0" y="41.01"/> <close/> </path> <fill/> <ellipse h="8" w="8" x="60.51" y="56.01"/> <fill/> <path> <move x="64.51" y="27.07"/> <line x="39.96" y="38.01"/> <line x="39.96" y="54.34"/> <curve x1="39.96" x2="50.43" x3="64.51" y1="69.48" y2="83.63" y3="87.07"/> <curve x1="78.58" x2="89.06" x3="89.06" y1="83.63" y2="69.48" y3="54.34"/> <line x="89.06" y="38.01"/> <close/> <move x="77.51" y="71.01"/> <line x="51.51" y="71.01"/> <line x="51.51" y="49.01"/> <line x="55.24" y="49.01"/> <line x="55.24" y="46.61"/> <arc large-arc-flag="1" rx="9.39" ry="9.39" sweep-flag="1" x="74.03" x-axis-rotation="0" y="46.61"/> <line x="74.03" y="49.01"/> <line x="77.51" y="49.01"/> <close/> </path> <fill/> </foreground> </shape> <shape aspect="variable" h="113.93" name="Security Key Enforcement" strokewidth="inherit" w="129.03"> <connections/> <foreground> <save/> <path> <move x="28.3" y="108.18"/> <line x="2.05" y="62.72"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="2.05" x-axis-rotation="0" y="51.22"/> <line x="28.3" y="5.75"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="38.26" x-axis-rotation="0" y="0"/> <line x="90.76" y="0"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="100.72" x-axis-rotation="0" y="5.75"/> <line x="126.97" y="51.22"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="126.97" x-axis-rotation="0" y="62.72"/> <line x="100.72" y="108.18"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="90.76" x-axis-rotation="0" y="113.93"/> <line x="38.26" y="113.93"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="28.3" x-axis-rotation="0" y="108.18"/> <close/> </path> <fillstroke/> <strokecolor color="none"/> <fillcolor color="#000000"/> <alpha alpha="0.07"/> <path> <move x="78.46" y="38.23"/> <line x="80.03" y="50.5"/> <line x="67.7" y="38.17"/> <line x="59.17" y="66.59"/> <line x="47.07" y="75.33"/> <line x="85.67" y="113.93"/> <line x="90.76" y="113.93"/> <arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="0" x="100.72" x-axis-rotation="0" y="108.18"/> <line x="118.18" y="77.95"/> <close/> </path> <fill/> <restore/> <rect/> <stroke/> <strokecolor color="none"/> <fillcolor color="#fff"/> <path> <move x="55.11" y="67.2"/> <curve x1="55.11" x2="55.15" x3="55.06" y1="64.3" y2="61.56" y3="58.82"/> <curve x1="55.05" x2="54.4" x3="53.97" y1="58.49" y2="58.08" y3="57.87"/> <arc large-arc-flag="1" rx="12.18" ry="12.18" sweep-flag="1" x="70.6" x-axis-rotation="0" y="42.64"/> <arc large-arc-flag="0" rx="12.05" ry="12.05" sweep-flag="1" x="64.44" x-axis-rotation="0" y="57.79"/> <arc large-arc-flag="0" rx="1.85" ry="1.85" sweep-flag="0" x="63.22" x-axis-rotation="0" y="59.81"/> <curve x1="63.26" x2="63.24" x3="63.24" y1="65.76" y2="71.71" y3="77.67"/> <line x="63.24" y="79.25"/> <line x="55.15" y="79.25"/> <line x="55.15" y="75.33"/> <line x="47.07" y="75.33"/> <line x="47.07" y="67.2"/> <close/> <move x="63.24" y="46.87"/> <arc large-arc-flag="1" rx="4.06" ry="4.06" sweep-flag="0" x="59.15" x-axis-rotation="0" y="50.89"/> <line x="59.16" y="50.89"/> <arc large-arc-flag="0" rx="4.08" ry="4.08" sweep-flag="0" x="63.24" x-axis-rotation="0" y="46.87"/> <close/> <move x="81.28" y="42.64"/> <arc large-arc-flag="0" rx="12.14" ry="12.14" sweep-flag="0" x="67.19" x-axis-rotation="0" y="35"/> <arc large-arc-flag="0" rx="12.14" ry="12.14" sweep-flag="1" x="69.72" x-axis-rotation="0" y="57.79"/> <arc large-arc-flag="0" rx="1.85" ry="1.85" sweep-flag="0" x="68.5" x-axis-rotation="0" y="59.81"/> <curve x1="68.54" x2="68.52" x3="68.52" y1="65.77" y2="71.72" y3="77.67"/> <line x="68.52" y="79.25"/> <line x="73.93" y="79.25"/> <line x="73.93" y="77.67"/> <curve x1="73.93" x2="73.95" x3="73.91" y1="71.72" y2="65.77" y3="59.81"/> <arc large-arc-flag="0" rx="1.85" ry="1.85" sweep-flag="1" x="75.13" x-axis-rotation="0" y="57.79"/> <arc large-arc-flag="0" rx="12.05" ry="12.05" sweep-flag="0" x="81.28" x-axis-rotation="0" y="42.64"/> <close/> </path> <fill/> </foreground> </shape> </shapes> ```
/content/code_sandbox/src/main/webapp/stencils/gcp/identity_and_security.xml
xml
2016-09-06T12:59:15
2024-08-16T13:28:41
drawio
jgraph/drawio
40,265
14,760
```xml import * as React from 'react'; import { ComponentPrototype, PrototypeSection } from '../Prototypes'; import { ChatRefreshSimple } from './ChatRefreshSimple'; import { ChatRefreshTimestampTooltip } from './ChatRefreshTimestampTooltip'; import { ChatRefreshStressTest } from './ChatRefreshStressTest'; export default () => ( <PrototypeSection title="Chat Refresh"> <ComponentPrototype title="Simple" description="Message metadata sits outside the bubble."> <ChatRefreshSimple /> </ComponentPrototype> <ComponentPrototype title="Timestamp Tooltip" description="Message tooltip can be modified to render a tooltip on hover." > <ChatRefreshTimestampTooltip /> </ComponentPrototype> <ComponentPrototype title="Stress Test" description="Testing uncommon messages."> <ChatRefreshStressTest /> </ComponentPrototype> </PrototypeSection> ); ```
/content/code_sandbox/packages/fluentui/react-northstar-prototypes/src/prototypes/chatRefresh/index.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
183
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <!--<color name="bg_video_view">#60607d8b</color>--> <color name="bg_video_view">#80000000</color> <color name="seek_background">#809e9e9e</color> <color name="seek_progress">#cce91e63</color> <color name="seek_secondary_progress">#88f48fb1</color> <color name="seek_ball">#ffffffff</color> <color name="media_quality_selected">#ccec407a</color> <color name="video_skip">#e91e63</color> <color name="text_hint">#55ffffff</color> <color name="text_content">#ffffff</color> <color name="background_gray">#ffa5a5a5</color> <color name="background_gray_light">#ffbababa</color> <color name="recover_screen_text">#f06292</color> </resources> ```
/content/code_sandbox/playerview/src/main/res/values/colors.xml
xml
2016-08-19T09:59:38
2024-07-21T15:24:26
MvpApp
Rukey7/MvpApp
2,342
218
```xml import { addDays, differenceInDays } from 'date-fns'; import { c, msgid } from 'ttag'; import { Href } from '@proton/atoms'; import { useNotifications } from '@proton/components'; import { MAIL_APP_NAME } from '@proton/shared/lib/constants'; import { setBit } from '@proton/shared/lib/helpers/bitset'; import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url'; import { MESSAGE_FLAGS } from '@proton/shared/lib/mail/constants'; import { useMailDispatch } from 'proton-mail/store/hooks'; import { DEFAULT_EO_EXPIRATION_DAYS } from '../../../constants'; import { useExternalExpiration } from '../../../hooks/composer/useExternalExpiration'; import { updateExpires } from '../../../store/messages/draft/messagesDraftActions'; import type { MessageState } from '../../../store/messages/messagesTypes'; import type { MessageChange } from '../Composer'; import ComposerInnerModal from './ComposerInnerModal'; import PasswordInnerModalForm from './PasswordInnerModalForm'; const getNumberOfExpirationDays = (message?: MessageState) => { return message?.draftFlags?.expiresIn ? differenceInDays(message.draftFlags.expiresIn, new Date()) : 28; }; const getExpirationText = (message?: MessageState) => { const numberOfDays = getNumberOfExpirationDays(message); if (numberOfDays === 0) { return c('Info').t`Your message will expire today.`; } if (numberOfDays === 1) { return c('Info').t`Your message will expire tomorrow.`; } return c('Info').ngettext( msgid`Your message will expire in ${numberOfDays} day.`, `Your message will expire in ${numberOfDays} days.`, numberOfDays ); }; interface Props { message?: MessageState; onClose: () => void; onChange: MessageChange; } const ComposerPasswordModal = ({ message, onClose, onChange }: Props) => { const { password, setPassword, passwordHint, setPasswordHint, validator, onFormSubmit } = useExternalExpiration(message); const { createNotification } = useNotifications(); const dispatch = useMailDispatch(); const isEdition = message?.draftFlags?.expiresIn; const handleSubmit = () => { if (!onFormSubmit()) { return; } if (!isEdition) { const expirationDate = addDays(new Date(), DEFAULT_EO_EXPIRATION_DAYS); onChange( (message) => ({ data: { Flags: setBit(message.data?.Flags, MESSAGE_FLAGS.FLAG_INTERNAL), Password: password, PasswordHint: passwordHint, }, draftFlags: { expiresIn: expirationDate }, }), true ); dispatch(updateExpires({ ID: message?.localID || '', expiresIn: expirationDate })); } else { onChange( (message) => ({ data: { Flags: setBit(message.data?.Flags, MESSAGE_FLAGS.FLAG_INTERNAL), Password: password, PasswordHint: passwordHint, }, }), true ); } createNotification({ text: c('Notification').t`Password has been set successfully` }); onClose(); }; const handleCancel = () => { onClose(); }; // translator : The variable "MAIL_APP_NAME" is the text "Proton Mail". This string is the bold part of the larger string "Send an encrypted, password protected message to a ${boldText} email address." const boldText = <strong key="strong-text">{c('Info').t`non-${MAIL_APP_NAME}`}</strong>; // translator : The variable "boldText" is the text "non-Proton Mail" written in bold const encryptionText = c('Info').jt`Send an encrypted, password protected message to a ${boldText} email address.`; const expirationText = getExpirationText(message); return ( <ComposerInnerModal title={isEdition ? c('Info').t`Edit encryption` : c('Info').t`Encrypt message`} submit={c('Action').t`Set encryption`} onSubmit={handleSubmit} onCancel={handleCancel} > <p className="mt-0 mb-2 color-weak">{encryptionText}</p> <p className="mt-0 mb-4 color-weak"> {expirationText} <br /> <Href href={getKnowledgeBaseUrl('/password-protected-emails')}>{c('Info').t`Learn more`}</Href> </p> <PasswordInnerModalForm password={password} setPassword={setPassword} passwordHint={passwordHint} setPasswordHint={setPasswordHint} validator={validator} /> </ComposerInnerModal> ); }; export default ComposerPasswordModal; ```
/content/code_sandbox/applications/mail/src/app/components/composer/modals/ComposerPasswordModal.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
1,006
```xml import { Component } from '@angular/core'; import { Code } from '@domain/code'; @Component({ selector: 'calendar-minmax-demo', template: ` <app-docsectiontext> <p>Boundaries for the permitted dates that can be entered are defined with <i>minDate</i> and <i>maxDate</i> properties.</p> </app-docsectiontext> <div class="card flex justify-content-center"> <p-calendar [(ngModel)]="date" [minDate]="minDate" [maxDate]="maxDate" [readonlyInput]="true" /> </div> <app-code [code]="code" selector="calendar-minmax-demo"></app-code> ` }) export class MinMaxDoc { date: Date | undefined; minDate: Date | undefined; maxDate: Date | undefined; ngOnInit() { let today = new Date(); let month = today.getMonth(); let year = today.getFullYear(); let prevMonth = month === 0 ? 11 : month - 1; let prevYear = prevMonth === 11 ? year - 1 : year; let nextMonth = month === 11 ? 0 : month + 1; let nextYear = nextMonth === 0 ? year + 1 : year; this.minDate = new Date(); this.minDate.setMonth(prevMonth); this.minDate.setFullYear(prevYear); this.maxDate = new Date(); this.maxDate.setMonth(nextMonth); this.maxDate.setFullYear(nextYear); } code: Code = { basic: `<p-calendar [(ngModel)]="date" [minDate]="minDate" [maxDate]="maxDate" [readonlyInput]="true" />`, html: `<div class="card flex justify-content-center"> <p-calendar [(ngModel)]="date" [minDate]="minDate" [maxDate]="maxDate" [readonlyInput]="true" /> </div>`, typescript: `import { Component, OnInit } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { CalendarModule } from 'primeng/calendar'; @Component({ selector: 'calendar-minmax-demo', templateUrl: './calendar-minmax-demo.html', standalone: true, imports: [FormsModule, CalendarModule] }) export class CalendarMinmaxDemo implements OnInit { date: Date | undefined; minDate: Date | undefined; maxDate: Date | undefined; ngOnInit() { let today = new Date(); let month = today.getMonth(); let year = today.getFullYear(); let prevMonth = (month === 0) ? 11 : month -1; let prevYear = (prevMonth === 11) ? year - 1 : year; let nextMonth = (month === 11) ? 0 : month + 1; let nextYear = (nextMonth === 0) ? year + 1 : year; this.minDate = new Date(); this.minDate.setMonth(prevMonth); this.minDate.setFullYear(prevYear); this.maxDate = new Date(); this.maxDate.setMonth(nextMonth); this.maxDate.setFullYear(nextYear); } }` }; } ```
/content/code_sandbox/src/app/showcase/doc/calendar/minmaxdox.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
708
```xml import { Injectable, Directive } from '@angular/core'; import { UntypedFormGroup } from '@angular/forms'; import { IFieldConfig, Field } from '../../../../models'; import { AppFormComponent } from '../form'; import { FormsService } from '../../forms.service'; @Directive() @Injectable() export abstract class FieldBaseComponent implements Field { config: IFieldConfig; constructor(public fc: AppFormComponent, public formService: FormsService) {} get formGroup(): UntypedFormGroup { return this.fc.form; } showAsterisk(config: IFieldConfig): boolean { return this.formService.showIndicator(config); } } ```
/content/code_sandbox/src/Presentation/Web/ClientApp/src/app/shared/components/forms/components/field-base/field-base.ts
xml
2016-06-03T17:49:56
2024-08-14T02:53:24
AspNetCoreSpa
fullstackproltd/AspNetCoreSpa
1,472
135
```xml <resources xmlns:tools="path_to_url"> <string name="app_name"> </string> <string name="title"> </string> <string name="file_name_text"> </string> <string name="select_images_text"> </string> <string name="password_protect_pdf_text"> </string> <string name="edit_images_text"> </string> <string name="open_pdf_text">PDF </string> <string name="create_pdf_text">PDF </string> <string name="details"><b></b></string> <string name="search_hint"> </string> <string name="search"></string> <string name="default_content_description"> </string> <string name="prompt_input"> </string> <!-- Items --> <array name="items"> <item> </item> <item> </item> <item> </item> <item>Print </item> <item> </item> <item> </item> <item> </item> <item> </item> <item> </item> <item> </item> </array> <array name="itemIds" translatable="false"> <item></item> <item> </item> <item> </item> <item></item> <item>-</item> <item></item> </array> <string-array name="array_page_sizes_b0_b10" translatable="false"> <item>B0 (1000 x 1414 mm)</item> <item>B1 (707 x 1000 mm)</item> <item>B2 (500 x 707 mm)</item> <item>B3 (353 x 500 mm)</item> <item>B4 (250 x 353 mm)</item> <item>B5 (176 x 250 mm)</item> <item>B6 (125 x 176 mm)</item> <item>B7 (88 x 125 mm)</item> <item>B8 (62 x 88 mm)</item> <item>B9 (44 x 62 mm)</item> <item>B10 (31 x 44 mm)</item> </string-array> <string-array name="array_page_sizes_a0_b10" translatable="false"> <item>A0 (841 x 1189 mm)</item> <item>A1 (594 x 841 mm)</item> <item>A2 (420 x 594 mm)</item> <item>A3 (297 x 420 mm)</item> <item>A4 (210 x 297 mm)</item> <item>A5 (148 x 210 mm)</item> <item>A6 (105 x 148 mm)</item> <item>A7 (74 x 105 mm)</item> <item>A8 (52 x 74 mm)</item> <item>A9 (37 x 52 mm)</item> <item>A10 (26 x 37 mm)</item> </string-array> <string-array name="fontStyles" translatable="false"> <item>NORMAL</item> <item>BOLD</item> <item>ITALIC</item> <item>UNDERLINE</item> <item>STRIKETHRU</item> <item>BOLDITALIC</item> </string-array> <string name="please_wait"> </string> <string name="bundleKey">ImageUri</string> <string name="whatsappToast">! . ** ** .</string> <string name="successToast"> .</string> <!-- Navigation drawer strings --> <string name="create_pdf"> </string> <string name="qr_barcode_pdf">QR </string> <string name="viewFiles"> </string> <string name="extras"></string> <string name="share"> </string> <string name="help"></string> <string name="faqs" translatable="false">FAQ</string> <!-- images to PDF --> <string name="images_to_pdf"> </string> <string name="page_color"> </string> <string name="filter_images_Text"> \n</string> <!-- Image to PDF -Preview PDF--> <string name="preview_image_to_pdf"> </string> <!-- Image to PDF-show page number--> <string name="choose_page_number_style"> </string> <string name="show_pg_num"> </string> <string name="page_x_of_n">N X </string> <string name="page_x">N X</string> <string name="x">X</string> <!-- Image to PDF -Rearrange images--> <string name="arrow_up"> </string> <string name="arrow_down"> </string> <string name="rearrange_images"> </string> <string name="rearrange_text"> </string> <string name="images_rearranged"> </string> <string name="snackbar_undoAction"> </string> <string name="pdf_does_not_exist_message">PDF .</string> <string name="image_rearranging_options"> </string> <!-- Image compression--> <string name="compress_image"> : %1$s %%</string> <string name="quality_image"> %% :</string> <string name="invalid_entry"> </string> <string name="compress_dialog_enter_prompt"> </string> <string name="compress_dialog_percentage">%</string> <string name="set_as_default"> </string> <!-- Image to PDf -Add margins--> <string name="add_margins"> </string> <string name="top"></string> <string name="bottom"></string> <string name="right"></string> <string name="left"></string> <!-- Add Image Border --> <string name="border"> </string> <string name="border_dialog_title"> : %d</string> <string name="border_width_prompt"> </string> <!-- Set Image Scale type --> <string name="image_scale_type"> </string> <string name="stretch_image"> </string> <string name="maintain_aspect_ratio"> </string> <!-- QR & Barcode Scan --> <string name="scan_qrcode">QR </string> <string name="scan_barcode"> </string> <string name="qrbarcodes_to_pdf">QR PDF </string> <string name="scan_cancelled"> </string> <!-- Snackbar strings --> <string name="snackbar_no_images"> </string> <string name="snackbar_no_pdfs_selected"> PDF </string> <string name="snackbar_name_not_blank"> </string> <string name="snackbar_permissions_given"> !</string> <string name="snackbar_insufficient_permissions"> !</string> <string name="no_permissions"> </string> <string name="prompt_give_permission"> </string> <string name="snackbar_images_added"> </string> <string name="snackbar_file_renamed"> </string> <string name="snackbar_file_not_renamed"> </string> <string name="snackbar_file_deleted"> </string> <string name="snackbar_file_not_deleted"> </string> <string name="snackbar_folder_not_created"> </string> <string name="pdf_merged">PDF </string> <string name="error_path_not_found">, </string> <string name="creating_pdf">PDF </string> <string name="creating_txt"> </string> <string name="enter_file_name"> </string> <string name="example"> : </string> <string name="snackbar_no_pdf_app">PDF </string> <string name="open_file"> </string> <string name="set_password"> </string> <string name="enter_password"> </string> <string name="snackbar_password_cannot_be_blank"> </string> <string name="cannot_add_password"> PDF PDF </string> <string name="snackbar_imagecropped"> </string> <string name="cropImage_activityTitle"> </string> <string name="snackbar_pdfCreated">PDF !</string> <string name="error_uri_not_found">, </string> <string name="snack_bar_empty_txt_in_pdf"> PDF- !</string> <string name="snackbar_txtExtracted"> !</string> <string name="snackbar_pdfselected">PDF !</string> <string name="snackbar_viewAction"></string> <string name="more_options_text"> </string> <string name="snackbar_no_duplicate_pdf"> PDF </string> <string name="snackbar_duplicate_removed"> PDF </string> <string name="snackbar_invert_unsuccessful">PDF </string> <string name="snackbar_invert_successfull"> </string> <string name="snackbar_color_too_close"> </string> <!-- Excel to PDF --> <string name="excel_selected">Excel </string> <string name="excel_to_pdf">Excel PDF</string> <string name="excel_tv_view_text">Excel : </string> <string name="select_excel_file">Excel </string> <!-- Share strings --> <string name="share_chooser"> ...</string> <!-- Rate us strings --> <string name="rate_us_text">! Play Store PDF : path_to_url . :)</string> <string name="snackbar_no_share_app"> </string> <!-- Select Images string --> <string name="images_selected">%1$d </string> <!-- Feedback Strings --> <string name="feedback_subject">Images To PDF Converter </string> <string name="feedback_text"> , ! :)</string> <string name="snackbar_no_email_clients"> </string> <string name="feedback_chooser"> ...</string> <string name="no_pdf"> PDF </string> <string name="get_started"> </string> <string name="view_files_text"> !</string> <string name="empty_image_description"> PDF </string> <!-- Add Password --> <string name="enter_password_custom"> </string> <string name="example_pass_123">pass@123</string> <string name="remove_dialog">...</string> <string name="password_remove"> </string> <!-- Merge PDF --> <string name="merge_pdf">PDF </string> <string name="merge_file_select"> </string> <string name="File_hint_two" tools:keep="@string/File_hint_two"> PDF </string> <string name="merge_files"> </string> <string name="file_date_text"> </string> <string name="file_size_text"> </string> <string name="encrypted_file">_.pdf</string> <string name="i_have_attached_pdfs_to_this_message"> () </string> <string name="nextimage_contentdesc"> </string> <string name="decrypted_file">_-.pdf</string> <string name="decrypt_message"> </string> <string name="snackbar_txtselected"> !</string> <string name="decrypt_protected_file"> PDF ...</string> <string name="not_encrypted">PDF </string> <string name="save_current"> </string> <string name="save"> </string> <string name="choose_color_text"> :</string> <string name="save_first"> </string> <string name="Filter_name"></string> <string name="Filter_image_preview"> </string> <string name="warning"></string> <string name="overwrite_message"> ?</string> <!-- Text To PDF - Set Page Size --> <string name="set_page_size_text"> </string> <string name="b0_to_b10">B0 B10</string> <string name="a0_to_a10">A0 A10</string> <string name="tabloid" translatable="false"></string> <string name="executive" translatable="false"></string> <string name="ledger" translatable="false"></string> <string name="letter" translatable="false"></string> <string name="legal" translatable="false"></string> <string name="a4" translatable="false">A4</string> <string name="fit_size" translatable="false"> </string> <string name="default_page_size"> ( %s )</string> <string name="master_password_changed"> , </string> <!-- View File options --> <string name="delete_alert_selected"> ?</string> <string name="sort_by_title"> </string> <string name="delete"> </string> <string name="sort"> </string> <!-- Directory Strings --> <string name="directory"></string> <string name="moving_files"> </string> <string name="success_move"> </string> <string name="dir_does_not_exists"> </string> <string name="move_files_delete_dir"> </string> <string name="directory_deleted"> </string> <string name="success_delete_directory"> </string> <string name="moved_files"> </string> <string name="dialog_new_dir"> </string> <string name="dialog_dir"> </string> <string name="cancel"> </string> <string name="ok"> </string> <string name="yes"></string> <string name="select_all"> </string> <string name="converting_file_message"> </string> <string name="select_text_file"> </string> <string name="install_file_manager"> </string> <!-- Text to PDF --> <string name="text_to_pdf"> </string> <string name="text_file_selected"> </string> <string name="select_file"> </string> <string name="text_type" translatable="false">text/plain</string> <string name="new_directory"> </string> <string name="previous_image_content_desc"> </string> <string name="text_file_name">" : "</string> <string name="extension_not_supported">: </string> <string name="font_color"> </string> <string name="edit_font_size"> ( : %d)</string> <string name="enter_font_size"> </string> <string name="example_font"> : 10</string> <string name="font_size_changed"> </string> <string name="font_size"> : %1$s</string> <!-- About US & App Description & Contact US --> <string name="about_us"> </string> <string name="rate_us"> </string> <string name="app_description"> - Android </string> <string name="version"> : </string> <string name="developer"> : </string> <string name="github_repo"> </string> <string name="view_contributors"> </string> <string name="privacy_policy"> </string> <string name="mail"> </string> <string name="join_slack"> </string> <string name="website"> </string> <string name="license"></string> <string name="playstore">Playstore- </string> <!-- Preview strings --> <string name="swipe_to_view_next"> </string> <string name="showing_image">%1$d %2$d </string> <!-- Filter strings --> <string name="filter_brush"></string> <string name="filter_none"> </string> <string name="filter_autofix"> </string> <string name="filter_grayscale"></string> <string name="filter_brightness"></string> <string name="filter_contrast"> </string> <string name="filter_cross"> </string> <string name="filter_documentary"></string> <string name="filter_duetone"></string> <string name="filter_filllight"> </string> <string name="filter_filpver"> </string> <string name="filter_fliphor"> </string> <string name="filter_grain"></string> <string name="filter_lomish"></string> <string name="filter_negative"></string> <string name="filter_poster"></string> <string name="filter_rotate"> </string> <string name="filter_saturate"></string> <string name="filter_sepia"> </string> <string name="filter_sharpen"></string> <string name="filter_temp"></string> <string name="filter_tint"></string> <string name="filter_vig"> </string> <string name="filter_saved"> </string> <string name="created"> </string> <string name="printed"> </string> <string name="renamed"> </string> <string name="deleted"> </string> <string name="rotated"> </string> <string name="encrypted"> </string> <string name="decrypted"> </string> <string name="history"></string> <string name="no_history_message"> </string> <string name="view_history_here_message"> </string> <string name="delete_history_message"> ?</string> <!-- Extract Images --> <string name="extract_images"> </string> <string name="extract_images_failed"> </string> <string name="extract_images_success"> %1$d PDF </string> <!-- Extract Text --> <string name="extract_text"> </string> <string name="pdf_selected"> : </string> <string name="file_info" translatable="false">\n : %1$s \n\n : %2$s \n\n : %3$s \n\n %4$s</string> <!-- Text To PDF FontFamily --> <string name="default_font_family_text"> ( : %s)</string> <string name="font_family_text">" : "</string> <string name="courier" translatable="false"></string> <string name="helvetica" translatable="false"></string> <string name="times_roman" translatable="false"> </string> <string name="symbol" translatable="false"></string> <string name="zapfdingbats" translatable="false"> </string> <string name="undefined"></string> <string name="selected_image"> </string> <string name="reset"></string> <string name="rotate"></string> <string name="done"></string> <string name="image_successfully_cropped"> </string> <string name="confirm_exit_message"> </string> <string name="filter_not_saved"> </string> <string name="remove_image_message"> ?</string> <string name="dont_show_again"> </string> <string name="remove_page_message"> ?</string> <!-- Watermark Strings --> <string name="encrypted_file_text"> </string> <!-- Split PDF --> <string name="split_pdf"> </string> <string name="split_success"> %1$d </string> <string name="split_info"> : 1&#8211;5, 6&#8211;7, 8, 9</string> <string name="error_page_number"> </string> <string name="error_page_range"> </string> <string name="error_invalid_input"> </string> <string name="split_one_page_pdf_alert"> 1 !</string> <!-- Remove Pages --> <string name="remove_pages"> </string> <string name="remove_pages_error"> </string> <string name="encrypted_pdf"> </string> <string name="file_access_error"> </string> <string name="file_order"> </string> <!-- Reorder Pages --> <!-- Compress PDF --> <!-- Compress PDF --> <string name="compress_pdf"> </string> <string name="compress_pdf_prompt"> % : </string> <string name="compress_info">! : \n : %s \n : %s</string> <!-- PDF to Images string resources--> <string name="pdf_to_images">PDF </string> <string name="create_images"> </string> <string name="select_pdf_file"> </string> <string name="share_images"> </string> <string name="view_images"> </string> <string name="view_in_gallery"> </string> <!-- Remove Duplicate Pages --> <string name="remove_duplicate_pages"> </string> <string name="remove_duplicate_info"> </string> <string name="remove_duplicate"> </string> <!-- Invert Pdf --> <string name="invert_pdf"> </string> <string name="invert_pdf_info"> </string> <string name="invert_pdf_title"> </string> <!-- Rate us strings --> <string name="rate_positive"> </string> <string name="rate_negative">, </string> <string name="rate_title"> !</string> <string name="rate_dialog_text"> , 1 ! :)</string> <string name="rate_us_never"> </string> <string name="error_occurred"> </string> <!--Rotate Pages --> <string name="rotate_pages"> </string> <string name="enter_rotation_angle"> </string> <string name="rotated_file_name" translatable="false">%s__%s%s</string> <string name="degree_90" translatable="false">90 &#xb0;</string> <string name="degree_180" translatable="false">180 &#xb0;</string> <string name="degree_270" translatable="false">270 &#xb0;</string> <string name="share_files"> </string> <string name="pdf_removed_from_list"> </string> <string name="pdf_added_to_list"> </string> <string name="select_files"> </string> <!-- Settings page --> <string name="settings"></string> <string name="compression_image_edit"> </string> <string name="font_family_edit"> </string> <string name="font_size_edit"> </string> <string name="theme_edit"> </string> <string name="image_compression_value_default"> : %d %%</string> <string name="theme_value_def"> : %s </string> <string name="page_size_value_def"> : %s </string> <string name="font_size_value_def"> : %d </string> <string name="font_family_value_def"> : %s </string> <string name="settings_info"> </string> <string name="storage_location_modified"> </string> <string name="storage_location_info"> ( )</string> <string name="theme_white"></string> <string name="theme_dark"></string> <string name="theme_black"></string> <string name="theme_system" tools:ignore="MissingTranslation"></string> <string name="change_master_pwd"> </string> <string name="current_master_pwd"> \"%1$s\" :</string> <!-- Home page --> <string name="home_page"></string> <string name="create_new_pdfs"> </string> <string name="view_pdfs"> </string> <string name="view_pdf"> </string> <string name="modify_existing_pdfs"> </string> <string name="more_options"> </string> <string name="add_password"> </string> <string name="add_text"> </string> <string name="reorder_pages"> </string> <string name="remove_password"> </string> <string name="enhance_created_pdfs"> </string> <string name="viewfiles_rotatepages">1. \n2. \n3. \n4. </string> <string name="viewfiles_addpassword">1. \n2. \n3. </string> <string name="viewfiles_removepassword">1. \n2. \n3. </string> <string name="grayscale_images"> </string> <!-- Welcome screens--> <string name="welcome_create_pdf_message"> </string> <string name="welcome_create_pdf_info"> !</string> <string name="welcome_themes_title"> </string> <string name="welcome_themes_message"> : , , </string> <string name="welcome_merge_title"> </string> <string name="welcome_text_to_pdf"> </string> <string name="welcome_text_to_pdf_message"> </string> <string name="welcome_qrcode_to_pdf"> </string> <string name="welcome_qrcode_to_pdf_message"> </string> <string name="welcome_remove_pages"> </string> <string name="welcome_remove_pages_message"> </string> <string name="welcome_reorder_pages"> </string> <string name="welcome_reorder_pages_message"> </string> <string name="welcome_extract_images"> </string> <string name="welcome_extract_images_message"> </string> <string name="welcome_merge_message"> </string> <string name="welcome_viewfiles_title"> </string> <string name="welcome_viewfiles_message"> , , , </string> <string name="welcome_excel_message" translatable="false"> </string> <string name="skip_text"> </string> <string name="get_started_title"> !</string> <!-- Whats New Dialog --> <string name="whatsnew_continue"> </string> <string name="whatsnew_title"> </string> <!--watermark strings --> <string name="watermark_added"> </string> <string name="watermarked"> </string> <string name="watermarked_file">_.pdf</string> <string name="watermark_remove"> </string> <string name="snackbar_watermark_cannot_be_blank"> </string> <string name="cannot_add_watermark"> </string> <string name="add_watermark"> </string> <string name="enter_watermark_text"> </string> <string name="enter_watermark_angle"> </string> <string name="watermark_angle"></string> <string name="choose_watermark_color"> </string> <string name="enter_watermark_font_size"> </string> <string name="choose_watermark_font_family"> </string> <string name="watermark_font_size"> </string> <string name="choose_watermark_style"> </string> <string name="viewfiles_addwatermark">1. \n2. \n3. OK \n4. </string> <!--<nav add images>--> <string name="add_images"> </string> <string name="selected_images_text"> , </string> <string name="no_images_selected"> </string> <string name="title_filter_history_dialog"> </string> <!--zip to pdf--> <string name="zip_to_pdf">ZIP PDF</string> <string name="convert_to_pdf">PDF </string> <string name="error_no_image_in_zip">ZIP </string> <string name="error_open_file"> </string> <!--text to pdf--> <string name="error_pdf_not_created">: , </string> <!--favourite fragment--> <string name="favourites"></string> <string name="add_to_favourite"> </string> <string name="favourites_text"> + !</string> <string name="no_excel_file"> </string> <string name="split_range_alert"> !</string> <!--file name suffix--> <string name="pdf_suffix" translatable="false">_pdf</string> <string name="reordering_pages_dialog"> ...</string> <string name="delete_alert_singular"> ?</string> <string name="snackbar_files_deleted"> </string> <string name="lbl_recently_used"> </string> <!-- FAQs --> <string name="faqSearch">FAQ </string> <string-array name="faq_question_answers"> <item> ?##### jpeg, jpg, tiff, gif, psd, bmp, eps, png, </item> <item> ?##### PDF , \n1) <strong> </strong> \n2) <strong> </strong> \n3) , <strong> </strong> \n4) , </item> <item> ?#####, </item> <item> ?#####, , <strong>10MB- </strong> 10 </item> <item> ?#####, </item> <item> PDF ?#####, </item> <item> ?##### PDFfiles \n <strong></strong> </item> <item> ?##### , \n1) <strong> </strong> ( ) \n2) <strong></strong> \n3) , <strong> </strong> \n4) <strong> </strong> \n , </item> <item> / ?##### / , \n1) <strong> </strong> \n2) \n3) , <strong> </strong> ( ) - <strong></strong> \n4) </item> <item> ?#####, </item> <item> PDF ?#####, , <strong> </strong> </item> <item> ?#####, , \n1) <strong> </strong> \n2) <strong> </strong> \n3) , <strong> </strong> </item> <item> ?##### <strong>.png</strong> </item> <item> / ?##### </item> <item> / ?##### / , <strong></strong> </item> <item> ?##### , \n1) <strong> </strong> \n2) <strong> </strong> \n3) , <strong> </strong> </item> <item> ?#####, , \n1) <strong> </strong> \n2) <strong> </strong> \n3) , <strong> </strong> <strong> </strong> \n4) \n5) , <strong> </strong> </item> <item> ?##### <strong> </strong> <strong> </strong> </item> <item> ?#####, , \n1) <strong> </strong> \n2) <strong> </strong> \n3) <strong> </strong> \n4) \n5) , </item> <item> ?##### , \n1) \n2) \n3) , </item> <item> PDF , PPT, PPTX, ODT, DOC, DOCX ?#####, </item> <item>PDF CONVERTER: ?##### Google PlayStore F-Droid </item> <item> ?#####, <strong>Swati4star/Images-to-PDF</strong> GitHub- ( ) , , <strong> </strong> </item> <item> , FAQs ?##### , <strong>swati4star@gmail.com</strong></item> </string-array> </resources> ```
/content/code_sandbox/app/src/main/res/values-bn/strings.xml
xml
2016-02-22T10:00:46
2024-08-16T15:37:50
Images-to-PDF
Swati4star/Images-to-PDF
1,174
7,246
```xml export * from 'rxjs-compat/observable/dom/WebSocketSubject'; ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/observable/dom/WebSocketSubject.d.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
15
```xml /* eslint global-require: 0 */ import { convertToPNG, getIcon, Context } from './linux-theme-utils'; import path from 'path'; import fs from 'fs'; import os from 'os'; const platform = process.platform; const DEFAULT_ICON = path.resolve( AppEnv.getLoadSettings().resourcePath, 'static', 'images', 'mailspring.png' ); type INotificationCallback = ( args: { response: string | null; activationType: 'replied' | 'clicked' } ) => any; type INotificationOptions = { title?: string; subtitle?: string; body?: string; tag?: string; canReply?: boolean; onActivate?: INotificationCallback; }; class NativeNotifications { _macNotificationsByTag = {}; private resolvedIcon: string = null; constructor() { this.resolvedIcon = this.getIcon(); } doNotDisturb() { if (platform === 'win32' && require('windows-quiet-hours').getIsQuietHours()) { return true; } if (platform === 'darwin' && require('macos-notification-state').getDoNotDisturb()) { return true; } return false; } /** * Check if the desktop file exists and parse the desktop file for the icon. * * @param {string} filePath to the desktop file * @returns {string} icon from the desktop file * @private */ private readIconFromDesktopFile(filePath) { if (fs.existsSync(filePath)) { const ini = require('ini'); const content = ini.parse(fs.readFileSync(filePath, 'utf-8')); return content['Desktop Entry']['Icon']; } return null; } /** * Get notification icon. Only works on linux, otherwise the Mailspring default icon wil be read * from resources. * * Reading the icon name from the desktop file of Mailspring. If the icon is a name, reads the * icon theme directory for this icon. As the notification only works with PNG files, SVG files * must be converted to PNG * * @returns {string} path to the icon * @private */ private getIcon() { if (platform === 'linux') { const desktopBaseDirs = [ os.homedir() + '/.local/share/applications/', '/usr/share/applications/', ]; const desktopFileNames = ['mailspring.desktop', 'Mailspring.desktop']; // check the applications directories, the user directory has a higher priority for (const baseDir of desktopBaseDirs) { // check multiple spellings for (const fileName of desktopFileNames) { const filePath = path.join(baseDir, fileName); const desktopIcon = this.readIconFromDesktopFile(filePath); if (desktopIcon != null) { if (fs.existsSync(desktopIcon)) { // icon is a file and can be returned return desktopIcon; } // icon is a name and we need to get it from the icon theme const iconPath = getIcon(desktopIcon, 64, Context.APPLICATIONS, 2); if (iconPath != null) { // only .png icons work with notifications if (path.extname(iconPath) === '.png') { return iconPath; } const converted = convertToPNG(desktopIcon, iconPath); if (converted != null) { return converted; } } } } } } return DEFAULT_ICON; } displayNotification({ title, subtitle, body, tag, canReply, onActivate = args => { }, }: INotificationOptions = {}) { let notif = null; if (this.doNotDisturb()) { return null; } notif = new Notification(title, { silent: true, body: subtitle, tag: tag, icon: this.resolvedIcon, }); notif.onclick = onActivate; return notif; } } export default new NativeNotifications(); ```
/content/code_sandbox/app/src/native-notifications.ts
xml
2016-10-13T06:45:50
2024-08-16T18:14:37
Mailspring
Foundry376/Mailspring
15,331
892
```xml <?xml version="1.0" encoding="utf-8"?> <clickhouse> <storage_configuration> <disks> <s3_disk> <type>s3</type> <endpoint>path_to_url <access_key_id>minio</access_key_id> <secret_access_key>minio123</secret_access_key> </s3_disk> </disks> <policies> <s3> <volumes> <main> <disk>s3_disk</disk> </main> </volumes> </s3> </policies> </storage_configuration> </clickhouse> ```
/content/code_sandbox/tests/integration/test_s3_low_cardinality_right_border/configs/s3.xml
xml
2016-06-02T08:28:18
2024-08-16T18:39:33
ClickHouse
ClickHouse/ClickHouse
36,234
146
```xml import ArrayBufferSlice from "../ArrayBufferSlice.js"; import { Version, Bone } from "./cmb.js"; import { assert, readString, align, assertExists, mod } from "../util.js"; import AnimationController from "../AnimationController.js"; import { mat4 } from "gl-matrix"; import { getPointHermite } from "../Spline.js"; import { computeModelMatrixSRT, lerpAngle, lerp, MathConstants } from "../MathHelpers.js"; // CSAB (CTR Skeletal Animation Binary) const enum AnimationTrackType { CONSTANT = 0x00, LINEAR = 0x01, HERMITE = 0x02, }; interface AnimationKeyframeLinear { time: number; value: number; } export interface AnimationKeyframeHermite { time: number; value: number; tangentIn: number; tangentOut: number; } interface AnimationTrackLinear { type: AnimationTrackType.LINEAR; frames: AnimationKeyframeLinear[]; } interface AnimationTrackHermite { type: AnimationTrackType.HERMITE; timeStart: number; timeEnd: number; frames: AnimationKeyframeHermite[]; } type AnimationTrack = AnimationTrackLinear | AnimationTrackHermite; const enum LoopMode { ONCE, REPEAT, } interface AnimationNode { boneIndex: number; scaleX: AnimationTrack | null; rotationX: AnimationTrack | null; translationX: AnimationTrack | null; scaleY: AnimationTrack | null; rotationY: AnimationTrack | null; translationY: AnimationTrack | null; scaleZ: AnimationTrack | null; rotationZ: AnimationTrack | null; translationZ: AnimationTrack | null; } interface AnimationBase { duration: number; loopMode: LoopMode; } export interface CSAB extends AnimationBase { duration: number; loopMode: LoopMode; animationNodes: AnimationNode[]; boneToAnimationTable: Int16Array; } function parseTrackOcarina(version: Version, isRotationInt16: boolean, buffer: ArrayBufferSlice): AnimationTrack { const view = buffer.createDataView(); const type = view.getUint32(0x00, true); const numKeyframes = view.getUint32(0x04, true); const timeStart = view.getUint32(0x08, true); const timeEnd = view.getUint32(0x0C, true) + 1; let keyframeTableIdx: number = 0x10; if (type === AnimationTrackType.LINEAR) { const frames: AnimationKeyframeLinear[] = []; for (let i = 0; i < numKeyframes; i++) { const time = view.getUint32(keyframeTableIdx + 0x00, true); const value = view.getFloat32(keyframeTableIdx + 0x04, true); keyframeTableIdx += 0x08; frames.push({ time, value }); } return { type, frames }; } else if (type === AnimationTrackType.HERMITE) { const frames: AnimationKeyframeHermite[] = []; if(isRotationInt16) { //TODO(M-1) Figure out int16 rotations for (let i = 0; i < numKeyframes; i++) { const time = view.getUint16(keyframeTableIdx + 0x00, true); const value = (view.getInt16(keyframeTableIdx + 0x02, true)); const tangentIn = (view.getInt16(keyframeTableIdx + 0x04, true)); const tangentOut = (view.getInt16(keyframeTableIdx + 0x6, true)); keyframeTableIdx += 0x8; frames.push({ time, value, tangentIn, tangentOut }); } } else { for (let i = 0; i < numKeyframes; i++) { const time = view.getUint32(keyframeTableIdx + 0x00, true); const value = view.getFloat32(keyframeTableIdx + 0x04, true); const tangentIn = view.getFloat32(keyframeTableIdx + 0x08, true); const tangentOut = view.getFloat32(keyframeTableIdx + 0x0C, true); keyframeTableIdx += 0x10; frames.push({ time, value, tangentIn, tangentOut }); } } return { type, timeStart, timeEnd, frames }; } else { throw "whoops"; } } function parseTrackMajora(version: Version, buffer: ArrayBufferSlice): AnimationTrack { const view = buffer.createDataView(); let type = view.getUint8(0x00); const isBaked = !!view.getUint8(0x01); const numKeyframes = view.getUint16(0x02, true); if (isBaked || type === AnimationTrackType.LINEAR) { const frames: AnimationKeyframeLinear[] = []; const scale = view.getFloat32(0x04, true); const bias = view.getFloat32(0x08, true); if(isBaked) type = AnimationTrackType.LINEAR; //TODO(M-1): data\tbdanim_field.gar\cc_wait_bored.csab Scale results as -1.0? let keyframeTableIdx: number = 0x0C; for (let i = 0; i < numKeyframes; i++) { const time = i; const value = view.getUint16(keyframeTableIdx + 0x00, true) * scale - bias; keyframeTableIdx += 0x02; frames.push({ time, value }); } return { type, frames }; } else if(type === AnimationTrackType.HERMITE){ const frames: AnimationKeyframeHermite[] = []; const timeStart = view.getInt16(0x04, true); const timeEnd = view.getInt16(0x06, true); const scale = view.getFloat32(0x08, true); const bias = view.getFloat32(0x0C, true); let keyframeTableIdx: number = 0x10; for (let i = 0; i < numKeyframes; i++) { const time = view.getUint32(keyframeTableIdx + 0x00, true); const value = view.getFloat32(keyframeTableIdx + 0x04, true); const tangentIn = view.getFloat32(keyframeTableIdx + 0x08, true); const tangentOut = view.getFloat32(keyframeTableIdx + 0x0C, true); keyframeTableIdx += 0x10; frames.push({ time, value, tangentIn, tangentOut }); } return { type, timeStart, timeEnd, frames }; } else { throw "whoops"; } } function parseTrack(version: Version, isRotationInt16: boolean, buffer: ArrayBufferSlice): AnimationTrack { if (version === Version.Ocarina) return parseTrackOcarina(version, isRotationInt16, buffer); else if (version === Version.Majora || version === Version.LuigisMansion) return parseTrackMajora(version, buffer); else throw "xxx"; } // "Animation Node"? function parseAnod(version: Version, buffer: ArrayBufferSlice): AnimationNode { const view = buffer.createDataView(); assert(readString(buffer, 0x00, 0x04, false) === 'anod'); const boneIndex = view.getUint16(0x04, true); const isRotationInt16 = !!view.getUint16(0x06, true); const translationXOffs = view.getUint16(0x08, true); const translationYOffs = view.getUint16(0x0A, true); const translationZOffs = view.getUint16(0x0C, true); const rotationXOffs = view.getUint16(0x0E, true); const rotationYOffs = view.getUint16(0x10, true); const rotationZOffs = view.getUint16(0x12, true); const scaleXOffs = view.getUint16(0x14, true); const scaleYOffs = view.getUint16(0x16, true); const scaleZOffs = view.getUint16(0x18, true); assert(view.getUint16(0x1A, true) === 0x00); const translationX = translationXOffs !== 0 ? parseTrack(version, false, buffer.slice(translationXOffs)) : null; const translationY = translationYOffs !== 0 ? parseTrack(version, false, buffer.slice(translationYOffs)) : null; const translationZ = translationZOffs !== 0 ? parseTrack(version, false, buffer.slice(translationZOffs)) : null; const rotationX = rotationXOffs !== 0 ? parseTrack(version, isRotationInt16, buffer.slice(rotationXOffs)) : null; const rotationY = rotationYOffs !== 0 ? parseTrack(version, isRotationInt16, buffer.slice(rotationYOffs)) : null; const rotationZ = rotationZOffs !== 0 ? parseTrack(version, isRotationInt16, buffer.slice(rotationZOffs)) : null; const scaleX = scaleXOffs !== 0 ? parseTrack(version, false, buffer.slice(scaleXOffs)) : null; const scaleY = scaleYOffs !== 0 ? parseTrack(version, false, buffer.slice(scaleYOffs)) : null; const scaleZ = scaleZOffs !== 0 ? parseTrack(version, false, buffer.slice(scaleZOffs)) : null; return { boneIndex, translationX, translationY, translationZ, rotationX, rotationY, rotationZ, scaleX, scaleY, scaleZ }; } function parseOcarina(version: Version, buffer: ArrayBufferSlice): CSAB { const view = buffer.createDataView(); assert(readString(buffer, 0x00, 0x04, false) === 'csab'); const size = view.getUint32(0x04, true); const subversion = view.getUint32(0x08, true); assert(subversion === 0x03); assert(view.getUint32(0x0C, true) === 0x00); assert(view.getUint32(0x10, true) === 0x01); // num animations? assert(view.getUint32(0x14, true) === 0x18); // location? assert(view.getUint32(0x18, true) === 0x00); assert(view.getUint32(0x1C, true) === 0x00); assert(view.getUint32(0x20, true) === 0x00); assert(view.getUint32(0x24, true) === 0x00); const duration = view.getUint32(0x28, true) + 1; // loop mode? // assert(view.getUint32(0x2C, true) === 0x00); const loopMode = LoopMode.REPEAT; const anodCount = view.getUint32(0x30, true); const boneCount = view.getUint32(0x34, true); assert(anodCount <= boneCount); // This appears to be an inverse of the bone index in each array, probably for fast binding? const boneToAnimationTable = new Int16Array(boneCount); let boneTableIdx = 0x38; for (let i = 0; i < boneCount; i++) { boneToAnimationTable[i] = view.getInt16(boneTableIdx + 0x00, true); boneTableIdx += 0x02; } // TODO(jstpierre): This doesn't seem like a Grezzo thing to do. let anodTableIdx = align(boneTableIdx, 0x04); const animationNodes: AnimationNode[] = []; for (let i = 0; i < anodCount; i++) { const offs = view.getUint32(anodTableIdx + 0x00, true); animationNodes.push(parseAnod(version, buffer.slice(0x18 + offs))); anodTableIdx += 0x04; } return { duration, loopMode, boneToAnimationTable, animationNodes }; } function parseMajora(version: Version, buffer: ArrayBufferSlice): CSAB { const view = buffer.createDataView(); assert(readString(buffer, 0x00, 0x04, false) === 'csab'); const size = view.getUint32(0x04, true); const subversion = view.getUint32(0x08, true); assert(subversion === 0x05); assert(view.getUint32(0x0C, true) === 0x00); //assert(view.getUint32(0x10, true) === 0x42200000); //assert(view.getUint32(0x14, true) === 0x42200000); //assert(view.getUint32(0x18, true) === 0x42200000); assert(view.getUint32(0x1C, true) === 0x01); // num animations? assert(view.getUint32(0x20, true) === 0x24); // location? assert(view.getUint32(0x24, true) === 0x00); assert(view.getUint32(0x28, true) === 0x00); assert(view.getUint32(0x2C, true) === 0x00); assert(view.getUint32(0x30, true) === 0x00); const duration = view.getUint32(0x34, true) + 1; // loop mode? // assert(view.getUint32(0x38, true) === 0x00); const loopMode = LoopMode.REPEAT; const anodCount = view.getUint32(0x3C, true); const boneCount = view.getUint32(0x40, true); assert(anodCount <= boneCount); // This appears to be an inverse of the bone index in each array, probably for fast binding? const boneToAnimationTable = new Int16Array(boneCount); let boneTableIdx = 0x44; for (let i = 0; i < boneCount; i++) { boneToAnimationTable[i] = view.getInt16(boneTableIdx + 0x00, true); boneTableIdx += 0x02; } // TODO(jstpierre): This doesn't seem like a Grezzo thing to do. let anodTableIdx = align(boneTableIdx, 0x04); const animationNodes: AnimationNode[] = []; for (let i = 0; i < anodCount; i++) { const offs = view.getUint32(anodTableIdx + 0x00, true); animationNodes.push(parseAnod(version, buffer.slice(0x24 + offs))); anodTableIdx += 0x04; } return { duration, loopMode, boneToAnimationTable, animationNodes }; } export function parse(version: Version, buffer: ArrayBufferSlice): CSAB { if (version === Version.Ocarina) return parseOcarina(version, buffer); else if (version === Version.Majora || version === Version.LuigisMansion) return parseMajora(version, buffer); else throw "xxx"; } function getAnimFrame(anim: AnimationBase, frame: number): number { // Be careful of floating point precision. const lastFrame = anim.duration; if (anim.loopMode === LoopMode.ONCE) { if (frame > lastFrame) frame = lastFrame; return frame; } else if (anim.loopMode === LoopMode.REPEAT) { while (frame > lastFrame) frame -= lastFrame; return frame; } else { throw "whoops"; } } function sampleAnimationTrackLinear(track: AnimationTrackLinear, frame: number): number { const frames = track.frames; // Find the first frame. const idx1 = frames.findIndex((key) => (frame < key.time)); if (idx1 === 0) return frames[0].value; if (idx1 < 0) return frames[frames.length - 1].value; const idx0 = idx1 - 1; const k0 = frames[idx0]; const k1 = frames[idx1]; const t = (frame - k0.time) / (k1.time - k0.time); return lerp(k0.value, k1.value, t); } function sampleAnimationTrackLinearRotation(track: AnimationTrackLinear, frame: number): number { const frames = track.frames; // Find the first frame. const idx1 = frames.findIndex((key) => (frame < key.time)); if (idx1 === 0) return frames[0].value; if (idx1 < 0) return frames[frames.length - 1].value; const idx0 = idx1 - 1; const k0 = frames[idx0]; const k1 = frames[idx1]; const t = (frame - k0.time) / (k1.time - k0.time); return lerpAngle(k0.value, k1.value, t, MathConstants.TAU); } export function hermiteInterpolate(k0: AnimationKeyframeHermite, k1: AnimationKeyframeHermite, t: number, length: number): number { const p0 = k0.value; const p1 = k1.value; const s0 = k0.tangentOut * length; const s1 = k1.tangentIn * length; return getPointHermite(p0, p1, s0, s1, t); } function sampleAnimationTrackHermite(track: AnimationTrackHermite, frame: number) { const frames = track.frames; // Find the right-hand frame. const idx1 = frames.findIndex((key) => (frame < key.time)); let k0: AnimationKeyframeHermite; let k1: AnimationKeyframeHermite; if (idx1 <= 0) { k0 = frames[frames.length - 1]; k1 = frames[0]; } else { const idx0 = idx1 - 1; k0 = frames[idx0]; k1 = frames[idx1]; } const length = mod(k1.time - k0.time, track.timeEnd); const t = (frame - k0.time) / length; return hermiteInterpolate(k0, k1, t, length); } export function sampleAnimationTrack(track: AnimationTrack, frame: number): number { if (track.type === AnimationTrackType.LINEAR) return sampleAnimationTrackLinear(track, frame); else if (track.type === AnimationTrackType.HERMITE) return sampleAnimationTrackHermite(track, frame); else throw "whoops"; } function sampleAnimationTrackRotation(track: AnimationTrack, frame: number): number { if (track.type === AnimationTrackType.LINEAR) return sampleAnimationTrackLinearRotation(track, frame); else if (track.type === AnimationTrackType.HERMITE) return sampleAnimationTrackHermite(track, frame); else throw "whoops"; } export function calcBoneMatrix(dst: mat4, animationController: AnimationController | null, csab: CSAB | null, bone: Bone): void { let node: AnimationNode | null = null; if (csab !== null) { const animIndex = csab.boneToAnimationTable[bone.boneId]; if (animIndex >= 0) node = csab.animationNodes[animIndex]; } let scaleX = bone.scaleX; let scaleY = bone.scaleY; let scaleZ = bone.scaleZ; let rotationX = bone.rotationX; let rotationY = bone.rotationY; let rotationZ = bone.rotationZ; let translationX = bone.translationX; let translationY = bone.translationY; let translationZ = bone.translationZ; if (node !== null) { const frame = assertExists(animationController).getTimeInFrames(); const animFrame = getAnimFrame(csab!, frame); if (node.scaleX !== null) scaleX = sampleAnimationTrack(node.scaleX, animFrame); if (node.scaleY !== null) scaleY = sampleAnimationTrack(node.scaleY, animFrame); if (node.scaleZ !== null) scaleZ = sampleAnimationTrack(node.scaleZ, animFrame); if (node.rotationX !== null) rotationX = sampleAnimationTrackRotation(node.rotationX, animFrame); if (node.rotationY !== null) rotationY = sampleAnimationTrackRotation(node.rotationY, animFrame); if (node.rotationZ !== null) rotationZ = sampleAnimationTrackRotation(node.rotationZ, animFrame); if (node.translationX !== null) translationX = sampleAnimationTrack(node.translationX, animFrame); if (node.translationY !== null) translationY = sampleAnimationTrack(node.translationY, animFrame); if (node.translationZ !== null) translationZ = sampleAnimationTrack(node.translationZ, animFrame); } computeModelMatrixSRT(dst, scaleX, scaleY, scaleZ, rotationX, rotationY, rotationZ, translationX, translationY, translationZ); } ```
/content/code_sandbox/src/OcarinaOfTime3D/csab.ts
xml
2016-10-06T21:43:45
2024-08-16T17:03:52
noclip.website
magcius/noclip.website
3,206
4,729
```xml const baseStyle = (props: any) => { const { primary } = props.theme.colors; return { _focusVisible: { _web: { style: { outlineWidth: 0, boxShadow: `${primary[400]} 0px 0px 0px 2px`, }, }, }, _dark: { _focusVisible: { _web: { style: { outlineWidth: 0, boxShadow: `${primary[500]} 0px 0px 0px 2px`, }, }, }, }, }; }; export default { baseStyle, defaultProps: {}, }; ```
/content/code_sandbox/src/theme/components/pressable.ts
xml
2016-04-15T11:37:23
2024-08-14T16:16:44
NativeBase
GeekyAnts/NativeBase
20,132
145
```xml import { gql } from "@apollo/client" import { queries as teamQueries } from "common/team/graphql" const detailFields = teamQueries.detailFields const allUsers = teamQueries.allUsers const users = teamQueries.users const userFields = ` _id username email employeeId details { avatar fullName firstName lastName position } departments { title } branches { title } ` const attachmentFields = ` url name type size duration ` const listParamsDef = ` $page: Int $perPage: Int $startDate: Date $endDate: Date $userIds: [String] $branchIds: [String] $departmentIds: [String] $reportType: String $scheduleStatus: String $isCurrentUserAdmin: Boolean $searchValue: String ` const listParamsValue = ` page: $page perPage: $perPage startDate: $startDate endDate: $endDate userIds: $userIds branchIds: $branchIds departmentIds: $departmentIds reportType: $reportType scheduleStatus: $scheduleStatus isCurrentUserAdmin: $isCurrentUserAdmin searchValue: $searchValue ` const timelogsMain = gql` query timelogsMain(${listParamsDef}){ timelogsMain(${listParamsValue}){ list{ _id user { ${userFields} } timelog deviceName } totalCount } }` const timeclocksMain = gql` query timeclocksMain(${listParamsDef}) { timeclocksMain(${listParamsValue}) { list { _id shiftStart shiftEnd shiftActive user { ${userFields} } employeeUserName branchName employeeId deviceName deviceType inDevice inDeviceType outDevice outDeviceType } totalCount } } ` const timeclocksPerUser = ` query timeclocksPerUser($userId: String, $startDate: String, $endDate: String){ timeclocksPerUser(userId: $userId, startDate: $startDate, endDate: $endDate){ _id shiftStart shiftEnd shiftActive } } ` const schedulesMain = gql` query schedulesMain(${listParamsDef}) { schedulesMain(${listParamsValue}) { list { _id shifts{ _id shiftStart shiftEnd solved status scheduleConfigId lunchBreakInMins scheduleId } scheduleConfigId solved status user { ${userFields} } scheduleChecked submittedByAdmin totalBreakInMins } totalCount } } ` const checkDuplicateScheduleShifts = ` query checkDuplicateScheduleShifts(${listParamsDef}) { checkDuplicateScheduleShifts(${listParamsValue}) { list { _id shifts{ _id shiftStart shiftEnd solved status scheduleConfigId } scheduleConfigId solved status user { ${userFields} } scheduleChecked submittedByAdmin totalBreakInMins } totalCount } } ` const requestsMain = gql` query requestsMain(${listParamsDef}) { requestsMain(${listParamsValue}) { list { _id startTime endTime reason explanation solved status user { ${userFields} } attachment{ ${attachmentFields} } absenceTimeType requestDates totalHoursOfAbsence note } totalCount } } ` const branches = ` query branches($searchValue: String){ branches(searchValue: $searchValue){ _id title } } ` const timeclockReports = gql` query timeclockReports(${listParamsDef}){ timeclockReports(${listParamsValue}){ list { groupTitle groupReport{ user { ${userFields} } scheduleReport { timeclockDate timeclockStart timeclockEnd timeclockDuration deviceName deviceType inDevice inDeviceType outDevice outDeviceType scheduledStart scheduledEnd scheduledDuration lunchBreakInHrs totalMinsLate totalHoursOvertime totalHoursOvernight } branchTitles departmentTitles totalMinsLate totalAbsenceMins totalMinsWorked totalMinsScheduled totalRegularHoursWorked totalHoursWorked totalDaysWorked totalHoursOvertime totalHoursOvernight totalHoursBreakScheduled totalHoursBreakTaken totalDaysScheduled totalHoursScheduled absenceInfo { totalHoursShiftRequest totalHoursWorkedAbroad totalHoursPaidAbsence totalHoursUnpaidAbsence totalHoursSick } } groupTotalMinsLate groupTotalAbsenceMins groupTotalMinsWorked groupTotalMinsScheduled } totalCount } }` const absenceTypes = gql` query absenceTypes { absenceTypes { _id name explRequired attachRequired shiftRequest requestType requestTimeType requestHoursPerDay } } ` const payDates = ` query payDates{ payDates{ _id payDates } } ` const holidays = ` query holidays { holidays { _id holidayName startTime endTime } }` const scheduleConfigs = gql` query scheduleConfigs { scheduleConfigs { _id scheduleName lunchBreakInMins shiftStart shiftEnd configDays { _id configName configShiftStart configShiftEnd overnightShift } } } ` const deviceConfigs = ` query deviceConfigs (${listParamsDef}){ deviceConfigs(${listParamsValue}) { list { _id deviceName serialNo extractRequired } totalCount } }` const timeLogsPerUser = gql` query timeLogsPerUser($userId: String, $startDate: String, $endDate: String) { timeLogsPerUser(userId: $userId, startDate: $startDate, endDate: $endDate) { _id timelog deviceName deviceSerialNo } } ` const timeclockBranches = ` query timeclockBranches($searchValue: String){ timeclockBranches(searchValue: $searchValue){ _id title userIds } }` const timeclockDepartments = ` query timeclockDepartments($searchValue: String){ timeclockDepartments(searchValue: $searchValue){ _id title userIds } }` const scheduleConfigOrder = gql` query scheduleConfigOrder($userId: String) { scheduleConfigOrder(userId: $userId) { _id userId orderedList { order pinned scheduleConfigId label } } } ` export default { timeclockReports, branches, timeclocksMain, timeclocksPerUser, timelogsMain, timeLogsPerUser, schedulesMain, requestsMain, checkDuplicateScheduleShifts, absenceTypes, payDates, holidays, scheduleConfigs, deviceConfigs, scheduleConfigOrder, timeclockBranches, timeclockDepartments, } ```
/content/code_sandbox/exm-web/modules/timeclock/graphql/queries.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
1,760
```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. --> <project xmlns:xsi="path_to_url" xmlns="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.networknt</groupId> <artifactId>light-4j</artifactId> <version>2.1.36-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>http-string</artifactId> <packaging>jar</packaging> <description>A utility module that contains Undertow HttpString constants.</description> <dependencies> <dependency> <groupId>com.networknt</groupId> <artifactId>utility</artifactId> </dependency> <dependency> <groupId>io.undertow</groupId> <artifactId>undertow-core</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> </dependencies> </project> ```
/content/code_sandbox/http-string/pom.xml
xml
2016-09-09T22:28:14
2024-08-14T17:35:43
light-4j
networknt/light-4j
3,614
398
```xml import { Document, Schema } from 'mongoose'; import { field } from './utils'; export interface IExportHistory { total: number; status?: string; exportLink?: string; contentType: string; columnsConfig: string[]; segmentData: string[]; name?: string; percentage?: number; uploadType?: string; errorMsg?: string; } export interface IExportHistoryDocument extends IExportHistory, Document { _id: string; userId: string; date: Date; } export const exportHistorySchema = new Schema({ _id: field({ pkey: true }), contentType: field({ type: String, label: 'Content type' }), columnsConfig: field({ type: [String], label: 'Columns config' }), exportLink: field({ type: String, label: 'Content type' }), uploadType: field({ type: String, label: 'Upload Service Type' }), segmentData: field({ type: Object, label: 'Segment data' }), userId: field({ type: String, label: 'Created by' }), date: field({ type: Date, label: 'Date of export' }), status: field({ type: String, default: 'inProcess', label: 'Status' }), percentage: field({ type: Number, default: 0, label: 'Percentage' }), errorMsg: field({ type: String, label: 'Error Msgs' }), total: field({ type: Number, label: 'Total attempts' }), name: field({ type: String, label: 'Export name' }) }); ```
/content/code_sandbox/packages/workers/src/db/models/definitions/exportHistory.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
347
```xml import { OsBiometricService } from "./biometrics.service.abstraction"; export default class NoopBiometricsService implements OsBiometricService { constructor() {} async init() {} async osSupportsBiometric(): Promise<boolean> { return false; } async osBiometricsNeedsSetup(): Promise<boolean> { return false; } async osBiometricsCanAutoSetup(): Promise<boolean> { return false; } async osBiometricsSetup(): Promise<void> {} async getBiometricKey( service: string, storageKey: string, clientKeyHalfB64: string, ): Promise<string | null> { return null; } async setBiometricKey( service: string, storageKey: string, value: string, clientKeyPartB64: string | undefined, ): Promise<void> { return; } async deleteBiometricKey(service: string, key: string): Promise<void> {} async authenticateBiometric(): Promise<boolean> { throw new Error("Not supported on this platform"); } } ```
/content/code_sandbox/apps/desktop/src/platform/main/biometric/biometric.noop.main.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
233
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <string name="about_android">%1$s Android </string> <string name="about_title"></string> <string name="about_version"> %1$s</string> <string name="about_version_with_build"> %1$s #%2$s</string> <string name="account_creation_failed"></string> <string name="account_icon"></string> <string name="account_not_found"></string> <string name="action_edit"></string> <string name="action_empty_notifications"></string> <string name="action_empty_trashbin"></string> <string name="action_send_share">/</string> <string name="action_switch_grid_view"></string> <string name="action_switch_list_view"></string> <string name="actionbar_calendar_contacts_restore"></string> <string name="actionbar_mkdir"></string> <string name="actionbar_move_or_copy"></string> <string name="actionbar_open_with"></string> <string name="actionbar_search"></string> <string name="actionbar_see_details"></string> <string name="actionbar_send_file"></string> <string name="actionbar_settings"></string> <string name="actionbar_sort"></string> <string name="active_user"></string> <string name="activities_no_results_headline"></string> <string name="activities_no_results_message"></string> <string name="activity_chooser_send_file_title"></string> <string name="activity_chooser_title"></string> <string name="activity_icon"></string> <string name="add_another_public_share_link"></string> <string name="add_new_public_share"></string> <string name="add_new_secure_file_drop"></string> <string name="add_to_cloud"> %1$s </string> <string name="advanced_settings"></string> <string name="allow_resharing"></string> <string name="app_config_base_url_title"> Url</string> <string name="app_config_proxy_host_title"></string> <string name="app_config_proxy_port_title">proxy</string> <string name="app_widget_description"></string> <string name="appbar_search_in">%s</string> <string name="assistant_screen_all_task_type"></string> <string name=your_sha256_hashr"></string> <string name="assistant_screen_delete_task_alert_dialog_description"></string> <string name="assistant_screen_delete_task_alert_dialog_title"></string> <string name="assistant_screen_failed_task_text"></string> <string name="assistant_screen_loading"></string> <string name="assistant_screen_no_task_available_for_all_task_filter_text"></string> <string name="assistant_screen_no_task_available_text"> %s </string> <string name="assistant_screen_running_task_text"></string> <string name="assistant_screen_scheduled_task_status_text"></string> <string name="assistant_screen_successful_task_text"></string> <string name="assistant_screen_task_create_fail_message"></string> <string name="assistant_screen_task_create_success_message"></string> <string name="assistant_screen_task_delete_fail_message"></string> <string name="assistant_screen_task_delete_success_message"></string> <string name="assistant_screen_task_list_error_state_message"></string> <string name="assistant_screen_task_more_actions_bottom_sheet_delete_action"></string> <string name="assistant_screen_task_types_error_state_message"></string> <string name="assistant_screen_top_bar_title"></string> <string name="assistant_screen_unknown_task_status_text"></string> <string name="assistant_task_detail_screen_input_button_title"></string> <string name="assistant_task_detail_screen_output_button_title"></string> <string name="associated_account_not_found"></string> <string name="auth_access_failed">%1$s</string> <string name="auth_account_does_not_exist"></string> <string name="auth_account_not_new"></string> <string name="auth_account_not_the_same"></string> <string name="auth_bad_oc_version_title"></string> <string name="auth_connection_established"></string> <string name="auth_fail_get_user_name"></string> <string name="auth_host_url"> https://</string> <string name="auth_incorrect_address_title"></string> <string name="auth_incorrect_path_title"></string> <string name="auth_no_net_conn_title"></string> <string name="auth_nossl_plain_ok_title"></string> <string name="auth_not_configured_title"></string> <string name="auth_oauth_error"></string> <string name="auth_oauth_error_access_denied"></string> <string name="auth_redirect_non_secure_connection_title"></string> <string name="auth_secure_connection"></string> <string name="auth_ssl_general_error_title">SSL </string> <string name="auth_ssl_unverified_server_title"> SSL </string> <string name="auth_testing_connection"></string> <string name="auth_timeout_title"></string> <string name="auth_trying_to_login"></string> <string name="auth_unauthorized"></string> <string name="auth_unknown_error_exception_title">%1$s</string> <string name="auth_unknown_error_http_title"> HTTP </string> <string name="auth_unknown_error_title"></string> <string name="auth_unknown_host_title"></string> <string name="auth_unsupported_multiaccount">%1$s </string> <string name="auth_wrong_connection_title"></string> <string name="authenticator_activity_cancel_login"></string> <string name="authenticator_activity_login_error"></string> <string name="authenticator_activity_please_complete_login_process"></string> <string name="auto_upload_file_behaviour_kept_in_folder"></string> <string name="auto_upload_on_wifi"> Wi-Fi </string> <string name="auto_upload_path"></string> <string name="autoupload_configure"></string> <string name="autoupload_create_new_custom_folder"></string> <string name="autoupload_custom_folder"></string> <string name="autoupload_disable_power_save_check"></string> <string name="autoupload_hide_folder"></string> <string name="autoupload_worker_foreground_info"></string> <string name="avatar"></string> <string name="away"></string> <string name="backup_settings"></string> <string name="backup_title"></string> <string name="battery_optimization_close"></string> <string name="battery_optimization_disable"></string> <string name="battery_optimization_message"></string> <string name="battery_optimization_title"></string> <string name="brute_force_delay"></string> <string name="calendar"></string> <string name="calendars"></string> <string name="certificate_load_problem"></string> <string name="changelog_dev_version"></string> <string name="check_back_later_or_reload"></string> <string name="checkbox"></string> <string name="choose_local_folder"></string> <string name="choose_remote_folder"></string> <string name="choose_template_helper_text"></string> <string name="choose_which_file"></string> <string name="choose_widget"></string> <string name="clear_notifications_failed"></string> <string name="clear_status_message"></string> <string name="clear_status_message_after"></string> <string name="clipboard_label"> %1$s </string> <string name="clipboard_no_text_to_copy"></string> <string name="clipboard_text_copied"></string> <string name="clipboard_unexpected_error"></string> <string name="common_back"></string> <string name="common_cancel"></string> <string name="common_cancel_sync"></string> <string name="common_choose_account"></string> <string name="common_confirm"></string> <string name="common_copy"></string> <string name="common_delete"></string> <string name="common_error"></string> <string name="common_error_out_memory"></string> <string name="common_error_unknown"></string> <string name="common_loading"></string> <string name="common_next"></string> <string name="common_no"></string> <string name="common_ok"></string> <string name="common_pending"></string> <string name="common_remove"></string> <string name="common_rename"></string> <string name="common_save"></string> <string name="common_send"></string> <string name="common_share"></string> <string name="common_skip"></string> <string name="common_switch_account"></string> <string name="common_switch_to_account"></string> <string name="common_yes"></string> <string name="community_beta_headline"></string> <string name="community_beta_text"></string> <string name="community_contribute_forum_forum"></string> <string name="community_contribute_forum_text"></string> <string name="community_contribute_github_text"> %1$s</string> <string name="community_contribute_headline"></string> <string name="community_contribute_translate_text"></string> <string name="community_contribute_translate_translate"></string> <string name="community_dev_direct_download"></string> <string name="community_dev_fdroid"> F-Droid </string> <string name="community_rc_fdroid"> F-Driod </string> <string name="community_rc_play_store"> Google Play </string> <string name="community_release_candidate_headline"></string> <string name="community_release_candidate_text"> (RC) Play F-Droid </string> <string name="community_testing_bug_text"></string> <string name="community_testing_headline"></string> <string name="community_testing_report_text"> GitHub </string> <string name="configure_new_media_folder_detection_notifications"></string> <string name="confirm_removal"></string> <string name="confirmation_remove_file_alert"> %1$s </string> <string name="confirmation_remove_files_alert"></string> <string name="confirmation_remove_folder_alert"> %1$s </string> <string name="confirmation_remove_folders_alert"></string> <string name="confirmation_remove_local"></string> <string name="conflict_dialog_error"></string> <string name="conflict_file_headline"> %1$s </string> <string name="conflict_local_file"></string> <string name="conflict_message_description"></string> <string name="conflict_server_file"></string> <string name="contact_backup_title"></string> <string name="contact_no_permission"></string> <string name="contactlist_item_icon"></string> <string name="contactlist_no_permission"></string> <string name="contacts"></string> <string name="contacts_backup_button"></string> <string name="contacts_preferences_backup_scheduled"></string> <string name="contacts_preferences_import_scheduled"></string> <string name="contacts_preferences_no_file_found"></string> <string name="contacts_preferences_something_strange_happened"></string> <string name="copied_to_clipboard"></string> <string name="copy_file_error"></string> <string name="copy_file_invalid_into_descendent"></string> <string name="copy_file_invalid_overwrite"></string> <string name="copy_file_not_found">,</string> <string name="copy_link"></string> <string name="copy_move_to_encrypted_folder_not_supported"></string> <string name="could_not_download_image"></string> <string name="could_not_retrieve_shares"></string> <string name="could_not_retrieve_url"></string> <string name="create"></string> <string name="create_dir_fail_msg"></string> <string name="create_new"></string> <string name="create_new_document"></string> <string name="create_new_folder"></string> <string name="create_new_presentation"></string> <string name="create_new_spreadsheet"></string> <string name="create_rich_workspace"></string> <string name="creates_rich_workspace"></string> <string name="credentials_disabled"></string> <string name="daily_backup"></string> <string name="data_to_back_up"></string> <string name="default_credentials_wrong"></string> <string name="delete_account"></string> <string name="delete_entries"></string> <string name="delete_link"></string> <string name="deselect_all"></string> <string name="destination_filename"></string> <string name="dev_version_new_version_available"></string> <string name="dev_version_no_information_available"></string> <string name="dev_version_no_new_version_available"></string> <string name="dialog_close"></string> <string name="did_not_check_for_dupes"></string> <string name="digest_algorithm_not_available"></string> <string name="direct_login_failed"></string> <string name="direct_login_text"> %1$s %2$s</string> <string name="disable_new_media_folder_detection_notifications"></string> <string name="dismiss"></string> <string name="dismiss_notification_description"></string> <string name="displays_mnemonic"> 12 </string> <string name="dnd"></string> <string name="document_scan_export_dialog_images"></string> <string name="document_scan_export_dialog_pdf">PDF </string> <string name="document_scan_export_dialog_title"></string> <string name="document_scan_pdf_generation_failed">PDF </string> <string name="document_scan_pdf_generation_in_progress"> PDF</string> <string name="done"></string> <string name="dontClear"></string> <string name="download_cannot_create_file"></string> <string name="download_download_invalid_local_file_name"></string> <string name="download_latest_dev_version"></string> <string name="downloader_download_failed_content"> %1$s </string> <string name="downloader_download_failed_credentials_error"></string> <string name="downloader_download_failed_ticker"></string> <string name="downloader_download_file_not_found"></string> <string name="downloader_download_in_progress">%1$d%% %2$s</string> <string name="downloader_download_in_progress_content">%1$d%% %2$s</string> <string name="downloader_download_in_progress_ticker"></string> <string name="downloader_download_succeeded_content">%1$s </string> <string name="downloader_download_succeeded_ticker"></string> <string name="downloader_file_download_cancelled"></string> <string name="downloader_file_download_failed"></string> <string name="downloader_not_downloaded_yet"></string> <string name="downloader_unexpected_error"></string> <string name="drawer_close"></string> <string name="drawer_community"></string> <string name="drawer_header_background"></string> <string name="drawer_item_activities"></string> <string name="drawer_item_all_files"></string> <string name="drawer_item_assistant"></string> <string name="drawer_item_favorites"></string> <string name="drawer_item_gallery"></string> <string name="drawer_item_groupfolders"></string> <string name="drawer_item_home"></string> <string name="drawer_item_notifications"></string> <string name="drawer_item_on_device"></string> <string name="drawer_item_personal_files"></string> <string name="drawer_item_recently_modified"></string> <string name="drawer_item_shared"></string> <string name="drawer_item_trashbin"></string> <string name="drawer_item_uploads_list"></string> <string name="drawer_logout"></string> <string name="drawer_open"></string> <string name="drawer_quota"> %2$s%1$s </string> <string name="drawer_quota_unlimited">%1$s</string> <string name="drawer_synced_folders"></string> <string name="e2e_not_yet_setup"></string> <string name="e2e_offline"></string> <string name="ecosystem_apps_display_assistant"></string> <string name="ecosystem_apps_display_more"></string> <string name="ecosystem_apps_display_notes"></string> <string name="ecosystem_apps_display_talk">Talk</string> <string name="ecosystem_apps_more"> Nextcloud </string> <string name="ecosystem_apps_notes">Nextcloud </string> <string name="ecosystem_apps_talk">Nextcloud Talk</string> <string name="email_pick_failed"></string> <string name="encrypted"></string> <string name="end_to_end_encryption_confirm_button"></string> <string name="end_to_end_encryption_decrypting"></string> <string name="end_to_end_encryption_dialog_close"></string> <string name="end_to_end_encryption_enter_password"></string> <string name="end_to_end_encryption_folder_not_empty"></string> <string name="end_to_end_encryption_generating_keys"></string> <string name="end_to_end_encryption_keywords_description"> 12 </string> <string name="end_to_end_encryption_not_enabled"></string> <string name="end_to_end_encryption_passphrase_title"> 12 </string> <string name="end_to_end_encryption_password"></string> <string name="end_to_end_encryption_retrieving_keys"></string> <string name="end_to_end_encryption_storing_keys"></string> <string name="end_to_end_encryption_title"></string> <string name="end_to_end_encryption_unsuccessful"></string> <string name="end_to_end_encryption_wrong_password"></string> <string name="enter_destination_filename"></string> <string name="enter_filename"></string> <string name="error__upload__local_file_not_copied">%1$s %2$s</string> <string name="error_cant_bind_to_operations_service"></string> <string name="error_choosing_date"></string> <string name="error_comment_file"></string> <string name="error_crash_title">%1$s</string> <string name="error_creating_file_from_template"></string> <string name="error_file_actions"></string> <string name="error_file_lock"></string> <string name="error_report_issue_action"></string> <string name="error_report_issue_text"> GitHub </string> <string name="error_retrieving_file"></string> <string name="error_retrieving_templates"></string> <string name="error_showing_encryption_dialog"></string> <string name="error_starting_direct_camera_upload"></string> <string name="error_starting_doc_scan"></string> <string name="error_uploading_direct_camera_upload"></string> <string name="etm_accounts"></string> <string name="etm_background_execution_count">48</string> <string name="etm_background_job_created"></string> <string name="etm_background_job_name"></string> <string name="etm_background_job_progress"></string> <string name="etm_background_job_state"></string> <string name="etm_background_job_user"></string> <string name="etm_background_job_uuid">UUID</string> <string name="etm_background_jobs"></string> <string name="etm_background_jobs_cancel_all"></string> <string name="etm_background_jobs_prune"></string> <string name="etm_background_jobs_schedule_test_job"></string> <string name="etm_background_jobs_start_test_job"></string> <string name="etm_background_jobs_stop_test_job"></string> <string name="etm_migrations"></string> <string name="etm_preferences"></string> <string name="etm_title"></string> <string name="etm_transfer"></string> <string name="etm_transfer_enqueue_test_download"></string> <string name="etm_transfer_enqueue_test_upload"></string> <string name="etm_transfer_remote_path"></string> <string name="etm_transfer_type"></string> <string name="etm_transfer_type_download"></string> <string name="etm_transfer_type_upload"></string> <string name="fab_label"></string> <string name="failed_to_download"></string> <string name="failed_to_print"></string> <string name="failed_to_start_editor"></string> <string name="failed_update_ui"></string> <string name="favorite"></string> <string name="favorite_icon"></string> <string name="file_activity_shared_file_cannot_be_updated"></string> <string name="file_already_exists"></string> <string name="file_delete"></string> <string name="file_detail_activity_error"></string> <string name="file_details_no_content"></string> <string name="file_icon"></string> <string name="file_keep"></string> <string name="file_list_empty"></string> <string name="file_list_empty_favorite_headline"></string> <string name="file_list_empty_favorites_filter_list"></string> <string name="file_list_empty_gallery"></string> <string name="file_list_empty_headline"></string> <string name="file_list_empty_headline_search"></string> <string name="file_list_empty_headline_server_search"></string> <string name="file_list_empty_local_search"></string> <string name="file_list_empty_moving"></string> <string name="file_list_empty_on_device"></string> <string name="file_list_empty_recently_modified">7</string> <string name="file_list_empty_search"></string> <string name="file_list_empty_shared"></string> <string name="file_list_empty_shared_headline"></string> <string name="file_list_empty_unified_search_no_results"></string> <string name="file_list_folder"></string> <string name="file_list_live"></string> <string name="file_list_loading"></string> <string name="file_list_no_app_for_file_type"></string> <string name="file_list_seconds_ago"></string> <string name="file_management_permission"></string> <string name="file_management_permission_optional"></string> <string name="file_management_permission_optional_text">%1$s </string> <string name="file_management_permission_text">%1$s </string> <string name="file_migration_checking_destination"></string> <string name="file_migration_cleaning"></string> <string name="file_migration_dialog_title"></string> <string name="file_migration_directory_already_exists"></string> <string name="file_migration_failed_dir_already_exists">Nextcloud </string> <string name="file_migration_failed_not_enough_space"></string> <string name="file_migration_failed_not_readable"></string> <string name="file_migration_failed_not_writable"></string> <string name="file_migration_failed_while_coping"></string> <string name="file_migration_failed_while_updating_index"></string> <string name="file_migration_migrating"></string> <string name="file_migration_ok_finished"></string> <string name="file_migration_override_data_folder"></string> <string name="file_migration_preparing"></string> <string name="file_migration_restoring_accounts_configuration"></string> <string name="file_migration_saving_accounts_configuration"></string> <string name="file_migration_source_not_readable"> %1$s \n\n</string> <string name="file_migration_source_not_readable_title"></string> <string name="file_migration_updating_index"></string> <string name="file_migration_use_data_folder"></string> <string name="file_migration_waiting_for_unfinished_sync"></string> <string name="file_not_found"></string> <string name="file_not_synced"></string> <string name="file_rename"></string> <string name="file_upload_worker_same_file_already_exists"></string> <string name="file_version_restored_error"></string> <string name="file_version_restored_successfully"></string> <string name="filedetails_details"></string> <string name="filedetails_download"></string> <string name="filedetails_export"></string> <string name="filedetails_renamed_in_upload_msg"> %1$s </string> <string name="filedetails_sync_file"></string> <string name="filedisplay_no_file_selected"></string> <string name="filename_empty"></string> <string name="filename_forbidden_characters"> / \\ &lt; &gt; : \" | ? *</string> <string name="filename_forbidden_charaters_from_server"></string> <string name="filename_hint"></string> <string name="first_run_1_text"></string> <string name="first_run_2_text"></string> <string name="first_run_3_text"></string> <string name="first_run_4_text"></string> <string name="folder_already_exists"></string> <string name="folder_confirm_create"></string> <string name="folder_list_empty_headline"></string> <string name="folder_picker_choose_button_text"></string> <string name="folder_picker_choose_caption_text"></string> <string name="folder_picker_copy_button_text"></string> <string name="folder_picker_move_button_text"></string> <string name="forbidden_permissions"> %s </string> <string name="forbidden_permissions_copy"></string> <string name="forbidden_permissions_create"></string> <string name="forbidden_permissions_delete"></string> <string name="forbidden_permissions_move"></string> <string name="forbidden_permissions_rename"></string> <string name="foreground_service_upload"></string> <string name="foreign_files_fail"></string> <string name="foreign_files_local_text">%1$s</string> <string name="foreign_files_move"></string> <string name="foreign_files_remote_text">%1$s</string> <string name="foreign_files_success"></string> <string name="forward"></string> <string name="fourHours">4</string> <string name="gplay_restriction">Google APK/AAB </string> <string name="grid_file_features_live_photo_content_description"></string> <string name="hidden_file_name_warning"></string> <string name="hint_name"></string> <string name="hint_note"></string> <string name="hint_password"></string> <string name="host_not_available"></string> <string name="host_your_own_server"></string> <string name="icon_for_empty_list"></string> <string name="icon_of_dashboard_widget"></string> <string name="icon_of_widget_entry"></string> <string name="image_editor_file_edited_suffix"></string> <string name="image_editor_flip_horizontal"></string> <string name="image_editor_flip_vertical"></string> <string name="image_editor_rotate_ccw"></string> <string name="image_editor_rotate_cw"></string> <string name="image_editor_unable_to_edit_image"></string> <string name="image_preview_filedetails"></string> <string name="image_preview_image_taking_conditions"></string> <string name="image_preview_unit_fnumber">/%s</string> <string name="image_preview_unit_iso">ISO %s</string> <string name="image_preview_unit_megapixel">%s MP</string> <string name="image_preview_unit_millimetres">%s mm</string> <string name="image_preview_unit_seconds">%s s</string> <string name="in_folder"> %1$s</string> <string name="instant_upload_existing"></string> <string name="instant_upload_on_charging"></string> <string name="instant_upload_path">/InstantUpload</string> <string name="invalid_url"></string> <string name="invisible"></string> <string name="label_empty"></string> <string name="last_backup">%1$s</string> <string name="link"></string> <string name="link_name"></string> <string name="link_share_allow_upload_and_editing"></string> <string name="link_share_editing"></string> <string name="link_share_file_drop"></string> <string name="link_share_view_only"></string> <string name="list_layout"></string> <string name="load_more_results"></string> <string name="local_file_list_empty"></string> <string name="local_file_not_found_message"></string> <string name="local_folder_friendly_path">%1$s/%2$s</string> <string name="local_folder_list_empty"></string> <string name="locate_folder"></string> <string name="lock_expiration_info">%1$s</string> <string name="lock_file"></string> <string name="locked_by"> %1$s </string> <string name="locked_by_app"> %1$s </string> <string name="log_send_mail_subject">%1$s Android </string> <string name="log_send_no_mail_app"></string> <string name="logged_in_as"> %1$s</string> <string name="login"></string> <string name="login_url_helper_text"> %1$s </string> <string name="logs_menu_delete"></string> <string name="logs_menu_refresh"></string> <string name="logs_menu_search"></string> <string name="logs_menu_send"></string> <string name="logs_status_filtered">%1$dkB%2$d/%3$d%4$dms</string> <string name="logs_status_loading"></string> <string name="logs_status_not_filtered">%1$d kB</string> <string name="logs_title"></string> <string name="maintenance_mode"></string> <string name="manage_space_clear_data"></string> <string name="manage_space_description"> %1$s </string> <string name="manage_space_title"></string> <string name="max_file_count_warning_message"> 500 </string> <string name="media_err_invalid_progressive_playback"></string> <string name="media_err_io"></string> <string name="media_err_malformed"></string> <string name="media_err_timeout"></string> <string name="media_err_unknown"></string> <string name="media_err_unsupported"></string> <string name="media_forward_description"></string> <string name="media_notif_ticker">%1$s </string> <string name="media_play_pause_description"></string> <string name="media_rewind_description"></string> <string name="media_state_playing">%1$s</string> <string name="menu_item_sort_by_date_newest_first"></string> <string name="menu_item_sort_by_date_oldest_first"></string> <string name="menu_item_sort_by_name_a_z">A - Z</string> <string name="menu_item_sort_by_name_z_a">Z - A</string> <string name="menu_item_sort_by_size_biggest_first"></string> <string name="menu_item_sort_by_size_smallest_first"></string> <string name="more"></string> <string name="move_file_error"></string> <string name="move_file_invalid_into_descendent"></string> <string name="move_file_invalid_overwrite"></string> <string name="move_file_not_found"></string> <string name="network_error_connect_timeout_exception"></string> <string name="network_error_socket_exception"></string> <string name="network_error_socket_timeout_exception"></string> <string name="network_host_not_available"></string> <string name="new_comment"></string> <string name="new_media_folder_detected"> %1$s</string> <string name="new_media_folder_photos"></string> <string name="new_media_folder_videos"></string> <string name="new_notification"></string> <string name="new_version_was_created"></string> <string name="no_actions"></string> <string name="no_browser_available"></string> <string name="no_calendar_exists"></string> <string name="no_email_app_available"></string> <string name="no_items"></string> <string name="no_map_app_availble"></string> <string name="no_mutliple_accounts_allowed"></string> <string name="no_pdf_app_available"> PDF</string> <string name="no_send_app"></string> <string name="no_share_permission_selected"></string> <string name="note_could_not_sent"></string> <string name="note_icon_hint"></string> <string name="notification_action_failed"></string> <string name="notification_channel_download_description"></string> <string name="notification_channel_download_name_short"></string> <string name="notification_channel_file_sync_description"></string> <string name="notification_channel_file_sync_name"></string> <string name="notification_channel_general_description"></string> <string name="notification_channel_general_name"></string> <string name="notification_channel_media_description"></string> <string name="notification_channel_media_name"></string> <string name="notification_channel_push_description"></string> <string name="notification_channel_push_name"></string> <string name="notification_channel_upload_description"></string> <string name="notification_channel_upload_name_short"></string> <string name="notification_icon"></string> <string name="notifications_no_results_headline"></string> <string name="notifications_no_results_message"></string> <string name="offline_mode"></string> <string name="oneHour">1</string> <string name="online"></string> <string name="online_status"></string> <string name="outdated_server"></string> <string name="overflow_menu"></string> <string name="pass_code_configure_your_pass_code"></string> <string name="pass_code_configure_your_pass_code_explanation"></string> <string name="pass_code_enter_pass_code"></string> <string name="pass_code_mismatch"></string> <string name="pass_code_reenter_your_pass_code"></string> <string name="pass_code_remove_your_pass_code"></string> <string name="pass_code_removed"></string> <string name="pass_code_stored"></string> <string name="pass_code_wrong"></string> <string name="pdf_password_protected"> PDF PDF </string> <string name="pdf_zoom_tip"></string> <string name="permission_allow"></string> <string name="permission_deny"></string> <string name="permission_storage_access"></string> <string name="picture_set_as_no_app"></string> <string name="pin_home"></string> <string name="pin_shortcut_label"> %1$s</string> <string name="placeholder_fileSize">389 KB</string> <string name="placeholder_filename">placeholder.txt</string> <string name="placeholder_media_time">12:23:45</string> <string name="placeholder_sentence"></string> <string name="placeholder_timestamp">2012/05/18 12:23 PM</string> <string name="player_stop"></string> <string name="player_toggle"></string> <string name="power_save_check_dialog_message"></string> <string name="pref_behaviour_entries_delete_file"></string> <string name="pref_behaviour_entries_keep_file"></string> <string name="pref_behaviour_entries_move"></string> <string name="pref_instant_name_collision_policy_dialogTitle">?</string> <string name="pref_instant_name_collision_policy_entries_always_ask"></string> <string name="pref_instant_name_collision_policy_entries_cancel"></string> <string name="pref_instant_name_collision_policy_entries_overwrite"></string> <string name="pref_instant_name_collision_policy_entries_rename"></string> <string name="pref_instant_name_collision_policy_title">?</string> <string name="prefs_add_account"></string> <string name="prefs_calendar_contacts"></string> <string name="prefs_calendar_contacts_no_store_error"> F-Droid Google Play</string> <string name="prefs_calendar_contacts_summary"> DAVx5 DAVdroid v1.3.0 </string> <string name="prefs_calendar_contacts_sync_setup_successful"></string> <string name="prefs_category_about"></string> <string name="prefs_category_details"></string> <string name="prefs_category_dev"></string> <string name="prefs_category_general"></string> <string name="prefs_category_more"></string> <string name="prefs_daily_backup_summary"></string> <string name="prefs_daily_contact_backup_summary"></string> <string name="prefs_davx5_setup_error"> DAVx5 DAVdroid</string> <string name="prefs_e2e_active"></string> <string name="prefs_e2e_mnemonic"></string> <string name="prefs_e2e_no_device_credentials"></string> <string name="prefs_enable_media_scan_notifications"></string> <string name="prefs_enable_media_scan_notifications_summary"></string> <string name="prefs_gpl_v2">GNU 2 </string> <string name="prefs_help"></string> <string name="prefs_imprint"></string> <string name="prefs_instant_behaviour_dialogTitle"></string> <string name="prefs_instant_behaviour_title"></string> <string name="prefs_instant_upload_exclude_hidden_summary"></string> <string name="prefs_instant_upload_exclude_hidden_title"></string> <string name="prefs_instant_upload_path_use_date_subfolders_summary"></string> <string name="prefs_instant_upload_path_use_subfolders_title"></string> <string name="prefs_instant_upload_subfolder_rule_title"></string> <string name="prefs_keys_exist"></string> <string name="prefs_license"></string> <string name="prefs_lock"></string> <string name="prefs_lock_device_credentials_enabled"></string> <string name="prefs_lock_device_credentials_not_setup"></string> <string name="prefs_lock_none"></string> <string name="prefs_lock_title"></string> <string name="prefs_lock_using_device_credentials"></string> <string name="prefs_lock_using_passcode"></string> <string name="prefs_manage_accounts"></string> <string name="prefs_recommend"></string> <string name="prefs_remove_e2e"></string> <string name="prefs_setup_e2e"></string> <string name="prefs_show_ecosystem_apps"></string> <string name="prefs_show_ecosystem_apps_summary"> Nextcloud </string> <string name="prefs_show_hidden_files"></string> <string name="prefs_sourcecode"></string> <string name="prefs_storage_path"></string> <string name="prefs_sycned_folders_summary"></string> <string name="prefs_synced_folders_local_path_title"></string> <string name="prefs_synced_folders_remote_path_title"></string> <string name="prefs_theme_title"></string> <string name="prefs_value_theme_dark"></string> <string name="prefs_value_theme_light"></string> <string name="prefs_value_theme_system"></string> <string name="preview_image_description"></string> <string name="preview_image_downloading_image_for_edit"></string> <string name="preview_image_error_no_local_file"></string> <string name="preview_image_error_unknown_format"></string> <string name="preview_image_file_is_not_downloaded"></string> <string name="preview_image_file_is_not_exist"></string> <string name="preview_media_unhandled_http_code_message"></string> <string name="preview_sorry"></string> <string name="privacy"></string> <string name="public_share_name"></string> <string name="push_notifications_not_implemented"> Google Play </string> <string name="push_notifications_old_login"></string> <string name="push_notifications_temp_error"></string> <string name="qr_could_not_be_read"> QR Code</string> <string name=your_sha256_hashmessage"></string> <string name="receive_external_files_activity_unable_to_find_file_to_upload"></string> <string name="recommend_subject"> %1$s</string> <string name="recommend_text"> %1$s\n%2$s</string> <string name="recommend_urls">%1$s %2$s</string> <string name="refresh_content"></string> <string name="reload"></string> <string name="remote">(remote)</string> <string name="remote_file_fetch_failed"></string> <string name="remove_e2e"></string> <string name="remove_e2e_message"></string> <string name="remove_fail_msg"></string> <string name="remove_local_account"></string> <string name="remove_local_account_details"></string> <string name="remove_notification_failed"></string> <string name="remove_push_notification"></string> <string name="remove_success_msg"></string> <string name="rename_dialog_title"></string> <string name="rename_local_fail_msg"></string> <string name="rename_server_fail_msg"></string> <string name="request_account_deletion"></string> <string name="request_account_deletion_button"></string> <string name="request_account_deletion_details"></string> <string name="reshare_not_allowed"></string> <string name="resharing_is_not_allowed"></string> <string name="resized_image_not_possible_download"></string> <string name="restore"></string> <string name="restore_backup"></string> <string name="restore_button_description"></string> <string name="restore_selected"></string> <string name="retrieving_file"></string> <string name="richdocuments_failed_to_load_document"></string> <string name="scanQR_description"> QR Code </string> <string name="scan_page"></string> <string name="screenshot_01_gridView_heading"></string> <string name="screenshot_01_gridView_subline"></string> <string name="screenshot_02_listView_heading"></string> <string name="screenshot_02_listView_subline"></string> <string name="screenshot_03_drawer_heading"></string> <string name="screenshot_03_drawer_subline"></string> <string name="screenshot_04_accounts_heading"></string> <string name="screenshot_04_accounts_subline"></string> <string name="screenshot_05_autoUpload_heading"></string> <string name="screenshot_05_autoUpload_subline"></string> <string name="screenshot_06_davdroid_heading"></string> <string name="screenshot_06_davdroid_subline"> DAVx5 </string> <string name="search_error"></string> <string name="secure_share_not_set_up"></string> <string name="secure_share_search"></string> <string name="select_all"></string> <string name="select_media_folder"></string> <string name="select_one_template"></string> <string name="select_template"></string> <string name="send"></string> <string name="send_share"></string> <string name="sendbutton_description"></string> <string name="set_as"></string> <string name="set_note"></string> <string name="set_picture_as"></string> <string name="set_status"></string> <string name="set_status_message"></string> <string name="setup_e2e"> 12 </string> <string name="share"></string> <string name="share_copy_link"></string> <string name="share_dialog_title"></string> <string name="share_expiration_date_format">%1$s</string> <string name="share_expiration_date_label"> %1$s</string> <string name="share_file"> %1$s</string> <string name="share_group_clarification">%1$s </string> <string name="share_internal_link"></string> <string name="share_internal_link_to_file_text"></string> <string name="share_internal_link_to_folder_text"></string> <string name="share_known_remote_on_clarification"> %1$s</string> <string name="share_link"></string> <string name="share_link_empty_password"></string> <string name="share_link_file_error"></string> <string name="share_link_file_no_exist"></string> <string name="share_link_forbidden_permissions"></string> <string name="share_link_optional_password_title"></string> <string name="share_link_password_title"></string> <string name="share_link_with_label"> (%1$s)</string> <string name="share_no_expiration_date_label"></string> <string name="share_no_password_title"></string> <string name="share_not_allowed_when_file_drop"></string> <string name="share_password_title"></string> <string name="share_permission_can_edit"></string> <string name="share_permission_file_drop"></string> <string name="share_permission_secure_file_drop"></string> <string name="share_permission_view_only"></string> <string name="share_permissions"></string> <string name="share_remote_clarification">%1$s</string> <string name="share_room_clarification">%1$s</string> <string name="share_search"> ID </string> <string name="share_send_new_email"></string> <string name="share_send_note"></string> <string name="share_settings"></string> <string name="share_via_link_hide_download"></string> <string name="share_via_link_section_title"></string> <string name="share_via_link_send_link_label"></string> <string name="share_via_link_unset_password"></string> <string name="share_with_title"></string> <string name="shared_avatar_desc"></string> <string name="shared_icon_share"></string> <string name="shared_icon_shared"></string> <string name="shared_icon_shared_via_link"></string> <string name="shared_with_you_by">%1$s</string> <string name="sharee_add_failed"></string> <string name="sharee_already_added_to_file"></string> <string name="show_images"></string> <string name="show_video"></string> <string name="signup_with_provider"></string> <string name="single_sign_on_request_token" formatted="true"> %1$s Nextcloud %2$s</string> <string name="sort_by"></string> <string name="ssl_validator_btn_details_hide"></string> <string name="ssl_validator_btn_details_see"></string> <string name="ssl_validator_header"></string> <string name="ssl_validator_label_C"></string> <string name="ssl_validator_label_CN"></string> <string name="ssl_validator_label_L"></string> <string name="ssl_validator_label_O"></string> <string name="ssl_validator_label_OU"></string> <string name="ssl_validator_label_ST"></string> <string name="ssl_validator_label_certificate_fingerprint"></string> <string name="ssl_validator_label_issuer"></string> <string name="ssl_validator_label_signature"></string> <string name="ssl_validator_label_signature_algorithm"></string> <string name="ssl_validator_label_subject"></string> <string name="ssl_validator_label_validity"></string> <string name="ssl_validator_label_validity_from"></string> <string name="ssl_validator_label_validity_to"></string> <string name="ssl_validator_no_info_about_error">- </string> <string name="ssl_validator_not_saved"></string> <string name="ssl_validator_null_cert"></string> <string name="ssl_validator_question"></string> <string name="ssl_validator_reason_cert_expired">- </string> <string name="ssl_validator_reason_cert_not_trusted">- </string> <string name="ssl_validator_reason_cert_not_yet_valid">- </string> <string name="ssl_validator_reason_hostname_not_verified">- URL </string> <string name="status_message"></string> <string name="storage_camera"></string> <string name="storage_choose_location"></string> <string name="storage_description_default"></string> <string name="storage_documents"></string> <string name="storage_downloads"></string> <string name="storage_internal_storage"></string> <string name="storage_movies"></string> <string name="storage_music"></string> <string name="storage_permission_full_access"></string> <string name="storage_permission_media_read_only"></string> <string name="storage_pictures"></string> <string name="store_full_desc">\n\n* \n* Nextcloud \n* \n* \n* \n* \n* \n* PIN \n* DAVx5 DAVdroid\n\n path_to_url path_to_url \n\n Nextcloud Nextcloud \n\n path_to_url </string> <string name="store_full_dev_desc">\n\n\nF-Droid </string> <string name="store_short_desc"></string> <string name="store_short_dev_desc"></string> <string name="stream"></string> <string name="stream_not_possible_headline"></string> <string name="stream_not_possible_message"></string> <string name="strict_mode"> HTTP </string> <string name="sub_folder_rule_day">//</string> <string name="sub_folder_rule_month">/</string> <string name="sub_folder_rule_year"></string> <string name="subject_shared_with_you">%1$s</string> <string name="subject_user_shared_with_you">%1$s %2$s</string> <string name="subtitle_photos_only"></string> <string name="subtitle_photos_videos"></string> <string name="subtitle_videos_only"></string> <string name="suggest"></string> <string name="sync_conflicts_in_favourites_ticker"></string> <string name="sync_current_folder_was_removed"> %1$s </string> <string name="sync_fail_content"> %1$s</string> <string name="sync_fail_content_unauthorized"> %1$s</string> <string name="sync_fail_in_favourites_ticker"></string> <string name="sync_fail_ticker"></string> <string name="sync_fail_ticker_unauthorized"></string> <string name="sync_file_nothing_to_do_msg"></string> <string name="sync_folder_failed_content"> %1$s </string> <string name="sync_foreign_files_forgotten_explanation"> 1.3.16 %1$s %2$s %3$s %1$s %4$s %5$s </string> <string name="sync_foreign_files_forgotten_ticker"></string> <string name="sync_in_progress"></string> <string name="sync_not_enough_space_dialog_action_choose"></string> <string name="sync_not_enough_space_dialog_action_free_space"></string> <string name="sync_not_enough_space_dialog_placeholder">%1$s %2$s %3$s</string> <string name="sync_not_enough_space_dialog_title"></string> <string name="sync_status_button"></string> <string name="sync_string_files"></string> <string name="synced_folder_settings_button"></string> <string name="synced_folders_configure_folders"></string> <string name="synced_folders_new_info">\n\n</string> <string name="synced_folders_no_results"></string> <string name="synced_folders_preferences_folder_path"> %1$s</string> <string name="synced_folders_type"></string> <string name="synced_icon"></string> <string name="tags"></string> <string name="test_server_button"></string> <string name="thirtyMinutes">30</string> <string name="thisWeek"></string> <string name="thumbnail"></string> <string name="thumbnail_for_existing_file_description"></string> <string name="thumbnail_for_new_file_desc"></string> <string name="timeout_richDocuments"></string> <string name="today"></string> <string name="trashbin_activity_title"></string> <string name="trashbin_empty_headline"></string> <string name="trashbin_empty_message"></string> <string name="trashbin_file_not_deleted"> %1$s </string> <string name="trashbin_file_not_restored"> %1$s </string> <string name="trashbin_file_remove"></string> <string name="trashbin_loading_failed"></string> <string name="trashbin_not_emptied"></string> <string name="unified_search_fragment_calendar_event_not_found"></string> <string name="unified_search_fragment_contact_not_found"></string> <string name="unified_search_fragment_permission_needed"></string> <string name="unlock_file"></string> <string name="unread_comments"></string> <string name="unset_encrypted"></string> <string name="unset_favorite"></string> <string name="unshare_link_file_error"></string> <string name="unshare_link_file_no_exist"></string> <string name="unshare_link_forbidden_permissions"></string> <string name="unsharing_failed"></string> <string name="untrusted_domain"></string> <string name="update_link_file_error"></string> <string name="update_link_file_no_exist"></string> <string name="update_link_forbidden_permissions"></string> <string name="updating_share_failed"></string> <string name="upload_action_cancelled_clear"></string> <string name="upload_action_cancelled_resume"></string> <string name="upload_action_failed_clear"></string> <string name="upload_action_failed_retry"></string> <string name="upload_action_file_not_exist_message"></string> <string name="upload_action_global_upload_pause"></string> <string name="upload_action_global_upload_resume"></string> <string name="upload_cannot_create_file"></string> <string name="upload_chooser_title"></string> <string name="upload_content_from_other_apps"></string> <string name="upload_direct_camera_photo"></string> <string name="upload_direct_camera_promt"></string> <string name="upload_direct_camera_upload"></string> <string name="upload_direct_camera_video"></string> <string name="upload_file_dialog_filename"></string> <string name="upload_file_dialog_filetype"></string> <string name="upload_file_dialog_filetype_googlemap_shortcut">Google (%s)</string> <string name="upload_file_dialog_filetype_internet_shortcut"> (%s)</string> <string name="upload_file_dialog_filetype_snippet_text"> (.txt)</string> <string name="upload_file_dialog_title"></string> <string name="upload_files"></string> <string name="upload_global_pause_title"></string> <string name="upload_item_action_button"></string> <string name="upload_list_delete"></string> <string name="upload_list_empty_headline"></string> <string name="upload_list_empty_text_auto_upload"></string> <string name="upload_list_expand_header"></string> <string name="upload_list_resolve_conflict"></string> <string name="upload_local_storage_full"></string> <string name="upload_local_storage_not_copied"></string> <string name="upload_lock_failed"></string> <string name="upload_manually_cancelled"></string> <string name="upload_notification_manager_start_text">%1$d / %2$d - %3$s</string> <string name="upload_old_android"> Android 5.0 </string> <string name="upload_query_move_foreign_files"> %1$s </string> <string name="upload_quota_exceeded"></string> <string name="upload_scan_doc_upload"></string> <string name="upload_sync_conflict"></string> <string name="upload_unknown_error"></string> <string name="uploader_btn_alternative_text"></string> <string name="uploader_btn_upload_text"></string> <string name="uploader_error_message_no_file_to_upload"></string> <string name="uploader_error_message_read_permission_not_granted">%1$s </string> <string name="uploader_error_message_source_file_not_copied"></string> <string name="uploader_error_message_source_file_not_found"></string> <string name="uploader_error_title_file_cannot_be_uploaded"></string> <string name="uploader_error_title_no_file_to_upload"></string> <string name="uploader_file_not_found_message"></string> <string name="uploader_file_not_found_on_server_message"></string> <string name="uploader_info_dirname"></string> <string name="uploader_local_files_uploaded"></string> <string name="uploader_top_message"></string> <string name="uploader_upload_failed_content_single"> %1$s </string> <string name="uploader_upload_failed_credentials_error"></string> <string name="uploader_upload_failed_sync_conflict_error"></string> <string name="uploader_upload_failed_sync_conflict_error_content"> %1$s </string> <string name="uploader_upload_failed_ticker"></string> <string name="uploader_upload_files_behaviour"></string> <string name="uploader_upload_files_behaviour_move_to_nextcloud_folder"> %1$s </string> <string name="uploader_upload_files_behaviour_not_writable"></string> <string name="uploader_upload_files_behaviour_only_upload"></string> <string name="uploader_upload_files_behaviour_upload_and_delete_from_source"></string> <string name="uploader_upload_forbidden_permissions"></string> <string name="uploader_upload_in_progress">%1$d%% %2$s</string> <string name="uploader_upload_in_progress_content">%1$d%% %2$s </string> <string name="uploader_upload_in_progress_ticker"></string> <string name="uploader_upload_succeeded_content_single">%1$s </string> <string name="uploader_wrn_no_account_quit_btn_text"></string> <string name="uploader_wrn_no_account_setup_btn_text"></string> <string name="uploader_wrn_no_account_text"> %1$s </string> <string name="uploader_wrn_no_account_title"></string> <string name="uploads_view_group_current_uploads"></string> <string name="uploads_view_group_failed_uploads">/</string> <string name="uploads_view_group_finished_uploads"></string> <string name="uploads_view_group_manually_cancelled_uploads"></string> <string name="uploads_view_later_waiting_to_upload"></string> <string name="uploads_view_title"></string> <string name="uploads_view_upload_status_cancelled"></string> <string name="uploads_view_upload_status_conflict"></string> <string name="uploads_view_upload_status_failed_connection_error"></string> <string name="uploads_view_upload_status_failed_credentials_error"></string> <string name="uploads_view_upload_status_failed_file_error"></string> <string name="uploads_view_upload_status_failed_folder_error"></string> <string name="uploads_view_upload_status_failed_localfile_error"></string> <string name="uploads_view_upload_status_failed_permission_error"></string> <string name="uploads_view_upload_status_failed_ssl_certificate_not_trusted"></string> <string name="uploads_view_upload_status_fetching_server_version"></string> <string name="uploads_view_upload_status_service_interrupted"></string> <string name="uploads_view_upload_status_succeeded"></string> <string name="uploads_view_upload_status_succeeded_same_file"></string> <string name="uploads_view_upload_status_unknown_fail"></string> <string name="uploads_view_upload_status_virus_detected"></string> <string name="uploads_view_upload_status_waiting_exit_power_save_mode"></string> <string name="uploads_view_upload_status_waiting_for_charging"></string> <string name="uploads_view_upload_status_waiting_for_wifi"> Wi-Fi</string> <string name="user_icon"></string> <string name="user_info_address"></string> <string name="user_info_email"></string> <string name="user_info_phone"></string> <string name="user_info_twitter">Twitter</string> <string name="user_info_website"></string> <string name="user_information_retrieval_error"></string> <string name="userinfo_no_info_headline"></string> <string name="userinfo_no_info_text"></string> <string name="username"></string> <string name="version_dev_download"></string> <string name="video_overlay_icon"></string> <string name="wait_a_moment"></string> <string name="wait_checking_credentials"></string> <string name="wait_for_tmp_copy_from_private_storage"></string> <string name="webview_version_check_alert_dialog_message"> Android System WebView </string> <string name="webview_version_check_alert_dialog_positive_button_title"></string> <string name="webview_version_check_alert_dialog_title"> Android System WebView</string> <string name="what_s_new_image"></string> <string name="whats_new_skip"></string> <string name="whats_new_title"> %1$s </string> <string name="whats_your_status"></string> <string name="widgets_not_available"> %1$s 25 </string> <string name="widgets_not_available_title"></string> <string name="worker_download"></string> <string name="write_email"></string> <string name="wrong_storage_path"></string> <string name="wrong_storage_path_desc"></string> <plurals name="sync_fail_in_favourites_content"> <item quantity="other"> %1$d %2$d</item> </plurals> <plurals name="sync_foreign_files_forgotten_content"> <item quantity="other">%2$s %1$d </item> </plurals> <plurals name="wrote_n_events_to"> <item quantity="other"> %1$d %2$s</item> </plurals> <plurals name="created_n_uids_to"> <item quantity="other"> %1$d UID</item> </plurals> <plurals name="processed_n_entries"> <item quantity="other"> %d </item> </plurals> <plurals name="found_n_duplicates"> <item quantity="other"> %d </item> </plurals> <plurals name="export_successful"> <item quantity="other"> %d </item> </plurals> <plurals name="export_failed"> <item quantity="other"> %d </item> </plurals> <plurals name="export_partially_failed"> <item quantity="other"> %d </item> </plurals> <plurals name="export_start"> <item quantity="other"> %d </item> </plurals> <plurals name="file_list__footer__folder"> <item quantity="other">%1$d </item> </plurals> <plurals name="file_list__footer__file"> <item quantity="other">%1$d </item> </plurals> <plurals name="synced_folders_show_hidden_folders"> <item quantity="other">%1$d</item> </plurals> <plurals name="items_selected_count"> <item quantity="other"> %d </item> </plurals> </resources> ```
/content/code_sandbox/app/src/main/res/values-zh-rTW/strings.xml
xml
2016-06-06T21:23:36
2024-08-16T18:22:36
android
nextcloud/android
4,122
14,013
```xml import { iconSize, palette } from '@expo/styleguide-native'; import { View, Image, scale, BuildingIcon, UserIcon } from 'expo-dev-client-components'; import React from 'react'; import { StyleSheet } from 'react-native'; type Props = { name?: string; profilePhoto?: string; isOrganization?: boolean; size?: React.ComponentProps<typeof Image>['size']; }; export function Avatar({ profilePhoto, size = 'large', name = '', isOrganization = false }: Props) { const firstLetter = name?.charAt(0).toLowerCase(); const viewSize = getViewSize(size); if (isOrganization) { const { backgroundColor, tintColor } = getOrganizationColor(firstLetter); return ( <View style={{ height: viewSize, width: viewSize, backgroundColor, }} rounded="full" align="centered" bg="secondary"> <BuildingIcon resizeMode="center" style={styles.icon} tintColor={tintColor} /> </View> ); } if (!profilePhoto || !firstLetter) { return ( <View style={{ height: viewSize, width: viewSize }} rounded="full" align="centered" bg="secondary"> <UserIcon resizeMode="center" style={styles.icon} /> </View> ); } let _profilePhoto = profilePhoto; if (profilePhoto.match('gravatar.com')) { const defaultProfilePhoto = encodeURIComponent( `path_to_url{firstLetter}.png` ); _profilePhoto = `${profilePhoto}&d=${defaultProfilePhoto}`; } return ( <View rounded="full" bg="secondary"> <Image rounded="full" source={{ uri: _profilePhoto }} size={size} /> </View> ); } function getOrganizationColor(firstLetter?: string) { if (firstLetter?.match(/[a-d]/)) { return { backgroundColor: palette.light.blue[200], tintColor: palette.light.blue[900] }; } else if (firstLetter?.match(/[e-h]/)) { return { backgroundColor: palette.light.green[200], tintColor: palette.light.green[900] }; } else if (firstLetter?.match(/[i-l]/)) { return { backgroundColor: palette.light.yellow[400], tintColor: palette.light.yellow[900] }; } else if (firstLetter?.match(/[m-p]/)) { return { backgroundColor: palette.light.orange[200], tintColor: palette.light.orange[900] }; } else if (firstLetter?.match(/[q-t]/)) { return { backgroundColor: palette.light.red[200], tintColor: palette.light.red[900] }; } else if (firstLetter?.match(/[u-z]/)) { return { backgroundColor: palette.light.pink[200], tintColor: palette.light.pink[900] }; } else { return { backgroundColor: palette.light.purple[200], tintColor: palette.light.purple[900] }; } } function getViewSize(size?: React.ComponentProps<typeof Image>['size']) { switch (size) { case 'tiny': return scale.small; case 'small': return iconSize.small; case 'large': return iconSize.large; case 'xl': return scale.xl; default: return iconSize.large; } } const styles = StyleSheet.create({ icon: { width: '45%', height: '45%' }, }); ```
/content/code_sandbox/packages/expo-dev-launcher/bundle/components/Avatar.tsx
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
746
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import getOwnPropertyDescriptor = require( './index' ); // TESTS // // The function returns a property descriptor... { getOwnPropertyDescriptor( { 'beep': 2.0, 'foo': 3.14 }, 'beep' ); // $ExpectType TypedPropertyDescriptor<any> | null getOwnPropertyDescriptor( { 'beep': false, 'foo': true }, 'foo' ); // $ExpectType TypedPropertyDescriptor<any> | null } // The compiler throws an error if the function is provided a second argument which is not a string or symbol... { getOwnPropertyDescriptor( { 'beep': 2.0, 'foo': 3.14 }, true ); // $ExpectError getOwnPropertyDescriptor( { 'beep': 2.0, 'foo': 3.14 }, 3.12 ); // $ExpectError getOwnPropertyDescriptor( { 'beep': 2.0, 'foo': 3.14 }, [] ); // $ExpectError getOwnPropertyDescriptor( { 'beep': 2.0, 'foo': 3.14 }, {} ); // $ExpectError getOwnPropertyDescriptor( { 'beep': 2.0, 'foo': 3.14 }, ( x: number ): number => x * 2 ); // $ExpectError } // The compiler throws an error if the function is provided an incorrect number of arguments... { getOwnPropertyDescriptor(); // $ExpectError getOwnPropertyDescriptor( {}, 2 ); // $ExpectError } ```
/content/code_sandbox/lib/node_modules/@stdlib/utils/property-descriptor/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
367
```xml import { vtkObject, vtkSubscription } from '../../../interfaces'; import vtkRenderer from '../Renderer'; import vtkRenderWindowInteractor from '../RenderWindowInteractor'; // import vtkOpenGLRenderWindow from "../../../OpenGL/RenderWindow"; export interface IRenderWindowInitialValues { renderers?: vtkRenderer[]; views?: vtkRenderWindow[]; interactor?: any; neverRendered?: boolean; numberOfLayers?: number; childRenderWindows?: vtkRenderWindow[]; } interface IStatistics { /** * */ propCount: number; /** * */ invisiblePropCount: number; /** * */ str: string; } export const enum DEFAULT_VIEW_API { 'WebGL', 'WebGPU', } export interface vtkRenderWindow extends vtkObject { /** * Add renderer * @param {vtkRenderer} renderer The vtkRenderer instance. */ addRenderer(renderer: vtkRenderer): void; /** * Add a child render window * @param {vtkRenderWindow} renderWindow The vtkRenderWindow instance. */ addRenderWindow(renderWindow: vtkRenderWindow): void; /** * Add renderer * @param view */ addView(view: any): void; /** * * @param {String} format * @param {*} opts */ captureImages(format?: string, opts?: any): Promise<string>[]; /** * Switch the rendering backend between WebGL and WebGPU. * By default, the WebGL backend is used. To switch, to WebGPU call * `renderWindow.setDefaultViewAPI('WebGPU')` before calling `render`. */ getDefaultViewAPI(): string; /** * */ getInteractor(): vtkRenderWindowInteractor; /** * */ getNumberOfLayers(): number; /** * */ getNeverRendered(): boolean; /** * */ getRenderers(): vtkRenderer[]; /** * */ getRenderersByReference(): vtkRenderer[]; /** * */ getChildRenderWindows(): vtkRenderWindow[]; /** * */ getChildRenderWindowsByReference(): vtkRenderWindow[]; /** * */ getStatistics(): IStatistics; /** * */ getViews(): any[]; // getViews(): vtkOpenGLRenderWindow[]; /** * * @param {vtkRenderer} ren * @return {Boolean} true if the windows has a renderer */ hasRenderer(ren: vtkRenderer): boolean; /** * * @param view */ hasView(view: any): boolean; //hasView(view: vtkOpenGLRenderWindow): boolean; /** * * @param callback */ onCompletion(callback: (instance: vtkObject) => any): vtkSubscription; /** * * @param {String} name * @param {} [initialValues] */ newAPISpecificView(name: string, initialValues?: object): any; /** * Remove renderer * @param {vtkRenderer} renderer The vtkRenderer instance. */ removeRenderer(renderer: vtkRenderer): void; /** * Remove a child render window added using addRenderWindow(renderWindow) * @param {vtkRenderWindow} renderWindow The vtkRenderWindow instance. */ removeRenderWindow(renderWindow: vtkRenderWindow): boolean; /** * Remove renderer * @param view */ removeView(view: any): void; /** * */ render(): void; /** * Switch the rendering backend between WebGL and WebGPU. * By default, the WebGL backend is used. To switch, to WebGPU call * `renderWindow.setDefaultViewAPI('WebGPU')` before calling `render`. * Must be called before `newAPISpecificView()` is called. * @param defaultViewAPI (default: 'WebGL') */ setDefaultViewAPI(defaultViewAPI: DEFAULT_VIEW_API): boolean; /** * * @param interactor */ setInteractor(interactor: vtkRenderWindowInteractor): boolean; /** * * @param numberOfLayers */ setNumberOfLayers(numberOfLayers: number): boolean; /** * * @param views */ setViews(views: any[]): boolean; // setViews(views: vtkOpenGLRenderWindow[]): boolean; } /** * Method use to decorate a given object (publicAPI+model) with vtkRenderWindow characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {IRenderWindowInitialValues} [initialValues] (default: {}) */ export function extend( publicAPI: object, model: object, initialValues?: IRenderWindowInitialValues ): void; /** * Method use to create a new instance of vtkRenderWindow */ export function newInstance( initialValues?: IRenderWindowInitialValues ): vtkRenderWindow; /** * */ export function registerViewConstructor(name: string, constructor: any): void; /** * */ export function listViewAPIs(): string[]; /** * */ export function newAPISpecificView(name: string, initialValues: object): any; /** * vtkRenderWindow is an abstract object to specify the behavior of a rendering window. * * A rendering window is a window in a graphical user interface where renderers draw their images. * Methods are provided to synchronize the rendering process, set window size, and control double buffering. * The window also allows rendering in stereo. The interlaced render stereo type is for output to a VRex stereo projector. * All of the odd horizontal lines are from the left eye, and the even lines are from the right eye. * The user has to make the render window aligned with the VRex projector, or the eye will be swapped. */ export declare const vtkRenderWindow: { newInstance: typeof newInstance; extend: typeof extend; registerViewConstructor: typeof registerViewConstructor; listViewAPIs: typeof listViewAPIs; newAPISpecificView: typeof newAPISpecificView; }; export default vtkRenderWindow; ```
/content/code_sandbox/Sources/Rendering/Core/RenderWindow/index.d.ts
xml
2016-05-02T15:44:11
2024-08-15T19:53:44
vtk-js
Kitware/vtk-js
1,200
1,291
```xml import {ComponentPortal, PortalModule} from '@angular/cdk/portal'; import {CdkScrollable, ScrollingModule, ViewportRuler} from '@angular/cdk/scrolling'; import {dispatchFakeEvent} from '../../testing/private'; import {ApplicationRef, Component, ElementRef} from '@angular/core'; import {fakeAsync, TestBed, tick} from '@angular/core/testing'; import {Subscription} from 'rxjs'; import {map} from 'rxjs/operators'; import { ConnectedOverlayPositionChange, FlexibleConnectedPositionStrategy, Overlay, OverlayConfig, OverlayContainer, OverlayModule, OverlayRef, } from '../index'; // Default width and height of the overlay and origin panels throughout these tests. const DEFAULT_HEIGHT = 30; const DEFAULT_WIDTH = 60; describe('FlexibleConnectedPositionStrategy', () => { let overlay: Overlay; let overlayContainer: OverlayContainer; let overlayRef: OverlayRef; let viewport: ViewportRuler; beforeEach(() => { TestBed.configureTestingModule({ imports: [ScrollingModule, OverlayModule, PortalModule, TestOverlay], }); overlay = TestBed.inject(Overlay); overlayContainer = TestBed.inject(OverlayContainer); viewport = TestBed.inject(ViewportRuler); }); afterEach(() => { overlayContainer.ngOnDestroy(); if (overlayRef) { overlayRef.dispose(); } }); function attachOverlay(config: OverlayConfig) { overlayRef = overlay.create(config); overlayRef.attach(new ComponentPortal(TestOverlay)); TestBed.inject(ApplicationRef).tick(); } it('should throw when attempting to attach to multiple different overlays', () => { const origin = document.createElement('div'); const positionStrategy = overlay .position() .flexibleConnectedTo(origin) .withPositions([ { overlayX: 'start', overlayY: 'top', originX: 'start', originY: 'bottom', }, ]); // Needs to be in the DOM for IE not to throw an "Unspecified error". document.body.appendChild(origin); attachOverlay({positionStrategy}); expect(() => attachOverlay({positionStrategy})).toThrow(); origin.remove(); }); it('should not throw when trying to apply after being disposed', () => { const origin = document.createElement('div'); const positionStrategy = overlay .position() .flexibleConnectedTo(origin) .withPositions([ { overlayX: 'start', overlayY: 'top', originX: 'start', originY: 'bottom', }, ]); // Needs to be in the DOM for IE not to throw an "Unspecified error". document.body.appendChild(origin); attachOverlay({positionStrategy}); overlayRef.dispose(); expect(() => positionStrategy.apply()).not.toThrow(); origin.remove(); }); it('should not throw when trying to re-apply the last position after being disposed', () => { const origin = document.createElement('div'); const positionStrategy = overlay .position() .flexibleConnectedTo(origin) .withPositions([ { overlayX: 'start', overlayY: 'top', originX: 'start', originY: 'bottom', }, ]); // Needs to be in the DOM for IE not to throw an "Unspecified error". document.body.appendChild(origin); attachOverlay({positionStrategy}); overlayRef.dispose(); expect(() => positionStrategy.reapplyLastPosition()).not.toThrow(); origin.remove(); }); it('should for the virtual keyboard offset when positioning the overlay', () => { const originElement = createPositionedBlockElement(); document.body.appendChild(originElement); // Position the element so it would have enough space to fit. originElement.style.top = '200px'; originElement.style.left = '70px'; // Pull the element up ourselves to simulate what a mobile // browser would do when the virtual keyboard is being shown. overlayContainer.getContainerElement().style.top = '-100px'; attachOverlay({ positionStrategy: overlay .position() .flexibleConnectedTo(originElement) .withFlexibleDimensions(false) .withPush(false) .withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]), }); const originRect = originElement.getBoundingClientRect(); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.bottom)); originElement.remove(); }); it('should calculate position with simulated zoom in Safari', () => { let containerElement = overlayContainer.getContainerElement(); spyOn(containerElement, 'getBoundingClientRect').and.returnValue({ top: -200, bottom: 900, left: -200, right: 100, width: 100, height: 100, } as DOMRect); const originElement = createPositionedBlockElement(); document.body.appendChild(originElement); // Position the element so it would have enough space to fit. originElement.style.top = '200px'; originElement.style.left = '70px'; attachOverlay({ positionStrategy: overlay .position() .flexibleConnectedTo(originElement) .withFlexibleDimensions(false) .withPush(false) .withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', }, ]), }); expect(getComputedStyle(overlayRef.overlayElement).left).toBe('270px'); expect(getComputedStyle(overlayRef.overlayElement).top).toBe('400px'); originElement.remove(); }); it('should clean up after itself when disposed', () => { const origin = document.createElement('div'); const positionStrategy = overlay .position() .flexibleConnectedTo(origin) .withPositions([ { overlayX: 'start', overlayY: 'top', originX: 'start', originY: 'bottom', offsetX: 10, offsetY: 20, }, ]); // Needs to be in the DOM for IE not to throw an "Unspecified error". document.body.appendChild(origin); attachOverlay({positionStrategy}); const boundingBox = overlayRef.hostElement; const pane = overlayRef.overlayElement; positionStrategy.dispose(); expect(boundingBox.style.top).toBeFalsy(); expect(boundingBox.style.bottom).toBeFalsy(); expect(boundingBox.style.left).toBeFalsy(); expect(boundingBox.style.right).toBeFalsy(); expect(boundingBox.style.width).toBeFalsy(); expect(boundingBox.style.height).toBeFalsy(); expect(boundingBox.style.alignItems).toBeFalsy(); expect(boundingBox.style.justifyContent).toBeFalsy(); expect(boundingBox.classList).not.toContain('cdk-overlay-connected-position-bounding-box'); expect(pane.style.top).toBeFalsy(); expect(pane.style.bottom).toBeFalsy(); expect(pane.style.left).toBeFalsy(); expect(pane.style.right).toBeFalsy(); expect(pane.style.position).toBeFalsy(); expect(pane.style.transform).toBeFalsy(); overlayRef.dispose(); origin.remove(); }); describe('without flexible dimensions and pushing', () => { const ORIGIN_HEIGHT = DEFAULT_HEIGHT; const ORIGIN_WIDTH = DEFAULT_WIDTH; const OVERLAY_HEIGHT = DEFAULT_HEIGHT; const OVERLAY_WIDTH = DEFAULT_WIDTH; let originElement: HTMLElement; let positionStrategy: FlexibleConnectedPositionStrategy; beforeEach(() => { // The origin and overlay elements need to be in the document body in order to have geometry. originElement = createPositionedBlockElement(); document.body.appendChild(originElement); positionStrategy = overlay .position() .flexibleConnectedTo(originElement) .withFlexibleDimensions(false) .withPush(false); }); afterEach(() => { originElement.remove(); }); describe('when not near viewport edge, not scrolled', () => { // Place the original element close to the center of the window. // (1024 / 2, 768 / 2). It's not exact, since outerWidth/Height includes browser // chrome, but it doesn't really matter for these tests. const ORIGIN_LEFT = 500; const ORIGIN_TOP = 350; beforeEach(() => { originElement.style.left = `${ORIGIN_LEFT}px`; originElement.style.top = `${ORIGIN_TOP}px`; }); // Preconditions are set, now just run the full set of simple position tests. runSimplePositionTests(); }); describe('when scrolled', () => { // Place the original element decently far outside the unscrolled document (1024x768). const ORIGIN_LEFT = 2500; const ORIGIN_TOP = 2500; // Create a very large element that will make the page scrollable. let veryLargeElement: HTMLElement = document.createElement('div'); veryLargeElement.style.width = '4000px'; veryLargeElement.style.height = '4000px'; beforeEach(() => { // Scroll the page such that the origin element is roughly in the // center of the visible viewport (2500 - 1024/2, 2500 - 768/2). document.body.appendChild(veryLargeElement); window.scroll(2100, 2100); originElement.style.top = `${ORIGIN_TOP}px`; originElement.style.left = `${ORIGIN_LEFT}px`; }); afterEach(() => { window.scroll(0, 0); veryLargeElement.remove(); }); // Preconditions are set, now just run the full set of simple position tests. runSimplePositionTests(); }); describe('when near viewport edge', () => { it('should reposition the overlay if it would go off the top of the screen', () => { originElement.style.top = '5px'; originElement.style.left = '200px'; const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', }, { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.bottom)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left)); }); it('should reposition the overlay if it would go off the left of the screen', () => { originElement.style.top = '200px'; originElement.style.left = '5px'; const originRect = originElement.getBoundingClientRect(); const originCenterY = originRect.top + ORIGIN_HEIGHT / 2; positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originCenterY - OVERLAY_HEIGHT / 2)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.right)); }); it('should reposition the overlay if it would go off the bottom of the screen', () => { originElement.style.bottom = '25px'; originElement.style.left = '200px'; const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)).toBe(Math.floor(originRect.top)); expect(Math.floor(overlayRect.right)).toBe(Math.floor(originRect.right)); }); it('should reposition the overlay if it would go off the right of the screen', () => { originElement.style.top = '200px'; originElement.style.right = '25px'; const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', }, { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.bottom)); expect(Math.floor(overlayRect.right)).toBe(Math.floor(originRect.left)); }); it('should recalculate and set the last position with recalculateLastPosition()', () => { // Push the trigger down so the overlay doesn't have room to open on the bottom. originElement.style.bottom = '25px'; const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', }, ]); // This should apply the fallback position, as the original position won't fit. attachOverlay({positionStrategy}); // Now make the overlay small enough to fit in the first preferred position. overlayRef.overlayElement.style.height = '15px'; // This should only re-align in the last position, even though the first would fit. positionStrategy.reapplyLastPosition(); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)) .withContext('Expected overlay to be re-aligned to the trigger in the previous position.') .toBe(Math.floor(originRect.top)); }); it('should default to the initial position, if no positions fit in the viewport', () => { // Make the origin element taller than the viewport. originElement.style.height = '1000px'; originElement.style.top = '0'; const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', }, ]); attachOverlay({positionStrategy}); positionStrategy.reapplyLastPosition(); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)) .withContext('Expected overlay to be re-aligned to the trigger in the initial position.') .toBe(Math.floor(originRect.top)); }); it('should position a panel properly when rtl', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({ positionStrategy, direction: 'rtl', }); // must make the overlay longer than the origin to properly test attachment overlayRef.overlayElement.style.width = `500px`; const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.bottom)); expect(Math.floor(overlayRect.right)).toBe(Math.floor(originRect.right)); }); it('should position a panel with the x offset provided', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: 10, }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left + 10)); }); it('should be able to set the default x offset', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withDefaultOffsetX(20).withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left + 20)); }); it('should have the position offset x take precedence over the default offset x', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withDefaultOffsetX(20).withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: 10, }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left + 10)); }); it('should position a panel with the y offset provided', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', offsetY: 50, }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top + 50)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left)); }); it('should be able to set the default y offset', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withDefaultOffsetY(60).withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top + 60)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left)); }); it('should have the position offset y take precedence over the default offset y', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withDefaultOffsetY(60).withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', offsetY: 50, }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top + 50)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left)); }); it('should allow for the fallback positions to specify their own offsets', () => { originElement.style.bottom = '0'; originElement.style.left = '50%'; originElement.style.position = 'fixed'; const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: 50, offsetY: 50, }, { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetX: -100, offsetY: -100, }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)).toBe(Math.floor(originRect.top - 100)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left - 100)); }); }); describe('with transform origin', () => { it('should set the proper transform-origin when aligning to start/bottom', () => { positionStrategy.withTransformOriginOn('.transform-origin').withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const target = overlayRef.overlayElement.querySelector('.transform-origin')! as HTMLElement; expect(target.style.transformOrigin).toContain('left top'); }); it('should set the proper transform-origin when aligning to end/bottom', () => { positionStrategy.withTransformOriginOn('.transform-origin').withPositions([ { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const target = overlayRef.overlayElement.querySelector('.transform-origin')! as HTMLElement; expect(target.style.transformOrigin).toContain('right top'); }); it('should set the proper transform-origin when centering vertically', () => { positionStrategy.withTransformOriginOn('.transform-origin').withPositions([ { originX: 'start', originY: 'center', overlayX: 'start', overlayY: 'center', }, ]); attachOverlay({positionStrategy}); const target = overlayRef.overlayElement.querySelector('.transform-origin')! as HTMLElement; expect(target.style.transformOrigin).toContain('left center'); }); it('should set the proper transform-origin when centering horizontally', () => { positionStrategy.withTransformOriginOn('.transform-origin').withPositions([ { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const target = overlayRef.overlayElement.querySelector('.transform-origin')! as HTMLElement; expect(target.style.transformOrigin).toContain('center top'); }); it('should set the proper transform-origin when aligning to start/top', () => { positionStrategy.withTransformOriginOn('.transform-origin').withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', }, ]); attachOverlay({positionStrategy}); const target = overlayRef.overlayElement.querySelector('.transform-origin')! as HTMLElement; expect(target.style.transformOrigin).toContain('left bottom'); }); it('should set the proper transform-origin when aligning to start/bottom in rtl', () => { positionStrategy.withTransformOriginOn('.transform-origin').withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy, direction: 'rtl'}); const target = overlayRef.overlayElement.querySelector('.transform-origin')! as HTMLElement; expect(target.style.transformOrigin).toContain('right top'); }); it('should set the proper transform-origin when aligning to end/bottom in rtl', () => { positionStrategy.withTransformOriginOn('.transform-origin').withPositions([ { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, ]); attachOverlay({positionStrategy, direction: 'rtl'}); const target = overlayRef.overlayElement.querySelector('.transform-origin')! as HTMLElement; expect(target.style.transformOrigin).toContain('left top'); }); }); describe('with origin set to a point', () => { it('should be able to render at the primary position', () => { positionStrategy.setOrigin({x: 50, y: 100}).withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(100); expect(Math.floor(overlayRect.left)).toBe(50); }); it('should be able to render at a fallback position', () => { const viewportHeight = viewport.getViewportRect().height; positionStrategy.setOrigin({x: 50, y: viewportHeight}).withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)).toBe(viewportHeight); expect(Math.floor(overlayRect.left)).toBe(50); }); it('should be able to position relative to a point with width and height', () => { positionStrategy.setOrigin({x: 100, y: 200, width: 100, height: 50}).withPositions([ { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(250); expect(Math.floor(overlayRect.right)).toBe(200); }); }); it('should position the panel correctly when the origin is an SVG element', () => { originElement.remove(); originElement = createBlockElement('svg', 'path_to_url document.body.appendChild(originElement); const originRect = originElement.getBoundingClientRect(); positionStrategy.setOrigin(originElement).withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.bottom)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left)); }); it('should account for the `offsetX` pushing the overlay out of the screen', () => { // Position the element so it would have enough space to fit. originElement.style.top = '200px'; originElement.style.left = '70px'; const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'top', offsetX: -20, // Add enough of an offset to pull the element out of the viewport. }, { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.right)); }); it('should account for the `offsetY` pushing the overlay out of the screen', () => { // Position the overlay so it would normally have enough space to fit. originElement.style.bottom = '40px'; originElement.style.left = '200px'; const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 20, // Add enough of an offset for it to go off-screen. }, { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)).toBe(Math.floor(originRect.top)); expect(Math.floor(overlayRect.right)).toBe(Math.floor(originRect.right)); }); it('should emit onPositionChange event when the position changes', () => { originElement.style.top = '200px'; originElement.style.right = '25px'; positionStrategy.withPositions([ { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', }, { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, ]); const positionChangeHandler = jasmine.createSpy('positionChangeHandler'); const subscription = positionStrategy.positionChanges.subscribe(positionChangeHandler); attachOverlay({positionStrategy}); const latestCall = positionChangeHandler.calls.mostRecent(); expect(positionChangeHandler).toHaveBeenCalled(); expect(latestCall.args[0] instanceof ConnectedOverlayPositionChange) .withContext(`Expected strategy to emit an instance of ConnectedOverlayPositionChange.`) .toBe(true); // If the strategy is re-applied and the initial position would now fit, // the position change event should be emitted again. originElement.style.top = '200px'; originElement.style.left = '200px'; overlayRef.updatePosition(); expect(positionChangeHandler).toHaveBeenCalledTimes(2); subscription.unsubscribe(); }); it('should emit the onPositionChange event even if none of the positions fit', () => { originElement.style.bottom = '25px'; originElement.style.right = '25px'; positionStrategy.withPositions([ { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, ]); const positionChangeHandler = jasmine.createSpy('positionChangeHandler'); const subscription = positionStrategy.positionChanges.subscribe(positionChangeHandler); attachOverlay({positionStrategy}); expect(positionChangeHandler).toHaveBeenCalled(); subscription.unsubscribe(); }); it('should pick the fallback position that shows the largest area of the element', () => { originElement.style.top = '200px'; originElement.style.right = '25px'; const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', }, { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'bottom', }, { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left)); }); it('should re-use the preferred position when re-applying while locked in', () => { positionStrategy .withPositions([ { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', }, { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, ]) .withLockedPosition(); const recalcSpy = spyOn(positionStrategy, 'reapplyLastPosition'); attachOverlay({positionStrategy}); expect(recalcSpy).not.toHaveBeenCalled(); positionStrategy.apply(); expect(recalcSpy).toHaveBeenCalled(); }); it('should not retain the last preferred position when overriding the positions', () => { originElement.style.top = '100px'; originElement.style.left = '100px'; const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: 10, offsetY: 20, }, ]); attachOverlay({positionStrategy}); let overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top) + 20); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left) + 10); positionStrategy.withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: 20, offsetY: 40, }, ]); positionStrategy.reapplyLastPosition(); overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top) + 40); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left) + 20); }); /** * Run all tests for connecting the overlay to the origin such that first preferred * position does not go off-screen. We do this because there are several cases where we * want to run the exact same tests with different preconditions (e.g., not scroll, scrolled, * different element sized, etc.). */ function runSimplePositionTests() { it('should position a panel below, left-aligned', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.bottom)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left)); }); it('should position to the right, center aligned vertically', () => { const originRect = originElement.getBoundingClientRect(); const originCenterY = originRect.top + ORIGIN_HEIGHT / 2; positionStrategy.withPositions([ { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originCenterY - OVERLAY_HEIGHT / 2)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.right)); }); it('should position to the left, below', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.bottom)); expect(Math.round(overlayRect.right)).toBe(Math.round(originRect.left)); }); it('should position above, right aligned', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.round(overlayRect.bottom)).toBe(Math.round(originRect.top)); expect(Math.round(overlayRect.right)).toBe(Math.round(originRect.right)); }); it('should position below, centered', () => { const originRect = originElement.getBoundingClientRect(); const originCenterX = originRect.left + ORIGIN_WIDTH / 2; positionStrategy.withPositions([ { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.bottom)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originCenterX - OVERLAY_WIDTH / 2)); }); it('should center the overlay on the origin', () => { const originRect = originElement.getBoundingClientRect(); positionStrategy.withPositions([ { originX: 'center', originY: 'center', overlayX: 'center', overlayY: 'center', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left)); }); } }); describe('with pushing', () => { const OVERLAY_HEIGHT = DEFAULT_HEIGHT; const OVERLAY_WIDTH = DEFAULT_WIDTH; let originElement: HTMLElement; let positionStrategy: FlexibleConnectedPositionStrategy; beforeEach(() => { originElement = createPositionedBlockElement(); document.body.appendChild(originElement); positionStrategy = overlay .position() .flexibleConnectedTo(originElement) .withFlexibleDimensions(false) .withPush(); }); afterEach(() => { originElement.remove(); }); it('should be able to push an overlay into the viewport when it goes out on the right', () => { originElement.style.top = '200px'; originElement.style.right = `${-OVERLAY_WIDTH / 2}px`; positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.right)).toBe(viewport.getViewportSize().width); }); it('should be able to push an overlay into the viewport when it goes out on the left', () => { originElement.style.top = '200px'; originElement.style.left = `${-OVERLAY_WIDTH / 2}px`; positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.left)).toBe(0); }); it('should be able to push an overlay into the viewport when it goes out on the top', () => { originElement.style.top = `${-OVERLAY_HEIGHT * 2}px`; originElement.style.left = '200px'; positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(0); }); it('should be able to push an overlay into the viewport when it goes out on the bottom', () => { originElement.style.bottom = `${-OVERLAY_HEIGHT / 2}px`; originElement.style.left = '200px'; positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)).toBe(viewport.getViewportSize().height); }); it('should set a margin when pushing the overlay into the viewport horizontally', () => { originElement.style.top = '200px'; originElement.style.left = `${-OVERLAY_WIDTH / 2}px`; positionStrategy.withViewportMargin(15).withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.left)).toBe(15); }); it('should set a margin when pushing the overlay into the viewport vertically', () => { positionStrategy.withViewportMargin(15); originElement.style.top = `${-OVERLAY_HEIGHT * 2}px`; originElement.style.left = '200px'; positionStrategy.withViewportMargin(15).withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)).toBe(15); }); it('should not mess with the left offset when pushing from the top', () => { originElement.style.top = `${-OVERLAY_HEIGHT * 2}px`; originElement.style.left = '200px'; positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.left)).toBe(200); }); it( 'should align to the trigger if the overlay is wider than the viewport, but the trigger ' + 'is still within the viewport', () => { originElement.style.top = '200px'; originElement.style.left = '150px'; positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, ]); attachOverlay({ // Set a large max-width to override the one that comes from the // overlay structural styles. Otherwise the `width` will stop at the viewport width. maxWidth: '200vw', width: viewport.getViewportRect().width + 100, positionStrategy, }); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); const originRect = originElement.getBoundingClientRect(); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.left)); }, ); it( 'should push into the viewport if the overlay is wider than the viewport and the trigger' + 'out of the viewport', () => { originElement.style.top = '200px'; originElement.style.left = `-${DEFAULT_WIDTH / 2}px`; positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', }, ]); attachOverlay({ // Set a large max-width to override the one that comes from the // overlay structural styles. Otherwise the `width` will stop at the viewport width. maxWidth: '200vw', width: viewport.getViewportRect().width + 100, positionStrategy, }); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.left)).toBe(0); }, ); it( 'should keep the element inside the viewport as the user is scrolling, ' + 'with position locking disabled', () => { const veryLargeElement = document.createElement('div'); originElement.style.top = `${-OVERLAY_HEIGHT * 2}px`; originElement.style.left = '200px'; veryLargeElement.style.width = '100%'; veryLargeElement.style.height = '2000px'; document.body.appendChild(veryLargeElement); positionStrategy .withLockedPosition(false) .withViewportMargin(0) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'top', originX: 'start', }, ]); attachOverlay({positionStrategy}); let overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)) .withContext('Expected overlay to be in the viewport initially.') .toBe(0); window.scroll(0, 100); overlayRef.updatePosition(); overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.top)) .withContext('Expected overlay to stay in the viewport after scrolling.') .toBe(0); window.scroll(0, 0); veryLargeElement.remove(); }, ); it( 'should not continue pushing the overlay as the user scrolls, if position ' + 'locking is enabled', () => { const veryLargeElement = document.createElement('div'); originElement.style.top = `${-OVERLAY_HEIGHT * 2}px`; originElement.style.left = '200px'; veryLargeElement.style.width = '100%'; veryLargeElement.style.height = '2000px'; document.body.appendChild(veryLargeElement); positionStrategy .withLockedPosition() .withViewportMargin(0) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'top', originX: 'start', }, ]); attachOverlay({positionStrategy}); const scrollBy = 100; let initialOverlayTop = Math.floor(overlayRef.overlayElement.getBoundingClientRect().top); expect(initialOverlayTop) .withContext('Expected overlay to be inside the viewport initially.') .toBe(0); window.scroll(0, scrollBy); overlayRef.updatePosition(); let currentOverlayTop = Math.floor(overlayRef.overlayElement.getBoundingClientRect().top); expect(currentOverlayTop) .withContext('Expected overlay to no longer be completely inside the viewport.') .toBeLessThan(0); expect(currentOverlayTop) .withContext('Expected overlay to maintain its previous position.') .toBe(initialOverlayTop - scrollBy); window.scroll(0, 0); veryLargeElement.remove(); }, ); }); describe('with flexible dimensions', () => { const OVERLAY_HEIGHT = DEFAULT_HEIGHT; const OVERLAY_WIDTH = DEFAULT_WIDTH; let originElement: HTMLElement; let positionStrategy: FlexibleConnectedPositionStrategy; beforeEach(() => { originElement = createPositionedBlockElement(); document.body.appendChild(originElement); positionStrategy = overlay.position().flexibleConnectedTo(originElement); }); afterEach(() => { originElement.remove(); }); it('should align the overlay to `flex-start` when the content is flowing to the right', () => { positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({positionStrategy}); expect(overlayRef.hostElement.style.alignItems).toBe('flex-start'); }); it('should align the overlay to `flex-end` when the content is flowing to the left', () => { positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'top', overlayX: 'end', originY: 'bottom', originX: 'end', }, ]); attachOverlay({positionStrategy}); expect(overlayRef.hostElement.style.alignItems).toBe('flex-end'); }); it('should align the overlay to `center` when the content is centered', () => { positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'top', overlayX: 'center', originY: 'bottom', originX: 'center', }, ]); attachOverlay({positionStrategy}); expect(overlayRef.hostElement.style.alignItems).toBe('center'); }); it('should support offsets when centering', () => { originElement.style.top = '200px'; originElement.style.left = '200px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'center', overlayX: 'center', originY: 'center', originX: 'center', offsetY: 20, offsetX: -15, }, ]); attachOverlay({positionStrategy}); const originRect = originElement.getBoundingClientRect(); const originCenterX = originRect.left + DEFAULT_WIDTH / 2; const originCenterY = originRect.top + DEFAULT_HEIGHT / 2; const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); const overlayCenterY = overlayRect.top + OVERLAY_HEIGHT / 2; const overlayCenterX = overlayRect.left + OVERLAY_WIDTH / 2; expect(overlayRef.overlayElement.style.transform).toBe('translateX(-15px) translateY(20px)'); expect(Math.floor(overlayCenterY)).toBe(Math.floor(originCenterY) + 20); expect(Math.floor(overlayCenterX)).toBe(Math.floor(originCenterX) - 15); }); it('should become scrollable when it hits the viewport edge with a flexible height', () => { originElement.style.left = '200px'; originElement.style.bottom = `${OVERLAY_HEIGHT - 10}px`; positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.height)).toBe(OVERLAY_HEIGHT - 10); expect(Math.floor(overlayRect.bottom)).toBe(viewport.getViewportSize().height); }); it('should become scrollable when it hits the viewport edge with a flexible width', () => { originElement.style.top = '200px'; originElement.style.right = '-20px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.width)).toBe(OVERLAY_WIDTH - 20); expect(Math.floor(overlayRect.right)).toBe(viewport.getViewportSize().width); }); it('should not collapse the height if the size is less than the minHeight', () => { originElement.style.left = '200px'; originElement.style.bottom = `${OVERLAY_HEIGHT - 10}px`; positionStrategy.withFlexibleDimensions().withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({ positionStrategy, minHeight: OVERLAY_HEIGHT - 5, }); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.height)).toBe(OVERLAY_HEIGHT); }); it('should not collapse the width if the size is less than the minWidth', () => { originElement.style.top = '200px'; originElement.style.right = '-20px'; positionStrategy.withFlexibleDimensions().withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({ minWidth: OVERLAY_WIDTH - 10, positionStrategy, }); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.width)).toBe(OVERLAY_WIDTH); }); it('should take `weight` into account when determining which position to pick', () => { originElement.style.top = '200px'; originElement.style.right = '25px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'bottom', weight: 3, }, { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', }, ]); attachOverlay({positionStrategy}); const originRect = originElement.getBoundingClientRect(); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)).toBe(Math.floor(originRect.top)); expect(Math.floor(overlayRect.left)).toBe(Math.floor(originRect.right)); }); it('should be able to opt-in to having the overlay grow after it was opened', () => { originElement.style.left = '200px'; originElement.style.bottom = `${OVERLAY_HEIGHT - 10}px`; positionStrategy .withFlexibleDimensions() .withPush(false) .withGrowAfterOpen() .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({positionStrategy}); let overlayRect = overlayRef.overlayElement.getBoundingClientRect(); // The overlay should be scrollable, because it hit the viewport edge. expect(Math.floor(overlayRect.height)).toBe(OVERLAY_HEIGHT - 10); originElement.style.bottom = '200px'; overlayRef.updatePosition(); overlayRect = overlayRef.overlayElement.getBoundingClientRect(); // The overlay should be back to full height. expect(Math.floor(overlayRect.height)).toBe(OVERLAY_HEIGHT); }); it( 'should calculate the `bottom` value correctly with upward-flowing content ' + 'and a scrolled page', () => { const veryLargeElement = document.createElement('div'); originElement.style.left = '200px'; originElement.style.top = `200px`; veryLargeElement.style.width = '100%'; veryLargeElement.style.height = '2000px'; document.body.appendChild(veryLargeElement); window.scroll(0, 50); positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'bottom', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); const originRect = originElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)).toBe(Math.floor(originRect.bottom)); window.scroll(0, 0); veryLargeElement.remove(); }, ); it('should set the proper styles when the `bottom` value is exactly zero', () => { originElement.style.position = 'fixed'; originElement.style.bottom = '0'; originElement.style.left = '200px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'bottom', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({positionStrategy}); const boundingBox = overlayContainer .getContainerElement() .querySelector('.cdk-overlay-connected-position-bounding-box') as HTMLElement; // Ensure that `0px` is set explicitly, rather than the // property being left blank due to zero being falsy. expect(boundingBox.style.bottom).toBe('0px'); }); it('should set the proper styles when the `top` value is exactly zero', () => { originElement.style.position = 'fixed'; originElement.style.top = '0'; originElement.style.left = '200px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'top', originX: 'start', }, ]); attachOverlay({positionStrategy}); const boundingBox = overlayContainer .getContainerElement() .querySelector('.cdk-overlay-connected-position-bounding-box') as HTMLElement; // Ensure that `0px` is set explicitly, rather than the // property being left blank due to zero being falsy. expect(boundingBox.style.top).toBe('0px'); }); it('should set the proper styles when the `left` value is exactly zero', () => { originElement.style.position = 'fixed'; originElement.style.left = '0'; originElement.style.top = '200px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'top', originX: 'start', }, ]); attachOverlay({positionStrategy}); const boundingBox = overlayContainer .getContainerElement() .querySelector('.cdk-overlay-connected-position-bounding-box') as HTMLElement; // Ensure that `0px` is set explicitly, rather than the // property being left blank due to zero being falsy. expect(boundingBox.style.left).toBe('0px'); }); it('should set the proper styles when the `right` value is exactly zero', () => { originElement.style.position = 'fixed'; originElement.style.right = '0'; originElement.style.top = '200px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'top', overlayX: 'end', originY: 'top', originX: 'end', }, ]); attachOverlay({positionStrategy}); const boundingBox = overlayContainer .getContainerElement() .querySelector('.cdk-overlay-connected-position-bounding-box') as HTMLElement; // Ensure that `0px` is set explicitly, rather than the // property being left blank due to zero being falsy. expect(boundingBox.style.right).toBe('0px'); }); it('should calculate the bottom offset correctly with a viewport margin', () => { const viewportMargin = 5; originElement.style.top = `${OVERLAY_HEIGHT / 2}px`; originElement.style.right = '200px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withViewportMargin(viewportMargin) .withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', }, ]); attachOverlay({positionStrategy}); const originRect = originElement.getBoundingClientRect(); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)).toBe(Math.floor(originRect.top)); expect(Math.floor(overlayRect.top)).toBe(viewportMargin); }); it('should calculate the right offset correctly with a viewport margin', async () => { const viewportMargin = 5; const right = 20; originElement.style.right = `${right}px`; originElement.style.top = `200px`; positionStrategy .withFlexibleDimensions() .withPush(false) .withViewportMargin(viewportMargin) .withPositions([ { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', }, ]); attachOverlay({positionStrategy}); expect(overlayRef.hostElement.style.right).toBe(`${right}px`); }); it('should center flexible overlay with push on a scrolled page', () => { const veryLargeElement = document.createElement('div'); originElement.style.left = '200px'; originElement.style.top = '200px'; veryLargeElement.style.width = '100%'; veryLargeElement.style.height = '2000px'; document.body.appendChild(veryLargeElement); window.scroll(0, 250); positionStrategy .withFlexibleDimensions() .withPush(true) .withPositions([ { overlayY: 'top', overlayX: 'center', originY: 'bottom', originX: 'center', }, ]); attachOverlay({positionStrategy}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); const originRect = originElement.getBoundingClientRect(); expect(Math.floor(overlayRect.left - overlayRect.width / 2)).toBe( Math.floor(originRect.left - originRect.width / 2), ); window.scroll(0, 0); veryLargeElement.remove(); }); it('should size the bounding box correctly when opening downwards on a scrolled page', () => { const viewportMargin = 10; const veryLargeElement: HTMLElement = document.createElement('div'); veryLargeElement.style.width = '4000px'; veryLargeElement.style.height = '4000px'; document.body.appendChild(veryLargeElement); window.scroll(2100, 2100); originElement.style.position = 'fixed'; originElement.style.top = '100px'; originElement.style.left = '200px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withViewportMargin(viewportMargin) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({positionStrategy}); const boundingBox = overlayContainer .getContainerElement() .querySelector('.cdk-overlay-connected-position-bounding-box') as HTMLElement; // Use the `documentElement` here to determine the viewport // height since it's what is used by the overlay. const viewportHeight = document.documentElement!.clientHeight - 2 * viewportMargin; const originRect = originElement.getBoundingClientRect(); const boundingBoxRect = boundingBox.getBoundingClientRect(); expect(Math.floor(boundingBoxRect.height)).toBe( Math.floor(viewportHeight - originRect.bottom + viewportMargin), ); window.scroll(0, 0); veryLargeElement.remove(); }); it('should not push the overlay if it is exactly as wide as the viewport', () => { originElement.style.position = 'fixed'; originElement.style.top = '100px'; originElement.style.right = '0'; positionStrategy .withFlexibleDimensions() .withPush(true) .withPositions([ { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', }, ]); attachOverlay({ width: viewport.getViewportRect().width, positionStrategy, }); const originRect = originElement.getBoundingClientRect(); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.right)).toBe(Math.floor(originRect.right)); }); it('should not push the overlay if it is exactly as tall as the viewport', () => { originElement.style.position = 'fixed'; originElement.style.left = '100px'; originElement.style.bottom = '0'; positionStrategy .withFlexibleDimensions() .withPush(true) .withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'bottom', }, ]); attachOverlay({ width: viewport.getViewportRect().height, positionStrategy, }); const originRect = originElement.getBoundingClientRect(); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.bottom)).toBe(Math.floor(originRect.bottom)); }); it( 'should position an overlay that is flowing to the left correctly on a page that is ' + 'scrolled horizontally', () => { const veryLargeElement: HTMLElement = document.createElement('div'); veryLargeElement.style.width = '4000px'; veryLargeElement.style.height = '4000px'; document.body.appendChild(veryLargeElement); window.scroll(2100, 0); originElement.style.position = 'absolute'; originElement.style.top = '100px'; originElement.style.left = '300px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'top', overlayX: 'end', originY: 'top', originX: 'end', }, ]); attachOverlay({positionStrategy}); const originRect = originElement.getBoundingClientRect(); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.right)).toBe(Math.floor(originRect.right)); expect(Math.floor(overlayRect.top)).toBe(Math.floor(originRect.top)); window.scroll(0, 0); veryLargeElement.remove(); }, ); it( 'should size the bounding box that is flowing to the left correctly on a page that is ' + 'scrolled horizontally', () => { const veryLargeElement: HTMLElement = document.createElement('div'); veryLargeElement.style.width = '4000px'; veryLargeElement.style.height = '4000px'; document.body.appendChild(veryLargeElement); window.scroll(100, 0); originElement.style.position = 'absolute'; originElement.style.top = '100px'; originElement.style.left = '300px'; positionStrategy .withFlexibleDimensions() .withPush(false) .withPositions([ { overlayY: 'top', overlayX: 'end', originY: 'top', originX: 'end', }, ]); attachOverlay({positionStrategy}); let originRect = originElement.getBoundingClientRect(); let boundingBoxRect = overlayRef.hostElement.getBoundingClientRect(); expect(Math.floor(originRect.right)).toBe(Math.floor(boundingBoxRect.width)); window.scroll(200, 0); overlayRef.updatePosition(); originRect = originElement.getBoundingClientRect(); boundingBoxRect = overlayRef.hostElement.getBoundingClientRect(); expect(Math.floor(originRect.right)).toBe(Math.floor(boundingBoxRect.width)); window.scroll(0, 0); veryLargeElement.remove(); }, ); it( 'should set the maxWidth and maxHeight on the bounding box when exact dimension are ' + 'not used', () => { originElement.style.top = '50px'; originElement.style.left = '50%'; originElement.style.position = 'fixed'; positionStrategy.withFlexibleDimensions().withPositions([ { overlayX: 'start', overlayY: 'top', originX: 'start', originY: 'bottom', }, ]); attachOverlay({ positionStrategy, maxWidth: 250, maxHeight: 300, }); const overlayStyle = overlayRef.overlayElement.style; const boundingBoxStyle = overlayRef.hostElement.style; expect(overlayStyle.maxWidth).toBeFalsy(); expect(overlayStyle.maxHeight).toBeFalsy(); expect(boundingBoxStyle.maxWidth).toBe('250px'); expect(boundingBoxStyle.maxHeight).toBe('300px'); }, ); it('should set the maxWidth and maxHeight on the overlay pane when exact dimensions are used', () => { originElement.style.bottom = '0'; originElement.style.left = '50%'; originElement.style.position = 'fixed'; positionStrategy.withFlexibleDimensions().withPositions([ { overlayX: 'start', overlayY: 'top', originX: 'start', originY: 'bottom', }, ]); attachOverlay({ positionStrategy, maxWidth: 250, maxHeight: 300, }); const overlayStyle = overlayRef.overlayElement.style; const boundingBoxStyle = overlayRef.hostElement.style; expect(overlayStyle.maxWidth).toBe('250px'); expect(overlayStyle.maxHeight).toBe('300px'); expect(boundingBoxStyle.maxWidth).toBeFalsy(); expect(boundingBoxStyle.maxHeight).toBeFalsy(); }); it( 'should collapse the overlay vertically if overlay is outside of viewport, but taller ' + 'than the minHeight', () => { const bottomOffset = OVERLAY_HEIGHT / 2; originElement.style.bottom = `${bottomOffset}px`; originElement.style.left = '50%'; originElement.style.position = 'fixed'; positionStrategy .withFlexibleDimensions() .withPush(true) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({positionStrategy, minHeight: bottomOffset - 1}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.height)).toBe(bottomOffset); }, ); it( 'should collapse the overlay vertically if overlay is outside of viewport, but taller ' + 'than the minHeight that is set as a pixel string', () => { const bottomOffset = OVERLAY_HEIGHT / 2; originElement.style.bottom = `${bottomOffset}px`; originElement.style.left = '50%'; originElement.style.position = 'fixed'; positionStrategy .withFlexibleDimensions() .withPush(true) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'bottom', originX: 'start', }, ]); attachOverlay({positionStrategy, minHeight: `${bottomOffset - 1}px`}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.height)).toBe(bottomOffset); }, ); it( 'should collapse the overlay horizontally if overlay is outside of viewport, but wider ' + 'than the minWidth', () => { const rightOffset = OVERLAY_WIDTH / 2; originElement.style.top = '50%'; originElement.style.right = `${rightOffset}px`; originElement.style.position = 'fixed'; positionStrategy .withFlexibleDimensions() .withPush(true) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'top', originX: 'end', }, ]); attachOverlay({positionStrategy, minWidth: rightOffset}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.width)).toBe(rightOffset); }, ); it( 'should collapse the overlay horizontally if overlay is outside of viewport, but wider ' + 'than the minWidth that is set as a pixel string', () => { const rightOffset = OVERLAY_WIDTH / 2; originElement.style.top = '50%'; originElement.style.right = `${rightOffset}px`; originElement.style.position = 'fixed'; positionStrategy .withFlexibleDimensions() .withPush(true) .withPositions([ { overlayY: 'top', overlayX: 'start', originY: 'top', originX: 'end', }, ]); attachOverlay({positionStrategy, minWidth: `${rightOffset}px`}); const overlayRect = overlayRef.overlayElement.getBoundingClientRect(); expect(Math.floor(overlayRect.width)).toBe(rightOffset); }, ); it('should account for sub-pixel deviations in the size of the overlay', fakeAsync(() => { originElement.style.top = '200px'; originElement.style.left = '200px'; positionStrategy.withFlexibleDimensions().withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({ positionStrategy, height: '100%', }); const originalGetBoundingClientRect = overlayRef.overlayElement.getBoundingClientRect; // The browser may return a `DOMRect` with sub-pixel deviations if the screen is zoomed in. // Since there's no way for us to zoom in the screen programmatically, we simulate the effect // by patching `getBoundingClientRect` to return a slightly different value. overlayRef.overlayElement.getBoundingClientRect = function () { const domRect = originalGetBoundingClientRect.apply(this); const zoomOffset = 0.1; return { top: domRect.top, right: domRect.right + zoomOffset, bottom: domRect.bottom + zoomOffset, left: domRect.left, width: domRect.width + zoomOffset, height: domRect.height + zoomOffset, } as any; }; // Trigger a resize so that the overlay get repositioned from scratch // and to have it use the patched `getBoundingClientRect`. dispatchFakeEvent(window, 'resize'); tick(100); // The resize listener is usually debounced. const overlayRect = originalGetBoundingClientRect.apply(overlayRef.overlayElement); expect(Math.floor(overlayRect.top)).toBe(0); })); }); describe('onPositionChange with scrollable view properties', () => { let scrollable: HTMLDivElement; let positionChangeHandler: jasmine.Spy; let onPositionChangeSubscription: Subscription; beforeEach(() => { // Set up the origin const originElement = createBlockElement(); originElement.style.margin = '0 1000px 1000px 0'; // Added so that the container scrolls // Create a scrollable container and put the origin inside scrollable = createOverflowContainerElement(); document.body.appendChild(scrollable); scrollable.appendChild(originElement); // Create a strategy with knowledge of the scrollable container const strategy = overlay .position() .flexibleConnectedTo(originElement) .withPush(false) .withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', }, ]); strategy.withScrollableContainers([ new CdkScrollable(new ElementRef<HTMLElement>(scrollable), null!, null!), ]); positionChangeHandler = jasmine.createSpy('positionChange handler'); onPositionChangeSubscription = strategy.positionChanges .pipe(map(event => event.scrollableViewProperties)) .subscribe(positionChangeHandler); attachOverlay({positionStrategy: strategy}); }); afterEach(() => { onPositionChangeSubscription.unsubscribe(); scrollable.remove(); }); it('should not have origin or overlay clipped or out of view without scroll', () => { expect(positionChangeHandler).toHaveBeenCalledWith( jasmine.objectContaining({ isOriginClipped: false, isOriginOutsideView: false, isOverlayClipped: false, isOverlayOutsideView: false, }), ); }); it('should evaluate if origin is clipped if scrolled slightly down', () => { scrollable.scrollTop = 10; // Clip the origin by 10 pixels overlayRef.updatePosition(); expect(positionChangeHandler).toHaveBeenCalledWith( jasmine.objectContaining({ isOriginClipped: true, isOriginOutsideView: false, isOverlayClipped: false, isOverlayOutsideView: false, }), ); }); it('should evaluate if origin is out of view and overlay is clipped if scrolled enough', () => { scrollable.scrollTop = 31; // Origin is 30 pixels, move out of view and clip the overlay 1px overlayRef.updatePosition(); expect(positionChangeHandler).toHaveBeenCalledWith( jasmine.objectContaining({ isOriginClipped: true, isOriginOutsideView: true, isOverlayClipped: true, isOverlayOutsideView: false, }), ); }); it('should evaluate the overlay and origin are both out of the view', () => { scrollable.scrollTop = 61; // Scroll by overlay height + origin height + 1px overlayRef.updatePosition(); expect(positionChangeHandler).toHaveBeenCalledWith( jasmine.objectContaining({ isOriginClipped: true, isOriginOutsideView: true, isOverlayClipped: true, isOverlayOutsideView: true, }), ); }); }); describe('positioning properties', () => { let originElement: HTMLElement; let positionStrategy: FlexibleConnectedPositionStrategy; beforeEach(() => { originElement = createPositionedBlockElement(); document.body.appendChild(originElement); positionStrategy = overlay.position().flexibleConnectedTo(originElement); }); afterEach(() => { originElement.remove(); }); describe('in ltr', () => { it('should use `left` when positioning an element at the start', () => { positionStrategy.withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); expect(overlayRef.hostElement.style.left).toBeTruthy(); expect(overlayRef.hostElement.style.right).toBeFalsy(); }); it('should use `right` when positioning an element at the end', () => { positionStrategy.withPositions([ { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); expect(overlayRef.hostElement.style.right).toBeTruthy(); expect(overlayRef.hostElement.style.left).toBeFalsy(); }); }); describe('in rtl', () => { it('should use `right` when positioning an element at the start', () => { positionStrategy.withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({ positionStrategy, direction: 'rtl', }); expect(overlayRef.hostElement.style.right).toBeTruthy(); expect(overlayRef.hostElement.style.left).toBeFalsy(); }); it('should use `left` when positioning an element at the end', () => { positionStrategy.withPositions([ { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'top', }, ]); attachOverlay({positionStrategy, direction: 'rtl'}); expect(overlayRef.hostElement.style.left).toBeTruthy(); expect(overlayRef.hostElement.style.right).toBeFalsy(); }); }); describe('vertical', () => { it('should use `top` when positioning at element along the top', () => { positionStrategy.withPositions([ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top', }, ]); attachOverlay({positionStrategy}); expect(overlayRef.hostElement.style.top).toBeTruthy(); expect(overlayRef.hostElement.style.bottom).toBeFalsy(); }); it('should use `bottom` when positioning at element along the bottom', () => { positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'bottom', }, ]); attachOverlay({positionStrategy}); expect(overlayRef.hostElement.style.bottom).toBeTruthy(); expect(overlayRef.hostElement.style.top).toBeFalsy(); }); }); }); describe('validations', () => { let originElement: HTMLElement; let positionStrategy: FlexibleConnectedPositionStrategy; beforeEach(() => { originElement = createPositionedBlockElement(); document.body.appendChild(originElement); positionStrategy = overlay.position().flexibleConnectedTo(originElement); }); afterEach(() => { originElement.remove(); positionStrategy.dispose(); }); it('should throw when attaching without any positions', () => { expect(() => positionStrategy.withPositions([])).toThrow(); }); it('should throw when passing in something that is missing a connection point', () => { expect(() => { positionStrategy.withPositions([ { originY: 'top', overlayX: 'start', overlayY: 'top', } as any, ]); }).toThrow(); }); it('should throw when passing in something that has an invalid X position', () => { expect(() => { positionStrategy.withPositions([ { originX: 'left', originY: 'top', overlayX: 'left', overlayY: 'top', } as any, ]); }).toThrow(); }); it('should throw when passing in something that has an invalid Y position', () => { expect(() => { positionStrategy.withPositions([ { originX: 'start', originY: 'middle', overlayX: 'start', overlayY: 'middle', } as any, ]); }).toThrow(); }); }); describe('panel classes', () => { let originElement: HTMLElement; let positionStrategy: FlexibleConnectedPositionStrategy; beforeEach(() => { originElement = createPositionedBlockElement(); document.body.appendChild(originElement); positionStrategy = overlay .position() .flexibleConnectedTo(originElement) .withFlexibleDimensions(false) .withPush(false); }); afterEach(() => { originElement.remove(); }); it('should be able to apply a class based on the position', () => { positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', panelClass: 'is-below', }, ]); attachOverlay({positionStrategy}); expect(overlayRef.overlayElement.classList).toContain('is-below'); }); it('should be able to apply multiple classes based on the position', () => { positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', panelClass: ['is-below', 'is-under'], }, ]); attachOverlay({positionStrategy}); expect(overlayRef.overlayElement.classList).toContain('is-below'); expect(overlayRef.overlayElement.classList).toContain('is-under'); }); it('should not throw if an empty string is passed in as a panel class', () => { positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', panelClass: ['is-below', ''], }, ]); expect(() => attachOverlay({positionStrategy})).not.toThrow(); expect(overlayRef.overlayElement.classList).toContain('is-below'); }); it('should remove the panel class when detaching', () => { positionStrategy.withPositions([ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', panelClass: 'is-below', }, ]); attachOverlay({positionStrategy}); expect(overlayRef.overlayElement.classList).toContain('is-below'); overlayRef.detach(); expect(overlayRef.overlayElement.classList).not.toContain('is-below'); }); it('should clear the previous classes when the position changes', () => { originElement.style.top = '200px'; originElement.style.right = '25px'; positionStrategy.withPositions([ { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', panelClass: ['is-center', 'is-in-the-middle'], }, { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top', panelClass: 'is-below', }, ]); attachOverlay({positionStrategy}); const overlayClassList = overlayRef.overlayElement.classList; expect(overlayClassList).not.toContain('is-center'); expect(overlayClassList).not.toContain('is-in-the-middle'); expect(overlayClassList).toContain('is-below'); // Move the element so another position is applied. originElement.style.top = '200px'; originElement.style.left = '200px'; overlayRef.updatePosition(); expect(overlayClassList).toContain('is-center'); expect(overlayClassList).toContain('is-in-the-middle'); expect(overlayClassList).not.toContain('is-below'); }); it('should not clear the existing `panelClass` from the `OverlayRef`', () => { originElement.style.top = '200px'; originElement.style.right = '25px'; positionStrategy.withPositions([ { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', panelClass: ['is-center', 'is-in-the-middle'], }, { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'top', panelClass: 'is-below', }, ]); attachOverlay({ panelClass: 'custom-panel-class', positionStrategy, }); const overlayClassList = overlayRef.overlayElement.classList; expect(overlayClassList).toContain('custom-panel-class'); // Move the element so another position is applied. originElement.style.top = '200px'; originElement.style.left = '200px'; overlayRef.updatePosition(); expect(overlayClassList).toContain('custom-panel-class'); }); }); }); /** Creates an absolutely positioned, display: block element with a default size. */ function createPositionedBlockElement() { const element = createBlockElement(); element.style.position = 'absolute'; return element; } /** Creates a block element with a default size. */ function createBlockElement(tagName = 'div', namespace?: string) { let element; if (namespace) { element = document.createElementNS(namespace, tagName) as HTMLElement; } else { element = document.createElement(tagName); } element.style.width = `${DEFAULT_WIDTH}px`; element.style.height = `${DEFAULT_HEIGHT}px`; element.style.backgroundColor = 'rebeccapurple'; element.style.zIndex = '100'; return element; } /** Creates an overflow container with a set height and width with margin. */ function createOverflowContainerElement() { const element = document.createElement('div'); element.style.position = 'relative'; element.style.overflow = 'auto'; element.style.height = '300px'; element.style.width = '300px'; element.style.margin = '100px'; return element; } @Component({ template: ` <div class="transform-origin" style="width: ${DEFAULT_WIDTH}px; height: ${DEFAULT_HEIGHT}px;"></div> `, standalone: true, imports: [ScrollingModule, OverlayModule, PortalModule], }) class TestOverlay {} ```
/content/code_sandbox/src/cdk/overlay/position/flexible-connected-position-strategy.spec.ts
xml
2016-01-04T18:50:02
2024-08-16T11:21:13
components
angular/components
24,263
18,802
```xml <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2657" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct"> <dependencies> <deployment identifier="macosx"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11542"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <objects> <customObject id="-2" userLabel="File's Owner"/> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-3" userLabel="Application" customClass="NSObject"/> <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" id="Uhf-pL-gqw" customClass="NyanCatCanvas" customModule="touchbar_nyancat" customModuleProvider="target"> <rect key="frame" x="0.0" y="0.0" width="48" height="48"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyUpOrDown" id="oNW-cg-k71"/> <point key="canvasLocation" x="-304" y="158"/> </imageView> </objects> </document> ```
/content/code_sandbox/touchbar_nyancat/NyanCatCanvas.xib
xml
2016-11-05T22:24:53
2024-08-11T18:06:01
touchbar_nyancat
avatsaev/touchbar_nyancat
2,989
358
```xml import { Component } from '@angular/core'; import { BaseIcon } from 'primeng/baseicon'; @Component({ selector: 'TimesIcon', standalone: true, imports: [BaseIcon], template: ` <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="path_to_url" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()"> <path d="M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z" fill="currentColor" /> </svg> ` }) export class TimesIcon extends BaseIcon {} ```
/content/code_sandbox/src/app/components/icons/times/times.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
802
```xml // See LICENSE in the project root for license information. import './MockStyle1.css'; import { loadTheme } from '@microsoft/load-themed-styles'; loadTheme({ primaryBackgroundColor: '#EAEAEA' }); ```
/content/code_sandbox/webpack/webpack5-load-themed-styles-loader/src/test/testData/MockStyle1.ts
xml
2016-09-30T00:28:20
2024-08-16T18:54:35
rushstack
microsoft/rushstack
5,790
46
```xml import {Constant, Controller, Get, HeaderParams} from "@tsed/common"; import {View} from "@tsed/platform-views"; import {Returns} from "@tsed/schema"; import {Hidden, SwaggerSettings} from "@tsed/swagger"; @Hidden() @Controller("/") export class IndexCtrl { @Constant("swagger") swagger: SwaggerSettings[]; @Get("/") @View("index.ejs") @Returns(200, String).ContentType("text/html") get(@HeaderParams("x-forwarded-proto") protocol: string, @HeaderParams("host") host: string) { const hostUrl = `${protocol || "http"}://${host}`; return { BASE_URL: hostUrl, docs: this.swagger.map((conf) => { return { url: hostUrl + conf.path, ...conf }; }) }; } } ```
/content/code_sandbox/packages/security/oidc-provider/test/app/controllers/pages/IndexCtrl.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
187
```xml import { Document, Schema } from 'mongoose'; import { field } from './utils'; // entry ==================== export interface IRobotEntry { parentId?: string; isNotified: boolean; action: string; data: object; } export interface IRobotEntryDocument extends IRobotEntry, Document { _id: string; } export const robotEntrySchema = new Schema({ _id: field({ pkey: true }), parentId: field({ type: String, optional: true }), isNotified: field({ type: Boolean, default: false }), action: field({ type: String }), data: field({ type: Object }) }); // onboarding history ==================== export interface IOnboardingHistory { userId: string; totalPoint: number; isCompleted: boolean; completedSteps: string[]; } export interface IOnboardingHistoryDocument extends IOnboardingHistory, Document { _id: string; } export const onboardingHistorySchema = new Schema({ _id: field({ pkey: true }), userId: field({ type: String }), totalPoint: field({ type: Number }), isCompleted: field({ type: Boolean }), completedSteps: field({ type: [String] }) }); ```
/content/code_sandbox/packages/core/src/db/models/definitions/robot.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
264
```xml import { Column, Entity, PrimaryColumn } from "../../../../../../src" @Entity() export class Post { @PrimaryColumn() id: number @Column() name: string // your_sha256_hash--------- // Integer Types // your_sha256_hash--------- @Column("int64") int64: number // your_sha256_hash--------- // Character Types // your_sha256_hash--------- @Column("string") string: string // your_sha256_hash--------- // Float Types // your_sha256_hash--------- @Column("float64") float64: number // your_sha256_hash--------- // Binary Types // your_sha256_hash--------- @Column("bytes") bytes: Buffer // your_sha256_hash--------- // Numeric Types // your_sha256_hash--------- @Column("numeric") numeric: string // your_sha256_hash--------- // Date Types // your_sha256_hash--------- @Column("date") date: string @Column("timestamp") timestamp: Date // your_sha256_hash--------- // Other Types // your_sha256_hash--------- @Column("bool") bool: boolean @Column("json") json: Object @Column("string", { array: true }) array: string[] } ```
/content/code_sandbox/test/functional/database-schema/column-types/spanner/entity/Post.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
293
```xml import { useEffect, useRef } from 'react'; import { EasySwitchProvider } from '@proton/activation'; import { CancellationReminderModal, FeatureCode, InboxDesktopFreeTrialOnboardingModal, LightLabellingFeatureModal, RebrandingFeedbackModal, getShouldOpenReferralModal, useFeature, useModalState, useRebrandingFeedback, useShowLightLabellingFeatureModal, useSubscription, useUser, useWelcomeFlags, } from '@proton/components'; import type { ReminderFlag } from '@proton/components/containers/payments/subscription/cancellationReminder/cancellationReminderHelper'; import { shouldOpenReminderModal } from '@proton/components/containers/payments/subscription/cancellationReminder/cancellationReminderHelper'; import { OPEN_OFFER_MODAL_EVENT } from '@proton/shared/lib/constants'; import { isElectronMail } from '@proton/shared/lib/helpers/desktop'; import MailOnboardingModal from '../components/onboarding/MailOnboardingModal'; interface Props { onboardingOpen: boolean; } const MailStartupModals = ({ onboardingOpen }: Props) => { const [subscription, subscriptionLoading] = useSubscription(); // Onboarding modal const [user] = useUser(); const [onboardingModal, setOnboardingModal, renderOnboardingModal] = useModalState(); // Cancellation reminder modals const { feature } = useFeature<ReminderFlag>(FeatureCode.AutoDowngradeReminder); const [reminderModal, setReminderModal, renderReminderModal] = useModalState(); const openReminderModal = shouldOpenReminderModal(subscriptionLoading, subscription, feature); // Referral modal const seenReferralModal = useFeature<boolean>(FeatureCode.SeenReferralModal); const shouldOpenReferralModal = getShouldOpenReferralModal({ subscription, feature: seenReferralModal.feature }); const [rebrandingFeedbackModal, setRebrandingFeedbackModal, renderRebrandingFeedbackModal] = useModalState(); const handleRebrandingFeedbackModalDisplay = useRebrandingFeedback(); const [, setWelcomeFlagsDone] = useWelcomeFlags(); const showLightLabellingFeatureModal = useShowLightLabellingFeatureModal(); const [lightLabellingFeatureModalProps, setLightLabellingFeatureModal, renderLightLabellingFeatureModal] = useModalState(); const showInboxDesktopOnboarding = isElectronMail && !user.hasPaidMail; const onceRef = useRef(false); useEffect(() => { if (onceRef.current || showInboxDesktopOnboarding) { return; } const openModal = (setModalOpen: (newValue: boolean) => void) => { onceRef.current = true; setModalOpen(true); }; if (openReminderModal) { openModal(setReminderModal); } else if (onboardingOpen) { openModal(setOnboardingModal); } else if (shouldOpenReferralModal.open) { onceRef.current = true; document.dispatchEvent(new CustomEvent(OPEN_OFFER_MODAL_EVENT)); } else if (showLightLabellingFeatureModal) { onceRef.current = true; setLightLabellingFeatureModal(true); } else if (handleRebrandingFeedbackModalDisplay) { openModal(setRebrandingFeedbackModal); } }, [ shouldOpenReferralModal.open, handleRebrandingFeedbackModalDisplay, showLightLabellingFeatureModal, onboardingOpen, openReminderModal, ]); return ( <> {renderReminderModal && <CancellationReminderModal {...reminderModal} />} {showInboxDesktopOnboarding && <InboxDesktopFreeTrialOnboardingModal />} {renderOnboardingModal && ( <EasySwitchProvider> <MailOnboardingModal hideDiscoverApps onDone={() => { setWelcomeFlagsDone(); onboardingModal.onClose(); }} onExit={onboardingModal.onExit} open={onboardingModal.open} /> </EasySwitchProvider> )} {renderLightLabellingFeatureModal && <LightLabellingFeatureModal {...lightLabellingFeatureModalProps} />} {renderRebrandingFeedbackModal && ( <RebrandingFeedbackModal onMount={handleRebrandingFeedbackModalDisplay} {...rebrandingFeedbackModal} /> )} </> ); }; export default MailStartupModals; ```
/content/code_sandbox/applications/mail/src/app/containers/MailStartupModals.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
941
```xml import { expect } from 'chai'; import * as typemoq from 'typemoq'; import { SwitchToDefaultLanguageServerDiagnosticService } from '../../../../client/application/diagnostics/checks/switchToDefaultLS'; import { MessageCommandPrompt } from '../../../../client/application/diagnostics/promptHandler'; import { IDiagnosticFilterService, IDiagnosticHandlerService } from '../../../../client/application/diagnostics/types'; import { IWorkspaceService } from '../../../../client/common/application/types'; import { IServiceContainer } from '../../../../client/ioc/types'; import { MockWorkspaceConfiguration } from '../../../mocks/mockWorkspaceConfig'; suite('Application Diagnostics - Switch to default LS', () => { let serviceContainer: typemoq.IMock<IServiceContainer>; let diagnosticService: SwitchToDefaultLanguageServerDiagnosticService; let filterService: typemoq.IMock<IDiagnosticFilterService>; let messageHandler: typemoq.IMock<IDiagnosticHandlerService<MessageCommandPrompt>>; let workspaceService: typemoq.IMock<IWorkspaceService>; setup(() => { serviceContainer = typemoq.Mock.ofType<IServiceContainer>(); filterService = typemoq.Mock.ofType<IDiagnosticFilterService>(); messageHandler = typemoq.Mock.ofType<IDiagnosticHandlerService<MessageCommandPrompt>>(); workspaceService = typemoq.Mock.ofType<IWorkspaceService>(); serviceContainer .setup((s) => s.get(typemoq.It.isValue(IDiagnosticFilterService))) .returns(() => filterService.object); diagnosticService = new SwitchToDefaultLanguageServerDiagnosticService( serviceContainer.object, workspaceService.object, messageHandler.object, [], ); }); test('When global language server is NOT Microsoft do Nothing', async () => { workspaceService .setup((w) => w.getConfiguration('python')) .returns( () => new MockWorkspaceConfiguration({ languageServer: { globalValue: 'Default', workspaceValue: undefined, }, }), ); const diagnostics = await diagnosticService.diagnose(undefined); expect(diagnostics.length).to.be.equals(0, 'Diagnostics should not be returned for this case'); }); test('When global language server is Microsoft', async () => { const config = new MockWorkspaceConfiguration({ languageServer: { globalValue: 'Microsoft', workspaceValue: undefined, }, }); workspaceService.setup((w) => w.getConfiguration('python')).returns(() => config); const diagnostics = await diagnosticService.diagnose(undefined); expect(diagnostics.length).to.be.equals(1, 'Diagnostics should be returned for this case'); const value = config.inspect<string>('languageServer'); expect(value).to.be.equals('Default', 'Global language server value should be Default'); }); test('When workspace language server is NOT Microsoft do Nothing', async () => { workspaceService .setup((w) => w.getConfiguration('python')) .returns( () => new MockWorkspaceConfiguration({ languageServer: { globalValue: undefined, workspaceValue: 'Default', }, }), ); const diagnostics = await diagnosticService.diagnose(undefined); expect(diagnostics.length).to.be.equals(0, 'Diagnostics should not be returned for this case'); }); test('When workspace language server is Microsoft', async () => { const config = new MockWorkspaceConfiguration({ languageServer: { globalValue: undefined, workspaceValue: 'Microsoft', }, }); workspaceService.setup((w) => w.getConfiguration('python')).returns(() => config); const diagnostics = await diagnosticService.diagnose(undefined); expect(diagnostics.length).to.be.equals(1, 'Diagnostics should be returned for this case'); const value = config.inspect<string>('languageServer'); expect(value).to.be.equals('Default', 'Workspace language server value should be Default'); }); }); ```
/content/code_sandbox/src/test/application/diagnostics/checks/switchToDefaultLSDiagnostic.unit.test.ts
xml
2016-01-19T10:50:01
2024-08-12T21:05:24
pythonVSCode
DonJayamanne/pythonVSCode
2,078
826
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="debug|Win32"> <Configuration>debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="release|Win32"> <Configuration>release</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="profile|Win32"> <Configuration>profile</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="checked|Win32"> <Configuration>checked</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> </ItemGroup> <PropertyGroup Label="Globals"> <ProjectGuid>{961D3695-F024-7FB6-D236-2180AF48561A}</ProjectGuid> <RootNamespace>SampleClothingHelloWorld</RootNamespace> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <PlatformToolset>v141</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <PlatformToolset>v141</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='profile|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <PlatformToolset>v141</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='checked|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <PlatformToolset>v141</PlatformToolset> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='debug|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="../../../compiler/paths.vsprops" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='release|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="../../../compiler/paths.vsprops" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='profile|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="../../../compiler/paths.vsprops" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='checked|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="../../../compiler/paths.vsprops" /> </ImportGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|Win32'"> <OutDir>./../../../bin/vc15win32-PhysX_3.4\</OutDir> <IntDir>./build/Win32/SampleClothingHelloWorld/debug\</IntDir> <TargetExt>.exe</TargetExt> <TargetName>$(ProjectName)DEBUG</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='debug|Win32'"> <ClCompile> <FloatingPointModel>Precise</FloatingPointModel> <AdditionalOptions>/wd4201 /wd4324 /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4061 /wd4668 /wd4626 /wd4266 /wd4263 /wd4264 /wd4640 /wd4625 /wd4574 /wd4191 /wd4987 /wd4986 /wd4946 /wd4836 /wd4571 /wd4826 /wd4577 /wd4458 /wd4456 /wd4457 /wd4548 /wd5026 /wd5027 /wd4464 /wd5038 /wd5039 /wd4596 /wd4365 /wd4774 /wd4996 /wd5045 /GR- /GF /WX /fp:fast /arch:SSE2 /MP /Od /RTCsu /fp:fast /WX- /Zi /Oi /Oy- /Gm- /EHsc /GS /Gd /nologo /wd4005 /wd4244 /d2Zi+</AdditionalOptions> <Optimization>Disabled</Optimization> <AdditionalIncludeDirectories>../../../../PxShared/include;../../../../PxShared/include/filebuf;../../../../PxShared/include/foundation;../../../../PxShared/include/task;../../../../PxShared/include/cudamanager;../../../../PxShared/include/pvd;../../../../PxShared/src/foundation/include;../../../../PxShared/src/filebuf/include;../../../../PxShared/src/fastxml/include;../../../../PxShared/src/pvd/include;./../../../include;./../../../include/PhysX3;./../../../include/basicios;./../../../include/clothing;./../../../include/destructible;./../../../include/emitter;./../../../include/particles;./../../../include/iofx;./../../../include/pxparticleios;../../../../PhysX_3.4/Include;./../../../shared/external/include;./../../../shared/general/shared;./../../../shared/general/RenderDebug/public;./../../../include;./../../../include/PhysX3;$(WindowsSDK_IncludePath);./../../../externals/extensions/externals/include/directxtex;./../../../externals/extensions/externals/include/dxut/Core;./../../../externals/extensions/externals/include/dxut/Optional;./../../../externals/extensions/externals/include/effects11;./../../../externals/extensions/externals/include/simpleopt;./../../../externals/extensions/include/nvidiautils;./../../../externals/extensions/include/nvsimplemesh;./../../../externals/extensions/externals/include;./../../../externals/extensions/externals/include/anttweakbar;./../../../externals/extensions/externals/include/assimp;./../../SampleBase;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;DISABLE_CUDA_PHYSX;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_DEBUG;PX_DEBUG;PX_CHECKED;PHYSX_PROFILE_SDK;PX_SUPPORT_VISUAL_DEBUGGER;PX_PROFILE;PX_NVTX=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>Sync</ExceptionHandling> <WarningLevel>Level3</WarningLevel> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/INCREMENTAL:NO PhysX3CommonDEBUG_x86.lib PhysX3DEBUG_x86.lib PhysX3CookingDEBUG_x86.lib PhysX3ExtensionsDEBUG.lib PxPvdSDKDEBUG_x86.lib PxTaskDEBUG_x86.lib PxFoundationDEBUG_x86.lib PsFastXmlDEBUG_x86.lib ApexFrameworkDEBUG_x86.lib Apex_LegacyDEBUG_x86.lib Apex_DestructibleDEBUG_x86.lib /SUBSYSTEM:WINDOWS /LARGEADDRESSAWARE /NOLOGO /OPT:REF /OPT:ICF /INCREMENTAL:NO</AdditionalOptions> <AdditionalDependencies>xinput.lib;d3dcompiler.lib;d3d11.lib;dxguid.lib;dxgi.lib;winmm.lib;comctl32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;directxtexDEBUG.lib;DXUTDEBUG.lib;Effects11DEBUG.lib;nvidiautilsDEBUG.lib;nvsimplemeshDEBUG.lib;assimp.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName)DEBUG.exe</OutputFile> <AdditionalLibraryDirectories>../../../../PxShared/lib/vc15WIN32;$(WindowsSDK_LibraryPath_x86);./../../../externals/extensions/externals/lib/WIN32;./../../../externals/extensions/lib/WIN32;../../../../PxShared/lib/vc15win32;./../../../lib/vc15WIN32-PhysX_3.4;../../../../PhysX_3.4/Lib/vc15WIN32;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(OutDir)/$(ProjectName)DEBUG.exe.pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX86</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|Win32'"> <OutDir>./../../../bin/vc15win32-PhysX_3.4\</OutDir> <IntDir>./build/Win32/SampleClothingHelloWorld/release\</IntDir> <TargetExt>.exe</TargetExt> <TargetName>$(ProjectName)</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='release|Win32'"> <ClCompile> <FloatingPointModel>Precise</FloatingPointModel> <AdditionalOptions>/wd4201 /wd4324 /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4061 /wd4668 /wd4626 /wd4266 /wd4263 /wd4264 /wd4640 /wd4625 /wd4574 /wd4191 /wd4987 /wd4986 /wd4946 /wd4836 /wd4571 /wd4826 /wd4577 /wd4458 /wd4456 /wd4457 /wd4548 /wd5026 /wd5027 /wd4464 /wd5038 /wd5039 /wd4596 /wd4365 /wd4774 /wd4996 /wd5045 /GR- /GF /WX /fp:fast /arch:SSE2 /MP /Ox /fp:fast /WX- /Zi /Oi /Oy- /Gm- /EHsc /GS /Gd /nologo /wd4005 /wd4244 /d2Zi+</AdditionalOptions> <Optimization>Disabled</Optimization> <AdditionalIncludeDirectories>../../../../PxShared/include;../../../../PxShared/include/filebuf;../../../../PxShared/include/foundation;../../../../PxShared/include/task;../../../../PxShared/include/cudamanager;../../../../PxShared/include/pvd;../../../../PxShared/src/foundation/include;../../../../PxShared/src/filebuf/include;../../../../PxShared/src/fastxml/include;../../../../PxShared/src/pvd/include;./../../../include;./../../../include/PhysX3;./../../../include/basicios;./../../../include/clothing;./../../../include/destructible;./../../../include/emitter;./../../../include/particles;./../../../include/iofx;./../../../include/pxparticleios;../../../../PhysX_3.4/Include;./../../../shared/external/include;./../../../shared/general/shared;./../../../shared/general/RenderDebug/public;./../../../include;./../../../include/PhysX3;$(WindowsSDK_IncludePath);./../../../externals/extensions/externals/include/directxtex;./../../../externals/extensions/externals/include/dxut/Core;./../../../externals/extensions/externals/include/dxut/Optional;./../../../externals/extensions/externals/include/effects11;./../../../externals/extensions/externals/include/simpleopt;./../../../externals/extensions/include/nvidiautils;./../../../externals/extensions/include/nvsimplemesh;./../../../externals/extensions/externals/include;./../../../externals/extensions/externals/include/anttweakbar;./../../../externals/extensions/externals/include/assimp;./../../SampleBase;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;DISABLE_CUDA_PHYSX;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_RUNTIME_LIBRARY_MISMATCH;NDEBUG;APEX_SHIPPING;_SECURE_SCL=0;_ITERATOR_DEBUG_LEVEL=0;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>Sync</ExceptionHandling> <WarningLevel>Level3</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/INCREMENTAL:NO PhysX3Common_x86.lib PhysX3_x86.lib PhysX3Cooking_x86.lib PhysX3Extensions.lib PxPvdSDK_x86.lib PxTask_x86.lib PxFoundation_x86.lib PsFastXml_x86.lib ApexFramework_x86.lib Apex_Legacy_x86.lib Apex_Destructible_x86.lib /SUBSYSTEM:WINDOWS /LARGEADDRESSAWARE /NOLOGO /OPT:REF /OPT:ICF /INCREMENTAL:NO</AdditionalOptions> <AdditionalDependencies>xinput.lib;d3dcompiler.lib;d3d11.lib;dxguid.lib;dxgi.lib;winmm.lib;comctl32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;directxtex.lib;DXUT.lib;Effects11.lib;nvidiautils.lib;nvsimplemesh.lib;assimp.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName).exe</OutputFile> <AdditionalLibraryDirectories>../../../../PxShared/lib/vc15WIN32;$(WindowsSDK_LibraryPath_x86);./../../../externals/extensions/externals/lib/WIN32;./../../../externals/extensions/lib/WIN32;../../../../PxShared/lib/vc15win32;./../../../lib/vc15WIN32-PhysX_3.4;../../../../PhysX_3.4/Lib/vc15WIN32;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(OutDir)/$(ProjectName).exe.pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX86</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='profile|Win32'"> <OutDir>./../../../bin/vc15win32-PhysX_3.4\</OutDir> <IntDir>./build/Win32/SampleClothingHelloWorld/profile\</IntDir> <TargetExt>.exe</TargetExt> <TargetName>$(ProjectName)PROFILE</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='profile|Win32'"> <ClCompile> <FloatingPointModel>Precise</FloatingPointModel> <AdditionalOptions>/wd4201 /wd4324 /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4061 /wd4668 /wd4626 /wd4266 /wd4263 /wd4264 /wd4640 /wd4625 /wd4574 /wd4191 /wd4987 /wd4986 /wd4946 /wd4836 /wd4571 /wd4826 /wd4577 /wd4458 /wd4456 /wd4457 /wd4548 /wd5026 /wd5027 /wd4464 /wd5038 /wd5039 /wd4596 /wd4365 /wd4774 /wd4996 /wd5045 /GR- /GF /WX /fp:fast /arch:SSE2 /MP /Ox /fp:fast /WX- /Zi /Oi /Oy- /Gm- /EHsc /GS /Gd /nologo /wd4005 /wd4244 /d2Zi+</AdditionalOptions> <Optimization>Disabled</Optimization> <AdditionalIncludeDirectories>../../../../PxShared/include;../../../../PxShared/include/filebuf;../../../../PxShared/include/foundation;../../../../PxShared/include/task;../../../../PxShared/include/cudamanager;../../../../PxShared/include/pvd;../../../../PxShared/src/foundation/include;../../../../PxShared/src/filebuf/include;../../../../PxShared/src/fastxml/include;../../../../PxShared/src/pvd/include;./../../../include;./../../../include/PhysX3;./../../../include/basicios;./../../../include/clothing;./../../../include/destructible;./../../../include/emitter;./../../../include/particles;./../../../include/iofx;./../../../include/pxparticleios;../../../../PhysX_3.4/Include;./../../../shared/external/include;./../../../shared/general/shared;./../../../shared/general/RenderDebug/public;./../../../include;./../../../include/PhysX3;$(WindowsSDK_IncludePath);./../../../externals/extensions/externals/include/directxtex;./../../../externals/extensions/externals/include/dxut/Core;./../../../externals/extensions/externals/include/dxut/Optional;./../../../externals/extensions/externals/include/effects11;./../../../externals/extensions/externals/include/simpleopt;./../../../externals/extensions/include/nvidiautils;./../../../externals/extensions/include/nvsimplemesh;./../../../externals/extensions/externals/include;./../../../externals/extensions/externals/include/anttweakbar;./../../../externals/extensions/externals/include/assimp;./../../SampleBase;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;DISABLE_CUDA_PHYSX;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_RUNTIME_LIBRARY_MISMATCH;NDEBUG;PHYSX_PROFILE_SDK;PX_SUPPORT_VISUAL_DEBUGGER;PX_PROFILE;PX_NVTX=1;_SECURE_SCL=0;_ITERATOR_DEBUG_LEVEL=0;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>Sync</ExceptionHandling> <WarningLevel>Level3</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/INCREMENTAL:NO PhysX3CommonPROFILE_x86.lib PhysX3PROFILE_x86.lib PhysX3CookingPROFILE_x86.lib PhysX3ExtensionsPROFILE.lib PxPvdSDKPROFILE_x86.lib PxTaskPROFILE_x86.lib PxFoundationPROFILE_x86.lib PsFastXmlPROFILE_x86.lib ApexFrameworkPROFILE_x86.lib Apex_LegacyPROFILE_x86.lib Apex_DestructiblePROFILE_x86.lib /SUBSYSTEM:WINDOWS /LARGEADDRESSAWARE /NOLOGO /OPT:REF /OPT:ICF /INCREMENTAL:NO</AdditionalOptions> <AdditionalDependencies>xinput.lib;d3dcompiler.lib;d3d11.lib;dxguid.lib;dxgi.lib;winmm.lib;comctl32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;directxtex.lib;DXUT.lib;Effects11.lib;nvidiautils.lib;nvsimplemesh.lib;assimp.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName)PROFILE.exe</OutputFile> <AdditionalLibraryDirectories>../../../../PxShared/lib/vc15WIN32;$(WindowsSDK_LibraryPath_x86);./../../../externals/extensions/externals/lib/WIN32;./../../../externals/extensions/lib/WIN32;../../../../PxShared/lib/vc15win32;./../../../lib/vc15WIN32-PhysX_3.4;../../../../PhysX_3.4/Lib/vc15WIN32;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(OutDir)/$(ProjectName)PROFILE.exe.pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX86</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='checked|Win32'"> <OutDir>./../../../bin/vc15win32-PhysX_3.4\</OutDir> <IntDir>./build/Win32/SampleClothingHelloWorld/checked\</IntDir> <TargetExt>.exe</TargetExt> <TargetName>$(ProjectName)CHECKED</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='checked|Win32'"> <ClCompile> <FloatingPointModel>Precise</FloatingPointModel> <AdditionalOptions>/wd4201 /wd4324 /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4061 /wd4668 /wd4626 /wd4266 /wd4263 /wd4264 /wd4640 /wd4625 /wd4574 /wd4191 /wd4987 /wd4986 /wd4946 /wd4836 /wd4571 /wd4826 /wd4577 /wd4458 /wd4456 /wd4457 /wd4548 /wd5026 /wd5027 /wd4464 /wd5038 /wd5039 /wd4596 /wd4365 /wd4774 /wd4996 /wd5045 /GR- /GF /WX /fp:fast /arch:SSE2 /MP /Ox /fp:fast /WX- /Zi /Oi /Oy- /Gm- /EHsc /GS /Gd /nologo /wd4005 /wd4244 /d2Zi+</AdditionalOptions> <Optimization>Disabled</Optimization> <AdditionalIncludeDirectories>../../../../PxShared/include;../../../../PxShared/include/filebuf;../../../../PxShared/include/foundation;../../../../PxShared/include/task;../../../../PxShared/include/cudamanager;../../../../PxShared/include/pvd;../../../../PxShared/src/foundation/include;../../../../PxShared/src/filebuf/include;../../../../PxShared/src/fastxml/include;../../../../PxShared/src/pvd/include;./../../../include;./../../../include/PhysX3;./../../../include/basicios;./../../../include/clothing;./../../../include/destructible;./../../../include/emitter;./../../../include/particles;./../../../include/iofx;./../../../include/pxparticleios;../../../../PhysX_3.4/Include;./../../../shared/external/include;./../../../shared/general/shared;./../../../shared/general/RenderDebug/public;./../../../include;./../../../include/PhysX3;$(WindowsSDK_IncludePath);./../../../externals/extensions/externals/include/directxtex;./../../../externals/extensions/externals/include/dxut/Core;./../../../externals/extensions/externals/include/dxut/Optional;./../../../externals/extensions/externals/include/effects11;./../../../externals/extensions/externals/include/simpleopt;./../../../externals/extensions/include/nvidiautils;./../../../externals/extensions/include/nvsimplemesh;./../../../externals/extensions/externals/include;./../../../externals/extensions/externals/include/anttweakbar;./../../../externals/extensions/externals/include/assimp;./../../SampleBase;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;DISABLE_CUDA_PHYSX;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_RUNTIME_LIBRARY_MISMATCH;NDEBUG;PX_CHECKED;PHYSX_PROFILE_SDK;PX_SUPPORT_VISUAL_DEBUGGER;PX_ENABLE_CHECKED_ASSERTS;PX_NVTX=1;_SECURE_SCL=0;_ITERATOR_DEBUG_LEVEL=0;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>Sync</ExceptionHandling> <WarningLevel>Level3</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/INCREMENTAL:NO PhysX3CommonCHECKED_x86.lib PhysX3CHECKED_x86.lib PhysX3CookingCHECKED_x86.lib PhysX3ExtensionsCHECKED.lib PxPvdSDKCHECKED_x86.lib PxTaskCHECKED_x86.lib PxFoundationCHECKED_x86.lib PsFastXmlCHECKED_x86.lib ApexFrameworkCHECKED_x86.lib Apex_LegacyCHECKED_x86.lib Apex_DestructibleCHECKED_x86.lib /SUBSYSTEM:WINDOWS /LARGEADDRESSAWARE /NOLOGO /OPT:REF /OPT:ICF /INCREMENTAL:NO</AdditionalOptions> <AdditionalDependencies>xinput.lib;d3dcompiler.lib;d3d11.lib;dxguid.lib;dxgi.lib;winmm.lib;comctl32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;directxtex.lib;DXUT.lib;Effects11.lib;nvidiautils.lib;nvsimplemesh.lib;assimp.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName)CHECKED.exe</OutputFile> <AdditionalLibraryDirectories>../../../../PxShared/lib/vc15WIN32;$(WindowsSDK_LibraryPath_x86);./../../../externals/extensions/externals/lib/WIN32;./../../../externals/extensions/lib/WIN32;../../../../PxShared/lib/vc15win32;./../../../lib/vc15WIN32-PhysX_3.4;../../../../PhysX_3.4/Lib/vc15WIN32;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(OutDir)/$(ProjectName)CHECKED.exe.pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX86</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> </ItemDefinitionGroup> <ItemGroup> <ClCompile Include="..\..\SampleClothingHelloWorld\Main.cpp"> </ClCompile> <ClCompile Include="..\..\SampleClothingHelloWorld\SampleSceneController.cpp"> </ClCompile> <ClCompile Include="..\..\SampleClothingHelloWorld\SampleUIController.cpp"> </ClCompile> <ClInclude Include="..\..\SampleClothingHelloWorld\SampleSceneController.h"> </ClInclude> <ClInclude Include="..\..\SampleClothingHelloWorld\SampleUIController.h"> </ClInclude> </ItemGroup> <ItemGroup> <ProjectReference Include="./../../../externals/extensions/externals/build/vs2017WIN32/DirectXTex.vcxproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> <ItemGroup> <ProjectReference Include="./../../../externals/extensions/externals/build/vs2017WIN32/DXUT.vcxproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> <ItemGroup> <ProjectReference Include="./../../../externals/extensions/externals/build/vs2017WIN32/Effects11.vcxproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> <ItemGroup> <ProjectReference Include="./../../../externals/extensions/build/vs2017WIN32/nvsimplemesh.vcxproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> <ItemGroup> <ProjectReference Include="./../../../externals/extensions/build/vs2017WIN32/nvidiautils.vcxproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> <ItemGroup> <ProjectReference Include="./SampleBase.vcxproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"></ImportGroup> </Project> ```
/content/code_sandbox/APEX_1.4/samples_v2/compiler/vc15win32-PhysX_3.4/SampleClothingHelloWorld.vcxproj
xml
2016-10-12T16:34:31
2024-08-16T09:40:38
PhysX-3.4
NVIDIAGameWorks/PhysX-3.4
2,343
6,945
```xml import * as compose from "lodash.flowright"; import { BoardDetailQueryResponse, BoardsGetLastQueryResponse, BoardsQueryResponse } from "../types"; import { STORAGE_BOARD_KEY, STORAGE_PIPELINE_KEY } from "../constants"; import { router as routerUtils, withProps } from "@erxes/ui/src/utils"; import { useLocation, useNavigate } from "react-router-dom"; import { PageHeader } from "../styles/header"; import React from "react"; import Spinner from "@erxes/ui/src/components/Spinner"; import _ from "lodash"; import { getDefaultBoardAndPipelines } from "../utils"; import { gql } from "@apollo/client"; import { graphql } from "@apollo/client/react/hoc"; import { queries } from "../graphql"; import queryString from "query-string"; type Props = { type: string; component: any; middleContent?: () => React.ReactNode; }; type FinalProps = { boardsQuery: BoardsQueryResponse; boardGetLastQuery?: BoardsGetLastQueryResponse; boardDetailQuery?: BoardDetailQueryResponse; } & Props; const FILTER_PARAMS = [ "search", "userIds", "branchIds", "departmentIds", "priority", "assignedUserIds", "labelIds", "productIds", "companyIds", "customerIds", "segment", "assignedToMe", "closeDateType", "startDate", "endDate", "createdStartDate", "createdEndDate", "stateChangedStartDate", "stateChangedEndDate", "startDateStartDate", "startDateEndDate", "closeDateStartDate", "closeDateEndDate" ]; export const getBoardId = () => { const queryParams = queryString.parse(location.search); return queryParams.id; }; const defaultParams = ["id", "pipelineId"]; /* * Main board component */ function Main(props: FinalProps) { const { boardsQuery, boardGetLastQuery, boardDetailQuery, type, middleContent } = props; const navigate = useNavigate(); const location = useLocation(); const queryParams = queryString.parse(location.search); const onSearch = (search: string) => { if (!search) { return routerUtils.removeParams(navigate, location, "search"); } routerUtils.setParams(navigate, location, { search }); }; const onSelect = (values: string[] | string, key: string) => { if (queryParams[key] === values) { return routerUtils.removeParams(navigate, location, key); } return routerUtils.setParams(navigate, location, { [key]: values }); }; const isFiltered = (): boolean => { for (const param in queryParams) { if (FILTER_PARAMS.includes(param)) { return true; } } return false; }; const clearFilter = () => { const remainedParams = Object.keys(queryParams).filter( key => !defaultParams.includes(key) ); routerUtils.removeParams(navigate, location, ...remainedParams); }; if (boardsQuery.loading) { return <PageHeader />; } const boardId = getBoardId(); const { pipelineId } = queryParams; const { defaultBoards, defaultPipelines } = getDefaultBoardAndPipelines(); if (boardId && pipelineId) { defaultBoards[type] = boardId; defaultPipelines[type] = pipelineId; localStorage.setItem(STORAGE_BOARD_KEY, JSON.stringify(defaultBoards)); localStorage.setItem( STORAGE_PIPELINE_KEY, JSON.stringify(defaultPipelines) ); } // wait for load if (boardDetailQuery && boardDetailQuery.loading) { return <Spinner />; } if (boardGetLastQuery && boardGetLastQuery.loading) { return <Spinner />; } const lastBoard = boardGetLastQuery && boardGetLastQuery.ticketsBoardGetLast; const currentBoard = boardDetailQuery && boardDetailQuery.ticketsBoardDetail; // if there is no boardId in queryparams and there is one in localstorage // then put those in queryparams const [defaultBoardId, defaultPipelineId] = [ defaultBoards[type], defaultPipelines[type] ]; const hasBoardId = queryParams._id || false; if (!boardId && defaultBoardId && !hasBoardId) { routerUtils.setParams(navigate, location, { id: defaultBoardId, pipelineId: defaultPipelineId }); return null; } // if there is no boardId in queryparams and there is lastBoard // then put lastBoard._id and this board's first pipelineId to queryparams if ( !boardId && lastBoard && lastBoard.pipelines && lastBoard.pipelines.length > 0 ) { const [firstPipeline] = lastBoard.pipelines; routerUtils.setParams(navigate, location, { id: lastBoard._id, pipelineId: firstPipeline._id }); return null; } // If there is an invalid boardId localstorage then remove invalid keys // and reload the page if (!currentBoard && boardId) { delete defaultBoards[type]; delete defaultPipelines[type]; localStorage.setItem(STORAGE_BOARD_KEY, JSON.stringify(defaultBoards)); localStorage.setItem( STORAGE_PIPELINE_KEY, JSON.stringify(defaultPipelines) ); navigate(`/${type}/board`); return null; } const pipelines = currentBoard ? currentBoard.pipelines || [] : []; const currentPipeline = pipelineId ? pipelines.find(pipe => pipe._id === pipelineId) : pipelines[0]; const updatedProps = { middleContent, onSearch, queryParams, history, currentBoard, currentPipeline, boards: boardsQuery.ticketsBoards || [] }; const extendedProps = { ...updatedProps, type, onSelect, isFiltered, clearFilter }; const Component = props.component; return <Component {...extendedProps} />; } const MainActionBarContainer = withProps<Props>( compose( graphql<Props, BoardsQueryResponse>(gql(queries.boards), { name: "boardsQuery", options: ({ type }) => ({ variables: { type } }) }), graphql<Props, BoardsGetLastQueryResponse>(gql(queries.boardGetLast), { name: "boardGetLastQuery", skip: getBoardId, options: ({ type }) => ({ variables: { type } }) }), graphql<Props, BoardDetailQueryResponse, { _id: string }>( gql(queries.boardDetail), { name: "boardDetailQuery", skip: () => !getBoardId(), options: () => ({ variables: { _id: getBoardId() } }) } ) )(Main) ); export default MainActionBarContainer; ```
/content/code_sandbox/packages/ui-tickets/src/boards/containers/MainActionBar.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
1,490
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ // TypeScript Version: 4.1 /// <reference types="@stdlib/types"/> /** * If provided input values, the accumulator function returns an updated root mean squared error. If not provided input values, the accumulator function returns the current root mean squared error. * * ## Notes * * - If provided `NaN` or a value which, when used in computations, results in `NaN`, the accumulated value is `NaN` for all future invocations. * * @param x - input value * @param y - input value * @returns root mean squared error or null */ type accumulator = ( x?: number, y?: number ) => number | null; /** * Returns an accumulator function which incrementally computes a moving root mean squared error. * * ## Notes * * - The `W` parameter defines the number of values over which to compute the moving root mean squared error. * - As `W` values are needed to fill the window buffer, the first `W-1` returned values are calculated from smaller sample sizes. Until the window is full, each returned value is calculated from all provided values. * * @param W - window size * @throws must provide a positive integer * @returns accumulator function * * @example * var accumulator = incrmrmse( 3 ); * * var r = accumulator(); * // returns null * * r = accumulator( 2.0, 3.0 ); * // returns 1.0 * * r = accumulator( -5.0, 2.0 ); * // returns 5.0 * * r = accumulator( 3.0, 2.0 ); * // returns ~4.12 * * r = accumulator( 5.0, -2.0 ); * // returns ~5.74 * * r = accumulator(); * // returns ~5.74 */ declare function incrmrmse( W: number ): accumulator; // EXPORTS // export = incrmrmse; ```
/content/code_sandbox/lib/node_modules/@stdlib/stats/incr/mrmse/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
472
```xml export * from 'rxjs-compat/operators/dematerialize'; ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/operators/dematerialize.d.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
14
```xml 'use client' import Link from 'next/link' import { useRouter } from 'next/navigation' import { revalidateAction } from '../../@modal/modal/action' export default function Page() { const router = useRouter() const handleRevalidateSubmit = async () => { const result = await revalidateAction() if (result.success) { close() } } const close = () => { router.back() } return ( <div className="w-1/3 fixed right-0 top-0 bottom-0 h-screen shadow-2xl bg-gray-50 p-10"> <h2 id="drawer">Drawer</h2> <p id="drawer-now">{Date.now()}</p> <button type="button" id="drawer-close-button" onClick={() => close()} className="bg-gray-100 border p-2 rounded" > close </button> <p className="mt-4">Drawer</p> <div className="mt-4 flex flex-col gap-2"> <Link href="/nested-revalidate/modal" className="bg-sky-600 text-white p-2 rounded" > Open modal </Link> <form action={handleRevalidateSubmit}> <button type="submit" className="bg-sky-600 text-white p-2 rounded" id="drawer-submit-button" > Revalidate submit </button> </form> </div> </div> ) } ```
/content/code_sandbox/test/e2e/app-dir/parallel-routes-revalidation/app/nested-revalidate/@drawer/drawer/page.tsx
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
331
```xml <?xml version="1.0" standalone="no"?> <!DOCTYPE serverinfo SYSTEM "/your_sha512_hash.dtd"> <!-- --> <serverinfo> <host>localhost</host> <nonsslport>8888</nonsslport> <authtype>basic</authtype> <!-- <unix>/tmp/caldavd_requests/unsecured.sock</unix> --> <waitcount>120</waitcount> <waitdelay>0.25</waitdelay> <waitsuccess>30</waitsuccess> <features> <!-- Generic WebDAV extensions --> <feature>COPY Method</feature> <!-- COPY method --> <feature>MOVE Method</feature> <!-- MOVE method --> <feature>Extended MKCOL</feature> <!-- Extended MKCOL --> <!-- ACL related --> <feature>ACL Method</feature> <!-- ACL method --> <feature>acl-principal-prop-set REPORT</feature> <!-- ACL acl-principal-prop-set REPORT --> <feature>principal-match REPORT</feature> <!-- ACL principal-match REPORT --> <feature>principal-property-search REPORT</feature> <!-- ACL principal-property-search REPORT --> <feature>principal-search-property-set REPORT</feature> <!-- ACL principal-search-property-set REPORT --> <feature>calendarserver-principal-search REPORT</feature> <!-- ACL calendarserver-principal-search REPORT --> <feature>add-member</feature> <!-- Add-member used to create resources --> <!-- <feature>auth-on-root</feature> --> <!-- Whether the server requires authentication on the root URI --> <feature>brief</feature> <!-- Brief header for PROPFIND, REPORT --> <feature>bulk-post</feature> <!-- Bulk POST requests --> <feature>ctag</feature> <!-- ctag extension --> <feature>current-user-principal</feature> <!-- current-user-principal extension --> <feature>directory listing</feature> <!-- GET on collection --> <feature>extended-principal-search</feature> <!-- Extended principal-property-search REPORT extension --> <feature>expand-property</feature> <!-- Expand property REPORT --> <feature>only-proxy-groups</feature> <!-- Group-membership only includes delegated-to groups --> <feature>limits</feature> <!-- max-collections and max-resources limits --> <feature>own-root</feature> <!-- / is owned by this service --> <feature>prefer</feature> <!-- Prefer header overall support --> <feature>prefer-minimal</feature> <!-- Prefer header return=minimal --> <feature>prefer-representation</feature> <!-- Prefer header return=representation --> <feature>prefer-noroot</feature> <!-- Prefer header depth-noroot --> <feature>quota</feature> <!-- WebDAV QUOTA --> <!-- <feature>quota-on-resources</feature> --> <!-- WebDAV QUOTA on calendar and address book object resources --> <feature>resource-id</feature> <!-- WebDAV BIND DAV:resource-id property --> <feature>sync-report</feature> <!-- WebDAV collection sync REPORT --> <!-- <feature>sync-report-limit</feature> --> <!-- WebDAV collection sync REPORT DAV:limit support --> <!--<feature>sync-report-home</feature> &lt;!&ndash; WebDAV collection sync REPORT on Homes &ndash;&gt;--> <feature>sync-report-config-token</feature> <!-- Sync REPORT token includes configuration component --> <feature>well-known</feature> <!-- well-known feature --> <!-- <feature>per-object-ACLs</feature> --> <!-- ACL for objects in calendar/address books --> <!-- <feature>regular-collection</feature> --> <!-- Regular collections allowed in calendar/address book homes --> <feature>json-data</feature> <!-- jCal and jCard support --> <!-- CalendarServer specific extensions --> <feature>control-api</feature> <!-- Control API support --> <!-- CalDAV specific extension --> <feature>caldav</feature> <!-- Basic CalDAV feature enabler --> <feature>attachments-collection</feature> <!-- Server uses a collection in same WebDAV tree to store attachments --> <feature>auto-accept</feature> <!-- Auto-accept for rooms & locations --> <feature>auto-accept-modes</feature> <!-- Auto-accept modes --> <feature>client-fix-TRANSP</feature> <!-- fix client TRANSP --> <!-- <feature>dropbox</feature> --> <!-- dropbox extension --> <feature>default-alarms</feature> <!-- default alarms extension --> <feature>EMAIL parameter</feature> <!-- Server normalizes cuaddress and adds EMAIL parameter --> <feature>extended-freebusy</feature> <!-- Extended freebusy response --> <feature>freebusy-url</feature> <!-- Freebusy URL --> <feature>group-attendee-expansion</feature> <!-- Auto-expansion of group attendees --> <feature>implicit-scheduling</feature> <!-- CalDAV scheduling - implicit --> <feature>location-resource-tracking</feature> <!-- Server tracks who makes unscheduled changes to locations and resources --> <feature>managed-attachments</feature> <!-- CalDAV Managed Attachments --> <feature>maskuid</feature> <!-- maskuid extension --> <feature>no-duplicate-uids</feature> <!-- duplicate UIDs in same home not supported --> <feature>partstat-timestamp</feature> <!-- Time stamps when PARTSTAT changes extension --> <!-- <feature>podding</feature> --> <!-- Podded server --> <feature>private-comments</feature> <!-- private-comments extension --> <feature>private-events</feature> <!-- private-events extension --> <feature>proxy</feature> <!-- calendar-user-proxy extension --> <!-- <feature>proxy-authz</feature> --> <!-- sudo user extension --> <feature>recurrence-splitting</feature> <!-- Recurring components can be split --> <feature>remove-duplicate-alarms</feature> <!-- Server removes any duplicate alarms on PUT --> <feature>query-extended</feature> <!-- calendar-query-extended extension --> <feature>shared-calendars</feature> <!-- Shared calendars extension --> <feature>share-calendars-to-groups</feature> <!-- Share calendars to groups extension --> <feature>schedule-changes</feature> <!-- schedule-changes property extension --> <feature>split-calendars</feature> <!-- Calendars are split by component type --> <feature>supported-component-sets</feature> <!-- CALDAV:supported-calendar-component-sets on calendar homes --> <feature>supported-component-sets-one</feature> <!-- Only single component calendars allowed to be created --> <feature>timerange-low-limit</feature> <!-- Time-range only valid one year back --> <feature>timerange-high-limit</feature> <!-- Time-range only valid 5 years ahead --> <feature>timezones-by-reference</feature> <!-- Timezones by reference enabled --> <feature>timezone-service</feature> <!-- Timezone service extension for Wiki --> <feature>timezone-std-service</feature> <!-- Timezone standard service extension --> <!-- <feature>trash-collection</feature> --> <!-- Trash collection enabled --> <feature>travel-time-busy</feature> <!-- Travel time appears as busy --> <feature>vavailability</feature> <!-- VAVAILABILITY on inbox --> <!-- <feature>vpoll</feature> --> <!-- VPOLL support for store and scheduling --> <feature>webcal</feature> <!-- Internet calendar subscription via GET on calendar collection --> <!-- CardDAV specific extension --> <feature>carddav</feature> <!-- Basic CardDAV feature enabler --> <feature>default-addressbook</feature> <!-- Default address book behavior --> <feature>shared-addressbooks</feature> <!-- Shared address books extension --> <feature>shared-addressbook-groups</feature> <!-- Shared address book groups extension --> <feature>directory-gateway</feature> <!-- Directory gateway extension --> </features> <substitutions> <!-- Useful xpath shortcuts for verifiers --> <substitution> <key>$multistatus-response-prefix:</key> <value>/{DAV:}multistatus/{DAV:}response</value> </substitution> <substitution> <key>$multistatus-href-prefix:</key> <value>/{DAV:}multistatus/{DAV:}response/{DAV:}href</value> </substitution> <substitution> <key>$verify-response-prefix:</key> <value>{DAV:}response/{DAV:}propstat/{DAV:}prop</value> </substitution> <substitution> <key>$verify-property-prefix:</key> <value>/{DAV:}multistatus/{DAV:}response/{DAV:}propstat/{DAV:}prop</value> </substitution> <substitution> <key>$verify-bad-response:</key> <value>/{DAV:}multistatus/{DAV:}response/{DAV:}status</value> </substitution> <substitution> <key>$verify-error-response:</key> <value>/{DAV:}multistatus/{DAV:}response/{DAV:}error</value> </substitution> <substitution> <key>$CALDAV:</key> <value>urn:ietf:params:xml:ns:caldav</value> </substitution> <substitution> <key>$CARDDAV:</key> <value>urn:ietf:params:xml:ns:carddav</value> </substitution> <substitution> <key>$CS:</key> <value>path_to_url </substitution> <!-- Server configuration settings --> <!-- $host: and $hostssl: are implicitly added by CalDAVTester based on the host/nonsslport/sslport values and ssl command line switch --> <!-- relative path to caldav root--> <substitution> <key>$root:</key> <value>/remote.php/carddav/</value> </substitution> <!-- relative path to main principal collection--> <substitution> <key>$principalcollection:</key> <value>$root:principals/</value> </substitution> <!-- the core record type collections--> <substitution> <key>$uidstype:</key> <value>__uids__</value> </substitution> <substitution> <key>$groupstype:</key> <value>groups</value> </substitution> <substitution> <key>$locationstype:</key> <value>locations</value> </substitution> <substitution> <key>$resourcestype:</key> <value>resources</value> </substitution> <!-- relative path to record type principal collections--> <substitution> <key>$principals_uids:</key> <value>$principalcollection:$uidstype:/</value> </substitution> <substitution> <key>$principals_users:</key> <value>$principalcollection:</value> </substitution> <substitution> <key>$principals_groups:</key> <value>$principalcollection:$groupstype:/</value> </substitution> <substitution> <key>$principals_resources:</key> <value>$principalcollection:$resourcestype:/</value> </substitution> <substitution> <key>$principals_locations:</key> <value>$principalcollection:$locationstype:/</value> </substitution> <!-- relative path to calendars collection--> <substitution> <key>$calendars:</key> <value>$root:calendars/</value> </substitution> <!-- relative path to record type calendar collections--> <substitution> <key>$calendars_uids:</key> <value>$calendars:$uidstype:/</value> </substitution> <substitution> <key>$calendars_users:</key> <value>$calendars:/</value> </substitution> <substitution> <key>$calendars_resources:</key> <value>$calendars:$resourcestype:/</value> </substitution> <substitution> <key>$calendars_locations:</key> <value>$calendars:$locationstype:/</value> </substitution> <!-- primary calendar name--> <substitution> <key>$calendar:</key> <value>calendar</value> </substitution> <!-- primary tasks-only calendar name--> <substitution> <key>$tasks:</key> <value>tasks</value> </substitution> <!-- primary polls-only calendar name--> <substitution> <key>$polls:</key> <value>polls</value> </substitution> <!-- inbox name--> <substitution> <key>$inbox:</key> <value>inbox</value> </substitution> <!-- outbox name--> <substitution> <key>$outbox:</key> <value>outbox</value> </substitution> <!-- dropbox name--> <substitution> <key>$dropbox:</key> <value>dropbox</value> </substitution> <!-- attachments name--> <substitution> <key>$attachments:</key> <value>dropbox</value> </substitution> <!-- notification name--> <substitution> <key>$notification:</key> <value>notification</value> </substitution> <!-- freebusy name--> <substitution> <key>$freebusy:</key> <value>freebusy</value> </substitution> <!-- Sync home collection items - use "-" to include the home resource--> <substitution> <key>$calendar_home_items_initial_sync:</key> <value>[-,$calendar:/,$tasks:/,$inbox:/,$outbox:/,$freebusy:,$notification:/]</value> </substitution> <!-- Sync collection extra items - use "-" to include the collection--> <substitution> <key>$calendar_sync_extra_items:</key> <value>[-]</value> </substitution> <!-- Sync collection extra count - gets added to the totalcount value--> <substitution> <key>$calendar_sync_extra_count:</key> <value>1</value> <!-- the request-uri resource is returned when no token passed--> </substitution> <!-- server-to-server inbox--> <substitution> <key>$servertoserver:</key> <value>$root:inbox</value> </substitution> <!-- timezone service--> <substitution> <key>$timezoneservice:</key> <value>$root:timezones</value> </substitution> <!-- timezone std service--> <substitution> <key>$timezonestdservice:</key> <value>$root:stdtimezones</value> </substitution> <!-- relative path to addressbooks collection--> <substitution> <key>$addressbooks:</key> <value>$root:addressbooks/</value> </substitution> <!-- relative path to record type addressbook collections--> <substitution> <key>$addressbooks_uids:</key> <value>$addressbooks:$uidstype:/</value> </substitution> <substitution> <key>$addressbooks_users:</key> <value>$addressbooks:/</value> </substitution> <!-- primary addressbook name --> <substitution> <key>$addressbook:</key> <value>addressbook</value> </substitution> <!-- directory name --> <substitution> <key>$directory:</key> <value>$root:directory/</value> </substitution> <!-- POST add-member URI suffix --> <substitution> <key>$add-member:</key> <value>;add-member</value> </substitution> <!-- user id for admin user --> <substitution> <key>$useradmin:</key> <value>admin</value> </substitution> <!-- guid for admin user --> <substitution> <key>$useradminguid:</key> <value>0C8BDE62-E600-4696-83D3-8B5ECABDFD2E</value> </substitution> <!-- password for admin user --> <substitution> <key>$pswdadmin:</key> <value>admin</value> </substitution> <!-- relative path to admin principal resource--> <substitution> <key>$principal_admin:</key> <value>$principals_users:$useradmin:/</value> </substitution> <substitution> <key>$principaluri_admin:</key> <value>$principals_uids:$useradminguid:/</value> </substitution> <!-- user id for apprentice user --> <substitution> <key>$userapprentice:</key> <value>apprentice</value> </substitution> <!-- guid for apprentice user --> <substitution> <key>$userapprenticeguid:</key> <value>29B6C503-11DF-43EC-8CCA-40C7003149CE</value> </substitution> <!-- password for admin user --> <substitution> <key>$pswdapprentice:</key> <value>apprentice</value> </substitution> <!-- relative path to apprentice principal resource--> <substitution> <key>$principal_apprentice:</key> <value>$principals_users:$userapprentice:/</value> </substitution> <substitution> <key>$principaluri_apprentice:</key> <value>$principals_uids:$userapprenticeguid:/</value> </substitution> <!-- user id for proxy user --> <substitution> <key>$userproxy:</key> <value>superuser</value> </substitution> <!-- password for proxy user --> <substitution> <key>$pswdproxy:</key> <value>superuser</value> </substitution> <!-- Forty user accounts --> <repeat count="40"> <!-- user id --> <substitution> <key>$userid%d:</key> <value>user%02d</value> </substitution> <!-- user guid --> <substitution> <key>$userguid%d:</key> <value>10000000-0000-0000-0000-000000000%03d</value> </substitution> <!-- user name --> <substitution> <key>$username%d:</key> <value>User %02d</value> </substitution> <!-- user name URI encoded --> <substitution> <key>$username-encoded%d:</key> <value>User%%20%02d</value> </substitution> <!-- first name --> <substitution> <key>$firstname%d:</key> <value>User</value> </substitution> <!-- last name --> <substitution> <key>$lastname%d:</key> <value>%02d</value> </substitution> <!-- password --> <substitution> <key>$pswd%d:</key> <value>user%02d</value> </substitution> <!-- relative path to user principal resource--> <substitution> <key>$principal%d:</key> <value>$principals_users:$userid%d:/</value> </substitution> <substitution> <key>$principaluri%d:</key> <value>$principals_users:$userid%d:/</value> </substitution> <substitution> <key>$principal%dnoslash:</key> <value>$principals_users:$userid%d:</value> </substitution> <!-- relative path to user calendar home--> <substitution> <key>$calendarhome%d:</key> <value>$calendars:$userid%d:</value> </substitution> <!-- relative path to user alternate calendar home--> <substitution> <key>$calendarhomealt%d:</key> <value>$calendars_users:$userid%d:</value> </substitution> <!-- relative path to user calendar--> <substitution> <key>$calendarpath%d:</key> <value>$calendarhome%d:/$calendar:</value> </substitution> <!-- relative path to user alternate calendar--> <substitution> <key>$calendarpathalt%d:</key> <value>$calendarhomealt%d:/$calendar:</value> </substitution> <!-- relative path to user tasks calendar--> <substitution> <key>$taskspath%d:</key> <value>$calendarhome%d:/$tasks:</value> </substitution> <!-- relative path to user polls calendar--> <substitution> <key>$pollspath%d:</key> <value>$calendarhome%d:/$polls:</value> </substitution> <!-- relative path to user inbox--> <substitution> <key>$inboxpath%d:</key> <value>$calendarhome%d:/$inbox:</value> </substitution> <!-- relative path to user outbox--> <substitution> <key>$outboxpath%d:</key> <value>$calendarhome%d:/$outbox:</value> </substitution> <!-- relative path to user dropbox--> <substitution> <key>$dropboxpath%d:</key> <value>$calendarhome%d:/$dropbox:</value> </substitution> <!-- relative path to user notification--> <substitution> <key>$notificationpath%d:</key> <value>$calendarhome%d:/$notification:</value> </substitution> <!-- relative path to user freebusy--> <substitution> <key>$freebusypath%d:</key> <value>$calendarhome%d:/$freebusy:</value> </substitution> <substitution> <key>$email%d:</key> <value>$userid%d:@example.com</value> </substitution> <!-- calendar user address of user--> <substitution> <key>$cuaddr%d:</key> <value>mailto:$email%d:</value> </substitution> <substitution> <key>$cuaddralt%d:</key> <value>$cuaddr%d:</value> </substitution> <substitution> <key>$cuaddraltnoslash%d:</key> <value>$cuaddr%d:</value> </substitution> <substitution> <key>$cuaddrurn%d:</key> <value>urn:x-uid:$userguid%d:</value> </substitution> <!-- relative path to user addressbook home--> <substitution> <key>$addressbookhome%d:</key> <value>$addressbooks:$userid%d:</value> </substitution> <!-- relative path to user addressbook--> <substitution> <key>$addressbookpath%d:</key> <value>$addressbookhome%d:/$addressbook:</value> </substitution> </repeat> <!-- Ten public accounts --> <repeat count="10"> <!-- user id --> <substitution> <key>$publicuserid%d:</key> <value>public%02d</value> </substitution> <!-- user guid --> <substitution> <key>$publicuserguid%d:</key> <value>50000000-0000-0000-0000-0000000000%02d</value> </substitution> <!-- user name --> <substitution> <key>$publicusername%d:</key> <value>Public %02d</value> </substitution> <!-- password --> <substitution> <key>$publicpswd%d:</key> <value>public%02d</value> </substitution> <!-- relative path to user principal resource--> <substitution> <key>$publicprincipal%d:</key> <value>$principals_users:$publicuserid%d:/</value> </substitution> <substitution> <key>$publicprincipaluri%d:</key> <value>$principals_uids:$publicuserguid%d:/</value> </substitution> <!-- relative path to user calendar home--> <substitution> <key>$publiccalendarhome%d:</key> <value>$calendars_uids:$publicuserguid%d:</value> </substitution> <!-- relative path to user calendar--> <substitution> <key>$publiccalendarpath%d:</key> <value>$calendars_uids:$publicuserguid%d:/$calendar:</value> </substitution> <substitution> <key>$publicemail%d:</key> <value>$publicuserid%d:@example.com</value> </substitution> <!-- calendar user address of user--> <substitution> <key>$publiccuaddr%d:</key> <value>mailto:$publicemail%d:</value> </substitution> <substitution> <key>$publiccuaddralt%d:</key> <value>$publiccuaddr%d:</value> </substitution> <substitution> <key>$publiccuaddrurn%d:</key> <value>urn:x-uid:$publicuserguid%d:</value> </substitution> </repeat> <!-- Twenty resource accounts --> <repeat count="20"> <substitution> <key>$resourceid%d:</key> <value>resource%02d</value> </substitution> <!-- resource guid--> <substitution> <key>$resourceguid%d:</key> <value>40000000-0000-0000-0000-000000000%03d</value> </substitution> <!-- resource name--> <substitution> <key>$resourcename%d:</key> <value>Resource %02d</value> </substitution> <!-- relative path to first resource calendar home--> <substitution> <key>$rcalendarhome%d:</key> <value>$calendars_uids:$resourceguid%d:</value> </substitution> <!-- relative path to first resource calendar home--> <substitution> <key>$rcalendarpath%d:</key> <value>$calendars_uids:$resourceguid%d:/$calendar:</value> </substitution> <!-- relative path to first resource inbox--> <substitution> <key>$rinboxpath%d:</key> <value>$calendars_uids:$resourceguid%d:/$inbox:</value> </substitution> <!-- relative path to first resource outbox--> <substitution> <key>$routboxpath%d:</key> <value>$calendars_uids:$resourceguid%d:/$outbox:</value> </substitution> <!-- relative path to first resource principal resource--> <substitution> <key>$rprincipal%d:</key> <value>$principals_resources:$resourceid%d:/</value> </substitution> <substitution> <key>$rprincipaluri%d:</key> <value>$principals_uids:$resourceguid%d:/</value> </substitution> <substitution> <key>$rcuaddralt%d:</key> <value>$rcuaddrurn%d:</value> </substitution> <substitution> <key>$rcuaddrurn%d:</key> <value>urn:x-uid:$resourceguid%d:</value> </substitution> </repeat> <!-- Ten Location accounts --> <repeat count="10"> <substitution> <key>$locationid%d:</key> <value>location%02d</value> </substitution> <!-- location guid--> <substitution> <key>$locationguid%d:</key> <value>30000000-0000-0000-0000-000000000%03d</value> </substitution> <!-- location name--> <substitution> <key>$locationname%d:</key> <value>Location %02d</value> </substitution> <!-- relative path to first location calendar home--> <substitution> <key>$lcalendarhome%d:</key> <value>$calendars_uids:$locationguid%d:</value> </substitution> <!-- relative path to first location calendar home--> <substitution> <key>$lcalendarpath%d:</key> <value>$calendars_uids:$locationguid%d:/$calendar:</value> </substitution> <!-- relative path to first location inbox--> <substitution> <key>$linboxpath%d:</key> <value>$calendars_uids:$locationguid%d:/$inbox:</value> </substitution> <!-- relative path to first location outbox--> <substitution> <key>$loutboxpath%d:</key> <value>$calendars_uids:$locationguid%d:/$outbox:</value> </substitution> <!-- relative path to first location principal resource--> <substitution> <key>$lprincipal%d:</key> <value>$principals_resources:$locationid%d:/</value> </substitution> <substitution> <key>$lprincipaluri%d:</key> <value>$principals_uids:$locationguid%d:/</value> </substitution> <substitution> <key>$lcuaddralt%d:</key> <value>$lprincipaluri%d:</value> </substitution> <substitution> <key>$lcuaddrurn%d:</key> <value>urn:x-uid:$locationguid%d:</value> </substitution> </repeat> <!-- Ten Group accounts --> <repeat count="40"> <substitution> <key>$groupid%d:</key> <value>group%02d</value> </substitution> <!-- group guid--> <substitution> <key>$groupguid%d:</key> <value>20000000-0000-0000-0000-000000000%03d</value> </substitution> <!-- group name--> <substitution> <key>$groupname%d:</key> <value>Group %02d</value> </substitution> <!-- relative path to first group principal resource--> <substitution> <key>$gprincipal%d:</key> <value>$principals_resources:$groupid%d:/</value> </substitution> <substitution> <key>$gprincipaluri%d:</key> <value>$principals_uids:$groupguid%d:/</value> </substitution> <substitution> <key>$gemail%d:</key> <value>$groupid%d:@example.com</value> </substitution> <substitution> <key>$gcuaddralt%d:</key> <value>$gprincipaluri%d:</value> </substitution> <substitution> <key>$gcuaddrurn%d:</key> <value>urn:x-uid:$groupguid%d:</value> </substitution> </repeat> <!-- User with non-ascii name --> <substitution> <key>$i18nid:</key> <value>i18nuser</value> </substitution> <!-- group guid--> <substitution> <key>$i18nguid:</key> <value>860B3EE9-6D7C-4296-9639-E6B998074A78</value> </substitution> <!-- group name--> <substitution> <key>$i18nname:</key> <value></value> </substitution> <!-- password --> <substitution> <key>$i18npswd:</key> <value>i18nuser</value> </substitution> <!-- relative path to user calendar--> <substitution> <key>$i18ncalendarpath:</key> <value>$calendars_uids:$i18nguid:/$calendar:</value> </substitution> <substitution> <key>$i18nemail:</key> <value>$i18nid:@example.com</value> </substitution> <!-- CUAddrs --> <substitution> <key>$i18ncuaddr:</key> <value>mailto:$i18nemail:</value> </substitution> <substitution> <key>$i18ncuaddrurn:</key> <value>urn:x-uid:$i18nguid:</value> </substitution> <!-- relative path to disabled group principal resource--> <substitution> <key>$principaldisabled:</key> <value>$principals_groups:disabledgroup/</value> </substitution> <substitution> <key>$principaluridisabled:</key> <value>$principals_uids:disabledgroup/</value> </substitution> <!-- calendar user address of disabled group--> <substitution> <key>$cuaddrdisabled:</key> <value>$principals_uids:disabledgroup/</value> </substitution> <!-- Override some of the above definitions for special cases --> <!-- calendar user address of second user--> <substitution> <key>$cuaddr2:</key> <value>MAILTO:$email2:</value> </substitution> </substitutions> </serverinfo> ```
/content/code_sandbox/apps/dav/tests/travis/caldavtest/serverinfo-old-carddav-endpoint.xml
xml
2016-06-02T07:44:14
2024-08-16T18:23:54
server
nextcloud/server
26,415
8,312
```xml import { position } from '../../../util'; import { testCompletion } from '../../../completionHelper'; import { CompletionItemKind } from 'vscode'; import { getDocUri } from '../../path'; describe('Should do path completion for import', () => { const scriptDocUri = getDocUri('completion/script/PathCompletion.vue'); it('completes local file names when importing', async () => { await testCompletion(scriptDocUri, position(5, 10), [ { label: 'Basic', kind: CompletionItemKind.File, detail: 'Basic.vue' }, { label: 'Item', kind: CompletionItemKind.File, detail: 'Item.vue' } ]); }); it('completes folder names', async () => { await testCompletion(scriptDocUri, position(6, 11), [ { label: 'script', kind: CompletionItemKind.Folder }, { label: 'style', kind: CompletionItemKind.Folder }, { label: 'template', kind: CompletionItemKind.Folder } ]); }); }); ```
/content/code_sandbox/test/lsp/features/completion/pathCompletion.test.ts
xml
2016-10-29T23:20:43
2024-08-16T03:59:58
vetur
vuejs/vetur
5,739
246
```xml /* * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modified, * propagated, or distributed except according to the terms contained in the * LICENSE file. * * Removal or modification of this copyright notice is prohibited. */ import { Application } from 'lisk-sdk'; import { ForgerPlugin } from '../../src'; import { getForgerInfo as getForgerInfoFromDB } from '../../src/db'; import { ForgerInfo } from '../../src/types'; export const getForgerPlugin = (app: Application): ForgerPlugin => { return app['_controller']['_inMemoryPlugins'][new ForgerPlugin().name]['plugin']; }; export const waitTill = async (ms: number): Promise<void> => new Promise(r => setTimeout(() => { r(); }, ms), ); export const getForgerInfoByAddress = async ( forgerPluginInstance: ForgerPlugin, forgerAddress: string, ): Promise<ForgerInfo> => { const forgerInfo = await getForgerInfoFromDB( forgerPluginInstance['_forgerPluginDB'], forgerAddress, ); return forgerInfo; }; ```
/content/code_sandbox/framework-plugins/lisk-framework-forger-plugin/test/utils/application.ts
xml
2016-02-01T21:45:35
2024-08-15T19:16:48
lisk-sdk
LiskArchive/lisk-sdk
2,721
280
```xml import * as xlsxPopulate from "xlsx-populate"; import { IColumnLabel } from "@erxes/api-utils/src"; import { getCustomFieldsData } from "@erxes/api-utils/src/exporter"; import { IUserDocument } from "@erxes/api-utils/src/types"; import * as moment from "moment"; import { IModels } from "./connectionResolver"; import { MODULE_NAMES } from "./constants"; import { fetchSegment, sendCoreMessage, sendProductsMessage } from "./messageBroker"; import { IStageDocument } from "./models/definitions/boards"; import { IPipelineLabelDocument } from "./models/definitions/pipelineLabels"; export const createXlsFile = async () => { // Generating blank workbook const workbook = await xlsxPopulate.fromBlankAsync(); return { workbook, sheet: workbook.sheet(0) }; }; /** * Generates downloadable xls file on the url */ export const generateXlsx = async (workbook: any): Promise<string> => { return workbook.outputAsync(); }; const filterHeaders = headers => { const first = [] as any; const others = [] as any; for (const column of headers) { if (column.name.startsWith("productsData")) { first.push(column); } else { others.push(column); } } return others.concat(first); }; export const fillHeaders = (itemType: string): IColumnLabel[] => { let columnNames: IColumnLabel[] = []; switch (itemType) { case MODULE_NAMES.TICKET: default: break; } return columnNames; }; const getCellValue = (item, colName) => { const names = colName.split("."); if (names.length === 1) { return item[colName]; } else { const value = item[names[0]]; return value ? value[names[1]] : ""; } }; const fillCellValue = async ( models: IModels, subdomain: string, colName: string, item: any ): Promise<string> => { const emptyMsg = "-"; if (!item) { return emptyMsg; } let cellValue: any = getCellValue(item, colName); if (typeof item[colName] === "boolean") { cellValue = item[colName] ? "Yes" : "No"; } switch (colName) { case "createdAt": case "closeDate": case "modifiedAt": cellValue = moment(cellValue).format("YYYY-MM-DD HH:mm"); break; case "userId": const createdUser: IUserDocument | null = await sendCoreMessage({ subdomain, action: "users.findOne", data: { _id: item.userId }, isRPC: true }); cellValue = createdUser ? createdUser.username : "user not found"; break; // task, task, fields case "assignedUserIds": const assignedUsers: IUserDocument[] = await sendCoreMessage({ subdomain, action: "users.find", data: { query: { _id: { $in: item.assignedUserIds } } }, isRPC: true, defaultValue: [] }); cellValue = assignedUsers .map(user => user.username || user.email) .join(", "); break; case "watchedUserIds": const watchedUsers: IUserDocument[] = await sendCoreMessage({ subdomain, action: "users.find", data: { query: { _id: { $in: item.watchedUserIds } } }, isRPC: true, defaultValue: [] }); cellValue = watchedUsers .map(user => user.username || user.email) .join(", "); break; case "labelIds": const labels: IPipelineLabelDocument[] = await models.PipelineLabels.find( { _id: { $in: item.labelIds } } ); cellValue = labels.map(label => label.name).join(", "); break; case "stageId": const stage: IStageDocument | null = await models.Stages.findOne({ _id: item.stageId }); cellValue = stage ? stage.name : emptyMsg; break; case "boardId": const stageForBoard = await models.Stages.findOne({ _id: item.stageId }); cellValue = emptyMsg; if (stageForBoard) { const pipeline = await models.Pipelines.findOne({ _id: stageForBoard.pipelineId }); if (pipeline) { const board = await models.Boards.findOne({ _id: pipeline.boardId }); cellValue = board ? board.name : emptyMsg; } } break; case "pipelineId": const stageForPipeline = await models.Stages.findOne({ _id: item.stageId }); cellValue = emptyMsg; if (stageForPipeline) { const pipeline = await models.Pipelines.findOne({ _id: stageForPipeline.pipelineId }); cellValue = pipeline ? pipeline.name : emptyMsg; } break; case "initialStageId": const initialStage: IStageDocument | null = await models.Stages.findOne({ _id: item.initialStageId }); cellValue = initialStage ? initialStage.name : emptyMsg; break; case "modifiedBy": const modifiedBy: IUserDocument | null = await sendCoreMessage({ subdomain, action: "users.findOne", data: { _id: item.modifiedBy }, isRPC: true }); cellValue = modifiedBy ? modifiedBy.username : emptyMsg; break; default: break; } return cellValue || emptyMsg; }; const prepareData = async ( models: IModels, subdomain: string, query: any ): Promise<any[]> => { const { type, segmentData } = query; let data: any[] = []; const boardItemsFilter: any = {}; if (segmentData) { const itemIds = await fetchSegment(subdomain, "", {}, segmentData); boardItemsFilter._id = { $in: itemIds }; } switch (type) { case MODULE_NAMES.TICKET: data = await models.Tasks.find(boardItemsFilter); break; } return data; }; const addCell = ( col: IColumnLabel, value: string, sheet: any, columnNames: string[], rowIndex: number ): void => { // Checking if existing column if (columnNames.includes(col.name)) { // If column already exists adding cell sheet.cell(rowIndex, columnNames.indexOf(col.name) + 1).value(value); } else { // Creating column sheet.cell(1, columnNames.length + 1).value(col.label || col.name); // Creating cell sheet.cell(rowIndex, columnNames.length + 1).value(value); columnNames.push(col.name); } }; const fillTaskProductValue = async ( subdomain, column, item, sheet, columnNames, rowIndex, taskIds, taskRowIndex ) => { const productsData = item.productsData; if (productsData.length === 0) { rowIndex++; taskRowIndex++; addCell(column, "-", sheet, columnNames, taskRowIndex); return { rowIndex, taskRowIndex }; } if (taskIds.length === 0) { taskIds.push(item._id); } else if (!taskIds.includes(item._id)) { taskIds.push(item._id); rowIndex = taskRowIndex; } taskRowIndex = rowIndex; for (const productData of productsData) { let cellValue = ""; let product; switch (column.name) { case "productsData.amount": cellValue = productData.amount; break; case "productsData.name": product = (await sendProductsMessage({ subdomain, action: "productFindOne", data: { _id: productData.productId }, isRPC: true })) || {}; cellValue = product.name; break; case "productsData.code": product = (await sendProductsMessage({ subdomain, action: "productFindOne", data: { _id: productData.productId }, isRPC: true })) || {}; cellValue = product.code; break; case "productsData.discount": cellValue = productData.discount; break; case "productsData.discountPercent": cellValue = productData.discountPercent; break; case "productsData.currency": cellValue = productData.amount; break; case "productsData.tax": cellValue = productData.tax; break; case "productsData.taxPercent": cellValue = productData.taxPercent; break; } if (cellValue) { addCell(column, cellValue, sheet, columnNames, taskRowIndex); taskRowIndex++; } } return { rowIndex, taskRowIndex }; }; export const buildFile = async ( models: IModels, subdomain: string, query: any ): Promise<{ name: string; response: string }> => { const { configs, type } = query; const data = await prepareData(models, subdomain, query); // Reads default template const { workbook, sheet } = await createXlsFile(); const columnNames: string[] = []; let rowIndex: number = 1; const taskIds: string[] = []; let taskRowIndex: number = 0; let headers: IColumnLabel[] = fillHeaders(type); if (configs) { headers = JSON.parse(configs).map(config => { return { name: config, label: config }; }); } if (type === MODULE_NAMES.TICKET) { headers = filterHeaders(headers); } for (const item of data) { rowIndex++; // Iterating through basic info columns for (const column of headers) { if (column.name.startsWith("customFieldsData")) { const fieldId = column.name.split(".")[1]; const { field, value } = await getCustomFieldsData( () => sendCoreMessage({ subdomain, action: "fields.findOne", data: { query: { _id: fieldId } }, isRPC: true }), item, column, type ); if (field && value) { addCell( { name: field.text, label: field.text }, value, sheet, columnNames, rowIndex ); } } else if (column.name.startsWith("productsData")) { const indexes = await fillTaskProductValue( subdomain, column, item, sheet, columnNames, rowIndex, taskIds, taskRowIndex ); rowIndex = indexes?.rowIndex; taskRowIndex = indexes?.taskRowIndex; } else { let index = rowIndex; if (type === MODULE_NAMES.TICKET) { index = taskRowIndex === 0 ? rowIndex : taskRowIndex; } const cellValue = await fillCellValue( models, subdomain, column.name, item ); addCell(column, cellValue, sheet, columnNames, index); } } // customer or company checking } // end items for loop return { name: `${type} - ${moment().format("YYYY-MM-DD HH:mm")}`, response: await generateXlsx(workbook) }; }; ```
/content/code_sandbox/packages/plugin-tasks-api/src/exporterByUrl.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
2,526
```xml export declare const STATUS: { CONTINUE: number; SWITCHING_PROTOCOLS: number; OK: number; CREATED: number; ACCEPTED: number; NON_AUTHORITATIVE_INFORMATION: number; NO_CONTENT: number; RESET_CONTENT: number; PARTIAL_CONTENT: number; MULTIPLE_CHOICES: number; MOVED_PERMANTENTLY: number; FOUND: number; SEE_OTHER: number; NOT_MODIFIED: number; USE_PROXY: number; TEMPORARY_REDIRECT: number; BAD_REQUEST: number; UNAUTHORIZED: number; PAYMENT_REQUIRED: number; FORBIDDEN: number; NOT_FOUND: number; METHOD_NOT_ALLOWED: number; NOT_ACCEPTABLE: number; PROXY_AUTHENTICATION_REQUIRED: number; REQUEST_TIMEOUT: number; CONFLICT: number; GONE: number; LENGTH_REQUIRED: number; PRECONDITION_FAILED: number; PAYLOAD_TO_LARGE: number; URI_TOO_LONG: number; UNSUPPORTED_MEDIA_TYPE: number; RANGE_NOT_SATISFIABLE: number; EXPECTATION_FAILED: number; IM_A_TEAPOT: number; UPGRADE_REQUIRED: number; INTERNAL_SERVER_ERROR: number; NOT_IMPLEMENTED: number; BAD_GATEWAY: number; SERVICE_UNAVAILABLE: number; GATEWAY_TIMEOUT: number; HTTP_VERSION_NOT_SUPPORTED: number; PROCESSING: number; MULTI_STATUS: number; IM_USED: number; PERMANENT_REDIRECT: number; UNPROCESSABLE_ENTRY: number; LOCKED: number; FAILED_DEPENDENCY: number; PRECONDITION_REQUIRED: number; TOO_MANY_REQUESTS: number; REQUEST_HEADER_FIELDS_TOO_LARGE: number; UNAVAILABLE_FOR_LEGAL_REASONS: number; VARIANT_ALSO_NEGOTIATES: number; INSUFFICIENT_STORAGE: number; NETWORK_AUTHENTICATION_REQUIRED: number; }; export declare const STATUS_CODE_INFO: { '100': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '101': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '200': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '201': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '202': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '203': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '204': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '205': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '206': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '300': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '301': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '302': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '303': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '304': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '305': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '307': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '400': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '401': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '402': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '403': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '404': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '405': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '406': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '407': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '408': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '409': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '410': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '411': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '412': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '413': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '414': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '415': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '416': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '417': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '418': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '426': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '500': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '501': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '502': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '503': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '504': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '505': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '102': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '207': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '226': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '308': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '422': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '423': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '424': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '428': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '429': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '431': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '451': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '506': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '507': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; '511': { 'code': number; 'text': string; 'description': string; 'spec_title': string; 'spec_href': string; }; }; /** * get the status text from StatusCode */ export declare function getStatusText(status: number): any; /** * Returns true if the the Http Status Code is 200-299 (success) */ export declare function isSuccess(status: number): boolean; ```
/content/code_sandbox/http-status-codes.d.ts
xml
2016-04-27T19:02:56
2024-08-04T22:17:17
in-memory-web-api
angular/in-memory-web-api
1,179
2,657
```xml /* * Wire * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with this program. If not, see path_to_url * */ export function getIceCandidatesTypes(iceCandidates: string[]): Record<string, number> { return iceCandidates.reduce<Record<string, number>>((types, candidateStr) => { const typeMatches = candidateStr.match(/typ (\w+)/); if (!typeMatches) { return types; } const candidateType = typeMatches[1]; types[candidateType] = types[candidateType] + 1 || 1; return types; }, {}); } /** * Returns `true` if the number and types of ice candidates gathered are sufficient to start a call * * @param peerConnectionConfig the configuration of the peerConnection that initiated the ICE candidate gathering * @param iceCandidates ICE candidate strings from SDP * @returns `true` if the candidates gathered are enough to send a SDP */ export function isValidIceCandidatesGathering( peerConnectionConfig: RTCConfiguration, iceCandidates: string[], ): boolean { if (iceCandidates.length <= 0) { // if there are no candidates, no need to check for more conditions // the call cannot work return false; } const numberOfRelays = iceCandidates.filter(candidate => candidate.toLowerCase().includes('relay')).length; const numberOfIceServers = (peerConnectionConfig.iceServers || []).length; if (numberOfIceServers <= 0) { return true; } return numberOfRelays >= 1; } ```
/content/code_sandbox/src/script/util/PeerConnectionUtil.ts
xml
2016-07-21T15:34:05
2024-08-16T11:40:13
wire-webapp
wireapp/wire-webapp
1,125
391
```xml <resources> <string name="app_name">Luban</string> <string name="choose_image"></string> </resources> ```
/content/code_sandbox/example/src/main/res/values/strings.xml
xml
2016-07-24T07:43:21
2024-08-15T11:25:40
Luban
Curzibn/Luban
13,542
31
```xml const tree = [ { List: ['fileinto', 'imap4flags', 'reject'], Type: 'Require', }, { Type: 'Reject', Message: 'No message here please', }, ]; const simple = undefined; export default { tree, simple }; ```
/content/code_sandbox/packages/sieve/fixtures/v2InvalidStructure.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
62
```xml import { c } from 'ttag'; import { ButtonLike } from '@proton/atoms'; import { APPS } from '@proton/shared/lib/constants'; import { Alert, SettingsLink } from '../../components'; import { useOrganization } from '../../hooks'; interface Props { onClose?: () => void; } const AddressesSection = ({ onClose }: Props) => { const [organization] = useOrganization(); if (!organization?.HasKeys) { return ( <div className="mb-4"> <ButtonLike as={SettingsLink} onClick={() => onClose?.()} path="/identity-addresses#addresses" app={APPS.PROTONMAIL} >{c('Action').t`Add address`}</ButtonLike> </div> ); } if (organization?.MaxMembers > 1) { return ( <> <Alert className="mb-4">{c('Info for domain modal') .t`Add a new user to your organization and create an address for it.`}</Alert> <div className="mb-4"> <ButtonLike as={SettingsLink} color="norm" onClick={() => onClose?.()} path="/users-addresses">{c( 'Action' ).t`Add user`}</ButtonLike> </div> <Alert className="mb-4">{c('Info for domain modal') .t`Add a new address for the existing users of your organization.`}</Alert> <div className="mb-4"> <ButtonLike as={SettingsLink} color="norm" onClick={() => onClose?.()} path="/users-addresses">{c( 'Action' ).t`Add address`}</ButtonLike> </div> </> ); } return ( <div className="mb-4"> <ButtonLike as={SettingsLink} onClick={() => onClose?.()} path="/users-addresses">{c('Action') .t`Add address`}</ButtonLike> </div> ); }; export default AddressesSection; ```
/content/code_sandbox/packages/components/containers/domains/AddressesSection.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
432
```xml import { Component, OnInit } from '@angular/core'; import { BroadcastingStartRequestedEvent, BroadcastingStopRequestedEvent, RecordingDeleteRequestedEvent, RecordingStartRequestedEvent, RecordingStopRequestedEvent, Room, RoomEvent } from 'openvidu-components-angular'; import { RestService } from '../services/rest.service'; import { CustomDevice } from 'dist/openvidu-components-angular/lib/models/device.model'; import { LangOption } from 'dist/openvidu-components-angular/lib/models/lang.model'; import { ActivatedRoute, Router } from '@angular/router'; @Component({ selector: 'app-call', templateUrl: './call.component.html', styleUrls: ['./call.component.scss'] }) export class CallComponent implements OnInit { roomName = 'daily-call'; token: string; tokenError: string | undefined; isSessionAlive: boolean = false; private staticVideos = [ '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 'path_to_url 'path_to_url 'path_to_url 'path_to_url 'path_to_url 'path_to_url 'path_to_url ]; private areStaticVideosEnabled = false; constructor( private restService: RestService, private router: Router, private activatedRoute: ActivatedRoute ) {} async ngOnInit() { this.activatedRoute.queryParams.subscribe((params) => { this.areStaticVideosEnabled = params['staticVideos'] === 'true'; console.log('Static videos enabled: ', this.areStaticVideosEnabled); }); if (this.areStaticVideosEnabled) { setTimeout(() => { const videoElements = document.querySelectorAll('video'); this.replaceWithStaticVideos(videoElements); }, 3000); } } async onTokenRequested(participantName: string) { await this.requestForTokens(participantName); } async onReadyToJoin() { console.warn('VC IS READY TO JOIN'); } onRoomCreated(room: Room) { console.warn('VC ROOM CREATED'); room.on(RoomEvent.Connected, () => { if (this.areStaticVideosEnabled) { setTimeout(() => { const videoElements = document.querySelectorAll('video'); this.replaceWithStaticVideos(videoElements); }, 3000); } }); room.on(RoomEvent.TrackPublished, (publication, participant) => { participant.videoTrackPublications.forEach((publication) => { if (this.areStaticVideosEnabled) { setTimeout(() => { if (publication.videoTrack?.attachedElements) { this.replaceWithStaticVideos(publication.videoTrack?.attachedElements); const firstVideo = this.staticVideos.shift(); this.staticVideos.push(firstVideo); } }, 2000); } }); }); } onVideoEnabledChanged(value: boolean) { console.warn('VC video enabled: ', value); } onVideoDeviceChanged(device: CustomDevice) { console.warn('VC video device changed: ', device); } onAudioEnabledChanged(value: boolean) { console.warn('VC audio enabled: ', value); } onAudioDeviceChanged(device: CustomDevice) { console.warn('VC audio device changed: ', device); } onScreenShareEnabledChanged(enabled: boolean) { console.warn('VC screenshare enabled: ', enabled); } onFullscreenEnabledChanged(enabled: boolean) { console.warn('VC fullscreen enabled: ', enabled); } onParticipantsPanelStatusChanged(event) { console.warn('VC participants panel status changed: ', event); } onChatPanelStatusChanged(event) { console.warn('VC chat status changed: ', event); } onRoomDisconnected() { this.isSessionAlive = false; console.log('VC LEAVE BUTTON CLICKED'); this.router.navigate(['/']); } onFullscreenButtonClicked() { console.warn('TOOLBAR fullscreen CLICKED'); } onParticipantsPanelButtonClicked() { console.warn('TOOLBAR participants CLICKED'); } onChatPanelButtonClicked() { console.warn('TOOLBAR chat CLICKED'); } onLeaveButtonClicked() { this.isSessionAlive = false; console.log('TOOLBAR LEAVE CLICKED'); } onLangChanged(event: LangOption) { console.warn('LANG CHANGED', event); } async onBroadcastingStartRequested(event: BroadcastingStartRequestedEvent) { console.log('START STREAMING', event); try { const resp = await this.restService.startBroadcasting(event.broadcastUrl); console.log('Broadcasting response ', resp); } catch (error) { console.error(error); } } async onBroadcastingStopRequested(event: BroadcastingStopRequestedEvent) { console.log('STOP STREAMING', event); try { const resp = await this.restService.stopBroadcasting(); console.log('Broadcasting response ', resp); } catch (error) { console.error(error); } } async onRecordingStartRequested(event: RecordingStartRequestedEvent) { console.warn('START RECORDING CLICKED', event); try { await this.restService.startRecording(this.roomName); } catch (error) { console.error(error); } } async onRecordingStopRequested(event: RecordingStopRequestedEvent) { console.warn('STOP RECORDING CLICKED', event); try { await this.restService.stopRecording(event); } catch (error) { console.error(error); } } async onRecordingDeleteRequested(event: RecordingDeleteRequestedEvent) { console.warn('DELETE RECORDING requested', event); try { await this.restService.deleteRecording(event); } catch (error) { console.error(error); } } private async requestForTokens(participantName: string) { try { const { token } = await this.restService.getTokenFromBackend(this.roomName, participantName); this.token = token; } catch (error) { console.error(error); this.tokenError = error.error; } } private replaceWithStaticVideos(videoElements) { let sourceIndex = 0; for (let i = 0; i < videoElements.length; i++) { const videoElement = videoElements[i]; videoElement.srcObject = null; videoElement.src = this.staticVideos[sourceIndex]; console.log(`Assigned ${this.staticVideos[sourceIndex]}`); sourceIndex = (sourceIndex + 1) % this.staticVideos.length; videoElement.addEventListener('ended', () => { // Allow loop videoElement.currentTime = 0; videoElement.play(); }); } } } ```
/content/code_sandbox/openvidu-components-angular/src/app/openvidu-call/call.component.ts
xml
2016-10-10T13:31:27
2024-08-15T12:14:04
openvidu
OpenVidu/openvidu
1,859
1,484
```xml #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/mps/OperationUtils.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/constant_pad_nd_native.h> #include <ATen/ops/reflection_pad1d_backward_native.h> #include <ATen/ops/reflection_pad1d_native.h> #include <ATen/ops/reflection_pad2d_backward_native.h> #include <ATen/ops/reflection_pad2d_native.h> #include <ATen/ops/reflection_pad3d_backward_native.h> #include <ATen/ops/reflection_pad3d_native.h> #include <ATen/ops/replication_pad1d_backward_native.h> #include <ATen/ops/replication_pad1d_native.h> #include <ATen/ops/replication_pad2d_backward_native.h> #include <ATen/ops/replication_pad2d_native.h> #include <ATen/ops/replication_pad3d_backward_native.h> #include <ATen/ops/replication_pad3d_native.h> #endif namespace at::native { namespace mps { // Pad operations (1D/2D/3D forward and backward) static Tensor& pad_out_template(Tensor& output, const Tensor& input_, IntArrayRef padding, const std::optional<Tensor>& grad_output_opt, MPSGraphPaddingMode mode, double constantValue, const string op_name) { using CachedGraph = MPSUnaryGradCachedGraph; const int padding_size = (int)padding.size(); int padding_dim = padding_size / 2; // either 1D, 2D, or 3D TORCH_CHECK( padding_size == 2 || padding_size == 4 || padding_size == 6, "invalid padding argument of size ", padding_size); const Tensor& grad_output_ = *(at::borrow_from_optional_tensor(grad_output_opt)); const bool is_backward_pass = grad_output_.defined(); int64_t nbatch = 1; int64_t ndims = input_.ndimension(); TORCH_CHECK(ndims >= (int64_t)padding_dim, "Length of pad should be no more than twice the number of " "dimensions of the input. Pad length is ", padding_size, "while the input has ", ndims, "dimensions."); // number of input dims with ConstantPad could be less than 2 int dim_w = padding_dim; int dim_h = padding_dim - 1; int dim_d = padding_dim - 2; int dim_slices = 0; if (!is_backward_pass && mode != MPSGraphPaddingModeConstant && ndims > padding_dim) { bool valid_dims = input_.size(1) != 0 && input_.size(padding_dim) != 0; TORCH_CHECK((ndims == 1 + padding_dim && valid_dims) || (ndims == 2 + padding_dim && valid_dims && input_.size(1 + padding_dim) != 0), "3D or 4D (batch mode) tensor expected for input, but got: ", input_); } if (ndims == padding_dim) { dim_w--; dim_h--; dim_d--; } else if (ndims > padding_dim + 1) { const int dim_diff = (int)ndims - padding_dim - 1; // this virtually inflates the padding with zeros if ndims > padding_dim + 2 padding_dim += dim_diff - 1; dim_w += dim_diff; dim_h += dim_diff; dim_d += dim_diff; dim_slices++; nbatch = input_.size(0); } int64_t pad_l = padding[0]; int64_t pad_r = padding[1]; int64_t pad_t = padding_size > 2 ? padding[2] : 0; int64_t pad_b = padding_size > 2 ? padding[3] : 0; int64_t pad_front = padding_size > 4 ? padding[4] : 0; int64_t pad_back = padding_size > 4 ? padding[5] : 0; int64_t nplane = input_.size(dim_slices); int64_t input_w = input_.size(dim_w); int64_t output_w = input_w + pad_l + pad_r; int64_t input_h = padding_dim > 1 ? input_.size(dim_h) : 0; int64_t output_h = padding_dim > 1 ? input_h + pad_t + pad_b : 0; int64_t input_d = padding_dim > 2 ? input_.size(dim_d) : 0; int64_t output_d = padding_dim > 2 ? input_d + pad_front + pad_back : 0; Tensor grad_output, input = input_; if (!is_backward_pass) { TORCH_CHECK(output_w >= 1 || output_h >= padding_dim - 1, "input (H: ", input_h, ", W: ", input_w, ") is too small. Calculated " "output H: ", output_h, " W: ", output_w); std::vector<int64_t> outputSizes; if (mode == MPSGraphPaddingModeConstant) { // support arbitrary input dimensions for constant pad. auto input_sizes = input_.sizes(); auto ori_padding_dim = padding_size / 2; auto l_diff = ndims - ori_padding_dim; for (size_t i = 0; i < (size_t)l_diff; i++) { outputSizes.emplace_back(input_sizes[i]); } for (const auto i : c10::irange((size_t)ori_padding_dim)) { auto pad_idx = padding.size() - ((i + 1) * 2); auto new_dim = input_sizes[l_diff + i] + padding[pad_idx] + padding[pad_idx + 1]; outputSizes.emplace_back(new_dim); } } else { // these checks are only relevant for reflection padding (code taken from ReflectionPad.cpp) if (mode == MPSGraphPaddingModeReflect) { TORCH_CHECK(pad_l < input_w && pad_r < input_w, "Argument #4: Padding size should be less than the corresponding " "input dimension, but got: padding (", pad_l, ", ", pad_r, ") at dimension ", dim_w, " of input ", input_.sizes()); if (padding_dim > 1) { TORCH_CHECK(pad_t < input_h && pad_b < input_h, "Argument #6: Padding size should be less than the corresponding " "input dimension, but got: padding (", pad_t, ", ", pad_b, ") at dimension ", dim_h, " of input ", input_.sizes()); } if (padding_dim > 2) { TORCH_CHECK(pad_front < input_d && pad_back < input_d, "Argument #8: Padding size should be less than the corresponding " "input dimension, but got: padding (", pad_front, ", ", pad_back, ") at dimension ", dim_d, " of input ", input_.sizes()); } } outputSizes.insert(outputSizes.begin(), output_w); if (padding_dim >= 2) outputSizes.insert(outputSizes.begin(), output_h); if (padding_dim >= 3) outputSizes.insert(outputSizes.begin(), output_d); if (ndims >= 1 + padding_dim) outputSizes.insert(outputSizes.begin(), nplane); if (ndims >= 2 + padding_dim) outputSizes.insert(outputSizes.begin(), nbatch); } output.resize_(outputSizes); if (output.numel() == 0) { return output; } if (input_.numel() == 0) { output.fill_(constantValue); return output; } input = input_.contiguous(); } else { TORCH_CHECK(output_w == grad_output_.size(dim_w), "gradOutput width unexpected. Expected: ", output_w, ", Got: ", grad_output_.size(dim_w)); if (padding_dim > 1) { TORCH_CHECK(output_h == grad_output_.size(dim_h), "gradOutput height unexpected. Expected: ", output_h, ", Got: ", grad_output_.size(dim_h)); } output.resize_as_(input); if (output.numel() == 0 || grad_output_.numel() == 0) return output; grad_output = grad_output_.contiguous(); } const uint32_t dims_mask = (1U << ndims) - 1; uint32_t startMask = dims_mask, endMask = dims_mask; std::vector<NSNumber*> leftPadVec(ndims, @(0)); std::vector<NSNumber*> rightPadVec(ndims, @(0)); std::vector<NSNumber*> startsVec(ndims, @(0)); std::vector<NSNumber*> endsVec(ndims, @(0)); std::vector<NSNumber*> stridesVec(ndims, @(1)); for (int64_t pdim = 0; pdim < padding_size / 2; pdim++) { const int64_t leftIdx = pdim * 2; const int64_t rightIdx = pdim * 2 + 1; const int64_t padIdx = ndims - pdim - 1; leftPadVec[padIdx] = @(padding[leftIdx]); rightPadVec[padIdx] = @(padding[rightIdx]); // workaround for negative padding issue in backward pass if (is_backward_pass) { if (padding[leftIdx] < 0) { leftPadVec[padIdx] = @(0); startsVec[padIdx] = @(-padding[leftIdx]); startMask &= ~(1U << padIdx); } if (padding[rightIdx] < 0) { rightPadVec[padIdx] = @(0); endsVec[padIdx] = @(input.size(padIdx) + padding[rightIdx]); endMask &= ~(1U << padIdx); } } } MPSShape* leftPadding = [NSArray arrayWithObjects:leftPadVec.data() count:ndims]; MPSShape* rightPadding = [NSArray arrayWithObjects:rightPadVec.data() count:ndims]; MPSDataType dataType = getMPSScalarType(input.scalar_type()); // workaround for Bool type assert with Constant padding if (input.scalar_type() == kBool) { dataType = MPSDataTypeInt8; } @autoreleasepool { string key = op_name + getTensorsStringKey({input, grad_output, output}) + ":[" + getArrayRefString(padding) + "]:" + std::to_string(constantValue); auto cachedGraph = LookUpOrCreateCachedGraph<CachedGraph>(key, [&](auto mpsGraph, auto newCachedGraph) { newCachedGraph->inputTensor_ = mpsGraphRankedPlaceHolder(mpsGraph, dataType, getMPSShape(input)); const bool needsSlice = startMask != dims_mask || endMask != dims_mask; if (!is_backward_pass) { MPSGraphTensor* padTensor = [mpsGraph padTensor:newCachedGraph->inputTensor_ withPaddingMode:mode leftPadding:leftPadding rightPadding:rightPadding constantValue:constantValue name:nil]; // workaround for the right padding bug in Monterey if (needsSlice) { newCachedGraph->gradInputTensor_ = [mpsGraph sliceTensor:padTensor starts:[NSArray arrayWithObjects:startsVec.data() count:ndims] ends:[NSArray arrayWithObjects:endsVec.data() count:ndims] strides:[NSArray arrayWithObjects:stridesVec.data() count:ndims] startMask:startMask endMask:endMask squeezeMask:0 name:nil]; } else { newCachedGraph->gradInputTensor_ = padTensor; } } else { newCachedGraph->gradOutputTensor_ = mpsGraphRankedPlaceHolder(mpsGraph, dataType, getMPSShape(grad_output)); MPSGraphTensor* padGradTensor = [mpsGraph padGradientWithIncomingGradientTensor:newCachedGraph->gradOutputTensor_ sourceTensor:newCachedGraph->inputTensor_ paddingMode:mode leftPadding:leftPadding rightPadding:rightPadding name:nil]; // workaround for negative padding issue with padGradientWithIncomingGradientTensor() if (needsSlice) { newCachedGraph->gradInputTensor_ = [mpsGraph sliceGradientTensor:padGradTensor fwdInShapeTensor:[mpsGraph shapeOfTensor:newCachedGraph->inputTensor_ name:nil] starts:[NSArray arrayWithObjects:startsVec.data() count:ndims] ends:[NSArray arrayWithObjects:endsVec.data() count:ndims] strides:[NSArray arrayWithObjects:stridesVec.data() count:ndims] startMask:startMask endMask:endMask squeezeMask:0 name:nil]; } else { newCachedGraph->gradInputTensor_ = padGradTensor; } } }); Placeholder inputPlaceholder = Placeholder(cachedGraph->inputTensor_, input, nullptr, true, dataType); Placeholder outputPlaceholder = Placeholder(cachedGraph->gradInputTensor_, output, nullptr, true, dataType); Placeholder gradOutputPlaceholder = !is_backward_pass ? Placeholder() : Placeholder(cachedGraph->gradOutputTensor_, grad_output, nullptr, true, dataType); NSMutableDictionary* feeds = [[NSMutableDictionary new] autorelease]; feeds[inputPlaceholder.getMPSGraphTensor()] = inputPlaceholder.getMPSGraphTensorData(); if (is_backward_pass) { feeds[gradOutputPlaceholder.getMPSGraphTensor()] = gradOutputPlaceholder.getMPSGraphTensorData(); } runMPSGraph(getCurrentMPSStream(), cachedGraph->graph(), feeds, outputPlaceholder); } return output; } } // namespace mps // 1D Reflection and Replication Padding TORCH_IMPL_FUNC(reflection_pad1d_out_mps) (const Tensor& input, IntArrayRef padding, const Tensor& output) { mps::pad_out_template(const_cast<Tensor&>(output), input, padding, std::nullopt, MPSGraphPaddingModeReflect, 0.0, "reflection_pad1d_out_mps"); } TORCH_IMPL_FUNC(reflection_pad1d_backward_out_mps) (const Tensor& grad_output, const Tensor& input, IntArrayRef padding, const Tensor& grad_input) { grad_input.resize_as_(input).zero_(); mps::pad_out_template(const_cast<Tensor&>(grad_input), input, padding, grad_output, MPSGraphPaddingModeReflect, 0.0, "reflection_pad1d_backward_out_mps"); } TORCH_IMPL_FUNC(replication_pad1d_out_mps) (const Tensor& input, IntArrayRef padding, const Tensor& output) { mps::pad_out_template(const_cast<Tensor&>(output), input, padding, std::nullopt, MPSGraphPaddingModeClampToEdge, 0.0, "replication_pad1d_out_mps"); } TORCH_IMPL_FUNC(replication_pad1d_backward_out_mps) (const Tensor& grad_output, const Tensor& input, IntArrayRef padding, const Tensor& grad_input) { grad_input.resize_as_(input).zero_(); mps::pad_out_template(const_cast<Tensor&>(grad_input), input, padding, grad_output, MPSGraphPaddingModeClampToEdge, 0.0, "replication_pad1d_backward_out_mps"); } // 2D Reflection and Replication Padding Tensor& reflection_pad2d_out_mps(const Tensor& input, IntArrayRef padding, Tensor& output) { return mps::pad_out_template(output, input, padding, std::nullopt, MPSGraphPaddingModeReflect, 0.0, __func__); } Tensor reflection_pad2d_mps(const Tensor& input, IntArrayRef padding) { Tensor output = at::empty({0}, input.options()); return mps::pad_out_template(output, input, padding, std::nullopt, MPSGraphPaddingModeReflect, 0.0, __func__); } Tensor& reflection_pad2d_backward_out_mps(const Tensor& grad_output, const Tensor& input, IntArrayRef padding, Tensor& grad_input) { grad_input.resize_as_(input).zero_(); return mps::pad_out_template(grad_input, input, padding, grad_output, MPSGraphPaddingModeReflect, 0.0, __func__); } Tensor reflection_pad2d_backward_mps(const Tensor& grad_output, const Tensor& input, IntArrayRef padding) { auto grad_input = at::zeros_like(input, LEGACY_CONTIGUOUS_MEMORY_FORMAT); return mps::pad_out_template(grad_input, input, padding, grad_output, MPSGraphPaddingModeReflect, 0.0, __func__); } TORCH_IMPL_FUNC(replication_pad2d_out_mps) (const Tensor& input, IntArrayRef padding, const Tensor& output) { mps::pad_out_template(const_cast<Tensor&>(output), input, padding, std::nullopt, MPSGraphPaddingModeClampToEdge, 0.0, "replication_pad2d_out_mps"); } Tensor& replication_pad2d_backward_out_mps(const Tensor& grad_output, const Tensor& input, IntArrayRef padding, Tensor& grad_input) { grad_input.resize_as_(input).zero_(); return mps::pad_out_template(grad_input, input, padding, grad_output, MPSGraphPaddingModeClampToEdge, 0.0, __func__); } Tensor replication_pad2d_backward_mps(const Tensor& grad_output, const Tensor& input, IntArrayRef padding) { auto grad_input = at::zeros_like(input, LEGACY_CONTIGUOUS_MEMORY_FORMAT); return mps::pad_out_template(grad_input, input, padding, grad_output, MPSGraphPaddingModeClampToEdge, 0.0, __func__); } // 3D Reflection and Replication Padding TORCH_IMPL_FUNC(reflection_pad3d_out_mps) (const Tensor& input, IntArrayRef padding, const Tensor& output) { mps::pad_out_template(const_cast<Tensor&>(output), input, padding, std::nullopt, MPSGraphPaddingModeReflect, 0.0, "reflection_pad3d_out_mps"); } TORCH_IMPL_FUNC(reflection_pad3d_backward_out_mps) (const Tensor& grad_output, const Tensor& input, IntArrayRef padding, const Tensor& grad_input) { grad_input.resize_as_(input).zero_(); mps::pad_out_template(const_cast<Tensor&>(grad_input), input, padding, grad_output, MPSGraphPaddingModeReflect, 0.0, "reflection_pad3d_backward_out_mps"); } TORCH_IMPL_FUNC(replication_pad3d_out_mps) (const Tensor& input, IntArrayRef padding, const Tensor& output) { mps::pad_out_template(const_cast<Tensor&>(output), input, padding, std::nullopt, MPSGraphPaddingModeClampToEdge, 0.0, "replication_pad3d_out_mps"); } Tensor& replication_pad3d_backward_out_mps(const Tensor& grad_output, const Tensor& input, IntArrayRef padding, Tensor& grad_input) { grad_input.resize_as_(input).zero_(); return mps::pad_out_template(grad_input, input, padding, grad_output, MPSGraphPaddingModeClampToEdge, 0.0, __func__); } Tensor replication_pad3d_backward_mps(const Tensor& grad_output, const Tensor& input, IntArrayRef padding) { auto grad_input = at::zeros_like(input, LEGACY_CONTIGUOUS_MEMORY_FORMAT); return mps::pad_out_template(grad_input, input, padding, grad_output, MPSGraphPaddingModeClampToEdge, 0.0, __func__); } // backward pass is explicitly handled in autograd by negating the "pad" argument Tensor constant_pad_nd_mps(const Tensor& self, IntArrayRef pad, const Scalar& value) { if (pad.size() > 6) { TORCH_WARN_ONCE("MPS: The constant padding of more than 3 dimensions is not currently supported natively. ", "It uses View Ops default implementation to run. This may have performance implications."); return at::native::constant_pad_nd(self, pad, value); } Tensor output = at::empty({0}, self.options()); return mps::pad_out_template( output, self, pad, std::nullopt, MPSGraphPaddingModeConstant, value.toDouble(), __func__); } } // namespace at::native ```
/content/code_sandbox/aten/src/ATen/native/mps/operations/Pad.mm
xml
2016-08-13T05:26:41
2024-08-16T19:59:14
pytorch
pytorch/pytorch
81,372
4,569
```xml <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="path_to_url"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProductVersion>9.0.21022</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{F3E3226B-1032-489C-BCFE-FB89D775EEB7}</ProjectGuid> <OutputType>Exe</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>InstallFiles</RootNamespace> <AssemblyName>ReleaseFolder</AssemblyName> <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> <FileUpgradeFlags> </FileUpgradeFlags> <OldToolsVersion>4.0</OldToolsVersion> <UpgradeBackupLocation> </UpgradeBackupLocation> <PublishUrl>publish\</PublishUrl> <Install>true</Install> <InstallFrom>Disk</InstallFrom> <UpdateEnabled>false</UpdateEnabled> <UpdateMode>Foreground</UpdateMode> <UpdateInterval>7</UpdateInterval> <UpdateIntervalUnits>Days</UpdateIntervalUnits> <UpdatePeriodically>false</UpdatePeriodically> <UpdateRequired>false</UpdateRequired> <MapFileExtensions>true</MapFileExtensions> <ApplicationRevision>0</ApplicationRevision> <ApplicationVersion>1.0.0.%2a</ApplicationVersion> <IsWebBootstrapper>false</IsWebBootstrapper> <UseApplicationTrust>false</UseApplicationTrust> <BootstrapperEnabled>true</BootstrapperEnabled> <TargetFrameworkProfile /> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\ReleaseFolder\</OutputPath> <IntermediateOutputPath>bin\ReleaseFolder\obj\</IntermediateOutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <Prefer32Bit>false</Prefer32Bit> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <OutputPath>bin\ReleaseFolder\</OutputPath> <IntermediateOutputPath>bin\ReleaseFolder\obj\</IntermediateOutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <Prefer32Bit>false</Prefer32Bit> </PropertyGroup> <ItemGroup> <Reference Include="System" /> <Reference Include="System.Core"> <RequiredTargetFramework>3.5</RequiredTargetFramework> </Reference> <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml.Linq"> <RequiredTargetFramework>3.5</RequiredTargetFramework> </Reference> <Reference Include="System.Data.DataSetExtensions"> <RequiredTargetFramework>3.5</RequiredTargetFramework> </Reference> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\WixSharp\WixSharp.csproj"> <Project>{8860B29B-749F-4925-86C8-F9C4B93C9DA5}</Project> <Name>WixSharp</Name> </ProjectReference> </ItemGroup> <ItemGroup> <Compile Include="..\Wix# Samples\Release Folder\setup.cs"> <Link>setup.cs</Link> </Compile> </ItemGroup> <ItemGroup> <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> <Visible>False</Visible> <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> <Install>false</Install> </BootstrapperPackage> <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> <Visible>False</Visible> <ProductName>.NET Framework 3.5 SP1</ProductName> <Install>true</Install> </BootstrapperPackage> <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> <Visible>False</Visible> <ProductName>Windows Installer 3.1</ProductName> <Install>true</Install> </BootstrapperPackage> </ItemGroup> <ItemGroup> <None Include="app.config" /> </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/Source/src/WixSharp.Samples/VSProjects/ReleaseFolder.csproj
xml
2016-01-16T05:51:01
2024-08-16T12:26:25
wixsharp
oleg-shilo/wixsharp
1,077
1,214
```xml /* eslint-disable jsx-a11y/label-has-associated-control, jsx-a11y/label-has-for */ import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { get } from 'lodash'; import { defineMessages, intlShape, FormattedHTMLMessage } from 'react-intl'; import vjf from 'mobx-react-form/lib/validators/VJF'; import classnames from 'classnames'; import { Checkbox } from 'react-polymorph/lib/components/Checkbox'; import { Input } from 'react-polymorph/lib/components/Input'; import ReactToolboxMobxForm from '../../../utils/ReactToolboxMobxForm'; import { FORM_VALIDATION_DEBOUNCE_WAIT } from '../../../config/timingConfig'; import { formattedWalletAmount } from '../../../utils/formatters'; import DialogCloseButton from '../../widgets/DialogCloseButton'; import { FormattedHTMLMessageWithLink } from '../../widgets/FormattedHTMLMessageWithLink'; import Dialog from '../../widgets/Dialog'; import Wallet, { HwDeviceStatuses } from '../../../domains/Wallet'; import HardwareWalletStatus from '../../hardware-wallet/HardwareWalletStatus'; import type { DelegationCalculateFeeResponse } from '../../../api/staking/types'; import type { HwDeviceStatus } from '../../../domains/Wallet'; import styles from './UndelegateWalletConfirmationDialog.scss'; import globalMessages from '../../../i18n/global-messages'; import LocalizableError from '../../../i18n/LocalizableError'; import { submitOnEnter } from '../../../utils/form'; const messages = defineMessages({ title: { id: 'wallet.settings.undelegate.dialog.title', defaultMessage: '!!!Undelegate', description: 'Title for the "Undelegate wallet" dialog.', }, confirmButtonLabel: { id: 'wallet.settings.undelegate.dialog.confirmButtonLabel', defaultMessage: '!!!Undelegate', description: 'Label for the "Undelegate" button in the undelegate wallet dialog.', }, descriptionWithTicker: { id: 'wallet.settings.undelegate.dialog.descriptionWithTicker', defaultMessage: '!!!<p>The stake from your wallet <strong>{walletName}</strong> is currently delegated to the <strong>[{stakePoolTicker}] {stakePoolName}</strong> stake pool.</p><p>Do you want to undelegate your stake and stop earning rewards?</p>', description: 'Description of current delegation of wallet in the "Undelegate wallet" dialog.', }, descriptionWithUnknownTicker: { id: 'wallet.settings.undelegate.dialog.descriptionWithUnknownTicker', defaultMessage: '!!!<p>The stake from your wallet <strong>{walletName}</strong> is currently delegated to the <strong>{stakePoolTicker}</strong> stake pool.</p><p>Do you want to undelegate your stake and stop earning rewards?</p>', description: 'Description of current delegation of wallet in the "Undelegate wallet" dialog.', }, unknownStakePoolLabel: { id: 'wallet.settings.undelegate.dialog.unknownStakePoolLabel', defaultMessage: '!!!unknown', description: 'unknown stake pool label in the "Undelegate wallet" dialog.', }, confirmUnsupportNotice: { id: 'wallet.settings.undelegate.dialog.confirmUnsupportNotice', defaultMessage: '!!!I understand that I am not supporting the Cardano network when my stake is undelegated.', description: 'Notice to confirm if the user understands unsupporting Cardano network after undelegation', }, confirmIneligibleNotice: { id: 'wallet.settings.undelegate.dialog.confirmIneligibleNotice', defaultMessage: '!!!I understand that I will not be eligible to earn rewards when my stake is undelegated.', description: 'Notice to confirm if the user understands non-earning rewards after undelegation', }, feesLabel: { id: 'wallet.settings.undelegate.dialog.feesLabel', defaultMessage: '!!!Fees', description: 'Fees label in the "Undelegate wallet" dialog.', }, depositLabel: { id: 'wallet.settings.undelegate.dialog.depositLabel', defaultMessage: '!!!Deposits reclaimed', description: 'Deposits reclaimed label in the "Undelegate wallet" dialog.', }, spendingPasswordLabel: { id: 'wallet.settings.undelegate.dialog.spendingPasswordLabel', defaultMessage: '!!!Spending password', description: 'Spending password label in the "Undelegate wallet" dialog.', }, spendingPasswordPlaceholder: { id: 'wallet.settings.undelegate.dialog.spendingPasswordPlaceholder', defaultMessage: '!!!Type your spending password here', description: 'Spending password placeholder in the "Undelegate wallet" dialog.', }, passwordErrorMessage: { id: 'wallet.settings.undelegate.dialog.passwordError', defaultMessage: '!!!Incorrect spending password.', description: 'Label for password error in the "Undelegate wallet" dialog.', }, calculatingFees: { id: 'wallet.settings.undelegate.dialog.calculatingFees', defaultMessage: '!!!Calculating fees', description: '"Calculating fees" message in the "Undelegate wallet" dialog.', }, }); messages.fieldIsRequired = globalMessages.fieldIsRequired; type Props = { selectedWallet: Wallet | null | undefined; stakePoolName: string | null | undefined; stakePoolTicker: string | null | undefined; onConfirm: (...args: Array<any>) => any; onCancel: (...args: Array<any>) => any; onExternalLinkClick: (...args: Array<any>) => any; isSubmitting: boolean; error: LocalizableError | null | undefined; fees: DelegationCalculateFeeResponse | null | undefined; hwDeviceStatus: HwDeviceStatus; isTrezor: boolean; }; interface FormFields { confirmUnsupportChecked: string; confirmIneligibleChecked: string; passphrase: string; } @observer class UndelegateWalletConfirmationDialog extends Component<Props> { static contextTypes = { intl: intlShape.isRequired, }; form = new ReactToolboxMobxForm<FormFields>( { fields: { confirmUnsupportChecked: { type: 'checkbox', label: this.context.intl.formatMessage( messages.confirmUnsupportNotice ), value: false, validators: [ ({ field }) => { if (field.value === false) { return [ false, this.context.intl.formatMessage(messages.fieldIsRequired), ]; } return [true]; }, ], }, confirmIneligibleChecked: { type: 'checkbox', label: this.context.intl.formatMessage( messages.confirmIneligibleNotice ), value: false, validators: [ ({ field }) => { if (field.value === false) { return [ false, this.context.intl.formatMessage(messages.fieldIsRequired), ]; } return [true]; }, ], }, passphrase: { type: 'password', label: this.context.intl.formatMessage( messages.spendingPasswordLabel ), placeholder: this.context.intl.formatMessage( messages.spendingPasswordPlaceholder ), value: '', validators: [ ({ field }) => { const isHardwareWallet = get( this.props.selectedWallet, 'isHardwareWallet' ); if (isHardwareWallet) return [true]; if (field.value === '') { return [ false, this.context.intl.formatMessage(messages.fieldIsRequired), ]; } return [true]; }, ], }, }, }, { plugins: { vjf: vjf(), }, options: { validateOnChange: true, validationDebounceWait: FORM_VALIDATION_DEBOUNCE_WAIT, }, } ); confirmationDisabled = () => { const { form } = this; const { fees, isSubmitting, hwDeviceStatus, selectedWallet } = this.props; const { isValid: unsupportCheckboxIsValid } = form.$( 'confirmUnsupportChecked' ); const { isValid: ineligibleCheckboxIsValid } = form.$( 'confirmIneligibleChecked' ); const { isValid: passphraseIsValid } = form.$('passphrase'); const isHardwareWallet = get(selectedWallet, 'isHardwareWallet'); if (isHardwareWallet) { return ( hwDeviceStatus !== HwDeviceStatuses.VERIFYING_TRANSACTION_SUCCEEDED ); } return ( isSubmitting || !fees || !unsupportCheckboxIsValid || !ineligibleCheckboxIsValid || !passphraseIsValid ); }; handleSubmit = () => { if (this.confirmationDisabled()) { return false; } return this.form.submit({ onSuccess: (form) => { const { selectedWallet, onConfirm } = this.props; const isHardwareWallet = get(selectedWallet, 'isHardwareWallet'); const { passphrase } = form.values(); onConfirm(passphrase, isHardwareWallet); }, onError: () => null, }); }; handleSubmitOnEnter = (event: KeyboardEvent) => submitOnEnter(this.handleSubmit, event); generateErrorElement = () => { const { error, onExternalLinkClick } = this.props; if (!error) { return null; } const errorHasLink = !!get(error, 'values.linkLabel', false); const result = errorHasLink ? ( <FormattedHTMLMessageWithLink // @ts-ignore ts-migrate(2769) FIXME: No overload matches this call. message={error} onExternalLinkClick={onExternalLinkClick} /> ) : ( this.context.intl.formatMessage(error) ); return result; }; render() { const { form } = this; const { intl } = this.context; const unsupportCheckboxField = form.$('confirmUnsupportChecked'); const ineligibleCheckboxField = form.$('confirmIneligibleChecked'); const passphraseField = form.$('passphrase'); const { selectedWallet, stakePoolName, stakePoolTicker, onCancel, isSubmitting, fees, hwDeviceStatus, onExternalLinkClick, isTrezor, } = this.props; const walletName = get(selectedWallet, 'name'); const isHardwareWallet = get(selectedWallet, 'isHardwareWallet'); const confirmationDisabled = this.confirmationDisabled(); const buttonClasses = classnames([ 'attention', isSubmitting ? styles.isSubmitting : null, ]); const actions = [ { label: intl.formatMessage(globalMessages.cancel), onClick: !isSubmitting ? onCancel : () => null, }, { className: buttonClasses, label: intl.formatMessage(messages.confirmButtonLabel), onClick: this.handleSubmit, disabled: confirmationDisabled, primary: true, }, ]; const errorElement = this.generateErrorElement(); return ( <Dialog title={intl.formatMessage(messages.title)} subtitle={walletName} actions={actions} closeOnOverlayClick onClose={!isSubmitting ? onCancel : () => null} className={styles.dialog} closeButton={ <DialogCloseButton onClose={!isSubmitting ? onCancel : () => null} /> } > <div className={styles.description}> {stakePoolTicker ? ( <FormattedHTMLMessage {...messages.descriptionWithTicker} values={{ walletName, stakePoolName, stakePoolTicker, }} /> ) : ( <FormattedHTMLMessage {...messages.descriptionWithUnknownTicker} values={{ walletName, stakePoolTicker: intl.formatMessage( messages.unknownStakePoolLabel ), }} /> )} </div> <Checkbox {...unsupportCheckboxField.bind()} error={unsupportCheckboxField.error} /> <Checkbox {...ineligibleCheckboxField.bind()} error={ineligibleCheckboxField.error} /> <div className={styles.divider} /> <div className={styles.feesRow}> <div className={styles.feesWrapper}> <p className={styles.feesLabel}> {intl.formatMessage(messages.feesLabel)} </p> <p className={styles.feesAmount}> {!fees || !fees.fee ? ( <span className={styles.calculatingFeesLabel}> {intl.formatMessage(messages.calculatingFees)} </span> ) : ( <> <span>{formattedWalletAmount(fees.fee, false)}</span> <span className={styles.feesAmountLabel}> {` `} {intl.formatMessage(globalMessages.adaUnit)} </span> </> )} </p> </div> {fees && !fees.depositsReclaimed.isZero() && ( <div className={styles.depositWrapper}> <p className={styles.depositLabel}> {intl.formatMessage(messages.depositLabel)} </p> <p className={styles.depositAmount}> <span> {formattedWalletAmount(fees.depositsReclaimed, false)} </span> <span className={styles.depositAmountLabel}> {` `} {intl.formatMessage(globalMessages.adaUnit)} </span> </p> </div> )} </div> {isHardwareWallet ? ( <div className={styles.hardwareWalletStatusWrapper}> <HardwareWalletStatus hwDeviceStatus={hwDeviceStatus} walletName={walletName} isTrezor={isTrezor} onExternalLinkClick={onExternalLinkClick} /> </div> ) : ( <Input type="password" {...passphraseField.bind()} error={passphraseField.error} onKeyPress={this.handleSubmitOnEnter} /> )} {errorElement && <p className={styles.error}>{errorElement}</p>} </Dialog> ); } } export default UndelegateWalletConfirmationDialog; ```
/content/code_sandbox/source/renderer/app/components/wallet/settings/UndelegateWalletConfirmationDialog.tsx
xml
2016-10-05T13:48:54
2024-08-13T22:03:19
daedalus
input-output-hk/daedalus
1,230
3,030
```xml import { KeysRequest } from "../../../models/request/keys.request"; export class OrganizationKeysRequest extends KeysRequest { constructor(publicKey: string, encryptedPrivateKey: string) { super(publicKey, encryptedPrivateKey); } } ```
/content/code_sandbox/libs/common/src/admin-console/models/request/organization-keys.request.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
47
```xml import { combineReducers } from 'redux'; import { root as displayRecordsState, collectionState } from './collection'; import { State } from '../state'; import { UpdateDisplayRecordType, UpdateDisplayRecordPropertyType, SaveAsRecordType, SaveRecordType, MoveRecordType } from '../action/record'; import * as _ from 'lodash'; import { uiState } from './ui'; import { userState } from './user'; import { projectState } from './project'; import { environmentState } from './environment'; import { FetchLocalDataSuccessType } from '../action/local_data'; import { localDataState } from './local_data'; import { syncDefaultValue } from '../state/ui'; import { scheduleState } from './schedule'; import { ReloadType } from '../action/index'; import { DtoCollection } from '../common/interfaces/dto_collection'; import { DtoRecord } from '../common/interfaces/dto_record'; import { QuitProjectType, DisbandProjectType } from '../action/project'; import { getNewRecordState, RecordState } from '../state/collection'; import { stressTestState } from './stress'; import { SyncUserDataSuccessType } from '../action/user'; import { ConflictType } from '../misc/conflict_type'; import { newRecordFlag } from '../misc/constants'; import { ShowTimelineType, BatchCloseType } from '../action/ui'; import { CompareUtil } from '../utils/compare_util'; import { CloseAction } from '../misc/custom_type'; import { documentState } from './document'; export const reduceReducers = (...reducers) => { return (state, action) => reducers.reduce( (p, r) => r(p, action), state ); }; export function rootReducer(state: State, action: any): State { const intermediateState = combineReducers<State>({ localDataState, collectionState, displayRecordsState, uiState, userState, projectState, environmentState, scheduleState, stressTestState, documentState })(state, action); const finalState = multipleStateReducer(intermediateState, action); return finalState; }; export function multipleStateReducer(state: State, action: any): State { switch (action.type) { case SaveAsRecordType: case SaveRecordType: case MoveRecordType: { const record = action.value.record; const recordDict = state.collectionState.collectionsInfo.records[record.collectionId]; if (recordDict && recordDict[record.id]) { const history = recordDict[record.id].history; if (history && history.length > 0) { history[history.length - 1].user = state.userState.userInfo; } } return state; } case ReloadType: { location.reload(true); return state; } case ShowTimelineType: { let record; const ckeys = _.keys(state.collectionState.collectionsInfo.records); for (let cid of ckeys) { record = state.collectionState.collectionsInfo.records[cid][action.value]; if (record) { break; } } return { ...state, uiState: { ...state.uiState, timelineState: { isShow: true, record } } }; } case QuitProjectType: case DisbandProjectType: { const projectId = action.value.id; const originRecords = state.collectionState.collectionsInfo.records; const collections = _.chain(state.collectionState.collectionsInfo.collections).values<DtoCollection>().filter(c => c.projectId !== projectId).keyBy('id').value(); const records = _.pick(originRecords, _.keys(collections)) as _.Dictionary<_.Dictionary<DtoRecord>>; const newRecordState = getNewRecordState(); let recordStates = _.chain(state.displayRecordsState.recordStates).values<RecordState>().filter(c => !c.record.collectionId || !!collections[c.record.collectionId]).keyBy('record.id').value(); let recordsOrder = state.displayRecordsState.recordsOrder.filter(r => !!recordStates[r]); if (_.keys(recordStates).length === 0) { recordStates = { [newRecordState.record.id]: newRecordState }; recordsOrder = [newRecordState.record.id]; } const activeKey = recordStates[state.displayRecordsState.activeKey] ? state.displayRecordsState.activeKey : recordStates[_.keys(recordStates)[0]].record.id; return { ...state, collectionState: { ...state.collectionState, collectionsInfo: { ...state.collectionState.collectionsInfo, collections, records } }, displayRecordsState: { ...state.displayRecordsState, activeKey, recordsOrder, recordStates } }; } case UpdateDisplayRecordPropertyType: { const { activeKey, recordStates } = state.displayRecordsState; return updateStateRecord(state, { ...recordStates[activeKey].record, ...action.value }, ); } case UpdateDisplayRecordType: { return updateStateRecord(state, action.value); } case FetchLocalDataSuccessType: { if (!action.value) { return state; } const { displayRecordsState, uiState, collectionState, projectState, environmentState, scheduleState } = action.value as State; const onlineRecords = state.collectionState.collectionsInfo.records; // TODO: if record's collection is removed, should reset record's id and collection id. _.keys(displayRecordsState.recordStates).forEach(key => { const recordState = displayRecordsState.recordStates[key]; const { record, isChanged } = recordState; if (record) { recordState.parameterStatus = {}; recordState.isRequesting = false; const onlineRecordDict = onlineRecords[record.collectionId]; if (onlineRecordDict && onlineRecordDict[record.id]) { recordState.name = onlineRecordDict[record.id].name; if (!isChanged) { recordState.record = onlineRecordDict[record.id]; } } } }); // TODO: should give some tip for the diff between online data and local data. return { ...state, displayRecordsState, uiState: { ...uiState, syncState: syncDefaultValue }, collectionState: { ...state.collectionState, selectedProject: collectionState.selectedProject, openKeys: collectionState.openKeys.length > 0 ? collectionState.openKeys : state.collectionState.openKeys }, projectState: { ...state.projectState, activeProject: projectState.activeProject }, environmentState: { ...state.environmentState, activeEnv: environmentState.activeEnv }, scheduleState: { ...state.scheduleState, scheduleRecordsInfo: scheduleState.scheduleRecordsInfo || {}, activeSchedule: scheduleState.activeSchedule } }; } case SyncUserDataSuccessType: { const { collection } = action.value.result; const displayRecordsState = state.displayRecordsState; const newDisplayRecordState = { ...displayRecordsState, recordStates: { ...displayRecordsState.recordStates } }; if (!collection) { return state; } _.keys(displayRecordsState.recordStates).forEach(key => { const recordState = displayRecordsState.recordStates[key]; const { record, isChanged } = recordState; const isNew = key.startsWith(newRecordFlag); const getOnlineRecord = () => collection.records[record.collectionId][key]; const getCurrentRecord = () => state.collectionState.collectionsInfo.records[record.collectionId][key]; const getConflictType = () => newDisplayRecordState.recordStates[key].conflictType; if (!isNew) { const isDeleted = !collection.records[record.collectionId] || !getOnlineRecord(); if (isDeleted) { if (getConflictType() !== ConflictType.delete) { newDisplayRecordState.recordStates[key] = { ...recordState, conflictType: ConflictType.delete }; } } else if (isChanged) { if (getConflictType() !== ConflictType.modify && !CompareUtil.compare(getCurrentRecord(), getOnlineRecord())) { newDisplayRecordState.recordStates[key] = { ...recordState, conflictType: ConflictType.modify }; } } else { if (!CompareUtil.compare(getOnlineRecord(), getCurrentRecord())) { newDisplayRecordState.recordStates[key] = { ...recordState, name: getOnlineRecord().name, record: getOnlineRecord() }; } } } }); return { ...state, collectionState: { ...state.collectionState, collectionsInfo: collection }, displayRecordsState: newDisplayRecordState }; } case BatchCloseType: { const { activedTab, closeAction } = action.value; const uiState = { ...state.uiState, closeState: { activedTabBeforeClose: activedTab, closeAction } }; if (closeAction === CloseAction.none) { return { ...state, uiState }; } const recordsOrder = [...state.displayRecordsState.recordsOrder]; const recordStates = { ...state.displayRecordsState.recordStates }; const responseState = { ...state.displayRecordsState.responseState }; let activeKey = activedTab; state.displayRecordsState.recordsOrder.forEach(t => { const recordState = state.displayRecordsState.recordStates[t]; if (recordState) { if (!(closeAction === CloseAction.exceptActived && recordState.record.id === activedTab) && (!recordState.isChanged || t.startsWith(newRecordFlag))) { recordsOrder.splice(recordsOrder.indexOf(t), 1); Reflect.deleteProperty(recordStates, t); Reflect.deleteProperty(responseState, t); } } }); if (_.keys(recordStates).length === 0) { const newRecordState = getNewRecordState(); recordStates[newRecordState.record.id] = newRecordState; activeKey = newRecordState.record.id; recordsOrder.push(activeKey); uiState.closeState.closeAction = CloseAction.none; } else if (closeAction === CloseAction.saved) { uiState.closeState.closeAction = CloseAction.none; activeKey = recordsOrder.find(r => r === activedTab) ? activedTab : recordsOrder[0]; } else if (closeAction === CloseAction.exceptActived) { if (recordsOrder.length === 1) { uiState.closeState.closeAction = CloseAction.none; } else { activeKey = recordsOrder.find(r => r !== activedTab); } } else { activeKey = recordsOrder[0]; } const displayRecordsState = { ...state.displayRecordsState, recordStates, responseState, recordsOrder, activeKey }; return { ...state, uiState, displayRecordsState }; } default: return state; } function updateStateRecord(rootState: State, record: any): State { const cid = record.collectionId; let isChanged = true; if (cid) { isChanged = !CompareUtil.compare(rootState.collectionState.collectionsInfo.records[record.collectionId][record.id], record); } const recordStates = rootState.displayRecordsState.recordStates; return { ...rootState, displayRecordsState: { ...rootState.displayRecordsState, recordStates: { ...recordStates, [record.id]: { ...recordStates[record.id], record, isChanged } } } }; } } ```
/content/code_sandbox/client/src/reducer/index.ts
xml
2016-09-26T02:47:43
2024-07-24T09:32:20
Hitchhiker
brookshi/Hitchhiker
2,193
2,431
```xml import "../../styles.css"; import { IDashboard, IReport } from "../../types"; import React, { useRef } from "react"; import Popover from "@erxes/ui/src/components/Popover"; import { PopoverContent } from "@erxes/ui/src/components/filterableList/styles"; import SelectMembersBox from "../../containers/utils/SelectMembersBox"; import { __ } from "@erxes/ui/src/utils/index"; type Props = { targets: IReport[] | IDashboard[]; trigger: React.ReactNode; type: string; }; const SelectMembersPopover = (props: Props) => { const { targets, trigger, type } = props; const overlayTriggerRef = useRef<any>(null); return ( <Popover innerRef={overlayTriggerRef.current} trigger={trigger} placement="bottom-end" className="custom-popover" > <div className="popover-header">{__("Choose person")}</div> <PopoverContent> <SelectMembersBox targets={targets} type={type} /> </PopoverContent> </Popover> ); }; export default SelectMembersPopover; ```
/content/code_sandbox/packages/plugin-insight-ui/src/components/utils/SelectMembersPopover.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
234
```xml import actions from './actions' import * as bp from '.botpress' export default new bp.Integration({ register: async () => {}, unregister: async () => {}, actions, channels: {}, handler: async () => { throw new Error('Not implemented') }, }) ```
/content/code_sandbox/integrations/mailchimp/src/index.ts
xml
2016-11-16T21:57:59
2024-08-16T18:45:35
botpress
botpress/botpress
12,401
62
```xml import React, { ReactNode } from 'react'; import './styles.scss'; export const AdditionalReportSettings = ({ children }: { children: ReactNode }) => { return <div className="tk-additional-report-settings">{children}</div>; }; ```
/content/code_sandbox/src/extension/features/toolkit-reports/common/components/additional-settings/component.tsx
xml
2016-01-03T05:38:10
2024-08-13T16:08:09
toolkit-for-ynab
toolkit-for-ynab/toolkit-for-ynab
1,418
51
```xml <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="N7y-68-uFW"> <device id="retina6_1" orientation="portrait" appearance="light"/> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19144"/> <capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <scenes> <!--View Certificate Details--> <scene sceneID="tne-QT-ifu"> <objects> <viewController id="BYZ-38-t0r" customClass="NCViewCertificateDetails" customModule="File_Provider_Extension" customModuleProvider="target" sceneMemberID="viewController"> <layoutGuides> <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> </layoutGuides> <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> <rect key="frame" x="0.0" y="0.0" width="414" height="896"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" directionalLockEnabled="YES" delaysContentTouches="NO" translatesAutoresizingMaskIntoConstraints="NO" id="IrK-3z-fms"> <rect key="frame" x="0.0" y="88" width="414" height="774"/> <subviews> <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" scrollEnabled="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" editable="NO" textAlignment="natural" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WsH-pm-r11"> <rect key="frame" x="0.0" y="0.0" width="10" height="33"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <color key="textColor" systemColor="labelColor"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/> </textView> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="WsH-pm-r11" firstAttribute="leading" secondItem="IrK-3z-fms" secondAttribute="leading" id="JjL-uK-kjZ"/> <constraint firstAttribute="bottom" secondItem="WsH-pm-r11" secondAttribute="bottom" id="liC-tc-sE8"/> <constraint firstAttribute="trailing" secondItem="WsH-pm-r11" secondAttribute="trailing" id="lky-t0-Za7"/> <constraint firstItem="WsH-pm-r11" firstAttribute="top" secondItem="IrK-3z-fms" secondAttribute="top" id="yBD-CG-V6d"/> </constraints> <connections> <outlet property="delegate" destination="BYZ-38-t0r" id="KgR-kV-oXD"/> </connections> </scrollView> </subviews> <color key="backgroundColor" systemColor="systemBackgroundColor"/> <constraints> <constraint firstItem="IrK-3z-fms" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="07j-i7-RvO"/> <constraint firstItem="IrK-3z-fms" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" id="2nE-Io-hbo"/> <constraint firstAttribute="trailing" secondItem="IrK-3z-fms" secondAttribute="trailing" id="Mio-kT-YXx"/> <constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="IrK-3z-fms" secondAttribute="bottom" id="nw6-U4-RU6"/> </constraints> </view> <navigationItem key="navigationItem" id="Fwc-r9-U6E"> <barButtonItem key="leftBarButtonItem" title="Item" id="hMa-Vi-h4E"> <connections> <action selector="actionCancel:" destination="BYZ-38-t0r" id="weO-9n-QVj"/> </connections> </barButtonItem> </navigationItem> <connections> <outlet property="buttonCancel" destination="hMa-Vi-h4E" id="TKS-UQ-fdG"/> <outlet property="scrollView" destination="IrK-3z-fms" id="Bxc-Ka-jnB"/> <outlet property="textView" destination="WsH-pm-r11" id="eyo-tQ-6Ad"/> </connections> </viewController> <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> </objects> <point key="canvasLocation" x="928.98550724637687" y="-20.089285714285712"/> </scene> <!--Navigation Controller--> <scene sceneID="Zex-MG-Knq"> <objects> <navigationController automaticallyAdjustsScrollViewInsets="NO" id="N7y-68-uFW" sceneMemberID="viewController"> <toolbarItems/> <navigationBar key="navigationBar" contentMode="scaleToFill" id="eDJ-Nw-ckC"> <rect key="frame" x="0.0" y="44" width="414" height="44"/> <autoresizingMask key="autoresizingMask"/> </navigationBar> <nil name="viewControllers"/> <connections> <segue destination="BYZ-38-t0r" kind="relationship" relationship="rootViewController" id="eG1-FH-4uV"/> </connections> </navigationController> <placeholder placeholderIdentifier="IBFirstResponder" id="cjF-92-dkT" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/> </objects> <point key="canvasLocation" x="18.840579710144929" y="-20.089285714285712"/> </scene> </scenes> <resources> <systemColor name="labelColor"> <color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> </systemColor> <systemColor name="systemBackgroundColor"> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> </systemColor> </resources> </document> ```
/content/code_sandbox/iOSClient/Login/NCViewCertificateDetails.storyboard
xml
2016-12-01T11:50:14
2024-08-16T18:43:54
ios
nextcloud/ios
1,920
1,639
```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. --> <manifest package="com.android.example.simpletransition" xmlns:android="path_to_url"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name="com.android.example.simpletransition.MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> </manifest> ```
/content/code_sandbox/Transitions/SimpleTransition/app/src/main/AndroidManifest.xml
xml
2016-03-08T22:27:22
2024-08-02T07:38:15
android-ui-toolkit-demos
googlearchive/android-ui-toolkit-demos
1,109
177
```xml export interface MyLocationResponse { IP: string; Lat: number; Long: number; Country: string; ISP: string; } export interface VPNServersCount { Capacity: number; Countries: number; Servers: number; } export interface VPNServersCountData { free: { countries: number; servers: number; }; paid: { countries: number; servers: number; }; } export interface VPNServersCounts { free: VPNServersCount; paid: VPNServersCount; } export interface VPNLogicalsCount { Counts: { 2: number; 0: number }; } export interface VPNCountryCount { MaxTier: 0 | 1 | 2; Count: number; } export interface VPNCountriesCount { Counts: VPNCountryCount[]; } ```
/content/code_sandbox/packages/shared/lib/interfaces/VPN.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
185
```xml <Documentation> <Docs DocId="T:UIKit.UITableViewDataSource"> <summary>The data source for a <see cref="T:UIKit.UITableView" />. Xamarin.iOS developers should prefer to use <see cref="T:UIKit.UITableViewSource" /> instead of this class.</summary> <remarks> <para>Implementing <see cref="T:UIKit.UITableView" /> often requires subclasses of both <see cref="T:UIKit.UITableViewDataSource" /> and <see cref="T:UIKit.UITableViewDelegate" /> to provide data and behavior for the table view. Xamarin.iOS provides a single class - <see cref="T:UIKit.UITableViewSource" /> - so that only one class needs to be implemented.</para> <para>The <see cref="T:UIKit.UITableViewDataSource" /> class methods provide a table view with all the information it requires to display its data - such as informing it of the number of sections and rows, and what cell view to use for each row.</para> <para>The universally-important function of <see cref="T:UIKit.UITableViewDataSource" /> is to provide individual <see cref="T:UIKit.UITableViewCell" />s in response to calls to <see cref="M:UIKit.UITableViewDataSource.GetCell(UIKit.UITableView,Foundation.NSIndexPath)" />. That call takes as arguments the <see cref="T:UIKit.UITableView" /> in question and an <see cref="T:Foundation.NSIndexPath" />. That <see cref="T:Foundation.NSIndexPath" /> is based, in turn, on calls to <see cref="M:UIKit.UITableViewDataSource.NumberOfSections(UIKit.UITableView)" /> and <see cref="M:UIKit.UITableViewDataSource.RowsInSection(UIKit.UITableView,System.nint)" />, so the application developer must, at a minimum, override these three functions. (The <see cref="T:UIKit.UITableView" /> additionally calls <see cref="M:UIKit.UITableViewDelegate.GetHeightForRow(UIKit.UITableView,Foundation.NSIndexPath)" /> and other layout-related methods for header and footer views and the application developer must override these as appropriate.)</para> <para>Static tables may return references to pre-allocated <see cref="T:UIKit.UITableViewCell" />s from calls to <see cref="M:UIKit.UITableViewDataSource.GetCell(UIKit.UITableView,Foundation.NSIndexPath)" />. Dynamic tables should use the <see cref="T:UIKit.UITableView" />'s built-in cell reuse cache by calling <see cref="M:UIKit.UITableView.DequeueReusableCell(System.String,Foundation.NSIndexPath)" />. In iOS 6 and later, application developers should use <see cref="M:UIKit.UITableView.RegisterClassForCellReuse(System.Type,System.String)" /> or <see cref="M:UIKit.UITableView.RegisterNibForCellReuse(UIKit.UINib,System.String)" /> during initialization, in which case <see cref="M:UIKit.UITableView.DequeueReusableCell(System.String,Foundation.NSIndexPath)" /> will instantiate new <see cref="T:UIKit.UITableViewCell" />s as necessary. If application developers are targeting earlier iOS versions, their override of <see cref="M:UIKit.UITableViewDataSource.GetCell(UIKit.UITableView,Foundation.NSIndexPath)" /> must check for an <see langword="null" /> return from <see cref="M:UIKit.UITableView.DequeueReusableCell(System.String,Foundation.NSIndexPath)" /> and instantiate a <see cref="T:UIKit.UITableViewCell" /> as necessary. </para> </remarks> <related type="externalDocumentation" href="path_to_url">Apple documentation for <c>UITableViewDataSource</c></related> </Docs> </Documentation> ```
/content/code_sandbox/docs/api/UIKit/UITableViewDataSource.xml
xml
2016-04-20T18:24:26
2024-08-16T13:29:19
xamarin-macios
xamarin/xamarin-macios
2,436
780
```xml import { FilterService } from './filterservice'; describe('FilterService Suite', () => { let data: any = [ { brand: 'VW', year: 2012, color: { name: 'Orange' }, vin: 'dsad231ff', price: '1000.0' }, { brand: 'Audi', year: 2011, color: { name: 'Black' }, vin: 'gwregre345', price: '4000.0' }, { brand: 'Renault', year: 2005, color: { name: 'Black' }, vin: 'h354htr', price: '5000.0' }, { brand: 'BMW', year: 2003, color: { name: 'Blue' }, vin: 'j6w54qgh', price: '3000.0000000' }, { brand: 'Mercedes', year: 1995, color: { name: 'Red' }, vin: 'hrtwy34', price: '2000.0' }, { brand: 'Volvo', year: 2005, color: { name: 'Orange' }, vin: 'jejtyj', price: '2000.0' }, { brand: 'Honda', year: 2012, color: { name: 'Blue' }, vin: 'g43gr', price: '4000.0' }, { brand: 'Jaguar', year: 2013, color: { name: 'Black' }, vin: 'greg34', price: '1000.0' }, { brand: 'Ford', year: 2000, color: { name: 'White' }, vin: 'h54hw5', price: '2000.0' }, { brand: 'Fiat', year: 2013, color: { name: 'Yellow' }, vin: '245t2s', price: '5000.0' } ]; let timeData = [{ date: 'Tue Aug 04 2019 00:00:00 GMT+0300 (GMT+03:00)' }, { date: 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)' }, { date: 'Tue Aug 07 2019 00:00:00 GMT+0300 (GMT+03:00)' }]; let filterService = new FilterService(); it('Should filter by startsWith', () => { let filteredValue = filterService.filter(data, ['brand'], 'f', 'startsWith'); expect(filteredValue.length).toEqual(2); filteredValue = filterService.filter(data, ['brand'], '', 'startsWith'); expect(filteredValue.length).toEqual(10); filteredValue = filterService.filter(data, [''], 'f', 'startsWith'); expect(filteredValue.length).toEqual(0); }); it('Should filter by contains', () => { let filteredValue = filterService.filter(data, ['brand'], 'f', 'contains'); expect(filteredValue.length).toEqual(2); filteredValue = filterService.filter(data, ['brand'], '', 'contains'); expect(filteredValue.length).toEqual(10); filteredValue = filterService.filter(data, [''], 'f', 'contains'); expect(filteredValue.length).toEqual(0); }); it('Should filter by endsWith', () => { let filteredValue = filterService.filter(data, ['brand'], 't', 'endsWith'); expect(filteredValue.length).toEqual(2); filteredValue = filterService.filter(data, ['brand'], '', 'endsWith'); expect(filteredValue.length).toEqual(10); filteredValue = filterService.filter(data, [''], 't', 'endsWith'); expect(filteredValue.length).toEqual(0); }); it('Should filter by equals', () => { let filteredValue = filterService.filter(data, ['brand'], 'BMW', 'equals'); expect(filteredValue.length).toEqual(1); filteredValue = filterService.filter(data, ['brand'], '', 'equals'); expect(filteredValue.length).toEqual(10); filteredValue = filterService.filter(data, [''], 'BMW', 'equals'); expect(filteredValue.length).toEqual(0); filteredValue = filterService.filter(data, ['price'], 3000, 'equals'); expect(filteredValue.length).toEqual(1); filteredValue = filterService.filter(data, ['year'], 2012, 'equals'); expect(filteredValue.length).toEqual(2); }); it('Should filter by notEquals', () => { let filteredValue = filterService.filter(data, ['brand'], 'BMW', 'notEquals'); expect(filteredValue.length).toEqual(9); filteredValue = filterService.filter(data, ['brand'], '', 'notEquals'); expect(filteredValue.length).toEqual(0); filteredValue = filterService.filter(data, [''], 'BMW', 'notEquals'); expect(filteredValue.length).toEqual(10); filteredValue = filterService.filter(data, ['price'], 3000, 'notEquals'); expect(filteredValue.length).toEqual(9); filteredValue = filterService.filter(data, ['year'], 2012, 'notEquals'); expect(filteredValue.length).toEqual(8); }); it('Should filter by lt', () => { let filteredValue = filterService.filter(timeData, ['date'], 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)', 'lt'); expect(filteredValue.length).toEqual(1); filteredValue = filterService.filter(timeData, ['date'], '', 'lt'); expect(filteredValue.length).toEqual(0); filteredValue = filterService.filter(timeData, [''], 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)', 'lt'); expect(filteredValue.length).toEqual(0); }); it('Should filter by lte', () => { let filteredValue = filterService.filter(timeData, ['date'], 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)', 'lte'); expect(filteredValue.length).toEqual(2); filteredValue = filterService.filter(timeData, ['date'], '', 'lte'); expect(filteredValue.length).toEqual(0); filteredValue = filterService.filter(timeData, [''], 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)', 'lte'); expect(filteredValue.length).toEqual(0); }); it('Should filter by gt', () => { let filteredValue = filterService.filter(timeData, ['date'], 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)', 'gt'); expect(filteredValue.length).toEqual(1); filteredValue = filterService.filter(timeData, ['date'], '', 'gt'); expect(filteredValue.length).toEqual(3); filteredValue = filterService.filter(timeData, [''], 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)', 'gt'); expect(filteredValue.length).toEqual(0); }); it('Should filter by gte', () => { let filteredValue = filterService.filter(timeData, ['date'], 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)', 'gte'); expect(filteredValue.length).toEqual(2); filteredValue = filterService.filter(timeData, ['date'], '', 'gte'); expect(filteredValue.length).toEqual(3); filteredValue = filterService.filter(timeData, [''], 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)', 'gte'); expect(filteredValue.length).toEqual(0); }); it('Should filter by in', () => { let filteredValue = filterService.filter(data, ['brand'], ['BMW', 'Mercedes', 'Ford'], 'in'); expect(filteredValue.length).toEqual(3); filteredValue = filterService.filter(data, ['brand'], ['BMW'], 'in'); expect(filteredValue.length).toEqual(1); filteredValue = filterService.filter(data, ['brand'], ['Chevrolet'], 'in'); expect(filteredValue.length).toEqual(0); filteredValue = filterService.filter(data, ['brand'], undefined, 'in'); expect(filteredValue.length).toEqual(10); filteredValue = filterService.filter(data, ['brand'], null, 'in'); expect(filteredValue.length).toEqual(10); filteredValue = filterService.filter(data, ['brand'], [], 'in'); expect(filteredValue.length).toEqual(10); filteredValue = filterService.filter(data, [''], 'BMW', 'in'); expect(filteredValue.length).toEqual(0); }); }); ```
/content/code_sandbox/src/app/components/api/filterservice.spec.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
1,911
```xml <vector xmlns:android="path_to_url" android:width="290dp" android:height="290dp" android:viewportWidth="290" android:viewportHeight="290"> <group> <clip-path android:pathData="M145,289.016C143.129,289.016 141.37,288.287 140.047,286.965L3.035,149.952C1.712,148.63 0.984,146.871 0.984,145C0.984,143.13 1.712,141.37 3.035,140.047L140.047,3.035C141.37,1.712 143.129,0.984 145,0.984C146.871,0.984 148.63,1.712 149.953,3.035L286.965,140.047C288.288,141.371 289.016,143.13 289.016,145C289.016,146.87 288.288,148.629 286.965,149.952L149.953,286.965C148.63,288.287 146.871,289.016 145,289.016Z"/> <path android:pathData="M-0.124,1.459L0.838,290.13L297.13,287.936L295.937,-1.485L-0.124,1.459Z" android:fillColor="#CEEEAB"/> <path android:pathData="M127.46,1.786C126.479,13.563 124.516,19.779 116.337,23.377C108.159,26.976 100.308,27.957 101.943,33.191C103.579,38.426 118.954,45.295 120.59,50.203C122.226,55.11 131.386,52.493 134.984,59.362C138.583,66.232 137.601,79.318 130.077,81.935C122.553,84.552 107.177,82.589 103.579,94.366C99.98,106.143 97.363,108.106 91.802,111.05C86.241,113.994 82.315,124.79 87.222,132.641C92.129,140.493 103.252,131.006 106.85,124.136C110.449,117.266 116.337,112.686 116.337,112.686L147.415,112.686L224.62,110.396L228.873,105.489C228.873,105.489 233.125,110.723 232.471,116.939C231.817,123.154 227.564,136.24 232.798,139.511C238.033,142.783 258.315,136.894 264.204,130.351C285.987,103.754 227.486,86.37 228.218,82.589C228.218,82.589 207.498,21.405 203.683,53.474C207.282,60.998 195.832,67.868 184.709,61.979C173.586,56.091 152.322,44.968 156.248,30.574C160.174,16.18 184.382,6.039 184.382,6.039L127.46,1.786ZM115.273,132.928C113.188,133.119 109.427,139.061 108.813,142.128C108.159,145.4 104.56,150.961 104.233,158.158C103.906,165.355 110.449,166.991 115.683,166.664C120.917,166.337 119.282,157.831 118.3,147.035C117.973,147.035 117.646,133.623 115.683,132.968C115.551,132.928 115.411,132.914 115.273,132.929L115.273,132.928ZM-13.536,289.34C-4.512,289.78 -9.024,289.56 -13.536,289.34Z" android:fillColor="#A6DD8B"/> <path android:pathData="M195.545,97.106C189.317,97.086 183.728,98.374 180.456,101.236C169.988,110.396 134.657,102.217 116.992,110.396C99.326,118.574 99.653,160.121 97.69,168.626C95.728,177.132 74.791,195.779 71.519,199.377C68.248,202.976 54.181,208.864 46.003,210.5L69.884,205.593C80.025,200.686 88.531,179.749 104.56,174.515C120.59,169.281 132.367,189.89 136.293,198.723C140.218,207.556 138.583,215.407 141.2,220.968C143.817,226.53 155.594,236.344 156.248,238.634C156.902,240.924 149.705,247.139 148.07,249.757C146.434,252.374 134.33,258.916 132.694,261.206C131.43,262.976 130.178,270.069 129.668,273.27C130.209,273.047 130.655,272.864 131.141,272.656C131.773,269.346 133.123,263.394 134.984,261.533C137.601,258.916 149.705,255.645 151.341,250.411C152.977,245.177 160.501,241.905 160.501,241.905C160.501,241.905 164.099,247.139 181.438,260.225L191.252,260.879C184.709,253.682 167.044,246.812 161.482,232.091C155.921,217.37 129.423,187.273 138.583,179.422C147.743,171.571 160.174,174.188 175.876,189.236C191.579,204.284 236.397,196.76 251.445,194.143L257.988,189.89C257.988,189.89 234.107,193.816 211.207,195.779C188.308,197.742 176.204,185.965 166.389,176.478C156.575,166.991 149.378,129.37 162.464,126.753C175.549,124.136 188.635,144.745 201.72,148.998C214.806,153.251 229.854,128.388 227.564,113.667C225.99,103.547 209.248,97.147 195.545,97.106L195.545,97.106ZM125.742,114.485C127.412,114.486 133.41,116.571 134.33,117.593C137.274,120.864 136.947,127.08 134.33,128.061C131.713,129.043 117.646,138.53 120.59,146.708C123.534,154.887 122.88,170.262 116.01,170.262C109.14,170.262 105.542,170.262 102.925,166.991C100.308,163.719 100.308,151.288 102.925,141.147C105.542,131.006 107.505,121.519 113.393,117.266C117.442,114.342 122.071,114.481 125.743,114.485L125.742,114.485ZM143.53,210.132C143.796,210.147 146.024,214.732 149.705,219.333C153.631,224.24 153.958,230.128 153.958,230.128C153.958,230.128 148.397,223.913 146.107,219.66C143.817,215.407 143.49,210.173 143.49,210.173C143.49,210.133 143.513,210.133 143.53,210.133L143.53,210.132Z" android:fillColor="#AAC3E7"/> <path android:pathData="M78.858,234.459C85.083,236.916 98.044,215.019 125.17,211.809C135.311,212.136 132.367,196.433 136.293,194.47C140.218,192.507 143.49,202.322 151.668,204.939C159.847,207.556 183.728,201.34 182.419,197.415C181.111,193.489 173.259,187.273 175.222,186.292C177.185,185.31 186.345,192.835 191.906,190.872C197.467,188.909 249.155,189.563 255.371,173.206C261.586,156.849 283.505,155.541 283.505,155.541M59.742,192.835C75.445,186.619 77.408,185.965 77.735,181.385C78.062,176.805 77.408,160.775 73.809,155.214C70.211,149.652 56.798,137.221 53.2,123.481C49.601,109.742 53.527,69.831 64.322,60.344C75.118,50.857 106.196,50.857 113.393,46.604C120.59,42.351 120.263,24.686 130.404,14.545C140.546,4.403 165.735,-1.485 165.735,-1.485M48.293,198.396C60.397,196.106 65.631,194.47 71.519,190.872C77.408,187.273 79.371,185.965 79.698,182.366C80.025,178.768 81.006,166.009 75.772,153.578C70.538,141.147 59.415,112.359 64.977,102.872C70.538,93.385 71.847,74.738 85.586,70.812C99.326,66.887 113.066,62.634 121.899,69.177C130.731,75.719 138.583,87.823 148.07,88.151C157.557,88.477 163.445,86.188 167.044,82.262C170.642,78.336 172.932,68.849 169.334,64.269C165.735,59.69 149.051,57.072 146.761,51.838C144.471,46.604 132.694,29.593 146.434,16.835M56.798,202.322C64.977,198.396 74.137,194.797 77.408,189.89C80.679,184.983 84.932,174.842 84.932,166.336C84.932,157.831 80.352,119.229 89.185,109.414C98.018,99.6 111.757,75.392 123.207,78.991C134.657,82.589 139.237,91.749 151.995,91.422C164.754,91.095 180.456,86.188 183.728,75.392C186.999,64.597 163.118,54.455 162.791,45.295C162.464,36.136 169.988,26.649 189.289,23.05M56.144,169.935C53.527,161.102 44.694,139.184 26.047,140.493C7.4,141.801 2.778,131.66 2.778,131.66M130.404,59.69C119.282,52.493 119.282,50.203 121.244,49.221C123.207,48.24 134.657,55.764 137.928,59.69C141.2,63.615 134.984,62.307 130.404,59.69ZM148.724,79.972C156.902,80.626 164.754,77.028 162.791,71.466C160.828,65.905 146.434,61.979 145.453,67.541C144.471,73.102 148.07,81.281 148.724,79.972Z" android:strokeAlpha="0.39" android:strokeWidth="1.31" android:strokeColor="#6D7F42"/> <path android:pathData="M126.479,263.169L142.835,226.857L157.23,217.697L193.215,238.307L220.04,233.4L219.713,212.79L206.3,204.939L222.984,170.589L230.508,165.682L281.215,152.597M76.099,56.745L86.241,104.18L58.761,133.296L70.538,147.035L54.835,162.084L55.49,167.972L81.988,200.032L100.308,191.199L127.133,215.407L113.393,252.374L126.806,263.496L123.207,280.507" android:strokeWidth="2.62" android:strokeColor="#D38484"/> <path android:pathData="M24.04,118.433C27.507,122.015 30.434,123.537 33.701,124.98C40.235,127.866 37.206,122.67 42.156,118.759C47.106,114.847 53.43,123.948 50.124,127.953C46.818,131.958 42.506,130.236 44.163,135.861C45.82,141.486 64.575,144.668 67.437,151.215C70.299,157.761 65.915,152.922 61.849,157.9C57.782,162.878 65.655,172.86 70.281,169.409C74.907,165.958 70.523,161.567 76.633,163.269C82.742,164.97 86.862,182.328 93.326,184.299C99.789,186.27 96.98,181.981 101.747,178.404C106.515,174.826 114.924,182.928 111.44,187.597C107.956,192.266 103.549,187.719 105.374,194.04C107.2,200.361 124.734,204.259 126.756,210.758C128.778,217.257 123.438,213.137 119.365,218.116C115.293,223.094 125.95,232.197 129.494,228.656C133.039,225.115 129.205,220.143 135.514,221.96C141.823,223.776 155.256,235.417 157.557,242.033C159.858,248.65 155.265,243.845 150.931,248.803C146.597,253.761 157.176,261.031 161.337,257.735C165.498,254.44 160.309,248.853 166.224,250.502C172.15,252.156 175.124,262.787 175.124,262.787M58.129,84.562C63.128,87.513 64.84,89.001 66.045,92.318C68.455,98.951 64.919,95.043 60.805,100.023C56.692,105.004 66.786,111.029 71.02,107.728C75.255,104.427 71.186,101.766 76.455,103.59C81.724,105.414 93.354,116.24 95.844,122.876C98.333,129.513 93.34,123.614 89.585,128.503C85.831,133.391 95.921,141.285 99.747,137.929C103.572,134.573 99.858,131.493 106.055,133.237C112.253,134.98 117.503,151.649 124,153.667C130.497,155.686 126.225,153.102 130.983,149.535C135.741,145.968 144.243,153.173 140.919,157.526C137.596,161.879 133.587,158.67 135.268,164.72C136.948,170.771 152.779,176.109 155.548,182.695C158.317,189.281 154.383,182.306 149.928,187.225C145.473,192.145 156.358,202.544 160.759,199.206C165.16,195.869 161.302,190.964 167.354,192.645C173.405,194.325 183.078,204.384 185.562,211.02C188.046,217.657 185.052,212.318 180.88,217.299C176.708,222.279 184.282,231.082 188.979,227.575C193.677,224.067 191.113,219.858 197.324,221.609C203.534,223.355 204.907,232.982 204.907,232.982M84.542,57.152C88.193,60.986 90.936,63.294 94.172,64.286C100.644,66.268 96.683,62.648 101.642,58.701C106.602,54.754 115.047,64.939 111.558,69.614C108.069,74.29 103.09,70.956 104.847,76.321C106.604,81.687 116.796,92.545 123.282,94.548C129.768,96.551 125.192,93.728 130.048,90.032C134.904,86.336 142.835,93.704 139.423,98.269C136.012,102.835 133.137,98.422 134.777,104.183C136.418,109.943 155.103,116.346 157.504,122.978C159.905,129.611 153.572,124.67 149.645,129.624C145.718,134.578 157.05,142.749 161.003,139.433C164.955,136.116 161.505,131.368 167.38,133.013C173.255,134.657 183.242,146.902 186.178,153.406C189.114,159.91 182.996,154.324 179.222,159.222C175.449,164.12 187.559,171.884 191.134,168.372C194.708,164.86 190.357,161.613 195.892,163.294C201.426,164.975 214.829,176.304 216.913,182.84C218.998,189.377 213.827,184.467 209.928,189.414C206.029,194.36 217.139,201.067 220.705,197.547C224.271,194.028 219.592,191.362 225.818,193.122C232.048,194.883 234.706,203.19 234.706,203.19M115.666,24.174C118.375,29.672 121.222,35.3 124.521,36.667C131.119,39.401 126.559,33.59 131.539,29.482C136.52,25.375 142.787,36.029 139.478,40.018C136.169,44.006 132.249,41.404 134.099,46.642C135.949,51.879 148.526,63.898 155.008,65.896C161.492,67.894 155.398,61.95 160.342,58.059C165.286,54.167 174.348,66.002 170.998,69.842C167.648,73.682 161.599,68.057 163.392,74.334C165.185,80.611 184.536,86.674 187.249,93.278C189.961,99.882 183.503,93.198 179.23,98.168C174.957,103.139 185.423,113.158 189.556,109.862C193.689,106.566 190.943,100.512 197.316,102.384C203.69,104.255 212.274,116.343 215.048,122.928C217.822,129.512 215.142,124.589 210.665,129.499C206.189,134.409 217.249,142.712 220.793,139.171C224.338,135.631 220.805,131.259 226.985,132.992C233.165,134.726 243.441,146.779 245.835,153.41C248.229,160.042 242.538,152.882 238.842,157.738C235.145,162.594 246.552,172.586 250.386,169.234C254.221,165.881 250.891,161.473 256.179,163.281C261.468,165.09 264.504,173.394 264.504,173.394M175.284,18.908C171.425,22.951 164.684,30.731 163.292,34.021C160.506,40.601 164.468,34.904 169.102,39.723C173.737,44.543 165.871,52.87 161.317,49.465C156.764,46.06 161.417,41.414 155.116,43.225C148.815,45.035 143.711,63.598 137.131,66.387C130.552,69.176 134.589,64.862 129.843,60.14C125.097,55.417 117.844,66.21 121.247,69.935C124.651,73.661 127.731,68.443 126.079,74.375C124.427,80.306 114.131,91.969 107.512,94.284C100.892,96.599 104.468,92.767 99.51,88.823C94.552,84.879 87.091,94.225 90.619,97.782C94.147,101.339 99.574,99.696 97.931,105.555C96.288,111.414 75.393,116.15 73.434,122.603C71.476,129.056 76.734,124.834 81.45,129.586C86.165,134.338 76.013,141.123 71.323,137.622C66.633,134.121 69.32,131.115 63.547,132.755C57.773,134.396 48.47,146.323 45.693,152.907C42.917,159.491 47.56,154.324 51.743,159.304C55.927,164.284 45.252,172.837 41.223,169.534C37.193,166.232 39.669,161.204 33.89,162.844C31.001,163.665 28.444,168.847 26.146,173.658M209.9,53.577C205.642,57.94 198.64,64.744 195.331,66.071C188.712,68.725 193.906,62.345 189.034,58.622C184.163,54.899 175.666,64.871 178.962,68.995C182.258,73.119 186.912,69.636 185.229,75.693C183.547,81.75 165.38,86.025 162.818,92.658C160.256,99.291 167.633,94.415 171.232,99.201C174.831,103.987 165.11,112.528 161.289,109.17C157.467,105.813 159.229,100.636 152.896,102.471C146.563,104.306 136.614,117.012 133.669,123.51C130.723,130.008 137.684,124.095 141.439,128.984C145.194,133.873 133.175,141.699 129.332,138.35C125.49,135.001 128.441,130.122 123.189,131.959C117.938,133.796 105.624,146.248 103.376,152.851C101.128,159.454 107.346,152.624 111.116,157.521C114.886,162.417 103.674,171.617 99.505,168.321C95.336,165.025 101.15,160.106 95.438,161.75C89.725,163.395 78.505,175.06 75.538,181.544C72.571,188.027 77.438,182.364 81.242,187.276C85.046,192.188 75.917,200.641 71.388,197.249C66.86,193.858 71.237,191.319 65.104,193.03C62.037,193.886 56.72,201.971 54.003,206.5M240.566,83.619C236.259,87.311 228.221,93.789 224.902,95.025C218.266,97.496 224.313,91.793 219.379,87.933C214.446,84.072 207.503,95.011 210.969,98.642C214.434,102.272 218.832,99.032 217.188,104.906C215.544,110.781 194.959,115.979 192.618,122.604C190.278,129.228 194.287,124.065 198.845,128.934C203.404,133.803 193.198,141.245 189.121,137.947C185.045,134.649 189.852,131.766 184.288,133.439C178.724,135.111 171.921,152.219 165.476,154.167C159.031,156.115 164.128,153.388 159.183,149.006C154.238,144.623 147.849,154.009 151.201,157.845C154.552,161.682 157.314,159.235 155.596,165.382C153.878,171.529 144.08,181.153 137.463,183.815C130.846,186.478 135.201,183.304 130.278,179.474C125.356,175.644 116.494,182.854 119.871,187.353C123.247,191.852 127.41,188.382 125.731,193.923C124.052,199.464 106.297,206.16 103.685,212.787C101.073,219.413 107.661,214.103 111.306,218.925C114.951,223.747 104.86,230.212 100.81,226.911C96.759,223.611 100.936,221.029 95.144,222.669C92.248,223.489 87.835,231.906 85.083,236.917M266.032,110.156C263.793,115.128 260.046,123.005 256.849,124.542C250.454,127.615 255.362,123.434 250.418,119.542C245.473,115.65 235.616,123.04 239.113,127.725C242.609,132.409 248.099,128.159 246.458,133.943C244.818,139.727 226.462,144.599 223.655,151.17C220.848,157.742 224.441,153.585 228.619,158.565C232.797,163.545 224.491,173.012 219.849,169.55C215.208,166.088 220.292,159.728 214.349,161.381C208.407,163.035 195.224,175.803 192.671,182.437C190.117,189.07 196.145,184.289 200.584,189.215C205.022,194.14 193.489,202.345 189.245,199.043C185.001,195.741 188.01,190.304 182.684,192.086C177.357,193.867 173.414,211.048 166.808,213.306C160.202,215.564 165.573,210.778 160.801,207.195C156.028,203.612 147.314,212.487 150.726,217.053C154.139,221.62 157.103,218.324 155.437,223.909C153.77,229.493 142.311,241.393 135.895,243.306C129.48,245.22 134.132,242.574 129.297,237.961C124.462,233.348 116.694,244.814 119.991,248.89C123.289,252.967 129.105,247.571 127.459,253.265C126.636,256.113 119.702,263.927 115.413,267.903" android:strokeAlpha="0.56" android:strokeWidth="0.8" android:strokeColor="#0E0E0E"/> <path android:pathData="M135.963,222.309C128.869,220.23 132.685,224.676 129.256,228.255C125.711,231.796 115.491,223.506 119.564,218.527C123.636,213.549 128.915,217.856 126.893,211.357C125.882,208.107 121.118,205.071 116.367,202.469C121.457,199.25 125.153,196.855 125.993,194.084C127.672,188.543 123.571,191.826 120.195,187.327C116.818,182.828 125.179,176.243 130.102,180.073C135.025,183.903 131.107,186.889 137.724,184.226C141.033,182.895 145.012,179.949 148.581,176.416C151.294,178.249 154.238,180.688 155.622,183.981C157.516,188.443 154.457,182.717 150.002,187.636C145.547,192.556 156.432,203.018 160.833,199.68C165.234,196.342 161.439,191.5 167.49,193.181C170.516,194.021 172.993,196.079 176.624,199.631C174.293,204.429 170.435,211.963 167.132,213.092C159.991,215.351 165.835,210.939 161.062,207.356C156.251,203.773 147.456,212.648 150.988,217.215C154.4,221.781 156.013,217.846 155.198,224.07C154.365,226.862 153.783,227.639 149.981,231.542C145.619,227.569 139.117,223.217 135.963,222.309Z" android:strokeAlpha="0.11" android:strokeWidth="2" android:fillColor="#B3B3B3" android:strokeColor="#000"/> <path android:pathData="M175.285,18.908C171.426,22.951 164.887,31.368 163.494,34.658C160.708,41.239 164.759,35.452 169.393,40.271C174.028,45.091 166.161,53.153 161.608,49.748C155.578,46.159 161.126,41.72 155.047,43.558C151.897,44.463 147.66,52.798 144.774,58.345C148.96,62.585 151.616,64.474 154.857,65.473C161.34,67.471 155.599,61.88 160.543,57.988C165.677,54.477 174.659,66.501 171.29,70.302C167.939,74.142 161.801,68.34 163.594,74.617C164.479,77.716 170.03,80.844 175.358,83.91C170.939,86.653 164.466,89.213 163.196,92.5C160.634,99.132 168.012,94.699 171.61,99.484C175.209,104.27 165.312,112.899 161.49,109.542C156.166,105.3 159.165,101.184 152.832,103.019C149.666,103.937 146.501,106.976 142.557,111.297C147.436,114.549 156.504,119.592 157.705,122.908C159.841,130.601 153.598,125.217 149.671,130.171C145.744,135.126 157.253,142.68 161.205,139.363C165.158,136.047 161.707,131.299 167.582,132.943C170.52,133.765 173.655,136.406 177.33,140.562C180.609,135.91 181.708,134.205 184.49,133.369C190.054,131.697 185.069,134.579 189.145,137.877C193.222,141.175 203.282,134.071 198.724,129.202C194.218,125.022 190.105,129.261 192.887,122.018C194.001,118.865 202.407,114.58 208.544,111.603C214.593,108.449 216.51,106.473 216.891,105.215C218.535,99.341 214.349,102.77 210.883,99.139C207.418,95.509 214.471,84.003 219.405,87.863C224.339,91.723 218.29,97.515 224.927,95.043C229.434,93.178 235.782,88.125 240.566,83.619L209.9,53.576L175.285,18.908Z" android:strokeAlpha="0.11" android:strokeLineJoin="miter" android:strokeWidth="2" android:fillColor="#B3B3B3" android:strokeColor="#000"/> </group> </vector> ```
/content/code_sandbox/app/src/main/res/drawable/ic_achievement_surveyor.xml
xml
2016-07-02T10:44:04
2024-08-16T18:55:54
StreetComplete
streetcomplete/StreetComplete
3,781
8,890
```xml // See LICENSE in the project root for license information. /* eslint-disable @typescript-eslint/no-redeclare */ import { Enum } from '@rushstack/node-core-library'; import type { ApiItem, IApiItemJson, IApiItemConstructor, IApiItemOptions } from '../items/ApiItem'; import { ReleaseTag } from '../aedoc/ReleaseTag'; import type { DeserializerContext } from '../model/DeserializerContext'; /** * Constructor options for {@link (ApiReleaseTagMixin:interface)}. * @public */ export interface IApiReleaseTagMixinOptions extends IApiItemOptions { releaseTag: ReleaseTag; } export interface IApiReleaseTagMixinJson extends IApiItemJson { releaseTag: string; } const _releaseTag: unique symbol = Symbol('ApiReleaseTagMixin._releaseTag'); /** * The mixin base class for API items that can be attributed with a TSDoc tag such as `@internal`, * `@alpha`, `@beta`, or `@public`. These "release tags" indicate the support level for an API. * * @remarks * * This is part of the {@link ApiModel} hierarchy of classes, which are serializable representations of * API declarations. The non-abstract classes (e.g. `ApiClass`, `ApiEnum`, `ApiInterface`, etc.) use * TypeScript "mixin" functions (e.g. `ApiDeclaredItem`, `ApiItemContainerMixin`, etc.) to add various * features that cannot be represented as a normal inheritance chain (since TypeScript does not allow a child class * to extend more than one base class). The "mixin" is a TypeScript merged declaration with three components: * the function that generates a subclass, an interface that describes the members of the subclass, and * a namespace containing static members of the class. * * @public */ // eslint-disable-next-line @typescript-eslint/naming-convention export interface ApiReleaseTagMixin extends ApiItem { /** * The effective release tag for this declaration. If it is not explicitly specified, the value may be * inherited from a containing declaration. * * @remarks * For example, an `ApiEnumMember` may inherit its release tag from the containing `ApiEnum`. */ readonly releaseTag: ReleaseTag; /** @override */ serializeInto(jsonObject: Partial<IApiItemJson>): void; } /** * Mixin function for {@link (ApiReleaseTagMixin:interface)}. * * @param baseClass - The base class to be extended * @returns A child class that extends baseClass, adding the {@link (ApiReleaseTagMixin:interface)} functionality. * * @public */ export function ApiReleaseTagMixin<TBaseClass extends IApiItemConstructor>( baseClass: TBaseClass // eslint-disable-next-line @typescript-eslint/no-explicit-any ): TBaseClass & (new (...args: any[]) => ApiReleaseTagMixin) { class MixedClass extends baseClass implements ApiReleaseTagMixin { public [_releaseTag]: ReleaseTag; // eslint-disable-next-line @typescript-eslint/no-explicit-any public constructor(...args: any[]) { super(...args); const options: IApiReleaseTagMixinOptions = args[0]; this[_releaseTag] = options.releaseTag; } /** @override */ public static onDeserializeInto( options: Partial<IApiReleaseTagMixinOptions>, context: DeserializerContext, jsonObject: IApiReleaseTagMixinJson ): void { baseClass.onDeserializeInto(options, context, jsonObject); const deserializedReleaseTag: ReleaseTag | undefined = Enum.tryGetValueByKey<ReleaseTag>( ReleaseTag as any, // eslint-disable-line jsonObject.releaseTag ); if (deserializedReleaseTag === undefined) { throw new Error(`Failed to deserialize release tag ${JSON.stringify(jsonObject.releaseTag)}`); } options.releaseTag = deserializedReleaseTag; } public get releaseTag(): ReleaseTag { return this[_releaseTag]; } /** @override */ public serializeInto(jsonObject: Partial<IApiReleaseTagMixinJson>): void { super.serializeInto(jsonObject); jsonObject.releaseTag = ReleaseTag[this.releaseTag]; } } return MixedClass; } /** * Static members for {@link (ApiReleaseTagMixin:interface)}. * @public */ export namespace ApiReleaseTagMixin { /** * A type guard that tests whether the specified `ApiItem` subclass extends the `ApiReleaseTagMixin` mixin. * * @remarks * * The JavaScript `instanceof` operator cannot be used to test for mixin inheritance, because each invocation of * the mixin function produces a different subclass. (This could be mitigated by `Symbol.hasInstance`, however * the TypeScript type system cannot invoke a runtime test.) */ export function isBaseClassOf(apiItem: ApiItem): apiItem is ApiReleaseTagMixin { return apiItem.hasOwnProperty(_releaseTag); } } ```
/content/code_sandbox/libraries/api-extractor-model/src/mixins/ApiReleaseTagMixin.ts
xml
2016-09-30T00:28:20
2024-08-16T18:54:35
rushstack
microsoft/rushstack
5,790
1,067
```xml <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="path_to_url" xmlns:xsi="path_to_url" xmlns:xsd="path_to_url" xmlns:activiti="path_to_url" xmlns:bpmndi="path_to_url" xmlns:omgdc="path_to_url" xmlns:omgdi="path_to_url" typeLanguage="path_to_url" expressionLanguage="path_to_url" targetNamespace="Examples" id="definitions"> <process id="testNullExpressionOnTimer" isExecutable="true"> <startEvent id="theStart"></startEvent> <sequenceFlow id="flow1" sourceRef="theStart" targetRef="task"></sequenceFlow> <userTask id="task" name="Task rigged with timer"></userTask> <sequenceFlow id="flow2" sourceRef="task" targetRef="theEnd"></sequenceFlow> <boundaryEvent id="boundaryTimer" attachedToRef="task" cancelActivity="true"> <extensionElements> <activiti:executionListener event="start" class="org.flowable.engine.test.bpmn.event.timer.BoundaryTimerEventTest$MyExecutionListener"></activiti:executionListener> <activiti:executionListener event="end" class="org.flowable.engine.test.bpmn.event.timer.BoundaryTimerEventTest$MyExecutionListener"></activiti:executionListener> </extensionElements> <timerEventDefinition> <timeDuration>${duration}</timeDuration> </timerEventDefinition> </boundaryEvent> <sequenceFlow id="flow3" sourceRef="boundaryTimer" targetRef="theEnd"></sequenceFlow> <endEvent id="theEnd"></endEvent> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_testNullExpressionOnTimer"> <bpmndi:BPMNPlane bpmnElement="testNullExpressionOnTimer" id="BPMNPlane_testNullExpressionOnTimer"> <bpmndi:BPMNShape bpmnElement="theStart" id="BPMNShape_theStart"> <omgdc:Bounds height="35.0" width="35.0" x="0.0" y="15.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="task" id="BPMNShape_task"> <omgdc:Bounds height="60.0" width="100.0" x="80.0" y="0.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="boundaryTimer" id="BPMNShape_boundaryTimer"> <omgdc:Bounds height="30.0" width="30.0" x="145.0" y="45.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="theEnd" id="BPMNShape_theEnd"> <omgdc:Bounds height="35.0" width="35.0" x="230.0" y="15.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1"> <omgdi:waypoint x="35.0" y="32.0"></omgdi:waypoint> <omgdi:waypoint x="42.0" y="30.0"></omgdi:waypoint> <omgdi:waypoint x="42.0" y="30.0"></omgdi:waypoint> <omgdi:waypoint x="80.0" y="30.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2"> <omgdi:waypoint x="180.0" y="30.0"></omgdi:waypoint> <omgdi:waypoint x="192.0" y="30.0"></omgdi:waypoint> <omgdi:waypoint x="192.0" y="30.0"></omgdi:waypoint> <omgdi:waypoint x="230.0" y="32.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3"> <omgdi:waypoint x="160.0" y="75.0"></omgdi:waypoint> <omgdi:waypoint x="160.0" y="85.0"></omgdi:waypoint> <omgdi:waypoint x="245.0" y="85.0"></omgdi:waypoint> <omgdi:waypoint x="245.0" y="55.0"></omgdi:waypoint> <omgdi:waypoint x="265.0" y="32.0"></omgdi:waypoint> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions> ```
/content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/bpmn/event/timer/BoundaryTimerEventTest.testNullExpressionOnTimer.bpmn20.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
1,204
```xml import * as R from 'ramda'; import { substractPaginationTotalCount } from 'shared/models/Pagination'; import cloneClassInstance from 'shared/utils/cloneClassInstance'; import { upsert } from 'shared/utils/collection'; import ModelRecord from 'shared/models/ModelRecord'; import { ActionType, getType } from 'typesafe-actions'; import * as actions from '../actions'; import { FeatureAction, IExperimentRunsState, loadExperimentRunsActionTypes, loadSequentialChartDataActionTypes, lazyLoadChartDataActionTypes, cleanChartDataPayload, updateExpRunTagsActionType, updateExpRunDescActionType, changePaginationActionType, changeSortingActionType, loadExperimentRunActionTypes, deleteExperimentRunActionTypes, getDefaultExperimentRunsSettingsActionType, deleteExperimentRunArtifactActionTypes, selectExperimentRunForDeletingActionType, unselectExperimentRunForDeletingActionType, deleteExperimentRunsActionTypes, resetExperimentRunsForDeletingActionType, selectAllExperimentRunsForDeletingActionType, } from '../types'; const initial: IExperimentRunsState['data'] = { modelRecords: null, sorting: null, pagination: { currentPage: 0, pageSize: 10, totalCount: 0, }, modelRecordIdsForDeleting: [], sequentialChartData: [], lazyChartData: [], totalCount: 0, }; const updateExpRunById = ( f: (modelRecord: ModelRecord) => ModelRecord, id: string, expRuns: ModelRecord[] ) => { return expRuns.map(mr => (mr.id === id ? f(mr) : mr)); }; const dataReducer = ( state: IExperimentRunsState['data'] = initial, action: FeatureAction | ActionType<typeof actions.setExperimentRuns> ): IExperimentRunsState['data'] => { switch (action.type) { case getType(actions.setExperimentRuns): { return { ...state, modelRecords: action.payload, }; } case loadExperimentRunsActionTypes.SUCCESS: { return { ...state, modelRecords: action.payload.experimentRuns, pagination: { ...state.pagination, totalCount: action.payload.totalCount, }, }; } case loadSequentialChartDataActionTypes.SUCCESS: { let prevChartData: any; if (state.sequentialChartData && state.sequentialChartData.length === 0) { prevChartData = state.lazyChartData; } else { prevChartData = state.sequentialChartData; } return { ...state, sequentialChartData: [ ...prevChartData, ...action.payload.sequentialChartData, ], }; } case lazyLoadChartDataActionTypes.SUCCESS: { return { ...state, lazyChartData: action.payload.lazyChartData, totalCount: action.payload.totalCount, }; } case cleanChartDataPayload.CLEAN_CHART_DATA: { return { ...state, lazyChartData: [], sequentialChartData: [], totalCount: 0, }; } case loadExperimentRunActionTypes.SUCCESS: { return { ...state, modelRecords: upsert(action.payload, state.modelRecords || []), }; } case changePaginationActionType.CHANGE_CURRENT_PAGE: { return { ...state, pagination: { ...state.pagination, currentPage: action.payload.currentPage, }, }; } case changeSortingActionType.CHANGE_SORTING: { return { ...state, sorting: action.payload.sorting, }; } case updateExpRunTagsActionType.UPDATE_EXPERIMENT_RUN_TAGS: { return { ...state, modelRecords: updateExpRunById( modelRecord => { const newModelRecord = cloneClassInstance(modelRecord); newModelRecord.tags = action.payload.tags; return newModelRecord; }, action.payload.id, state.modelRecords || [] ), }; } case updateExpRunDescActionType.UPDATE_EXPERIMENT_RUN_DESC: { return { ...state, modelRecords: updateExpRunById( modelRecord => { const newModelRecord = cloneClassInstance(modelRecord); newModelRecord.description = action.payload.description; return newModelRecord; }, action.payload.id, state.modelRecords || [] ), }; } case deleteExperimentRunActionTypes.SUCCESS: { return { ...state, modelRecords: (state.modelRecords || []).filter( ({ id }) => id !== action.payload.id ), modelRecordIdsForDeleting: R.without( [action.payload.id], state.modelRecordIdsForDeleting ), pagination: substractPaginationTotalCount(1, state.pagination), }; } case deleteExperimentRunsActionTypes.SUCCESS: { return { ...state, modelRecords: (state.modelRecords || []).filter( modelRecord => !action.payload.ids.includes(modelRecord.id) ), pagination: substractPaginationTotalCount( action.payload.ids.length, state.pagination ), modelRecordIdsForDeleting: [], }; } case deleteExperimentRunArtifactActionTypes.SUCCESS: { return { ...state, modelRecords: updateExpRunById( modelRecord => { const newModelRecord = cloneClassInstance(modelRecord); newModelRecord.artifacts = modelRecord.artifacts.filter( ({ key }) => key !== action.payload.artifactKey ); return newModelRecord; }, action.payload.id, state.modelRecords || [] ), }; } case getDefaultExperimentRunsSettingsActionType.GET_DEFAULT_EXPERIMENT_RUNS_SETTINGS: { return { ...state, pagination: { ...state.pagination, currentPage: (action.payload.options.pagination && action.payload.options.pagination.currentPage) || initial.pagination.currentPage, }, sorting: action.payload.options.sorting || initial.sorting, }; } case selectExperimentRunForDeletingActionType.SELECT_EXPERIMENT_RUN_FOR_DELETING: { return { ...state, modelRecordIdsForDeleting: state.modelRecordIdsForDeleting.concat( action.payload.id ), }; } case unselectExperimentRunForDeletingActionType.UNSELECT_EXPERIMENT_RUN_FOR_DELETING: { return { ...state, modelRecordIdsForDeleting: state.modelRecordIdsForDeleting.filter( id => action.payload.id !== id ), }; } case selectAllExperimentRunsForDeletingActionType.SELECT_ALL_EXPERIMENT_RUNS_FOR_DELETING: { return { ...state, modelRecordIdsForDeleting: (state.modelRecords || []).map( ({ id }) => id ), }; } case resetExperimentRunsForDeletingActionType.RESET_EXPERIMENT_RUNS_FOR_DELETING: { return { ...state, modelRecordIdsForDeleting: [], }; } default: return state; } }; export default dataReducer; ```
/content/code_sandbox/webapp/client/src/features/experimentRuns/store/reducer/data.ts
xml
2016-10-19T01:07:26
2024-08-14T03:53:55
modeldb
VertaAI/modeldb
1,689
1,471
```xml import {fetchData} from 'src/worker/utils' import {transformTableData} from 'src/dashboards/utils/tableGraph' const tableTransform = async msg => { const dbResult = await fetchData(msg) const { data, sort, fieldOptions, tableOptions, timeFormat, decimalPlaces, } = dbResult return transformTableData( data, sort, fieldOptions, tableOptions, timeFormat, decimalPlaces ) } export default tableTransform ```
/content/code_sandbox/ui/src/worker/jobs/tableTransform.ts
xml
2016-08-24T23:28:56
2024-08-13T19:50:03
chronograf
influxdata/chronograf
1,494
113
```xml interface Framework { sendRequest: (handler: { request: any; response: any }) => void; } export default Framework; ```
/content/code_sandbox/src/frameworks/index.d.ts
xml
2016-09-13T23:29:07
2024-08-15T09:52:47
serverless-express
CodeGenieApp/serverless-express
5,117
28
```xml <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="path_to_url" xmlns:flowable="path_to_url" xmlns:bpmndi="path_to_url" xmlns:omgdc="path_to_url" xmlns:omgdi="path_to_url" typeLanguage="path_to_url" expressionLanguage="path_to_url" targetNamespace="path_to_url"> <process id="simpleConditionalEventSubProcess" name="Test Simple Conditional Event Sub Process" isExecutable="true"> <startEvent id="start" flowable:formFieldValidation="true"/> <userTask id="task" name="Process Task" flowable:formFieldValidation="true"/> <endEvent id="end"/> <subProcess id="conditionalEventSubProcess" name="subProcess" triggeredByEvent="true"> <userTask id="eventSubProcessTask1" name="Sub Process Task" flowable:formFieldValidation="true"/> <endEvent id="eventSubProcessEnd"/> <startEvent id="eventSubProcessConditionalStart" isInterrupting="true"> <conditionalEventDefinition> <condition>${testVar}</condition> </conditionalEventDefinition> </startEvent> <sequenceFlow id="eventSubProcessFlow1" sourceRef="eventSubProcessConditionalStart" targetRef="eventSubProcessTask1"/> <sequenceFlow id="eventSubProcessFlow2" sourceRef="eventSubProcessTask1" targetRef="eventSubProcessEnd"/> </subProcess> <sequenceFlow id="flow1" sourceRef="start" targetRef="task"/> <sequenceFlow id="flow2" sourceRef="task" targetRef="end"/> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_simpleConditionalEventSubProcess"> <bpmndi:BPMNPlane bpmnElement="simpleConditionalEventSubProcess" id="BPMNPlane_simpleConditionalEventSubProcess"> <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start"> <omgdc:Bounds height="30.0" width="30.0" x="90.0" y="150.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="task" id="BPMNShape_task"> <omgdc:Bounds height="80.0" width="100.0" x="180.0" y="125.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end"> <omgdc:Bounds height="28.0" width="28.0" x="325.0" y="151.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="conditionalEventSubProcess" id="BPMNShape_conditionalEventSubProcess"> <omgdc:Bounds height="217.0" width="347.0" x="75.0" y="345.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="eventSubProcessTask1" id="BPMNShape_eventSubProcessTask1"> <omgdc:Bounds height="80.0" width="100.0" x="150.0" y="413.5"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="eventSubProcessEnd" id="BPMNShape_eventSubProcessEnd"> <omgdc:Bounds height="28.0" width="28.0" x="307.0" y="439.5"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="eventSubProcessConditionalStart" id="BPMNShape_eventSubProcessConditionalStart"> <omgdc:Bounds height="30.0" width="30.0" x="87.0" y="439.125"/> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1"> <omgdi:waypoint x="119.94999883049303" y="165.0"/> <omgdi:waypoint x="180.0" y="165.0"/> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2"> <omgdi:waypoint x="279.95000000000005" y="165.0"/> <omgdi:waypoint x="325.0" y="165.0"/> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="eventSubProcessFlow2" id="BPMNEdge_eventSubProcessFlow2"> <omgdi:waypoint x="249.94999999989207" y="453.5"/> <omgdi:waypoint x="307.0" y="453.5"/> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="eventSubProcessFlow1" id="BPMNEdge_eventSubProcessFlow1"> <omgdi:waypoint x="118.96492356057213" y="454.9821281397616"/> <omgdi:waypoint x="150.0" y="454.4141473508354"/> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions> ```
/content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/bpmn/event/conditional/ConditionalEventSubprocessTest.testSimpleInterruptingEventSubProcess.bpmn20.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
1,285
```xml import "reflect-metadata" import { expect } from "chai" import { DataSource } from "../../../../../src/data-source/DataSource" import { closeTestingConnections, createTestingConnections, reloadTestingDatabases, } from "../../../../utils/test-utils" import { Post, PostWithDeleted } from "./entity/Post" import { MongoRepository } from "../../../../../src/repository/MongoRepository" describe("mongodb > MongoRepository", () => { let connections: DataSource[] before( async () => (connections = await createTestingConnections({ entities: [Post, PostWithDeleted], enabledDrivers: ["mongodb"], })), ) beforeEach(() => reloadTestingDatabases(connections)) after(() => closeTestingConnections(connections)) it("connection should return mongo repository when requested", () => Promise.all( connections.map(async (connection) => { const postRepository = connection.getMongoRepository(Post) expect(postRepository).to.be.instanceOf(MongoRepository) }), )) it("entity manager should return mongo repository when requested", () => Promise.all( connections.map(async (connection) => { const postRepository = connection.manager.getMongoRepository(Post) expect(postRepository).to.be.instanceOf(MongoRepository) }), )) it("should be able to use entity cursor which will return instances of entity classes", () => Promise.all( connections.map(async (connection) => { const postRepository = connection.getMongoRepository(Post) // save few posts const firstPost = new Post() firstPost.title = "Post #1" firstPost.text = "Everything about post #1" await postRepository.save(firstPost) const secondPost = new Post() secondPost.title = "Post #2" secondPost.text = "Everything about post #2" await postRepository.save(secondPost) const cursor = postRepository.createEntityCursor({ title: "Post #1", }) const loadedPosts = await cursor.toArray() expect(loadedPosts).to.have.length(1) expect(loadedPosts[0]).to.be.instanceOf(Post) expect(loadedPosts[0].id).to.eql(firstPost.id) expect(loadedPosts[0].title).to.eql("Post #1") expect(loadedPosts[0].text).to.eql("Everything about post #1") }), )) it("should be able to use entity cursor which will return instances of entity classes", () => Promise.all( connections.map(async (connection) => { const postRepository = connection.getMongoRepository(Post) // save few posts const firstPost = new Post() firstPost.title = "Post #1" firstPost.text = "Everything about post #1" await postRepository.save(firstPost) const secondPost = new Post() secondPost.title = "Post #2" secondPost.text = "Everything about post #2" await postRepository.save(secondPost) const loadedPosts = await postRepository.find({ where: { $or: [ { title: "Post #1", }, { text: "Everything about post #1", }, ], }, }) expect(loadedPosts).to.have.length(1) expect(loadedPosts[0]).to.be.instanceOf(Post) expect(loadedPosts[0].id).to.eql(firstPost.id) expect(loadedPosts[0].title).to.eql("Post #1") expect(loadedPosts[0].text).to.eql("Everything about post #1") }), )) it("should be able to use findByIds with both ObjectId and strings", () => Promise.all( connections.map(async (connection) => { const postRepository = connection.getMongoRepository(Post) // save few posts const firstPost = new Post() firstPost.title = "Post #1" firstPost.text = "Everything about post #1" await postRepository.save(firstPost) const secondPost = new Post() secondPost.title = "Post #2" secondPost.text = "Everything about post #2" await postRepository.save(secondPost) expect( await postRepository.findByIds([firstPost.id]), ).to.have.length(1) expect( await postRepository.findByIds([ firstPost.id.toHexString(), ]), ).to.have.length(1) expect( await postRepository.findByIds([{ id: firstPost.id }]), ).to.have.length(1) expect( await postRepository.findByIds([undefined]), ).to.have.length(0) }), )) // todo: cover other methods as well it("should be able to save and update mongo entities", () => Promise.all( connections.map(async (connection) => { const postRepository = connection.getMongoRepository(Post) // save few posts const firstPost = new Post() firstPost.title = "Post #1" firstPost.text = "Everything about post #1" await postRepository.save(firstPost) const secondPost = new Post() secondPost.title = "Post #2" secondPost.text = "Everything about post #2" await postRepository.save(secondPost) // save few posts firstPost.text = "Everything and more about post #1" await postRepository.save(firstPost) const loadedPosts = await postRepository.find() expect(loadedPosts).to.have.length(2) expect(loadedPosts[0].text).to.eql( "Everything and more about post #1", ) expect(loadedPosts[1].text).to.eql("Everything about post #2") }), )) it("should ignore non-column properties", () => Promise.all( connections.map(async (connection) => { // Github issue #5321 const postRepository = connection.getMongoRepository(Post) await postRepository.save({ title: "Hello", text: "World", unreal: "Not a Column", }) const loadedPosts = await postRepository.find() expect(loadedPosts).to.have.length(1) expect(loadedPosts[0]).to.not.have.property("unreal") }), )) // Github issue #9250 describe("with DeletedDataColumn", () => { it("with $or query", () => Promise.all( connections.map(async (connection) => { const postRepository = connection.getMongoRepository(PostWithDeleted) await seedPosts(postRepository) const loadedPosts = await postRepository.find({ where: { $or: [{ deletedAt: { $ne: null } }], }, }) expect(loadedPosts).to.have.length(3) }), )) it("filter delete data", () => Promise.all( connections.map(async (connection) => { const postRepository = connection.getMongoRepository(PostWithDeleted) await seedPosts(postRepository) const loadedPosts = await postRepository.find() const filteredPost = loadedPosts.find( (post) => post.title === "deleted", ) expect(filteredPost).to.be.undefined expect(loadedPosts).to.have.length(2) }), )) describe("findOne filtered data properly", () => { it("findOne()", () => Promise.all( connections.map(async (connection) => { const postRepository = connection.getMongoRepository(PostWithDeleted) await seedPosts(postRepository) const loadedPost = await postRepository.findOne({ where: { title: "notDeleted" }, }) const loadedPostWithDeleted = await postRepository.findOne({ where: { title: "deleted" }, withDeleted: true, }) expect(loadedPost?.title).to.eql("notDeleted") expect(loadedPostWithDeleted?.title).to.eql("deleted") }), )) it("findOneBy()", () => Promise.all( connections.map(async (connection) => { const postRepository = connection.getMongoRepository(PostWithDeleted) await seedPosts(postRepository) const loadedPost = await postRepository.findOneBy({ where: { title: "notDeleted" }, }) const loadedPostWithDeleted = await postRepository.findOne({ where: { title: "deleted" }, withDeleted: true, }) expect(loadedPost?.title).to.eql("notDeleted") expect(loadedPostWithDeleted?.title).to.eql("deleted") }), )) }) }) }) async function seedPosts(postRepository: MongoRepository<PostWithDeleted>) { await postRepository.save({ title: "withoutDeleted", text: "withoutDeleted", }) await postRepository.save({ title: "notDeleted", text: "notDeleted", deletedAt: null, }) await postRepository.save({ title: "deleted", text: "deleted", deletedAt: new Date(), }) } ```
/content/code_sandbox/test/functional/mongodb/basic/mongo-repository/mongo-repository.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
1,902
```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> <string name="mtrl_chip_close_icon_content_description">%1$s </string> </resources> ```
/content/code_sandbox/lib/java/com/google/android/material/chip/res/values-ne/strings.xml
xml
2016-12-05T16:11:29
2024-08-16T17:51:42
material-components-android
material-components/material-components-android
16,176
87
```xml import { IPreferences } from "../../../common/Preferences"; export interface ISourceState { preferences: IPreferences | undefined; } ```
/content/code_sandbox/samples/react-connected-web-parts/src/webparts/source/components/ISourceState.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
27
```xml import React from "react"; import RuleItem from "../common/RuleItem"; import GroupItem from "../common/GroupItem"; import TabContentSection from "../common/TabContentSection"; import { useRecords } from "../../contexts/RecordsContext"; import { EmptyPopupTab } from "../PopupTabs/EmptyPopupTab"; import { PrimaryActionButton } from "../common/PrimaryActionButton"; import { PopupTabKey } from "../PopupTabs"; import "./pinnedRecords.css"; interface Props { setActiveTabKey: (key: PopupTabKey) => void; } const PinnedRecords: React.FC<Props> = ({ setActiveTabKey }) => { const { pinnedRules, pinnedGroups } = useRecords(); return !pinnedGroups.length && !pinnedRules.length ? ( <EmptyPopupTab title="You haven't pinned any rules yet!" description=" Feel free to pin your recently used rules for quick access." actionButton={ <PrimaryActionButton size="small" onClick={() => setActiveTabKey(PopupTabKey.RECENTLY_USED)}> See recently used rules </PrimaryActionButton> } /> ) : ( <TabContentSection> <ul className="record-list"> {pinnedGroups.map((group) => ( <GroupItem key={group.id} group={group} /> ))} {pinnedRules.map((rule) => ( <RuleItem key={rule.id} rule={rule} isParentPinnedRecords={true} /> ))} </ul> </TabContentSection> ); }; export default PinnedRecords; ```
/content/code_sandbox/browser-extension/common/src/popup/components/PinnedRecords/index.tsx
xml
2016-12-01T04:36:06
2024-08-16T19:12:19
requestly
requestly/requestly
2,121
333
```xml import { definePageConfig, CacheCanvas } from 'ice'; import { useRef } from 'react'; import styles from './index.module.css'; export type RefCacheCanvas = { cacheCanvasToStorage: () => void; }; const GAME_CANVAS_ID = 'canvas-id'; export default function Home() { const childRef = useRef<RefCacheCanvas>(); const initFunc = () => { return new Promise((resolve) => { const canvas: HTMLCanvasElement | null = document.getElementById(GAME_CANVAS_ID) as HTMLCanvasElement; if (canvas && typeof canvas.getContext === 'function') { let ctx: CanvasRenderingContext2D | null = canvas.getContext('2d'); ctx?.fillRect(25, 25, 100, 100); ctx?.clearRect(45, 45, 60, 60); ctx?.strokeRect(50, 50, 50, 50); } setTimeout(() => { console.log('canvas paint ready!'); resolve(true); }, 10000); }); }; return ( <> <h2 className={styles.title}>Home Page</h2> <CacheCanvas bizID={'test'} ref={childRef} id={GAME_CANVAS_ID} init={initFunc} fallback={() => <div>fallback</div>} /> <button style={{ display: 'block' }} onClick={() => { console.log('active cache!'); childRef.current?.cacheCanvasToStorage(); }} >cache canvas</button> </> ); } export const pageConfig = definePageConfig(() => { return { title: 'Home', meta: [ { name: 'theme-color', content: '#000', }, { name: 'title-color', content: '#f00', }, ], auth: ['admin'], }; }); ```
/content/code_sandbox/examples/cavans-project/src/pages/home.tsx
xml
2016-11-03T06:59:15
2024-08-16T10:11:29
ice
alibaba/ice
17,815
408
```xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="path_to_url"> <item android:drawable="@drawable/jz_restart_pressed" android:state_pressed="true" /> <item android:drawable="@drawable/jz_restart_normal" /> </selector> ```
/content/code_sandbox/jiaozivideoplayer/src/main/res/drawable/jz_click_replay_selector.xml
xml
2016-02-06T11:04:24
2024-08-16T17:39:44
JiaoZiVideoPlayer
lipangit/JiaoZiVideoPlayer
10,470
63
```xml <?xml version="1.0"?> <!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "path_to_url"> <module name="Checker"> <module name="SeverityMatchFilter"> <property name="severity" value="info"/> <property name="acceptOnMatch" value="false"/> </module> <module name="FileTabCharacter"> <property name="eachLine" value="true"/> </module> <module name="SuppressWarningsFilter"/> <module name="TreeWalker"> <property name="tabWidth" value="4"/> <property name="severity" value="error"/> <module name="SuppressWarningsHolder"/> <module name="ConstantName"/> <module name="FinalLocalVariable"/> <module name="LocalFinalVariableName"/> <module name="LocalVariableName"/> <module name="MemberName"> <property name="format" value="^[a-z][a-zA-Z0-9_]*$"/> </module> <module name="MethodName"/> <module name="PackageName"/> <module name="ParameterName"/> <module name="StaticVariableName"/> <module name="TypeName"/> <module name="RedundantImport"/> <module name="EmptyForInitializerPad"/> <module name="MethodParamPad"/> <module name="NoWhitespaceBefore"/> <module name="WhitespaceAfter"> <property name="tokens" value="COMMA, SEMI"/> </module> <module name="NeedBraces"/> <module name="TypecastParenPad"/> <module name="ModifierOrder"/> <module name="NestedTryDepth"> <property name="max" value="2"/> </module> <module name="CovariantEquals"/> <module name="EmptyStatement"/> <module name="EqualsHashCode"/> <module name="DefaultComesLast"/> <module name="SimplifyBooleanExpression"/> <module name="SimplifyBooleanReturn"/> <module name="StringLiteralEquality"/> <module name="PackageDeclaration"/> <module name="FallThrough"/> <module name="FinalClass"/> <module name="MutableException"/> <module name="TodoComment"> <property name="severity" value="info"/> <property name="format" value="TODO"/> </module> <module name="UpperEll"/> <module name="IllegalType"> <property name="legalAbstractClassNames" value="AbstractBeanDefinition, AbstractEntry"/> <property name="illegalClassNames" value="java.util.GregorianCalendar, java.util.Vector"/> </module> <module name="DescendantToken"> <property name="tokens" value="LITERAL_ASSERT"/> <property name="limitedTokens" value="ASSIGN,DEC,INC,POST_DEC,POST_INC,PLUS_ASSIGN,MINUS_ASSIGN,STAR_ASSIGN,DIV_ASSIGN,MOD_ASSIGN,BSR_ASSIGN,SR_ASSIGN,SL_ASSIGN,BAND_ASSIGN,BXOR_ASSIGN,BOR_ASSIGN,METHOD_CALL"/> <property name="maximumNumber" value="2"/> </module> <module name="Regexp"> <property name="format" value="[ \t]+$"/> <property name="illegalPattern" value="true"/> <property name="message" value="Trailing whitespace"/> </module> <module name="DefaultComesLast"/> <module name="InterfaceIsType"/> <module name="MutableException"/> <module name="EmptyCatchBlock"> <property name="commentFormat" value="^.+$"/> </module> <module name="InnerAssignment"/> <module name="EqualsAvoidNull"/> <module name="NestedForDepth"> <property name="max" value="2"/> </module> <module name="NestedTryDepth"> <property name="max" value="2"/> </module> <module name="NestedIfDepth"> <property name="max" value="2"/> </module> <module name="MissingSwitchDefault" /> <module name="InnerTypeLast"/> <module name="ModifierOrder"/> <module name="DeclarationOrder" /> <module name="CustomImportOrder"> <property name="sortImportsInGroupAlphabetically" value="true"/> <property name="separateLineBetweenGroups" value="true"/> <property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/> </module> <module name="IllegalImport"> <property name="illegalPkgs" value="org.testcontainers.shaded,org.assertj.core.internal"/> </module> </module> </module> ```
/content/code_sandbox/build-tools/src/main/resources/check/.checkstyle.xml
xml
2016-03-20T03:38:04
2024-08-16T19:59:58
camunda
camunda/camunda
3,172
1,003
```xml <?xml version="1.0" encoding="UTF-8"?> <definitions id="definitions" xmlns="path_to_url" xmlns:activiti="path_to_url" targetNamespace="Examples"> <process id="forkJoinNested"> <startEvent id="theStart" /> <sequenceFlow id="flow1" sourceRef="theStart" targetRef="fork" /> <parallelGateway id="fork" /> <sequenceFlow sourceRef="fork" targetRef="receivePayment" /> <sequenceFlow sourceRef="fork" targetRef="shipOrder" /> <userTask id="receivePayment" name="Receive Payment" /> <sequenceFlow sourceRef="receivePayment" targetRef="join" /> <boundaryEvent id="escalationTimer" cancelActivity="false" attachedToRef="receivePayment"> <timerEventDefinition> <timeDuration>P10D</timeDuration> </timerEventDefinition> </boundaryEvent> <userTask id="shipOrder" name="Ship Order" /> <sequenceFlow sourceRef="shipOrder" targetRef="join" /> <parallelGateway id="join" /> <sequenceFlow sourceRef="join" targetRef="archiveOrder" /> <userTask id="archiveOrder" name="Archive Order" /> <sequenceFlow sourceRef="archiveOrder" targetRef="theEnd" /> <endEvent id="theEnd" /> </process> </definitions> ```
/content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/db/ProcessInstanceMigrationTest.testSetProcessDefinitionVersionSubExecutionsNested.bpmn20.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
312
```xml import { Bookmark } from '../../shared/bookmark/bookmark.interface'; export interface BookmarkSearchResult extends Bookmark { score?: number; } export interface BookmarkTreeItem extends Bookmark { displayChildren: boolean; open: boolean; } ```
/content/code_sandbox/src/modules/app/app-search/app-search.interface.ts
xml
2016-05-05T20:59:25
2024-08-13T14:13:34
app
xbrowsersync/app
1,478
48
```xml export { DailyEditor } from './DailyEditor'; export { WeeklyEditor } from './WeeklyEditor'; export { MonthlyEditor } from './MonthlyEditor'; export { PatternChoiceGroup } from './PatternChoiceGroup'; export { YearlyEditor } from './YearlyEditor'; export { UntilEditor } from './UntilEditor'; ```
/content/code_sandbox/samples/react-rhythm-of-business-calendar/src/components/recurrence/index.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
65
```xml <?xml version="1.0" encoding="UTF-8"?> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> <LWM2M xmlns:xsi="path_to_url" xsi:noNamespaceSchemaLocation="path_to_url"> <Object ObjectType="MODefinition"> <Name>Humidity</Name> <Description1>This IPSO object should be used with a humidity sensor to report a humidity measurement. It also provides resources for minimum/maximum measured values and the minimum/maximum range that can be measured by the humidity sensor. An example measurement unit is relative humidity as a percentage.</Description1> <ObjectID>3304</ObjectID> <ObjectURN>urn:oma:lwm2m:ext:3304:1.1</ObjectURN> <LWM2MVersion>1.0</LWM2MVersion> <ObjectVersion>1.1</ObjectVersion> <MultipleInstances>Multiple</MultipleInstances> <Mandatory>Optional</Mandatory> <Resources> <Item ID="5700"> <Name>Sensor Value</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Mandatory</Mandatory> <Type>Float</Type> <RangeEnumeration></RangeEnumeration> <Units></Units> <Description>Last or Current Measured Value from the Sensor.</Description> </Item> <Item ID="5601"> <Name>Min Measured Value</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>Float</Type> <RangeEnumeration></RangeEnumeration> <Units></Units> <Description>The minimum value measured by the sensor since power ON or reset.</Description> </Item> <Item ID="5602"> <Name>Max Measured Value</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>Float</Type> <RangeEnumeration></RangeEnumeration> <Units></Units> <Description>The maximum value measured by the sensor since power ON or reset.</Description> </Item> <Item ID="5603"> <Name>Min Range Value</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>Float</Type> <RangeEnumeration></RangeEnumeration> <Units></Units> <Description>The minimum value that can be measured by the sensor.</Description> </Item> <Item ID="5604"> <Name>Max Range Value</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>Float</Type> <RangeEnumeration></RangeEnumeration> <Units></Units> <Description>The maximum value that can be measured by the sensor.</Description> </Item> <Item ID="5701"> <Name>Sensor Units</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>String</Type> <RangeEnumeration></RangeEnumeration> <Units></Units> <Description>Measurement Units Definition.</Description> </Item> <Item ID="5605"> <Name>Reset Min and Max Measured Values</Name> <Operations>E</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type></Type> <RangeEnumeration></RangeEnumeration> <Units></Units> <Description>Reset the Min and Max Measured Values to Current Value.</Description> </Item> <Item ID="5750"> <Name>Application Type</Name> <Operations>RW</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>String</Type> <RangeEnumeration></RangeEnumeration> <Units></Units> <Description>The application type of the sensor or actuator as a string depending on the use case.</Description> </Item> <Item ID="5518"> <Name>Timestamp</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>Time</Type> <RangeEnumeration></RangeEnumeration> <Units></Units> <Description>The timestamp of when the measurement was performed.</Description> </Item> <Item ID="6050"> <Name>Fractional Timestamp</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>Float</Type> <RangeEnumeration>0..1</RangeEnumeration> <Units>s</Units> <Description>Fractional part of the timestamp when sub-second precision is used (e.g., 0.23 for 230 ms).</Description> </Item> <Item ID="6042"> <Name>Measurement Quality Indicator</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>Integer</Type> <RangeEnumeration>0..23</RangeEnumeration> <Units></Units> <Description>Measurement quality indicator reported by a smart sensor. 0: UNCHECKED No quality checks were done because they do not exist or can not be applied. 1: REJECTED WITH CERTAINTY The measured value is invalid. 2: REJECTED WITH PROBABILITY The measured value is likely invalid. 3: ACCEPTED BUT SUSPICIOUS The measured value is likely OK. 4: ACCEPTED The measured value is OK. 5-15: Reserved for future extensions. 16-23: Vendor specific measurement quality.</Description> </Item> <Item ID="6049"> <Name>Measurement Quality Level</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>Integer</Type> <RangeEnumeration>0..100</RangeEnumeration> <Units></Units> <Description>Measurement quality level reported by a smart sensor. Quality level 100 means that the measurement has fully passed quality check algorithms. Smaller quality levels mean that quality has decreased and the measurement has only partially passed quality check algorithms. The smaller the quality level, the more caution should be used by the application when using the measurement. When the quality level is 0 it means that the measurement should certainly be rejected.</Description> </Item> </Resources> <Description2></Description2> </Object> </LWM2M> ```
/content/code_sandbox/application/src/main/data/lwm2m-registry/3304.xml
xml
2016-12-01T09:33:30
2024-08-16T19:58:25
thingsboard
thingsboard/thingsboard
16,820
1,847
```xml import { G2Spec } from '../../../src'; export function alphabetIntervalMinWidth(): G2Spec { return { type: 'interval', data: { type: 'fetch', value: 'data/alphabet.csv', }, encode: { x: 'letter', y: 'frequency', color: 'steelblue', }, scale: { x: { padding: 0.9 }, }, style: { minWidth: 16, }, axis: { y: { labelFormatter: '.0%' }, }, }; } ```
/content/code_sandbox/__tests__/plots/static/alphabet-interval-min-width.ts
xml
2016-05-26T09:21:04
2024-08-15T16:11:17
G2
antvis/G2
12,060
126
```xml <?xml version="1.0" encoding="UTF-8"?> <archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00"> <data> <int key="IBDocument.SystemTarget">1072</int> <string key="IBDocument.SystemVersion">13A603</string> <string key="IBDocument.InterfaceBuilderVersion">4514</string> <string key="IBDocument.AppKitVersion">1265</string> <string key="IBDocument.HIToolboxVersion">695.00</string> <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <string key="NS.object.0">3746</string> </object> <array key="IBDocument.IntegratedClassDependencies"> <string>IBProxyObject</string> <string>IBUIButton</string> <string>IBUIImageView</string> <string>IBUILabel</string> <string>IBUITextView</string> <string>IBUIView</string> </array> <array key="IBDocument.PluginDependencies"> <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> </array> <object class="NSMutableDictionary" key="IBDocument.Metadata"> <string key="NS.key.0">PluginDependencyRecalculationVersion</string> <integer value="1" key="NS.object.0"/> </object> <array class="NSMutableArray" key="IBDocument.RootObjects" id="386019756"> <object class="IBProxyObject" id="567259532"> <string key="IBProxiedObjectIdentifier">IBFilesOwner</string> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> </object> <object class="IBProxyObject" id="839709031"> <string key="IBProxiedObjectIdentifier">IBFirstResponder</string> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> </object> <object class="IBUIView" id="372931748"> <reference key="NSNextResponder"/> <int key="NSvFlags">1298</int> <array class="NSMutableArray" key="NSSubviews"> <object class="IBUITextView" id="696726116"> <reference key="NSNextResponder" ref="372931748"/> <int key="NSvFlags">1342</int> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrameSize">{320, 153}</string> <reference key="NSSuperview" ref="372931748"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="585102796"/> <object class="NSColor" key="IBUIBackgroundColor"> <int key="NSColorSpace">1</int> <bytes key="NSRGB">MSAxIDEAA</bytes> </object> <bool key="IBUIClipsSubviews">YES</bool> <bool key="IBUIMultipleTouchEnabled">YES</bool> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <string key="IBUIText"/> <object class="IBUITextInputTraits" key="IBUITextInputTraits"> <int key="IBUIAutocapitalizationType">2</int> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework-SevenAndLater</string> </object> <object class="IBUIFontDescription" key="IBUIFontDescription"> <int key="type">1</int> <double key="pointSize">14</double> </object> <object class="NSFont" key="IBUIFont"> <string key="NSName">HelveticaNeue</string> <double key="NSSize">14</double> <int key="NSfFlags">16</int> </object> </object> <object class="IBUIView" id="585102796"> <reference key="NSNextResponder" ref="372931748"/> <int key="NSvFlags">1324</int> <array class="NSMutableArray" key="NSSubviews"> <object class="IBUIImageView" id="906113201"> <reference key="NSNextResponder" ref="585102796"/> <int key="NSvFlags">1316</int> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrameSize">{320, 50}</string> <reference key="NSSuperview" ref="585102796"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="303072693"/> <object class="NSColor" key="IBUIBackgroundColor"> <int key="NSColorSpace">2</int> <bytes key="NSRGB">MC45MzMzMzMzOTY5IDAuOTMzMzMzMzk2OSAwLjkzMzMzMzM5NjkAA</bytes> </object> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> </object> <object class="IBUIButton" id="9536129"> <reference key="NSNextResponder" ref="585102796"/> <int key="NSvFlags">1316</int> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrame">{{110, 3}, {55, 37}}</string> <reference key="NSSuperview" ref="585102796"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="1034774090"/> <bool key="IBUIOpaque">NO</bool> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <int key="IBUIContentHorizontalAlignment">0</int> <int key="IBUIContentVerticalAlignment">0</int> <object class="NSColor" key="IBUINormalTitleColor"> <int key="NSColorSpace">1</int> <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes> </object> <object class="NSColor" key="IBUIHighlightedTitleColor" id="976095611"> <int key="NSColorSpace">3</int> <bytes key="NSWhite">MQA</bytes> </object> <object class="NSColor" key="IBUINormalTitleShadowColor" id="21496503"> <int key="NSColorSpace">3</int> <bytes key="NSWhite">MC41AA</bytes> </object> <object class="IBUIFontDescription" key="IBUIFontDescription" id="922318302"> <int key="type">2</int> <double key="pointSize">15</double> </object> <object class="NSFont" key="IBUIFont" id="505072111"> <string key="NSName">HelveticaNeue-Bold</string> <double key="NSSize">15</double> <int key="NSfFlags">16</int> </object> </object> <object class="IBUILabel" id="636588229"> <reference key="NSNextResponder" ref="585102796"/> <int key="NSvFlags">1316</int> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrame">{{271, 10}, {42, 21}}</string> <reference key="NSSuperview" ref="585102796"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="120761779"/> <bool key="IBUIOpaque">NO</bool> <bool key="IBUIClipsSubviews">YES</bool> <int key="IBUIContentMode">7</int> <bool key="IBUIUserInteractionEnabled">NO</bool> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <string key="IBUIText">Label</string> <object class="NSColor" key="IBUITextColor"> <int key="NSColorSpace">3</int> <bytes key="NSWhite">MC4zMzMzMzMzMzMzAA</bytes> </object> <nil key="IBUIHighlightedColor"/> <int key="IBUIBaselineAdjustment">0</int> <float key="IBUIMinimumFontSize">10</float> <object class="IBUIFontDescription" key="IBUIFontDescription"> <int key="type">1</int> <double key="pointSize">17</double> </object> <object class="NSFont" key="IBUIFont"> <string key="NSName">HelveticaNeue</string> <double key="NSSize">17</double> <int key="NSfFlags">16</int> </object> </object> <object class="IBUIButton" id="1034774090"> <reference key="NSNextResponder" ref="585102796"/> <int key="NSvFlags">1316</int> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrame">{{160, 5}, {58, 35}}</string> <reference key="NSSuperview" ref="585102796"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="463185638"/> <bool key="IBUIOpaque">NO</bool> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <int key="IBUIContentHorizontalAlignment">0</int> <int key="IBUIContentVerticalAlignment">0</int> <object class="NSColor" key="IBUINormalTitleColor"> <int key="NSColorSpace">1</int> <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes> </object> <reference key="IBUIHighlightedTitleColor" ref="976095611"/> <reference key="IBUINormalTitleShadowColor" ref="21496503"/> <reference key="IBUIFontDescription" ref="922318302"/> <reference key="IBUIFont" ref="505072111"/> </object> <object class="IBUIImageView" id="463185638"> <reference key="NSNextResponder" ref="585102796"/> <int key="NSvFlags">1297</int> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrame">{{225, 7}, {38, 35}}</string> <reference key="NSSuperview" ref="585102796"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="798625120"/> <bool key="IBUIUserInteractionEnabled">NO</bool> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> </object> <object class="IBUIButton" id="798625120"> <reference key="NSNextResponder" ref="585102796"/> <int key="NSvFlags">1313</int> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrame">{{255, 1}, {18, 18}}</string> <reference key="NSSuperview" ref="585102796"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="636588229"/> <bool key="IBUIOpaque">NO</bool> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <int key="IBUIContentHorizontalAlignment">0</int> <int key="IBUIContentVerticalAlignment">0</int> <object class="NSColor" key="IBUINormalTitleColor"> <int key="NSColorSpace">1</int> <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes> </object> <reference key="IBUIHighlightedTitleColor" ref="976095611"/> <reference key="IBUINormalTitleShadowColor" ref="21496503"/> <object class="NSCustomResource" key="IBUINormalBackgroundImage"> <string key="NSClassName">NSImage</string> <string key="NSResourceName">UMSocialSDKResourcesNew.bundle/Buttons/UMS_delete_image_button_normal</string> </object> <reference key="IBUIFontDescription" ref="922318302"/> <reference key="IBUIFont" ref="505072111"/> </object> <object class="IBUILabel" id="791258016"> <reference key="NSNextResponder" ref="585102796"/> <int key="NSvFlags">-2147482332</int> <string key="NSFrame">{{35, 14}, {60, 20}}</string> <reference key="NSSuperview" ref="585102796"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="9536129"/> <string key="NSReuseIdentifierKey">_NS:9</string> <string key="NSHuggingPriority">{251, 251}</string> <bool key="IBUIOpaque">NO</bool> <bool key="IBUIClipsSubviews">YES</bool> <int key="IBUIContentMode">7</int> <bool key="IBUIUserInteractionEnabled">NO</bool> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <string key="IBUIText"/> <object class="NSColor" key="IBUITextColor"> <int key="NSColorSpace">1</int> <bytes key="NSRGB">MCAwIDAAA</bytes> <string key="IBUIColorCocoaTouchKeyPath">darkTextColor</string> </object> <nil key="IBUIHighlightedColor"/> <int key="IBUIBaselineAdjustment">0</int> <object class="IBUIFontDescription" key="IBUIFontDescription"> <int key="type">1</int> <double key="pointSize">8</double> </object> <object class="NSFont" key="IBUIFont"> <string key="NSName">HelveticaNeue</string> <double key="NSSize">8</double> <int key="NSfFlags">16</int> </object> <bool key="IBUIAdjustsFontSizeToFit">NO</bool> </object> <object class="IBUIButton" id="303072693"> <reference key="NSNextResponder" ref="585102796"/> <int key="NSvFlags">-2147482332</int> <string key="NSFrame">{{5, 10}, {30, 30}}</string> <reference key="NSSuperview" ref="585102796"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="791258016"/> <string key="NSReuseIdentifierKey">_NS:9</string> <bool key="IBUIOpaque">NO</bool> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <int key="IBUIContentHorizontalAlignment">0</int> <int key="IBUIContentVerticalAlignment">0</int> <reference key="IBUINormalTitleShadowColor" ref="21496503"/> <reference key="IBUIFontDescription" ref="922318302"/> <reference key="IBUIFont" ref="505072111"/> </object> </array> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrame">{{0, 155}, {320, 44}}</string> <reference key="NSSuperview" ref="372931748"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="906113201"/> <object class="NSColor" key="IBUIBackgroundColor"> <int key="NSColorSpace">3</int> <bytes key="NSWhite">MQA</bytes> <object class="NSColorSpace" key="NSCustomColorSpace" id="957841139"> <int key="NSID">2</int> </object> </object> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> </object> <object class="IBUIImageView" id="120761779"> <reference key="NSNextResponder" ref="372931748"/> <int key="NSvFlags">1324</int> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrame">{{0, 205}, {320, 211}}</string> <reference key="NSSuperview" ref="372931748"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="544659853"/> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> </object> <object class="IBUIView" id="544659853"> <reference key="NSNextResponder" ref="372931748"/> <int key="NSvFlags">1316</int> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrame">{{0, 208}, {320, 181}}</string> <reference key="NSSuperview" ref="372931748"/> <reference key="NSWindow"/> <reference key="NSNextKeyView"/> <object class="NSColor" key="IBUIBackgroundColor"> <int key="NSColorSpace">3</int> <bytes key="NSWhite">MCAwAA</bytes> </object> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> </object> </array> <object class="NSPSMatrix" key="NSFrameMatrix"/> <string key="NSFrame">{{0, 64}, {320, 416}}</string> <reference key="NSSuperview"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="696726116"/> <object class="NSColor" key="IBUIBackgroundColor"> <int key="NSColorSpace">3</int> <bytes key="NSWhite">MQA</bytes> <reference key="NSCustomColorSpace" ref="957841139"/> </object> <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> <object class="IBUISimulatedNavigationBarMetrics" key="IBUISimulatedTopBarMetrics"> <bool key="IBUITranslucent">NO</bool> <bool key="IBUIPrompted">NO</bool> </object> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> </object> </array> <object class="IBObjectContainer" key="IBDocument.Objects"> <bool key="usesAutoincrementingIDs">NO</bool> <array class="NSMutableArray" key="connectionRecords"> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">_deleteImageButton</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="798625120"/> </object> <string key="id">35</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">_shareImageButton</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="463185638"/> </object> <string key="id">33</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">atButton</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="9536129"/> </object> <string key="id">21</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">changeAccountBackgroundView</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="120761779"/> </object> <string key="id">27</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">changeAccountButton</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="1034774090"/> </object> <string key="id">23</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">changeAccountView</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="544659853"/> </object> <string key="id">26</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">countLabel</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="636588229"/> </object> <string key="id">13</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">textView</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="696726116"/> </object> <string key="id">14</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">toolBarView</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="585102796"/> </object> <string key="id">17</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">toolViewBackgroundImage</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="906113201"/> </object> <string key="id">18</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">view</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="372931748"/> </object> <string key="id">16</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">followLabel</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="791258016"/> </object> <string key="id">60r-GO-noj</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchOutletConnection" key="connection"> <string key="label">followButton</string> <reference key="source" ref="567259532"/> <reference key="destination" ref="303072693"/> </object> <string key="id">kJT-ao-FBF</string> </object> <object class="IBConnectionRecord"> <object class="IBCocoaTouchEventConnection" key="connection"> <string key="label">addFollow:</string> <reference key="source" ref="303072693"/> <reference key="destination" ref="839709031"/> <int key="IBEventType">7</int> </object> <string key="id">wJu-xn-ETn</string> </object> </array> <object class="IBMutableOrderedSet" key="objectRecords"> <array key="orderedObjects"> <object class="IBObjectRecord"> <string key="id">0</string> <array key="object" id="0"/> <reference key="children" ref="386019756"/> <nil key="parent"/> </object> <object class="IBObjectRecord"> <string key="id">-1</string> <reference key="object" ref="567259532"/> <reference key="parent" ref="0"/> <string key="objectName">File's Owner</string> </object> <object class="IBObjectRecord"> <string key="id">-2</string> <reference key="object" ref="839709031"/> <reference key="parent" ref="0"/> </object> <object class="IBObjectRecord"> <string key="id">1</string> <reference key="object" ref="372931748"/> <array class="NSMutableArray" key="children"> <reference ref="696726116"/> <reference ref="585102796"/> <reference ref="120761779"/> <reference ref="544659853"/> </array> <reference key="parent" ref="0"/> </object> <object class="IBObjectRecord"> <string key="id">4</string> <reference key="object" ref="696726116"/> <reference key="parent" ref="372931748"/> </object> <object class="IBObjectRecord"> <string key="id">10</string> <reference key="object" ref="585102796"/> <array class="NSMutableArray" key="children"> <reference ref="906113201"/> <reference ref="9536129"/> <reference ref="636588229"/> <reference ref="1034774090"/> <reference ref="463185638"/> <reference ref="798625120"/> <reference ref="791258016"/> <reference ref="303072693"/> </array> <reference key="parent" ref="372931748"/> </object> <object class="IBObjectRecord"> <string key="id">9</string> <reference key="object" ref="906113201"/> <reference key="parent" ref="585102796"/> </object> <object class="IBObjectRecord"> <string key="id">19</string> <reference key="object" ref="9536129"/> <reference key="parent" ref="585102796"/> </object> <object class="IBObjectRecord"> <string key="id">8</string> <reference key="object" ref="636588229"/> <reference key="parent" ref="585102796"/> </object> <object class="IBObjectRecord"> <string key="id">22</string> <reference key="object" ref="1034774090"/> <reference key="parent" ref="585102796"/> </object> <object class="IBObjectRecord"> <string key="id">32</string> <reference key="object" ref="463185638"/> <reference key="parent" ref="585102796"/> </object> <object class="IBObjectRecord"> <string key="id">34</string> <reference key="object" ref="798625120"/> <reference key="parent" ref="585102796"/> </object> <object class="IBObjectRecord"> <string key="id">24</string> <reference key="object" ref="120761779"/> <reference key="parent" ref="372931748"/> </object> <object class="IBObjectRecord"> <string key="id">25</string> <reference key="object" ref="544659853"/> <reference key="parent" ref="372931748"/> </object> <object class="IBObjectRecord"> <string key="id">AaX-8t-GAq</string> <reference key="object" ref="791258016"/> <reference key="parent" ref="585102796"/> </object> <object class="IBObjectRecord"> <string key="id">3WK-gL-xa0</string> <reference key="object" ref="303072693"/> <reference key="parent" ref="585102796"/> </object> </array> </object> <dictionary class="NSMutableDictionary" key="flattenedProperties"> <string key="-1.CustomClassName">UMShareEditViewController</string> <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <boolean value="NO" key="-1.showNotes"/> <string key="-2.CustomClassName">UIResponder</string> <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <boolean value="NO" key="-2.showNotes"/> <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="1.IBUserGuides" ref="0"/> <boolean value="NO" key="1.showNotes"/> <string key="10.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="10.IBUserGuides" ref="0"/> <boolean value="NO" key="10.showNotes"/> <string key="19.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="19.IBUserGuides" ref="0"/> <boolean value="NO" key="19.showNotes"/> <string key="22.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="22.IBUserGuides" ref="0"/> <boolean value="NO" key="22.showNotes"/> <string key="24.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="24.IBUserGuides" ref="0"/> <boolean value="NO" key="24.showNotes"/> <string key="25.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="25.IBUserGuides" ref="0"/> <boolean value="NO" key="25.showNotes"/> <string key="32.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="32.IBUserGuides" ref="0"/> <boolean value="NO" key="32.showNotes"/> <string key="34.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="34.IBUserGuides" ref="0"/> <boolean value="NO" key="34.showNotes"/> <string key="3WK-gL-xa0.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="4.IBUserGuides" ref="0"/> <boolean value="NO" key="4.showNotes"/> <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="8.IBUserGuides" ref="0"/> <boolean value="NO" key="8.showNotes"/> <string key="9.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <reference key="9.IBUserGuides" ref="0"/> <boolean value="NO" key="9.showNotes"/> <string key="AaX-8t-GAq.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> </dictionary> <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/> <nil key="activeLocalization"/> <dictionary class="NSMutableDictionary" key="localizations"/> <nil key="sourceID"/> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <array class="NSMutableArray" key="referencedPartialClassDescriptions"> <object class="IBPartialClassDescription"> <string key="className">UMShareEditViewController</string> <string key="superclassName">UIViewController</string> <dictionary class="NSMutableDictionary" key="actions"> <string key="addFollow:">id</string> <string key="showFriendList">id</string> </dictionary> <dictionary class="NSMutableDictionary" key="actionInfosByName"> <object class="IBActionInfo" key="addFollow:"> <string key="name">addFollow:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo" key="showFriendList"> <string key="name">showFriendList</string> <string key="candidateClassName">id</string> </object> </dictionary> <dictionary class="NSMutableDictionary" key="outlets"> <string key="_deleteImageButton">UIButton</string> <string key="_shareImageButton">UIImageView</string> <string key="atButton">UIButton</string> <string key="changeAccountBackgroundView">UIImageView</string> <string key="changeAccountButton">UIButton</string> <string key="changeAccountView">UIView</string> <string key="countLabel">UILabel</string> <string key="followButton">UIButton</string> <string key="followLabel">UILabel</string> <string key="textView">UITextView</string> <string key="toolBarView">UIView</string> <string key="toolViewBackgroundImage">UIImageView</string> </dictionary> <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName"> <object class="IBToOneOutletInfo" key="_deleteImageButton"> <string key="name">_deleteImageButton</string> <string key="candidateClassName">UIButton</string> </object> <object class="IBToOneOutletInfo" key="_shareImageButton"> <string key="name">_shareImageButton</string> <string key="candidateClassName">UIImageView</string> </object> <object class="IBToOneOutletInfo" key="atButton"> <string key="name">atButton</string> <string key="candidateClassName">UIButton</string> </object> <object class="IBToOneOutletInfo" key="changeAccountBackgroundView"> <string key="name">changeAccountBackgroundView</string> <string key="candidateClassName">UIImageView</string> </object> <object class="IBToOneOutletInfo" key="changeAccountButton"> <string key="name">changeAccountButton</string> <string key="candidateClassName">UIButton</string> </object> <object class="IBToOneOutletInfo" key="changeAccountView"> <string key="name">changeAccountView</string> <string key="candidateClassName">UIView</string> </object> <object class="IBToOneOutletInfo" key="countLabel"> <string key="name">countLabel</string> <string key="candidateClassName">UILabel</string> </object> <object class="IBToOneOutletInfo" key="followButton"> <string key="name">followButton</string> <string key="candidateClassName">UIButton</string> </object> <object class="IBToOneOutletInfo" key="followLabel"> <string key="name">followLabel</string> <string key="candidateClassName">UILabel</string> </object> <object class="IBToOneOutletInfo" key="textView"> <string key="name">textView</string> <string key="candidateClassName">UITextView</string> </object> <object class="IBToOneOutletInfo" key="toolBarView"> <string key="name">toolBarView</string> <string key="candidateClassName">UIView</string> </object> <object class="IBToOneOutletInfo" key="toolViewBackgroundImage"> <string key="name">toolViewBackgroundImage</string> <string key="candidateClassName">UIImageView</string> </object> </dictionary> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> <string key="minorKey">./Classes/UMShareEditViewController.h</string> </object> </object> </array> </object> <int key="IBDocument.localizationMode">0</int> <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string> <bool key="IBDocument.previouslyAttemptedUpgradeToXcode5">YES</bool> <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies"> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string> <real value="1072" key="NS.object.0"/> </object> <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies"> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string> <integer value="4600" key="NS.object.0"/> </object> <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> <int key="IBDocument.defaultPropertyAccessControl">3</int> <object class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes"> <string key="NS.key.0">UMSocialSDKResourcesNew.bundle/Buttons/UMS_delete_image_button_normal</string> <string key="NS.object.0">{16, 16}</string> </object> <string key="IBCocoaTouchPluginVersion">3746</string> </data> </archive> ```
/content/code_sandbox/LoveFreshBeen/Class/Vender/UMengSDK/UMSocial_Sdk_4.4/SocialSDKXib/UMShareEditViewController.xib
xml
2016-02-03T03:45:35
2024-07-21T21:49:08
LoveFreshBeen
ZhongTaoTian/LoveFreshBeen
1,184
8,888
```xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="path_to_url" package="moe.codeest.enviewsdemo"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".RefreshActivity"/> <activity android:name=".PlayActivity"/> <activity android:name=".DownloadActivity"/> <activity android:name=".ScrollActivity"/> <activity android:name=".VolumeActivity"/> <activity android:name=".SearchActivity"/> <activity android:name=".LoadingActivity"/> </application> </manifest> ```
/content/code_sandbox/app/src/main/AndroidManifest.xml
xml
2016-11-17T16:48:20
2024-07-26T17:36:04
ENViews
codeestX/ENViews
1,766
204
```xml import type { Ref } from 'react'; import { forwardRef } from 'react'; import clsx from '@proton/utils/clsx'; import type { IconName } from './Icon'; import Icon from './Icon'; const TYPES = { success: 'bg-success', warning: 'bg-warning', error: 'bg-danger', }; interface Props { iconClassName?: string; className?: string; type?: 'success' | 'warning' | 'error'; title?: string; padding?: string; name: IconName; } const RoundedIcon = ( { className = '', iconClassName, type = 'success', padding = 'p-2', title, name, ...rest }: Props, ref: Ref<HTMLSpanElement> ) => { return ( <span className={clsx(['inline-flex rounded-50 shrink-0', className, padding, type && TYPES[type]])} title={title} ref={ref} > <Icon size={3} className={iconClassName} name={name} {...rest} /> </span> ); }; export default forwardRef<HTMLSpanElement, Props>(RoundedIcon); ```
/content/code_sandbox/packages/components/components/icon/RoundedIcon.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
248
```xml import { DisplayObject } from '@antv/g'; import { OverflowHideLabelTransform } from '../spec'; import { LabelTransformComponent as LLC } from '../runtime'; import { isOverflow, parseAABB } from '../utils/bounds'; import { hide, show } from '../utils/style'; export type OverflowHideOptions = Omit<OverflowHideLabelTransform, 'type'>; /** * Hide the label when the label is overflowed from the element. */ export const OverflowHide: LLC<OverflowHideOptions> = () => { return (labels: DisplayObject[]) => { labels.forEach((l) => { show(l); const bounds = l.attr('bounds'); const b = l.getLocalBounds(); const overflow = isOverflow(parseAABB(b), bounds); if (overflow) hide(l); }); return labels; }; }; ```
/content/code_sandbox/src/label-transform/overflowHide.ts
xml
2016-05-26T09:21:04
2024-08-15T16:11:17
G2
antvis/G2
12,060
179