mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-16 12:12:47 +00:00
83a28d177f
Storybook.js provides a framework for viewing and working with UI components. https://storybook.js.org/ This patch adds the Storybook.js UI library to Popups for the purposes of viewing multiple previews at once. This enables viewing page previews in the following states: - with thumbnails - without thumbnails - with SVG thumbnails - with narrow thumbnails - with white background thumbnails - in RTL languages - in non-latin languages - disambiguation popups Storybook also allows users to change the image or text of a popup through a GUI. This patch sets up Storybook as a "mini" repo inside the.storybook folder with a seperate package.json file to avoid incompatibilities with the current webpack/babel (or even Node) versions used in the Popups repo. Storybook requires at least Node v8.3 to run. (an .nvmrc file with 11.3.0 has been added to the .stories dir). To start: `cd .storybook && npm install && npm run start`. Bug: T205989 Change-Id: I041e46c4f0cf173950015067e2dce81c023d3fdd
396 lines
22 KiB
JavaScript
396 lines
22 KiB
JavaScript
/**
|
||
* Various Page Preview models used for different configurations.
|
||
* PreviewModel is defined in 'src/preview/model.js`.
|
||
*
|
||
* In produciton, thumbnail size is determined by the gateway before fetching
|
||
* from the server. Here, thumbnails are defined statically so they
|
||
* must be scaled down for low-dpi display, using `helpers/scaleDownThumbnails.js`.
|
||
*
|
||
* If a thumbnail is defined that is too small, it won't show up
|
||
* on a hi-dpi display. This is by design, to avoid blurry images.
|
||
*/
|
||
|
||
/**
|
||
* @namespace MODELS
|
||
* @property {PreviewModel} * - All object properties should be.
|
||
*/
|
||
const MODELS = {};
|
||
|
||
MODELS.THUMBNAIL_PORTRAIT = {
|
||
title: "South Georgia Island",
|
||
url: "South Georgia Island",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p><b>South Georgia</b> is an island in the southern Atlantic Ocean that is part of the British Overseas territory of South Georgia and the South Sandwich Islands. The main settlement is Grytviken. South Georgia is 167.4 kilometres (104 mi) long and 1.4 to 37 km wide. It is about 830 km (520 mi) northeast of Coronation Island and 550 km (340 mi) northwest from Zavodovski Island, the nearest South Sandwich island.</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/f/f5/Thatcher-Peninsula.jpg/640px-Thatcher-Peninsula.jpg",
|
||
width: 640,
|
||
height: 480
|
||
},
|
||
pageId: 525307
|
||
};
|
||
|
||
MODELS.THUMBNAIL_LANDSCAPE = {
|
||
title: "Atlantic Ocean",
|
||
url: "Atlantic Ocean",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
'<p>The <b>Atlantic Ocean</b> is the second largest of the world\'s oceans, with an area of about 106,460,000 square kilometers. It covers approximately 20 percent of the Earth\'s surface and about 29 percent of its water surface area. It separates the "Old World" from the "New World".</p>',
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Atlantic_Ocean_location_map.svg/542px-Atlantic_Ocean_location_map.svg.png",
|
||
width: 542,
|
||
height: 640
|
||
},
|
||
pageId: 698
|
||
};
|
||
|
||
MODELS.SVG_PORTRAIT = {
|
||
title: "South Georgia and the South Sandwich Islands",
|
||
url:
|
||
"http://en.wikipedia.org/wiki/South_Georgia_and_the_South_Sandwich_Islands",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<strong>South Georgia and the South Sandwich Islands (SGSSI)</strong> is a British Overseas Territory in the southern Atlantic Ocean. It is a remote and inhospitable collection of islands, consisting of South Georgia and a chain of smaller islands known as the South Sandwich Islands. South Georgia is 165 km (103 mi) long and 1 to 35 km (1 to 22 mi) wide and is by far the largest island in the territory. The South Sandwich Islands lie about 700 km (430 mi) southeast of South Georgia. The territory's total land area is 3,903 km2 (1,507 sq...",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Flag_of_South_Georgia_and_the_South_Sandwich_Islands.svg/640px-Flag_of_South_Georgia_and_the_South_Sandwich_Islands.svg.png",
|
||
width: 640,
|
||
height: 320
|
||
},
|
||
type: "page",
|
||
pageId: 189
|
||
};
|
||
|
||
MODELS.SVG_LANDSCAPE = {
|
||
title: "Foreign relations of Transnistria",
|
||
url: "Foreign relations of Transnistria",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p>The Transnistrian republic is recognized by three states with limited recognition, and is a member of one international organization, the Community for Democracy and Human Rights, that was established by these four states.</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/8/81/Coat_of_arms_of_Transnistria.svg/594px-Coat_of_arms_of_Transnistria.svg.png",
|
||
width: 594,
|
||
height: 640
|
||
},
|
||
pageId: 11971493
|
||
};
|
||
|
||
MODELS.THIN_THUMBNAIL = {
|
||
title: "The Barker",
|
||
url: "The Barker",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p><i><b>The Barker</b></i> is a 1928 part-talkie pre-Code romantic drama film produced and released by First National Pictures, a subsidiary of Warner Bros., acquired in September 1928. The film was directed by George Fitzmaurice and stars Milton Sills, Dorothy Mackaill, Betty Compson, and Douglas Fairbanks Jr..</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/en/thumb/3/3a/Barker_poster.jpg/258px-Barker_poster.jpg",
|
||
width: 258,
|
||
height: 640
|
||
},
|
||
pageId: 172025
|
||
};
|
||
MODELS.THUMBNAIL_DIVIDER = {
|
||
title: "Japan",
|
||
url: "Japan",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p><b>Japan</b> is an island country in East Asia. Located in the Pacific Ocean, it lies off the eastern coast of the Asian continent and stretches from the Sea of Okhotsk in the north to the East China Sea and the Philippine Sea in the south.\n\nThe kanji that make up Japan's name mean \"sun origin\", and it is often called the \"Land of the Rising Sun\". Japan is a stratovolcanic archipelago consisting of about 6,852 islands. The four largest are Honshu, Hokkaido, Kyushu, and Shikoku, which make up about ninety-seven percent of Japan's land area and often are referred to as home islands. The country is divided into 47 prefectures in eight regions, with Hokkaido being the northernmost prefecture and Okinawa being the southernmost one. The population of 127 million is the world's tenth largest. Japanese make up 98.5% of Japan's total population. About 13.8 million people live in Tokyo, the capital of Japan. The Greater Tokyo Area is the most populous metropolitan area in the world with over 38 million people.</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/en/thumb/9/9e/Flag_of_Japan.svg/640px-Flag_of_Japan.svg.png",
|
||
width: 640,
|
||
height: 426
|
||
},
|
||
pageId: 15573
|
||
};
|
||
MODELS.LONG_WORD_1 = {
|
||
title: "Pneumonoultramicroscopicsilicovolcanoconiosis",
|
||
url: "Pneumonoultramicroscopicsilicovolcanoconiosis",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
'<p>\n<i><b>Pneumonoultramicroscopicsilicovolcanoconiosis</b></i> is a word invented by the president of the National Puzzlers\' League as a synonym for the disease known as silicosis. It is the longest word in the English language published in a dictionary, the <i>Oxford English Dictionary</i>, which defines it as "an artificial long word said to mean a lung disease caused by inhaling very fine ash and sand dust."</p>',
|
||
type: "page",
|
||
pageId: 387219
|
||
};
|
||
|
||
MODELS.LONG_WORD_2 = {
|
||
title:
|
||
"Donaudampfschiffahrtselektrizitätenhauptbetriebswerkbauunterbeamtengesellschaft",
|
||
url:
|
||
"Donaudampfschiffahrtselektrizitätenhauptbetriebswerkbauunterbeamtengesellschaft",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
'<p><b><i lang="de" title="German language text">Donaudampfschiffahrtselektrizitätenhauptbetriebswerkbauunterbeamtengesellschaft</i></b> or <b><i lang="de" title="German language text">Donaudampfschifffahrtselektrizitätenhauptbetriebswerkbauunterbeamtengesellschaft</i></b> was an alleged suborganization of the Donaudampfschiffahrtsgesellschaft (DDSG) in pre-war Vienna, Austria, a shipping company for transporting passengers and cargo on the Danube. The DDSG still exists today in the form of the now-private companies DDSG-Blue Danube Schifffahrt GmbH and the DDSG-Cargo GmbH. However, there is no evidence that Donaudampfschiffahrtselektrizitätenhauptbetriebswerkbauunterbeamtengesellschaft ever existed.</p>',
|
||
type: "page",
|
||
pageId: 2201357
|
||
};
|
||
MODELS.LONG_WORD_THUMB = {
|
||
title: "Llanfairpwllgwyngyll",
|
||
url: "Llanfairpwllgwyngyll",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p><b>Llanfairpwllgwyngyll</b> or <b>Llanfair Pwllgwyngyll</b> is a large village and local government community on the island of Anglesey in Wales. It is situated on the Menai Strait next to the Britannia Bridge and across the strait from Bangor. Both shortened and lengthened (<b>Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch</b>) forms of the placename are used in various contexts.</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/d/dd/Llanfair_Pwllgwyngyll_roofscape_%281%29_-_geograph.org.uk_-_1058331.jpg",
|
||
width: 640,
|
||
height: 480
|
||
},
|
||
pageId: 23939707
|
||
};
|
||
|
||
MODELS.MATH_1 = {
|
||
title: "System of linear equations",
|
||
url: "System of linear equations",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p>In mathematics, a <b>system of linear equations</b> is a collection of two or more linear equations involving the same set of variables. For example,</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Secretsharing_3-point.svg/640px-Secretsharing_3-point.svg.png",
|
||
width: 640,
|
||
height: 640
|
||
},
|
||
pageId: 113087
|
||
};
|
||
|
||
MODELS.MATH_2 = {
|
||
title: "History of Lorentz transformations",
|
||
url: "History of Lorentz transformations",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
'<p>The <b>history of Lorentz transformations</b> comprises the development of linear transformations forming the Lorentz group or Poincaré group preserving the Lorentz interval <span class="mwe-math-element"><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/aeaaf19e649447ee32f924033e4c859955174c81" class="mwe-math-fallback-image-inline" aria-hidden="true" style="vertical-align:-1.005ex;width:15.144ex;height:3.176ex;"></span>\n and the Minkowski inner product <span class="mwe-math-element"><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/43fcbe32f1674bd50b4621db988d3de905a8f269" class="mwe-math-fallback-image-inline" aria-hidden="true" style="vertical-align:-0.671ex;width:19.695ex;height:2.343ex;"></span>\n.</p>',
|
||
type: "page",
|
||
pageId: 7058047
|
||
};
|
||
|
||
MODELS.CHEM_1 = {
|
||
title: "Carbohydrate",
|
||
url: "Carbohydrate",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
'<p>A <b>carbohydrate</b> is a biomolecule consisting of carbon (C), hydrogen (H) and oxygen (O) atoms, usually with a hydrogen–oxygen atom ratio of 2:1 (as in water) and thus with the empirical formula <span class="nowrap">C<sub><i>m</i></sub>(H<sub>2</sub>O)<sub><i>n</i></sub></span> (where <i>m</i> may be different from <i>n</i>). This formula holds true for monosaccharides. Some exceptions exist; for example, deoxyribose, a sugar component of DNA, has the empirical formula C<sub>5</sub>H<sub>10</sub>O<sub>4</sub>. The carbohydrates are technically hydrates of carbon; structurally it is more accurate to view them as aldoses and ketoses.</p>',
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/0/04/Lactose.svg/640px-Lactose.svg.png",
|
||
width: 640,
|
||
height: 266
|
||
},
|
||
pageId: 5932
|
||
};
|
||
MODELS.CHEM_2 = {
|
||
title: "Ethanol",
|
||
url: "Ethanol",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
'<p><b>Ethanol</b>, also called <b>alcohol</b>, <b>ethyl alcohol</b>, <b>grain alcohol</b>, and <b>drinking alcohol</b>, is a chemical compound, a simple alcohol with the chemical formula <span class="chemf nowrap">C<span style="display:inline-block;vertical-align:-0.4em;font-size:80%;text-align:left;"><sup></sup><br><sub>2</sub></span>H<span style="display:inline-block;vertical-align:-0.4em;font-size:80%;text-align:left;"><sup></sup><br><sub>5</sub></span>OH</span>. Its formula can be also written as <span class="chemf nowrap">CH<span style="display:inline-block;vertical-align:-0.4em;font-size:80%;text-align:left;"><sup></sup><br><sub>3</sub></span></span>−<span class="chemf nowrap">CH<span style="display:inline-block;vertical-align:-0.4em;font-size:80%;text-align:left;"><sup></sup><br><sub>2</sub></span></span>−<span class="chemf nowrap">OH</span> or <span class="chemf nowrap">C<span style="display:inline-block;vertical-align:-0.4em;font-size:80%;text-align:left;"><sup></sup><br><sub>2</sub></span>H<span style="display:inline-block;vertical-align:-0.4em;font-size:80%;text-align:left;"><sup></sup><br><sub>5</sub></span></span>−<span class="chemf nowrap">OH</span>, and is often abbreviated as <b>EtOH</b>. Ethanol is a volatile, flammable, colorless liquid with a slight characteristic odor. It is a psychoactive substance and is the principal type of alcohol found in alcoholic drinks.</p>',
|
||
type: "page",
|
||
pageId: 10048
|
||
};
|
||
|
||
MODELS.CHEM_3 = {
|
||
title: "Polyvinyl acetate",
|
||
url: "Polyvinyl acetate",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p><b>Poly(vinyl acetate)</b> (<b>PVA</b>, <b>PVAc</b>, <b>poly(ethenyl ethanoate)</b>: best known as <b>wood glue</b>, <b>white glue</b>, <b>carpenter's glue</b>, <b>school glue</b>, <b>Elmer's glue</b> in the US, or <b>PVA glue</b>) is an aliphatic rubbery synthetic polymer with the formula (C<sub>4</sub>H<sub>6</sub>O<sub>2</sub>)<sub>n</sub>. It belongs to the polyvinyl esters family, with the general formula -[RCOOCHCH<sub>2</sub>]-. It is a type of thermoplastic. There is considerable confusion between the glue as purchased, an aqueous emulsion of mostly vinyl acetate monomer, and the subsequent dried and polymerized PVAc that is the true thermoplastic polymer.</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/5/57/PVA.svg/576px-PVA.svg.png",
|
||
width: 576,
|
||
height: 640
|
||
},
|
||
pageId: 233089
|
||
};
|
||
|
||
MODELS.DISAMBIGUATION = {
|
||
title: "Manhattan (disambiguation)",
|
||
url: "Manhattan (disambiguation)",
|
||
languageCode: "en",
|
||
languageDirection: "ltr",
|
||
extract: "<p><b>Manhattan</b> is a borough of New York City.</p>",
|
||
type: "disambiguation",
|
||
pageId: 18835
|
||
};
|
||
|
||
MODELS.HE_WIKI = {
|
||
title: "פרהיסטוריה",
|
||
url: "פרהיסטוריה",
|
||
languageCode: "he",
|
||
languageDirection: "rtl",
|
||
extract:
|
||
"<p><b>פרהיסטוריה</b> מלטינית præ (לפני) ומיוונית Iστορία (היסטוריה), היא התקופה בתולדות האנושות שקדמה להיסטוריה, דהיינו להופעת התעודות הכתובות. התקופה הפרהיסטורית מתחילה עם הופעת הסוג אדם באפריקה, לפני כשניים וחצי מיליוני שנים, ומסתיימת לפני כמה אלפי עד מאות שנים, כאשר החל השימוש בכתב. לפיכך, התקופה הפרהיסטורית מכסה את הרוב המכריע של תולדות האנושות, ממנו אין כל תיעוד כתוב. מקור המידע החשוב ביותר על התקופה הוא ממצאים ארכאולוגיים, בעיקר כלים, שרידי מבנים ואשפת מזון של האדם, וכן שרידי שלד מאובנים של האדם עצמו.</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Stonehenge2007_07_30.jpg/640px-Stonehenge2007_07_30.jpg",
|
||
width: 640,
|
||
height: 480
|
||
},
|
||
pageId: 502723
|
||
};
|
||
|
||
MODELS.AR_WIKI = {
|
||
title: "سلسلة جبلية",
|
||
url: "سلسلة جبلية",
|
||
languageCode: "ar",
|
||
languageDirection: "rtl",
|
||
extract:
|
||
"<p><b>الجبال</b> هي سلسلة متتالية من الارتفاعات تفتقر إلى التجانس، بحيث تكون ارتفاعات القمم شديدة التباين(مثل 1000 متر، 2500 متر أو 700 متر...)، وهي مجموعة من الجبال تحدها السهول أو يفصلها عن غيرها ممرات أو أنهار ولكن الأودية تكون متعمقة، و<b>السفوح</b> شديدة التجزئة وقوية الانحدار.\nوتتميز الجبال بعدة أشكال بالنسبة للقمم :</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/1/16/Satellitenaufnahme_der_Alpen.jpg/640px-Satellitenaufnahme_der_Alpen.jpg",
|
||
width: 640,
|
||
height: 494
|
||
},
|
||
pageId: 32340
|
||
};
|
||
|
||
MODELS.JA_WIKI = {
|
||
title: "焼きそば",
|
||
url: "焼きそば",
|
||
languageCode: "ja",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p><b>焼きそば</b>(やきそば)とは、麺料理の一種。蒸した(あるいは茹でた)中華麺を、豚肉等の肉類、キャベツ、人参、玉ねぎ、もやし等の野菜類といった具とともに炒めて作る。日本ではウスターソースを使用したソース焼きそばが普及している。最近では塩焼きそばというのも徐々に普及してきている。。</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Kuroishi_Yakisoba01.JPG/640px-Kuroishi_Yakisoba01.JPG",
|
||
width: 640,
|
||
height: 480
|
||
},
|
||
pageId: 69478
|
||
};
|
||
|
||
MODELS.KO_WIKI = {
|
||
title: "닌텐도 DS",
|
||
url: "닌텐도 DS",
|
||
languageCode: "ko",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p><b>닌텐도 DS</b>(<span>영어: </span>Nintendo DS, <span>일본어: </span>ニンテンドーDS)는 닌텐도가 개발, 판매하는 휴대용 게임기이다. 2개의 화면이나 터치 패널, 마이크에 의한 음성 입력 등의 사용자 환경이 특징이다. 2004년 11월 21일 미국에서 발매되었으며, 일본에서는 같은 해 12월 2일에 발매되었다. 오스트레일리아와 유럽에서는 2005년 2월 24일과 2005년 3월 11일에 각각 발매되었으며 중국에서는 iQue DS라는 이름으로 2005년 7월 23일에 발매되었다.</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Nintendo_DS_Trans.png/640px-Nintendo_DS_Trans.png",
|
||
width: 640,
|
||
height: 584
|
||
},
|
||
pageId: 13295
|
||
};
|
||
|
||
MODELS.HZ_WIKI = {
|
||
title: "美国国家森林列表",
|
||
url: "美国国家森林列表",
|
||
languageCode: "zh",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p>美国境内共拥有154座国家森林,总面积188,336,179英畝(762,169.48平方)。这些国家森林均由美国农业部下属的美国国家森林局管控。</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/b/bb/USA_National_Forests_Map.jpg/640px-USA_National_Forests_Map.jpg",
|
||
width: 640,
|
||
height: 416
|
||
},
|
||
pageId: 6097460
|
||
};
|
||
|
||
MODELS.EL_WIKI = {
|
||
title: "Κνωσός",
|
||
url: "Κνωσός",
|
||
languageCode: "el",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p>Το μινωικό ανάκτορο είναι ο κύριος επισκέψιμος χώρος της <b>Κνωσού</b>, σημαντικής πόλης κατά την αρχαιότητα, με συνεχή ζωή από τα νεολιθικά χρόνια έως τον 5ο αι. Είναι χτισμένο στο λόφο της Κεφάλας, με εύκολη πρόσβαση στη θάλασσα αλλά και στο εσωτερικό της Κρήτης. Κατά την παράδοση, υπήρξε η έδρα του σοφού βασιλιά Μίνωα. Συναρπαστικοί μύθοι, του Λαβύρινθου με το Μινώταυρο και του Δαίδαλου με τον Ίκαρο, συνδέονται με το ανάκτορο της Κνωσσού.</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Knossos_-_North_Portico_02.jpg/640px-Knossos_-_North_Portico_02.jpg",
|
||
width: 640,
|
||
height: 480
|
||
},
|
||
pageId: 6070
|
||
};
|
||
|
||
MODELS.HI_WIKI = {
|
||
title: "बग़दाद",
|
||
url: "बग़दाद",
|
||
languageCode: "hi",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p><b>बग़दाद</b> विश्व का एक प्रमुख नगर एवं ईराक की राजधानी है। इसका नाम ६०० ईपू के बाबिल के राजा भागदत्त पर पड़ा है। यह नगर 4,000 वर्ष पहले पश्चिमी यूरोप और सुदूर पूर्व के देशों के बीच, समुद्री मार्ग के आविष्कार के पहले कारवाँ मार्ग का प्रसिद्ध केंद्र था तथा नदी के किनारे इसकी स्थिति व्यापारिक महत्व रखती थी। मेसोपोटामिया के उपजाऊ भाग में स्थित बगदाद वास्तव में शांति और समृद्धि का केंद्र था। 9वीं शताब्दी के प्रारंभिक वर्षों में यह अपने चरमोत्कर्ष पर था। उस समय यहाँ प्रबुद्ध खलीफा की छत्रछाया में धनी व्यापारी एवं विद्वान लोग फले-फूले। रेशमी वस्त्र एवं विशाल खपरैल के भवनों के लिए प्रसिद्ध बगदाद इस्लाम धर्म का केंद्र रहा है। यहाँ का औसत ताप लगभग 23 डिग्री सें. तथा वार्षिक वर्षा सात इंच हैं, अत: यहाँ खजूर तथा झाड़ियों के कुंज अधिक मिलते हैं।</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/6/67/Baghdad_collage.png/554px-Baghdad_collage.png",
|
||
width: 554,
|
||
height: 640
|
||
},
|
||
pageId: 8441
|
||
};
|
||
|
||
MODELS.RU_WIKI = {
|
||
title: "Клюв",
|
||
url: "Клюв",
|
||
languageCode: "ru",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p><b>Клюв</b> — орган птиц, черепах, головоногих моллюсков, некоторых динозавров и утконоса, образованный удлинёнными беззубыми челюстями, одетыми роговым чехлом — рамфотекой.</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/0/03/Bristol.zoo.greater.flamingo.arp.jpg/640px-Bristol.zoo.greater.flamingo.arp.jpg",
|
||
width: 640,
|
||
height: 444
|
||
},
|
||
pageId: 158104
|
||
};
|
||
|
||
MODELS.TH_WIKI = {
|
||
title: "เกาะแคโรไลน์",
|
||
url: "เกาะแคโรไลน์",
|
||
languageCode: "th",
|
||
languageDirection: "ltr",
|
||
extract:
|
||
"<p><b>เกาะแคโรไลน์</b> หรือ <b>แคโรไลน์อะทอลล์</b> บ้างเรียก <b>เกาะมิลเลนเนียม</b> และ <b>เกาะเบสซีซา</b> เป็นเกาะปะการังวงแหวนไร้คนอาศัยซึ่งเป็นส่วนหนึ่งของหมู่เกาะไลน์ใต้ในมหาสมุทรแปซิฟิกตอนกลาง</p>",
|
||
type: "page",
|
||
thumbnail: {
|
||
source:
|
||
"https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/NASA-CarolineAtoll.jpg/426px-NASA-CarolineAtoll.jpg",
|
||
width: 426,
|
||
height: 640
|
||
},
|
||
pageId: 901909
|
||
};
|
||
|
||
export default MODELS;
|