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
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="path_to_url" tools:ignore="TypographyEllipsis,TypographyDashes">
<string name="about">Honi buruz</string>
<string name="add">Gehitu</string>
<string name="add_folder">Gehitu karpeta</string>
<string name="add_item">Gehitu elementua</string>
<string name="an_error_has_occurred">Akats bat gertatu da.</string>
<string name="back">Itzuli</string>
<string name="bitwarden">Bitwarden</string>
<string name="cancel">Ezeztatu</string>
<string name="copy">Kopiatu</string>
<string name="copy_password">Kopiatu pasahitza</string>
<string name="copy_username">Kopiatu erabiltzaile-izena</string>
<string name="credits">Kredituak</string>
<string name="delete">Ezabatu</string>
<string name="deleting">Ezabatzen...</string>
<string name="do_you_really_want_to_delete">Ziur al zaude benetan ezabatu nahi duzula? Eragiketa hau ezin da desegin!</string>
<string name="edit">Editatu</string>
<string name="edit_folder">Editatu Karpeta</string>
<string name="email">Emaila</string>
<string name="email_address">Email helbidea</string>
<string name="email_us">Bidaliguzu email bat</string>
<string name="email_us_description">Bidaliguzu email bat zuzenean laguntza lortzeko edo iruzkinak uzteko.</string>
<string name="enter_pin">Sartu PIN kodea.</string>
<string name="favorites">Gogokoak</string>
<string name="file_bug_report">Akats-txostena bidali</string>
<string name="file_bug_report_description">Ireki arazo bat gure GitHub biltegian.</string>
<string name="fingerprint_direction">Egiaztatzeko, erabili hatz-marka.</string>
<string name="folder">Karpeta</string>
<string name="folder_created">Karpeta berria sortua.</string>
<string name="folder_deleted">Karpeta ezabatu da.</string>
<string name="folder_none">Karpetarik ez</string>
<string name="folders">Karpetak</string>
<string name="folder_updated">Karpeta eguneratua.</string>
<string name="go_to_website">Joan webgunera</string>
<string name="help_and_feedback">Laguntza eta iritziak</string>
<string name="hide">Ezkutatu</string>
<string name="internet_connection_required_message">Mesedez, konektatu internetera jarraitu aurretik.</string>
<string name="internet_connection_required_title">Internet konexioa beharrezkoa da</string>
<string name="invalid_master_password">Pasahitz nagusi baliogabea. Saiatu berriro.</string>
<string name="invalid_pin">PIN baliogabea. Saiatu berriro.</string>
<string name="launch">Abiarazi</string>
<string name="log_in">Hasi saioa</string>
<string name="log_in_noun">Saio-hasiera</string>
<string name="log_out">Itxi saioa</string>
<string name="logout_confirmation">Ziur zaude saioa itxi nahi duzula?</string>
<string name="remove_account">Kendu kontua</string>
<string name="remove_account_confirmation">Ziur al zaude kontu hau kendu nahi duzula?</string>
<string name="account_already_added">Kontua gehitu da</string>
<string name="switch_to_already_added_account_confirmation">Orain aldatu nahi duzu?</string>
<string name="master_password">Pasahitz nagusia</string>
<string name="more">Gehiago</string>
<string name="my_vault">Kutxa Gotorra</string>
<string name="authenticator">Autentifikatzailea</string>
<string name="name">Izena</string>
<string name="no">Ez</string>
<string name="notes">Oharrak</string>
<string name="ok">Ados</string>
<string name="password">Pasahitza</string>
<string name="save">Gorde</string>
<string name="move">Mugitu</string>
<string name="saving">Gordetzen...</string>
<string name="settings">Ezarpenak</string>
<string name="show">Erakutsi</string>
<string name="item_deleted">Elementuaezabatu da.</string>
<string name="submit">Bidali</string>
<string name="sync">Sinkronizatu</string>
<string name="thank_you">Eskerrik asko</string>
<string name="tools">Tresnak</string>
<string name="uri">URI</string>
<string name="use_fingerprint_to_unlock">Erabili hatz-marka desblokeatzeko</string>
<string name="username">Erabiltzaile izena</string>
<string name="validation_field_required">%1$s ezinbestekoa da.</string>
<string name="value_has_been_copied">%1$s kopiatu da.</string>
<string name="verify_fingerprint">Egiaztatu hatz-marka</string>
<string name="verify_master_password">Egiaztatu pasahitz nagusia</string>
<string name="verify_pin">Egiaztatu PIN-a</string>
<string name="version">Bertsioa</string>
<string name="view">Erakutsi</string>
<string name="visit_our_website">Bisitatu gure webgunea</string>
<string name="website">Webgunea</string>
<string name="yes">Bai</string>
<string name="account">Kontua</string>
<string name="account_created">Zure kontua egina dago. Orain saioa has dezakezu.</string>
<string name="add_an_item">Gehitu elementua</string>
<string name="app_extension">Aplikazioaren gehigarria</string>
<string name="autofill_accessibility_description">Erabili Bitwarden-en erabilerraztasun zerbitzua zure saio hasierak automatikoki betetzeko aplikazio eta webguneetan zehar.</string>
<string name="autofill_service">Automatikoki betetzeko zerbitzua</string>
<string name="set_bitwarden_as_passkey_manager_description">Set Bitwarden as your passkey provider in device settings.</string>
<string name="avoid_ambiguous_characters">Saihestu karaktere anbiguoak</string>
<string name="bitwarden_app_extension">Bitwarden aplikazioaren gehigarria</string>
<string name="bitwarden_app_extension_alert2">Zure kutxa gotorrean saio hasiera berriak gehitzeko modurik errazena Bitwarden aplikazioaren gehigarria zabaltzea da. Eskuratu informazio gehiago \"Ezarpenak\" eremuan.</string>
<string name="bitwarden_app_extension_description">Erabili Bitwarden Safari-n eta beste aplikazio batzuetan zure saio hasierak automatikoki betetzeko.</string>
<string name="bitwarden_autofill_service">Bitwardenen automatikoki betetzeko zerbitzua</string>
<string name="bitwarden_autofill_accessibility_service_description">Erabili Bitwardenen erabilerraztasun zerbitzua zure saio hasierak automatikoki betetzeko.</string>
<string name="change_email">Aldatu emaila</string>
<string name="change_email_confirmation">Zure emaila alda dezakezu bitwarden.com webgunean. Orain joan nahi duzu webgunera?</string>
<string name="change_master_password">Aldatu pasahitz nagusia</string>
<string name="close">Itxi</string>
<string name="continue_text">Jarraitu</string>
<string name="create_account">Sortu kontua</string>
<string name="creating_account">Kontua sortzen...</string>
<string name="edit_item">Editatu elementua</string>
<string name="enable_automatic_syncing">Gaitu sinkronizazio automatikoa</string>
<string name="enter_email_for_hint">Sartu zure kontuko emaila pasahitz nagusiaren pista jasotzeko.</string>
<string name="exntesion_reenable">Gaitu berriro aplikazio gehigarria</string>
<string name="extension_almost_done">Ia-ia amaitua!</string>
<string name="extension_enable">Gaitu aplikazio gehigarria</string>
<string name="extension_in_safari">Safari-n, aurkitu Bitwarden konpartitzeko ikonoa erabiliz (pista: mugitu eskuinerantz menuaren beheko lerroan).</string>
<string name="extension_instant_access">Eskuratu zure pasahitzak berehala!</string>
<string name="extension_ready">Saioa hasteko prest zaude!</string>
<string name="extension_setup">Orain, saio hasierak erraz eskura daitezke Safari, Chrome eta beste aplikazio bateragarri batzuetatik.</string>
<string name="extension_setup2">Safari-n eta Chrome-en, aurkitu Bitwarden konpartitzeko ikonoa erabiliz (pista: mugitu eskuinerantz menuaren beheko lerroan).</string>
<string name="extension_tap_icon">Sakatu Bitwarden ikonoa menuan, gehigarria abiarazteko.</string>
<string name="extension_turn_on">Safari-n eta beste aplikazio batzuetan Bitwarden aktibatzeko, sakatu \"gehiago\" ikonoa menuaren beheko lerroan.</string>
<string name="favorite">Gogokoa</string>
<string name="fingerprint">Hatz-marka</string>
<string name="generate_password">Sortu pasahitza</string>
<string name="get_password_hint">Jaso zure pasahitz nagusiaren pista</string>
<string name="import_items">Inportatu elementuak</string>
<string name="import_items_confirmation">Zure elementuen inportazioa bitwarden.com webguneko kutxa gotorrean kudeatu dezakezu. Orain bisitatu nahi duzu webgunea?</string>
<string name="import_items_description">Inportatu berehala zure elementuak pasahitzak kudeatzeko beste aplikazio batzuetatik.</string>
<string name="last_sync">Azken sinkronizazioa:</string>
<string name="length">Luzera</string>
<string name="lock">Blokeatu</string>
<string name="fifteen_minutes">15 minutu</string>
<string name="one_hour">Ordu 1</string>
<string name="one_minute">Minutu 1</string>
<string name="four_hours">4 ordu</string>
<string name="immediately">Berehala</string>
<string name="vault_timeout">Kutxa gotorraren itxaronaldia</string>
<string name="vault_timeout_action">Kutxa gotorraren itxaronaldiaren ekintza</string>
<string name="vault_timeout_log_out_confirmation">Saioa ixteak kutxa gotorreko sarrera guztia kenduko du eta itxaronaldiaren ondoren lineako autentifikazioa eskatuko du. Ziur al zaude hau egin nahi duzula?</string>
<string name="logging_in">Saioa hasten...</string>
<string name="login_or_create_new_account">Saioa hasi edo sortu kontu berri bat zure kutxa gotorrera sartzeko.</string>
<string name="manage">Kudeatu</string>
<string name="master_password_confirmation_val_message">Pasahitzaren baieztapena ez da zuzena.</string>
<string name="master_password_description">Pasahitz nagusia, kutxa gotorrera sartzeko erabiltzen duzun pasahitza da. Oso garrantzitsua da ez ahaztea, ahazten baduzu, ez dago pasahitza berreskuratzeko modurik.</string>
<string name="master_password_hint">Pasahitz nagusirako pista (aukerakoa)</string>
<string name="master_password_hint_description">Pasahitz nagusia ahazten baduzu, pista batek pasahitza gogoratzen lagunduko dizu.</string>
<string name="master_password_length_val_message_x">Pasahitz nagusiak %1$s karaktere izan behar ditu gutxienez.</string>
<string name="min_numbers">Gutxieneko zenbaki kopurua</string>
<string name="min_special">Gutxieneko karaktere bereziak</string>
<string name="more_settings">Ezarpen gehiago</string>
<string name="must_log_in_main_app">Saioa hasi behar duzu Bitwarden aplikazioan, gehigarria erabili aurretik.</string>
<string name="never">Inoiz ez</string>
<string name="new_item_created">Elementu berria sortua.</string>
<string name="no_favorites">Kutxa gotorrean ez dago gogokorik.</string>
<string name="no_items">Kutxa gotorrean ez dago elementurik.</string>
<string name="no_items_tap">Kutxa gotorrean ez dago elementurik webgune/aplikazio honentzat. Sakatu bat gehitzeko.</string>
<string name="no_username">No Username</string>
<string name="no_username_password_configured">Saio hasiera honek ez du ezarritako erabiltzaile izen edo pasahitzik.</string>
<string name="ok_got_it">Ongi, aurrera!</string>
<string name="option_defaults">Aukera lehenetsiak Bitwarden aplikazioaren pasahitzak sortzeko ataletik ezartzen dira.</string>
<string name="options">Aukerak</string>
<string name="other">Bestelakoak</string>
<string name="password_generated">Pasahitza sortua.</string>
<string name="password_generator">Pasahitz sortzailea</string>
<string name="password_hint">Pasahitza gogoratzeko pista</string>
<string name="password_hint_alert">Mezu elektroniko bat bidali dizugu zure pasahitz nagusiaren pistarekin.</string>
<string name="password_override_alert">Ziur al zaude pasahitza berridatzi nahi duzula?</string>
<string name="push_notification_alert">Bitwardenek automatikoki sinkronizatzen du kutxa gotorra, push jakinarazpenak erabiliz. Ahalik eta esperientziarik onena lortzeko, hautatu \"Baimendu\" hurrengo jakinarazpenean, push jakinarazpenak gaitzeko eskatzen zaizunean.</string>
<string name="rate_the_app">Baloratu aplikazioa</string>
<string name="rate_the_app_description">Mesedez, aipu on batekin lagundu!</string>
<string name="regenerate_password">Berrezarri pasahitza</string>
<string name="retype_master_password">Idatzi berriro pasahitz nagusia</string>
<string name="search_vault">Kutxa Gotorrean bilatu</string>
<string name="security">Segurtasuna</string>
<string name="select">Hautatu</string>
<string name="set_pin">Ezarri PIN-a</string>
<string name="set_pin_direction">Sartu 4 digituko PIN kode bat aplikazioa desblokeatzeko.</string>
<string name="item_information">Elementuaren informazioa</string>
<string name="item_updated">Elementua eguneratu da.</string>
<string name="submitting">Bidaltzen...</string>
<string name="syncing">Sinkronizatzen...</string>
<string name="syncing_complete">Sinkronizatu da.</string>
<string name="syncing_failed">Sinkronizazioak huts egin du.</string>
<string name="sync_vault_now">Sinkronizatu kutxa gotorra orain</string>
<string name="touch_id">Touch ID</string>
<string name="two_step_login">Bi urratseko saio hasiera</string>
<string name="unlock_with">%1$s-arekin desblokeatu</string>
<string name="unlock_with_pin">PIN kodearekin desblokeatu</string>
<string name="validating">Baliozkotzen</string>
<string name="verification_code">Egiaztatze-kodea</string>
<string name="view_item">Bistaratu elementua</string>
<string name="web_vault">Bitwarden kutxa gotorra</string>
<string name="lost_2fa_app">Autentifikazio aplikazioa galdu duzu?</string>
<string name="items">Elementuak</string>
<string name="extension_activated">Gehigarria gaitu da!</string>
<string name="icons">Ikonoak</string>
<string name="translations">Itzulpenak</string>
<string name="items_for_uri">%1$s-entzako elementuak</string>
<string name="no_items_for_uri">Kutxa gotorrean ez dago elementurik %1$s-entzako.</string>
<string name="bitwarden_autofill_service_overlay">Sarrera-eremu bat hautatu eta Bitwardenen automatikoki betetzerako gainjartze bat ikusten duzunean, bere kasa betetzeko erabil dezakezu.</string>
<string name="bitwarden_autofill_service_notification_content">Sakatu jakinarazpen hau kutxa gotorreko elementu bat automatikoki betetzeko.</string>
<string name="bitwarden_autofill_service_open_accessibility_settings">Ireki erabilerraztasun ezarpenak</string>
<string name="bitwarden_autofill_service_step1">1. Androiderako erabilerraztasun ezarpenetan, sakatu \"Bitwarden\" zerbitzuetan.</string>
<string name="bitwarden_autofill_service_step2">2. Gaitu eta sakatu OK onartzeko.</string>
<string name="disabled">Desgaitua</string>
<string name="enabled">Gaituta</string>
<string name="off" tools:override="true">Itzalita</string>
<string name="on" tools:override="true">Piztuta</string>
<string name="status">Egoera</string>
<string name="bitwarden_autofill_service_alert2">Zure kutxa gotorrean saio hasiera berriak gehitzeko modurik errazena Bitwardenen automatikoki betetzeko zerbitzua erabiltzea da. Eskuratu informazio gehiago \"Ezarpenak\" eremuan.</string>
<string name="autofill">Automatikoki betetzea</string>
<string name="autofill_or_view">Elementu hau ikusi edo automatikoki bete nahi duzu?</string>
<string name="bitwarden_autofill_service_match_confirm">Ziur al zaude elementu hau automatikoki bete nahi duzula? Ez dago kointzidentzia osorik %1$s\"-entzat.</string>
<string name="matching_items">Kointzidentzia duten elementuak</string>
<string name="possible_matching_items">Kointzidentzia posible bat duten elementuak</string>
<string name="search">Bilatu</string>
<string name="bitwarden_autofill_service_search">\"%1$s\"-entzat automatikoki betetzeko elementu baten bila zabiltza.</string>
<string name="learn_org">Erakundeak ezagutu</string>
<string name="cannot_open_app">Ezin da \"%1$s\" aplikazioa ireki.</string>
<string name="authenticator_app_title">Autentifikazio aplikazioa</string>
<string name="enter_verification_code_app">Sartu zure autentifikazio aplikazioaren 6 digituko egiaztatze-kodea.</string>
<string name="enter_verification_code_email">Sartu %1$s-era bidalitako 6 digituko egiaztatze-kodea.</string>
<string name="login_unavailable">Ez dago eskuragarri saio-hasierarik</string>
<string name="no_two_step_available">Kontu honek bi urratseko saio hasiera du gaituta, baina ezarritako bi urratsen hornitzaileak ez dira gailu honetan bateragarriak. Mesedez, erabili gailu bateragarri bat eta/edo gehitu beste hornitzaile bat, gailu guztietan bateragarriago direnak (adibidez, autentifikazio aplikazio bat).</string>
<string name="recovery_code_title">Berreskuratze-kodea</string>
<string name="remember_me">Gogora nazazu</string>
<string name="send_verification_code_again">Berbidali email bidezko egiaztatze-kodea</string>
<string name="two_step_login_options">Bi urratseko saio hasieraren aukerak</string>
<string name="use_another_two_step_method">Erabili bi urratseko saio hasierarako beste modu bat</string>
<string name="verification_email_not_sent">Ezin izan da egiaztatze-emailik bidali. Saiatu berriro.</string>
<string name="verification_email_sent">Egiaztatze-emaila bidali da.</string>
<string name="yubi_key_instruction">Aurrera egiteko, mantendu zure NEO YubiKey gailuaren atzeko aldean edo sartu YubiKey zure gailuaren USB atakan. Ondoren, sakatu botoia.</string>
<string name="yubi_key_title">YubiKey segurtasun-gakoa</string>
<string name="add_new_attachment">Gehitu eranskin berria</string>
<string name="attachments">Eranskinak</string>
<string name="unable_to_download_file">Ezin da fitxategia deskargatu.</string>
<string name="unable_to_open_file">Zure gailuak ezin du fitxategi mota hau ireki.</string>
<string name="downloading">Deskargatzen...</string>
<string name="attachment_large_warning">Eranskin honek %1$s-eko tamaina du. Ziur al zaude zure gailuan deskargatu nahi duzula?</string>
<string name="authenticator_key">Autentifikazio-gakoa (TOTP)</string>
<string name="verification_code_totp">Egiaztatze-kodea (TOTP)</string>
<string name="authenticator_key_added">Autentifikazio-gakoa gehitu da.</string>
<string name="authenticator_key_read_error">Ezin da autentifikazio-gakoa irakurri.</string>
<string name="point_your_camera_at_the_qr_code">Apuntatu zure kamera QR kodera. Eskaneatzea automatikoki egingo da.</string>
<string name="scan_qr_title">Eskaneatu QR kodea</string>
<string name="camera">Kamera</string>
<string name="photos">Argazkiak</string>
<string name="copy_totp">Kopiatu TOTP-a</string>
<string name="copy_totp_automatically_description">Saio hasiera batek autentifikazio-gakoa badu, TOTP egiaztatze-kodea arbelean automatikoki kopiatuko da saio hasiera bat automatikoki betetzean.</string>
<string name="copy_totp_automatically">Kopiatu TOTP automatikoki</string>
<string name="premium_required">Premium bazkidetza beharrezkoa da ezaugarri hau erabiltzeko.</string>
<string name="attachement_added">Eranskina gehitu da</string>
<string name="attachment_deleted">Eranskina ezabatu da</string>
<string name="choose_file">Hautatu fitxategia</string>
<string name="file">Fitxategia</string>
<string name="no_file_chosen">Ez da fitxategirik hautatu</string>
<string name="no_attachments">Ez dago eranskinik.</string>
<string name="file_source">Fitxategiaren iturria</string>
<string name="feature_unavailable">Ezaugarria ez dago erabilgarri</string>
<string name="max_file_size">Eranskinaren gehienezko tamaina 100MB.</string>
<string name="update_key">Ezin duzu ezaugarri hau erabili zifratze-gakoa eguneratu arte.</string>
<string name="encryption_key_migration_required_description_long">Encryption key migration required. Please login through the web vault to update your encryption key.</string>
<string name="learn_more">Gehiago ezagutu</string>
<string name="api_url">API zerbitzariaren URL-a</string>
<string name="custom_environment">Ingurune pertsonalizatua</string>
<string name="custom_environment_footer">Erabiltzaile aurreratuentzat. Zerbitzu bakoitzarentzako oinarrizko URL-a zehaztu dezakezu independienteki.</string>
<string name="environment_saved">Inguruneko URL-ak gorde dira.</string>
<string name="formatted_incorrectly">%1$s ez dago behar bezala formateatuta.</string>
<string name="identity_url">Identitate zerbitzariaren URL-a</string>
<string name="self_hosted_environment">Ostatze ingurune propioa</string>
<string name="self_hosted_environment_footer">Bitwarden instalatzeko, zehaztu ostatatze propioaren oinarrizko URL-a.</string>
<string name="server_url">Zerbitzariaren URL-a</string>
<string name="web_vault_url">Web kutxa gotorreko zerbitzariaren URL-a</string>
<string name="bitwarden_autofill_service_notification_content_old">Sakatu jakinarazpen hau kutxa gotorreko elementu bat ikusteko.</string>
<string name="custom_fields">Eremu pertsonalizatuak</string>
<string name="copy_number">Kopiatu zenbakia</string>
<string name="copy_security_code">Kopiatu segurtasun-kodea</string>
<string name="number">Zenbakia</string>
<string name="security_code">Segurtasun-kodea</string>
<string name="type_card">Txartela</string>
<string name="type_identity">Identitatea</string>
<string name="type_login">Saio-hasiera</string>
<string name="type_secure_note">Ohar seguruak</string>
<string name="address1">1go helbidea</string>
<string name="address2">2. helbidea</string>
<string name="address3">3. helbidea</string>
<string name="april">Apirila</string>
<string name="august">Abuztua</string>
<string name="brand">Marka</string>
<string name="cardholder_name">Txartelaren titularraren izena</string>
<string name="city_town">Hiria / Herria</string>
<string name="company">Enpresa</string>
<string name="country">Herrialdea</string>
<string name="december">Abendua</string>
<string name="dr">Jn.</string>
<string name="expiration_month">Iraungitze hilabetea</string>
<string name="expiration_year">Iraungitze urtea</string>
<string name="february">Otsaila</string>
<string name="first_name">Izena</string>
<string name="january">Urtarrila</string>
<string name="july">Uztaila</string>
<string name="june">Ekaina</string>
<string name="last_name">Abizena</string>
<string name="full_name">Izen osoa</string>
<string name="license_number">Lizentzia zenbakia</string>
<string name="march">Martxoa</string>
<string name="may">Maiatza</string>
<string name="middle_name">Bigarren izena</string>
<string name="mr">Jn.</string>
<string name="mrs">And.</string>
<string name="ms">And.</string>
<string name="mx">Mx</string>
<string name="november">Azaroa</string>
<string name="october">Urria</string>
<string name="passport_number">Pasaporte zenbakia</string>
<string name="phone">Telefonoa</string>
<string name="september">Iraila</string>
<string name="ssn">Segurtasun sozialaren zenbakia</string>
<string name="state_province">Estatua / Probintzia</string>
<string name="title">Titulua</string>
<string name="zip_postal_code">Posta kodea</string>
<string name="address">Helbidea</string>
<string name="expiration">Iraungitze data</string>
<string name="show_website_icons">Erakutsi webguneko ikonoak</string>
<string name="show_website_icons_description">Erakutsi irudi bat saio-hasiera bakoitzaren ondoan.</string>
<string name="icons_url">Ikonoen zerbitzariaren URL-a</string>
<string name="autofill_with_bitwarden">Bitwardenekin automatikoki bete</string>
<string name="vault_is_locked">Kutxa gotorra blokeatuta dago</string>
<string name="go_to_my_vault">Joan kutxa gotorrera</string>
<string name="collections">Bildumak</string>
<string name="no_items_collection">Bilduma honetan ez dago elementurik.</string>
<string name="no_items_folder">Karpeta honetan ez dago elementurik.</string>
<string name="no_items_trash">Zakarrontzian ez dago elementurik.</string>
<string name="autofill_accessibility_service">Automatikoki betetzeko erabilerraztasun zerbitzua</string>
<string name="autofill_service_description">Bitwardenen automatikoki betetzeko zerbitzuak Android Autofill Framework erabiltzen du zure gailuko beste aplikazio batzuetan saio-hasierako informazioa betetzen laguntzeko.</string>
<string name="bitwarden_autofill_service_description">Erabili Bitwarden automatikoki betetzeko zerbitzua saio-hasierako informazioa beste aplikazio batzuetan betetzeko.</string>
<string name="bitwarden_autofill_service_open_autofill_settings">Ireki auto-betetze ezarpenak</string>
<string name="face_id">Face ID</string>
<string name="face_id_direction">Egiaztatzeko erabili Face ID.</string>
<string name="use_face_id_to_unlock">Desblokeatzeko erabili Face ID.</string>
<string name="verify_face_id">Egiaztatu Face ID.</string>
<string name="windows_hello">Windows Hello</string>
<string name="bitwarden_credential_provider_go_to_settings">We were unable to automatically open the Android credential provider settings menu for you. You can navigate to the credential provider settings menu manually from Android Settings > System > Passwords & accounts > Passwords, passkeys and data services.</string>
<string name="bitwarden_autofill_go_to_settings">Ezin izan dugu automatikoki ireki Android-en auto-betetzerako ezarpenen menua. Auto-betetzerako ezarpenen menura eskuz nabiga dezakezu, Android-en Ezarpenak > Sistema > Hizkuntzak eta idazketa > Hobespen aurreratuak > Betetze automatikoaren zerbitzutik.</string>
<string name="custom_field_name">Eremu pertsonalizatuaren izena</string>
<string name="field_type_boolean">Boolearra</string>
<string name="field_type_hidden">Ezkutatua</string>
<string name="field_type_linked">Lotuta</string>
<string name="field_type_text">Testua</string>
<string name="new_custom_field">Eremu pertsonalizatu berria</string>
<string name="select_type_field">Zein eremu pertsonalizatu mota gehitu nahi duzu?</string>
<string name="remove">Ezabatu</string>
<string name="new_uri">URI berria</string>
<string name="uri_position">URI %1$s</string>
<string name="base_domain">Oinarrizko domeinua</string>
<string name="default_text">Lehenetsia</string>
<string name="exact">Zehatza</string>
<string name="host">Ostalaria</string>
<string name="reg_ex">Expresio erregularra</string>
<string name="starts_with">Hasi honekin</string>
<string name="uri_match_detection">URI detekzio modua</string>
<string name="match_detection">Detekzio modua</string>
<string name="yes_and_save">Bai, eta gorde</string>
<string name="autofill_and_save">Automatikoki bete eta gorde</string>
<string name="organization">Erakundea</string>
<string name="hold_yubikey_near_top">Mantendu Yubikey gailuaren goiko aldetik gertu.</string>
<string name="try_again">Saiatu berriro</string>
<string name="yubi_key_instruction_ios">Aurrera egiteko, mantendu YubiKey NEO gailuaren atzeko aldean.</string>
<string name="bitwarden_autofill_accessibility_service_description2">Erabilerraztasun zerbitzua erabilgarria izan daiteke aplikazioak bere kabuz automatikoki betetzeko zerbitzu estandarra jasaten ez dutenean.</string>
<string name="date_password_updated">Pasahitza eguneratu da</string>
<string name="date_updated">Eguneratua</string>
<string name="autofill_activated">Auto-betetzea gaituta!</string>
<string name="must_log_in_main_app_autofill">Saioa hasi behar duzu Bitwarden aplikazioan, auto-betetzea erabili aurretik.</string>
<string name="autofill_setup">Orain, zure saio hasierak erraz eskura ditzakezu zure teklatutik, aplikazio eta webguneetan erregistratzen diren bitartean.</string>
<string name="autofill_setup2">Ezarpenak atalean auto-betetze aplikazioak desaktibatzea gomendatzen dugu, erabili nahi ez badituzu.</string>
<string name="bitwarden_autofill_description">Sartu kutxa gotorrera zuzenean teklatutik, pasahitzak azkar auto-betetzeko.</string>
<string name="autofill_turn_on">Zure gailuan pasahitza automatikoki betetzeko aukera gaitzeko, jarraitu jarraibide hauei:</string>
<string name="autofill_turn_on1">1. Joan iOS \"Ezarpenak\" aplikaziora</string>
<string name="autofill_turn_on2">2. Sakatu \"Pasahitzak\"</string>
<string name="autofill_turn_on3">3. Sakatu \"Pasahitzak automatikoki bete\"</string>
<string name="autofill_turn_on4">4. Piztu Automatikoki bete</string>
<string name="autofill_turn_on5">5. Hautatu \"Bitwarden\"</string>
<string name="password_autofill">Pasahitza automatikoki bete</string>
<string name="bitwarden_autofill_alert2">Zure kutxa gotorrean saio hasiera berriak gehitzeko modurik errazena Bitwarden pasahitzak auto-betetzea gehigarria erabiltzea da. Eskuratu Bitwarden pasahitzak auto-betetzea gehigarriaren erabilerari buruzko informazio gehiago \"Ezarpenak\" eremuan.</string>
<string name="invalid_email">Email helbide baliogabea.</string>
<string name="cards">Txartelak</string>
<string name="identities">Identitateak</string>
<string name="logins">Saio-hasierak</string>
<string name="secure_notes">Ohar seguruak</string>
<string name="all_items">Elementu guztiak</string>
<string name="ur_is">URI-ak</string>
<string name="checking_password">Pasahitza egiaztatzen...</string>
<string name="check_password">Egiaztatu pasahitza konprometituta dagoen.</string>
<string name="password_exposed">Pasahitz hau %1$s aldiz datu-iragazketetan aurkitu da. Aldatu egin beharko zenuke.</string>
<string name="password_safe">Pasahitz hau ez da inongo datu-filtrazio ezagunetan aurkitu. Erabiltzea segurua izan beharko luke.</string>
<string name="identity_name">Identitate izena</string>
<string name="value">Balioa</string>
<string name="password_history">Pasahitz historia</string>
<string name="types">Motak</string>
<string name="no_passwords_to_list">Ez dago erakusteko pasahitzik.</string>
<string name="no_items_to_list">Ez dago erakusteko elementurik.</string>
<string name="search_collection">Bilatu bilduma</string>
<string name="search_file_sends">Fitxategi Send-ak bilatu</string>
<string name="search_text_sends">Testu Send-ak bilatu</string>
<string name="search_group">Bilatu %1$s</string>
<string name="type">Mota</string>
<string name="move_down">Mugitu behera</string>
<string name="move_up">Mugitu gora</string>
<string name="miscellaneous">Bestelakoak</string>
<string name="ownership">Jabetza</string>
<string name="who_owns_this_item">Nork du elementu hau?</string>
<string name="no_collections_to_list">Ez dago erakusteko bildumarik.</string>
<string name="moved_item_to_org">%1$s %2$s-era mugitu da.</string>
<string name="item_shared">Elementuapartekatu da.</string>
<string name="select_one_collection">Gutxienez bilduma bat aukeratu behar duzu.</string>
<string name="share">Partekatu</string>
<string name="share_item">Partekatu elementua</string>
<string name="move_to_organization">Mugitu erakundera</string>
<string name="no_orgs_to_list">Ez dago erakunderik erakusteko.</string>
<string name="move_to_org_desc">Aukeratu elementu hau zein erakundetara eraman nahi duzun. Erakunde batera pasatzeak elementuaren jabetza erakunde horretara transferitzen du. Zu ez zara elementu honen jabe zuzena izango mugitzen duzunean.</string>
<string name="number_of_words">Hitz kopurua</string>
<string name="passphrase">Pasaesaldia</string>
<string name="word_separator">Hitz banatzailea</string>
<string name="clear">Ezabatu</string>
<string name="generator">Sortzailea</string>
<string name="no_folders_to_list">Ez dago erakusteko karpetarik.</string>
<string name="fingerprint_phrase">Hatz-marka digitalaren esaldia</string>
<string name="your_accounts_fingerprint">Zure kontuaren hatz-marka digitalaren esaldia</string>
<string name="learn_org_confirmation">Bitwardek kutxa gotorreko elementuak beste batzuekin partekatzeko aukera ematen dizu erakunde kontu bat erabiliz. Gehiago jakiteko, bitwarden.com webgunea bisitatu nahi duzu?</string>
<string name="export_vault">Esportatu kutxa gotorra</string>
<string name="lock_now">Blokeatu orain</string>
<string name="pin">PIN-a</string>
<string name="unlock">Desblokeatu</string>
<string name="unlock_vault">Desblokeatu kutxa gotorra</string>
<string name="thirty_minutes">30 minutu</string>
<string name="set_pin_description">Ezarri zure PIN kodea Bitwarden desblokeatzeko. Zure PIN-aren konfigurazioa berrezarriko da, noizbait aplikaziotik erabat saioa ixten baduzu.</string>
<string name="logged_in_as_on">%2$s-en %1$s bezala saioa hasita.</string>
<string name="vault_locked_master_password">Zure kutxa gotorra blokeatuta dago. Egiaztatu zure pasahitz nagusia jarraitzeko.</string>
<string name="vault_locked_pin">Zure kutxa gotorra blokeatuta dago. Egiaztatu zure PIN kodea jarraitzeko.</string>
<string name="vault_locked_identity">Zure kutxa gotorra blokeatuta dago. Egiaztatu zure identitatea jarraitzeko.</string>
<string name="dark">Iluna</string>
<string name="light">Argia</string>
<string name="five_minutes">5 minutu</string>
<string name="ten_seconds">10 segundu</string>
<string name="thirty_seconds">30 segundu</string>
<string name="twenty_seconds">20 segundu</string>
<string name="two_minutes">2 minutu</string>
<string name="clear_clipboard">Hustu arbela</string>
<string name="clear_clipboard_description">Ezabatu automatikoki arbelean kopiatutako balioak.</string>
<string name="default_uri_match_detection">Lehenetsitako detekzioa URI kointzidentziarako</string>
<string name="default_uri_match_detection_description">Hautatu automatikoki betetzean erabiliko den URI kointzidentzia detektatzeko modu lehenetsia.</string>
<string name="theme">Gaia</string>
<string name="theme_description">Aldatu aplikaziorako kolore gaia.</string>
<string name="theme_default">Lehenetsia (Sistema)</string>
<string name="default_dark_theme">Lehehetsia gai iluna</string>
<string name="copy_notes">Kopiatu oharra</string>
<string name="exit">Irten</string>
<string name="exit_confirmation">Zihur al zaude Bitwardenetik irten nahi duzula?</string>
<string name="pin_require_master_password_restart">Aplikazioa berrabiarazten denean, pasahitz nagusiarekin desblokeatu nahi duzu?</string>
<string name="black">Beltza</string>
<string name="nord">Nord</string>
<string name="solarized_dark">Solarized iluna</string>
<string name="autofill_blocked_uris">Automatikoki bete blokeatutako URI-ak</string>
<string name="ask_to_add_login">Galdetu saio-hasiera gehitzeko</string>
<string name="ask_to_add_login_description">Elementu bat gehitu nahi duzun galdetu, elementu hau zure kutxa gotorrean ez badago.</string>
<string name="on_restart">Aplikazioa berrabiarazten denean</string>
<string name="autofill_service_not_enabled">Automatikoki betetzeak Bitwardenen kutxa gotorra segurtasunez erabiltzeko aukera ematen du beste webgune eta aplikazio batzuetatik. Badirudi ez duzula Bitwardenentzat automatikoki betetzeko zerbitzurik jarri. \"Ezarpenak\" atalean gaitu dezakezu.</string>
<string name="theme_applied_on_restart">Aplikazioa berrabiarazten denean aplikatuko dira gai aldaketak.</string>
<string name="capitalize">Hasierako letra larria</string>
<string name="include_number">Sartu zenbakia</string>
<string name="download">Deskargatu</string>
<string name="shared">Partekatua</string>
<string name="toggle_visibility">Txandakatu ikusgarritasuna</string>
<string name="login_expired">Saioa amaitu da.</string>
<string name="biometrics_direction">Autentifikazio biometrikoa</string>
<string name="biometrics">Biometriak</string>
<string name="use_biometrics_to_unlock">Erabili biometria desblokeatzeko</string>
<string name="accessibility_overlay_permission_alert">Bitwardenek laguntza behar du - Kontsultatu Bitwarden ezarpenetan \"automatikoki betetzeko erabilerraztasun zerbitzua\"</string>
<string name="bitwarden_autofill_service_overlay_permission">3. Bitwarden aplikazioko Androiden konfigurazioa pantailan, joan \"Erakutsi beste aplikazio batzuetan\" aukerara (Aurreratua) eta gaitu gainjartzea.</string>
<string name="overlay_permission">Baimena</string>
<string name="bitwarden_autofill_service_open_overlay_permission_settings">Ireki gainjartze baimenaren ezarpenak</string>
<string name="bitwarden_autofill_service_step3">3. Bitwarden aplikazioko Androiden konfigurazioa pantailan, aukeratu \"Erakutsi beste aplikazio batzuetan\" aukera (Aurreratua) eta gaitu gainjartzea.</string>
<string name="denied">Ukatua</string>
<string name="granted">Eman da</string>
<string name="file_format">Fitxategiaren formatua</string>
<string name="export_vault_master_password_description">Sartu pasahitz nagusia kutxa gotorreko datuak esportatzeko.</string>
<string name="send_verification_code_to_email">Bidali egiaztatze-kodea zure emailera</string>
<string name="code_sent">Kodea bidalia!</string>
<string name="confirm_your_identity">Jarraitzeko, berretsi zure identitatea.</string>
<string name="export_vault_warning">Esportazio honek kutxa gotorraren datuak zifratu gabeko formatuan biltzen ditu. Ez zenuke gorde edo kanal ez-seguruetaik (emaila, adibidez) bidali behar. Erabili eta berehala ezabatu.</string>
<string name="export_vault_file_pw_protect_info">This file export will be password protected and require the file password to decrypt.</string>
<string name="export_vault_confirmation_title">Baieztatu kutxa gotorra esportatzea</string>
<string name="warning">Kontuz</string>
<string name="export_vault_failure">Kutxa gotorra esportatzean arazo bat izan da. Arazoak bere horretan jarraitzen badu, kutxa gotorretik esportatu beharko duzu.</string>
<string name="export_vault_success">Kutxa gotorra ongi esportatu da</string>
<string name="clone">Klonatu</string>
<string name="password_generator_policy_in_effect">Erakundeko politika batek edo gehiagok sortzailearen konfigurazioari eragiten diote</string>
<string name="open">Ireki</string>
<string name="unable_to_save_attachment">Arazo bat egon da eranskin hau atxikitzean. Arazoak bere horretan jarraitzen badu, webguneko kutxa gotorretik atxiki dezakezu.</string>
<string name="save_attachment_success">Eranskina ondo atxiki da</string>
<string name="autofill_tile_accessibility_required">Mesedez, gaitu Bitwardeneko ezarpenetan \"automatikoki betetzeko erabilerraztasun zerbitzua\", automatikoki betetzea erabiltzeko.</string>
<string name="autofill_tile_uri_not_found">Ez da pasahitz eremurik detektatu</string>
<string name="soft_deleting">Zakarrontzira bidaltzen...</string>
<string name="item_soft_deleted">Elementua zakarrontzira bidali da.</string>
<string name="restore">Berreskuratu</string>
<string name="restoring">Berreskuratzen...</string>
<string name="item_restored">Elementuaberreskuratu da.</string>
<string name="trash">Zakarrontzia</string>
<string name="search_trash">Bilatu zakarrontzian</string>
<string name="do_you_really_want_to_permanently_delete_cipher">Ziur al zaude betirako ezabatu nahi duzula? Eragiketa hau ezin da desegin.</string>
<string name="do_you_really_want_to_restore_cipher">Ziur al zaude elementu hau berreskuratu nahi duzula?</string>
<string name="do_you_really_want_to_soft_delete_cipher">Ziur zaude elementu hau zakarrontzira bidali nahi duzula?</string>
<string name="account_biometric_invalidated">Desblokeatze biometrikoa desgaituta dago kontu honentzat, pasahitz nagusia egiaztatzeko zain.</string>
<string name="account_biometric_invalidated_extension">Desblokeatze biometriko automatikoa desgaituta dago kontu honentzat, pasahitz nagusia egiaztatzeko zain.</string>
<string name="enable_sync_on_refresh">Gaitu eguneratzean sinkronizatzea</string>
<string name="enable_sync_on_refresh_description">Sinkronizatu kutxa gotorra beherantz arrastatzeko keinuarekin.</string>
<string name="log_in_sso">Enpresentzako saio hasiera bakarra (SSO)</string>
<string name="log_in_sso_summary">Hasi saioa zure erakundeko atari bakarra erabiliz. Sartu zure erakundearen identifikatzailea hasteko.</string>
<string name="org_identifier">Erakundearen identifikatzailea</string>
<string name="login_sso_error">Une honetan SSO-rekin saioa hastea ez dago gaituta</string>
<string name="set_master_password">Ezarri pasahitz nagusia</string>
<string name="set_master_password_summary">SSO-rekin saioa hasteko, mesedez, ezarri pasahitz nagusi bat kutxa gotorrera sartu eta babesteko.</string>
<string name="master_password_policy_in_effect">Erakundeko politika batek edo gehiagok pasahitz nagusia behar dute baldintza hauek betetzeko:</string>
<string name="policy_in_effect_min_complexity">%1$s-en gutxieneko konplexutasun puntuazioa</string>
<string name="policy_in_effect_min_length">Gutxienezko luzera %1$s da</string>
<string name="policy_in_effect_uppercase">Karaktere larri bat edo gehiago edukitzea</string>
<string name="policy_in_effect_lowercase">Karaktere txiki bat edo gehiago edukitzea</string>
<string name="policy_in_effect_numbers">Zenbaki bat edo gehiago edukitzea</string>
<string name="policy_in_effect_special">Karaktere berezi hauetako %1$s bat edo gehiago edukitzea</string>
<string name="master_password_policy_validation_title">Pasahitzak ez du balio</string>
<string name="master_password_policy_validation_message">Pasahitzak ez ditu erakundearen baldintzak betetzen. Mesedez, berrikusi politika eta saiatu berriro.</string>
<string name="loading">Kargatzen</string>
<string name="accept_policies">Gaitzean, honakoa onartzen duzu:</string>
<string name="accept_policies_error">Zerbitzuaren baldintzak eta pribatutasun politika ez dira onartu.</string>
<string name="terms_of_service">Zerbitzuaren baldintzak</string>
<string name="privacy_policy">Pribatutasun politika</string>
<string name="accessibility_draw_over_permission_alert">Bitwardenek laguntza behar du - Gainjartzea gaitu behar duzu Bitwarden ezarpenetako \"automatikoki betetzeko zerbitzua\"-n</string>
<string name="passkey_management">Passkey management</string>
<string name="autofill_services">Automatikoki betetzeko zerbitzuak</string>
<string name="inline_autofill">Erabili lineako auto-betetzea</string>
<string name="inline_autofill_description">Erabili teklatuko lerroko automatikoki betetzea, hautatutako IME-ak (teklatua) onartzen badu. Ezarpenak ez badira bateragarriak (edo aukera hau desgaituta badago), automatikoki betetzeko gainjartzea erabiliko da lehenespenez.</string>
<string name="accessibility">Erabili erabilerraztasuna</string>
<string name="accessibility_description">Erabili Bitwarden erabilerraztasun zerbitzua zure saio hasierak aplikazioen eta webgunearen bidez automatikoki betetzeko. Gaituta dagoenean, popup bat agertuko da saio-hasierako eremuak hautatzean.</string>
<string name="accessibility_description2">Erabili Bitwarden erabilerraztasun zerbitzua zure saio hasierak aplikazioen eta webgunearen bidez automatikoki betetzeko. (Gainjartzeak gaituta egon behar du)</string>
<string name="accessibility_description3">Erabili Bitwarden erabilerraztasun zerbitzua auto-betetze ekintza azkarreko mosaikoa erabiltzeko eta/edo erakutsi popup bat gainjartzea erabiliz (gaituta badago).</string>
<string name="accessibility_description4">Ekintza azkarreko mosaikoa erabili behar da auto-betetzerako, edo auto-betetze zerbitzua hobetu, gainjartzea erabiliz (gaituta badago).</string>
<string name="draw_over">Erabili gainjartzea</string>
<string name="draw_over_description">Gaituta dagoenean, Bitwarden erabilerraztasun zerbitzuari popup bat erakusteko aukera ematen dio sarbide eremuak hautatzean.</string>
<string name="draw_over_description2">Gaituta badago, Bitwarden erabilerraztasun zerbitzuak popup bat erakutsiko du saio-hasierako eremuak hautatzen direnean, saio hasierak automatikoki betetzen laguntzeko.</string>
<string name="draw_over_description3">Gaituz gero, Android-en auto-betetze Framework-arekin bateragarri ez diren aplikazio zaharragoen auto-betetze zerbitzua handitzeko popup bat erakutsiko du erabilerraztasunak.</string>
<string name="personal_ownership_submit_error">Erakundeko politika bat dela eta, ezin dituzu elementuak zure kutxa gotor pertsonalean gorde. Aldatu jabe aukera erakunde aukera batera, eta aukeratu bilduma erabilgarrien artean.</string>
<string name="personal_ownership_policy_in_effect">Erakunde politika batek, jabetza aukerei eragiten die.</string>
<string name="send">Send</string>
<string name="all_sends">Send guztiak</string>
<string name="sends">Send-ak</string>
<string name="name_info">Send hau deskribatzeko izena.</string>
<string name="text">Testua</string>
<string name="type_text">Testua</string>
<string name="type_text_info">Bidali nahi duzun testua.</string>
<string name="hide_text_by_default">Send-era sartzean, ezkutatu testua modu lehenetsian</string>
<string name="type_file">Fitxategia</string>
<string name="type_file_info">Bidali nahi duzun fitxategia.</string>
<string name="file_type_is_selected">Fitxategi mota hautatu da.</string>
<string name="file_type_is_not_selected">Fitxategi mota ez da hautatu, sakatu hautatzeko.</string>
<string name="text_type_is_selected">Testu mota hautatu da.</string>
<string name="text_type_is_not_selected">Testu mota ez da hautatu, sakatu hautatzeko.</string>
<string name="deletion_date">Ezabatze data</string>
<string name="deletion_time">Ezabatutako unea</string>
<string name="deletion_date_info">Send-a betiko ezabatuko da zehaztutako datan eta orduan.</string>
<string name="pending_delete">Ezabatzea egiteke</string>
<string name="expiration_date">Iraungitze data</string>
<string name="expiration_time">Iraungitze unea</string>
<string name="expiration_date_info">Hala ezartzen bada, Send honetarako sarbidea zehaztutako egunean eta orduan amaituko da.</string>
<string name="expired">Iraungita</string>
<string name="maximum_access_count">Sarbide kopuru maximoa</string>
<string name="maximum_access_count_info">Hala ezartzen bada, erabiltzaileak ezin izango dira Send honetara sartu gehienezko sarbide kopurura iritsi ondoren.</string>
<string name="maximum_access_count_reached">Sarbide kopuru maximoa gaindituta</string>
<string name="current_access_count">Uneko sarbide kopurua</string>
<string name="new_password">Pasahitz berria</string>
<string name="password_info">Nahi izanez gero, pasahitza eskatu erabiltzaileak Send honetara sar daitezen.</string>
<string name="remove_password">Kendu pasahitza</string>
<string name="are_you_sure_remove_send_password">Ziur al zaude pasahitz hau ezabatu nahi duzula?</string>
<string name="removing_send_password">Pasahitza kentzen</string>
<string name="send_password_removed">Pasahitza kendu da.</string>
<string name="notes_info">Send honi buruzko ohar pribatuak.</string>
<string name="disable_send">Desgaitu Send hau inor sar ez dadin</string>
<string name="no_sends">Zure kontuan ez dago Send-ik.</string>
<string name="add_a_send">Gehitu Send-a</string>
<string name="copy_link">Kopiatu esteka</string>
<string name="share_link">Partekatu esteka</string>
<string name="send_link">Send esteka</string>
<string name="search_sends">Send-ak bilatu</string>
<string name="edit_send">Editatu Send-a</string>
<string name="add_send">Gehitu Send-a</string>
<string name="are_you_sure_delete_send">Ziur al zaude Send hau ezabatu nahi duzula?</string>
<string name="send_deleted">Send-aezabatu da.</string>
<string name="send_updated">Send-a eguneratu da.</string>
<string name="new_send_created">Send berria sortua.</string>
<string name="one_day">Egun 1</string>
<string name="two_days">2 egun</string>
<string name="three_days">3 egun</string>
<string name="seven_days">7 egun</string>
<string name="thirty_days">30 egun</string>
<string name="custom">Pertsonalizatua</string>
<string name="share_on_save">Send hau gordetzean partekatu</string>
<string name="send_disabled_warning">Enpresa-politika baten ondorioz, lehendik dagoen Send-a bakarrik ezaba dezakezu.</string>
<string name="about_send">Send-i buruz</string>
<string name="hide_email">Ezkutatu nire emaila hartzaileei</string>
<string name="send_options_policy_in_effect">Erakundeko politika batek edo gehiagok Send-eko aukerei eragiten diote.</string>
<string name="send_file_premium_required">Doako kontuak testuak partekatzera mugatzen dira. Premium bazkidetza behar da Send-ekin fitxategiak partekatzeko.</string>
<string name="send_file_email_verification_required">Emaila egiaztatu behar duzu fitxategiak Send-ekin partekatzeko. Emaila webguneko kutxa gotorrean egiazta dezakezu.</string>
<string name="password_prompt">Berriro eskatu pasahitz nagusia</string>
<string name="password_confirmation">Baieztatu pasahitz nagusia</string>
<string name="password_confirmation_desc">Ekintza hau babestuta dago. Jarraitzeko, mesedez, sartu berriro pasahitz nagusia zure identitatea egiaztatzeko.</string>
<string name="captcha_required">Captcha beharrezkoa da</string>
<string name="captcha_failed">Captcha-k huts egin du. Saiatu berriro.</string>
<string name="updated_master_password">Pasahitz nagusia eguneratuta</string>
<string name="update_master_password">Pasahitz nagusia eguneratu</string>
<string name="update_master_password_warning">Zure erakundeko administratzaile batek pasahitz nagusia aldatu berri du. Kutxa gotorrera sartzeko, pasahitz nagusia orain eguneratu behar duzu. Beraz, oraingo saiotik atera eta saioa hasteko eskatuko zaizu. Beste gailu batzuetako saio aktiboek ordubete iraun dezakete aktibo.</string>
<string name="updating_password">Pasahitza eguneratzen</string>
<string name="update_password_error">Orain ezin da pasahitza eguneratu</string>
<string name="remove_master_password">Ezabatu pasahitz nagusia</string>
<string name="remove_master_password_warning">%1$s bezeroak kudeatutako zifratua duen SSO erabiltzen ari da. Jarraitzeak zure kontuko pasahitz nagusia ezabatuko du, eta SSO eskatuko du saioa hasteko.</string>
<string name="remove_master_password_warning2">Zure pasahitz nagusia ezabatu nahi ez baduzu, erakundea utzi beharko duzu.</string>
<string name="leave_organization">Utzi erakundea</string>
<string name="leave_organization_name">%1$s utzi?</string>
<string name="fido2_title">FIDO2 WebAuthn</string>
<string name="fido2_instruction">Aurrera egiteko, gaituta duzun segurtasun-gakoa (FIDO 2 WebAuthn) prest eduki, ondoren, jarraitu jarraibideei hurrengo pantailan \"WebAuthn autentifikatu\" sakatutakoan.</string>
<string name="fido2_desc">FIDO 2 WebAuthn bidezko autentifikazioa kanpoko segurtasun-gako bat erabiliz kudeatu ahal da.</string>
<string name="fido2_authenticate_web_authn">WebAuthn autentifikatu</string>
<string name="fido2_return_to_app">Itzuli aplikaziora</string>
<string name="fido2_check_browser">Mesedez, ziurtatu zure nabigatzaile lehenetsiak WebAuthn onartzen duela eta saiatu berriro.</string>
<string name="reset_password_auto_enroll_invite_warning">Erakunde honen enpresa politika baten ondorioz, automatikoki pasahitza berrezartzean izen-emango zaitu. Izen-emateak aukera emango die erakundeko administratzaileei pasahitz nagusia aldatzeko.</string>
<string name="vault_timeout_policy_in_effect">Zure erakundearen politikek zure itxaronaldiari eragiten diote. Itxaronaldiak gehienez ere %1$s ordu eta %2$s minutu izango ditu</string>
<string name="vault_timeout_policy_with_action_in_effect">Your organization policies are affecting your vault timeout. Maximum allowed vault timeout is %1$s hour(s) and %2$s minute(s). Your vault timeout action is set to %3$s.</string>
<string name="vault_timeout_action_policy_in_effect">Your organization policies have set your vault timeout action to %1$s.</string>
<string name="vault_timeout_to_large">Zure kutxa gotorreko itxaronaldiak, zure erakundeak ezarritako murrizpenak gainditzen ditu.</string>
<string name="disable_personal_vault_export_policy_in_effect">Erakundeko politika batek edo gehiagok kutxa gotorra esportatzea galarazten dute.</string>
<string name="add_account">Gehitu kontua</string>
<string name="account_unlocked">Desblokeatuta</string>
<string name="account_locked">Blokeatuta</string>
<string name="account_logged_out">Saioa itxita</string>
<string name="account_switched_automatically">Hurrengo kontu erabilgarrira aldatu</string>
<string name="account_locked_successfully">Kontua blokeatuta</string>
<string name="account_logged_out_successfully">Kontuko saioa ondo itxi da</string>
<string name="account_removed_successfully">Kontua ezabatu da</string>
<string name="delete_account">Ezabatu kontua</string>
<string name="deleting_your_account_is_permanent">Kontua ezabatzea itzulezina da</string>
<string name="delete_account_explanation">Zure kontua eta kutxa gotorraren datu guztiak ezabatu eta berreskuraezinak izango dira. Ziur al zaude jarraitu nahi duzula?</string>
<string name="deleting_your_account">Zure kontua ezabatzen</string>
<string name="your_account_has_been_permanently_deleted">Zure kontua betirako ezabatu da</string>
<string name="invalid_verification_code">Egiaztatze-kodea ez da baliozkoa.</string>
<string name="request_otp">Behin bakarrik erabiltzeko pasahitza eskatu</string>
<string name="send_code">Bidali kodea</string>
<string name="sending">Bidaltzen</string>
<string name="copy_send_link_on_save">Kopiatu Send esteka gordetzean</string>
<string name="sending_code">Kodea bidaltzen</string>
<string name="verifying">Egiaztatzen</string>
<string name="resend_code">Berbidali kodea</string>
<string name="a_verification_code_was_sent_to_your_email">Egiaztatze-kodea zure emailera bidali da</string>
<string name=your_sha256_hashl_please_try_again">Akats bat gertatu da egiaztatze-kodea emailera bidaltzean. Mesedez, saiatu berriro</string>
<string name="enter_the_verification_code_that_was_sent_to_your_email">Sartu zure emailera bidali den egiaztatze-kodea</string>
<string name="submit_crash_logs">Bidali akatsen txostena</string>
<string name="submit_crash_logs_description">Lagundu Bitwarden aplikazioaren egonkortasuna hobetzen, akatsen txostenak bidaliz.</string>
<string name="options_expanded">Aukerak zabaldu egin dira, sakatu multzokatzeko.</string>
<string name="options_collapsed">Aukerak multzokatuta daude, sakatu zabaltzeko.</string>
<string name="uppercase_ato_z">Letra larria (A-Z)</string>
<string name="lowercase_ato_z">Letra txikia (a-z)</string>
<string name="numbers_zero_to_nine">Zenbakiak (0-9)</string>
<string name="special_characters">Karaktere bereziak (!@#$%^&*)</string>
<string name="tap_to_go_back">Sakatu itzultzeko</string>
<string name="password_is_visible_tap_to_hide">Pasahitza ikusgai dago, sakatu ezkutatzeko.</string>
<string name="password_is_not_visible_tap_to_show">Pasahitza ezkutatuta dago, sakatu bistaratzeko.</string>
<string name="filter_by_vault">Iragazi elementuak kutxa gotorraren arabera</string>
<string name="all_vaults">Kutxa gotor guztiak</string>
<string name="vaults">Kutxa Gotorrak</string>
<string name="vault_filter_description">Kutxa gotorra: %1$s</string>
<string name="all">Guztiak</string>
<string name="totp">TOTP</string>
<string name="verification_codes">Egiaztatze-kodeak</string>
<string name="premium_subscription_required">Premium harpidetza beharrezkoa da</string>
<string name="cannot_add_authenticator_key">Ezin duzu autentifikazio-gakoa gehitu?</string>
<string name="scan_qr_code">Eskaneatu QR kodea</string>
<string name="cannot_scan_qr_code">Ezin duzu QR kodea eskaneatu?</string>
<string name="authenticator_key_scanner">Autentifikazio gakoa</string>
<string name="enter_key_manually">Sartu kodea eskuz</string>
<string name="add_totp">Gehitu TOTP-a</string>
<string name="setup_totp">TOTP-a konfiguratu</string>
<string name="once_the_key_is_successfully_entered">Gakoa ondo sartzen duzunean, sakatu Gehitu TOTP-a gakoa modu seguruan gordetzeko</string>
<string name="never_lock_warning">Zure blokeo aukerak \"inoiz ez\" bezala ezartzen badituzu, gailura sarbidea duen edonork izango du kutxa gotorra eskuragarri. Aukera hau erabiltzen baduzu, gailua behar bezala babestuta duzula ziurtatu behar duzu.</string>
<string name="environment_page_urls_error">Sartutako URL batek edo gehiagok ez dute balio. Mesedez, berrikusi eta saiatu berriro gordetzen.</string>
<string name="generic_error_message">Ezin izan dugu zure eskaera bideratu. Mesedez, saiatu berriro edo jarri gurekin harremanetan.</string>
<string name="allow_screen_capture">Baimendu pantaila-argazkia</string>
<string name="are_you_sure_you_want_to_enable_screen_capture">Ziur al zaude pantaila-argazkia gaitu nahi duzula?</string>
<string name="log_in_requested">Saio hasiera eskatu da</string>
<string name="are_you_trying_to_log_in">Saioa hasten saiatzen ari zara?</string>
<string name="log_in_attempt_by_x_on_y">%1$s saioa hasten saiatu da %2$s-n</string>
<string name="device_type">Gailu mota</string>
<string name="ip_address">IP helbidea</string>
<string name="time">Ordua</string>
<string name="near">Gertu</string>
<string name="confirm_log_in">Berretsi saio hasiera</string>
<string name="deny_log_in">Sarrera ukatu</string>
<string name="just_now">Oraintxe bertan</string>
<string name="x_minutes_ago">Orain dela %1$s minutu</string>
<string name="log_in_accepted">Saio hasiera onartua</string>
<string name="log_in_denied">Saio hasiera ukatua</string>
<string name="approve_login_requests">Saio hasiera eskaerak onartu</string>
<string name=your_sha256_hashs">Erabili gailu hau beste gailu batzuetatik egindako saio hasiera eskaerak onartzeko.</string>
<string name="allow_notifications">Baimendu jakinarazpenak</string>
<string name="receive_push_notifications_for_new_login_requests">Jaso push jakinarazpenak saio hasiera eskaera berrietarako</string>
<string name="no_thanks">Ez, eskerrik asko</string>
<string name="confim_log_in_attemp_for_x">Onartu %1$s-ren saio hasiera eskaera</string>
<string name="all_notifications">Jakinarazpen guztiak</string>
<string name="password_type">Pasahitz mota</string>
<string name="what_would_you_like_to_generate">Zer sortu nahi duzu?</string>
<string name="username_type">Erabiltzaile izen mota</string>
<string name="plus_addressed_email">Atzizkidun emaila</string>
<string name="catch_all_email">Harrapatu email guztiak</string>
<string name="forwarded_email_alias">Emaileko ezizena berbidalia</string>
<string name="random_word">Ausazko hitza</string>
<string name="email_required_parenthesis">Emaila (beharrezkoa)</string>
<string name="domain_name_required_parenthesis">Domeinu izena (beharrezkoa)</string>
<string name="api_key_required_parenthesis">API gakoa (beharrezkoa)</string>
<string name="service">Zerbitzua</string>
<string name="addy_io">addy.io</string>
<string name="firefox_relay">Firefox Relay</string>
<string name="simple_login">SimpleLogin</string>
<string name="duck_duck_go">DuckDuckGo</string>
<string name="fastmail">Fastmail</string>
<string name="forward_email">ForwardEmail</string>
<string name="api_access_token">Token sarbide API-a</string>
<string name="are_you_sure_you_want_to_overwrite_the_current_username">Ziur al zaude erabiltzaile-izena berridatzi nahi duzula?</string>
<string name="generate_username">Sortu erabiltzaile izena</string>
<string name="email_type">Email mota</string>
<string name="website_required">Webgunea (beharrezkoa)</string>
<string name="unknown_x_error_message">%1$s akats ezezaguna gertatu da.</string>
<string name="plus_addressed_email_description">Erabili emailaren hornitzailearen azpihelbideratze gaitasunak</string>
<string name="catch_all_email_description">Erabili zure domeinuan konfiguratutako sarrerako ontzia.</string>
<string name="forwarded_email_description">Emaileko ezizen bat sortu kanpoko bidalketa zerbitzu batekin.</string>
<string name="random">Ausazkoa</string>
<string name="connect_to_watch">Erloju bati konektatu</string>
<string name="accessibility_service_disclosure">Zabaldu irisgarritasun zerbitzua</string>
<string name="accessibility_disclosure_text">Bitwardenek irisgarritasun zerbitzua erabiltzen du aplikazioetan eta webguneetan sarbide-eremuak bilatzeko; ondoren, eremu-ID egokiak ezartzen ditu, aplikaziorako edo gunerako eremu bat aurkitzen denean erabiltzaile-izena eta pasahitza sartzeko. Zerbitzuak ematen digun informazioa ez dugu gordeko, eta ez gara saiatuko pantailan kredentzialen testutik haratagoko elementurik zelatatzen.</string>
<string name="accept">Onartu</string>
<string name="decline">Baztertu</string>
<string name="login_request_has_already_expired">Sarbide eskaera iraungi da.</string>
<string name="login_attempt_from_x_do_you_want_to_switch_to_this_account">Saio hasiera saiakera hemendik:
%1$s
Kontu honetara aldatu nahi duzu?</string>
<string name="new_around_here">Berria hemendik?</string>
<string name="get_master_passwordword_hint">Jaso pasahitz nagusiaren pista</string>
<string name="logging_in_as_x_on_y">%1$s bezala saioa hasten %2$s(e)n</string>
<string name="not_you">Ez zara zu?</string>
<string name="log_in_with_master_password">Hasi saioa pasahitz nagusiarekin</string>
<string name="log_in_with_another_device">Hasi saioa beste gailu batekin</string>
<string name="log_in_initiated">Saioa hastea martxan da</string>
<string name="a_notification_has_been_sent_to_your_device">Jakinarazpen bat bidali da zure gailura.</string>
<string name=your_sha256_hashse_matches_on_the_other_device">Mesedez, ziurtatu kutxa gotorra desblokeatuta dagoela eta hatz-marka digitalaren esaldia bat datorrela beste gailuarekin.</string>
<string name="resend_notification">Berbidali jakinarazpena</string>
<string name="need_another_option">Beste aukerarik behar al duzu?</string>
<string name="view_all_login_options">Ikusi erregistro guztiak ezarpenetan</string>
<string name="this_request_is_no_longer_valid">Eskaera jada ez da balekoa.</string>
<string name="pending_log_in_requests">Pending login requests</string>
<string name="decline_all_requests">Ukatu eskaera guztiak</string>
<string name="are_you_sure_you_want_to_decline_all_pending_log_in_requests">Ziur al zaude zain dauden saioa hasteko eskaera guztiak ukatu nahi dituzula?</string>
<string name="requests_declined">Eskaerak ukatuta</string>
<string name="no_pending_requests">Ez dago eskaerarik zain</string>
<string name="enable_camer_permission_to_use_the_scanner">Gaitu kameraren baimena eskanerra erabiltzeko</string>
<string name="language">Hizkuntza</string>
<string name="language_change_x_description">%1$s hizkuntza ezarri da. Berrabiarazi aplikazioa mesedez aldaketa ikusi ahal izateko</string>
<string name="language_change_requires_app_restart">Hizkuntza aldatzeak aplikazioa berabiaraztea behar du</string>
<string name="default_system">Lehenetsia (Sistema)</string>
<string name="important">Garrantzitsua</string>
<string name=your_sha256_hashacters_minimum">Zure pasahitz nagusia ezin da berreskuratu ahazten baduzu! %1$s karaktere gutxienez.</string>
<string name="weak_master_password">Pasahitz nagusia ahula</string>
<string name=your_sha256_hashccount">Pasahitz ahula atzeman da. Erabili pasahitz sendo bat zure kontua babesteko. Ziur zaude pasahitz ahul bat erabili nahi duzula?</string>
<string name="weak">Ahula</string>
<string name="good">Ona</string>
<string name="strong">Sendoa</string>
<string name="check_known_data_breaches_for_this_password">Behatu ezagunak diren datu- urraketak pasahitz honentzat</string>
<string name="exposed_master_password">Agerian utzitako pasahitz nagusia</string>
<string name="password_found_in_a_data_breach_alert_description">Pasahitza datu-urraketa batean aurkitu da. Erabil ezazu beste inon erabili ez duzun pasahitz bat zure kontua babesteko. Ziur zaude agerian utzitako pasahitz bat erabili nahi duzula?</string>
<string name="weak_and_exposed_master_password">Agerian utzitako pasahitz nagusia, ahula</string>
<string name=your_sha256_hashption">Pasahitz ahul hau datu-urraketa batean aurkitu da. Erabil ezazu beste inon erabili ez duzun pasahitz sendi bat zure kontua babesteko. Ziur zaude pasahitz hau erabili nahi duzula?</string>
<string name="organization_sso_identifier_required">Erakundearen identifikazio bakarra (SSO) beharrezkoa da.</string>
<string name="add_the_key_to_an_existing_or_new_item">Add the key to an existing or new item</string>
<string name="there_are_no_items_in_your_vault_that_match_x">There are no items in your vault that match \"%1$s\"</string>
<string name="search_for_an_item_or_add_a_new_item">Bilatu elementu bat ala gehitu elementu berria</string>
<string name="there_are_no_items_that_match_the_search">Ez dago bilaketarekin bat datorren emaitzarik</string>
<string name="us">AEB</string>
<string name="eu">EU</string>
<string name="self_hosted">Norberak ostatatua</string>
<string name="data_region">Data eskualdea</string>
<string name="region">Eskualdea</string>
<string name="update_weak_master_password_warning">Your master password does not meet one or more of your organization policies. In order to access the vault, you must update your master password now. Proceeding will log you out of your current session, requiring you to log back in. Active sessions on other devices may continue to remain active for up to one hour.</string>
<string name="current_master_password">Uneko pasahitz nagusia</string>
<string name="logged_in">Logged in!</string>
<string name="approve_with_my_other_device">Approve with my other device</string>
<string name="request_admin_approval">Request admin approval</string>
<string name="approve_with_master_password">Approve with master password</string>
<string name="turn_off_using_public_device">Turn off using a public device</string>
<string name="remember_this_device">Remember this device</string>
<string name="passkey">Passkey</string>
<string name="passkeys">Passkeys</string>
<string name="application">Application</string>
<string name=your_sha256_hashthe_passkey">You cannot edit passkey application because it would invalidate the passkey</string>
<string name="passkey_will_not_be_copied">Passkey will not be copied</string>
<string name=your_sha256_hash_continue_cloning_this_item">The passkey will not be copied to the cloned item. Do you want to continue cloning this item?</string>
<string name="copy_application">Copy application</string>
<string name="available_for_two_step_login">Available for two-step login</string>
<string name="master_password_re_prompt_help">Master password re-prompt help</string>
<string name=your_sha256_hashmemory_settings_to_resolve">Unlocking may fail due to insufficient memory. Decrease your KDF memory settings or set up biometric unlock to resolve.</string>
<string name="invalid_api_key">API giltza baliogabea</string>
<string name="invalid_api_token">API kode baliogabia</string>
<string name="admin_approval_requested">Admin approval requested</string>
<string name="your_request_has_been_sent_to_your_admin">Your request has been sent to your admin.</string>
<string name="you_will_be_notified_once_approved">You will be notified once approved.</string>
<string name="trouble_logging_in">Trouble logging in?</string>
<string name="logging_in_as_x">Logging in as %1$s</string>
<string name="vault_timeout_action_changed_to_log_out">Vault timeout action changed to log out</string>
<string name="block_auto_fill">Blokeatu automatikoki betetzea</string>
<string name="auto_fill_will_not_be_offered_for_these_ur_is">Automatikoki betetzea ez da URL hauetan erabilgarri egongo.</string>
<string name="new_blocked_uri">New blocked URI</string>
<string name="uri_saved">URI saved</string>
<string name="invalid_format_use_https_http_or_android_app">Invalid format. Use path_to_url path_to_url or androidapp://</string>
<string name="edit_uri">Edit URI</string>
<string name="enter_uri">Enter URI</string>
<string name="format_x_separate_multiple_ur_is_with_a_comma">Format: %1$s. Separate multiple URIs with a comma.</string>
<string name="format_x">Format: %1$s</string>
<string name="invalid_uri">Invalid URI</string>
<string name="uri_removed">URI removed</string>
<string name="there_are_no_blocked_ur_is">There are no blocked URIs</string>
<string name="the_urix_is_already_blocked">The URI %1$s is already blocked</string>
<string name="cannot_edit_multiple_ur_is_at_once">Cannot edit multiple URIs at once</string>
<string name="login_approved">Login approved</string>
<string name=your_sha256_hashen_app_need_another_option">Log in with device must be set up in the settings of the Bitwarden app. Need another option?</string>
<string name="log_in_with_device">Log in with device</string>
<string name="logging_in_on">Logging in on</string>
<string name="vault">Vault</string>
<string name="appearance">Appearance</string>
<string name="account_security">Account security</string>
<string name="bitwarden_help_center">Bitwarden Help Center</string>
<string name="contact_bitwarden_support">Contact Bitwarden support</string>
<string name="copy_app_information">Copy app information</string>
<string name="sync_now">Sync now</string>
<string name="unlock_options">Unlock options</string>
<string name="session_timeout">Session timeout</string>
<string name="session_timeout_action">Session timeout action</string>
<string name="account_fingerprint_phrase">Kontuaren hatz-marka digitalaren esaldia</string>
<string name="one_hour_and_one_minute">One hour and one minute</string>
<string name="one_hour_and_x_minute">One hour and %1$s minutes</string>
<string name="x_hours_and_one_minute">%1$s hours and one minute</string>
<string name="x_hours_and_y_minutes">%1$s hours and %2$s minutes</string>
<string name="x_hours">%1$s hours</string>
<string name="passkey_management_explanation_long">Use Bitwarden to save new passkeys and log in with passkeys stored in your vault.</string>
<string name="autofill_services_explanation_long">The Android Autofill Framework is used to assist in filling login information into other apps on your device.</string>
<string name="use_inline_autofill_explanation_long">Erabili teklatuko lerroko atomatikoki betetzea, zure teklatuak ahalbidetzen badu. Horrela ez bada, automatikoki betetzeko gainjartzea erabiliko da lehenespenez.</string>
<string name="additional_options">Additional options</string>
<string name="continue_to_web_app">Continue to web app?</string>
<string name="continue_to_x">Continue to %1$s?</string>
<string name="continue_to_help_center">Continue to Help center?</string>
<string name="continue_to_contact_support">Continue to contact support?</string>
<string name="continue_to_privacy_policy">Continue to privacy policy?</string>
<string name="continue_to_app_store">Continue to app store?</string>
<string name="continue_to_device_settings">Continue to device Settings?</string>
<string name="two_step_login_description_long">Make your account more secure by setting up two-step login in the Bitwarden web app.</string>
<string name="change_master_password_description_long">You can change your master password on the Bitwarden web app.</string>
<string name="you_can_import_data_to_your_vault_on_x">You can import data to your vault on %1$s.</string>
<string name="learn_more_about_how_to_use_bitwarden_on_the_help_center">Learn more about how to use Bitwarden on the Help center.</string>
<string name="contact_support_description_long">Cant find what you are looking for? Reach out to Bitwarden support on bitwarden.com.</string>
<string name="privacy_policy_description_long">Check out our privacy policy on bitwarden.com.</string>
<string name="explore_more_features_of_your_bitwarden_account_on_the_web_app">Explore more features of your Bitwarden account on the web app.</string>
<string name="learn_about_organizations_description_long">Bitwarden allows you to share your vault items with others by using an organization. Learn more on the bitwarden.com website.</string>
<string name="rate_app_description_long">Help others find out if Bitwarden is right for them. Visit the app store and leave a rating now.</string>
<string name="default_dark_theme_description_long">Choose the dark theme to use when your devices dark mode is in use</string>
<string name="created_xy">Created %1$s, %2$s</string>
<string name="too_many_attempts">Too many attempts</string>
<string name="account_logged_out_biometric_exceeded">Account logged out.</string>
<string name=your_sha256_hasha_master_password">Your organization permissions were updated, requiring you to set a master password.</string>
<string name="your_organization_requires_you_to_set_a_master_password">Your organization requires you to set a master password.</string>
<string name="set_up_an_unlock_option_to_change_your_vault_timeout_action">Set up an unlock option to change your vault timeout action.</string>
<string name="choose_a_login_to_save_this_passkey_to">Choose a login to save this passkey to</string>
<string name="save_passkey_as_new_login">Save passkey as new login</string>
<string name="save_passkey">Save passkey</string>
<string name="passkeys_for_x">Passkeys for %1$s</string>
<string name="passwords_for_x">Passwords for %1$s</string>
<string name="overwrite_passkey">Overwrite passkey?</string>
<string name=your_sha256_hasherwrite_the_current_passkey">This item already contains a passkey. Are you sure you want to overwrite the current passkey?</string>
<string name="duo_two_step_login_is_required_for_your_account">Duo two-step login is required for your account.</string>
<string name="follow_the_steps_from_duo_to_finish_logging_in">Follow the steps from Duo to finish logging in.</string>
<string name="launch_duo">Launch Duo</string>
<string name="verification_required_by_x">Verification required by %1$s</string>
<string name=your_sha256_hash_bitwarden_to_continue">Verification required for this action. Set up an unlock method in Bitwarden to continue.</string>
<string name="error_creating_passkey">Error creating passkey</string>
<string name="error_reading_passkey">Error reading passkey</string>
<string name="there_was_a_problem_creating_a_passkey_for_x_try_again_later">There was a problem creating a passkey for %1$s. Try again later.</string>
<string name="there_was_a_problem_reading_a_passkey_for_x_try_again_later">There was a problem reading your passkey for %1$s. Try again later.</string>
<string name="verifying_identity_ellipsis">Verifying identity...</string>
<string name="passwords">Passwords</string>
<string name="unknown_account">Unknown account</string>
<string name="set_up_autofill">Set up auto-fill</string>
<string name="get_instant_access_to_your_passwords_and_passkeys">Get instant access to your passwords and passkeys!</string>
<string name="set_up_auto_fill_description_long">To set up password auto-fill and passkey management, set Bitwarden as your preferred provider in the iOS Settings.</string>
<string name="first_dot_go_to_your_device_settings_passwords_password_options">1. Go to your device\'s Settings > Passwords > Password Options</string>
<string name="second_dot_turn_on_auto_fill">2. Turn on AutoFill</string>
<string name="third_dot_select_bitwarden_to_use_for_passwords_and_passkeys">3. Select \"Bitwarden\" to use for passwords and passkeys</string>
<string name="your_passkey_will_be_saved_to_your_bitwarden_vault">Your passkey will be saved to your Bitwarden vault</string>
<string name="your_passkey_will_be_saved_to_your_bitwarden_vault_for_x">Your passkey will be saved to your Bitwarden vault for %1$s</string>
<string name="organization_unassigned_items_message_useu_description_long">Unassigned organization items are no longer visible in the All Vaults view and only accessible via the Admin Console. Assign these items to a collection from the Admin Console to make them visible.</string>
<string name=your_sha256_hashon_long">On May 16, 2024, unassigned organization items will no longer be visible in the All Vaults view and only accessible via the Admin Console. Assign these items to a collection from the Admin Console to make them visible.</string>
<string name="remind_me_later">Remind me later</string>
<string name="notice">Notice</string>
<string name="passkeys_not_supported_for_this_app">Passkeys not supported for this app</string>
<string name="passkey_operation_failed_because_browser_is_not_privileged">Passkey operation failed because browser is not privileged</string>
<string name=your_sha256_hashh">Passkey operation failed because browser signature does not match</string>
<string name="passkey_operation_failed_because_of_missing_asset_links">Passkey operation failed because of missing asset links</string>
<string name="passkey_operation_failed_because_app_not_found_in_asset_links">Passkey operation failed because app not found in asset links</string>
<string name="passkey_operation_failed_because_app_could_not_be_verified">Passkey operation failed because app could not be verified</string>
<string name="confirm_file_password">Confirm file password</string>
<string name="continue_to_give_feedback">Continue to Give Feedback?</string>
<string name="continue_to_provide_feedback">Select continue to give feedback on the new app!</string>
<string name="file_password">File password</string>
<string name="give_feedback">Give Feedback</string>
<string name="password_protected">Password Protected</string>
<string name="password_used_to_export">This password will be used to export and import this file</string>
<string name="autofill_suggestion">Autofill suggestion</string>
<string name="continue_to_complete_web_authn_verification">Continue to complete WebAuthn verification.</string>
<string name="launch_web_authn">Launch WebAuthn</string>
<string name="there_was_an_error_starting_web_authn_two_factor_authentication">There was an error starting WebAuthn two factor authentication</string>
<string name="self_hosted_server_url">Self-hosted server URL</string>
<string name="passkey_operation_failed_because_user_could_not_be_verified">Passkey operation failed because user could not be verified.</string>
<string name="user_verification_direction">User verification</string>
<string name="creating_on">Creating on:</string>
<string name=your_sha256_hashing_your_account">Follow the instructions in the email sent to %1$s to continue creating your account.</string>
<string name=your_sha256_hashcy">By continuing, you agree to the Terms of Service and Privacy Policy</string>
<string name="set_password">Set password</string>
<string name="unsubscribe">Unsubscribe</string>
<string name="check_your_email">Check your email</string>
<string name="open_email_app">Open email app</string>
<string name="go_back">Go back</string>
<string name="email_verified">Email verified</string>
<string name="no_email_go_back_to_edit_your_email_address">No email? Go back to edit your email address.</string>
<string name="or_log_in_you_may_already_have_an_account">Or log in, you may already have an account.</string>
<string name=your_sha256_hash_opportunities_unsubscribe_any_time">Get emails from Bitwarden for announcements, advice, and research opportunities. Unsubscribe at any time.</string>
<string name="privacy_prioritized">Privacy, prioritized</string>
<string name="welcome_message_1">Save logins, cards, and identities to your secure vault. Bitwarden uses zero-knowledge, end-to-end encryption to protect whats important to you.</string>
<string name="welcome_message_2">Set up biometric unlock and autofill to log into your accounts without typing a single letter.</string>
<string name="quick_and_easy_login">Quick and easy login</string>
<string name="level_up_your_logins">Level up your logins</string>
<string name="welcome_message_3">Use the generator to create and save strong, unique passwords for all your accounts.</string>
<string name="your_data_when_and_where_you_need_it">Your data, when and where you need it</string>
<string name="welcome_message_4">Save unlimited passwords across unlimited devices with Bitwarden mobile, browser, and desktop apps.</string>
<string name="remove_passkey">Remove passkey</string>
<string name="passkey_removed">Passkey removed</string>
<string name="what_makes_a_password_strong">What makes a password strong?</string>
<string name="the_longer_your_password_the_more_difficult_to_hack">The longer your password, the more difficult it is to hack. The minimum for account creation is 12 characters but if you do 14 characters, the time to crack your password would be centuries!</string>
<string name="the_strongest_passwords_are_usually">The strongest passwords are usually:</string>
<string name="twelve_or_more_characters">12 or more characters</string>
<string name="random_and_complex_using_numbers_and_special_characters">Random and complex, using numbers and special characters</string>
<string name="totally_different_from_your_other_passwords">Totally different from your other passwords</string>
<string name="use_the_generator_to_create_a_strong_unique_password">Use the generator to create a strong, unique password</string>
<string name="try_it_out">Try it out</string>
<string name="account_setup">Account setup</string>
<string name="set_up_unlock">Set up unlock</string>
<string name="set_up_later">Set up later</string>
<string name="set_up_unlock_later">Set up unlock later?</string>
<string name=your_sha256_hashty_in_settings">You can return to complete this step anytime from Account Security in Settings.</string>
<string name="confirm">Confirm</string>
<string name=your_sha256_hashult_and_autofill_your_logins">Set up biometrics or choose a PIN code to quickly access your vault and AutoFill your logins.</string>
<string name="never_lose_access_to_your_vault">Never lose access to your vault</string>
<string name="the_best_way_to_make_sure_you_can_always_access_your_account">The best way to make sure you can always access your account is to set up safeguards from the start.</string>
<string name="create_a_hint">Create a hint</string>
<string name="your_hint_will_be_send_to_you_via_email_when_you_request_it">Your hint will be sent to you via email when you request it.</string>
<string name="write_your_password_down">Write your password down</string>
<string name="keep_it_secret_keep_it_safe">Be careful to keep your written password somewhere secret and safe.</string>
<string name="prevent_account_lockout">Prevent account lockout</string>
<string name="generate_master_password">Generate master password</string>
<string name="generate_button_label">Generate</string>
<string name="write_this_password_down_and_keep_it_somewhere_safe">Write this password down and keep it somewhere safe.</string>
<string name="learn_about_other_ways_to_prevent_account_lockout">Learn about other ways to prevent account lockout</string>
</resources>
``` | /content/code_sandbox/app/src/main/res/values-eu-rES/strings.xml | xml | 2016-04-30T16:43:17 | 2024-08-16T19:45:08 | android | bitwarden/android | 6,085 | 24,672 |
```xml
import {
Entity,
PrimaryGeneratedColumn,
ManyToMany,
JoinTable,
} from "../../../../src"
import { Column } from "../../../../src/decorator/columns/Column"
import { Category } from "./Category"
@Entity()
export class Question {
@PrimaryGeneratedColumn()
id: number
@Column()
name: string
@ManyToMany("Category")
@JoinTable()
categories: Category[]
}
``` | /content/code_sandbox/test/github-issues/4190/entity/Question.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 91 |
```xml
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { PROF_COLS, UNICODE_BLOCK } from "../src/constants";
import { SelectionBroker } from "../src/selection-broker";
import { TextView } from "../src/text-view";
import { MySelection } from "./selection";
import { anyToString, interpolate } from "./util";
import { InstructionSelectionHandler } from "./selection-handler";
const toolboxHTML = `<div id="disassembly-toolbox">
<form>
<label><input id="show-instruction-address" type="checkbox" name="instruction-address">Show addresses</label>
<label><input id="show-instruction-binary" type="checkbox" name="instruction-binary">Show binary literal</label>
<label><input id="highlight-gap-instructions" type="checkbox" name="instruction-binary">Highlight gap instructions</label>
</form>
</div>`;
export class DisassemblyView extends TextView {
SOURCE_POSITION_HEADER_REGEX: any;
addrEventCounts: any;
totalEventCounts: any;
maxEventCounts: any;
posLines: Array<any>;
instructionSelectionHandler: InstructionSelectionHandler;
offsetSelection: MySelection;
showInstructionAddressHandler: () => void;
showInstructionBinaryHandler: () => void;
highlightGapInstructionsHandler: () => void;
createViewElement() {
const pane = document.createElement('div');
pane.setAttribute('id', "disassembly");
pane.innerHTML =
`<pre id='disassembly-text-pre' class='prettyprint prettyprinted'>
<ul class='disassembly-list nolinenums noindent'>
</ul>
</pre>`;
return pane;
}
constructor(parentId, broker: SelectionBroker) {
super(parentId, broker);
const view = this;
const ADDRESS_STYLE = {
associateData: (text, fragment: HTMLElement) => {
const matches = text.match(/(?<address>0?x?[0-9a-fA-F]{8,16})(?<addressSpace>\s+)(?<offset>[0-9a-f]+)(?<offsetSpace>\s*)/);
const offset = Number.parseInt(matches.groups["offset"], 16);
const instructionKind = view.sourceResolver.getInstructionKindForPCOffset(offset);
fragment.dataset.instructionKind = instructionKind;
fragment.title = view.sourceResolver.instructionKindToReadableName(instructionKind);
const blockIds = view.sourceResolver.getBlockIdsForOffset(offset);
const blockIdElement = document.createElement("SPAN");
blockIdElement.className = "block-id com linkable-text";
blockIdElement.innerText = "";
if (blockIds && blockIds.length > 0) {
blockIds.forEach(blockId => view.addHtmlElementForBlockId(blockId, fragment));
blockIdElement.innerText = `B${blockIds.join(",")}:`;
blockIdElement.dataset.blockId = `${blockIds.join(",")}`;
}
fragment.appendChild(blockIdElement);
const addressElement = document.createElement("SPAN");
addressElement.className = "instruction-address";
addressElement.innerText = matches.groups["address"];
const offsetElement = document.createElement("SPAN");
offsetElement.innerText = matches.groups["offset"];
fragment.appendChild(addressElement);
fragment.appendChild(document.createTextNode(matches.groups["addressSpace"]));
fragment.appendChild(offsetElement);
fragment.appendChild(document.createTextNode(matches.groups["offsetSpace"]));
fragment.classList.add('tag');
if (!Number.isNaN(offset)) {
let pcOffset = view.sourceResolver.getKeyPcOffset(offset);
if (pcOffset == -1) pcOffset = Number(offset);
fragment.dataset.pcOffset = `${pcOffset}`;
addressElement.classList.add('linkable-text');
offsetElement.classList.add('linkable-text');
}
return true;
}
};
const UNCLASSIFIED_STYLE = {
css: 'com'
};
const NUMBER_STYLE = {
css: ['instruction-binary', 'lit']
};
const COMMENT_STYLE = {
css: 'com'
};
const OPCODE_ARGS = {
associateData: function (text, fragment) {
fragment.innerHTML = text;
const replacer = (match, hexOffset) => {
const offset = Number.parseInt(hexOffset, 16);
let keyOffset = view.sourceResolver.getKeyPcOffset(offset);
if (keyOffset == -1) keyOffset = Number(offset);
const blockIds = view.sourceResolver.getBlockIdsForOffset(offset);
let block = "";
let blockIdData = "";
if (blockIds && blockIds.length > 0) {
block = `B${blockIds.join(",")} `;
blockIdData = `data-block-id="${blockIds.join(",")}"`;
}
return `<span class="tag linkable-text" data-pc-offset="${keyOffset}" ${blockIdData}>${block}${match}</span>`;
};
const html = text.replace(/<.0?x?([0-9a-fA-F]+)>/g, replacer);
fragment.innerHTML = html;
return true;
}
};
const OPCODE_STYLE = {
css: 'kwd'
};
const BLOCK_HEADER_STYLE = {
associateData: function (text, fragment) {
if (view.sourceResolver.hasBlockStartInfo()) return false;
const matches = /\d+/.exec(text);
if (!matches) return true;
const blockId = matches[0];
fragment.dataset.blockId = blockId;
fragment.innerHTML = text;
fragment.className = "com block";
return true;
}
};
const SOURCE_POSITION_HEADER_STYLE = {
css: 'com'
};
view.SOURCE_POSITION_HEADER_REGEX = /^\s*--[^<]*<.*(not inlined|inlined\((\d+)\)):(\d+)>\s*--/;
const patterns = [
[
[/^0?x?[0-9a-fA-F]{8,16}\s+[0-9a-f]+\s+/, ADDRESS_STYLE, 1],
[view.SOURCE_POSITION_HEADER_REGEX, SOURCE_POSITION_HEADER_STYLE, -1],
[/^\s+-- B\d+ start.*/, BLOCK_HEADER_STYLE, -1],
[/^.*/, UNCLASSIFIED_STYLE, -1]
],
[
[/^\s*[0-9a-f]+\s+/, NUMBER_STYLE, 2],
[/^\s*[0-9a-f]+\s+[0-9a-f]+\s+/, NUMBER_STYLE, 2],
[/^.*/, null, -1]
],
[
[/^REX.W \S+\s+/, OPCODE_STYLE, 3],
[/^\S+\s+/, OPCODE_STYLE, 3],
[/^\S+$/, OPCODE_STYLE, -1],
[/^.*/, null, -1]
],
[
[/^\s+/, null],
[/^[^;]+$/, OPCODE_ARGS, -1],
[/^[^;]+/, OPCODE_ARGS, 4],
[/^;/, COMMENT_STYLE, 5]
],
[
[/^.+$/, COMMENT_STYLE, -1]
]
];
view.setPatterns(patterns);
const linkHandler = (e: MouseEvent) => {
if (!(e.target instanceof HTMLElement)) return;
const offsetAsString = typeof e.target.dataset.pcOffset != "undefined" ? e.target.dataset.pcOffset : e.target.parentElement.dataset.pcOffset;
const offset = Number.parseInt(offsetAsString, 10);
if ((typeof offsetAsString) != "undefined" && !Number.isNaN(offset)) {
view.offsetSelection.select([offset], true);
const nodes = view.sourceResolver.nodesForPCOffset(offset)[0];
if (nodes.length > 0) {
e.stopPropagation();
if (!e.shiftKey) {
view.selectionHandler.clear();
}
view.selectionHandler.select(nodes, true);
} else {
view.updateSelection();
}
}
return undefined;
};
view.divNode.addEventListener('click', linkHandler);
const linkHandlerBlock = e => {
const blockId = e.target.dataset.blockId;
if (typeof blockId != "undefined") {
const blockIds = blockId.split(",");
if (!e.shiftKey) {
view.selectionHandler.clear();
}
view.blockSelectionHandler.select(blockIds, true);
}
};
view.divNode.addEventListener('click', linkHandlerBlock);
this.offsetSelection = new MySelection(anyToString);
const instructionSelectionHandler = {
clear: function () {
view.offsetSelection.clear();
view.updateSelection();
broker.broadcastClear(instructionSelectionHandler);
},
select: function (instructionIds, selected) {
view.offsetSelection.select(instructionIds, selected);
view.updateSelection();
broker.broadcastBlockSelect(instructionSelectionHandler, instructionIds, selected);
},
brokeredInstructionSelect: function (instructionIds, selected) {
const firstSelect = view.offsetSelection.isEmpty();
const keyPcOffsets = view.sourceResolver.instructionsToKeyPcOffsets(instructionIds);
view.offsetSelection.select(keyPcOffsets, selected);
view.updateSelection(firstSelect);
},
brokeredClear: function () {
view.offsetSelection.clear();
view.updateSelection();
}
};
this.instructionSelectionHandler = instructionSelectionHandler;
broker.addInstructionHandler(instructionSelectionHandler);
const toolbox = document.createElement("div");
toolbox.id = "toolbox-anchor";
toolbox.innerHTML = toolboxHTML;
view.divNode.insertBefore(toolbox, view.divNode.firstChild);
const instructionAddressInput: HTMLInputElement = view.divNode.querySelector("#show-instruction-address");
const lastShowInstructionAddress = window.sessionStorage.getItem("show-instruction-address");
instructionAddressInput.checked = lastShowInstructionAddress == 'true';
const showInstructionAddressHandler = () => {
window.sessionStorage.setItem("show-instruction-address", `${instructionAddressInput.checked}`);
for (const el of view.divNode.querySelectorAll(".instruction-address")) {
el.classList.toggle("invisible", !instructionAddressInput.checked);
}
};
instructionAddressInput.addEventListener("change", showInstructionAddressHandler);
this.showInstructionAddressHandler = showInstructionAddressHandler;
const instructionBinaryInput: HTMLInputElement = view.divNode.querySelector("#show-instruction-binary");
const lastShowInstructionBinary = window.sessionStorage.getItem("show-instruction-binary");
instructionBinaryInput.checked = lastShowInstructionBinary == 'true';
const showInstructionBinaryHandler = () => {
window.sessionStorage.setItem("show-instruction-binary", `${instructionBinaryInput.checked}`);
for (const el of view.divNode.querySelectorAll(".instruction-binary")) {
el.classList.toggle("invisible", !instructionBinaryInput.checked);
}
};
instructionBinaryInput.addEventListener("change", showInstructionBinaryHandler);
this.showInstructionBinaryHandler = showInstructionBinaryHandler;
const highlightGapInstructionsInput: HTMLInputElement = view.divNode.querySelector("#highlight-gap-instructions");
const lastHighlightGapInstructions = window.sessionStorage.getItem("highlight-gap-instructions");
highlightGapInstructionsInput.checked = lastHighlightGapInstructions == 'true';
const highlightGapInstructionsHandler = () => {
window.sessionStorage.setItem("highlight-gap-instructions", `${highlightGapInstructionsInput.checked}`);
view.divNode.classList.toggle("highlight-gap-instructions", highlightGapInstructionsInput.checked);
};
highlightGapInstructionsInput.addEventListener("change", highlightGapInstructionsHandler);
this.highlightGapInstructionsHandler = highlightGapInstructionsHandler;
}
updateSelection(scrollIntoView: boolean = false) {
super.updateSelection(scrollIntoView);
const keyPcOffsets = this.sourceResolver.nodesToKeyPcOffsets(this.selection.selectedKeys());
if (this.offsetSelection) {
for (const key of this.offsetSelection.selectedKeys()) {
keyPcOffsets.push(Number(key));
}
}
for (const keyPcOffset of keyPcOffsets) {
const elementsToSelect = this.divNode.querySelectorAll(`[data-pc-offset='${keyPcOffset}']`);
for (const el of elementsToSelect) {
el.classList.toggle("selected", true);
}
}
}
initializeCode(sourceText, sourcePosition: number = 0) {
const view = this;
view.addrEventCounts = null;
view.totalEventCounts = null;
view.maxEventCounts = null;
view.posLines = new Array();
// Comment lines for line 0 include sourcePosition already, only need to
// add sourcePosition for lines > 0.
view.posLines[0] = sourcePosition;
if (sourceText && sourceText != "") {
const base = sourcePosition;
let current = 0;
const sourceLines = sourceText.split("\n");
for (let i = 1; i < sourceLines.length; i++) {
// Add 1 for newline character that is split off.
current += sourceLines[i - 1].length + 1;
view.posLines[i] = base + current;
}
}
}
initializePerfProfile(eventCounts) {
const view = this;
if (eventCounts !== undefined) {
view.addrEventCounts = eventCounts;
view.totalEventCounts = {};
view.maxEventCounts = {};
for (const evName in view.addrEventCounts) {
if (view.addrEventCounts.hasOwnProperty(evName)) {
const keys = Object.keys(view.addrEventCounts[evName]);
const values = keys.map(key => view.addrEventCounts[evName][key]);
view.totalEventCounts[evName] = values.reduce((a, b) => a + b);
view.maxEventCounts[evName] = values.reduce((a, b) => Math.max(a, b));
}
}
} else {
view.addrEventCounts = null;
view.totalEventCounts = null;
view.maxEventCounts = null;
}
}
showContent(data): void {
console.time("disassembly-view");
super.initializeContent(data, null);
this.showInstructionAddressHandler();
this.showInstructionBinaryHandler();
this.highlightGapInstructionsHandler();
console.timeEnd("disassembly-view");
}
// Shorten decimals and remove trailing zeroes for readability.
humanize(num) {
return num.toFixed(3).replace(/\.?0+$/, "") + "%";
}
processLine(line) {
const view = this;
let fragments = super.processLine(line);
// Add profiling data per instruction if available.
if (view.totalEventCounts) {
const matches = /^(0x[0-9a-fA-F]+)\s+\d+\s+[0-9a-fA-F]+/.exec(line);
if (matches) {
const newFragments = [];
for (const event in view.addrEventCounts) {
if (!view.addrEventCounts.hasOwnProperty(event)) continue;
const count = view.addrEventCounts[event][matches[1]];
let str = " ";
const cssCls = "prof";
if (count !== undefined) {
const perc = count / view.totalEventCounts[event] * 100;
let col = { r: 255, g: 255, b: 255 };
for (let i = 0; i < PROF_COLS.length; i++) {
if (perc === PROF_COLS[i].perc) {
col = PROF_COLS[i].col;
break;
} else if (perc > PROF_COLS[i].perc && perc < PROF_COLS[i + 1].perc) {
const col1 = PROF_COLS[i].col;
const col2 = PROF_COLS[i + 1].col;
const val = perc - PROF_COLS[i].perc;
const max = PROF_COLS[i + 1].perc - PROF_COLS[i].perc;
col.r = Math.round(interpolate(val, max, col1.r, col2.r));
col.g = Math.round(interpolate(val, max, col1.g, col2.g));
col.b = Math.round(interpolate(val, max, col1.b, col2.b));
break;
}
}
str = UNICODE_BLOCK;
const fragment = view.createFragment(str, cssCls);
fragment.title = event + ": " + view.humanize(perc) + " (" + count + ")";
fragment.style.color = "rgb(" + col.r + ", " + col.g + ", " + col.b + ")";
newFragments.push(fragment);
} else {
newFragments.push(view.createFragment(str, cssCls));
}
}
fragments = newFragments.concat(fragments);
}
}
return fragments;
}
detachSelection() { return null; }
public searchInputAction(searchInput: HTMLInputElement, e: Event, onlyVisible: boolean): void {
throw new Error("Method not implemented.");
}
}
``` | /content/code_sandbox/lts/deps/v8/tools/turbolizer/src/disassembly-view.ts | xml | 2016-10-10T12:09:49 | 2024-08-11T15:13:17 | node-packer | pmq20/node-packer | 3,069 | 3,549 |
```xml
import { IContext } from "../../connectionResolver";
import { sendCoreMessage } from "../../messageBroker";
import { IReportDocument } from "../../models/definitions/reports";
export default {
async charts(
report: IReportDocument,
{},
{ models }: IContext,
{ queryParams }
) {
try {
const { _id } = report;
return models.Charts.find({ reportId: _id });
} catch (error) {
return new Error(`Invalid ${error.path}: ${error.value}`);
}
},
async chartsCount(report: IReportDocument, {}, { models }: IContext) {
try {
const { _id } = report;
return models.Charts.find({ reportId: _id }).countDocuments();
} catch (error) {
return new Error(`Invalid ${error.path}: ${error.value}`);
}
},
createdBy(report: IReportDocument) {
return (
report.createdBy && {
__typename: "User",
_id: report.createdBy
}
);
},
updatedBy(report: IReportDocument) {
return (
report.updatedBy && {
__typename: "User",
_id: report.updatedBy
}
);
},
members(report: IReportDocument) {
return (report.assignedUserIds || []).map(_id => ({
__typename: "User",
_id
}));
},
async tags(report: IReportDocument, _, { subdomain }: IContext) {
return sendCoreMessage({
subdomain,
action: "tagFind",
data: {
_id: { $in: report.tagIds }
},
isRPC: true
});
}
};
``` | /content/code_sandbox/packages/plugin-reports-api/src/graphql/resolvers/reports.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 369 |
```xml
/*
* Planck.js
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
import { Vec2, Vec2Value } from '../common/Vec2';
import { TransformValue } from '../common/Transform';
/** @internal */ const math_sin = Math.sin;
/** @internal */ const math_cos = Math.cos;
export class Position {
/** location */
c = Vec2.zero();
/** angle */
a = 0;
// todo: cache sin/cos
getTransform(xf: TransformValue, p: Vec2Value): TransformValue {
// xf.q = rotation(this.a);
// xf.p = this.c - xf.q * p
xf.q.c = math_cos(this.a);
xf.q.s = math_sin(this.a);
xf.p.x = this.c.x - (xf.q.c * p.x - xf.q.s * p.y);
xf.p.y = this.c.y - (xf.q.s * p.x + xf.q.c * p.y);
return xf;
}
}
export function getTransform(xf: TransformValue, p: Vec2Value, c: Vec2Value, a: number): TransformValue {
// xf.q = rotation(a);
// xf.p = this.c - xf.q * p
xf.q.c = math_cos(a);
xf.q.s = math_sin(a);
xf.p.x = c.x - (xf.q.c * p.x - xf.q.s * p.y);
xf.p.y = c.y - (xf.q.s * p.x + xf.q.c * p.y);
return xf;
}
``` | /content/code_sandbox/src/dynamics/Position.ts | xml | 2016-03-22T04:46:05 | 2024-08-16T07:41:00 | planck.js | piqnt/planck.js | 4,864 | 545 |
```xml
export { buttonVariables as buttonContentVariables } from './buttonVariables';
``` | /content/code_sandbox/packages/fluentui/react-northstar/src/themes/teams/components/Button/buttonContentVariables.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 15 |
```xml
import * as React from 'react';
import { render } from '@testing-library/react';
import { OptionGroup } from './OptionGroup';
import { isConformant } from '../../testing/isConformant';
describe('OptionGroup', () => {
isConformant({
Component: OptionGroup,
displayName: 'OptionGroup',
testOptions: {
'has-static-classnames': [
{
props: {
label: 'group label',
},
},
],
},
});
it('renders a default state', () => {
const result = render(<OptionGroup>Default OptionGroup</OptionGroup>);
expect(result.container).toMatchSnapshot();
});
it('renders with a label', () => {
const result = render(<OptionGroup label="optgroup label">Default OptionGroup</OptionGroup>);
expect(result.container).toMatchSnapshot();
});
it('sets aria-labelledby to match the label id', () => {
const { getByText } = render(<OptionGroup label="optgroup label">Default OptionGroup</OptionGroup>);
const root = getByText('Default OptionGroup');
const label = getByText('optgroup label');
expect(root.getAttribute('aria-labelledby')).toEqual(label.id);
});
});
``` | /content/code_sandbox/packages/react-components/react-combobox/library/src/components/OptionGroup/OptionGroup.test.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 258 |
```xml
/*
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
*/
import {AxeResults} from 'axe-core';
import {isNil} from 'lodash';
import {expect} from '@playwright/test';
function validateResults(results: AxeResults) {
expect(
results.violations.filter(
(violation) =>
isNil(violation.impact) ||
['critical', 'serious'].includes(violation.impact),
),
).toHaveLength(0);
expect(results.passes.length).toBeGreaterThan(0);
}
export {validateResults};
``` | /content/code_sandbox/operate/client/e2e-playwright/a11y/validateResults.ts | xml | 2016-03-20T03:38:04 | 2024-08-16T19:59:58 | camunda | camunda/camunda | 3,172 | 133 |
```xml
import {IrcEventHandler} from "../../client";
import Msg from "../../models/msg";
export default <IrcEventHandler>function (irc, network) {
const client = this;
irc.on("registered", function (data) {
network.setNick(data.nick);
const lobby = network.getLobby();
const msg = new Msg({
text: "You're now known as " + data.nick,
});
lobby.pushMessage(client, msg);
client.save();
client.emit("nick", {
network: network.uuid,
nick: data.nick,
});
});
};
``` | /content/code_sandbox/server/plugins/irc-events/welcome.ts | xml | 2016-02-09T03:16:03 | 2024-08-16T10:52:38 | thelounge | thelounge/thelounge | 5,518 | 129 |
```xml
// See LICENSE.txt for license information.
import {General} from '@constants';
import type ClientBase from './base';
export interface ClientNPSMix {
npsGiveFeedbackAction: () => Promise<Post>;
}
const ClientNPS = <TBase extends Constructor<ClientBase>>(superclass: TBase) => class extends superclass {
npsGiveFeedbackAction = async () => {
return this.doFetch(
`${this.getPluginRoute(General.NPS_PLUGIN_ID)}/api/v1/give_feedback`,
{method: 'post'},
);
};
};
export default ClientNPS;
``` | /content/code_sandbox/app/client/rest/nps.ts | xml | 2016-10-07T16:52:32 | 2024-08-16T12:08:38 | mattermost-mobile | mattermost/mattermost-mobile | 2,155 | 125 |
```xml
<?xml version="1.0" encoding="utf-8"?><!--
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<com.google.android.flexbox.FlexboxLayout xmlns:android="path_to_url"
xmlns:app="path_to_url"
android:id="@+id/flexbox_layout"
android:layout_width="400dp"
android:layout_height="400dp"
app:flexDirection="column"
app:flexWrap="wrap"
app:alignContent="flex_start"
app:alignItems="flex_start"
app:dividerDrawableHorizontal="@drawable/divider"
app:showDividerHorizontal="beginning">
<TextView
android:id="@+id/text1"
android:layout_width="80dp"
android:layout_height="90dp"
android:text="1" />
<TextView
android:id="@+id/text2"
android:layout_width="80dp"
android:layout_height="90dp"
android:text="2" />
<TextView
android:id="@+id/text3"
android:layout_width="80dp"
android:layout_height="90dp"
android:text="3" />
<TextView
android:id="@+id/text4"
android:layout_width="80dp"
android:layout_height="140dp"
android:text="4" />
<TextView
android:id="@+id/text5"
android:layout_width="80dp"
android:layout_height="140dp"
android:text="5" />
</com.google.android.flexbox.FlexboxLayout>
``` | /content/code_sandbox/flexbox/src/androidTest/res/layout/activity_divider_test_direction_column.xml | xml | 2016-05-04T08:11:22 | 2024-08-15T12:27:34 | flexbox-layout | google/flexbox-layout | 18,226 | 362 |
```xml
import chalk from 'chalk'
import * as fs from 'fs'
import * as pathlib from 'path'
import type commandDefinitions from '../command-definitions'
import * as consts from '../consts'
import * as errors from '../errors'
import * as utils from '../utils'
import { GlobalCommand } from './global-command'
type ProjectType = 'bot' | 'integration'
export type InitCommandDefinition = typeof commandDefinitions.init
export class InitCommand extends GlobalCommand<InitCommandDefinition> {
public async run(): Promise<void> {
let { type: projectType } = this.argv
if (!projectType) {
const promptedType = await this.prompt.select('What type of project do you wish to initialize?', {
choices: (['bot', 'integration'] as const).map((t) => ({ title: t, value: t })),
})
if (!promptedType) {
throw new errors.ParamRequiredError('Project Type')
}
projectType = promptedType
}
const workDir = utils.path.absoluteFrom(utils.path.cwd(), this.argv.workDir)
if (projectType === 'bot') {
await this._initBot({ workDir })
return
}
await this._initIntegration({ workDir })
return
}
private _initBot = async (args: { workDir: string }) => {
const { workDir } = args
const name = await this._getName('bot', consts.echoBotDirName)
await this._copy({ srcDir: this.globalPaths.abs.echoBotTemplate, destDir: workDir, name })
this.logger.success(`Bot project initialized in ${chalk.bold(workDir)}`)
}
private _initIntegration = async (args: { workDir: string }) => {
const { workDir } = args
const template = await this.prompt.select('Which template do you want to use?', {
choices: [
{ title: 'Empty Integration', value: consts.emptyIntegrationDirName },
{ title: 'Hello World', value: consts.helloWorldIntegrationDirName },
{ title: 'Webhook Message', value: consts.webhookMessageIntegrationDirName },
],
default: consts.emptyIntegrationDirName,
})
let srcDirPath: string
if (template === consts.helloWorldIntegrationDirName) {
srcDirPath = this.globalPaths.abs.helloWorldIntegrationTemplate
} else if (template === consts.webhookMessageIntegrationDirName) {
srcDirPath = this.globalPaths.abs.webhookMessageIntegrationTemplate
} else {
srcDirPath = this.globalPaths.abs.emptyIntegrationTemplate
}
const name = await this._getName('integration', template ?? consts.emptyIntegrationDirName)
await this._copy({ srcDir: srcDirPath, destDir: workDir, name })
this.logger.success(`Integration project initialized in ${chalk.bold(this.argv.workDir)}`)
return
}
private _getName = async (projectType: ProjectType, defaultName: string): Promise<string> => {
if (this.argv.name) {
return this.argv.name
}
const promptMessage = `What is the name of your ${projectType}?`
const promptedName = await this.prompt.text(promptMessage, { initial: defaultName })
if (!promptedName) {
throw new errors.ParamRequiredError('Project Name')
}
return promptedName
}
private _copy = async (props: { srcDir: string; destDir: string; name: string }) => {
const { srcDir, destDir, name } = props
const dirName = utils.casing.to.kebabCase(name)
const destination = pathlib.join(destDir, dirName)
const exist = await this._checkIfDestinationExists(destination)
if (exist) {
return
}
await fs.promises.cp(srcDir, destination, { recursive: true })
const pkgJsonPath = pathlib.join(destination, 'package.json')
const strContent = await fs.promises.readFile(pkgJsonPath, 'utf-8')
const { name: _, integrationName: __, ...json } = JSON.parse(strContent)
const pkgJsonName = utils.casing.to.snakeCase(name)
const updatedJson = { name: pkgJsonName, integrationName: name, ...json }
await fs.promises.writeFile(pkgJsonPath, JSON.stringify(updatedJson, null, 2))
}
private _checkIfDestinationExists = async (destination: string) => {
if (fs.existsSync(destination)) {
const override = await this.prompt.confirm(
`Directory ${chalk.bold(destination)} already exists. Do you want to overwrite it?`
)
if (!override) {
this.logger.log('Aborting')
return true
}
}
return false
}
}
``` | /content/code_sandbox/packages/cli/src/command-implementations/init-command.ts | xml | 2016-11-16T21:57:59 | 2024-08-16T18:45:35 | botpress | botpress/botpress | 12,401 | 1,021 |
```xml
import React from 'react';
import type {
AppContext, RunClientAppOptions,
} from '@ice/runtime';
import { AppContextProvider, getAppData, getAppConfig, Runtime } from '@ice/runtime';
import { Current } from '../index.js';
import { eventCenter } from '../emitter/emitter.js';
import { APP_DATA_READY } from '../constants/index.js';
import App from './App.js';
import { createMiniApp } from './connect.js';
import { setHistory } from './history.js';
import injectMiniappLifecycles from './injectMiniappLifecycles.js';
export default async function runClientApp(options: RunClientAppOptions) {
const { app, runtimeModules } = options;
const appConfig = getAppConfig(app);
const appContext: AppContext = {
appExport: app,
appConfig,
appData: null,
};
const runtime = new Runtime(appContext);
if (runtimeModules.statics) {
await Promise.all(runtimeModules.statics.map(m => runtime.loadModule(m)).filter(Boolean));
}
const { miniappManifest, miniappLifecycles = {} } = app;
injectMiniappLifecycles(miniappLifecycles);
// TODO: transform routes to pages in miniappManifest
createMiniApp(miniappManifest, miniappLifecycles);
const appData = await getAppData(app);
setHistory(miniappManifest.routes);
runtime.setAppContext({ ...appContext, appData });
if (runtimeModules.commons) {
await Promise.all(runtimeModules.commons.map(m => runtime.loadModule(m)).filter(Boolean));
}
render(runtime);
Current.appDataReady = true;
eventCenter.trigger(APP_DATA_READY);
}
async function render(
runtime: Runtime,
) {
const appContext = runtime.getAppContext();
const render = runtime.getRender();
const AppRuntimeProvider = runtime.composeAppProvider() || React.Fragment;
render(
document.getElementById('ice-container'),
<AppContextProvider value={appContext}>
<AppRuntimeProvider>
<App />
</AppRuntimeProvider>
</AppContextProvider>,
);
}
``` | /content/code_sandbox/packages/miniapp-runtime/src/app/runClientApp.tsx | xml | 2016-11-03T06:59:15 | 2024-08-16T10:11:29 | ice | alibaba/ice | 17,815 | 459 |
```xml
export {
Chart,
type ChartOptions,
type MarkNode,
type CompositionNode,
} from './chart';
export { register } from './library';
export { Runtime } from './runtime';
export { extend } from './extend';
``` | /content/code_sandbox/src/api/index.ts | xml | 2016-05-26T09:21:04 | 2024-08-15T16:11:17 | G2 | antvis/G2 | 12,060 | 50 |
```xml
import type { ExpoConfig } from 'expo/config';
import type {
EASConfig as ManifestsEASConfig,
ExpoGoConfig as ManifestsExpoGoConfig,
ExpoUpdatesManifest,
EmbeddedManifest,
ManifestAsset as ManifestAssetForReExport,
ManifestExtra as ManifestExtraForReExport,
ClientScopingConfig as ClientScopingConfigForReExport,
ExpoGoPackagerOpts as ExpoGoPackagerOptsForReExport,
// @ts-ignore -- optional interface, will gracefully degrade to `any` not installed
} from 'expo-manifests';
export enum AppOwnership {
/**
* The experience is running inside of the Expo Go app.
* @deprecated Use [`Constants.executionEnvironment`](#executionenvironment) instead.
*/
Expo = 'expo',
}
// @docsMissing
export enum ExecutionEnvironment {
Bare = 'bare',
Standalone = 'standalone',
StoreClient = 'storeClient',
}
// @needsAudit
/**
* Current supported values are `handset`, `tablet`, `desktop` and `tv`. CarPlay will show up
* as `unsupported`.
*/
export enum UserInterfaceIdiom {
Handset = 'handset',
Tablet = 'tablet',
Desktop = 'desktop',
TV = 'tv',
Unsupported = 'unsupported',
}
// @needsAudit
export interface IOSManifest {
/**
* The build number specified in the embedded **Info.plist** value for `CFBundleVersion` in this app.
* In a standalone app, you can set this with the `ios.buildNumber` value in **app.json**. This
* may differ from the value in `Constants.expoConfig.ios.buildNumber` because the manifest
* can be updated, whereas this value will never change for a given native binary.
* The value is set to `null` in case you run your app in Expo Go.
*/
buildNumber: string | null;
/**
* The Apple internal model identifier for this device. For example, `iPhone1,1`.
* @deprecated Use `expo-device`'s [`Device.modelId`](./device/#devicemodelid).
*/
platform: string;
/**
* The human-readable model name of this device. For example, `"iPhone 7 Plus"` if it can be determined,
* otherwise will be `null`.
* @deprecated Moved to `expo-device` as [`Device.modelName`](./device/#devicemodelname).
*/
model: string | null;
/**
* The user interface idiom of the current device, such as whether the app is running on an iPhone, iPad, Mac or Apple TV.
* @deprecated Use `expo-device`'s [`Device.getDeviceTypeAsync()`](./device/#devicegetdevicetypeasync).
*/
userInterfaceIdiom: UserInterfaceIdiom;
/**
* The version of iOS running on this device. For example, `10.3`.
* @deprecated Use `expo-device`'s [`Device.osVersion`](./device/#deviceosversion).
*/
systemVersion: string;
[key: string]: any;
}
// @needsAudit
export interface AndroidManifest {
/**
* The version code set by `android.versionCode` in app.json.
* The value is set to `null` in case you run your app in Expo Go.
* @deprecated Use `expo-application`'s [`Application.nativeBuildVersion`](./application/#applicationnativebuildversion).
*/
versionCode: number;
[key: string]: any;
}
export interface WebManifest {
[key: string]: any;
}
// type re-exports to prevent breaking change
export type ManifestAsset = ManifestAssetForReExport;
export type Manifest = ExpoUpdatesManifest;
export type ManifestExtra = ManifestExtraForReExport;
export type EASConfig = ManifestsEASConfig;
export type ClientScopingConfig = ClientScopingConfigForReExport;
export type ExpoGoConfig = ManifestsExpoGoConfig;
export type ExpoGoPackagerOpts = ExpoGoPackagerOptsForReExport;
// @needsAudit @docsMissing
export interface PlatformManifest {
ios?: IOSManifest;
android?: AndroidManifest;
web?: WebManifest;
detach?: {
scheme?: string;
[key: string]: any;
};
scheme?: string;
hostUri?: string;
developer?: string;
[key: string]: any;
}
// @needsAudit @docsMissing
export interface NativeConstants {
/**
* @hidden
*/
name: 'ExponentConstants';
/**
* Returns `expo` when running in Expo Go, otherwise `null`.
* @deprecated Use [`Constants.executionEnvironment`](#executionenvironment) instead.
*/
appOwnership: AppOwnership | null;
/**
* Returns `true` when the app is running in debug mode (`__DEV__`). Otherwise, returns `false`.
*/
debugMode: boolean;
/**
* A human-readable name for the device type.
*/
deviceName?: string;
/**
* The [device year class](path_to_url of this device.
* @deprecated Moved to `expo-device` as [`Device.deviceYearClass`](./device/#deviceyearclass).
*/
deviceYearClass: number | null;
/**
* Returns the current execution environment.
*/
executionEnvironment: ExecutionEnvironment;
experienceUrl: string;
// only nullable on web
expoRuntimeVersion: string | null;
/**
* The version string of the Expo Go app currently running.
* Returns `null` in bare workflow and web.
*/
expoVersion: string | null;
isDetached?: boolean;
intentUri?: string;
/**
* Returns `true` if the app is running in headless mode. Otherwise, returns `false`.
*/
isHeadless: boolean;
linkingUri: string;
/**
* @hidden
* Manifest embedded in the build. Returns `null` when `manifest2` is non-null.
* @deprecated Use `Constants.expoConfig` instead, which behaves more consistently across EAS Build
* and EAS Update.
*/
manifest: EmbeddedManifest | null;
/**
* Manifest for Expo apps using modern Expo Updates from a remote source, such as apps that
* use EAS Update. `Constants.expoConfig` should be used for accessing the Expo config object.
*/
manifest2: ExpoUpdatesManifest | null;
/**
* The standard Expo config object defined in **app.json** and **app.config.js** files. For both
* classic and modern manifests, whether they are embedded or remote.
*/
expoConfig:
| (ExpoConfig & {
/**
* Only present during development using @expo/cli.
*/
hostUri?: string;
})
| null;
/**
* The standard Expo Go config object populated when running in Expo Go.
*/
expoGoConfig: ManifestsExpoGoConfig | null;
/**
* The standard EAS config object populated when using EAS.
*/
easConfig: ManifestsEASConfig | null;
/**
* A string that is unique to the current session of your app. It is different across apps and
* across multiple launches of the same app.
*/
sessionId: string;
/**
* The default status bar height for the device. Does not factor in changes when location tracking
* is in use or a phone call is active.
*/
statusBarHeight: number;
/**
* A list of the system font names available on the current device.
*/
systemFonts: string[];
systemVersion?: number;
/**
* @hidden
*/
supportedExpoSdks?: string[];
/**
* Returns the specific platform manifest object.
*
* > **Note**: This is distinct from the `manifest` and `manifest2`.
*/
platform?: PlatformManifest;
/**
* Gets the user agent string which would be included in requests sent by a web view running on
* this device. This is probably not the same user agent you might be providing in your JS `fetch`
* requests.
*/
getWebViewUserAgentAsync: () => Promise<string | null>;
[key: string]: any;
}
export interface Constants extends NativeConstants {
/**
* @hidden
* @warning do not use this property. Use `manifest` by default.
*
* In certain cases accessing manifest via this property
* suppresses important warning about missing manifest.
*/
__unsafeNoWarnManifest?: EmbeddedManifest;
/**
* @hidden
* @warning do not use this property. Use `manifest2` by default.
*
* In certain cases accessing manifest via this property
* suppresses important warning about missing manifest.
*/
__unsafeNoWarnManifest2?: ExpoUpdatesManifest;
}
``` | /content/code_sandbox/packages/expo-constants/src/Constants.types.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 1,903 |
```xml
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<glade-interface>
<widget class="GtkWindow" id="window1">
<property name="visible">True</property>
<property name="title" translatable="yes">Gtk Buildroot Configurator</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="default_width">640</property>
<property name="default_height">480</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<signal name="destroy" handler="on_window1_destroy" object="window1"/>
<signal name="size_request" handler="on_window1_size_request" object="vpaned1" last_modification_time="Fri, 11 Jan 2002 16:17:11 GMT"/>
<signal name="delete_event" handler="on_window1_delete_event" object="window1" last_modification_time="Sun, 09 Mar 2003 19:42:46 GMT"/>
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkMenuBar" id="menubar1">
<property name="visible">True</property>
<child>
<widget class="GtkMenuItem" id="file1">
<property name="visible">True</property>
<property name="label" translatable="yes">_File</property>
<property name="use_underline">True</property>
<child>
<widget class="GtkMenu" id="file1_menu">
<child>
<widget class="GtkImageMenuItem" id="load1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Load a config file</property>
<property name="label" translatable="yes">_Load</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_load1_activate"/>
<accelerator key="L" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="image39">
<property name="visible">True</property>
<property name="stock">gtk-open</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="save1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Save the config in .config</property>
<property name="label" translatable="yes">_Save</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_save_activate"/>
<accelerator key="S" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="image40">
<property name="visible">True</property>
<property name="stock">gtk-save</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="save_as1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Save the config in a file</property>
<property name="label" translatable="yes">Save _as</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_save_as1_activate"/>
<child internal-child="image">
<widget class="GtkImage" id="image41">
<property name="visible">True</property>
<property name="stock">gtk-save-as</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkSeparatorMenuItem" id="separator1">
<property name="visible">True</property>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="quit1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Quit</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_quit1_activate"/>
<accelerator key="Q" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="image42">
<property name="visible">True</property>
<property name="stock">gtk-quit</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="options1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Options</property>
<property name="use_underline">True</property>
<child>
<widget class="GtkMenu" id="options1_menu">
<child>
<widget class="GtkCheckMenuItem" id="show_name1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Show name</property>
<property name="label" translatable="yes">Show _name</property>
<property name="use_underline">True</property>
<property name="active">False</property>
<signal name="activate" handler="on_show_name1_activate"/>
</widget>
</child>
<child>
<widget class="GtkCheckMenuItem" id="show_range1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Show range (Y/M/N)</property>
<property name="label" translatable="yes">Show _range</property>
<property name="use_underline">True</property>
<property name="active">False</property>
<signal name="activate" handler="on_show_range1_activate"/>
</widget>
</child>
<child>
<widget class="GtkCheckMenuItem" id="show_data1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Show value of the option</property>
<property name="label" translatable="yes">Show _data</property>
<property name="use_underline">True</property>
<property name="active">False</property>
<signal name="activate" handler="on_show_data1_activate"/>
</widget>
</child>
<child>
<widget class="GtkSeparatorMenuItem" id="separator2">
<property name="visible">True</property>
</widget>
</child>
<child>
<widget class="GtkRadioMenuItem" id="set_option_mode1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Show normal options</property>
<property name="label" translatable="yes">Show normal options</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<signal name="activate" handler="on_set_option_mode1_activate"/>
</widget>
</child>
<child>
<widget class="GtkRadioMenuItem" id="set_option_mode2">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Show all options</property>
<property name="label" translatable="yes">Show all _options</property>
<property name="use_underline">True</property>
<property name="active">False</property>
<property name="group">set_option_mode1</property>
<signal name="activate" handler="on_set_option_mode2_activate"/>
</widget>
</child>
<child>
<widget class="GtkRadioMenuItem" id="set_option_mode3">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Show all options with prompts</property>
<property name="label" translatable="yes">Show all prompt options</property>
<property name="use_underline">True</property>
<property name="active">False</property>
<property name="group">set_option_mode1</property>
<signal name="activate" handler="on_set_option_mode3_activate"/>
</widget>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="help1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Help</property>
<property name="use_underline">True</property>
<child>
<widget class="GtkMenu" id="help1_menu">
<child>
<widget class="GtkImageMenuItem" id="introduction1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Introduction</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_introduction1_activate" last_modification_time="Fri, 15 Nov 2002 20:26:30 GMT"/>
<accelerator key="I" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="image43">
<property name="visible">True</property>
<property name="stock">gtk-dialog-question</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="about1">
<property name="visible">True</property>
<property name="label" translatable="yes">_About</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_about1_activate" last_modification_time="Fri, 15 Nov 2002 20:26:30 GMT"/>
<accelerator key="A" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="image44">
<property name="visible">True</property>
<property name="stock">gtk-properties</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="license1">
<property name="visible">True</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_license1_activate" last_modification_time="Fri, 15 Nov 2002 20:26:30 GMT"/>
<child internal-child="image">
<widget class="GtkImage" id="image45">
<property name="visible">True</property>
<property name="stock">gtk-justify-fill</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkHandleBox" id="handlebox1">
<property name="visible">True</property>
<property name="shadow_type">GTK_SHADOW_OUT</property>
<property name="handle_position">GTK_POS_LEFT</property>
<property name="snap_edge">GTK_POS_TOP</property>
<child>
<widget class="GtkToolbar" id="toolbar1">
<property name="visible">True</property>
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
<property name="toolbar_style">GTK_TOOLBAR_BOTH</property>
<property name="tooltips">True</property>
<property name="show_arrow">True</property>
<child>
<widget class="GtkToolButton" id="button1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Goes up of one level (single view)</property>
<property name="label" translatable="yes">Back</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-undo</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<signal name="clicked" handler="on_back_clicked"/>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<widget class="GtkToolItem" id="toolitem1">
<property name="visible">True</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<child>
<widget class="GtkVSeparator" id="vseparator1">
<property name="visible">True</property>
</widget>
</child>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">False</property>
</packing>
</child>
<child>
<widget class="GtkToolButton" id="button2">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Load a config file</property>
<property name="label" translatable="yes">Load</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-open</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<signal name="clicked" handler="on_load_clicked"/>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<widget class="GtkToolButton" id="button3">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Save a config file</property>
<property name="label" translatable="yes">Save</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-save</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<signal name="clicked" handler="on_save_activate"/>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<widget class="GtkToolItem" id="toolitem2">
<property name="visible">True</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<child>
<widget class="GtkVSeparator" id="vseparator2">
<property name="visible">True</property>
</widget>
</child>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">False</property>
</packing>
</child>
<child>
<widget class="GtkToolButton" id="button4">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Single view</property>
<property name="label" translatable="yes">Single</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-missing-image</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<signal name="clicked" handler="on_single_clicked" last_modification_time="Sun, 12 Jan 2003 14:28:39 GMT"/>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<widget class="GtkToolButton" id="button5">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Split view</property>
<property name="label" translatable="yes">Split</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-missing-image</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<signal name="clicked" handler="on_split_clicked" last_modification_time="Sun, 12 Jan 2003 14:28:45 GMT"/>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<widget class="GtkToolButton" id="button6">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Full view</property>
<property name="label" translatable="yes">Full</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-missing-image</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<signal name="clicked" handler="on_full_clicked" last_modification_time="Sun, 12 Jan 2003 14:28:50 GMT"/>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<widget class="GtkToolItem" id="toolitem3">
<property name="visible">True</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<child>
<widget class="GtkVSeparator" id="vseparator3">
<property name="visible">True</property>
</widget>
</child>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">False</property>
</packing>
</child>
<child>
<widget class="GtkToolButton" id="button7">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Collapse the whole tree in the right frame</property>
<property name="label" translatable="yes">Collapse</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-remove</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<signal name="clicked" handler="on_collapse_clicked"/>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<widget class="GtkToolButton" id="button8">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Expand the whole tree in the right frame</property>
<property name="label" translatable="yes">Expand</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-add</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<signal name="clicked" handler="on_expand_clicked"/>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkHPaned" id="hpaned1">
<property name="width_request">1</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="position">0</property>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
<widget class="GtkTreeView" id="treeview1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">True</property>
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">False</property>
<signal name="cursor_changed" handler="on_treeview2_cursor_changed" last_modification_time="Sun, 12 Jan 2003 15:58:22 GMT"/>
<signal name="button_press_event" handler="on_treeview1_button_press_event" last_modification_time="Sun, 12 Jan 2003 16:03:52 GMT"/>
<signal name="key_press_event" handler="on_treeview2_key_press_event" last_modification_time="Sun, 12 Jan 2003 16:11:44 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="shrink">True</property>
<property name="resize">False</property>
</packing>
</child>
<child>
<widget class="GtkVPaned" id="vpaned1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="position">0</property>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow2">
<property name="visible">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
<widget class="GtkTreeView" id="treeview2">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="headers_visible">True</property>
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">False</property>
<signal name="cursor_changed" handler="on_treeview2_cursor_changed" last_modification_time="Sun, 12 Jan 2003 15:57:55 GMT"/>
<signal name="button_press_event" handler="on_treeview2_button_press_event" last_modification_time="Sun, 12 Jan 2003 15:57:58 GMT"/>
<signal name="key_press_event" handler="on_treeview2_key_press_event" last_modification_time="Sun, 12 Jan 2003 15:58:01 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="shrink">True</property>
<property name="resize">False</property>
</packing>
</child>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow3">
<property name="visible">True</property>
<property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
<widget class="GtkTextView" id="textview3">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">False</property>
<property name="overwrite">False</property>
<property name="accepts_tab">True</property>
<property name="justification">GTK_JUSTIFY_LEFT</property>
<property name="wrap_mode">GTK_WRAP_WORD</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property>
<property name="pixels_below_lines">0</property>
<property name="pixels_inside_wrap">0</property>
<property name="left_margin">0</property>
<property name="right_margin">0</property>
<property name="indent">0</property>
<property name="text" translatable="yes">Sorry, no help available for this option yet.</property>
</widget>
</child>
</widget>
<packing>
<property name="shrink">True</property>
<property name="resize">True</property>
</packing>
</child>
</widget>
<packing>
<property name="shrink">True</property>
<property name="resize">True</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>
``` | /content/code_sandbox/buildroot/support/kconfig/gconf.glade | xml | 2016-03-19T14:59:48 | 2024-08-15T01:49:02 | pinn | procount/pinn | 1,085 | 6,644 |
```xml
<shapes name="mxgraph.gcp.machine_learning">
<shape aspect="variable" h="113.93" name="Cloud Machine Learning" strokewidth="inherit" w="129.03">
<connections/>
<foreground>
<save/>
<path>
<move x="28.3" y="108.18"/>
<line x="2.05" y="62.72"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="2.05" x-axis-rotation="0" y="51.22"/>
<line x="28.3" y="5.75"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="38.26" x-axis-rotation="0" y="0"/>
<line x="90.76" y="0"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="100.72" x-axis-rotation="0" y="5.75"/>
<line x="126.97" y="51.22"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="126.97" x-axis-rotation="0" y="62.72"/>
<line x="100.72" y="108.18"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="90.76" x-axis-rotation="0" y="113.93"/>
<line x="38.26" y="113.93"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="28.3" x-axis-rotation="0" y="108.18"/>
<close/>
</path>
<fillstroke/>
<fillcolor color="#000000"/>
<alpha alpha="0.07"/>
<path>
<move x="80.76" y="27.72"/>
<line x="68.55" y="33.94"/>
<line x="62.38" y="27.77"/>
<line x="41.01" y="40.22"/>
<line x="45.26" y="44.47"/>
<line x="33.76" y="61.22"/>
<line x="39.01" y="66.47"/>
<line x="48.09" y="86.06"/>
<line x="75.68" y="113.85"/>
<line x="92.63" y="113.79"/>
<curve x1="95.82" x2="98.87" x3="100.9" y1="113.79" y2="111.44" y3="107.97"/>
<line x="122.88" y="69.95"/>
<close/>
</path>
<fill/>
<restore/>
<rect/>
<stroke/>
<fillcolor color="#fff"/>
<path>
<move x="80.44" y="66.97"/>
<line x="83.37" y="61.97"/>
<line x="94.61" y="61.97"/>
<line x="97.51" y="56.97"/>
<line x="89.98" y="43.97"/>
<line x="78.24" y="43.97"/>
<line x="74.85" y="37.97"/>
<line x="71.51" y="37.97"/>
<line x="71.51" y="33.97"/>
<line x="77.18" y="33.97"/>
<line x="80.57" y="39.97"/>
<line x="87.66" y="39.97"/>
<line x="80.7" y="27.97"/>
<line x="66.51" y="27.97"/>
<line x="66.51" y="44.97"/>
<line x="72.54" y="44.97"/>
<line x="74.87" y="48.97"/>
<line x="66.51" y="48.97"/>
<line x="66.51" y="56.97"/>
<line x="74.11" y="56.97"/>
<line x="77.58" y="50.97"/>
<line x="86.9" y="50.97"/>
<line x="89.21" y="54.97"/>
<line x="79.88" y="54.97"/>
<line x="76.42" y="60.97"/>
<line x="66.51" y="60.97"/>
<line x="66.51" y="75.97"/>
<line x="79.01" y="75.97"/>
<line x="76.7" y="79.97"/>
<line x="66.51" y="79.97"/>
<line x="66.51" y="85.97"/>
<line x="80.7" y="85.97"/>
<line x="92.3" y="65.97"/>
<line x="85.66" y="65.97"/>
<line x="82.74" y="70.97"/>
<line x="71.51" y="70.97"/>
<line x="71.51" y="66.97"/>
<line x="80.44" y="66.97"/>
<close/>
<move x="48.59" y="66.97"/>
<line x="45.66" y="61.97"/>
<line x="34.41" y="61.97"/>
<line x="31.51" y="56.97"/>
<line x="39.05" y="43.97"/>
<line x="50.79" y="43.97"/>
<line x="54.18" y="37.97"/>
<line x="57.51" y="37.97"/>
<line x="57.51" y="33.97"/>
<line x="51.85" y="33.97"/>
<line x="48.45" y="39.97"/>
<line x="41.37" y="39.97"/>
<line x="48.33" y="27.97"/>
<line x="62.51" y="27.97"/>
<line x="62.51" y="44.97"/>
<line x="56.49" y="44.97"/>
<line x="54.16" y="48.97"/>
<line x="62.51" y="48.97"/>
<line x="62.51" y="56.97"/>
<line x="54.92" y="56.97"/>
<line x="51.45" y="50.97"/>
<line x="42.13" y="50.97"/>
<line x="39.82" y="54.97"/>
<line x="49.14" y="54.97"/>
<line x="52.61" y="60.97"/>
<line x="62.51" y="60.97"/>
<line x="62.51" y="75.97"/>
<line x="50.02" y="75.97"/>
<line x="52.33" y="79.97"/>
<line x="62.51" y="79.97"/>
<line x="62.51" y="85.97"/>
<line x="48.33" y="85.97"/>
<line x="36.73" y="65.97"/>
<line x="43.37" y="65.97"/>
<line x="46.29" y="70.97"/>
<line x="57.51" y="70.97"/>
<line x="57.51" y="66.97"/>
<line x="48.59" y="66.97"/>
<close/>
</path>
<fill/>
</foreground>
</shape>
<shape aspect="variable" h="113.93" name="Cloud Video Intelligence API" strokewidth="inherit" w="129.03">
<connections/>
<foreground>
<save/>
<path>
<move x="28.3" y="108.18"/>
<line x="2.05" y="62.72"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="2.05" x-axis-rotation="0" y="51.22"/>
<line x="28.3" y="5.75"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="38.26" x-axis-rotation="0" y="0"/>
<line x="90.76" y="0"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="100.72" x-axis-rotation="0" y="5.75"/>
<line x="126.97" y="51.22"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="126.97" x-axis-rotation="0" y="62.72"/>
<line x="100.72" y="108.18"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="90.76" x-axis-rotation="0" y="113.93"/>
<line x="38.26" y="113.93"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="28.3" x-axis-rotation="0" y="108.18"/>
<close/>
</path>
<fillstroke/>
<strokecolor color="none"/>
<fillcolor color="#000000"/>
<alpha alpha="0.07"/>
<path>
<move x="70.34" y="113.93"/>
<line x="90.76" y="113.93"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="0" x="100.72" x-axis-rotation="0" y="108.18"/>
<line x="123.68" y="68.41"/>
<line x="94.5" y="39.29"/>
<line x="89.82" y="48.17"/>
<line x="77.51" y="35.97"/>
<line x="65.36" y="42.98"/>
<line x="70.89" y="48.52"/>
<line x="68.28" y="48.48"/>
<line x="55.76" y="35.97"/>
<line x="39.11" y="38.97"/>
<line x="34.53" y="48.97"/>
<line x="40.82" y="55.22"/>
<line x="34.53" y="60.72"/>
<line x="41.54" y="67.85"/>
<line x="34.53" y="77.97"/>
<close/>
</path>
<fill/>
<restore/>
<rect/>
<stroke/>
<strokecolor color="none"/>
<fillcolor color="#fff"/>
<path>
<move x="77.51" y="35.97"/>
<line x="60.93" y="35.97"/>
<line x="65.35" y="42.97"/>
<line x="71.51" y="42.97"/>
<line x="71.51" y="46.97"/>
<line x="62.74" y="46.97"/>
<line x="55.76" y="35.97"/>
<line x="34.53" y="35.97"/>
<line x="34.53" y="48.97"/>
<line x="40.51" y="48.97"/>
<line x="44.29" y="41.97"/>
<line x="52.01" y="41.97"/>
<line x="54.57" y="45.97"/>
<line x="46.87" y="45.97"/>
<line x="43.09" y="52.97"/>
<line x="34.53" y="52.97"/>
<line x="34.53" y="60.72"/>
<line x="43.09" y="60.72"/>
<line x="46.87" y="67.97"/>
<line x="54.57" y="67.97"/>
<line x="52.01" y="71.97"/>
<line x="44.29" y="71.97"/>
<line x="40.51" y="64.97"/>
<line x="34.53" y="64.97"/>
<line x="34.53" y="77.97"/>
<line x="55.76" y="77.97"/>
<line x="62.74" y="66.97"/>
<line x="71.51" y="66.97"/>
<line x="71.51" y="70.97"/>
<line x="65.35" y="70.97"/>
<line x="60.93" y="77.97"/>
<line x="77.51" y="77.97"/>
<line x="77.51" y="58.97"/>
<line x="58.27" y="58.97"/>
<line x="55.79" y="62.97"/>
<line x="50.26" y="62.97"/>
<line x="54.06" y="56.97"/>
<line x="50.26" y="50.97"/>
<line x="55.79" y="50.97"/>
<line x="58.18" y="54.96"/>
<line x="77.51" y="54.96"/>
<line x="77.51" y="35.97"/>
<close/>
<move x="94.5" y="39.29"/>
<line x="82.51" y="48"/>
<line x="82.51" y="66.31"/>
<line x="94.5" y="75.14"/>
<line x="94.5" y="39.29"/>
<close/>
</path>
<fill/>
</foreground>
</shape>
<shape aspect="variable" h="113.93" name="Jobs API" strokewidth="inherit" w="129.03">
<connections/>
<foreground>
<save/>
<path>
<move x="28.3" y="108.18"/>
<line x="2.05" y="62.72"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="2.05" x-axis-rotation="0" y="51.22"/>
<line x="28.3" y="5.75"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="38.26" x-axis-rotation="0" y="0"/>
<line x="90.76" y="0"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="100.72" x-axis-rotation="0" y="5.75"/>
<line x="126.97" y="51.22"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="126.97" x-axis-rotation="0" y="62.72"/>
<line x="100.72" y="108.18"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="90.76" x-axis-rotation="0" y="113.93"/>
<line x="38.26" y="113.93"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="28.3" x-axis-rotation="0" y="108.18"/>
<close/>
</path>
<fillstroke/>
<strokecolor color="none"/>
<fillcolor color="#000000"/>
<alpha alpha="0.07"/>
<path>
<move x="81.14" y="40.84"/>
<line x="64.51" y="36.39"/>
<line x="49.58" y="41.94"/>
<line x="43.82" y="56.97"/>
<line x="48.45" y="73.7"/>
<line x="88.69" y="113.93"/>
<line x="90.76" y="113.93"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="0" x="100.72" x-axis-rotation="0" y="108.18"/>
<line x="118.2" y="77.91"/>
<close/>
</path>
<fill/>
<restore/>
<rect/>
<stroke/>
<strokecolor color="none"/>
<fillcolor color="#fff"/>
<path>
<move x="64.51" y="33.77"/>
<arc large-arc-flag="1" rx="23.2" ry="23.2" sweep-flag="0" x="87.71" x-axis-rotation="0" y="56.97"/>
<line x="87.71" y="56.97"/>
<arc large-arc-flag="0" rx="23.2" ry="23.2" sweep-flag="0" x="64.51" x-axis-rotation="0" y="33.77"/>
<move x="64.51" y="74.57"/>
<arc large-arc-flag="1" rx="17.6" ry="17.6" sweep-flag="1" x="82.11" x-axis-rotation="0" y="56.97"/>
<line x="82.11" y="56.97"/>
<arc large-arc-flag="0" rx="17.6" ry="17.6" sweep-flag="1" x="64.52" x-axis-rotation="0" y="74.57"/>
<line x="64.51" y="74.57"/>
<move x="81.21" y="71.25"/>
<line x="78.8" y="73.66"/>
<arc large-arc-flag="0" rx="1.09" ry="1.09" sweep-flag="0" x="78.8" x-axis-rotation="0" y="75.2"/>
<line x="87.92" y="84.31"/>
<arc large-arc-flag="0" rx="1.09" ry="1.09" sweep-flag="0" x="89.45" x-axis-rotation="0" y="84.31"/>
<line x="91.86" y="81.91"/>
<arc large-arc-flag="0" rx="1.09" ry="1.09" sweep-flag="0" x="91.86" x-axis-rotation="0" y="80.37"/>
<line x="82.74" y="71.25"/>
<arc large-arc-flag="0" rx="1.09" ry="1.09" sweep-flag="0" x="81.21" x-axis-rotation="0" y="71.25"/>
</path>
<fill/>
<roundrect arcsize="10.6" h="15" w="22" x="53.51" y="50.97"/>
<fill/>
<path>
<move x="68.51" y="47.97"/>
<line x="68.51" y="50.97"/>
<line x="60.51" y="50.97"/>
<line x="60.51" y="47.97"/>
<close/>
<move x="58.51" y="47.97"/>
<line x="58.51" y="53.97"/>
<line x="70.51" y="53.97"/>
<line x="70.51" y="47.97"/>
<arc large-arc-flag="0" rx="2" ry="2" sweep-flag="0" x="68.51" x-axis-rotation="0" y="45.97"/>
<line x="60.51" y="45.97"/>
<arc large-arc-flag="0" rx="2" ry="2" sweep-flag="0" x="58.51" x-axis-rotation="0" y="47.97"/>
<close/>
</path>
<fill/>
</foreground>
</shape>
<shape aspect="variable" h="114" name="Natural Language API" strokewidth="inherit" w="129.3">
<connections/>
<foreground>
<save/>
<path>
<move x="28.4" y="108.2"/>
<line x="2.1" y="62.7"/>
<curve x1="0" x2="0" x3="2.1" y1="59.1" y2="54.8" y3="51.2"/>
<line x="28.4" y="5.7"/>
<curve x1="30.5" x2="34.3" x3="38.4" y1="2.1" y2="0" y3="0"/>
<line x="90.9" y="0"/>
<curve x1="95" x2="98.8" x3="100.9" y1="0" y2="2.2" y3="5.7"/>
<line x="127.2" y="51.2"/>
<curve x1="129.3" x2="129.3" x3="127.2" y1="54.8" y2="59.1" y3="62.7"/>
<line x="100.9" y="108.2"/>
<curve x1="98.8" x2="95" x3="90.9" y1="111.8" y2="113.9" y3="113.9"/>
<line x="38.4" y="113.9"/>
<curve x1="34.2" x2="30.4" x3="28.4" y1="114" y2="111.8" y3="108.2"/>
<close/>
</path>
<fillstroke/>
<strokecolor color="none"/>
<fillcolor color="#000000"/>
<alpha alpha="0.07"/>
<path>
<move x="128" y="60.4"/>
<line x="94.6" y="27"/>
<line x="92.7" y="51.1"/>
<line x="79.6" y="38"/>
<line x="63.3" y="42.7"/>
<line x="47.6" y="27"/>
<line x="40.6" y="34"/>
<line x="40.6" y="64.3"/>
<line x="34.6" y="87"/>
<line x="61.6" y="114"/>
<line x="90.9" y="114"/>
<curve x1="95" x2="98.8" x3="100.9" y1="114" y2="111.8" y3="108.3"/>
<line x="127.2" y="62.8"/>
<curve x1="127.5" x2="127.8" x3="128" y1="62" y2="61.2" y3="60.4"/>
<close/>
</path>
<fill/>
<restore/>
<rect/>
<stroke/>
<strokecolor color="none"/>
<fillcolor color="#FFFFFF"/>
<rect h="8" w="30" x="49.6" y="68"/>
<fill/>
<rect h="8" w="30" x="49.6" y="53"/>
<fill/>
<rect h="8" w="30" x="49.6" y="38"/>
<fill/>
<path>
<move x="86.6" y="27"/>
<line x="81.6" y="27"/>
<line x="81.6" y="35"/>
<line x="86.6" y="35"/>
<line x="86.6" y="79"/>
<line x="81.6" y="79"/>
<line x="81.6" y="87"/>
<line x="86.6" y="87"/>
<line x="94.6" y="87"/>
<line x="94.6" y="79"/>
<line x="94.6" y="35"/>
<line x="94.6" y="27"/>
<close/>
<move x="34.6" y="27"/>
<line x="34.6" y="35"/>
<line x="34.6" y="79"/>
<line x="34.6" y="87"/>
<line x="42.6" y="87"/>
<line x="47.6" y="87"/>
<line x="47.6" y="79"/>
<line x="42.6" y="79"/>
<line x="42.6" y="35"/>
<line x="47.6" y="35"/>
<line x="47.6" y="27"/>
<line x="42.6" y="27"/>
<close/>
</path>
<fill/>
</foreground>
</shape>
<shape aspect="variable" h="113.93" name="Speech API" strokewidth="inherit" w="129.03">
<connections/>
<foreground>
<save/>
<path>
<move x="28.3" y="108.18"/>
<line x="2.05" y="62.72"/>
<curve x1="0" x2="0" x3="2.05" y1="59.16" y2="54.77" y3="51.22"/>
<line x="28.3" y="5.75"/>
<curve x1="30.36" x2="34.16" x3="38.26" y1="2.19" y2="0" y3="0"/>
<line x="90.76" y="0"/>
<curve x1="94.87" x2="98.67" x3="100.72" y1="0" y2="2.19" y3="5.75"/>
<line x="126.97" y="51.22"/>
<curve x1="129.03" x2="129.03" x3="126.97" y1="54.77" y2="59.16" y3="62.72"/>
<line x="100.72" y="108.18"/>
<curve x1="98.67" x2="94.87" x3="90.76" y1="111.74" y2="113.93" y3="113.93"/>
<line x="38.26" y="113.93"/>
<curve x1="34.16" x2="30.36" x3="28.3" y1="113.93" y2="111.74" y3="108.18"/>
<close/>
</path>
<fillstroke/>
<strokecolor color="none"/>
<fillcolor color="#000000"/>
<alpha alpha="0.07"/>
<path>
<move x="94.51" y="40.97"/>
<line x="85.01" y="50.47"/>
<line x="68.51" y="33.97"/>
<line x="65.77" y="55.22"/>
<line x="55.51" y="44.97"/>
<line x="52.93" y="51.38"/>
<line x="42.51" y="40.97"/>
<line x="38.51" y="54.51"/>
<line x="41.85" y="68.62"/>
<line x="34.51" y="72.97"/>
<line x="75.48" y="113.93"/>
<line x="90.76" y="113.93"/>
<curve x1="94.87" x2="98.67" x3="100.72" y1="113.93" y2="111.74" y3="108.18"/>
<line x="123.05" y="69.51"/>
<line x="94.51" y="40.97"/>
<close/>
</path>
<fill/>
<restore/>
<rect/>
<stroke/>
<strokecolor color="none"/>
<fillcolor color="#FFFFFF"/>
<rect h="32" w="8" x="34.51" y="40.97"/>
<fill/>
<rect h="32" w="8" x="86.51" y="40.97"/>
<fill/>
<rect h="46" w="8" x="60.51" y="33.97"/>
<fill/>
<rect h="24" w="8" x="47.51" y="44.97"/>
<fill/>
<rect h="16" w="8" x="73.51" y="48.97"/>
<fill/>
</foreground>
</shape>
<shape aspect="variable" h="113.93" name="Translation API" strokewidth="inherit" w="129.03">
<connections/>
<foreground>
<save/>
<path>
<move x="28.3" y="108.18"/>
<line x="2.05" y="62.72"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="2.05" x-axis-rotation="0" y="51.22"/>
<line x="28.3" y="5.75"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="38.26" x-axis-rotation="0" y="0"/>
<line x="90.76" y="0"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="100.72" x-axis-rotation="0" y="5.75"/>
<line x="126.97" y="51.22"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="126.97" x-axis-rotation="0" y="62.72"/>
<line x="100.72" y="108.18"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="90.76" x-axis-rotation="0" y="113.93"/>
<line x="38.26" y="113.93"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="1" x="28.3" x-axis-rotation="0" y="108.18"/>
<close/>
</path>
<fillstroke/>
<strokecolor color="none"/>
<fillcolor color="#000000"/>
<alpha alpha="0.07"/>
<path>
<move x="92.99" y="42.44"/>
<line x="88.43" y="44.55"/>
<line x="81.15" y="62.52"/>
<line x="77.11" y="58.48"/>
<line x="70.41" y="57.78"/>
<line x="57.85" y="45.22"/>
<line x="50.43" y="46.05"/>
<line x="43.31" y="38.93"/>
<line x="39.93" y="45.8"/>
<line x="25.34" y="48.76"/>
<line x="38.47" y="61.88"/>
<line x="27.32" y="72.87"/>
<line x="68.38" y="113.93"/>
<line x="90.76" y="113.93"/>
<arc large-arc-flag="0" rx="11.5" ry="11.5" sweep-flag="0" x="100.72" x-axis-rotation="0" y="108.18"/>
<line x="121.96" y="71.41"/>
<close/>
</path>
<fill/>
<restore/>
<rect/>
<stroke/>
<strokecolor color="none"/>
<fillcolor color="#fff"/>
<path>
<move x="88.26" y="42.39"/>
<line x="93.03" y="42.39"/>
<line x="104.35" y="73.59"/>
<line x="99.72" y="73.59"/>
<line x="96.47" y="64.24"/>
<line x="84.23" y="64.24"/>
<line x="80.84" y="73.59"/>
<line x="76.51" y="73.59"/>
<close/>
<move x="95.27" y="60.8"/>
<line x="90.46" y="47.02"/>
<line x="85.47" y="60.8"/>
<close/>
<move x="51.07" y="50.97"/>
<line x="46.56" y="50.97"/>
<quad x1="45.88" x2="45.11" y1="52.47" y2="53.84"/>
<arc large-arc-flag="0" rx="28.02" ry="28.02" sweep-flag="1" x="41.75" x-axis-rotation="0" y="58.63"/>
<arc large-arc-flag="0" rx="36.62" ry="36.62" sweep-flag="1" x="38.18" x-axis-rotation="0" y="53.7"/>
<arc large-arc-flag="0" rx="24.78" ry="24.78" sweep-flag="1" x="36.74" x-axis-rotation="0" y="50.97"/>
<line x="32.32" y="50.97"/>
<curve x1="32.93" x2="33.62" x3="34.38" y1="51.97" y2="53.8" y3="55.14"/>
<arc large-arc-flag="0" rx="47.61" ry="47.61" sweep-flag="0" x="38.78" x-axis-rotation="0" y="61.52"/>
<arc large-arc-flag="0" rx="39.92" ry="39.92" sweep-flag="1" x="32.88" x-axis-rotation="0" y="65.78"/>
<arc large-arc-flag="0" rx="38.13" ry="38.13" sweep-flag="1" x="24.88" x-axis-rotation="0" y="69.31"/>
<line x="27.14" y="73.06"/>
<arc large-arc-flag="0" rx="49.67" ry="49.67" sweep-flag="0" x="35.07" x-axis-rotation="0" y="69.24"/>
<arc large-arc-flag="0" rx="46.99" ry="46.99" sweep-flag="0" x="41.67" x-axis-rotation="0" y="64.5"/>
<arc large-arc-flag="0" rx="28.05" ry="28.05" sweep-flag="0" x="44.75" x-axis-rotation="0" y="66.94"/>
<quad x1="46.46" x2="48.34" y1="68.11" y2="69.17"/>
<quad x1="50.22" x2="52.18" y1="70.24" y2="71.15"/>
<arc large-arc-flag="0" rx="41.81" ry="41.81" sweep-flag="0" x="56.08" x-axis-rotation="0" y="72.73"/>
<line x="58.3" y="68.69"/>
<quad x1="56.67" x2="54.89" y1="68.18" y2="67.48"/>
<quad x1="53.11" x2="51.33" y1="66.79" y2="65.9"/>
<quad x1="49.55" x2="47.82" y1="65.01" y2="63.92"/>
<arc large-arc-flag="0" rx="24.23" ry="24.23" sweep-flag="1" x="44.64" x-axis-rotation="0" y="61.53"/>
<arc large-arc-flag="0" rx="33.83" ry="33.83" sweep-flag="0" x="49.07" x-axis-rotation="0" y="55.24"/>
<curve x1="49.81" x2="50.48" x3="51.07" y1="53.87" y2="51.97" y3="50.97"/>
<close/>
<move x="77.3" y="58.46"/>
<line x="70.17" y="54.35"/>
<line x="70.17" y="57.56"/>
<line x="56.25" y="57.56"/>
<line x="56.25" y="59.62"/>
<line x="70.17" y="59.62"/>
<line x="70.17" y="62.58"/>
<line x="77.3" y="58.46"/>
<close/>
<move x="43.4" y="45.18"/>
<line x="43.4" y="38.99"/>
<line x="39.23" y="38.99"/>
<line x="39.23" y="45.18"/>
<line x="25.3" y="45.18"/>
<line x="25.3" y="48.79"/>
<line x="57.79" y="48.79"/>
<line x="57.79" y="45.18"/>
<line x="43.4" y="45.18"/>
<close/>
</path>
<fill/>
</foreground>
</shape>
<shape aspect="variable" h="113.93" name="Vision API" strokewidth="inherit" w="129.03">
<connections/>
<foreground>
<save/>
<path>
<move x="28.3" y="108.18"/>
<line x="2.05" y="62.72"/>
<curve x1="0" x2="0" x3="2.05" y1="59.16" y2="54.77" y3="51.22"/>
<line x="28.3" y="5.75"/>
<curve x1="30.36" x2="34.16" x3="38.26" y1="2.19" y2="0" y3="0"/>
<line x="90.76" y="0"/>
<curve x1="94.87" x2="98.67" x3="100.72" y1="0" y2="2.19" y3="5.75"/>
<line x="126.97" y="51.22"/>
<curve x1="129.03" x2="129.03" x3="126.97" y1="54.77" y2="59.16" y3="62.72"/>
<line x="100.72" y="108.18"/>
<curve x1="98.67" x2="94.87" x3="90.76" y1="111.74" y2="113.93" y3="113.93"/>
<line x="38.26" y="113.93"/>
<curve x1="34.16" x2="30.36" x3="28.3" y1="113.93" y2="111.74" y3="108.18"/>
<close/>
</path>
<fillstroke/>
<strokecolor color="none"/>
<fillcolor color="#000000"/>
<alpha alpha="0.07"/>
<path>
<move x="94.51" y="56.97"/>
<line x="87.51" y="60.11"/>
<line x="81.18" y="51.34"/>
<line x="64.51" y="39.3"/>
<line x="34.51" y="56.97"/>
<line x="91.44" y="113.89"/>
<curve x1="95.28" x2="98.78" x3="100.72" y1="113.66" y2="111.54" y3="108.18"/>
<line x="117.2" y="79.65"/>
<line x="94.51" y="56.97"/>
<close/>
</path>
<fill/>
<restore/>
<rect/>
<stroke/>
<strokecolor color="none"/>
<fillcolor color="#FFFFFF"/>
<path>
<move x="64.51" y="34.47"/>
<line x="34.51" y="56.97"/>
<line x="64.51" y="79.47"/>
<line x="94.51" y="56.97"/>
<line x="64.51" y="34.47"/>
<close/>
<move x="45.76" y="56.97"/>
<line x="64.51" y="43.84"/>
<line x="83.26" y="56.97"/>
<line x="64.51" y="70.09"/>
<line x="45.76" y="56.97"/>
<close/>
</path>
<fill/>
<ellipse h="11.24" w="11.24" x="58.91" y="51.35"/>
<fill/>
</foreground>
</shape>
</shapes>
``` | /content/code_sandbox/src/main/webapp/stencils/gcp/machine_learning.xml | xml | 2016-09-06T12:59:15 | 2024-08-16T13:28:41 | drawio | jgraph/drawio | 40,265 | 9,921 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\common.test.props" />
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<AssemblyName>Volo.Abp.AspNetCore.Authentication.OAuth.Tests</AssemblyName>
<PackageId>Volo.Abp.AspNetCore.Authentication.OAuth.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<RootNamespace />
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\AbpTestBase\AbpTestBase.csproj" />
<ProjectReference Include="..\..\src\Volo.Abp.AspNetCore.Authentication.OAuth\Volo.Abp.AspNetCore.Authentication.OAuth.csproj" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
</ItemGroup>
</Project>
``` | /content/code_sandbox/framework/test/Volo.Abp.AspNetCore.Authentication.OAuth.Tests/Volo.Abp.AspNetCore.Authentication.OAuth.Tests.csproj | xml | 2016-12-03T22:56:24 | 2024-08-16T16:24:05 | abp | abpframework/abp | 12,657 | 220 |
```xml
export * from 'rxjs-compat/operators/take';
``` | /content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/operators/take.d.ts | xml | 2016-09-05T10:18:44 | 2024-08-11T13:21:40 | LiquidCore | LiquidPlayer/LiquidCore | 1,010 | 12 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<resources xmlns:android="path_to_url"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="bsp_done_label" msgid="7007948707597430919">""</string>
<string name="bsp_hour_picker_description" msgid="7586639618712934060">" "</string>
<string name="bsp_minute_picker_description" msgid="6024811202872705251">" "</string>
<string name="bsp_select_hours" msgid="7651068754188418859">" "</string>
<string name="bsp_select_minutes" msgid="8327182090226828481">" "</string>
<string name="bsp_day_picker_description" msgid="3968620852217927702">" "</string>
<string name="bsp_year_picker_description" msgid="6963340404644587098">" "</string>
<string name="bsp_select_day" msgid="3973338219107019769">" "</string>
<string name="bsp_select_year" msgid="2603330600102539372">" "</string>
<string name="bsp_item_is_selected" msgid="2674929164900463786">"<xliff:g id="ITEM">%1$s</xliff:g> "</string>
<string name="bsp_deleted_key" msgid="6908431551612331381">"<xliff:g id="KEY">%1$s</xliff:g> "</string>
</resources>
``` | /content/code_sandbox/bottomsheetpickers/src/main/res/values-ml-rIN/strings.xml | xml | 2016-10-06T01:20:05 | 2024-08-05T10:12:07 | BottomSheetPickers | philliphsu/BottomSheetPickers | 1,101 | 378 |
```xml
import ScrollView from './ScrollView';
export type { ScrollViewProps } from './ScrollView';
export default ScrollView;
``` | /content/code_sandbox/src/internals/ScrollView/index.tsx | xml | 2016-06-06T02:27:46 | 2024-08-16T16:41:54 | rsuite | rsuite/rsuite | 8,263 | 21 |
```xml
import { Component } from '@angular/core';
import { Code } from '@domain/code';
@Component({
selector: 'accessibility-doc',
template: ` <div>
<app-docsectiontext>
<h3>Screen Reader</h3>
<p>
Value to describe the component can either be provided via <i>label</i> tag combined with <i>inputId</i> prop or using <i>ariaLabelledBy</i>, <i>ariaLabel</i> props. The input element uses <i>spinbutton</i> role in addition to the
<i>aria-valuemin</i>, <i>aria-valuemax</i> and <i>aria-valuenow</i> attributes.
</p>
</app-docsectiontext>
<app-code [code]="code" [hideToggleCode]="true" [hideCodeSandbox]="true" [hideStackBlitz]="true"></app-code>
<h3>Keyboard Support</h3>
<div class="doc-tablewrapper">
<table class="doc-table">
<thead>
<tr>
<th>Key</th>
<th>Function</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<i>tab</i>
</td>
<td>Moves focus to the input.</td>
</tr>
<tr>
<td>
<i>up arrow</i>
</td>
<td>Increments the value.</td>
</tr>
<tr>
<td>
<i>down arrow</i>
</td>
<td>Decrements the value.</td>
</tr>
<tr>
<td>
<i>home</i>
</td>
<td>Set the minimum value if provided.</td>
</tr>
<tr>
<td>
<i>end</i>
</td>
<td>Set the maximum value if provided.</td>
</tr>
</tbody>
</table>
</div>
</div>`
})
export class AccessibilityDoc {
code: Code = {
basic: `<label for="price">Price</label>
<p-inputNumber inputId="price" />
<span id="label_number">Number</span>
<p-inputNumber ariaLabelledBy="label_number" />
<p-inputNumber ariaLabel="Number" />`
};
}
``` | /content/code_sandbox/src/app/showcase/doc/inputnumber/accessibilitydoc.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 537 |
```xml
import React, {Component} from 'react'
import classnames from 'classnames'
import chroma from 'chroma-js'
import {isCellUntitled} from 'src/dashboards/utils/cellGetters'
import {DEFAULT_CELL_BG_COLOR} from 'src/dashboards/constants'
import {ErrorHandling} from 'src/shared/decorators/errors'
interface Props {
isEditable: boolean
cellName: string
makeSpaceForCellNote: boolean
cellBackgroundColor: string
cellTextColor: string
}
class LayoutCellHeader extends Component<Props> {
public render() {
return (
<div className={this.headingClass}>
{this.cellName}
{this.headingBar}
</div>
)
}
private get headingClass(): string {
const {isEditable} = this.props
return classnames('dash-graph--heading', {
'dash-graph--draggable': isEditable,
'dash-graph--heading-draggable': isEditable,
})
}
private get cellName(): JSX.Element {
const {
cellName,
makeSpaceForCellNote,
cellTextColor,
cellBackgroundColor,
} = this.props
const className = classnames('dash-graph--name', {
'dash-graph--name__default': isCellUntitled(cellName),
'dash-graph--name__note': makeSpaceForCellNote,
})
let nameStyle = {}
if (cellBackgroundColor !== DEFAULT_CELL_BG_COLOR) {
nameStyle = {
color: cellTextColor,
}
}
return (
<span className={className} style={nameStyle}>
{cellName}
</span>
)
}
private get headingBar(): JSX.Element {
const {isEditable, cellBackgroundColor} = this.props
if (isEditable) {
let barStyle
if (cellBackgroundColor !== DEFAULT_CELL_BG_COLOR) {
barStyle = {
backgroundColor: chroma(cellBackgroundColor).brighten(),
}
}
return (
<>
<div className="dash-graph--heading-bar" style={barStyle} />
<div className="dash-graph--heading-dragger" />
</>
)
}
}
}
export default ErrorHandling(LayoutCellHeader)
``` | /content/code_sandbox/ui/src/shared/components/LayoutCellHeader.tsx | xml | 2016-08-24T23:28:56 | 2024-08-13T19:50:03 | chronograf | influxdata/chronograf | 1,494 | 476 |
```xml
<LinearLayout android:orientation="vertical"
android:layout_height="match_parent"
android:layout_width="match_parent"
xmlns:android="path_to_url"
xmlns:app="path_to_url">
<app.dinus.com.loadingdrawable.LoadingView
android:id="@+id/circle_brood_view"
android:layout_weight="1"
android:layout_width="match_parent"
android:background="#ffd4d9da"
android:layout_height="0dp"
app:loading_renderer="CircleBroodLoadingRenderer"/>
<app.dinus.com.loadingdrawable.LoadingView
android:id="@+id/cool_wait_view"
android:layout_weight="1"
android:layout_height="0dp"
android:background="#ff1B78DD"
android:layout_width="match_parent"
app:loading_renderer="CoolWaitLoadingRenderer"/>
</LinearLayout>
``` | /content/code_sandbox/app/src/main/res/layout/activity_shape_change.xml | xml | 2016-04-16T07:33:57 | 2024-08-15T05:21:58 | LoadingDrawable | dinuscxj/LoadingDrawable | 4,099 | 193 |
```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>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.18</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>helloworld</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>helloworld</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
``` | /content/code_sandbox/quickstarts/languages/java/pom.xml | xml | 2016-03-17T18:40:42 | 2024-08-16T15:47:17 | kubernetes-engine-samples | GoogleCloudPlatform/kubernetes-engine-samples | 1,213 | 340 |
```xml
import { useFocusEffect } from '@react-navigation/native';
import { BlurView } from 'expo-blur';
import * as Location from 'expo-location';
import * as Notifications from 'expo-notifications';
import * as TaskManager from 'expo-task-manager';
import React from 'react';
import { NativeSyntheticEvent, StyleSheet, Text, View } from 'react-native';
import MapView from 'react-native-maps';
import Button from '../../components/Button';
const GEOFENCING_TASK = 'geofencing';
interface GeofencingRegion {
identifier: string;
latitude: number;
longitude: number;
radius: number;
}
export interface MapEvent<T = object>
extends NativeSyntheticEvent<
T & {
coordinate: {
latitude: number;
longitude: number;
};
position: {
x: number;
y: number;
};
}
> {}
type Region = {
latitude: number;
longitude: number;
latitudeDelta: number;
longitudeDelta: number;
};
type State = {
isGeofencing: boolean;
geofencingRegions: GeofencingRegion[];
initialRegion: Region | null;
};
const initialState: State = { isGeofencing: false, geofencingRegions: [], initialRegion: null };
function reducer(
state: State,
action:
| { type: 'toggle' }
| { type: 'clearRegions' }
| ({ type: 'update' } & State)
| ({ type: 'updateRegions' } & Pick<State, 'geofencingRegions'>)
): State {
switch (action.type) {
case 'update':
return {
isGeofencing: action.isGeofencing,
geofencingRegions: action.geofencingRegions,
initialRegion: action.initialRegion,
};
case 'updateRegions':
return {
...state,
geofencingRegions: action.geofencingRegions,
};
case 'clearRegions':
return { ...state, geofencingRegions: [] };
case 'toggle':
return { ...state, isGeofencing: !state.isGeofencing };
}
}
export default function GeofencingScreen() {
const mapViewRef = React.useRef<MapView>(null);
const [state, dispatch] = React.useReducer(reducer, initialState);
const onFocus = React.useCallback(() => {
let isActive = true;
(async () => {
await Location.requestForegroundPermissionsAsync();
const { coords } = await Location.getCurrentPositionAsync();
const isGeofencing = await Location.hasStartedGeofencingAsync(GEOFENCING_TASK);
const geofencingRegions = await getSavedRegions();
if (isActive) {
dispatch({
type: 'update',
isGeofencing,
geofencingRegions,
initialRegion: {
latitude: coords.latitude,
longitude: coords.longitude,
latitudeDelta: 0.004,
longitudeDelta: 0.002,
},
});
}
})();
return () => (isActive = false);
}, []);
useFocusEffect(onFocus);
const toggleGeofencing = React.useCallback(async () => {
if (state.isGeofencing) {
await Location.stopGeofencingAsync(GEOFENCING_TASK);
dispatch({ type: 'clearRegions' });
} else {
await Location.startGeofencingAsync(GEOFENCING_TASK, state.geofencingRegions);
}
dispatch({ type: 'toggle' });
}, [state.isGeofencing, state.geofencingRegions]);
const centerMap = React.useCallback(async () => {
const { coords } = await Location.getCurrentPositionAsync();
const mapView = mapViewRef.current;
if (mapView) {
mapView.animateToRegion({
latitude: coords.latitude,
longitude: coords.longitude,
latitudeDelta: 0.004,
longitudeDelta: 0.002,
});
}
}, []);
const onMapPress = async ({ nativeEvent: { coordinate } }: MapEvent) => {
const next = [...state.geofencingRegions];
next.push({
identifier: `${coordinate.latitude},${coordinate.longitude}`,
latitude: coordinate.latitude,
longitude: coordinate.longitude,
radius: 50,
});
dispatch({ type: 'updateRegions', geofencingRegions: next });
if (await Location.hasStartedGeofencingAsync(GEOFENCING_TASK)) {
// update existing geofencing task
await Location.startGeofencingAsync(GEOFENCING_TASK, next);
}
};
const renderRegions = React.useCallback(() => {
return state.geofencingRegions.map((region) => {
return (
// @ts-ignore
<MapView.Circle
key={region.identifier}
center={region}
radius={region.radius}
strokeColor="rgba(78,155,222,0.8)"
fillColor="rgba(78,155,222,0.2)"
/>
);
});
}, [state.geofencingRegions]);
if (!state.initialRegion) {
return null;
}
return (
<View style={styles.screen}>
<View style={styles.heading}>
<BlurView tint="light" intensity={70} style={styles.blurView}>
<Text style={styles.headingText}>
{state.isGeofencing
? 'You will be receiving notifications when the device enters or exits from selected regions.'
: 'Click `Start geofencing` to start getting geofencing notifications. Tap on the map to select geofencing regions.'}
</Text>
</BlurView>
</View>
<MapView
ref={mapViewRef}
style={styles.mapView}
initialRegion={state.initialRegion}
onPress={onMapPress}
showsUserLocation>
{renderRegions()}
</MapView>
<View style={styles.buttons}>
<View style={styles.leftButtons}>
<Button
disabled={!state.isGeofencing && state.geofencingRegions.length === 0}
buttonStyle={styles.button}
title={state.isGeofencing ? 'Stop geofencing' : 'Start geofencing'}
onPress={toggleGeofencing}
/>
</View>
<Button buttonStyle={styles.button} title="Center" onPress={centerMap} />
</View>
</View>
);
}
GeofencingScreen.navigationOptions = {
title: 'Geofencing Map',
};
async function getSavedRegions(): Promise<GeofencingRegion[]> {
const tasks = await TaskManager.getRegisteredTasksAsync();
const task = tasks.find(({ taskName }) => taskName === GEOFENCING_TASK);
return task ? task.options.regions : [];
}
TaskManager.defineTask(GEOFENCING_TASK, async ({ data: { region } }: { data: any }) => {
const stateString = Location.GeofencingRegionState[region.state].toLowerCase();
console.log(`${stateString} region ${region.identifier}`);
await Notifications.scheduleNotificationAsync({
content: {
title: 'Expo Geofencing',
body: `You're ${stateString} a region ${region.identifier}`,
data: region,
},
trigger: null,
});
});
const styles = StyleSheet.create({
screen: {
flex: 1,
},
heading: {
backgroundColor: 'rgba(255, 255, 0, 0.1)',
position: 'absolute',
top: 0,
right: 0,
left: 0,
zIndex: 2,
},
blurView: {
flex: 1,
padding: 5,
},
headingText: {
textAlign: 'center',
},
mapView: {
flex: 1,
},
buttons: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'flex-end',
padding: 10,
position: 'absolute',
right: 0,
bottom: 0,
left: 0,
},
leftButtons: {
alignItems: 'flex-start',
},
button: {
padding: 10,
marginVertical: 5,
},
});
``` | /content/code_sandbox/apps/native-component-list/src/screens/Location/GeofencingScreen.tsx | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 1,748 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns="path_to_url"
xmlns:activiti="path_to_url"
targetNamespace="Examples">
<process id="suspendProcess" name="The One Task Process">
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="theTask" />
<userTask id="theTask" name="my task" />
<boundaryEvent id="escalationTimer" cancelActivity="true" attachedToRef="theTask">
<timerEventDefinition>
<timeDuration>PT1H</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<sequenceFlow id="flow2" sourceRef="theTask" targetRef="theEnd" />
<sequenceFlow id="flow3" sourceRef="escalationTimer" targetRef="theEnd" />
<endEvent id="theEnd" />
</process>
</definitions>
``` | /content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/db/ProcessInstanceSuspensionTest.testSuspendedProcessTimerExecution.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 220 |
```xml
import Constants, { AppOwnership } from 'expo-constants';
import { requireOptionalNativeModule } from 'expo-modules-core';
// @ts-ignore -- optional interface, will gracefully degrade to `any` if not installed
import type { ExpoUpdatesModule } from 'expo-updates';
import { getManifestBaseUrl } from './AssetUris';
const ExpoUpdates = requireOptionalNativeModule<ExpoUpdatesModule>('ExpoUpdates');
const isRunningInExpoGo = Constants.appOwnership === AppOwnership.Expo;
// expo-updates (and Expo Go expo-updates override) manages assets from updates and exposes
// the ExpoUpdates.localAssets constant containing information about the assets.
const expoUpdatesIsInstalledAndEnabled = !!ExpoUpdates?.isEnabled;
const expoUpdatesIsUsingEmbeddedAssets = ExpoUpdates?.isUsingEmbeddedAssets;
// if expo-updates is installed but we're running directly from the embedded bundle, we don't want
// to override the AssetSourceResolver.
const shouldUseUpdatesAssetResolution =
expoUpdatesIsInstalledAndEnabled && !expoUpdatesIsUsingEmbeddedAssets;
// Expo Go always uses the updates module for asset resolution (local assets) since it
// overrides the expo-updates module.
export const IS_ENV_WITH_LOCAL_ASSETS = isRunningInExpoGo || shouldUseUpdatesAssetResolution;
// Get the localAssets property from the ExpoUpdates native module so that we do
// not need to include expo-updates as a dependency of expo-asset
export function getLocalAssets(): Record<string, string> {
return ExpoUpdates?.localAssets ?? {};
}
export function getManifest2(): typeof Constants.__unsafeNoWarnManifest2 {
return Constants.__unsafeNoWarnManifest2;
}
// Compute manifest base URL if available
export const manifestBaseUrl = Constants.experienceUrl
? getManifestBaseUrl(Constants.experienceUrl)
: null;
``` | /content/code_sandbox/packages/expo-asset/src/PlatformUtils.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 384 |
```xml
import { strict as assert } from "assert";
import * as path from "path";
import * as vs from "vscode";
import { Sdks } from "../../shared/interfaces";
import { fsPath } from "../../shared/utils/fs";
import { activateWithoutAnalysis, ext, extApi, flutterHelloWorldFolder, helloWorldFolder, helloWorldMainFile } from "../helpers";
describe("test environment", () => {
it("has opened the correct folder", () => {
const wfs = vs.workspace.workspaceFolders || [];
assert.equal(wfs.length, 2);
assert.ok(
fsPath(wfs[0].uri).endsWith(path.sep + "flutter_hello_world"),
`${fsPath(wfs[0].uri)} doesn't end with ${path.sep}flutter_hello_world`,
);
assert.ok(
fsPath(wfs[1].uri).endsWith(path.sep + "hello_world"),
`${fsPath(wfs[1].uri)} doesn't end with ${path.sep}hello_world`,
);
});
});
describe("extension", () => {
it("activated", async () => {
await activateWithoutAnalysis();
assert.equal(ext.isActive, true);
});
it("found the Dart and Flutter SDK", async () => {
await activateWithoutAnalysis();
assert.ok(extApi);
// TODO: Add tests for the workspaceContext flags (here and elsewhere).
const sdks: Sdks = extApi.workspaceContext.sdks;
assert.ok(sdks);
assert.ok(sdks.dart);
assert.ok(sdks.flutter);
});
it("used Flutter's version of the Dart SDK", async () => {
await activateWithoutAnalysis();
assert.ok(extApi);
const sdks: Sdks = extApi.workspaceContext.sdks;
assert.ok(sdks);
assert.ok(sdks.dart);
assert.notEqual(sdks.dart.toLowerCase().indexOf("flutter"), -1);
});
it("resolves the correct debug config for a nested project", async () => {
await activateWithoutAnalysis();
const resolvedConfig = await extApi.debugProvider.resolveDebugConfigurationWithSubstitutedVariables!(
vs.workspace.workspaceFolders![1],
{
name: "Dart",
program: fsPath(helloWorldMainFile),
request: "launch",
suppressPrompts: true,
type: "dart",
},
);
assert.ok(resolvedConfig);
assert.equal(resolvedConfig.cwd, fsPath(helloWorldFolder));
assert.deepStrictEqual(resolvedConfig.additionalProjectPaths, [fsPath(flutterHelloWorldFolder), fsPath(helloWorldFolder)]);
});
});
``` | /content/code_sandbox/src/test/multi_root/extension.test.ts | xml | 2016-07-30T13:49:11 | 2024-08-10T16:23:15 | Dart-Code | Dart-Code/Dart-Code | 1,472 | 558 |
```xml
<ResourceDictionary xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
xmlns:local="using:Microsoft.UI.Xaml.Controls">
<x:Double x:Key="CheckBoxBorderThickness">1</x:Double>
<x:Double x:Key="CheckBoxSize">20</x:Double>
<x:Double x:Key="CheckBoxGlyphSize">12</x:Double>
<x:Double x:Key="CheckBoxHeight">32</x:Double>
<x:Double x:Key="CheckBoxMinWidth">120</x:Double>
<Thickness x:Key="CheckBoxPadding">8,11,0,0</Thickness>
<Thickness x:Key="CheckBoxFocusVisualMargin">-7,-3,-7,-3</Thickness>
<x:String x:Key="CheckBoxCheckedGlyph"></x:String>
<x:String x:Key="CheckBoxIndeterminateGlyph"></x:String>
<Style x:Key="SettingsCheckBoxStyle"
TargetType="CheckBox">
<Setter Property="Background"
Value="{ThemeResource SettingsItemBackground}" />
<Setter Property="Foreground"
Value="{ThemeResource CheckBoxForegroundUnchecked}" />
<Setter Property="BorderBrush"
Value="{ThemeResource CardStrokeColorDefaultBrush}" />
<Setter Property="Padding"
Value="16,11,0,0" />
<Setter Property="HorizontalAlignment"
Value="Stretch" />
<Setter Property="VerticalAlignment"
Value="Center" />
<Setter Property="HorizontalContentAlignment"
Value="Left" />
<Setter Property="VerticalContentAlignment"
Value="Top" />
<Setter Property="FontFamily"
Value="{ThemeResource ContentControlThemeFontFamily}" />
<Setter Property="FontSize"
Value="{ThemeResource ControlContentThemeFontSize}" />
<Setter Property="MinWidth"
Value="{StaticResource CheckBoxMinWidth}" />
<Setter Property="MinHeight"
Value="{StaticResource CheckBoxHeight}" />
<Setter Property="UseSystemFocusVisuals"
Value="{StaticResource UseSystemFocusVisuals}" />
<Setter Property="FocusVisualMargin"
Value="0" />
<Setter Property="CornerRadius"
Value="{ThemeResource ControlCornerRadius}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid x:Name="RootGrid"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CombinedStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="UncheckedNormal">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundUnchecked}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackground}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushUnchecked}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeUnchecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillUnchecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundUnchecked}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalOff" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="UncheckedPointerOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackgroundPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PointerOverOff" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="UncheckedPressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackgroundPressed}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PressedOff" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="UncheckedDisabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackground}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<!-- DisabledVisual Should be handled by the control, not the animated icon. -->
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalOff" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="CheckedNormal">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundChecked}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackground}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushChecked}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeChecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillChecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundChecked}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalOn" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="CheckedPointerOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackgroundPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PointerOverOn" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="CheckedPressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackgroundPressed}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PressedOn" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="CheckedDisabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackground}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<!-- DisabledVisual Should be handled by the control, not the animated icon. -->
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalOn" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="IndeterminateNormal">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackground}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushIndeterminate}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DownLevelCheckGlyph"
Storyboard.TargetProperty="Glyph">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{StaticResource CheckBoxIndeterminateGlyph}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalIndeterminate" />
<Setter Target="CheckGlyph.Margin"
Value="0" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="IndeterminatePointerOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackgroundPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DownLevelCheckGlyph"
Storyboard.TargetProperty="Glyph">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{StaticResource CheckBoxIndeterminateGlyph}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PointerOverIndeterminate" />
<Setter Target="CheckGlyph.Margin"
Value="0" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="IndeterminatePressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackgroundPressed}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DownLevelCheckGlyph"
Storyboard.TargetProperty="Glyph">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{StaticResource CheckBoxIndeterminateGlyph}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PressedIndeterminate" />
<Setter Target="CheckGlyph.Margin"
Value="0" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="IndeterminateDisabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource SettingsItemBackground}" />
</ObjectAnimationUsingKeyFrames>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DownLevelCheckGlyph"
Storyboard.TargetProperty="Glyph">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{StaticResource CheckBoxIndeterminateGlyph}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<!-- DisabledVisual Should be handled by the control, not the animated icon. -->
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalIndeterminate" />
<Setter Target="CheckGlyph.Margin"
Value="0" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid x:Name="Chevron"
Grid.Column="0"
VerticalAlignment="Center"
Margin="20,12,0,12"
Height="{StaticResource CheckBoxSize}"
Width="{StaticResource CheckBoxSize}">
<Rectangle x:Name="NormalRectangle"
Fill="{ThemeResource CheckBoxCheckBackgroundFillUnchecked}"
Stroke="{ThemeResource CheckBoxCheckBackgroundStrokeUnchecked}"
StrokeThickness="{StaticResource CheckBoxBorderThickness}"
UseLayoutRounding="False"
Height="{StaticResource CheckBoxSize}"
Width="{StaticResource CheckBoxSize}"
RadiusX="{Binding Source={ThemeResource ControlCornerRadius}, Converter={StaticResource TopLeftCornerRadiusDoubleValueConverter}}"
RadiusY="{Binding Source={ThemeResource ControlCornerRadius}, Converter={StaticResource BottomRightCornerRadiusDoubleValueConverter}}" />
<local:AnimatedIcon x:Name="CheckGlyph"
Foreground="{ThemeResource CheckBoxCheckGlyphForegroundUnchecked}"
Margin="0,1,0,-1">
<animatedvisuals:AnimatedAcceptVisualSource />
<local:AnimatedIcon.FallbackIconSource>
<local:FontIconSource x:Name="DownLevelCheckGlyph"
FontFamily="{ThemeResource SymbolThemeFontFamily}"
Glyph="{StaticResource CheckBoxCheckedGlyph}"
FontSize="{StaticResource CheckBoxGlyphSize}" />
</local:AnimatedIcon.FallbackIconSource>
</local:AnimatedIcon>
</Grid>
<ContentPresenter x:Name="ContentPresenter"
Grid.Column="1"
ContentTemplate="{TemplateBinding ContentTemplate}"
ContentTransitions="{TemplateBinding ContentTransitions}"
Content="{TemplateBinding Content}"
Margin="{TemplateBinding Padding}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
AutomationProperties.AccessibilityView="Raw"
TextWrapping="Wrap" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="CheckBox"
BasedOn="{StaticResource DefaultCheckBoxStyle}" />
<Style x:Key="DefaultCheckBoxStyle"
TargetType="CheckBox">
<Setter Property="Background"
Value="{ThemeResource CheckBoxBackgroundUnchecked}" />
<Setter Property="Foreground"
Value="{ThemeResource CheckBoxForegroundUnchecked}" />
<Setter Property="BorderBrush"
Value="{ThemeResource CheckBoxBorderBrushUnchecked}" />
<Setter Property="Padding"
Value="8,5,0,0" />
<Setter Property="HorizontalAlignment"
Value="Left" />
<Setter Property="VerticalAlignment"
Value="Center" />
<Setter Property="HorizontalContentAlignment"
Value="Left" />
<Setter Property="VerticalContentAlignment"
Value="Center" />
<Setter Property="FontFamily"
Value="{ThemeResource ContentControlThemeFontFamily}" />
<Setter Property="FontSize"
Value="{ThemeResource ControlContentThemeFontSize}" />
<Setter Property="MinWidth"
Value="{StaticResource CheckBoxMinWidth}" />
<Setter Property="MinHeight"
Value="{StaticResource CheckBoxHeight}" />
<Setter Property="UseSystemFocusVisuals"
Value="{StaticResource UseSystemFocusVisuals}" />
<Setter Property="FocusVisualMargin"
Value="{StaticResource CheckBoxFocusVisualMargin}" />
<Setter Property="CornerRadius"
Value="{ThemeResource ControlCornerRadius}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid x:Name="RootGrid"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CombinedStates">
<VisualState x:Name="UncheckedNormal">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundUnchecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundUnchecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushUnchecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeUnchecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillUnchecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundUnchecked}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalOff" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="UncheckedPointerOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundUncheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PointerOverOff" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="UncheckedPressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundUncheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PressedOff" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="UncheckedDisabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundUncheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<!-- DisabledVisual Should be handled by the control, not the animated icon. -->
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalOff" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="CheckedNormal">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundChecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundChecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushChecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeChecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillChecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundChecked}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalOn" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="CheckedPointerOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PointerOverOn" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="CheckedPressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PressedOn" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="CheckedDisabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<!-- DisabledVisual Should be handled by the control, not the animated icon. -->
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalOn" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="IndeterminateNormal">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DownLevelCheckGlyph"
Storyboard.TargetProperty="Glyph">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{StaticResource CheckBoxIndeterminateGlyph}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalIndeterminate" />
<Setter Target="CheckGlyph.Margin"
Value="0" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="IndeterminatePointerOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DownLevelCheckGlyph"
Storyboard.TargetProperty="Glyph">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{StaticResource CheckBoxIndeterminateGlyph}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PointerOverIndeterminate" />
<Setter Target="CheckGlyph.Margin"
Value="0" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="IndeterminatePressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DownLevelCheckGlyph"
Storyboard.TargetProperty="Glyph">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{StaticResource CheckBoxIndeterminateGlyph}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="PressedIndeterminate" />
<Setter Target="CheckGlyph.Margin"
Value="0" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="IndeterminateDisabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxForegroundIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBackgroundIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxBorderBrushIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Stroke">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundStrokeIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="NormalRectangle"
Storyboard.TargetProperty="Fill">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckBackgroundFillIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DownLevelCheckGlyph"
Storyboard.TargetProperty="Glyph">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{StaticResource CheckBoxIndeterminateGlyph}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckGlyph"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource CheckBoxCheckGlyphForegroundIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<!-- DisabledVisual Should be handled by the control, not the animated icon. -->
<Setter Target="CheckGlyph.(local:AnimatedIcon.State)"
Value="NormalIndeterminate" />
<Setter Target="CheckGlyph.Margin"
Value="0" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid Grid.Column="0"
Margin="0,6,0,0"
VerticalAlignment="Top"
Height="{StaticResource CheckBoxSize}"
Width="{StaticResource CheckBoxSize}">
<Rectangle x:Name="NormalRectangle"
Fill="{ThemeResource CheckBoxCheckBackgroundFillUnchecked}"
Stroke="{ThemeResource CheckBoxCheckBackgroundStrokeUnchecked}"
StrokeThickness="{StaticResource CheckBoxBorderThickness}"
UseLayoutRounding="False"
Height="{StaticResource CheckBoxSize}"
Width="{StaticResource CheckBoxSize}"
RadiusX="{Binding CornerRadius, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource TopLeftCornerRadiusDoubleValueConverter}}"
RadiusY="{Binding CornerRadius, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BottomRightCornerRadiusDoubleValueConverter}}" />
<local:AnimatedIcon x:Name="CheckGlyph"
Foreground="{ThemeResource CheckBoxCheckGlyphForegroundUnchecked}"
Margin="0,1,0,-1">
<animatedvisuals:AnimatedAcceptVisualSource />
<local:AnimatedIcon.FallbackIconSource>
<local:FontIconSource x:Name="DownLevelCheckGlyph"
FontFamily="{ThemeResource SymbolThemeFontFamily}"
Glyph="{StaticResource CheckBoxCheckedGlyph}"
FontSize="{StaticResource CheckBoxGlyphSize}" />
</local:AnimatedIcon.FallbackIconSource>
</local:AnimatedIcon>
</Grid>
<ContentPresenter x:Name="ContentPresenter"
Grid.Column="1"
ContentTemplate="{TemplateBinding ContentTemplate}"
ContentTransitions="{TemplateBinding ContentTransitions}"
Content="{TemplateBinding Content}"
Margin="{TemplateBinding Padding}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="Top"
AutomationProperties.AccessibilityView="Raw"
TextWrapping="Wrap" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
``` | /content/code_sandbox/Telegram/Themes/CheckBox_themeresources.xaml | xml | 2016-05-23T09:03:33 | 2024-08-16T16:17:48 | Unigram | UnigramDev/Unigram | 3,744 | 11,986 |
```xml
<?xml version="1.0" encoding="utf-8" ?>
<local:TestContentPage
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:d="path_to_url"
xmlns:mc="path_to_url"
mc:Ignorable="d"
Title="Test 11413" xmlns:local="using:Xamarin.Forms.Controls"
x:Class="Xamarin.Forms.Controls.Issues.Issue11413">
<StackLayout>
<Label
Padding="12"
BackgroundColor="Black"
TextColor="White"
Text="If a black square with corner radius is rendered inside a red rectangle, the test has passed."/>
<Grid
WidthRequest="100"
HeightRequest="100"
HorizontalOptions="Center"
VerticalOptions="Center"
BackgroundColor="Red">
<Rectangle
RadiusX="10"
RadiusY="10"
Fill="Black"
Aspect="Fill" />
</Grid>
</StackLayout>
</local:TestContentPage>
``` | /content/code_sandbox/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue11413.xaml | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 224 |
```xml
import React from 'react';
import {SvgFromUri, SvgFromXml, SvgUri, SvgXml} from 'react-native-svg';
import {
SvgCss,
SvgCssUri,
SvgWithCss,
SvgWithCssUri,
WithLocalSvg,
LocalSvg,
} from 'react-native-svg/css';
const asset = require('../assets/ruby.svg');
const normalUri =
'path_to_url
const uriWithCss = 'path_to_url
const xml = `
<svg width="32" height="32" viewBox="0 0 32 32">
<path
fill-rule="evenodd"
clip-rule="evenodd"
fill="url(#gradient)"
d="M4 0C1.79086 0 0 1.79086 0 4V28C0 30.2091 1.79086 32 4 32H28C30.2091 32 32 30.2091 32 28V4C32 1.79086 30.2091 0 28 0H4ZM17 6C17 5.44772 17.4477 5 18 5H20C20.5523 5 21 5.44772 21 6V25C21 25.5523 20.5523 26 20 26H18C17.4477 26 17 25.5523 17 25V6ZM12 11C11.4477 11 11 11.4477 11 12V25C11 25.5523 11.4477 26 12 26H14C14.5523 26 15 25.5523 15 25V12C15 11.4477 14.5523 11 14 11H12ZM6 18C5.44772 18 5 18.4477 5 19V25C5 25.5523 5.44772 26 6 26H8C8.55228 26 9 25.5523 9 25V19C9 18.4477 8.55228 18 8 18H6ZM24 14C23.4477 14 23 14.4477 23 15V25C23 25.5523 23.4477 26 24 26H26C26.5523 26 27 25.5523 27 25V15C27 14.4477 26.5523 14 26 14H24Z"
/>
<defs>
<linearGradient
id="gradient"
x1="0"
y1="0"
x2="8.46631"
y2="37.3364"
gradient-units="userSpaceOnUse">
<stop offset="0" stop-color="#FEA267" />
<stop offset="1" stop-color="#E75A4C" />
</linearGradient>
</defs>
</svg>
`;
const css = `
<svg width="32" height="32" viewBox="0 0 32 32">
<style>
.red {
fill: #ff0000;
}
</style>
<rect class="red" x="0" y="0" width="32" height="32" />
</svg>
`;
export default () => {
const [uri, setUri] = React.useState(
'path_to_url
);
return (
<>
<SvgUri
onError={() => setUri(normalUri)}
width="100"
height="100"
uri={uri}
/>
<SvgFromUri
onError={error => console.log(error)}
width="100"
height="100"
uri={normalUri}
/>
<SvgFromXml width="100" height="100" xml={xml} />
<SvgXml width="100" height="100" xml={xml} />
<SvgCss width="100" height="100" xml={css} />
<SvgCssUri
onError={error => console.log(error)}
width="100"
height="100"
uri={uriWithCss}
/>
<SvgWithCss width="100" height="100" xml={css} />
<SvgWithCssUri
onError={error => console.log(error)}
width="100"
height="100"
uri={uriWithCss}
/>
<WithLocalSvg width="100" height="100" asset={asset} />
<LocalSvg width="100" height="100" asset={asset} />
</>
);
};
``` | /content/code_sandbox/apps/test-examples/src/Test1813.tsx | xml | 2016-01-17T14:29:21 | 2024-08-16T13:35:44 | react-native-svg | software-mansion/react-native-svg | 7,397 | 1,026 |
```xml
import { Component } from "@angular/core";
import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing";
import { By } from "@angular/platform-browser";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { I18nMockService } from "../utils/i18n-mock.service";
import { RadioButtonModule } from "./radio-button.module";
import { RadioGroupComponent } from "./radio-group.component";
describe("RadioButton", () => {
let mockGroupComponent: MockedButtonGroupComponent;
let fixture: ComponentFixture<TestApp>;
let testAppComponent: TestApp;
let radioButton: HTMLInputElement;
beforeEach(waitForAsync(() => {
mockGroupComponent = new MockedButtonGroupComponent();
TestBed.configureTestingModule({
imports: [RadioButtonModule],
declarations: [TestApp],
providers: [
{ provide: RadioGroupComponent, useValue: mockGroupComponent },
{ provide: I18nService, useValue: new I18nMockService({}) },
],
});
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
// eslint-disable-next-line @typescript-eslint/no-floating-promises
TestBed.compileComponents();
fixture = TestBed.createComponent(TestApp);
fixture.detectChanges();
testAppComponent = fixture.debugElement.componentInstance;
radioButton = fixture.debugElement.query(By.css("input[type=radio]")).nativeElement;
}));
it("should emit value when clicking on radio button", () => {
testAppComponent.value = "value";
fixture.detectChanges();
radioButton.click();
fixture.detectChanges();
expect(mockGroupComponent.onInputChange).toHaveBeenCalledWith("value");
});
it("should check radio button when selected matches value", () => {
testAppComponent.value = "value";
fixture.detectChanges();
mockGroupComponent.selected = "value";
fixture.detectChanges();
expect(radioButton.checked).toBe(true);
});
it("should not check radio button when selected does not match value", () => {
testAppComponent.value = "value";
fixture.detectChanges();
mockGroupComponent.selected = "nonMatchingValue";
fixture.detectChanges();
expect(radioButton.checked).toBe(false);
});
});
class MockedButtonGroupComponent implements Partial<RadioGroupComponent> {
onInputChange = jest.fn();
selected = null;
}
@Component({
selector: "test-app",
template: ` <bit-radio-button [value]="value"><bit-label>Element</bit-label></bit-radio-button>`,
})
class TestApp {
value?: string;
}
``` | /content/code_sandbox/libs/components/src/radio-button/radio-button.component.spec.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 541 |
```xml
import { useLayoutEffect, useState } from 'react';
const useWindowSize = (): [number, number] => {
const [size, setSize] = useState([0, 0] as [number, number]);
useLayoutEffect(() => {
function updateSize() {
setSize([document.documentElement.clientWidth, document.documentElement.clientHeight]);
}
window.addEventListener('resize', updateSize);
updateSize();
return () => window.removeEventListener('resize', updateSize);
}, []);
return size;
};
export default useWindowSize;
``` | /content/code_sandbox/pmm-app/src/shared/components/hooks/WindowSize.hooks.ts | xml | 2016-01-22T07:14:23 | 2024-08-13T13:01:59 | grafana-dashboards | percona/grafana-dashboards | 2,661 | 110 |
```xml
import * as settings from "coral-server/models/settings";
import { GQLExternalModerationPhaseTypeResolver } from "coral-server/graph/schema/__generated__/types";
export const ExternalModerationPhase: GQLExternalModerationPhaseTypeResolver<settings.ExternalModerationPhase> =
{
signingSecret: ({ signingSecrets }) =>
signingSecrets[signingSecrets.length - 1],
};
``` | /content/code_sandbox/server/src/core/server/graph/resolvers/ExternalModerationPhase.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 88 |
```xml
import { ReactElement } from 'react';
import BigNumber from 'bignumber.js';
import { InlineMessage, TranslateMarkdown } from '@components';
import { Fiats, getKBHelpArticle, KB_HELP_ARTICLE } from '@config';
import { TxFeeResponseType, validateTxFee } from '@services/EthService/validators';
import { useRates } from '@services/Rates';
import translate from '@translations';
import { Asset, Fiat, InlineMessageType } from '@types';
import { isERC20Asset } from '../helpers';
interface ConfigType {
type: InlineMessageType;
message(fiat: Fiat, fee?: string, amount?: string): ReactElement<typeof TranslateMarkdown>;
}
const CONFIGS: Record<TxFeeResponseType, ConfigType | null> = {
[TxFeeResponseType.Warning]: {
type: InlineMessageType.WARNING,
message: (fiat, fee, amount) =>
translate('WARNING_TRANSACTION_FEE', {
$amount: `${fiat.symbol}${amount}`,
$fee: `${fiat.symbol}${fee}`,
$link: getKBHelpArticle(KB_HELP_ARTICLE.WHY_IS_GAS)
})
},
[TxFeeResponseType.WarningUseLower]: {
type: InlineMessageType.WARNING,
message: (fiat, fee) =>
translate('TRANSACTION_FEE_NOTICE', {
$fee: `${fiat.symbol}${fee}`,
$link: getKBHelpArticle(KB_HELP_ARTICLE.WHY_IS_GAS)
})
},
[TxFeeResponseType.ErrorHighTxFee]: {
type: InlineMessageType.ERROR,
message: (fiat, fee) =>
translate('ERROR_HIGH_TRANSACTION_FEE_HIGH', {
$fee: `${fiat.symbol}${fee}`,
$link: getKBHelpArticle(KB_HELP_ARTICLE.WHY_IS_GAS)
})
},
[TxFeeResponseType.ErrorVeryHighTxFee]: {
type: InlineMessageType.ERROR,
message: (fiat, fee) =>
translate('ERROR_HIGH_TRANSACTION_FEE_VERY_HIGH', {
$fee: `${fiat.symbol}${fee}`,
$link: getKBHelpArticle(KB_HELP_ARTICLE.WHY_IS_GAS)
})
},
[TxFeeResponseType.WarningHighBaseFee]: {
type: InlineMessageType.WARNING,
message: () => translate('BASE_FEE_HIGH')
},
[TxFeeResponseType.WarningVeryHighBaseFee]: {
type: InlineMessageType.WARNING,
message: () => translate('BASE_FEE_VERY_HIGH')
},
[TxFeeResponseType.Invalid]: null,
[TxFeeResponseType.None]: null
};
interface Props {
amount: string;
fiat: Fiat;
baseAsset: Asset;
asset: Asset;
ethAsset: Asset;
gasLimit: string;
gasPrice: string;
baseFee?: BigNumber;
}
export const TxFeeValidation = ({
amount: inputAmount,
asset,
baseAsset,
ethAsset,
fiat,
gasLimit,
gasPrice,
baseFee
}: Props) => {
const { getAssetRateInCurrency } = useRates();
const { type, amount, fee } = validateTxFee(
inputAmount,
getAssetRateInCurrency(baseAsset, Fiats.USD.ticker),
getAssetRateInCurrency(baseAsset, fiat.ticker),
isERC20Asset(asset),
gasLimit,
gasPrice,
getAssetRateInCurrency(ethAsset, Fiats.USD.ticker),
baseFee
);
const config = CONFIGS[type];
const message = config?.message(fiat, fee, amount);
return config ? <InlineMessage type={config.type} value={message} /> : null;
};
``` | /content/code_sandbox/src/features/SendAssets/components/TxFeeValidation.tsx | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 794 |
```xml
/// <reference path='..\..\src\compiler\tsc.ts'/>
namespace TypeScript.WebTsc {
declare var RealActiveXObject: { new (s: string): any };
function getWScriptSystem() {
const fso = new RealActiveXObject("Scripting.FileSystemObject");
const fileStream = new ActiveXObject("ADODB.Stream");
fileStream.Type = 2 /*text*/;
const args: string[] = [];
for (let i = 0; i < WScript.Arguments.length; i++) {
args[i] = WScript.Arguments.Item(i);
}
return {
args: args,
newLine: "\r\n",
write(s: string): void {
WScript.StdOut.Write(s);
},
writeErr(s: string): void {
WScript.StdErr.Write(s);
},
readFile(fileName: string, encoding?: string): string {
if (!fso.FileExists(fileName)) {
return undefined;
}
fileStream.Open();
try {
if (encoding) {
fileStream.Charset = encoding;
fileStream.LoadFromFile(fileName);
}
else {
// Load file and read the first two bytes into a string with no interpretation
fileStream.Charset = "x-ansi";
fileStream.LoadFromFile(fileName);
const bom = fileStream.ReadText(2) || "";
// Position must be at 0 before encoding can be changed
fileStream.Position = 0;
// [0xFF,0xFE] and [0xFE,0xFF] mean utf-16 (little or big endian), otherwise default to utf-8
fileStream.Charset = bom.length >= 2 && (bom.charCodeAt(0) === 0xFF && bom.charCodeAt(1) === 0xFE || bom.charCodeAt(0) === 0xFE && bom.charCodeAt(1) === 0xFF) ? "unicode" : "utf-8";
}
// ReadText method always strips byte order mark from resulting string
return fileStream.ReadText();
}
catch (e) {
throw e;
}
finally {
fileStream.Close();
}
},
writeFile(fileName: string, data: string): boolean {
const f = fso.CreateTextFile(fileName, true);
f.Write(data);
f.Close();
return true;
},
resolvePath(path: string): string {
return fso.GetAbsolutePathName(path);
},
fileExists(path: string): boolean {
return fso.FileExists(path);
},
directoryExists(path: string) {
return fso.FolderExists(path);
},
createDirectory(directoryName: string) {
if (!this.directoryExists(directoryName)) {
fso.CreateFolder(directoryName);
}
},
getExecutingFilePath() {
return WScript.ScriptFullName;
},
getCurrentDirectory() {
return "";
},
getMemoryUsage() {
return 0;
},
exit(exitCode?: number): void {
WScript.Quit(exitCode);
},
useCaseSensitiveFileNames: false
};
}
export function prepareCompiler(currentDir: string, stdOut: ITextWriter, stdErr: ITextWriter) {
const shell = new RealActiveXObject("WScript.Shell");
shell.CurrentDirectory = currentDir;
WScript.ScriptFullName = currentDir + "\\tc.js";
WScript.StdOut = stdOut;
WScript.StdErr = stdErr;
sys = getWScriptSystem();
return (commandLine: string) => {
ts.executeCommandLine(commandLine.split(" "));
};
}
}
``` | /content/code_sandbox/tests/format/typescript/webhost/webtsc.ts | xml | 2016-11-29T17:13:37 | 2024-08-16T17:29:57 | prettier | prettier/prettier | 48,913 | 763 |
```xml
import '@testing-library/jest-dom';
import { cleanup } from '@testing-library/react';
import { vi } from 'vitest';
import '@proton/testing/lib/vitest/mockMatchMedia';
import '@proton/testing/lib/vitest/mockUnleash';
afterEach(cleanup); // TODO double check if needed; see path_to_url
// Silence warnings on expect to throw path_to_url
// console.error = () => {};
// console.warn = () => {};
window.ResizeObserver = vi.fn().mockImplementation(() => ({
observe: vi.fn(),
unobserve: vi.fn(),
disconnect: vi.fn(),
}));
// JSDom does not include a full implementation of webcrypto
// const crypto = require('crypto').webcrypto;
// global.crypto.subtle = crypto.subtle;
// Do not start crypto worker pool, let the single tests setup/mock the CryptoProxy as needed
vi.mock('@proton/shared/lib/helpers/setupCryptoWorker', () => ({
__esModule: true,
loadCryptoWorker: vi.fn(),
}));
// Globally mocked @proton/components modules
vi.mock('@proton/components/hooks/useEventManager.ts', () => {
const subscribe = vi.fn();
const call = vi.fn();
const stop = vi.fn();
const start = vi.fn();
const result = () => {
return { subscribe, call, stop, start };
};
result.subscribe = subscribe;
result.call = call;
result.stop = stop;
result.start = start;
return { default: result };
});
// Globally mocked upload helper (standard requests are mocked through context)
vi.mock('./src/app/helpers/upload');
// @ts-ignore
global.MutationObserver = class {
disconnect() {} // eslint-disable-line
observe() {} // eslint-disable-line
};
// Mock backdrop container because it's always rendered, and it's rendered in a portal which causes issues with the hook renderer
vi.mock('@proton/components/components/modalTwo/BackdropContainer', () => ({
__esModule: true,
default: () => null,
}));
// Silence JDOM warnings triggered by emoji-mart
// @ts-ignore
HTMLCanvasElement.prototype.getContext = vi.fn();
vi.mock('@proton/shared/lib/i18n/dateFnLocales', () => ({
__esModule: true,
enUSLocale: { code: 'en-US' },
}));
vi.mock('@proton/shared/lib/pow/wasmWorkerWrapper.ts', () => ({
__esModule: true,
}));
vi.mock('@proton/shared/lib/pow/pbkdfWorkerWrapper.ts', () => ({
__esModule: true,
}));
``` | /content/code_sandbox/applications/wallet/vitest.setup.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 538 |
```xml
declare module 'react-native-ble-plx' {
// TypeDefinition.js *************************************************************************************************
/**
* [Android only] ConnectionOptions parameter to describe when to call BluetoothGatt.refresh()
*/
export type RefreshGattMoment = 'OnConnected'
/**
* Base64 value
*/
export type Base64 = string
/**
* Bluetooth UUID
*/
export type UUID = string
/**
* Unique identifier for BLE objects.
*/
export type Identifier = number
/**
* Bluetooth device id.
*/
export type DeviceId = string
/**
* Transaction identifier. All transaction identifiers in numeric form are reserved for internal use.
*/
export type TransactionId = string
/**
* Subscription
* @interface
*/
export interface Subscription {
/**
* Removes subscription
* @memberof Subscription
* @ignore
*/
remove(): void
}
/**
* Type of error code mapping table
*/
export type BleErrorCodeMessageMapping = { [key in BleErrorCode]: string }
/**
* Options which can be passed to when creating BLE Manager
*/
export interface BleManagerOptions {
/**
* BLE State restoration identifier used to restore state.
* @memberof BleManagerOptions
* @instance
*/
restoreStateIdentifier?: string
/**
* Optional function which is used to properly restore state of your BLE Manager. Callback
* is emitted in the beginning of BleManager creation and optional {@link BleRestoreState}
* is passed. When value is `null` application is launching for the first time, otherwise
* it contains saved state which may be used by developer to continue working with
* connected peripherals.
* @memberof BleManagerOptions
* @instance
*/
restoreStateFunction?: (restoredState: BleRestoredState | null) => void
/**
* Optional mapping of error codes to error messages. Uses {@link BleErrorCodeMessage}
* by default.
*
* To override logging UUIDs or MAC adresses in error messages copy the original object
* and overwrite values of interest to you.
*
* @memberof BleManagerOptions
* @instance
*/
errorCodesToMessagesMapping?: BleErrorCodeMessageMapping
}
/**
* Object representing information about restored BLE state after application relaunch.
*/
export interface BleRestoredState {
/**
* List of connected devices after state restoration.
* @type {Array<Device>}
* @instance
* @memberof BleRestoredState
*/
connectedPeripherals: Device[]
}
/**
* Scan mode for Bluetooth LE scan.
*/
export enum ScanMode {
/**
* A special Bluetooth LE scan mode. Applications using this scan mode will passively listen for
* other scan results without starting BLE scans themselves.
*/
Opportunistic = -1,
/**
* Perform Bluetooth LE scan in low power mode. This is the default scan mode as it consumes the
* least power. [default value]
*/
LowPower = 0,
/**
* Perform Bluetooth LE scan in balanced power mode. Scan results are returned at a rate that
* provides a good trade-off between scan frequency and power consumption.
*/
Balanced = 1,
/**
* Scan using highest duty cycle. It's recommended to only use this mode when the application is
* running in the foreground.
*/
LowLatency = 2
}
/**
* Scan callback type for Bluetooth LE scan.
* @name ScanCallbackType
*/
export enum ScanCallbackType {
/**
* Trigger a callback for every Bluetooth advertisement found that matches the filter criteria.
* If no filter is active, all advertisement packets are reported. [default value]
*/
AllMatches = 1,
/**
* A result callback is only triggered for the first advertisement packet received that matches
* the filter criteria.
*/
FirstMatch = 2,
/**
* Receive a callback when advertisements are no longer received from a device that has been
* previously reported by a first match callback.
*/
MatchLost = 4
}
/**
* Options which can be passed to scanning function
* @name ScanOptions
*/
export interface ScanOptions {
/**
* By allowing duplicates scanning records are received more frequently [iOS only]
*/
allowDuplicates?: boolean
/**
* Scan mode for Bluetooth LE scan [Android only]
*/
scanMode?: ScanMode
/**
* Scan callback type for Bluetooth LE scan [Android only]
*/
callbackType?: ScanCallbackType
/**
* Use legacyScan (default true) [Android only]
* path_to_url#setLegacy(boolean)
*/
legacyScan?: boolean
}
/**
* Connection specific options to be passed before connection happen. [Not used]
*/
export interface ConnectionOptions {
/**
* Whether to directly connect to the remote device (false) or to automatically connect as soon as the remote device
* becomes available (true). [Android only]
* @memberof ConnectionOptions
* @instance
*/
autoConnect?: boolean
/**
* Whether MTU size will be negotiated to this value. It is not guaranteed to get it after connection is successful.
*
* @memberof ConnectionOptions
* @instance
*/
requestMTU?: number
/**
* Whether action will be taken to reset services cache. This option may be useful when a peripheral's firmware was
* updated and it's services/characteristics were added/removed/altered. [Android only]
* {@link path_to_url}
* @memberof ConnectionOptions
* @instance
*/
refreshGatt?: RefreshGattMoment
/**
* Number of milliseconds after connection is automatically timed out. In case of race condition were connection is
* established right after timeout event, device will be disconnected immediately. Time out may happen earlier then
* specified due to OS specific behavior.
*
* @memberof ConnectionOptions
* @instance
*/
timeout?: number
}
/**
* Device Bluetooth Low Energy state. It's keys are used to check {@link #blemanagerstate} values
* received by {@link BleManager}
*/
export enum State {
/**
* The current state of the manager is unknown; an update is imminent.
*/
Unknown = 'Unknown',
/**
* The connection with the system service was momentarily lost; an update is imminent.
*/
Resetting = 'Resetting',
/**
* The platform does not support Bluetooth low energy.
*/
Unsupported = 'Unsupported',
/**
* The app is not authorized to use Bluetooth low energy.
*/
Unauthorized = 'Unauthorized',
/**
* Bluetooth is currently powered off.
*/
PoweredOff = 'PoweredOff',
/**
* Bluetooth is currently powered on and available to use.
*/
PoweredOn = 'PoweredOn'
}
/**
* Native module logging log level. By default it is set to None.
* @name LogLevel
*/
export enum LogLevel {
/**
* Logging in native module is disabled
*/
None = 'None',
/**
* All logs in native module are shown
*/
Verbose = 'Verbose',
/**
* Only debug logs and of higher importance are shown in native module.
*/
Debug = 'Debug',
/**
* Only info logs and of higher importance are shown in native module.
*/
Info = 'Info',
/**
* Only warning logs and of higher importance are shown in native module.
*/
Warning = 'Warning',
/**
* Only error logs and of higher importance are shown in native module.
*/
Error = 'Error'
}
/**
* Connection priority of BLE link determining the balance between power consumption and data throughput.
* @name ConnectionPriority
*/
export enum ConnectionPriority {
/**
* Default, recommended option balanced between power consumption and data throughput.
*/
Balanced = 0,
/**
* High priority, low latency connection, which increases transfer speed at the expense of power consumption.
*/
High = 1,
/**
* Low power, reduced data rate connection setup.
*/
LowPower = 2
}
// Utils.js **********************************************************************************************************
/**
* Converts UUID to full 128bit, lowercase format which should be used to compare UUID values.
*
* @param {UUID} uuid 16bit, 32bit or 128bit UUID.
* @returns {UUID} 128bit lowercase UUID.
*/
export function fullUUID(uuid: UUID): UUID
// BleError.js *******************************************************************************************************
export interface NativeBleError {
errorCode: BleErrorCode
attErrorCode: BleATTErrorCode | null
iosErrorCode: BleIOSErrorCode | null
androidErrorCode: BleAndroidErrorCode | null
reason: string | null
deviceID?: string
serviceUUID?: string
characteristicUUID?: string
descriptorUUID?: string
internalMessage?: string
}
/**
* BleError is an error class which is guaranteed to be thrown by all functions of this
* library. It contains additional properties which help to identify problems in
* platform independent way.
*/
export class BleError extends Error {
/**
* Platform independent error code. Possible values are defined in {@link BleErrorCode}.
*/
errorCode: BleErrorCode
/**
* Platform independent error code related to ATT errors.
*/
attErrorCode: BleATTErrorCode | null
/**
* iOS specific error code (if not an ATT error).
*/
iosErrorCode: BleIOSErrorCode | null
/**
* Android specific error code (if not an ATT error).
*/
androidErrorCode: BleAndroidErrorCode | null
/**
* Platform specific error message.
*/
reason: string | null
constructor(nativeBleError: NativeBleError | string, errorMessageMapping: BleErrorCodeMessageMapping)
}
/**
* Platform independent error code map adjusted to this library's use cases.
*/
export enum BleErrorCode {
// Implementation specific errors your_sha256_hash------------------
/**
* This error can be thrown when unexpected error occurred and in most cases it is related to implementation bug.
* Original message is available in {@link #bleerrorreason|reason} property.
*/
UnknownError = 0,
/**
* Current promise failed to finish due to BleManager shutdown. It means that user called
* {@link #blemanagerdestroy|manager.destroy()} function before all operations completed.
*/
BluetoothManagerDestroyed = 1,
/**
* Promise was explicitly cancelled by a user with {@link #blemanagercanceltransaction|manager.cancelTransaction()}
* function call.
*/
OperationCancelled = 2,
/**
* Operation timed out and was cancelled.
*/
OperationTimedOut = 3,
/**
* Native module couldn't start operation due to internal state, which doesn't allow to do that.
*/
OperationStartFailed = 4,
/**
* Invalid UUIDs or IDs were passed to API call.
*/
InvalidIdentifiers = 5,
// Bluetooth global states your_sha256_hash-------------------------
/**
* Bluetooth is not supported for this particular device. It may happen on iOS simulator for example.
*/
BluetoothUnsupported = 100,
/**
* There are no granted permissions which allow to use BLE functionality. On Android it may require
* android.permission.ACCESS_COARSE_LOCATION permission or android.permission.ACCESS_FINE_LOCATION permission.
*/
BluetoothUnauthorized = 101,
/**
* BLE is powered off on device. All previous operations and their state is invalidated.
*/
BluetoothPoweredOff = 102,
/**
* BLE stack is in unspecified state.
*/
BluetoothInUnknownState = 103,
/**
* BLE stack is resetting.
*/
BluetoothResetting = 104,
/**
* BLE state change failed.
*/
BluetoothStateChangeFailed = 105,
// Peripheral errors. your_sha256_hash------------------------------
/**
* Couldn't connect to specified device.
*/
DeviceConnectionFailed = 200,
/**
* Device was disconnected.
*/
DeviceDisconnected = 201,
/**
* Couldn't read RSSI from device.
*/
DeviceRSSIReadFailed = 202,
/**
* Device is already connected. It is not allowed to connect twice to the same device.
*/
DeviceAlreadyConnected = 203,
/**
* Couldn't find device with specified ID.
*/
DeviceNotFound = 204,
/**
* Operation failed because device has to be connected to perform it.
*/
DeviceNotConnected = 205,
/**
* Device could not change MTU value.
*/
DeviceMTUChangeFailed = 206,
// Services your_sha256_hash----------------------------------------
/**
* Couldn't discover services for specified device.
*/
ServicesDiscoveryFailed = 300,
/**
* Couldn't discover included services for specified service.
*/
IncludedServicesDiscoveryFailed = 301,
/**
* Service with specified ID or UUID couldn't be found. User may need to call
* {@link #blemanagerdiscoverallservicesandcharacteristicsfordevice|manager.discoverAllServicesAndCharacteristicsForDevice}
* to cache them.
*/
ServiceNotFound = 302,
/**
* Services were not discovered. User may need to call
* {@link #blemanagerdiscoverallservicesandcharacteristicsfordevice|manager.discoverAllServicesAndCharacteristicsForDevice}
* to cache them.
*/
ServicesNotDiscovered = 303,
// Characteristics your_sha256_hash---------------------------------
/**
* Couldn't discover characteristics for specified service.
*/
CharacteristicsDiscoveryFailed = 400,
/**
* Couldn't write to specified characteristic. Make sure that
* {@link #characteristiciswritablewithresponse|characteristic.isWritableWithResponse}
* or {@link #characteristiciswritablewithoutresponse|characteristic.isWritableWithoutResponse} is set to true.
*/
CharacteristicWriteFailed = 401,
/**
* Couldn't read from specified characteristic. Make sure that
* {@link #characteristicisreadable|characteristic.isReadable} is set to true.
*/
CharacteristicReadFailed = 402,
/**
* Couldn't set notification or indication for specified characteristic. Make sure that
* {@link #characteristicisnotifiable|characteristic.isNotifiable} or
* {@link #characteristicisindicatable|characteristic.isIndicatable} is set to true.
*/
CharacteristicNotifyChangeFailed = 403,
/**
* Characteristic with specified ID or UUID couldn't be found. User may need to call
* {@link #blemanagerdiscoverallservicesandcharacteristicsfordevice|manager.discoverAllServicesAndCharacteristicsForDevice}
* to cache them.
*/
CharacteristicNotFound = 404,
/**
* Characteristic were not discovered for specified service. User may need to call
* {@link #blemanagerdiscoverallservicesandcharacteristicsfordevice|manager.discoverAllServicesAndCharacteristicsForDevice}
* to cache them.
*/
CharacteristicsNotDiscovered = 405,
/**
* Invalid Base64 format was passed to characteristic API function call.
*/
CharacteristicInvalidDataFormat = 406,
// Characteristics your_sha256_hash---------------------------------
/**
* Couldn't discover descriptor for specified characteristic.
*/
DescriptorsDiscoveryFailed = 500,
/**
* Couldn't write to specified descriptor.
*/
DescriptorWriteFailed = 501,
/**
* Couldn't read from specified descriptor.
*/
DescriptorReadFailed = 502,
/**
* Couldn't find specified descriptor.
*/
DescriptorNotFound = 503,
/**
* Descriptors are not discovered for specified characteristic.
*/
DescriptorsNotDiscovered = 504,
/**
* Invalid Base64 format was passed to descriptor API function call.
*/
DescriptorInvalidDataFormat = 505,
/**
* Issued a write to a descriptor, which is handled by OS.
*/
DescriptorWriteNotAllowed = 506,
// Scanning errors your_sha256_hash---------------------------------
/**
* Cannot start scanning operation.
*/
ScanStartFailed = 600,
/**
* Location services are disabled.
*/
LocationServicesDisabled = 601
}
/**
* Error codes for ATT errors.
* @name BleATTErrorCode
*/
export enum BleATTErrorCode {
/**
* The ATT command or request successfully completed.
*/
Success = 0,
/**
* The attribute handle is invalid on this device.
*/
InvalidHandle = 1,
/**
* The attributes value cannot be read.
*/
ReadNotPermitted = 2,
/**
* The attributes value cannot be written.
*/
WriteNotPermitted = 3,
/**
* The attribute Protocol Data Unit (PDU) or message is invalid.
*/
InvalidPdu = 4,
/**
* The attribute requires authentication before its value can be read or written.
*/
InsufficientAuthentication = 5,
/**
* The attribute server does not support the request received by the client.
*/
RequestNotSupported = 6,
/**
* The specified offset value was past the end of the attributes value.
*/
InvalidOffset = 7,
/**
* The attribute requires authorization before its value can be read or written.
*/
InsufficientAuthorization = 8,
/**
* The prepare queue is full, because too many prepare write requests have been queued.
*/
PrepareQueueFull = 9,
/**
* The attribute is not found within the specified attribute handle range.
*/
AttributeNotFound = 10,
/**
* The attribute cannot be read or written using the ATT read blob request.
*/
AttributeNotLong = 11,
/**
* The encryption key size used for encrypting this link is insufficient.
*/
InsufficientEncryptionKeySize = 12,
/**
* The length of the attributes value is invalid for the intended operation.
*/
InvalidAttributeValueLength = 13,
/**
* The ATT request has encountered an unlikely error and therefore could not be completed.
*/
UnlikelyError = 14,
/**
* The attribute requires encryption before its value can be read or written.
*/
InsufficientEncryption = 15,
/**
* The attribute type is not a supported grouping attribute as defined by a higher-layer specification.
*/
UnsupportedGroupType = 16,
/**
* Resources are insufficient to complete the ATT request.
*/
InsufficientResources = 17
// Values 0x012 0x7F are reserved for future use.
}
/**
* iOS specific error codes.
* @name BleIOSErrorCode
*/
export enum BleIOSErrorCode {
/**
* An unknown error occurred.
*/
Unknown = 0,
/**
* The specified parameters are invalid.
*/
InvalidParameters = 1,
/**
* The specified attribute handle is invalid.
*/
InvalidHandle = 2,
/**
* The device is not currently connected.
*/
NotConnected = 3,
/**
* The device has run out of space to complete the intended operation.
*/
OutOfSpace = 4,
/**
* The operation is canceled.
*/
OperationCancelled = 5,
/**
* The connection timed out.
*/
ConnectionTimeout = 6,
/**
* The peripheral disconnected.
*/
PeripheralDisconnected = 7,
/**
* The specified UUID is not permitted.
*/
UuidNotAllowed = 8,
/**
* The peripheral is already advertising.
*/
AlreadyAdvertising = 9,
/**
* The connection failed.
*/
ConnectionFailed = 10,
/**
* The device already has the maximum number of connections.
*/
ConnectionLimitReached = 11,
/**
* Unknown device.
*/
UnknownDevice = 12
}
/**
* Android specific error codes.
* @name BleAndroidErrorCode
*/
export enum BleAndroidErrorCode {
/**
* The device has insufficient resources to complete the intended operation.
*/
NoResources = 0x80,
/**
* Internal error occurred which may happen due to implementation error in BLE stack.
*/
InternalError = 0x81,
/**
* BLE stack implementation entered illegal state and operation couldn't complete.
*/
WrongState = 0x82,
/**
* BLE stack didn't allocate sufficient memory buffer for internal caches.
*/
DbFull = 0x83,
/**
* Maximum number of pending operations was exceeded.
*/
Busy = 0x84,
/**
* Generic BLE stack error.
*/
Error = 0x85,
/**
* Command is already queued up in GATT.
*/
CmdStarted = 0x86,
/**
* Illegal parameter was passed to internal BLE stack function.
*/
IllegalParameter = 0x87,
/**
* Operation is pending.
*/
Pending = 0x88,
/**
* Authorization failed before performing read or write operation.
*/
AuthFail = 0x89,
/**
* More cache entries were loaded then expected.
*/
More = 0x8a,
/**
* Invalid configuration
*/
InvalidCfg = 0x8b,
/**
* GATT service already started.
*/
ServiceStarted = 0x8c,
/**
* GATT link is encrypted but prone to man in the middle attacks.
*/
EncrypedNoMitm = 0x8d,
/**
* GATT link is not encrypted.
*/
NotEncrypted = 0x8e,
/**
* ATT command was sent but channel is congested.
*/
Congested = 0x8f
}
// BleModule.js ******************************************************************************************************
/**
* Native device object passed from BleModule.
* @private
*/
export interface NativeDevice {
/**
* Device identifier: MAC address on Android and UUID on iOS.
* @private
*/
id: DeviceId
/**
* Device name if present
* @private
*/
name: string | null
/**
* Current Received Signal Strength Indication of device
* @private
*/
rssi: number | null
/**
* Current Maximum Transmission Unit for this device. When device is not connected
* default value of 23 is used.
* @private
*/
mtu: number
// Advertisement
/**
* Device's custom manufacturer data. Its format is defined by manufacturer.
* @private
*/
manufacturerData: Base64 | null
/**
* Raw device scan data. When you have specific advertiser data,
* you can implement your own processing.
* @private
*/
rawScanRecord: Base64
/**
* Map od service UUIDs with associated data.
* @private
*/
serviceData: { [uuid: string]: Base64 } | null
/**
* List of available services visible during scanning.
* @private
*/
serviceUUIDs: UUID[] | null
/**
* User friendly name of device.
* @private
*/
localName: string | null
/**
* Transmission power level of device.
* @private
*/
txPowerLevel: number | null
/**
* List of solicited service UUIDs.
* @private
*/
solicitedServiceUUIDs: UUID[] | null
/**
* Is device connectable.
* @private
*/
isConnectable: boolean | null
/**
* List of overflow service UUIDs.
* @private
*/
overflowServiceUUIDs: UUID[] | null
}
/**
* Native service object passed from BleModule.
* @private
*/
export interface NativeService {
/**
* Service unique identifier
* @private
*/
id: Identifier
/**
* Service UUID
* @private
*/
uuid: UUID
/**
* Device's ID to which service belongs
* @private
*/
deviceID: DeviceId
/**
* Value indicating whether the type of service is primary or secondary.
* @private
*/
isPrimary: boolean
}
/**
* Native characteristic object passed from BleModule.
* @private
*/
export interface NativeCharacteristic {
/**
* Characteristic unique identifier
* @private
*/
id: Identifier
/**
* Characteristic UUID
* @private
*/
uuid: UUID
/**
* Service's ID to which characteristic belongs
* @private
*/
serviceID: Identifier
/**
* Service's UUID to which characteristic belongs
* @private
*/
serviceUUID: UUID
/**
* Device's ID to which characteristic belongs
* @private
*/
deviceID: DeviceId
/**
* True if characteristic can be read
* @private
*/
isReadable: boolean
/**
* True if characteristic can be written with response
* @private
*/
isWritableWithResponse: boolean
/**
* True if characteristic can be written without response
* @private
*/
isWritableWithoutResponse: boolean
/**
* True if characteristic can monitor value changes.
* @private
*/
isNotifiable: boolean
/**
* True if characteristic is monitoring value changes without ACK.
* @private
*/
isNotifying: boolean
/**
* True if characteristic is monitoring value changes with ACK.
* @private
*/
isIndicatable: boolean
/**
* Characteristic value if present
* @private
*/
value: Base64 | null
}
/**
* Native descriptor object passed from BleModule.
* @private
*/
export interface NativeDescriptor {
/**
* Descriptor unique identifier
* @private
*/
id: Identifier
/**
* Descriptor UUID
* @private
*/
uuid: UUID
/**
* Characteristic's ID to which descriptor belongs
* @private
*/
characteristicID: Identifier
/**
* Characteristic's UUID to which descriptor belongs
* @private
*/
characteristicUUID: UUID
/**
* Service's ID to which descriptor belongs
* @private
*/
serviceID: Identifier
/**
* Service's UUID to which descriptor belongs
* @private
*/
serviceUUID: UUID
/**
* Device's ID to which descriptor belongs
* @private
*/
deviceID: DeviceId
/**
* Descriptor value if present
* @private
*/
value: Base64 | null
}
/**
* Object representing information about restored BLE state after application relaunch.
* @private
*/
export interface NativeBleRestoredState {
/**
* List of connected devices after state restoration.
* @type {Array<NativeDevice>}
* @instance
* @memberof NativeBleRestoredState
* @private
*/
connectedPeripherals: NativeDevice[]
}
// BleManager.js *****************************************************************************************************
/**
*
* BleManager is an entry point for react-native-ble-plx library. It provides all means to discover and work with
* {@link Device} instances. It should be initialized only once with `new` keyword and method
* {@link #blemanagerdestroy|destroy()} should be called on its instance when user wants to deallocate all resources.
*
* In case you want to properly support Background Mode, you should provide `restoreStateIdentifier` and
* `restoreStateFunction` in {@link BleManagerOptions}.
*
* @example
* const manager = new BleManager();
* // ... work with BLE manager ...
* manager.destroy();
*/
export class BleManager {
/**
* Creates an instance of {@link BleManager}.
*/
constructor(options?: BleManagerOptions)
/**
* Destroys {@link BleManager} instance. A new instance needs to be created to continue working with
* this library. All operations which were in progress completes with
* @returns {Promise<void>}
* {@link #bleerrorcodebluetoothmanagerdestroyed|BluetoothManagerDestroyed} error code.
*/
destroy(): Promise<void>;
// Mark: Common your_sha256_hash------------------------------------
/**
* Sets new log level for native module's logging mechanism.
* @param {LogLevel} logLevel New log level to be set.
* @returns {Promise<LogLevel>} Current log level.
*/
setLogLevel(logLevel: LogLevel): Promise<LogLevel>
/**
* Get current log level for native module's logging mechanism.
* @returns {Promise<LogLevel>} Current log level.
*/
logLevel(): Promise<LogLevel>
/**
* Cancels pending transaction.
*
* Few operations such as monitoring characteristic's value changes can be cancelled by a user. Basically every API
* entry which accepts `transactionId` allows to call `cancelTransaction` function. When cancelled operation is a
* promise or a callback which registers errors, {@link #bleerror|BleError} with error code
* {@link #bleerrorcodeoperationcancelled|OperationCancelled} will be emitted in that case. Cancelling transaction
* which doesn't exist is ignored.
*
* @example
* const transactionId = 'monitor_battery';
*
* // Monitor battery notifications
* manager.monitorCharacteristicForDevice(
* device.id, '180F', '2A19',
* (error, characteristic) => {
* // Handle battery level changes...
* }, transactionId);
*
* // Cancel after specified amount of time
* setTimeout(() => manager.cancelTransaction(transactionId), 2000);
*
* @param {TransactionId} transactionId Id of pending transactions.
* @returns {Promise<void>}
*/
cancelTransaction(transactionId: TransactionId): Promise<void>
// Mark: Monitoring state your_sha256_hash--------------------------
/**
* Enable Bluetooth. This function blocks until BLE is in PoweredOn state. [Android only]
*
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<BleManager>} Promise completes when state transition was successful.
*/
enable(transactionId?: TransactionId): Promise<BleManager>
/**
* Disable Bluetooth. This function blocks until BLE is in PoweredOff state. [Android only]
*
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<BleManager>} Promise completes when state transition was successful.
*/
disable(transactionId?: TransactionId): Promise<BleManager>
/**
* Current, global {@link State} of a {@link BleManager}. All APIs are working only when active state
* is "PoweredOn".
*
* @returns {Promise<State>} Promise which emits current state of BleManager.
*/
state(): Promise<State>
/**
* Notifies about {@link State} changes of a {@link BleManager}.
*
* @example
* const subscription = this.manager.onStateChange((state) => {
* if (state === 'PoweredOn') {
* this.scanAndConnect();
* subscription.remove();
* }
* }, true);
*
* @param {function(newState: State)} listener Callback which emits state changes of BLE Manager.
* Look at {@link State} for possible values.
* @param {boolean} [emitCurrentState=false] If true, current state will be emitted as well. Defaults to false.
*
* @returns {Subscription} Subscription on which `remove()` function can be called to unsubscribe.
*/
onStateChange(listener: (newState: State) => void, emitCurrentState?: boolean): Subscription
// Mark: Scanning your_sha256_hash----------------------------------
/**
* Starts device scanning. When previous scan is in progress it will be stopped before executing this command.
*
* @param {?Array<UUID>} UUIDs Array of strings containing {@link UUID}s of {@link Service}s which are registered in
* scanned {@link Device}. If `null` is passed, all available {@link Device}s will be scanned.
* @param {?ScanOptions} options Optional configuration for scanning operation.
* @param {function(error?: BleError, scannedDevice: ?Device)} listener Function which will be called for every scanned
* {@link Device} (devices may be scanned multiple times). It's first argument is potential {@link Error} which is set
* to non `null` value when scanning failed. You have to start scanning process again if that happens. Second argument
* is a scanned {@link Device}.
* @returns {Promise<void>} the promise may be rejected if the operation is impossible to perform.
*/
startDeviceScan(
UUIDs: UUID[] | null,
options: ScanOptions | null,
listener: (error: BleError | null, scannedDevice: Device | null) => void
): Promise<void>
/**
* Stops {@link Device} scan if in progress.
* @returns {Promise<void>} the promise may be rejected if the operation is impossible to perform.
*/
stopDeviceScan(): Promise<void>
/**
* Request a connection parameter update. This functions may update connection parameters on Android API level 21 or
* above.
*
* @param {DeviceId} deviceIdentifier Device identifier.
* @param {ConnectionPriority} connectionPriority: Connection priority.
* @param {?TransactionId} transactionId Transaction handle used to cancel operation.
* @returns {Promise<Device>} Connected device.
*/
requestConnectionPriorityForDevice(
deviceIdentifier: DeviceId,
connectionPriority: ConnectionPriority,
transactionId?: TransactionId
): Promise<Device>
/**
* Reads RSSI for connected device.
*
* @param {DeviceId} deviceIdentifier Device identifier.
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<Device>} Connected device with updated RSSI value.
*/
readRSSIForDevice(deviceIdentifier: DeviceId, transactionId?: TransactionId): Promise<Device>
/**
* Request new MTU value for this device. This function currently is not doing anything
* on iOS platform as MTU exchange is done automatically. Since Android 14,
* mtu management has been changed, more information can be found at the link:
* path_to_url#mtu-set-to-517
* @param {DeviceId} deviceIdentifier Device identifier.
* @param {number} mtu New MTU to negotiate.
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<Device>} Device with updated MTU size. Default value is 23 (517 since Android 14).
*/
requestMTUForDevice(deviceIdentifier: DeviceId, mtu: number, transactionId?: TransactionId): Promise<Device>
// Mark: Connection management your_sha256_hash---------------------
/**
* Returns a list of known devices by their identifiers.
* @param {Array<DeviceId>} deviceIdentifiers List of device identifiers.
* @returns {Promise<Array<Device>>} List of known devices by their identifiers.
*/
devices(deviceIdentifiers: Array<DeviceId>): Promise<Device[]>
/**
* Returns a list of the peripherals (containing any of the specified services) currently connected to the system
* which have discovered services. Returned devices **may not be connected** to your application. Make sure to check
* if that's the case with function {@link #blemanagerisdeviceconnected|isDeviceConnected}.
* @param {Array<UUID>} serviceUUIDs List of service UUIDs. Device must contain at least one of them to be listed.
* @returns {Promise<Array<Device>>} List of known devices with discovered services as stated in the parameter.
*/
connectedDevices(serviceUUIDs: Array<UUID>): Promise<Device[]>
// Mark: Connection management your_sha256_hash---------------------
/**
* Connects to {@link Device} with provided ID.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @param {?ConnectionOptions} options Platform specific options for connection establishment.
* @returns {Promise<Device>} Connected {@link Device} object if successful.
*/
connectToDevice(deviceIdentifier: DeviceId, options?: ConnectionOptions): Promise<Device>
/**
* Disconnects from {@link Device} if it's connected or cancels pending connection.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier to be closed.
* @returns {Promise<Device>} Returns closed {@link Device} when operation is successful.
*/
cancelDeviceConnection(deviceIdentifier: DeviceId): Promise<Device>
/**
* Monitors if {@link Device} was disconnected due to any errors or connection problems.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier to be monitored.
* @param {function(error?: BleError, device: ?Device)} listener - callback returning error as a reason of disconnection
* if available and {@link Device} object. If an error is null, that means the connection was terminated by
* {@link #blemanagercanceldeviceconnection|bleManager.cancelDeviceConnection()} call.
* @returns {Subscription} Subscription on which `remove()` function can be called to unsubscribe.
*/
onDeviceDisconnected(
deviceIdentifier: DeviceId,
listener: (error: BleError | null, device: Device | null) => void
): Subscription
/**
* Check connection state of a {@link Device}.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @returns {Promise<boolean>} Promise which emits `true` if device is connected, and `false` otherwise.
*/
isDeviceConnected(deviceIdentifier: DeviceId): Promise<boolean>
// Mark: Discovery your_sha256_hash---------------------------------
/**
* Discovers all {@link Service}s, {@link Characteristic}s and {@link Descriptor}s for {@link Device}.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<Device>} Promise which emits {@link Device} object if all available services and
* characteristics have been discovered.
*/
discoverAllServicesAndCharacteristicsForDevice(
deviceIdentifier: DeviceId,
transactionId?: TransactionId
): Promise<Device>
// Mark: Service and characteristic getters your_sha256_hash--------
/**
* List of discovered {@link Service}s for {@link Device}.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @returns {Promise<Array<Service>>} Promise which emits array of {@link Service} objects which are discovered for a
* {@link Device}.
*/
servicesForDevice(deviceIdentifier: DeviceId): Promise<Service[]>
/**
* List of discovered {@link Characteristic}s for given {@link Device} and {@link Service}.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @param {UUID} serviceUUID {@link Service} UUID.
* @returns {Promise<Array<Characteristic>>} Promise which emits array of {@link Characteristic} objects which are
* discovered for a {@link Device} in specified {@link Service}.
*/
characteristicsForDevice(deviceIdentifier: DeviceId, serviceUUID: UUID): Promise<Characteristic[]>
/**
* List of discovered {@link Descriptor}s for given {@link Device}, {@link Service} and {@link Characteristic}.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @returns {Promise<Array<Descriptor>>} Promise which emits array of {@link Descriptor} objects which are
* discovered for a {@link Device}, {@link Service} in specified {@link Characteristic}.
*/
descriptorsForDevice(
deviceIdentifier: DeviceId,
serviceUUID: UUID,
characteristicUUID: UUID
): Promise<Array<Descriptor>>
// Mark: Characteristics operations your_sha256_hash----------------
/**
* Read {@link Characteristic} value.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits first {@link Characteristic} object matching specified
* UUID paths. Latest value of {@link Characteristic} will be stored inside returned object.
*/
readCharacteristicForDevice(
deviceIdentifier: DeviceId,
serviceUUID: UUID,
characteristicUUID: UUID,
transactionId?: TransactionId
): Promise<Characteristic>
/**
* Write {@link Characteristic} value with response.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {Base64} base64Value Value in Base64 format.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits first {@link Characteristic} object matching specified
* UUID paths. Latest value of characteristic may not be stored inside returned object.
*/
writeCharacteristicWithResponseForDevice(
deviceIdentifier: DeviceId,
serviceUUID: UUID,
characteristicUUID: UUID,
base64Value: Base64,
transactionId?: TransactionId
): Promise<Characteristic>
/**
* Write {@link Characteristic} value without response.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {Base64} base64Value Value in Base64 format.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits first {@link Characteristic} object matching specified
* UUID paths. Latest value of characteristic may not be stored inside returned object.
*/
writeCharacteristicWithoutResponseForDevice(
deviceIdentifier: DeviceId,
serviceUUID: UUID,
characteristicUUID: UUID,
base64Value: Base64,
transactionId?: TransactionId
): Promise<Characteristic>
/**
* Monitor value changes of a {@link Characteristic}. If notifications are enabled they will be used
* in favour of indications.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {function(error?: BleError, characteristic?: Characteristic)} listener - callback which emits
* {@link Characteristic} objects with modified value for each notification.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|cancelTransaction()} function.
* @returns {Subscription} Subscription on which `remove()` function can be called to unsubscribe.
*/
monitorCharacteristicForDevice(
deviceIdentifier: DeviceId,
serviceUUID: UUID,
characteristicUUID: UUID,
listener: (error: BleError | null, characteristic: Characteristic | null) => void,
transactionId?: TransactionId
): Subscription
// Mark: Descriptors operations your_sha256_hash------------------
/**
* Read {@link Descriptor} value.
*
* @param {DeviceId} deviceIdentifier {@link Device} identifier.
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {UUID} descriptorUUID {@link Descriptor} UUID.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|cancelTransaction()} function.
* @returns {Promise<Descriptor>} Promise which emits first {@link Descriptor} object matching specified
* UUID paths. Latest value of {@link Descriptor} will be stored inside returned object.
*/
readDescriptorForDevice(
deviceIdentifier: DeviceId,
serviceUUID: UUID,
characteristicUUID: UUID,
descriptorUUID: UUID,
transactionId?: string
): Promise<Descriptor>
/**
* Write {@link Descriptor} value.
*
* @param {DeviceId} deviceIdentifier Connected device identifier
* @param {UUID} serviceUUID Service UUID
* @param {UUID} characteristicUUID Characteristic UUID
* @param {UUID} descriptorUUID Descriptor UUID
* @param {Base64} valueBase64 Value to be set coded in Base64
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<Descriptor>} Descriptor which saved passed value
*/
writeDescriptorForDevice(
deviceIdentifier: DeviceId,
serviceUUID: UUID,
characteristicUUID: UUID,
descriptorUUID: UUID,
valueBase64: Base64,
transactionId?: string
): Promise<Descriptor>
}
// Device.js *********************************************************************************************************
/**
* Device instance which can be retrieved only by calling
* {@link #blemanagerstartdevicescan|bleManager.startDeviceScan()}.
*/
export class Device implements NativeDevice {
/**
* Device identifier: MAC address on Android and UUID on iOS.
*/
id: DeviceId
/**
* Device name if present
*/
name: string | null
/**
* Current Received Signal Strength Indication of device
*/
rssi: number | null
/**
* Current Maximum Transmission Unit for this device. When device is not connected
* default value of 23 is used.
*/
mtu: number
// Advertisement
/**
* Device's custom manufacturer data. Its format is defined by manufacturer.
*/
manufacturerData: Base64 | null
/**
* Raw device scan data. When you have specific advertiser data,
* you can implement your own processing.
*/
rawScanRecord: Base64
/**
* Map of service UUIDs (as keys) with associated data (as values).
*/
serviceData: { [uuid: string]: Base64 } | null
/**
* List of available services visible during scanning.
*/
serviceUUIDs: UUID[] | null
/**
* User friendly name of device.
*/
localName: string | null
/**
* Transmission power level of device.
*/
txPowerLevel: number | null
/**
* List of solicited service UUIDs.
*/
solicitedServiceUUIDs: UUID[] | null
/**
* Is device connectable. [iOS only]
*/
isConnectable: boolean | null
/**
* List of overflow service UUIDs. [iOS only]
*/
overflowServiceUUIDs: UUID[] | null
/**
* Private constructor used to create {@link Device} object.
*
* @param {NativeDevice} nativeDevice Native device properties
* @param {BleManager} manager {@link BleManager} handle
* @private
*/
constructor(nativeDevice: NativeDevice, manager: BleManager)
/**
* {@link #blemanagerrequestconnectionpriorityfordevice|bleManager.requestConnectionPriorityForDevice()} with partially filled arguments.
*
* @param {ConnectionPriority} connectionPriority: Connection priority.
* @param {?TransactionId} transactionId Transaction handle used to cancel operation.
* @returns {Promise<Device>} Connected device.
*/
requestConnectionPriority(connectionPriority: ConnectionPriority, transactionId?: TransactionId): Promise<Device>
/**
* {@link #blemanagerreadrssifordevice|bleManager.readRSSIForDevice()} with partially filled arguments.
*
* @param {?TransactionId} transactionId Transaction handle used to cancel operation.
* @returns {Promise<Device>} This device with updated RSSI value.
*/
readRSSI(transactionId?: TransactionId): Promise<Device>
/**
* {@link #blemanagerrequestmtufordevice|bleManager.requestMTUForDevice()} with partially filled arguments.
*
* @param {?TransactionId} transactionId Transaction handle used to cancel operation.
* @returns {Promise<Device>} Device with updated MTU size. Default value is 23.
*/
requestMTU(mtu: number, transactionId?: TransactionId): Promise<Device>
/**
* {@link #blemanagerconnecttodevice|bleManager.connectToDevice()} with partially filled arguments.
*
* @param {?ConnectionOptions} options Platform specific options for connection establishment. Not used currently.
* @returns {Promise<Device>} Connected {@link Device} object if successful.
*/
connect(options?: ConnectionOptions): Promise<Device>
/**
* {@link #blemanagercanceldeviceconnection|bleManager.cancelDeviceConnection()} with partially filled arguments.
*
* @returns {Promise<Device>} Returns closed {@link Device} when operation is successful.
*/
cancelConnection(): Promise<Device>
/**
* {@link #blemanagerisdeviceconnected|bleManager.isDeviceConnected()} with partially filled arguments.
*
* @returns {Promise<boolean>} Promise which emits `true` if device is connected, and `false` otherwise.
*/
isConnected(): Promise<boolean>
/**
* {@link #blemanagerondevicedisconnected|bleManager.onDeviceDisconnected()} with partially filled arguments.
*
* @param {function(error: ?BleError, device: Device)} listener callback returning error as a reason of disconnection
* if available and {@link Device} object. If an error is null, that means the connection was terminated by
* {@link #blemanagercanceldeviceconnection|bleManager.cancelDeviceConnection()} call.
* @returns {Subscription} Subscription on which `remove()` function can be called to unsubscribe.
*/
onDisconnected(listener: (error: BleError | null, device: Device) => void): Subscription
/**
* {@link #blemanagerdiscoverallservicesandcharacteristicsfordevice|bleManager.discoverAllServicesAndCharacteristicsForDevice()} with partially filled arguments.
*
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<Device>} Promise which emits {@link Device} object if all available services and
* characteristics have been discovered.
*/
discoverAllServicesAndCharacteristics(transactionId?: TransactionId): Promise<Device>
/**
* {@link #blemanagerservicesfordevice|bleManager.servicesForDevice()} with partially filled arguments.
*
* @returns {Promise<Service[]>} Promise which emits array of {@link Service} objects which are discovered by this
* device.
*/
services(): Promise<Service[]>
/**
* {@link #blemanagercharacteristicsfordevice|bleManager.characteristicsForDevice()} with partially filled arguments.
*
* @param {UUID} serviceUUID {@link Service} UUID.
* @returns {Promise<Characteristic[]>} Promise which emits array of {@link Characteristic} objects which are
* discovered for a {@link Device} in specified {@link Service}.
*/
characteristicsForService(serviceUUID: string): Promise<Characteristic[]>
/**
* {@link #blemanagerdescriptorsfordevice|bleManager.descriptorsForDevice()} with partially filled arguments.
*
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @returns {Promise<Array<Descriptor>>} Promise which emits array of {@link Descriptor} objects which are
* discovered for this {@link Characteristic}.
*/
descriptorsForService(serviceUUID: UUID, characteristicUUID: UUID): Promise<Array<Descriptor>>
/**
* {@link #blemanagerreadcharacteristicfordevice|bleManager.readCharacteristicForDevice()} with partially filled arguments.
*
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits first {@link Characteristic} object matching specified
* UUID paths. Latest value of {@link Characteristic} will be stored inside returned object.
*/
readCharacteristicForService(
serviceUUID: UUID,
characteristicUUID: UUID,
transactionId?: TransactionId
): Promise<Characteristic>
/**
* {@link #blemanagerwritecharacteristicwithresponsefordevice|bleManager.writeCharacteristicWithResponseForDevice()} with partially filled arguments.
*
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {Base64} valueBase64 Value in Base64 format.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits first {@link Characteristic} object matching specified
* UUID paths. Latest value of characteristic may not be stored inside returned object.
*/
writeCharacteristicWithResponseForService(
serviceUUID: UUID,
characteristicUUID: UUID,
valueBase64: Base64,
transactionId?: TransactionId
): Promise<Characteristic>
/**
* {@link #blemanagerwritecharacteristicwithoutresponsefordevice|bleManager.writeCharacteristicWithoutResponseForDevice()} with partially filled arguments.
*
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {Base64} valueBase64 Value in Base64 format.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits first {@link Characteristic} object matching specified
* UUID paths. Latest value of characteristic may not be stored inside returned object.
*/
writeCharacteristicWithoutResponseForService(
serviceUUID: UUID,
characteristicUUID: UUID,
valueBase64: Base64,
transactionId?: TransactionId
): Promise<Characteristic>
/**
* {@link #blemanagermonitorcharacteristicfordevice|bleManager.monitorCharacteristicForDevice()} with partially filled arguments.
*
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {function(error: ?BleError, characteristic: ?Characteristic)} listener - callback which emits
* {@link Characteristic} objects with modified value for each notification.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Subscription} Subscription on which `remove()` function can be called to unsubscribe.
*/
monitorCharacteristicForService(
serviceUUID: UUID,
characteristicUUID: UUID,
listener: (error: BleError | null, characteristic: Characteristic | null) => void,
transactionId?: TransactionId
): Subscription
/**
* {@link #blemanagerreaddescriptorfordevice|bleManager.readDescriptorForDevice()} with partially filled arguments.
*
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {UUID} descriptorUUID {@link Descriptor} UUID.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|cancelTransaction()} function.
* @returns {Promise<Descriptor>} Promise which emits first {@link Descriptor} object matching specified
* UUID paths. Latest value of {@link Descriptor} will be stored inside returned object.
*/
readDescriptorForService(
serviceUUID: UUID,
characteristicUUID: UUID,
descriptorUUID: UUID,
transactionId?: string
): Promise<Descriptor>
/**
* {@link #blemanagerwritedescriptorfordevice|bleManager.writeDescriptorForDevice()} with partially filled arguments.
*
* @param {UUID} serviceUUID {@link Service} UUID.
* @param {UUID} characteristicUUID Characteristic UUID
* @param {UUID} descriptorUUID Descriptor UUID
* @param {Base64} valueBase64 Value to be set coded in Base64
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<Descriptor>} Descriptor which saved passed value.
*/
writeDescriptorForService(
serviceUUID: UUID,
characteristicUUID: UUID,
descriptorUUID: UUID,
valueBase64: Base64,
transactionId?: string
): Promise<Descriptor>
}
// Service.js ********************************************************************************************************
/**
* Service object.
*/
export class Service implements NativeService {
/**
* Service unique identifier
*/
id: Identifier
/**
* Service UUID
*/
uuid: UUID
/**
* Device's ID to which service belongs
*/
deviceID: DeviceId
/**
* Value indicating whether the type of service is primary or secondary.
*/
isPrimary: boolean
/**
* Private constructor used to create {@link Service} object.
*
* @param {NativeService} nativeService NativeService properties to be copied.
* @param {BleManager} manager Current BleManager instance.
* @private
* @ignore
*/
constructor(nativeService: NativeService, manager: BleManager)
/**
* {@link #blemanagercharacteristicsfordevice|bleManager.characteristicsForDevice()} with partially filled arguments.
*
* @returns {Promise<Array<Characteristic>>} Promise which emits array of {@link Characteristic} objects which are
* discovered for this service.
*/
characteristics(): Promise<Characteristic[]>
/**
* {@link #blemanagerdescriptorsfordevice|bleManager.descriptorsForDevice()} with partially filled arguments.
*
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @returns {Promise<Array<Descriptor>>} Promise which emits array of {@link Descriptor} objects which are
* discovered for this {@link Service} in specified {@link Characteristic}.
*/
descriptorsForCharacteristic(characteristicUUID: UUID): Promise<Array<Descriptor>>
/**
* {@link #blemanagerreadcharacteristicfordevice|bleManager.readCharacteristicForDevice()} with partially filled arguments.
*
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits first {@link Characteristic} object matching specified
* UUID path. Latest value of {@link Characteristic} will be stored inside returned object.
*/
readCharacteristic(characteristicUUID: UUID, transactionId?: string): Promise<Characteristic>
/**
* {@link #blemanagerwritecharacteristicwithresponsefordevice|bleManager.writeCharacteristicWithResponseForDevice()} with partially filled arguments.
*
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {Base64} valueBase64 Value in Base64 format.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits first {@link Characteristic} object matching specified
* UUID path. Latest value of characteristic may not be stored inside returned object.
*/
writeCharacteristicWithResponse(
characteristicUUID: UUID,
valueBase64: Base64,
transactionId?: string
): Promise<Characteristic>
/**
* {@link #blemanagerwritecharacteristicwithoutresponsefordevice|bleManager.writeCharacteristicWithoutResponseForDevice()} with partially filled arguments.
*
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {Base64} valueBase64 Value in Base64 format.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits first {@link Characteristic} object matching specified
* UUID path. Latest value of characteristic may not be stored inside returned object.
*/
writeCharacteristicWithoutResponse(
characteristicUUID: UUID,
valueBase64: Base64,
transactionId?: string
): Promise<Characteristic>
/**
* {@link #blemanagermonitorcharacteristicfordevice|bleManager.monitorCharacteristicForDevice()} with partially filled arguments.
*
* @param {UUID} characteristicUUID - {@link Characteristic} UUID.
* @param {function(error?: BleError, characteristic?: Characteristic)} listener callback which emits
* {@link Characteristic} objects with modified value for each notification.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Subscription} Subscription on which `remove()` function can be called to unsubscribe.
*/
monitorCharacteristic(
characteristicUUID: UUID,
listener: (error: BleError | null, characteristic: Characteristic | null) => void,
transactionId?: string
): Subscription
/**
* {@link #blemanagerreaddescriptorfordevice|bleManager.readDescriptorForDevice()} with partially filled arguments.
*
* @param {UUID} characteristicUUID {@link Characteristic} UUID.
* @param {UUID} descriptorUUID {@link Descriptor} UUID.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|cancelTransaction()} function.
* @returns {Promise<Descriptor>} Promise which emits first {@link Descriptor} object matching specified
* UUID paths. Latest value of {@link Descriptor} will be stored inside returned object.
*/
readDescriptorForCharacteristic(
characteristicUUID: UUID,
descriptorUUID: UUID,
transactionId?: string
): Promise<Descriptor>
/**
* {@link #blemanagerwritedescriptorfordevice|bleManager.writeDescriptorForDevice()} with partially filled arguments.
*
* @param {UUID} characteristicUUID Characteristic UUID
* @param {UUID} descriptorUUID Descriptor UUID
* @param {Base64} valueBase64 Value to be set coded in Base64
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<Descriptor>} Descriptor which saved passed value.
*/
writeDescriptorForCharacteristic(
characteristicUUID: UUID,
descriptorUUID: UUID,
valueBase64: Base64,
transactionId?: string
): Promise<Descriptor>
}
// Characteristic.js *************************************************************************************************
/**
* Characteristic object.
*/
export class Characteristic implements NativeCharacteristic {
/**
* Characteristic unique identifier
*/
id: Identifier
/**
* Characteristic UUID
*/
uuid: UUID
/**
* Service's ID to which characteristic belongs
*/
serviceID: Identifier
/**
* Service's UUID to which characteristic belongs
*/
serviceUUID: UUID
/**
* Device's ID to which characteristic belongs
*/
deviceID: DeviceId
/**
* True if characteristic can be read
*/
isReadable: boolean
/**
* True if characteristic can be written with response
*/
isWritableWithResponse: boolean
/**
* True if characteristic can be written without response
*/
isWritableWithoutResponse: boolean
/**
* True if characteristic can monitor value changes.
*/
isNotifiable: boolean
/**
* True if characteristic is monitoring value changes without ACK.
*/
isNotifying: boolean
/**
* True if characteristic is monitoring value changes with ACK.
*/
isIndicatable: boolean
/**
* Characteristic value if present
*/
value: Base64 | null
/**
* Private constructor used to create instance of {@link Characteristic}.
* @param {NativeCharacteristic} nativeCharacteristic NativeCharacteristic
* @param {BleManager} manager BleManager
* @private
*/
constructor(nativeCharacteristic: NativeCharacteristic, manager: BleManager)
/**
* {@link #blemanagerdescriptorsfordevice|bleManager.descriptorsForDevice()} with partially filled arguments.
*
* @returns {Promise<Array<Descriptor>>} Promise which emits array of {@link Descriptor} objects which are
* discovered for this {@link Characteristic}.
*/
descriptors(): Promise<Array<Descriptor>>
/**
* {@link #blemanagerreadcharacteristicfordevice|bleManager.readCharacteristicForDevice()} with partially filled arguments.
*
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits this {@link Characteristic}. Latest value will be stored
* inside returned object.
*/
read(transactionId?: string): Promise<Characteristic>
/**
* {@link #blemanagerwritecharacteristicwithresponsefordevice|bleManager.writeCharacteristicWithResponseForDevice()} with partially filled arguments.
*
* @param {Base64} valueBase64 Value in Base64 format.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits this {@link Characteristic}. Latest value may
* not be stored inside returned object.
*/
writeWithResponse(valueBase64: Base64, transactionId?: string): Promise<Characteristic>
/**
* {@link #blemanagerwritecharacteristicwithoutresponsefordevice|bleManager.writeCharacteristicWithoutResponseForDevice()} with partially filled arguments.
*
* @param {Base64} valueBase64 Value in Base64 format.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Promise<Characteristic>} Promise which emits this {@link Characteristic}. Latest value may
* not be stored inside returned object.
*/
writeWithoutResponse(valueBase64: Base64, transactionId?: string): Promise<Characteristic>
/**
* {@link #blemanagermonitorcharacteristicfordevice|bleManager.monitorCharacteristicForDevice()} with partially filled arguments.
*
* @param {function(error?: BleError, characteristic?: Characteristic)} listener callback which emits
* this {@link Characteristic} with modified value for each notification.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|bleManager.cancelTransaction()} function.
* @returns {Subscription} Subscription on which `remove()` function can be called to unsubscribe.
*/
monitor(
listener: (error: BleError | null, characteristic: Characteristic | null) => void,
transactionId?: string
): Subscription
/**
* {@link #blemanagerreaddescriptorfordevice|bleManager.readDescriptorForDevice()} with partially filled arguments.
*
* @param {UUID} descriptorUUID {@link Descriptor} UUID.
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|cancelTransaction()} function.
* @returns {Promise<Descriptor>} Promise which emits first {@link Descriptor} object matching specified
* UUID paths. Latest value of {@link Descriptor} will be stored inside returned object.
*/
readDescriptor(descriptorUUID: UUID, transactionId?: string): Promise<Descriptor>
/**
* {@link #blemanagerwritedescriptorfordevice|bleManager.writeDescriptorForDevice()} with partially filled arguments.
*
* @param {UUID} descriptorUUID Descriptor UUID
* @param {Base64} valueBase64 Value to be set coded in Base64
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<Descriptor>} Descriptor which saved passed value.
*/
writeDescriptor(descriptorUUID: UUID, valueBase64: Base64, transactionId?: string): Promise<Descriptor>
}
// Descriptor.js *************************************************************************************************
/**
* Descriptor object.
*/
export class Descriptor implements NativeDescriptor {
/**
* Internal BLE Manager handle
* @private
*/
_manager: BleManager
/**
* Descriptor unique identifier
*/
id: Identifier
/**
* Descriptor UUID
*/
uuid: UUID
/**
* Characteristic's ID to which descriptor belongs
*/
characteristicID: Identifier
/**
* Characteristic's UUID to which descriptor belongs
*/
characteristicUUID: UUID
/**
* Service's ID to which descriptor belongs
*/
serviceID: Identifier
/**
* Service's UUID to which descriptor belongs
*/
serviceUUID: UUID
/**
* Device's ID to which descriptor belongs
*/
deviceID: DeviceId
/**
* Descriptor value if present
*/
value: Base64 | null
/**
* Private constructor used to create instance of {@link Descriptor}.
* @param {NativeDescriptor} nativeDescriptor NativeDescriptor
* @param {BleManager} manager BleManager
* @private
*/
constructor(nativeDescriptor: NativeDescriptor, manager: BleManager)
/**
* {@link #blemanagerreaddescriptorfordevice|bleManager.readDescriptorForDevice()} with partially filled arguments.
*
* @param {?TransactionId} transactionId optional `transactionId` which can be used in
* {@link #blemanagercanceltransaction|cancelTransaction()} function.
* @returns {Promise<Descriptor>} Promise which emits first {@link Descriptor} object matching specified
* UUID paths. Latest value of {@link Descriptor} will be stored inside returned object.
*/
read(transactionId?: string): Promise<Descriptor>
/**
* {@link #blemanagerwritedescriptorfordevice|bleManager.writeDescriptorForDevice()} with partially filled arguments.
*
* @param {Base64} valueBase64 Value to be set coded in Base64
* @param {?TransactionId} transactionId Transaction handle used to cancel operation
* @returns {Promise<Descriptor>} Descriptor which saved passed value.
*/
write(valueBase64: Base64, transactionId?: string): Promise<Descriptor>
}
}
``` | /content/code_sandbox/src/index.d.ts | xml | 2016-07-27T10:57:27 | 2024-08-14T16:51:53 | react-native-ble-plx | dotintent/react-native-ble-plx | 3,006 | 15,689 |
```xml
import 'intersection-observer';
import { useEffect, useState } from 'react';
import { BasicTarget, getTargetElement } from '../utils/getTargetElement';
interface Options {
rootMargin?: string;
threshold?: number | number[];
root?: BasicTarget<Element>;
}
function useInViewport(target: BasicTarget, options?: Options): readonly [boolean | undefined] {
const [isIntersecting, setIsIntersecting] = useState<boolean>(false);
useEffect(() => {
const el = getTargetElement(target);
if (el) {
const observer = new IntersectionObserver(
(entries) => {
// eslint-disable-next-line no-restricted-syntax
for (const entry of entries) {
setIsIntersecting(entry.isIntersecting);
}
},
{
...options,
root: getTargetElement(options?.root),
},
);
observer.observe(el);
return () => {
observer.disconnect();
};
}
}, []);
return [isIntersecting] as const;
}
export default useInViewport;
``` | /content/code_sandbox/packages/zarm/src/use-in-viewport/index.ts | xml | 2016-07-13T11:45:37 | 2024-08-12T19:23:48 | zarm | ZhongAnTech/zarm | 1,707 | 224 |
```xml
/* eslint-disable react/jsx-key, react-native/no-inline-styles */
import React from "react"
import { TextStyle, View, ViewStyle } from "react-native"
import { Icon, ListItem, ListView, Text } from "../../../components"
import { colors, spacing } from "../../../theme"
import { Demo } from "../DemoShowroomScreen"
import { DemoDivider } from "../DemoDivider"
import { DemoUseCase } from "../DemoUseCase"
import { translate } from "app/i18n"
const listData =
`Tempor Id Ea Aliqua Pariatur Aliquip. Irure Minim Voluptate Consectetur Consequat Sint Esse Proident Irure. Nostrud Elit Veniam Nostrud Excepteur Minim Deserunt Quis Dolore Velit Nulla Irure Voluptate Tempor. Occaecat Amet Laboris Nostrud Qui Do Quis Lorem Ex Elit Fugiat Deserunt. In Pariatur Excepteur Exercitation Ex Incididunt Qui Mollit Dolor Sit Non. Culpa Officia Minim Cillum Exercitation Voluptate Proident Laboris Et Est Reprehenderit Quis Pariatur Nisi`
.split(".")
.map((item) => item.trim())
const $customLeft: ViewStyle = {
backgroundColor: colors.error,
flexGrow: 0,
flexBasis: 60,
height: "100%",
flexDirection: "row",
flexWrap: "wrap",
overflow: "hidden",
}
const $customTextStyle: TextStyle = {
color: colors.error,
}
const $customTouchableStyle: ViewStyle = {
backgroundColor: colors.error,
}
const $customContainerStyle: ViewStyle = {
borderTopWidth: 5,
borderTopColor: colors.palette.neutral100,
}
const $listStyle: ViewStyle = {
height: 148,
paddingHorizontal: spacing.xs,
backgroundColor: colors.palette.neutral200,
}
export const DemoListItem: Demo = {
name: "ListItem",
description: "demoListItem.description",
data: [
<DemoUseCase
name="demoListItem.useCase.height.name"
description="demoListItem.useCase.height.description"
>
<ListItem topSeparator>{translate("demoListItem.useCase.height.defaultHeight")}</ListItem>
<ListItem topSeparator height={100}>
{translate("demoListItem.useCase.height.customHeight")}
</ListItem>
<ListItem topSeparator>{translate("demoListItem.useCase.height.textHeight")}</ListItem>
<ListItem topSeparator bottomSeparator TextProps={{ numberOfLines: 1 }}>
{translate("demoListItem.useCase.height.longText")}
</ListItem>
</DemoUseCase>,
<DemoUseCase
name="demoListItem.useCase.separators.name"
description="demoListItem.useCase.separators.description"
>
<ListItem topSeparator>{translate("demoListItem.useCase.separators.topSeparator")}</ListItem>
<DemoDivider size={40} />
<ListItem topSeparator bottomSeparator>
{translate("demoListItem.useCase.separators.topAndBottomSeparator")}
</ListItem>
<DemoDivider size={40} />
<ListItem bottomSeparator>
{translate("demoListItem.useCase.separators.bottomSeparator")}
</ListItem>
</DemoUseCase>,
<DemoUseCase
name="demoListItem.useCase.icons.name"
description="demoListItem.useCase.icons.description"
>
<ListItem topSeparator leftIcon="ladybug">
{translate("demoListItem.useCase.icons.leftIcon")}
</ListItem>
<ListItem topSeparator rightIcon="ladybug">
{translate("demoListItem.useCase.icons.rightIcon")}
</ListItem>
<ListItem topSeparator bottomSeparator rightIcon="ladybug" leftIcon="ladybug">
{translate("demoListItem.useCase.icons.leftRightIcons")}
</ListItem>
</DemoUseCase>,
<DemoUseCase
name="demoListItem.useCase.customLeftRight.name"
description="demoListItem.useCase.customLeftRight.description"
>
<ListItem
topSeparator
LeftComponent={
<View style={[$customLeft, { marginEnd: spacing.md }]}>
{Array.from({ length: 9 }, (x, i) => i).map((i) => (
<Icon key={i} icon="ladybug" color={colors.palette.neutral100} size={20} />
))}
</View>
}
>
{translate("demoListItem.useCase.customLeftRight.customLeft")}
</ListItem>
<ListItem
topSeparator
bottomSeparator
RightComponent={
<View style={[$customLeft, { marginStart: spacing.md }]}>
{Array.from({ length: 9 }, (x, i) => i).map((i) => (
<Icon key={i} icon="ladybug" color={colors.palette.neutral100} size={20} />
))}
</View>
}
>
{translate("demoListItem.useCase.customLeftRight.customRight")}
</ListItem>
</DemoUseCase>,
<DemoUseCase
name="demoListItem.useCase.passingContent.name"
description="demoListItem.useCase.passingContent.description"
>
<ListItem topSeparator text={translate("demoListItem.useCase.passingContent.children")} />
<ListItem topSeparator tx="demoShowroomScreen.demoViaTxProp" />
<ListItem topSeparator>{translate("demoListItem.useCase.passingContent.children")}</ListItem>
<ListItem topSeparator bottomSeparator>
<Text>
<Text preset="bold">
{translate("demoListItem.useCase.passingContent.nestedChildren1")}
</Text>
{` `}
<Text preset="default">
{translate("demoListItem.useCase.passingContent.nestedChildren2")}
</Text>
</Text>
</ListItem>
</DemoUseCase>,
<DemoUseCase
name="demoListItem.useCase.listIntegration.name"
description="demoListItem.useCase.listIntegration.description"
>
<View style={$listStyle}>
<ListView<string>
data={listData}
estimatedItemSize={59}
renderItem={({ item, index }) => (
<ListItem
text={item}
rightIcon="caretRight"
TextProps={{ numberOfLines: 1 }}
topSeparator={index !== 0}
/>
)}
/>
</View>
</DemoUseCase>,
<DemoUseCase
name="demoListItem.useCase.styling.name"
description="demoListItem.useCase.styling.description"
>
<ListItem topSeparator textStyle={$customTextStyle}>
{translate("demoListItem.useCase.styling.styledText")}
</ListItem>
<ListItem
topSeparator
textStyle={{ color: colors.palette.neutral100 }}
style={$customTouchableStyle}
>
{translate("demoListItem.useCase.styling.styledText")}
</ListItem>
<ListItem
topSeparator
textStyle={{ color: colors.palette.neutral100 }}
style={$customTouchableStyle}
containerStyle={$customContainerStyle}
>
{translate("demoListItem.useCase.styling.styledContainer")}
</ListItem>
<ListItem
topSeparator
textStyle={{ color: colors.palette.neutral100 }}
style={$customTouchableStyle}
containerStyle={$customContainerStyle}
rightIcon="ladybug"
leftIcon="ladybug"
rightIconColor={colors.palette.neutral100}
leftIconColor={colors.palette.neutral100}
>
{translate("demoListItem.useCase.styling.tintedIcons")}
</ListItem>
</DemoUseCase>,
],
}
// @demo remove-file
``` | /content/code_sandbox/boilerplate/app/screens/DemoShowroomScreen/demos/DemoListItem.tsx | xml | 2016-02-10T16:06:07 | 2024-08-16T19:52:51 | ignite | infinitered/ignite | 17,196 | 1,637 |
```xml
import { ExpoConfig } from '@expo/config-types';
import plist, { PlistObject } from '@expo/plist';
import assert from 'assert';
import fs from 'fs';
import xcode, { XCBuildConfiguration } from 'xcode';
import { InfoPlist } from './IosConfig.types';
import { getAllInfoPlistPaths, getAllPBXProjectPaths, getPBXProjectPath } from './Paths';
import { findFirstNativeTarget, getXCBuildConfigurationFromPbxproj } from './Target';
import {
ConfigurationSectionEntry,
getBuildConfigurationsForListId,
resolveXcodeBuildSetting,
} from './utils/Xcodeproj';
import { trimQuotes } from './utils/string';
import { ConfigPlugin, XcodeProject } from '../Plugin.types';
import { withXcodeProject } from '../plugins/ios-plugins';
export const withBundleIdentifier: ConfigPlugin<{ bundleIdentifier?: string }> = (
config,
{ bundleIdentifier }
) => {
return withXcodeProject(config, async (config) => {
const bundleId = bundleIdentifier ?? config.ios?.bundleIdentifier;
// Should never happen.
assert(
bundleId,
'`bundleIdentifier` must be defined in the app config (`ios.bundleIdentifier`) or passed to the plugin `withBundleIdentifier`.'
);
config.modResults = updateBundleIdentifierForPbxprojObject(config.modResults, bundleId, false);
return config;
});
};
function getBundleIdentifier(config: Pick<ExpoConfig, 'ios'>): string | null {
return config.ios?.bundleIdentifier ?? null;
}
/**
* In Turtle v1 we set the bundleIdentifier directly on Info.plist rather
* than in pbxproj
*/
function setBundleIdentifier(config: ExpoConfig, infoPlist: InfoPlist): InfoPlist {
const bundleIdentifier = getBundleIdentifier(config);
if (!bundleIdentifier) {
return infoPlist;
}
return {
...infoPlist,
CFBundleIdentifier: bundleIdentifier,
};
}
/**
* Gets the bundle identifier defined in the Xcode project found in the project directory.
*
* A bundle identifier is stored as a value in XCBuildConfiguration entry.
* Those entries exist for every pair (build target, build configuration).
* Unless target name is passed, the first target defined in the pbxproj is used
* (to keep compatibility with the inaccurate legacy implementation of this function).
* The build configuration is usually 'Release' or 'Debug'. However, it could be any arbitrary string.
* Defaults to 'Release'.
*
* @param {string} projectRoot Path to project root containing the ios directory
* @param {string} targetName Target name
* @param {string} buildConfiguration Build configuration. Defaults to 'Release'.
* @returns {string | null} bundle identifier of the Xcode project or null if the project is not configured
*/
function getBundleIdentifierFromPbxproj(
projectRoot: string,
{
targetName,
buildConfiguration = 'Release',
}: { targetName?: string; buildConfiguration?: string } = {}
): string | null {
let pbxprojPath: string;
try {
pbxprojPath = getPBXProjectPath(projectRoot);
} catch {
return null;
}
const project = xcode.project(pbxprojPath);
project.parseSync();
const xcBuildConfiguration = getXCBuildConfigurationFromPbxproj(project, {
targetName,
buildConfiguration,
});
if (!xcBuildConfiguration) {
return null;
}
return getProductBundleIdentifierFromBuildConfiguration(xcBuildConfiguration);
}
function getProductBundleIdentifierFromBuildConfiguration(
xcBuildConfiguration: XCBuildConfiguration
): string | null {
const bundleIdentifierRaw = xcBuildConfiguration.buildSettings.PRODUCT_BUNDLE_IDENTIFIER;
if (bundleIdentifierRaw) {
const bundleIdentifier = trimQuotes(bundleIdentifierRaw);
return resolveXcodeBuildSetting(
bundleIdentifier,
(setting) => xcBuildConfiguration.buildSettings[setting] as string | undefined
);
} else {
return null;
}
}
/**
* Updates the bundle identifier for a given pbxproj
*
* @param {string} pbxprojPath Path to pbxproj file
* @param {string} bundleIdentifier Bundle identifier to set in the pbxproj
* @param {boolean} [updateProductName=true] Whether to update PRODUCT_NAME
*/
function updateBundleIdentifierForPbxproj(
pbxprojPath: string,
bundleIdentifier: string,
updateProductName: boolean = true
): void {
const project = xcode.project(pbxprojPath);
project.parseSync();
fs.writeFileSync(
pbxprojPath,
updateBundleIdentifierForPbxprojObject(project, bundleIdentifier, updateProductName).writeSync()
);
}
/**
* Updates the bundle identifier for a given pbxproj
*
* @param {string} project pbxproj file
* @param {string} bundleIdentifier Bundle identifier to set in the pbxproj
* @param {boolean} [updateProductName=true] Whether to update PRODUCT_NAME
*/
function updateBundleIdentifierForPbxprojObject(
project: XcodeProject,
bundleIdentifier: string,
updateProductName: boolean = true
) {
const [, nativeTarget] = findFirstNativeTarget(project);
getBuildConfigurationsForListId(project, nativeTarget.buildConfigurationList).forEach(
([, item]: ConfigurationSectionEntry) => {
if (item.buildSettings.PRODUCT_BUNDLE_IDENTIFIER === bundleIdentifier) {
return;
}
item.buildSettings.PRODUCT_BUNDLE_IDENTIFIER = `"${bundleIdentifier}"`;
if (updateProductName) {
const productName = bundleIdentifier.split('.').pop();
if (!productName?.includes('$')) {
item.buildSettings.PRODUCT_NAME = productName;
}
}
}
);
return project;
}
/**
* Updates the bundle identifier for pbx projects inside the ios directory of the given project root
*
* @param {string} projectRoot Path to project root containing the ios directory
* @param {string} bundleIdentifier Desired bundle identifier
* @param {boolean} [updateProductName=true] Whether to update PRODUCT_NAME
*/
function setBundleIdentifierForPbxproj(
projectRoot: string,
bundleIdentifier: string,
updateProductName: boolean = true
): void {
// Get all pbx projects in the ${projectRoot}/ios directory
let pbxprojPaths: string[] = [];
try {
pbxprojPaths = getAllPBXProjectPaths(projectRoot);
} catch {}
for (const pbxprojPath of pbxprojPaths) {
updateBundleIdentifierForPbxproj(pbxprojPath, bundleIdentifier, updateProductName);
}
}
/**
* Reset bundle identifier field in Info.plist to use PRODUCT_BUNDLE_IDENTIFIER, as recommended by Apple.
*/
const defaultBundleId = '$(PRODUCT_BUNDLE_IDENTIFIER)';
function resetAllPlistBundleIdentifiers(projectRoot: string): void {
const infoPlistPaths = getAllInfoPlistPaths(projectRoot);
for (const plistPath of infoPlistPaths) {
resetPlistBundleIdentifier(plistPath);
}
}
function resetPlistBundleIdentifier(plistPath: string): void {
const rawPlist = fs.readFileSync(plistPath, 'utf8');
const plistObject = plist.parse(rawPlist) as PlistObject;
if (plistObject.CFBundleIdentifier) {
if (plistObject.CFBundleIdentifier === defaultBundleId) return;
// attempt to match default Info.plist format
const format = { pretty: true, indent: `\t` };
const xml = plist.build(
{
...plistObject,
CFBundleIdentifier: defaultBundleId,
},
format
);
if (xml !== rawPlist) {
fs.writeFileSync(plistPath, xml);
}
}
}
export {
getBundleIdentifier,
setBundleIdentifier,
getBundleIdentifierFromPbxproj,
updateBundleIdentifierForPbxproj,
setBundleIdentifierForPbxproj,
resetAllPlistBundleIdentifiers,
resetPlistBundleIdentifier,
};
``` | /content/code_sandbox/packages/@expo/config-plugins/src/ios/BundleIdentifier.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 1,727 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url">
<data>
<variable
name="viewModel"
type="com.topjohnwu.magisk.ui.module.ModuleViewModel" />
</data>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/module_list"
gone="@{viewModel.loading}"
app:items="@{viewModel.items}"
app:extraBindings="@{viewModel.extraBindings}"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:orientation="vertical"
android:paddingTop="@dimen/internal_action_bar_size"
android:paddingBottom="@dimen/internal_action_bar_size"
app:fitsSystemWindowsInsets="top|bottom"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_module_md2" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical">
<TextView
goneUnless="@{viewModel.loading}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/loading"
android:textAppearance="@style/AppearanceFoundation.Title"
android:textStyle="bold" />
<ProgressBar
style="@style/WidgetFoundation.ProgressBar.Indeterminate"
goneUnless="@{viewModel.loading}"
android:layout_marginTop="@dimen/l1" />
<TextView
gone="@{viewModel.loading || viewModel.items.size() != 1 }"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/module_empty"
android:textAppearance="@style/AppearanceFoundation.Title"
android:textStyle="bold" />
</LinearLayout>
</FrameLayout>
</layout>
``` | /content/code_sandbox/app/apk/src/main/res/layout/fragment_module_md2.xml | xml | 2016-09-08T12:42:53 | 2024-08-16T19:41:25 | Magisk | topjohnwu/Magisk | 46,424 | 455 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="path_to_url">
<item
android:drawable="@drawable/page_loading_01"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_02"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_03"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_04"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_05"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_06"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_07"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_08"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_09"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_10"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_11"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_12"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_13"
android:duration="100" />
<item
android:drawable="@drawable/page_loading_14"
android:duration="100" />
</animation-list>
``` | /content/code_sandbox/app/src/main/res/drawable/frame_anim2.xml | xml | 2016-08-08T08:52:10 | 2024-08-12T19:24:13 | AndroidAnimationExercise | REBOOTERS/AndroidAnimationExercise | 1,868 | 352 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0"><dict><key>ret</key><integer>0</integer><key>msg</key><string>ok</string><key>minutes</key><array><dict><key>id</key><string>899002-0</string><key>index</key><integer>0</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>570</integer><key>price</key><real>1085.809</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>95000</integer><key>amount</key><real>542120</real></dict><dict><key>id</key><string>899002-1</string><key>index</key><integer>1</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>571</integer><key>price</key><real>1085.513</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>40000</integer><key>amount</key><real>207270</real></dict><dict><key>id</key><string>899002-2</string><key>index</key><integer>2</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>572</integer><key>price</key><real>1085.403</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>79000</integer><key>amount</key><real>299920</real></dict><dict><key>id</key><string>899002-3</string><key>index</key><integer>3</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>573</integer><key>price</key><real>1085.357</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>103000</integer><key>amount</key><real>986110</real></dict><dict><key>id</key><string>899002-4</string><key>index</key><integer>4</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>574</integer><key>price</key><real>1085.431</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>84000</integer><key>amount</key><real>619570</real></dict><dict><key>id</key><string>899002-5</string><key>index</key><integer>5</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>575</integer><key>price</key><real>1085.41</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>79000</integer><key>amount</key><real>849640</real></dict><dict><key>id</key><string>899002-6</string><key>index</key><integer>6</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>576</integer><key>price</key><real>1085.367</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>96000</integer><key>amount</key><real>1114400</real></dict><dict><key>id</key><string>899002-7</string><key>index</key><integer>7</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>577</integer><key>price</key><real>1085.473</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>36000</integer><key>amount</key><real>285610</real></dict><dict><key>id</key><string>899002-8</string><key>index</key><integer>8</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>578</integer><key>price</key><real>1085.32</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>54000</integer><key>amount</key><real>356090</real></dict><dict><key>id</key><string>899002-9</string><key>index</key><integer>9</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>579</integer><key>price</key><real>1085.18</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>143000</integer><key>amount</key><real>1037280</real></dict><dict><key>id</key><string>899002-10</string><key>index</key><integer>10</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>580</integer><key>price</key><real>1085.092</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>51000</integer><key>amount</key><real>326110</real></dict><dict><key>id</key><string>899002-11</string><key>index</key><integer>11</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>581</integer><key>price</key><real>1085.163</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>223000</integer><key>amount</key><real>1530210</real></dict><dict><key>id</key><string>899002-12</string><key>index</key><integer>12</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>582</integer><key>price</key><real>1085.148</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>185000</integer><key>amount</key><real>1292270</real></dict><dict><key>id</key><string>899002-13</string><key>index</key><integer>13</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>583</integer><key>price</key><real>1085.195</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>208000</integer><key>amount</key><real>1267180</real></dict><dict><key>id</key><string>899002-14</string><key>index</key><integer>14</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>584</integer><key>price</key><real>1085.256</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>82000</integer><key>amount</key><real>402620</real></dict><dict><key>id</key><string>899002-15</string><key>index</key><integer>15</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>585</integer><key>price</key><real>1085.377</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>50000</integer><key>amount</key><real>376010</real></dict><dict><key>id</key><string>899002-16</string><key>index</key><integer>16</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>586</integer><key>price</key><real>1085.324</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>180000</integer><key>amount</key><real>705170</real></dict><dict><key>id</key><string>899002-17</string><key>index</key><integer>17</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>587</integer><key>price</key><real>1085.354</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>133000</integer><key>amount</key><real>924130</real></dict><dict><key>id</key><string>899002-18</string><key>index</key><integer>18</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>588</integer><key>price</key><real>1085.305</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>775000</integer><key>amount</key><real>2168220</real></dict><dict><key>id</key><string>899002-19</string><key>index</key><integer>19</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>589</integer><key>price</key><real>1085.332</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>220000</integer><key>amount</key><real>991850</real></dict><dict><key>id</key><string>899002-20</string><key>index</key><integer>20</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>590</integer><key>price</key><real>1085.22</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>268000</integer><key>amount</key><real>2001450</real></dict><dict><key>id</key><string>899002-21</string><key>index</key><integer>21</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>591</integer><key>price</key><real>1085.034</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>202000</integer><key>amount</key><real>945380</real></dict><dict><key>id</key><string>899002-22</string><key>index</key><integer>22</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>592</integer><key>price</key><real>1085.091</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>581000</integer><key>amount</key><real>1797410</real></dict><dict><key>id</key><string>899002-23</string><key>index</key><integer>23</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>593</integer><key>price</key><real>1085.123</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>393000</integer><key>amount</key><real>894490</real></dict><dict><key>id</key><string>899002-24</string><key>index</key><integer>24</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>594</integer><key>price</key><real>1085.179</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>320000</integer><key>amount</key><real>1433350</real></dict><dict><key>id</key><string>899002-25</string><key>index</key><integer>25</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>595</integer><key>price</key><real>1085.19</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>292000</integer><key>amount</key><real>1499100</real></dict><dict><key>id</key><string>899002-26</string><key>index</key><integer>26</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>596</integer><key>price</key><real>1085.136</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>117000</integer><key>amount</key><real>817090</real></dict><dict><key>id</key><string>899002-27</string><key>index</key><integer>27</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>597</integer><key>price</key><real>1085.204</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>94000</integer><key>amount</key><real>479110</real></dict><dict><key>id</key><string>899002-28</string><key>index</key><integer>28</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>598</integer><key>price</key><real>1085.163</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>125000</integer><key>amount</key><real>518690</real></dict><dict><key>id</key><string>899002-29</string><key>index</key><integer>29</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>599</integer><key>price</key><real>1085.068</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>192000</integer><key>amount</key><real>1226420</real></dict><dict><key>id</key><string>899002-30</string><key>index</key><integer>30</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>600</integer><key>price</key><real>1085.012</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>134000</integer><key>amount</key><real>970630</real></dict><dict><key>id</key><string>899002-31</string><key>index</key><integer>31</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>601</integer><key>price</key><real>1084.851</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>116000</integer><key>amount</key><real>568550</real></dict><dict><key>id</key><string>899002-32</string><key>index</key><integer>32</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>602</integer><key>price</key><real>1084.917</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>36000</integer><key>amount</key><real>370520</real></dict><dict><key>id</key><string>899002-33</string><key>index</key><integer>33</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>603</integer><key>price</key><real>1084.914</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>193000</integer><key>amount</key><real>1355970</real></dict><dict><key>id</key><string>899002-34</string><key>index</key><integer>34</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>604</integer><key>price</key><real>1085.008</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>107000</integer><key>amount</key><real>1038390</real></dict><dict><key>id</key><string>899002-35</string><key>index</key><integer>35</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>605</integer><key>price</key><real>1084.912</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>365000</integer><key>amount</key><real>1311630</real></dict><dict><key>id</key><string>899002-36</string><key>index</key><integer>36</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>606</integer><key>price</key><real>1084.853</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>92000</integer><key>amount</key><real>729320</real></dict><dict><key>id</key><string>899002-37</string><key>index</key><integer>37</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>607</integer><key>price</key><real>1084.791</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>194600</integer><key>amount</key><real>1282405</real></dict><dict><key>id</key><string>899002-38</string><key>index</key><integer>38</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>608</integer><key>price</key><real>1084.906</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>193000</integer><key>amount</key><real>1437950</real></dict><dict><key>id</key><string>899002-39</string><key>index</key><integer>39</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>609</integer><key>price</key><real>1084.849</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>124000</integer><key>amount</key><real>768650</real></dict><dict><key>id</key><string>899002-40</string><key>index</key><integer>40</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>610</integer><key>price</key><real>1084.836</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>177000</integer><key>amount</key><real>747350</real></dict><dict><key>id</key><string>899002-41</string><key>index</key><integer>41</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>611</integer><key>price</key><real>1084.791</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>102000</integer><key>amount</key><real>658460</real></dict><dict><key>id</key><string>899002-42</string><key>index</key><integer>42</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>612</integer><key>price</key><real>1084.936</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>170000</integer><key>amount</key><real>1343130</real></dict><dict><key>id</key><string>899002-43</string><key>index</key><integer>43</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>613</integer><key>price</key><real>1084.872</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>61000</integer><key>amount</key><real>1223740</real></dict><dict><key>id</key><string>899002-44</string><key>index</key><integer>44</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>614</integer><key>price</key><real>1084.832</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>165000</integer><key>amount</key><real>1239920</real></dict><dict><key>id</key><string>899002-45</string><key>index</key><integer>45</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>615</integer><key>price</key><real>1084.834</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>39000</integer><key>amount</key><real>402260</real></dict><dict><key>id</key><string>899002-46</string><key>index</key><integer>46</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>616</integer><key>price</key><real>1084.763</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>262000</integer><key>amount</key><real>958330</real></dict><dict><key>id</key><string>899002-47</string><key>index</key><integer>47</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>617</integer><key>price</key><real>1084.726</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>355000</integer><key>amount</key><real>956120</real></dict><dict><key>id</key><string>899002-48</string><key>index</key><integer>48</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>618</integer><key>price</key><real>1084.645</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>486000</integer><key>amount</key><real>1807760</real></dict><dict><key>id</key><string>899002-49</string><key>index</key><integer>49</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>619</integer><key>price</key><real>1084.601</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>262000</integer><key>amount</key><real>1290580</real></dict><dict><key>id</key><string>899002-50</string><key>index</key><integer>50</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>620</integer><key>price</key><real>1084.556</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>31000</integer><key>amount</key><real>184440</real></dict><dict><key>id</key><string>899002-51</string><key>index</key><integer>51</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>621</integer><key>price</key><real>1084.609</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>137000</integer><key>amount</key><real>1090450</real></dict><dict><key>id</key><string>899002-52</string><key>index</key><integer>52</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>622</integer><key>price</key><real>1084.566</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>226000</integer><key>amount</key><real>2006910</real></dict><dict><key>id</key><string>899002-53</string><key>index</key><integer>53</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>623</integer><key>price</key><real>1084.496</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>180000</integer><key>amount</key><real>1449400</real></dict><dict><key>id</key><string>899002-54</string><key>index</key><integer>54</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>624</integer><key>price</key><real>1084.438</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>196000</integer><key>amount</key><real>1280690</real></dict><dict><key>id</key><string>899002-55</string><key>index</key><integer>55</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>625</integer><key>price</key><real>1084.276</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>121000</integer><key>amount</key><real>1116680</real></dict><dict><key>id</key><string>899002-56</string><key>index</key><integer>56</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>626</integer><key>price</key><real>1084.329</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>102000</integer><key>amount</key><real>967430</real></dict><dict><key>id</key><string>899002-57</string><key>index</key><integer>57</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>627</integer><key>price</key><real>1084.229</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>145000</integer><key>amount</key><real>1230800</real></dict><dict><key>id</key><string>899002-58</string><key>index</key><integer>58</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>628</integer><key>price</key><real>1084.174</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>55000</integer><key>amount</key><real>623050</real></dict><dict><key>id</key><string>899002-59</string><key>index</key><integer>59</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>629</integer><key>price</key><real>1084.266</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>120000</integer><key>amount</key><real>1201100</real></dict><dict><key>id</key><string>899002-60</string><key>index</key><integer>60</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>630</integer><key>price</key><real>1084.306</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>47000</integer><key>amount</key><real>535550</real></dict><dict><key>id</key><string>899002-61</string><key>index</key><integer>61</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>631</integer><key>price</key><real>1084.387</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>144000</integer><key>amount</key><real>1410180</real></dict><dict><key>id</key><string>899002-62</string><key>index</key><integer>62</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>632</integer><key>price</key><real>1084.4</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>125000</integer><key>amount</key><real>701720</real></dict><dict><key>id</key><string>899002-63</string><key>index</key><integer>63</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>633</integer><key>price</key><real>1084.496</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>280000</integer><key>amount</key><real>1069630</real></dict><dict><key>id</key><string>899002-64</string><key>index</key><integer>64</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>634</integer><key>price</key><real>1084.533</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>153690</integer><key>amount</key><real>1251398</real></dict><dict><key>id</key><string>899002-65</string><key>index</key><integer>65</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>635</integer><key>price</key><real>1084.479</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>699000</integer><key>amount</key><real>6247270</real></dict><dict><key>id</key><string>899002-66</string><key>index</key><integer>66</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>636</integer><key>price</key><real>1084.227</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>306000</integer><key>amount</key><real>2567500</real></dict><dict><key>id</key><string>899002-67</string><key>index</key><integer>67</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>637</integer><key>price</key><real>1084.203</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>133000</integer><key>amount</key><real>873230</real></dict><dict><key>id</key><string>899002-68</string><key>index</key><integer>68</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>638</integer><key>price</key><real>1084.169</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>67000</integer><key>amount</key><real>415730</real></dict><dict><key>id</key><string>899002-69</string><key>index</key><integer>69</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>639</integer><key>price</key><real>1084.239</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>68000</integer><key>amount</key><real>658040</real></dict><dict><key>id</key><string>899002-70</string><key>index</key><integer>70</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>640</integer><key>price</key><real>1084.191</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>17000</integer><key>amount</key><real>212710</real></dict><dict><key>id</key><string>899002-71</string><key>index</key><integer>71</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>641</integer><key>price</key><real>1084.172</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>44000</integer><key>amount</key><real>307250</real></dict><dict><key>id</key><string>899002-72</string><key>index</key><integer>72</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>642</integer><key>price</key><real>1084.139</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>63000</integer><key>amount</key><real>368750</real></dict><dict><key>id</key><string>899002-73</string><key>index</key><integer>73</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>643</integer><key>price</key><real>1084.079</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>114000</integer><key>amount</key><real>964700</real></dict><dict><key>id</key><string>899002-74</string><key>index</key><integer>74</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>644</integer><key>price</key><real>1084.085</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>296000</integer><key>amount</key><real>2142680</real></dict><dict><key>id</key><string>899002-75</string><key>index</key><integer>75</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>645</integer><key>price</key><real>1084.094</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>250000</integer><key>amount</key><real>1169740</real></dict><dict><key>id</key><string>899002-76</string><key>index</key><integer>76</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>646</integer><key>price</key><real>1084.023</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>174000</integer><key>amount</key><real>1277430</real></dict><dict><key>id</key><string>899002-77</string><key>index</key><integer>77</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>647</integer><key>price</key><real>1083.902</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>379946</integer><key>amount</key><real>2638634</real></dict><dict><key>id</key><string>899002-78</string><key>index</key><integer>78</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>648</integer><key>price</key><real>1083.807</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>186000</integer><key>amount</key><real>1200440</real></dict><dict><key>id</key><string>899002-79</string><key>index</key><integer>79</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>649</integer><key>price</key><real>1083.842</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>191000</integer><key>amount</key><real>1281530</real></dict><dict><key>id</key><string>899002-80</string><key>index</key><integer>80</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>650</integer><key>price</key><real>1083.89</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>248000</integer><key>amount</key><real>1446520</real></dict><dict><key>id</key><string>899002-81</string><key>index</key><integer>81</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>651</integer><key>price</key><real>1083.859</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>155000</integer><key>amount</key><real>802870</real></dict><dict><key>id</key><string>899002-82</string><key>index</key><integer>82</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>652</integer><key>price</key><real>1083.763</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>145000</integer><key>amount</key><real>928710</real></dict><dict><key>id</key><string>899002-83</string><key>index</key><integer>83</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>653</integer><key>price</key><real>1083.692</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>131000</integer><key>amount</key><real>870200</real></dict><dict><key>id</key><string>899002-84</string><key>index</key><integer>84</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>654</integer><key>price</key><real>1083.826</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>78000</integer><key>amount</key><real>485480</real></dict><dict><key>id</key><string>899002-85</string><key>index</key><integer>85</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>655</integer><key>price</key><real>1083.769</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>124000</integer><key>amount</key><real>782020</real></dict><dict><key>id</key><string>899002-86</string><key>index</key><integer>86</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>656</integer><key>price</key><real>1083.736</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>153000</integer><key>amount</key><real>817380</real></dict><dict><key>id</key><string>899002-87</string><key>index</key><integer>87</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>657</integer><key>price</key><real>1083.783</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>139000</integer><key>amount</key><real>828460</real></dict><dict><key>id</key><string>899002-88</string><key>index</key><integer>88</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>658</integer><key>price</key><real>1083.702</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>119000</integer><key>amount</key><real>790340</real></dict><dict><key>id</key><string>899002-89</string><key>index</key><integer>89</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>659</integer><key>price</key><real>1083.796</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>83000</integer><key>amount</key><real>666210</real></dict><dict><key>id</key><string>899002-90</string><key>index</key><integer>90</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>660</integer><key>price</key><real>1083.775</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>198000</integer><key>amount</key><real>996050</real></dict><dict><key>id</key><string>899002-91</string><key>index</key><integer>91</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>661</integer><key>price</key><real>1083.792</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>231000</integer><key>amount</key><real>1456140</real></dict><dict><key>id</key><string>899002-92</string><key>index</key><integer>92</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>662</integer><key>price</key><real>1083.706</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>1057500</integer><key>amount</key><real>6342330</real></dict><dict><key>id</key><string>899002-93</string><key>index</key><integer>93</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>663</integer><key>price</key><real>1083.681</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>253000</integer><key>amount</key><real>1540370</real></dict><dict><key>id</key><string>899002-94</string><key>index</key><integer>94</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>664</integer><key>price</key><real>1083.69</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>170000</integer><key>amount</key><real>994790</real></dict><dict><key>id</key><string>899002-95</string><key>index</key><integer>95</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>665</integer><key>price</key><real>1083.804</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>69000</integer><key>amount</key><real>513570</real></dict><dict><key>id</key><string>899002-96</string><key>index</key><integer>96</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>666</integer><key>price</key><real>1083.839</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>94000</integer><key>amount</key><real>533150</real></dict><dict><key>id</key><string>899002-97</string><key>index</key><integer>97</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>667</integer><key>price</key><real>1083.657</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>126000</integer><key>amount</key><real>1011870</real></dict><dict><key>id</key><string>899002-98</string><key>index</key><integer>98</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>668</integer><key>price</key><real>1083.681</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>169000</integer><key>amount</key><real>1869250</real></dict><dict><key>id</key><string>899002-99</string><key>index</key><integer>99</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>669</integer><key>price</key><real>1083.682</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>165000</integer><key>amount</key><real>1869390</real></dict><dict><key>id</key><string>899002-100</string><key>index</key><integer>100</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>670</integer><key>price</key><real>1083.657</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>25000</integer><key>amount</key><real>161430</real></dict><dict><key>id</key><string>899002-101</string><key>index</key><integer>101</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>671</integer><key>price</key><real>1083.706</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>240000</integer><key>amount</key><real>860380</real></dict><dict><key>id</key><string>899002-102</string><key>index</key><integer>102</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>672</integer><key>price</key><real>1083.728</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>109000</integer><key>amount</key><real>657830</real></dict><dict><key>id</key><string>899002-103</string><key>index</key><integer>103</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>673</integer><key>price</key><real>1083.617</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>156000</integer><key>amount</key><real>616410</real></dict><dict><key>id</key><string>899002-104</string><key>index</key><integer>104</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>674</integer><key>price</key><real>1083.647</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>78000</integer><key>amount</key><real>756910</real></dict><dict><key>id</key><string>899002-105</string><key>index</key><integer>105</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>675</integer><key>price</key><real>1083.66</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>89000</integer><key>amount</key><real>550460</real></dict><dict><key>id</key><string>899002-106</string><key>index</key><integer>106</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>676</integer><key>price</key><real>1083.661</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>80000</integer><key>amount</key><real>450850</real></dict><dict><key>id</key><string>899002-107</string><key>index</key><integer>107</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>677</integer><key>price</key><real>1083.646</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>481580</integer><key>amount</key><real>1834724</real></dict><dict><key>id</key><string>899002-108</string><key>index</key><integer>108</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>678</integer><key>price</key><real>1083.761</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>102000</integer><key>amount</key><real>613410</real></dict><dict><key>id</key><string>899002-109</string><key>index</key><integer>109</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>679</integer><key>price</key><real>1083.781</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>111250</integer><key>amount</key><real>983247</real></dict><dict><key>id</key><string>899002-110</string><key>index</key><integer>110</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>680</integer><key>price</key><real>1083.792</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>148000</integer><key>amount</key><real>899860</real></dict><dict><key>id</key><string>899002-111</string><key>index</key><integer>111</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>681</integer><key>price</key><real>1083.84</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>130000</integer><key>amount</key><real>826860</real></dict><dict><key>id</key><string>899002-112</string><key>index</key><integer>112</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>682</integer><key>price</key><real>1083.815</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>157440</integer><key>amount</key><real>1102029</real></dict><dict><key>id</key><string>899002-113</string><key>index</key><integer>113</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>683</integer><key>price</key><real>1083.783</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>86000</integer><key>amount</key><real>433630</real></dict><dict><key>id</key><string>899002-114</string><key>index</key><integer>114</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>684</integer><key>price</key><real>1083.602</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>136000</integer><key>amount</key><real>792470</real></dict><dict><key>id</key><string>899002-115</string><key>index</key><integer>115</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>685</integer><key>price</key><real>1083.681</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>143000</integer><key>amount</key><real>956600</real></dict><dict><key>id</key><string>899002-116</string><key>index</key><integer>116</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>686</integer><key>price</key><real>1083.522</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>216000</integer><key>amount</key><real>842880</real></dict><dict><key>id</key><string>899002-117</string><key>index</key><integer>117</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>687</integer><key>price</key><real>1083.695</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>72000</integer><key>amount</key><real>846010</real></dict><dict><key>id</key><string>899002-118</string><key>index</key><integer>118</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>688</integer><key>price</key><real>1083.682</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>36000</integer><key>amount</key><real>337310</real></dict><dict><key>id</key><string>899002-119</string><key>index</key><integer>119</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>689</integer><key>price</key><real>1083.571</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>136000</integer><key>amount</key><real>628460</real></dict><dict><key>id</key><string>899002-120</string><key>index</key><integer>120</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>780</integer><key>price</key><real>1083.778</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>378400</integer><key>amount</key><real>2348480</real></dict><dict><key>id</key><string>899002-121</string><key>index</key><integer>121</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>781</integer><key>price</key><real>1083.696</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>152000</integer><key>amount</key><real>1483040</real></dict><dict><key>id</key><string>899002-122</string><key>index</key><integer>122</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>782</integer><key>price</key><real>1083.594</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>90000</integer><key>amount</key><real>614530</real></dict><dict><key>id</key><string>899002-123</string><key>index</key><integer>123</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>783</integer><key>price</key><real>1083.613</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>91000</integer><key>amount</key><real>667200</real></dict><dict><key>id</key><string>899002-124</string><key>index</key><integer>124</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>784</integer><key>price</key><real>1083.61</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>57000</integer><key>amount</key><real>252610</real></dict><dict><key>id</key><string>899002-125</string><key>index</key><integer>125</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>785</integer><key>price</key><real>1083.51</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>239000</integer><key>amount</key><real>1713390</real></dict><dict><key>id</key><string>899002-126</string><key>index</key><integer>126</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>786</integer><key>price</key><real>1083.551</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>40336</integer><key>amount</key><real>336148</real></dict><dict><key>id</key><string>899002-127</string><key>index</key><integer>127</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>787</integer><key>price</key><real>1083.499</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>124000</integer><key>amount</key><real>925670</real></dict><dict><key>id</key><string>899002-128</string><key>index</key><integer>128</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>788</integer><key>price</key><real>1083.511</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>187000</integer><key>amount</key><real>538300</real></dict><dict><key>id</key><string>899002-129</string><key>index</key><integer>129</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>789</integer><key>price</key><real>1083.521</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>86000</integer><key>amount</key><real>827570</real></dict><dict><key>id</key><string>899002-130</string><key>index</key><integer>130</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>790</integer><key>price</key><real>1083.551</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>216000</integer><key>amount</key><real>2267070</real></dict><dict><key>id</key><string>899002-131</string><key>index</key><integer>131</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>791</integer><key>price</key><real>1083.55</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>263000</integer><key>amount</key><real>1786030</real></dict><dict><key>id</key><string>899002-132</string><key>index</key><integer>132</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>792</integer><key>price</key><real>1083.6</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>212000</integer><key>amount</key><real>1706560</real></dict><dict><key>id</key><string>899002-133</string><key>index</key><integer>133</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>793</integer><key>price</key><real>1083.509</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>122500</integer><key>amount</key><real>1005555</real></dict><dict><key>id</key><string>899002-134</string><key>index</key><integer>134</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>794</integer><key>price</key><real>1083.554</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>92000</integer><key>amount</key><real>561810</real></dict><dict><key>id</key><string>899002-135</string><key>index</key><integer>135</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>795</integer><key>price</key><real>1083.503</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>110000</integer><key>amount</key><real>1018130</real></dict><dict><key>id</key><string>899002-136</string><key>index</key><integer>136</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>796</integer><key>price</key><real>1083.518</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>103000</integer><key>amount</key><real>685760</real></dict><dict><key>id</key><string>899002-137</string><key>index</key><integer>137</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>797</integer><key>price</key><real>1083.474</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>122400</integer><key>amount</key><real>663924</real></dict><dict><key>id</key><string>899002-138</string><key>index</key><integer>138</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>798</integer><key>price</key><real>1083.49</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>217400</integer><key>amount</key><real>1828070</real></dict><dict><key>id</key><string>899002-139</string><key>index</key><integer>139</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>799</integer><key>price</key><real>1083.438</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>137000</integer><key>amount</key><real>1680630</real></dict><dict><key>id</key><string>899002-140</string><key>index</key><integer>140</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>800</integer><key>price</key><real>1083.471</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>953000</integer><key>amount</key><real>15168940</real></dict><dict><key>id</key><string>899002-141</string><key>index</key><integer>141</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>801</integer><key>price</key><real>1083.451</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>130000</integer><key>amount</key><real>688900</real></dict><dict><key>id</key><string>899002-142</string><key>index</key><integer>142</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>802</integer><key>price</key><real>1083.524</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>95000</integer><key>amount</key><real>767700</real></dict><dict><key>id</key><string>899002-143</string><key>index</key><integer>143</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>803</integer><key>price</key><real>1083.605</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>95000</integer><key>amount</key><real>515560</real></dict><dict><key>id</key><string>899002-144</string><key>index</key><integer>144</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>804</integer><key>price</key><real>1083.659</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>148000</integer><key>amount</key><real>1222930</real></dict><dict><key>id</key><string>899002-145</string><key>index</key><integer>145</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>805</integer><key>price</key><real>1083.66</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>121000</integer><key>amount</key><real>692990</real></dict><dict><key>id</key><string>899002-146</string><key>index</key><integer>146</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>806</integer><key>price</key><real>1083.65</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>72000</integer><key>amount</key><real>250350</real></dict><dict><key>id</key><string>899002-147</string><key>index</key><integer>147</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>807</integer><key>price</key><real>1083.684</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>90000</integer><key>amount</key><real>289050</real></dict><dict><key>id</key><string>899002-148</string><key>index</key><integer>148</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>808</integer><key>price</key><real>1083.632</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>67800</integer><key>amount</key><real>711540</real></dict><dict><key>id</key><string>899002-149</string><key>index</key><integer>149</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>809</integer><key>price</key><real>1083.672</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>135000</integer><key>amount</key><real>739820</real></dict><dict><key>id</key><string>899002-150</string><key>index</key><integer>150</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>810</integer><key>price</key><real>1083.687</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>184000</integer><key>amount</key><real>954730</real></dict><dict><key>id</key><string>899002-151</string><key>index</key><integer>151</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>811</integer><key>price</key><real>1083.718</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>158500</integer><key>amount</key><real>810860</real></dict><dict><key>id</key><string>899002-152</string><key>index</key><integer>152</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>812</integer><key>price</key><real>1083.703</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>304000</integer><key>amount</key><real>872510</real></dict><dict><key>id</key><string>899002-153</string><key>index</key><integer>153</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>813</integer><key>price</key><real>1083.683</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>163000</integer><key>amount</key><real>1255070</real></dict><dict><key>id</key><string>899002-154</string><key>index</key><integer>154</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>814</integer><key>price</key><real>1083.685</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>135000</integer><key>amount</key><real>816230</real></dict><dict><key>id</key><string>899002-155</string><key>index</key><integer>155</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>815</integer><key>price</key><real>1083.803</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>58000</integer><key>amount</key><real>326860</real></dict><dict><key>id</key><string>899002-156</string><key>index</key><integer>156</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>816</integer><key>price</key><real>1083.69</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>186000</integer><key>amount</key><real>885550</real></dict><dict><key>id</key><string>899002-157</string><key>index</key><integer>157</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>817</integer><key>price</key><real>1083.749</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>139000</integer><key>amount</key><real>1803240</real></dict><dict><key>id</key><string>899002-158</string><key>index</key><integer>158</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>818</integer><key>price</key><real>1083.799</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>190000</integer><key>amount</key><real>1037780</real></dict><dict><key>id</key><string>899002-159</string><key>index</key><integer>159</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>819</integer><key>price</key><real>1083.813</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>103000</integer><key>amount</key><real>465570</real></dict><dict><key>id</key><string>899002-160</string><key>index</key><integer>160</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>820</integer><key>price</key><real>1083.782</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>154000</integer><key>amount</key><real>964050</real></dict><dict><key>id</key><string>899002-161</string><key>index</key><integer>161</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>821</integer><key>price</key><real>1083.713</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>187500</integer><key>amount</key><real>1318015</real></dict><dict><key>id</key><string>899002-162</string><key>index</key><integer>162</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>822</integer><key>price</key><real>1083.591</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>97000</integer><key>amount</key><real>565780</real></dict><dict><key>id</key><string>899002-163</string><key>index</key><integer>163</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>823</integer><key>price</key><real>1083.626</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>161000</integer><key>amount</key><real>1163110</real></dict><dict><key>id</key><string>899002-164</string><key>index</key><integer>164</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>824</integer><key>price</key><real>1083.491</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>141000</integer><key>amount</key><real>2471220</real></dict><dict><key>id</key><string>899002-165</string><key>index</key><integer>165</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>825</integer><key>price</key><real>1083.515</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>123000</integer><key>amount</key><real>1064200</real></dict><dict><key>id</key><string>899002-166</string><key>index</key><integer>166</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>826</integer><key>price</key><real>1083.497</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>215000</integer><key>amount</key><real>1324930</real></dict><dict><key>id</key><string>899002-167</string><key>index</key><integer>167</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>827</integer><key>price</key><real>1083.464</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>289000</integer><key>amount</key><real>3064150</real></dict><dict><key>id</key><string>899002-168</string><key>index</key><integer>168</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>828</integer><key>price</key><real>1083.478</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>144000</integer><key>amount</key><real>949240</real></dict><dict><key>id</key><string>899002-169</string><key>index</key><integer>169</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>829</integer><key>price</key><real>1083.499</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>148000</integer><key>amount</key><real>934600</real></dict><dict><key>id</key><string>899002-170</string><key>index</key><integer>170</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>830</integer><key>price</key><real>1083.53</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>112000</integer><key>amount</key><real>816680</real></dict><dict><key>id</key><string>899002-171</string><key>index</key><integer>171</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>831</integer><key>price</key><real>1083.588</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>83800</integer><key>amount</key><real>1154680</real></dict><dict><key>id</key><string>899002-172</string><key>index</key><integer>172</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>832</integer><key>price</key><real>1083.57</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>99000</integer><key>amount</key><real>360810</real></dict><dict><key>id</key><string>899002-173</string><key>index</key><integer>173</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>833</integer><key>price</key><real>1083.662</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>194000</integer><key>amount</key><real>647130</real></dict><dict><key>id</key><string>899002-174</string><key>index</key><integer>174</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>834</integer><key>price</key><real>1083.663</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>55000</integer><key>amount</key><real>355970</real></dict><dict><key>id</key><string>899002-175</string><key>index</key><integer>175</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>835</integer><key>price</key><real>1083.679</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>91000</integer><key>amount</key><real>601490</real></dict><dict><key>id</key><string>899002-176</string><key>index</key><integer>176</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>836</integer><key>price</key><real>1083.579</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>28000</integer><key>amount</key><real>301510</real></dict><dict><key>id</key><string>899002-177</string><key>index</key><integer>177</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>837</integer><key>price</key><real>1083.562</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>64000</integer><key>amount</key><real>418240</real></dict><dict><key>id</key><string>899002-178</string><key>index</key><integer>178</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>838</integer><key>price</key><real>1083.537</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>63000</integer><key>amount</key><real>587280</real></dict><dict><key>id</key><string>899002-179</string><key>index</key><integer>179</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>839</integer><key>price</key><real>1083.695</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>100000</integer><key>amount</key><real>418570</real></dict><dict><key>id</key><string>899002-180</string><key>index</key><integer>180</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>840</integer><key>price</key><real>1083.715</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>111000</integer><key>amount</key><real>1466670</real></dict><dict><key>id</key><string>899002-181</string><key>index</key><integer>181</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>841</integer><key>price</key><real>1083.609</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>88000</integer><key>amount</key><real>446370</real></dict><dict><key>id</key><string>899002-182</string><key>index</key><integer>182</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>842</integer><key>price</key><real>1083.789</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>98000</integer><key>amount</key><real>1395190</real></dict><dict><key>id</key><string>899002-183</string><key>index</key><integer>183</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>843</integer><key>price</key><real>1083.867</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>86000</integer><key>amount</key><real>897540</real></dict><dict><key>id</key><string>899002-184</string><key>index</key><integer>184</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>844</integer><key>price</key><real>1083.742</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>128000</integer><key>amount</key><real>911880</real></dict><dict><key>id</key><string>899002-185</string><key>index</key><integer>185</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>845</integer><key>price</key><real>1083.764</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>199000</integer><key>amount</key><real>1261890</real></dict><dict><key>id</key><string>899002-186</string><key>index</key><integer>186</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>846</integer><key>price</key><real>1083.749</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>291000</integer><key>amount</key><real>1519610</real></dict><dict><key>id</key><string>899002-187</string><key>index</key><integer>187</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>847</integer><key>price</key><real>1083.754</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>577000</integer><key>amount</key><real>2523240</real></dict><dict><key>id</key><string>899002-188</string><key>index</key><integer>188</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>848</integer><key>price</key><real>1083.694</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>183000</integer><key>amount</key><real>956840</real></dict><dict><key>id</key><string>899002-189</string><key>index</key><integer>189</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>849</integer><key>price</key><real>1083.728</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>108000</integer><key>amount</key><real>588860</real></dict><dict><key>id</key><string>899002-190</string><key>index</key><integer>190</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>850</integer><key>price</key><real>1083.689</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>156000</integer><key>amount</key><real>859430</real></dict><dict><key>id</key><string>899002-191</string><key>index</key><integer>191</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>851</integer><key>price</key><real>1083.705</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>138000</integer><key>amount</key><real>1242720</real></dict><dict><key>id</key><string>899002-192</string><key>index</key><integer>192</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>852</integer><key>price</key><real>1083.534</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>571000</integer><key>amount</key><real>9521920</real></dict><dict><key>id</key><string>899002-193</string><key>index</key><integer>193</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>853</integer><key>price</key><real>1083.398</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>38000</integer><key>amount</key><real>468610</real></dict><dict><key>id</key><string>899002-194</string><key>index</key><integer>194</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>854</integer><key>price</key><real>1083.445</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>449000</integer><key>amount</key><real>9233310</real></dict><dict><key>id</key><string>899002-195</string><key>index</key><integer>195</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>855</integer><key>price</key><real>1083.406</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>194000</integer><key>amount</key><real>1032860</real></dict><dict><key>id</key><string>899002-196</string><key>index</key><integer>196</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>856</integer><key>price</key><real>1083.471</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>328000</integer><key>amount</key><real>1529280</real></dict><dict><key>id</key><string>899002-197</string><key>index</key><integer>197</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>857</integer><key>price</key><real>1083.523</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>426000</integer><key>amount</key><real>1842440</real></dict><dict><key>id</key><string>899002-198</string><key>index</key><integer>198</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>858</integer><key>price</key><real>1083.359</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>115000</integer><key>amount</key><real>734520</real></dict><dict><key>id</key><string>899002-199</string><key>index</key><integer>199</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>859</integer><key>price</key><real>1083.259</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>147000</integer><key>amount</key><real>950360</real></dict><dict><key>id</key><string>899002-200</string><key>index</key><integer>200</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>860</integer><key>price</key><real>1083.164</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>181078</integer><key>amount</key><real>1148554</real></dict><dict><key>id</key><string>899002-201</string><key>index</key><integer>201</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>861</integer><key>price</key><real>1083.327</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>110600</integer><key>amount</key><real>520670</real></dict><dict><key>id</key><string>899002-202</string><key>index</key><integer>202</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>862</integer><key>price</key><real>1083.401</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>157000</integer><key>amount</key><real>1058750</real></dict><dict><key>id</key><string>899002-203</string><key>index</key><integer>203</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>863</integer><key>price</key><real>1083.355</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>326000</integer><key>amount</key><real>841570</real></dict><dict><key>id</key><string>899002-204</string><key>index</key><integer>204</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>864</integer><key>price</key><real>1083.265</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>112000</integer><key>amount</key><real>485320</real></dict><dict><key>id</key><string>899002-205</string><key>index</key><integer>205</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>865</integer><key>price</key><real>1083.044</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>967000</integer><key>amount</key><real>2724320</real></dict><dict><key>id</key><string>899002-206</string><key>index</key><integer>206</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>866</integer><key>price</key><real>1082.958</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>1100000</integer><key>amount</key><real>3037660</real></dict><dict><key>id</key><string>899002-207</string><key>index</key><integer>207</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>867</integer><key>price</key><real>1083.007</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>739000</integer><key>amount</key><real>2234910</real></dict><dict><key>id</key><string>899002-208</string><key>index</key><integer>208</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>868</integer><key>price</key><real>1082.84</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>525800</integer><key>amount</key><real>2307800</real></dict><dict><key>id</key><string>899002-209</string><key>index</key><integer>209</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>869</integer><key>price</key><real>1082.808</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>684000</integer><key>amount</key><real>2221560</real></dict><dict><key>id</key><string>899002-210</string><key>index</key><integer>210</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>870</integer><key>price</key><real>1082.737</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>216000</integer><key>amount</key><real>1086480</real></dict><dict><key>id</key><string>899002-211</string><key>index</key><integer>211</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>871</integer><key>price</key><real>1082.711</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>184000</integer><key>amount</key><real>697010</real></dict><dict><key>id</key><string>899002-212</string><key>index</key><integer>212</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>872</integer><key>price</key><real>1082.742</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>207000</integer><key>amount</key><real>805310</real></dict><dict><key>id</key><string>899002-213</string><key>index</key><integer>213</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>873</integer><key>price</key><real>1082.736</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>290000</integer><key>amount</key><real>982770</real></dict><dict><key>id</key><string>899002-214</string><key>index</key><integer>214</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>874</integer><key>price</key><real>1082.712</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>66000</integer><key>amount</key><real>270600</real></dict><dict><key>id</key><string>899002-215</string><key>index</key><integer>215</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>875</integer><key>price</key><real>1082.661</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>207000</integer><key>amount</key><real>704340</real></dict><dict><key>id</key><string>899002-216</string><key>index</key><integer>216</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>876</integer><key>price</key><real>1082.598</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>286000</integer><key>amount</key><real>1240500</real></dict><dict><key>id</key><string>899002-217</string><key>index</key><integer>217</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>877</integer><key>price</key><real>1082.594</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>38000</integer><key>amount</key><real>217440</real></dict><dict><key>id</key><string>899002-218</string><key>index</key><integer>218</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>878</integer><key>price</key><real>1082.652</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>413000</integer><key>amount</key><real>999050</real></dict><dict><key>id</key><string>899002-219</string><key>index</key><integer>219</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>879</integer><key>price</key><real>1082.596</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>233000</integer><key>amount</key><real>686650</real></dict><dict><key>id</key><string>899002-220</string><key>index</key><integer>220</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>880</integer><key>price</key><real>1082.49</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>664000</integer><key>amount</key><real>2408010</real></dict><dict><key>id</key><string>899002-221</string><key>index</key><integer>221</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>881</integer><key>price</key><real>1082.523</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>284500</integer><key>amount</key><real>1784265</real></dict><dict><key>id</key><string>899002-222</string><key>index</key><integer>222</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>882</integer><key>price</key><real>1082.618</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>157000</integer><key>amount</key><real>844560</real></dict><dict><key>id</key><string>899002-223</string><key>index</key><integer>223</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>883</integer><key>price</key><real>1082.642</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>231000</integer><key>amount</key><real>593730</real></dict><dict><key>id</key><string>899002-224</string><key>index</key><integer>224</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>884</integer><key>price</key><real>1082.694</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>100000</integer><key>amount</key><real>460170</real></dict><dict><key>id</key><string>899002-225</string><key>index</key><integer>225</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>885</integer><key>price</key><real>1082.732</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>81000</integer><key>amount</key><real>431140</real></dict><dict><key>id</key><string>899002-226</string><key>index</key><integer>226</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>886</integer><key>price</key><real>1082.73</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>74000</integer><key>amount</key><real>345180</real></dict><dict><key>id</key><string>899002-227</string><key>index</key><integer>227</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>887</integer><key>price</key><real>1082.909</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>99000</integer><key>amount</key><real>294730</real></dict><dict><key>id</key><string>899002-228</string><key>index</key><integer>228</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>888</integer><key>price</key><real>1082.896</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>137000</integer><key>amount</key><real>752790</real></dict><dict><key>id</key><string>899002-229</string><key>index</key><integer>229</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>889</integer><key>price</key><real>1082.85</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>76000</integer><key>amount</key><real>302370</real></dict><dict><key>id</key><string>899002-230</string><key>index</key><integer>230</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>890</integer><key>price</key><real>1082.861</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>140683</integer><key>amount</key><real>600609</real></dict><dict><key>id</key><string>899002-231</string><key>index</key><integer>231</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>891</integer><key>price</key><real>1082.783</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>131000</integer><key>amount</key><real>888930</real></dict><dict><key>id</key><string>899002-232</string><key>index</key><integer>232</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>892</integer><key>price</key><real>1082.882</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>96000</integer><key>amount</key><real>1012500</real></dict><dict><key>id</key><string>899002-233</string><key>index</key><integer>233</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>893</integer><key>price</key><real>1082.934</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>146000</integer><key>amount</key><real>498530</real></dict><dict><key>id</key><string>899002-234</string><key>index</key><integer>234</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>894</integer><key>price</key><real>1083.089</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>82000</integer><key>amount</key><real>561960</real></dict><dict><key>id</key><string>899002-235</string><key>index</key><integer>235</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>895</integer><key>price</key><real>1083.278</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>84000</integer><key>amount</key><real>580930</real></dict><dict><key>id</key><string>899002-236</string><key>index</key><integer>236</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>896</integer><key>price</key><real>1083.404</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>303500</integer><key>amount</key><real>1403595</real></dict><dict><key>id</key><string>899002-237</string><key>index</key><integer>237</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>897</integer><key>price</key><real>1083.408</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>83000</integer><key>amount</key><real>546650</real></dict><dict><key>id</key><string>899002-238</string><key>index</key><integer>238</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>898</integer><key>price</key><real>1083.551</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>1410000</integer><key>amount</key><real>4090640</real></dict><dict><key>id</key><string>899002-239</string><key>index</key><integer>239</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>899</integer><key>price</key><real>1083.845</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>412000</integer><key>amount</key><real>1745000</real></dict><dict><key>id</key><string>899002-240</string><key>index</key><integer>240</integer><key>day</key><integer>20161017</integer><key>zqdm</key><integer>899002</integer><key>minute</key><integer>1020</integer><key>price</key><real>1084.074</real><key>avgPrice</key><real>1085.514</real><key>volume</key><integer>59000</integer><key>amount</key><real>345350</real></dict></array></dict></plist>
``` | /content/code_sandbox/YYStockDemo/YYStockDemo/minuteData.plist | xml | 2016-10-17T14:56:24 | 2024-05-28T11:12:26 | YYStock | WillkYang/YYStock | 1,188 | 31,275 |
```xml
import { Component, isEqual, jsx } from '@antv/f-engine';
import { ChartChildProps } from '../../chart';
import { updateRange, updateFollow } from './zoomUtil';
import { Scale, ScaleConfig } from '../../deps/f2-scale/src';
import { each, isNumberEqual, isArray } from '@antv/util';
import { quadraticOut as easeing } from './easing';
export type ZoomRange = [number, number];
export type ScaleValues = number[] | string[];
function lerp(min, max, fraction) {
return (max - min) * fraction + min;
}
function isNumberEqualRange(aRange: number[], bRange: number[]) {
if (!bRange) return false;
for (let i = 0, len = aRange.length; i < len; i++) {
if (!isNumberEqual(aRange[i], bRange[i])) return false;
}
return true;
}
function isEqualRange(aRange, bRange) {
if (!bRange) return false;
if (isArray(aRange)) {
return isNumberEqualRange(aRange, bRange);
}
// object
for (const i in aRange) {
if (!isNumberEqualRange(aRange[i], bRange[i])) return false;
}
return true;
}
export interface ZoomProps {
panSensitive?: number;
pinchSensitive?: number;
/**
*
*/
mode?: 'x' | 'y' | ['x', 'y'] | null;
/**
*
*/
range?: ZoomRange;
/**
*
*/
pan?: boolean;
/**
*
*/
pinch?: boolean;
/**
*
*/
swipe?: boolean;
/**
*
*/
swipeDuration?: number;
/**
*
*/
onPanStart?: Function;
onPinchStart?: Function;
onPan?: Function;
onPinch?: Function;
onPanEnd?: Function;
onPinchEnd?: Function;
onInit?: Function;
/**
* x/y
*/
autoFit?: boolean;
/**
* , 10
*/
minCount?: number;
}
export interface ZoomState {
range: {
x?: ZoomRange;
y?: ZoomRange;
};
}
function cloneScale(scale: Scale, scaleConfig?: ScaleConfig) {
// @ts-ignore
return new scale.constructor({
// @ts-ignore
...scale.__cfg__,
...scaleConfig,
});
}
export default (View) => {
return class Zoom<
P extends ZoomProps = ZoomProps,
S extends ZoomState = ZoomState
> extends Component<P & ChartChildProps, S> {
startRange: {
x?: ZoomRange;
y?: ZoomRange;
};
scale: {} = {};
originScale: {} = {};
//
minScale: number;
dims: Array<String>;
//swipe end x y
swipeEnd = {
startX: 0,
startY: 0,
endX: 0,
endY: 0,
};
loop: number;
constructor(props: P) {
const defaultProps = {
onPanStart: () => {},
onPinchStart: () => {},
onPan: () => {},
onPinch: () => {},
onInit: () => {},
onPanEnd: () => {},
onPinchEnd: () => {},
minCount: 10,
};
super({ ...defaultProps, ...props });
const { mode } = props;
this.dims = isArray(mode) ? mode : [mode];
}
didMount(): void {
const { scale } = this;
const { onInit } = this.props;
onInit({ scale });
this._bindEvents();
}
willReceiveProps(nextProps: P): void {
// @ts-ignore
const { range: nextRange, data: nextData } = nextProps;
const { range: lastRange, data: lastData } = this.props;
if (nextData !== lastData) {
this._cancelAnimationFrame();
}
if (!isEqual(nextRange, lastRange)) {
const cacheRange = {};
each(this.dims, (dim) => {
cacheRange[dim] = nextRange;
});
this.state = {
range: cacheRange,
} as S;
}
}
willMount(): void {
const { props, dims } = this;
const { minCount, range } = props;
let valueLength = Number.MIN_VALUE;
const cacheRange = {};
each(dims, (dim) => {
const scale = this._getScale(dim);
const { values } = scale;
valueLength = values.length > valueLength ? values.length : valueLength;
this.scale[dim] = scale;
this.originScale[dim] = cloneScale(scale);
this.updateRange(range, dim);
cacheRange[dim] = range;
});
// MIN_COUNT
this.minScale = minCount / valueLength;
this.renderRange(cacheRange);
}
willUpdate(): void {
const { props, state, dims } = this;
const { minCount, range } = props;
let valueLength = Number.MIN_VALUE;
const cacheRange = {};
each(dims, (dim) => {
const scale = this._getScale(dim);
// scale ,
if (scale === this.scale[dim]) {
return;
}
const { values } = scale;
valueLength = values.length > valueLength ? values.length : valueLength;
this.scale[dim] = scale;
this.originScale[dim] = cloneScale(scale);
// range
this.state.range[dim] = [0, 1];
this.updateRange(range, dim);
cacheRange[dim] = range;
});
//
if (Object.keys(cacheRange).length > 0) {
this.minScale = minCount / valueLength;
const newRange = {
...state.range,
...cacheRange,
};
this.renderRange(newRange);
}
}
didUnmount(): void {
this._cancelAnimationFrame();
this._unBindEvents();
}
_requestAnimationFrame(calllback: Function) {
const { context } = this;
const { requestAnimationFrame } = context.canvas;
this.loop = requestAnimationFrame(calllback);
return this.loop;
}
_cancelAnimationFrame() {
const { loop, context } = this;
if (loop) {
context.canvas.cancelAnimationFrame(loop);
}
}
onPanStart = () => {
const { scale } = this;
const {
onPanStart,
} = this.props;
this.onStart();
onPanStart?.({ scale });
}
onPan = (ev) => {
const {
onPan,
} = this.props;
const { dims } = this;
const range = {};
each(dims, (dim) => {
if (dim === 'x') {
range['x'] = this._doXPan(ev);
return;
}
if (dim === 'y') {
range['y'] = this._doYPan(ev);
return;
}
});
this.renderRange(range);
onPan?.(ev);
};
onPanEnd = () => {
const { scale } = this;
const {
onPanEnd,
} = this.props;
this.onEnd();
onPanEnd?.({ scale });
}
onPinchStart = () => {
const {
onPinchStart,
} = this.props;
this.onStart();
onPinchStart?.();
}
onPinch = (ev) => {
const {
onPinch,
} = this.props;
const { dims } = this;
const range = {};
each(dims, (dim) => {
if (dim === 'x') {
range['x'] = this._doXPinch(ev);
return;
}
if (dim === 'y') {
range['y'] = this._doYPinch(ev);
return;
}
});
this.renderRange(range);
onPinch?.(ev);
};
onPinchEnd = () => {
const { scale } = this;
const {
onPinchEnd,
} = this.props;
this.onEnd();
onPinchEnd?.({ scale });
}
_bindEvents() {
const {
chart,
pan,
pinch,
swipe,
} = this.props;
//
if (pan !== false) {
chart.on('panstart', this.onPanStart);
chart.on('pan', this.onPan);
chart.on('panend', this.onPanEnd);
}
if (pinch !== false) {
chart.on('pinch', this.onPinch);
chart.on('pinchstart', this.onPinchStart);
chart.on('pinchend', this.onPinchEnd);
}
if (swipe !== false) {
chart.on('swipe', this.onSwipe);
}
}
_unBindEvents() {
const {
chart,
pan,
pinch,
swipe,
} = this.props;
//
if (pan !== false) {
chart.off('panstart', this.onPanStart);
chart.off('pan', this.onPan);
chart.off('panend', this.onPanEnd);
}
if (pinch !== false) {
chart.off('pinch', this.onPinch);
chart.off('pinchstart', this.onPinchStart);
chart.off('pinchend', this.onPinchEnd);
}
if (swipe !== false) {
chart.off('swipe', this.onSwipe);
}
}
onStart = () => {
const { state } = this;
const { range } = state;
this.startRange = range;
this._cancelAnimationFrame();
};
update() {
const { startX, startY, endX, endY } = this.swipeEnd;
const x = lerp(startX, endX, 0.05);
const y = lerp(startY, endY, 0.05);
this.swipeEnd = {
startX: x,
startY: y,
endX,
endY,
};
const { props } = this;
const { coord } = props;
const { width: coordWidth, height: coordHeight } = coord;
const range = {};
range['x'] = this._doPan((x - startX) / coordWidth, 'x');
range['y'] = this._doPan((y - startY) / coordHeight, 'y');
this.renderRange(range);
this.startRange = range;
this._requestAnimationFrame(() => this.update());
if (Math.abs(x - endX) < 0.0005 && Math.abs(y - endY) < 0.0005) {
this.onEnd();
this._cancelAnimationFrame();
}
}
animateSwipe(dim: string, dimRange: ZoomRange, velocity: number) {
const { props } = this;
const { swipeDuration = 1000 } = props;
const diff = (dimRange[1] - dimRange[0]) * velocity;
const startTime = Date.now();
const updateRange = (t: number) => {
const newDimRange: ZoomRange = [dimRange[0] + diff * t, dimRange[1] + diff * t];
const newRange = this.updateRange(newDimRange, dim);
this.renderRange({
x: newRange,
});
};
//
const update = () => {
//
const currentTime = Date.now() - startTime;
//
if (currentTime >= swipeDuration) {
updateRange(1);
return;
}
//
const progress = currentTime / swipeDuration;
const easedProgress = easeing(progress);
updateRange(easedProgress);
this._requestAnimationFrame(() => {
update();
});
};
update();
}
onSwipe = (ev) => {
const { props, state } = this;
//
const { velocity, direction, velocityX = 0, velocityY = 0, points } = ev;
const { mode, swipe } = props;
const { range } = state;
if (!swipe || !mode) {
return;
}
if (mode.length === 1) {
this.animateSwipe(
mode,
range[mode],
direction === 'right' || direction === 'down' ? -velocity : velocity
);
return;
}
const { x, y } = points[0];
//
if (Math.abs(range?.x[0] - 0) < 0.0005 && velocityX > 0) return;
if (Math.abs(range?.x[1] - 1) < 0.0005 && velocityX < 0) return;
if (Math.abs(range?.y[0] - 0) < 0.0005 && velocityY < 0) return;
if (Math.abs(range?.x[1] - 1) < 0.0005 && velocityY > 0) return;
this.swipeEnd = {
startX: x,
startY: y,
endX: x + velocityX * 50,
endY: y - velocityY * 50,
};
this.onStart();
this.update();
};
onEnd = () => {
this.startRange = null;
};
_doXPan(ev) {
const { direction, deltaX } = ev;
if (this.props.mode.length === 1 && (direction === 'up' || direction === 'down')) {
return this.state.range['x'];
}
ev.preventDefault && ev.preventDefault();
const { props } = this;
const { coord, panSensitive = 1 } = props;
const { width: coordWidth } = coord;
const ratio = (deltaX / coordWidth) * panSensitive;
const newRange = this._doPan(ratio, 'x');
return newRange;
}
_doYPan(ev) {
const { direction, deltaY } = ev;
if (this.props.mode.length === 1 && (direction === 'left' || direction === 'right')) {
return this.state.range['y'];
}
ev.preventDefault && ev.preventDefault();
const { props } = this;
const { coord, panSensitive = 1 } = props;
const { height: coordHeight } = coord;
const ratio = (-deltaY / coordHeight) * panSensitive;
const newRange = this._doPan(ratio, 'y');
return newRange;
}
_doPan(ratio: number, dim: string) {
const { startRange } = this;
const [start, end] = startRange[dim];
const rangeLen = end - start;
const rangeOffset = rangeLen * ratio;
const newStart = start - rangeOffset;
const newEnd = end - rangeOffset;
const newRange = this.updateRange([newStart, newEnd], dim);
return newRange;
}
_doXPinch(ev) {
ev.preventDefault && ev.preventDefault();
const { zoom, center } = ev;
const { props } = this;
const { coord } = props;
const { width: coordWidth, left, right } = coord;
const leftLen = Math.abs(center.x - left);
const rightLen = Math.abs(right - center.x);
//
const leftZoom = leftLen / coordWidth;
const rightZoom = rightLen / coordWidth;
const newRange = this._doPinch(leftZoom, rightZoom, zoom, 'x');
return newRange;
}
_doYPinch(ev) {
ev.preventDefault && ev.preventDefault();
const { zoom, center } = ev;
const { props } = this;
const { coord } = props;
const { height: coordHeight, top, bottom } = coord;
const topLen = Math.abs(center.y - top);
const bottomLen = Math.abs(bottom - center.y);
//
const topZoom = topLen / coordHeight;
const bottomZoom = bottomLen / coordHeight;
const newRange = this._doPinch(topZoom, bottomZoom, zoom, 'y');
return newRange;
}
_doPinch(startRatio: number, endRatio: number, zoom: number, dim: string) {
const { startRange, minScale, props } = this;
const { pinchSensitive = 1 } = props;
const [start, end] = startRange[dim];
const zoomOffset = zoom < 1 ? (1 / zoom - 1) * pinchSensitive : (1 - zoom) * pinchSensitive;
const rangeLen = end - start;
const rangeOffset = rangeLen * zoomOffset;
const startOffset = rangeOffset * startRatio;
const endOffset = rangeOffset * endRatio;
const newStart = Math.max(0, start - startOffset);
const newEnd = Math.min(1, end + endOffset);
const newRange: ZoomRange = [newStart, newEnd];
//
if (newEnd - newStart < minScale) {
return this.state.range[dim];
}
return this.updateRange(newRange, dim);
}
updateRange(originalRange: ZoomRange, dim) {
if (!originalRange) return;
const [start, end] = originalRange;
const rangeLength = end - start;
//
let newRange: ZoomRange;
if (start < 0) {
newRange = [0, rangeLength];
} else if (end > 1) {
newRange = [1 - rangeLength, 1];
} else {
newRange = originalRange;
}
const { props, scale, originScale, state } = this;
const { data, autoFit } = props;
const { range } = state;
if (range && isEqualRange(newRange, range[dim])) return newRange;
// scale
updateRange(scale[dim], originScale[dim], newRange);
if (autoFit) {
const followScale = this._getFollowScales(dim);
this.updateFollow(followScale, scale[dim], data);
}
return newRange;
}
updateFollow(scales: Scale[], mainScale: Scale, data: any[]) {
updateFollow(scales, mainScale, data);
}
_getScale(dim) {
const { coord, chart } = this.props;
if (dim === 'x') {
return coord.transposed ? chart.getYScales()[0] : chart.getXScales()[0];
} else {
return coord.transposed ? chart.getXScales()[0] : chart.getYScales()[0];
}
}
_getFollowScales(dim) {
const { coord, chart } = this.props;
if (dim === 'x') {
return coord.transposed ? chart.getXScales() : chart.getYScales();
}
if (dim === 'y') {
return coord.transposed ? chart.getYScales() : chart.getXScales();
}
}
renderRange(range) {
const { state, props } = this;
if (isEqualRange(range, state.range)) return;
const { chart } = props;
//
const { animate } = chart;
chart.setAnimate(false);
// forceUpdate setState
state.range = range;
chart.forceUpdate(() => {
chart.setAnimate(animate);
});
}
render() {
return <View {...this.props} {...this.state} />;
}
};
};
``` | /content/code_sandbox/packages/f2/src/components/zoom/index.tsx | xml | 2016-08-29T06:26:23 | 2024-08-16T15:50:14 | F2 | antvis/F2 | 7,877 | 4,316 |
```xml
/**
* setup rootPath and jestCommandLine
*/
import * as vscode from 'vscode';
import {
showActionInputBox,
showActionMenu,
getWizardSettings,
createSaveConfig,
validateCommandLine,
selectWorkspaceFolder,
toActionButton,
validateRootPath,
toVirtualFolderSettings,
} from '../wizard-helper';
import { WizardStatus, ActionableMenuItem, SetupTask, WizardContext, ConfigEntry } from '../types';
import { enabledWorkspaceFolders } from '../../workspace-manager';
import { isVirtualWorkspaceFolder } from '../../virtual-workspace-folder';
export const CLSetupActionId = {
jestCommandLine: 0,
rootPath: 1,
editJestCommandLine: 2,
editRootPath: 3,
saveSettings: 4,
separator: 10,
};
export const setupJestCmdLine: SetupTask = async (
context: WizardContext
): Promise<WizardStatus> => {
const { workspace: _ws, message } = context;
const workspace = _ws ?? (await selectWorkspaceFolder(enabledWorkspaceFolders()));
if (!workspace) {
return 'abort';
}
context.workspace = workspace;
const saveConfig = createSaveConfig(context);
const settings = getWizardSettings(workspace);
const isVirtualFolder = isVirtualWorkspaceFolder(workspace);
const save = async (): Promise<WizardStatus> => {
let entries: ConfigEntry[] = [
{
name: `jest.jestCommandLine`,
value: settings.jestCommandLine,
},
{
name: `jest.rootPath`,
value: settings.rootPath,
},
];
if (isVirtualFolder) {
entries = [toVirtualFolderSettings(workspace, ...entries)];
}
await saveConfig(...entries);
message(`jestCommandLine and rootPath saved`);
return 'exit';
};
const editJestCmdLine = async (): Promise<WizardStatus> => {
const editedValue = await showActionInputBox<string>({
title: 'Enter Jest Command Line',
value: settings.jestCommandLine,
prompt: 'Note: the command line should match how you run jest tests in terminal ',
enableBackButton: true,
verbose: context.verbose,
});
settings.jestCommandLine = editedValue;
return 'success';
};
const editRootPath = async (): Promise<WizardStatus> => {
const editedValue = await showActionInputBox<string>({
title: isVirtualFolder
? 'Enter Root Path for the VirtualFolder'
: 'Enter Root Path (if different from workspace root)',
value: settings.rootPath,
prompt: 'the directory to start jest command',
enableBackButton: true,
verbose: context.verbose,
});
settings.rootPath = editedValue;
return 'success';
};
const editJestCmdLineButton = toActionButton(
CLSetupActionId.editJestCommandLine,
'edit',
'edit jestCommandLine',
() => editJestCmdLine()
);
const editRootPathButton = toActionButton(
CLSetupActionId.editRootPath,
'edit',
'edit rootPath',
() => editRootPath()
);
const showMenu = async (): Promise<WizardStatus> => {
const menuItems: ActionableMenuItem<WizardStatus>[] = [];
if (settings.jestCommandLine) {
const error = validateCommandLine(settings.jestCommandLine);
if (error) {
message(
`jestCommandLine "${settings.jestCommandLine}" is not valid:\r\n ${error}`,
'error'
);
settings.jestCommandLine = undefined;
}
}
if (settings.rootPath) {
if (!validateRootPath(workspace, settings.rootPath)) {
message(`rootPath "${settings.rootPath}" is not valid:\r\n`, 'error');
settings.rootPath = undefined;
}
}
menuItems.push(
{
id: CLSetupActionId.rootPath,
label: `${settings.rootPath}`,
detail: isVirtualFolder
? 'rootPath: the directory where the virtual folder is'
: 'rootPath: the directory to start jest test from, if differ from workspace root',
buttons: [editRootPathButton],
},
{
id: CLSetupActionId.jestCommandLine,
label: `${settings.jestCommandLine}`,
detail: 'jestCommandLine: the command to start jest test',
buttons: [editJestCmdLineButton],
},
{
id: CLSetupActionId.separator,
kind: vscode.QuickPickItemKind.Separator,
label: '',
},
{
id: CLSetupActionId.saveSettings,
label: `$(settings-gear) Save Settings`,
detail: 'save the settings above and exit',
action: save,
}
);
const menuStatus = await showActionMenu<WizardStatus>(menuItems, {
title: `[${workspace.name}] Set up Jest Command Line and Root Path`,
placeholder: 'update rootPath and jestCommandLine settings below',
enableBackButton: true,
verbose: context.verbose,
allowNoAction: true,
});
if (menuStatus !== 'success') {
return menuStatus;
}
return showMenu();
};
return showMenu();
};
``` | /content/code_sandbox/src/setup-wizard/tasks/setup-jest-cmdline.ts | xml | 2016-10-09T13:06:02 | 2024-08-13T18:32:04 | vscode-jest | jest-community/vscode-jest | 2,819 | 1,118 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
path_to_url
Unless required by applicable law or agreed to in writing,
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
specific language governing permissions and limitations
-->
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="processes">
<title>Starting Impala</title>
<prolog>
<metadata>
<data name="Category" value="Starting and Stopping"/>
<data name="Category" value="Impala"/>
<data name="Category" value="Administrators"/>
<data name="Category" value="Operators"/>
</metadata>
</prolog>
<conbody>
<p rev="1.2">
<indexterm audience="hidden">state store</indexterm>
<indexterm audience="hidden">starting services</indexterm>
<indexterm audience="hidden">services</indexterm>
To activate Impala if it is installed but not yet started:
</p>
<ol>
<li>
Set any necessary configuration options for the Impala services. See
<xref href="impala_config_options.xml#config_options"/> for details.
</li>
<li>
Start one instance of the Impala statestore. The statestore helps Impala to distribute work efficiently,
and to continue running in the event of availability problems for other Impala nodes. If the statestore
becomes unavailable, Impala continues to function.
</li>
<li>
Start one instance of the Impala catalog service.
</li>
<li> Start the main Impala daemon services. </li>
</ol>
<p>
Once Impala is running, you can conduct interactive experiments using the instructions in
<xref href="impala_tutorial.xml#tutorial"/> and try <xref href="impala_impala_shell.xml#impala_shell"/>.
</p>
<p outputclass="toc inpage"/>
</conbody>
<concept id="starting_via_cmdline">
<title>Starting Impala from the Command Line</title>
<conbody>
<p>
To start the Impala state store and Impala from the command line or a script, you can either use the
<cmdname>service</cmdname> command or you can start the daemons directly through the
<cmdname>impalad</cmdname>, <codeph>statestored</codeph>, and <cmdname>catalogd</cmdname> executables.
</p>
<p>
Start the Impala statestore and then start <codeph>impalad</codeph> instances. You can modify the values
the service initialization scripts use when starting the statestore and Impala by editing
<codeph>/etc/default/impala</codeph>.
</p>
<p>
Start the statestore service using a command similar to the following:
</p>
<p>
<codeblock>$ sudo service impala-state-store start</codeblock>
</p>
<p rev="1.2">
Start the catalog service using a command similar to the following:
</p>
<codeblock rev="1.2">$ sudo service impala-catalog start</codeblock>
<p> Start the Impala daemon services using a command similar to the
following: </p>
<p>
<codeblock>$ sudo service impala-server start</codeblock>
</p>
<note>
<p conref="../shared/impala_common.xml#common/udf_persistence_restriction"/>
</note>
<p>
If any of the services fail to start, review:
<ul>
<li>
<xref href="impala_logging.xml#logs_debug"/>
</li>
<li>
<xref href="impala_troubleshooting.xml#troubleshooting"/>
</li>
</ul>
</p>
</conbody>
</concept>
</concept>
``` | /content/code_sandbox/docs/topics/impala_processes.xml | xml | 2016-04-13T07:00:08 | 2024-08-16T10:10:44 | impala | apache/impala | 1,115 | 925 |
```xml
import { describe, expect, it } from 'vitest';
import { join, sep } from 'path';
// @ts-ignore - Missing types for "alpha-sort"
import { asc as alpha } from 'alpha-sort';
import { staticFiles as getStaticFiles_ } from '../../../src/util/get-files';
import { client } from '../../mocks/client';
const prefix = `${join(__dirname, '../../fixtures/unit')}${sep}`;
const base = (path: string) => path.replace(prefix, '');
const fixture = (name: string) => join(prefix, name);
const getStaticFiles = async (dir: string) => {
const files = await getStaticFiles_(dir, client);
return normalizeWindowsPaths(files);
};
const normalizeWindowsPaths = (files: string[]) => {
if (process.platform === 'win32') {
// GitHub Actions absolute path "f" that looks like:
// "D:/a/vercel/vercel/packages/cli/test/fixtures/unit/"
// but other OS's are relative path so we normalize here.
const prefix = 'packages/cli/test/fixtures/unit/';
return files.map(f => {
const normal = f.replace(/\\/g, '/');
const i = normal.indexOf(prefix);
return normal.slice(i + prefix.length);
});
}
return files;
};
describe('staticFiles', () => {
it('should discover files for builds deployment', async () => {
const path = 'now-json-static-no-files';
let files = await getStaticFiles(fixture(path));
files = files.sort(alpha);
expect(files).toHaveLength(4);
expect(base(files[0])).toEqual(`${path}/a.js`);
expect(base(files[1])).toEqual(`${path}/b.js`);
expect(base(files[2])).toEqual(`${path}/build/a/c.js`);
expect(base(files[3])).toEqual(`${path}/package.json`);
});
it('should respect `.vercelignore` file rules', async () => {
const path = 'vercelignore';
let files = await getStaticFiles(fixture(path));
files = files.sort(alpha);
expect(files).toHaveLength(6);
expect(base(files[0])).toEqual(`${path}/.vercelignore`);
expect(base(files[1])).toEqual(`${path}/a.js`);
expect(base(files[2])).toEqual(`${path}/build/sub/a.js`);
expect(base(files[3])).toEqual(`${path}/build/sub/c.js`);
expect(base(files[4])).toEqual(`${path}/c.js`);
expect(base(files[5])).toEqual(`${path}/package.json`);
});
});
``` | /content/code_sandbox/packages/cli/test/unit/util/get-files.test.ts | xml | 2016-09-09T01:12:08 | 2024-08-16T17:39:45 | vercel | vercel/vercel | 12,545 | 538 |
```xml
<mxfile host="app.diagrams.net" modified="2020-06-30T06:41:58.039Z" agent="5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36" etag="eN_aVuXlrJnozz_3bGs0" version="13.3.5"><diagram id="R2lEEEUBdFMjLlhIrx00" name="Page-1">your_sha256_hashshRDJoy+gChyhvJDJCEoazZjAgaYoC1ohBSsmqmTYjSfOuGYyQFngIYKJHv+OQxWX02rPr+CeEo1jd2bHllTlUyTKQxzAkq0YIrdmYpEw+4h2ic5iilPErU0h/IGp5o5gx0dNbC4z5ayayryJCogTBDOdXAZnzcJDzlPEMznEiyrzV0FA2xG/your_sha512_hash/xWmG3uUQIZJumovjJEaXgr0OVJo/ufiJJHMoUp7/wwZ5Cy+hpJZfoY88dzPzgqRZ7b/FzvmnzOnCxogJ7pD+your_sha256_hashFcEEsOTLcn21HDUlFSNVF2XX5qG+your_sha256_hasheqlNIZ9YWGiOYar7iiZ+KQwaeCQQUJ5BTmChbwSYlBnHL9LVkSkCSBWY6L9DIS4yScwA1ZMNWQOhvO8BqF9+UMJnI5/your_sha256_hashYtlwNvHMtc+TKgGgl3hcl8WAAUU7zrDMLnnCwWYRgVmTUhEXUNKskc1+kQgE0RDdLRE5VRdFJ8PdZ8kRCCbloJQpBWd84b8xbvr21ee5fEH8Pm5U5/zl0inzCdpzijEBRyIA7VCAqwhI5m8T4Jm6jGoLKY4fiKM8Zn/your_sha256_hashBWN3ILbEw22NxxYA7mvW39PqT4QQ/sc/5APr1i5V+98vj+Lv18nEqpa6JsGjdLHMHeYZDHAaTcpP9nfw846B39o6OJ7Aa+LZP2el3L8q+zNK2T+1Ug40ZMefnS7gvtJYbAlAvzUAp5LGa63gwSLnfS7VEeyRRuOweFEX/zhYpujgzUUHj6ODN6fWQeUa/your_sha512_hash/OzPF7XD07fZbsjsq6ho8nekb5FwK4sXz6AqiMbOcvjc+I8nssNzsLpkntz0cfRv+V/your_sha256_hashxD96MDYsaooW5/+your_sha512_hash+5hsfQDc+KnVM4Vys9IMY0n88+93ZLPpNskD4af3jlvKr4PUvktzRLw==</diagram></mxfile>
``` | /content/code_sandbox/src/main/webapp/templates/basic/erd.xml | xml | 2016-09-06T12:59:15 | 2024-08-16T13:28:41 | drawio | jgraph/drawio | 40,265 | 802 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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"
tools:context=".MainActivity">
<EditText
android:id="@+id/inputText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:hint="Enter your message"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="Send Message"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/inputText" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="Message received from the Service is:\n"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
``` | /content/code_sandbox/Android/AndroidIntentService-BroadcastReceiver/app/src/main/res/layout/activity_main.xml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 355 |
```xml
<code_scheme name="flowable profile" version="173">
<option name="RIGHT_MARGIN" value="160" />
<JavaCodeStyleSettings>
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
<option name="IMPORT_LAYOUT_TABLE">
<value>
<package name="" withSubpackages="true" static="true" />
<emptyLine />
<package name="java" withSubpackages="true" static="false" />
<emptyLine />
<package name="javax" withSubpackages="true" static="false" />
<emptyLine />
<package name="jakarta" withSubpackages="true" static="false" />
<emptyLine />
<package name="org" withSubpackages="true" static="false" />
<emptyLine />
<package name="com" withSubpackages="true" static="false" />
<emptyLine />
<package name="liquibase" withSubpackages="true" static="false" />
<emptyLine />
<package name="" withSubpackages="true" static="false" />
</value>
</option>
<option name="JD_ALIGN_PARAM_COMMENTS" value="false" />
<option name="JD_ALIGN_EXCEPTION_COMMENTS" value="false" />
</JavaCodeStyleSettings>
<codeStyleSettings language="JAVA">
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" />
<option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" />
<option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
<option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1" />
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" />
<option name="BLANK_LINES_AFTER_ANONYMOUS_CLASS_HEADER" value="1" />
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
<option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACES" value="true" />
<option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true" />
<option name="CALL_PARAMETERS_WRAP" value="1" />
<option name="METHOD_PARAMETERS_WRAP" value="1" />
<option name="EXTENDS_LIST_WRAP" value="1" />
<option name="THROWS_LIST_WRAP" value="1" />
<option name="EXTENDS_KEYWORD_WRAP" value="1" />
<option name="THROWS_KEYWORD_WRAP" value="1" />
<option name="METHOD_CALL_CHAIN_WRAP" value="1" />
<option name="BINARY_OPERATION_WRAP" value="1" />
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" />
<option name="TERNARY_OPERATION_WRAP" value="5" />
<option name="ARRAY_INITIALIZER_WRAP" value="1" />
</codeStyleSettings>
</code_scheme>
``` | /content/code_sandbox/ide-settings/idea/idea-code-style-configuration.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 673 |
```xml
/* eslint-disable @typescript-eslint/no-explicit-any */
import { FieldError } from '~/components/offers/constants';
/**
* Removes empty objects, empty strings, `null`, `undefined`, and `NaN` values from an object.
* Does not remove empty arrays.
* @param object
* @returns object without empty values or objects.
*/
export function cleanObject(object: any) {
Object.entries(object).forEach(([k, v]) => {
if ((v && typeof v === 'object') || Array.isArray(v)) {
cleanObject(v);
}
if (
(v &&
typeof v === 'object' &&
!Object.keys(v).length &&
!Array.isArray(v)) ||
v === null ||
v === undefined ||
v === '' ||
v !== v
) {
if (Array.isArray(object)) {
const index = object.indexOf(v);
object.splice(index, 1);
} else if (!(v instanceof Date)) {
delete object[k];
}
}
});
return object;
}
/**
* Removes empty objects from an object.
* @param object
* @returns object without empty values or objects.
*/
export function removeEmptyObjects(object: any) {
Object.entries(object).forEach(([k, v]) => {
if ((v && typeof v === 'object') || Array.isArray(v)) {
removeEmptyObjects(v);
}
if (
v &&
typeof v === 'object' &&
!Object.keys(v).length &&
!Array.isArray(v)
) {
if (Array.isArray(object)) {
const index = object.indexOf(v);
object.splice(index, 1);
} else if (!(v instanceof Date)) {
delete object[k];
}
}
});
return object;
}
/**
* Removes invalid money data from an object.
* If currency is present but value is not present, money object is removed.
* @param object
* @returns object without invalid money data.
*/
export function removeInvalidMoneyData(object: any) {
Object.entries(object).forEach(([k, v]) => {
if ((v && typeof v === 'object') || Array.isArray(v)) {
removeInvalidMoneyData(v);
}
if (k === 'currency') {
if (object.value === undefined) {
delete object[k];
} else if (
object.value === null ||
object.value !== object.value ||
object.value === ''
) {
delete object[k];
delete object.value;
}
}
});
return object;
}
export function validatePositiveNumber(v?: number | null) {
return (
v === null ||
v === undefined ||
v !== v ||
v > 0 ||
FieldError.POSITIVE_NUMBER
);
}
``` | /content/code_sandbox/apps/portal/src/utils/offers/form.tsx | xml | 2016-07-05T05:00:48 | 2024-08-16T19:01:19 | tech-interview-handbook | yangshun/tech-interview-handbook | 115,302 | 581 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>peach</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>peach</PackageId>
<!--RuntimeIdentifiers>win;win7;win7-anycpu;ubuntu.14.04;ubuntu.14.04-anycpu;osx.10.10;osx.10.10-anycpu</RuntimeIdentifiers-->
</PropertyGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Peachpie.CodeAnalysis\Peachpie.CodeAnalysis.csproj" />
<ProjectReference Include="..\..\Peachpie.App\Peachpie.App.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DiaSymReader.Native" Version="1.7.0" />
</ItemGroup>
</Project>
``` | /content/code_sandbox/src/Compiler/peach/peach.csproj | xml | 2016-02-05T16:22:55 | 2024-08-16T17:42:35 | peachpie | peachpiecompiler/peachpie | 2,317 | 209 |
```xml
export interface PatchFile {
path: string
hash: string
}
export interface PatchInfo {
strict: boolean
file: PatchFile
}
``` | /content/code_sandbox/patching/types/src/index.ts | xml | 2016-01-28T07:40:43 | 2024-08-16T12:38:47 | pnpm | pnpm/pnpm | 28,869 | 34 |
```xml
import { getWindow } from './dom/getWindow';
let isMacResult: boolean | undefined;
/**
* Returns true if the user is on a Mac. Caches the result value.
* @param reset - Reset the cached result value (mainly for testing).
*/
export function isMac(reset?: boolean): boolean {
if (typeof isMacResult === 'undefined' || reset) {
const win = getWindow();
// In certain SSR frameworks, `window` will be defined even on the server but `navigator` will be undefined
const userAgent = win?.navigator?.userAgent;
isMacResult = !!userAgent && userAgent.indexOf('Macintosh') !== -1;
}
return !!isMacResult;
}
``` | /content/code_sandbox/packages/utilities/src/osDetector.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 152 |
```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 {RegisteredClient} from '@wireapp/api-client/lib/client';
import {TIME_IN_MILLIS} from 'Util/TimeUtil';
import {wasClientActiveWithinLast4Weeks} from './ClientUtils';
const createClientWithLastActive = (date: Date): RegisteredClient => {
return {last_active: date.toISOString()} as RegisteredClient;
};
describe('wasClientActiveWithinLast4Weeks', () => {
beforeEach(() => {
jest.useFakeTimers();
jest.setSystemTime(new Date('2021-01-01'));
});
it('should return false if client was last active 29 days ago', () => {
const client = createClientWithLastActive(new Date(Date.now() - 29 * TIME_IN_MILLIS.DAY));
expect(wasClientActiveWithinLast4Weeks(client)).toBe(false);
});
it('should return true if client was last active exactly 28 days ago', () => {
const client = createClientWithLastActive(new Date(Date.now() - 28 * TIME_IN_MILLIS.DAY));
expect(wasClientActiveWithinLast4Weeks(client)).toBe(true);
});
it('should return true if client was last active less than 28 days ago', () => {
const client = createClientWithLastActive(new Date(Date.now() - 20 * TIME_IN_MILLIS.DAY));
expect(wasClientActiveWithinLast4Weeks(client)).toBe(true);
});
});
``` | /content/code_sandbox/src/script/client/ClientUtils.test.ts | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 397 |
```xml
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ColumnsExampleComponent } from './columns-example.component';
describe('ColumnsExampleComponent', () => {
let component: ColumnsExampleComponent;
let fixture: ComponentFixture<ColumnsExampleComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ColumnsExampleComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(ColumnsExampleComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
``` | /content/code_sandbox/projects/docs-app/src/app/examples/columns-example/columns-example.component.spec.ts | xml | 2016-03-10T21:29:15 | 2024-08-15T07:07:30 | angular-tree-component | CirclonGroup/angular-tree-component | 1,093 | 124 |
```xml
/*
* Wire
*
* This program is free software: you can redistribute it and/or modify
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
* along with this program. If not, see path_to_url
*
*/
export * from './CallParticipantsListItem';
``` | /content/code_sandbox/src/script/components/calling/CallParticipantsListItem/index.ts | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 96 |
```xml
export * from "./WorkflowSettings";
``` | /content/code_sandbox/src/renderer/Extensions/Workflow/index.ts | xml | 2016-10-11T04:59:52 | 2024-08-16T11:53:31 | ueli | oliverschwendener/ueli | 3,543 | 8 |
```xml
import { jest } from '@jest/globals';
import { render, Screen, screen } from '@testing-library/react';
import fs from 'fs-extra';
import path from 'path';
import { fileURLToPath } from 'url';
import { DiffBlock } from '.';
const dirname = path.dirname(fileURLToPath(import.meta.url));
const DIFF_PATH = '/static/diffs/expo-ios.diff';
const DIFF_CONTENT = fs.readFileSync(path.join(dirname, '../../../public', DIFF_PATH)).toString();
const validateDiffContent = (screen: Screen) => {
expect(screen.getByText('ios/myapp/AppDelegate.h')).toBeInTheDocument();
expect(screen.getByText('ios/Podfile')).toBeInTheDocument();
expect(screen.getByText('#import <UIKit/UIKit.h>')).toBeInTheDocument();
expect(screen.getByText('#import <Expo/Expo.h>')).toBeInTheDocument();
};
describe(DiffBlock, () => {
it('renders diff from file correctly', async () => {
global.fetch = jest.fn(() =>
Promise.resolve({
text: async () => DIFF_CONTENT,
} as Response)
);
render(<DiffBlock source={DIFF_PATH} />);
await screen.findByText('ios/myapp/AppDelegate.h');
validateDiffContent(screen);
});
it('renders raw diff correctly on first render', () => {
render(<DiffBlock raw={DIFF_CONTENT} />);
validateDiffContent(screen);
});
it('renders diff correctly when no commit data', () => {
const noCommitDataDiff = DIFF_CONTENT.replaceAll(/\s+index.+/g, '');
expect(noCommitDataDiff.includes('index ')).toBe(false);
render(<DiffBlock raw={noCommitDataDiff} />);
validateDiffContent(screen);
});
it('Shows the operation in header when showOperation is true', () => {
render(<DiffBlock raw={DIFF_CONTENT} showOperation />);
expect(screen.getAllByText('MODIFIED')).toBeTruthy();
});
it('Collapses deleted files when collapseDeletedFiles is true', () => {
const diffWithDelete = `
diff --git a/templates/expo-template-bare-minimum/__tests__/App.js b/templates/expo-template-bare-minimum/__tests__/App.js
deleted file mode 100644
index fa45c70206..0000000000
--- a/templates/expo-template-bare-minimum/__tests__/App.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import 'react-native';
-import React from 'react';
-import App from '../App';
-
-// Note: test renderer must be required after react-native.
-import renderer from 'react-test-renderer';
-
-it('renders correctly', () => {
- renderer.create(<App />);
-});`;
render(<DiffBlock raw={diffWithDelete} collapseDeletedFiles />);
expect(screen.queryByText(`import 'react-native';`)).not.toBeInTheDocument();
});
});
``` | /content/code_sandbox/docs/ui/components/Snippet/DiffBlock.test.tsx | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 605 |
```xml
const GITHUB_REPO_CONTRIB_ENDPOINT = 'path_to_url
export const GITHUB_CONTRIB_START = 'GITHUB_CONTRIB_START';
export const GITHUB_CONTRIB_SUCCESS = 'GITHUB_CONTRIB_SUCCESS';
export const GITHUB_CONTRIB_ERROR = 'GITHUB_CONTRIB_ERROR';
function githubContribStart() {
return {
type: GITHUB_CONTRIB_START
};
}
function githubContribSuccess(data) {
return {
type: GITHUB_CONTRIB_SUCCESS,
payload: data
};
}
function githubContribError(error) {
return {
type: GITHUB_CONTRIB_ERROR,
payload: error
};
}
export function githubContribInfo() {
return dispatch => {
dispatch(githubContribStart());
fetch(
GITHUB_REPO_CONTRIB_ENDPOINT,
{
method: 'GET',
headers: { 'Content-Type': 'application/json' }
})
.then(response => {
return response.json();
})
.then(data => {
dispatch(githubContribSuccess(data));
})
.catch(error => {
dispatch(githubContribError(error));
});
};
}
``` | /content/code_sandbox/packages/app/app/actions/githubContrib.tsx | xml | 2016-09-22T22:58:21 | 2024-08-16T15:47:39 | nuclear | nukeop/nuclear | 11,862 | 246 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const BaseballIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M1024 0q141 0 272 36t245 103 207 160 160 208 103 245 37 272q0 141-36 272t-103 245-160 207-208 160-245 103-272 37q-141 0-272-36t-245-103-207-160-160-208-103-244-37-273q0-141 36-272t103-245 160-207 208-160T751 37t273-37zm0 1920q123 0 237-32t214-90 182-141 140-181 91-214 32-238q0-123-32-237t-90-214-141-182-181-140-214-91-238-32q-123 0-237 32t-214 90-182 141-140 181-91 214-32 238q0 123 32 237t90 214 141 182 181 140 214 91 238 32zM384 512q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19zm256 64q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19zm256 64q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19zm256 0q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19zm256-64q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19zm192 0q0-26 19-45t45-19q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45zm64 832q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19zm-256-64q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19zm-256-64q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19zm-256 0q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19zm-256 64q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19zm-256 64q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19z" />
</svg>
),
displayName: 'BaseballIcon',
});
export default BaseballIcon;
``` | /content/code_sandbox/packages/react-icons-mdl2/src/components/BaseballIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 1,000 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="path_to_url" tools:ignore="ImpliedQuantity, ExtraTranslation, MissingTranslation">
<!-- Title of the Rename Device Dialog -->
<string name="device_center_rename_device_dialog_title">Gert umbenennen</string>
<!-- The name of the Positive Button for the Rename Device Dialog -->
<string name="device_center_rename_device_dialog_positive_button">Umbenennen</string>
<!-- The name of the Negative Button for the Rename Device Dialog -->
<string name="device_center_rename_device_dialog_negative_button">Abbrechen</string>
<!-- The name of the Header in Device Center which signifies the User's Device that is currently in use -->
<string name="device_center_list_view_item_header_this_device">Dieses Gert</string>
<!-- The name of the Header in Device Center which signifies the User's Devices that are not currently in use -->
<string name="device_center_list_view_item_header_other_devices">Andere Gerte</string>
<!-- The name of the Device or Folder Status when no matching Status is found-->
<string name="device_center_list_view_item_status_unknown_status">Unbekannter Status</string>
<!-- The name of the Device if the SDK cannot retrieve the name for that Device -->
<string name="device_center_list_view_item_title_unknown_device">Unbekanntes Gert</string>
<!-- The name of the Device or Folder Status which signifies that it is Up to Date -->
<string name="device_center_list_view_item_status_up_to_date">Vollstndig synchronisiert</string>
<!-- The name of the Device or Folder Status which signifies that it is currently initializing -->
<string name="device_center_list_view_item_status_initialising">Initialisierung…</string>
<!-- The name of the Device or Folder Status which signifies that it is currently scanning -->
<string name="device_center_list_view_item_status_scanning">Wird gescannt…</string>
<!-- The name of the Device or Folder Status which signifies that it is currently updating its backup contents -->
<string name="device_center_list_view_item_status_updating">Wird aktualisiert…</string>
<!-- The name of the Device or Folder Status which signifies that it is currently updating its backup contents with a percentage completion -->
<string name="device_center_list_view_item_status_updating_with_progress">%1$d%% wird aktualisiert…</string>
<!-- The name of the Device Status which signifies that Camera Uploads is disabled for the User's Current Device -->
<string name="device_center_list_view_item_status_no_camera_uploads">Keine Kamera-Uploads</string>
<!-- The name of the Device or Folder Status which signifies that it is disabled -->
<string name="device_center_list_view_item_status_disabled">Deaktiviert</string>
<!-- The name of the Device or Folder Status which signifies that it is offline -->
<string name="device_center_list_view_item_status_offline">Offline</string>
<!-- The name of the Device or Folder Status which signifies that the backup procedure has been paused -->
<string name="device_center_list_view_item_status_paused">Angehalten</string>
<!-- The name of the Device or Folder Status which signifies that the backup procedure has been stopped -->
<string name="device_center_list_view_item_status_backup_stopped">Backup beendet</string>
<!-- The name of the Device or Folder Status which signifies that it has exceeded the maximum allowed Transfer quota -->
<string name="device_center_list_view_item_status_out_of_quota">Kontingent verbraucht</string>
<!-- The name of the Device or Folder Status which signifies that an error has occurred -->
<string name="device_center_list_view_item_status_error">Fehler</string>
<!-- The name of the Device or Folder Status which signifies that it is blocked due to a certain issue -->
<string name="device_center_list_view_item_status_blocked">Blockiert</string>
<!-- The title of the Device Center feature -->
<string name="device_center_top_app_bar_title">Gertecenter</string>
<!-- The name of one of the Device Center Bottom Sheet items which takes the User to the Camera uploads feature when clicked -->
<string name="device_center_bottom_sheet_item_camera_uploads">Kamera-Uploads</string>
<!-- The enabled Camera uploads status that is shown alongside the "Camera uploads" Device Center Bottom Sheet item -->
<string name="device_center_bottom_sheet_item_camera_uploads_enabled_status">Aktiviert</string>
<!-- The disabled Camera uploads status that is shown alongside the "Camera uploads" Device Center Bottom Sheet item -->
<string name="device_center_bottom_sheet_item_camera_uploads_disabled_status">Deaktiviert</string>
<!-- The name of one of the Device Center Bottom Sheet items that when clicked, opens the "Rename device" Dialog to let the User rename the selected Device -->
<string name="device_center_bottom_sheet_item_rename">Umbenennen</string>
<!-- The name of one of the Device Center Bottom Sheet items that when clicked, takes the User to the Node Information screen to view more information about the Device or Device Folder -->
<string name="device_center_bottom_sheet_item_info">Info</string>
<!-- The name of one of the Device Center Bottom Sheet items that when clicked, takes the User to the Backups feature to display the Device or Device Folder -->
<string name="device_center_bottom_sheet_item_show_in_backups">In Backups anzeigen</string>
<!-- The name of one of the Device Center Bottom Sheet items that when clicked, takes the User to the Cloud Drive feature to display the Device or Device Folder -->
<string name="device_center_bottom_sheet_item_show_in_cloud_drive">Im Cloud Drive anzeigen</string>
<!-- The name of the Device or Folder Sub State when its code is NO_SYNC_ERROR -->
<string name="device_center_list_view_item_sub_state_no_sync_error">Keine Synchronisierungsfehler</string>
<!-- The name of the Device or Folder Sub State when its code is UNSUPPORTED_FILE_SYSTEM -->
<string name="device_center_list_view_item_sub_state_unsupported_file_system">MEGA kann diesen Ordner nicht synchronisieren oder sichern, da das Dateisystem Ihres Gerts nicht untersttzt wird</string>
<!-- The name of the Device or Folder Sub State when its code is INVALID_REMOTE_TYPE -->
<string name="device_center_list_view_item_sub_state_invalid_remote_type">Der gewhlte Ordner kann nicht synchronisiert werden</string>
<!-- The name of the Device or Folder Sub State when its code is INVALID_LOCAL_TYPE -->
<string name="device_center_list_view_item_sub_state_invalid_local_type">Dateien knnen nicht einzeln synchronisiert werden. Sie mssen die Synchronisierung fr einen Ordner einrichten.</string>
<!-- The name of the Device or Folder Sub State when its code is REMOTE_NODE_NOT_FOUND -->
<string name="device_center_list_view_item_sub_state_remote_node_not_found">Der Ordner wurde auf MEGA nicht gefunden, da er verschoben oder gelscht wurde oder Sie keinen Zugriff auf ihn haben.</string>
<!-- The name of the Device or Folder Sub State when its code is STORAGE_OVERQUOTA -->
<string name="device_center_list_view_item_sub_state_storage_overquota">Der belegte Speicherplatz hat das Limit erreicht.</string>
<!-- The name of the Device or Folder Sub State when its code is ACCOUNT_EXPIRED -->
<string name="device_center_list_view_item_sub_state_account_expired">Dieser Ordner kann nicht synchronisiert oder gesichert werden, da Ihr Paket abgelaufen ist.</string>
<!-- The name of the Device or Folder Sub State when its code is FOREIGN_TARGET_OVERSTORAGE -->
<string name="device_center_list_view_item_sub_state_foreign_target_overshare">Der Ordner kann nicht synchronisiert werden, da der freigebende Benutzer sein Speicherplatzlimit erreicht hat</string>
<!-- The name of the Device or Folder Sub State when its code is SHARE_NON_FULL_ACCESS -->
<string name="device_center_list_view_item_sub_state_share_non_full_access">Der Ordner kann nicht synchronisiert werden, da es sich um einen freigegebenen Ordner handelt, auf den Sie keinen Vollzugriff haben</string>
<!-- The name of the Device or Folder Sub State when its code is PUT_NODES_ERROR -->
<string name="device_center_list_view_item_sub_state_put_nodes_error">Die Dateien in diesem Ordner knnen nicht synchronisiert oder gesichert werden. Sie mssen die Synchronisierung bzw. das Backup in der Desktop-App wieder aktivieren.</string>
<!-- The name of the Device or Folder Sub State when its code is ACTIVE_SYNC_BELOW_PATH -->
<string name="device_center_list_view_item_sub_state_active_sync_below_path">Der Ordner kann nicht synchronisiert werden, da er bereits synchronisierte Ordner enthlt</string>
<!-- The name of the Device or Folder Sub State when its code is VBOXSHAREDFOLDER_UNSUPPORTED -->
<string name=your_sha256_hashted">MEGA kann VirtualBox-Ordner nicht synchronisieren oder sichern</string>
<!-- The name of the Device or Folder Sub State when its code is ACCOUNT_BLOCKED -->
<string name="device_center_list_view_item_sub_state_account_blocked">Dieser Ordner kann nicht synchronisiert oder gesichert werden, da der Account gesperrt wurde</string>
<!-- The name of the Device or Folder Sub State when its code is UNKNOWN_TEMPORARY_ERROR -->
<string name="device_center_list_view_item_sub_state_unknown_temporary_error">Problem bei der Synchronisierung oder Sicherung dieses Ordners. Versuchen Sie es spter erneut. Wenn das Problem weiterhin besteht, wenden Sie sich an den Support.</string>
<!-- The name of the Device or Folder Sub State when its code is TOO_MANY_ACTION_PACKETS -->
<string name="device_center_list_view_item_sub_state_too_many_action_packets">Account neu geladen. Verpasste Updates Ihrer Backups oder Synchronisierungen wurden nicht bernommen.</string>
<!-- The name of the Device or Folder Sub State when its code is LOGGED_OUT -->
<string name="device_center_list_view_item_sub_state_logged_out">Die Synchronisierung oder das Backup wurde angehalten, da Sie sich anscheinend aus der Desktop-App ausgeloggt haben. Loggen Sie sich in die Desktop-App wieder ein und aktivieren Sie die Synchronisierung bzw. das Backup erneut.</string>
<!-- The name of the Device or Folder Sub State when its code is MISSING_PARENT_NODE -->
<string name="device_center_list_view_item_sub_state_missing_parent_node">Nicht verfgbar</string>
<!-- The name of the Device or Folder Sub State when its code is BACKUP_SOURCE_NOT_BELOW_DRIVE -->
<string name=your_sha256_hashrive">Ordner auf externem Laufwerk nicht gefunden.</string>
<!-- The name of the Device or Folder Sub State when its code is ACTIVE_SYNC_SAME_PATH -->
<string name="device_center_list_view_item_sub_state_active_sync_same_path">Es gibt bereits einen synchronisierten Ordner unter demselben Pfad</string>
<!-- The name of the Device or Folder Sub State when its code is COULD_NOT_MOVE_CLOUD_NODES -->
<string name=your_sha256_hashs">Die Umbenennung ist fehlgeschlagen.</string>
<!-- The name of the Device or Folder Sub State when its code is UNKNOWN_DRIVE_PATH -->
<string name="device_center_list_view_item_sub_state_unknown_drive_path">Speicherort des Synchronisierungsordners ist unbekannt</string>
<!-- The name of the Device or Folder Sub State when its code is UNABLE_TO_ADD_WATCH -->
<string name="device_center_list_view_item_sub_state_unable_to_add_watch">Eine Dateisystemberwachung konnte nicht angelegt werden.</string>
<!-- The name of the Device or Folder Sub State when its code is UNABLE_TO_OPEN_DATABASE -->
<string name="device_center_list_view_item_sub_state_unable_to_open_database">Statuscache-Datenbank kann nicht geffnet werden</string>
<!-- The name of the Device or Folder Sub State when its code is INSUFFICIENT_DISK_SPACE -->
<string name="device_center_list_view_item_sub_state_insufficient_disk_space">Nicht gengend Speicherplatz fr den Download.</string>
<!-- The name for specific Sub States to indicate that an unknown error occurred -->
<string name="device_center_list_view_item_sub_state_message_unknown_error">Unbekannter Fehler.</string>
<!-- The name for specific Sub States to indicate that something went wrong -->
<string name=your_sha256_hashong">Ein Fehler ist aufgetreten.</string>
<!-- The name for specific Sub States to indicate that the Node is in the Rubbish Bin -->
<string name=your_sha256_hashin">Der Ordner kann nicht synchronisiert oder gesichert werden, da sich der MEGA-Ordner im Papierkorb befindet</string>
<!-- The name for specific Sub States to indicate that the local drive cannot be located at this time -->
<string name=your_sha256_hashal_drive_now">Der Ordner auf Ihrem Gert kann derzeit nicht gefunden werden, bitte versuchen Sie es spter erneut.</string>
<!-- The name for specific Sub States to indicate that the local drive cannot be located -->
<string name=your_sha256_hashal_drive">Der Ordner auf Ihrem Gert kann nicht gefunden werden</string>
<!-- The name for specific Sub States to indicate that a problem occurred when syncing or backing up the MEGA Folder due to some changes -->
<string name=your_sha256_hashue_due_to_recent_changes">Problem bei der Synchronisierung oder Sicherung dieses Ordners aufgrund von nderungen am MEGA-Ordner. Beenden Sie die Synchronisierung bzw. das Backup und richten Sie sie in der Desktop-App erneut ein oder wenden Sie sich an den Support.</string>
<!-- The name for specific Sub States to indicate that a problem occurred when syncing or backing up the MEGA Folder -->
<string name=your_sha256_hashue">Problem bei der Synchronisierung oder Sicherung dieses Ordners. Beenden Sie die Synchronisierung bzw. das Backup und richten Sie sie in der Desktop-App erneut ein oder wenden Sie sich an den Support.</string>
<!-- The name for specific Sub States to indicate that the MEGA Folder cannot be synced or backed up as it is inside another synced MEGA Folder -->
<string name=your_sha256_hashue_due_to_being_inside_another_backed_up_folder">Der Ordner kann nicht synchronisiert werden, da er sich bereits innerhalb eines synchronisierten Ordners befindet</string>
<!-- The name of the Device Status informing the User that Camera Uploads is disabled for the Current Device -->
<string name="device_center_list_view_item_status_camera_uploads_disabled">Kamera-Uploads deaktiviert</string>
<!-- The Error Message shown in the Rename Device Dialog when the User submits an empty Device Name -->
<string name=your_sha256_hashme">Geben Sie einen Gertenamen ein.</string>
<!-- The Error Message shown in the Rename Device Dialog when the User submits a new Device Name that already exists in the current list of Devices -->
<string name=your_sha256_hashists">Ein Gert mit diesem Namen existiert bereits. Bitte geben Sie einen anderen Namen ein.</string>
<!-- The Error Message shown in the Rename Device Dialog when the User submits a new Device Name with invalid characters -->
<string name=your_sha256_hashers">Die folgenden Zeichen sind nicht zulssig: %1$s</string>
<!-- The Snackbar message to inform the User that the Device has been successfully renamed -->
<string name="device_center_snackbar_message_rename_device_successful">Gert umbenannt</string>
<!-- The Error Message shown in the Rename Device Dialog when the User submits a new Device Name whose length is greater than 32 characters -->
<string name=your_sha256_hasher_length_exceeded">Max. 32 Zeichen</string>
<!-- Label of the top app bar menu option of selected device in Device Center which takes the user to the Camera uploads feature settings -->
<string name="device_center_device_top_menu_option_camera_uploads">Kamera-Uploads</string>
<!-- Label of the top app bar menu option of selected device in Device Center which opens the dialog to rename the selected Device -->
<string name="device_center_device_top_menu_option_rename">Umbenennen</string>
<!-- Label of the top app bar menu option of selected device in Device Center which takes the user to the device info screen -->
<string name="device_center_device_top_menu_option_info">Info</string>
<!-- Text to show in the Device Center for a No Network State when there is no network connectivity -->
<string name="device_center_no_network_state">Keine Internetverbindung</string>
<!-- The name of the Device or Folder Sub State when its code is LOCAL_FILESYSTEM_MISMATCH -->
<string name=your_sha256_hash>Die Dateien in diesem Ordner knnen nicht synchronisiert oder gesichert werden. Sie mssen die Synchronisierung bzw. das Backup in der Desktop-App wieder aktivieren.</string>
<!-- Text to display in Device Center for an empty state when inspecting a device where no sync or backup has been configured -->
<string name="device_center_nothing_setup_state">Noch nichts eingerichtet</string>
<!-- The hint text for the search bar in the Device Center feature when the User is searching for Devices -->
<string name="device_center_top_app_bar_search_devices_hint">Gerte suchen</string>
<!-- The hint text for the search bar in the Device Center feature when the User is searching for Syncs -->
<string name="device_center_top_app_bar_search_syncs_hint">Synchronisierungen suchen</string>
<!-- Text to show in the Device Center when no search results are found -->
<string name="device_center_empty_screen_no_results">Keine Treffer</string>
<!-- First part of string, which indicates the content of a device/folder is some folders and some files. The full string is '%1$d folders %2$d files'. The string was split in 2 for pluralization. Middle height point is to separate two fragments of text and it was not to be considered a punctuation mark. Please keep the spaces around middle height point. -->
<plurals name="device_center_info_num_folders_and_files">
<item quantity="one">%1$d Ordner  </item>
<item quantity="other">%1$d Ordner  </item>
</plurals>
</resources>
``` | /content/code_sandbox/feature/devicecenter/src/main/res/values-de/strings_device_center_feature.xml | xml | 2016-05-04T11:46:20 | 2024-08-15T16:29:10 | android | meganz/android | 1,537 | 4,036 |
```xml
import { Component, OnInit } from '@angular/core';
import { Code } from '@domain/code';
import { PhotoService } from '@service/photoservice';
@Component({
selector: 'positioned-doc',
template: `
<app-docsectiontext>
<p>
Indicators can be placed at four different sides using the <i>indicatorsPosition</i> property. In addition, enabling <i>showIndicatorsOnItem</i> moves the indicators inside the image section. <i>indicatorsPosition</i> set to
<i>bottom</i> by default, accepted values are <i>top</i>, <i>left</i>, <i>right</i>, and <i>bottom</i>.
</p>
</app-docsectiontext>
<div class="card">
<div class="flex flex-wrap gap-3 mb-5">
<p-radioButton *ngFor="let option of positionOptions" [name]="option.label" [value]="option.value" [label]="option.label" [(ngModel)]="position" [inputId]="label" />
</div>
<div class="flex align-items-center">
<p-checkbox [(ngModel)]="showIndicatorsOnItem" [binary]="true" inputId="binary" label="Inside" ngClass="mt-3" />
</div>
<p-galleria
[(value)]="images"
[indicatorsPosition]="position"
[showIndicators]="true"
[showThumbnails]="false"
[showIndicatorsOnItem]="showIndicatorsOnItem"
[responsiveOptions]="responsiveOptions"
[containerStyle]="{ 'max-width': '640px', 'margin-top': '2em' }"
>
<ng-template pTemplate="item" let-item>
<img [src]="item.itemImageSrc" style="width: 100%; display: block;" />
</ng-template>
</p-galleria>
</div>
<app-code [code]="code" selector="galleria-indicator-positioned-demo"></app-code>
`
})
export class PositionedDoc implements OnInit {
images: any[] | undefined;
position: string = 'bottom';
showIndicatorsOnItem: boolean = false;
positionOptions = [
{
label: 'Bottom',
value: 'bottom'
},
{
label: 'Top',
value: 'top'
},
{
label: 'Left',
value: 'left'
},
{
label: 'Right',
value: 'right'
}
];
responsiveOptions: any[] = [
{
breakpoint: '1024px',
numVisible: 5
},
{
breakpoint: '768px',
numVisible: 3
},
{
breakpoint: '560px',
numVisible: 1
}
];
constructor(private photoService: PhotoService) {}
ngOnInit() {
this.photoService.getImages().then((images) => {
this.images = images;
});
}
code: Code = {
basic: `<p-galleria
[(value)]="images"
[indicatorsPosition]="position"
[showIndicators]="true"
[showThumbnails]="false"
[showIndicatorsOnItem]="showIndicatorsOnItem"
[responsiveOptions]="responsiveOptions"
[containerStyle]="{ 'max-width': '640px', 'margin-top': '2em' }"
>
<ng-template pTemplate="item" let-item>
<img [src]="item.itemImageSrc" style="width: 100%; display: block;" />
</ng-template>
</p-galleria>`,
html: `<div class="card">
<div class="flex flex-wrap gap-3 mb-5">
<p-radioButton
*ngFor="let option of positionOptions;"
[name]="option.label"
[value]="option.value"
[label]="option.label"
[(ngModel)]="position" [inputId]="label" />
</div>
<div class="flex align-items-center">
<p-checkbox
[(ngModel)]="showIndicatorsOnItem"
[binary]="true"
inputId="binary"
label="Inside"
ngClass="mt-3" />
</div>
<p-galleria
[(value)]="images"
[indicatorsPosition]="position"
[showIndicators]="true"
[showThumbnails]="false"
[showIndicatorsOnItem]="showIndicatorsOnItem"
[responsiveOptions]="responsiveOptions"
[containerStyle]="{'width': '100%','margin-top': '2em'}">
<ng-template pTemplate="item" let-item>
<img [src]="item.itemImageSrc" style="width: 100%; display: block;" />
</ng-template>
</p-galleria>
</div>`,
typescript: `import { Component, OnInit } from '@angular/core';
import { PhotoService } from '@service/photoservice';
import { GalleriaModule } from 'primeng/galleria';
import { RadioButtonModule } from 'primeng/radiobutton';
import { CheckboxModule } from 'primeng/checkbox';
import { FormsModule } from '@angular/forms';
@Component({
selector: 'galleria-indicator-positioned-demo',
templateUrl: './galleria-indicator-positioned-demo.html',
standalone: true,
imports: [GalleriaModule, RadioButtonModule, CheckboxModule, FormsModule],
providers: [PhotoService]
})
export class GalleriaIndicatorPositionedDemo implements OnInit {
images: any[] | undefined;
position: string = 'bottom';
showIndicatorsOnItem: boolean = false;
positionOptions = [
{
label: 'Bottom',
value: 'bottom'
},
{
label: 'Top',
value: 'top'
},
{
label: 'Left',
value: 'left'
},
{
label: 'Right',
value: 'right'
}
];
responsiveOptions: any[] = [
{
breakpoint: '1024px',
numVisible: 5
},
{
breakpoint: '768px',
numVisible: 3
},
{
breakpoint: '560px',
numVisible: 1
}
];
constructor(private photoService: PhotoService) {}
ngOnInit() {
this.photoService.getImages().then((images) => {
this.images = images;
});
}
}`,
data: `
/* PhotoService */
{
itemImageSrc: 'path_to_url
thumbnailImageSrc: 'path_to_url
alt: 'Description for Image 1',
title: 'Title 1'
},
...`,
service: ['PhotoService']
};
}
``` | /content/code_sandbox/src/app/showcase/doc/galleria/indicator/positioneddoc.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 1,494 |
```xml
export * from 'storybook/internal/channels';
export type * from 'storybook/internal/channels';
``` | /content/code_sandbox/code/deprecated/channels/shim.d.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 20 |
```xml
<code_scheme name="wasabi">
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
<XML>
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
</XML>
<codeStyleSettings language="HTML">
<indentOptions>
<option name="TAB_SIZE" value="8" />
</indentOptions>
</codeStyleSettings>
</code_scheme>
``` | /content/code_sandbox/bin/codestyle/wasabi.xml | xml | 2016-06-21T21:21:06 | 2024-08-06T13:29:36 | wasabi | intuit/wasabi | 1,133 | 114 |
```xml
import React from "react";
import { AppState, TodoValue } from './reducer'
import { useSelector } from "react-redux";
import { useFirebase } from 'react-redux-firebase'
interface TodoProps {
todoId: string
}
function Todo({ todoId }: TodoProps) {
const todo: TodoValue = useSelector((state: AppState) => {
return state.firebase.data.todos && state.firebase.data.todos[todoId]
})
const firebase = useFirebase()
function toggleDoneState() {
firebase.update(`todos/${todoId}`, { done: !todo.done })
}
return (
<div className="Todo">
<input type="checkbox" onClick={toggleDoneState} />
{todo.text}
</div>
);
}
export default Todo;
``` | /content/code_sandbox/examples/complete/typescript/src/Todo.tsx | xml | 2016-10-14T00:47:53 | 2024-08-14T11:31:02 | react-redux-firebase | prescottprue/react-redux-firebase | 2,545 | 167 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="path_to_url"
xmlns="path_to_url"
xsi:schemaLocation="path_to_url path_to_url">
<modelVersion>4.0.0</modelVersion>
<groupId>com.tobe</groupId>
<artifactId>predict</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.10.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.tensorflow</groupId>
<artifactId>tensorflow-hadoop</artifactId>
<version>1.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-core</artifactId>
</exclusion>
<exclusion>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
</exclusion>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.xiaomi.infra.galaxy</groupId>
<artifactId>galaxy-hadoop</artifactId>
<version>1.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.10</artifactId>
<version>1.6.1-mdh1.6.1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.10</artifactId>
<version>1.6.1-mdh1.6.1.2</version>
<scope>provided</scope>
</dependency>
<!--
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version></version>
<scope>provided</scope>
</dependency>
-->
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.10</artifactId>
<version>2.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.4.1.Final</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.0</version>
<configuration>
<!--
The version of protoc must match protobuf-java. If you don't depend on
protobuf-java directly, you will be transitively depending on the
protobuf-java version that grpc depends on.
-->
<protocArtifact>com.google.protobuf:protoc:3.0.0:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.0:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.15.2</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>io.netty</pattern>
<shadedPattern>shaded.io.netty</shadedPattern>
</relocation>
<relocation>
<pattern>com.google.protobuf</pattern>
<shadedPattern>shaded.com.google.protobuf</shadedPattern>
</relocation>
<relocation>
<pattern>com.google</pattern>
<shadedPattern>shaded.com.google</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
``` | /content/code_sandbox/java_predict_client/pom.xml | xml | 2016-07-18T10:54:20 | 2024-08-05T07:01:20 | tensorflow_template_application | tobegit3hub/tensorflow_template_application | 1,869 | 1,492 |
```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.
export const description = "Capture all props if prototype is and uses this #1.1";
class C {
a: number;
b: number;
constructor() {
this.a = 1;
this.b = 2;
}
m() { console.log(this); }
}
const o = new C();
export const func = function () { o["m"](); };
``` | /content/code_sandbox/sdk/nodejs/tests/runtime/testdata/closure-tests/cases/109-Capture-all-props-if-prototype-is-and-uses-this-1-1/index.ts | xml | 2016-10-31T21:02:47 | 2024-08-16T19:47:04 | pulumi | pulumi/pulumi | 20,743 | 119 |
```xml
import {
Button,
FormControl,
Form,
FormGroup,
ControlLabel
} from '@erxes/ui/src/components';
import { ModalFooter } from '@erxes/ui/src/styles/main';
import { IButtonMutateProps, IFormProps } from '@erxes/ui/src/types';
import React, { useState } from 'react';
import { IUom } from '../../types';
import Select from 'react-select';
import { Box } from '@erxes/ui/src/components/step/style';
import { FlexRow } from '@erxes/ui/src/components/filterableList/styles';
import { DaySelector } from './DaySelector';
type Props = {
uom?: IUom;
closeModal?: () => void;
renderButton: (props: IButtonMutateProps) => JSX.Element;
afterSave?: () => void;
modal?: boolean;
extended?: boolean;
};
const SUBSCRIPTION_PERIOD = [
{ label: 'Weekly', value: 'weekly' },
{ label: 'Monthly', value: 'monthly' }
];
const BrandForm = (props: Props) => {
const { uom, closeModal, renderButton, afterSave } = props;
const object = uom || ({} as IUom);
const [subsConfig, setSubsConfig] = useState({
isForSubscription: uom?.isForSubscription,
...(uom?.subscriptionConfig || {})
} as any);
const renderFooter = (formProps: IFormProps) => {
const { values, isSubmitted } = formProps;
if (uom) {
values.id = uom._id;
}
const { isForSubscription, ...subscriptionConfig } = subsConfig;
const updatedValues = {
...values,
isForSubscription,
subscriptionConfig
};
return (
<ModalFooter>
<Button
btnStyle="simple"
type="button"
icon="times-circle"
onClick={closeModal}
>
Cancel
</Button>
{renderButton({
name: 'uom',
values: updatedValues,
isSubmitted,
callback: closeModal || afterSave,
object: uom
})}
</ModalFooter>
);
};
const handleSubsConfigChange = (name, value) => {
setSubsConfig({ ...subsConfig, [name]: value });
};
const renderSubsConfig = (formProps: IFormProps) => {
if (!subsConfig?.isForSubscription) {
return null;
}
return (
<>
<FormGroup>
<ControlLabel required>{'Subscription Period'}</ControlLabel>
<Select
{...formProps}
placeholder={'Select a period'}
options={SUBSCRIPTION_PERIOD as any}
value={
SUBSCRIPTION_PERIOD.find(
({ value }) => subsConfig?.period === value
) as any
}
onChange={({ value }) =>
setSubsConfig({
isForSubscription: subsConfig.isForSubscription,
period: value
})
}
/>
</FormGroup>
{subsConfig.period && (
<FormGroup>
<ControlLabel required>{'Subscription Rule'}</ControlLabel>
<FlexRow>
{[
{ value: 'startPaidDate', label: 'Start From Paid Date' },
{ value: 'fromExpiredDate', label: 'Start from Expired Date' },
{
value: 'fromSpecificDate',
label: 'Start from Specific Date'
}
].map(({ value, label }) => (
<Box
key={value}
selected={subsConfig.rule === value}
onClick={() => handleSubsConfigChange('rule', value)}
glowBorderSelected={true}
>
<span>{label}</span>
</Box>
))}
</FlexRow>
</FormGroup>
)}
{subsConfig.rule === 'fromSpecificDate' && (
<FormGroup>
<ControlLabel required>{'Select Date'}</ControlLabel>
{subsConfig?.period === 'monthly' && (
<p>{`If you select the 31st day, if there is a month with 28,29 or 30 days, it will be the last day of month`}</p>
)}
<DaySelector
type={subsConfig?.period}
onSelect={(value) => handleSubsConfigChange('specificDay', value)}
selectedValue={subsConfig?.specificDay}
/>
</FormGroup>
)}
</>
);
};
const renderContent = (formProps: IFormProps) => {
return (
<>
<FormGroup>
<ControlLabel required={true}>Name</ControlLabel>
<FormControl
{...formProps}
name="name"
defaultValue={object.name}
required={true}
autoFocus={true}
/>
</FormGroup>
<FormGroup>
<ControlLabel required={true}>Code</ControlLabel>
<FormControl
{...formProps}
name="code"
defaultValue={object.code}
required={true}
/>
</FormGroup>
<FormGroup>
<FormControl
{...formProps}
name="isForSubscription"
componentclass="checkbox"
checked={subsConfig?.isForSubscription}
onChange={() =>
handleSubsConfigChange(
'isForSubscription',
!subsConfig.isForSubscription
)
}
/>
<ControlLabel>{'Uom for subscription'}</ControlLabel>
</FormGroup>
{renderSubsConfig(formProps)}
{renderFooter({ ...formProps })}
</>
);
};
return <Form renderContent={renderContent} />;
};
export default BrandForm;
``` | /content/code_sandbox/packages/plugin-products-ui/src/components/config/UomsForm.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 1,199 |
```xml
import React from 'react'
import { create } from 'react-test-renderer'
import CountryPicker from '../src/'
it('CountryPicker can be created', () => {
const picker = create(
<CountryPicker countryCode={'US'} onSelect={() => {}} />,
)
expect(picker).toBeDefined()
})
``` | /content/code_sandbox/__tests__/CountryPicker.test.tsx | xml | 2016-03-03T20:13:50 | 2024-08-05T11:57:19 | react-native-country-picker-modal | xcarpentier/react-native-country-picker-modal | 1,066 | 66 |
```xml
import { screen, fireEvent } from '@testing-library/react';
import { AreaChart } from '../src/components/AreaChart/index';
import { getById, testWithoutWait, isTimezoneSet, forEachTimezone } from '../src/utilities/TestUtility.test';
import { resetIds } from '@fluentui/react';
import { DarkTheme } from '@fluentui/theme-samples';
const env = require('../config/tests');
const { Timezone } = require('../scripts/constants');
const runTest = env === 'TEST' ? describe : describe.skip;
const chart1Points = [
{
x: 20,
y: 9,
},
{
x: 25,
y: 14,
},
{
x: 30,
y: 14,
},
{
x: 35,
y: 23,
},
{
x: 40,
y: 20,
},
{
x: 45,
y: 31,
},
{
x: 50,
y: 29,
},
{
x: 55,
y: 27,
},
{
x: 60,
y: 37,
},
{
x: 65,
y: 51,
},
];
const chart2Points = [
{
x: 20,
y: 21,
},
{
x: 25,
y: 25,
},
{
x: 30,
y: 10,
},
{
x: 35,
y: 10,
},
{
x: 40,
y: 14,
},
{
x: 45,
y: 18,
},
{
x: 50,
y: 9,
},
{
x: 55,
y: 23,
},
{
x: 60,
y: 7,
},
{
x: 65,
y: 55,
},
];
const chart3Points = [
{
x: 20,
y: 30,
},
{
x: 25,
y: 35,
},
{
x: 30,
y: 33,
},
{
x: 35,
y: 40,
},
{
x: 40,
y: 10,
},
{
x: 45,
y: 40,
},
{
x: 50,
y: 34,
},
{
x: 55,
y: 40,
},
{
x: 60,
y: 60,
},
{
x: 65,
y: 40,
},
];
const chartPointsMultiStacked = [
{
legend: 'legend1',
data: chart1Points,
color: 'green',
},
{
legend: 'legend2',
data: chart2Points,
color: 'yellow',
},
{
legend: 'legend3',
data: chart3Points,
color: 'blue',
},
];
const chartPoints = [
{
legend: 'legend1',
data: chart1Points,
color: 'green',
},
];
const chartPointsDarkTheme = [
{
legend: 'legend1',
data: chart1Points,
color: DarkTheme.palette.themePrimary,
},
];
const chartPointsWithoutDefaultColor = [
{
legend: 'legend1',
data: chart1Points,
},
];
export const chartDataMultiStacked = {
chartTitle: 'Area chart multiple example',
lineChartData: chartPointsMultiStacked,
};
export const chartData = {
chartTitle: 'Area chart example',
lineChartData: chartPoints,
};
export const chartDataWithoutDefaultColor = {
chartTitle: 'Area chart without default color example',
lineChartData: chartPointsWithoutDefaultColor,
};
export const chartDataDarkTheme = {
chartTitle: 'Area chart dark theme example',
lineChartData: chartPointsDarkTheme,
};
function sharedBeforeEach() {
resetIds();
}
runTest('_getOpacity', () => {
beforeEach(sharedBeforeEach);
testWithoutWait(
'Should return fill-opacity of 0.7 if chart is not multi-stacked',
AreaChart,
{ data: chartData },
container => {
const areas = getById(container, /graph-areaChart/i);
expect(areas.length).toBe(1);
expect(areas[0].getAttribute('fill-opacity')).toBe('0.7');
},
);
testWithoutWait(
'Should return fill-opacity of 0.7 if chart is multi-stacked',
AreaChart,
{ data: chartDataMultiStacked },
container => {
const areas = getById(container, /graph-areaChart/i);
expect(areas.length).toBe(3);
expect(areas[0].getAttribute('fill-opacity')).toBe('0.7');
},
);
testWithoutWait(
'Should return fill-opacity of 0.7 if legend is highlighted and data is multi-stacked',
AreaChart,
{ data: chartDataMultiStacked },
container => {
const legend = screen.queryByText('legend1');
expect(legend).toBeDefined();
fireEvent.mouseOver(legend!);
// Assert
const areas = getById(container, /graph-areaChart/i);
expect(areas[0].getAttribute('fill-opacity')).toEqual('0.7');
},
);
testWithoutWait(
'Should return fill-opacity of 0.1 if legend 1 is highlighted but legend 2 is not and data is multi-stacked',
AreaChart,
{ data: chartDataMultiStacked },
container => {
const legend1 = screen.queryByText('legend1');
expect(legend1).toBeDefined();
fireEvent.mouseOver(legend1!);
// Assert
const areas = getById(container, /graph-areaChart/i);
expect(areas[1].getAttribute('fill-opacity')).toEqual('0.1');
},
);
});
runTest('_getLineOpacity', () => {
beforeEach(sharedBeforeEach);
testWithoutWait('Should return 1 if chart is not multi-stacked', AreaChart, { data: chartData }, container => {
const areas = getById(container, /line-areaChart/i);
expect(areas.length).toBe(1);
expect(areas[0].getAttribute('opacity')).toBe('1');
});
testWithoutWait(
'Should return 0.3 if chart is multi-stacked and no legend is highlighted',
AreaChart,
{ data: chartDataMultiStacked },
container => {
const areas = getById(container, /line-areaChart/i);
expect(areas.length).toBe(3);
expect(areas[0].getAttribute('opacity')).toBe('0.3');
},
);
testWithoutWait(
'Should return 1 if callout is visible and data is not multi-stacked',
AreaChart,
{ data: chartData },
container => {
// Arrange
const areas = getById(container, /line-areaChart/i);
expect(areas.length).toBe(1);
fireEvent.mouseOver(areas[0]);
// Assert
expect(getById(container, /toolTipcallout/i)).toBeDefined();
expect(areas[0].getAttribute('opacity')).toBe('1');
},
);
testWithoutWait(
'Should return opacity of 0.1 if legend 1 is highlighted, legend 2 is not highlighted and data is multi-stacked',
AreaChart,
{ data: chartDataMultiStacked },
container => {
const legend1 = screen.queryByText('legend1');
expect(legend1).toBeDefined();
fireEvent.mouseOver(legend1!);
// Assert
const areas = getById(container, /line-areaChart/i);
expect(areas.length).toBe(3);
expect(areas[1].getAttribute('opacity')).toEqual('0.1');
},
);
testWithoutWait(
'Should return opacity of 0 if legend 1 is highlighted, legend 2 is active and data is multi-stacked',
AreaChart,
{ data: chartDataMultiStacked },
container => {
const legend1 = screen.queryByText('legend1');
expect(legend1).toBeDefined();
fireEvent.mouseOver(legend1!);
const legend2 = screen.queryByText('legend2');
expect(legend2).toBeDefined();
fireEvent.click(legend2!);
// Assert
const areas = getById(container, /line-areaChart/i);
expect(areas.length).toBe(3);
expect(areas[1].getAttribute('opacity')).toEqual('0');
},
);
});
runTest('_updateCircleFillColor', () => {
beforeEach(sharedBeforeEach);
testWithoutWait(
'Should return the line color if neither the nearest circle nor the active point is highlighted',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
// Assert
points.forEach(point => {
expect(point.getAttribute('fill')).toEqual('green');
});
},
);
testWithoutWait(
'Should return white if the nearest circle is highlighted and the circle is not clicked',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.mouseOver(points[6]);
expect(points[6].getAttribute('fill')).toEqual('#ffffff');
},
);
testWithoutWait(
'Should return the line color if the nearest circle is highlighted and the circle is clicked',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.mouseOver(points[0]);
fireEvent.click(points[0]);
expect(points[0].getAttribute('fill')).toEqual('green');
},
);
testWithoutWait(
'Should return white if the active point is highlighted and the circle is not clicked',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.focus(points[0]);
expect(points[0].getAttribute('fill')).toEqual('#ffffff');
},
);
testWithoutWait(
'Should return the line color if the active point is highlighted but the circle is clicked',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.mouseOver(points[0]);
fireEvent.click(points[0]);
fireEvent.mouseOver(points[1]);
fireEvent.click(points[1]);
expect(points[1].getAttribute('fill')).toEqual('green');
},
);
});
runTest('_getCircleRadius', () => {
beforeEach(sharedBeforeEach);
testWithoutWait(
'Should return 1 if isCircleClicked is true and nearestCircleToHighlight matches xDataPoint',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.mouseOver(points[1]);
fireEvent.click(points[0]);
// nearest circle to highlight has index 6
// activePoint does not matche the point circle whose radius is checked
expect(points[6].getAttribute('r')).toEqual('1');
},
);
testWithoutWait(
'Should return circleRadius if activePoint matches the circle',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.focus(points[0]);
// activePoint matches the point circle whose radius is checked
expect(points[0].getAttribute('r')).toEqual('8');
},
);
testWithoutWait(
'Should return 0 if !isCircleClicked, (activePoint != circle) and (nearestCircleToHighlight != xDataPoint)',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.focus(points[0]);
expect(points[1].getAttribute('r')).toEqual('0');
},
);
testWithoutWait(
'Should return 0 if isCircleClicked is true but nearestCircleToHighlight does not match xDataPoint',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.click(points[0]);
fireEvent.mouseOver(points[1]);
expect(points[2].getAttribute('r')).toEqual('0');
},
);
testWithoutWait(
'Should return 0 if nearestCircleToHighlight does not match xDataPoint and activePoint is not set',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.mouseOver(points[1]);
expect(points[2].getAttribute('r')).toEqual('0');
},
);
testWithoutWait(
'Should return circleRadius if nearestCircleToHighlight matches xDataPoint and activePoint is not set',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.mouseOver(points[6]);
expect(points[6].getAttribute('r')).toEqual('8');
},
);
testWithoutWait(
'Should return circleRadius if nearestCircleToHighlight matches xDataPoint, activePoint matches another circle',
AreaChart,
{ data: chartData },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
fireEvent.focus(points[0]);
fireEvent.mouseOver(points[6]);
expect(points[6].getAttribute('r')).toEqual('8');
},
);
});
runTest('_addDefaultColors', () => {
beforeEach(sharedBeforeEach);
testWithoutWait(
'Should return an array with the same length as the input array',
AreaChart,
{ data: chartDataWithoutDefaultColor },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
points.forEach(point => {
expect(point).toHaveAttribute('fill');
expect(point.getAttribute('fill')).toEqual('#637cef');
});
},
);
testWithoutWait('Should use the provided color if it exists', AreaChart, { data: chartData }, container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
points.forEach(point => {
expect(point).toHaveAttribute('fill');
expect(point.getAttribute('fill')).toEqual('green');
});
});
testWithoutWait(
'Should use the inverted theme if the isInverted property is true and colors are not provided',
AreaChart,
{ data: chartDataWithoutDefaultColor, theme: { ...DarkTheme, isInverted: true } },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
points.forEach(point => {
expect(point).toHaveAttribute('fill');
expect(point.getAttribute('fill')).toEqual('#637cef');
});
},
);
testWithoutWait(
'Should use the inverted theme if the isInverted property is true and colors are provided',
AreaChart,
{ data: chartDataDarkTheme, theme: { ...DarkTheme, isInverted: true } },
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(10);
points.forEach(point => {
expect(point).toHaveAttribute('fill');
expect(point.getAttribute('fill')).toEqual('#2899f5');
});
},
);
});
runTest('_getAriaLabel', () => {
beforeEach(sharedBeforeEach);
testWithoutWait(
'Should return the correct aria label for a point with xAxisCalloutData and yAxisCalloutData',
AreaChart,
{
data: {
chartTitle: 'Area chart arial label example',
lineChartData: [
{
legend: 'Legend 1',
data: [
{
x: new Date(2022, 0, 1),
y: 10,
xAxisCalloutData: 'Jan 1, 2022',
yAxisCalloutData: '10 units',
callOutAccessibilityData: {
ariaLabel: 'Custom aria label',
},
},
],
},
],
},
},
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(1);
expect(points[0].getAttribute('aria-label')).toEqual('Custom aria label');
},
);
forEachTimezone((tzName, tzIdentifier) => {
testWithoutWait(
`Should return the correct aria label for a point with formatted x value and y value in ${tzName} timezone`,
AreaChart,
{
data: {
chartTitle: 'Area chart arial label example',
lineChartData: [
{
legend: 'Legend 1',
data: [
{
x: new Date('2022-01-01T00:00Z'),
y: 10,
},
],
},
],
},
},
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(1);
expect(points[0].getAttribute('aria-label')).toMatchSnapshot();
},
undefined,
undefined,
!(isTimezoneSet(tzIdentifier) && env === 'TEST'),
);
testWithoutWait(
`Should return the correct aria label for a point with formatted x value and yAxisCalloutData in ${tzName} timezone`,
AreaChart,
{
data: {
chartTitle: 'Area chart arial label example',
lineChartData: [
{
legend: 'Legend 1',
data: [
{
x: new Date('2022-01-01T00:00Z'),
y: 10,
yAxisCalloutData: '10 units',
},
],
},
],
},
},
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(1);
expect(points[0].getAttribute('aria-label')).toMatchSnapshot();
},
undefined,
undefined,
!(isTimezoneSet(tzIdentifier) && env === 'TEST'),
);
testWithoutWait(
`Should return the correct aria label for a point with formatted x value and xAxisCalloutData in ${tzName} timezone`,
AreaChart,
{
data: {
chartTitle: 'Area chart arial label example',
lineChartData: [
{
legend: 'Legend 1',
data: [
{
x: new Date('2022-01-01T00:00Z'),
y: 10,
xAxisCalloutData: 'Jan 1, 2022',
},
],
},
],
},
},
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(1);
expect(points[0].getAttribute('aria-label')).toMatchSnapshot();
},
undefined,
undefined,
!(isTimezoneSet(tzIdentifier) && env === 'TEST'),
);
});
testWithoutWait(
'Should return the correct aria label for a point with callOutAccessibilityData but no xAxis or yAxis CalloutData',
AreaChart,
{
data: {
chartTitle: 'Area chart arial label example',
lineChartData: [
{
legend: 'Legend 1',
data: [
{
x: 1,
y: 10,
callOutAccessibilityData: {
ariaLabel: 'Custom aria label',
},
},
],
},
],
},
},
container => {
const points = getById(container, /circle/i);
expect(points).toHaveLength(1);
expect(points[0].getAttribute('aria-label')).toEqual('Custom aria label');
},
);
});
``` | /content/code_sandbox/packages/react-charting/UnitTests/AreaChartUT.test.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 4,363 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="path_to_url">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug-c++17|Win32">
<Configuration>Debug-c++17</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug-c++17|x64">
<Configuration>Debug-c++17</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug-static|Win32">
<Configuration>Debug-static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug-static|x64">
<Configuration>Debug-static</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="DebugVLD|Win32">
<Configuration>DebugVLD</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="DebugVLD|x64">
<Configuration>DebugVLD</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release-c++17|Win32">
<Configuration>Release-c++17</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release-c++17|x64">
<Configuration>Release-c++17</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release-static|Win32">
<Configuration>Release-static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release-static|x64">
<Configuration>Release-static</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="vc14-Debug|Win32">
<Configuration>vc14-Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="vc14-Debug|x64">
<Configuration>vc14-Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="vc14-Release|Win32">
<Configuration>vc14-Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="vc14-Release|x64">
<Configuration>vc14-Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\test\stress\main.cpp" />
<ClCompile Include="..\..\..\test\stress\queue\intrusive_push_pop.cpp" />
<ClCompile Include="..\..\..\test\stress\queue\push_pop.cpp">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-static|Win32'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|Win32'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|Win32'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='DebugVLD|Win32'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-static|Win32'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-c++17|Win32'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='vc14-Release|Win32'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-static|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='DebugVLD|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-static|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release-c++17|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='vc14-Release|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\test\stress\queue\intrusive_queue_type.h" />
<ClInclude Include="..\..\..\test\stress\queue\print_stat.h" />
<ClInclude Include="..\..\..\test\stress\queue\queue_type.h" />
<ClInclude Include="..\..\..\test\stress\queue\std_queue.h" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{EACBF8EC-C58F-4CC8-9435-21BE9812287A}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>stress_queue_pushpop</RootNamespace>
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
<ProjectName>stress-queue-pushpop</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtestd.lib;stress-framework_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>CDS_BUILD_STATIC_LIB;_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtestd.lib;stress-framework_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtestd.lib;stress-framework_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtestd.lib;stress-framework_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtestd.lib;stress-framework_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtestd.lib;stress-framework_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>CDS_BUILD_STATIC_LIB;_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtestd.lib;stress-framework_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtestd.lib;stress-framework_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtestd.lib;stress-framework_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtestd.lib;stress-framework_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtest.lib;stress-framework.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>CDS_BUILD_STATIC_LIB;_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtest.lib;stress-framework.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtest.lib;stress-framework.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtest.lib;stress-framework.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtest.lib;stress-framework.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>CDS_BUILD_STATIC_LIB;_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtest.lib;stress-framework.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtest.lib;stress-framework.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(SolutionDir)..\..\..\test\stress;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtest.lib;stress-framework.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
``` | /content/code_sandbox/extern/libcds/projects/Win/vc141/stress-queue-pushpop.vcxproj | xml | 2016-03-16T06:10:37 | 2024-08-16T14:13:51 | firebird | FirebirdSQL/firebird | 1,223 | 12,168 |
```xml
<!--
***********************************************************************************************
Xamarin.TVOS.CSharp.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
This file imports the version- and platform-specific targets for the project importing
this file. This file also defines targets to produce an error if the specified targets
file does not exist, but the project is built anyway (command-line or IDE build).
***********************************************************************************************
-->
<Project DefaultTargets="Build" xmlns="path_to_url">
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets"
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets')"/>
<PropertyGroup>
<!-- Version/fx properties -->
<TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">Xamarin.TVOS</TargetFrameworkIdentifier>
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v1.0</TargetFrameworkVersion>
<!-- Enable nuget package conflict resolution -->
<!-- This must be set before importing Microsoft.CSharp.targets -->
<ResolveAssemblyConflicts>true</ResolveAssemblyConflicts>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" Condition="'$(UsingAppleNETSdk)' != 'true'" />
<Import Project="Xamarin.TVOS.Common.targets" />
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets"
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets')"/>
</Project>
``` | /content/code_sandbox/msbuild/Xamarin.Shared/Xamarin.TVOS.CSharp.targets | xml | 2016-04-20T18:24:26 | 2024-08-16T13:29:19 | xamarin-macios | xamarin/xamarin-macios | 2,436 | 368 |
```xml
import * as React from 'react';
import styles from './DownloadMultipleDocuments.module.scss';
import { IDownloadMultipleDocumentsProps } from './IDownloadMultipleDocumentsProps';
import { MarqueeSelection, PrimaryButton } from 'office-ui-fabric-react';
import * as JSZip from 'jszip';
import { DetailsList, DetailsListLayoutMode, Selection, SelectionMode } from '@fluentui/react/lib/DetailsList';
import { SPHttpClient, SPHttpClientResponse } from '@microsoft/sp-http';
const DownloadMultipleDocuments: React.FunctionComponent<IDownloadMultipleDocumentsProps> = ({context,hasTeamsContext, listId}) => {
const [files,setFiles] = React.useState<any[]>([]);
const [items, setItems] = React.useState<any[]>([]);
const columns = [
{
key: 'name',
name: 'Name',
fieldName: 'Name',
minWidth: 50,
},
{
key: 'modified',
name: 'Last Modified',
fieldName: 'Modified',
minWidth: 200
},
{
key: 'size',
name: 'File Size',
fieldName: 'Size',
minWidth: 200
}
];
const getfileContent = (url: string): Promise<any> => {
return context.spHttpClient.get(
url,
SPHttpClient.configurations.v1
)
.then((response: SPHttpClientResponse) => {
return response.arrayBuffer();
})
.catch((error: any) => {
throw error;
});
}
const getDocuments = (): Promise<any> => {
return context.spHttpClient.get(
`${context.pageContext.web.absoluteUrl}/_api/web/Lists/GetById('${listId}')/items?$select=Title,Modified,UniqueId,File/Name,File/Size,File/Length&$expand=File`,
SPHttpClient.configurations.v1
)
.then((response: SPHttpClientResponse) => {
if (!response.ok) {
return response.json()
.then((json: any) => { throw Error(json.error ? json.error.message : response.status.toString()); });
}
return response.json();
})
.then((json: any) => {
const returnValue = json.value || json;
return returnValue;
})
.catch((error: any) => {
throw error;
});
}
const convertToKb = (bytes:any) => {
let marker = 1024; // Change to 1000 if required
let decimal = 3; // Change as required
let kiloBytes = marker; // One Kilobyte is 1024 bytes
let megaBytes = marker * marker; // One MB is 1024 KB
let gigaBytes = marker * marker * marker; // One GB is 1024 MB
// return bytes if less than a KB
if(bytes < kiloBytes) return bytes + " Bytes";
// return KB if less than a MB
else if(bytes < megaBytes) return(bytes / kiloBytes).toFixed(decimal) + " KB";
// return MB if less than a GB
else if(bytes < gigaBytes) return(bytes / megaBytes).toFixed(decimal) + " MB";
// return GB if less than a TB
else return(bytes / gigaBytes).toFixed(decimal) + " GB";
}
React.useEffect(() => {
getDocuments().then((data:any[]) => {
const documents = data.filter(d => d.File?.Name).map(d => ({
Name: d.File.Name,
Size: `${convertToKb(d.File.Length)}`,
Modified: d.Modified,
UniqueId: d.UniqueId
}));
setItems(documents);
}).catch(error => console.log(error));
},[]);
const downloadFiles = (): void => {
if(files.length) {
const zip = new JSZip();
const promises = files.map(document => {
const URL = `${context.pageContext.web.absoluteUrl}/_api/web/GetFileByServerRelativeUrl('${context.pageContext.web.serverRelativeUrl}/Shared Documents/${document}')/OpenBinaryStream()`;
return getfileContent(URL).then((content) => {
zip.file(document ,content);
})
.catch(error => console.log(error))
});
Promise.all(promises).then(result => {
zip.generateAsync({type:'blob'}).then(function(content) {
const blobUrl = URL.createObjectURL(content);
window.open(blobUrl,'_blank');
}).catch(error => console.log(error))
}).catch(error => console.log(error));
}
};
const _getKey = (item: any, index?:number): string => {
return item.key;
}
const selection = new Selection({
onSelectionChanged: () => {
setFiles(
selection.getSelectedCount() > 0 ? selection.getSelection().map(d => d.Name) : []
);
},
getKey: _getKey
});
const buttonText = files.length ? `Download ${files.length} files` : 'Download';
return (
<section className={`${styles.downloadMultipleDocuments} ${hasTeamsContext ? styles.teams : ''}`}>
<PrimaryButton onClick={downloadFiles} text={buttonText} disabled={files.length <1} />
<div>
<MarqueeSelection selection={selection}>
<DetailsList
items={items}
columns={columns}
selectionMode={SelectionMode.multiple}
setKey="multiple"
layoutMode={DetailsListLayoutMode.justified}
isHeaderVisible={true}
selection={selection}
selectionPreservedOnEmptyClick={true}
getKey={_getKey}
enterModalSelectionOnTouch={true}
ariaLabelForSelectionColumn="Toggle selection"
ariaLabelForSelectAllCheckbox="Toggle selection for all items"
checkButtonAriaLabel="select row"
/>
</MarqueeSelection>
</div>
</section>
);
}
export default DownloadMultipleDocuments;
``` | /content/code_sandbox/samples/react-download-multiple-documents/src/webparts/downloadMultipleDocuments/components/DownloadMultipleDocuments.tsx | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 1,275 |
```xml
import moment from 'moment';
import classnames from 'classnames';
import React from 'react';
import { PropTypes, DateUtils } from 'mailspring-exports';
import { MiniMonthView } from 'mailspring-component-kit';
type DatePickerProps = {
value?: number;
onChange?: (...args: any[]) => any;
dateFormat?: string;
};
type DatePickerState = {
focused: boolean;
};
export class DatePicker extends React.Component<DatePickerProps, DatePickerState> {
static displayName = 'DatePicker';
static contextTypes = {
parentTabGroup: PropTypes.object,
};
static defaultProps = {
dateFormat: null, // Default to valueOf
onChange: () => {},
};
constructor(props) {
super(props);
this.state = { focused: false };
}
value() {
return this.props.value ? moment(this.props.value) : null;
}
_onChange(newMoment) {
if (this.props.dateFormat) {
return this.props.onChange(newMoment.format(this.props.dateFormat));
}
return this.props.onChange(newMoment.valueOf());
}
_moveDay(numDays) {
const val = this.value();
const day = val.dayOfYear();
this._onChange(val.dayOfYear(day + numDays));
}
_onKeyDown = event => {
if (event.key === 'ArrowLeft') {
this._moveDay(-1);
} else if (event.key === 'ArrowRight') {
this._moveDay(1);
} else if (event.key === 'ArrowUp') {
this._moveDay(-7);
} else if (event.key === 'ArrowDown') {
this._moveDay(7);
} else if (event.key === 'Enter') {
this.context.parentTabGroup.shiftFocus(1);
}
};
_onFocus = () => {
this.setState({ focused: true });
};
_onBlur = () => {
this.setState({ focused: false });
};
_onSelectDay = newTimestamp => {
this._onChange(moment(newTimestamp));
this.context.parentTabGroup.shiftFocus(1);
};
_renderMiniMonthView() {
if (this.state.focused) {
return (
<div className="mini-month-view-wrap">
<MiniMonthView onChange={this._onSelectDay} value={this.value()} />
</div>
);
}
return false;
}
render() {
const className = classnames({
'day-text': true,
focused: this.state.focused,
});
const val = this.value();
let dayTxt = 'Click to set date';
if (val) {
dayTxt = this.value().format(DateUtils.DATE_FORMAT_llll_NO_TIME);
}
return (
<div
tabIndex={0}
className="date-picker"
onKeyDown={this._onKeyDown}
onFocus={this._onFocus}
onBlur={this._onBlur}
>
<div className={className}>{dayTxt}</div>
{this._renderMiniMonthView()}
</div>
);
}
}
``` | /content/code_sandbox/app/src/components/date-picker.tsx | xml | 2016-10-13T06:45:50 | 2024-08-16T18:14:37 | Mailspring | Foundry376/Mailspring | 15,331 | 655 |
```xml
import {
type AttachmentForScreenReaderMiddleware,
type AttachmentMiddleware,
type StyleOptions
} from 'botframework-webchat-api';
import { singleToArray, warnOnce, type OneOrMany } from 'botframework-webchat-core';
import React, { type ReactNode } from 'react';
import AdaptiveCardsComposer from './adaptiveCards/AdaptiveCardsComposer';
import { type AdaptiveCardsStyleOptions } from './adaptiveCards/AdaptiveCardsStyleOptions';
import { type AdaptiveCardsPackage } from './types/AdaptiveCardsPackage';
import { type StrictFullBundleStyleOptions } from './types/FullBundleStyleOptions';
import useComposerProps from './useComposerProps';
type AddFullBundleProps = Readonly<{
adaptiveCardsHostConfig?: any;
adaptiveCardsPackage?: AdaptiveCardsPackage;
attachmentForScreenReaderMiddleware?: OneOrMany<AttachmentForScreenReaderMiddleware>;
attachmentMiddleware?: OneOrMany<AttachmentMiddleware>;
children: ({ extraStyleSet }: { extraStyleSet: any }) => ReactNode;
renderMarkdown?: (
markdown: string,
newLineOptions: { markdownRespectCRLF: boolean },
linkOptions: { externalLinkAlt: string }
) => string;
styleOptions?: StyleOptions & AdaptiveCardsStyleOptions;
styleSet?: any & { options: StrictFullBundleStyleOptions };
/** @deprecated Rename to "adaptiveCardsHostConfig" */
adaptiveCardHostConfig?: any;
}>;
const adaptiveCardHostConfigDeprecation = warnOnce(
'"adaptiveCardHostConfig" is deprecated. Please use "adaptiveCardsHostConfig" instead. "adaptiveCardHostConfig" will be removed on or after 2022-01-01.'
);
const AddFullBundle = ({
adaptiveCardHostConfig,
adaptiveCardsHostConfig,
adaptiveCardsPackage,
attachmentForScreenReaderMiddleware,
attachmentMiddleware,
children,
renderMarkdown,
styleOptions,
styleSet
}: AddFullBundleProps) => {
adaptiveCardHostConfig && adaptiveCardHostConfigDeprecation();
const patchedProps = useComposerProps({
attachmentForScreenReaderMiddleware: singleToArray(attachmentForScreenReaderMiddleware),
attachmentMiddleware: singleToArray(attachmentMiddleware),
renderMarkdown,
styleOptions,
styleSet
});
return (
<AdaptiveCardsComposer
adaptiveCardsHostConfig={adaptiveCardHostConfig || adaptiveCardsHostConfig}
adaptiveCardsPackage={adaptiveCardsPackage}
>
{children(patchedProps)}
</AdaptiveCardsComposer>
);
};
export default AddFullBundle;
export type { AddFullBundleProps };
``` | /content/code_sandbox/packages/bundle/src/AddFullBundle.tsx | xml | 2016-07-07T23:16:57 | 2024-08-16T00:12:37 | BotFramework-WebChat | microsoft/BotFramework-WebChat | 1,567 | 543 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const ProFootballIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M1536 0q106 0 199 40t163 109 110 163 40 200q0 212-55 408t-155 367-240 311-311 240-367 155-408 55q-106 0-199-40t-163-109-110-163-40-200q0-212 55-408t155-367 240-311 311-240 367-155 408-55zM512 1920q194 0 373-50t336-142 286-221 220-285 142-336 51-374q0-79-30-149t-82-122-123-83-149-30q-194 0-373 50T827 320 541 541 321 826t-142 336-51 374q0 80 30 149t82 122 122 83 150 30zm749-1325l192 192-90 90-51-50-101 101 50 51-90 90-51-51-102 102 51 51-90 90-51-50-101 101 50 51-90 90-192-192 90-90 51 50 101-101-50-51 90-90 51 51 102-102-51-51 90-90 51 50 101-101-50-51 90-90z" />
</svg>
),
displayName: 'ProFootballIcon',
});
export default ProFootballIcon;
``` | /content/code_sandbox/packages/react-icons-mdl2/src/components/ProFootballIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 422 |
```xml
import * as Navi from 'navi';
import React from 'react';
import ReactDOM from 'react-dom';
import { NaviProvider } from 'react-navi';
import App from './App';
import routes from './routes';
it('renders without crashing', () => {
const div = document.createElement('div');
const navigation = Navi.createMemoryNavigation({
routes,
url: '/'
});
ReactDOM.render(
<NaviProvider navigation={navigation}>
<App />
</NaviProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
``` | /content/code_sandbox/packages/navi-scripts/template-typescript/src/App.test.tsx | xml | 2016-09-24T07:44:26 | 2024-07-11T14:52:12 | navi | frontarm/navi | 2,070 | 123 |
```xml
import { Team, User } from "@server/models";
import { Event, TeamEvent, UserEvent } from "@server/types";
import UploadTeamAvatarTask from "../tasks/UploadTeamAvatarTask";
import UploadUserAvatarTask from "../tasks/UploadUserAvatarTask";
import BaseProcessor from "./BaseProcessor";
export default class AvatarProcessor extends BaseProcessor {
static applicableEvents: Event["name"][] = ["users.create", "teams.create"];
async perform(event: UserEvent | TeamEvent) {
// The uploads are performed in a separate task to allow for retrying in the
// case of failures as it involves network calls to third party services.
if (event.name === "users.create") {
const user = await User.findByPk(event.userId, {
rejectOnEmpty: true,
});
if (user.avatarUrl) {
await UploadUserAvatarTask.schedule({
userId: event.userId,
avatarUrl: user.avatarUrl,
});
}
}
if (event.name === "teams.create") {
const team = await Team.findByPk(event.teamId, {
rejectOnEmpty: true,
});
if (team.avatarUrl) {
await UploadTeamAvatarTask.schedule({
teamId: event.teamId,
avatarUrl: team.avatarUrl,
});
}
}
}
}
``` | /content/code_sandbox/server/queues/processors/AvatarProcessor.ts | xml | 2016-05-22T21:31:47 | 2024-08-16T19:57:22 | outline | outline/outline | 26,751 | 278 |
```xml
import type { FC } from 'react';
import { Icon, type IconName } from '@proton/components/index';
import clsx from '@proton/utils/clsx';
import './CardIcon.scss';
type Props = { className?: string; icon: IconName };
export const CardIcon: FC<Props> = ({ className, icon }) => (
<div className={clsx('pass-card-icon flex items-center rounded-sm color-strong p-0.5', className)}>
<Icon name={icon} />
</div>
);
``` | /content/code_sandbox/packages/pass/components/Layout/Card/CardIcon.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 111 |
```xml
import * as React from "react";
import { toUpper } from "lodash";
import moment from "moment";
import {
Customizer,
FontIcon,
IStackTokens,
Label,
mergeStyleSets,
Stack,
Text
} from "office-ui-fabric-react";
import strings from "RestaurantMenuWebPartStrings";
import { DisplayMode } from "@microsoft/sp-core-library";
import { WebPartTitle } from "@pnp/spfx-controls-react";
import { Placeholder } from "@pnp/spfx-controls-react/lib/Placeholder";
import { EWeekdays } from "./EWeekDays";
import { IRestaurantMenuProps } from "./IRestaurantMenuProps";
import { MenuDetail } from "./MenuDetail";
const stackTokens: IStackTokens = {
childrenGap: 10,
};
// Component Styles
const stackStyles = {
root: {
width: "100%",
},
};
export const RestaurantMenu: React.FunctionComponent<IRestaurantMenuProps> = (
props: IRestaurantMenuProps
) => {
const [monday, setMonday] = React.useState<boolean>(false);
const [tuesday, setTuesday] = React.useState<boolean>(false);
const [wednesday, setWednesday] = React.useState<boolean>(false);
const [thursday, setThursday] = React.useState<boolean>(false);
const [friday, setFriday] = React.useState<boolean>(false);
const [showMenuDetails, setShowMenuDetails] = React.useState<boolean>(false);
const [showMenuForDay, setShowMenuForDay] = React.useState<EWeekdays>( () =>
{
if ( moment().isoWeekday() === EWeekdays.Sunday || moment().isoWeekday() === EWeekdays.Saturday ) {
return (EWeekdays.Friday);
}else{
return moment().isoWeekday();
}
}
);
const styleClasses = mergeStyleSets({
menuIcon: {
fontSize: 18,
},
webPartTitle: {
marginBottom: 0,
},
stylContainerDetails: {
marginTop: 25,
display: "grid",
justifyContent: "stretch",
alignItems: "center",
gridTemplateColumns: "repeat( auto-fit, minmax(45px, 1fr) )",
gridTemplateRows: "auto",
},
separator: {
borderBottomStyle: "solid",
borderWidth: 1,
borderBottomColor: props.themeVariant.palette.themeLighter,
},
styleIcon: {
maxWidth: 44,
minWidth: 44,
minHeight: 30,
height: 30,
borderColor: props.themeVariant.palette.themePrimary,
borderRightWidth: 0,
borderRightStyle: "none",
borderLeftWidth: 1,
borderLeftStyle: "solid",
borderTopWidth: 1,
borderTopStyle: "solid",
borderBottomWidth: 1,
borderBottomStyle: "solid",
display: "flex",
alignItems: "center",
justifyContent: "center",
},
listContainer: {
maxWidth: "100%",
overflowY: "auto",
marginTop: 0,
padding: 25,
boxShadow: props.showBox
? "0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1)"
: "",
},
linkButtonStyle: {
minWidth: 45,
height: 32,
display: "flex",
alignItems: "center",
justifyContent: "center",
fontWeight: 600,
backgroundColor: props.themeVariant.palette.neutralLighter,
"&:not(:last-child)": {
marginRight: 5,
},
":hover": {
backgroundColor: props.themeVariant.palette.themePrimary,
color: props.themeVariant.palette.white,
cursor: "pointer",
},
},
linkButtonActiveStyle: {
backgroundColor: props.themeVariant.palette.themePrimary,
color: props.themeVariant.palette.white,
},
});
const _weekDescription = `${moment().isoWeekday(1).format("Do")} ${toUpper(
moment().isoWeekday(1).format("MMMM")
)} to ${moment().isoWeekday(5).format("Do")} ${toUpper(
moment().isoWeekday(5).format("MMMM")
)}`;
React.useEffect(() => {
(async () => {
setMonday(false);
setTuesday(false);
setWednesday(false);
setThursday(false);
setFriday(false);
setShowMenuForDay(undefined);
try {
let _currentDay = moment().isoWeekday();
switch (_currentDay) {
case EWeekdays.Monday:
setShowMenuForDay(EWeekdays.Monday);
setMonday(true);
break;
case EWeekdays.Tuesday:
setShowMenuForDay(EWeekdays.Tuesday);
setTuesday(true);
break;
case EWeekdays.Wednesday:
setShowMenuForDay(EWeekdays.Wednesday);
setWednesday(true);
break;
case EWeekdays.Thursday:
setShowMenuForDay(EWeekdays.Thursday);
setThursday(true);
break;
case EWeekdays.Friday:
setShowMenuForDay(EWeekdays.Friday);
setFriday(true);
break;
case EWeekdays.Saturday:
setShowMenuForDay(EWeekdays.Friday);
setFriday(true);
break;
case EWeekdays.Sunday:
setShowMenuForDay(EWeekdays.Friday);
setFriday(true);
break;
}
} catch (error) {
console.log(error);
}
})();
}, [props.listId, props.site]);
if ( (!props.listId ||props.listId.length === 0) && props.site.length === 0) {
return (
<Placeholder
iconName="Edit"
iconText={strings.PlaceHolderIconTextLabel}
description={strings.PlaceholderDescription}
buttonLabel={strings.PlaceholderButtonLabel}
hideButton={props.displayMode === DisplayMode.Read}
onConfigure={() => {
props.propertyPanel.open();
}}
/>
);
}
return (
<>
<Customizer settings={{ theme: props.themeVariant }}>
<WebPartTitle
displayMode={props.displayMode}
title={props.title}
themeVariant={props.themeVariant}
updateProperty={props.updateProperty}
className={styleClasses.webPartTitle}
/>
<div className={styleClasses.listContainer}>
<Stack tokens={stackTokens}>
<Stack
horizontal
verticalAlign="center"
horizontalAlign="center"
tokens={{ childrenGap: 10 }}
styles={{
root: {
backgroundColor: props.themeVariant.palette.neutralLight,
width: "100%",
paddingRight: 10,
paddingLeft: 10,
minHeight: 32,
},
}}
>
<FontIcon
iconName="ContextMenu"
className={styleClasses.menuIcon}
></FontIcon>
<Text variant="mediumPlus" styles={{ root: { fontWeight: 600 } }}>
MENU
</Text>
</Stack>
<div className={styleClasses.separator}></div>
<Label
styles={{
root: {
fontSize: props.themeVariant.fonts.mediumPlus.fontSize,
color: props.themeVariant.palette.themePrimary,
textAlign: "center",
verticalAlign: "center",
fontWeight: 600,
marginBottom: 20,
},
}}
>
{_weekDescription}
</Label>
<div className={styleClasses.stylContainerDetails}>
<div
className={
monday
? `${styleClasses.linkButtonStyle} ${styleClasses.linkButtonActiveStyle} `
: styleClasses.linkButtonStyle
}
onClick={(ev) => {
ev.preventDefault();
setShowMenuForDay(EWeekdays.Monday);
setMonday(true);
setTuesday(false);
setWednesday(false);
setThursday(false);
setFriday(false);
}}
>
MON
</div>
<div
className={
tuesday
? `${styleClasses.linkButtonStyle} ${styleClasses.linkButtonActiveStyle} `
: styleClasses.linkButtonStyle
}
onClick={(ev) => {
ev.preventDefault();
setShowMenuForDay(EWeekdays.Tuesday);
setMonday(false);
setTuesday(true);
setWednesday(false);
setThursday(false);
setFriday(false);
}}
>
TUE
</div>
<div
className={
wednesday
? `${styleClasses.linkButtonStyle} ${styleClasses.linkButtonActiveStyle} `
: styleClasses.linkButtonStyle
}
onClick={(ev) => {
ev.preventDefault();
setShowMenuForDay(EWeekdays.Wednesday);
setMonday(false);
setTuesday(false);
setWednesday(true);
setThursday(false);
setFriday(false);
}}
>
WED
</div>
<div
className={
thursday
? `${styleClasses.linkButtonStyle} ${styleClasses.linkButtonActiveStyle} `
: styleClasses.linkButtonStyle
}
onClick={(ev) => {
ev.preventDefault();
setShowMenuForDay(EWeekdays.Thursday);
setMonday(false);
setTuesday(false);
setWednesday(false);
setThursday(true);
setFriday(false);
}}
>
THU
</div>
<div
className={
friday
? `${styleClasses.linkButtonStyle} ${styleClasses.linkButtonActiveStyle} `
: styleClasses.linkButtonStyle
}
onClick={(ev) => {
ev.preventDefault();
setShowMenuForDay(EWeekdays.Friday);
setMonday(false);
setTuesday(false);
setWednesday(false);
setThursday(false);
setFriday(true);
}}
>
FRI
</div>
</div>
<div style={{ paddingTop: 15 }}>
{props.listId && props.site[0].url && (
<MenuDetail dayOfWeek={showMenuForDay} {...props}></MenuDetail>
)}
</div>
</Stack>
</div>
</Customizer>
</>
);
};
``` | /content/code_sandbox/samples/react-restaurant-menu/src/webparts/restaurantMenu/components/RestaurantMenu.tsx | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 2,200 |
```xml
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
import { expect } from "chai";
import { applyChange } from "../../src/common/utilities/utils";
describe("utils", () => {
describe(".applyChange(from: any, to: any): any", () => {
it("should return the to value for non-object values of from and to", () => {
expect(applyChange({ a: "b" }, null)).to.eq(null);
expect(applyChange(null, { a: "b" })).to.deep.equal({ a: "b" });
expect(applyChange(23, null)).to.be.null;
});
it("should return the merged value of two objects", () => {
const from = { a: { b: "foo", c: 23, d: 444 }, d: { e: 42 } };
const to: any = { a: { b: "bar", c: null }, d: null, e: { f: "g" } };
const result = { a: { b: "bar", d: 444 }, e: { f: "g" } };
expect(applyChange(from, to)).to.deep.equal(result);
});
});
});
``` | /content/code_sandbox/spec/v1/utils.spec.ts | xml | 2016-09-22T23:13:54 | 2024-08-16T17:59:09 | firebase-functions | firebase/firebase-functions | 1,015 | 473 |
```xml
import {showErrorToast} from './modules/toast.ts';
// path_to_url#htmx
import 'idiomorph/dist/idiomorph-ext.js';
// path_to_url#config
window.htmx.config.requestClass = 'is-loading';
window.htmx.config.scrollIntoViewOnBoost = false;
// path_to_url#htmx:sendError
document.body.addEventListener('htmx:sendError', (event) => {
// TODO: add translations
showErrorToast(`Network error when calling ${event.detail.requestConfig.path}`);
});
// path_to_url#htmx:responseError
document.body.addEventListener('htmx:responseError', (event) => {
// TODO: add translations
showErrorToast(`Error ${event.detail.xhr.status} when calling ${event.detail.requestConfig.path}`);
});
``` | /content/code_sandbox/web_src/js/htmx.ts | xml | 2016-11-01T02:13:26 | 2024-08-16T19:51:49 | gitea | go-gitea/gitea | 43,694 | 169 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="path_to_url">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/import_export_item_background_shadow_light" />
<corners android:radius="@dimen/message_bubble_corner_radius" />
</shape>
</item>
<item android:bottom="@dimen/message_bubble_shadow_distance">
<shape>
<solid android:color="@color/import_export_item_background_light" />
<corners android:radius="@dimen/message_bubble_corner_radius" />
</shape>
</item>
</layer-list>
``` | /content/code_sandbox/src/main/res/drawable/import_export_item_background_light.xml | xml | 2016-07-03T07:32:36 | 2024-08-16T16:51:15 | deltachat-android | deltachat/deltachat-android | 1,082 | 143 |
```xml
export interface ColumnOpts {
columnType: "idColumn" | "string" | "number" | "boolean";
options: any;
}
``` | /content/code_sandbox/packages/orm/objection/src/domain/ColumnOpts.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 32 |
```xml
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { DialogModule } from 'primeng/dialog';
import { DockModule } from 'primeng/dock';
import { GalleriaModule } from 'primeng/galleria';
import { MenubarModule } from 'primeng/menubar';
import { RadioButtonModule } from 'primeng/radiobutton';
import { TerminalModule } from 'primeng/terminal';
import { ToastModule } from 'primeng/toast';
import { TreeModule } from 'primeng/tree';
import { AppDocModule } from '@layout/doc/app.doc.module';
import { AppCodeModule } from '@layout/doc/app.code.component';
import { AccessibilityDoc } from './accessibilitydoc';
import { AdvancedDoc } from './advanceddoc';
import { BasicDoc } from './basicdoc';
import { ImportDoc } from './importdoc';
import { StyleDoc } from './styledoc';
@NgModule({
imports: [CommonModule, AppCodeModule, RouterModule, DockModule, FormsModule, RadioButtonModule, MenubarModule, ToastModule, DialogModule, GalleriaModule, TerminalModule, TreeModule, AppDocModule],
declarations: [AdvancedDoc, BasicDoc, ImportDoc, StyleDoc, AccessibilityDoc],
exports: [AppDocModule]
})
export class DockDocModule {}
``` | /content/code_sandbox/src/app/showcase/doc/dock/dockdoc.module.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 298 |
```xml
export default function () {
return null;
}
``` | /content/code_sandbox/packages/@expo/cli/e2e/fixtures/with-router-typed-routes/app/(a)/fruit/[fruit]/[...other].tsx | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 11 |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="11134" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11134"/>
</dependencies>
<scenes>
<!--Application-->
<scene sceneID="JPo-4y-FX3">
<objects>
<application id="hnw-xV-0zn" sceneMemberID="viewController">
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
<items>
<menuItem title="SwiftyMarkdownExample macOS" id="1Xt-HY-uBw">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="SwiftyMarkdownExample macOS" systemMenu="apple" id="uQy-DD-JDr">
<items>
<menuItem title="About SwiftyMarkdownExample macOS" id="5kV-Vb-QxS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="VOq-y0-SEH"/>
<menuItem title="Preferences" keyEquivalent="," id="BOF-NM-1cW"/>
<menuItem isSeparatorItem="YES" id="wFC-TO-SCJ"/>
<menuItem title="Services" id="NMo-om-nkz">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Services" systemMenu="services" id="hz9-B4-Xy5"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="4je-JR-u6R"/>
<menuItem title="Hide SwiftyMarkdownExample macOS" keyEquivalent="h" id="Olw-nP-bQN">
<connections>
<action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/>
</connections>
</menuItem>
<menuItem title="Hide Others" keyEquivalent="h" id="Vdr-fp-XzO">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="hideOtherApplications:" target="Ady-hI-5gd" id="VT4-aY-XCT"/>
</connections>
</menuItem>
<menuItem title="Show All" id="Kd2-mp-pUS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="unhideAllApplications:" target="Ady-hI-5gd" id="Dhg-Le-xox"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
<menuItem title="Quit SwiftyMarkdownExample macOS" keyEquivalent="q" id="4sb-4s-VLi">
<connections>
<action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="File" id="dMs-cI-mzQ">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="File" id="bib-Uj-vzu">
<items>
<menuItem title="New" keyEquivalent="n" id="Was-JA-tGl">
<connections>
<action selector="newDocument:" target="Ady-hI-5gd" id="4Si-XN-c54"/>
</connections>
</menuItem>
<menuItem title="Open" keyEquivalent="o" id="IAo-SY-fd9">
<connections>
<action selector="openDocument:" target="Ady-hI-5gd" id="bVn-NM-KNZ"/>
</connections>
</menuItem>
<menuItem title="Open Recent" id="tXI-mr-wws">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Open Recent" systemMenu="recentDocuments" id="oas-Oc-fiZ">
<items>
<menuItem title="Clear Menu" id="vNY-rz-j42">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="clearRecentDocuments:" target="Ady-hI-5gd" id="Daa-9d-B3U"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem isSeparatorItem="YES" id="m54-Is-iLE"/>
<menuItem title="Close" keyEquivalent="w" id="DVo-aG-piG">
<connections>
<action selector="performClose:" target="Ady-hI-5gd" id="HmO-Ls-i7Q"/>
</connections>
</menuItem>
<menuItem title="Save" keyEquivalent="s" id="pxx-59-PXV">
<connections>
<action selector="saveDocument:" target="Ady-hI-5gd" id="teZ-XB-qJY"/>
</connections>
</menuItem>
<menuItem title="Save As" keyEquivalent="S" id="Bw7-FT-i3A">
<connections>
<action selector="saveDocumentAs:" target="Ady-hI-5gd" id="mDf-zr-I0C"/>
</connections>
</menuItem>
<menuItem title="Revert to Saved" keyEquivalent="r" id="KaW-ft-85H">
<connections>
<action selector="revertDocumentToSaved:" target="Ady-hI-5gd" id="iJ3-Pv-kwq"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="aJh-i4-bef"/>
<menuItem title="Page Setup" keyEquivalent="P" id="qIS-W8-SiK">
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<connections>
<action selector="runPageLayout:" target="Ady-hI-5gd" id="Din-rz-gC5"/>
</connections>
</menuItem>
<menuItem title="Print" keyEquivalent="p" id="aTl-1u-JFS">
<connections>
<action selector="print:" target="Ady-hI-5gd" id="qaZ-4w-aoO"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Edit" id="5QF-Oa-p0T">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Edit" id="W48-6f-4Dl">
<items>
<menuItem title="Undo" keyEquivalent="z" id="dRJ-4n-Yzg">
<connections>
<action selector="undo:" target="Ady-hI-5gd" id="M6e-cu-g7V"/>
</connections>
</menuItem>
<menuItem title="Redo" keyEquivalent="Z" id="6dh-zS-Vam">
<connections>
<action selector="redo:" target="Ady-hI-5gd" id="oIA-Rs-6OD"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="WRV-NI-Exz"/>
<menuItem title="Cut" keyEquivalent="x" id="uRl-iY-unG">
<connections>
<action selector="cut:" target="Ady-hI-5gd" id="YJe-68-I9s"/>
</connections>
</menuItem>
<menuItem title="Copy" keyEquivalent="c" id="x3v-GG-iWU">
<connections>
<action selector="copy:" target="Ady-hI-5gd" id="G1f-GL-Joy"/>
</connections>
</menuItem>
<menuItem title="Paste" keyEquivalent="v" id="gVA-U4-sdL">
<connections>
<action selector="paste:" target="Ady-hI-5gd" id="UvS-8e-Qdg"/>
</connections>
</menuItem>
<menuItem title="Paste and Match Style" keyEquivalent="V" id="WeT-3V-zwk">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="pasteAsPlainText:" target="Ady-hI-5gd" id="cEh-KX-wJQ"/>
</connections>
</menuItem>
<menuItem title="Delete" id="pa3-QI-u2k">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="delete:" target="Ady-hI-5gd" id="0Mk-Ml-PaM"/>
</connections>
</menuItem>
<menuItem title="Select All" keyEquivalent="a" id="Ruw-6m-B2m">
<connections>
<action selector="selectAll:" target="Ady-hI-5gd" id="VNm-Mi-diN"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="uyl-h8-XO2"/>
<menuItem title="Find" id="4EN-yA-p0u">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Find" id="1b7-l0-nxx">
<items>
<menuItem title="Find" tag="1" keyEquivalent="f" id="Xz5-n4-O0W">
<connections>
<action selector="performFindPanelAction:" target="Ady-hI-5gd" id="cD7-Qs-BN4"/>
</connections>
</menuItem>
<menuItem title="Find and Replace" tag="12" keyEquivalent="f" id="YEy-JH-Tfz">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="performFindPanelAction:" target="Ady-hI-5gd" id="WD3-Gg-5AJ"/>
</connections>
</menuItem>
<menuItem title="Find Next" tag="2" keyEquivalent="g" id="q09-fT-Sye">
<connections>
<action selector="performFindPanelAction:" target="Ady-hI-5gd" id="NDo-RZ-v9R"/>
</connections>
</menuItem>
<menuItem title="Find Previous" tag="3" keyEquivalent="G" id="OwM-mh-QMV">
<connections>
<action selector="performFindPanelAction:" target="Ady-hI-5gd" id="HOh-sY-3ay"/>
</connections>
</menuItem>
<menuItem title="Use Selection for Find" tag="7" keyEquivalent="e" id="buJ-ug-pKt">
<connections>
<action selector="performFindPanelAction:" target="Ady-hI-5gd" id="U76-nv-p5D"/>
</connections>
</menuItem>
<menuItem title="Jump to Selection" keyEquivalent="j" id="S0p-oC-mLd">
<connections>
<action selector="centerSelectionInVisibleArea:" target="Ady-hI-5gd" id="IOG-6D-g5B"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Spelling and Grammar" id="Dv1-io-Yv7">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Spelling" id="3IN-sU-3Bg">
<items>
<menuItem title="Show Spelling and Grammar" keyEquivalent=":" id="HFo-cy-zxI">
<connections>
<action selector="showGuessPanel:" target="Ady-hI-5gd" id="vFj-Ks-hy3"/>
</connections>
</menuItem>
<menuItem title="Check Document Now" keyEquivalent=";" id="hz2-CU-CR7">
<connections>
<action selector="checkSpelling:" target="Ady-hI-5gd" id="fz7-VC-reM"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="bNw-od-mp5"/>
<menuItem title="Check Spelling While Typing" id="rbD-Rh-wIN">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleContinuousSpellChecking:" target="Ady-hI-5gd" id="7w6-Qz-0kB"/>
</connections>
</menuItem>
<menuItem title="Check Grammar With Spelling" id="mK6-2p-4JG">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleGrammarChecking:" target="Ady-hI-5gd" id="muD-Qn-j4w"/>
</connections>
</menuItem>
<menuItem title="Correct Spelling Automatically" id="78Y-hA-62v">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticSpellingCorrection:" target="Ady-hI-5gd" id="2lM-Qi-WAP"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Substitutions" id="9ic-FL-obx">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Substitutions" id="FeM-D8-WVr">
<items>
<menuItem title="Show Substitutions" id="z6F-FW-3nz">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontSubstitutionsPanel:" target="Ady-hI-5gd" id="oku-mr-iSq"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="gPx-C9-uUO"/>
<menuItem title="Smart Copy/Paste" id="9yt-4B-nSM">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleSmartInsertDelete:" target="Ady-hI-5gd" id="3IJ-Se-DZD"/>
</connections>
</menuItem>
<menuItem title="Smart Quotes" id="hQb-2v-fYv">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticQuoteSubstitution:" target="Ady-hI-5gd" id="ptq-xd-QOA"/>
</connections>
</menuItem>
<menuItem title="Smart Dashes" id="rgM-f4-ycn">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticDashSubstitution:" target="Ady-hI-5gd" id="oCt-pO-9gS"/>
</connections>
</menuItem>
<menuItem title="Smart Links" id="cwL-P1-jid">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticLinkDetection:" target="Ady-hI-5gd" id="Gip-E3-Fov"/>
</connections>
</menuItem>
<menuItem title="Data Detectors" id="tRr-pd-1PS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticDataDetection:" target="Ady-hI-5gd" id="R1I-Nq-Kbl"/>
</connections>
</menuItem>
<menuItem title="Text Replacement" id="HFQ-gK-NFA">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticTextReplacement:" target="Ady-hI-5gd" id="DvP-Fe-Py6"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Transformations" id="2oI-Rn-ZJC">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Transformations" id="c8a-y6-VQd">
<items>
<menuItem title="Make Upper Case" id="vmV-6d-7jI">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="uppercaseWord:" target="Ady-hI-5gd" id="sPh-Tk-edu"/>
</connections>
</menuItem>
<menuItem title="Make Lower Case" id="d9M-CD-aMd">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="lowercaseWord:" target="Ady-hI-5gd" id="iUZ-b5-hil"/>
</connections>
</menuItem>
<menuItem title="Capitalize" id="UEZ-Bs-lqG">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="capitalizeWord:" target="Ady-hI-5gd" id="26H-TL-nsh"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Speech" id="xrE-MZ-jX0">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Speech" id="3rS-ZA-NoH">
<items>
<menuItem title="Start Speaking" id="Ynk-f8-cLZ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="startSpeaking:" target="Ady-hI-5gd" id="654-Ng-kyl"/>
</connections>
</menuItem>
<menuItem title="Stop Speaking" id="Oyz-dy-DGm">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="stopSpeaking:" target="Ady-hI-5gd" id="dX8-6p-jy9"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Format" id="jxT-CU-nIS">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Format" id="GEO-Iw-cKr">
<items>
<menuItem title="Font" id="Gi5-1S-RQB">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Font" systemMenu="font" id="aXa-aM-Jaq">
<items>
<menuItem title="Show Fonts" keyEquivalent="t" id="Q5e-8K-NDq">
<connections>
<action selector="orderFrontFontPanel:" target="YLy-65-1bz" id="WHr-nq-2xA"/>
</connections>
</menuItem>
<menuItem title="Bold" tag="2" keyEquivalent="b" id="GB9-OM-e27">
<connections>
<action selector="addFontTrait:" target="YLy-65-1bz" id="hqk-hr-sYV"/>
</connections>
</menuItem>
<menuItem title="Italic" tag="1" keyEquivalent="i" id="Vjx-xi-njq">
<connections>
<action selector="addFontTrait:" target="YLy-65-1bz" id="IHV-OB-c03"/>
</connections>
</menuItem>
<menuItem title="Underline" keyEquivalent="u" id="WRG-CD-K1S">
<connections>
<action selector="underline:" target="Ady-hI-5gd" id="FYS-2b-JAY"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="5gT-KC-WSO"/>
<menuItem title="Bigger" tag="3" keyEquivalent="+" id="Ptp-SP-VEL">
<connections>
<action selector="modifyFont:" target="YLy-65-1bz" id="Uc7-di-UnL"/>
</connections>
</menuItem>
<menuItem title="Smaller" tag="4" keyEquivalent="-" id="i1d-Er-qST">
<connections>
<action selector="modifyFont:" target="YLy-65-1bz" id="HcX-Lf-eNd"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="kx3-Dk-x3B"/>
<menuItem title="Kern" id="jBQ-r6-VK2">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Kern" id="tlD-Oa-oAM">
<items>
<menuItem title="Use Default" id="GUa-eO-cwY">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="useStandardKerning:" target="Ady-hI-5gd" id="6dk-9l-Ckg"/>
</connections>
</menuItem>
<menuItem title="Use None" id="cDB-IK-hbR">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="turnOffKerning:" target="Ady-hI-5gd" id="U8a-gz-Maa"/>
</connections>
</menuItem>
<menuItem title="Tighten" id="46P-cB-AYj">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="tightenKerning:" target="Ady-hI-5gd" id="hr7-Nz-8ro"/>
</connections>
</menuItem>
<menuItem title="Loosen" id="ogc-rX-tC1">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="loosenKerning:" target="Ady-hI-5gd" id="8i4-f9-FKE"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Ligatures" id="o6e-r0-MWq">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Ligatures" id="w0m-vy-SC9">
<items>
<menuItem title="Use Default" id="agt-UL-0e3">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="useStandardLigatures:" target="Ady-hI-5gd" id="7uR-wd-Dx6"/>
</connections>
</menuItem>
<menuItem title="Use None" id="J7y-lM-qPV">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="turnOffLigatures:" target="Ady-hI-5gd" id="iX2-gA-Ilz"/>
</connections>
</menuItem>
<menuItem title="Use All" id="xQD-1f-W4t">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="useAllLigatures:" target="Ady-hI-5gd" id="KcB-kA-TuK"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Baseline" id="OaQ-X3-Vso">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Baseline" id="ijk-EB-dga">
<items>
<menuItem title="Use Default" id="3Om-Ey-2VK">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="unscript:" target="Ady-hI-5gd" id="0vZ-95-Ywn"/>
</connections>
</menuItem>
<menuItem title="Superscript" id="Rqc-34-cIF">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="superscript:" target="Ady-hI-5gd" id="3qV-fo-wpU"/>
</connections>
</menuItem>
<menuItem title="Subscript" id="I0S-gh-46l">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="subscript:" target="Ady-hI-5gd" id="Q6W-4W-IGz"/>
</connections>
</menuItem>
<menuItem title="Raise" id="2h7-ER-AoG">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="raiseBaseline:" target="Ady-hI-5gd" id="4sk-31-7Q9"/>
</connections>
</menuItem>
<menuItem title="Lower" id="1tx-W0-xDw">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="lowerBaseline:" target="Ady-hI-5gd" id="OF1-bc-KW4"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem isSeparatorItem="YES" id="Ndw-q3-faq"/>
<menuItem title="Show Colors" keyEquivalent="C" id="bgn-CT-cEk">
<connections>
<action selector="orderFrontColorPanel:" target="Ady-hI-5gd" id="mSX-Xz-DV3"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="iMs-zA-UFJ"/>
<menuItem title="Copy Style" keyEquivalent="c" id="5Vv-lz-BsD">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="copyFont:" target="Ady-hI-5gd" id="GJO-xA-L4q"/>
</connections>
</menuItem>
<menuItem title="Paste Style" keyEquivalent="v" id="vKC-jM-MkH">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="pasteFont:" target="Ady-hI-5gd" id="JfD-CL-leO"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Text" id="Fal-I4-PZk">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Text" id="d9c-me-L2H">
<items>
<menuItem title="Align Left" keyEquivalent="{" id="ZM1-6Q-yy1">
<connections>
<action selector="alignLeft:" target="Ady-hI-5gd" id="zUv-R1-uAa"/>
</connections>
</menuItem>
<menuItem title="Center" keyEquivalent="|" id="VIY-Ag-zcb">
<connections>
<action selector="alignCenter:" target="Ady-hI-5gd" id="spX-mk-kcS"/>
</connections>
</menuItem>
<menuItem title="Justify" id="J5U-5w-g23">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="alignJustified:" target="Ady-hI-5gd" id="ljL-7U-jND"/>
</connections>
</menuItem>
<menuItem title="Align Right" keyEquivalent="}" id="wb2-vD-lq4">
<connections>
<action selector="alignRight:" target="Ady-hI-5gd" id="r48-bG-YeY"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="4s2-GY-VfK"/>
<menuItem title="Writing Direction" id="H1b-Si-o9J">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Writing Direction" id="8mr-sm-Yjd">
<items>
<menuItem title="Paragraph" enabled="NO" id="ZvO-Gk-QUH">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem id="YGs-j5-SAR">
<string key="title"> Default</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeBaseWritingDirectionNatural:" target="Ady-hI-5gd" id="qtV-5e-UBP"/>
</connections>
</menuItem>
<menuItem id="Lbh-J2-qVU">
<string key="title"> Left to Right</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeBaseWritingDirectionLeftToRight:" target="Ady-hI-5gd" id="S0X-9S-QSf"/>
</connections>
</menuItem>
<menuItem id="jFq-tB-4Kx">
<string key="title"> Right to Left</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeBaseWritingDirectionRightToLeft:" target="Ady-hI-5gd" id="5fk-qB-AqJ"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="swp-gr-a21"/>
<menuItem title="Selection" enabled="NO" id="cqv-fj-IhA">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem id="Nop-cj-93Q">
<string key="title"> Default</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeTextWritingDirectionNatural:" target="Ady-hI-5gd" id="lPI-Se-ZHp"/>
</connections>
</menuItem>
<menuItem id="BgM-ve-c93">
<string key="title"> Left to Right</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeTextWritingDirectionLeftToRight:" target="Ady-hI-5gd" id="caW-Bv-w94"/>
</connections>
</menuItem>
<menuItem id="RB4-Sm-HuC">
<string key="title"> Right to Left</string>
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="makeTextWritingDirectionRightToLeft:" target="Ady-hI-5gd" id="EXD-6r-ZUu"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem isSeparatorItem="YES" id="fKy-g9-1gm"/>
<menuItem title="Show Ruler" id="vLm-3I-IUL">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleRuler:" target="Ady-hI-5gd" id="FOx-HJ-KwY"/>
</connections>
</menuItem>
<menuItem title="Copy Ruler" keyEquivalent="c" id="MkV-Pr-PK5">
<modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
<connections>
<action selector="copyRuler:" target="Ady-hI-5gd" id="71i-fW-3W2"/>
</connections>
</menuItem>
<menuItem title="Paste Ruler" keyEquivalent="v" id="LVM-kO-fVI">
<modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
<connections>
<action selector="pasteRuler:" target="Ady-hI-5gd" id="cSh-wd-qM2"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="View" id="H8h-7b-M4v">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="View" id="HyV-fh-RgO">
<items>
<menuItem title="Show Toolbar" keyEquivalent="t" id="snW-S8-Cw5">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="toggleToolbarShown:" target="Ady-hI-5gd" id="BXY-wc-z0C"/>
</connections>
</menuItem>
<menuItem title="Customize Toolbar" id="1UK-8n-QPP">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="runToolbarCustomizationPalette:" target="Ady-hI-5gd" id="pQI-g3-MTW"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="hB3-LF-h0Y"/>
<menuItem title="Show Sidebar" keyEquivalent="s" id="kIP-vf-haE">
<modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
<connections>
<action selector="toggleSidebar:" target="Ady-hI-5gd" id="iwa-gc-5KM"/>
</connections>
</menuItem>
<menuItem title="Enter Full Screen" keyEquivalent="f" id="4J7-dP-txa">
<modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
<connections>
<action selector="toggleFullScreen:" target="Ady-hI-5gd" id="dU3-MA-1Rq"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Window" id="aUF-d1-5bR">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Window" systemMenu="window" id="Td7-aD-5lo">
<items>
<menuItem title="Minimize" keyEquivalent="m" id="OY7-WF-poV">
<connections>
<action selector="performMiniaturize:" target="Ady-hI-5gd" id="VwT-WD-YPe"/>
</connections>
</menuItem>
<menuItem title="Zoom" id="R4o-n2-Eq4">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="performZoom:" target="Ady-hI-5gd" id="DIl-cC-cCs"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="eu3-7i-yIM"/>
<menuItem title="Bring All to Front" id="LE2-aR-0XJ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="arrangeInFront:" target="Ady-hI-5gd" id="DRN-fu-gQh"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Help" id="wpr-3q-Mcd">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Help" systemMenu="help" id="F2S-fz-NVQ">
<items>
<menuItem title="SwiftyMarkdownExample macOS Help" keyEquivalent="?" id="FKE-Sm-Kum">
<connections>
<action selector="showHelp:" target="Ady-hI-5gd" id="y7X-2Q-9no"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
</items>
</menu>
<connections>
<outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/>
</connections>
</application>
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModuleProvider="target"/>
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
<customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="75" y="0.0"/>
</scene>
<!--Window Controller-->
<scene sceneID="R2V-B0-nI4">
<objects>
<windowController id="B8D-0N-5wS" sceneMemberID="viewController">
<window key="window" title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="IQv-IB-iLA">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="196" y="240" width="480" height="270"/>
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
<connections>
<outlet property="delegate" destination="B8D-0N-5wS" id="98r-iN-zZc"/>
</connections>
</window>
<connections>
<segue destination="XfG-lQ-9wD" kind="relationship" relationship="window.shadowedContentViewController" id="cq2-FE-JQM"/>
</connections>
</windowController>
<customObject id="Oky-zY-oP4" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="75" y="250"/>
</scene>
<!--View Controller-->
<scene sceneID="hIz-AP-VOD">
<objects>
<viewController id="XfG-lQ-9wD" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" id="m2S-Jp-Qdl">
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
<autoresizingMask key="autoresizingMask"/>
</view>
</viewController>
<customObject id="rPt-NT-nkU" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="75" y="655"/>
</scene>
</scenes>
</document>
``` | /content/code_sandbox/Example/SwiftyMarkdownExample macOS/Base.lproj/Main.storyboard | xml | 2016-03-05T09:09:08 | 2024-08-12T07:21:37 | SwiftyMarkdown | SimonFairbairn/SwiftyMarkdown | 1,621 | 8,883 |
```xml
import * as React from 'react';
import { DiffType } from 'shared/models/Versioning/Blob/Diff';
import { makeDockerImage } from 'shared/models/Versioning/Blob/EnvironmentBlob';
import { BlobDataBox } from 'shared/view/domain/Versioning/Blob/BlobBox/BlobBox';
import { IComparedCommitsInfo } from '../../../model';
import { makeHighlightCellBackground } from '../../shared/makeHighlightCellBackground';
import ComparePropertiesTable from '../../shared/ComparePropertiesTable/ComparePropertiesTable';
import { IDockerEnvironmentDiffViewModel } from '../utils';
const highlightCellBackground = makeHighlightCellBackground<
IDockerEnvironmentDiffViewModel
>();
const DockerDiff = ({
diff,
comparedCommitsInfo,
diffType,
}: {
diffType: DiffType;
diff: IDockerEnvironmentDiffViewModel;
comparedCommitsInfo: IComparedCommitsInfo;
}) => {
return (
<BlobDataBox title="Docker details">
<ComparePropertiesTable
A={diff}
B={diff}
C={diffType === 'conflicted' ? diff : undefined}
comparedCommitsInfo={comparedCommitsInfo}
propDefinitions={[
{
title: 'Docker container',
type: 'docker',
getPropCellStyle: highlightCellBackground(
({ data, comparedCommitType }) =>
Boolean(
data.data[comparedCommitType] &&
data.data[comparedCommitType]!.diffColor
)
),
render: ({ data, comparedCommitType: type }) => {
const docker = data && data.data[type];
return docker ? (
<span>{makeDockerImage(docker.data)}</span>
) : null;
},
},
]}
/>
</BlobDataBox>
);
};
export default DockerDiff;
``` | /content/code_sandbox/webapp/client/src/features/versioning/compareCommits/view/DiffView/EnvironmentDiffView/DockerDiff/DockerDiff.tsx | xml | 2016-10-19T01:07:26 | 2024-08-14T03:53:55 | modeldb | VertaAI/modeldb | 1,689 | 391 |
```xml
export * from './FlatTree';
export * from './FlatTree.types';
export * from './useHeadlessFlatTree';
export * from './useFlatTree';
export * from './useFlatTreeStyles.styles';
export * from './useFlatTreeContextValues';
export * from './renderFlatTree';
``` | /content/code_sandbox/packages/react-components/react-tree/library/src/components/FlatTree/index.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 62 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
*****************************************************************************
**
** Contact: path_to_url
**
** This file is part of the Qt VS Tools.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see path_to_url For further
** information use the contact form at path_to_url
**
** Alternatively, this file may be used under the terms of the GNU
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** be met: path_to_url
**
** $QT_END_LICENSE$
**
*****************************************************************************
** This file was generated automatically.
*****************************************************************************
-->
<ProjectSchemaDefinitions
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<Rule
Name="QtRule40_Rcc"
PageTemplate="tool"
DisplayName="Qt Resource Compiler"
Order="9">
<Rule.DataSource>
<DataSource
Persistence="ProjectFile"
ItemType="QtRcc" />
</Rule.DataSource>
<Rule.Categories>
<Category Name="General" DisplayName="rcc"/>
<Category Name="QMLCache" DisplayName="Qt Quick Compiler"/>
<Category Name="RccCpp" DisplayName="Override C/C++"/>
</Rule.Categories>
<StringListProperty
Name="Inputs"
Category="General"
IsRequired="true"
Visible="False">
<StringListProperty.DataSource>
<DataSource
Persistence="ProjectFile"
ItemType="QtRcc"
SourceType="Item" />
</StringListProperty.DataSource>
</StringListProperty>
<StringProperty
Name="ExecutionDescription"
DisplayName="Execution Description"
IncludeInCommandLine="False"/>
<StringProperty
Name="QtRccDir"
DisplayName="Output Directory"
Description="Specifies the path of the generated rcc output directory."/>
<StringProperty
Name="QtRccFileName"
DisplayName="Output File Name"
Description="Specifies the name of the generated rcc output file."/>
<StringProperty
Name="QTDIR"
DisplayName="Qt Directory"
Visible="false"/>
<StringProperty
Name="InputFile"
DisplayName="Input File"
Visible="false"/>
<StringProperty
Name="OutputFile"
DisplayName="Output File"
Visible="false"/>
<StringProperty
Name="TempFile"
HelpUrl="path_to_url"
DisplayName="Temporary File"
Description="Use temporary <file> for big resources. (--temp <file>)"
Switch="--temp "[value]"" />
<StringProperty
Name="InitFuncName"
HelpUrl="path_to_url"
DisplayName="Initialization Function Name"
Description=
"Create an external initialization function with <name>. (--name <name>)"
Switch="--name [value]" />
<StringProperty
Name="Root"
HelpUrl="path_to_url"
DisplayName="Root"
Description="Prefix resource access path with root <path>. (--root <path>)"
Switch="--root "[value]"" />
<EnumProperty
Name="Compression"
HelpUrl="path_to_url"
DisplayName="Compression"
Description="Compress input files to the given compression level.">
<EnumValue
Name="default"
Switch=""
DisplayName="Default (use zlib's default compression level)"
Description=
"The default value for level is -1, which means use zlib's default compression level."/>
<EnumValue
Name="level1"
Switch="--compress 1"
DisplayName="Level 1 (least compression / fastest)"
Description="Compression level 1. (--compress 1)"/>
<EnumValue
Name="level2"
Switch="--compress 2"
DisplayName="Level 2"
Description="Compression level 2. (--compress 2)"/>
<EnumValue
Name="level3"
Switch="--compress 3"
DisplayName="Level 3"
Description="Compression level 3. (--compress 3)"/>
<EnumValue
Name="level4"
Switch="--compress 4"
DisplayName="Level 4"
Description="Compression level 4. (--compress 4)"/>
<EnumValue
Name="level5"
Switch="--compress 5"
DisplayName="Level 5"
Description="Compression level 5. (--compress 5)"/>
<EnumValue
Name="level6"
Switch="--compress 6"
DisplayName="Level 6"
Description="Compression level 6. (--compress 6)"/>
<EnumValue
Name="level7"
Switch="--compress 7"
DisplayName="Level 7"
Description="Compression level 7. (--compress 7)"/>
<EnumValue
Name="level8"
Switch="--compress 8"
DisplayName="Level 8"
Description="Compression level 8. (--compress 8)"/>
<EnumValue
Name="level9"
Switch="--compress 9"
DisplayName="Level 9 (most compression / slowest)"
Description="Compression level 9. (--compress 9)"/>
</EnumProperty>
<BoolProperty
Name="NoCompression"
HelpUrl="path_to_url"
DisplayName="No Compression"
Description="Disable all compression. (--no-compress)"
Switch="--no-compress"/>
<StringProperty
Name="CompressThreshold"
HelpUrl="path_to_url"
DisplayName="Compression Threshold"
Description=
"Threshold <level> to consider compressing files. (--threshold <level>)"
Switch="--threshold [value]" />
<BoolProperty
Name="BinaryOutput"
HelpUrl="path_to_url"
DisplayName="Binary Output"
Description="Output a binary file for use as a dynamic resource. (--binary)"
Switch="--binary"/>
<StringProperty
Name="PassNumber"
HelpUrl="path_to_url"
DisplayName="Pass Number"
Description="Pass <number> for big resources. (--pass <number>)"
Switch="--pass [value]" />
<BoolProperty
Name="NoNamespace"
HelpUrl="path_to_url"
DisplayName="Disable Namespace Macros"
Description="Turn off namespace macros. (--namespace)"
Switch="--namespace"/>
<BoolProperty
Name="Verbose"
HelpUrl="path_to_url"
DisplayName="Verbose"
Description="Enable verbose mode. (--verbose)"
Switch="--verbose"/>
<BoolProperty
Name="List"
HelpUrl="path_to_url"
DisplayName="List"
Description="Only list .qrc file entries, do not generate code. (--list)"
Switch="--list"/>
<BoolProperty
Name="Project"
HelpUrl="path_to_url"
DisplayName="Project"
Description=
"Output a resource file containing all files from the current directory. (--project)"
Switch="--project"/>
<StringProperty
Name="FormatVersion"
HelpUrl="path_to_url"
DisplayName="Format Version"
Description="The RCC format version to write. (--format-version <number>)"
Switch="--format-version [value]" />
<BoolProperty
Name="TwoPass"
DisplayName="Two-Pass Mode"
Description="1st pass: generate source file; 2nd pass: overwrite resouce data in object file"/>
<StringProperty
Name="CommandLineTemplate"
DisplayName="Command Line"
Visible="False"
IncludeInCommandLine="False" />
<DynamicEnumProperty
Name="QtRccBeforeTargets"
Category="General"
EnumProvider="Targets"
IncludeInCommandLine="False" Visible="False">
<DynamicEnumProperty.DisplayName>
<sys:String>Execute Before</sys:String>
</DynamicEnumProperty.DisplayName>
<DynamicEnumProperty.Description>
<sys:String>Specifies the targets for the build customization to run before.</sys:String>
</DynamicEnumProperty.Description>
<DynamicEnumProperty.ProviderSettings>
<NameValuePair
Name="Exclude"
Value="^QtRccBeforeTargets|^Compute" />
</DynamicEnumProperty.ProviderSettings>
<DynamicEnumProperty.DataSource>
<DataSource
Persistence="ProjectFile"
ItemType=""
HasConfigurationCondition="true" />
</DynamicEnumProperty.DataSource>
</DynamicEnumProperty>
<DynamicEnumProperty
Name="QtRccAfterTargets"
Category="General"
EnumProvider="Targets"
IncludeInCommandLine="False" Visible="False">
<DynamicEnumProperty.DisplayName>
<sys:String>Execute After</sys:String>
</DynamicEnumProperty.DisplayName>
<DynamicEnumProperty.Description>
<sys:String>Specifies the targets for the build customization to run after.</sys:String>
</DynamicEnumProperty.Description>
<DynamicEnumProperty.ProviderSettings>
<NameValuePair
Name="Exclude"
Value="^QtRccAfterTargets|^Compute" />
</DynamicEnumProperty.ProviderSettings>
<DynamicEnumProperty.DataSource>
<DataSource
Persistence="ProjectFile"
ItemType=""
HasConfigurationCondition="true" />
</DynamicEnumProperty.DataSource>
</DynamicEnumProperty>
<StringListProperty
Name="Outputs"
DisplayName="Outputs"
IncludeInCommandLine="False"
Visible="False" />
<StringListProperty
Name="AdditionalDependencies"
DisplayName="Additional Dependencies"
IncludeInCommandLine="False"/>
<StringProperty
Subtype="AdditionalOptions"
Name="AdditionalOptions"
Category="General">
<StringProperty.DisplayName>
<sys:String>Additional Options</sys:String>
</StringProperty.DisplayName>
<StringProperty.Description>
<sys:String>Additional Options</sys:String>
</StringProperty.Description>
</StringProperty>
<EnumProperty
Name="DynamicSource"
DisplayName="Dynamic C++ Source"
Description="Add file to list of C++ sources during build.">
<EnumValue
Name="output"
DisplayName="Output File"
Description="Use output as dynamic C++ source."/>
<EnumValue
Name="false"
DisplayName="Disable"
Description="Disable dynamic source."/>
</EnumProperty>
<BoolProperty
Name="ParallelProcess"
DisplayName="Parallel Process"
Description="Run tool in parallel process."/>
<BoolProperty
Name="QmlCacheGenerate"
Category="QMLCache"
DisplayName="Enable Qt Quick Compiler"
Description="Enable or disable ahead-of-time compilation using the Qt Quick Compiler." />
<!--
// QML cache generation -->
<StringProperty Name="QMLCacheHeader_Generation" Category="QMLCache" ReadOnly="true"
DisplayName="########## QML Cache Generation ##############################"/>
<StringProperty
Name="QmlCacheGenMessage"
Category="QMLCache"
DisplayName="Execution Description of QML cache generation"
IncludeInCommandLine="False"/>
<StringProperty
Name="QmlCacheOutputFile"
Category="QMLCache"
DisplayName="Cache File"
Description=
"Specifies the full path of the output cache files. Use %<metadata> to reference QML file
metadata (e.g. %<Filename>)." />
<!--
// QRC filtering -->
<StringProperty Name="QMLCacheHeader_Filtering" Category="QMLCache" ReadOnly="true"
DisplayName="########## QRC Filtering ##############################"/>
<StringProperty
Name="QmlCacheFilterMessage"
Category="QMLCache"
DisplayName="Execution Description of QRC filtering"
IncludeInCommandLine="False"/>
<StringProperty
Name="QmlCacheFilteredFile"
Category="QMLCache"
DisplayName="Filtered Resource File"
Description=
"Specifies the full path of the resource file copy with QML files filtered out." />
<StringProperty
Name="QmlCacheFilteredOutputFile"
Category="QMLCache"
DisplayName="Filtered Resource File Output"
Description=
"Specifies the full path of the output file for the processing of the filtered resource file." />
<StringProperty
Name="QmlCacheFilteredInitFuncName"
Category="QMLCache"
DisplayName="Filtered Resource File Initialization Function"
Description=
"Create an external initialization function with <name>. (--name <name>)" />
<!--
// QML cache loader generation -->
<StringProperty Name="QMLCacheHeader_Loader" Category="QMLCache" ReadOnly="true"
DisplayName="########## QML Cache Loader ##############################"/>
<StringProperty
Name="QmlCacheLoaderMessage"
Category="QMLCache"
DisplayName="Execution Description of QML cache loader generation"
IncludeInCommandLine="False"/>
<StringProperty
Name="QmlCacheLoaderFile"
Category="QMLCache"
DisplayName="Cache Loader Source File"
Description="Specifies the full path of the QML cache loader source file." />
<EnumProperty
Name="OverrideClCompile"
Category="RccCpp"
DisplayName="Override C/C++ Properties"
Description="Define how C/C++ properties are redefined for rcc">
<EnumValue Name="extend" DisplayName=
"Extend (append override definitions to C/C++ list properties; replace other properties)"/>
<EnumValue Name="replace" DisplayName=
"Replace (use override definitions instead of C/C++ properties)"/>
<EnumValue Name="false" DisplayName=
"Disabled (use C/C++ properties; ignore override definitions)"/>
</EnumProperty>
<!-- BEGIN Generated Text -->
<StringProperty Name="QtCppHeader_General" Category="RccCpp" ReadOnly="true" DisplayName="########## General ##############################" />
<StringListProperty Subtype="folder" Name="AdditionalIncludeDirectories" DisplayName="Additional Include Directories" Description="(overrides C/C++ property) Specifies one or more directories to add to the include path; separate with semi-colons if more than one. (/I[path])" Category="RccCpp" Switch="I" F1Keyword="VC.Project.VCCLCompilerTool.AdditionalIncludeDirectories">
</StringListProperty>
<StringListProperty Subtype="folder" Name="AdditionalUsingDirectories" DisplayName="Additional #using Directories" Description="(overrides C/C++ property) Specifies one or more directories (separate directory names with a semicolon) to be searched to resolve names passed to a #using directive. (/AI[path])" Category="RccCpp" Switch="AI" F1Keyword="VC.Project.VCCLCompilerTool.AdditionalUsingDirectories">
</StringListProperty>
<EnumProperty Name="DebugInformationFormat" DisplayName="Debug Information Format" Description="(overrides C/C++ property) Specifies the type of debugging information generated by the compiler. This requires compatible linker settings. (/Z7, /Zi, /ZI)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.DebugInformationFormat">
<EnumValue Name="None" Switch="" DisplayName="None" Description="Produces no debugging information, so compilation may be faster.">
</EnumValue>
<EnumValue Name="OldStyle" Switch="Z7" DisplayName="C7 compatible" Description="Select the type of debugging information created for your program and whether this information is kept in object (.obj) files or in a program database (PDB).">
</EnumValue>
<EnumValue Name="ProgramDatabase" Switch="Zi" DisplayName="Program Database" Description="Produces a program database (PDB) that contains type information and symbolic debugging information for use with the debugger. The symbolic debugging information includes the names and types of variables, as well as functions and line numbers. ">
</EnumValue>
<EnumValue Name="EditAndContinue" Switch="ZI" DisplayName="Program Database for Edit And Continue" Description="Produces a program database, as described above, in a format that supports the Edit and Continue feature.">
</EnumValue>
</EnumProperty>
<BoolProperty Name="SupportJustMyCode" DisplayName="Support Just My Code Debugging" Description="(overrides C/C++ property) Adds supporting code for enabling Just My Code debugging in this compilation unit. (/JMC)" Category="RccCpp" Switch="JMC" F1Keyword="VC.Project.VCCLCompilerTool.SupportJustMyCode">
</BoolProperty>
<EnumProperty Name="CompileAsManaged" DisplayName="Common Language RunTime Support" Description="(overrides C/C++ property) Use the .NET runtime service. This switch is incompatible with some other switches; see the documentation on the /clr family of switches for details." Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.CompileAsManaged">
<EnumValue Name="false" Switch="" DisplayName="No Common Language RunTime Support" Description="No Common Language RunTime Support">
</EnumValue>
<EnumValue Name="true" Switch="clr" DisplayName="Common Language RunTime Support" Description="Creates metadata for your application that can be consumed by other CLR applications, and allows your application to consume types and data in the metadata of other CLR components.">
</EnumValue>
<EnumValue Name="Pure" Switch="clr:pure" DisplayName="Pure MSIL Common Language RunTime Support" Description="Produces an MSIL-only output file with no native executable code, although it can contain native types compiled to MSIL.">
</EnumValue>
<EnumValue Name="Safe" Switch="clr:safe" DisplayName="Safe MSIL Common Language RunTime Support" Description="Produces an MSIL-only (no native executable code) and verifiable output file.">
</EnumValue>
</EnumProperty>
<BoolProperty Name="CompileAsWinRT" DisplayName="Consume Windows Runtime Extension" Description="(overrides C/C++ property) Consume the Windows Run Time languages extensions. (/ZW)" Category="RccCpp" Switch="ZW" F1Keyword="VC.Project.VCCLCompilerTool.CompileAsWinRT">
</BoolProperty>
<BoolProperty Name="SuppressStartupBanner" DisplayName="Suppress Startup Banner" Description="(overrides C/C++ property) Suppresses the display of the sign-on banner when the compiler starts up and display of informational messages during compiling." Category="RccCpp" Switch="nologo" F1Keyword="VC.Project.VCCLCompilerTool.SuppressStartupBanner">
</BoolProperty>
<EnumProperty Name="WarningLevel" DisplayName="Warning Level" Description="(overrides C/C++ property) Select how strict you want the compiler to be about code errors. (/W0 - /W4)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.WarningLevel">
<EnumValue Name="TurnOffAllWarnings" Switch="W0" DisplayName="Turn Off All Warnings" Description="Level 0 disables all warnings.">
</EnumValue>
<EnumValue Name="Level1" Switch="W1" DisplayName="Level1" Description="Level 1 displays severe warnings. Level 1 is the default warning level at the command line.">
</EnumValue>
<EnumValue Name="Level2" Switch="W2" DisplayName="Level2" Description="Level 2 displays all level 1 warnings and warnings less severe than level 1.">
</EnumValue>
<EnumValue Name="Level3" Switch="W3" DisplayName="Level3" Description="Level 3 displays all level 2 warnings and all other warnings recommended for production purposes.">
</EnumValue>
<EnumValue Name="Level4" Switch="W4" DisplayName="Level4" Description="Level 4 displays all level 3 warnings plus informational warnings, which in most cases can be safely ignored.">
</EnumValue>
<EnumValue Name="EnableAllWarnings" Switch="Wall" DisplayName="EnableAllWarnings" Description="Enables all warnings, including those disabled by default.">
</EnumValue>
</EnumProperty>
<BoolProperty ReverseSwitch="WX-" Name="TreatWarningAsError" DisplayName="Treat Warnings As Errors" Description="(overrides C/C++ property) Treats all compiler warnings as errors. For a new project, it may be best to use /WX in all compilations; resolving all warnings will ensure the fewest possible hard-to-find code defects." Category="RccCpp" Switch="WX" F1Keyword="VC.Project.VCCLCompilerTool.WarnAsError">
</BoolProperty>
<StringProperty Name="WarningVersion" DisplayName="Warning Version" Description="(overrides C/C++ property) Hide warnings introduced after a specific version of the compiler. (/Wv:xx[.yy[.zzzzz]])" Category="RccCpp" Switch="Wv:" F1Keyword="VC.Project.VCCLCompilerTool.WarningVersion">
</StringProperty>
<EnumProperty Name="DiagnosticsFormat" DisplayName="Diagnostics Format" Description="(overrides C/C++ property) Enables rich diagnostics, with column information and source context in diagnostic messages." Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.DiagnosticsFormat">
<EnumValue Name="Caret" Switch="diagnostics:caret" DisplayName="Caret" Description="Provides column information in the diagnostic message, as well as outputting the relevant line of source code with a caret indicating the offending column.">
</EnumValue>
<EnumValue Name="Column" Switch="diagnostics:column" DisplayName="Column Info" Description="Additionally provides the column number within the line where the diagnostic is issued, where applicable.">
</EnumValue>
<EnumValue Name="Classic" Switch="diagnostics:classic" DisplayName="Classic" Description="Retains the prior, concise diagnostic messages with the line number.">
</EnumValue>
</EnumProperty>
<BoolProperty ReverseSwitch="sdl-" Name="SDLCheck" DisplayName="SDL checks" Description="(overrides C/C++ property) Additional Security Development Lifecycle (SDL) recommended checks; includes enabling additional secure code generation features and enables extra security-relevant warnings as errors. (/sdl, /sdl-)" Category="RccCpp" Switch="sdl" F1Keyword="VC.Project.VCCLCompilerTool.SDLCheck">
</BoolProperty>
<BoolProperty Name="MultiProcessorCompilation" DisplayName="Multi-processor Compilation" Description="(overrides C/C++ property) Multi-processor Compilation." Category="RccCpp" Switch="MP" F1Keyword="VC.Project.VCCLCompilerTool.MultiProcessorCompilation">
<Argument Property="ProcessorNumber" IsRequired="false" />
</BoolProperty>
<StringProperty Name="QtCppHeader_Optimization" Category="RccCpp" ReadOnly="true" DisplayName="########## Optimization ##############################" />
<EnumProperty Name="Optimization" DisplayName="Optimization" Description="(overrides C/C++ property) Select option for code optimization; choose Custom to use specific optimization options. (/Od, /O1, /O2)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.Optimization">
<EnumValue Name="Custom" Switch="" DisplayName="Custom" Description="Custom optimization.">
</EnumValue>
<EnumValue Name="Disabled" Switch="Od" DisplayName="Disabled" Description="Disable optimization.">
</EnumValue>
<EnumValue Name="MinSpace" Switch="O1" DisplayName="Maximum Optimization (Favor Size)" Description="Equivalent to /Og /Os /Oy /Ob2 /Gs /GF /Gy">
</EnumValue>
<EnumValue Name="MaxSpeed" Switch="O2" DisplayName="Maximum Optimization (Favor Speed)" Description="Equivalent to /Og /Oi /Ot /Oy /Ob2 /Gs /GF /Gy">
</EnumValue>
<EnumValue Name="Full" Switch="Ox" DisplayName="Optimizations (Favor Speed)" Description="Equivalent to /Og /Oi /Ot /Oy /Ob2">
</EnumValue>
</EnumProperty>
<EnumProperty Name="InlineFunctionExpansion" DisplayName="Inline Function Expansion" Description="(overrides C/C++ property) Select the level of inline function expansion for the build. (/Ob1, /Ob2)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.InlineFunctionExpansion">
<EnumValue Name="Default" Switch="" DisplayName="Default">
</EnumValue>
<EnumValue Name="Disabled" Switch="Ob0" DisplayName="Disabled" Description="Disables inline expansion, which is on by default.">
</EnumValue>
<EnumValue Name="OnlyExplicitInline" Switch="Ob1" DisplayName="Only __inline" Description="Expands only functions marked as inline, __inline, __forceinline or __inline or, in a C++ member function, defined within a class declaration.">
</EnumValue>
<EnumValue Name="AnySuitable" Switch="Ob2" DisplayName="Any Suitable" Description="Expands functions marked as inline or __inline and any other function that the compiler chooses (expansion occurs at the compiler's discretion, often referred to as auto-inlining).">
</EnumValue>
</EnumProperty>
<BoolProperty Name="IntrinsicFunctions" DisplayName="Enable Intrinsic Functions" Description="(overrides C/C++ property) Enables intrinsic functions. Using intrinsic functions generates faster, but possibly larger, code. (/Oi)" Category="RccCpp" Switch="Oi" F1Keyword="VC.Project.VCCLCompilerTool.EnableIntrinsicFunctions">
</BoolProperty>
<EnumProperty Name="FavorSizeOrSpeed" DisplayName="Favor Size Or Speed" Description="(overrides C/C++ property) Whether to favor code size or code speed; 'Global Optimization' must be turned on. (/Ot, /Os)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.FavorSizeOrSpeed">
<EnumValue Name="Size" Switch="Os" DisplayName="Favor small code" Description="Favor Small Code. Minimizes the size of EXEs and DLLs by instructing the compiler to favor size over speed.">
</EnumValue>
<EnumValue Name="Speed" Switch="Ot" DisplayName="Favor fast code" Description="Favor Fast Code. Maximizes the speed of EXEs and DLLs by instructing the compiler to favor speed over size. (This is the default.) ">
</EnumValue>
<EnumValue Name="Neither" Switch="" DisplayName="Neither" Description="No size nor speed optimization.">
</EnumValue>
</EnumProperty>
<BoolProperty ReverseSwitch="Oy-" Name="OmitFramePointers" DisplayName="Omit Frame Pointers" Description="(overrides C/C++ property) Suppresses creation of frame pointers on the call stack." Category="RccCpp" Switch="Oy" F1Keyword="VC.Project.VCCLCompilerTool.OmitFramePointers">
</BoolProperty>
<BoolProperty Name="EnableFiberSafeOptimizations" DisplayName="Enable Fiber-Safe Optimizations" Description="(overrides C/C++ property) Enables memory space optimization when using fibers and thread local storage access. (/GT)" Category="RccCpp" Switch="GT" F1Keyword="VC.Project.VCCLCompilerTool.EnableFiberSafeOptimizations">
</BoolProperty>
<BoolProperty Name="WholeProgramOptimization" DisplayName="Whole Program Optimization" Description="(overrides C/C++ property) Enables cross-module optimizations by delaying code generation to link time; requires that linker option 'Link Time Code Generation' be turned on. (/GL)" Category="RccCpp" Switch="GL" F1Keyword="VC.Project.VCCLWCECompilerTool.WholeProgramOptimization">
</BoolProperty>
<StringProperty Name="QtCppHeader_Preprocessor" Category="RccCpp" ReadOnly="true" DisplayName="########## Preprocessor ##############################" />
<StringListProperty Name="PreprocessorDefinitions" DisplayName="Preprocessor Definitions" Description="(overrides C/C++ property) Defines a preprocessing symbols for your source file." Category="RccCpp" Switch="D " F1Keyword="VC.Project.VCCLCompilerTool.PreprocessorDefinitions">
</StringListProperty>
<StringListProperty Name="UndefinePreprocessorDefinitions" DisplayName="Undefine Preprocessor Definitions" Description="(overrides C/C++ property) Specifies one or more preprocessor undefines. (/U[macro])" Category="RccCpp" Switch="U" F1Keyword="VC.Project.VCCLCompilerTool.UndefinePreprocessorDefinitions">
</StringListProperty>
<BoolProperty Name="UndefineAllPreprocessorDefinitions" DisplayName="Undefine All Preprocessor Definitions" Description="(overrides C/C++ property) Undefine all previously defined preprocessor values. (/u)" Category="RccCpp" Switch="u" F1Keyword="VC.Project.VCCLCompilerTool.UndefineAllPreprocessorDefinitions">
</BoolProperty>
<BoolProperty Name="IgnoreStandardIncludePath" DisplayName="Ignore Standard Include Paths" Description="(overrides C/C++ property) Prevents the compiler from searching for include files in directories specified in the INCLUDE environment variables." Category="RccCpp" Switch="X" F1Keyword="VC.Project.VCCLCompilerTool.IgnoreStandardIncludePath">
</BoolProperty>
<BoolProperty Name="PreprocessToFile" DisplayName="Preprocess to a File" Description="(overrides C/C++ property) Preprocesses C and C++ source files and writes the preprocessed output to a file. This option suppresses compilation, thus it does not produce an .obj file." Category="RccCpp" Switch="P" F1Keyword="VC.Project.VCCLCompilerTool.GeneratePreprocessedFile">
</BoolProperty>
<BoolProperty Name="PreprocessSuppressLineNumbers" DisplayName="Preprocess Suppress Line Numbers" Description="(overrides C/C++ property) Preprocess without #line directives." Category="RccCpp" Switch="EP" F1Keyword="VC.Project.VCCLCompilerTool.GeneratePreprocessedFileNoLines">
</BoolProperty>
<BoolProperty Name="PreprocessKeepComments" DisplayName="Keep Comments" Description="(overrides C/C++ property) Suppresses comment strip from source code; requires that one of the 'Preprocessing' options be set. (/C)" Category="RccCpp" Switch="C" F1Keyword="VC.Project.VCCLCompilerTool.KeepComments">
</BoolProperty>
<StringProperty Name="QtCppHeader_Code_Generation" Category="RccCpp" ReadOnly="true" DisplayName="########## Code Generation ##############################" />
<BoolProperty ReverseSwitch="GF-" Name="StringPooling" DisplayName="Enable String Pooling" Description="(overrides C/C++ property) Enables the compiler to create a single read-only copy of identical strings in the program image and in memory during execution, resulting in smaller programs, an optimization called string pooling. /O1, /O2, and /ZI automatically set /GF option. " Category="RccCpp" Switch="GF" F1Keyword="VC.Project.VCCLCompilerTool.StringPooling">
</BoolProperty>
<BoolProperty ReverseSwitch="Gm-" Name="MinimalRebuild" DisplayName="Enable Minimal Rebuild" Description="(overrides C/C++ property) Enables minimal rebuild, which determines whether C++ source files that include changed C++ class definitions (stored in header (.h) files) need to be recompiled." Category="RccCpp" Switch="Gm" F1Keyword="VC.Project.VCCLCompilerTool.MinimalRebuild">
</BoolProperty>
<EnumProperty Name="ExceptionHandling" DisplayName="Enable C++ Exceptions" Description="(overrides C/C++ property) Specifies the model of exception handling to be used by the compiler." Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.ExceptionHandling">
<EnumValue Name="Async" Switch="EHa" DisplayName="Yes with SEH Exceptions" Description="The exception-handling model that catches asynchronous (structured) and synchronous (C++) exceptions. (/EHa)">
</EnumValue>
<EnumValue Name="Sync" Switch="EHsc" DisplayName="Yes" Description="The exception-handling model that catches C++ exceptions only and tells the compiler to assume that extern C functions never throw a C++ exception. (/EHsc)">
</EnumValue>
<EnumValue Name="SyncCThrow" Switch="EHs" DisplayName="Yes with Extern C functions" Description="The exception-handling model that catches C++ exceptions only and tells the compiler to assume that extern C functions do throw an exception. (/EHs)">
</EnumValue>
<EnumValue Name="false" Switch="" DisplayName="No" Description="No exception handling.">
</EnumValue>
</EnumProperty>
<BoolProperty Name="SmallerTypeCheck" DisplayName="Smaller Type Check" Description="(overrides C/C++ property) Enable checking for conversion to smaller types, incompatible with any optimization type other than debug. (/RTCc)" Category="RccCpp" Switch="RTCc" F1Keyword="VC.Project.VCCLCompilerTool.SmallerTypeCheck">
</BoolProperty>
<EnumProperty Name="BasicRuntimeChecks" DisplayName="Basic Runtime Checks" Description="(overrides C/C++ property) Perform basic runtime error checks, incompatible with any optimization type other than debug. (/RTCs, /RTCu, /RTC1)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.BasicRuntimeChecks">
<EnumValue Name="StackFrameRuntimeCheck" Switch="RTCs" DisplayName="Stack Frames" Description="Enables stack frame run-time error checking.">
</EnumValue>
<EnumValue Name="UninitializedLocalUsageCheck" Switch="RTCu" DisplayName="Uninitialized variables" Description="Reports when a variable is used without having been initialized.">
</EnumValue>
<EnumValue Name="EnableFastChecks" Switch="RTC1" DisplayName="Both (/RTC1, equiv. to /RTCsu)" Description="Equivalent of /RTCsu.">
</EnumValue>
<EnumValue Name="Default" Switch="" DisplayName="Default" Description="Default runtime checks.">
</EnumValue>
</EnumProperty>
<EnumProperty Name="RuntimeLibrary" DisplayName="Runtime Library" Description="(overrides C/C++ property) Specify runtime library for linking. (/MT, /MTd, /MD, /MDd)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.RuntimeLibrary">
<EnumValue Name="MultiThreaded" Switch="MT" DisplayName="Multi-threaded" Description="Causes your application to use the multithread, static version of the run-time library.">
</EnumValue>
<EnumValue Name="MultiThreadedDebug" Switch="MTd" DisplayName="Multi-threaded Debug" Description="Defines _DEBUG and _MT. This option also causes the compiler to place the library name LIBCMTD.lib into the .obj file so that the linker will use LIBCMTD.lib to resolve external symbols.">
</EnumValue>
<EnumValue Name="MultiThreadedDLL" Switch="MD" DisplayName="Multi-threaded DLL" Description="Causes your application to use the multithread- and DLL-specific version of the run-time library. Defines _MT and _DLL and causes the compiler to place the library name MSVCRT.lib into the .obj file.">
</EnumValue>
<EnumValue Name="MultiThreadedDebugDLL" Switch="MDd" DisplayName="Multi-threaded Debug DLL" Description="Defines _DEBUG, _MT, and _DLL and causes your application to use the debug multithread- and DLL-specific version of the run-time library. It also causes the compiler to place the library name MSVCRTD.lib into the .obj file.">
</EnumValue>
</EnumProperty>
<EnumProperty Name="StructMemberAlignment" DisplayName="Struct Member Alignment" Description="(overrides C/C++ property) Specifies 1, 2, 4, or 8-byte boundaries for struct member alignment. (/Zp[num])" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.StructMemberAlignment">
<EnumValue Name="1Byte" Switch="Zp1" DisplayName="1 Byte" Description="Packs structures on 1-byte boundaries. Same as /Zp.">
</EnumValue>
<EnumValue Name="2Bytes" Switch="Zp2" DisplayName="2 Bytes" Description="Packs structures on 2-byte boundaries.">
</EnumValue>
<EnumValue Name="4Bytes" Switch="Zp4" DisplayName="4 Byte" Description="Packs structures on 4-byte boundaries.">
</EnumValue>
<EnumValue Name="8Bytes" Switch="Zp8" DisplayName="8 Bytes" Description="Packs structures on 8-byte boundaries (default).">
</EnumValue>
<EnumValue Name="16Bytes" Switch="Zp16" DisplayName="16 Bytes" Description="Packs structures on 16-byte boundaries.">
</EnumValue>
<EnumValue Name="Default" Switch="" DisplayName="Default" Description="Default alignment settings.">
</EnumValue>
</EnumProperty>
<EnumProperty Name="BufferSecurityCheck" DisplayName="Security Check" Description="(overrides C/C++ property) The Security Check helps detect stack-buffer over-runs, a common attempted attack upon a program's security. . (/GS-, /GS)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.BufferSecurityCheck">
<EnumValue Name="false" Switch="GS-" DisplayName="Disable Security Check" Description="Disable Security Check. (/GS-)">
</EnumValue>
<EnumValue Name="true" Switch="GS" DisplayName="Enable Security Check" Description="Enable Security Check. (/GS)">
</EnumValue>
</EnumProperty>
<EnumProperty Name="ControlFlowGuard" DisplayName="Control Flow Guard" Description="(overrides C/C++ property) Guard security check helps detect attempts to dispatch to illegal block of code. (/guard:cf)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.ControlFlowGuard">
<EnumValue Name="Guard" Switch="guard:cf" DisplayName="Yes" Description="Enable Security Check with Guard (/guard:cf)">
</EnumValue>
<EnumValue Name="false" Switch="" DisplayName="No">
</EnumValue>
</EnumProperty>
<BoolProperty ReverseSwitch="Gy-" Name="FunctionLevelLinking" DisplayName="Enable Function-Level Linking" Description="(overrides C/C++ property) Allows the compiler to package individual functions in the form of packaged functions (COMDATs). Required for edit and continue to work. (/Gy)" Category="RccCpp" Switch="Gy" F1Keyword="VC.Project.VCCLCompilerTool.EnableFunctionLevelLinking">
</BoolProperty>
<BoolProperty ReverseSwitch="Qpar-" Name="EnableParallelCodeGeneration" DisplayName="Enable Parallel Code Generation" Description="(overrides C/C++ property) Allows the compiler to generate parallel code for loops identified using #pragma loop(hint_parallel[(n)]) when optimization is enabled." Category="RccCpp" Switch="Qpar" F1Keyword="VC.Project.VCCLCompilerTool.EnableParallelCodeGeneration">
</BoolProperty>
<EnumProperty Name="EnableEnhancedInstructionSet" DisplayName="Enable Enhanced Instruction Set" Description="(overrides C/C++ property) Enable use of instructions found on processors that support enhanced instruction sets, e.g., the SSE, SSE2, AVX, AVX2 and AVX-512 enhancements to IA-32; AVX, AVX2 and AVX-512 to x64. Currently /arch:SSE and /arch:SSE2 are only available when building for the x86 architecture. If no option is specified, the compiler will use instructions found on processors that support SSE2. Use of enhanced instructions can be disabled with /arch:IA32. (/arch:SSE, /arch:SSE2, /arch:AVX, /arch:AVX2, /arch:AVX512, /arch:IA32)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.EnableEnhancedInstructionSet">
<EnumValue Name="StreamingSIMDExtensions" Switch="arch:SSE" DisplayName="Streaming SIMD Extensions" Description="Streaming SIMD Extensions. (/arch:SSE)">
</EnumValue>
<EnumValue Name="StreamingSIMDExtensions2" Switch="arch:SSE2" DisplayName="Streaming SIMD Extensions 2" Description="Streaming SIMD Extensions 2. (/arch:SSE2)">
</EnumValue>
<EnumValue Name="AdvancedVectorExtensions" Switch="arch:AVX" DisplayName="Advanced Vector Extensions" Description="Advanced Vector Extensions. (/arch:AVX)">
</EnumValue>
<EnumValue Name="AdvancedVectorExtensions2" Switch="arch:AVX2" DisplayName="Advanced Vector Extensions 2" Description="Advanced Vector Extensions 2. (/arch:AVX2)">
</EnumValue>
<EnumValue Name="AdvancedVectorExtensions512" Switch="arch:AVX512" DisplayName="Advanced Vector Extensions 512" Description="Advanced Vector Extensions 512. (/arch:AVX512)">
</EnumValue>
<EnumValue Name="NoExtensions" Switch="arch:IA32" DisplayName="No Enhanced Instructions" Description="No Enhanced Instructions. (/arch:IA32)">
</EnumValue>
<EnumValue Name="NotSet" Switch="" DisplayName="Not Set" Description="Not Set.">
</EnumValue>
</EnumProperty>
<EnumProperty Name="FloatingPointModel" DisplayName="Floating Point Model" Description="(overrides C/C++ property) Sets the floating point model. (/fp:precise, /fp:strict, /fp:fast)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.floatingPointModel">
<EnumValue Name="Precise" Switch="fp:precise" DisplayName="Precise" Description="Default. Improves the consistency of floating-point tests for equality and inequality.">
</EnumValue>
<EnumValue Name="Strict" Switch="fp:strict" DisplayName="Strict" Description="The strictest floating-point model. /fp:strict causes fp_contract to be OFF and fenv_access to be ON. /fp:except is implied and can be disabled by explicitly specifying /fp:except-. When used with /fp:except-, /fp:strict enforces strict floating-point semantics but without respect for exceptional events.">
</EnumValue>
<EnumValue Name="Fast" Switch="fp:fast" DisplayName="Fast" Description="Creates the fastest code in the majority of cases. ">
</EnumValue>
</EnumProperty>
<BoolProperty ReverseSwitch="fp:except-" Name="FloatingPointExceptions" DisplayName="Enable Floating Point Exceptions" Description="(overrides C/C++ property) Reliable floating-point exception model. Exceptions will be raised immediately after they are triggered. (/fp:except)" Category="RccCpp" Switch="fp:except" F1Keyword="VC.Project.VCCLCompilerTool.FloatingPointExceptions">
</BoolProperty>
<BoolProperty Name="CreateHotpatchableImage" DisplayName="Create Hotpatchable Image" Description="(overrides C/C++ property) When hotpatching is on, the compiler ensures that first instruction of each function is two bytes, which is required for hot patching. (/hotpatch)" Category="RccCpp" Switch="hotpatch" F1Keyword="VC.Project.VCCLCompilerTool.CreateHotpatchableImage">
</BoolProperty>
<StringProperty Name="QtCppHeader_Language" Category="RccCpp" ReadOnly="true" DisplayName="########## Language ##############################" />
<BoolProperty Name="DisableLanguageExtensions" DisplayName="Disable Language Extensions" Description="(overrides C/C++ property) Suppresses or enables language extensions. (/Za)" Category="RccCpp" Switch="Za" F1Keyword="VC.Project.VCCLCompilerTool.DisableLanguageExtensions">
</BoolProperty>
<BoolProperty Name="ConformanceMode" DisplayName="Conformance mode" Description="(overrides C/C++ property) Enables or suppresses conformance mode. (/permissive-)" Category="RccCpp" Switch="permissive-" F1Keyword="VC.Project.VCCLCompilerTool.ConformanceMode">
</BoolProperty>
<BoolProperty ReverseSwitch="Zc:wchar_t-" Name="TreatWChar_tAsBuiltInType" DisplayName="Treat WChar_t As Built in Type" Description="(overrides C/C++ property) When specified, the type wchar_t becomes a native type that maps to __wchar_t in the same way that short maps to __int16. /Zc:wchar_t is on by default." Category="RccCpp" Switch="Zc:wchar_t" F1Keyword="VC.Project.VCCLCompilerTool.TreatWChar_tAsBuiltInType">
</BoolProperty>
<BoolProperty ReverseSwitch="Zc:forScope-" Name="ForceConformanceInForLoopScope" DisplayName="Force Conformance in For Loop Scope" Description="(overrides C/C++ property) Used to implement standard C++ behavior for the for statement loops with Microsoft extensions (/Za, /Ze (Disable Language Extensions)). /Zc:forScope is on by default." Category="RccCpp" Switch="Zc:forScope" F1Keyword="VC.Project.VCCLCompilerTool.ForceConformanceInForLoopScope">
</BoolProperty>
<BoolProperty Name="RemoveUnreferencedCodeData" DisplayName="Remove unreferenced code and data" Description="(overrides C/C++ property) When specified, compiler no longer generates symbol information for unreferenced code and data." Category="RccCpp" Switch="Zc:inline" F1Keyword="VC.Project.VCCLCompilerTool.RemoveUnreferencedCodeData">
</BoolProperty>
<BoolProperty ReverseSwitch="Zc:rvalueCast-" Name="EnforceTypeConversionRules" DisplayName="Enforce type conversion rules" Description="(overrides C/C++ property) Used to identify an rvalue reference type as the result of a cast operation in accordance with the C++11 standard." Category="RccCpp" Switch="Zc:rvalueCast" F1Keyword="VC.Project.VCCLCompilerTool.EnforceTypeConversionRules">
</BoolProperty>
<BoolProperty ReverseSwitch="GR-" Name="RuntimeTypeInfo" DisplayName="Enable Run-Time Type Information" Description="(overrides C/C++ property) Adds code for checking C++ object types at run time (runtime type information). (/GR, /GR-)" Category="RccCpp" Switch="GR" F1Keyword="VC.Project.VCCLCompilerTool.RuntimeTypeInfo">
</BoolProperty>
<BoolProperty ReverseSwitch="openmp-" Name="OpenMPSupport" DisplayName="Open MP Support" Description="(overrides C/C++ property) Enable OpenMP 2.0 language extensions. (/openmp)" Category="RccCpp" Switch="openmp" F1Keyword="VC.Project.VCCLCompilerTool.OpenMP">
</BoolProperty>
<EnumProperty Name="LanguageStandard" DisplayName="C++ Language Standard" Description="(overrides C/C++ property) Determines the C++ language standard the compiler will enforce. It is recommended to use the latest version when possible. (/std:c++14, /std:c++17, /std:c++latest)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.CppLanguageStandard">
<EnumValue Name="Default" Switch="" DisplayName="Default">
</EnumValue>
<EnumValue Name="stdcpp14" Switch="std:c++14" DisplayName="ISO C++14 Standard">
</EnumValue>
<EnumValue Name="stdcpp17" Switch="std:c++17" DisplayName="ISO C++17 Standard">
</EnumValue>
<EnumValue Name="stdcpplatest" Switch="std:c++latest" DisplayName="Preview - Features from the Latest C++ Working Draft">
</EnumValue>
</EnumProperty>
<BoolProperty Name="EnableModules" DisplayName="Enable C++ Modules (experimental)" Description="(overrides C/C++ property) Experimental support for the C++ Modules TS and Standard Library modules." Category="RccCpp" Switch="experimental:module" F1Keyword="VC.Project.VCCLCompilerTool.ModulesSupport">
</BoolProperty>
<StringProperty Name="QtCppHeader_Precompiled_Headers" Category="RccCpp" ReadOnly="true" DisplayName="########## Precompiled Headers ##############################" />
<EnumProperty Name="PrecompiledHeader" DisplayName="Precompiled Header" Description="(overrides C/C++ property) Create/Use Precompiled Header : Enables creation or use of a precompiled header during the build. (/Yc, /Yu)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.UsePrecompiledHeader">
<EnumValue Name="Create" Switch="Yc" DisplayName="Create" Description="Instructs the compiler to create a precompiled header (.pch) file that represents the state of compilation at a certain point.">
<Argument Property="PrecompiledHeaderFile" IsRequired="false" />
</EnumValue>
<EnumValue Name="Use" Switch="Yu" DisplayName="Use" Description="Instructs the compiler to use an existing precompiled header (.pch) file in the current compilation.">
<Argument Property="PrecompiledHeaderFile" IsRequired="false" />
</EnumValue>
<EnumValue Name="NotUsing" Switch="" DisplayName="Not Using Precompiled Headers" Description="Not using precompiled headers. ">
</EnumValue>
</EnumProperty>
<StringProperty Subtype="file" Name="PrecompiledHeaderFile" DisplayName="Precompiled Header File" Description="(overrides C/C++ property) Specifies header file name to use when creating or using a precompiled header file. (/Yc[name], /Yu[name])" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.PrecompiledHeaderThrough">
</StringProperty>
<StringProperty Subtype="file" Name="PrecompiledHeaderOutputFile" DisplayName="Precompiled Header Output File" Description="(overrides C/C++ property) Specifies the path and/or name of the generated precompiled header file. (/Fp[name])" Category="RccCpp" Switch="Fp" F1Keyword="VC.Project.VCCLCompilerTool.PrecompiledHeaderFile">
</StringProperty>
<StringProperty Name="QtCppHeader_Output_Files" Category="RccCpp" ReadOnly="true" DisplayName="########## Output Files ##############################" />
<BoolProperty Name="ExpandAttributedSource" DisplayName="Expand Attributed Source" Description="(overrides C/C++ property) Create listing file with expanded attributes injected into source file. (/Fx)" Category="RccCpp" Switch="Fx" F1Keyword="VC.Project.VCCLCompilerTool.ExpandAttributedSource">
</BoolProperty>
<EnumProperty Name="AssemblerOutput" DisplayName="Assembler Output" Description="(overrides C/C++ property) Specifies the contents of assembly language output file. (/FA, /FAc, /FAs, /FAcs)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.AssemblerOutput">
<EnumValue Name="NoListing" Switch="" DisplayName="No Listing" Description="No listing. ">
</EnumValue>
<EnumValue Name="AssemblyCode" Switch="FA" DisplayName="Assembly-Only Listing" Description="Assembly code; .asm">
</EnumValue>
<EnumValue Name="AssemblyAndMachineCode" Switch="FAc" DisplayName="Assembly With Machine Code" Description="Machine and assembly code; .cod">
</EnumValue>
<EnumValue Name="AssemblyAndSourceCode" Switch="FAs" DisplayName="Assembly With Source Code" Description="Source and assembly code; .asm">
</EnumValue>
<EnumValue Name="All" Switch="FAcs" DisplayName="Assembly, Machine Code and Source" Description="Assembly, machine code and source code; .cod">
</EnumValue>
</EnumProperty>
<BoolProperty Name="UseUnicodeForAssemblerListing" DisplayName="Use Unicode For Assembler Listing" Description="(overrides C/C++ property) Causes the output file to be created in UTF-8 format. " Category="RccCpp" Switch="FAu" F1Keyword="VC.Project.VCCLCompilerTool.UseUnicodeForAssemblerListing">
</BoolProperty>
<StringProperty Subtype="file" Name="AssemblerListingLocation" DisplayName="ASM List Location" Description="(overrides C/C++ property) Specifies relative path and/or name for ASM listing file; can be file or directory name. (/Fa[name])" Category="RccCpp" Switch="Fa" F1Keyword="VC.Project.VCCLCompilerTool.AssemblerListingLocation">
</StringProperty>
<StringProperty Subtype="file" Name="ObjectFileName" DisplayName="Object File Name" Description="(overrides C/C++ property) Specifies a name to override the default object file name; can be file or directory name. (/Fo[name])" Category="RccCpp" Switch="Fo" F1Keyword="VC.Project.VCCLCompilerTool.ObjectFile">
</StringProperty>
<StringProperty Subtype="file" Name="ProgramDataBaseFileName" DisplayName="Program Database File Name" Description="(overrides C/C++ property) Specifies a name for a compiler-generated PDB file; also specifies base name for the required compiler-generated IDB file; can be file or directory name. (/Fd[name])" Category="RccCpp" Switch="Fd" F1Keyword="VC.Project.VCCLCompilerTool.ProgramDataBaseFileName">
</StringProperty>
<BoolProperty Name="GenerateXMLDocumentationFiles" DisplayName="Generate XML Documentation Files" Description="(overrides C/C++ property) Specifies that the compiler should generate XML documentation comment files (.XDC). (/doc)" Category="RccCpp" Switch="doc" F1Keyword="VC.Project.VCCLCompilerTool.GenerateXMLDocumentationFiles">
<Argument Property="XMLDocumentationFileName" IsRequired="false" />
</BoolProperty>
<StringProperty Subtype="file" Name="XMLDocumentationFileName" DisplayName="XML Documentation File Name" Description="(overrides C/C++ property) Specifies the name of the generated XML documentation files; can be file or directory name. (/doc[name])" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.XMLDocumentationFileName">
</StringProperty>
<StringProperty Name="QtCppHeader_Browse_Information" Category="RccCpp" ReadOnly="true" DisplayName="########## Browse Information ##############################" />
<BoolProperty Name="BrowseInformation" DisplayName="Enable Browse Information" Description="(overrides C/C++ property) Enable Browse Information : Specifies level of browse information in .bsc file. (/FR)" Category="RccCpp" Switch="FR" F1Keyword="VC.Project.VCCLCompilerTool.BrowseInformation">
<Argument Property="BrowseInformationFile" IsRequired="false" />
</BoolProperty>
<StringProperty Subtype="file" Name="BrowseInformationFile" DisplayName="Browse Information File" Description="(overrides C/C++ property) Browse File : Specifies optional name for browser information file. (/FR[name])" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.BrowseInformationFile">
</StringProperty>
<StringProperty Name="QtCppHeader_Advanced" Category="RccCpp" ReadOnly="true" DisplayName="########## Advanced ##############################" />
<EnumProperty Name="CallingConvention" DisplayName="Calling Convention" Description="(overrides C/C++ property) Select the default calling convention for your application (can be overridden by function). (/Gd, /Gr, /Gz, /Gv)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.CallingConvention">
<EnumValue Name="Cdecl" Switch="Gd" DisplayName="__cdecl" Description="Specifies the __cdecl calling convention for all functions except C++ member functions and functions marked __stdcall or __fastcall.">
</EnumValue>
<EnumValue Name="FastCall" Switch="Gr" DisplayName="__fastcall" Description="Specifies the __fastcall calling convention for all functions except C++ member sfunctions and functions marked __cdecl or __stdcall. All __fastcall functions must have prototypes.">
</EnumValue>
<EnumValue Name="StdCall" Switch="Gz" DisplayName="__stdcall" Description="Specifies the __stdcall calling convention for all functions except C++ member functions and functions marked __cdecl or __fastcall. All __stdcall functions must have prototypes.">
</EnumValue>
<EnumValue Name="VectorCall" Switch="Gv" DisplayName="__vectorcall" Description="Specifies the __vectorcall calling convention for all functions except C++ member functions and functions marked __cdecl, __fastcall, or __stdcall. All __vectorcall functions must have prototypes.">
</EnumValue>
</EnumProperty>
<EnumProperty Name="CompileAs" DisplayName="Compile As" Description="(overrides C/C++ property) Select compile language option for .c and .cpp files. (/TC, /TP)" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.CompileAs">
<EnumValue Name="Default" Switch="" DisplayName="Default" Description="Default.">
</EnumValue>
<EnumValue Name="CompileAsC" Switch="TC" DisplayName="Compile as C Code" Description="Compile as C Code.">
</EnumValue>
<EnumValue Name="CompileAsCpp" Switch="TP" DisplayName="Compile as C++ Code" Description="Compile as C++ Code.">
</EnumValue>
</EnumProperty>
<StringListProperty Name="DisableSpecificWarnings" DisplayName="Disable Specific Warnings" Description="(overrides C/C++ property) Disable the desired warning numbers; put numbers in a semi-colon delimited list. (/wd[num])" Category="RccCpp" Switch="wd" F1Keyword="VC.Project.VCCLCompilerTool.DisableSpecificWarnings">
</StringListProperty>
<StringListProperty Subtype="file" Name="ForcedIncludeFiles" DisplayName="Forced Include File" Description="(overrides C/C++ property) one or more forced include files. (/FI[name])" Category="RccCpp" Switch="FI" F1Keyword="VC.Project.VCCLCompilerTool.ForcedIncludeFiles">
</StringListProperty>
<StringListProperty Subtype="file" Name="ForcedUsingFiles" DisplayName="Forced #using File" Description="(overrides C/C++ property) Specifies one or more forced #using files. (/FU[name])" Category="RccCpp" Switch="FU" F1Keyword="VC.Project.VCCLCompilerTool.ForcedUsingFiles">
</StringListProperty>
<BoolProperty Name="ShowIncludes" DisplayName="Show Includes" Description="(overrides C/C++ property) Generates a list of include files with compiler output. (/showIncludes)" Category="RccCpp" Switch="showIncludes" F1Keyword="VC.Project.VCCLCompilerTool.ShowIncludes">
</BoolProperty>
<BoolProperty Name="UseFullPaths" DisplayName="Use Full Paths" Description="(overrides C/C++ property) Use full paths in diagnostic messages. (/FC)" Category="RccCpp" Switch="FC" F1Keyword="VC.Project.VCCLCompilerTool.UseFullPaths">
</BoolProperty>
<BoolProperty Name="OmitDefaultLibName" DisplayName="Omit Default Library Name" Description="(overrides C/C++ property) Do not include default library names in .obj files. (/Zl)" Category="RccCpp" Switch="Zl" F1Keyword="VC.Project.VCCLCompilerTool.OmitDefaultLibName">
</BoolProperty>
<EnumProperty Name="ErrorReporting" DisplayName="Internal Compiler Error Reporting" Description="(overrides C/C++ property) Specifies how internal tool errors should be reported back to Microsoft. The default in the IDE is prompt. The default from command line builds is queue. (/errorReport:[method])" Category="RccCpp" F1Keyword="VC.Project.VCCLCompilerTool.ErrorReporting">
<EnumValue Name="None" Switch="errorReport:none" DisplayName="Do Not Send Report" Description="Reports about internal compiler errors will not be collected or sent to Microsoft.">
</EnumValue>
<EnumValue Name="Prompt" Switch="errorReport:prompt" DisplayName="Prompt Immediately" Description="Prompts you to send a report when you receive an internal compiler error.">
</EnumValue>
<EnumValue Name="Queue" Switch="errorReport:queue" DisplayName="Queue For Next Login" Description="Queues the error report. When you log in with administrator privileges, a pop-up window is displayed and allows you to report any failures since the last time you were logged in (you will not be prompted to send reports for failures more than once every three days). queue is the default when compiling an application at the command line.">
</EnumValue>
<EnumValue Name="Send" Switch="errorReport:send" DisplayName="Send Automatically" Description="Automatically sends reports of internal compiler errors to Microsoft. To enable this option, you must first agree to Microsoft%27s data collection policy. The first time you specify /errorReport:send on a computer, a compiler message will refer you to a website that contains Microsoft%27s data collection policy.">
</EnumValue>
</EnumProperty>
<StringListProperty Name="TreatSpecificWarningsAsErrors" DisplayName="Treat Specific Warnings As Errors" Description="(overrides C/C++ property) Treats the specific compiler warning as an error where n is a compiler warning." Category="RccCpp" Switch="we" F1Keyword="VC.Project.VCCLCompilerTool.TreatSpecificWarningsAsErrors">
</StringListProperty>
<!-- END Generated Text -->
<StringProperty
Name="AdditionalCppOptions"
DisplayName="Additional Options"
Description="Additional Options."
Category="RccCpp"/>
</Rule>
<ItemType
Name="QtRcc"
DisplayName="Qt Resource Compiler (rcc)" />
<FileExtension
Name="*.qrc"
ContentType="QtRcc" />
<ContentType
Name="QtRcc"
DisplayName="Qt Resource Compiler (rcc)"
ItemType="QtRcc" />
</ProjectSchemaDefinitions>
``` | /content/code_sandbox/GlosSIConfig/QtMsBuild/rcc/qtrcc_v3.xml | xml | 2016-11-18T00:46:26 | 2024-08-12T19:26:08 | GlosSI | Alia5/GlosSI | 1,642 | 13,358 |
```xml
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
// import components
import { LoginComponent } from './login/login.component';
import { SignupComponent } from './signup/signup.component';
import { ResetPasswordConfirmComponent } from './reset-password-confirm/reset-password-confirm.component';
import { ResetPasswordComponent } from './reset-password/reset-password.component';
import { VerifyEmailComponent } from './verify-email/verify-email.component';
import { AuthComponent } from './auth.component';
// import service
import { AuthService } from '../../services/auth.service';
// import module
import { SharedModule } from '../../shared/shared.module';
import { AuthRoutingModule } from './auth-routing.module';
@NgModule({
declarations: [
LoginComponent,
SignupComponent,
ResetPasswordConfirmComponent,
ResetPasswordComponent,
VerifyEmailComponent,
AuthComponent,
],
imports: [CommonModule, AuthRoutingModule, SharedModule],
exports: [
AuthComponent,
LoginComponent,
SignupComponent,
ResetPasswordComponent,
ResetPasswordConfirmComponent,
VerifyEmailComponent,
],
providers: [AuthService],
})
export class AuthModule {}
``` | /content/code_sandbox/frontend_v2/src/app/components/auth/auth.module.ts | xml | 2016-10-21T00:51:45 | 2024-08-16T14:41:56 | EvalAI | Cloud-CV/EvalAI | 1,736 | 231 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<litepal>
<dbname value="cool_weather" />
<version value="1" />
<list>
<mapping class="com.coolweather.android.db.Province" />
<mapping class="com.coolweather.android.db.City" />
<mapping class="com.coolweather.android.db.County" />
</list>
</litepal>
``` | /content/code_sandbox/chapter14/CoolWeather/app/src/main/assets/litepal.xml | xml | 2016-10-04T02:55:57 | 2024-08-16T11:00:26 | booksource | guolindev/booksource | 3,105 | 92 |
```xml
import { css, unsafeCSS } from 'lit';
import { customElement } from 'lit/decorators.js';
import { ListBase } from '@material/mwc-list/mwc-list-base';
import { styles as baseStyles } from '@material/mwc-list/mwc-list.css';
import styles from './list.scss?inline';
declare global {
interface HTMLElementTagNameMap {
'cv-list': CovalentList;
}
}
@customElement('cv-list')
export class CovalentList extends ListBase {
static override styles = [
baseStyles,
css`
${unsafeCSS(styles)}
`,
];
}
export default CovalentList;
``` | /content/code_sandbox/libs/components/src/list/list.ts | xml | 2016-07-11T23:30:52 | 2024-08-15T15:20:45 | covalent | Teradata/covalent | 2,228 | 138 |
```xml
import { World, Vec2, Edge, Box } from "../../src/index";
import { TestFactory } from "../benchmark";
export const planckFactory: TestFactory = (gravity, edgeV1, edgeV2, edgeDensity) => {
const world = new World({
gravity: new Vec2(gravity.x, gravity.y),
});
const ground = world.createBody({});
const edgeShape = new Edge(new Vec2(edgeV1.x, edgeV1.y), new Vec2(edgeV2.x, edgeV2.y));
ground.createFixture(edgeShape as any, edgeDensity);
return {
name: "planck.js (current)",
createBoxShape(hx: number, hy: number) {
return new Box(hx, hy);
},
createBoxBody(shape: any, x: number, y: number, density: number) {
const body = world.createBody({
type: "dynamic",
position: new Vec2(x, y),
});
body.createFixture(shape, density);
},
step(timeStep: number, velocityIterations: number, positionIterations: number) {
world.step(timeStep, velocityIterations, positionIterations);
},
};
};
``` | /content/code_sandbox/benchmark/tests/planck.ts | xml | 2016-03-22T04:46:05 | 2024-08-16T07:41:00 | planck.js | piqnt/planck.js | 4,864 | 257 |
```xml
import type { Meta, StoryObj } from '@storybook/react'
import { useState, useEffect } from 'react'
import { line, curveLinearClosed } from 'd3-shape'
import { Voronoi, VoronoiCustomLayerProps } from '@nivo/voronoi'
const meta: Meta<typeof Voronoi> = {
title: 'Voronoi',
component: Voronoi,
tags: ['autodocs'],
}
export default meta
type Story = StoryObj<typeof Voronoi>
const lineGenerator = line<[number, number]>().curve(curveLinearClosed)
const nekoSize = 75
const nekoHalfSize = nekoSize / 2
const Neko = ({ x, y }: { x: number; y: number }) => {
const points: [number, number][] = [
[x, y - nekoHalfSize + nekoSize * 0.2],
// right ear
[x + nekoSize * 0.25, y - nekoHalfSize + nekoSize * 0.2],
[x + nekoHalfSize, y - nekoHalfSize],
// jaw right
[x + nekoHalfSize, y + nekoHalfSize * 0.35],
[x + nekoSize * 0.1, y + nekoHalfSize],
[x, y + nekoHalfSize],
// jaw left
[x - nekoSize * 0.1, y + nekoHalfSize],
[x - nekoHalfSize, y + nekoHalfSize * 0.35],
// left ear
[x - nekoHalfSize, y],
[x - nekoHalfSize, y - nekoHalfSize],
[x - nekoHalfSize + nekoSize * 0.25, y - nekoHalfSize + nekoSize * 0.2],
[x, y - nekoHalfSize + nekoSize * 0.2],
]
return (
<>
<path
d={lineGenerator(points) ?? undefined}
fill="black"
stroke="black"
strokeWidth={5}
strokeLinejoin="round"
/>
<path
fill="#de83cd"
stroke="#de83cd"
strokeWidth={6}
strokeLinejoin="round"
d={`
M${x - nekoSize * 0.06},${y + nekoSize * 0.1}
L${x + nekoSize * 0.06},${y + nekoSize * 0.1}
L${x},${y + nekoSize * 0.14}
Z
`}
/>
<circle
fill="#c7bd61"
cx={x - nekoSize * 0.22}
cy={y - nekoSize * 0.05}
r={nekoSize * 0.13}
stroke="black"
strokeWidth={2}
/>
<circle
fill="black"
cx={x - nekoSize * 0.22}
cy={y - nekoSize * 0.05}
r={nekoSize * 0.06}
/>
<circle
fill="white"
cx={x - nekoSize * 0.18}
cy={y - nekoSize * 0.09}
r={nekoSize * 0.03}
/>
<circle
fill="#c7bd61"
cx={x + nekoSize * 0.22}
cy={y - nekoSize * 0.05}
r={nekoSize * 0.13}
stroke="black"
strokeWidth={2}
/>
<circle
fill="black"
cx={x + nekoSize * 0.22}
cy={y - nekoSize * 0.05}
r={nekoSize * 0.06}
/>
<circle
fill="white"
cx={x + nekoSize * 0.26}
cy={y - nekoSize * 0.09}
r={nekoSize * 0.03}
/>
<path
d={`
M${x + nekoSize * 0.12},${y + nekoSize * 0.18}
L${x + nekoSize * 0.7},${y + nekoSize * 0.05}
M${x + nekoSize * 0.14},${y + nekoSize * 0.21}
L${x + nekoSize * 0.8},${y + nekoSize * 0.15}
M${x + nekoSize * 0.12},${y + nekoSize * 0.26}
L${x + nekoSize * 0.6},${y + nekoSize * 0.3}
M${x - nekoSize * 0.12},${y + nekoSize * 0.18}
L${x - nekoSize * 0.7},${y + nekoSize * 0.05}
M${x - nekoSize * 0.14},${y + nekoSize * 0.21}
L${x - nekoSize * 0.8},${y + nekoSize * 0.15}
M${x - nekoSize * 0.12},${y + nekoSize * 0.26}
L${x - nekoSize * 0.6},${y + nekoSize * 0.3}
`}
stroke="black"
strokeWidth={2}
/>
</>
)
}
const Layer = ({ points, voronoi }: VoronoiCustomLayerProps) => {
const width = 500
const height = 500
return (
<>
{points.map((point, i) => {
if (point.data.id === 'mice') {
return <circle cx={point.x} cy={point.y} r={10} fill="red" />
}
const poly = Array.from(voronoi.cellPolygon(i)) as [number, number][]
const maskId = `${point.data.id}.mask`
return (
<g key={point.data.id}>
<mask id={maskId}>
<path d={lineGenerator(poly) ?? undefined} fill="white" />
</mask>
<g mask={`url(#${maskId})`}>
<rect width={width} height={height} fill="#222" />
<Neko x={point.x} y={point.y} />
</g>
</g>
)
})}
</>
)
}
const randColor = () => '#' + (0x1000000 + Math.random() * 0xffffff).toString(16).substr(1, 6)
const NekoronoiComponent = () => {
const [data, setData] = useState([
{
id: 'cat_00',
x: 25,
y: 25,
color: randColor(),
},
{
id: 'cat_01',
x: 50,
y: 12.5,
color: randColor(),
},
{
id: 'cat_02',
x: 75,
y: 25,
color: randColor(),
},
{
id: 'cat_03',
x: 87.5,
y: 50,
color: randColor(),
},
{
id: 'cat_04',
x: 75,
y: 75,
color: randColor(),
},
{
id: 'cat_05',
x: 50,
y: 87.5,
color: randColor(),
},
{
id: 'cat_06',
x: 25,
y: 75,
color: randColor(),
},
{
id: 'cat_07',
x: 12.5,
y: 50,
color: randColor(),
},
{
id: 'mice',
x: 50,
y: 50,
color: randColor(),
},
])
useEffect(() => {
const scheduler = setTimeout(() => {
setData(prevData =>
prevData.map(d => ({
...d,
x: d.x + Math.random() * 20 - 10,
y: d.y + Math.random() * 20 - 10,
}))
)
}, 2000)
return () => clearTimeout(scheduler)
})
return (
<Voronoi
width={500}
height={500}
data={data}
xDomain={[0, 100]}
yDomain={[0, 100]}
enableLinks={false}
enablePoints={true}
enableCells={false}
layers={['points', Layer]}
/>
)
}
export const Nekoronoi: Story = {
render: () => <NekoronoiComponent />,
}
``` | /content/code_sandbox/storybook/stories/voronoi/Voronoi.stories.tsx | xml | 2016-04-16T03:27:56 | 2024-08-16T03:38:37 | nivo | plouc/nivo | 13,010 | 1,975 |
```xml
import { GlyphChars } from '../../constants';
import type { Container } from '../../container';
import { createReference, getReferenceLabel } from '../../git/models/reference';
import type { Repository } from '../../git/models/repository';
import type { GitStatus } from '../../git/models/status';
import { CommandQuickPickItem } from '../../quickpicks/items/common';
import { GitCommandQuickPickItem } from '../../quickpicks/items/gitCommands';
import { pad } from '../../system/string';
import type { ViewsWithRepositoryFolders } from '../../views/viewBase';
import type { PartialStepState, StepGenerator, StepState } from '../quickCommand';
import { endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { pickRepositoryStep, showRepositoryStatusStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];
associatedView: ViewsWithRepositoryFolders;
status: GitStatus;
title: string;
}
interface State {
repo: string | Repository;
}
export interface StatusGitCommandArgs {
readonly command: 'status';
state?: Partial<State>;
}
type StatusStepState<T extends State = State> = ExcludeSome<StepState<T>, 'repo', string>;
export class StatusGitCommand extends QuickCommand<State> {
constructor(container: Container, args?: StatusGitCommandArgs) {
super(container, 'status', 'status', 'Status', {
description: 'shows status information about a repository',
});
let counter = 0;
if (args?.state?.repo != null) {
counter++;
}
this.initialState = {
counter: counter,
confirm: false,
...args?.state,
};
}
override get canConfirm() {
return false;
}
protected async *steps(state: PartialStepState<State>): StepGenerator {
const context: Context = {
repos: this.container.git.openRepositories,
associatedView: this.container.commitsView,
status: undefined!,
title: this.title,
};
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;
}
}
context.status = (await state.repo.getStatus())!;
if (context.status == null) return;
context.title = `${this.title}${pad(GlyphChars.Dot, 2, 2)}${getReferenceLabel(
createReference(context.status.branch, state.repo.path, {
refType: 'branch',
name: context.status.branch,
remote: false,
upstream: context.status.upstream,
}),
{ icon: false },
)}`;
const result = yield* showRepositoryStatusStep(state as StatusStepState, context);
if (result === StepResultBreak) {
// If we skipped the previous step, make sure we back up past it
if (skippedStepOne) {
state.counter--;
}
continue;
}
if (result instanceof GitCommandQuickPickItem) {
const r = yield* result.executeSteps(this.pickedVia);
state.counter--;
if (r === StepResultBreak) {
endSteps(state);
}
continue;
}
if (result instanceof CommandQuickPickItem) {
endSteps(state);
void result.execute();
break;
}
}
}
}
``` | /content/code_sandbox/src/commands/git/status.ts | xml | 2016-08-08T14:50:30 | 2024-08-15T21:25:09 | vscode-gitlens | gitkraken/vscode-gitlens | 8,889 | 834 |
```xml
import type { WidgetTracker } from '@jupyterlab/apputils';
import type { IStateDB } from '@jupyterlab/statedb';
import { Token } from '@lumino/coreutils';
import type { FileBrowser } from './browser';
/**
* The file browser factory token.
*/
export const IFileBrowserFactory = new Token<IFileBrowserFactory>(
'@jupyterlab/filebrowser:IFileBrowserFactory',
`A factory object that creates file browsers.
Use this if you want to create your own file browser (e.g., for a custom storage backend),
or to interact with other file browsers that have been created by extensions.`
);
/**
* The default file browser token.
*/
export const IDefaultFileBrowser = new Token<IDefaultFileBrowser>(
'@jupyterlab/filebrowser:IDefaultFileBrowser',
'A service for the default file browser.'
);
/**
* Default file browser type.
*/
export type IDefaultFileBrowser = FileBrowser;
/**
* The file browser factory interface.
*/
export interface IFileBrowserFactory {
/**
* Create a new file browser instance.
*
* @param id - The widget/DOM id of the file browser.
*
* @param options - The optional file browser configuration object.
*
* #### Notes
* The ID parameter is used to set the widget ID. It is also used as part of
* the unique key necessary to store the file browser's restoration data in
* the state database if that functionality is enabled.
*
* If, after the file browser has been generated by the factory, the ID of the
* resulting widget is changed by client code, the restoration functionality
* will not be disrupted as long as there are no ID collisions, i.e., as long
* as the initial ID passed into the factory is used for only one file browser
* instance.
*/
createFileBrowser(
id: string,
options?: IFileBrowserFactory.IOptions
): FileBrowser;
/**
* The widget tracker used by the factory to track file browsers.
*/
readonly tracker: WidgetTracker<FileBrowser>;
}
/**
* A namespace for file browser factory interfaces.
*/
export namespace IFileBrowserFactory {
/**
* The options for creating a file browser using a file browser factory.
*
* #### Notes
* In future versions of JupyterLab, some of these options may disappear,
* which is a backward-incompatible API change and will necessitate a new
* version release. This is because in future versions, there will likely be
* an application-wide notion of a singleton command registry and a singleton
* state database.
*/
export interface IOptions {
/**
* Whether a file browser automatically loads its initial path.
*
* #### Notes
* The default is `true`.
*/
auto?: boolean;
/**
* An optional `Contents.IDrive` name for the model.
* If given, the model will prepend `driveName:` to
* all paths used in file operations.
*/
driveName?: string;
/**
* The time interval for browser refreshing, in ms.
*/
refreshInterval?: number;
/**
* Whether a file browser automatically restores state when instantiated.
* The default is `true`.
*
* #### Notes
* The file browser model will need to be restored before for the file
* browser to start saving its state.
*/
restore?: boolean;
/**
* The state database to use for saving file browser state and restoring it.
*
* #### Notes
* Unless the value `null` is set for this option, the application state
* database will be automatically passed in and used for state restoration.
*/
state?: IStateDB | null;
}
}
/**
* The token that indicates the default file browser commands are loaded.
*/
export const IFileBrowserCommands = new Token<IFileBrowserCommands>(
'@jupyterlab/filebrowser:IFileBrowserCommands',
'A token to ensure file browser commands are loaded.'
);
/**
* The identifiers of loaded commands exposed for reuse.
*/
export interface IFileBrowserCommands {
/**
* Command for opening a file or a directory by path.
*/
openPath: string;
}
``` | /content/code_sandbox/packages/filebrowser/src/tokens.ts | xml | 2016-06-03T20:09:17 | 2024-08-16T19:12:44 | jupyterlab | jupyterlab/jupyterlab | 14,019 | 908 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.