How to use missing method in storybook-root

Best JavaScript code snippet using storybook-root

mk.js

Source:mk.js Github

copy

Full Screen

1/*2Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.3For licensing, see LICENSE.html or http://ckeditor.com/license4*/56/**7* @fileOverview8*/910/**#@+11 @type String12 @example13*/1415/**16 * Contains the dictionary of language entries.17 * @namespace18 */19CKEDITOR.lang['mk'] =20{21 /**22 * The language reading direction. Possible values are "rtl" for23 * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right24 * languages (like English).25 * @default 'ltr'26 */27 dir : 'ltr', // MISSING2829 /*30 * Screenreader titles. Please note that screenreaders are not always capable31 * of reading non-English words. So be careful while translating it.32 */33 editorTitle : 'Rich text editor, %1', // MISSING34 editorHelp : 'Press ALT 0 for help', // MISSING3536 // ARIA descriptions.37 toolbars : 'Editor toolbars', // MISSING38 editor : 'Rich Text Editor', // MISSING3940 // Toolbar buttons without dialogs.41 source : 'Source', // MISSING42 newPage : 'New Page', // MISSING43 save : 'Save', // MISSING44 preview : 'Preview', // MISSING45 cut : 'Cut', // MISSING46 copy : 'Copy', // MISSING47 paste : 'Paste', // MISSING48 print : 'Print', // MISSING49 underline : 'Underline', // MISSING50 bold : 'Bold', // MISSING51 italic : 'Italic', // MISSING52 selectAll : 'Select All', // MISSING53 removeFormat : 'Remove Format', // MISSING54 strike : 'Strike Through', // MISSING55 subscript : 'Subscript', // MISSING56 superscript : 'Superscript', // MISSING57 horizontalrule : 'Insert Horizontal Line', // MISSING58 pagebreak : 'Insert Page Break for Printing', // MISSING59 pagebreakAlt : 'Page Break', // MISSING60 unlink : 'Unlink', // MISSING61 undo : 'Undo', // MISSING62 redo : 'Redo', // MISSING6364 // Common messages and labels.65 common :66 {67 browseServer : 'Browse Server', // MISSING68 url : 'URL', // MISSING69 protocol : 'Protocol', // MISSING70 upload : 'Upload', // MISSING71 uploadSubmit : 'Send it to the Server', // MISSING72 image : 'Image', // MISSING73 flash : 'Flash', // MISSING74 form : 'Form', // MISSING75 checkbox : 'Checkbox', // MISSING76 radio : 'Radio Button', // MISSING77 textField : 'Text Field', // MISSING78 textarea : 'Textarea', // MISSING79 hiddenField : 'Hidden Field', // MISSING80 button : 'Button', // MISSING81 select : 'Selection Field', // MISSING82 imageButton : 'Image Button', // MISSING83 notSet : '<not set>', // MISSING84 id : 'Id', // MISSING85 name : 'Name', // MISSING86 langDir : 'Language Direction', // MISSING87 langDirLtr : 'Left to Right (LTR)', // MISSING88 langDirRtl : 'Right to Left (RTL)', // MISSING89 langCode : 'Language Code', // MISSING90 longDescr : 'Long Description URL', // MISSING91 cssClass : 'Stylesheet Classes', // MISSING92 advisoryTitle : 'Advisory Title', // MISSING93 cssStyle : 'Style', // MISSING94 ok : 'OK', // MISSING95 cancel : 'Cancel', // MISSING96 close : 'Close', // MISSING97 preview : 'Preview', // MISSING98 generalTab : 'General', // MISSING99 advancedTab : 'Advanced', // MISSING100 validateNumberFailed : 'This value is not a number.', // MISSING101 confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING102 confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING103 options : 'Options', // MISSING104 target : 'Target', // MISSING105 targetNew : 'New Window (_blank)', // MISSING106 targetTop : 'Topmost Window (_top)', // MISSING107 targetSelf : 'Same Window (_self)', // MISSING108 targetParent : 'Parent Window (_parent)', // MISSING109 langDirLTR : 'Left to Right (LTR)', // MISSING110 langDirRTL : 'Right to Left (RTL)', // MISSING111 styles : 'Style', // MISSING112 cssClasses : 'Stylesheet Classes', // MISSING113 width : 'Width', // MISSING114 height : 'Height', // MISSING115 align : 'Alignment', // MISSING116 alignLeft : 'Left', // MISSING117 alignRight : 'Right', // MISSING118 alignCenter : 'Center', // MISSING119 alignTop : 'Top', // MISSING120 alignMiddle : 'Middle', // MISSING121 alignBottom : 'Bottom', // MISSING122 invalidValue : 'Invalid value.', // MISSING123 invalidHeight : 'Height must be a number.', // MISSING124 invalidWidth : 'Width must be a number.', // MISSING125 invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING126 invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING127 invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING128 cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING129130 // Put the voice-only part of the label in the span.131 unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING132 },133134 contextmenu :135 {136 options : 'Context Menu Options' // MISSING137 },138139 // Special char dialog.140 specialChar :141 {142 toolbar : 'Insert Special Character', // MISSING143 title : 'Select Special Character', // MISSING144 options : 'Special Character Options' // MISSING145 },146147 // Link dialog.148 link :149 {150 toolbar : 'Link', // MISSING151 other : '<other>', // MISSING152 menu : 'Edit Link', // MISSING153 title : 'Link', // MISSING154 info : 'Link Info', // MISSING155 target : 'Target', // MISSING156 upload : 'Upload', // MISSING157 advanced : 'Advanced', // MISSING158 type : 'Link Type', // MISSING159 toUrl : 'URL', // MISSING160 toAnchor : 'Link to anchor in the text', // MISSING161 toEmail : 'E-mail', // MISSING162 targetFrame : '<frame>', // MISSING163 targetPopup : '<popup window>', // MISSING164 targetFrameName : 'Target Frame Name', // MISSING165 targetPopupName : 'Popup Window Name', // MISSING166 popupFeatures : 'Popup Window Features', // MISSING167 popupResizable : 'Resizable', // MISSING168 popupStatusBar : 'Status Bar', // MISSING169 popupLocationBar: 'Location Bar', // MISSING170 popupToolbar : 'Toolbar', // MISSING171 popupMenuBar : 'Menu Bar', // MISSING172 popupFullScreen : 'Full Screen (IE)', // MISSING173 popupScrollBars : 'Scroll Bars', // MISSING174 popupDependent : 'Dependent (Netscape)', // MISSING175 popupLeft : 'Left Position', // MISSING176 popupTop : 'Top Position', // MISSING177 id : 'Id', // MISSING178 langDir : 'Language Direction', // MISSING179 langDirLTR : 'Left to Right (LTR)', // MISSING180 langDirRTL : 'Right to Left (RTL)', // MISSING181 acccessKey : 'Access Key', // MISSING182 name : 'Name', // MISSING183 langCode : 'Language Code', // MISSING184 tabIndex : 'Tab Index', // MISSING185 advisoryTitle : 'Advisory Title', // MISSING186 advisoryContentType : 'Advisory Content Type', // MISSING187 cssClasses : 'Stylesheet Classes', // MISSING188 charset : 'Linked Resource Charset', // MISSING189 styles : 'Style', // MISSING190 rel : 'Relationship', // MISSING191 selectAnchor : 'Select an Anchor', // MISSING192 anchorName : 'By Anchor Name', // MISSING193 anchorId : 'By Element Id', // MISSING194 emailAddress : 'E-Mail Address', // MISSING195 emailSubject : 'Message Subject', // MISSING196 emailBody : 'Message Body', // MISSING197 noAnchors : '(No anchors available in the document)', // MISSING198 noUrl : 'Please type the link URL', // MISSING199 noEmail : 'Please type the e-mail address' // MISSING200 },201202 // Anchor dialog203 anchor :204 {205 toolbar : 'Anchor', // MISSING206 menu : 'Edit Anchor', // MISSING207 title : 'Anchor Properties', // MISSING208 name : 'Anchor Name', // MISSING209 errorName : 'Please type the anchor name', // MISSING210 remove : 'Remove Anchor' // MISSING211 },212213 // List style dialog214 list:215 {216 numberedTitle : 'Numbered List Properties', // MISSING217 bulletedTitle : 'Bulleted List Properties', // MISSING218 type : 'Type', // MISSING219 start : 'Start', // MISSING220 validateStartNumber :'List start number must be a whole number.', // MISSING221 circle : 'Circle', // MISSING222 disc : 'Disc', // MISSING223 square : 'Square', // MISSING224 none : 'None', // MISSING225 notset : '<not set>', // MISSING226 armenian : 'Armenian numbering', // MISSING227 georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING228 lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING229 upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING230 lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING231 upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING232 lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING233 decimal : 'Decimal (1, 2, 3, etc.)', // MISSING234 decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING235 },236237 // Find And Replace Dialog238 findAndReplace :239 {240 title : 'Find and Replace', // MISSING241 find : 'Find', // MISSING242 replace : 'Replace', // MISSING243 findWhat : 'Find what:', // MISSING244 replaceWith : 'Replace with:', // MISSING245 notFoundMsg : 'The specified text was not found.', // MISSING246 findOptions : 'Find Options', // MISSING247 matchCase : 'Match case', // MISSING248 matchWord : 'Match whole word', // MISSING249 matchCyclic : 'Match cyclic', // MISSING250 replaceAll : 'Replace All', // MISSING251 replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING252 },253254 // Table Dialog255 table :256 {257 toolbar : 'Table', // MISSING258 title : 'Table Properties', // MISSING259 menu : 'Table Properties', // MISSING260 deleteTable : 'Delete Table', // MISSING261 rows : 'Rows', // MISSING262 columns : 'Columns', // MISSING263 border : 'Border size', // MISSING264 widthPx : 'pixels', // MISSING265 widthPc : 'percent', // MISSING266 widthUnit : 'width unit', // MISSING267 cellSpace : 'Cell spacing', // MISSING268 cellPad : 'Cell padding', // MISSING269 caption : 'Caption', // MISSING270 summary : 'Summary', // MISSING271 headers : 'Headers', // MISSING272 headersNone : 'None', // MISSING273 headersColumn : 'First column', // MISSING274 headersRow : 'First Row', // MISSING275 headersBoth : 'Both', // MISSING276 invalidRows : 'Number of rows must be a number greater than 0.', // MISSING277 invalidCols : 'Number of columns must be a number greater than 0.', // MISSING278 invalidBorder : 'Border size must be a number.', // MISSING279 invalidWidth : 'Table width must be a number.', // MISSING280 invalidHeight : 'Table height must be a number.', // MISSING281 invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING282 invalidCellPadding : 'Cell padding must be a positive number.', // MISSING283284 cell :285 {286 menu : 'Cell', // MISSING287 insertBefore : 'Insert Cell Before', // MISSING288 insertAfter : 'Insert Cell After', // MISSING289 deleteCell : 'Delete Cells', // MISSING290 merge : 'Merge Cells', // MISSING291 mergeRight : 'Merge Right', // MISSING292 mergeDown : 'Merge Down', // MISSING293 splitHorizontal : 'Split Cell Horizontally', // MISSING294 splitVertical : 'Split Cell Vertically', // MISSING295 title : 'Cell Properties', // MISSING296 cellType : 'Cell Type', // MISSING297 rowSpan : 'Rows Span', // MISSING298 colSpan : 'Columns Span', // MISSING299 wordWrap : 'Word Wrap', // MISSING300 hAlign : 'Horizontal Alignment', // MISSING301 vAlign : 'Vertical Alignment', // MISSING302 alignBaseline : 'Baseline', // MISSING303 bgColor : 'Background Color', // MISSING304 borderColor : 'Border Color', // MISSING305 data : 'Data', // MISSING306 header : 'Header', // MISSING307 yes : 'Yes', // MISSING308 no : 'No', // MISSING309 invalidWidth : 'Cell width must be a number.', // MISSING310 invalidHeight : 'Cell height must be a number.', // MISSING311 invalidRowSpan : 'Rows span must be a whole number.', // MISSING312 invalidColSpan : 'Columns span must be a whole number.', // MISSING313 chooseColor : 'Choose' // MISSING314 },315316 row :317 {318 menu : 'Row', // MISSING319 insertBefore : 'Insert Row Before', // MISSING320 insertAfter : 'Insert Row After', // MISSING321 deleteRow : 'Delete Rows' // MISSING322 },323324 column :325 {326 menu : 'Column', // MISSING327 insertBefore : 'Insert Column Before', // MISSING328 insertAfter : 'Insert Column After', // MISSING329 deleteColumn : 'Delete Columns' // MISSING330 }331 },332333 // Button Dialog.334 button :335 {336 title : 'Button Properties', // MISSING337 text : 'Text (Value)', // MISSING338 type : 'Type', // MISSING339 typeBtn : 'Button', // MISSING340 typeSbm : 'Submit', // MISSING341 typeRst : 'Reset' // MISSING342 },343344 // Checkbox and Radio Button Dialogs.345 checkboxAndRadio :346 {347 checkboxTitle : 'Checkbox Properties', // MISSING348 radioTitle : 'Radio Button Properties', // MISSING349 value : 'Value', // MISSING350 selected : 'Selected' // MISSING351 },352353 // Form Dialog.354 form :355 {356 title : 'Form Properties', // MISSING357 menu : 'Form Properties', // MISSING358 action : 'Action', // MISSING359 method : 'Method', // MISSING360 encoding : 'Encoding' // MISSING361 },362363 // Select Field Dialog.364 select :365 {366 title : 'Selection Field Properties', // MISSING367 selectInfo : 'Select Info', // MISSING368 opAvail : 'Available Options', // MISSING369 value : 'Value', // MISSING370 size : 'Size', // MISSING371 lines : 'lines', // MISSING372 chkMulti : 'Allow multiple selections', // MISSING373 opText : 'Text', // MISSING374 opValue : 'Value', // MISSING375 btnAdd : 'Add', // MISSING376 btnModify : 'Modify', // MISSING377 btnUp : 'Up', // MISSING378 btnDown : 'Down', // MISSING379 btnSetValue : 'Set as selected value', // MISSING380 btnDelete : 'Delete' // MISSING381 },382383 // Textarea Dialog.384 textarea :385 {386 title : 'Textarea Properties', // MISSING387 cols : 'Columns', // MISSING388 rows : 'Rows' // MISSING389 },390391 // Text Field Dialog.392 textfield :393 {394 title : 'Text Field Properties', // MISSING395 name : 'Name', // MISSING396 value : 'Value', // MISSING397 charWidth : 'Character Width', // MISSING398 maxChars : 'Maximum Characters', // MISSING399 type : 'Type', // MISSING400 typeText : 'Text', // MISSING401 typePass : 'Password' // MISSING402 },403404 // Hidden Field Dialog.405 hidden :406 {407 title : 'Hidden Field Properties', // MISSING408 name : 'Name', // MISSING409 value : 'Value' // MISSING410 },411412 // Image Dialog.413 image :414 {415 title : 'Image Properties', // MISSING416 titleButton : 'Image Button Properties', // MISSING417 menu : 'Image Properties', // MISSING418 infoTab : 'Image Info', // MISSING419 btnUpload : 'Send it to the Server', // MISSING420 upload : 'Upload', // MISSING421 alt : 'Alternative Text', // MISSING422 lockRatio : 'Lock Ratio', // MISSING423 resetSize : 'Reset Size', // MISSING424 border : 'Border', // MISSING425 hSpace : 'HSpace', // MISSING426 vSpace : 'VSpace', // MISSING427 alertUrl : 'Please type the image URL', // MISSING428 linkTab : 'Link', // MISSING429 button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING430 img2Button : 'Do you want to transform the selected image on a image button?', // MISSING431 urlMissing : 'Image source URL is missing.', // MISSING432 validateBorder : 'Border must be a whole number.', // MISSING433 validateHSpace : 'HSpace must be a whole number.', // MISSING434 validateVSpace : 'VSpace must be a whole number.' // MISSING435 },436437 // Flash Dialog438 flash :439 {440 properties : 'Flash Properties', // MISSING441 propertiesTab : 'Properties', // MISSING442 title : 'Flash Properties', // MISSING443 chkPlay : 'Auto Play', // MISSING444 chkLoop : 'Loop', // MISSING445 chkMenu : 'Enable Flash Menu', // MISSING446 chkFull : 'Allow Fullscreen', // MISSING447 scale : 'Scale', // MISSING448 scaleAll : 'Show all', // MISSING449 scaleNoBorder : 'No Border', // MISSING450 scaleFit : 'Exact Fit', // MISSING451 access : 'Script Access', // MISSING452 accessAlways : 'Always', // MISSING453 accessSameDomain: 'Same domain', // MISSING454 accessNever : 'Never', // MISSING455 alignAbsBottom : 'Abs Bottom', // MISSING456 alignAbsMiddle : 'Abs Middle', // MISSING457 alignBaseline : 'Baseline', // MISSING458 alignTextTop : 'Text Top', // MISSING459 quality : 'Quality', // MISSING460 qualityBest : 'Best', // MISSING461 qualityHigh : 'High', // MISSING462 qualityAutoHigh : 'Auto High', // MISSING463 qualityMedium : 'Medium', // MISSING464 qualityAutoLow : 'Auto Low', // MISSING465 qualityLow : 'Low', // MISSING466 windowModeWindow: 'Window', // MISSING467 windowModeOpaque: 'Opaque', // MISSING468 windowModeTransparent : 'Transparent', // MISSING469 windowMode : 'Window mode', // MISSING470 flashvars : 'Variables for Flash', // MISSING471 bgcolor : 'Background color', // MISSING472 hSpace : 'HSpace', // MISSING473 vSpace : 'VSpace', // MISSING474 validateSrc : 'URL must not be empty.', // MISSING475 validateHSpace : 'HSpace must be a number.', // MISSING476 validateVSpace : 'VSpace must be a number.' // MISSING477 },478479 // Speller Pages Dialog480 spellCheck :481 {482 toolbar : 'Check Spelling', // MISSING483 title : 'Spell Check', // MISSING484 notAvailable : 'Sorry, but service is unavailable now.', // MISSING485 errorLoading : 'Error loading application service host: %s.', // MISSING486 notInDic : 'Not in dictionary', // MISSING487 changeTo : 'Change to', // MISSING488 btnIgnore : 'Ignore', // MISSING489 btnIgnoreAll : 'Ignore All', // MISSING490 btnReplace : 'Replace', // MISSING491 btnReplaceAll : 'Replace All', // MISSING492 btnUndo : 'Undo', // MISSING493 noSuggestions : '- No suggestions -', // MISSING494 progress : 'Spell check in progress...', // MISSING495 noMispell : 'Spell check complete: No misspellings found', // MISSING496 noChanges : 'Spell check complete: No words changed', // MISSING497 oneChange : 'Spell check complete: One word changed', // MISSING498 manyChanges : 'Spell check complete: %1 words changed', // MISSING499 ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' // MISSING500 },501502 smiley :503 {504 toolbar : 'Smiley', // MISSING505 title : 'Insert a Smiley', // MISSING506 options : 'Smiley Options' // MISSING507 },508509 elementsPath :510 {511 eleLabel : 'Elements path', // MISSING512 eleTitle : '%1 element' // MISSING513 },514515 numberedlist : 'Insert/Remove Numbered List', // MISSING516 bulletedlist : 'Insert/Remove Bulleted List', // MISSING517 indent : 'Increase Indent', // MISSING518 outdent : 'Decrease Indent', // MISSING519520 justify :521 {522 left : 'Align Left', // MISSING523 center : 'Center', // MISSING524 right : 'Align Right', // MISSING525 block : 'Justify' // MISSING526 },527528 blockquote : 'Block Quote', // MISSING529530 clipboard :531 {532 title : 'Paste', // MISSING533 cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', // MISSING534 copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', // MISSING535 pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', // MISSING536 securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING537 pasteArea : 'Paste Area' // MISSING538 },539540 pastefromword :541 {542 confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING543 toolbar : 'Paste from Word', // MISSING544 title : 'Paste from Word', // MISSING545 error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING546 },547548 pasteText :549 {550 button : 'Paste as plain text', // MISSING551 title : 'Paste as Plain Text' // MISSING552 },553554 templates :555 {556 button : 'Templates', // MISSING557 title : 'Content Templates', // MISSING558 options : 'Template Options', // MISSING559 insertOption : 'Replace actual contents', // MISSING560 selectPromptMsg : 'Please select the template to open in the editor', // MISSING561 emptyListMsg : '(No templates defined)' // MISSING562 },563564 showBlocks : 'Show Blocks', // MISSING565566 stylesCombo :567 {568 label : 'Styles', // MISSING569 panelTitle : 'Formatting Styles', // MISSING570 panelTitle1 : 'Block Styles', // MISSING571 panelTitle2 : 'Inline Styles', // MISSING572 panelTitle3 : 'Object Styles' // MISSING573 },574575 format :576 {577 label : 'Format', // MISSING578 panelTitle : 'Paragraph Format', // MISSING579580 tag_p : 'Normal', // MISSING581 tag_pre : 'Formatted', // MISSING582 tag_address : 'Address', // MISSING583 tag_h1 : 'Heading 1', // MISSING584 tag_h2 : 'Heading 2', // MISSING585 tag_h3 : 'Heading 3', // MISSING586 tag_h4 : 'Heading 4', // MISSING587 tag_h5 : 'Heading 5', // MISSING588 tag_h6 : 'Heading 6', // MISSING589 tag_div : 'Normal (DIV)' // MISSING590 },591592 div :593 {594 title : 'Create Div Container', // MISSING595 toolbar : 'Create Div Container', // MISSING596 cssClassInputLabel : 'Stylesheet Classes', // MISSING597 styleSelectLabel : 'Style', // MISSING598 IdInputLabel : 'Id', // MISSING599 languageCodeInputLabel : ' Language Code', // MISSING600 inlineStyleInputLabel : 'Inline Style', // MISSING601 advisoryTitleInputLabel : 'Advisory Title', // MISSING602 langDirLabel : 'Language Direction', // MISSING603 langDirLTRLabel : 'Left to Right (LTR)', // MISSING604 langDirRTLLabel : 'Right to Left (RTL)', // MISSING605 edit : 'Edit Div', // MISSING606 remove : 'Remove Div' // MISSING607 },608609 iframe :610 {611 title : 'IFrame Properties', // MISSING612 toolbar : 'IFrame', // MISSING613 noUrl : 'Please type the iframe URL', // MISSING614 scrolling : 'Enable scrollbars', // MISSING615 border : 'Show frame border' // MISSING616 },617618 font :619 {620 label : 'Font', // MISSING621 voiceLabel : 'Font', // MISSING622 panelTitle : 'Font Name' // MISSING623 },624625 fontSize :626 {627 label : 'Size', // MISSING628 voiceLabel : 'Font Size', // MISSING629 panelTitle : 'Font Size' // MISSING630 },631632 colorButton :633 {634 textColorTitle : 'Text Color', // MISSING635 bgColorTitle : 'Background Color', // MISSING636 panelTitle : 'Colors', // MISSING637 auto : 'Automatic', // MISSING638 more : 'More Colors...' // MISSING639 },640641 colors :642 {643 '000' : 'Black', // MISSING644 '800000' : 'Maroon', // MISSING645 '8B4513' : 'Saddle Brown', // MISSING646 '2F4F4F' : 'Dark Slate Gray', // MISSING647 '008080' : 'Teal', // MISSING648 '000080' : 'Navy', // MISSING649 '4B0082' : 'Indigo', // MISSING650 '696969' : 'Dark Gray', // MISSING651 'B22222' : 'Fire Brick', // MISSING652 'A52A2A' : 'Brown', // MISSING653 'DAA520' : 'Golden Rod', // MISSING654 '006400' : 'Dark Green', // MISSING655 '40E0D0' : 'Turquoise', // MISSING656 '0000CD' : 'Medium Blue', // MISSING657 '800080' : 'Purple', // MISSING658 '808080' : 'Gray', // MISSING659 'F00' : 'Red', // MISSING660 'FF8C00' : 'Dark Orange', // MISSING661 'FFD700' : 'Gold', // MISSING662 '008000' : 'Green', // MISSING663 '0FF' : 'Cyan', // MISSING664 '00F' : 'Blue', // MISSING665 'EE82EE' : 'Violet', // MISSING666 'A9A9A9' : 'Dim Gray', // MISSING667 'FFA07A' : 'Light Salmon', // MISSING668 'FFA500' : 'Orange', // MISSING669 'FFFF00' : 'Yellow', // MISSING670 '00FF00' : 'Lime', // MISSING671 'AFEEEE' : 'Pale Turquoise', // MISSING672 'ADD8E6' : 'Light Blue', // MISSING673 'DDA0DD' : 'Plum', // MISSING674 'D3D3D3' : 'Light Grey', // MISSING675 'FFF0F5' : 'Lavender Blush', // MISSING676 'FAEBD7' : 'Antique White', // MISSING677 'FFFFE0' : 'Light Yellow', // MISSING678 'F0FFF0' : 'Honeydew', // MISSING679 'F0FFFF' : 'Azure', // MISSING680 'F0F8FF' : 'Alice Blue', // MISSING681 'E6E6FA' : 'Lavender', // MISSING682 'FFF' : 'White' // MISSING683 },684685 scayt :686 {687 title : 'Spell Check As You Type', // MISSING688 opera_title : 'Not supported by Opera', // MISSING689 enable : 'Enable SCAYT', // MISSING690 disable : 'Disable SCAYT', // MISSING691 about : 'About SCAYT', // MISSING692 toggle : 'Toggle SCAYT', // MISSING693 options : 'Options', // MISSING694 langs : 'Languages', // MISSING695 moreSuggestions : 'More suggestions', // MISSING696 ignore : 'Ignore', // MISSING697 ignoreAll : 'Ignore All', // MISSING698 addWord : 'Add Word', // MISSING699 emptyDic : 'Dictionary name should not be empty.', // MISSING700 noSuggestions : 'No suggestions', // MISSING701 optionsTab : 'Options', // MISSING702 allCaps : 'Ignore All-Caps Words', // MISSING703 ignoreDomainNames : 'Ignore Domain Names', // MISSING704 mixedCase : 'Ignore Words with Mixed Case', // MISSING705 mixedWithDigits : 'Ignore Words with Numbers', // MISSING706707 languagesTab : 'Languages', // MISSING708709 dictionariesTab : 'Dictionaries', // MISSING710 dic_field_name : 'Dictionary name', // MISSING711 dic_create : 'Create', // MISSING712 dic_restore : 'Restore', // MISSING713 dic_delete : 'Delete', // MISSING714 dic_rename : 'Rename', // MISSING715 dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING716717 aboutTab : 'About' // MISSING718 },719720 about :721 {722 title : 'About CKEditor', // MISSING723 dlgTitle : 'About CKEditor', // MISSING724 help : 'Check $1 for help.', // MISSING725 userGuide : 'CKEditor User\'s Guide', // MISSING726 moreInfo : 'For licensing information please visit our web site:', // MISSING727 copy : 'Copyright &copy; $1. All rights reserved.' // MISSING728 },729730 maximize : 'Maximize', // MISSING731 minimize : 'Minimize', // MISSING732733 fakeobjects :734 {735 anchor : 'Anchor', // MISSING736 flash : 'Flash Animation', // MISSING737 iframe : 'IFrame', // MISSING738 hiddenfield : 'Hidden Field', // MISSING739 unknown : 'Unknown Object' // MISSING740 },741742 resize : 'Drag to resize', // MISSING743744 colordialog :745 {746 title : 'Select color', // MISSING747 options : 'Color Options', // MISSING748 highlight : 'Highlight', // MISSING749 selected : 'Selected Color', // MISSING750 clear : 'Clear' // MISSING751 },752753 toolbarCollapse : 'Collapse Toolbar', // MISSING754 toolbarExpand : 'Expand Toolbar', // MISSING755756 toolbarGroups :757 {758 document : 'Document', // MISSING759 clipboard : 'Clipboard/Undo', // MISSING760 editing : 'Editing', // MISSING761 forms : 'Forms', // MISSING762 basicstyles : 'Basic Styles', // MISSING763 paragraph : 'Paragraph', // MISSING764 links : 'Links', // MISSING765 insert : 'Insert', // MISSING766 styles : 'Styles', // MISSING767 colors : 'Colors', // MISSING768 tools : 'Tools' // MISSING769 },770771 bidi :772 {773 ltr : 'Text direction from left to right', // MISSING774 rtl : 'Text direction from right to left' // MISSING775 },776777 docprops :778 {779 label : 'Document Properties', // MISSING780 title : 'Document Properties', // MISSING781 design : 'Design', // MISSING782 meta : 'Meta Tags', // MISSING783 chooseColor : 'Choose', // MISSING784 other : 'Other...', // MISSING785 docTitle : 'Page Title', // MISSING786 charset : 'Character Set Encoding', // MISSING787 charsetOther : 'Other Character Set Encoding', // MISSING788 charsetASCII : 'ASCII', // MISSING789 charsetCE : 'Central European', // MISSING790 charsetCT : 'Chinese Traditional (Big5)', // MISSING791 charsetCR : 'Cyrillic', // MISSING792 charsetGR : 'Greek', // MISSING793 charsetJP : 'Japanese', // MISSING794 charsetKR : 'Korean', // MISSING795 charsetTR : 'Turkish', // MISSING796 charsetUN : 'Unicode (UTF-8)', // MISSING797 charsetWE : 'Western European', // MISSING798 docType : 'Document Type Heading', // MISSING799 docTypeOther : 'Other Document Type Heading', // MISSING800 xhtmlDec : 'Include XHTML Declarations', // MISSING801 bgColor : 'Background Color', // MISSING802 bgImage : 'Background Image URL', // MISSING803 bgFixed : 'Non-scrolling (Fixed) Background', // MISSING804 txtColor : 'Text Color', // MISSING805 margin : 'Page Margins', // MISSING806 marginTop : 'Top', // MISSING807 marginLeft : 'Left', // MISSING808 marginRight : 'Right', // MISSING809 marginBottom : 'Bottom', // MISSING810 metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING811 metaDescription : 'Document Description', // MISSING812 metaAuthor : 'Author', // MISSING813 metaCopyright : 'Copyright', // MISSING814 previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING815 } ...

Full Screen

Full Screen

id.js

Source:id.js Github

copy

Full Screen

1/*2Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.3For licensing, see LICENSE.html or http://ckeditor.com/license4*/56/**7* @fileOverview8*/910/**#@+11 @type String12 @example13*/1415/**16 * Contains the dictionary of language entries.17 * @namespace18 */19CKEDITOR.lang['id'] =20{21 /**22 * The language reading direction. Possible values are "rtl" for23 * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right24 * languages (like English).25 * @default 'ltr'26 */27 dir : 'ltr',2829 /*30 * Screenreader titles. Please note that screenreaders are not always capable31 * of reading non-English words. So be careful while translating it.32 */33 editorTitle : 'Rich text editor, %1', // MISSING34 editorHelp : 'Press ALT 0 for help', // MISSING3536 // ARIA descriptions.37 toolbars : 'Editor toolbars', // MISSING38 editor : 'Rich Text Editor', // MISSING3940 // Toolbar buttons without dialogs.41 source : 'Source', // MISSING42 newPage : 'New Page', // MISSING43 save : 'Save', // MISSING44 preview : 'Preview', // MISSING45 cut : 'Cut', // MISSING46 copy : 'Copy', // MISSING47 paste : 'Paste', // MISSING48 print : 'Print', // MISSING49 underline : 'Underline', // MISSING50 bold : 'Bold', // MISSING51 italic : 'Italic', // MISSING52 selectAll : 'Select All', // MISSING53 removeFormat : 'Remove Format', // MISSING54 strike : 'Strike Through', // MISSING55 subscript : 'Subscript', // MISSING56 superscript : 'Superscript', // MISSING57 horizontalrule : 'Insert Horizontal Line', // MISSING58 pagebreak : 'Insert Page Break for Printing', // MISSING59 pagebreakAlt : 'Page Break', // MISSING60 unlink : 'Unlink', // MISSING61 undo : 'Undo', // MISSING62 redo : 'Redo', // MISSING6364 // Common messages and labels.65 common :66 {67 browseServer : 'Browse Server', // MISSING68 url : 'URL', // MISSING69 protocol : 'Protocol', // MISSING70 upload : 'Upload', // MISSING71 uploadSubmit : 'Send it to the Server', // MISSING72 image : 'Image', // MISSING73 flash : 'Flash', // MISSING74 form : 'Form', // MISSING75 checkbox : 'Checkbox', // MISSING76 radio : 'Radio Button', // MISSING77 textField : 'Text Field', // MISSING78 textarea : 'Textarea', // MISSING79 hiddenField : 'Hidden Field', // MISSING80 button : 'Button', // MISSING81 select : 'Selection Field', // MISSING82 imageButton : 'Image Button', // MISSING83 notSet : '<not set>', // MISSING84 id : 'Id', // MISSING85 name : 'Name', // MISSING86 langDir : 'Language Direction', // MISSING87 langDirLtr : 'Left to Right (LTR)', // MISSING88 langDirRtl : 'Right to Left (RTL)', // MISSING89 langCode : 'Language Code', // MISSING90 longDescr : 'Long Description URL', // MISSING91 cssClass : 'Stylesheet Classes', // MISSING92 advisoryTitle : 'Advisory Title', // MISSING93 cssStyle : 'Style', // MISSING94 ok : 'OK', // MISSING95 cancel : 'Cancel', // MISSING96 close : 'Close', // MISSING97 preview : 'Preview', // MISSING98 generalTab : 'General', // MISSING99 advancedTab : 'Advanced', // MISSING100 validateNumberFailed : 'This value is not a number.', // MISSING101 confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING102 confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING103 options : 'Options', // MISSING104 target : 'Target', // MISSING105 targetNew : 'New Window (_blank)', // MISSING106 targetTop : 'Topmost Window (_top)', // MISSING107 targetSelf : 'Same Window (_self)', // MISSING108 targetParent : 'Parent Window (_parent)', // MISSING109 langDirLTR : 'Left to Right (LTR)', // MISSING110 langDirRTL : 'Right to Left (RTL)', // MISSING111 styles : 'Style', // MISSING112 cssClasses : 'Stylesheet Classes', // MISSING113 width : 'Width', // MISSING114 height : 'Height', // MISSING115 align : 'Alignment', // MISSING116 alignLeft : 'Left', // MISSING117 alignRight : 'Right', // MISSING118 alignCenter : 'Center', // MISSING119 alignTop : 'Top', // MISSING120 alignMiddle : 'Middle', // MISSING121 alignBottom : 'Bottom', // MISSING122 invalidValue : 'Invalid value.', // MISSING123 invalidHeight : 'Height must be a number.', // MISSING124 invalidWidth : 'Width must be a number.', // MISSING125 invalidCssLength : 'Value specified for the "%1" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING126 invalidHtmlLength : 'Value specified for the "%1" field must be a positive number with or without a valid HTML measurement unit (px or %).', // MISSING127 invalidInlineStyle : 'Value specified for the inline style must consist of one or more tuples with the format of "name : value", separated by semi-colons.', // MISSING128 cssLengthTooltip : 'Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).', // MISSING129130 // Put the voice-only part of the label in the span.131 unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING132 },133134 contextmenu :135 {136 options : 'Context Menu Options' // MISSING137 },138139 // Special char dialog.140 specialChar :141 {142 toolbar : 'Insert Special Character', // MISSING143 title : 'Select Special Character', // MISSING144 options : 'Special Character Options' // MISSING145 },146147 // Link dialog.148 link :149 {150 toolbar : 'Link', // MISSING151 other : '<other>', // MISSING152 menu : 'Edit Link', // MISSING153 title : 'Link', // MISSING154 info : 'Link Info', // MISSING155 target : 'Target', // MISSING156 upload : 'Upload', // MISSING157 advanced : 'Advanced', // MISSING158 type : 'Link Type', // MISSING159 toUrl : 'URL', // MISSING160 toAnchor : 'Link to anchor in the text', // MISSING161 toEmail : 'E-mail', // MISSING162 targetFrame : '<frame>', // MISSING163 targetPopup : '<popup window>', // MISSING164 targetFrameName : 'Target Frame Name', // MISSING165 targetPopupName : 'Popup Window Name', // MISSING166 popupFeatures : 'Popup Window Features', // MISSING167 popupResizable : 'Resizable', // MISSING168 popupStatusBar : 'Status Bar', // MISSING169 popupLocationBar: 'Location Bar', // MISSING170 popupToolbar : 'Toolbar', // MISSING171 popupMenuBar : 'Menu Bar', // MISSING172 popupFullScreen : 'Full Screen (IE)', // MISSING173 popupScrollBars : 'Scroll Bars', // MISSING174 popupDependent : 'Dependent (Netscape)', // MISSING175 popupLeft : 'Left Position', // MISSING176 popupTop : 'Top Position', // MISSING177 id : 'Id', // MISSING178 langDir : 'Language Direction', // MISSING179 langDirLTR : 'Left to Right (LTR)', // MISSING180 langDirRTL : 'Right to Left (RTL)', // MISSING181 acccessKey : 'Access Key', // MISSING182 name : 'Name', // MISSING183 langCode : 'Language Code', // MISSING184 tabIndex : 'Tab Index', // MISSING185 advisoryTitle : 'Advisory Title', // MISSING186 advisoryContentType : 'Advisory Content Type', // MISSING187 cssClasses : 'Stylesheet Classes', // MISSING188 charset : 'Linked Resource Charset', // MISSING189 styles : 'Style', // MISSING190 rel : 'Relationship', // MISSING191 selectAnchor : 'Select an Anchor', // MISSING192 anchorName : 'By Anchor Name', // MISSING193 anchorId : 'By Element Id', // MISSING194 emailAddress : 'E-Mail Address', // MISSING195 emailSubject : 'Message Subject', // MISSING196 emailBody : 'Message Body', // MISSING197 noAnchors : '(No anchors available in the document)', // MISSING198 noUrl : 'Please type the link URL', // MISSING199 noEmail : 'Please type the e-mail address' // MISSING200 },201202 // Anchor dialog203 anchor :204 {205 toolbar : 'Anchor', // MISSING206 menu : 'Edit Anchor', // MISSING207 title : 'Anchor Properties', // MISSING208 name : 'Anchor Name', // MISSING209 errorName : 'Please type the anchor name', // MISSING210 remove : 'Remove Anchor' // MISSING211 },212213 // List style dialog214 list:215 {216 numberedTitle : 'Numbered List Properties', // MISSING217 bulletedTitle : 'Bulleted List Properties', // MISSING218 type : 'Type', // MISSING219 start : 'Start', // MISSING220 validateStartNumber :'List start number must be a whole number.', // MISSING221 circle : 'Circle', // MISSING222 disc : 'Disc', // MISSING223 square : 'Square', // MISSING224 none : 'None', // MISSING225 notset : '<not set>', // MISSING226 armenian : 'Armenian numbering', // MISSING227 georgian : 'Georgian numbering (an, ban, gan, etc.)', // MISSING228 lowerRoman : 'Lower Roman (i, ii, iii, iv, v, etc.)', // MISSING229 upperRoman : 'Upper Roman (I, II, III, IV, V, etc.)', // MISSING230 lowerAlpha : 'Lower Alpha (a, b, c, d, e, etc.)', // MISSING231 upperAlpha : 'Upper Alpha (A, B, C, D, E, etc.)', // MISSING232 lowerGreek : 'Lower Greek (alpha, beta, gamma, etc.)', // MISSING233 decimal : 'Decimal (1, 2, 3, etc.)', // MISSING234 decimalLeadingZero : 'Decimal leading zero (01, 02, 03, etc.)' // MISSING235 },236237 // Find And Replace Dialog238 findAndReplace :239 {240 title : 'Find and Replace', // MISSING241 find : 'Find', // MISSING242 replace : 'Replace', // MISSING243 findWhat : 'Find what:', // MISSING244 replaceWith : 'Replace with:', // MISSING245 notFoundMsg : 'The specified text was not found.', // MISSING246 findOptions : 'Find Options', // MISSING247 matchCase : 'Match case', // MISSING248 matchWord : 'Match whole word', // MISSING249 matchCyclic : 'Match cyclic', // MISSING250 replaceAll : 'Replace All', // MISSING251 replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING252 },253254 // Table Dialog255 table :256 {257 toolbar : 'Table', // MISSING258 title : 'Table Properties', // MISSING259 menu : 'Table Properties', // MISSING260 deleteTable : 'Delete Table', // MISSING261 rows : 'Rows', // MISSING262 columns : 'Columns', // MISSING263 border : 'Border size', // MISSING264 widthPx : 'pixels', // MISSING265 widthPc : 'percent', // MISSING266 widthUnit : 'width unit', // MISSING267 cellSpace : 'Cell spacing', // MISSING268 cellPad : 'Cell padding', // MISSING269 caption : 'Caption', // MISSING270 summary : 'Summary', // MISSING271 headers : 'Headers', // MISSING272 headersNone : 'None', // MISSING273 headersColumn : 'First column', // MISSING274 headersRow : 'First Row', // MISSING275 headersBoth : 'Both', // MISSING276 invalidRows : 'Number of rows must be a number greater than 0.', // MISSING277 invalidCols : 'Number of columns must be a number greater than 0.', // MISSING278 invalidBorder : 'Border size must be a number.', // MISSING279 invalidWidth : 'Table width must be a number.', // MISSING280 invalidHeight : 'Table height must be a number.', // MISSING281 invalidCellSpacing : 'Cell spacing must be a positive number.', // MISSING282 invalidCellPadding : 'Cell padding must be a positive number.', // MISSING283284 cell :285 {286 menu : 'Cell', // MISSING287 insertBefore : 'Insert Cell Before', // MISSING288 insertAfter : 'Insert Cell After', // MISSING289 deleteCell : 'Delete Cells', // MISSING290 merge : 'Merge Cells', // MISSING291 mergeRight : 'Merge Right', // MISSING292 mergeDown : 'Merge Down', // MISSING293 splitHorizontal : 'Split Cell Horizontally', // MISSING294 splitVertical : 'Split Cell Vertically', // MISSING295 title : 'Cell Properties', // MISSING296 cellType : 'Cell Type', // MISSING297 rowSpan : 'Rows Span', // MISSING298 colSpan : 'Columns Span', // MISSING299 wordWrap : 'Word Wrap', // MISSING300 hAlign : 'Horizontal Alignment', // MISSING301 vAlign : 'Vertical Alignment', // MISSING302 alignBaseline : 'Baseline', // MISSING303 bgColor : 'Background Color', // MISSING304 borderColor : 'Border Color', // MISSING305 data : 'Data', // MISSING306 header : 'Header', // MISSING307 yes : 'Yes', // MISSING308 no : 'No', // MISSING309 invalidWidth : 'Cell width must be a number.', // MISSING310 invalidHeight : 'Cell height must be a number.', // MISSING311 invalidRowSpan : 'Rows span must be a whole number.', // MISSING312 invalidColSpan : 'Columns span must be a whole number.', // MISSING313 chooseColor : 'Choose' // MISSING314 },315316 row :317 {318 menu : 'Row', // MISSING319 insertBefore : 'Insert Row Before', // MISSING320 insertAfter : 'Insert Row After', // MISSING321 deleteRow : 'Delete Rows' // MISSING322 },323324 column :325 {326 menu : 'Column', // MISSING327 insertBefore : 'Insert Column Before', // MISSING328 insertAfter : 'Insert Column After', // MISSING329 deleteColumn : 'Delete Columns' // MISSING330 }331 },332333 // Button Dialog.334 button :335 {336 title : 'Button Properties', // MISSING337 text : 'Text (Value)', // MISSING338 type : 'Type', // MISSING339 typeBtn : 'Button', // MISSING340 typeSbm : 'Submit', // MISSING341 typeRst : 'Reset' // MISSING342 },343344 // Checkbox and Radio Button Dialogs.345 checkboxAndRadio :346 {347 checkboxTitle : 'Checkbox Properties', // MISSING348 radioTitle : 'Radio Button Properties', // MISSING349 value : 'Value', // MISSING350 selected : 'Selected' // MISSING351 },352353 // Form Dialog.354 form :355 {356 title : 'Form Properties', // MISSING357 menu : 'Form Properties', // MISSING358 action : 'Action', // MISSING359 method : 'Method', // MISSING360 encoding : 'Encoding' // MISSING361 },362363 // Select Field Dialog.364 select :365 {366 title : 'Selection Field Properties', // MISSING367 selectInfo : 'Select Info', // MISSING368 opAvail : 'Available Options', // MISSING369 value : 'Value', // MISSING370 size : 'Size', // MISSING371 lines : 'lines', // MISSING372 chkMulti : 'Allow multiple selections', // MISSING373 opText : 'Text', // MISSING374 opValue : 'Value', // MISSING375 btnAdd : 'Add', // MISSING376 btnModify : 'Modify', // MISSING377 btnUp : 'Up', // MISSING378 btnDown : 'Down', // MISSING379 btnSetValue : 'Set as selected value', // MISSING380 btnDelete : 'Delete' // MISSING381 },382383 // Textarea Dialog.384 textarea :385 {386 title : 'Textarea Properties', // MISSING387 cols : 'Columns', // MISSING388 rows : 'Rows' // MISSING389 },390391 // Text Field Dialog.392 textfield :393 {394 title : 'Text Field Properties', // MISSING395 name : 'Name', // MISSING396 value : 'Value', // MISSING397 charWidth : 'Character Width', // MISSING398 maxChars : 'Maximum Characters', // MISSING399 type : 'Type', // MISSING400 typeText : 'Text', // MISSING401 typePass : 'Password' // MISSING402 },403404 // Hidden Field Dialog.405 hidden :406 {407 title : 'Hidden Field Properties', // MISSING408 name : 'Name', // MISSING409 value : 'Value' // MISSING410 },411412 // Image Dialog.413 image :414 {415 title : 'Image Properties', // MISSING416 titleButton : 'Image Button Properties', // MISSING417 menu : 'Image Properties', // MISSING418 infoTab : 'Image Info', // MISSING419 btnUpload : 'Send it to the Server', // MISSING420 upload : 'Upload', // MISSING421 alt : 'Alternative Text', // MISSING422 lockRatio : 'Lock Ratio', // MISSING423 resetSize : 'Reset Size', // MISSING424 border : 'Border', // MISSING425 hSpace : 'HSpace', // MISSING426 vSpace : 'VSpace', // MISSING427 alertUrl : 'Please type the image URL', // MISSING428 linkTab : 'Link', // MISSING429 button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING430 img2Button : 'Do you want to transform the selected image on a image button?', // MISSING431 urlMissing : 'Image source URL is missing.', // MISSING432 validateBorder : 'Border must be a whole number.', // MISSING433 validateHSpace : 'HSpace must be a whole number.', // MISSING434 validateVSpace : 'VSpace must be a whole number.' // MISSING435 },436437 // Flash Dialog438 flash :439 {440 properties : 'Flash Properties', // MISSING441 propertiesTab : 'Properties', // MISSING442 title : 'Flash Properties', // MISSING443 chkPlay : 'Auto Play', // MISSING444 chkLoop : 'Loop', // MISSING445 chkMenu : 'Enable Flash Menu', // MISSING446 chkFull : 'Allow Fullscreen', // MISSING447 scale : 'Scale', // MISSING448 scaleAll : 'Show all', // MISSING449 scaleNoBorder : 'No Border', // MISSING450 scaleFit : 'Exact Fit', // MISSING451 access : 'Script Access', // MISSING452 accessAlways : 'Always', // MISSING453 accessSameDomain: 'Same domain', // MISSING454 accessNever : 'Never', // MISSING455 alignAbsBottom : 'Abs Bottom', // MISSING456 alignAbsMiddle : 'Abs Middle', // MISSING457 alignBaseline : 'Baseline', // MISSING458 alignTextTop : 'Text Top', // MISSING459 quality : 'Quality', // MISSING460 qualityBest : 'Best', // MISSING461 qualityHigh : 'High', // MISSING462 qualityAutoHigh : 'Auto High', // MISSING463 qualityMedium : 'Medium', // MISSING464 qualityAutoLow : 'Auto Low', // MISSING465 qualityLow : 'Low', // MISSING466 windowModeWindow: 'Window', // MISSING467 windowModeOpaque: 'Opaque', // MISSING468 windowModeTransparent : 'Transparent', // MISSING469 windowMode : 'Window mode', // MISSING470 flashvars : 'Variables for Flash', // MISSING471 bgcolor : 'Background color', // MISSING472 hSpace : 'HSpace', // MISSING473 vSpace : 'VSpace', // MISSING474 validateSrc : 'URL must not be empty.', // MISSING475 validateHSpace : 'HSpace must be a number.', // MISSING476 validateVSpace : 'VSpace must be a number.' // MISSING477 },478479 // Speller Pages Dialog480 spellCheck :481 {482 toolbar : 'Check Spelling', // MISSING483 title : 'Spell Check', // MISSING484 notAvailable : 'Sorry, but service is unavailable now.', // MISSING485 errorLoading : 'Error loading application service host: %s.', // MISSING486 notInDic : 'Not in dictionary', // MISSING487 changeTo : 'Change to', // MISSING488 btnIgnore : 'Ignore', // MISSING489 btnIgnoreAll : 'Ignore All', // MISSING490 btnReplace : 'Replace', // MISSING491 btnReplaceAll : 'Replace All', // MISSING492 btnUndo : 'Undo', // MISSING493 noSuggestions : '- No suggestions -', // MISSING494 progress : 'Spell check in progress...', // MISSING495 noMispell : 'Spell check complete: No misspellings found', // MISSING496 noChanges : 'Spell check complete: No words changed', // MISSING497 oneChange : 'Spell check complete: One word changed', // MISSING498 manyChanges : 'Spell check complete: %1 words changed', // MISSING499 ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' // MISSING500 },501502 smiley :503 {504 toolbar : 'Smiley', // MISSING505 title : 'Insert a Smiley', // MISSING506 options : 'Smiley Options' // MISSING507 },508509 elementsPath :510 {511 eleLabel : 'Elements path', // MISSING512 eleTitle : '%1 element' // MISSING513 },514515 numberedlist : 'Insert/Remove Numbered List', // MISSING516 bulletedlist : 'Insert/Remove Bulleted List', // MISSING517 indent : 'Increase Indent', // MISSING518 outdent : 'Decrease Indent', // MISSING519520 justify :521 {522 left : 'Align Left', // MISSING523 center : 'Center', // MISSING524 right : 'Align Right', // MISSING525 block : 'Justify' // MISSING526 },527528 blockquote : 'Block Quote', // MISSING529530 clipboard :531 {532 title : 'Paste', // MISSING533 cutError : 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', // MISSING534 copyError : 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', // MISSING535 pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK', // MISSING536 securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.', // MISSING537 pasteArea : 'Paste Area' // MISSING538 },539540 pastefromword :541 {542 confirmCleanup : 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?', // MISSING543 toolbar : 'Paste from Word', // MISSING544 title : 'Paste from Word', // MISSING545 error : 'It was not possible to clean up the pasted data due to an internal error' // MISSING546 },547548 pasteText :549 {550 button : 'Paste as plain text', // MISSING551 title : 'Paste as Plain Text' // MISSING552 },553554 templates :555 {556 button : 'Templates', // MISSING557 title : 'Content Templates', // MISSING558 options : 'Template Options', // MISSING559 insertOption : 'Replace actual contents', // MISSING560 selectPromptMsg : 'Please select the template to open in the editor', // MISSING561 emptyListMsg : '(No templates defined)' // MISSING562 },563564 showBlocks : 'Show Blocks', // MISSING565566 stylesCombo :567 {568 label : 'Styles', // MISSING569 panelTitle : 'Formatting Styles', // MISSING570 panelTitle1 : 'Block Styles', // MISSING571 panelTitle2 : 'Inline Styles', // MISSING572 panelTitle3 : 'Object Styles' // MISSING573 },574575 format :576 {577 label : 'Format', // MISSING578 panelTitle : 'Paragraph Format', // MISSING579580 tag_p : 'Normal', // MISSING581 tag_pre : 'Formatted', // MISSING582 tag_address : 'Address', // MISSING583 tag_h1 : 'Heading 1', // MISSING584 tag_h2 : 'Heading 2', // MISSING585 tag_h3 : 'Heading 3', // MISSING586 tag_h4 : 'Heading 4', // MISSING587 tag_h5 : 'Heading 5', // MISSING588 tag_h6 : 'Heading 6', // MISSING589 tag_div : 'Normal (DIV)' // MISSING590 },591592 div :593 {594 title : 'Create Div Container', // MISSING595 toolbar : 'Create Div Container', // MISSING596 cssClassInputLabel : 'Stylesheet Classes', // MISSING597 styleSelectLabel : 'Style', // MISSING598 IdInputLabel : 'Id', // MISSING599 languageCodeInputLabel : ' Language Code', // MISSING600 inlineStyleInputLabel : 'Inline Style', // MISSING601 advisoryTitleInputLabel : 'Advisory Title', // MISSING602 langDirLabel : 'Language Direction', // MISSING603 langDirLTRLabel : 'Left to Right (LTR)', // MISSING604 langDirRTLLabel : 'Right to Left (RTL)', // MISSING605 edit : 'Edit Div', // MISSING606 remove : 'Remove Div' // MISSING607 },608609 iframe :610 {611 title : 'IFrame Properties', // MISSING612 toolbar : 'IFrame', // MISSING613 noUrl : 'Please type the iframe URL', // MISSING614 scrolling : 'Enable scrollbars', // MISSING615 border : 'Show frame border' // MISSING616 },617618 font :619 {620 label : 'Font', // MISSING621 voiceLabel : 'Font', // MISSING622 panelTitle : 'Font Name' // MISSING623 },624625 fontSize :626 {627 label : 'Size', // MISSING628 voiceLabel : 'Font Size', // MISSING629 panelTitle : 'Font Size' // MISSING630 },631632 colorButton :633 {634 textColorTitle : 'Text Color', // MISSING635 bgColorTitle : 'Background Color', // MISSING636 panelTitle : 'Colors', // MISSING637 auto : 'Automatic', // MISSING638 more : 'More Colors...' // MISSING639 },640641 colors :642 {643 '000' : 'Black', // MISSING644 '800000' : 'Maroon', // MISSING645 '8B4513' : 'Saddle Brown', // MISSING646 '2F4F4F' : 'Dark Slate Gray', // MISSING647 '008080' : 'Teal', // MISSING648 '000080' : 'Navy', // MISSING649 '4B0082' : 'Indigo', // MISSING650 '696969' : 'Dark Gray', // MISSING651 'B22222' : 'Fire Brick', // MISSING652 'A52A2A' : 'Brown', // MISSING653 'DAA520' : 'Golden Rod', // MISSING654 '006400' : 'Dark Green', // MISSING655 '40E0D0' : 'Turquoise', // MISSING656 '0000CD' : 'Medium Blue', // MISSING657 '800080' : 'Purple', // MISSING658 '808080' : 'Gray', // MISSING659 'F00' : 'Red', // MISSING660 'FF8C00' : 'Dark Orange', // MISSING661 'FFD700' : 'Gold', // MISSING662 '008000' : 'Green', // MISSING663 '0FF' : 'Cyan', // MISSING664 '00F' : 'Blue', // MISSING665 'EE82EE' : 'Violet', // MISSING666 'A9A9A9' : 'Dim Gray', // MISSING667 'FFA07A' : 'Light Salmon', // MISSING668 'FFA500' : 'Orange', // MISSING669 'FFFF00' : 'Yellow', // MISSING670 '00FF00' : 'Lime', // MISSING671 'AFEEEE' : 'Pale Turquoise', // MISSING672 'ADD8E6' : 'Light Blue', // MISSING673 'DDA0DD' : 'Plum', // MISSING674 'D3D3D3' : 'Light Grey', // MISSING675 'FFF0F5' : 'Lavender Blush', // MISSING676 'FAEBD7' : 'Antique White', // MISSING677 'FFFFE0' : 'Light Yellow', // MISSING678 'F0FFF0' : 'Honeydew', // MISSING679 'F0FFFF' : 'Azure', // MISSING680 'F0F8FF' : 'Alice Blue', // MISSING681 'E6E6FA' : 'Lavender', // MISSING682 'FFF' : 'White' // MISSING683 },684685 scayt :686 {687 title : 'Spell Check As You Type', // MISSING688 opera_title : 'Not supported by Opera', // MISSING689 enable : 'Enable SCAYT', // MISSING690 disable : 'Disable SCAYT', // MISSING691 about : 'About SCAYT', // MISSING692 toggle : 'Toggle SCAYT', // MISSING693 options : 'Options', // MISSING694 langs : 'Languages', // MISSING695 moreSuggestions : 'More suggestions', // MISSING696 ignore : 'Ignore', // MISSING697 ignoreAll : 'Ignore All', // MISSING698 addWord : 'Add Word', // MISSING699 emptyDic : 'Dictionary name should not be empty.', // MISSING700 noSuggestions : 'No suggestions', // MISSING701 optionsTab : 'Options', // MISSING702 allCaps : 'Ignore All-Caps Words', // MISSING703 ignoreDomainNames : 'Ignore Domain Names', // MISSING704 mixedCase : 'Ignore Words with Mixed Case', // MISSING705 mixedWithDigits : 'Ignore Words with Numbers', // MISSING706707 languagesTab : 'Languages', // MISSING708709 dictionariesTab : 'Dictionaries', // MISSING710 dic_field_name : 'Dictionary name', // MISSING711 dic_create : 'Create', // MISSING712 dic_restore : 'Restore', // MISSING713 dic_delete : 'Delete', // MISSING714 dic_rename : 'Rename', // MISSING715 dic_info : 'Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.', // MISSING716717 aboutTab : 'About' // MISSING718 },719720 about :721 {722 title : 'About CKEditor', // MISSING723 dlgTitle : 'About CKEditor', // MISSING724 help : 'Check $1 for help.', // MISSING725 userGuide : 'CKEditor User\'s Guide', // MISSING726 moreInfo : 'For licensing information please visit our web site:', // MISSING727 copy : 'Copyright &copy; $1. All rights reserved.' // MISSING728 },729730 maximize : 'Maximize', // MISSING731 minimize : 'Minimize', // MISSING732733 fakeobjects :734 {735 anchor : 'Anchor', // MISSING736 flash : 'Flash Animation', // MISSING737 iframe : 'IFrame', // MISSING738 hiddenfield : 'Hidden Field', // MISSING739 unknown : 'Unknown Object' // MISSING740 },741742 resize : 'Drag to resize', // MISSING743744 colordialog :745 {746 title : 'Select color', // MISSING747 options : 'Color Options', // MISSING748 highlight : 'Highlight', // MISSING749 selected : 'Selected Color', // MISSING750 clear : 'Clear' // MISSING751 },752753 toolbarCollapse : 'Collapse Toolbar', // MISSING754 toolbarExpand : 'Expand Toolbar', // MISSING755756 toolbarGroups :757 {758 document : 'Document', // MISSING759 clipboard : 'Clipboard/Undo', // MISSING760 editing : 'Editing', // MISSING761 forms : 'Forms', // MISSING762 basicstyles : 'Basic Styles', // MISSING763 paragraph : 'Paragraph', // MISSING764 links : 'Links', // MISSING765 insert : 'Insert', // MISSING766 styles : 'Styles', // MISSING767 colors : 'Colors', // MISSING768 tools : 'Tools' // MISSING769 },770771 bidi :772 {773 ltr : 'Text direction from left to right', // MISSING774 rtl : 'Text direction from right to left' // MISSING775 },776777 docprops :778 {779 label : 'Document Properties', // MISSING780 title : 'Document Properties', // MISSING781 design : 'Design', // MISSING782 meta : 'Meta Tags', // MISSING783 chooseColor : 'Choose', // MISSING784 other : 'Other...', // MISSING785 docTitle : 'Page Title', // MISSING786 charset : 'Character Set Encoding', // MISSING787 charsetOther : 'Other Character Set Encoding', // MISSING788 charsetASCII : 'ASCII', // MISSING789 charsetCE : 'Central European', // MISSING790 charsetCT : 'Chinese Traditional (Big5)', // MISSING791 charsetCR : 'Cyrillic', // MISSING792 charsetGR : 'Greek', // MISSING793 charsetJP : 'Japanese', // MISSING794 charsetKR : 'Korean', // MISSING795 charsetTR : 'Turkish', // MISSING796 charsetUN : 'Unicode (UTF-8)', // MISSING797 charsetWE : 'Western European', // MISSING798 docType : 'Document Type Heading', // MISSING799 docTypeOther : 'Other Document Type Heading', // MISSING800 xhtmlDec : 'Include XHTML Declarations', // MISSING801 bgColor : 'Background Color', // MISSING802 bgImage : 'Background Image URL', // MISSING803 bgFixed : 'Non-scrolling (Fixed) Background', // MISSING804 txtColor : 'Text Color', // MISSING805 margin : 'Page Margins', // MISSING806 marginTop : 'Top', // MISSING807 marginLeft : 'Left', // MISSING808 marginRight : 'Right', // MISSING809 marginBottom : 'Bottom', // MISSING810 metaKeywords : 'Document Indexing Keywords (comma separated)', // MISSING811 metaDescription : 'Document Description', // MISSING812 metaAuthor : 'Author', // MISSING813 metaCopyright : 'Copyright', // MISSING814 previewHtml : '<p>This is some <strong>sample text</strong>. You are using <a href="javascript:void(0)">CKEditor</a>.</p>' // MISSING815 } ...

Full Screen

Full Screen

schema.py

Source:schema.py Github

copy

Full Screen

1from ckan.lib.navl.validators import (ignore_missing,2 keep_extras,3 not_empty,4 empty,5 ignore,6 if_empty_same_as,7 not_missing,8 ignore_empty9 )10from ckan.logic.validators import (package_id_not_changed,11 package_id_exists,12 package_id_or_name_exists,13 extras_unicode_convert,14 name_validator,15 package_name_validator,16 package_version_validator,17 group_name_validator,18 tag_length_validator,19 tag_name_validator,20 tag_string_convert,21 duplicate_extras_key,22 ignore_not_package_admin,23 ignore_not_group_admin,24 ignore_not_sysadmin,25 no_http,26 tag_not_uppercase,27 user_name_validator,28 user_password_validator,29 user_both_passwords_entered,30 user_passwords_match,31 user_password_not_empty,32 isodate,33 int_validator,34 natural_number_validator,35 is_positive_integer,36 boolean_validator,37 user_about_validator,38 vocabulary_name_validator,39 vocabulary_id_not_changed,40 vocabulary_id_exists,41 user_id_exists,42 user_id_or_name_exists,43 object_id_validator,44 activity_type_exists,45 resource_id_exists,46 tag_not_in_vocabulary,47 group_id_exists,48 owner_org_validator,49 user_name_exists,50 role_exists,51 url_validator,52 datasets_with_no_organization_cannot_be_private,53 list_of_strings,54 no_loops_in_hierarchy,55 )56from ckan.logic.converters import (convert_user_name_or_id_to_id,57 convert_package_name_or_id_to_id,58 convert_group_name_or_id_to_id,59 convert_to_json_if_string,60 remove_whitespace,61 )62from formencode.validators import OneOf63import ckan.model64import ckan.lib.maintain as maintain65def default_resource_schema():66 schema = {67 'id': [ignore_empty, unicode],68 'revision_id': [ignore_missing, unicode],69 'resource_group_id': [ignore],70 'package_id': [ignore],71 'url': [not_empty, unicode, remove_whitespace],72 'description': [ignore_missing, unicode],73 'format': [ignore_missing, unicode],74 'hash': [ignore_missing, unicode],75 'state': [ignore],76 'position': [ignore],77 'revision_timestamp': [ignore],78 'name': [ignore_missing, unicode],79 'resource_type': [ignore_missing, unicode],80 'url_type': [ignore_missing, unicode],81 'mimetype': [ignore_missing, unicode],82 'mimetype_inner': [ignore_missing, unicode],83 'webstore_url': [ignore_missing, unicode],84 'cache_url': [ignore_missing, unicode],85 'size': [ignore_missing, int_validator],86 'created': [ignore_missing, isodate],87 'last_modified': [ignore_missing, isodate],88 'cache_last_updated': [ignore_missing, isodate],89 'webstore_last_updated': [ignore_missing, isodate],90 'tracking_summary': [ignore_missing],91 'datastore_active': [ignore],92 '__extras': [ignore_missing, extras_unicode_convert, keep_extras],93 }94 return schema95def default_update_resource_schema():96 schema = default_resource_schema()97 return schema98def default_tags_schema():99 schema = {100 'name': [not_missing,101 not_empty,102 unicode,103 tag_length_validator,104 tag_name_validator,105 ],106 'vocabulary_id': [ignore_missing, unicode, vocabulary_id_exists],107 'revision_timestamp': [ignore],108 'state': [ignore],109 'display_name': [ignore],110 }111 return schema112def default_create_tag_schema():113 schema = default_tags_schema()114 # When creating a tag via the tag_create() logic action function, a115 # vocabulary_id _must_ be given (you cannot create free tags via this116 # function).117 schema['vocabulary_id'] = [not_missing, not_empty, unicode,118 vocabulary_id_exists, tag_not_in_vocabulary]119 # You're not allowed to specify your own ID when creating a tag.120 schema['id'] = [empty]121 return schema122def default_create_package_schema():123 schema = {124 '__before': [duplicate_extras_key, ignore],125 'id': [empty],126 'revision_id': [ignore],127 'name': [not_empty, unicode, name_validator, package_name_validator],128 'title': [if_empty_same_as("name"), unicode],129 'author': [ignore_missing, unicode],130 'author_email': [ignore_missing, unicode],131 'maintainer': [ignore_missing, unicode],132 'maintainer_email': [ignore_missing, unicode],133 'license_id': [ignore_missing, unicode],134 'notes': [ignore_missing, unicode],135 'url': [ignore_missing, unicode],#, URL(add_http=False)],136 'version': [ignore_missing, unicode, package_version_validator],137 'state': [ignore_not_package_admin, ignore_missing],138 'type': [ignore_missing, unicode],139 'owner_org': [owner_org_validator, unicode],140 'log_message': [ignore_missing, unicode, no_http],141 'private': [ignore_missing, boolean_validator,142 datasets_with_no_organization_cannot_be_private],143 '__extras': [ignore],144 '__junk': [empty],145 'resources': default_resource_schema(),146 'tags': default_tags_schema(),147 'tag_string': [ignore_missing, tag_string_convert],148 'extras': default_extras_schema(),149 'save': [ignore],150 'return_to': [ignore],151 'relationships_as_object': default_relationship_schema(),152 'relationships_as_subject': default_relationship_schema(),153 'groups': {154 'id': [ignore_missing, unicode],155 'name': [ignore_missing, unicode],156 'title': [ignore_missing, unicode],157 '__extras': [ignore],158 }159 }160 return schema161def default_update_package_schema():162 schema = default_create_package_schema()163 # Users can (optionally) supply the package id when updating a package, but164 # only to identify the package to be updated, they cannot change the id.165 schema['id'] = [ignore_missing, package_id_not_changed]166 # Supplying the package name when updating a package is optional (you can167 # supply the id to identify the package instead).168 schema['name'] = [ignore_missing, name_validator, package_name_validator,169 unicode]170 # Supplying the package title when updating a package is optional, if it's171 # not supplied the title will not be changed.172 schema['title'] = [ignore_missing, unicode]173 schema['owner_org'] = [ignore_missing, owner_org_validator, unicode]174 return schema175def default_show_package_schema():176 schema = default_create_package_schema()177 # Don't strip ids from package dicts when validating them.178 schema['id'] = []179 schema.update({180 'tags': {'__extras': [ckan.lib.navl.validators.keep_extras]}})181 # Add several keys to the 'resources' subschema so they don't get stripped182 # from the resource dicts by validation.183 schema['resources'].update({184 'created': [ckan.lib.navl.validators.ignore_missing],185 'position': [not_empty],186 'last_modified': [ckan.lib.navl.validators.ignore_missing],187 'cache_last_updated': [ckan.lib.navl.validators.ignore_missing],188 'webstore_last_updated': [ckan.lib.navl.validators.ignore_missing],189 'revision_timestamp': [],190 'resource_group_id': [],191 'cache_last_updated': [],192 'webstore_last_updated': [],193 'size': [],194 'state': [],195 'last_modified': [],196 'mimetype': [],197 'cache_url': [],198 'name': [],199 'webstore_url': [],200 'mimetype_inner': [],201 'resource_type': [],202 'url_type': [],203 })204 schema.update({205 'state': [ckan.lib.navl.validators.ignore_missing],206 'isopen': [ignore_missing],207 'license_url': [ignore_missing],208 })209 schema['groups'].update({210 'description': [ignore_missing],211 'display_name': [ignore_missing],212 'image_display_url': [ignore_missing],213 })214 # Remove validators for several keys from the schema so validation doesn't215 # strip the keys from the package dicts if the values are 'missing' (i.e.216 # None).217 schema['author'] = []218 schema['author_email'] = []219 schema['maintainer'] = []220 schema['maintainer_email'] = []221 schema['license_id'] = []222 schema['notes'] = []223 schema['url'] = []224 schema['version'] = []225 # Add several keys that are missing from default_create_package_schema(), so226 # validation doesn't strip the keys from the package dicts.227 schema['metadata_created'] = []228 schema['metadata_modified'] = []229 schema['creator_user_id'] = []230 schema['num_resources'] = []231 schema['num_tags'] = []232 schema['organization'] = []233 schema['owner_org'] = []234 schema['private'] = []235 schema['revision_id'] = []236 schema['revision_timestamp'] = []237 schema['tracking_summary'] = []238 schema['license_title'] = []239 return schema240def default_group_schema():241 schema = {242 'id': [ignore_missing, unicode],243 'revision_id': [ignore],244 'name': [not_empty, unicode, name_validator, group_name_validator],245 'title': [ignore_missing, unicode],246 'description': [ignore_missing, unicode],247 'image_url': [ignore_missing, unicode],248 'image_display_url': [ignore_missing, unicode],249 'type': [ignore_missing, unicode],250 'state': [ignore_not_group_admin, ignore_missing],251 'created': [ignore],252 'is_organization': [ignore_missing],253 'approval_status': [ignore_missing, unicode],254 'extras': default_extras_schema(),255 '__extras': [ignore],256 '__junk': [ignore],257 'packages': {258 "id": [not_empty, unicode, package_id_or_name_exists],259 "title":[ignore_missing, unicode],260 "name":[ignore_missing, unicode],261 "__extras": [ignore]262 },263 'users': {264 "name": [not_empty, unicode],265 "capacity": [ignore_missing],266 "__extras": [ignore]267 },268 'groups': {269 "name": [not_empty, no_loops_in_hierarchy, unicode],270 "capacity": [ignore_missing],271 "__extras": [ignore]272 }273 }274 return schema275def group_form_schema():276 schema = default_group_schema()277 #schema['extras_validation'] = [duplicate_extras_key, ignore]278 schema['packages'] = {279 "name": [not_empty, unicode],280 "title": [ignore_missing],281 "__extras": [ignore]282 }283 schema['users'] = {284 "name": [not_empty, unicode],285 "capacity": [ignore_missing],286 "__extras": [ignore]287 }288 schema['display_name'] = [ignore_missing]289 return schema290def default_update_group_schema():291 schema = default_group_schema()292 schema["name"] = [ignore_missing, group_name_validator, unicode]293 return schema294def default_related_schema():295 schema = {296 'id': [ignore_missing, unicode],297 'title': [not_empty, unicode],298 'description': [ignore_missing, unicode],299 'type': [not_empty, unicode],300 'image_url': [ignore_missing, unicode, url_validator],301 'url': [ignore_missing, unicode, url_validator],302 'owner_id': [not_empty, unicode],303 'created': [ignore],304 'featured': [ignore_missing, int],305 }306 return schema307def default_update_related_schema():308 schema = default_related_schema()309 schema['id'] = [not_empty, unicode]310 schema['title'] = [ignore_missing, unicode]311 schema['type'] = [ignore_missing, unicode]312 schema['owner_id'] = [ignore_missing, unicode]313 return schema314def default_extras_schema():315 schema = {316 'id': [ignore],317 'key': [not_empty, unicode],318 'value': [not_missing],319 'state': [ignore],320 'deleted': [ignore_missing],321 'revision_timestamp': [ignore],322 '__extras': [ignore],323 }324 return schema325def default_relationship_schema():326 schema = {327 'id': [ignore_missing, unicode],328 'subject': [ignore_missing, unicode],329 'object': [ignore_missing, unicode],330 'type': [not_empty, OneOf(ckan.model.PackageRelationship.get_all_types())],331 'comment': [ignore_missing, unicode],332 'state': [ignore],333 }334 return schema335def default_create_relationship_schema():336 schema = default_relationship_schema()337 schema['id'] = [empty]338 schema['subject'] = [not_empty, unicode, package_id_or_name_exists]339 schema['object'] = [not_empty, unicode, package_id_or_name_exists]340 return schema341def default_update_relationship_schema():342 schema = default_relationship_schema()343 schema['id'] = [ignore_missing, package_id_not_changed]344 # Todo: would like to check subject, object & type haven't changed, but345 # no way to do this in schema346 schema['subject'] = [ignore_missing]347 schema['object'] = [ignore_missing]348 schema['type'] = [ignore_missing]349 return schema350def default_user_schema():351 schema = {352 'id': [ignore_missing, unicode],353 'name': [not_empty, name_validator, user_name_validator, unicode],354 'fullname': [ignore_missing, unicode],355 'password': [user_password_validator, user_password_not_empty, ignore_missing, unicode],356 'email': [not_empty, unicode],357 'about': [ignore_missing, user_about_validator, unicode],358 'created': [ignore],359 'openid': [ignore_missing],360 'sysadmin': [ignore_missing, ignore_not_sysadmin],361 'apikey': [ignore],362 'reset_key': [ignore],363 'activity_streams_email_notifications': [ignore_missing],364 'state': [ignore_missing],365 }366 return schema367def user_new_form_schema():368 schema = default_user_schema()369 schema['password1'] = [unicode,user_both_passwords_entered,user_password_validator,user_passwords_match]370 schema['password2'] = [unicode]371 return schema372def user_edit_form_schema():373 schema = default_user_schema()374 schema['password'] = [ignore_missing]375 schema['password1'] = [ignore_missing,unicode,user_password_validator,user_passwords_match]376 schema['password2'] = [ignore_missing,unicode]377 return schema378def default_update_user_schema():379 schema = default_user_schema()380 schema['name'] = [ignore_missing, name_validator, user_name_validator, unicode]381 schema['password'] = [user_password_validator,ignore_missing, unicode]382 return schema383def default_user_invite_schema():384 schema = {385 'email': [not_empty, unicode],386 'group_id': [not_empty],387 'role': [not_empty],388 }389 return schema390def default_task_status_schema():391 schema = {392 'id': [ignore],393 'entity_id': [not_empty, unicode],394 'entity_type': [not_empty, unicode],395 'task_type': [not_empty, unicode],396 'key': [not_empty, unicode],397 'value': [ignore_missing],398 'state': [ignore_missing],399 'last_updated': [ignore_missing],400 'error': [ignore_missing]401 }402 return schema403def default_vocabulary_schema():404 schema = {405 'id': [ignore_missing, unicode, vocabulary_id_exists],406 'name': [not_empty, unicode, vocabulary_name_validator],407 'tags': default_tags_schema(),408 }409 return schema410def default_create_vocabulary_schema():411 schema = default_vocabulary_schema()412 schema['id'] = [empty]413 return schema414def default_update_vocabulary_schema():415 schema = default_vocabulary_schema()416 schema['id'] = [ignore_missing, vocabulary_id_not_changed]417 schema['name'] = [ignore_missing, vocabulary_name_validator]418 return schema419def default_create_activity_schema():420 schema = {421 'id': [ignore],422 'timestamp': [ignore],423 'user_id': [not_missing, not_empty, unicode,424 convert_user_name_or_id_to_id],425 'object_id': [not_missing, not_empty, unicode, object_id_validator],426 # We don't bother to validate revision ID, since it's always created427 # internally by the activity_create() logic action function.428 'revision_id': [],429 'activity_type': [not_missing, not_empty, unicode,430 activity_type_exists],431 'data': [ignore_empty, ignore_missing],432 }433 return schema434def default_follow_user_schema():435 schema = {'id': [not_missing, not_empty, unicode,436 convert_user_name_or_id_to_id]}437 return schema438def default_follow_dataset_schema():439 schema = {'id': [not_missing, not_empty, unicode,440 convert_package_name_or_id_to_id]}441 return schema442def member_schema():443 schema = {444 'id': [group_id_exists, unicode],445 'username': [user_name_exists, unicode],446 'role': [role_exists, unicode],447 }448 return schema449def default_follow_group_schema():450 schema = {'id': [not_missing, not_empty, unicode,451 convert_group_name_or_id_to_id]}452 return schema453def default_package_list_schema():454 schema = {455 'limit': [ignore_missing, natural_number_validator],456 'offset': [ignore_missing, natural_number_validator],457 'page': [ignore_missing, is_positive_integer]458 }459 return schema460def default_pagination_schema():461 schema = {462 'limit': [ignore_missing, natural_number_validator],463 'offset': [ignore_missing, natural_number_validator]464 }465 return schema466def default_dashboard_activity_list_schema():467 schema = default_pagination_schema()468 schema['id'] = [unicode]469 return schema470def default_activity_list_schema():471 schema = default_pagination_schema()472 schema['id'] = [not_missing, unicode]473 return schema474def default_autocomplete_schema():475 schema = {476 'q': [not_missing, unicode],477 'limit': [ignore_missing, natural_number_validator]478 }479 return schema480def default_package_search_schema():481 schema = {482 'q': [ignore_missing, unicode],483 'fq': [ignore_missing, unicode],484 'rows': [ignore_missing, natural_number_validator],485 'sort': [ignore_missing, unicode],486 'start': [ignore_missing, natural_number_validator],487 'qf': [ignore_missing, unicode],488 'facet': [ignore_missing, unicode],489 'facet.mincount': [ignore_missing, natural_number_validator],490 'facet.limit': [ignore_missing, int_validator],491 'facet.field': [ignore_missing, convert_to_json_if_string,492 list_of_strings],493 'extras': [ignore_missing] # Not used by Solr, but useful for extensions494 }495 return schema496def default_resource_search_schema():497 schema = {498 'query': [ignore_missing], # string or list of strings499 'fields': [ignore_missing], # dict of fields500 'order_by': [ignore_missing, unicode],501 'offset': [ignore_missing, natural_number_validator],502 'limit': [ignore_missing, natural_number_validator]503 }504 return schema505def create_schema_for_required_keys(keys):506 ''' helper function that creates a schema definition where507 each key from keys is validated against ``not_missing``.508 '''509 schema = dict([(x, [not_missing]) for x in keys])...

Full Screen

Full Screen

InputtingNans.py

Source:InputtingNans.py Github

copy

Full Screen

1import glob2import pandas as pd3from sklearn.linear_model import LinearRegression4import numpy as np5cols_ethnicity_full = ['Ethnicity.White', 'Ethnicity.British', 'Ethnicity.Irish',6 'Ethnicity.White_Other', 'Ethnicity.Mixed',7 'Ethnicity.White_and_Black_Caribbean',8 'Ethnicity.White_and_Black_African', 'Ethnicity.White_and_Asian',9 'Ethnicity.Mixed_Other', 'Ethnicity.Asian', 'Ethnicity.Indian',10 'Ethnicity.Pakistani', 'Ethnicity.Bangladeshi', 'Ethnicity.Asian_Other',11 'Ethnicity.Black', 'Ethnicity.Caribbean', 'Ethnicity.African',12 'Ethnicity.Black_Other', 'Ethnicity.Chinese',13 'Ethnicity.Other_ethnicity', 'Ethnicity.Do_not_know',14 'Ethnicity.Prefer_not_to_answer', 'Ethnicity.NA', 'Ethnicity.Other', 'Unnamed: 0']15def load_raw_data(path_raw,16 path_output,17 path_ethnicities = '/n/groups/patel/Alan/Aging/Medical_Images/data/data-features_instances.csv'):18 final_df = pd.read_csv(path_raw).set_index('id')19 df_ethnicity = pd.read_csv(path_ethnicities).set_index('eid')20 cols_ethnicity = ['Ethnicity.White', 'Ethnicity.Mixed', 'Ethnicity.Black', 'Ethnicity.Asian', 'Ethnicity.Other', 'Ethnicity.Chinese']21 df_ethnicity = pd.DataFrame(df_ethnicity[cols_ethnicity].idxmax(axis = 1))22 df_ethnicity.columns = ['Ethnicity']23 final_df = final_df.reset_index().merge(df_ethnicity, on ='eid').set_index('id')24 features = [ elem for elem in final_df.columns if elem not in cols_ethnicity_full + ['Sex', 'Age when attended assessment centre', 'Ethnicity', 'eid']]25 return features, final_df26def compute_linear_coefficients_for_each_col(final_df, col):27 age_sex_ethnicity_features = ['Sex', 'Age when attended assessment centre', 'Ethnicity']28 coefs_col = pd.DataFrame(columns= [col, 'Sex', 'Ethnicity'])29 column = final_df[[col, 'eid'] + age_sex_ethnicity_features]30 #distinct_eid_col = column.eid.drop_duplicates().values31 group_eid = column.groupby('eid').count()[col]32 distinct_eid_col = group_eid[group_eid > 1].index33 is_longitudinal = (column.groupby('eid').count()[col] > 1).any()34 if not is_longitudinal:35 return None, column36 else :37 ## Create weights by sex and ethnicty38 for eid in distinct_eid_col:39 points = column[column.eid == eid].dropna()40 num_points = (~points[col].isna()).sum()41 if num_points == 1 or num_points == 0:42 continue43 else :44 if num_points == 2:45 point1 = points.iloc[0]46 point2 = points.iloc[1]47 if np.abs(point2['Age when attended assessment centre'] - point1['Age when attended assessment centre']) < 1e-8 :48 coef = 049 else :50 coef = (point2[col] - point1[col])/(point2['Age when attended assessment centre'] - point1['Age when attended assessment centre'])51 elif num_points > 2:52 y = points[col].values.reshape(-1, 1)53 x = points['Age when attended assessment centre'].values.reshape(-1, 1)54 lin = LinearRegression()55 lin.fit(x, y)56 coef = lin.coef_[0][0]57 else :58 raise ValueError('not the right number of points')59 coefs_col = coefs_col.append(pd.Series([float(coef), points['Sex'].mean(), points['Ethnicity'].min()], index=[col, 'Sex', 'Ethnicity'], name= eid))60 coefs_mean = coefs_col.groupby(['Sex', 'Ethnicity']).mean()61 if coefs_mean.shape[0] != 12:62 coefs_mean = coefs_col.groupby(['Sex']).mean()63 if coefs_mean.shape[0] != 2:64 coefs_mean = None65 return coefs_mean, column66def input_variables_in_column(col, column, coefs_mean):67 print("Inputing col : %s" % col)68 categorical = (column[col].max() == 1) and (column[col].min() == 0)69 all_ethnicity_available = (coefs_mean.shape[0] == 12)70 count = column.groupby('eid').count()71 distinct_eid_col = count.index[(count[col] > 0) & (count['Age when attended assessment centre'] > 1)]72 def recenter_between_0_1(value_):73 if value_ < 0:74 return 075 elif value_ > 1:76 return 177 else :78 return value_79 for eid in distinct_eid_col:80 points = column[column.eid == eid]81 ## inputting or not :82 if points[col].isna().any():83 ## count number of availaible points:84 num_avail = points.shape[0]85 num_avail_filled = len(points[col].dropna())86 if num_avail == 1 or num_avail_filled == 0:87 continue88 elif num_avail == 2:89 missing_point = points[points[col].isna()].iloc[0]90 valid_point = points[~points[col].isna()].iloc[0]91 sex = valid_point['Sex']92 age_missing = missing_point['Age when attended assessment centre']93 age_valid = valid_point['Age when attended assessment centre']94 valid_value = valid_point[col]95 if all_ethnicity_available:96 ethnicity = valid_point['Ethnicity']97 coef_ = coefs_mean.loc[sex, ethnicity].values98 else :99 coef_ = coefs_mean.loc[sex].values100 missing_value = valid_value + (age_missing - age_valid) * coef_101 if categorical:102 missing_value = recenter_between_0_1(missing_value)103 column.loc[missing_point.name, col] = missing_value104 elif num_avail == 3:105 if num_avail_filled == 2:106 missing_point = points[points[col].isna()].iloc[0]107 valid_point_1 = points[~points[col].isna()].iloc[0]108 valid_point_2 = points[~points[col].isna()].iloc[1]109 sex = missing_point['Sex']110 if all_ethnicity_available:111 ethnicity = missing_point['Ethnicity']112 coef_ = coefs_mean.loc[sex, ethnicity].values113 else :114 coef_ = coefs_mean.loc[sex].values115 age_missing = missing_point['Age when attended assessment centre']116 age_valid_1 = valid_point_1['Age when attended assessment centre']117 age_valid_2 = valid_point_2['Age when attended assessment centre']118 estimated_1 = valid_point_1[col] + (age_missing - age_valid_1) * coef_119 estimated_2 = valid_point_2[col] + (age_missing - age_valid_2) * coef_120 dist_1 = abs(age_valid_1 - age_missing)121 dist_2 = abs(age_valid_2 - age_missing)122 missing_value = (estimated_1/dist_1 + estimated_2/dist_2) / (1/dist_1 + 1/dist_2)123 if categorical:124 missing_value = recenter_between_0_1(missing_value)125 column.loc[missing_point.name, col] = missing_value126 else : # 2 missing points :127 missing_point_1 = points[points[col].isna()].iloc[0]128 missing_point_2 = points[points[col].isna()].iloc[1]129 valid_point = points[~points[col].isna()].iloc[0]130 sex = valid_point['Sex']131 if all_ethnicity_available:132 ethnicity = valid_point['Ethnicity']133 coef_ = coefs_mean.loc[sex, ethnicity].values134 else :135 coef_ = coefs_mean.loc[sex].values136 age_missing_1 = missing_point_1['Age when attended assessment centre']137 age_missing_2 = missing_point_2['Age when attended assessment centre']138 age_valid = valid_point['Age when attended assessment centre']139 valid_value = valid_point[col]140 missing_value_1 = valid_value + (age_missing_1 - age_valid) * coef_141 missing_value_2 = valid_value + (age_missing_2 - age_valid) * coef_142 if categorical:143 missing_value_1 = recenter_between_0_1(missing_value_1)144 missing_value_2 = recenter_between_0_1(missing_value_2)145 column.loc[missing_point_1.name, col] = missing_value_1146 column.loc[missing_point_2.name, col] = missing_value_2147 elif num_avail == 4:148 if num_avail_filled == 1:149 missing_point_1 = points[points[col].isna()].iloc[0]150 missing_point_2 = points[points[col].isna()].iloc[1]151 missing_point_3 = points[points[col].isna()].iloc[2]152 valid_point = points[~points[col].isna()].iloc[0]153 sex = valid_point['Sex']154 if all_ethnicity_available:155 ethnicity = valid_point['Ethnicity']156 coef_ = coefs_mean.loc[sex, ethnicity].values157 else :158 coef_ = coefs_mean.loc[sex].values159 age_missing_1 = missing_point_1['Age when attended assessment centre']160 age_missing_2 = missing_point_2['Age when attended assessment centre']161 age_missing_3 = missing_point_3['Age when attended assessment centre']162 age_valid = valid_point['Age when attended assessment centre']163 valid_value = valid_point[col]164 missing_value_1 = valid_value + (age_missing_1 - age_valid) * coef_165 missing_value_2 = valid_value + (age_missing_2 - age_valid) * coef_166 missing_value_3 = valid_value + (age_missing_3 - age_valid) * coef_167 if categorical :168 missing_value_1 = recenter_between_0_1(missing_value_1)169 missing_value_2 = recenter_between_0_1(missing_value_2)170 missing_value_3 = recenter_between_0_1(missing_value_3)171 column.loc[missing_point_1.name, col] = missing_value_1172 column.loc[missing_point_2.name, col] = missing_value_2173 column.loc[missing_point_3.name, col] = missing_value_3174 elif num_avail_filled == 2:175 missing_point_1 = points[points[col].isna()].iloc[0]176 missing_point_2 = points[points[col].isna()].iloc[1]177 valid_point_1 = points[~points[col].isna()].iloc[0]178 valid_point_2 = points[~points[col].isna()].iloc[1]179 sex = missing_point_1['Sex']180 if all_ethnicity_available:181 ethnicity = missing_point_1['Ethnicity']182 coef_ = coefs_mean.loc[sex, ethnicity].values183 else :184 coef_ = coefs_mean.loc[sex].values185 age_missing_1 = missing_point_1['Age when attended assessment centre']186 age_missing_2 = missing_point_2['Age when attended assessment centre']187 age_valid_1 = valid_point_1['Age when attended assessment centre']188 age_valid_2 = valid_point_2['Age when attended assessment centre']189 estimated_1_missing_1 = valid_point_1[col] + (age_missing_1 - age_valid_1) * coef_190 estimated_2_missing_1 = valid_point_2[col] + (age_missing_1 - age_valid_2) * coef_191 estimated_1_missing_2 = valid_point_1[col] + (age_missing_2 - age_valid_1) * coef_192 estimated_2_missing_2 = valid_point_2[col] + (age_missing_2 - age_valid_2) * coef_193 dist_1_missing_1 = abs(age_valid_1 - age_missing_1)194 dist_2_missing_1 = abs(age_valid_2 - age_missing_1)195 dist_1_missing_2 = abs(age_valid_1 - age_missing_2)196 dist_2_missing_2 = abs(age_valid_2 - age_missing_2)197 missing_value_1 = (estimated_1_missing_1/dist_1_missing_1 + estimated_2_missing_1/dist_2_missing_1) / (1/dist_1_missing_1 + 1/dist_2_missing_1)198 missing_value_2 = (estimated_1_missing_2/dist_1_missing_2 + estimated_2_missing_2/dist_2_missing_2) / (1/dist_1_missing_2 + 1/dist_2_missing_2)199 if categorical:200 missing_value_1 = recenter_between_0_1(missing_value_1)201 missing_value_2 = recenter_between_0_1(missing_value_2)202 column.loc[missing_point_1.name, col] = missing_value_1203 column.loc[missing_point_2.name, col] = missing_value_2204 elif num_avail_filled == 3:205 missing_point = points[points[col].isna()].iloc[0]206 valid_point_1 = points[~points[col].isna()].iloc[0]207 valid_point_2 = points[~points[col].isna()].iloc[1]208 valid_point_3 = points[~points[col].isna()].iloc[2]209 sex = missing_point['Sex']210 if all_ethnicity_available:211 ethnicity = missing_point['Ethnicity']212 coef_ = coefs_mean.loc[sex, ethnicity].values213 else :214 coef_ = coefs_mean.loc[sex].values215 age_missing = missing_point['Age when attended assessment centre']216 age_valid_1 = valid_point_1['Age when attended assessment centre']217 age_valid_2 = valid_point_2['Age when attended assessment centre']218 age_valid_3 = valid_point_3['Age when attended assessment centre']219 estimated_1 = valid_point_1[col] + (age_missing - age_valid_1) * coef_220 estimated_2 = valid_point_2[col] + (age_missing - age_valid_2) * coef_221 estimated_3 = valid_point_3[col] + (age_missing - age_valid_3) * coef_222 dist_1 = abs(age_valid_1 - age_missing)223 dist_2 = abs(age_valid_2 - age_missing)224 dist_3 = abs(age_valid_3 - age_missing)225 missing_value = (estimated_1/dist_1 + estimated_2/dist_2 + estimated_3/dist_3) / (1/dist_1 + 1/dist_2 + 1/dist_3)226 if categorical:227 missing_value = recenter_between_0_1(missing_value)228 column.loc[missing_point.name, col] = missing_value229 print("Done inputing col : %s " % col)230 return column.drop(columns = ['Ethnicity'])231def compute_coefs_and_input(final_df, col):232 #print("Compute mean of coef : %s" % col)233 coefs_mean, column = compute_linear_coefficients_for_each_col(final_df, col)234 if coefs_mean is not None:235 #print("Done Averaging, input missing data in %s" % col )236 column_modified = input_variables_in_column(col, column, coefs_mean)237 #print("Done inputting %s" % col)238 return column_modified239 else :240 #print('Non longitudinal feature or not enought samples in %s' % col)...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const logger = require('storybook-root-logger');2logger.error('error message');3logger.warn('warn message');4logger.info('info message');5logger.debug('debug message');6logger.trace('trace message');7module.exports = {8 stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],9 webpackFinal: async (config) => {10 config.module.rules.push({11 {12 options: {13 'babel-plugin-root-import',14 {15 },16 },17 },18 });19 return config;20 },21};22import { addDecorator } from '@storybook/react';23import { withA11y } from '@storybook/addon-a11y';24import { withRootLogger } from 'storybook-root-logger';25addDecorator(withA11y);26addDecorator(withRootLogger);27import { addons } from '@storybook/addons';28import { create } from '@storybook/theming/create';29addons.setConfig({30 theme: create({31 }),32});33module.exports = async ({ config, mode }) => {34 config.module.rules.push({35 {36 options: {37 'babel-plugin-root-import',38 {39 },40 },41 },42 });43 return config;44};45module.exports = {46 'babel-plugin-root-import',47 {48 },49};

Full Screen

Using AI Code Generation

copy

Full Screen

1import { withKnobs, text } from '@storybook/addon-knobs';2import { storiesOf } from '@storybook/react';3import React from 'react';4import { withInfo } from '@storybook/addon-info';5import MyComponent from '../src/MyComponent';6const stories = storiesOf('MyComponent', module);7stories.addDecorator(withKnobs);8stories.addDecorator(withInfo);9stories.add('default', () => (10 text={text('text', 'default text')}11));

Full Screen

Using AI Code Generation

copy

Full Screen

1require('storybook-root-require')();2const { configure } = require('enzyme');3const Adapter = require('enzyme-adapter-react-16');4configure({ adapter: new Adapter() });5import React from 'react';6import { shallow } from 'enzyme';7import MyComponent from 'components/MyComponent';8describe('MyComponent', () => {9 it('should render correctly', () => {10 const component = shallow(<MyComponent />);11 expect(component).toMatchSnapshot();12 });13});14import { combineReducers } from 'redux';15const combineReducerFiles = (context) => {16 const reducers = {};17 context.keys().forEach((key) => {18 const reducerName = key.replace('./', '').replace('.js', '');19 reducers[reducerName] = context(key).default;20 });21 return combineReducers(reducers);22};23export default combineReducerFiles;24import { combineReducers } from 'redux';25import combineReducerFiles from './

Full Screen

Using AI Code Generation

copy

Full Screen

1import { mount } from 'cypress-react-unit-test/dist/mount'2import React from 'react'3import { TodoApp } from './todo'4describe('TodoApp', () => {5 it('works', () => {6 mount(<TodoApp />)7 cy.contains('button', 'Add #1').click()8 cy.contains('button', 'Add #2').click()9 cy.contains('button', 'Add #3').click()10 cy.contains('button', 'Add #4').click()11 cy.contains('button', 'Add #5').click()12 cy.contains('button', 'Add #6').click()13 cy.contains('button', 'Add #7').click()14 cy.contains('button', 'Add #8').click()15 cy.contains('button', 'Add #9').click()16 cy.contains('button', 'Add #10').click()17 cy.contains('button', 'Add #11').click()18 cy.contains('button', 'Add #12').click()19 cy.contains('button', 'Add #13').click()20 cy.contains('button', 'Add #14').click()21 cy.contains('button', 'Add #15').click()22 cy.contains('button', 'Add #16').click()23 cy.contains('button', 'Add #17').click()24 cy.contains('button', 'Add #18').click()25 cy.contains('button', 'Add #19').click()26 cy.contains('button', 'Add #20').click()27 cy.contains('button', 'Add #21').click()28 cy.contains('button', 'Add #22').click()29 cy.contains('button', 'Add #23').click()30 cy.contains('button', 'Add #24').click()31 cy.contains('button', 'Add #25').click()32 cy.contains('button', 'Add #26').click()33 cy.contains('button', 'Add #27').click()34 cy.contains('button', 'Add #28').click()35 cy.contains('button', 'Add #29').click()36 cy.contains('button', 'Add #30').click()37 cy.contains('button', 'Add #31').click()38 cy.contains('button', 'Add #32').click()39 cy.contains('button', 'Add #33').click()40 cy.contains('button

Full Screen

Using AI Code Generation

copy

Full Screen

1import { storybookRootCause } from 'storybook-root-cause';2storybookRootCause();3Module build failed (from ./node_modules/babel-loader/lib/index.js):4SyntaxError: test.js: Support for the experimental syntax 'dynamicImport' isn't currently enabled (4:0):5 3 | import { storybookRootCause } from 'storybook-root-cause';6> 4 | storybookRootCause();7module.exports = {8 module: {9 {10 use: {11 options: {12 '@babel/plugin-syntax-dynamic-import',13 },14 },15 },16 },17};18Module build failed (from ./node_modules/babel-loader/lib/index.js):19SyntaxError: test.js: Support for the experimental syntax 'dynamicImport' isn't currently enabled (4:0):20 3 | import { storybookRootCause } from 'storybook-root-cause';21> 4 | storybookRootCause();22module.exports = {23 module: {24 {25 use: {26 options: {27 '@babel/plugin-syntax-dynamic-import',

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 storybook-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