How to use or method in root

Best JavaScript code snippet using root

Product.ts

Source:Product.ts Github

copy

Full Screen

1export interface SearchResponse {2 items: Items;3 metaData: MetaDataEntity[];4 facet_list?: FacetListEntity[] | null;5 sort_options: SortOptions;6 buckets?: BucketsEntity[] | null;7 experiments_viewed: ExperimentsViewedOrSponsored;8 suggestions?: string[] | null;9 sponsored: ExperimentsViewedOrSponsored;10}11export interface Items {12 Item: ItemEntity[];13}14export interface ItemEntity {15 esrb_rating?: string | null;16 subscribable: boolean;17 package_dimensions?: PackageDimensions | null;18 title: string;19 tcin: string;20 type: string;21 dpci?: string | null;22 upc?: string | null;23 url: string;24 description?: string | null;25 representative_child_part_number: string;26 merch_sub_class: string;27 merch_class: string;28 merch_class_id: string;29 brand: string;30 product_brand: ProductBrand;31 images?: ImagesEntityOrImages[] | null;32 item_street_date?: string | null;33 average_rating: number;34 total_reviews: number;35 top_reviews?: TopReviewsEntity[] | null;36 total_review_count: number;37 secondary_ratings_averages_order?: string[] | null;38 secondary_ratings_averages?: SecondaryRatingsAverages | null;39 ratings_only_review_count: number;40 rating_distribution?: RatingDistributionEntity[] | null;41 overall_rating_range: number;42 bullet_description?: string[] | null;43 soft_bullets?: SoftBullets | null;44 eligibility_rules?: EligibilityRules | null;45 price: Price;46 promotions?: PromotionsEntity[] | null;47 esp_item?: EspItem | null;48 packaging?: Packaging | null;49 sales_classification_nodes?: SalesClassificationNodesEntity[] | null;50 avail_ratio?: string | null;51 variation_attributes?: VariationAttributes | null;52 child_items?: ChildItemsEntity[] | null;53 product_delivery_method?: string | null;54}55export interface TargetProductSearch {56 search_recommendations: SearchRecommendations;57 search_response: SearchResponse;58}59interface SearchRecommendations {60 query: string;61}62interface PackageDimensions {63 weight: string;64 weight_unit_of_measure: string;65 width: string;66 depth: string;67 height: string;68 dimension_unit_of_measure: string;69}70interface ProductBrand {71 facet_id: string;72 brand: string;73}74interface ImagesEntityOrImages {75 base_url: string;76 primary: string;77 alternate_urls?: string[] | null;78 content_labels?: ContentLabelsEntity[] | null;79}80interface ContentLabelsEntity {81 image_url: string;82}83interface TopReviewsEntity {84 user_nickname: string;85 rating: number;86 rating_range: number;87 review_text: string;88 title?: string | null;89}90interface SecondaryRatingsAverages {91 Value?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics | null;92 performance_1?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics1 | null;93 functionality?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics2 | null;94 Quality?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics3 | null;95 SoundQuality?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics4 | null;96 gameplay?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics5 | null;97 lastingAppeal?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics6 | null;98 Graphics?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics7 | null;99}100interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics {101 Id: string;102 AverageRating: number;103 Label: string;104 ValueRange: number;105 DisplayType: string;106}107interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics1 {108 Id: string;109 AverageRating: number;110 Label: string;111 ValueRange: number;112 DisplayType: string;113}114interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics2 {115 Id: string;116 AverageRating: number;117 Label: string;118 ValueRange: number;119 DisplayType: string;120}121interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics3 {122 Id: string;123 AverageRating: number;124 Label: string;125 ValueRange: number;126 DisplayType: string;127}128interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics4 {129 Id: string;130 AverageRating: number;131 Label: string;132 ValueRange: number;133 DisplayType: string;134}135interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics5 {136 Id: string;137 AverageRating: number;138 Label: string;139 ValueRange: number;140 DisplayType: string;141}142interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics6 {143 Id: string;144 AverageRating: number;145 Label: string;146 ValueRange: number;147 DisplayType: string;148}149interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics7 {150 Id: string;151 AverageRating: number;152 Label: string;153 ValueRange: number;154 DisplayType: string;155}156interface RatingDistributionEntity {157 Count: number;158 RatingValue: number;159}160interface SoftBullets {161 title: string;162 bullets?: string[] | null;163}164interface EligibilityRules {165 inventory_notification_to_guest_excluded: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery;166 hold: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery;167 rush?: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery1 | null;168 ship_to_guest: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery;169 ship_to_store?: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery2 | null;170 scheduled_delivery?: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery3 | null;171}172interface InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery {173 is_active: boolean;174}175interface InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery1 {176 is_active: boolean;177}178interface InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery2 {179 is_active: boolean;180}181interface InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery3 {182 is_active: boolean;183}184interface Price {185 tcin: string;186 formatted_current_price: string;187 formatted_current_price_type: string;188 is_current_price_range: boolean;189 current_retail?: number | null;190 current_retail_min?: number | null;191 current_retail_max?: number | null;192 reg_retail_min?: number | null;193 reg_retail_max?: number | null;194}195interface PromotionsEntity {196 promotion_id: string;197 applied_location_id: number;198 start_date: string;199 end_date: string;200 visibility: number;201 time_based: boolean;202 channel: string;203 plp_message?: string | null;204 pdp_message: string;205 subscription_type: string;206 legal_disclaimer_text: string;207 site_wide: boolean;208 global_subscription_flag: boolean;209 threshold_type: string;210 threshold_value: number;211 promotion_class: string;212 promotion_url?: string | null;213}214interface EspItem {215 tcin: string;216 esp_group_id: string;217 maximum_qualifying_price: number;218 minimum_qualifying_price: number;219 product_description: ProductDescription;220 enrichment: Enrichment;221 price: Price1;222}223interface ProductDescription {224 title: string;225 bullet_descriptions?: string[] | null;226}227interface Enrichment {228 images: Images;229}230interface Images {231 primary_image_url: string;232}233interface Price1 {234 tcin: string;235 formatted_current_price: string;236 formatted_current_price_type: string;237 is_current_price_range: boolean;238 current_retail: number;239}240interface Packaging {241 is_retail_ticketed: boolean;242}243interface SalesClassificationNodesEntity {244 node_id: string;245}246interface VariationAttributes {247 giftcard_denominations?: string[] | null;248 giftcard_delivery?: string[] | null;249}250interface ChildItemsEntity {251 tcin: string;252 images: ImagesEntityOrImages1;253 package_dimensions: PackageDimensions1;254 eligibility_rules?: EligibilityRules1 | null;255 prepaid_segment: PrepaidSegment;256}257interface ImagesEntityOrImages1 {258 base_url: string;259 primary: string;260 content_labels?: ContentLabelsEntity[] | null;261}262interface PackageDimensions1 {263 weight: string;264 weight_unit_of_measure: string;265 width: string;266 depth: string;267 height: string;268 dimension_unit_of_measure: string;269}270interface EligibilityRules1 {271 ship_to_store: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery;272}273interface PrepaidSegment {274 denomination_option_code: string;275}276interface MetaDataEntity {277 name: string;278 value: number;279}280interface FacetListEntity {281 displayName: string;282 name: string;283 id: number;284 type: string;285 expand: boolean;286 details?: DetailsEntity[] | null;287}288interface DetailsEntity {289 display_name: string;290 value: string;291 descriptor: boolean;292 url: string;293 facetId?: string | null;294 facetCanonical?: string | null;295}296interface SortOptions {297 relevance: string;298 Featured: string;299 PriceLow: string;300 PriceHigh: string;301 RatingHigh: string;302 bestselling: string;303 newest: string;304}305interface BucketsEntity {306 items: Items1;307 metaData: MetaDataEntity1[];308}309interface Items1 {310 Item: ItemEntity1[];311}312interface ItemEntity1 {313 subscribable: boolean;314 package_dimensions?: PackageDimensions2 | null;315 title: string;316 tcin: string;317 type: string;318 url: string;319 description?: string | null;320 representative_child_part_number: string;321 merch_sub_class: string;322 merch_class: string;323 merch_class_id: string;324 images?: ImagesEntityOrImages[] | null;325 average_rating: number;326 total_reviews: number;327 total_review_count: number;328 ratings_only_review_count: number;329 rating_distribution?: RatingDistributionEntity[] | null;330 overall_rating_range: number;331 product_vendors?: ProductVendorsEntity[] | null;332 fulfillment?: Fulfillment | null;333 soft_bullets?: SoftBullets1 | null;334 price: Price2;335 sales_classification_nodes?: SalesClassificationNodesEntity[] | null;336 esrb_rating?: string | null;337 dpci?: string | null;338 upc?: string | null;339 brand?: string | null;340 product_brand?: ProductBrand1 | null;341 item_street_date?: string | null;342 top_reviews?: TopReviewsEntity[] | null;343 secondary_ratings_averages_order?: string[] | null;344 secondary_ratings_averages?: SecondaryRatingsAverages1 | null;345 bullet_description?: string[] | null;346 eligibility_rules?: EligibilityRules2 | null;347 promotions?: PromotionsEntity[] | null;348 esp_item?: EspItem1 | null;349 packaging?: Packaging1 | null;350 prepaid_segment?: PrepaidSegment1 | null;351 product_delivery_method?: string | null;352 avail_ratio?: string | null;353 variation_attributes?: VariationAttributes1 | null;354 child_items?: ChildItemsEntity1[] | null;355 ribbons?: string[] | null;356 swatches?: Swatches | null;357 promotion_call_out_message?: string | null;358}359interface PackageDimensions2 {360 weight: string;361 weight_unit_of_measure: string;362 width: string;363 depth: string;364 height: string;365 dimension_unit_of_measure: string;366}367interface ProductVendorsEntity {368 id: string;369 vendor_name: string;370 uri: string;371}372interface Fulfillment {373 is_marketplace: boolean;374}375interface SoftBullets1 {376 title: string;377 bullets?: string[] | null;378}379interface Price2 {380 tcin: string;381 formatted_current_price: string;382 formatted_current_price_type: string;383 is_current_price_range: boolean;384 current_retail?: number | null;385 current_retail_min?: number | null;386 current_retail_max?: number | null;387 reg_retail_min?: number | null;388 reg_retail_max?: number | null;389 formatted_comparison_price?: string | null;390 formatted_comparison_price_type?: string | null;391}392interface ProductBrand1 {393 facet_id: string;394 brand: string;395}396interface SecondaryRatingsAverages1 {397 Value?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics8 | null;398 Quality?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics9 | null;399 SoundQuality?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics10 | null;400 gameplay?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics11 | null;401 lastingAppeal?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics12 | null;402 Graphics?: ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics13 | null;403}404interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics8 {405 Id: string;406 AverageRating: number;407 Label: string;408 ValueRange: number;409 DisplayType: string;410}411interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics9 {412 Id: string;413 AverageRating: number;414 Label: string;415 ValueRange: number;416 DisplayType: string;417}418interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics10 {419 Id: string;420 AverageRating: number;421 Label: string;422 ValueRange: number;423 DisplayType: string;424}425interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics11 {426 Id: string;427 AverageRating: number;428 Label: string;429 ValueRange: number;430 DisplayType: string;431}432interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics12 {433 Id: string;434 AverageRating: number;435 Label: string;436 ValueRange: number;437 DisplayType: string;438}439interface ValueOrPerformance1OrFunctionalityOrQualityOrSoundQualityOrGameplayOrLastingAppealOrGraphics13 {440 Id: string;441 AverageRating: number;442 Label: string;443 ValueRange: number;444 DisplayType: string;445}446interface EligibilityRules2 {447 hold?: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery4 | null;448 ship_to_store?: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery5 | null;449}450interface InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery4 {451 is_active: boolean;452}453interface InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery5 {454 is_active: boolean;455}456interface EspItem1 {457 tcin: string;458 esp_group_id: string;459 maximum_qualifying_price: number;460 minimum_qualifying_price: number;461 product_description: ProductDescription;462 enrichment: Enrichment;463 price: Price1;464}465interface Packaging1 {466 is_retail_ticketed: boolean;467}468interface PrepaidSegment1 {469 denomination_option_code: string;470}471interface VariationAttributes1 {472 color?: string[] | null;473}474interface ChildItemsEntity1 {475 tcin: string;476 images: ImagesEntityOrImages;477 package_dimensions: PackageDimensions1;478 eligibility_rules?: EligibilityRules3 | null;479}480interface EligibilityRules3 {481 inventory_notification_to_guest_excluded: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery;482 hold: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery;483 rush?: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery6 | null;484 ship_to_guest: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery;485 ship_to_store: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery;486 scheduled_delivery?: InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery3 | null;487}488interface InventoryNotificationToGuestExcludedOrHoldOrRushOrShipToGuestOrShipToStoreOrScheduledDelivery6 {489 is_active: boolean;490}491interface Swatches {492 color?: ColorEntity[] | null;493}494interface ColorEntity {495 color: string;496 partNumber: string;497 img_url: string;498}499interface MetaDataEntity1 {500 name: string;501 value: string;502}...

Full Screen

Full Screen

default.js

Source:default.js Github

copy

Full Screen

1Bibi.preset({2//==============================================================================================================================================3//-- Bookshelf4//----------------------------------------------------------------------------------------------------------------------------------------------5"bookshelf" : "../../bibi-bookshelf", // Relative path from this preset file to the bookshelf directory. "/" at the end is ignored. (To use a path begins with "http(s)://", read <01> at the bottom of this preset file.)6//==============================================================================================================================================7//-- Behavior8//----------------------------------------------------------------------------------------------------------------------------------------------9"reader-view-mode" : "paged", // "paged" or "horizontal" or "vertical" ("paged" is for flipping, "horizontal" and "vertical" are for scrolling)10"full-breadth-layout-in-scroll" : "no", // "yes" or "no" or "desktop" or "mobile"11"fix-reader-view-mode" : "no", // "yes" or "no" or "desktop" or "mobile"12"keep-settings" : "yes", // "yes" or "no" or "desktop" or "mobile"13"resume-from-last-position" : "yes", // "yes" or "no" or "desktop" or "mobile"14"autostart" : "yes", // "yes" or "no" or "desktop" or "mobile"15"autostart-embedded" : "no", // "yes" or "no" or "desktop" or "mobile" (It takes priority over "autostart" when the book is embedded in a webpage)16"start-embedded-in-new-window" : "mobile", // "yes" or "no" or "desktop" or "mobile" (It is used only when "autostart" (or "autostart-embedded") is NOT enabled)17//==============================================================================================================================================18//-- UI / Design19//----------------------------------------------------------------------------------------------------------------------------------------------20"use-menubar" : "yes", // "yes" or "no" or "desktop" or "mobile"21"use-full-height" : "yes", // "yes" or "no" or "desktop" or "mobile". If "use-menubar" is interpreted as "no", "use-full-height" is always treated as "yes".22"use-arrows" : "yes", // "yes" or "no" or "desktop" or "mobile"23"flipper-width" : 0.25, // Number of ratio (less than 1) or pixel (1 or greater)24"use-keys" : "yes", // "yes" or "no" or "desktop" or "mobile"25"use-slider" : "yes", // "yes" or "no" or "desktop" or "mobile"26"flip-pages-during-sliding" : "yes", // "yes" or "no" or "desktop" or "mobile"27"use-nombre" : "yes", // "yes" or "no" or "desktop" or "mobile"28"use-font-size-changer" : "yes", // "yes" or "no" or "desktop" or "mobile"29"base-font-size" : "auto", // Number of pixel or "auto"30"font-size-scale-per-step" : 1.25, // Number of scale31"use-loupe" : "desktop", // "yes" or "no" or "desktop" or "mobile" (Note: Loupe buttons will not appear in touch-devices even if it is set "yes" or "mobile".)32"loupe-max-scale" : 4, // Number of scale (greater than 1)33"loupe-scale-per-step" : 1.6, // Number of scale (greater than 1, less than or equal to "loupe-max-scale")34"zoom-out-for-utilities" : "yes", // "yes" or "no" or "desktop" or "mobile"35"use-history" : "yes", // "yes" or "no" or "desktop" or "mobile"36"max-history" : 19, // Number (0-19). If larger than 19, treated as 19. If 0, "use-history" is treated as "no". 37"use-bookmarks" : "yes", // "yes" or "no" or "desktop" or "mobile"38"max-bookmarks" : 3, // Number (0-9). If larger than 9, treated as 9. If 0, "use-bookmarks" is treated as "no" (but old data is kept in localStorage). 39"orientation-border-ratio" : 1 * 2 / 1.5, // Number (Width per Height)40"ui-font-family" : "", // CSS font-family value as "'Helvetica', sans-serif" or ""41"item-padding-left" : 24, // Number of pixel (It affects only for reflowable books.)42"item-padding-right" : 24, // Number of pixel (It affects only for reflowable books.)43"item-padding-top" : 48, // Number of pixel (It affects only for reflowable books.)44"item-padding-bottom" : 24, // Number of pixel (It affects only for reflowable books.)45"spread-gap" : 48, // Number of pixel (It affects only in paged view mode.)46"spread-margin" : 0, // Number of pixel47"fix-nav-ttb" : "no", // "yes" or "no" or "desktop" or "mobile"48"on-doubletap" : "",49"on-tripletap" : "",50"content-draggable" : [true, true], // [<TF>, <TF>]51"orthogonal-arrow-keys" : ["move", "switch"], // [<S1>, <S2>]52"orthogonal-edges" : ["utilities", "utilities"], // [<S1>, <S2>]53"orthogonal-touch-moves" : ["move", "switch"], // [<S1>, <S2>]54"orthogonal-wheelings" : ["move", "across"], // [<S1>, <S3>]55// ^ Each item of the arrays corresponds to the view mode:56// * the first is for the "paged" view mode, and57// * the second is for the "horizontal"/"vertical" scroll view modes.58// ^ Types of the values:59// * <TF>: true or false60// * <S1>: "" (ignore) or "utilities" or "move"61// * <S2>: "" (ignore) or "utilities" or "move" or "switch"62// * <S3>: "" (ignore) or "utilities" or "move" or "switch" or "across"63//==============================================================================================================================================64//-- Extensions65//----------------------------------------------------------------------------------------------------------------------------------------------66// "src" is relative path from this preset file to the JavaScript file of the extension.67// "id" must be defined in each extension file.68"extensions": [69 // { "src": "../extensions/FOLDER-NAME-IF-EXISTS/FILE-NAME.js" }, // <THIS LINE IS AN EXAMPLE>70""],71//==============================================================================================================================================72//-- Extra73//----------------------------------------------------------------------------------------------------------------------------------------------74"website-name-in-title" : "", // "" or name of your website replaces string "Bibi" in <title>.75"website-name-in-menu" : "", // "" or name of your website appears in setting-menu as a link. (Requires "website-href")76"website-href" : "", // "" or URL of your website to be used for the link in setting-menu. (Requires "website-name-in-menu")77"remove-bibi-website-link" : false, // true or false (if true, the link to Bibi Website is not to be added in setting-menu)78//==============================================================================================================================================79//-- System80//----------------------------------------------------------------------------------------------------------------------------------------------81"extract-if-necessary" : [".epub", ".zip"], // File extensions of the book specified in URL, which you want Bibi to try to extract first. (More info is <02> at the bottom of this preset file.)82"default-page-progression-direction" : "ltr", // "ltr" or "rtl". Most of EPUBs have right property in itself, but....83"accept-local-file" : "yes", // "yes" or "no" or "desktop" or "mobile". (If it is enabled, Bibi prepares UI for loading files. Conditions for acceptance are <03> at the bottom of this preset file.)84"accept-bibizine" : true, // true or false (If true, Bibi accepts EPUB-like bibiZine formated book. If you are interested in it, please contact the author)85"accept-blob-converted-data" : true, // true or false (If true, Bibi accepts BLOB object converted from a EPUB File. If you are interested in it, please contact the author)86"accept-base64-encoded-data" : true, // true or false (If true, Bibi accepts Base64 string encoded from a EPUB File. If you are interested in it, please contact the author)87"pagination-method" : "auto", // "auto" or "x". (It affects only for vertical-text reflowable books. More info is <04> at the bottom of this preset file.)88"allow-placeholders" : true, // true or false. (true is highly recommended.)89"prioritise-fallbacks" : false, // true or false (If true, Bibi uses <item> at the end of the fallback-chain.)90//==============================================================================================================================================91//-- DANGER ZONE92//----------------------------------------------------------------------------------------------------------------------------------------------93// If you publish Bibi online,94// * keep these options as default, or/and95// * keep your Bibi and website not to open files which you can not guarantee its security.96//----------------------------------------------------------------------------------------------------------------------------------------------97/* !!!! BE CAREFUL !!!! */ "allow-scripts-in-content" : false, // true or false (false is recommended).98// If you change its value `true`, Bibi does not remove scripts natively-included in EPUB.99// It makes Bibi to be able to open EPUBs including useful scripts.100// But on the other hand, it may also allow XSS of malicious EPUB in some cases.101/* !!!! BE CAREFUL !!!! */ "trustworthy-origins" : [], // origins you trust other than where this Bibi is installed. (blank is recommended).102// If you add origins to it, Bibi is made to open not only EPUBs in the same origin as Bibi itself is installed but also EPUBs in remote origins.103// It is useful for some cases like that you want to set directory on the other storaging server as "bookshelf".104// But note that not to set an origin where someone else also can publish files.105// If you do so, someone else can publish one's EPUB as it is on your website, and it may also allow XSS of malicious EPUB in some cases.106/*107//==============================================================================================================================================108## <01> You can use a path begins with "http(s)://" for "bookshelf" option in cases of the below:109 * The origin of the path defined in the "bookshelf" option is same as the origin of this Bibi.110 * [OR] The origin is included in "trustworthy-origins" option.111 - [AND] The origin allows COR from the origin of this Bibi.112## <02> Bibi tries to extract at first in cases of the below:113 * The "extract-if-necessary" option includes "*".114 * [OR] The "extract-if-necessary" option includes one or more file extensions.115 - [AND] The book name specified as a value of the `book` (or `zine`) query in URL has a file extension.116 - [AND] The file extension of the book name is included in the "extract-if-necessary" option.117 * [OR] The "extract-if-necessary" option is "".118 - [AND] The book name specified as a value of the `book` (or `zine`) query in URL has no file extension.119 ### Note:120 * If Bibi failed to extract it, automatically tries to load as a folder (directory).121 * The "extract-if-necessary" option affects also as conditions for acceptance of local file. Read <03> at the next.122## <03> Bibi accepts user's local file in cases of the below:123 * The file is an EPUB.124 - [AND] The extension of the file is ".epub".125 - [AND] The "extract-if-necessary" option includes ".epub" or "*".126 - [AND] The MIME-Type sent from the browser is "application/epub+zip".127 * [OR] The file is a bibiZine.128 - [AND] The extension of the file is ".zip".129 - [AND] The "extract-if-necessary" includes ".zip" or "*".130 - [AND] The MIME-Type sent from the browser is "application/zip", "application/x-zip", or "application/x-zip-compressed".131 ### Note:132 * Extension of the file is required even if "extract-if-necessary" is "" (or includes "*").133## <04> Setting "x" for "pagination-method" option134 It affects only for reflowable vertical-text books.135 If "x" is set for "pagination-method", Bibi tries to use an experimental layout method on modern web-browsers.136 It realizes more prettier layout for simple books like novels.137 But sometime causes bad result for some books with figures or floating objects.138//==============================================================================================================================================139*/...

Full Screen

Full Screen

FooTable.DateColumn.js

Source:FooTable.DateColumn.js Github

copy

Full Screen

1(function($, F){2 if (F.is.undef(window.moment)){3 // The DateColumn requires moment.js to parse and format date values. Goto http://momentjs.com/ to get it.4 return;5 }6 F.DateColumn = F.Column.extend(/** @lends FooTable.DateColumn */{7 /**8 * The date column class is used to handle date values. This column is dependent on [moment.js]{@link http://momentjs.com/} to provide date parsing and formatting functionality.9 * @constructs10 * @extends FooTable.Column11 * @param {FooTable.Table} instance - The parent {@link FooTable.Table} this column belongs to.12 * @param {object} definition - An object containing all the properties to set for the column.13 * @returns {FooTable.DateColumn}14 */15 construct: function(instance, definition){16 this._super(instance, definition, 'date');17 /**18 * The format string to use when parsing and formatting dates.19 * @instance20 * @type {string}21 */22 this.formatString = F.is.string(definition.formatString) ? definition.formatString : 'MM-DD-YYYY';23 },24 /**25 * This is supplied either the cell value or jQuery object to parse. Any value can be returned from this method and will be provided to the {@link FooTable.DateColumn#format} function26 * to generate the cell contents.27 * @instance28 * @protected29 * @param {(*|jQuery)} valueOrElement - The value or jQuery cell object.30 * @returns {(moment|null)}31 * @this FooTable.DateColumn32 */33 parser: function(valueOrElement){34 if (F.is.element(valueOrElement) || F.is.jq(valueOrElement)){35 valueOrElement = $(valueOrElement).data('value') || $(valueOrElement).text();36 if (F.is.string(valueOrElement)) valueOrElement = isNaN(valueOrElement) ? valueOrElement : +valueOrElement;37 }38 if (F.is.date(valueOrElement)) return moment(valueOrElement);39 if (F.is.object(valueOrElement) && F.is.boolean(valueOrElement._isAMomentObject)) return valueOrElement;40 if (F.is.string(valueOrElement)){41 // if it looks like a number convert it and do nothing else otherwise create a new moment using the string value and formatString42 if (isNaN(valueOrElement)){43 return moment(valueOrElement, this.formatString);44 } else {45 valueOrElement = +valueOrElement;46 }47 }48 if (F.is.number(valueOrElement)){49 return moment(valueOrElement);50 }51 return null;52 },53 /**54 * This is supplied the value retrieved from the {@link FooTable.DateColumn#parser} function and must return a string, HTMLElement or jQuery object.55 * The return value from this function is what is displayed in the cell in the table.56 * @instance57 * @protected58 * @param {*} value - The value to format.59 * @returns {(string|HTMLElement|jQuery)}60 * @this FooTable.DateColumn61 */62 formatter: function(value){63 return F.is.object(value) && F.is.boolean(value._isAMomentObject) ? value.format(this.formatString) : '';64 },65 /**66 * This is supplied either the cell value or jQuery object to parse. A string value must be returned from this method and will be used during filtering operations.67 * @param {(*|jQuery)} valueOrElement - The value or jQuery cell object.68 * @returns {string}69 * @this FooTable.DateColumn70 */71 filterValue: function(valueOrElement){72 // if we have an element or a jQuery object use jQuery to get the value73 if (F.is.element(valueOrElement) || F.is.jq(valueOrElement)) valueOrElement = $(valueOrElement).data('filterValue') || $(valueOrElement).text();74 // if options are supplied with the value75 if (F.is.hash(valueOrElement) && F.is.hash(valueOrElement.options)){76 if (F.is.string(valueOrElement.options.filterValue)) valueOrElement = valueOrElement.options.filterValue;77 if (F.is.defined(valueOrElement.value)) valueOrElement = valueOrElement.value;78 }79 // if the value is a moment object just return the formatted value80 if (F.is.object(valueOrElement) && F.is.boolean(valueOrElement._isAMomentObject)) return valueOrElement.format(this.formatString);81 // if its a string82 if (F.is.string(valueOrElement)){83 // if its not a number return it84 if (isNaN(valueOrElement)){85 return valueOrElement;86 } else { // otherwise convert it and carry on87 valueOrElement = +valueOrElement;88 }89 }90 // if the value is a number or date convert to a moment object and return the formatted result.91 if (F.is.number(valueOrElement) || F.is.date(valueOrElement)){92 return moment(valueOrElement).format(this.formatString);93 }94 // try use the native toString of the value if its not undefined or null95 if (F.is.defined(valueOrElement) && valueOrElement != null) return valueOrElement+'';96 return ''; // otherwise we have no value so return an empty string97 }98 });99 F.columns.register('date', F.DateColumn);...

Full Screen

Full Screen

ForkJoinObservable.d.ts

Source:ForkJoinObservable.d.ts Github

copy

Full Screen

...8 */9export declare class ForkJoinObservable<T> extends Observable<T> {10 private sources;11 private resultSelector;12 constructor(sources: Array<SubscribableOrPromise<any>>, resultSelector?: (...values: Array<any>) => T);13 static create<T, T2>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>): Observable<[T, T2]>;14 static create<T, T2, T3>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>): Observable<[T, T2, T3]>;15 static create<T, T2, T3, T4>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>): Observable<[T, T2, T3, T4]>;16 static create<T, T2, T3, T4, T5>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>, v5: SubscribableOrPromise<T5>): Observable<[T, T2, T3, T4, T5]>;17 static create<T, T2, T3, T4, T5, T6>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>, v5: SubscribableOrPromise<T5>, v6: SubscribableOrPromise<T6>): Observable<[T, T2, T3, T4, T5, T6]>;18 static create<T, R>(v1: SubscribableOrPromise<T>, project: (v1: T) => R): Observable<R>;19 static create<T, T2, R>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, project: (v1: T, v2: T2) => R): Observable<R>;20 static create<T, T2, T3, R>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, project: (v1: T, v2: T2, v3: T3) => R): Observable<R>;21 static create<T, T2, T3, T4, R>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>, project: (v1: T, v2: T2, v3: T3, v4: T4) => R): Observable<R>;22 static create<T, T2, T3, T4, T5, R>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>, v5: SubscribableOrPromise<T5>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => R): Observable<R>;23 static create<T, T2, T3, T4, T5, T6, R>(v1: SubscribableOrPromise<T>, v2: SubscribableOrPromise<T2>, v3: SubscribableOrPromise<T3>, v4: SubscribableOrPromise<T4>, v5: SubscribableOrPromise<T5>, v6: SubscribableOrPromise<T6>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => R): Observable<R>;24 static create<T>(sources: SubscribableOrPromise<T>[]): Observable<T[]>;25 static create<R>(sources: SubscribableOrPromise<any>[]): Observable<R>;26 static create<T, R>(sources: SubscribableOrPromise<T>[], project: (...values: Array<T>) => R): Observable<R>;...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var root = require('./root.js');2root.method();3module.exports.method = function() {4}5module.exports = function() {6}7var myModule = require('./myModule.js');8myModule();9var myModule = require('./myModule.js');10myModule();11module.exports = function() {12}13var myModule = require('../myModule.js');14myModule();15var myModule = require('../myModule.js');16myModule();17module.exports = function() {18}19var myModule = require('../myModule.js');20myModule();21var myModule = require('../myModule.js');22myModule();23module.exports = function() {24}

Full Screen

Using AI Code Generation

copy

Full Screen

1var root = require('./root.js');2root.method();3module.exports = {4 method: function(){5 console.log('hello');6 }7};8var root = require('./root.js');9root.method();10module.exports = {11 method: function(){12 console.log('hello');13 }14};

Full Screen

Using AI Code Generation

copy

Full Screen

1var root = require('./root');2root.hello();3exports.hello = function() {4 console.log('Hello World');5}6var http = require('http');7var root = require('./root');8http.createServer(function (req, res) {9 res.writeHead(200, {'Content-Type': 'text/plain'});10 res.end(root.hello());11}).listen(8080);

Full Screen

Using AI Code Generation

copy

Full Screen

1var root = require('./root');2root.sayHello();3module.exports = {4 sayHello: function() {5 console.log('Hello, world!');6 }7};8exports.sayHello = function() {9 console.log('Hello, world!');10}11module.exports.sayHello = function() {12 console.log('Hello, world!');13}14var sayHello = function() {15 console.log('Hello, world!');16}17module.exports = {18}19var sayHello = function() {20 console.log('Hello, world!');21}22exports.sayHello = sayHello;23var sayHello = function() {24 console.log('Hello, world!');25}26exports = {27}28var sayHello = function() {29 console.log('Hello, world!');30}31module.exports = sayHello;

Full Screen

Using AI Code Generation

copy

Full Screen

1function test() {2 console.log("test");3}4module.exports = test;5var test = require('./test');6test();7function test() {8 console.log("test");9}10module.exports = test;11var test = require('./test');12test();13function test() {14 console.log("test");15}16module.exports = test;17var test = require('./test');18test();19function test() {20 console.log("test");21}22module.exports = test;23var test = require('./test');24test();25function test() {26 console.log("test");27}28module.exports = test;29var test = require('./test');30test();31function test() {32 console.log("test");33}34module.exports = test;35var test = require('./test');36test();37function test() {38 console.log("test");39}40module.exports = test;41var test = require('./test');42test();43function test() {44 console.log("test");45}

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful