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 /// /// /// /// 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 { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SharedModule } from '@shared/shared.module'; import { HomeComponentsModule } from '@home/components/home-components.module'; import { OtaUpdateRoutingModule } from '@home/pages/ota-update/ota-update-routing.module'; import { OtaUpdateComponent } from '@home/pages/ota-update/ota-update.component'; @NgModule({ declarations: [ OtaUpdateComponent ], imports: [ CommonModule, SharedModule, HomeComponentsModule, OtaUpdateRoutingModule ] }) export class OtaUpdateModule { } ```
/content/code_sandbox/ui-ngx/src/app/modules/home/pages/ota-update/ota-update.module.ts
xml
2016-12-01T09:33:30
2024-08-16T19:58:25
thingsboard
thingsboard/thingsboard
16,820
167
```xml import { Localized } from "@fluent/react/compat"; import React, { FunctionComponent, useCallback } from "react"; import { graphql } from "react-relay"; import { useLocal, useMutation } from "coral-framework/lib/relay"; import { Button } from "coral-ui/components/v2"; import { RemoveAnsweredLocal } from "coral-stream/__generated__/RemoveAnsweredLocal.graphql"; import { RemoveAnsweredMutation } from "./RemoveAnsweredMutation"; import styles from "./RemoveAnswered.css"; interface Props { commentID: string; storyID: string; } const RemoveAnswered: FunctionComponent<Props> = ({ commentID, storyID }) => { const removeAnswered = useMutation(RemoveAnsweredMutation); const [{ commentsOrderBy, refreshStream }] = useLocal<RemoveAnsweredLocal>(graphql` fragment RemoveAnsweredLocal on Local { commentsOrderBy refreshStream } `); const onRemove = useCallback(async () => { await removeAnswered({ commentID, storyID, orderBy: commentsOrderBy, refreshStream, }); }, [commentID, commentsOrderBy, removeAnswered, storyID, refreshStream]); return ( <> <Localized id="qa-unansweredTab-doneAnswering"> <Button variant="regular" color="regular" className={styles.removeAnswered} onClick={onRemove} > Done </Button> </Localized> </> ); }; export default RemoveAnswered; ```
/content/code_sandbox/client/src/core/client/stream/tabs/Comments/Comment/RemoveAnswered.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
330
```xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/file_list_view_browser" android:layout_width="match_parent" android:layout_height="match_parent" android:choiceMode="multipleChoice" android:clipToPadding="false" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> <ProgressBar android:id="@+id/favourite_progressbar" style="?android:attr/progressBarStyleLargeInverse" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_margin="50dp" android:visibility="gone" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <RelativeLayout android:id="@+id/empty_hint" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias=".2"> <ImageView android:id="@+id/empty_hint_image" android:layout_width="144dp" android:layout_height="144dp" android:layout_centerHorizontal="true" android:src="@drawable/ic_zero_landscape_empty_folder" tools:ignore="ContentDescription" /> <TextView android:id="@+id/empty_hint_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/empty_hint_image" android:layout_centerHorizontal="true" android:layout_marginLeft="20dp" android:layout_marginTop="12dp" android:layout_marginRight="20dp" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.Mega.Body2.Secondary.Variant.AllCaps" /> </RelativeLayout> </androidx.constraintlayout.widget.ConstraintLayout> ```
/content/code_sandbox/app/src/main/res/layout/fragment_favourite_folder.xml
xml
2016-05-04T11:46:20
2024-08-15T16:29:10
android
meganz/android
1,537
531
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <key>#Comment</key> <string>This file is for spoofing KabyLake as Skylake (requried prior to 10.12.6)</string> <key>ACPI</key> <dict> <key>#Comment-SortedOrder</key> <string>SortedOrder may be required if you have patched SSDTs in ACPI/patched</string> <key>#SortedOrder</key> <array> <string>SSDT.aml</string> <string>SSDT-0.aml</string> <string>SSDT-1.aml</string> <string>SSDT-2.aml</string> <string>SSDT-3.aml</string> <string>SSDT-4.aml</string> <string>SSDT-5.aml</string> <string>SSDT-6.aml</string> <string>SSDT-7.aml</string> <string>SSDT-8.aml</string> <string>SSDT-9.aml</string> <string>SSDT-10.aml</string> <string>SSDT-11.aml</string> <string>SSDT-12.aml</string> <string>SSDT-13.aml</string> <string>SSDT-14.aml</string> <string>SSDT-15.aml</string> <string>SSDT-16.aml</string> <string>SSDT-17.aml</string> <string>SSDT-18.aml</string> <string>SSDT-19.aml</string> <string>SSDT-XOSI.aml</string> <string>SSDT-LPC.aml</string> <string>SSDT-UIAC.aml</string> <string>SSDT-PNLF.aml</string> </array> <key>AutoMerge</key> <true/> <key>DSDT</key> <dict> <key>Fixes</key> <dict> <key>#Comment-IRQ Fix</key> <string>The following fixes may be needed for onboard audio/USB/etc</string> <key>FIX_RTC_20000</key> <false/> <key>FIX_TMR_40000</key> <false/> <key>FixHPET_0010</key> <false/> <key>FixHeaders_20000000</key> <true/> <key>FixIPIC_0040</key> <false/> <key>FixRegions_10000000</key> <false/> <key>NewWay_80000000</key> <true/> </dict> <key>Patches</key> <array> <dict> <key>Comment</key> <string>change OSID to XSID (to avoid match against _OSI XOSI patch)</string> <key>Disabled</key> <true/> <key>Find</key> <data> T1NJRA== </data> <key>Replace</key> <data> WFNJRA== </data> </dict> <dict> <key>Comment</key> <string>change _OSI to XOSI</string> <key>Disabled</key> <true/> <key>Find</key> <data> X09TSQ== </data> <key>Replace</key> <data> WE9TSQ== </data> </dict> <dict> <key>Comment</key> <string>change _DSM to XDSM</string> <key>Disabled</key> <true/> <key>Find</key> <data> X0RTTQ== </data> <key>Replace</key> <data> WERTTQ== </data> </dict> <dict> <key>Comment</key> <string>change EC0 to EC</string> <key>Disabled</key> <true/> <key>Find</key> <data> RUMwXw== </data> <key>Replace</key> <data> RUNfXw== </data> </dict> <dict> <key>Comment</key> <string>change H_EC to EC</string> <key>Disabled</key> <true/> <key>Find</key> <data> SF9FQw== </data> <key>Replace</key> <data> RUNfXw== </data> </dict> <dict> <key>Comment</key> <string>change ECDV to EC</string> <key>Disabled</key> <true/> <key>Find</key> <data> RUNEVg== </data> <key>Replace</key> <data> RUNfXw== </data> </dict> <dict> <key>Comment</key> <string>change HDAS to HDEF</string> <key>Find</key> <data> SERBUw== </data> <key>Replace</key> <data> SERFRg== </data> </dict> <dict> <key>Comment</key> <string>change HECI to IMEI</string> <key>Find</key> <data> SEVDSQ== </data> <key>Replace</key> <data> SU1FSQ== </data> </dict> <dict> <key>Comment</key> <string>change MEI to IMEI</string> <key>Find</key> <data> TUVJXw== </data> <key>Replace</key> <data> SU1FSQ== </data> </dict> <dict> <key>Comment</key> <string>change GFX0 to IGPU</string> <key>Find</key> <data> R0ZYMA== </data> <key>Replace</key> <data> SUdQVQ== </data> </dict> <dict> <key>Comment</key> <string>change PCI0.VID to IGPU #1 (Thinkpad)</string> <key>Find</key> <data> UENJMFZJRF8= </data> <key>Replace</key> <data> UENJMElHUFU= </data> </dict> <dict> <key>Comment</key> <string>change PCI0.VID to IGPU #2 (Thinkpad)</string> <key>Find</key> <data> VklEXwhfQURSDAAAAgA= </data> <key>Replace</key> <data> SUdQVQhfQURSDAAAAgA= </data> </dict> </array> </dict> <key>DropTables</key> <array> <dict> <key>Signature</key> <string>#MCFG</string> </dict> <dict> <key>Signature</key> <string>DMAR</string> </dict> <dict> <key>Signature</key> <string>SSDT</string> <key>TableId</key> <string>xh_rvp10</string> </dict> </array> <key>SSDT</key> <dict> <key>DropOem</key> <false/> <key>Generate</key> <dict> <key>PluginType</key> <true/> </dict> <key>NoDynamicExtract</key> <true/> <key>NoOemTableId</key> <true/> </dict> </dict> <key>Boot</key> <dict> <key>Arguments</key> <string>kext-dev-mode=1 dart=0 nv_disable=1</string> <key>DefaultVolume</key> <string>LastBootedVolume</string> <key>NeverHibernate</key> <true/> <key>Secure</key> <false/> <key>Timeout</key> <integer>5</integer> <key>XMPDetection</key> <false/> </dict> <key>CPU</key> <dict> <key>UseARTFrequency</key> <false/> </dict> <key>Devices</key> <dict> <key>#AddProperties</key> <array> <dict> <key>Comment</key> <string>hda-gfx=onboard-1 for HDMI audio</string> <key>Device</key> <string>IntelGFX</string> <key>Key</key> <string>hda-gfx</string> <key>Value</key> <data> b25ib2FyZC0xAA== </data> </dict> <dict> <key>Comment</key> <string>hda-gfx=onboard-1 for HDMI audio</string> <key>Device</key> <string>HDA</string> <key>Key</key> <string>hda-gfx</string> <key>Value</key> <data> b25ib2FyZC0xAA== </data> </dict> <dict> <key>Comment</key> <string>layout-id=3</string> <key>Device</key> <string>HDA</string> <key>Key</key> <string>layout-id</string> <key>Value</key> <data> AwAAAA== </data> </dict> <dict> <key>Device</key> <string>HDA</string> <key>Key</key> <string>PinConfigurations</string> <key>Value</key> <data> </data> </dict> </array> <key>AddProperties</key> <array> <dict> <key>Comment</key> <string>Inject "name" as (data)"#display" to disable graphics drivers on NVidia</string> <key>Device</key> <string>NVidia</string> <key>Key</key> <string>name</string> <key>Value</key> <data> I2Rpc3BsYXkA </data> </dict> <dict> <key>Comment</key> <string>Inject "IOName" as "#display" to disable graphics drivers on NVidia</string> <key>Device</key> <string>NVidia</string> <key>Key</key> <string>IOName</string> <key>Value</key> <string>#display</string> </dict> <dict> <key>Comment</key> <string>Inject bogus class-code to prevent graphics drivers loading for NVidia</string> <key>Device</key> <string>NVidia</string> <key>Key</key> <string>class-code</string> <key>Value</key> <data> /////w== </data> </dict> </array> <key>Audio</key> <dict> <key>Inject</key> <integer>0</integer> </dict> <key>FakeID</key> <dict> <key>#Kaby Lake-Comment</key> <string>Kaby Lake HD620 graphics supportable by using Skylake device-id</string> <key>IntelGFX</key> <string>0x19168086</string> </dict> <key>USB</key> <dict> <key>AddClockID</key> <true/> <key>FixOwnership</key> <true/> <key>Inject</key> <true/> </dict> <key>UseIntelHDMI</key> <false/> </dict> <key>DisableDrivers</key> <array> <string>VBoxHfs</string> </array> <key>GUI</key> <dict> <key>#ScreenResolution</key> <string>1920x1080</string> <key>Custom</key> <dict> <key>Entries</key> <array> <dict> <key>Hidden</key> <false/> <key>Type</key> <string>OSXRecovery</string> </dict> <dict> <key>Title</key> <string>Windows</string> <key>Type</key> <string>Windows</string> </dict> </array> </dict> <key>Hide</key> <array> <string>Preboot</string> </array> <key>Mouse</key> <dict> <key>Enabled</key> <false/> </dict> <key>Scan</key> <dict> <key>Entries</key> <true/> <key>Legacy</key> <false/> <key>Linux</key> <true/> <key>Tool</key> <true/> </dict> <key>Theme</key> <string>BGM</string> </dict> <key>Graphics</key> <dict> <key>Inject</key> <dict> <key>ATI</key> <false/> <key>Intel</key> <true/> <key>NVidia</key> <true/> </dict> <key>InjectEDID</key> <false/> <key>ig-platform-id</key> <string>0x191b0000</string> </dict> <key>KernelAndKextPatches</key> <dict> <key>#Kaby Lake-Comment</key> <string>Kaby Lake CPU supportable by using CPUID from Skylake</string> <key>AppleRTC</key> <true/> <key>AsusAICPUPM</key> <true/> <key>DellSMBIOSPatch</key> <false/> <key>FakeCPUID</key> <string>0x0506e3</string> <key>ForceKextsToLoad</key> <array> <string>\System\Library\Extensions\IONetworkingFamily.kext</string> </array> <key>KernelLapic</key> <true/> <key>KernelPm</key> <true/> <key>KernelToPatch</key> <array> <dict> <key>Comment</key> <string>Disable panic kext logging on 10.13 Debug kernel</string> <key>Disabled</key> <false/> <key>Find</key> <data> sABMi1Xw </data> <key>MatchOS</key> <string>10.13</string> <key>Replace</key> <data> SIPEQF3D </data> </dict> <dict> <key>Comment</key> <string>Disable panic kext logging on 10.13 Release kernel</string> <key>Disabled</key> <false/> <key>Find</key> <data> igKEwHRE </data> <key>MatchOS</key> <string>10.13</string> <key>Replace</key> <data> igKEwOtE </data> </dict> <dict> <key>Comment</key> <string>MSR 0xE2 _xcpm_idle instant reboot(c) Pike R. Alpha</string> <key>Disabled</key> <false/> <key>Find</key> <data> ILniAAAADzA= </data> <key>Replace</key> <data> ILniAAAAkJA= </data> </dict> </array> <key>KextsToPatch</key> <array> <dict> <key>Comment</key> <string>Change 15 port limit to 24 in XHCI kext 10.13</string> <key>Disabled</key> <false/> <key>Find</key> <data> g32MEA== </data> <key>Name</key> <string>AppleUSBXHCIPCI</string> <key>Replace</key> <data> g32MGw== </data> </dict> <dict> <key>Comment</key> <string>0x19160000/etc, 32MB BIOS, 19MB framebuffer 9MB cursor bytes (credit RehabMan)</string> <key>Disabled</key> <false/> <key>Find</key> <data> AAAgAgAAUAE= </data> <key>Name</key> <string>com.apple.driver.AppleIntelSKLGraphicsFramebuffer</string> <key>Replace</key> <data> AAAwAQAAkAA= </data> </dict> <dict> <key>Comment</key> <string>eDP, port 0000, 0x191e0000, 0x19160000, 0x19260000, 0x19270000, 0x191b0000, 0x19160002, 0x19260002, 0x191e0003, 0x19260004, 0x19270004, 0x193b0005 credit syscl</string> <key>Disabled</key> <true/> <key>Find</key> <data> AAAIAAIAAACYAAAAAQUJAAAEAAA= </data> <key>Name</key> <string>com.apple.driver.AppleIntelSKLGraphicsFramebuffer</string> <key>Replace</key> <data> AAAIAAAEAACYAAAAAQUJAAAEAAA= </data> </dict> <dict> <key>Comment</key> <string>Enable lid wake for 0x19260002 credit syscl/lighting/Yating Zhou</string> <key>Disabled</key> <true/> <key>Find</key> <data> ChMDAAAABgAAAAAAAAAAAA== </data> <key>Name</key> <string>com.apple.driver.AppleIntelSKLGraphicsFramebuffer</string> <key>Replace</key> <data> DxMDAAAABgAAAAAAAAAAAA== </data> </dict> <dict> <key>Comment</key> <string>Enable lid wake for 0x19260004 credit syscl/lighting/Yating Zhou</string> <key>Disabled</key> <true/> <key>Find</key> <data> CgsDAAAHBgADAAAABAAAAA== </data> <key>Name</key> <string>com.apple.driver.AppleIntelSKLGraphicsFramebuffer</string> <key>Replace</key> <data> DwsDAAAHBgADAAAABAAAAA== </data> </dict> </array> </dict> <key>RtVariables</key> <dict> <key>BooterConfig</key> <string>0x28</string> <key>CsrActiveConfig</key> <string>0x67</string> </dict> <key>SMBIOS</key> <dict> <key>ProductName</key> <string>MacBookAir6,2</string> <key>ProductName-Comment</key> <string>Using Haswell MacBookAir6,2 until Clover has support for Skylake identifiers</string> <key>Trust</key> <true/> </dict> <key>SystemParameters</key> <dict> <key>#BacklightLevel</key> <integer>0</integer> <key>InjectKexts</key> <string>Detect</string> </dict> </dict> </plist> ```
/content/code_sandbox/Clover-Configs/XiaoMi/i5-with-fingerprint/CLOVER/config_HD615_620_630_640_650_spoof.plist
xml
2016-11-05T04:22:54
2024-08-12T19:25:53
Hackintosh-Installer-University
huangyz0918/Hackintosh-Installer-University
3,937
5,177
```xml import path from 'path' import { REGISTRY_MOCK_PORT } from '@pnpm/registry-mock' export default function testDefaults (opts?: any): any & { storeDir: string } { // eslint-disable-line return { registry: `path_to_url{REGISTRY_MOCK_PORT}/`, storeDir: path.resolve('..', '.store'), ...opts, } } ```
/content/code_sandbox/pnpm/test/utils/testDefaults.ts
xml
2016-01-28T07:40:43
2024-08-16T12:38:47
pnpm
pnpm/pnpm
28,869
85
```xml <!-- LibreSprite --> <gui> <window text="Sprite Properties" id="sprite_properties"> <vbox> <grid columns="2"> <label text="File name:" /> <entry text="" id="name" maxsize="256" minwidth="64" readonly="true" cell_align="horizontal" /> <label text="Type:" /> <label text="" id="type" /> <label text="Size:" /> <label text="" id="size" /> <label text="Frames:" /> <label text="" id="frames" /> <label text="Transparent Color:" /> <hbox id="transparent_color_placeholder" tooltip="Palette entry used as&#10;transparent color in each&#10;layer (only for indexed images)." /> </grid> <separator horizontal="true" /> <hbox> <boxfiller /> <button text="&amp;OK" closewindow="true" id="ok" magnet="true" width="60" /> <button text="&amp;Cancel" closewindow="true" id="cancel" width="60" /> </hbox> </vbox> </window> </gui> ```
/content/code_sandbox/data/widgets/sprite_properties.xml
xml
2016-08-31T17:26:42
2024-08-16T11:45:24
LibreSprite
LibreSprite/LibreSprite
4,717
258
```xml import * as React from 'react'; import createSvgIcon from '../utils/createSvgIcon'; const CaloriesAddIcon = createSvgIcon({ svg: ({ classes }) => ( <svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false"> <path d="M384 1280q0 88 23 170t64 153 100 129 130 100 153 65 170 23q66 0 131-13t125-41v137q-123 45-256 45-106 0-204-27t-183-78-156-120-120-155-77-184-28-204q0-84 18-165t52-155 84-140 113-122q6 37 18 78t29 81 38 77 46 65q22 25 52 25 27 0 45-19t19-46q0-11-3-20t-10-18q-56-82-86-163t-31-182q0-119 45-224t124-183T992 46t224-46h64v64q0 177 66 330t190 278 190 278 66 330h-128q0-152-56-281t-162-236q-130-132-204-288t-88-343q-83 11-153 50t-123 99-81 135-29 160q0 79 23 141t68 126q19 28 29 54t11 62q0 40-15 75t-42 61-61 42-75 15q-46 0-81-17t-62-46-49-65-39-72q-45 75-68 158t-23 170zm1664 384v128h-256v256h-128v-256h-256v-128h256v-256h128v256h256z" /> </svg> ), displayName: 'CaloriesAddIcon', }); export default CaloriesAddIcon; ```
/content/code_sandbox/packages/react-icons-mdl2/src/components/CaloriesAddIcon.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
482
```xml <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="path_to_url" xmlns:activiti="path_to_url" targetNamespace="Examples"> <process id="asyncTask"> <startEvent id="theStart" /> <sequenceFlow sourceRef="theStart" targetRef="task" /> <manualTask id="task" activiti:async="true" activiti:exclusive="false"> <multiInstanceLoopCharacteristics isSequential="false"> <loopCardinality>3</loopCardinality> </multiInstanceLoopCharacteristics> </manualTask> <sequenceFlow sourceRef="task" targetRef="theEnd" /> <endEvent id="theEnd" /> </process> </definitions> ```
/content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/bpmn/async/AsyncTaskTest.testMultiInstanceAsyncTask.bpmn20.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
173
```xml import React from 'react'; import { Header } from '../components/header'; import { Tab, Text, TabView } from '@rneui/themed'; import { ScrollView } from 'react-native'; export default () => { const [index, setIndex] = React.useState(0); console.log('tabs re render'); return ( <> <Header title="Tab" /> <Tab value={Math.ceil(index > -1 ? index : 0)} onChange={(e) => setIndex(e)} indicatorStyle={{ backgroundColor: 'white', height: 3, }} scrollable variant="primary" > <Tab.Item containerStyle={{ width: 180, }} title="Recent" titleStyle={{ fontSize: 12 }} icon={{ name: 'timer', type: 'ionicon', color: 'white' }} /> <Tab.Item title="Custom" containerStyle={(active) => ({ backgroundColor: active ? '#208990' : 'transparent', width: 180, })} titleStyle={{ fontSize: 12 }} icon={{ name: 'heart', type: 'ionicon', color: 'white' }} /> <Tab.Item containerStyle={{ width: 180, }} title="Cart" titleStyle={{ fontSize: 12 }} icon={{ name: 'cart', type: 'ionicon', color: 'white' }} /> <Tab.Item containerStyle={{ width: 180, }} title="Example tab 1" titleStyle={{ fontSize: 12 }} icon={{ name: 'cart', type: 'ionicon', color: 'white' }} /> <Tab.Item containerStyle={{ width: 180, }} title="Example tab 2" titleStyle={{ fontSize: 12 }} icon={{ name: 'cart', type: 'ionicon', color: 'white' }} /> <Tab.Item containerStyle={{ width: 180, }} title="Example tab 3" titleStyle={{ fontSize: 12 }} icon={{ name: 'cart', type: 'ionicon', color: 'white' }} /> </Tab> {/* <Text> {index} </Text> */} <TabView onSwipeStart={(e) => console.log(e)} value={index} onChange={setIndex} animationType="spring" // containerStyle={{ width: 240, height: 200 }} > <TabView.Item style={{ backgroundColor: 'red', width: '100%' }}> <ScrollView> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> <Text h1>Recent 0</Text> </ScrollView> </TabView.Item> <TabView.Item style={{ backgroundColor: 'blue', width: '100%' }}> <Text h1>Favorite 1</Text> </TabView.Item> <TabView.Item style={{ backgroundColor: 'green', width: '100%' }}> <Text h1>Cart 2${Math.random()}</Text> </TabView.Item> <TabView.Item style={{ backgroundColor: 'red', width: '100%' }}> <Text h1>Example 3</Text> </TabView.Item> <TabView.Item style={{ backgroundColor: 'blue', width: '100%' }}> <Text h1>Example 4</Text> </TabView.Item> <TabView.Item style={{ backgroundColor: 'green', width: '100%' }}> <Text h1>Example 5</Text> </TabView.Item> </TabView> </> ); }; ```
/content/code_sandbox/example/src/views/tabs.tsx
xml
2016-09-08T14:21:41
2024-08-16T10:11:29
react-native-elements
react-native-elements/react-native-elements
24,875
982
```xml import { ElementUIComponent } from './component' import { StepStatus } from './step' export type StepsDirection = 'vertical' | 'horizontal' /** Guide the user to complete tasks in accordance with the process. Its steps can be set according to the actual application scenario and the number of the steps can't be less than 2. */ export declare class ElSteps extends ElementUIComponent { /** The spacing of each step, will be responsive if omitted. Support percentage. */ space: number | string /** Display direction */ direction: StepsDirection /** Current activation step */ active: number /** Status of current step */ processStatus: StepStatus /** Status of end step */ finishStatus: StepStatus /** Whether step description is centered */ alignCenter: boolean /** Whether to apply simple theme */ simple: boolean } ```
/content/code_sandbox/types/steps.d.ts
xml
2016-09-03T06:19:26
2024-08-16T02:26:18
element
ElemeFE/element
54,066
184
```xml describe(`rules`, () => { it.todo(`add tests if necessary...`); }); ```
/content/code_sandbox/scripts/storybook/src/rules.spec.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
19
```xml /* * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. */ import {logger} from './logger'; const ORIGINAL_NODE_ENV = process.env.NODE_ENV; function setNodeEnv(newValue: typeof process.env.NODE_ENV) { Object.defineProperty(process.env, 'NODE_ENV', {value: newValue}); } const mockConsoleError = jest .spyOn(console, 'error') .mockImplementation(() => {}); describe('logger', () => { beforeEach(() => { setNodeEnv(ORIGINAL_NODE_ENV); mockConsoleError.mockReset(); }); afterAll(() => { setNodeEnv(ORIGINAL_NODE_ENV); mockConsoleError.mockRestore(); }); it('should log an error', () => { const mockError = 'a random error'; setNodeEnv('production'); logger.error(mockError); expect(mockConsoleError).toHaveBeenNthCalledWith(1, mockError); setNodeEnv('development'); logger.error(mockError); expect(mockConsoleError).toHaveBeenCalledTimes(2); expect(mockConsoleError).toHaveBeenNthCalledWith(2, mockError); }); it('should not log an error', () => { const mockError = 'a random error'; setNodeEnv('test'); logger.error(mockError); expect(mockConsoleError).not.toHaveBeenCalled(); }); }); ```
/content/code_sandbox/operate/client/src/modules/logger.test.ts
xml
2016-03-20T03:38:04
2024-08-16T19:59:58
camunda
camunda/camunda
3,172
296
```xml export { default as SpamFiltersSection } from './SpamFiltersSection'; export { default as FiltersSection } from './FiltersSection'; export { default as AddFilterModal } from './modal/FilterModal'; export { default as FilterConditionsFormRow } from './modal/FilterConditionsFormRow'; export * as FilterUtils from './utils'; export * as FilterConstants from './constants'; ```
/content/code_sandbox/packages/components/containers/filters/index.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
79
```xml import React from 'react'; import ReactDOM from 'react-dom'; import styled from 'styled-components'; import AlertStyled from './Alert'; const AlertWrapper = styled.div.attrs({ id: 'alert-wrapper', })` position: fixed; top: 0; left: 50%; height: 0; transform: translateX(-50%); width: auto; background: transparent; z-index: 5080; font-size: 14px; `; let alertcount = 0; let timeout; const createAlert = (type: string, text: string, time?: number) => { alertcount++; if (timeout) { clearTimeout(timeout); } timeout = setTimeout(() => { alertcount = 0; if (document.getElementById('alert-container')) { const container = document.getElementById('alert-container'); if (container) { document.body.removeChild(container); } } }, time || 3500); if (!document.getElementById('alert-container')) { const popup = document.createElement('div'); popup.setAttribute('id', 'alert-container'); document.body.appendChild(popup); ReactDOM.render(<AlertWrapper />, popup); } const wrapper = document.getElementById('alert-wrapper'); ReactDOM.render( <AlertStyled key={alertcount} type={type}> {text} </AlertStyled>, wrapper ); }; const success = (text: string, time?: number) => createAlert('success', text, time); const error = (text: string, time?: number) => createAlert('error', text.replace('GraphQL error:', ''), time); const warning = (text: string, time?: number) => createAlert('warning', text, time); const info = (text: string, time?: number) => createAlert('info', text, time); const Alert = { success, error, warning, info, }; export default Alert; ```
/content/code_sandbox/client-portal/modules/utils/Alert/index.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
412
```xml <!-- ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <dataset> <metadata> <column name="thread_id"/> <column name="ssl_version"/> <column name="ssl_cipher"/> <column name="ssl_sessions_reused"/> </metadata> </dataset> ```
/content/code_sandbox/test/e2e/sql/src/test/resources/cases/dql/dataset/empty_storage_units/mysql/select_mysql_sys_session_ssl_status.xml
xml
2016-01-18T12:49:26
2024-08-16T15:48:11
shardingsphere
apache/shardingsphere
19,707
120
```xml export * from './tab-item'; export * from './tab-close'; ```
/content/code_sandbox/packages/tabs/src/list/index.tsx
xml
2016-05-14T02:18:49
2024-08-16T02:46:28
ElectroCRUD
garrylachman/ElectroCRUD
1,538
15
```xml <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <Description>Stateless Web Service for Stateful OcelotApplicationApiGateway App</Description> <TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks> <ImplicitUsings>disable</ImplicitUsings> <Nullable>disable</Nullable> <AssemblyName>OcelotApplicationApiGateway</AssemblyName> <PackageId>OcelotApplicationApiGateway</PackageId> <PlatformTarget>x64</PlatformTarget> </PropertyGroup> <ItemGroup> <None Update="ocelot.json;appsettings.json;"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> </ItemGroup> <ItemGroup> <PackageReference Include="Microsoft.ServiceFabric" Version="10.1.1541" /> <PackageReference Include="Microsoft.ServiceFabric.Services" Version="7.1.1541" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\..\src\Ocelot\Ocelot.csproj" /> </ItemGroup> </Project> ```
/content/code_sandbox/samples/ServiceFabric/ApiGateway/Ocelot.Samples.ServiceFabric.ApiGateway.csproj
xml
2016-06-29T20:35:24
2024-08-15T16:00:38
Ocelot
ThreeMammals/Ocelot
8,277
253
```xml <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="path_to_url"> <scale android:fromXScale="0dp" android:toXScale="100%" android:fromYScale="0dp" android:toYScale="100%" android:duration="150" android:interpolator="@android:interpolator/decelerate_cubic" /> <translate android:fromXDelta="50%" android:fromYDelta="50%" android:toXDelta="0%" android:toYDelta="0%" android:duration="150" android:interpolator="@android:interpolator/decelerate_cubic" /> </set> ```
/content/code_sandbox/app/src/main/res/anim/fab_expand.xml
xml
2016-07-08T03:18:40
2024-08-14T02:54:51
talon-for-twitter-android
klinker24/talon-for-twitter-android
1,189
157
```xml import { ServerRequest, ServerResponse } from './server.types'; const debug = require('debug')( 'expo:start:server:middleware:metro-context-modules' ) as typeof console.log; /** * Source maps for `require.context` modules aren't supported in the Metro dev server * we should intercept the request and return a noop response to prevent Chrome/Metro * from erroring out. */ export class ContextModuleSourceMapsMiddleware { getHandler() { return (req: ServerRequest, res: ServerResponse, next: any) => { if (!req?.url || (req.method !== 'GET' && req.method !== 'HEAD')) { return next(); } if (req.url.match(/%3Fctx=[\d\w\W]+\.map\?/)) { debug('Skipping sourcemap request for context module %s', req.url); // Return a noop response for the sourcemap res.writeHead(200, { 'Content-Type': 'application/json', }); res.end('{}'); return; } next(); }; } } ```
/content/code_sandbox/packages/@expo/cli/src/start/server/middleware/ContextModuleSourceMapsMiddleware.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
235
```xml // See LICENSE in the project root for license information. import type * as ts from 'typescript'; import type { AstModule, AstModuleExportInfo } from './AstModule'; import { AstSyntheticEntity } from './AstEntity'; import type { Collector } from '../collector/Collector'; export interface IAstNamespaceImportOptions { readonly astModule: AstModule; readonly namespaceName: string; readonly declaration: ts.Declaration; readonly symbol: ts.Symbol; } /** * `AstNamespaceImport` represents a namespace that is created implicitly by a statement * such as `import * as example from "./file";` * * @remarks * * A typical input looks like this: * ```ts * // Suppose that example.ts exports two functions f1() and f2(). * import * as example from "./file"; * export { example }; * ``` * * API Extractor's .d.ts rollup will transform it into an explicit namespace, like this: * ```ts * declare f1(): void; * declare f2(): void; * * declare namespace example { * export { * f1, * f2 * } * } * ``` * * The current implementation does not attempt to relocate f1()/f2() to be inside the `namespace` * because other type signatures may reference them directly (without using the namespace qualifier). * The `declare namespace example` is a synthetic construct represented by `AstNamespaceImport`. */ export class AstNamespaceImport extends AstSyntheticEntity { /** * Returns true if the AstSymbolTable.analyze() was called for this object. * See that function for details. */ public analyzed: boolean = false; /** * For example, if the original statement was `import * as example from "./file";` * then `astModule` refers to the `./file.d.ts` file. */ public readonly astModule: AstModule; /** * For example, if the original statement was `import * as example from "./file";` * then `namespaceName` would be `example`. */ public readonly namespaceName: string; /** * The original `ts.SyntaxKind.NamespaceImport` which can be used as a location for error messages. */ public readonly declaration: ts.Declaration; /** * The original `ts.SymbolFlags.Namespace` symbol. */ public readonly symbol: ts.Symbol; public constructor(options: IAstNamespaceImportOptions) { super(); this.astModule = options.astModule; this.namespaceName = options.namespaceName; this.declaration = options.declaration; this.symbol = options.symbol; } /** {@inheritdoc} */ public get localName(): string { // abstract return this.namespaceName; } public fetchAstModuleExportInfo(collector: Collector): AstModuleExportInfo { const astModuleExportInfo: AstModuleExportInfo = collector.astSymbolTable.fetchAstModuleExportInfo( this.astModule ); return astModuleExportInfo; } } ```
/content/code_sandbox/apps/api-extractor/src/analyzer/AstNamespaceImport.ts
xml
2016-09-30T00:28:20
2024-08-16T18:54:35
rushstack
microsoft/rushstack
5,790
641
```xml import { IPrismDiagnostic } from '@stoplight/prism-core'; import { Either } from 'fp-ts/Either'; import { NonEmptyArray } from 'fp-ts/NonEmptyArray'; export enum ValidationContext { Input, Output, } export type validateFn<Target, Specs> = ( target: Target, specs: Specs[], context: ValidationContext, mediaType?: string, multipartBoundary?: string, bundle?: unknown ) => Either<NonEmptyArray<IPrismDiagnostic>, Target>; ```
/content/code_sandbox/packages/http/src/validator/validators/types.ts
xml
2016-03-18T03:52:09
2024-08-16T09:16:35
prism
stoplightio/prism
4,175
113
```xml // Libraries import React, {PureComponent} from 'react' import {Position} from 'codemirror' // Components import SchemaExplorer from 'src/flux/components/SchemaExplorer' import FluxEditor from 'src/flux/components/FluxEditor' import Threesizer from 'src/shared/components/threesizer/Threesizer' import {Button, ComponentSize, ComponentColor} from 'src/reusable_ui' import FluxFunctionsToolbar from 'src/flux/components/flux_functions_toolbar/FluxFunctionsToolbar' // Constants import {HANDLE_VERTICAL} from 'src/shared/constants' // Utils import {getAST} from 'src/shared/apis/flux/ast' import {restartable} from 'src/shared/utils/restartable' import DefaultDebouncer, {Debouncer} from 'src/shared/utils/debouncer' import { TimeMachineContainer, TimeMachineContextConsumer, } from 'src/shared/utils/TimeMachineContext' import {parseError} from 'src/flux/helpers/scriptBuilder' import {getSuggestions} from 'src/flux/helpers/suggestions' import {insertFluxFunction} from 'src/flux/helpers/scriptInsertion' // Types import {NotificationAction, Source, TimeRange} from 'src/types' import { Suggestion, Links, ScriptStatus, FluxToolbarFunction, } from 'src/types/flux' import FluxQueryBuilder from './fluxQueryBuilder/FluxQueryBuilder' const CHECK_SCRIPT_DELAY = 600 const VALID_SCRIPT_STATUS = {type: 'success', text: ''} interface ConnectedProps { fluxProportions: number[] onSetFluxProportions: (fluxProportions: number[]) => void timeRange: TimeRange } interface PassedProps { script: string draftScript: string onChangeScript: (script: string) => void onChangeDraftScript: (draftScript: string) => void source: Source onManualRefresh: () => void onUpdateStatus?: (status: ScriptStatus) => void links: Links notify: NotificationAction } type Props = ConnectedProps & PassedProps interface State { suggestions: Suggestion[] draftScriptStatus: ScriptStatus isWizardActive: boolean } class FluxQueryMaker extends PureComponent<Props, State> { private debouncer: Debouncer = new DefaultDebouncer() private getAST = restartable(getAST) private cursorPosition: Position = {line: 0, ch: 0} public constructor(props: Props) { super(props) this.state = { suggestions: getSuggestions(), draftScriptStatus: {type: 'none', text: ''}, isWizardActive: false, } } public componentDidMount() { this.checkDraftScript() } public render() { const { notify, source, draftScript, fluxProportions, onSetFluxProportions, timeRange, } = this.props if (!this.state.isWizardActive) { const {suggestions, draftScriptStatus} = this.state const [leftSize, middleSize, rightSize] = fluxProportions const divisions = [ { name: 'Schema', size: leftSize, headerButtons: [], menuOptions: [], render: () => ( <SchemaExplorer source={source} timeRange={timeRange} notify={notify} /> ), headerOrientation: HANDLE_VERTICAL, }, { name: 'Script', size: middleSize, customClass: 'flux-query-maker--script', headerOrientation: HANDLE_VERTICAL, headerButtons: [ <Button key={0} text={'Script Builder'} onClick={this.handleShowWizard} size={ComponentSize.ExtraSmall} />, <Button key={1} text={'Run Script'} onClick={this.handleSubmitScript} size={ComponentSize.ExtraSmall} color={ComponentColor.Primary} />, ], menuOptions: [], render: visibility => ( <FluxEditor status={draftScriptStatus} script={draftScript} visibility={visibility} suggestions={suggestions} onChangeScript={this.handleChangeDraftScript} onSubmitScript={this.handleSubmitScript} onShowWizard={this.handleShowWizard} onCursorChange={this.handleCursorPosition} /> ), }, { name: 'Flux Functions', size: rightSize, headerButtons: [], menuOptions: [], render: () => ( <FluxFunctionsToolbar onInsertFluxFunction={this.handleInsertFluxFunction} /> ), headerOrientation: HANDLE_VERTICAL, }, ] return ( <div className="flux-script-wizard"> <div className="flux-script-wizard--children"> <Threesizer orientation={HANDLE_VERTICAL} divisions={divisions} containerClass="page-contents" onResize={onSetFluxProportions} /> </div> </div> ) } return ( <FluxQueryBuilder script={draftScript} source={source} timeRange={timeRange} onSubmit={this.handleSubmitBuilderScript} onShowEditor={this.handleShowEditor} /> ) } private handleCursorPosition = (position: Position): void => { this.cursorPosition = position } private handleInsertFluxFunction = async ( fluxFunction: FluxToolbarFunction ): Promise<void> => { const {draftScript} = this.props const {line} = this.cursorPosition const {updatedScript, cursorPosition} = insertFluxFunction( line, draftScript, fluxFunction ) await this.handleChangeDraftScript(updatedScript) this.handleCursorPosition(cursorPosition) } private handleSubmitScript = () => { const { onChangeScript, onUpdateStatus, onManualRefresh, draftScript, } = this.props const {draftScriptStatus} = this.state onChangeScript(draftScript) onManualRefresh() if (onUpdateStatus) { onUpdateStatus(draftScriptStatus) } } private handleSubmitBuilderScript = async (script: string) => { await this.handleChangeDraftScript(script) this.props.onChangeScript(script) this.handleSubmitScript() } private handleShowWizard = (): void => { this.setState({isWizardActive: true}) } private handleShowEditor = (): void => { this.setState({isWizardActive: false}) } private handleChangeDraftScript = async ( draftScript: string ): Promise<void> => { const {onChangeDraftScript} = this.props await onChangeDraftScript(draftScript) this.debouncer.call(this.checkDraftScript, CHECK_SCRIPT_DELAY) } private checkDraftScript = async () => { const {draftScript} = this.props if (draftScript.trim() === '') { // Don't attempt to validate an empty script this.setState({draftScriptStatus: VALID_SCRIPT_STATUS}) return } let draftScriptStatus: ScriptStatus try { await this.getAST({url: this.props.links.ast, body: draftScript}) draftScriptStatus = VALID_SCRIPT_STATUS } catch (error) { draftScriptStatus = parseError(error) } this.setState({draftScriptStatus}) } } const ConnectedFluxQueryMaker = (props: PassedProps) => ( <TimeMachineContextConsumer> {(container: TimeMachineContainer) => ( <FluxQueryMaker {...props} timeRange={container.state.timeRange} fluxProportions={container.state.fluxProportions} onSetFluxProportions={container.handleSetFluxProportions} /> )} </TimeMachineContextConsumer> ) export default ConnectedFluxQueryMaker ```
/content/code_sandbox/ui/src/shared/components/TimeMachine/FluxQueryMaker.tsx
xml
2016-08-24T23:28:56
2024-08-13T19:50:03
chronograf
influxdata/chronograf
1,494
1,696
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Hello World, Click Me!</string> <string name="app_name">Xamarin.Android.BindingResolveImports-Tests</string> </resources> ```
/content/code_sandbox/tests/ResolveImports/Xamarin.Android.BindingResolveImports-Tests/Resources/values/Strings.xml
xml
2016-03-30T15:37:14
2024-08-16T19:22:13
android
dotnet/android
1,905
53
```xml export interface ICommonParams { page?: number; perPage?: number; sortField?: string; sortDirection?: number; searchValue?: string; campaignId?: string; ownerType?: string; ownerId?: string; status?: string; statuses?: string[]; } export interface IScoreLogParams { changeScore: number; createdAt: string; createdBy: string; description: string; owner: Owner; ownerId: string; ownerType: string; } export interface Owner { starredConversationIds: any[]; details: Details; isActive: boolean; brandIds: any[]; groupIds: string[]; deviceTokens: any[]; doNotDisturb: string; isSubscribed: string; isShowNotification: boolean; score: number; role: string; _id: string; email: string; password: string; registrationToken: string; registrationTokenExpires: string; code: string; createdAt: string; emailSignatures: any[]; customFieldsData: any[]; __v: number; links: Links; username: string; } export interface Details { avatar: string; fullName: string; shortName: string; birthDate: string; position: string; workStartedDate: string; location: string; description: string; operatorPhone: string; } export interface Links { facebook: string; twitter: string; youtube: string; website: string; } ```
/content/code_sandbox/packages/plugin-loyalties-ui/src/loyalties/scorelogs/types.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
330
```xml export const getToolbarResponsiveSizes = (breakpoint?: string) => { const localIsTiny = breakpoint === 'extratiny' || breakpoint === 'tiny'; const localIsExtraTiny = breakpoint === 'extratiny'; const localIsNarrow = breakpoint === 'extratiny' || breakpoint === 'tiny' || breakpoint === 'small'; return { localIsTiny, localIsExtraTiny, localIsNarrow, }; }; ```
/content/code_sandbox/applications/mail/src/app/helpers/toolbar/getToolbarResponsiveSizes.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
98
```xml export interface CompilerInput { // Required: Source code language. Currently supported are "Solidity" and "Yul". language: Language, // Required sources: Source, // Optional settings: { // Optional: Sorted list of remappings remappings?: string[], // Optional: Optimizer settings optimizer: { // disabled by default enabled: boolean, // Optimize for how many times you intend to run the code. // Lower values will optimize more for initial deployment cost, higher // values will optimize more for high-frequency usage. runs: number, // Switch optimizer components on or off in detail. // The "enabled" switch above provides two defaults which can be // tweaked here. If "details" is given, "enabled" can be omitted. details?: { // The peephole optimizer is always on if no details are given, // use details to switch it off. peephole?: boolean, // The unused jumpdest remover is always on if no details are given, // use details to switch it off. jumpdestRemover?: boolean, // Sometimes re-orders literals in commutative operations. orderLiterals?: boolean, // Removes duplicate code blocks deduplicate?: boolean, // Common subexpression elimination, this is the most complicated step but // can also provide the largest gain. cse?: boolean, // Optimize representation of literal numbers and strings in code. constantOptimizer?: boolean, // The new Yul optimizer. Mostly operates on the code of ABIEncoderV2. // It can only be activated through the details here. yul?: boolean, // Tuning options for the Yul optimizer. yulDetails?: { // Improve allocation of stack slots for variables, can free up stack slots early. // Activated by default if the Yul optimizer is activated. stackAllocation: boolean } } }, // Version of the EVM to compile for. // Affects type checking and code generation. evmVersion?: EVMVersion, // Optional: Debugging settings debug?: { // How to treat revert (and require) reason strings. Settings are // "default", "strip", "debug" and "verboseDebug". // "default" does not inject compiler-generated revert strings and keeps user-supplied ones. // "strip" removes all revert strings (if possible, i.e. if literals are used) keeping side-effects // "debug" injects strings for compiler-generated internal reverts (not yet implemented) // "verboseDebug" even appends further information to user-supplied revert strings (not yet implemented) revertStrings: 'default' | 'strip' | 'debug' | 'verboseDebug' } // Metadata settings (optional) metadata?: { // Use only literal content and not URLs (false by default) useLiteralContent: boolean, // Use the given hash method for the metadata hash that is appended to the bytecode. // The metadata hash can be removed from the bytecode via option "none". // The other options are "ipfs" and "bzzr1". // If the option is omitted, "ipfs" is used by default. bytecodeHash: 'ipfs' | 'bzzr1' | 'none' }, // Addresses of the libraries. If not all libraries are given here, // it can result in unlinked objects whose output data is different. libraries?: { // The top level key is the the name of the source file where the library is used. // If remappings are used, this source file should match the global path // after remappings were applied. // If this key is an empty string, that refers to a global level. [fileName: string]: Record<string, string> } // The following can be used to select desired outputs based // on file and contract names. // If this field is omitted, then the compiler loads and does type checking, // but will not generate any outputs apart from errors. // The first level key is the file name and the second level key is the contract name. // An empty contract name is used for outputs that are not tied to a contract // but to the whole source file like the AST. // A star as contract name refers to all contracts in the file. // Similarly, a star as a file name matches all files. // To select all outputs the compiler can possibly generate, use // "outputSelection: { "*": { "*": [ "*" ], "": [ "*" ] } }" // but note that this might slow down the compilation process needlessly. // // The available output types are as follows: // // File level (needs empty string as contract name): // ast - AST of all source files // legacyAST - legacy AST of all source files // // Contract level (needs the contract name or "*"): // abi - ABI // devdoc - Developer documentation (natspec) // userdoc - User documentation (natspec) // metadata - Metadata // ir - Yul intermediate representation of the code before optimization // irOptimized - Intermediate representation after optimization // storageLayout - Slots, offsets and types of the contract's state variables. // evm.assembly - New assembly format // evm.legacyAssembly - Old-style assembly format in JSON // evm.bytecode.object - Bytecode object // evm.bytecode.opcodes - Opcodes list // evm.bytecode.sourceMap - Source mapping (useful for debugging) // evm.bytecode.linkReferences - Link references (if unlinked object) // evm.deployedBytecode* - Deployed bytecode (has the same options as evm.bytecode) // evm.methodIdentifiers - The list of function hashes // evm.gasEstimates - Function gas estimates // ewasm.wast - eWASM S-expressions format (not supported at the moment) // ewasm.wasm - eWASM binary format (not supported at the moment) // // Note that using a using `evm`, `evm.bytecode`, `ewasm`, etc. will select every // target part of that output. Additionally, `*` can be used as a wildcard to request everything. // outputSelection?: { '*': { '': [ 'legacyAST', 'ast' ], '*': [ 'abi', 'metadata', 'devdoc', 'userdoc', 'evm.legacyAssembly', 'evm.bytecode', 'evm.deployedBytecode', 'evm.methodIdentifiers', 'evm.gasEstimates' ] } } } } export interface Source { [fileName: string]: { // Optional: keccak256 hash of the source file keccak256?: string, // Required (unless "urls" is used): literal contents of the source file content: string, urls?: string[] } } export interface CompilerInputOptions { optimize: boolean | number, libraries?: { [fileName: string]: Record<string, string> }, evmVersion?: EVMVersion, language?: Language } export type EVMVersion = 'homestead' | 'tangerineWhistle' | 'spuriousDragon' | 'byzantium' | 'constantinople' | 'petersburg' | 'istanbul' | 'muirGlacier' | null export type Language = 'Solidity' | 'Yul' export interface CompilerState { compileJSON: ((input: SourceWithTarget) => void) | null, worker: any, currentVersion: string| null| undefined, optimize: boolean, evmVersion: EVMVersion| null, language: Language, compilationStartTime: number| null, target: string | null, lastCompilationResult: { data: CompilationResult | null, source: SourceWithTarget | null | undefined } | null } export interface SourceWithTarget { sources?: Source, target?: string | null | undefined } export interface MessageToWorker { cmd: string, job?: number, input?: CompilerInput, data?: string } export interface MessageFromWorker { cmd: string, job?: number, missingInputs?: string[], data?: string } export interface visitContractsCallbackParam { name: string, object: CompiledContract, file: string } export interface visitContractsCallbackInterface { (param: visitContractsCallbackParam): boolean | void } export interface gatherImportsCallbackInterface { (err?: Error | null, result?: SourceWithTarget) : any } export interface CompilationResult { error?: CompilationError, /** not present if no errors/warnings were encountered */ errors?: CompilationError[] /** This contains the file-level outputs. In can be limited/filtered by the outputSelection settings */ sources?: { [contractName: string]: CompilationSource } /** This contains the contract-level outputs. It can be limited/filtered by the outputSelection settings */ contracts?: { /** If the language used has no contract names, this field should equal to an empty string. */ [fileName: string]: { [contract: string]: CompiledContract } } } /////////// // ERROR // /////////// export interface CompilationError { /** Location within the source file */ sourceLocation?: { file: string start: number end: number } /** Error type */ type?: CompilationErrorType /** Component where the error originated, such as "general", "ewasm", etc. */ component?: 'general' | 'ewasm' | string severity?: 'error' | 'warning' message?: string mode?: 'panic' /** the message formatted with source location */ formattedMessage?: string } type CompilationErrorType = | 'JSONError' | 'IOError' | 'ParserError' | 'DocstringParsingError' | 'SyntaxError' | 'DeclarationError' | 'TypeError' | 'UnimplementedFeatureError' | 'InternalCompilerError' | 'Exception' | 'CompilerError' | 'FatalError' | 'Warning' //////////// // SOURCE // //////////// export interface CompilationSource { /** Identifier of the source (used in source maps) */ id: number /** The AST object */ ast: AstNode /** The legacy AST object */ legacyAST: AstNodeLegacy } ///////// // AST // ///////// export interface AstNode { absolutePath?: string exportedSymbols?: Object id: number nodeType: string nodes?: Array<AstNode> src: string literals?: Array<string> file?: string scope?: number sourceUnit?: number symbolAliases?: Array<string> [x: string]: any } export interface AstNodeLegacy { id: number name: string src: string children?: Array<AstNodeLegacy> attributes?: AstNodeAtt } export interface AstNodeAtt { operator?: string string?: null type?: string value?: string constant?: boolean name?: string public?: boolean exportedSymbols?: Object argumentTypes?: null absolutePath?: string [x: string]: any } ////////////// // CONTRACT // ////////////// export interface CompiledContract { /** The Ethereum Contract ABI. If empty, it is represented as an empty array. */ abi: ABIDescription[] // See the Metadata Output documentation (serialised JSON string) metadata: string /** User documentation (natural specification) */ userdoc: UserDocumentation /** Developer documentation (natural specification) */ devdoc: DeveloperDocumentation /** Intermediate representation (string) */ ir: string /** EVM-related outputs */ evm: { assembly: string legacyAssembly: {} /** Bytecode and related details. */ bytecode: BytecodeObject deployedBytecode: BytecodeObject /** The list of function hashes */ methodIdentifiers: { [functionIdentifier: string]: string } // Function gas estimates gasEstimates: { creation: { codeDepositCost: string executionCost: 'infinite' | string totalCost: 'infinite' | string } external: { [functionIdentifier: string]: string } internal: { [functionIdentifier: string]: 'infinite' | string } } } /** eWASM related outputs */ ewasm: { /** S-expressions format */ wast: string /** Binary format (hex string) */ wasm: string } } ///////// // ABI // ///////// export type ABIDescription = FunctionDescription | EventDescription export interface FunctionDescription { /** Type of the method. default is 'function' */ type?: 'function' | 'constructor' | 'fallback' | 'receive' /** The name of the function. Constructor and fallback function never have name */ name?: string /** List of parameters of the method. Fallback function doesnt have inputs. */ inputs?: ABIParameter[] /** List of the outputs parameters for the method, if any */ outputs?: ABIParameter[] /** State mutability of the method */ stateMutability: 'pure' | 'view' | 'nonpayable' | 'payable' /** true if function accepts Ether, false otherwise. Default is false */ payable?: boolean /** true if function is either pure or view, false otherwise. Default is false */ constant?: boolean } export interface EventDescription { type: 'event' name: string inputs: ABIParameter & { /** true if the field is part of the logs topics, false if it one of the logs data segment. */ indexed: boolean }[] /** true if the event was declared as anonymous. */ anonymous: boolean } export interface ABIParameter { /** The name of the parameter */ name: string /** The canonical type of the parameter */ type: ABITypeParameter /** Used for tuple types */ components?: ABIParameter[] } export type ABITypeParameter = | 'uint' | 'uint[]' // TODO : add <M> | 'int' | 'int[]' // TODO : add <M> | 'address' | 'address[]' | 'bool' | 'bool[]' | 'fixed' | 'fixed[]' // TODO : add <M> | 'ufixed' | 'ufixed[]' // TODO : add <M> | 'bytes' | 'bytes[]' // TODO : add <M> | 'function' | 'function[]' | 'tuple' | 'tuple[]' | string // Fallback /////////////////////////// // NATURAL SPECIFICATION // /////////////////////////// // Userdoc export interface UserDocumentation { methods: UserMethodList notice: string } export type UserMethodList = { [functionIdentifier: string]: UserMethodDoc } & { 'constructor'?: string } export interface UserMethodDoc { notice: string } // Devdoc export interface DeveloperDocumentation { author: string title: string details: string methods: DevMethodList } export interface DevMethodList { [functionIdentifier: string]: DevMethodDoc } export interface DevMethodDoc { author: string details: string return: string params: { [param: string]: string } } ////////////// // BYTECODE // ////////////// export interface BytecodeObject { /** The bytecode as a hex string. */ object: string /** Opcodes list */ opcodes: string /** The source mapping as a string. See the source mapping definition. */ sourceMap: string /** If given, this is an unlinked object. */ linkReferences?: { [contractName: string]: { /** Byte offsets into the bytecode. */ [library: string]: { start: number; length: number }[] } } } ```
/content/code_sandbox/remix-solidity/src/compiler/types.ts
xml
2016-04-11T09:05:03
2024-08-12T19:22:17
remix
ethereum/remix
1,177
3,646
```xml import type { Meta, StoryObj } from '@storybook/react'; import { Button } from './Button'; /** * These are the stories for the Button component * * _this description was written as a comment above the default export_ _this should never be shown * in Storybook, as it should be overridden by `parameters.docs.description.component`_ */ const meta = { title: 'Examples/Button with Meta Description as Parameter and Comment', component: Button, argTypes: { backgroundColor: { control: 'color' }, }, // Stop *this* story from being stacked in Chromatic globals: { sb_theme: 'default' }, parameters: { docs: { description: { component: ` These are the stories for the Button component _this description was written as a string in \`parameters.docs.description.component\` and should override the comment above the default export_ `, }, }, }, } satisfies Meta<typeof Button>; export default meta; type Story = StoryObj<typeof meta>; export const WithMetaDescriptionAsBoth: Story = { args: { primary: true, label: 'Button', }, }; ```
/content/code_sandbox/code/lib/blocks/src/examples/ButtonWithMetaDescriptionAsBoth.stories.tsx
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
244
```xml import { DeviceRequest } from "./device.request"; import { TokenTwoFactorRequest } from "./token-two-factor.request"; import { TokenRequest } from "./token.request"; export class UserApiTokenRequest extends TokenRequest { constructor( public clientId: string, public clientSecret: string, protected twoFactor: TokenTwoFactorRequest, device?: DeviceRequest, ) { super(twoFactor, device); } toIdentityToken() { const obj = super.toIdentityToken(this.clientId); obj.scope = this.clientId.startsWith("organization") ? "api.organization" : "api"; obj.grant_type = "client_credentials"; obj.client_secret = this.clientSecret; return obj; } static fromJSON(json: any) { return Object.assign(Object.create(UserApiTokenRequest.prototype), json, { device: json.device ? DeviceRequest.fromJSON(json.device) : undefined, twoFactor: json.twoFactor ? Object.assign(new TokenTwoFactorRequest(), json.twoFactor) : undefined, }); } } ```
/content/code_sandbox/libs/common/src/auth/models/request/identity-token/user-api-token.request.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
224
```xml import { IUser } from '../../../services/IUser'; export interface IBirthdayState{ Users : IUser[] ; showBirthdays: boolean; } ```
/content/code_sandbox/samples/react-birthdays/src/webparts/Birthdays/components/IBirthdaysState.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
29
```xml export const styles: any = { container: { width: '100%', paddingTop: '100%', overflow: 'hidden', position: 'relative', }, video: { top: 0, left: 0, width: '100%', height: '100%', display: 'block', overflow: 'hidden', position: 'absolute', transform: undefined, }, }; ```
/content/code_sandbox/src/QrReader/styles.ts
xml
2016-05-14T08:12:28
2024-08-11T03:47:29
react-qr-reader
JodusNodus/react-qr-reader
1,124
92
```xml <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>TroubleshooterDialog</class> <widget class="QDialog" name="TroubleshooterDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>650</width> <height>370</height> </rect> </property> <property name="minimumSize"> <size> <width>350</width> <height>250</height> </size> </property> <property name="windowTitle"> <string>Troubleshooter</string> </property> <property name="windowIcon"> <iconset> <normaloff>../img/emblems/utility.svg</normaloff>../img/emblems/utility.svg</iconset> </property> <property name="modal"> <bool>true</bool> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="Title"> <property name="minimumSize"> <size> <width>0</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> <height>30</height> </size> </property> <property name="text"> <string extracomment="Shown when the troubleshooter successfully">Troubleshooting complete!</string> </property> </widget> </item> <item> <widget class="QTreeWidget" name="Results"> <property name="editTriggers"> <set>QAbstractItemView::NoEditTriggers</set> </property> <property name="showDropIndicator" stdset="0"> <bool>false</bool> </property> <property name="iconSize"> <size> <width>16</width> <height>16</height> </size> </property> <property name="rootIsDecorated"> <bool>false</bool> </property> <property name="uniformRowHeights"> <bool>true</bool> </property> <property name="sortingEnabled"> <bool>false</bool> </property> <property name="wordWrap"> <bool>true</bool> </property> <property name="headerHidden"> <bool>false</bool> </property> <column> <property name="text"> <string extracomment="Column header for the troubleshooting results">Result</string> </property> </column> <column> <property name="text"> <string extracomment="Column header for the troubleshooting results">Check</string> </property> </column> </widget> </item> <item> <widget class="QWidget" name="ButtonGroup" native="true"> <property name="maximumSize"> <size> <width>16777215</width> <height>50</height> </size> </property> <layout class="QHBoxLayout" name="horizontalLayout"> <property name="spacing"> <number>0</number> </property> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QPushButton" name="CopyToClipboard"> <property name="text"> <string>Copy to Clipboard</string> </property> <property name="icon"> <iconset theme="edit-copy"/> </property> <property name="shortcut"> <string notr="true">Ctrl+C</string> </property> </widget> </item> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="Close"> <property name="text"> <string>Close</string> </property> <property name="icon"> <iconset theme="dialog-close"> <normaloff>.</normaloff>.</iconset> </property> <property name="default"> <bool>true</bool> </property> </widget> </item> </layout> </widget> </item> </layout> </widget> <resources/> <connections/> </ui> ```
/content/code_sandbox/data/qt/troubleshooter.ui
xml
2016-05-15T16:41:35
2024-08-08T18:26:04
polychromatic
polychromatic/polychromatic
1,025
1,109
```xml export interface OnDestroy { $onDestroy(): Promise<any> | void; } ```
/content/code_sandbox/packages/di/src/common/interfaces/OnDestroy.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
17
```xml <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="app_name">Resources</string> <string name="resources_library_string">resource library string</string> <string name="buy_kindle"><xliff:g id="tag"></xliff:g></string> </resources> ```
/content/code_sandbox/freeline-sample/resources/src/main/res/values/strings.xml
xml
2016-08-03T17:22:52
2024-08-06T10:04:13
freeline
alibaba/freeline
5,481
77
```xml import { createSelector } from 'reselect' import { constants, isNight, ThemePair } from '@devhub/core' import { Appearance } from '../../libs/appearence' import { EMPTY_OBJ } from '../../utils/constants' import { loadTheme } from '../../utils/helpers/theme' import { RootState } from '../types' const s = (state: RootState) => state.config || EMPTY_OBJ export const themePairSelector = (state: RootState) => s(state).theme || constants.DEFAULT_THEME_PAIR const defaultPreferredDarkThemePair: ThemePair = { id: constants.DEFAULT_DARK_THEME, } export const preferredDarkThemePairSelector = (state: RootState) => s(state).preferredDarkTheme || defaultPreferredDarkThemePair const defaultPreferredLightThemePair: ThemePair = { id: constants.DEFAULT_LIGHT_THEME, } export const preferredLightThemePairSelector = (state: RootState) => s(state).preferredLightTheme || defaultPreferredLightThemePair export const themeSelector = createSelector( themePairSelector, preferredDarkThemePairSelector, preferredLightThemePairSelector, () => Appearance.getColorScheme(), () => isNight(), (theme, preferredDarkTheme, preferredLightTheme, _colorScheme, _isNight) => { return loadTheme(theme, { preferredDarkTheme, preferredLightTheme }) }, ) ```
/content/code_sandbox/packages/components/src/redux/selectors/config.ts
xml
2016-11-30T23:24:21
2024-08-16T00:24:59
devhub
devhubapp/devhub
9,652
280
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <string name="about_android">%1$s </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"></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_scheduled_task_status_text"></string> <string name="assistant_screen_successful_task_text"></string> <string name="assistant_screen_task_create_success_message"></string> <string name="assistant_screen_task_delete_success_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">ID</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_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-Droid</string> <string name="community_rc_play_store"></string> <string name="community_release_candidate_headline"></string> <string name="community_release_candidate_text">RCGoogle PlayF-DroidF-DroidAndroidGoogle Play</string> <string name="community_testing_bug_text"></string> <string name="community_testing_headline"></string> <string name="community_testing_report_text">Github OR Githubissue</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="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">%1$s %2$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"></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="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_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_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="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">/</string> <string name="invalid_url"> 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 </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 web </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$d kB %2$d / %3$d %4$d </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\n\n\n\n</string> <string name="manage_space_title"></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"></string> <string name="menu_item_sort_by_name_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">PDFPDF</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%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 </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_error_no_local_file"></string> <string name="preview_image_error_unknown_format"></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"></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">()</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"></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">- </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">Nextcloud - * * Nextcloud * * * * * * * * DAVx5 ( DAVdroid) Nextcloud? Nextcloud : path_to_url Nextcloud</string> <string name="store_full_dev_desc"> bug F-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 \n\n %2$s %3$s %1$s %4$s .\n\n %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="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_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_upload"></string> <string name="upload_file_dialog_filename"></string> <string name="upload_file_dialog_filetype"></string> <string name="upload_file_dialog_filetype_googlemap_shortcut">(%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_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_old_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$s25</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-rCN/strings.xml
xml
2016-06-06T21:23:36
2024-08-16T18:22:36
android
nextcloud/android
4,122
13,622
```xml <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.flowable</groupId> <artifactId>flowable-spring-boot-samples</artifactId> <version>7.1.0-SNAPSHOT</version> </parent> <artifactId>flowable-spring-boot-sample-security</artifactId> </project> ```
/content/code_sandbox/modules/flowable-spring-boot/flowable-spring-boot-samples/flowable-spring-boot-sample-security/pom.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
112
```xml <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="path_to_url"> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProjectGuid>{44555887-C439-470C-944D-8866EC3D7067}</ProjectGuid> <OutputType>Exe</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>$safeprojectname$</RootNamespace> <AssemblyName>WixSharp Setup</AssemblyName> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PlatformTarget>AnyCPU</PlatformTarget> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PlatformTarget>AnyCPU</PlatformTarget> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <OutputPath>bin\Release\</OutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <ItemGroup> <Reference Include="System" /> <Reference Include="System.Core" /> <Reference Include="System.Xml.Linq" /> <Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> <Compile Include="Program.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <None Include="wix\$(ProjectName).g.wxs" /> </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/Templates/ProjectTemplates/WixSharp Setup/WixSharp Setup.csproj
xml
2016-01-16T05:51:01
2024-08-16T12:26:25
wixsharp
oleg-shilo/wixsharp
1,077
645
```xml import React from 'react'; import { NavigationComponent, Modal as RNNModal } from 'react-native-navigation'; import last from 'lodash/last'; import concat from 'lodash/concat'; import forEach from 'lodash/forEach'; import head from 'lodash/head'; import Root from '../components/Root'; import Button from '../components/Button'; import Navigation from './../services/Navigation'; import { component } from './../commons/Layouts'; import { stack } from '../commons/Layouts'; import Screens from './Screens'; import flags from '../flags'; import testIDs from '../testIDs'; import { Dimensions, Modal, Image, Platform, StyleSheet } from 'react-native'; import { View } from 'react-native-ui-lib'; import { SafeAreaView } from 'react-native'; const height = Math.round(Dimensions.get('window').height); const MODAL_ANIMATION_DURATION = 350; const { PUSH_BTN, MODAL_SCREEN_HEADER, MODAL_BTN, SHOW_MODAL_FROM_DECLARED_BUTTON, OVERLAY_BTN, MODAL_DISABLED_BACK_BTN, DISMISS_MODAL_BTN, DISMISS_REACT_MODAL_BTN, DISMISS_UNKNOWN_MODAL_BTN, MODAL_LIFECYCLE_BTN, MODAL_COMMANDS_BTN, DISMISS_PREVIOUS_MODAL_BTN, DISMISS_ALL_PREVIOUS_MODAL_BTN, DISMISS_ALL_MODALS_BTN, DISMISS_FIRST_MODAL_BTN, SET_ROOT, TOGGLE_REACT_DECLARED_MODAL, } = testIDs; interface Props { previousModalIds?: string[]; modalPosition?: number; } interface State { swipeableToDismiss: boolean; modalVisible: boolean; } export default class ModalScreen extends NavigationComponent<Props, State> { static options() { return { topBar: { testID: MODAL_SCREEN_HEADER, title: { text: 'Modal', }, }, }; } constructor(props: any) { super(props); this.state = { swipeableToDismiss: false, modalVisible: false, }; } render() { return ( <Root componentId={this.props.componentId} footer={`Modal Stack Position: ${this.getModalPosition()}`} > <Button label="Show Modal" testID={MODAL_BTN} onPress={this.showModal} /> {flags.useCustomAnimations && ( <Button label="Back.Compat. Show Modal Anim" onPress={this.showModalWithTransition} /> )} {flags.useCustomAnimations && ( <Button label="New! Show Modal Push Anim" onPress={this.showModalWithTransitionPush} /> )} {!this.props.previousModalIds && ( <Button label="Show Disabled Hardware Back Modal" testID={MODAL_DISABLED_BACK_BTN} onPress={this.showDisabledHardwareBackModal} /> )} <Button label="Dismiss Modal" testID={DISMISS_MODAL_BTN} onPress={this.dismissModal} /> <Button label="Dismiss Unknown Modal" testID={DISMISS_UNKNOWN_MODAL_BTN} onPress={this.dismissUnknownModal} /> <Button label="Modal Lifecycle" testID={MODAL_LIFECYCLE_BTN} onPress={this.modalLifecycle} /> <Button label="Modal Commands" testID={MODAL_COMMANDS_BTN} onPress={this.modalCommands} /> {this.getPreviousModalId() && ( <Button label="Dismiss Previous Modal" testID={DISMISS_PREVIOUS_MODAL_BTN} onPress={this.dismissPreviousModal} /> )} {this.props.previousModalIds && ( <Button label="Dismiss All Previous Modals" testID={DISMISS_ALL_PREVIOUS_MODAL_BTN} onPress={this.dismissAllPreviousModals} /> )} <Button label="Dismiss All Modals" testID={DISMISS_ALL_MODALS_BTN} onPress={this.dismissAllModals} /> {this.props.previousModalIds && ( <Button label="Dismiss First Modal" testID={DISMISS_FIRST_MODAL_BTN} onPress={this.dismissFirstModal} /> )} <Button label="Push" testID={PUSH_BTN} onPress={this.push} /> <Button label="Set Root" testID={SET_ROOT} onPress={this.setRoot} /> <Button label="Toggle declared modal" testID={TOGGLE_REACT_DECLARED_MODAL} onPress={this.toggleModal} /> {Platform.OS === 'android' && ( <RNNModal visible={this.state.modalVisible} onRequestClose={() => this.setState({ modalVisible: false })} > <Button label="Dismiss declared Modal" testID={DISMISS_REACT_MODAL_BTN} onPress={this.toggleModal} /> <Button label="Show Modal" testID={SHOW_MODAL_FROM_DECLARED_BUTTON} onPress={this.showModal} /> <Button label="Show Overlay" testID={OVERLAY_BTN} onPress={this.showOverlay} /> <View style={styles.logoContainer}> <Image style={styles.tinyLogo} source={{ uri: 'path_to_url }} /> </View> </RNNModal> )} {Platform.OS === 'ios' && ( <Modal visible={this.state.modalVisible} onRequestClose={() => this.setState({ modalVisible: false })} > <SafeAreaView> <Button label="Dismiss declared Modal" testID={DISMISS_REACT_MODAL_BTN} onPress={this.toggleModal} /> <Button label="Show Modal" testID={SHOW_MODAL_FROM_DECLARED_BUTTON} onPress={this.showModal} /> <Button label="Show Overlay" testID={OVERLAY_BTN} onPress={this.showOverlay} /> <View style={styles.logoContainer}> <Image style={styles.tinyLogo} source={{ uri: 'path_to_url }} /> </View> </SafeAreaView> </Modal> )} </Root> ); } showOverlay = async () => { await Navigation.showOverlay(Screens.OverlayAlert, { layout: { componentBackgroundColor: 'transparent' }, overlay: { interceptTouchOutside: false }, }); }; toggleModal = () => this.setState({ modalVisible: !this.state.modalVisible }); showModalWithTransition = () => { Navigation.showModal({ component: { name: Screens.Modal, options: { animations: { showModal: { translationY: { from: height, to: 0, duration: MODAL_ANIMATION_DURATION, interpolation: { type: 'decelerate' }, }, }, dismissModal: { translationY: { from: 0, to: height, duration: MODAL_ANIMATION_DURATION, interpolation: { type: 'decelerate' }, }, }, }, }, passProps: { modalPosition: this.getModalPosition() + 1, previousModalIds: concat([], this.props.previousModalIds || [], this.props.componentId), }, }, }); }; showModalWithTransitionPush = () => { Navigation.showModal({ component: { name: Screens.Modal, options: { animations: { showModal: { enter: { translationY: { from: height, to: 0, duration: MODAL_ANIMATION_DURATION, interpolation: { type: 'decelerate' }, }, }, exit: { translationY: { from: 0, to: -height, duration: MODAL_ANIMATION_DURATION, interpolation: { type: 'decelerate' }, }, }, }, dismissModal: { enter: { translationY: { from: -height, to: 0, duration: MODAL_ANIMATION_DURATION, interpolation: { type: 'decelerate' }, }, }, exit: { translationY: { from: 0, to: height, duration: MODAL_ANIMATION_DURATION, interpolation: { type: 'decelerate' }, }, }, }, }, }, passProps: { modalPosition: this.getModalPosition() + 1, previousModalIds: concat([], this.props.previousModalIds || [], this.props.componentId), }, }, }); }; showModal = () => { Navigation.showModal({ component: { name: Screens.Modal, passProps: { modalPosition: this.getModalPosition() + 1, previousModalIds: concat([], this.props.previousModalIds || [], this.props.componentId), }, }, }); }; showDisabledHardwareBackModal = () => { Navigation.showModal({ component: { name: Screens.Modal, options: { hardwareBackButton: { dismissModalOnPress: false }, }, }, }); }; dismissModal = async () => await Navigation.dismissModal(this.props.componentId); dismissPreviousModal = () => Navigation.dismissModal(this.getPreviousModalId()); dismissUnknownModal = () => Navigation.dismissModal('unknown'); dismissAllPreviousModals = () => forEach(this.props.previousModalIds, (id) => Navigation.dismissModal(id)); dismissFirstModal = () => Navigation.dismissModal(head(this.props.previousModalIds)!); dismissAllModals = () => Navigation.dismissAllModals(); modalLifecycle = () => Navigation.showModal({ component: { name: Screens.Lifecycle, passProps: { isModal: true }, }, }); modalCommands = () => Navigation.push(this, component(Screens.ModalCommands)); push = () => Navigation.push(this, Screens.Pushed); setRoot = () => Navigation.setRoot(stack(Screens.Pushed)); getModalPosition = () => this.props.modalPosition || 1; getPreviousModalId = () => last(this.props.previousModalIds)!; } const styles = StyleSheet.create({ logoContainer: { justifyContent: 'center', flex: 1, flexDirection: 'row', }, tinyLogo: { justifyContent: 'center', width: 128, height: 128, }, }); ```
/content/code_sandbox/playground/src/screens/ModalScreen.tsx
xml
2016-03-11T11:22:54
2024-08-15T09:05:44
react-native-navigation
wix/react-native-navigation
13,021
2,203
```xml import Avatar from "./avatar"; import Date from "./date"; import CoverImage from "./cover-image"; import Link from "next/link"; export default function HeroPost({ title, coverImage, date, excerpt, author, slug, }) { return ( <section> <div className="mb-8 md:mb-16"> {coverImage && ( <CoverImage title={title} coverImage={coverImage} slug={slug} /> )} </div> <div className="md:grid md:grid-cols-2 md:gap-x-16 lg:gap-x-8 mb-20 md:mb-28"> <div> <h3 className="mb-4 text-4xl lg:text-6xl leading-tight"> <Link href={`/posts/${slug}`} className="hover:underline" dangerouslySetInnerHTML={{ __html: title }} ></Link> </h3> <div className="mb-4 md:mb-0 text-lg"> <Date dateString={date} /> </div> </div> <div> <div className="text-lg leading-relaxed mb-4" dangerouslySetInnerHTML={{ __html: excerpt }} /> <Avatar author={author} /> </div> </div> </section> ); } ```
/content/code_sandbox/examples/cms-wordpress/components/hero-post.tsx
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
292
```xml import "reflect-metadata" import { closeTestingConnections, createTestingConnections, reloadTestingDatabases, } from "../../../../utils/test-utils" import { DataSource } from "../../../../../src/data-source/DataSource" import { PostWithRelation } from "./entity/PostWithRelation" // This test is neccessary because finding with eager relation will be run in the different way describe(`query builder > find with the global condition of "non-deleted" and eager relation`, () => { let connections: DataSource[] before( async () => (connections = await createTestingConnections({ entities: [__dirname + "/entity/*{.js,.ts}"], })), ) beforeEach(() => reloadTestingDatabases(connections)) after(() => closeTestingConnections(connections)) it(`The global condition of "non-deleted" should be set for the entity with delete date columns and eager relation`, () => Promise.all( connections.map(async (connection) => { const post1 = new PostWithRelation() post1.title = "title#1" const post2 = new PostWithRelation() post2.title = "title#2" const post3 = new PostWithRelation() post3.title = "title#3" await connection.manager.save(post1) await connection.manager.save(post2) await connection.manager.save(post3) await connection.manager.softRemove(post1) const loadedWithPosts = await connection .createQueryBuilder() .select("post") .from(PostWithRelation, "post") .orderBy("post.id") .getMany() loadedWithPosts!.length.should.be.equal(2) loadedWithPosts![0].title.should.be.equals("title#2") loadedWithPosts![1].title.should.be.equals("title#3") const loadedWithPost = await connection .createQueryBuilder() .select("post") .from(PostWithRelation, "post") .orderBy("post.id") .getOne() loadedWithPost!.title.should.be.equals("title#2") }), )) it(`The global condition of "non-deleted" should not be set when "withDeleted" is called`, () => Promise.all( connections.map(async (connection) => { const post1 = new PostWithRelation() post1.title = "title#1" const post2 = new PostWithRelation() post2.title = "title#2" const post3 = new PostWithRelation() post3.title = "title#3" await connection.manager.save(post1) await connection.manager.save(post2) await connection.manager.save(post3) await connection.manager.softRemove(post1) const loadedPosts = await connection .createQueryBuilder() .select("post") .from(PostWithRelation, "post") .withDeleted() .orderBy("post.id") .getMany() loadedPosts!.length.should.be.equal(3) loadedPosts![0].title.should.be.equals("title#1") loadedPosts![1].title.should.be.equals("title#2") loadedPosts![2].title.should.be.equals("title#3") const loadedWithoutScopePost = await connection .createQueryBuilder() .select("post") .from(PostWithRelation, "post") .withDeleted() .orderBy("post.id") .getOne() loadedWithoutScopePost!.title.should.be.equals("title#1") }), )) }) ```
/content/code_sandbox/test/functional/query-builder/soft-delete/global-condition-non-deleted/query-builder-global-condition-non-deleted-with-eager-relation.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
743
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="path_to_url"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProjectGuid>{7A5FB23C-6B26-461A-8BBD-02392DCE3C11}</ProjectGuid> <ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <OutputType>Library</OutputType> <RootNamespace>CommonSampleLibrary</RootNamespace> <MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix> <MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix> <AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile> <AndroidResgenClass>Resource</AndroidResgenClass> <AssemblyName>CommonSampleLibrary</AssemblyName> <ProductVersion>8.0.30703</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <DebugType>portable</DebugType> </PropertyGroup> <Import Condition="Exists('..\..\..\Configuration.props')" Project="..\..\..\Configuration.props" /> <PropertyGroup Condition="Exists('..\..\..\Configuration.props')"> <TargetFrameworkVersion>$(AndroidFrameworkVersion)</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <Optimize>false</Optimize> <OutputPath>bin\Debug</OutputPath> <DefineConstants>DEBUG;__MOBILE__;__ANDROID__;</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <AndroidLinkMode>None</AndroidLinkMode> <ConsolePause>false</ConsolePause> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <Optimize>true</Optimize> <OutputPath>bin\Release</OutputPath> <DefineConstants>__MOBILE__;__ANDROID__;</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <ConsolePause>false</ConsolePause> </PropertyGroup> <ItemGroup> <Reference Include="System" /> <Reference Include="System.Xml" /> <Reference Include="System.Core" /> <Reference Include="Mono.Android" /> </ItemGroup> <ItemGroup> <Compile Include="Resources\Resource.designer.cs" /> <Compile Include="Activities\SampleActivityBase.cs" /> <Compile Include="Logger\ILogNode.cs" /> <Compile Include="Logger\Log.cs" /> <Compile Include="Logger\LogFragment.cs" /> <Compile Include="Logger\LogView.cs" /> <Compile Include="Logger\LogWrapper.cs" /> <Compile Include="Logger\MessageOnlyLogFilter.cs" /> </ItemGroup> <ItemGroup> <AndroidResource Include="Resources\values\Strings.xml" /> </ItemGroup> <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> </Project> ```
/content/code_sandbox/tests/CodeBehind/CommonSampleLibrary/CommonSampleLibrary.csproj
xml
2016-03-30T15:37:14
2024-08-16T19:22:13
android
dotnet/android
1,905
770
```xml import { Entity } from "../../../../../../src/decorator/entity/Entity" import { PrimaryGeneratedColumn } from "../../../../../../src/decorator/columns/PrimaryGeneratedColumn" import { Column } from "../../../../../../src/decorator/columns/Column" import { OneToOne } from "../../../../../../src/decorator/relations/OneToOne" import { JoinColumn } from "../../../../../../src/decorator/relations/JoinColumn" import { DeleteDateColumn } from "../../../../../../src/decorator/columns/DeleteDateColumn" import { CategoryWithRelation } from "./CategoryWithRelation" @Entity() export class PostWithRelation { @PrimaryGeneratedColumn() id: number @Column() title: string @OneToOne((type) => CategoryWithRelation, (category) => category.post, { eager: true, }) @JoinColumn() category: CategoryWithRelation @DeleteDateColumn() deletedAt: Date } ```
/content/code_sandbox/test/functional/query-builder/soft-delete/global-condition-non-deleted/entity/PostWithRelation.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
197
```xml import React, { useState } from 'react'; import { useLocation, useNavigate } from 'react-router-dom'; import { confirmSignUp } from './authService'; const ConfirmUserPage = () => { const navigate = useNavigate(); const location = useLocation(); // eslint-disable-next-line const [email, setEmail] = useState(location.state?.email || ''); const [confirmationCode, setConfirmationCode] = useState(''); const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => { e.preventDefault(); try { await confirmSignUp(email, confirmationCode); alert("Account confirmed successfully!\nSign in on next page."); navigate('/login'); } catch (error) { alert(`Failed to confirm account: ${error}`); } }; return ( <div className="loginForm"> <h2>Confirm Account</h2> <form onSubmit={handleSubmit}> <div> <input className="inputText" type="email" value={email} onChange={(e) => setEmail(e.target.value)} placeholder="Email" required /> </div> <div> <input className="inputText" type="text" value={confirmationCode} onChange={(e) => setConfirmationCode(e.target.value)} placeholder="Confirmation Code" required /> </div> <button type="submit">Confirm Account</button> </form> </div> ); }; export default ConfirmUserPage; ```
/content/code_sandbox/javascriptv3/example_code/cognito-identity-provider/scenarios/cognito-developer-guide-react-example/frontend-client/src/confirmUserPage.tsx
xml
2016-08-18T19:06:57
2024-08-16T18:59:44
aws-doc-sdk-examples
awsdocs/aws-doc-sdk-examples
9,298
323
```xml <manifest package="io.alterac.blurkit" /> ```
/content/code_sandbox/blurkit/src/main/AndroidManifest.xml
xml
2016-11-06T03:14:58
2024-08-15T07:11:03
blurkit-android
CameraKit/blurkit-android
3,719
13
```xml import React from 'react'; import { render, screen } from '@testing-library/react'; import { testStandardProps } from '@test/utils'; import Heading, { HeadingProps } from '../Heading'; describe('Heading', () => { testStandardProps(<Heading />); it('Should render a h3 element by default', () => { render(<Heading />); expect(screen.getByRole('heading', { level: 3 })).to.exist; }); [1, 2, 3, 4, 5, 6].forEach(level => { it(`Should render a h${level} element when 'level' is ${level}`, () => { render(<Heading level={level as HeadingProps['level']} />); expect(screen.getByRole('heading', { level })).to.exist; }); }); ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].forEach(as => { it(`Should render a ${as} element when 'as' is '${as}'`, () => { render(<Heading as={as as HeadingProps['as']} />); expect(screen.getByRole('heading')).to.exist; }); }); }); ```
/content/code_sandbox/src/Heading/test/HeadingSpec.tsx
xml
2016-06-06T02:27:46
2024-08-16T16:41:54
rsuite
rsuite/rsuite
8,263
255
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netcoreapp3.1</TargetFramework> </PropertyGroup> <ItemGroup> <None Remove="sample-event.json" /> </ItemGroup> <ItemGroup> <Content Include="sample-event.json"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> </ItemGroup> <ItemGroup> <PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" /> <PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" /> <PackageReference Include="Amazon.Lambda.KinesisEvents" Version="2.0.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" /> <PackageReference Include="xunit" Version="2.3.1" /> <PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\src\BlueprintBaseName.1\BlueprintBaseName.1.csproj" /> </ItemGroup> </Project> ```
/content/code_sandbox/Blueprints/BlueprintDefinitions/vs2019/SimpleKinesisFirehoseFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj
xml
2016-11-11T20:43:34
2024-08-15T16:57:53
aws-lambda-dotnet
aws/aws-lambda-dotnet
1,558
262
```xml import has from "lodash/has"; import { Transaction } from "sequelize"; import { TeamPreference } from "@shared/types"; import env from "@server/env"; import { Event, Team, TeamDomain, User } from "@server/models"; type Props = { params: Partial<Omit<Team, "allowedDomains">> & { allowedDomains?: string[] }; ip?: string; user: User; team: Team; transaction: Transaction; }; const teamUpdater = async ({ params, user, team, ip, transaction }: Props) => { const { allowedDomains, preferences, subdomain, ...attributes } = params; team.setAttributes(attributes); if (subdomain !== undefined && env.isCloudHosted) { team.subdomain = subdomain === "" ? null : subdomain; } if (allowedDomains !== undefined) { const existingAllowedDomains = await TeamDomain.findAll({ where: { teamId: team.id }, transaction, }); // Only keep existing domains if they are still in the list of allowed domains const newAllowedDomains = team.allowedDomains.filter((existingTeamDomain) => allowedDomains.includes(existingTeamDomain.name) ); // Add new domains const existingDomains = team.allowedDomains.map((x) => x.name); const newDomains = allowedDomains.filter( (newDomain) => newDomain !== "" && !existingDomains.includes(newDomain) ); await Promise.all( newDomains.map(async (newDomain) => { newAllowedDomains.push( await TeamDomain.create( { name: newDomain, teamId: team.id, createdById: user.id, }, { transaction } ) ); }) ); // Destroy the existing TeamDomains that were removed const deletedDomains = existingAllowedDomains.filter( (x) => !allowedDomains.includes(x.name) ); await Promise.all(deletedDomains.map((x) => x.destroy({ transaction }))); team.allowedDomains = newAllowedDomains; } if (preferences) { for (const value of Object.values(TeamPreference)) { if (has(preferences, value)) { team.setPreference(value, preferences[value]); } } } const changes = team.changeset; if (Object.keys(changes.attributes).length) { await Event.create( { name: "teams.update", actorId: user.id, teamId: user.teamId, ip, changes, }, { transaction, } ); } return team.save({ transaction }); }; export default teamUpdater; ```
/content/code_sandbox/server/commands/teamUpdater.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
555
```xml export const AGG_WINDOW_AUTO = 'auto' export const AGG_WINDOW_NONE = 'none' export const DEFAULT_FILLVALUES = false export const DEFAULT_AGGREGATE_FUNCTION = 'mean' export const DURATIONS = [ '5s', '15s', '1m', '5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d', ] export interface QueryFn { name: string flux: (period?: string, fillValues?: boolean) => string } export const genFlux = ( func: string, period: string = AGG_WINDOW_NONE, fillValues: boolean = false ) => { if (period === AGG_WINDOW_NONE) { return `|> ${func}()` } switch (func) { case 'derivative': { return `|> derivative(unit: 1s, nonNegative: false)` } case 'nonnegative derivative': { return `|> derivative(unit: 1s, nonNegative: true)` } case 'median': case 'mean': case 'max': case 'min': case 'sum': case 'stddev': case 'first': case 'last': { return `|> aggregateWindow(every: ${period}, fn: ${func}, createEmpty: ${fillValues})` } default: return `|> ${func}()` } } export const AUTO_FUNCTIONS: QueryFn[] = [ { name: 'mean', flux: (period, fillValues) => genFlux('mean', period, fillValues), }, { name: 'median', flux: (period, fillValues) => genFlux('median', period, fillValues), }, { name: 'last', flux: (period, fillValues) => genFlux('last', period, fillValues), }, ] export const FUNCTIONS: QueryFn[] = [ AUTO_FUNCTIONS[0], AUTO_FUNCTIONS[1], { name: 'max', flux: (period, fillValues) => genFlux('max', period, fillValues), }, { name: 'min', flux: (period, fillValues) => genFlux('min', period, fillValues), }, { name: 'sum', flux: (period, fillValues) => genFlux('sum', period, fillValues), }, { name: 'derivative', flux: (period, fillValues) => genFlux('derivative', period, fillValues), }, { name: 'nonnegative derivative', flux: (period, fillValues) => genFlux('nonnegative derivative', period, fillValues), }, { name: 'distinct', flux: (period, fillValues) => genFlux('distinct', period, fillValues), }, { name: 'count', flux: (period, fillValues) => genFlux('count', period, fillValues), }, { name: 'increase', flux: (period, fillValues) => genFlux('increase', period, fillValues), }, { name: 'skew', flux: (period, fillValues) => genFlux('skew', period, fillValues), }, { name: 'spread', flux: (period, fillValues) => genFlux('spread', period, fillValues), }, { name: 'stddev', flux: (period, fillValues) => genFlux('stddev', period, fillValues), }, { name: 'first', flux: (period, fillValues) => genFlux('first', period, fillValues), }, AUTO_FUNCTIONS[2], { name: 'unique', flux: (period, fillValues) => genFlux('unique', period, fillValues), }, { name: 'sort', flux: (period, fillValues) => genFlux('sort', period, fillValues), }, ] export const FUNCTION_NAMES = FUNCTIONS.map(f => f.name) ```
/content/code_sandbox/ui/src/shared/components/TimeMachine/fluxQueryBuilder/util/constants.ts
xml
2016-08-24T23:28:56
2024-08-13T19:50:03
chronograf
influxdata/chronograf
1,494
926
```xml <LinearLayout xmlns:android="path_to_url" xmlns:app="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <android.support.v4.view.ViewPager android:id="@+id/mViewPager" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> <View android:layout_width="match_parent" android:layout_height="1px" android:background="#888" /> <com.yinglan.alphatabs.AlphaTabsIndicator android:id="@+id/alphaIndicator" android:layout_width="match_parent" android:layout_height="55dp" android:orientation="horizontal"> <com.yinglan.alphatabs.AlphaTabView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:padding="5dp" app:tabIconNormal="@mipmap/home_normal" app:tabIconSelected="@mipmap/home_selected" app:tabText="" app:tabTextSize="13sp" app:textColorNormal="#999999" app:textColorSelected="#46c01b" /> <com.yinglan.alphatabs.AlphaTabView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:padding="5dp" app:tabIconNormal="@mipmap/category_normal" app:tabIconSelected="@mipmap/category_selected" app:tabText="" app:tabTextSize="13sp" app:textColorNormal="#999999" app:textColorSelected="#46c01b" /> <com.yinglan.alphatabs.AlphaTabView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:padding="5dp" app:tabIconNormal="@mipmap/service_normal" app:tabIconSelected="@mipmap/service_selected" app:tabText="" app:tabTextSize="13sp" app:textColorNormal="#999999" app:textColorSelected="#46c01b" /> <com.yinglan.alphatabs.AlphaTabView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:padding="5dp" app:tabIconNormal="@mipmap/mine_normal" app:tabIconSelected="@mipmap/mine_selected" app:tabText="" app:tabTextSize="13sp" app:textColorNormal="#999999" app:textColorSelected="#46c01b" /> </com.yinglan.alphatabs.AlphaTabsIndicator> </LinearLayout> ```
/content/code_sandbox/app/src/main/res/layout/activity_main.xml
xml
2016-10-27T07:37:33
2024-08-15T11:30:09
AlphaTabsIndicator
yingLanNull/AlphaTabsIndicator
1,075
626
```xml import 'rxjs-compat/add/operator/windowToggle'; ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/src/add/operator/windowToggle.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
11
```xml import * as React from 'react'; import { ListContextProvider, ResourceContextProvider, ResourceDefinitionContextProvider, useList, TestMemoryRouter, } from 'ra-core'; import { Typography, Divider as MuiDivider } from '@mui/material'; import { SingleFieldList } from './SingleFieldList'; import { ChipField } from '../field/ChipField'; import { TextField } from '../field/TextField'; const bookGenres = [ { id: 0, name: 'Fiction' }, { id: 1, name: 'Science-fiction' }, { id: 2, name: 'Horror' }, { id: 3, name: 'Biography' }, { id: 4, name: 'Historical' }, { id: 5, name: 'Crime' }, { id: 6, name: 'Romance' }, { id: 7, name: 'Humor' }, ]; export default { title: 'ra-ui-materialui/list/SingleFieldList', }; const Wrapper = ({ children, data = [bookGenres[2], bookGenres[4], bookGenres[1]], }) => { const listContextValue = useList({ data, }); return ( <TestMemoryRouter> <ResourceDefinitionContextProvider definitions={{ books: { name: 'books', hasList: true, hasEdit: true, hasShow: true, hasCreate: true, recordRepresentation: 'name', }, }} > <ResourceContextProvider value="books"> <ListContextProvider value={listContextValue}> {children} </ListContextProvider> </ResourceContextProvider> </ResourceDefinitionContextProvider> </TestMemoryRouter> ); }; const Title = ({ children }) => ( <Typography ml={1} mt={2} mb={1}> {children} </Typography> ); export const Basic = () => ( <Wrapper> <SingleFieldList /> </Wrapper> ); export const Children = () => ( <Wrapper> <Title>Text Field</Title> <SingleFieldList> <TextField source="name" sx={{ m: 1, p: 0.5, border: '1px solid grey', borderRadius: 2, }} /> </SingleFieldList> <Title>Chip Field</Title> <SingleFieldList> <ChipField source="name" /> </SingleFieldList> <Title>Chip Field small</Title> <SingleFieldList> <ChipField source="name" size="small" /> </SingleFieldList> </Wrapper> ); export const LinkType = () => ( <Wrapper> <Title>Default (Edit link)</Title> <SingleFieldList /> <Title>Show link</Title> <SingleFieldList linkType="show" /> <Title>No link</Title> <SingleFieldList linkType={false} /> </Wrapper> ); export const NoData = () => ( <Wrapper data={[]}> <SingleFieldList /> </Wrapper> ); export const Empty = ({ listContext = { data: [] } }) => ( <ListContextProvider value={listContext as any}> <SingleFieldList empty={<div>No genres</div>} /> </ListContextProvider> ); export const Loading = () => ( <ListContextProvider value={{ isLoading: true } as any}> <SingleFieldList /> </ListContextProvider> ); export const Direction = () => ( <Wrapper> <Title>Default (row)</Title> <SingleFieldList /> <Title>Column</Title> <SingleFieldList direction="column" /> </Wrapper> ); export const Gap = () => ( <Wrapper> <Title>No gap</Title> <SingleFieldList gap={0} /> <Title>Default (1)</Title> <SingleFieldList /> <Title>Custom gap</Title> <SingleFieldList gap={2} /> </Wrapper> ); export const Divider = () => ( <Wrapper> <SingleFieldList divider={<MuiDivider orientation="vertical" flexItem />} /> </Wrapper> ); export const Component = () => ( <Wrapper> <SingleFieldList component="span" /> </Wrapper> ); export const SX = () => ( <Wrapper> <SingleFieldList sx={{ border: '1px solid grey' }} /> </Wrapper> ); export const Controlled = () => ( <Wrapper> <SingleFieldList data={[bookGenres[3], bookGenres[6], bookGenres[7], bookGenres[2]]} resource="book_genres" /> </Wrapper> ); ```
/content/code_sandbox/packages/ra-ui-materialui/src/list/SingleFieldList.stories.tsx
xml
2016-07-13T07:58:54
2024-08-16T18:32:27
react-admin
marmelab/react-admin
24,624
1,038
```xml // @needsAudit export type Localization = { /** * Three-character ISO 4217 currency code. Returns `null` on web. * @example * `'USD'`, `'EUR'`, `'CNY'`, `null` */ currency: string | null; /** * Decimal separator used for formatting numbers. * @example * `','`, `'.'` */ decimalSeparator: string; /** * Digit grouping separator used when formatting numbers larger than 1000. * @example * `'.'`, `''`, `','` */ digitGroupingSeparator: string; /** * A list of all the supported language ISO codes. */ isoCurrencyCodes: string[]; /** * Boolean value that indicates whether the system uses the metric system. * On Android and web, this is inferred from the current region. */ isMetric: boolean; /** * Returns if the system's language is written from Right-to-Left. * This can be used to build features like [bidirectional icons](path_to_url * * Returns `false` in Server Side Rendering (SSR) environments. */ isRTL: boolean; /** * An [IETF BCP 47 language tag](path_to_url * consisting of a two-character language code and optional script, region and variant codes. * @example * `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'` */ locale: string; /** * List of all the native languages provided by the user settings. * These are returned in the order that the user defined in the device settings. * @example * `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']` */ locales: string[]; /** * The region code for your device that comes from the Region setting under Language & Region on iOS. * This value is always available on iOS, but might return `null` on Android or web. * @example * `'US'`, `'NZ'`, `null` */ region: string | null; /** * The current time zone in display format. * On Web time zone is calculated with Intl.DateTimeFormat().resolvedOptions().timeZone. For a * better estimation you could use the moment-timezone package but it will add significant bloat to * your website's bundle size. * @example * `'America/Los_Angeles'` */ timezone: string; }; export type Locale = { /** * An [IETF BCP 47 language tag](path_to_url with a region code. * @example * `'en-US'`, `'es-419'`, `'pl-PL'`. */ languageTag: string; /** * An [IETF BCP 47 language tag](path_to_url without the region code. * @example * `'en'`, `'es'`, `'pl'`. */ languageCode: string | null; /** * The region code for your device that comes from the Region setting under Language & Region on iOS, Region settings on Android and is parsed from locale on Web (can be `null` on Web). */ regionCode: string | null; /** * Currency code for the locale. * Is `null` on Web, use a table lookup based on region instead. * @example * `'USD'`, `'EUR'`, `'PLN'`. */ currencyCode: string | null; /** * Currency symbol for the locale. * Is `null` on Web, use a table lookup based on region (if available) instead. * @example * `'$'`, `''`, `'z'`. */ currencySymbol: string | null; /** * Decimal separator used for formatting numbers with fractional parts. * @example * `'.'`, `','`. */ decimalSeparator: string | null; /** * Digit grouping separator used for formatting large numbers. * @example * `'.'`, `','`. */ digitGroupingSeparator: string | null; /** * Text direction for the locale. One of: `'ltr'`, `'rtl'`, but can also be `null` on some browsers without support for the [textInfo](path_to_url property in [Intl](path_to_url API. */ textDirection: 'ltr' | 'rtl' | null; /** * The measurement system used in the locale. * Is `null` on Web, as user chosen measurement system is not exposed on the web and using locale to determine measurement systems is unreliable. * Ask for user preferences if possible. */ measurementSystem: `metric` | `us` | `uk` | null; /** * The temperature unit used in the locale. * Returns `null` if the region code is unknown. */ temperatureUnit: 'celsius' | 'fahrenheit' | null; }; /** * An enum mapping days of the week in Gregorian calendar to their index as returned by the `firstWeekday` property. */ export enum Weekday { SUNDAY = 1, MONDAY = 2, TUESDAY = 3, WEDNESDAY = 4, THURSDAY = 5, FRIDAY = 6, SATURDAY = 7, } /** * The calendar identifier, one of [Unicode calendar types](path_to_url * Gregorian calendar is aliased and can be referred to as both `CalendarIdentifier.GREGORIAN` and `CalendarIdentifier.GREGORY`. */ export enum CalendarIdentifier { /** Thai Buddhist calendar */ BUDDHIST = 'buddhist', /** Traditional Chinese calendar */ CHINESE = 'chinese', /** Coptic calendar */ COPTIC = 'coptic', /** Traditional Korean calendar */ DANGI = 'dangi', /** Ethiopic calendar, Amete Alem (epoch approx. 5493 B.C.E) */ ETHIOAA = 'ethioaa', /** Ethiopic calendar, Amete Mihret (epoch approx, 8 C.E.) */ ETHIOPIC = 'ethiopic', /** Gregorian calendar */ GREGORY = 'gregory', /** Gregorian calendar (alias) */ GREGORIAN = 'gregory', /** Traditional Hebrew calendar */ HEBREW = 'hebrew', /** Indian calendar */ INDIAN = 'indian', /** Islamic calendar */ ISLAMIC = 'islamic', /** Islamic calendar, tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29] - civil epoch) */ ISLAMIC_CIVIL = 'islamic-civil', /** Islamic calendar, Saudi Arabia sighting */ ISLAMIC_RGSA = 'islamic-rgsa', /**Islamic calendar, tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29] - astronomical epoch) */ ISLAMIC_TBLA = 'islamic-tbla', /** Islamic calendar, Umm al-Qura */ ISLAMIC_UMALQURA = 'islamic-umalqura', /** ISO calendar (Gregorian calendar using the ISO 8601 calendar week rules) */ ISO8601 = 'iso8601', /** Japanese imperial calendar */ JAPANESE = 'japanese', /** Persian calendar */ PERSIAN = 'persian', /** Civil (algorithmic) Arabic calendar */ ROC = 'roc', } export type Calendar = { /** * The calendar identifier, one of [Unicode calendar types](path_to_url * * On Android is limited to one of device's [available calendar types](path_to_url#getAvailableCalendarTypes()). * * On iOS uses [calendar identifiers](path_to_url but maps them to the corresponding Unicode types, will also never contain `'dangi'` or `'islamic-rgsa'` due to it not being implemented on iOS. */ calendar: CalendarIdentifier | null; /** * True when current device settings use 24-hour time format. * Can be null on some browsers that don't support the [hourCycle](path_to_url property in [Intl](path_to_url API. */ uses24hourClock: boolean | null; /** * The first day of the week. For most calendars Sunday is numbered `1`, with Saturday being number `7`. * Can be null on some browsers that don't support the [weekInfo](path_to_url property in [Intl](path_to_url API. * @example * `1`, `7`. */ firstWeekday: Weekday | null; /** * Time zone for the calendar. Can be `null` on Web. * @example * `'America/Los_Angeles'`, `'Europe/Warsaw'`, `'GMT+1'`. */ timeZone: string | null; }; ```
/content/code_sandbox/packages/expo-localization/src/Localization.types.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
2,011
```xml export * from './TeachingPopoverFooter'; export * from './TeachingPopoverFooter.types'; export * from './renderTeachingPopoverFooter'; export * from './useTeachingPopoverFooter'; export * from './useTeachingPopoverFooterStyles.styles'; ```
/content/code_sandbox/packages/react-components/react-teaching-popover/library/src/components/TeachingPopoverFooter/index.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
52
```xml <?xml version="1.0" encoding="utf-8"?> <!-- (See accompanying file LICENSE_1_0.txt or copy at path_to_url --> <!DOCTYPE boostbook PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "path_to_url"> <boostbook id="test" xmlns:xi="path_to_url" last-revision="$Date: 2010-10-30 15:29:27 +0100 (Sat, 30 Oct 2010) $" lang="en"> <title>Test processing instructions</title> <para><?dbtimestamp format="Y-m-d H:M:S"?></para> </boostbook> ```
/content/code_sandbox/deps/boost_1_66_0/tools/boostbook/test/more/tests/misc/processing.xml
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
149
```xml import type { Container } from '../../container'; import type { GitBranch } from '../../git/models/branch'; import type { GitLog } from '../../git/models/log'; import type { GitReference, GitRevisionReference } from '../../git/models/reference'; import { getReferenceLabel } from '../../git/models/reference'; import type { Repository } from '../../git/models/repository'; import type { FlagsQuickPickItem } from '../../quickpicks/items/flags'; import { createFlagsQuickPickItem } from '../../quickpicks/items/flags'; import type { ViewsWithRepositoryFolders } from '../../views/viewBase'; import type { PartialStepState, QuickPickStep, StepGenerator, StepResult, StepResultGenerator, StepSelection, StepState, } from '../quickCommand'; import { canPickStepContinue, endSteps, QuickCommand, StepResultBreak } from '../quickCommand'; import { appendReposToTitle, pickCommitStep, pickRepositoryStep } from '../quickCommand.steps'; interface Context { repos: Repository[]; associatedView: ViewsWithRepositoryFolders; cache: Map<string, Promise<GitLog | undefined>>; destination: GitBranch; title: string; } type Flags = '--hard' | '--soft'; interface State { repo: string | Repository; reference: GitRevisionReference; flags: Flags[]; } export interface ResetGitCommandArgs { readonly command: 'reset'; confirm?: boolean; state?: Partial<State>; } type ResetStepState<T extends State = State> = ExcludeSome<StepState<T>, 'repo', string>; export class ResetGitCommand extends QuickCommand<State> { constructor(container: Container, args?: ResetGitCommandArgs) { super(container, 'reset', 'reset', 'Reset', { description: 'resets the current branch to a specified commit' }); let counter = 0; if (args?.state?.repo != null) { counter++; } if (args?.state?.reference != null) { counter++; } this.initialState = { counter: counter, confirm: args?.confirm ?? true, ...args?.state, }; this._canSkipConfirm = !this.initialState.confirm; } private _canSkipConfirm: boolean = false; override get canSkipConfirm(): boolean { return this._canSkipConfirm; } execute(state: ResetStepState) { state.repo.reset(...state.flags, state.reference.ref); } protected async *steps(state: PartialStepState<State>): StepGenerator { const context: Context = { repos: this.container.git.openRepositories, associatedView: this.container.commitsView, cache: new Map<string, Promise<GitLog | undefined>>(), destination: undefined!, title: this.title, }; if (state.flags == null) { state.flags = []; } let skippedStepOne = false; while (this.canStepsContinue(state)) { context.title = this.title; if (state.counter < 1 || state.repo == null || typeof state.repo === 'string') { skippedStepOne = false; if (context.repos.length === 1) { skippedStepOne = true; if (state.repo == null) { state.counter++; } state.repo = context.repos[0]; } else { const result = yield* pickRepositoryStep(state, context); // Always break on the first step (so we will go back) if (result === StepResultBreak) break; state.repo = result; } } if (context.destination == null) { const branch = await state.repo.getBranch(); if (branch == null) break; context.destination = branch; } context.title = `${this.title} ${getReferenceLabel(context.destination, { icon: false })}`; if (state.counter < 2 || state.reference == null) { const ref = context.destination.ref; let log = context.cache.get(ref); if (log == null) { log = this.container.git.getLog(state.repo.path, { ref: ref, merges: 'first-parent' }); context.cache.set(ref, log); } const result: StepResult<GitReference> = yield* pickCommitStep(state as ResetStepState, context, { log: await log, onDidLoadMore: log => context.cache.set(ref, Promise.resolve(log)), placeholder: (context, log) => log == null ? `${context.destination.name} has no commits` : `Choose a commit to reset ${context.destination.name} to`, picked: state.reference?.ref, }); if (result === StepResultBreak) { // If we skipped the previous step, make sure we back up past it if (skippedStepOne) { state.counter--; } continue; } state.reference = result; } if (this.confirm(state.confirm)) { const result = yield* this.confirmStep(state as ResetStepState, context); if (result === StepResultBreak) continue; state.flags = result; } endSteps(state); this.execute(state as ResetStepState); } return state.counter < 0 ? StepResultBreak : undefined; } private *confirmStep(state: ResetStepState, context: Context): StepResultGenerator<Flags[]> { const step: QuickPickStep<FlagsQuickPickItem<Flags>> = this.createConfirmStep( appendReposToTitle(`Confirm ${context.title}`, state, context), [ createFlagsQuickPickItem<Flags>(state.flags, [], { label: this.title, detail: `Will reset (leaves changes in the working tree) ${getReferenceLabel( context.destination, )} to ${getReferenceLabel(state.reference)}`, }), createFlagsQuickPickItem<Flags>(state.flags, ['--soft'], { label: `Soft ${this.title}`, description: '--soft', detail: `Will soft reset (leaves changes in the index and working tree) ${getReferenceLabel( context.destination, )} to ${getReferenceLabel(state.reference)}`, }), createFlagsQuickPickItem<Flags>(state.flags, ['--hard'], { label: `Hard ${this.title}`, description: '--hard', detail: `Will hard reset (discards all changes) ${getReferenceLabel( context.destination, )} to ${getReferenceLabel(state.reference)}`, }), ], ); const selection: StepSelection<typeof step> = yield step; return canPickStepContinue(step, state, selection) ? selection[0].item : StepResultBreak; } } ```
/content/code_sandbox/src/commands/git/reset.ts
xml
2016-08-08T14:50:30
2024-08-15T21:25:09
vscode-gitlens
gitkraken/vscode-gitlens
8,889
1,442
```xml // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // // path_to_url // // Unless required by applicable law or agreed to in writing, // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // specific language governing permissions and limitations import { generateDictionaryTables, generateRandomTables } from '../../../data/tables.js'; import { validateRecordBatchIterator } from '../validate.js'; import { ArrowJSONLike, RecordBatchJSONWriter, RecordBatchReader, Table } from 'apache-arrow'; describe('RecordBatchJSONWriter', () => { for (const table of generateRandomTables([10, 20, 30])) { testJSONWriter(table, `[${table.schema.fields.join(', ')}]`); } for (const table of generateDictionaryTables([10, 20, 30])) { testJSONWriter(table, `${table.schema.fields[0]}`); } }); function testJSONWriter(table: Table, name: string) { describe(`should write the Arrow IPC JSON format (${name})`, () => { test(`Table`, validateTable.bind(0, table)); }); } async function validateTable(source: Table) { const writer = RecordBatchJSONWriter.writeAll(source); const string = await writer.toString(); const json = JSON.parse(string) as ArrowJSONLike; const result = new Table(RecordBatchReader.from(json)); validateRecordBatchIterator(3, source.batches); expect(result).toEqualTable(source); } ```
/content/code_sandbox/js/test/unit/ipc/writer/json-writer-tests.ts
xml
2016-02-17T08:00:23
2024-08-16T19:00:48
arrow
apache/arrow
14,094
341
```xml import { ScaleLinear } from 'd3-scale'; import { MouseEventHandler } from 'react'; import type { Maybe } from 'types'; import { ICON_PLUS_PADDING, LABEL_MAX_WIDTH, PADDING_Y, ROW_HEIGHT, TEXT_ADJUST_Y, } from '../constants'; type Props = { children: React.ReactNode; index: number; isMobile: boolean; label: string; scale: ScaleLinear<number, number, never>; value: Maybe<number>; onMouseOver?: MouseEventHandler<SVGRectElement>; onMouseOut?: () => void; width: number; }; export default function Row({ children, index, isMobile, label, scale, value, onMouseOver, onMouseOut, width, }: Props) { // Don't render if the width is not positive if (width <= 0) { return null; } return ( <g className="row" transform={`translate(0, ${index * (ROW_HEIGHT + PADDING_Y)})`}> {/* Row background */} <rect y="-1" fill="transparent" width={width} height={ROW_HEIGHT + PADDING_Y} /* Support only click events in mobile mode, otherwise react to mouse hovers */ onClick={isMobile ? onMouseOver : () => {}} onMouseOver={isMobile ? () => {} : onMouseOver} onMouseMove={isMobile ? () => {} : onMouseOver} onMouseOut={onMouseOut} onBlur={onMouseOut} /> {/* Row label */} <text className="pointer-events-none text-xs" textAnchor="start" fill="currentColor" transform={`translate(${ICON_PLUS_PADDING}, ${TEXT_ADJUST_Y})`} > {label} </text> {/* Row content */} {children} {/* Question mark if the value is not defined */} {!Number.isFinite(value) && ( <text transform={`translate(3, ${TEXT_ADJUST_Y})`} className="pointer-events-none" fill="darkgray" x={LABEL_MAX_WIDTH + scale(0)} > ? </text> )} </g> ); } ```
/content/code_sandbox/web/src/features/charts/bar-breakdown/elements/Row.tsx
xml
2016-05-21T16:36:17
2024-08-16T17:56:07
electricitymaps-contrib
electricitymaps/electricitymaps-contrib
3,437
477
```xml import {UniqueSelectionDispatcher} from './unique-selection-dispatcher'; describe('Unique selection dispatcher', () => { let dispatcher: UniqueSelectionDispatcher; beforeEach(() => (dispatcher = new UniqueSelectionDispatcher())); it('should notify registered listeners', () => { const spy = jasmine.createSpy('listen handler'); dispatcher.listen(spy); dispatcher.notify('id', 'name'); expect(spy).toHaveBeenCalledWith('id', 'name'); }); it('should not notify unregistered listeners', () => { const spy = jasmine.createSpy('listen handler'); const unregister = dispatcher.listen(spy); unregister(); dispatcher.notify('id', 'name'); expect(spy).not.toHaveBeenCalled(); }); it('should remove all listeners when destroyed', () => { const spy = jasmine.createSpy('listen handler'); dispatcher.listen(spy); dispatcher.ngOnDestroy(); dispatcher.notify('id', 'name'); expect(spy).not.toHaveBeenCalled(); }); }); ```
/content/code_sandbox/src/cdk/collections/unique-selection-dispatcher.spec.ts
xml
2016-01-04T18:50:02
2024-08-16T11:21:13
components
angular/components
24,263
210
```xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>io.github.openjoe</groupId> <artifactId>smart-sso-starter</artifactId> <version>1.7.3</version> </parent> <artifactId>smart-sso-starter-server</artifactId> <packaging>jar</packaging> <name>${project.artifactId}</name> <dependencies> <dependency> <groupId>io.github.openjoe</groupId> <artifactId>smart-sso-starter-base</artifactId> </dependency> </dependencies> </project> ```
/content/code_sandbox/smart-sso-starter/smart-sso-starter-server/pom.xml
xml
2016-07-11T09:06:38
2024-08-15T09:57:16
smart-sso
a466350665/smart-sso
2,103
194
```xml <?xml version="1.0" encoding="utf-8"?> <regress-exe> <test> <default> <tags>StackTrace</tags> <files>SimpleThrow.js</files> <compile-flags>-ExtendedErrorStackForTestHost -errorStackTrace- -args runTest -endargs</compile-flags> <baseline>simpleThrow.js.stackTraceDisabled.baseline</baseline> </default> </test> <test> <default> <tags>StackTrace</tags> <files>PropertyValidation.js</files> <compile-flags>-ExtendedErrorStackForTestHost</compile-flags> <baseline>PropertyValidation.nostrict.baseline</baseline> </default> </test> <test> <default> <tags>StackTrace</tags> <files>PropertyValidation.js</files> <compile-flags>-ExtendedErrorStackForTestHost -forceStrictMode</compile-flags> <baseline>PropertyValidation.nostrict.baseline</baseline> </default> </test> <test> <default> <tags>StackTrace</tags> <files>SimpleThrow.js</files> <compile-flags>-ExtendedErrorStackForTestHost -args runTest -endargs</compile-flags> <baseline>SimpleThrow.js.baseline</baseline> </default> </test> <test> <default> <tags>StackTrace</tags> <files>LongCallStackThrow.js</files> <compile-flags>-ExtendedErrorStackForTestHost -args runTest 5 -endargs</compile-flags> <baseline>LongCallStackThrow.js.Args5.baseline</baseline> </default> </test> <test> <default> <tags>StackTrace</tags> <files>LongCallStackThrow.js</files> <compile-flags>-ExtendedErrorStackForTestHost -args runTest 6 -endargs</compile-flags> <baseline>LongCallStackThrow.js.Args6.baseline</baseline> </default> </test> <test> <default> <tags>StackTrace</tags> <files>LongCallStackThrow.js</files> <compile-flags>-ExtendedErrorStackForTestHost -args runTest 7 -endargs</compile-flags> <baseline>LongCallStackThrow.js.Args7.baseline</baseline> </default> </test> <test> <default> <tags>StackTrace</tags> <files>LongCallStackThrow.js</files> <compile-flags>-ExtendedErrorStackForTestHost -args runTest 30 -endargs</compile-flags> <baseline>LongCallStackThrow.js.Args30.baseline</baseline> </default> </test> <test> <default> <tags>StackTrace</tags> <files>StackTraceLimit.js</files> <baseline>StackTraceLimit.baseline</baseline> <compile-flags>-ExtendedErrorStackForTestHost</compile-flags> </default> </test> <test> <default> <tags>StackTrace,xplat_verifymark_slow</tags> <files>StackTraceLimitOOS.js</files> <baseline>StackTraceLimitOOS.baseline</baseline> <compile-flags>-ExtendedErrorStackForTestHost</compile-flags> </default> </test> <test> <default> <tags>StackTrace,xplat_verifymark_slow</tags> <files>StackTraceLimitOOS.js</files> <baseline>StackTraceLimitOOS.baseline</baseline> <compile-flags>-ExtendedErrorStackForTestHost -on:interruptprobe</compile-flags> </default> </test> <test> <default> <tags>StackTrace</tags> <files>dynamic.js</files> <baseline>dynamic.js.baseline</baseline> <compile-flags>-ExtendedErrorStackForTestHost</compile-flags> </default> </test> <test> <default> <tags>StackTrace</tags> <files>ErrorPrototype.js</files> <baseline>ErrorPrototype.baseline</baseline> <compile-flags>-ExtendedErrorStackForTestHost</compile-flags> </default> </test> <test> <default> <tags>StackTrace</tags> <files>ErrorDotStackAlreadyExists.js</files> <baseline>ErrorDotStackAlreadyExists.baseline</baseline> </default> </test> <test> <default> <tags>StackTrace</tags> <files>FunctionName.js</files> <baseline>FunctionName.js.baseline</baseline> <compile-flags>-ExtendedErrorStackForTestHost</compile-flags> </default> </test> <test> <default> <files>x64StackWalk.js</files> <tags>exclude_x86,exclude_arm,exclude_dynapogo</tags> <baseline>x64StackWalk.baseline</baseline> <compile-flags>-ExtendedErrorStackForTestHost</compile-flags> </default> </test> <test> <default> <files>x64StackWalkLoopBody.js</files> <tags>exclude_x86,exclude_arm,exclude_dynapogo</tags> <baseline>x64StackWalkLoopBody.baseline</baseline> <compile-flags>-ExtendedErrorStackForTestHost -loopinterpretcount:1</compile-flags> </default> </test> <test> <default> <files>dotChainNameHint.js</files> <compile-flags>-args summary -endargs</compile-flags> </default> </test> </regress-exe> ```
/content/code_sandbox/test/StackTrace/rlexe.xml
xml
2016-01-05T19:05:31
2024-08-16T17:20:00
ChakraCore
chakra-core/ChakraCore
9,079
1,261
```xml /* Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ #import "AppDelegate.h" #import <pthread.h> #import <dispatch/dispatch.h> #include <crt_externs.h> #import "CocoaUIInterface.h" #import "System.h" #define NIDIUM_DISPATCH_MAINTHREAD 0 unsigned long _ape_seed; namespace Nidium { namespace Interface { SystemInterface *SystemInterface::_interface = new System(); UIInterface *__NidiumUI; } } @implementation AppDelegate @synthesize position, appfile; - (void)dealloc { [super dealloc]; } - (id) init { self = [super init]; if (self) { [[NSAppleEventManager sharedAppleEventManager] setEventHandler:self andSelector:@selector(handleURLEvent:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL]; CFStringRef bundleID = (CFStringRef)[[NSBundle mainBundle] bundleIdentifier]; LSSetDefaultHandlerForURLScheme(CFSTR("nidium"), bundleID); } return self; } - (void) setupWorkingDirectory:(BOOL)shouldChdir { if (shouldChdir) { char parentdir[MAXPATHLEN]; CFURLRef url = CFBundleCopyBundleURL(CFBundleGetMainBundle()); CFURLRef url2 = CFURLCreateCopyDeletingLastPathComponent(0, url); if (CFURLGetFileSystemRepresentation(url2, 1, (UInt8 *)parentdir, MAXPATHLEN)) { chdir(parentdir); /* chdir to the binary app's parent */ } CFRelease(url); CFRelease(url2); } } - (void)handleURLEvent:(NSAppleEventDescriptor*)event withReplyEvent:(NSAppleEventDescriptor*)replyEvent { NSString* filename = [[event paramDescriptorForKeyword:keyDirectObject] stringValue]; NSString *f = [[[NSString alloc] initWithFormat:@"http%@", [filename substringFromIndex:sizeof("nidium")-1]] autorelease]; self.appfile = f; if (self->isRunning) { self->UI->restartApplication([f UTF8String]); } } - (void) refreshApp { self->UI->refreshApplication(true); } - (void) openConsole { bool created; Nidium::Interface::UICocoaConsole *console = self->UI->getConsole(true, &created); if (!created) { if (console->hidden()) { console->show(); } else { console->hide(); } } } - (void) stopApplication { self->UI->stopApplication(); } - (void)createMenu { NSMenu *mainmenu = [NSApp mainMenu]; NSMenuItem *item = [[NSMenuItem alloc] initWithTitle:@"_Application" action:NULL keyEquivalent:@""]; NSMenu *submenu = [[NSMenu alloc] initWithTitle:@"Application"]; [submenu addItemWithTitle:@"Refresh" action:@selector(refreshApp) keyEquivalent:@"r"]; [submenu addItemWithTitle:@"Toggle console" action:@selector(openConsole) keyEquivalent:@"d"]; [submenu addItemWithTitle:@"Stop" action:@selector(stopApplication) keyEquivalent:@"u"]; [item setSubmenu:submenu]; [mainmenu addItem:item]; /* NSMenuItem *HelpMenu = [[NSMenuItem alloc] initWithTitle:@"_Doc" action:NULL keyEquivalent:@""]; NSMenu *Helpsubmenu = [[NSMenu alloc] initWithTitle:@"Documentation"]; [HelpMenu setSubmenu:Helpsubmenu]; [mainmenu addItem:HelpMenu]; NSSearchField *searchField = [[NSSearchField alloc] init]; NSRect cellFrame = [searchField frame]; NSMenuItem *search = [[NSMenuItem alloc] initWithTitle:@"Search" action:NULL keyEquivalent:@""]; [search setView:searchField]; searchField.frame = NSMakeRect(50, 0, 200, 40); [Helpsubmenu addItem:search]; */ /* NSMenuItem *testItem = [[[NSMenuItem alloc] initWithTitle:@"Testing!" action:nil keyEquivalent:@""] autorelease]; NSMenu *subMenu = [[[NSMenu alloc] initWithTitle:@"Testing!"] autorelease]; [subMenu addItemWithTitle:@"Another test." action:nil keyEquivalent:@""]; [testItem setSubmenu:subMenu]; [menubar addItem:testItem]; */ } - (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification{ return YES; } - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { [self createMenu]; [[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self]; NSUserDefaults *args = [NSUserDefaults standardUserDefaults]; #if 0 BOOL noNML = ([args objectForKey:@"no-nml"] != nil); #endif int appWidth = 0, appHeight = 0; #if 0 if (noNML) { appWidth = [args integerForKey:@"width"]; appHeight = [args integerForKey:@"height"]; } #endif //[self setupWorkingDirectory:YES]; _ape_seed = time(NULL) ^ (getpid() << 16); //Console *console = [[Console alloc] init]; //[console attachToStdout]; Nidium::Interface::UICocoaInterface *nUI = new Nidium::Interface::UICocoaInterface; Nidium::Interface::__NidiumUI = nUI; nUI->setArguments(*_NSGetArgc(), *_NSGetArgv()); self->UI = nUI; self->isRunning = YES; #if NIDIUM_DISPATCH_MAINTHREAD dispatch_async(dispatch_get_main_queue(), ^{ #endif const char *filename; if (self.appfile == nil) { filename = "embed://default.nml"; } else { filename = [self.appfile UTF8String]; } if (!nUI->runApplication(filename)) { [[NSApplication sharedApplication] terminate:nil]; return; } nUI->runLoop(); #if NIDIUM_DISPATCH_MAINTHREAD }); #endif } - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename { NSLog(@"[Cocoa] application:openFile: <%@>", filename); self.appfile = filename; if (self->isRunning) { self->UI->restartApplication([filename UTF8String]); } return true; } #ifdef NIDIUM_ENABLE_CRASHREPORTER static BreakpadRef InitBreakpad(void) { #define STR_HELPER(x) #x #define STR(x) STR_HELPER(x) NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; BreakpadRef breakpad = 0; NSString *execPath = [[NSBundle mainBundle] resourcePath]; NSString *contentPath = [execPath stringByDeletingLastPathComponent]; NSString *resourcesPath = [contentPath stringByAppendingPathComponent:@"Resources/"]; NSString *inspector = [resourcesPath stringByAppendingPathComponent:@"crash_inspector"]; NSString *reporter = [resourcesPath stringByAppendingPathComponent:@"crash_report_sender.app"]; reporter = [[NSBundle bundleWithPath:reporter] executablePath]; NSDictionary *dict = [[NSBundle mainBundle] infoDictionary]; NSMutableDictionary *config= [[dict mutableCopy] autorelease]; [config setObject:inspector forKey:@BREAKPAD_INSPECTOR_LOCATION]; [config setObject:reporter forKey:@BREAKPAD_REPORTER_EXE_LOCATION]; [config setObject:@"http://"NIDIUM_CRASH_COLLECTOR_HOST":"STR(NIDIUM_CRASH_COLLECTOR_PORT)""NIDIUM_CRASH_COLLECTOR_ENDPOINT forKey:@BREAKPAD_URL]; [config setObject:@NIDIUM_VERSION_STR forKey:@BREAKPAD_VERSION]; breakpad = BreakpadCreate(config); SetCrashKeyValue(breakpad, @"version", @NIDIUM_VERSION_STR); SetCrashKeyValue(breakpad, @"build", @NIDIUM_BUILD); SetCrashKeyValue(breakpad, @"product", @"Nidium"); [pool release]; return breakpad; #undef STR #undef STR_HELPER } void SetCrashKeyValue(BreakpadRef breakpad, NSString *key, NSString *value) { if (breakpad == NULL) { return; } BreakpadAddUploadParameter(breakpad, key, value); } - (void)awakeFromNib { breakpad = InitBreakpad(); } - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { BreakpadRelease(breakpad); NSLog(@"quit????"); return NSTerminateNow; } - (BOOL)applicationShouldTerminateAfterLastWindowClosed { return NO; } #endif @end ```
/content/code_sandbox/src/Frontend/app/osx/AppDelegate.mm
xml
2016-05-20T13:58:04
2024-07-31T04:37:16
Nidium
nidium/Nidium
1,140
1,874
```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. */ /** * @fileoverview Implements the MmlMmultiscripts node * * @author dpvc@mathjax.org (Davide Cervone) */ import {PropertyList} from '../../Tree/Node.js'; import {AbstractMmlNode, AttributeList} from '../MmlNode.js'; import {MmlMsubsup} from './msubsup.js'; /*****************************************************************/ /** * Implements the MmlMmultiscripts node class (subclass of MmlMsubsup) */ export class MmlMmultiscripts extends MmlMsubsup { /** * @override */ public static defaults: PropertyList = { ...MmlMsubsup.defaults }; /** * @override */ public get kind() { return 'mmultiscripts'; } /** * <mmultiscripts> requires at least one child (the base) * @override */ public get arity() { return 1; } /** * Push the inherited values to the base * Make sure the number of pre- and post-scripts are even by adding mrows, if needed. * For the scripts, use displaystyle = false, scriptlevel + 1, and * set the primestyle in the subscripts. * * @override */ protected setChildInheritedAttributes(attributes: AttributeList, display: boolean, level: number, prime: boolean) { this.childNodes[0].setInheritedAttributes(attributes, display, level, prime); let prescripts = false; for (let i = 1, n = 0; i < this.childNodes.length; i++) { let child = this.childNodes[i]; if (child.isKind('mprescripts')) { if (!prescripts) { prescripts = true; if (i % 2 === 0) { let mrow = this.factory.create('mrow'); this.childNodes.splice(i, 0, mrow); mrow.parent = this; i++; } } } else { let primestyle = prime || (n % 2 === 0); child.setInheritedAttributes(attributes, false, level + 1, primestyle); n++; } } if (this.childNodes.length % 2 === (prescripts ? 1 : 0)) { this.appendChild(this.factory.create('mrow')); this.childNodes[this.childNodes.length - 1].setInheritedAttributes(attributes, false, level + 1, prime); } } /** * Check that mprescripts only occurs once, and that the number of pre- and post-scripts are even. * * @override */ protected verifyChildren(options: PropertyList) { let prescripts = false; let fix = options['fixMmultiscripts']; for (let i = 0; i < this.childNodes.length; i++) { let child = this.childNodes[i]; if (child.isKind('mprescripts')) { if (prescripts) { child.mError(child.kind + ' can only appear once in ' + this.kind, options, true); } else { prescripts = true; if (i % 2 === 0 && !fix) { this.mError('There must be an equal number of prescripts of each type', options); } } } } if (this.childNodes.length % 2 === (prescripts ? 1 : 0) && !fix) { this.mError('There must be an equal number of scripts of each type', options); } super.verifyChildren(options); } } /*****************************************************************/ /** * Implements the MmlMprescripts node class (subclass of AbstractMmlNode) */ export class MmlMprescripts extends AbstractMmlNode { /** * @override */ public static defaults: PropertyList = { ...AbstractMmlNode.defaults }; /** * @return {string} The mprescripts kind */ public get kind(): string { return 'mprescripts'; } /** * @return {number} <mprescripts> can have no children */ public get arity(): number { return 0; } /** * Check that parent is mmultiscripts * * @override */ public verifyTree(options: PropertyList) { super.verifyTree(options); if (this.parent && !this.parent.isKind('mmultiscripts')) { this.mError(this.kind + ' must be a child of mmultiscripts', options, true); } } } /*****************************************************************/ /** * Implements the MmlNone node class (subclass of AbstractMmlNode) */ export class MmlNone extends AbstractMmlNode { /** * @override */ public static defaults: PropertyList = { ...AbstractMmlNode.defaults }; /** * @return {string} The none kind */ public get kind(): string { return 'none'; } /** * @return {number} <none> can have no children */ public get arity(): number { return 0; } /** * Check that parent is mmultiscripts * * @override */ public verifyTree(options: PropertyList) { super.verifyTree(options); if (this.parent && !this.parent.isKind('mmultiscripts')) { this.mError(this.kind + ' must be a child of mmultiscripts', options, true); } } } ```
/content/code_sandbox/ts/core/MmlTree/MmlNodes/mmultiscripts.ts
xml
2016-02-23T09:52:03
2024-08-16T04:46:50
MathJax-src
mathjax/MathJax-src
2,017
1,259
```xml /* * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ /** * Types for C API. */ /** A pointer to points to the raw address space. */ export type Pointer = number; /** A pointer offset, need to add a base address to get a valid ptr. */ export type PtrOffset = number; // -- TVM runtime C API -- /** * const char *TVMGetLastError(); */ export type FTVMGetLastError = () => Pointer; /** * void TVMAPISetLastError(const char* msg); */ export type FTVMAPISetLastError = (msg: Pointer) => void; /** * int TVMModGetFunction(TVMModuleHandle mod, * const char* func_name, * int query_imports, * TVMFunctionHandle *out); */ export type FTVMModGetFunction = ( mod: Pointer, funcName: Pointer, queryImports: number, out: Pointer) => number; /** * int TVMModImport(TVMModuleHandle mod, * TVMModuleHandle dep); */ export type FTVMModImport = (mod: Pointer, dep: Pointer) => number; /** * int TVMModFree(TVMModuleHandle mod); */ export type FTVMModFree = (mod: Pointer) => number; /** * int TVMFuncFree(TVMFunctionHandle func); */ export type FTVMFuncFree = (func: Pointer) => number; /** * int TVMFuncCall(TVMFunctionHandle func, * TVMValue* arg_values, * int* type_codes, * int num_args, * TVMValue* ret_val, * int* ret_type_code); */ export type FTVMFuncCall = ( func: Pointer, argValues: Pointer, typeCode: Pointer, nargs: number, retValue: Pointer, retCode: Pointer) => number; /** * int TVMCFuncSetReturn(TVMRetValueHandle ret, * TVMValue* value, * int* type_code, * int num_ret); */ export type FTVMCFuncSetReturn = ( ret: Pointer, value: Pointer, typeCode: Pointer, numRet: number) => number; /** * int TVMCbArgToReturn(TVMValue* value, int* code); */ export type FTVMCbArgToReturn = (value: Pointer, code: Pointer) => number; /** * int TVMFuncListGlobalNames(int* outSize, const char*** outArray); */ export type FTVMFuncListGlobalNames = (outSize: Pointer, outArray: Pointer) => number; /** * int TVMFuncRegisterGlobal( * const char* name, TVMFunctionHandle f, int override); */ export type FTVMFuncRegisterGlobal = ( name: Pointer, f: Pointer, override: number) => number; /** *int TVMFuncGetGlobal(const char* name, TVMFunctionHandle* out); */ export type FTVMFuncGetGlobal = (name: Pointer, out: Pointer) => number; /** * int TVMArrayAlloc(const tvm_index_t* shape, * int ndim, * int dtype_code, * int dtype_bits, * int dtype_lanes, * int device_type, * int device_id, * TVMArrayHandle* out); */ export type FTVMArrayAlloc = ( shape: Pointer, ndim: number, dtypeCode: number, dtypeBits: number, dtypeLanes: number, deviceType: number, deviceId: number, out: Pointer) => number; /** * int TVMArrayFree(TVMArrayHandle handle); */ export type FTVMArrayFree = (handle: Pointer) => number; /** * int TVMArrayCopyFromBytes(TVMArrayHandle handle, * void* data, * size_t nbytes); */ export type FTVMArrayCopyFromBytes = ( handle: Pointer, data: Pointer, nbytes: number) => number; /** * int TVMArrayCopyToBytes(TVMArrayHandle handle, * void* data, * size_t nbytes); */ export type FTVMArrayCopyToBytes = ( handle: Pointer, data: Pointer, nbytes: number) => number; /** * int TVMArrayCopyFromTo(TVMArrayHandle from, * TVMArrayHandle to, * TVMStreamHandle stream); */ export type FTVMArrayCopyFromTo = ( from: Pointer, to: Pointer, stream: Pointer) => number; /** * int TVMSynchronize(int device_type, int device_id, TVMStreamHandle stream); */ export type FTVMSynchronize = ( deviceType: number, deviceId: number, stream: Pointer) => number; /** * typedef int (*TVMBackendPackedCFunc)(TVMValue* args, * int* type_codes, * int num_args, * TVMValue* out_ret_value, * int* out_ret_tcode); */ export type FTVMBackendPackedCFunc = ( argValues: Pointer, argCodes: Pointer, nargs: number, outValue: Pointer, outCode: Pointer) => number; /** * int TVMObjectFree(TVMObjectHandle obj); */ export type FTVMObjectFree = (obj: Pointer) => number; /** * int TVMObjectGetTypeIndex(TVMObjectHandle obj, unsigned* out_tindex); */ export type FTVMObjectGetTypeIndex = (obj: Pointer, out_tindex: Pointer) => number; /** * int TVMObjectTypeIndex2Key(unsigned tindex, char** out_type_key); */ export type FTVMObjectTypeIndex2Key = (type_index: number, out_type_key: Pointer) => number; /** * int TVMObjectTypeKey2Index(const char* type_key, unsigned* out_tindex); */ export type FTVMObjectTypeKey2Index = (type_key: Pointer, out_tindex: Pointer) => number; // -- TVM Wasm Auxiliary C API -- /** void* TVMWasmAllocSpace(int size); */ export type FTVMWasmAllocSpace = (size: number) => Pointer; /** void TVMWasmFreeSpace(void* data); */ export type FTVMWasmFreeSpace = (ptr: Pointer) => void; /** * int TVMWasmPackedCFunc(TVMValue* args, * int* type_codes, * int num_args, * TVMRetValueHandle ret, * void* resource_handle); */ export type FTVMWasmPackedCFunc = ( args: Pointer, typeCodes: Pointer, nargs: number, ret: Pointer, resourceHandle: Pointer) => number; /** * int TVMWasmFuncCreateFromCFunc(void* resource_handle, * TVMFunctionHandle *out); */ export type FTVMWasmFuncCreateFromCFunc = ( resource: Pointer, out: Pointer) => number; /** * void TVMWasmPackedCFuncFinalizer(void* resource_handle); */ export type FTVMWasmPackedCFuncFinalizer = (resourceHandle: Pointer) => void; /** * Size of common data types. */ export const enum SizeOf { U8 = 1, U16 = 2, I32 = 4, I64 = 8, F32 = 4, F64 = 8, TVMValue = 8, DLDataType = I32, DLDevice = I32 + I32, } /** * Argument Type code in TVM FFI. */ export const enum ArgTypeCode { Int = 0, UInt = 1, Float = 2, TVMOpaqueHandle = 3, Null = 4, TVMDataType = 5, DLDevice = 6, TVMDLTensorHandle = 7, TVMObjectHandle = 8, TVMModuleHandle = 9, TVMPackedFuncHandle = 10, TVMStr = 11, TVMBytes = 12, TVMNDArrayHandle = 13, TVMObjectRValueRefArg = 14 } ```
/content/code_sandbox/web/src/ctypes.ts
xml
2016-10-12T22:20:28
2024-08-16T11:24:08
tvm
apache/tvm
11,517
1,782
```xml import invariant from "invariant"; import find from "lodash/find"; import { action, observable } from "mobx"; import { observer } from "mobx-react"; import * as React from "react"; import { withTranslation, WithTranslation } from "react-i18next"; import { io, Socket } from "socket.io-client"; import { toast } from "sonner"; import { FileOperationState, FileOperationType } from "@shared/types"; import RootStore from "~/stores/RootStore"; import Collection from "~/models/Collection"; import Comment from "~/models/Comment"; import Document from "~/models/Document"; import FileOperation from "~/models/FileOperation"; import Group from "~/models/Group"; import Notification from "~/models/Notification"; import Pin from "~/models/Pin"; import Star from "~/models/Star"; import Subscription from "~/models/Subscription"; import Team from "~/models/Team"; import User from "~/models/User"; import UserMembership from "~/models/UserMembership"; import withStores from "~/components/withStores"; import { PartialWithId, WebsocketCollectionUpdateIndexEvent, WebsocketCollectionUserEvent, WebsocketEntitiesEvent, WebsocketEntityDeletedEvent, } from "~/types"; import { AuthorizationError, NotFoundError } from "~/utils/errors"; import { getVisibilityListener, getPageVisible } from "~/utils/pageVisibility"; type SocketWithAuthentication = Socket & { authenticated?: boolean; }; export const WebsocketContext = React.createContext<SocketWithAuthentication | null>(null); type Props = WithTranslation & RootStore; @observer class WebsocketProvider extends React.Component<Props> { @observable socket: SocketWithAuthentication | null; componentDidMount() { this.createConnection(); document.addEventListener(getVisibilityListener(), this.checkConnection); } componentWillUnmount() { if (this.socket) { this.socket.authenticated = false; this.socket.disconnect(); } document.removeEventListener(getVisibilityListener(), this.checkConnection); } checkConnection = () => { if (this.socket?.disconnected && getPageVisible()) { // null-ifying this reference is important, do not remove. Without it // references to old sockets are potentially held in context this.socket.close(); this.socket = null; this.createConnection(); } }; createConnection = () => { this.socket = io(window.location.origin, { path: "/realtime", transports: ["websocket"], reconnectionDelay: 1000, reconnectionDelayMax: 30000, withCredentials: true, }); invariant(this.socket, "Socket should be defined"); this.socket.authenticated = false; const { auth, documents, collections, groups, pins, stars, memberships, users, userMemberships, policies, comments, subscriptions, fileOperations, notifications, } = this.props; // on reconnection, reset the transports option, as the Websocket // connection may have failed (caused by proxy, firewall, browser, ...) this.socket.io.on("reconnect_attempt", () => { if (this.socket) { this.socket.io.opts.transports = auth?.team?.domain ? ["websocket"] : ["websocket", "polling"]; } }); this.socket.on("authenticated", () => { if (this.socket) { this.socket.authenticated = true; } }); this.socket.on("unauthorized", (err: Error) => { if (this.socket) { this.socket.authenticated = false; } toast.error(err.message); throw err; }); this.socket.on( "entities", action(async (event: WebsocketEntitiesEvent) => { if (event.documentIds) { for (const documentDescriptor of event.documentIds) { const documentId = documentDescriptor.id; let document = documents.get(documentId); const previousTitle = document?.title; // if we already have the latest version (it was us that performed // the change) then we don't need to update anything either. if (document?.updatedAt === documentDescriptor.updatedAt) { continue; } if (!document && !event.fetchIfMissing) { continue; } // otherwise, grab the latest version of the document try { document = await documents.fetch(documentId, { force: true, }); } catch (err) { if ( err instanceof AuthorizationError || err instanceof NotFoundError ) { documents.remove(documentId); return; } } // if the title changed then we need to update the collection also if (document && previousTitle !== document.title) { if (!event.collectionIds) { event.collectionIds = []; } const existing = find(event.collectionIds, { id: document.collectionId, }); if (!existing && document.collectionId) { event.collectionIds.push({ id: document.collectionId, }); } } } } if (event.collectionIds) { for (const collectionDescriptor of event.collectionIds) { const collectionId = collectionDescriptor.id; const collection = collections.get(collectionId); // if we already have the latest version (it was us that performed // the change) then we don't need to update anything either. if (collection?.updatedAt === collectionDescriptor.updatedAt) { continue; } if (!collection?.documents?.length && !event.fetchIfMissing) { continue; } try { await collection?.fetchDocuments({ force: true, }); } catch (err) { if ( err instanceof AuthorizationError || err instanceof NotFoundError ) { documents.removeCollectionDocuments(collectionId); memberships.removeAll({ collectionId }); collections.remove(collectionId); return; } } } } }) ); this.socket.on( "documents.update", action( (event: PartialWithId<Document> & { title: string; url: string }) => { documents.add(event); if (event.collectionId) { const collection = collections.get(event.collectionId); collection?.updateDocument(event); } } ) ); this.socket.on( "documents.archive", action((event: PartialWithId<Document>) => { documents.add(event); policies.remove(event.id); if (event.collectionId) { const collection = collections.get(event.collectionId); collection?.removeDocument(event.id); } }) ); this.socket.on( "documents.delete", action((event: PartialWithId<Document>) => { documents.add(event); policies.remove(event.id); if (event.collectionId) { const collection = collections.get(event.collectionId); collection?.removeDocument(event.id); } userMemberships.orderedData .filter((m) => m.documentId === event.id) .forEach((m) => userMemberships.remove(m.id)); }) ); this.socket.on( "documents.permanent_delete", (event: WebsocketEntityDeletedEvent) => { documents.remove(event.modelId); } ); // received when a user is given access to a document this.socket.on( "documents.add_user", (event: PartialWithId<UserMembership>) => { userMemberships.add(event); } ); this.socket.on( "documents.remove_user", (event: PartialWithId<UserMembership>) => { if (event.userId) { const userMembership = userMemberships.get(event.id); // TODO: Possibly replace this with a one-to-many relation decorator. if (userMembership) { userMemberships .filter({ userId: event.userId, sourceId: userMembership.id, }) .forEach((m) => { m.documentId && documents.remove(m.documentId); }); } userMemberships.removeAll({ userId: event.userId, documentId: event.documentId, }); } if (event.documentId && event.userId === auth.user?.id) { documents.remove(event.documentId); } } ); this.socket.on("comments.create", (event: PartialWithId<Comment>) => { comments.add(event); }); this.socket.on("comments.update", (event: PartialWithId<Comment>) => { comments.add(event); }); this.socket.on("comments.delete", (event: WebsocketEntityDeletedEvent) => { comments.remove(event.modelId); }); this.socket.on("groups.create", (event: PartialWithId<Group>) => { groups.add(event); }); this.socket.on("groups.update", (event: PartialWithId<Group>) => { groups.add(event); }); this.socket.on("groups.delete", (event: WebsocketEntityDeletedEvent) => { groups.remove(event.modelId); }); this.socket.on("collections.create", (event: PartialWithId<Collection>) => { collections.add(event); }); this.socket.on("collections.update", (event: PartialWithId<Collection>) => { if ( "sharing" in event && event.sharing !== collections.get(event.id)?.sharing ) { documents.all.forEach((document) => { policies.remove(document.id); }); } collections.add(event); }); this.socket.on( "collections.delete", action((event: WebsocketEntityDeletedEvent) => { const collectionId = event.modelId; const deletedAt = new Date().toISOString(); const deletedDocuments = documents.inCollection(collectionId); deletedDocuments.forEach((doc) => { if (!doc.publishedAt) { // draft is to be detached from collection, not deleted doc.collectionId = null; } else { doc.deletedAt = deletedAt; } policies.remove(doc.id); }); documents.removeCollectionDocuments(collectionId); memberships.removeAll({ collectionId }); collections.remove(collectionId); }) ); this.socket.on("teams.update", (event: PartialWithId<Team>) => { if ("sharing" in event && event.sharing !== auth.team?.sharing) { documents.all.forEach((document) => { policies.remove(document.id); }); } auth.team?.updateData(event); }); this.socket.on( "notifications.create", (event: PartialWithId<Notification>) => { notifications.add(event); } ); this.socket.on( "notifications.update", (event: PartialWithId<Notification>) => { notifications.add(event); } ); this.socket.on("pins.create", (event: PartialWithId<Pin>) => { pins.add(event); }); this.socket.on("pins.update", (event: PartialWithId<Pin>) => { pins.add(event); }); this.socket.on("pins.delete", (event: WebsocketEntityDeletedEvent) => { pins.remove(event.modelId); }); this.socket.on("stars.create", (event: PartialWithId<Star>) => { stars.add(event); }); this.socket.on("stars.update", (event: PartialWithId<Star>) => { stars.add(event); }); this.socket.on("stars.delete", (event: WebsocketEntityDeletedEvent) => { stars.remove(event.modelId); }); this.socket.on( "user.typing", (event: { userId: string; documentId: string; commentId: string }) => { comments.setTyping(event); } ); // received when a user is given access to a collection // if the user is us then we go ahead and load the collection from API. this.socket.on( "collections.add_user", async (event: WebsocketCollectionUserEvent) => { if (event.userId === auth.user?.id) { await collections.fetch(event.collectionId, { force: true, }); // Document policies might need updating as the permission changes documents.inCollection(event.collectionId).forEach((document) => { policies.remove(document.id); }); } } ); // received when a user is removed from having access to a collection // to keep state in sync we must update our UI if the user is us, // or otherwise just remove any membership state we have for that user. this.socket.on( "collections.remove_user", async (event: WebsocketCollectionUserEvent) => { if (event.userId === auth.user?.id) { // check if we still have access to the collection try { await collections.fetch(event.collectionId, { force: true, }); } catch (err) { if ( err instanceof AuthorizationError || err instanceof NotFoundError ) { collections.remove(event.collectionId); memberships.removeAll({ userId: event.userId, collectionId: event.collectionId, }); return; } } documents.removeCollectionDocuments(event.collectionId); } else { memberships.removeAll({ userId: event.userId, collectionId: event.collectionId, }); } } ); this.socket.on( "collections.update_index", action((event: WebsocketCollectionUpdateIndexEvent) => { const collection = collections.get(event.collectionId); if (collection) { collection.updateIndex(event.index); } }) ); this.socket.on( "fileOperations.create", (event: PartialWithId<FileOperation>) => { fileOperations.add(event); } ); this.socket.on( "fileOperations.update", (event: PartialWithId<FileOperation>) => { fileOperations.add(event); if ( event.state === FileOperationState.Complete && event.type === FileOperationType.Import && event.user?.id === auth.user?.id ) { toast.success(event.name, { description: this.props.t("Your import completed"), }); } } ); this.socket.on( "subscriptions.create", (event: PartialWithId<Subscription>) => { subscriptions.add(event); } ); this.socket.on( "subscriptions.delete", (event: WebsocketEntityDeletedEvent) => { subscriptions.remove(event.modelId); } ); this.socket.on("users.update", (event: PartialWithId<User>) => { users.add(event); }); this.socket.on("users.demote", async (event: PartialWithId<User>) => { if (event.id === auth.user?.id) { documents.all.forEach((document) => policies.remove(document.id)); await collections.fetchAll(); } }); this.socket.on( "userMemberships.update", async (event: PartialWithId<UserMembership>) => { userMemberships.add(event); } ); // received a message from the API server that we should request // to join a specific room. Forward that to the ws server. this.socket.on("join", (event) => { this.socket?.emit("join", event); }); // received a message from the API server that we should request // to leave a specific room. Forward that to the ws server. this.socket.on("leave", (event) => { this.socket?.emit("leave", event); }); }; render() { return ( <WebsocketContext.Provider value={this.socket}> {this.props.children} </WebsocketContext.Provider> ); } } export default withTranslation()(withStores(WebsocketProvider)); ```
/content/code_sandbox/app/components/WebsocketProvider.tsx
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
3,305
```xml <!-- Description: entry content - xhtml w/ escaped markup --> <feed xmlns="path_to_url"> <entry> <content type="xhtml"><div xmlns="path_to_url">&lt;p&gt;Entry Content&lt;/p&gt;</div></content> </entry> </feed> ```
/content/code_sandbox/testdata/parser/atom/atom10_feed_entry_content_xhtml_escaped_markup.xml
xml
2016-01-23T02:44:34
2024-08-16T15:16:03
gofeed
mmcdole/gofeed
2,547
65
```xml const a = 'b'; // @ts-expect-error const c: number = a + 42; ```
/content/code_sandbox/packages/instrumenter/testResources/printer/echo/ts-with-comments.ts
xml
2016-02-12T13:14:28
2024-08-15T18:38:25
stryker-js
stryker-mutator/stryker-js
2,561
24
```xml import styled from "@emotion/styled" import { SplitPaneProps } from "@ryohey/react-split-pane" import { observer } from "mobx-react-lite" import { FC, ReactNode } from "react" import { useStores } from "../../hooks/useStores" import EventList from "../EventEditor/EventList" import { PianoRollKeyboardShortcut } from "../KeyboardShortcut/PianoRollKeyboardShortcut" import { PianoRollToolbar } from "../PianoRollToolbar/PianoRollToolbar" import { TrackList } from "../TrackList/TrackList" import PianoRoll from "./PianoRoll" import { StyledSplitPane } from "./StyledSplitPane" const ColumnContainer = styled.div` display: flex; flex-direction: column; flex-grow: 1; ` const PaneLayout: FC<SplitPaneProps & { isShow: boolean; pane: ReactNode }> = ({ isShow, pane, children, ...props }) => { if (isShow) { return ( <StyledSplitPane {...props}> {pane} {children} </StyledSplitPane> ) } return <>{children}</> } export const PianoRollEditor: FC = observer(() => { const { pianoRollStore } = useStores() const { showTrackList, showEventList } = pianoRollStore return ( <ColumnContainer> <PianoRollKeyboardShortcut /> <PianoRollToolbar /> <div style={{ display: "flex", flexGrow: 1, position: "relative" }}> <PaneLayout split="vertical" minSize={280} pane1Style={{ display: "flex" }} pane2Style={{ display: "flex" }} isShow={showTrackList} pane={<TrackList />} > <PaneLayout split="vertical" minSize={240} pane1Style={{ display: "flex" }} pane2Style={{ display: "flex" }} isShow={showEventList} pane={<EventList />} > <PianoRoll /> </PaneLayout> </PaneLayout> </div> </ColumnContainer> ) }) ```
/content/code_sandbox/app/src/components/PianoRoll/PianoRollEditor.tsx
xml
2016-03-06T15:19:53
2024-08-15T14:27:10
signal
ryohey/signal
1,238
463
```xml import { FC, MouseEventHandler, useCallback, useContext, useEffect, useState } from 'react'; import bulletIcon from 'assets/images/icn-bullet.svg'; import BigNumber from 'bignumber.js'; import styled from 'styled-components'; import feeIcon from '@assets/images/icn-fee.svg'; import { Amount, Button, PoweredByText } from '@components'; import CloseIcon from '@components/icons/CloseIcon'; import ProtectIcon from '@components/icons/ProtectIcon'; import ProtectIconCheck from '@components/icons/ProtectIconCheck'; import WarningIcon from '@components/icons/WarningIcon'; import { DEFAULT_ASSET_DECIMAL, DEFAULT_NETWORK_TICKER } from '@config'; import { getFiat } from '@config/fiats'; import { useRates, useSettings } from '@services'; import { BREAK_POINTS, COLORS, FONT_SIZE, LINE_HEIGHT, SPACING } from '@theme'; import translate, { translateRaw } from '@translations'; import { Fiat, IAccount, IFormikFields } from '@types'; import { isWeb3Wallet as checkIsWeb3Wallet } from '@utils'; import { ProtectTxError } from '..'; import { IFeeAmount, ProtectTxContext } from '../ProtectTxProvider'; import { checkFormForProtectTxErrors, getProtectTxFee } from '../utils'; import ProtectTxBase from './ProtectTxBase'; import { ProtectTxMissingInfo } from './ProtectTxMissingInfo'; const SProtectionThisTransaction = styled(ProtectTxBase)` svg:nth-of-type(2) { height: 100%; max-height: 73px; } .description-text { max-width: 300px; font-size: ${FONT_SIZE.BASE}; line-height: ${LINE_HEIGHT.XL}; margin-bottom: 16px; } .description-text-danger { color: ${COLORS.PASTEL_RED}; } .description-text-wrapper { display: flex; justify-content: space-between; align-items: center; max-width: 300px; > svg { display: flex; align-self: flex-start; } > .description-text-danger { max-width: 260px; padding-left: 16px; text-align: left; } @media (max-width: ${BREAK_POINTS.SCREEN_MD}) { flex-direction: column; align-items: center; > svg { align-self: center; } } } .send-with-confidence { margin: 0 0 15px; } .protect-transaction { margin: 12px 0 16px; } .cancel { background: none; border: none; color: ${COLORS.BLUE_BRIGHT}; text-align: center; } `; const BulletList = styled.ul` li { list-style-type: none; padding-left: ${SPACING.SM}; margin-left: -${SPACING.SM}; margin-bottom: 15px; background-image: url(${bulletIcon}); background-position: 0 ${SPACING.SM}; background-size: 5px 5px; background-repeat: no-repeat; text-align: left; max-width: 280px; font-weight: 400; &:last-child { margin-bottom: 16px; } h6 { color: ${COLORS.PURPLE}; margin: 0; font-size: ${FONT_SIZE.SM}; line-height: ${LINE_HEIGHT.XL}; text-transform: uppercase; } p { font-size: 14px; line-height: ${LINE_HEIGHT.XL}; } } `; const FeeContainer = styled.div` display: flex; flex-wrap: wrap; max-width: 300px; font-size: ${FONT_SIZE.BASE}; line-height: ${LINE_HEIGHT.XL}; img { height: 23px; width: 24px; } && svg { height: 23px; width: 24px; } &:nth-of-type(2) { margin-top: ${SPACING.SM}; } .fee-label { flex: 0 0 140px; min-width: 140px; max-width: 140px; padding-left: ${SPACING.SM}; margin-bottom: 0; text-align: left; } `; const Header = styled.h4` display: flex; align-items: center; && { svg { margin-right: ${SPACING.XS}; } } @media (max-width: ${BREAK_POINTS.SCREEN_MD}) { flex-direction: column; align-items: center; svg { margin-right: 0; } } `; const PoweredByWrapper = styled.div` display: flex; height: 100%; align-items: flex-end; `; interface Props { handleProtectTxSubmit(payload: IFormikFields): Promise<void>; } export const ProtectTxProtection: FC<Props> = ({ handleProtectTxSubmit }) => { const { getAssetRate } = useRates(); const { settings } = useSettings(); const [isLoading, setIsLoading] = useState(false); const { state: { isWeb3Wallet: web3Wallet, web3WalletName, formValues: sendAssetsValues, feeAmount, isPTXFree }, setFeeAmount, setReceiverInfo, setWeb3Wallet, showHideProtectTx } = useContext(ProtectTxContext); useEffect(() => { if (!sendAssetsValues) { return; } const { account: { wallet: walletId } } = sendAssetsValues as { account: IAccount }; setWeb3Wallet(walletId && checkIsWeb3Wallet(walletId), walletId); }, [sendAssetsValues]); useEffect(() => { if (!sendAssetsValues) { return; } const { asset } = sendAssetsValues; const rate = getAssetRate(asset); const { amount, fee } = getProtectTxFee(sendAssetsValues!, rate); setFeeAmount({ amount, fee, rate: rate ? rate : null }); }, [sendAssetsValues]); const onProtectMyTransactionClick: MouseEventHandler<HTMLButtonElement> = useCallback( async (e) => { e.preventDefault(); e.stopPropagation(); try { setIsLoading(true); await setReceiverInfo(sendAssetsValues!.address.value, sendAssetsValues!.network); await handleProtectTxSubmit({ ...sendAssetsValues!, amount: feeAmount.amount ? feeAmount.amount.toFixed(DEFAULT_ASSET_DECIMAL) : '' }); } catch (e) { console.error(e); setIsLoading(false); } }, [feeAmount, setIsLoading] ); const onProtectMyTransactionCancelClick: MouseEventHandler<HTMLButtonElement> = useCallback( (e) => { e.preventDefault(); if (showHideProtectTx) { showHideProtectTx(false); } }, [] ); const error = sendAssetsValues !== undefined && checkFormForProtectTxErrors(sendAssetsValues, getAssetRate(sendAssetsValues.asset), isPTXFree); return ( <ProtectTxProtectionUI error={error} fiat={getFiat(settings)} feeAmount={feeAmount} isLoading={isLoading} isPTXFree={isPTXFree} onProtect={onProtectMyTransactionClick} onCancel={onProtectMyTransactionCancelClick} web3Wallet={{ isWeb3Wallet: web3Wallet, name: web3WalletName }} /> ); }; export interface UIProps { error: ProtectTxError | false; fiat: Fiat; feeAmount: IFeeAmount; isPTXFree: boolean; isLoading: boolean; web3Wallet: { isWeb3Wallet: boolean; name: string | null }; onCancel: MouseEventHandler<HTMLButtonElement & SVGSVGElement>; onProtect: MouseEventHandler<HTMLButtonElement & SVGSVGElement>; } export const ProtectTxProtectionUI = ({ error, feeAmount, fiat, isLoading, isPTXFree, web3Wallet, onCancel, onProtect }: UIProps) => { const getFiatValue = useCallback( (amount: BigNumber | null) => { if (amount === null || feeAmount.rate === null) return '--'; return amount.multipliedBy(feeAmount.rate).toFixed(2); }, [feeAmount] ); const { isWeb3Wallet, name } = web3Wallet; const hasError = error !== ProtectTxError.NO_ERROR; const hasMissingInfoError = error === ProtectTxError.INSUFFICIENT_DATA; return ( <SProtectionThisTransaction> <CloseIcon size="md" onClick={onCancel} /> {hasMissingInfoError && ( <> <ProtectTxMissingInfo /> <hr /> </> )} {!hasMissingInfoError && <ProtectIcon size="lg" />} <Header> {hasMissingInfoError && <ProtectIcon size="sm" />} {translateRaw('PROTECTED_TX_PROTECT_THIS_TRANSACTION')} </Header> <h5>{translateRaw('PROTECTED_TX_PROTECT_THIS_TRANSACTION_DESC')}</h5> <BulletList> <li> <h6>{translateRaw('PROTECTED_TX_SCAN_PARTNER_DB')}</h6> <span>{translateRaw('PROTECTED_TX_SCAN_PARTNER_DB_DESC')}</span> </li> <li> <h6>{translateRaw('PROTECTED_TX_SCAN_ACCOUNT_BALANCE')}</h6> <span>{translateRaw('PROTECTED_TX_SCAN_ACCOUNT_BALANCE_DESC')}</span> </li> <li> <h6>{translateRaw('PROTECTED_TX_SCAN_LATEST_TX')}</h6> <span>{translateRaw('PROTECTED_TX_SCAN_LATEST_TX_DESC')}</span> </li> <li> <h6>{translateRaw('PROTECTED_TX_SCAN_COMMENTS')}</h6> <span>{translateRaw('PROTECTED_TX_SCAN_COMMENTS_DESC')}</span> </li> </BulletList> {isWeb3Wallet && ( <div className="description-text-wrapper"> <WarningIcon /> <p className="description-text description-text-danger"> {translateRaw('PROTECTED_TX_WEB3_WALLET_DESC', { $web3WalletName: name! })} </p> </div> )} {!isWeb3Wallet && ( <p className="description-text">{translate('PROTECTED_TX_NOT_WEB3_WALLET_DESC')}</p> )} {!hasMissingInfoError && !isPTXFree && ( <> <hr /> <h4 className="send-with-confidence"> {translateRaw('PROTECTED_TX_SEND_WITH_CONFIDENCE')} </h4> <FeeContainer> <ProtectIconCheck size="sm" /> <p className="fee-label">{translateRaw('PROTECTED_TX_PRICE')}</p> <Amount asset={{ amount: feeAmount?.fee?.toFixed(6) ?? '--', ticker: DEFAULT_NETWORK_TICKER }} fiat={{ symbol: fiat.symbol, amount: getFiatValue(feeAmount.amount), ticker: fiat.ticker }} /> </FeeContainer> <FeeContainer> <img src={feeIcon} alt="Fee" /> <p className="fee-label">{translateRaw('PROTECTED_TX_FEE')}</p> <Amount asset={{ amount: feeAmount?.fee?.toFixed(6) ?? '---', ticker: DEFAULT_NETWORK_TICKER }} fiat={{ symbol: fiat.symbol, amount: getFiatValue(feeAmount.fee), ticker: fiat.ticker }} /> </FeeContainer> </> )} <Button type="button" className={`protect-transaction ${isLoading ? 'loading' : ''}`} onClick={onProtect} disabled={isLoading || hasError} > {translateRaw('PROTECTED_TX_PROTECT_MY_TX')} </Button> <button type="button" className="cancel" onClick={onCancel}> {translateRaw('PROTECTED_TX_DONT_PROTECT_MY_TX')} </button> <PoweredByWrapper> <PoweredByText provider="NANSEN" /> </PoweredByWrapper> </SProtectionThisTransaction> ); }; ```
/content/code_sandbox/src/features/ProtectTransaction/components/ProtectTxProtection.tsx
xml
2016-12-04T01:35:27
2024-08-14T21:41:58
MyCrypto
MyCryptoHQ/MyCrypto
1,347
2,678
```xml import { ContentColumn, ContentRowTitle, Divider, WrongLess, } from "../../styles"; import Select, { components } from "react-select"; import CURRENCIES from "@erxes/ui/src/constants/currencies"; import ControlLabel from "@erxes/ui/src/components/form/Label"; import { Flex } from "@erxes/ui/src/styles/main"; import FormControl from "@erxes/ui/src/components/form/Control"; import { IPaymentsData } from "../../types"; import { PAYMENT_TYPES } from "../../constants"; import React from "react"; import { __ } from "@erxes/ui/src/utils"; import { pluginsOfPaymentForm } from "coreui/pluginUtils"; import { selectConfigOptions } from "../../utils"; type Props = { total: { [currency: string]: number }; payments?: IPaymentsData; currencies: string[]; onChangePaymentsData: (paymentsData: IPaymentsData) => void; calcChangePay: () => void; changePayData: { currency?: string; amount?: number }; }; type State = { paymentsData: IPaymentsData; }; class PaymentForm extends React.Component<Props, State> { constructor(props) { super(props); const { payments } = this.props; this.state = { paymentsData: payments || {}, }; } componentWillMount() { this.props.calcChangePay(); } renderAmount(amount) { if (amount < 0) { return <WrongLess>{amount.toLocaleString()}</WrongLess>; } return amount.toLocaleString(); } renderTotal(value) { return Object.keys(value).map((key) => ( <div key={key}> {this.renderAmount(value[key])} <b>{key}</b> </div> )); } paymentStateChange = (kind: string, name: string, value: string | number) => { const { onChangePaymentsData, calcChangePay } = this.props; const { paymentsData } = this.state; if (!paymentsData[name]) { paymentsData[name] = {}; } paymentsData[name][kind] = value; calcChangePay(); this.setState({ paymentsData }); onChangePaymentsData(paymentsData); }; selectOption = (option) => ( <div className="simple-option"> <span>{option.label}</span> </div> ); renderPaymentsByType(type) { const { currencies, changePayData } = this.props; const { paymentsData } = this.state; const onChange = (e) => { if ( (!paymentsData[type.name] || !paymentsData[type.name].currency) && currencies.length > 0 ) { this.paymentStateChange("currency", type.name, currencies[0]); } this.paymentStateChange( "amount", type.name, parseFloat((e.target as HTMLInputElement).value || "0") ); }; const currencyOnChange = (currency) => { this.paymentStateChange( "currency", type.name, currency ? currency.value : "" ); }; const onClick = () => { Object.keys(changePayData).forEach((key) => { if ( changePayData[key] > 0 && (!paymentsData[type.name] || !paymentsData[type.name].amount) ) { if (!paymentsData[type.name]) { paymentsData[type.name] = {}; } paymentsData[type.name].amount = changePayData[key]; paymentsData[type.name].currency = key; changePayData[key] = 0; this.setState({ paymentsData }); this.props.onChangePaymentsData(paymentsData); return; } }); }; const Option = (props) => { return ( <components.Option {...props}> {this.selectOption(props.data)} </components.Option> ); }; const selectOptions = selectConfigOptions(currencies, CURRENCIES); return ( <Flex key={type.name}> <ContentColumn> <ControlLabel>{__(type.title)}</ControlLabel> </ContentColumn> <ContentColumn> <FormControl value={ paymentsData[type.name] ? paymentsData[type.name].amount : "" } type="number" placeholder={__("Type amount")} min={0} name={type.name} onChange={onChange} onClick={onClick} /> </ContentColumn> <ContentColumn> <Select name={type.name} placeholder={__("Choose currency")} value={selectOptions.find( (option) => option.value === (paymentsData[type.name] ? paymentsData[type.name].currency : 0) )} onChange={currencyOnChange} components={{ Option }} isClearable={true} options={selectOptions} /> </ContentColumn> </Flex> ); } renderPayments() { return PAYMENT_TYPES.map((type) => this.renderPaymentsByType(type)); } render() { const { total } = this.props; return ( <> <ContentRowTitle> <ContentColumn> <ControlLabel>Total</ControlLabel> {this.renderTotal(total)} </ContentColumn> <ContentColumn> <ControlLabel>Change</ControlLabel> {this.renderTotal(this.props.changePayData)} </ContentColumn> </ContentRowTitle> <Divider /> {this.renderPayments()} {pluginsOfPaymentForm((type) => this.renderPaymentsByType(type))} </> ); } } export default PaymentForm; ```
/content/code_sandbox/packages/ui-sales/src/deals/components/product/PaymentForm.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
1,197
```xml <?xml version="1.0" encoding="utf-8"?> <!-- ~ All Rights Reserved. --> <LinearLayout xmlns:android="path_to_url" xmlns:app="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:divider="?dividerHorizontal" android:showDividers="middle" android:orientation="vertical"> <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?actionBarSize" android:paddingLeft="@dimen/toolbar_navigation_button_left_margin" android:paddingRight="@dimen/toolbar_button_right_margin" android:theme="?actionBarTheme" app:navigationIcon="@drawable/close_icon_white_24dp" app:popupTheme="?actionBarPopupTheme" app:titleMarginStart="@dimen/toolbar_title_left_margin" /> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingLeft="@dimen/screen_edge_horizontal_margin" android:paddingRight="@dimen/screen_edge_horizontal_margin" android:paddingTop="@dimen/screen_edge_vertical_margin" android:paddingBottom="@dimen/screen_edge_vertical_margin"> <TextView android:id="@+id/table_of_contents" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/content_horizontal_space_with_4dp_padding" android:layout_marginRight="@dimen/content_horizontal_space_with_4dp_padding" android:layout_marginTop="@dimen/content_vertical_space_with_4dp_padding" android:layout_marginBottom="@dimen/content_vertical_space_with_4dp_padding" android:lineSpacingMultiplier="1.2" android:textAppearance="@style/TextAppearance.AppCompat.Subhead" android:textIsSelectable="true" /> </FrameLayout> </ScrollView> </LinearLayout> ```
/content/code_sandbox/app/src/main/res/layout/item_table_of_contents_fragment.xml
xml
2016-02-01T13:44:19
2024-08-15T05:23:34
Douya
zhanghai/Douya
4,549
449
```xml import type { EditorThemeClasses } from 'lexical' const BlocksEditorTheme: EditorThemeClasses = { blockCursor: 'Lexical__blockCursor', characterLimit: 'Lexical__characterLimit', code: 'Lexical__code', codeHighlight: { atrule: 'Lexical__tokenAttr', attr: 'Lexical__tokenAttr', boolean: 'Lexical__tokenProperty', builtin: 'Lexical__tokenSelector', cdata: 'Lexical__tokenComment', char: 'Lexical__tokenSelector', class: 'Lexical__tokenFunction', 'class-name': 'Lexical__tokenFunction', comment: 'Lexical__tokenComment', constant: 'Lexical__tokenProperty', deleted: 'Lexical__tokenProperty', doctype: 'Lexical__tokenComment', entity: 'Lexical__tokenOperator', function: 'Lexical__tokenFunction', important: 'Lexical__tokenVariable', inserted: 'Lexical__tokenSelector', keyword: 'Lexical__tokenAttr', namespace: 'Lexical__tokenVariable', number: 'Lexical__tokenProperty', operator: 'Lexical__tokenOperator', prolog: 'Lexical__tokenComment', property: 'Lexical__tokenProperty', punctuation: 'Lexical__tokenPunctuation', regex: 'Lexical__tokenVariable', selector: 'Lexical__tokenSelector', string: 'Lexical__tokenSelector', symbol: 'Lexical__tokenProperty', tag: 'Lexical__tokenProperty', url: 'Lexical__tokenOperator', variable: 'Lexical__tokenVariable', }, embedBlock: { base: 'Lexical__embedBlock', focus: 'Lexical__embedBlockFocus', }, hashtag: 'Lexical__hashtag', heading: { h1: 'Lexical__h1', h2: 'Lexical__h2', h3: 'Lexical__h3', h4: 'Lexical__h4', h5: 'Lexical__h5', h6: 'Lexical__h6', }, image: 'editor-image', link: 'Lexical__link', list: { listitem: 'Lexical__listItem', listitemChecked: 'Lexical__listItemChecked', listitemUnchecked: 'Lexical__listItemUnchecked', nested: { listitem: 'Lexical__nestedListItem', }, olDepth: ['Lexical__ol1', 'Lexical__ol2', 'Lexical__ol3', 'Lexical__ol4', 'Lexical__ol5'], ul: 'Lexical__ul', checklist: 'Lexical__checkList', }, ltr: 'Lexical__ltr', mark: 'Lexical__mark', markOverlap: 'Lexical__markOverlap', paragraph: 'Lexical__paragraph', quote: 'Lexical__quote', rtl: 'Lexical__rtl', table: 'Lexical__table', tableAddColumns: 'Lexical__tableAddColumns', tableAddRows: 'Lexical__tableAddRows', tableCell: 'Lexical__tableCell', tableCellActionButton: 'Lexical__tableCellActionButton', tableCellActionButtonContainer: 'Lexical__tableCellActionButtonContainer', tableCellEditing: 'Lexical__tableCellEditing', tableCellHeader: 'Lexical__tableCellHeader', tableCellPrimarySelected: 'Lexical__tableCellPrimarySelected', tableCellResizer: 'Lexical__tableCellResizer', tableCellSelected: 'Lexical__tableCellSelected', tableCellSortedIndicator: 'Lexical__tableCellSortedIndicator', tableResizeRuler: 'Lexical__tableCellResizeRuler', tableSelected: 'Lexical__tableSelected', tableSelection: 'Lexical__tableSelection', text: { bold: 'Lexical__textBold', code: 'Lexical__textCode', italic: 'Lexical__textItalic', strikethrough: 'Lexical__textStrikethrough', subscript: 'Lexical__textSubscript', superscript: 'Lexical__textSuperscript', underline: 'Lexical__textUnderline', underlineStrikethrough: 'Lexical__textUnderlineStrikethrough', }, } export default BlocksEditorTheme ```
/content/code_sandbox/packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme/Theme.ts
xml
2016-12-05T23:31:33
2024-08-16T06:51:19
app
standardnotes/app
5,180
977
```xml import { TestBed, ComponentFixture } from '@angular/core/testing'; import { Skeleton, SkeletonModule } from './skeleton'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { By } from '@angular/platform-browser'; describe('Skeleton', () => { let skeleton: Skeleton; let fixture: ComponentFixture<Skeleton>; beforeEach(() => { TestBed.configureTestingModule({ imports: [NoopAnimationsModule, SkeletonModule] }); fixture = TestBed.createComponent(Skeleton); skeleton = fixture.componentInstance; }); it('should display by default', () => { fixture.detectChanges(); const skeletonEl = fixture.debugElement.query(By.css('.p-skeleton')); expect(skeletonEl.nativeElement).toBeTruthy(); }); }); ```
/content/code_sandbox/src/app/components/skeleton/skeleton.spec.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
150
```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 { Batch, IterateOptions, NotFoundError as DBNotFoundError } from '@liskhq/lisk-db'; import { dataStructures } from '@liskhq/lisk-utils'; import { NotFoundError } from './errors'; import { GeneratorDB } from './types'; interface KeyValue { key: Buffer; value: Buffer; } export class GeneratorStore { private readonly _db: GeneratorDB; private readonly _data: dataStructures.BufferMap<Buffer>; private readonly _prefix: Buffer; public constructor(db: GeneratorDB, prefix?: Buffer, data?: dataStructures.BufferMap<Buffer>) { this._db = db; this._prefix = prefix ?? Buffer.alloc(0); this._data = data ?? new dataStructures.BufferMap(); } public getGeneratorStore(moduleID: Buffer): GeneratorStore { return new GeneratorStore(this._db, moduleID, this._data); } public async get(key: Buffer): Promise<Buffer> { const prefixedKey = this._getKey(key); const cachedValue = this._data.get(prefixedKey); if (cachedValue) { return cachedValue; } try { const storedValue = await this._db.get(prefixedKey); this._data.set(prefixedKey, storedValue); return storedValue; } catch (error) { if (error instanceof DBNotFoundError) { throw new NotFoundError(); } throw error; } } // eslint-disable-next-line @typescript-eslint/require-await public async set(key: Buffer, value: Buffer): Promise<void> { const prefixedKey = this._getKey(key); this._data.set(prefixedKey, value); } public async iterate(options: IterateOptions): Promise<KeyValue[]> { const optionsWithKey = { ...options, gte: options.gte ? this._getKey(options.gte) : undefined, lte: options.lte ? this._getKey(options.lte) : undefined, }; const stream = this._db.iterate(optionsWithKey); const result = await new Promise<KeyValue[]>((resolve, reject) => { const pairs: KeyValue[] = []; stream .on('data', ({ key, value }: { key: Buffer; value: Buffer }) => { pairs.push({ key: key.subarray(this._prefix.length), value }); }) .on('error', error => { reject(error); }) .on('end', () => { resolve(pairs); }); }); return result; } public finalize(batch: Batch): void { for (const [key, value] of this._data.entries()) { batch.set(key, value); } } private _getKey(key: Buffer): Buffer { return Buffer.concat([this._prefix, key]); } } ```
/content/code_sandbox/framework/src/engine/generator/generator_store.ts
xml
2016-02-01T21:45:35
2024-08-15T19:16:48
lisk-sdk
LiskArchive/lisk-sdk
2,721
693
```xml import { packageName } from '../../util/pkg-name'; import { yesOption } from '../../util/arg-common'; export const buildCommand = { name: 'build', description: 'Build the project.', arguments: [], options: [ { name: 'prod', description: 'Build a production deployment', shorthand: null, type: Boolean, deprecated: false, }, { name: 'target', shorthand: null, type: String, deprecated: false, description: 'Specify the target environment', }, { name: 'output', description: 'Directory where built assets should be written to', shorthand: null, argument: 'PATH', type: String, deprecated: false, }, { ...yesOption, description: 'Skip the confirmation prompt about pulling environment variables and project settings when not found locally', }, ], examples: [ { name: 'Build the project', value: `${packageName} build`, }, { name: 'Build the project in a specific directory', value: `${packageName} build --cwd ./path-to-project`, }, ], } as const; ```
/content/code_sandbox/packages/cli/src/commands/build/command.ts
xml
2016-09-09T01:12:08
2024-08-16T17:39:45
vercel
vercel/vercel
12,545
255
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="debug|x64"> <Configuration>debug</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="checked|x64"> <Configuration>checked</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="profile|x64"> <Configuration>profile</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="release|x64"> <Configuration>release</Configuration> <Platform>x64</Platform> </ProjectConfiguration> </ItemGroup> <PropertyGroup Label="Globals"> <ProjectGuid>{BD4DC31F-4055-B70F-EDD0-10D59398F707}</ProjectGuid> <RootNamespace>SnippetPrunerSerialization</RootNamespace> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <PlatformToolset>v140</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='checked|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <PlatformToolset>v140</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='profile|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <PlatformToolset>v140</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <PlatformToolset>v140</PlatformToolset> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='debug|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='checked|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='profile|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='release|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|x64'"> <OutDir>./../../../bin/vc14win64\</OutDir> <IntDir>./x64/SnippetPrunerSerialization/debug\</IntDir> <TargetExt>.exe</TargetExt> <TargetName>$(ProjectName)DEBUG</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='debug|x64'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <RuntimeTypeInfo>false</RuntimeTypeInfo> <BufferSecurityCheck>false</BufferSecurityCheck> <FloatingPointModel>Fast</FloatingPointModel> <BasicRuntimeChecks>UninitializedLocalUsageCheck</BasicRuntimeChecks> <AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4577 /wd4464 /wd4350 /wd4668 /wd4365 /wd4548 /d2Zi+</AdditionalOptions> <Optimization>Disabled</Optimization> <AdditionalIncludeDirectories>./../../../Include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../Graphics/include/win32/GL;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_HAS_EXCEPTIONS=0;WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PHYSX_PROFILE_SDK;RENDER_SNIPPET;_DEBUG;PX_DEBUG=1;PX_CHECKED=1;PX_NVTX=1;PX_SUPPORT_PVD=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/LIBPATH:../../../Lib/vc14win64 PhysX3CommonDEBUG_x64.lib PhysX3DEBUG_x64.lib PhysX3CookingDEBUG_x64.lib PhysX3CharacterKinematicDEBUG_x64.lib PhysX3ExtensionsDEBUG.lib PhysX3VehicleDEBUG.lib PxTaskDEBUG_x64.lib PxFoundationDEBUG_x64.lib PsFastXmlDEBUG_x64.lib PxPvdSDKDEBUG_x64.lib /LIBPATH:../../lib/vc14win64 SnippetUtilsDEBUG.lib /DEBUG</AdditionalOptions> <AdditionalDependencies>Winmm.lib;OpenGL32.lib;glut32.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName)DEBUG.exe</OutputFile> <AdditionalLibraryDirectories>./../../../Common/lib/vc14win64;./../../lib/vc14win64;./../../../../PxShared/lib/vc14win64;./../../Graphics/lib/win64/glut;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX64</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> <PostBuildEvent> <Command>XCOPY "../../../../PxShared/bin\vc14win64\PxFoundationDEBUG_x64.dll" "$(OutDir)" /D /Y&#x0D;&#x0A; XCOPY "../../../../PxShared/bin\vc14win64\PxPvdSDKDEBUG_x64.dll" "$(OutDir)" /D /Y</Command> </PostBuildEvent> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='checked|x64'"> <OutDir>./../../../bin/vc14win64\</OutDir> <IntDir>./x64/SnippetPrunerSerialization/checked\</IntDir> <TargetExt>.exe</TargetExt> <TargetName>$(ProjectName)CHECKED</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='checked|x64'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <RuntimeTypeInfo>false</RuntimeTypeInfo> <BufferSecurityCheck>false</BufferSecurityCheck> <FloatingPointModel>Fast</FloatingPointModel> <AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4577 /wd4464 /wd4350 /wd4668 /wd4365 /wd4548 /d2Zi+</AdditionalOptions> <Optimization>Full</Optimization> <AdditionalIncludeDirectories>./../../../Include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../Graphics/include/win32/GL;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_HAS_EXCEPTIONS=0;WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PHYSX_PROFILE_SDK;RENDER_SNIPPET;NDEBUG;PX_CHECKED=1;PX_NVTX=1;PX_SUPPORT_PVD=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/LIBPATH:../../../Lib/vc14win64 PhysX3CommonCHECKED_x64.lib PhysX3CHECKED_x64.lib PhysX3CookingCHECKED_x64.lib PhysX3CharacterKinematicCHECKED_x64.lib PhysX3ExtensionsCHECKED.lib PhysX3VehicleCHECKED.lib PxTaskCHECKED_x64.lib PxFoundationCHECKED_x64.lib PsFastXmlCHECKED_x64.lib PxPvdSDKCHECKED_x64.lib /LIBPATH:../../lib/vc14win64 SnippetUtilsCHECKED.lib</AdditionalOptions> <AdditionalDependencies>Winmm.lib;OpenGL32.lib;glut32.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName)CHECKED.exe</OutputFile> <AdditionalLibraryDirectories>./../../../Common/lib/vc14win64;./../../lib/vc14win64;./../../../../PxShared/lib/vc14win64;./../../Graphics/lib/win64/glut;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX64</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> <PostBuildEvent> <Command>XCOPY "../../../../PxShared/bin\vc14win64\PxFoundationCHECKED_x64.dll" "$(OutDir)" /D /Y&#x0D;&#x0A; XCOPY "../../../../PxShared/bin\vc14win64\PxPvdSDKCHECKED_x64.dll" "$(OutDir)" /D /Y</Command> </PostBuildEvent> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='profile|x64'"> <OutDir>./../../../bin/vc14win64\</OutDir> <IntDir>./x64/SnippetPrunerSerialization/profile\</IntDir> <TargetExt>.exe</TargetExt> <TargetName>$(ProjectName)PROFILE</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='profile|x64'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <RuntimeTypeInfo>false</RuntimeTypeInfo> <BufferSecurityCheck>false</BufferSecurityCheck> <FloatingPointModel>Fast</FloatingPointModel> <AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4577 /wd4464 /wd4350 /wd4668 /wd4365 /wd4548 /d2Zi+</AdditionalOptions> <Optimization>Full</Optimization> <AdditionalIncludeDirectories>./../../../Include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../Graphics/include/win32/GL;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_HAS_EXCEPTIONS=0;WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PHYSX_PROFILE_SDK;RENDER_SNIPPET;NDEBUG;PX_PROFILE=1;PX_NVTX=1;PX_SUPPORT_PVD=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/INCREMENTAL:NO /LIBPATH:../../../Lib/vc14win64 PhysX3CommonPROFILE_x64.lib PhysX3PROFILE_x64.lib PhysX3CookingPROFILE_x64.lib PhysX3CharacterKinematicPROFILE_x64.lib PhysX3ExtensionsPROFILE.lib PhysX3VehiclePROFILE.lib PxTaskPROFILE_x64.lib PxFoundationPROFILE_x64.lib PsFastXmlPROFILE_x64.lib PxPvdSDKPROFILE_x64.lib /LIBPATH:../../lib/vc14win64 SnippetUtilsPROFILE.lib /DEBUG</AdditionalOptions> <AdditionalDependencies>Winmm.lib;OpenGL32.lib;glut32.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName)PROFILE.exe</OutputFile> <AdditionalLibraryDirectories>./../../../Common/lib/vc14win64;./../../lib/vc14win64;./../../../../PxShared/lib/vc14win64;./../../Graphics/lib/win64/glut;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX64</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> <PostBuildEvent> <Command>XCOPY "../../../../PxShared/bin\vc14win64\PxFoundationPROFILE_x64.dll" "$(OutDir)" /D /Y&#x0D;&#x0A; XCOPY "../../../../PxShared/bin\vc14win64\PxPvdSDKPROFILE_x64.dll" "$(OutDir)" /D /Y</Command> </PostBuildEvent> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|x64'"> <OutDir>./../../../bin/vc14win64\</OutDir> <IntDir>./x64/SnippetPrunerSerialization/release\</IntDir> <TargetExt>.exe</TargetExt> <TargetName>$(ProjectName)</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='release|x64'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <RuntimeTypeInfo>false</RuntimeTypeInfo> <BufferSecurityCheck>false</BufferSecurityCheck> <FloatingPointModel>Fast</FloatingPointModel> <AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4577 /wd4464 /wd4350 /wd4668 /wd4365 /wd4548 /d2Zi+</AdditionalOptions> <Optimization>Full</Optimization> <AdditionalIncludeDirectories>./../../../Include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../Graphics/include/win32/GL;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_HAS_EXCEPTIONS=0;WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PHYSX_PROFILE_SDK;RENDER_SNIPPET;NDEBUG;PX_SUPPORT_PVD=0;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/INCREMENTAL:NO /LIBPATH:../../../Lib/vc14win64 PhysX3Common_x64.lib PhysX3_x64.lib PhysX3Cooking_x64.lib PhysX3CharacterKinematic_x64.lib PhysX3Extensions.lib PhysX3Vehicle.lib PxTask_x64.lib PxFoundation_x64.lib PsFastXml_x64.lib PxPvdSDK_x64.lib /LIBPATH:../../lib/vc14win64 SnippetUtils.lib</AdditionalOptions> <AdditionalDependencies>Winmm.lib;OpenGL32.lib;glut32.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName).exe</OutputFile> <AdditionalLibraryDirectories>./../../../Common/lib/vc14win64;./../../lib/vc14win64;./../../../../PxShared/lib/vc14win64;./../../Graphics/lib/win64/glut;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX64</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> <PostBuildEvent> <Command>XCOPY "../../../../PxShared/bin\vc14win64\PxFoundation_x64.dll" "$(OutDir)" /D /Y&#x0D;&#x0A; XCOPY "../../../../PxShared/bin\vc14win64\PxPvdSDK_x64.dll" "$(OutDir)" /D /Y</Command> </PostBuildEvent> </ItemDefinitionGroup> <ItemGroup> <ClCompile Include="..\..\SnippetCommon\ClassicMain.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\SnippetPrunerSerialization\SnippetPrunerSerialization.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ProjectReference Include="./SnippetUtils.vcxproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> <ItemGroup> <ProjectReference Include="./SnippetRender.vcxproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"></ImportGroup> </Project> ```
/content/code_sandbox/PhysX_3.4/Snippets/compiler/vc14win64/SnippetPrunerSerialization.vcxproj
xml
2016-10-12T16:34:31
2024-08-16T09:40:38
PhysX-3.4
NVIDIAGameWorks/PhysX-3.4
2,343
4,732
```xml /** * @license * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at path_to_url */ /** Cached result of whether the user's browser supports passive event listeners. */ let supportsPassiveEvents: boolean; /** * Checks whether the user's browser supports passive event listeners. * See: path_to_url */ export function supportsPassiveEventListeners(): boolean { if (supportsPassiveEvents == null && typeof window !== 'undefined') { try { window.addEventListener( 'test', null!, Object.defineProperty({}, 'passive', { get: () => (supportsPassiveEvents = true), }), ); } finally { supportsPassiveEvents = supportsPassiveEvents || false; } } return supportsPassiveEvents; } /** * Normalizes an `AddEventListener` object to something that can be passed * to `addEventListener` on any browser, no matter whether it supports the * `options` parameter. * @param options Object to be normalized. */ export function normalizePassiveListenerOptions( options: AddEventListenerOptions, ): AddEventListenerOptions | boolean { return supportsPassiveEventListeners() ? options : !!options.capture; } ```
/content/code_sandbox/src/cdk/platform/features/passive-listeners.ts
xml
2016-01-04T18:50:02
2024-08-16T11:21:13
components
angular/components
24,263
263
```xml import React, { FunctionComponent, useCallback, useState } from "react"; import { graphql, RelayPaginationProp } from "react-relay"; import SiteSearch from "coral-admin/components/SiteSearch"; import { IntersectionProvider } from "coral-framework/lib/intersection"; import { useLoadMore, useRefetch, withPaginationContainer, } from "coral-framework/lib/relay"; import { GQLSTORY_STATUS_RL } from "coral-framework/schema"; import { Flex, HorizontalGutter } from "coral-ui/components/v2"; import { StoryTableContainer_query as QueryData } from "coral-admin/__generated__/StoryTableContainer_query.graphql"; import { StoryTableContainerPaginationQueryVariables } from "coral-admin/__generated__/StoryTableContainerPaginationQuery.graphql"; import StoryTable from "./StoryTable"; import StoryTableFilter from "./StoryTableFilter"; interface Props { initialSearchFilter?: string; query: QueryData | null; relay: RelayPaginationProp; moderateScopeSites: string[] | null; } const StoryTableContainer: FunctionComponent<Props> = ({ initialSearchFilter, query, relay, moderateScopeSites, }) => { const stories = query ? query.stories.edges.map((edge) => edge.node) : []; const viewerIsSingleSiteMod = query?.viewer?.moderationScopes?.sites && query?.viewer?.moderationScopes?.sites.length === 1; const [loadMore, isLoadingMore] = useLoadMore(relay, 10); const [searchFilter, setSearchFilter] = useState<string>( initialSearchFilter || "" ); const [statusFilter, setStatusFilter] = useState<GQLSTORY_STATUS_RL | null>( null ); const [siteFilter, setSiteFilter] = useState<string[] | null>(null); const [, isRefetching] = useRefetch< Pick< StoryTableContainerPaginationQueryVariables, "searchFilter" | "statusFilter" | "siteIDs" > >(relay, 10, { searchFilter: searchFilter || null, statusFilter, siteIDs: siteFilter ? siteFilter : moderateScopeSites ? moderateScopeSites : null, }); const onSelect = useCallback((siteID: string) => { if (siteID) { setSiteFilter([siteID]); } else { setSiteFilter(null); } }, []); return ( <IntersectionProvider> <HorizontalGutter size="double"> <Flex itemGutter="double"> <StoryTableFilter onSetStatusFilter={setStatusFilter} statusFilter={statusFilter} onSetSearchFilter={setSearchFilter} searchFilter={searchFilter} /> {query && query.settings.multisite && !viewerIsSingleSiteMod && ( <SiteSearch onSelect={onSelect} showSiteSearchLabel={true} showOnlyScopedSitesInSearchResults={true} showAllSitesSearchFilterOption={true} clearTextFieldValueAfterSelect={false} /> )} </Flex> <StoryTable loading={!query || isRefetching} stories={stories} onLoadMore={loadMore} multisite={query ? query.settings.multisite : false} hasMore={!isRefetching && relay.hasMore()} disableLoadMore={isLoadingMore} isSearching={Boolean(statusFilter) || Boolean(searchFilter)} /> </HorizontalGutter> </IntersectionProvider> ); }; // TODO: (cvle) In this case they are the same, but they should be autogenerated. type FragmentVariables = StoryTableContainerPaginationQueryVariables; const enhanced = withPaginationContainer< Props, StoryTableContainerPaginationQueryVariables, FragmentVariables >( { query: graphql` fragment StoryTableContainer_query on Query @argumentDefinitions( count: { type: "Int", defaultValue: 10 } cursor: { type: "Cursor" } statusFilter: { type: "STORY_STATUS" } searchFilter: { type: "String" } siteIDs: { type: "[ID!]" } ) { settings { multisite } viewer { moderationScopes { sites { id } } } stories( first: $count after: $cursor status: $statusFilter query: $searchFilter siteIDs: $siteIDs ) @connection(key: "StoryTable_stories") { edges { node { id ...StoryRowContainer_story } } } } `, }, { getConnectionFromProps(props) { return props.query && props.query.stories; }, getVariables(props, { count, cursor }, fragmentVariables) { return { count, cursor, statusFilter: fragmentVariables.statusFilter, searchFilter: fragmentVariables.searchFilter, siteIDs: fragmentVariables.siteIDs, }; }, query: graphql` # Pagination query to be fetched upon calling 'loadMore'. # Notice that we re-use our fragment, and the shape of this query matches our fragment spec. query StoryTableContainerPaginationQuery( $count: Int! $cursor: Cursor $statusFilter: STORY_STATUS $searchFilter: String $siteIDs: [ID!] ) { ...StoryTableContainer_query @arguments( count: $count cursor: $cursor statusFilter: $statusFilter searchFilter: $searchFilter siteIDs: $siteIDs ) } `, } )(StoryTableContainer); export default enhanced; ```
/content/code_sandbox/client/src/core/client/admin/routes/Stories/StoryTableContainer.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
1,229
```xml <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="path_to_url"> <?define WiresharkFileAssociation = "wireshark-capture-file" ?> <?define EulaPath="$(var.AssetDir)\COPYING.rtf"?> <!-- Windows 8 and later supports PNG. Until then we use cave paintings^W^W BMP. --> <?define BannerImagePath="$(var.AssetDir)\banner.bmp"?> <?define DialogImagePath="$(var.AssetDir)\dialog.bmp"?> <Product Id="*" Name="$(var.WiresharkName) $(var.WiresharkVersion)" Language="1033" Version="$(var.WiresharkVersion)" Manufacturer="The Wireshark developer community, path_to_url" UpgradeCode="0d67aace-269a-4264-81a3-da8055c1c79c"> <Package InstallerVersion="405" Compressed="yes" InstallScope="perMachine" /> <!-- Values for Additional Tasks --> <Property Id="WIRESHARK_START_MENU" Value="1" Secure="yes"/> <Property Id="WIRESHARK_DESKTOP_ICON" Secure="yes"/> <Property Id="WIRESHARK_QUICK_LAUNCH_ICON" Value="1" Secure="yes" /> <Property Id="WIRESHARK_LEGACY_START_MENU" Value="1" Secure="yes" /> <Property Id="WIRESHARK_LEGACY_DESKTOP_ICON" Secure="yes"/> <Property Id="WIRESHARK_LEGACY_QUICK_LAUNCH_ICON" Value="1" Secure="yes" /> <Property Id="WIRESHARK_FILE_EXTENSIONS" Value="0"/> <MajorUpgrade DowngradeErrorMessage="A newer version of $(var.WiresharkName) is already installed." /> <MediaTemplate EmbedCab="yes" /> <!-- Include the prerequisites, by referencing the placeholder property --> <PropertyRef Id="IncludePrerequisites" /> <!-- Include the top-most parent feature --> <FeatureRef Id="Fe.Wireshark" /> <!-- Include the installer UI definition --> <UIRef Id="UI.Wireshark"/> </Product> <?include InputPaths.wxi ?> <?include DirectoryStructure.wxi ?> <?include Prerequisites.wxi ?> <?include ComponentGroups.wxi ?> <?include Plugins.wxi ?> <?include Features.wxi ?> <?include UserInterface.wxi ?> </Wix> ```
/content/code_sandbox/utilities/wireshark/packaging/wix/Wireshark.wxs
xml
2016-10-27T09:31:28
2024-08-16T19:00:35
nexmon
seemoo-lab/nexmon
2,381
511
```xml import { describe, expect, it } from "vitest"; import { dateTimeValue, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, percentageValue, positiveUniversalMeasureValue, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, universalMeasureValue, unsignedDecimalNumber, } from "./values"; describe("values", () => { describe("universalMeasureValue", () => { it("should allow valid values", () => { // "-?[0-9]+(\.[0-9]+)?(mm|cm|in|pt|pc|pi)" expect(universalMeasureValue("-9mm")).to.eq("-9mm"); expect(universalMeasureValue("-0.5in")).to.eq("-0.5in"); expect(universalMeasureValue("20.pt")).to.eq("20pt"); expect(universalMeasureValue("5.22pc")).to.eq("5.22pc"); expect(universalMeasureValue("100 pi")).to.eq("100pi"); }); }); describe("positiveUniversalMeasureValue", () => { it("should allow valid values", () => { // "[0-9]+(\.[0-9]+)?(mm|cm|in|pt|pc|pi)" expect(positiveUniversalMeasureValue("9mm")).to.eq("9mm"); expect(positiveUniversalMeasureValue("0.5in")).to.eq("0.5in"); expect(positiveUniversalMeasureValue("20.pt")).to.eq("20pt"); expect(positiveUniversalMeasureValue("5.22pc")).to.eq("5.22pc"); expect(positiveUniversalMeasureValue("100 pi")).to.eq("100pi"); }); it("should throw on invalid values", () => { expect(() => positiveUniversalMeasureValue("-9mm")).to.throw(); expect(() => positiveUniversalMeasureValue("-0.5in")).to.throw(); }); }); describe("longHexNumber", () => { it("should allow valid values", () => { expect(longHexNumber("112233FF")).to.eq("112233FF"); }); it("should throw on invalid values", () => { expect(() => longHexNumber("112233GG")).to.throw(); expect(() => longHexNumber("112233F")).to.throw(); expect(() => longHexNumber("112233FFF")).to.throw(); }); }); describe("shortHexNumber", () => { it("should allow valid values", () => { expect(shortHexNumber("1122")).to.eq("1122"); expect(shortHexNumber("FFFF")).to.eq("FFFF"); }); it("should throw on invalid values", () => { expect(() => shortHexNumber("11")).to.throw(); expect(() => shortHexNumber("112233")).to.throw(); /* cspell:disable-next-line */ expect(() => shortHexNumber("FFFG")).to.throw(); }); }); describe("hexColorValue", () => { it("should allow valid values", () => { expect(hexColorValue("auto")).to.eq("auto"); expect(hexColorValue("FF0000")).to.eq("FF0000"); expect(hexColorValue("aabbcc")).to.eq("aabbcc"); expect(hexColorValue("#BEEFEE")).to.eq("BEEFEE"); expect(hexColorValue("abcdef")).to.eq("abcdef"); }); it("should throw on invalid values", () => { expect(() => hexColorValue("foo")).to.throw(); expect(() => hexColorValue("fff")).to.throw(); expect(() => hexColorValue("a")).to.throw(); expect(() => hexColorValue("abcde")).to.throw(); expect(() => hexColorValue("---")).to.throw(); expect(() => hexColorValue("brown")).to.throw(); }); }); describe("unsignedDecimalNumber", () => { it("should allow valid values", () => { expect(unsignedDecimalNumber(1243)).to.eq(1243); expect(unsignedDecimalNumber(12.43)).to.eq(12); expect(unsignedDecimalNumber(1e10)).to.eq(1e10); }); it("should throw on invalid values", () => { expect(() => unsignedDecimalNumber(NaN)).to.throw(); expect(() => unsignedDecimalNumber(-10)).to.throw(); }); }); describe("signedTwipsMeasureValue", () => { it("should allow valid values", () => { expect(signedTwipsMeasureValue(1243)).to.eq(1243); expect(signedTwipsMeasureValue("-5mm")).to.eq("-5mm"); expect(signedTwipsMeasureValue("10.in")).to.eq("10in"); }); it("should throw on invalid values", () => { expect(() => signedTwipsMeasureValue(NaN)).to.throw(); }); }); describe("twipsMeasureValue", () => { it("should allow valid values", () => { expect(twipsMeasureValue(1243)).to.eq(1243); expect(twipsMeasureValue("5mm")).to.eq("5mm"); expect(twipsMeasureValue("10.in")).to.eq("10in"); }); it("should throw on invalid values", () => { expect(() => twipsMeasureValue(-12)).to.throw(); expect(() => twipsMeasureValue(NaN)).to.throw(); expect(() => twipsMeasureValue("-5mm")).to.throw(); }); }); describe("hpsMeasureValue", () => { it("should allow valid values", () => { expect(hpsMeasureValue(1243)).to.eq(1243); expect(hpsMeasureValue("5mm")).to.eq("5mm"); }); it("should throw on invalid values", () => { expect(() => hpsMeasureValue(NaN)).to.throw(); expect(() => hpsMeasureValue("-5mm")).to.throw(); }); }); describe("signedHpsMeasureValue", () => { it("should allow valid values", () => { expect(signedHpsMeasureValue(1243)).to.eq(1243); expect(signedHpsMeasureValue(-1243)).to.eq(-1243); expect(signedHpsMeasureValue("5mm")).to.eq("5mm"); expect(signedHpsMeasureValue("-5mm")).to.eq("-5mm"); }); it("should throw on invalid values", () => { expect(() => hpsMeasureValue(NaN)).to.throw(); }); }); describe("percentageValue", () => { it("should allow valid values", () => { expect(percentageValue("0%")).to.eq("0%"); expect(percentageValue("-20%")).to.eq("-20%"); expect(percentageValue("100%")).to.eq("100%"); expect(percentageValue("1000%")).to.eq("1000%"); }); }); describe("measurementOrPercentValue", () => { it("should allow valid values", () => { expect(measurementOrPercentValue(1243)).to.eq(1243); expect(measurementOrPercentValue(-1243)).to.eq(-1243); expect(measurementOrPercentValue("10%")).to.eq("10%"); expect(measurementOrPercentValue("5mm")).to.eq("5mm"); }); it("should throw on invalid values", () => { expect(() => measurementOrPercentValue(NaN)).to.throw(); }); }); describe("dateTimeValue", () => { it("should allow valid values", () => { expect(dateTimeValue(new Date())).to.match(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:.\d+)?Z/); }); }); }); ```
/content/code_sandbox/src/util/values.spec.ts
xml
2016-03-26T23:43:56
2024-08-16T13:02:47
docx
dolanmiu/docx
4,139
1,704
```xml <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?tweet_activity_background"> <LinearLayout android:id="@+id/content" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:background="?windowBackground" android:orientation="vertical" android:id="@+id/conversation_area" android:layout_width="match_parent" android:layout_height="0dp" > <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> <View android:id="@+id/line" android:layout_marginTop="16dp" android:layout_marginBottom="18dp" android:alpha=".6" android:layout_width="2dp" android:visibility="gone" android:layout_height="match_parent" android:layout_marginEnd="10dp" /> <LinearLayout android:id="@+id/conversation_tweets" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" /> </LinearLayout> <include layout="@layout/shadowed_divider_section" /> </LinearLayout> <LinearLayout android:background="?windowBackground" android:orientation="vertical" android:paddingTop="12dp" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_marginLeft="18dp" android:layout_marginRight="18dp" android:layout_height="wrap_content" android:orientation="horizontal" android:id="@+id/actionbar_bar" android:gravity="center_vertical" android:background="@android:color/transparent"> <FrameLayout android:layout_width="?android:actionBarSize" android:layout_height="?android:actionBarSize" android:padding="8dp" android:layout_gravity="center_vertical" android:layout_marginLeft="-8dp"> <de.hdodenhof.circleimageview.CircleImageView xmlns:app="path_to_url" app:civ_border_width="0dp" app:civ_border_color="#FFFFFF" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/profile_pic" android:contentDescription="Profile Picture"/> </FrameLayout> <LinearLayout android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:id="@+id/person_info" android:orientation="vertical" android:gravity="center_vertical" android:paddingStart="8dp" > <com.klinker.android.twitter_l.views.widgets.text.FontPrefTextView android:id="@+id/name" android:layout_height="wrap_content" android:layout_width="wrap_content" android:textStyle="bold" android:textColor="?textColor" android:paddingTop="4dp" android:singleLine="true" android:gravity="bottom"/> <com.klinker.android.twitter_l.views.widgets.text.FontPrefTextView android:id="@+id/screen_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="?dateColor" android:singleLine="true" android:gravity="top"/> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:layout_gravity="end|bottom"> <com.klinker.android.twitter_l.views.widgets.text.FontPrefTextView android:id="@+id/time" android:layout_height="wrap_content" android:layout_width="wrap_content" android:textColor="?dateColor" android:gravity="end" android:paddingBottom="14dp"/> </LinearLayout> </LinearLayout> <include android:id="@+id/tweet_background" android:background="?windowBackground" layout="@layout/tweet_for_fragment" android:layout_height="match_parent" android:layout_width="match_parent" /> </LinearLayout> <LinearLayout android:id="@+id/expansion_area" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?windowBackground"/> </LinearLayout> <!-- used for the popups and dimming the foreground --> <View android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/black" android:alpha=".6" android:visibility="gone" android:id="@+id/dim" /> </FrameLayout> ```
/content/code_sandbox/app/src/main/res/layout/tweet_activity_new.xml
xml
2016-07-08T03:18:40
2024-08-14T02:54:51
talon-for-twitter-android
klinker24/talon-for-twitter-android
1,189
1,070
```xml import * as React from 'react'; import { Button, Tooltip } from '@fluentui/react-components'; import { ArrowStepInRegular } from '@fluentui/react-icons'; export const WithArrow = () => ( <Tooltip withArrow content="Example tooltip with an arrow" relationship="label"> <Button icon={<ArrowStepInRegular />} size="large" /> </Tooltip> ); WithArrow.parameters = { docs: { description: { story: 'The `withArrow` prop causes the tooltip to have an arrow pointing to its target.', }, }, }; ```
/content/code_sandbox/packages/react-components/react-tooltip/stories/src/Tooltip/TooltipWithArrow.stories.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
123
```xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <bean id="database0" class="com.dianping.zebra.group.jdbc.GroupDataSource" init-method="init" destroy-method="close"> <property name="jdbcRef" value="defaultStrategy-gds"/> <property name="driverClass" value="org.h2.Driver"/> <property name="configManagerType" value="local"/> <property name="minPoolSize" value="2"/> <property name="maxPoolSize" value="4"/> <property name="initialPoolSize" value="2"/> </bean> <bean id="zebraDS" class="com.dianping.zebra.shard.jdbc.ShardDataSource" init-method="init"> <property name="dataSourcePool"> <map> <entry key="database" value-ref="database0"/> </map> </property> <property name="routerFactory"> <bean class="com.dianping.zebra.shard.router.builder.XmlResourceRouterBuilder"> <constructor-arg value="mockdb-config/testDefaultStrategy/router-multidb-defaultstrategy.xml"/> <constructor-arg value="database"/> </bean> </property> </bean> </beans> ```
/content/code_sandbox/zebra-client/src/test/resources/mockdb-config/testDefaultStrategy/ctx-multidb-defaultstrategy.xml
xml
2016-08-19T07:36:09
2024-08-15T17:36:47
Zebra
Meituan-Dianping/Zebra
2,744
303
```xml <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="es"> <context> <name>AuthorizationDialog</name> <message> <location filename="../ui/authorization_dialog.ui" line="14"/> <source>Authorization</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/authorization_dialog.ui" line="26"/> <source>User Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/authorization_dialog.ui" line="46"/> <source>Password</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/authorization_dialog.ui" line="96"/> <source>One-time password connection</source> <translation type="unfinished"></translation> </message> </context> <context> <name>Client</name> <message> <location filename="../client_main.cc" line="61"/> <source>Incorrect value for &quot;%1&quot;. Possible values: %2.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="415"/> <source>Remote computer address.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="419"/> <source>Remote computer port.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="424"/> <source>Name of host.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="428"/> <source>Name of user.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="432"/> <source>Password of user.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="436"/> <source>Display name when connected</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="440"/> <source>Session type. Possible values: desktop-manage, desktop-view, file-transfer, system-info, text-chat.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="445"/> <source>Type of codec. Possible values: vp8, vp9, zstd.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="449"/> <source>Color depth. Possible values: 3, 6, 8, 16, 32.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="453"/> <source>Compression ratio. Possible values: 1-22.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="457"/> <source>Enable or disable audio. Possible values: 0 or 1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="461"/> <source>Enable or disable cursor shape. Possible values: 0 or 1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="465"/> <source>Enable or disable cursor position. Possible values: 0 or 1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="469"/> <source>Enable or disable clipboard. Possible values: 0 or 1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="473"/> <source>Enable or disable desktop effects. Possible values: 0 or 1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="477"/> <source>Enable or disable desktop wallpaper. Possible values: 0 or 1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="481"/> <source>Enable or disable font smoothing. Possible values: 0 or 1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="485"/> <source>Clear clipboard at disconnect. Possible values: 0 or 1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="489"/> <source>Lock computer at disconnect. Possible values: 0 or 1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="493"/> <source>Block remote input. Possible values: 0 or 1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="497"/> <source>Router address.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="501"/> <source>Router port.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="506"/> <source>Router name of user.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="510"/> <source>Router password of user.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="514"/> <source>Aspia Client</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="60"/> <location filename="../client_main.cc" line="701"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../client_main.cc" line="702"/> <source>A host ID was entered, but the router was not configured. You need to configure your router before connecting.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>ClientSettingsDialog</name> <message> <location filename="../ui/client_settings_dialog.ui" line="14"/> <source>Settings</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.ui" line="24"/> <source>Router</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.ui" line="30"/> <source>Use a router</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.ui" line="39"/> <source>Address:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.ui" line="53"/> <source>User Name:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.ui" line="67"/> <source>Password:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.ui" line="99"/> <source>A router is required to connect to a computer if there is no direct connection (bypass NAT). Aspia does not provide a public router, but you can install your own. You can download the router on the &lt;a href=&quot;path_to_url website&lt;/a&gt;.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.ui" line="116"/> <source>Other</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.ui" line="124"/> <source>Display name when connected:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.ui" line="134"/> <source>Enter a name or leave the field empty</source> <translation type="unfinished"></translation> </message> </context> <context> <name>ClientWindow</name> <message> <location filename="../ui/client_window.ui" line="14"/> <source>Aspia Client</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="48"/> <source>ID / Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="120"/> <source>Session Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="256"/> <source>Connect</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="301"/> <source>View</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="361"/> <source>Show icons in menus</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="366"/> <source>Check for updates...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="371"/> <source>Update Settings</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="376"/> <source>Clear history</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="305"/> <source>Language</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="290"/> <source>Help</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="326"/> <source>Online Help...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="335"/> <source>About</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="344"/> <source>Settings...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.ui" line="353"/> <source>Exit</source> <translation type="unfinished"></translation> </message> </context> <context> <name>DesktopConfigDialog</name> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="20"/> <source>Session Configuration</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="32"/> <source>Codec</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="145"/> <source>Appearance</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="201"/> <source>Block remote input</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="43"/> <source>Color depth:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="64"/> <source>Fast</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="84"/> <source>Best</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="102"/> <source>Features</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="108"/> <source>Enable audio</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="115"/> <source>Enable clipboard</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="122"/> <source>Show shape of remote cursor</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="129"/> <source>Show position of remote cursor</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="151"/> <source>Disable desktop effects</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="158"/> <source>Disable desktop wallpaper</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="165"/> <source>Disable font smoothing</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="181"/> <source>Other</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="187"/> <source>Clear clipboard at disconnect</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.ui" line="194"/> <source>Lock computer at disconnect</source> <translation type="unfinished"></translation> </message> </context> <context> <name>DesktopToolBar</name> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="126"/> <source>Lock toolbar</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="138"/> <source>Session configuration</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="150"/> <source>Automatic window size</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="165"/> <source>Switch to full screen mode or back</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="176"/> <source>Automatic scrolling</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="188"/> <source>Send Ctrl+Alt+Delete</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="200"/> <source>Advanced menu</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="205"/> <location filename="../ui/desktop/desktop_toolbar.ui" line="208"/> <location filename="../ui/desktop/desktop_toolbar.ui" line="211"/> <source>Save screenshot...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="223"/> <source>File transfer</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="231"/> <source>Scale</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="242"/> <source>Send key combinations</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="251"/> <location filename="../ui/desktop/desktop_toolbar.ui" line="254"/> <source>Power control</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="262"/> <source>Shutdown</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="267"/> <source>Reboot</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="272"/> <source>Logoff</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="277"/> <source>Lock</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="286"/> <source>Remote Update</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="298"/> <source>System Information</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="310"/> <source>Close</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="313"/> <source>Close session</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="372"/> <source>Fit window</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="381"/> <source>Minimize</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="384"/> <source>Minimize window</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="389"/> <location filename="../ui/desktop/desktop_toolbar.ui" line="392"/> <source>Statistics</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="397"/> <source>Reboot (Safe mode)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="400"/> <source>Reboot in safe mode</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="405"/> <source>Paste clipboard as keystrokes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="414"/> <location filename="../ui/desktop/desktop_toolbar.ui" line="417"/> <source>Text Chat</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="425"/> <source>Recording settings...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="434"/> <location filename="../ui/desktop/desktop_toolbar.ui" line="437"/> <source>Start recording</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="446"/> <location filename="../ui/desktop/desktop_toolbar.ui" line="449"/> <source>Task Manager</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="463"/> <source>Pause video when minimizing</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.ui" line="474"/> <source>Pause audio when minimizing</source> <translation type="unfinished"></translation> </message> </context> <context> <name>FileError</name> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="33"/> <source>Successfully completed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="37"/> <source>Invalid request</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="41"/> <source>Invalid directory or file name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="45"/> <source>Path not found</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="49"/> <source>Path already exists</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="53"/> <source>No drives found</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="57"/> <source>Disk full</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="61"/> <source>Access denied</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="65"/> <source>Could not open file for reading</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="69"/> <source>Could not create or replace file</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="73"/> <source>Could not write to file</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="77"/> <source>Could not read file</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="81"/> <source>Drive not ready</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="85"/> <source>No logged in user</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_error_code.cc" line="89"/> <source>Unknown error code</source> <translation type="unfinished"></translation> </message> </context> <context> <name>FileNameEditor</name> <message> <location filename="../ui/file_transfer/file_item_delegate.cc" line="56"/> <source>The name can not contain characters %1.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>FilePanel</name> <message> <location filename="../ui/file_transfer/file_panel.ui" line="165"/> <source>Up</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.ui" line="168"/> <source>Browse to parent folder (Backspace)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.ui" line="177"/> <source>Refresh</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.ui" line="180"/> <source>Refresh (F5)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.ui" line="192"/> <source>New Folder</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.ui" line="195"/> <source>Create a new folder</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.ui" line="207"/> <source>Delete</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.ui" line="210"/> <source>Delete selected object(s) (Delete)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.ui" line="222"/> <source>Send</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.ui" line="225"/> <source>Send selected object(s) (F11)</source> <translation type="unfinished"></translation> </message> </context> <context> <name>FileRemoveDialog</name> <message> <location filename="../ui/file_transfer/file_remove_dialog.ui" line="14"/> <source>Deleting Items</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_remove_dialog.ui" line="20"/> <source>Creating a list of files to delete...</source> <translation type="unfinished"></translation> </message> </context> <context> <name>FileTransferDialog</name> <message> <location filename="../ui/file_transfer/file_transfer_dialog.ui" line="14"/> <source>File Transfer</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.ui" line="26"/> <source>Current Task: Creating a list of files to copy...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.ui" line="33"/> <source>From: ...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.ui" line="40"/> <source>To: ...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.ui" line="47"/> <source>Speed: ...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.ui" line="57"/> <source>Progress</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.ui" line="65"/> <source>Total:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.ui" line="72"/> <source>Item:</source> <translation type="unfinished"></translation> </message> </context> <context> <name>ProcessItem</name> <message> <location filename="../ui/desktop/task_manager_window.cc" line="88"/> <source>System Idle Process</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="90"/> <source>Unknown Process</source> <translation type="unfinished"></translation> </message> </context> <context> <name>RecordSettingsDialog</name> <message> <location filename="../ui/desktop/record_settings_dialog.ui" line="14"/> <source>Recording Settings</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/record_settings_dialog.ui" line="26"/> <source>Automatically start recording sessions on connection</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/record_settings_dialog.ui" line="33"/> <source>Write path:</source> <translation type="unfinished"></translation> </message> </context> <context> <name>RouterManagerWindow</name> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="20"/> <source>Router Management</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="41"/> <source>Hosts</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="49"/> <location filename="../ui/router_manager/router_manager_window.ui" line="168"/> <source>Connections count:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="82"/> <location filename="../ui/router_manager/router_manager_window.ui" line="200"/> <source>Connect Time</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="77"/> <source>IP Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="92"/> <location filename="../ui/router_manager/router_manager_window.ui" line="210"/> <source>Version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="72"/> <location filename="../ui/router_manager/router_manager_window.ui" line="215"/> <source>Computer Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="102"/> <location filename="../ui/router_manager/router_manager_window.ui" line="225"/> <source>Operating System</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="132"/> <source>Disconnect</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="87"/> <source>ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="125"/> <location filename="../ui/router_manager/router_manager_window.ui" line="311"/> <source>Save to file...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="139"/> <source>Disconnect All</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="146"/> <location filename="../ui/router_manager/router_manager_window.ui" line="318"/> <location filename="../ui/router_manager/router_manager_window.ui" line="388"/> <source>Refresh</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="160"/> <source>Relay</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="195"/> <source>Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="205"/> <source>Pool Size</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="264"/> <source>Host Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="259"/> <source>Host ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="97"/> <location filename="../ui/router_manager/router_manager_window.ui" line="220"/> <source>Architecture</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="269"/> <source>Client Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="274"/> <source>Transferred</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="279"/> <source>Duration</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="284"/> <source>Idle</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="332"/> <source>Users</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="340"/> <source>Add</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="357"/> <source>Modify</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="374"/> <source>Delete</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.ui" line="254"/> <location filename="../ui/router_manager/router_manager_window.ui" line="421"/> <source>User Name</source> <translation type="unfinished"></translation> </message> </context> <context> <name>RouterUserDialog</name> <message> <location filename="../ui/router_manager/router_user_dialog.ui" line="14"/> <source>User Properties</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.ui" line="27"/> <source>Name:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.ui" line="34"/> <source>Password:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.ui" line="41"/> <source>Password (retry):</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.ui" line="73"/> <source>Disable User Account</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.ui" line="80"/> <source>Allowed Session Types:</source> <translation type="unfinished"></translation> </message> </context> <context> <name>ServiceItem</name> <message> <location filename="../ui/desktop/task_manager_window.cc" line="198"/> <source>Continue Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="201"/> <source>Pause Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="204"/> <source>Paused</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="207"/> <source>Running</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="210"/> <source>Start Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="213"/> <source>Stop Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="216"/> <source>Stopped</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="219"/> <location filename="../ui/desktop/task_manager_window.cc" line="244"/> <source>Unknown</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="229"/> <source>Auto Start</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="232"/> <source>Demand Start</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="235"/> <source>Disabled</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="238"/> <source>Boot Start</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="241"/> <source>System Start</source> <translation type="unfinished"></translation> </message> </context> <context> <name>StatisticsDialog</name> <message> <location filename="../ui/desktop/statistics_dialog.ui" line="14"/> <source>Statistics</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/statistics_dialog.ui" line="36"/> <source>Parameter</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/statistics_dialog.ui" line="41"/> <source>Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoApplications</name> <message> <location filename="../ui/sys_info/sys_info_widget_applications.ui" line="54"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_applications.ui" line="59"/> <source>Version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_applications.ui" line="64"/> <source>Publisher</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_applications.ui" line="69"/> <source>Install Date</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_applications.ui" line="74"/> <source>Install Location</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_applications.ui" line="82"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_applications.ui" line="87"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_applications.ui" line="92"/> <source>Search in Google</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoConnections</name> <message> <location filename="../ui/sys_info/sys_info_widget_connections.ui" line="54"/> <source>Process Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_connections.ui" line="59"/> <source>Protocol</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_connections.ui" line="64"/> <source>Local Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_connections.ui" line="69"/> <source>Local Port</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_connections.ui" line="74"/> <source>Remote Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_connections.ui" line="79"/> <source>Remote Port</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_connections.ui" line="84"/> <source>State</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_connections.ui" line="92"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_connections.ui" line="97"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoDevices</name> <message> <location filename="../ui/sys_info/sys_info_widget_devices.ui" line="54"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_devices.ui" line="59"/> <source>Driver Version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_devices.ui" line="64"/> <source>Driver Date</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_devices.ui" line="69"/> <source>Driver Vendor</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_devices.ui" line="74"/> <source>Device ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_devices.ui" line="82"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_devices.ui" line="87"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_devices.ui" line="92"/> <source>Search in Google</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoDrivers</name> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.ui" line="54"/> <source>Display Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.ui" line="59"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.ui" line="64"/> <source>Description</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.ui" line="69"/> <source>Status</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.ui" line="74"/> <source>Startup Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.ui" line="79"/> <source>Executable File</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.ui" line="87"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.ui" line="92"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoEnvVars</name> <message> <location filename="../ui/sys_info/sys_info_widget_env_vars.ui" line="51"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_env_vars.ui" line="56"/> <source>Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_env_vars.ui" line="64"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_env_vars.ui" line="69"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_env_vars.ui" line="74"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoEventLogs</name> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="130"/> <source>Level</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="125"/> <source>Time</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="53"/> <source>Previous</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="60"/> <source>Next</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="83"/> <source>Events type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="135"/> <source>Category</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="140"/> <source>Event ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="145"/> <source>Source</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="150"/> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="177"/> <source>Description</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="195"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.ui" line="200"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.ui" line="45"/> <source>Parameter</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.ui" line="50"/> <source>Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.ui" line="58"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.ui" line="63"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.ui" line="68"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoLocalUserGroups</name> <message> <location filename="../ui/sys_info/sys_info_widget_local_user_groups.ui" line="48"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_user_groups.ui" line="53"/> <source>Description</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_user_groups.ui" line="61"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_user_groups.ui" line="66"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_user_groups.ui" line="71"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoLocalUsers</name> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.ui" line="45"/> <source>Parameter</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.ui" line="50"/> <source>Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.ui" line="58"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.ui" line="63"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.ui" line="68"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoMonitors</name> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.ui" line="45"/> <source>Parameter</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.ui" line="50"/> <source>Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.ui" line="58"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.ui" line="63"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.ui" line="68"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoNetAdapters</name> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.ui" line="45"/> <source>Parameter</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.ui" line="50"/> <source>Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.ui" line="58"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.ui" line="63"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.ui" line="68"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoNetShares</name> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.ui" line="45"/> <source>Parameter</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.ui" line="50"/> <source>Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.ui" line="58"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.ui" line="63"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.ui" line="68"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoOpenFiles</name> <message> <location filename="../ui/sys_info/sys_info_widget_open_files.ui" line="59"/> <source>User Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_open_files.ui" line="64"/> <source>Lock Count</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_open_files.ui" line="54"/> <source>File Path</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_open_files.ui" line="72"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_open_files.ui" line="77"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoPowerOptions</name> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.ui" line="48"/> <source>Parameter</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.ui" line="53"/> <source>Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.ui" line="61"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.ui" line="66"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.ui" line="71"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoPrinters</name> <message> <location filename="../ui/sys_info/sys_info_widget_printers.ui" line="45"/> <source>Parameter</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.ui" line="50"/> <source>Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.ui" line="58"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.ui" line="63"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.ui" line="68"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoProcesses</name> <message> <location filename="../ui/sys_info/sys_info_widget_processes.ui" line="51"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_processes.ui" line="56"/> <source>ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_processes.ui" line="61"/> <source>CPU</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_processes.ui" line="66"/> <source>Memory</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_processes.ui" line="71"/> <source>Session ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_processes.ui" line="76"/> <source>User Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_processes.ui" line="81"/> <source>Path</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_processes.ui" line="89"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_processes.ui" line="94"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_processes.ui" line="99"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoRoutes</name> <message> <location filename="../ui/sys_info/sys_info_widget_routes.ui" line="54"/> <source>Destonation</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_routes.ui" line="59"/> <source>Mask</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_routes.ui" line="64"/> <source>Gateway</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_routes.ui" line="69"/> <source>Metric</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_routes.ui" line="77"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_routes.ui" line="82"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoServices</name> <message> <location filename="../ui/sys_info/sys_info_widget_services.ui" line="54"/> <source>Display Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.ui" line="59"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.ui" line="64"/> <source>Description</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.ui" line="69"/> <source>Status</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.ui" line="74"/> <source>Startup Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.ui" line="79"/> <source>Account</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.ui" line="84"/> <source>Executable File</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.ui" line="92"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.ui" line="97"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoSummary</name> <message> <location filename="../ui/sys_info/sys_info_widget_summary.ui" line="45"/> <source>Parameter</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.ui" line="50"/> <source>Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.ui" line="58"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.ui" line="63"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.ui" line="68"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SysInfoVideoAdapters</name> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.ui" line="45"/> <source>Parameter</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.ui" line="50"/> <source>Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.ui" line="58"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.ui" line="63"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.ui" line="68"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SystemInfoWindow</name> <message> <location filename="../ui/sys_info/qt_system_info_window.ui" line="14"/> <source>System Information</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.ui" line="108"/> <source>Save</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.ui" line="111"/> <source>Save (Ctrl+S)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.ui" line="123"/> <source>Print</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.ui" line="126"/> <source>Print (Ctrl+P)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.ui" line="134"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.ui" line="139"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.ui" line="144"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.ui" line="153"/> <source>Refresh</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.ui" line="156"/> <source>Refresh (F5)</source> <translation type="unfinished"></translation> </message> </context> <context> <name>TaskManagerWindow</name> <message> <location filename="../ui/desktop/task_manager_window.ui" line="37"/> <source>Processes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="65"/> <location filename="../ui/desktop/task_manager_window.ui" line="188"/> <location filename="../ui/desktop/task_manager_window.ui" line="237"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="80"/> <source>User Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="85"/> <source>CPU</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="70"/> <source>Process ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="14"/> <source>Task Manager</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="75"/> <source>Session ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="90"/> <source>Memory (private working set)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="98"/> <source>Memory (working set)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="106"/> <source>Memory (peak working set)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="114"/> <source>Memory (working set delta)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="122"/> <source>Threads</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="127"/> <source>Image Path</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="153"/> <location filename="../ui/desktop/task_manager_window.ui" line="308"/> <source>End Task</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="163"/> <source>Services</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="198"/> <source>Startup type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="203"/> <source>Description</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="293"/> <location filename="../ui/desktop/task_manager_window.ui" line="328"/> <source>Logoff</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="313"/> <source>Start</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="318"/> <source>Stop</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="365"/> <source>Disabled</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="193"/> <location filename="../ui/desktop/task_manager_window.ui" line="247"/> <source>Status</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="336"/> <source>High</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="344"/> <source>Medium</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="352"/> <source>Low</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="357"/> <source>Update</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="212"/> <source>Users</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="242"/> <source>ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="252"/> <source>Client name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="257"/> <source>Session name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.ui" line="283"/> <location filename="../ui/desktop/task_manager_window.ui" line="323"/> <source>Disconnect</source> <translation type="unfinished"></translation> </message> </context> <context> <name>TextChatWindow</name> <message> <location filename="../ui/text_chat/qt_text_chat_window.ui" line="14"/> <source>System Information</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/text_chat/qt_text_chat_window.ui" line="42"/> <source>Save</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/text_chat/qt_text_chat_window.ui" line="45"/> <source>Save (Ctrl+S)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/text_chat/qt_text_chat_window.ui" line="57"/> <source>Print</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/text_chat/qt_text_chat_window.ui" line="60"/> <source>Print (Ctrl+P)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/text_chat/qt_text_chat_window.ui" line="68"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/text_chat/qt_text_chat_window.ui" line="73"/> <source>Copy Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/text_chat/qt_text_chat_window.ui" line="78"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/text_chat/qt_text_chat_window.ui" line="87"/> <source>Refresh</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/text_chat/qt_text_chat_window.ui" line="90"/> <source>Refresh (F5)</source> <translation type="unfinished"></translation> </message> </context> <context> <name>UpdateSettingsDialog</name> <message> <location filename="../ui/update_settings_dialog.ui" line="14"/> <source>Update Settings</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/update_settings_dialog.ui" line="26"/> <source>Check for updates on startup</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/update_settings_dialog.ui" line="33"/> <source>Use custom update server</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/update_settings_dialog.ui" line="42"/> <source>Server:</source> <translation type="unfinished"></translation> </message> </context> <context> <name>UserItem</name> <message> <location filename="../ui/desktop/task_manager_window.cc" line="272"/> <source>&lt;no user&gt;</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="307"/> <source>Active</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="310"/> <source>Connected</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="313"/> <source>Connect Query</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="316"/> <source>Shadow</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="319"/> <source>Disconnected</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="322"/> <source>Idle</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="325"/> <source>Listen</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="328"/> <source>Reset</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="331"/> <source>Down</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="334"/> <source>Init</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="337"/> <source>Unknown</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::AddressBar</name> <message> <location filename="../ui/file_transfer/address_bar.cc" line="56"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar.cc" line="57"/> <source>An incorrect path to the folder was entered.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::AddressBarModel</name> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="81"/> <location filename="../ui/file_transfer/address_bar_model.cc" line="449"/> <source>Home Folder</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="85"/> <source>Desktop</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="288"/> <source>Computer</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="397"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="400"/> <source>Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="434"/> <source>Optical Drive</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="437"/> <source>Removable Drive</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="440"/> <source>Fixed Drive</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="443"/> <source>Network Drive</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="446"/> <source>RAM Drive</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="452"/> <source>Desktop Folder</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="455"/> <source>Root Directory</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="458"/> <source>Unknown Drive</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="476"/> <source>TB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="481"/> <source>GB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="486"/> <source>MB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="491"/> <source>kB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/address_bar_model.cc" line="496"/> <source>B</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::AuthorizationDialog</name> <message> <location filename="../ui/authorization_dialog.cc" line="38"/> <source>Cancel</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/authorization_dialog.cc" line="170"/> <location filename="../ui/authorization_dialog.cc" line="181"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/authorization_dialog.cc" line="171"/> <source>Username cannot be empty.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/authorization_dialog.cc" line="182"/> <source>Password cannot be empty.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::ClientSettingsDialog</name> <message> <location filename="../ui/client_settings_dialog.cc" line="42"/> <source>Cancel</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.cc" line="131"/> <source>An invalid router address was entered.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.cc" line="150"/> <source>The user name can not be empty and can contain only alphabet characters, numbers and _, -, . characters.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.cc" line="167"/> <source>Password cannot be empty.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_settings_dialog.cc" line="196"/> <source>Warning</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::ClientWindow</name> <message> <location filename="../ui/client_window.cc" line="92"/> <source>Confirmation</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.cc" line="93"/> <source>Are you sure you want to clear your connection history?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.cc" line="96"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.cc" line="97"/> <source>No</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.cc" line="228"/> <source>Aspia Client</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.cc" line="328"/> <location filename="../ui/client_window.cc" line="346"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.cc" line="329"/> <source>An invalid computer address was entered.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/client_window.cc" line="347"/> <source>A host ID was entered, but the router was not configured. You need to configure your router before connecting.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::DesktopConfigDialog</name> <message> <location filename="../ui/desktop/desktop_config_dialog.cc" line="100"/> <source>Cancel</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.cc" line="123"/> <source>True color (32 bit)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.cc" line="124"/> <source>High color (16 bit)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.cc" line="125"/> <source>256 colors (8 bit)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.cc" line="126"/> <source>64 colors (6 bit)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.cc" line="127"/> <source>8 colors (3 bit)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_config_dialog.cc" line="304"/> <source>Compression ratio: %1</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::DesktopToolBar</name> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="372"/> <source>Resolution selection</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="434"/> <source>Stop recording</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="439"/> <source>Start recording</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="573"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="594"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="625"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="656"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="677"/> <source>Confirmation</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="574"/> <source>Are you sure you want to shutdown the remote computer?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="577"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="598"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="629"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="660"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="681"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="578"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="599"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="630"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="661"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="682"/> <source>No</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="595"/> <source>Are you sure you want to reboot the remote computer?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="604"/> <location filename="../ui/desktop/desktop_toolbar.cc" line="635"/> <source>Wait for host</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="626"/> <source>Are you sure you want to reboot the remote computer in Safe Mode?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="657"/> <source>Are you sure you want to end the user session on the remote computer?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="678"/> <source>Are you sure you want to lock the user session on the remote computer?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_toolbar.cc" line="784"/> <source>Scale</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::DesktopWidget</name> <message> <location filename="../ui/desktop/desktop_widget.cc" line="540"/> <source>The session was paused by a remote user</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_widget.cc" line="544"/> <source>The session is temporarily unavailable</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_widget.cc" line="548"/> <source>The session is permanently unavailable</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/desktop_widget.cc" line="552"/> <source>Error while receiving video stream: %1</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::FileListModel</name> <message> <location filename="../ui/file_transfer/file_list_model.cc" line="105"/> <source>Folder</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_list_model.cc" line="382"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_list_model.cc" line="385"/> <source>Size</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_list_model.cc" line="388"/> <source>Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_list_model.cc" line="391"/> <source>Modified</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_list_model.cc" line="558"/> <source>TB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_list_model.cc" line="563"/> <source>GB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_list_model.cc" line="568"/> <source>MB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_list_model.cc" line="573"/> <source>kB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_list_model.cc" line="578"/> <source>B</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::FilePanel</name> <message> <location filename="../ui/file_transfer/file_panel.cc" line="468"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="103"/> <source>Failed to get list of drives: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="119"/> <source>Failed to get list of files: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="144"/> <source>Failed to create directory: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="156"/> <source>Failed to rename item: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="283"/> <source>%1 object(s) selected</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="303"/> <location filename="../ui/file_transfer/file_panel.cc" line="322"/> <source>Folder name can not be empty.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="309"/> <location filename="../ui/file_transfer/file_panel.cc" line="328"/> <source>Name contains invalid characters.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="349"/> <source>&amp;Send F11</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="350"/> <source>&amp;Delete Delete</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="360"/> <source>&amp;Create Folder</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="426"/> <source>Confirmation</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="427"/> <source>Are you sure you want to delete the selected items?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="430"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_panel.cc" line="431"/> <source>No</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::FileRemoveDialog</name> <message> <location filename="../ui/file_transfer/file_remove_dialog.cc" line="55"/> <source>Cancel</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_remove_dialog.cc" line="110"/> <source>Deleting: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_remove_dialog.cc" line="141"/> <source>An error occurred while retrieving the list of files: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_remove_dialog.cc" line="146"/> <source>Failed to delete &quot;%1&quot;: %2.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_remove_dialog.cc" line="152"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_remove_dialog.cc" line="160"/> <source>Skip</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_remove_dialog.cc" line="163"/> <source>Skip All</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_remove_dialog.cc" line="166"/> <source>Abort</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::FileTransferDialog</name> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="54"/> <source>Cancel</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="118"/> <source>Current Task: Copying items.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="132"/> <source>From: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="137"/> <source>To: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="177"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="189"/> <source>Skip</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="192"/> <source>Skip All</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="195"/> <source>Replace</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="198"/> <source>Replace All</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="201"/> <source>Abort</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="349"/> <source>TB/s</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="354"/> <source>GB/s</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="359"/> <source>MB/s</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="364"/> <source>kB/s</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="369"/> <source>B/s</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="162"/> <source>Speed: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="279"/> <source>Current Task: Cancel transfer of files.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="294"/> <source>An error occurred while building the file queue for copying</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="299"/> <source>Failed to create directory &quot;%1&quot;: %2</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="306"/> <source>Failed to create file &quot;%1&quot;: %2</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="312"/> <source>Failed to open file &quot;%1&quot;: %2</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="318"/> <source>Failed to write file &quot;%1&quot;: %2</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="324"/> <source>Failed to read file &quot;%1&quot;: %2</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/file_transfer_dialog.cc" line="330"/> <source>Unknown error type while copying files</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::QtDesktopWindow</name> <message> <location filename="../ui/desktop/qt_desktop_window.cc" line="332"/> <location filename="../ui/desktop/qt_desktop_window.cc" line="341"/> <location filename="../ui/desktop/qt_desktop_window.cc" line="1109"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/qt_desktop_window.cc" line="333"/> <source>There are no supported video encodings.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/qt_desktop_window.cc" line="342"/> <source>The current video encoding is not supported by the host. Please specify a different video encoding.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/qt_desktop_window.cc" line="1076"/> <source>Save File</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/qt_desktop_window.cc" line="1078"/> <source>PNG Image (*.png);;BMP Image (*.bmp)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/qt_desktop_window.cc" line="1109"/> <source>Could not save image</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::QtFileManagerWindow</name> <message> <location filename="../ui/file_transfer/qt_file_manager_window.cc" line="55"/> <source>Local Computer</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/qt_file_manager_window.cc" line="56"/> <source>Remote Computer</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/qt_file_manager_window.cc" line="99"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/file_transfer/qt_file_manager_window.cc" line="100"/> <source>Session error: %1</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::QtSystemInfoWindow</name> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="145"/> <source>Summary</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="153"/> <source>Hardware</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="158"/> <source>Devices</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="164"/> <source>Video Adapters</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="170"/> <source>Monitors</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="176"/> <source>Printers</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="182"/> <source>Power Options</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="196"/> <source>Software</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="201"/> <source>Applications</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="207"/> <source>Drivers</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="213"/> <source>Services</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="219"/> <source>Processes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="282"/> <source>Operating System</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="287"/> <source>Environment Variables</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="293"/> <source>Event Logs</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="225"/> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="239"/> <source>Network</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="244"/> <source>Network Adapters</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="250"/> <source>Routes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="256"/> <source>Connections</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="262"/> <source>Network Shares</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="268"/> <source>Open Files</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="299"/> <source>Users</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="305"/> <source>User Groups</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="332"/> <source>HTML File</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="334"/> <source>HTML File (*.html)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="345"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/qt_system_info_window.cc" line="346"/> <source>Failed to save file: %1</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::RecordSettingsDialog</name> <message> <location filename="../ui/desktop/record_settings_dialog.cc" line="38"/> <source>Cancel</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/record_settings_dialog.cc" line="52"/> <source>Choose path</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::RouterManagerWindow</name> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="474"/> <source>Connecting to %1:%2...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="575"/> <source>Timeout waiting for reconnection.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="486"/> <source>Connected to: %1:%2 (version %3)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="513"/> <source>Violation of the communication protocol.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="517"/> <source>Cryptography error (message encryption or decryption failed).</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="521"/> <source>An error occurred with the network (e.g., the network cable was accidentally plugged out).</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="525"/> <source>Connection was refused by the peer (or timed out).</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="529"/> <source>Remote host closed the connection.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="533"/> <source>Host address was not found.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="537"/> <source>Socket operation timed out.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="541"/> <source>Address specified is already in use and was set to be exclusive.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="545"/> <source>Address specified does not belong to the host.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="555"/> <location filename="../ui/router_manager/router_manager_window.cc" line="622"/> <source>An unknown error occurred.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="560"/> <location filename="../ui/router_manager/router_manager_window.cc" line="586"/> <location filename="../ui/router_manager/router_manager_window.cc" line="626"/> <source>Error: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="568"/> <source>Router is unavailable. Waiting for reconnection...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="597"/> <source>Authentication successfully completed.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="601"/> <source>Network authentication error.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="605"/> <source>Violation of the data exchange protocol.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="609"/> <source>Version of the application you are connecting to is less than the minimum supported version.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="614"/> <source>An error occured while authenticating: wrong user name or password.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="618"/> <source>Specified session type is not allowed for the user.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="748"/> <source>Invalid request.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="752"/> <location filename="../ui/router_manager/router_manager_window.cc" line="793"/> <source>Unknown internal error.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="756"/> <source>Invalid session ID was passed.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="828"/> <location filename="../ui/router_manager/router_manager_window.cc" line="887"/> <location filename="../ui/router_manager/router_manager_window.cc" line="940"/> <source>Disconnect</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="832"/> <location filename="../ui/router_manager/router_manager_window.cc" line="889"/> <location filename="../ui/router_manager/router_manager_window.cc" line="942"/> <source>Disconnect All</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="833"/> <location filename="../ui/router_manager/router_manager_window.cc" line="890"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1019"/> <source>Refresh</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="837"/> <location filename="../ui/router_manager/router_manager_window.cc" line="892"/> <location filename="../ui/router_manager/router_manager_window.cc" line="944"/> <source>Copy Row</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="838"/> <location filename="../ui/router_manager/router_manager_window.cc" line="893"/> <location filename="../ui/router_manager/router_manager_window.cc" line="945"/> <source>Copy Value</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="842"/> <location filename="../ui/router_manager/router_manager_window.cc" line="895"/> <source>Save to file...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="999"/> <source>Modify</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1002"/> <source>Delete</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1016"/> <source>Add</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1248"/> <source>Are you sure you want to disconnect all relays?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1521"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1601"/> <source>Save File</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1523"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1603"/> <source>JSON files (*.json)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1537"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1617"/> <source>Could not open file for writing.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1588"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1687"/> <source>Unable to write file.</source> <translation type="unfinished"></translation> </message> <message numerus="yes"> <location filename="../ui/router_manager/router_manager_window.cc" line="1766"/> <source>%n seconds</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message numerus="yes"> <location filename="../ui/router_manager/router_manager_window.cc" line="1767"/> <source>%n minutes</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message numerus="yes"> <location filename="../ui/router_manager/router_manager_window.cc" line="1768"/> <source>%n hours</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message numerus="yes"> <location filename="../ui/router_manager/router_manager_window.cc" line="1792"/> <source>%n days</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1815"/> <source>TB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1820"/> <source>GB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1825"/> <source>MB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1830"/> <source>kB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1835"/> <source>B</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1216"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1287"/> <source>Are you sure you want to disconnect session &quot;%1&quot;?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="327"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1142"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1182"/> <source>Active peers: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="483"/> <source>Connected to %1:%2.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="583"/> <source>The Router version is newer than the Client version (%1 &gt; %2). Please update the application.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="760"/> <location filename="../ui/router_manager/router_manager_window.cc" line="805"/> <source>Unknown error type.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="764"/> <location filename="../ui/router_manager/router_manager_window.cc" line="809"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1451"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1536"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1587"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1616"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1686"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="797"/> <source>Invalid data was passed.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="801"/> <source>A user with the specified name already exists.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1215"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1247"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1286"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1325"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1456"/> <source>Confirmation</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1220"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1251"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1291"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1329"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1461"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1221"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1252"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1292"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1330"/> <location filename="../ui/router_manager/router_manager_window.cc" line="1462"/> <source>No</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1326"/> <source>Are you sure you want to disconnect all hosts?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1451"/> <source>You cannot delete a built-in user.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_manager_window.cc" line="1457"/> <source>Are you sure you want to delete user &quot;%1&quot;?</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::RouterUserDialog</name> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="44"/> <source>Cancel</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="144"/> <location filename="../ui/router_manager/router_user_dialog.cc" line="160"/> <location filename="../ui/router_manager/router_user_dialog.cc" line="174"/> <location filename="../ui/router_manager/router_user_dialog.cc" line="189"/> <location filename="../ui/router_manager/router_user_dialog.cc" line="212"/> <location filename="../ui/router_manager/router_user_dialog.cc" line="241"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="145"/> <source>The user name can not be empty and can contain only alphabet characters, numbers and _, -, ., @ characters.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="161"/> <source>The username you entered already exists.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="175"/> <source>The passwords you entered do not match.</source> <translation type="unfinished"></translation> </message> <message numerus="yes"> <location filename="../ui/router_manager/router_user_dialog.cc" line="190"/> <source>Password can not be empty and should not exceed %n characters.</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="202"/> <source>Password you entered does not meet the security requirements!</source> <translation type="unfinished"></translation> </message> <message numerus="yes"> <location filename="../ui/router_manager/router_user_dialog.cc" line="205"/> <source>The password must contain lowercase and uppercase characters, numbers and should not be shorter than %n characters.</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="209"/> <source>Do you want to enter a different password?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="216"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="217"/> <source>No</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="242"/> <source>Unknown internal error when creating or modifying a user.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="292"/> <source>Double-click to change</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="317"/> <source>Administrator</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/router_manager/router_user_dialog.cc" line="321"/> <source>Client</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SelectScreenAction</name> <message> <location filename="../ui/desktop/select_screen_action.h" line="37"/> <source>Full Desktop</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/select_screen_action.h" line="50"/> <source>Monitor %1 (primary)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/select_screen_action.h" line="52"/> <source>Monitor %1</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SessionWindow</name> <message> <location filename="../ui/session_window.cc" line="134"/> <source>Session started.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="153"/> <source>Connecting to router %1:%2...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="158"/> <source>Connecting to router...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="171"/> <source>Connection to router %1:%2 established.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="176"/> <source>Connection to router established.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="189"/> <source>Connecting to host %1...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="194"/> <source>Connecting to host %1:%2...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="211"/> <source>Connection to host %1 established.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="216"/> <source>Connection to host %1:%2 established.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="236"/> <source>Router is unavailable yet. Waiting to reconnect...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="243"/> <source>Timeout waiting for reconnection to router.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="250"/> <source>Host is unavailable yet. Waiting to reconnect...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="257"/> <source>Timeout waiting for reconnection to host.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="267"/> <source>The Host version is newer than the Client version (%1 &gt; %2). Please update the application.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="288"/> <source>Network error when connecting to the router: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="295"/> <source>Authentication error when connecting to the router: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="320"/> <source>Desktop Manage</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="324"/> <source>Desktop View</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="328"/> <source>File Transfer</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="332"/> <source>System Information</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="336"/> <source>Text Chat</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="374"/> <source>Violation of the communication protocol.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="378"/> <source>Cryptography error (message encryption or decryption failed).</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="382"/> <source>An error occurred with the network (e.g., the network cable was accidentally plugged out).</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="386"/> <source>Connection was refused by the peer (or timed out).</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="390"/> <source>Remote host closed the connection.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="394"/> <source>Host address was not found.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="398"/> <source>Socket operation timed out.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="402"/> <source>Address specified is already in use and was set to be exclusive.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="406"/> <source>Address specified does not belong to the host.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="416"/> <location filename="../ui/session_window.cc" line="458"/> <source>An unknown error occurred.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="433"/> <source>Authentication successfully completed.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="437"/> <source>Network authentication error.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="441"/> <source>Violation of the data exchange protocol.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="445"/> <source>Version of the application you are connecting to is less than the minimum supported version.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="450"/> <source>Wrong user name or password.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="454"/> <source>Specified session type is not allowed for the user.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="474"/> <source>The host with the specified ID is not online.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="478"/> <source>There are no relays available or the key pool is empty.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="482"/> <source>Failed to connect to the relay server.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="486"/> <source>Access is denied.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/session_window.cc" line="490"/> <source>Unknown error.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidget</name> <message> <location filename="../ui/sys_info/sys_info_widget.cc" line="105"/> <source>TB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget.cc" line="110"/> <source>GB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget.cc" line="115"/> <source>MB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget.cc" line="120"/> <source>kB</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget.cc" line="125"/> <source>B</source> <translation type="unfinished"></translation> </message> <message numerus="yes"> <location filename="../ui/sys_info/sys_info_widget.cc" line="142"/> <source>%n seconds</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message numerus="yes"> <location filename="../ui/sys_info/sys_info_widget.cc" line="143"/> <source>%n minutes</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message numerus="yes"> <location filename="../ui/sys_info/sys_info_widget.cc" line="144"/> <source>%n hours</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message numerus="yes"> <location filename="../ui/sys_info/sys_info_widget.cc" line="168"/> <source>%n days</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget.cc" line="190"/> <source>Gbps</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget.cc" line="195"/> <source>Mbps</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget.cc" line="200"/> <source>Kbps</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget.cc" line="205"/> <source>bps</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetDrivers</name> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="136"/> <source>Continue Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="139"/> <source>Pause Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="142"/> <source>Paused</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="145"/> <source>Running</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="148"/> <source>Start Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="151"/> <source>Stop Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="154"/> <source>Stopped</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="157"/> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="184"/> <source>Unknown</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="169"/> <source>Auto Start</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="172"/> <source>Demand Start</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="175"/> <source>Disabled</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="178"/> <source>Boot Start</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_drivers.cc" line="181"/> <source>System Start</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetEventLogs</name> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.cc" line="67"/> <source>Application</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.cc" line="69"/> <source>Security</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.cc" line="71"/> <source>System</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.cc" line="325"/> <source>Unknown</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.cc" line="310"/> <source>Information</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.cc" line="195"/> <source>Page %1/%2</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.cc" line="313"/> <source>Warning</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.cc" line="316"/> <source>Error</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.cc" line="319"/> <source>Audit Success</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_event_logs.cc" line="322"/> <source>Audit Failure</source> <translation type="unfinished"></translation> </message> </context> <context> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.cc" line="138"/> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.cc" line="142"/> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.cc" line="146"/> <source>Organization</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.cc" line="150"/> <source>Owner</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.cc" line="154"/> <source>Product ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.cc" line="158"/> <source>Product Key</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_licenses.cc" line="162"/> <source>Unknown Field</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetLocalUsers</name> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="149"/> <source>Full Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="152"/> <source>Description</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="155"/> <source>Home Directory</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="157"/> <source>Disabled</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="157"/> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="158"/> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="159"/> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="160"/> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="161"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="157"/> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="158"/> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="159"/> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="160"/> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="161"/> <source>No</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="158"/> <source>Password Can&apos;t Change</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="159"/> <source>Password Expired</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="160"/> <source>Don&apos;t Expire Password</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="161"/> <source>Lockout</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="165"/> <source>Never</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="169"/> <source>Last Logon</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="170"/> <source>Number Logons</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="171"/> <source>Bad Password Count</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_local_users.cc" line="183"/> <source>Groups</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetMonitors</name> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="155"/> <source>Monitor Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="158"/> <source>Manufacturer Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="161"/> <source>Monitor ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="164"/> <source>Serial Number</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="168"/> <source>EDID Version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="180"/> <source>Gamma</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="194"/> <source>Diagonal Size</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="244"/> <source>%1 Hz</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="174"/> <source>Date Of Manufacture</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="175"/> <source>Week %1 / %2</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="184"/> <source>Image Size</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="185"/> <source>%1x%2 cm</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="199"/> <source>Resolution</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="206"/> <source>Horizontal Frequency</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="207"/> <source>%1 - %2 kHz</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="213"/> <source>Vertical Frequency</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="214"/> <source>%1 - %2 Hz</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="219"/> <source>Pixel Clock</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="219"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="222"/> <source>%1 MHz</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="222"/> <source>Maximum Pixel Clock</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="227"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="228"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="229"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="230"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="231"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="232"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="227"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="228"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="229"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="230"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="231"/> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="232"/> <source>No</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="235"/> <source>Supported Features</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="248"/> <source>Supported Video Modes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="224"/> <source>Input Signal Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="294"/> <source>Digital</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="297"/> <source>Analog</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_monitors.cc" line="300"/> <source>Unknown</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetNetAdapters</name> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="139"/> <source>Adapter Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="142"/> <source>Interface Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="145"/> <source>Connection Speed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="148"/> <source>MAC Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="150"/> <source>DHCP Enabled</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="150"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="150"/> <source>No</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="155"/> <source>DHCP Server #%1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="155"/> <source>DHCP Server</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="167"/> <source>Address #%1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="167"/> <source>Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="175"/> <source>Gateway #%1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_adapters.cc" line="175"/> <source>Gateway</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetNetShares</name> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.cc" line="133"/> <source>Description</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.cc" line="136"/> <source>Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.cc" line="139"/> <source>Local Path</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.cc" line="141"/> <source>Current Uses</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.cc" line="144"/> <source>Not limited</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_net_shares.cc" line="145"/> <source>Maximum Uses</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetPowerOptions</name> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="146"/> <source>Power Source</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="148"/> <source>Battery Status</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="154"/> <source>Battery Life Percent</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="160"/> <source>Full Battery Life Time</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="167"/> <source>Remaining Battery Life Time</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="183"/> <source>Device Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="186"/> <source>Manufacturer</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="189"/> <source>Manufacture Date</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="192"/> <source>Unique Id</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="195"/> <source>Serial Number</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="198"/> <source>Tempareture</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="201"/> <source>Design Capacity</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="201"/> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="207"/> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="213"/> <source>%1 mWh</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="204"/> <source>Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="207"/> <source>Full Charged Capacity</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="210"/> <source>Depreciation</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="213"/> <source>Current Capacity</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="216"/> <source>Voltage</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="216"/> <source>%1 mV</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="222"/> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="308"/> <source>Charging</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="222"/> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="225"/> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="228"/> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="231"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="225"/> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="305"/> <source>Critical</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="228"/> <source>Discharging</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="231"/> <source>Power OnLine</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="235"/> <source>State</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="240"/> <source>Battery #%1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="281"/> <source>DC Battery</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="284"/> <source>AC Line</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="287"/> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="314"/> <source>Unknown</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="299"/> <source>High</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="302"/> <source>Low</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_power_options.cc" line="311"/> <source>No Battery</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetPrinters</name> <message> <location filename="../ui/sys_info/sys_info_widget_printers.cc" line="138"/> <source>Default</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.cc" line="138"/> <location filename="../ui/sys_info/sys_info_widget_printers.cc" line="146"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.cc" line="138"/> <location filename="../ui/sys_info/sys_info_widget_printers.cc" line="146"/> <source>No</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.cc" line="141"/> <source>Port</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.cc" line="144"/> <source>Driver</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.cc" line="146"/> <source>Shared</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.cc" line="149"/> <source>Share Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_printers.cc" line="151"/> <source>Jobs Count</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetProcesses</name> <message> <location filename="../ui/sys_info/sys_info_widget_processes.cc" line="145"/> <source>System Idle Process</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_processes.cc" line="147"/> <source>Unknown Process</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetServices</name> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="138"/> <source>Continue Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="141"/> <source>Pause Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="144"/> <source>Paused</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="147"/> <source>Running</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="150"/> <source>Start Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="153"/> <source>Stop Pending</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="156"/> <source>Stopped</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="159"/> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="186"/> <source>Unknown</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="171"/> <source>Auto Start</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="174"/> <source>Demand Start</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="177"/> <source>Disabled</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="180"/> <source>Boot Start</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_services.cc" line="183"/> <source>System Start</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetSummary</name> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="154"/> <source>Host Version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="155"/> <source>Client Version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="156"/> <source>Router Version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="158"/> <source>Aspia Information</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="136"/> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="167"/> <source>Name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="139"/> <source>Domain</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="142"/> <source>Workgroup</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="145"/> <source>Uptime</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="148"/> <source>Computer</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="170"/> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="242"/> <source>Version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="173"/> <source>Architecture</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="176"/> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="179"/> <source>Install Date</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="184"/> <source>Operating System</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="194"/> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="266"/> <source>Manufacturer</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="197"/> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="212"/> <source>Model</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="202"/> <source>Motherboard</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="215"/> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="239"/> <source>Vendor</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="218"/> <source>Packages</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="221"/> <source>Cores</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="224"/> <source>Threads</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="229"/> <source>Processor</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="245"/> <source>Date</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="269"/> <source>Size</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="272"/> <source>Speed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="272"/> <source>%1 MHz</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="275"/> <source>Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="278"/> <source>Form Factor</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="281"/> <source>Part Number</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="285"/> <source>Installed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="285"/> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="356"/> <source>No</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="295"/> <source>Memory</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="324"/> <source>%1 (%2 free)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_summary.cc" line="334"/> <source>Logical Drives</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::SysInfoWidgetVideoAdapters</name> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.cc" line="131"/> <source>Description</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.cc" line="134"/> <source>Adapter String</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.cc" line="137"/> <source>BIOS String</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.cc" line="140"/> <source>Chip Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.cc" line="143"/> <source>DAC Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.cc" line="146"/> <source>Memory Size</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.cc" line="146"/> <source>%1 bytes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.cc" line="149"/> <source>Driver Date</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.cc" line="152"/> <source>Driver Version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/sys_info/sys_info_widget_video_adapters.cc" line="155"/> <source>Driver Provider</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::TaskManagerWindow</name> <message> <location filename="../ui/desktop/task_manager_window.cc" line="1008"/> <source>Update Speed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="688"/> <location filename="../ui/desktop/task_manager_window.cc" line="753"/> <location filename="../ui/desktop/task_manager_window.cc" line="783"/> <source>Confirmation</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="689"/> <source>Are you really want to end &quot;%1&quot; process?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="693"/> <location filename="../ui/desktop/task_manager_window.cc" line="758"/> <location filename="../ui/desktop/task_manager_window.cc" line="788"/> <source>Yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="694"/> <location filename="../ui/desktop/task_manager_window.cc" line="759"/> <location filename="../ui/desktop/task_manager_window.cc" line="789"/> <source>No</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="754"/> <source>Are you really want to disconnect user &quot;%1&quot; session?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="784"/> <source>Are you really want to end user &quot;%1&quot; session?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="990"/> <source>Processes: %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="1002"/> <source>Physical memory: %1%</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ui/desktop/task_manager_window.cc" line="996"/> <source>CPU loading: %1%</source> <translation type="unfinished"></translation> </message> </context> <context> <name>client::UpdateSettingsDialog</name> <message> <location filename="../ui/update_settings_dialog.cc" line="38"/> <source>Cancel</source> <translation type="unfinished"></translation> </message> </context> </TS> ```
/content/code_sandbox/source/client/translations/aspia_client_es.ts
xml
2016-10-26T16:17:31
2024-08-16T13:37:42
aspia
dchapyshev/aspia
1,579
43,020
```xml <vector xmlns:android="path_to_url" android:height="34.0dp" android:tint="?attr/colorControlNormal" android:viewportHeight="15" android:viewportWidth="15" android:width="34.0dp"> <path android:fillColor="@android:color/white" android:pathData="M4 6L4 14L0 14L0 3C0 1.9 0.9 1 2 1C3.1 1 4 1.9 4 3L4 4L5.26 4C5.87 2.25 7.54 1 9.5 1C11.99 1 14 3.01 14 5.5L14 9.5L12 9.5L12 5.5C12 4.12 10.88 3 9.5 3C8.68 3 7.96 3.39 7.5 4L8 4C9.66 4 11 5.34 11 7L11 11C11 12.66 9.66 14 8 14C6.34 14 5 12.66 5 11L5 6L4 6ZM12 10L14 10L14 12L15 13L15 14L11 14L11 13L12 12L12 10ZM7 11C7 11.55 7.45 12 8 12C8.55 12 9 11.55 9 11L9 7C9 6.45 8.55 6 8 6L7 6L7 11Z"/> </vector> ```
/content/code_sandbox/app/src/main/res/drawable/ic_preset_temaki_vacuum_station.xml
xml
2016-07-02T10:44:04
2024-08-16T18:55:54
StreetComplete
streetcomplete/StreetComplete
3,781
392
```xml <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>PSAwidget</class> <widget class="QWidget" name="PSAwidget"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>400</width> <height>120</height> </rect> </property> <property name="minimumSize"> <size> <width>400</width> <height>120</height> </size> </property> <property name="maximumSize"> <size> <width>400</width> <height>120</height> </size> </property> <property name="windowTitle"> <string notr="true"/> </property> <property name="styleSheet"> <string notr="true">#sWidget { background-color: transparent; } #lTitle { font-family: &quot;Lato&quot;; font-size: 14px; color: #333333; } #lDesc { font-family: &quot;Lato&quot;; font-size: 12px; color: #666666; } #bImage { border: none; } #bMore { font-family: Lato; font-size: 14px; border: 1px solid rgba(0,191, 165, 30%); border-radius: 3px; color: #ffffff; padding: 7px 12px 7px 12px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgba(0, 204, 176, 1), stop: 1 rgba(0, 172,149,1)); } #bMore:hover { border: 1px solid rgba(0,191, 165, 80%); } #bDismiss { font-family: Lato; font-size: 14px; border: 1px solid rgba(0, 0, 0, 5%); border-radius: 3px; color: #333333; padding: 7px 12px 7px 12px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #fafafa); } #bDismiss::hover { border: 1px solid rgba(0, 0, 0, 10%); } #bDismiss::pressed { font-family: Lato; font-size: 14px; border: 1px solid rgba(0, 0, 0, 5%); border-radius: 3px; color: #333333; padding: 7px 12px 7px 12px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #fafafa); }</string> </property> <layout class="QHBoxLayout" name="horizontalLayout_4"> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QStackedWidget" name="sWidget"> <property name="lineWidth"> <number>0</number> </property> <property name="currentIndex"> <number>0</number> </property> <widget class="QWidget" name="pPSA"> <layout class="QHBoxLayout" name="horizontalLayout_3"> <property name="spacing"> <number>0</number> </property> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QWidget" name="wContainer" native="true"> <property name="minimumSize"> <size> <width>400</width> <height>120</height> </size> </property> <property name="maximumSize"> <size> <width>400</width> <height>120</height> </size> </property> <layout class="QHBoxLayout" name="horizontalLayout_2"> <property name="spacing"> <number>16</number> </property> <property name="leftMargin"> <number>14</number> </property> <property name="topMargin"> <number>10</number> </property> <property name="rightMargin"> <number>14</number> </property> <property name="bottomMargin"> <number>8</number> </property> <item> <widget class="QWidget" name="wImage" native="true"> <layout class="QVBoxLayout" name="verticalLayout_2"> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QPushButton" name="bImage"> <property name="minimumSize"> <size> <width>64</width> <height>64</height> </size> </property> <property name="maximumSize"> <size> <width>64</width> <height>64</height> </size> </property> <property name="text"> <string/> </property> <property name="iconSize"> <size> <width>64</width> <height>64</height> </size> </property> </widget> </item> <item> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>0</height> </size> </property> </spacer> </item> </layout> </widget> </item> <item> <widget class="QWidget" name="wMessage" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>300</width> <height>0</height> </size> </property> <layout class="QVBoxLayout" name="verticalLayout"> <property name="spacing"> <number>6</number> </property> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QLabel" name="lTitle"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>300</width> <height>18</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> <height>18</height> </size> </property> <property name="text"> <string/> </property> </widget> </item> <item> <widget class="ElidedLabel" name="lDesc"> <property name="minimumSize"> <size> <width>0</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> <height>30</height> </size> </property> <property name="frameShape"> <enum>QFrame::NoFrame</enum> </property> <property name="frameShadow"> <enum>QFrame::Plain</enum> </property> <property name="lineWidth"> <number>0</number> </property> </widget> </item> <item> <widget class="QWidget" name="wButtons" native="true"> <property name="minimumSize"> <size> <width>0</width> <height>0</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> <height>33</height> </size> </property> <layout class="QHBoxLayout" name="horizontalLayout"> <property name="spacing"> <number>6</number> </property> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QPushButton" name="bMore"> <property name="minimumSize"> <size> <width>0</width> <height>33</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> <height>33</height> </size> </property> <property name="text"> <string/> </property> </widget> </item> <item> <widget class="QPushButton" name="bDismiss"> <property name="minimumSize"> <size> <width>0</width> <height>33</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> <height>33</height> </size> </property> <property name="text"> <string>Dismiss</string> </property> </widget> </item> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>0</height> </size> </property> </spacer> </item> </layout> </widget> </item> </layout> </widget> </item> </layout> </widget> </item> </layout> </widget> <widget class="QWidget" name="page_2"/> </widget> </item> </layout> </widget> <customwidgets> <customwidget> <class>ElidedLabel</class> <extends>QFrame</extends> <header location="global">ElidedLabel.h</header> <container>1</container> </customwidget> </customwidgets> <resources/> <connections/> </ui> ```
/content/code_sandbox/src/MEGASync/gui/macx/PSAwidget.ui
xml
2016-02-10T18:28:05
2024-08-16T19:36:44
MEGAsync
meganz/MEGAsync
1,593
2,755
```xml <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="path_to_url"> <PropertyGroup> <VC-LTLUsedToolsVersion>14.0.24225</VC-LTLUsedToolsVersion> </PropertyGroup> </Project> ```
/content/code_sandbox/src/14.0.24225/Build/Shared.props
xml
2016-06-14T03:01:16
2024-08-12T19:23:19
VC-LTL
Chuyu-Team/VC-LTL
1,052
66
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- Generated with glade 3.40.0 --> <interface> <requires lib="gtk+" version="3.22"/> <template class="ButtonRow" parent="GtkListBoxRow"> <property name="visible">True</property> <property name="can-focus">False</property> <child> <object class="GtkBox"> <property name="visible">True</property> <property name="can-focus">False</property> <property name="margin-start">6</property> <property name="margin-end">6</property> <property name="margin-top">4</property> <property name="margin-bottom">4</property> <property name="spacing">18</property> <child> <object class="GtkLabel" id="description_label"> <property name="visible">True</property> <property name="can-focus">False</property> <property name="halign">start</property> <property name="label">Left mouse button click</property> <property name="justify">center</property> <property name="track-visited-links">False</property> </object> <packing> <property name="expand">True</property> <property name="fill">True</property> <property name="pack-type">end</property> <property name="position">1</property> </packing> </child> </object> </child> </template> </interface> ```
/content/code_sandbox/data/ui/ButtonRow.ui
xml
2016-03-04T05:00:22
2024-08-16T15:26:00
piper
libratbag/piper
4,645
341
```xml // See LICENSE in the project root for license information. import * as path from 'path'; import importLazy = require('import-lazy'); import * as Resolve from 'resolve'; import nodeModule = require('module'); import { PackageJsonLookup } from './PackageJsonLookup'; import { FileSystem } from './FileSystem'; import type { IPackageJson } from './IPackageJson'; import { PackageName } from './PackageName'; type RealpathFnType = Parameters<typeof Resolve.default>[1]['realpath']; /** * Common options shared by {@link IImportResolveModuleOptions} and {@link IImportResolvePackageOptions} * @public */ export interface IImportResolveOptions { /** * The path from which {@link IImportResolveModuleOptions.modulePath} or * {@link IImportResolvePackageOptions.packageName} should be resolved. */ baseFolderPath: string; /** * If true, if the package name matches a Node.js system module, then the return * value will be the package name without any path. * * @remarks * This will take precedence over an installed NPM package of the same name. * * Example: * ```ts * // Returns the string "fs" indicating the Node.js system module * Import.resolveModulePath({ * resolvePath: "fs", * basePath: process.cwd() * }) * ``` */ includeSystemModules?: boolean; /** * If true, then resolvePath is allowed to refer to the package.json of the active project. * * @remarks * This will take precedence over any installed dependency with the same name. * Note that this requires an additional PackageJsonLookup calculation. * * Example: * ```ts * // Returns an absolute path to the current package * Import.resolveModulePath({ * resolvePath: "current-project", * basePath: process.cwd(), * allowSelfReference: true * }) * ``` */ allowSelfReference?: boolean; /** * A function used to resolve the realpath of a provided file path. * * @remarks * This is used to resolve symlinks and other non-standard file paths. By default, this uses the * {@link FileSystem.getRealPath} function. However, it can be overridden to use a custom implementation * which may be faster, more accurate, or provide support for additional non-standard file paths. */ getRealPath?: (filePath: string) => string; } /** * Common options shared by {@link IImportResolveModuleAsyncOptions} and {@link IImportResolvePackageAsyncOptions} * @public */ export interface IImportResolveAsyncOptions extends IImportResolveOptions { /** * A function used to resolve the realpath of a provided file path. * * @remarks * This is used to resolve symlinks and other non-standard file paths. By default, this uses the * {@link FileSystem.getRealPath} function. However, it can be overridden to use a custom implementation * which may be faster, more accurate, or provide support for additional non-standard file paths. */ getRealPathAsync?: (filePath: string) => Promise<string>; } /** * Options for {@link Import.resolveModule} * @public */ export interface IImportResolveModuleOptions extends IImportResolveOptions { /** * The module identifier to resolve. For example "\@rushstack/node-core-library" or * "\@rushstack/node-core-library/lib/index.js" */ modulePath: string; } /** * Options for {@link Import.resolveModuleAsync} * @public */ export interface IImportResolveModuleAsyncOptions extends IImportResolveAsyncOptions { /** * The module identifier to resolve. For example "\@rushstack/node-core-library" or * "\@rushstack/node-core-library/lib/index.js" */ modulePath: string; } /** * Options for {@link Import.resolvePackage} * @public */ export interface IImportResolvePackageOptions extends IImportResolveOptions { /** * The package name to resolve. For example "\@rushstack/node-core-library" */ packageName: string; } /** * Options for {@link Import.resolvePackageAsync} * @public */ export interface IImportResolvePackageAsyncOptions extends IImportResolveAsyncOptions { /** * The package name to resolve. For example "\@rushstack/node-core-library" */ packageName: string; } interface IPackageDescriptor { packageRootPath: string; packageName: string; } /** * Helpers for resolving and importing Node.js modules. * @public */ export class Import { private static __builtInModules: Set<string> | undefined; private static get _builtInModules(): Set<string> { if (!Import.__builtInModules) { Import.__builtInModules = new Set<string>(nodeModule.builtinModules); } return Import.__builtInModules; } /** * Provides a way to improve process startup times by lazy-loading imported modules. * * @remarks * This is a more structured wrapper for the {@link path_to_url|import-lazy} * package. It enables you to replace an import like this: * * ```ts * import * as example from 'example'; // <-- 100ms load time * * if (condition) { * example.doSomething(); * } * ``` * * ...with a pattern like this: * * ```ts * const example: typeof import('example') = Import.lazy('example', require); * * if (condition) { * example.doSomething(); // <-- 100ms load time occurs here, only if needed * } * ``` * * The implementation relies on JavaScript's `Proxy` feature to intercept access to object members. Thus * it will only work correctly with certain types of module exports. If a particular export isn't well behaved, * you may need to find (or introduce) some other module in your dependency graph to apply the optimization to. * * Usage guidelines: * * - Always specify types using `typeof` as shown above. * * - Never apply lazy-loading in a way that would convert the module's type to `any`. Losing type safety * seriously impacts the maintainability of the code base. * * - In cases where the non-runtime types are needed, import them separately using the `Types` suffix: * * ```ts * const example: typeof import('example') = Import.lazy('example', require); * import type * as exampleTypes from 'example'; * ``` * * - If the imported module confusingly has the same name as its export, then use the Module suffix: * * ```ts * const exampleModule: typeof import('../../logic/Example') = Import.lazy( * '../../logic/Example', require); * import type * as exampleTypes from '../../logic/Example'; * ``` * * - If the exports cause a lot of awkwardness (e.g. too many expressions need to have `exampleModule.` inserted * into them), or if some exports cannot be proxied (e.g. `Import.lazy('example', require)` returns a function * signature), then do not lazy-load that module. Instead, apply lazy-loading to some other module which is * better behaved. * * - It's recommended to sort imports in a standard ordering: * * ```ts * // 1. external imports * import * as path from 'path'; * import { Import, JsonFile, JsonObject } from '@rushstack/node-core-library'; * * // 2. local imports * import { LocalFile } from './path/LocalFile'; * * // 3. lazy-imports (which are technically variables, not imports) * const semver: typeof import('semver') = Import.lazy('semver', require); * ``` */ // eslint-disable-next-line @typescript-eslint/no-explicit-any public static lazy(moduleName: string, require: (id: string) => unknown): any { const importLazyLocal: (moduleName: string) => unknown = importLazy(require); return importLazyLocal(moduleName); } /** * This resolves a module path using similar logic as the Node.js `require.resolve()` API, * but supporting extra features such as specifying the base folder. * * @remarks * A module path is a text string that might appear in a statement such as * `import { X } from "____";` or `const x = require("___");`. The implementation is based * on the popular `resolve` NPM package. * * Suppose `example` is an NPM package whose entry point is `lib/index.js`: * ```ts * // Returns "/path/to/project/node_modules/example/lib/index.js" * Import.resolveModule({ modulePath: 'example' }); * * // Returns "/path/to/project/node_modules/example/lib/other.js" * Import.resolveModule({ modulePath: 'example/lib/other' }); * ``` * If you need to determine the containing package folder * (`/path/to/project/node_modules/example`), use {@link Import.resolvePackage} instead. * * @returns the absolute path of the resolved module. * If {@link IImportResolveOptions.includeSystemModules} is specified * and a system module is found, then its name is returned without any file path. */ public static resolveModule(options: IImportResolveModuleOptions): string { const { modulePath, baseFolderPath, includeSystemModules, allowSelfReference, getRealPath } = options; if (path.isAbsolute(modulePath)) { return modulePath; } const normalizedRootPath: string = (getRealPath || FileSystem.getRealPath)(baseFolderPath); if (modulePath.startsWith('.')) { // This looks like a conventional relative path return path.resolve(normalizedRootPath, modulePath); } // Built-in modules do not have a scope, so if there is a slash, then we need to check // against the first path segment const slashIndex: number = modulePath.indexOf('/'); const moduleName: string = slashIndex === -1 ? modulePath : modulePath.slice(0, slashIndex); if (!includeSystemModules && Import._builtInModules.has(moduleName)) { throw new Error(`Cannot find module "${modulePath}" from "${options.baseFolderPath}".`); } if (allowSelfReference === true) { const ownPackage: IPackageDescriptor | undefined = Import._getPackageName(normalizedRootPath); if ( ownPackage && (modulePath === ownPackage.packageName || modulePath.startsWith(`${ownPackage.packageName}/`)) ) { const packagePath: string = modulePath.slice(ownPackage.packageName.length + 1); return path.resolve(ownPackage.packageRootPath, packagePath); } } try { return Resolve.sync(modulePath, { basedir: normalizedRootPath, preserveSymlinks: false, realpathSync: getRealPath }); } catch (e: unknown) { throw new Error(`Cannot find module "${modulePath}" from "${options.baseFolderPath}": ${e}`); } } /** * Async version of {@link Import.resolveModule}. */ public static async resolveModuleAsync(options: IImportResolveModuleAsyncOptions): Promise<string> { const { modulePath, baseFolderPath, includeSystemModules, allowSelfReference, getRealPath, getRealPathAsync } = options; if (path.isAbsolute(modulePath)) { return modulePath; } const normalizedRootPath: string = await (getRealPathAsync || getRealPath || FileSystem.getRealPathAsync)( baseFolderPath ); if (modulePath.startsWith('.')) { // This looks like a conventional relative path return path.resolve(normalizedRootPath, modulePath); } // Built-in modules do not have a scope, so if there is a slash, then we need to check // against the first path segment const slashIndex: number = modulePath.indexOf('/'); const moduleName: string = slashIndex === -1 ? modulePath : modulePath.slice(0, slashIndex); if (!includeSystemModules && Import._builtInModules.has(moduleName)) { throw new Error(`Cannot find module "${modulePath}" from "${options.baseFolderPath}".`); } if (allowSelfReference === true) { const ownPackage: IPackageDescriptor | undefined = Import._getPackageName(normalizedRootPath); if ( ownPackage && (modulePath === ownPackage.packageName || modulePath.startsWith(`${ownPackage.packageName}/`)) ) { const packagePath: string = modulePath.slice(ownPackage.packageName.length + 1); return path.resolve(ownPackage.packageRootPath, packagePath); } } try { const resolvePromise: Promise<string> = new Promise( (resolve: (resolvedPath: string) => void, reject: (error: Error) => void) => { const realPathFn: RealpathFnType = getRealPathAsync || getRealPath ? (filePath: string, callback: (error: Error | null, resolvedPath?: string) => void) => { if (getRealPathAsync) { getRealPathAsync(filePath) .then((resolvedPath) => callback(null, resolvedPath)) .catch((error) => callback(error)); } else { try { const resolvedPath: string = getRealPath!(filePath); callback(null, resolvedPath); } catch (error: unknown) { callback(error as Error); } } } : undefined; Resolve.default( modulePath, { basedir: normalizedRootPath, preserveSymlinks: false, realpath: realPathFn }, (error: Error | null, resolvedPath?: string) => { if (error) { reject(error); } else { // Resolve docs state that either an error will be returned, or the resolved path. // In this case, the resolved path should always be populated. resolve(resolvedPath!); } } ); } ); return await resolvePromise; } catch (e: unknown) { throw new Error(`Cannot find module "${modulePath}" from "${options.baseFolderPath}": ${e}`); } } /** * Performs module resolution to determine the folder where a package is installed. * * @remarks * Suppose `example` is an NPM package whose entry point is `lib/index.js`: * ```ts * // Returns "/path/to/project/node_modules/example" * Import.resolvePackage({ packageName: 'example' }); * ``` * * If you need to resolve a module path, use {@link Import.resolveModule} instead: * ```ts * // Returns "/path/to/project/node_modules/example/lib/index.js" * Import.resolveModule({ modulePath: 'example' }); * ``` * * @returns the absolute path of the package folder. * If {@link IImportResolveOptions.includeSystemModules} is specified * and a system module is found, then its name is returned without any file path. */ public static resolvePackage(options: IImportResolvePackageOptions): string { const { packageName, includeSystemModules, baseFolderPath, allowSelfReference, getRealPath } = options; if (includeSystemModules && Import._builtInModules.has(packageName)) { return packageName; } const normalizedRootPath: string = (getRealPath || FileSystem.getRealPath)(baseFolderPath); if (allowSelfReference) { const ownPackage: IPackageDescriptor | undefined = Import._getPackageName(normalizedRootPath); if (ownPackage && ownPackage.packageName === packageName) { return ownPackage.packageRootPath; } } PackageName.parse(packageName); // Ensure the package name is valid and doesn't contain a path try { // Append a slash to the package name to ensure `resolve.sync` doesn't attempt to return a system package const resolvedPath: string = Resolve.sync(`${packageName}/`, { basedir: normalizedRootPath, preserveSymlinks: false, packageFilter: (pkg: Resolve.PackageJSON, pkgFile: string, dir: string): Resolve.PackageJSON => { // Hardwire "main" to point to a file that is guaranteed to exist. // This helps resolve packages such as @types/node that have no entry point. // And then we can use path.dirname() below to locate the package folder, // even if the real entry point was in an subfolder with arbitrary nesting. pkg.main = 'package.json'; return pkg; }, realpathSync: getRealPath }); const packagePath: string = path.dirname(resolvedPath); return packagePath; } catch (e: unknown) { throw new Error(`Cannot find package "${packageName}" from "${baseFolderPath}": ${e}.`); } } /** * Async version of {@link Import.resolvePackage}. */ public static async resolvePackageAsync(options: IImportResolvePackageAsyncOptions): Promise<string> { const { packageName, includeSystemModules, baseFolderPath, allowSelfReference, getRealPath, getRealPathAsync } = options; if (includeSystemModules && Import._builtInModules.has(packageName)) { return packageName; } const normalizedRootPath: string = await (getRealPathAsync || getRealPath || FileSystem.getRealPathAsync)( baseFolderPath ); if (allowSelfReference) { const ownPackage: IPackageDescriptor | undefined = Import._getPackageName(normalizedRootPath); if (ownPackage && ownPackage.packageName === packageName) { return ownPackage.packageRootPath; } } PackageName.parse(packageName); // Ensure the package name is valid and doesn't contain a path try { const resolvePromise: Promise<string> = new Promise( (resolve: (resolvedPath: string) => void, reject: (error: Error) => void) => { const realPathFn: RealpathFnType = getRealPathAsync || getRealPath ? (filePath: string, callback: (error: Error | null, resolvedPath?: string) => void) => { if (getRealPathAsync) { getRealPathAsync(filePath) .then((resolvedPath) => callback(null, resolvedPath)) .catch((error) => callback(error)); } else { try { const resolvedPath: string = getRealPath!(filePath); callback(null, resolvedPath); } catch (error: unknown) { callback(error as Error); } } } : undefined; Resolve.default( // Append a slash to the package name to ensure `resolve` doesn't attempt to return a system package `${packageName}/`, { basedir: normalizedRootPath, preserveSymlinks: false, packageFilter: ( pkg: Resolve.PackageJSON, pkgFile: string, dir: string ): Resolve.PackageJSON => { // Hardwire "main" to point to a file that is guaranteed to exist. // This helps resolve packages such as @types/node that have no entry point. // And then we can use path.dirname() below to locate the package folder, // even if the real entry point was in an subfolder with arbitrary nesting. pkg.main = 'package.json'; return pkg; }, realpath: realPathFn }, (error: Error | null, resolvedPath?: string) => { if (error) { reject(error); } else { // Resolve docs state that either an error will be returned, or the resolved path. // In this case, the resolved path should always be populated. resolve(resolvedPath!); } } ); } ); const resolvedPath: string = await resolvePromise; const packagePath: string = path.dirname(resolvedPath); return packagePath; } catch (e: unknown) { throw new Error(`Cannot find package "${packageName}" from "${baseFolderPath}": ${e}`); } } private static _getPackageName(rootPath: string): IPackageDescriptor | undefined { const packageJsonPath: string | undefined = PackageJsonLookup.instance.tryGetPackageJsonFilePathFor(rootPath); if (packageJsonPath) { const packageJson: IPackageJson = PackageJsonLookup.instance.loadPackageJson(packageJsonPath); return { packageRootPath: path.dirname(packageJsonPath), packageName: packageJson.name }; } else { return undefined; } } } ```
/content/code_sandbox/libraries/node-core-library/src/Import.ts
xml
2016-09-30T00:28:20
2024-08-16T18:54:35
rushstack
microsoft/rushstack
5,790
4,523
```xml import { useMemo, useRef } from 'react'; import { c } from 'ttag'; import { useElementBreakpoints, useFolders, useLabels } from '@proton/components/hooks'; import clsx from '@proton/utils/clsx'; import { useMailSelector } from 'proton-mail/store/hooks'; import { getLabelName } from '../../helpers/labels'; import { getToolbarResponsiveSizes } from '../../helpers/toolbar/getToolbarResponsiveSizes'; import { pageSize as pageSizeSelector } from '../../store/elements/elementsSelectors'; import ListSettings from '../list/ListSettings'; import SnoozeToolbarDropdown from '../list/snooze/containers/SnoozeToolbarDropdown'; import LabelName from './LabelName'; import LabelsAndFolders from './LabelsAndFolders'; import MoreActions from './MoreActions'; import MoreDropdown from './MoreDropdown'; import MoveButtons from './MoveButtons'; import PagingControls from './PagingControls'; import ReadUnreadButtons from './ReadUnreadButtons'; import type { Props as ToolbarProps } from './Toolbar'; interface Props extends Omit<ToolbarProps, 'onCheck' | 'checkedIDs' | 'columnMode' | 'onBack' | 'onElement'> { classname: string; } const BREAKPOINTS = { extratiny: 0, tiny: 100, small: 400, medium: 800, large: 1100, }; const ToolbarRowWide = ({ classname, selectAll, sort, onSort, filter, onFilter, conversationMode, mailSettings, isSearch, labelID, selectedIDs, onMarkAs, onMove, onDelete, breakpoints, labelDropdownToggleRef, moveDropdownToggleRef, elementIDs, loading = false, page, onPage, total, onCheckAll, }: Props) => { const toolbarRef = useRef<HTMLDivElement>(null); const breakpoint = useElementBreakpoints(toolbarRef, BREAKPOINTS); const { localIsTiny, localIsExtraTiny, localIsNarrow } = getToolbarResponsiveSizes(breakpoint); const localIsNarrowAndMedium = localIsNarrow || breakpoint === 'medium'; const [labels] = useLabels(); const [folders] = useFolders(); const labelName = useMemo(() => getLabelName(labelID, labels, folders), [labelID, labels, folders]); const pageSize = useMailSelector(pageSizeSelector); return ( <div> <nav className={clsx(classname, 'justify-space-between py-1 pl-4 pr-2')} data-shortcut-target="mailbox-toolbar" aria-label={c('Label').t`Toolbar`} ref={toolbarRef} > <div className="flex items-center flex-nowrap toolbar-inner gap-2"> {selectAll} <LabelName selectedIDs={selectedIDs} labelName={labelName} /> <ReadUnreadButtons selectedIDs={selectedIDs} onMarkAs={onMarkAs} /> <MoveButtons labelID={labelID} isExtraTiny={localIsExtraTiny} isNarrow={localIsNarrow} selectedIDs={selectedIDs} onMove={onMove} onDelete={onDelete} /> {!localIsTiny ? ( <LabelsAndFolders labelID={labelID} selectedIDs={selectedIDs} breakpoints={breakpoints} labelDropdownToggleRef={labelDropdownToggleRef} moveDropdownToggleRef={moveDropdownToggleRef} onCheckAll={onCheckAll} /> ) : null} {!localIsTiny ? <SnoozeToolbarDropdown selectedIDs={selectedIDs} labelID={labelID} /> : null} <MoreDropdown labelID={labelID} elementIDs={elementIDs} selectedIDs={selectedIDs} isSearch={isSearch} isNarrow={localIsNarrow} isTiny={localIsTiny} isExtraTiny={localIsExtraTiny} onMove={onMove} onDelete={onDelete} breakpoints={breakpoints} /> <MoreActions selectedIDs={selectedIDs} /> </div> <div className="flex items-center shrink-0 flex-nowrap toolbar-inner gap-2"> <ListSettings sort={sort} onSort={onSort} onFilter={onFilter} filter={filter} conversationMode={conversationMode} mailSettings={mailSettings} labelID={labelID} filterAsDropdown={localIsNarrowAndMedium} /> <PagingControls loading={loading} page={page} pageSize={pageSize} total={total} onPage={onPage} /> </div> </nav> </div> ); }; export default ToolbarRowWide; ```
/content/code_sandbox/applications/mail/src/app/components/toolbar/ToolbarRowWide.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
1,021
```xml import { Observable } from '../Observable'; import { Unsubscribable, ObservableInput } from '../types'; import { from } from './from'; // from from from! LAWL import { EMPTY } from './empty'; /** * Creates an Observable that uses a resource which will be disposed at the same time as the Observable. * * <span class="informal">Use it when you catch yourself cleaning up after an Observable.</span> * * `using` is a factory operator, which accepts two functions. First function returns a disposable resource. * It can be an arbitrary object that implements `unsubscribe` method. Second function will be injected with * that object and should return an Observable. That Observable can use resource object during its execution. * Both functions passed to `using` will be called every time someone subscribes - neither an Observable nor * resource object will be shared in any way between subscriptions. * * When Observable returned by `using` is subscribed, Observable returned from the second function will be subscribed * as well. All its notifications (nexted values, completion and error events) will be emitted unchanged by the output * Observable. If however someone unsubscribes from the Observable or source Observable completes or errors by itself, * the `unsubscribe` method on resource object will be called. This can be used to do any necessary clean up, which * otherwise would have to be handled by hand. Note that complete or error notifications are not emitted when someone * cancels subscription to an Observable via `unsubscribe`, so `using` can be used as a hook, allowing you to make * sure that all resources which need to exist during an Observable execution will be disposed at appropriate time. * * @see {@link defer} * * @param {function(): ISubscription} resourceFactory A function which creates any resource object * that implements `unsubscribe` method. * @param {function(resource: ISubscription): Observable<T>} observableFactory A function which * creates an Observable, that can use injected resource object. * @return {Observable<T>} An Observable that behaves the same as Observable returned by `observableFactory`, but * which - when completed, errored or unsubscribed - will also call `unsubscribe` on created resource object. */ export function using<T>(resourceFactory: () => Unsubscribable | void, observableFactory: (resource: Unsubscribable | void) => ObservableInput<T> | void): Observable<T> { return new Observable<T>(subscriber => { let resource: Unsubscribable | void; try { resource = resourceFactory(); } catch (err) { subscriber.error(err); return undefined; } let result: ObservableInput<T> | void; try { result = observableFactory(resource); } catch (err) { subscriber.error(err); return undefined; } const source = result ? from(result) : EMPTY; const subscription = source.subscribe(subscriber); return () => { subscription.unsubscribe(); if (resource) { resource.unsubscribe(); } }; }); } ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/src/internal/observable/using.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
640
```xml export const COLORS = [ '#01aecc', '#D9E3F0', '#F47373', '#697689', '#4bbf6b', '#0078bf', '#89609d', '#838c91', '#cd5a91', '#d29034', '#63D2D6', '#F7CE53', '#FF6900', '#EB144C' ]; ```
/content/code_sandbox/packages/erxes-ui/src/constants/colors.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
99
```xml /* * Wire * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with this program. If not, see path_to_url * */ import './WarningsContainer'; import {hideWarning, showWarning} from './WarningsState'; import {CONFIG, TYPE} from './WarningsTypes'; const Warnings = { CONFIG, TYPE, hideWarning, showWarning, }; export {Warnings}; ```
/content/code_sandbox/src/script/view_model/WarningsContainer/index.ts
xml
2016-07-21T15:34:05
2024-08-16T11:40:13
wire-webapp
wireapp/wire-webapp
1,125
141
```xml import { nextTestSetup } from 'e2e-utils' import { retry } from 'next-test-utils' describe('app dir - next/dynamic', () => { const { next, isNextStart, isNextDev, skipped } = nextTestSetup({ files: __dirname, skipDeployment: true, }) if (skipped) { return } it('should handle ssr: false in pages when appDir is enabled', async () => { const $ = await next.render$('/legacy/no-ssr') expect($.html()).not.toContain('navigator') const browser = await next.browser('/legacy/no-ssr') expect(await browser.waitForElementByCss('#pure-client').text()).toContain( 'navigator' ) }) it('should handle next/dynamic in SSR correctly', async () => { const $ = await next.render$('/dynamic') // filter out the script const selector = 'body div' const serverContent = $(selector).text() // should load chunks generated via async import correctly with React.lazy expect(serverContent).toContain('next-dynamic lazy') // should support `dynamic` in both server and client components expect(serverContent).toContain('next-dynamic dynamic on server') expect(serverContent).toContain('next-dynamic dynamic on client') expect(serverContent).toContain('next-dynamic server import client') expect(serverContent).not.toContain('next-dynamic dynamic no ssr on client') expect(serverContent).not.toContain('next-dynamic dynamic no ssr on server') // client component under server component with ssr: false will not be rendered either in flight or SSR expect($.html()).not.toContain('client component under sever no ssr') }) it('should handle next/dynamic in hydration correctly', async () => { const selector = 'body div' const browser = await next.browser('/dynamic') const clientContent = await browser.elementByCss(selector).text() expect(clientContent).toContain('next-dynamic dynamic no ssr on server') expect(clientContent).toContain('client component under sever no ssr') await browser.waitForElementByCss('#css-text-dynamic-no-ssr-client') expect( await browser.elementByCss('#css-text-dynamic-no-ssr-client').text() ).toBe('next-dynamic dynamic no ssr on client:suffix') }) it('should generate correct client manifest for dynamic chunks', async () => { const $ = await next.render$('/chunk-loading/server') expect($('h1').text()).toBe('hello') }) it('should render loading by default if loading is specified and loader is slow', async () => { const $ = await next.render$('/default-loading') // First render in dev should show loading, production build will resolve the content. expect($('body').text()).toContain( isNextDev ? 'Loading...' : 'This is a dynamically imported component' ) }) it('should not render loading by default', async () => { const $ = await next.render$('/default') expect($('#dynamic-component').text()).not.toContain('loading') }) if (isNextDev) { it('should directly raise error when dynamic component error on server', async () => { const pagePath = 'app/default-loading/dynamic-component.js' const page = await next.readFile(pagePath) await next.patchFile( pagePath, page.replace('const isDevTest = false', 'const isDevTest = true') ) await retry(async () => { const { status } = await next.fetch('/default-loading') expect(status).toBe(200) }) }) } describe('no SSR', () => { it('should not render client component imported through ssr: false in client components in edge runtime', async () => { // noSSR should not show up in html const $ = await next.render$('/dynamic-mixed-ssr-false/client-edge') expect($('#server-false-server-module')).not.toContain( 'ssr-false-server-module-text' ) expect($('#server-false-client-module')).not.toContain( 'ssr-false-client-module-text' ) // noSSR should not show up in browser const browser = await next.browser('/dynamic-mixed-ssr-false/client-edge') expect( await browser.elementByCss('#ssr-false-server-module').text() ).toBe('ssr-false-server-module-text') expect( await browser.elementByCss('#ssr-false-client-module').text() ).toBe('ssr-false-client-module-text') // in the server bundle should not contain client component imported through ssr: false if (isNextStart) { const chunkPath = '.next/server/app/dynamic-mixed-ssr-false/client-edge/page.js' const edgeServerChunk = await next.readFile(chunkPath) expect(edgeServerChunk).not.toContain('ssr-false-client-module-text') } }) it('should not render client component imported through ssr: false in client components', async () => { // noSSR should not show up in html const $ = await next.render$('/dynamic-mixed-ssr-false/client') expect($('#client-false-server-module')).not.toContain( 'ssr-false-server-module-text' ) expect($('#client-false-client-module')).not.toContain( 'ssr-false-client-module-text' ) // noSSR should not show up in browser const browser = await next.browser('/dynamic-mixed-ssr-false/client') expect( await browser.elementByCss('#ssr-false-server-module').text() ).toBe('ssr-false-server-module-text') expect( await browser.elementByCss('#ssr-false-client-module').text() ).toBe('ssr-false-client-module-text') // in the server bundle should not contain both server and client component imported through ssr: false if (isNextStart) { const pageServerChunk = await next.readFile( '.next/server/app/dynamic-mixed-ssr-false/client/page.js' ) expect(pageServerChunk).not.toContain('ssr-false-server-module-text') expect(pageServerChunk).not.toContain('ssr-false-client-module-text') } }) it('should support dynamic import with accessing named exports from client component', async () => { const $ = await next.render$('/dynamic/named-export') expect($('#client-button').text()).toBe('this is a client button') }) }) }) ```
/content/code_sandbox/test/e2e/app-dir/dynamic/dynamic.test.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
1,438
```xml <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"> <RelativeLayout android:id="@+id/content_main" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="16dp" app:layout_behavior="@string/appbar_scrolling_view_behavior"> <ImageView android:id="@+id/imageView" android:layout_width="250dp" android:layout_height="250dp" android:layout_centerInParent="true" android:adjustViewBounds="true" android:scaleType="centerCrop" /> </RelativeLayout> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="16dp" app:srcCompat="@android:drawable/ic_menu_camera" /> </android.support.design.widget.CoordinatorLayout> ```
/content/code_sandbox/Android/AndroidFileProviderCameraGallery/app/src/main/res/layout/activity_main.xml
xml
2016-05-02T05:43:21
2024-08-16T06:51:39
journaldev
WebJournal/journaldev
1,314
273
```xml <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="path_to_url"> <ItemGroup> <Filter Include="Header Files"> <UniqueIdentifier>{d1521b07-9b1c-41b7-b6f2-848cf25559b4}</UniqueIdentifier> </Filter> <Filter Include="Source Files"> <UniqueIdentifier>{9d5ef30c-9759-4e25-8586-28896609c552}</UniqueIdentifier> </Filter> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\aec_resampler.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\logging\aec_logging_file_handling.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\aec_rdft.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\logging\aec_logging.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\aec_core_internal.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\aec_core.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\aec_common.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\aecm\aecm_core.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\aecm\aecm_defines.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\system_wrappers\interface\compile_assert_c.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\complex_fft_tables.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\system_wrappers\interface\cpu_features_wrapper.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\defines.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\utility\delay_estimator.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\utility\delay_estimator_internal.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\utility\delay_estimator_wrapper.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\echo_cancellation_internal.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\include\echo_cancellation.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\aecm\include\echo_control_mobile.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\common_audio\fft4g.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\include\noise_suppression.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\include\noise_suppression_x.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\ns_core.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\nsx_core.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\nsx_defines.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\include\real_fft.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\resample_by_2_internal.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\common_audio\ring_buffer.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\include\signal_processing_library.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\include\spl_inl.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\common_audio\wav_file.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\windows_private.h"> <Filter>Header Files</Filter> </ClInclude> <ClInclude Include="..\..\webrtc\src\webrtc\typedefs.h"> <Filter>Header Files</Filter> </ClInclude> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\vector_scaling_operations.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\aec_core.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\aec_rdft.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\aec_resampler.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\aecm\aecm_core.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\aecm\aecm_core_c.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\auto_corr_to_refl_coef.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\auto_correlation.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\complex_bit_reverse.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\complex_fft.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\copy_set_operations.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\cross_correlation.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\utility\delay_estimator.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\utility\delay_estimator_wrapper.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\division_operations.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\dot_product_with_scale.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\downsample_fast.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\echo_cancellation.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\aecm\echo_control_mobile.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\energy.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\fft4g.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\filter_ar.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\filter_ar_fast_q12.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\filter_ma_fast_q12.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\get_hanning_window.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\get_scaling_square.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\ilbc_specific_functions.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\levinson_durbin.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\lpc_to_refl_coef.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\min_max_operations.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\noise_suppression.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\noise_suppression_x.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\ns_core.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\nsx_core.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\nsx_core_c.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\randomization_functions.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\real_fft.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\refl_coef_to_lpc.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\resample.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\resample_48khz.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\resample_by_2.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\resample_by_2_internal.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\resample_fractional.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\ring_buffer.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\spl_init.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\spl_sqrt.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\spl_sqrt_floor.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\splitting_filter.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\sqrt_of_one_minus_x_squared.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\aec_core_neon.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\aec\aec_rdft_neon.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\cross_correlation_neon.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\downsample_fast_neon.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\common_audio\signal_processing\min_max_operations_neon.c"> <Filter>Source Files</Filter> </ClCompile> <ClCompile Include="..\..\webrtc\src\webrtc\modules\audio_processing\ns\nsx_core_neon.c"> <Filter>Source Files</Filter> </ClCompile> </ItemGroup> </Project> ```
/content/code_sandbox/third_party/build/webrtc/libwebrtc.vcxproj.filters
xml
2016-01-24T05:00:33
2024-08-16T03:31:21
pjproject
pjsip/pjproject
1,960
3,729
```xml import * as React from 'react'; export default (size: number) => ( <svg viewBox="0 0 64 64" width={size} height={size}> <path d="m0,5.133l0,-2.133l64,0l0,2.133l-64,0z" fill="#656566" /> <path d="m52.7,14.85463l0,31.75774c0,0.8768 -0.955,1.58763 -2.133,1.58763l-12.8,0c-1.178,0 -2.133,-0.71082 -2.133,-1.58763l0,-31.75774c0,-0.8768 0.955,-1.58763 2.133,-1.58763l12.8,0c1.178,0 2.133,0.71082 2.133,1.58763z" fill="#b1b2b3" /> <path d="m29.867,14.85463l0,31.75775c0,0.8768 -0.955,1.58763 -2.133,1.58763l-12.8,0c-1.178,0 -2.133,-0.71082 -2.133,-1.58763l0,-31.75775c0,-0.8768 0.955,-1.58763 2.133,-1.58763l12.8,0c1.178,0 2.133,0.71082 2.133,1.58763z" fill="#656566" /> <path d="m0,58.5665l0,-2.133l64,0l0,2.133l-64,0z" fill="#656566" /> </svg> ); ```
/content/code_sandbox/src/components/icon/src/icons/flex-align-center.tsx
xml
2016-09-20T11:57:51
2024-07-23T03:40:11
gaea-editor
ascoders/gaea-editor
1,339
433
```xml <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportHeight="24.0" android:viewportWidth="24.0"> <path android:fillColor="#FFF" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM11,19.93c-3.95,-0.49 -7,-3.85 -7,-7.93 0,-0.62 0.08,-1.21 0.21,-1.79L9,15v1c0,1.1 0.9,2 2,2v1.93zM17.9,17.39c-0.26,-0.81 -1,-1.39 -1.9,-1.39h-1v-3c0,-0.55 -0.45,-1 -1,-1L8,12v-2h2c0.55,0 1,-0.45 1,-1L11,7h2c1.1,0 2,-0.9 2,-2v-0.41c2.93,1.19 5,4.06 5,7.41 0,2.08 -0.8,3.97 -2.1,5.39z"/> </vector> ```
/content/code_sandbox/sample/src/main/res/drawable/ic_network_white.xml
xml
2016-10-06T22:42:42
2024-08-16T18:32:58
lottie-android
airbnb/lottie-android
34,892
340
```xml import { BaseXmlComponent, IContext, IXmlableObject } from "@file/xml-components"; export class Formatter { // tslint:disable-next-line: no-object-literal-type-assertion public format(input: BaseXmlComponent, context: IContext = { stack: [] } as unknown as IContext): IXmlableObject { const output = input.prepForXml(context); if (output) { return output; } else { throw Error("XMLComponent did not format correctly"); } } } ```
/content/code_sandbox/src/export/formatter.ts
xml
2016-03-26T23:43:56
2024-08-16T13:02:47
docx
dolanmiu/docx
4,139
110
```xml import {OpenSpecHash} from "./OpenSpecHash.js"; import {OpenSpecRef} from "./OpenSpecRef.js"; import {OpenSpecTypes} from "./OpenSpecTypes.js"; export interface OpenSpecBaseJsonSchema { $ref?: string; /** * This attribute is a string that provides a short description of the instance property. * * @see path_to_url#section-7.2 */ title?: string; /** * Must be strictly greater than 0. * A numeric instance is valid only if division by this keyword's value results in an integer. * @see path_to_url#section-6.1 */ multipleOf?: number; /** * Representing an inclusive upper limit for a numeric instance. * This keyword validates only if the instance is less than or exactly equal to "maximum". * @see path_to_url#section-6.2 */ maximum?: number; /** * Representing an exclusive upper limit for a numeric instance. * This keyword validates only if the instance is strictly less than (not equal to) to "exclusiveMaximum". * @see path_to_url#section-6.3 */ exclusiveMaximum?: boolean; /** * Representing an inclusive lower limit for a numeric instance. * This keyword validates only if the instance is greater than or exactly equal to "minimum". * @see path_to_url#section-6.4 */ minimum?: number; /** * Representing an exclusive lower limit for a numeric instance. * This keyword validates only if the instance is strictly greater than (not equal to) to "exclusiveMinimum". * @see path_to_url#section-6.5 */ exclusiveMinimum?: boolean; /** * Must be a non-negative integer. * A string instance is valid against this keyword if its length is less than, or equal to, the value of this keyword. * @see path_to_url#section-6.6 */ maxLength?: number; /** * Must be a non-negative integer. * A string instance is valid against this keyword if its length is greater than, or equal to, the value of this keyword. * Omitting this keyword has the same behavior as a value of 0. * @see path_to_url#section-6.7 */ minLength?: number; /** * Should be a valid regular expression, according to the ECMA 262 regular expression dialect. * @see path_to_url#section-6.8 */ pattern?: string; /** * Must be a non-negative integer. * An array instance is valid against "maxItems" if its size is less than, or equal to, the value of this keyword. * @see path_to_url#section-6.11 */ maxItems?: number; /** * Must be a non-negative integer. * An array instance is valid against "maxItems" if its size is greater than, or equal to, the value of this keyword. * Omitting this keyword has the same behavior as a value of 0. * @see path_to_url#section-6.12 */ minItems?: number; /** * If this keyword has boolean value false, the instance validates successfully. * If it has boolean value true, the instance validates successfully if all of its elements are unique. * Omitting this keyword has the same behavior as a value of false. * @see path_to_url#section-6.13 */ uniqueItems?: boolean; /** * Must be a non-negative integer. * An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the value of this keyword. * @see path_to_url#section-6.15 */ maxProperties?: number; /** * Must be a non-negative integer. * An object instance is valid against "maxProperties" if its number of properties is greater than, * or equal to, the value of this keyword. * Omitting this keyword has the same behavior as a value of 0. * @see path_to_url#section-6.16 */ minProperties?: number; /** * This provides an enumeration of all possible values that are valid * for the instance property. This MUST be an array, and each item in * the array represents a possible value for the instance value. If * this attribute is defined, the instance value MUST be one of the * values in the array in order for the schema to be valid. * * @see path_to_url#section-6.23 */ enum?: any[]; /** * This attribute is a string that provides a full description of the of purpose the instance property. * * @see path_to_url#section-7.2 */ description?: string; /** * This keyword can be used to supply a default JSON value associated with a particular schema. * It is RECOMMENDED that a default value be valid against the associated schema. * @see path_to_url#section-7.3 */ default?: any; /** * @see path_to_url#section-8 */ format?: string; /** * A single type, or a union of simple types * @see path_to_url#section-6.25 */ type?: OpenSpecTypes; } export interface OpenSpecJsonSchema<Schema = any> extends OpenSpecBaseJsonSchema { /** * Required if type is "array". Describes the type of items in the array. */ items?: Schema | OpenSpecRef; /** * A free-form property to include an example of an instance for this schema. */ required?: string[]; /** * Value can be boolean or object. Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema. */ additionalProperties?: Schema | boolean; /** * Property definitions MUST be a Schema Object and not a standard JSON Schema (inline or referenced). */ properties?: OpenSpecHash<Schema>; /** * Inline or referenced schema MUST be of a [Schema Object](path_to_url#schemaObject) and not a standard JSON Schema. */ allOf?: (Schema | OpenSpecRef)[]; /** * Additional external documentation for this schema. */ example?: any; } ```
/content/code_sandbox/packages/specs/openspec/src/common/OpenSpecJsonSchema.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
1,404
```xml import { IFetchOptions, FetchClient } from '@pnp/common'; import { MockResponse } from './mockresponse'; import { MockListFactory } from './mocklistfactory'; import { LogHelper } from '@src/utilities'; export class CustomFetchClient extends FetchClient { private mockListFactory: MockListFactory = new MockListFactory(); private isUsingSharePoint: boolean; constructor(isUsingSharePoint: boolean) { super(); this.isUsingSharePoint = isUsingSharePoint; } public fetch(url: string, options: IFetchOptions): Promise<Response> { LogHelper.verbose(this.constructor.name, 'fetch', url); if (this.isUsingSharePoint === false) { url = url.replace('/#/', '/'); // deal with HashLocationStrategy when on local host return new MockResponse(this.mockListFactory).fetch(url, options); } else { return super.fetch(url, options); } } } ```
/content/code_sandbox/samples/react-pages-hierarchy/src/mocks/customfetchclient.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
205