code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About LuckySevens</source> <translation>אודות לייטקוין</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;LuckySevens&lt;/b&gt; version</source> <translation>גרסת &lt;b&gt;לייטקוין&lt;/b&gt;</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation> זוהי תוכנה ניסיונית. מופצת תחת רישיון התוכנה MIT/X11, ראה את הקובץ המצורף COPYING או http://www.opensource.org/licenses/mit-license.php. המוצר הזה כולל תוכנה שפותחה ע&quot;י פרויקט OpenSSL לשימוש בתיבת הכלים OpenSSL (http://www.openssl.org/) ותוכנה קריפטוגרפית שנכתבה ע&quot;י אריק יאנג (eay@cryptsoft.com) ותוכנת UPnP שנכתבה ע&quot;י תומס ברנרד.</translation> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation>זכויות יוצרים</translation> </message> <message> <location line="+0"/> <source>The LuckySevens developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>פנקס כתובות</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>לחץ לחיצה כפולה לערוך כתובת או תוית</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>יצירת כתובת חדשה</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>העתק את הכתובת המסומנת ללוח העריכה</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>כתובת חדשה</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your LuckySevens addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>אלה כתובת הלייטקוין שלך עבור קבלת תשלומים. ייתכן ותרצה לתת כתובת שונה לכל שולח כדי שתוכל לעקוב אחר מי משלם לך.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>העתק כתובת</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>הצג &amp;קוד QR</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a LuckySevens address</source> <translation>חתום על הודעה בכדי להוכיח כי אתה הבעלים של כתובת לייטקוין.</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>חתום על הודעה</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>מחק את הכתובת שנבחרה מהרשימה</translation> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation>יצוא הנתונים בטאב הנוכחי לקובץ</translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified LuckySevens address</source> <translation>אמת הודעה בכדי להבטיח שהיא נחתמה עם כתובת לייטקוין מסוימת.</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>אמת הודעה</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>מחק</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your LuckySevens addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation>אלה כתובת הלייטקוין שלך עבור שליחת תשלומים. תמיד בדוק את מספר ואת כתובות מקבלי התשלומים לפני שליחת מטבעות.</translation> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation>העתק תוית</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>עריכה</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation>שלח מטבעות</translation> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>יצוא נתוני פנקס כתובות</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>קובץ מופרד בפסיקים (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>שגיאה ביצוא</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>לא מסוגל לכתוב לקובץ %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>תוית</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>כתובת</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(ללא תוית)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>שיח סיסמא</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>הכנס סיסמא</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>סיסמה חדשה</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>חזור על הסיסמה החדשה</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>הכנס את הסיסמה החדשה לארנק. &lt;br/&gt;אנא השתמש בסיסמה המכילה &lt;b&gt;10 תוים אקראיים או יותר&lt;/b&gt;, או &lt;b&gt;שמונה מילים או יותר&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>הצפן ארנק</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>הפעולה הזו דורשת את סיסמת הארנק שלך בשביל לפתוח את הארנק.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>פתיחת ארנק</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>הפעולה הזו דורשת את סיסמת הארנק שלך בשביל לפענח את הארנק.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>פענוח ארנק</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>שינוי סיסמה</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>הכנס את הסיסמות הישנה והחדשה לארנק.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>אשר הצפנת ארנק</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR LUCKYSEVENSS&lt;/b&gt;!</source> <translation>אזהרה: אם אתה מצפין את הארנק ומאבד את הסיסמא, אתה &lt;b&gt;תאבד את כל הלייטקוינים שלך&lt;/b&gt;!</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>האם אתה בטוח שברצונך להצפין את הארנק?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>חשוב! כל גיבוי קודם שעשית לארנק שלך יש להחליף עם קובץ הארנק המוצפן שזה עתה נוצר. מסיבות אבטחה, גיבויים קודמים של קובץ הארנק הלא-מוצפן יהפכו לחסרי שימוש ברגע שתתחיל להשתמש בארנק החדש המוצפן.</translation> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>זהירות: מקש Caps Lock מופעל!</translation> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>הארנק הוצפן</translation> </message> <message> <location line="-56"/> <source>LuckySevens will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your luckysevenss from being stolen by malware infecting your computer.</source> <translation>לייטקוין ייסגר עכשיו כדי להשלים את תהליך ההצפנה. זכור שהצפנת הארנק שלך אינו יכול להגן באופן מלא על הלייטקוינים שלך מתוכנות זדוניות המושתלות על המחשב.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>הצפנת הארנק נכשלה</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>הצפנת הארנק נכשלה עקב שגיאה פנימית. הארנק שלך לא הוצפן.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>הסיסמות שניתנו אינן תואמות.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>פתיחת הארנק נכשלה</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>הסיסמה שהוכנסה לפענוח הארנק שגויה.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>פענוח הארנק נכשל</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>סיסמת הארנק שונתה בהצלחה.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>חתום על הודעה</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>מסתנכרן עם הרשת...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;סקירה</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>הצג סקירה כללית של הארנק</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;פעולות</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>דפדף בהיסטוריית הפעולות</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>ערוך את רשימת הכתובות והתויות</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>הצג את רשימת הכתובות לקבלת תשלומים</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>י&amp;ציאה</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>סגור תוכנה</translation> </message> <message> <location line="+4"/> <source>Show information about LuckySevens</source> <translation>הצג מידע על לייטקוין</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>אודות Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>הצג מידע על Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;אפשרויות</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>הצפן ארנק</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>גיבוי ארנק</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>שנה סיסמא</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation>מייבא בלוקים מהדיסק...</translation> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation>מחדש את אינדקס הבלוקים בדיסק...</translation> </message> <message> <location line="-347"/> <source>Send coins to a LuckySevens address</source> <translation>שלח מטבעות לכתובת לייטקוין</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for LuckySevens</source> <translation>שנה אפשרויות תצורה עבור לייטקוין</translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation>גיבוי הארנק למקום אחר</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>שנה את הסיסמה להצפנת הארנק</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>חלון ניפוי</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>פתח את לוח הבקרה לאבחון וניפוי</translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>אמת הודעה...</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>LuckySevens</source> <translation>לייטקוין</translation> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>ארנק</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation>ושלח</translation> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation>וקבל</translation> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation>וכתובות</translation> </message> <message> <location line="+22"/> <source>&amp;About LuckySevens</source> <translation>אודות לייטקוין</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>הצג / הסתר</translation> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation>הצג או הסתר את החלון הראשי</translation> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation>הצפן את המפתחות הפרטיים ששייכים לארנק שלך</translation> </message> <message> <location line="+7"/> <source>Sign messages with your LuckySevens addresses to prove you own them</source> <translation>חתום על הודעות עם כתובות הלייטקוין שלך כדי להוכיח שהן בבעלותך</translation> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified LuckySevens addresses</source> <translation>אמת הודעות כדי להבטיח שהן נחתמו עם כתובת לייטקוין מסוימות</translation> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;קובץ</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>ה&amp;גדרות</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;עזרה</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>סרגל כלים טאבים</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[רשת-בדיקה]</translation> </message> <message> <location line="+47"/> <source>LuckySevens client</source> <translation>תוכנת לייטקוין</translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to LuckySevens network</source> <translation><numerusform>חיבור פעיל אחד לרשת הלייטקוין</numerusform><numerusform>%n חיבורים פעילים לרשת הלייטקוין</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation>1% מתוך 2% (משוער) בלוקים של הסטוריית פעולת עובדו </translation> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation>הושלם עיבוד של %1 בלוקים של היסטוריית פעולות.</translation> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation><numerusform>%n שעה</numerusform><numerusform>%n שעות</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n יום</numerusform><numerusform>%n ימים</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation><numerusform>%n שבוע</numerusform><numerusform>%n שבועות</numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation>1% מאחור</translation> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation>הבלוק האחרון שהתקבל נוצר לפני %1</translation> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation>לאחר זאת פעולות נספות טרם יהיו גלויות</translation> </message> <message> <location line="+22"/> <source>Error</source> <translation>שגיאה</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation>אזהרה</translation> </message> <message> <location line="+3"/> <source>Information</source> <translation>מידע</translation> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation>פעולה זו חורגת מגבולות הגודל. עדיין באפשרותך לשלוח אותה תמורת עמלה של %1, המיועדת לצמתים שמעבדים את הפעולה שלך ועוזרת לתמוך ברשת. האם ברצונך לשלם את העמלה?</translation> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>עדכני</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>מתעדכן...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>אשר עמלת פעולה</translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>פעולה שנשלחה</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>פעולה שהתקבלה</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>תאריך: %1 כמות: %2 סוג: %3 כתובת: %4</translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation>תפעול URI</translation> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid LuckySevens address or malformed URI parameters.</source> <translation>לא ניתן לנתח URI! זה יכול להיגרם כתוצאה מכתובת לייטקוין לא תקינה או פרמטרי URI חסרי צורה תקינה.</translation> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>הארנק &lt;b&gt;מוצפן&lt;/b&gt; וכרגע &lt;b&gt;פתוח&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>הארנק &lt;b&gt;מוצפן&lt;/b&gt; וכרגע &lt;b&gt;נעול&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. LuckySevens can no longer continue safely and will quit.</source> <translation>שגיאה סופנית אירעה. לייטקוין אינו יכול להמשיך לפעול בבטחה ולכן ייסגר.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation>אזעקת רשת</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>ערוך כתובת</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>ת&amp;וית</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>התוית המשויכת לרשומה הזו בפנקס הכתובות</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;כתובת</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>הכתובת המשויכת לרשומה זו בפנקס הכתובות. ניתן לשנות זאת רק עבור כתובות לשליחה.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>כתובת חדשה לקבלה</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>כתובת חדשה לשליחה</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>ערוך כתובת לקבלה</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>ערוך כתובת לשליחה</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>הכתובת שהכנסת &quot;%1&quot; כבר נמצאת בפנקס הכתובות.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid LuckySevens address.</source> <translation>הכתובת שהוכנסה &quot;%1&quot; אינה כתובת לייטקוין תקינה.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>פתיחת הארנק נכשלה.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>יצירת מפתח חדש נכשלה.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>LuckySevens-Qt</source> <translation>LuckySevens-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>גרסה</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>שימוש:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>אפשרויות שורת פקודה</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>אפשרויות ממשק</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>קבע שפה, למשל &quot;he_il&quot; (ברירת מחדל: שפת המערכת)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>התחל ממוזער</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>הצג מסך פתיחה בעת הפעלה (ברירת מחדל: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>אפשרויות</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>ראשי</translation> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>שלם &amp;עמלת פעולה</translation> </message> <message> <location line="+31"/> <source>Automatically start LuckySevens after logging in to the system.</source> <translation>הפעל את לייטקוין באופן עצמאי לאחר התחברות למערכת.</translation> </message> <message> <location line="+3"/> <source>&amp;Start LuckySevens on system login</source> <translation>התחל את לייטקוין בעת התחברות למערכת</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation>אפס כל אפשרויות התוכנה לברירת המחדל.</translation> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation>איפוס אפשרויות</translation> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation>רשת</translation> </message> <message> <location line="+6"/> <source>Automatically open the LuckySevens client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>פתח את פורט לייטקוין בנתב באופן אוטומטי. עובד רק אם UPnP מאופשר ונתמך ע&quot;י הנתב.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>מיפוי פורט באמצעות UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the LuckySevens network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>התחבר לרשת הלייטקוין דרך פרוקסי SOCKS (למשל בעת התחברות דרך Tor).</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>התחבר דרך פרוקסי SOCKS</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>כתובת IP של פרוקסי:</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>כתובת האינטרנט של הפרוקסי (למשל 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>פורט:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>הפורט של הפרוקסי (למשל 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>גרסת SOCKS:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>גרסת SOCKS של הפרוקסי (למשל 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>חלון</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>הצג סמל מגש בלבד לאחר מזעור החלון.</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>מ&amp;זער למגש במקום לשורת המשימות</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>מזער את התוכנה במקום לצאת ממנה כשהחלון נסגר. כשאפשרות זו פעילה, התוכנה תיסגר רק לאחר בחירת יציאה מהתפריט.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>מזער בעת סגירה</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>תצוגה</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>שפת ממשק המשתמש:</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting LuckySevens.</source> <translation>ניתן לקבוע כאן את שפת ממשק המשתמש. הגדרה זו תחול לאחר הפעלה מחדש של לייטקוין.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>יחידת מדידה להצגת כמויות:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>בחר את ברירת המחדל ליחידת החלוקה אשר תוצג בממשק ובעת שליחת מטבעות.</translation> </message> <message> <location line="+9"/> <source>Whether to show LuckySevens addresses in the transaction list or not.</source> <translation>האם להציג כתובות לייטקוין ברשימת הפעולות או לא.</translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>הצג כתובות ברשימת הפעולות</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>אישור</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>ביטול</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>יישום</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation>ברירת מחדל</translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation>אשר את איפוס האפשרויות</translation> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation>כמה מההגדרות עשויות לדרוש אתחול התוכנה כדי להיכנס לפועל.</translation> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation>האם ברצונך להמשיך?</translation> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation>אזהרה</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting LuckySevens.</source> <translation>הגדרה זו תחול לאחר הפעלה מחדש של לייטקוין.</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>כתובת הפרוקסי שסופקה אינה תקינה.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>טופס</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the LuckySevens network after a connection is established, but this process has not completed yet.</source> <translation>המידע המוצג עשוי להיות מיושן. הארנק שלך מסתנכרן באופן אוטומטי עם רשת הלייטקוין לאחר כינון חיבור, אך התהליך טרם הסתיים.</translation> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>יתרה:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>ממתין לאישור:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>ארנק</translation> </message> <message> <location line="+107"/> <source>Immature:</source> <translation>לא בשל:</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>מאזן שנכרה וטרם הבשיל</translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;פעולות אחרונות&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>היתרה הנוכחית שלך</translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>הסכום הכולל של פעולות שטרם אושרו, ועוד אינן נספרות בחישוב היתרה הנוכחית</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>לא מסונכרן</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start luckysevens: click-to-pay handler</source> <translation>לא ניתן להתחיל את לייטקוין: מפעיל לחץ-לתשלום </translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>שיח קוד QR</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>בקש תשלום</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>כמות:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>תוית:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>הודעה:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;שמור בשם...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>שגיאה בקידוד URI לקוד QR</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>הכמות שהוכנסה אינה תקינה, אנא ודא.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>המזהה המתקבל ארוך מדי, נסה להפחית את הטקסט בתוית / הודעה.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>שמור קוד QR</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>תמונות PNG (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>שם ממשק</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation>N/A</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>גרסת ממשק</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>מידע</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>משתמש ב-OpenSSL גרסה</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>זמן אתחול</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>רשת</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>מספר חיבורים</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>ברשת הבדיקה</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>שרשרת הבלוקים</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>מספר הבלוקים הנוכחי</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>מספר כולל משוער של בלוקים</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>זמן הבלוק האחרון</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>פתח</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>אפשרויות שורת פקודה</translation> </message> <message> <location line="+7"/> <source>Show the LuckySevens-Qt help message to get a list with possible LuckySevens command-line options.</source> <translation>הצג את הודעה העזרה של luckysevens-qt כדי לקבל רשימה של אפשרויות שורת פקודה של לייטקוין.</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>הצג</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>לוח בקרה</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>תאריך בניה</translation> </message> <message> <location line="-104"/> <source>LuckySevens - Debug window</source> <translation>לייטקוין - חלון ניפוי</translation> </message> <message> <location line="+25"/> <source>LuckySevens Core</source> <translation>ליבת לייטקוין</translation> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>קובץ יומן ניפוי</translation> </message> <message> <location line="+7"/> <source>Open the LuckySevens debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>פתח את קובץ יומן הניפוי מתיקיית הנתונים הנוכחית. זה עשוי לקחת מספר שניות עבור קובצי יומן גדולים.</translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>נקה לוח בקרה</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the LuckySevens RPC console.</source> <translation>ברוכים הבאים ללוח בקרת RPC של לייטקוין</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>השתמש בחיצים למעלה ולמטה כדי לנווט בהיסטוריה, ו- &lt;b&gt;Ctrl-L&lt;/b&gt; כדי לנקות את המסך.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>הקלד &lt;b&gt;help&lt;/b&gt; בשביל סקירה של הפקודות הזמינות.</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>שלח מטבעות</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>שלח למספר מקבלים בו-זמנית</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>הוסף מקבל</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>הסר את כל השדות בפעולה</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>נקה הכל</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>יתרה:</translation> </message> <message> <location line="+10"/> <source>123.456 L7S</source> <translation>123.456 לייטקוין</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>אשר את פעולת השליחה</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>שלח</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; ל- %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>אשר שליחת מטבעות</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>האם אתה בטוח שברצונך לשלוח %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation> ו- </translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation>כתובת המקבל אינה תקינה, אנא בדוק שנית.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>הכמות לשלם חייבת להיות גדולה מ-0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>הכמות עולה על המאזן שלך.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>הכמות הכוללת, ובכללה עמלת פעולה בסך %1, עולה על המאזן שלך.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>כתובת כפולה נמצאה, ניתן לשלוח לכל כתובת רק פעם אחת בכל פעולת שליחה.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation>שגיאה: יצירת הפעולה נכשלה!</translation> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>שגיאה: הפעולה נדחתה. זה עשוי לקרות עם חלק מהמטבעות בארנק שלך כבר נוצלו, למשל אם השתמשת בעותק של wallet.dat ומטבעות נוצלו בעותק אך לא סומנו כמנוצלות כאן.</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>טופס</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>כ&amp;מות:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>שלם &amp;ל:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. Lpv7JREBfwYhBmGXcFP2Po1NpRUEiK8jg4)</source> <translation>הכתובת שאליה ישלח התשלום (למשל Lpv7JREBfwYhBmGXcFP2Po1NpRUEiK8jg4)</translation> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>הכנס תוית לכתובת הזאת כדי להכניס לפנקס הכתובות</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>ת&amp;וית:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>בחר כתובת מפנקס הכתובות</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>הדבר כתובת מהלוח</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>הסר את המקבל הזה</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a LuckySevens address (e.g. Lpv7JREBfwYhBmGXcFP2Po1NpRUEiK8jg4)</source> <translation>הכנס כתובת לייטקוין (למשל Lpv7JREBfwYhBmGXcFP2Po1NpRUEiK8jg4)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>חתימות - חתום או אמת הודעה</translation> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation>חתום על הו&amp;דעה</translation> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>אתה יכול לחתום על הודעות עם הכתובות שלך כדי להוכיח שהן בבעלותך. היזהר לא לחתום על משהו מעורפל, שכן התקפות פישינג עשויות לגרום לך בעורמה למסור את זהותך. חתום רק על אמרות מפורטות לחלוטין שאתה מסכים עימן.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Lpv7JREBfwYhBmGXcFP2Po1NpRUEiK8jg4)</source> <translation>הכתובת איתה לחתום על ההודעה (למשל Lpv7JREBfwYhBmGXcFP2Po1NpRUEiK8jg4)</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation>בחר כתובת מפנקס הכתובות</translation> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>הדבק כתובת מהלוח</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>הכנס כאן את ההודעה שעליך ברצונך לחתום</translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation>חתימה</translation> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation>העתק את החתימה הנוכחית ללוח המערכת</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this LuckySevens address</source> <translation>חתום על ההודעה כדי להוכיח שכתובת הלייטקוין הזו בבעלותך.</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>חתום על הודעה</translation> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation>אפס את כל שדות החתימה על הודעה</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>נקה הכל</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation>אמת הודעה</translation> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation>הכנס למטה את הכתובת החותמת, ההודעה (ודא שאתה מעתיק מעברי שורה, רווחים, טאבים וכו&apos; באופן מדויק) והחתימה כדי לאמת את ההודעה. היזהר לא לפרש את החתימה כיותר ממה שמופיע בהודעה החתומה בעצמה, כדי להימנע מליפול קורבן למתקפת איש-באמצע.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. Lpv7JREBfwYhBmGXcFP2Po1NpRUEiK8jg4)</source> <translation>הכתובת איתה ההודעה נחתמה (למשל Lpv7JREBfwYhBmGXcFP2Po1NpRUEiK8jg4)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified LuckySevens address</source> <translation>אמת את ההודעה כדי להבטיח שהיא נחתמה עם כתובת הלייטקוין הנתונה</translation> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation>אימות הודעה</translation> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation>אפס את כל שדות אימות הודעה</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a LuckySevens address (e.g. Lpv7JREBfwYhBmGXcFP2Po1NpRUEiK8jg4)</source> <translation>הכנס כתובת לייטקוין (למשל Lpv7JREBfwYhBmGXcFP2Po1NpRUEiK8jg4)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>לחץ &quot;חתום על ההודעה&quot; כדי לחולל חתימה</translation> </message> <message> <location line="+3"/> <source>Enter LuckySevens signature</source> <translation>הכנס חתימת לייטקוין</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>הכתובת שהוכנסה אינה תקינה.</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>אנא בדוק את הכתובת ונסה שנית.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>הכתובת שהוכנסה אינה מתייחסת למפתח.</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>פתיחת הארנק בוטלה.</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>המפתח הפרטי עבור הכתובת שהוכנסה אינו זמין.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>החתימה על ההודעה נכשלה.</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>ההודעה נחתמה.</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>לא ניתן לפענח את החתימה.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>אנא בדוק את החתימה ונסה שנית.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>החתימה לא תואמת את תקציר ההודעה.</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>אימות ההודעה נכשל.</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>ההודעה אומתה.</translation> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The LuckySevens developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>[רשת-בדיקה]</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>פתוח עד %1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation>%1/מנותק</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/ממתין לאישור</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 אישורים</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>מצב</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, הופץ דרך צומת אחד</numerusform><numerusform>, הופץ דרך %n צמתים</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>תאריך</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>מקור</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>נוצר</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>מאת</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>אל</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>כתובת עצמית</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>תוית</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>זיכוי</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>מבשיל בעוד בלוק אחד</numerusform><numerusform>מבשיל בעוד %n בלוקים</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>לא התקבל</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>חיוב</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>עמלת פעולה</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>כמות נקיה</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>הודעה</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>הערה</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>זיהוי פעולה</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>מטבעות שנוצרים חייבים להבשיל למשך 120 בלוקים לפני שניתן לנצל אותם. כשיצרת את הבלוק הזה, הוא הופץ לרשת כדי להתווסף לשרשרת הבלוקים. אם הוא אינו מצליח לביע לשרשרת, המצב שלו ישתנה ל&quot;לא התקבל&quot; ולא ניתן יהיה לנצל אותו. זה עשוי לקרות מעת לעת אם צומת אחר יוצר בלוק בטווח של מספר שניות מהבלוק שלך.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>מידע ניפוי</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>פעולה</translation> </message> <message> <location line="+3"/> <source>Inputs</source> <translation>קלטים</translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>כמות</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>אמת</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>שקר</translation> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, טרם שודר בהצלחה</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation><numerusform>פתח למשך בלוק %n יותר</numerusform><numerusform>פתח למשך %n בלוקים נוספים</numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>לא ידוע</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>פרטי הפעולה</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>חלונית זו מציגה תיאור מפורט של הפעולה</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>תאריך</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>סוג</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>כתובת</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>כמות</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation><numerusform>פתח למשך בלוק %n יותר</numerusform><numerusform>פתח למשך %n בלוקים נוספים</numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>פתוח עד %1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>לא מחובר (%1 אישורים)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>ממתין לאישור (%1 מתוך %2 אישורים)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>מאושר (%1 אישורים)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation><numerusform>המאזן שנכרה יהיה זמין כשהוא מבשיל בעוד בלוק אחד</numerusform><numerusform>המאזן שנכרה יהיה זמין כשהוא מבשיל בעוד %n בלוקים</numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>הבלוק הזה לא נקלט על ידי אף צומת אחר, וכנראה לא יתקבל!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>נוצר אך לא התקבל</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>התקבל עם</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>התקבל מאת</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>נשלח ל</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>תשלום לעצמך</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>נכרה</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(n/a)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>מצב הפעולה. השהה את הסמן מעל שדה זה כדי לראות את מספר האישורים.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>התאריך והשעה בה הפעולה הזאת התקבלה.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>סוג הפעולה.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>כתובת היעד של הפעולה.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>הכמות שהתווספה או הוסרה מהיתרה.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>הכל</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>היום</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>השבוע</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>החודש</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>החודש שעבר</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>השנה</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>טווח...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>התקבל עם</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>נשלח ל</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>לעצמך</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>נכרה</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>אחר</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>הכנס כתובת או תוית לחפש</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>כמות מזערית</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>העתק כתובת</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>העתק תוית</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>העתק כמות</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>העתק מזהה פעולה</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>ערוך תוית</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>הצג פרטי פעולה</translation> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>יצוא נתוני פעולות</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>קובץ מופרד בפסיקים (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>מאושר</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>תאריך</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>סוג</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>תוית</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>כתובת</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>כמות</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>מזהה</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>שגיאה ביצוא</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>לא מסוגל לכתוב לקובץ %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>טווח:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>אל</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>שלח מטבעות</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation>יצוא הנתונים בטאב הנוכחי לקובץ</translation> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation>גבה ארנק</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>נתוני ארנק (*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>גיבוי נכשל</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>הייתה שגיאה בנסיון לשמור את המידע הארנק למיקום החדש.</translation> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation>גיבוי הושלם בהצלחה</translation> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation>נתוני הארנק נשמרו בהצלחה במקום החדש.</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>LuckySevens version</source> <translation>גרסת לייטקוין</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>שימוש:</translation> </message> <message> <location line="-29"/> <source>Send command to -server or luckysevensd</source> <translation>שלח פקודה ל -server או luckysevensd</translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>רשימת פקודות</translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>קבל עזרה עבור פקודה</translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>אפשרויות:</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: luckysevens.conf)</source> <translation>ציין קובץ הגדרות (ברירת מחדל: luckysevens.conf)</translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: luckysevensd.pid)</source> <translation>ציין קובץ pid (ברירת מחדל: luckysevensd.pid)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>ציין תיקיית נתונים</translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>קבע את גודל המטמון של מסד הנתונים במגהבייט (ברירת מחדל: 25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 778 or testnet: 1778)</source> <translation>האזן לחיבורים ב&lt;פורט&gt; (ברירת מחדל: 778 או ברשת הבדיקה: 1778)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>החזק לכל היותר &lt;n&gt; חיבורים לעמיתים (ברירת מחדל: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>התחבר לצומת כדי לדלות כתובות עמיתים, ואז התנתק</translation> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation>ציין את הכתובת הפומבית שלך</translation> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>סף להתנתקות מעמיתים הנוהגים שלא כהלכה (ברירת מחדל: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>מספר שניות למנוע מעמיתים הנוהגים שלא כהלכה מלהתחבר מחדש (ברירת מחדל: 86400)</translation> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>אירעה שגיאה בעת הגדרת פורט RPC %u להאזנה ב-IPv4: %s</translation> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 777 or testnet: 1777)</source> <translation>האזן לחיבורי JSON-RPC ב- &lt;port&gt; (ברירת מחדל: 777 או רשת בדיקה: 1777)</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>קבל פקודות משורת הפקודה ו- JSON-RPC</translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>רוץ ברקע כדימון וקבל פקודות</translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>השתמש ברשת הבדיקה</translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>קבל חיבורים מבחוץ (ברירת מחדל: 1 ללא -proxy או -connect)</translation> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=luckysevensrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;LuckySevens Alert&quot; admin@foo.com </source> <translation>%s, עליך לקבוע סיסמת RPC בקובץ הקונפיגורציה: %s מומלץ להשתמש בסיסמא האקראית הבאה: rpcuser=luckysevensrpc rpcpassword=%s (אין צורך לזכור את הסיסמה) אסור ששם המשתמש והסיסמא יהיו זהים. אם הקובץ אינו קיים, צור אותו עם הרשאות קריאה לבעלים בלבד. זה מומלץ לסמן alertnotify כדי לקבל דיווח על תקלות; למשל: alertnotify=echo %%s | mail -s &quot;LuckySevens Alert&quot; admin@foo.com </translation> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation>אירעה שגיאה בעת הגדרת פורט RPC %u להאזנה ב-IPv6, נסוג ל-IPv4: %s</translation> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation>קשור עם כתובת נתונה והאזן לה תמיד. השתמש בסימון [host]:port עבוד IPv6.</translation> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. LuckySevens is probably already running.</source> <translation>לא מסוגל להשיג נעילה על תיקיית הנתונים %s. כנראה שלייטקוין כבר רץ.</translation> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>שגיאה: הפעולה נדחתה! זה עלול לקרות אם כמה מהמטבעות בארנק שלך כבר נוצלו, למשל אם השתמשת בעותק של wallet.dat ומטבעות נשלחו בעותק אך לא סומנו כמנוצלות כאן.</translation> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation>שגיאה: הפעולה הזאת דורשת עמלת פעולה של לפחות %s עקב הכמות, המורכבות, או השימוש בכספים שהתקבלו לאחרונה!</translation> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation>בצע פעולה כאשר ההודעה הרלוונטית מתקבלת(%s בשורת הפקודה משתנה על-ידי ההודעה)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>בצע פקודה כאשר פעולת ארנק משתנה (%s ב cmd יוחלף ב TxID)</translation> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>קבע גודל מקסימלי עבור פעולות עדיפות גבוהה/עמלה נמוכה בבתים (ברירת מחדל: 27000)</translation> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation>זוהי בניית ניסיון טרום-שחרור - השימוש בה על אחריותך - אין להשתמש לצורך כריה או יישומי מסחר</translation> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>אזהרה: -paytxfee נקבע לערך מאד גבוה! זוהי עמלת הפעולה שתשלם אם אתה שולח פעולה.</translation> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation>אזהרה: הפעולות המוצגות עשויות לא להיות נכונות! ייתכן ואתה צריך לשדרג, או שצמתים אחרים צריכים לשדרג.</translation> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong LuckySevens will not work properly.</source> <translation>אזהרה: אנא בדוק שהתאריך והשעה של המחשב שלך נכונים! אם השעון שלך אינו נכון לייטקוין לא יעבוד כראוי.</translation> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>אזהרה: שגיאה בקריאת wallet.dat! כל המתפחות נקראו באופן תקין, אך נתוני הפעולות או ספר הכתובות עלולים להיות חסרים או שגויים.</translation> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation>אזהרה: קובץ wallet.dat מושחת, המידע חולץ! קובץ wallet.dat המקורח נשמר כ - wallet.{timestamp}.bak ב - %s; אם המאזן או הפעולות שגויים עליך לשחזר גיבוי.</translation> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>נסה לשחזר מפתחות פרטיים מקובץ wallet.dat מושחת.</translation> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation>אפשרויות יצירת בלוק:</translation> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation>התחבר רק לצמתים המצוינים</translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation>התגלה מסד נתוני בלוקים לא תקין</translation> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>גלה את כתובת ה-IP העצמית (ברירת מחדל: 1 כשמאזינים וללא -externalip)</translation> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation>האם תרצה כעט לבנות מחדש את מסד נתוני הבלוקים?</translation> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation>שגיאה באתחול מסד נתוני הבלוקים</translation> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation>שגיאה באתחול סביבת מסד נתוני הארנקים %s!</translation> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation>שגיאה בטעינת מסד נתוני הבלוקים</translation> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation>שגיאה בטעינת מסד נתוני הבלוקים</translation> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation>שגיאה: מעט מקום פנוי בדיסק!</translation> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation>שגיאה: הארנק נעול, אין אפשרות ליצור פעולה!</translation> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation>שגיאה: שגיאת מערכת:</translation> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>האזנה נכשלה בכל פורט. השתמש ב- -listen=0 אם ברצונך בכך.</translation> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation>קריאת מידע הבלוקים נכשלה</translation> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation>קריאת הבלוק נכשלה</translation> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation>סנכרון אינדקס הבלוקים נכשל</translation> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation>כתיבת אינדקס הבלוקים נכשל</translation> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation>כתיבת מידע הבלוקים נכשל</translation> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation>כתיבת הבלוק נכשלה</translation> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation>כתיבת מידע הקבצים נכשלה</translation> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation>כתיבת מסד נתוני המטבעות נכשלה</translation> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation>כתיבת אינדקס הפעולות נכשלה</translation> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation>כתיבת נתוני ביטול נכשלה</translation> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation>מצא עמיתים ע&quot;י חיפוש DNS (ברירת מחדל: 1 ללא -connect)</translation> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation>מספר הבלוקים לבדוק בעת אתחול (ברירת מחדל: 288, 0 = כולם)</translation> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation>מידת היסודיות של אימות הבלוקים (0-4, ברירת מחדל: 3)</translation> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation>בנה מחדש את אינדק שרשרת הבלוקים מקבצי ה-blk000??.dat הנוכחיים.</translation> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation>קבע את מספר תהליכוני לשירות קריאות RPC (ברירת מחדל: 4)</translation> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation>מאמת את שלמות מסד הנתונים...</translation> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation>מאמת את יושרת הארנק...</translation> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation>מייבא בלוקים מקובצי blk000??.dat חיצוניים</translation> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation>מידע</translation> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>כתובת לא תקינה ל -tor: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation>תחזק אינדקס פעולות מלא (ברירת מחדל: 0)</translation> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>חוצץ קבלה מירבי לכל חיבור, &lt;n&gt;*1000 בתים (ברירת מחדל: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>חוצץ שליחה מירבי לכל חיבור, &lt;n&gt;*1000 בתים (ברירת מחדל: 1000)</translation> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation>קבל רק שרשרת בלוקים התואמת נקודות ביקורת מובנות (ברירת מחדל: 1)</translation> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>התחבר רק לצמתים ברשת &lt;net&gt; (IPv4, IPv6 או Tor)</translation> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation>פלוט מידע ניפוי נוסף. נובע מכך כל אפשרויות -debug* האחרות.</translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation>פלוט מידע נוסף לניפוי שגיאות ברשת.</translation> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation>הוסף חותמת זמן לפני פלט דיבאג</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the LuckySevens Wiki for SSL setup instructions)</source> <translation>אפשרויות SSL: (ראה את הויקי של לייטקוין עבור הוראות הגדרת SSL)</translation> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>בחר את גרסת פרוקסי SOCKS להשתמש בה (4-5, ברירת מחדל: 5)</translation> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>שלח מידע דיבאג ועקבה לקונסולה במקום לקובץ debug.log</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>שלח מידע דיבאג ועקבה לכלי דיבאג</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>קבע את גדול הבלוק המירבי בבתים (ברירת מחדל: 250000)</translation> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>קבע את גודל הבלוק המינימלי בבתים (ברירת מחדל: 0)</translation> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>כווץ את קובץ debug.log בהפעלת הקליינט (ברירת מחדל: 1 ללא -debug)</translation> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>ציין הגבלת זמן לחיבור במילישניות (ברירת מחדל: 5000)</translation> </message> <message> <location line="+4"/> <source>System error: </source> <translation>שגיאת מערכת:</translation> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>השתמש ב-UPnP כדי למפות את הפורט להאזנה (ברירת מחדל: 0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>השתמש ב-UPnP כדי למפות את הפורט להאזנה (ברירת מחדל: 1 בעת האזנה)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>השתמש בפרוקסי כדי להגיע לשירותים חבויים ב-tor (ברירת מחדל: כמו ב- -proxy)</translation> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>שם משתמש לחיבורי JSON-RPC</translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation>אזהרה</translation> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>אזהרה: הגרסה הזאת מיושנת, יש צורך בשדרוג!</translation> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation>עליך לבנות מחדש את מסדי הנתונים תוך שימוש ב- -reindex על מנת לשנות את -txindex</translation> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation>קובץ wallet.dat מושחת, החילוץ נכשל</translation> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>סיסמה לחיבורי JSON-RPC</translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>אפשר חיבורי JSON-RPC מכתובת האינטרנט המצוינת</translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>שלח פקודות לצומת ב-&lt;ip&gt; (ברירת מחדל: 127.0.0.1)</translation> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>בצע פקודה זו כשהבלוק הטוב ביותר משתנה (%s בפקודה יוחלף בגיבוב הבלוק)</translation> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation>שדרג את הארנק לפורמט העדכני</translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>קבע את גודל המאגר ל -&lt;n&gt; (ברירת מחדל: 100)</translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>סרוק מחדש את שרשרת הבלוקים למציאת פעולות חסרות בארנק</translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>השתמש ב-OpenSSL (https( עבור חיבורי JSON-RPC</translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation>קובץ תעודת שרת (ברירת מחדל: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>מפתח פרטי של השרת (ברירת מחדל: server.pem)</translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>צפנים קבילים (ברירת מחדל: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>הודעת העזרה הזו</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>לא מסוגל לקשור ל-%s במחשב זה (הקשירה החזירה שגיאה %d, %s)</translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation>התחבר דרך פרוקסי SOCKS</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>אפשר בדיקת DNS עבור -addnode, -seednode ו- -connect</translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>טוען כתובות...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>שגיאה בטעינת הקובץ wallet.dat: הארנק מושחת</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of LuckySevens</source> <translation>שגיאה בטעינת הקובץ wallet.dat: הארנק דורש גרסה חדשה יותר של לייטקוין</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart LuckySevens to complete</source> <translation>יש לכתוב מחדש את הארנק: אתחל את לייטקוין לסיום</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>שגיאה בטעינת הקובץ wallet.dat</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>כתובת -proxy לא תקינה: &apos;%s&apos;</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>רשת לא ידועה צוינה ב- -onlynet: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>התבקשה גרסת פרוקסי -socks לא ידועה: %i</translation> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>לא מסוגל לפתור כתובת -bind: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>לא מסוגל לפתור כתובת -externalip: &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>כמות לא תקינה עבור -paytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>כמות לא תקינה</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>אין מספיק כספים</translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>טוען את אינדקס הבלוקים...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>הוסף צומת להתחברות ונסה לשמור את החיבור פתוח</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. LuckySevens is probably already running.</source> <translation>לא ניתן לקשור ל-%s במחשב זה. לייטקוין כנראה עדיין רץ.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>עמלה להוסיף לפעולות שאתה שולח עבור כל KB</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>טוען ארנק...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation>לא יכול להוריד דרגת הארנק</translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>לא יכול לכתוב את כתובת ברירת המחדל</translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>סורק מחדש...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>טעינה הושלמה</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation>להשתמש באפשרות %s</translation> </message> <message> <location line="-74"/> <source>Error</source> <translation>שגיאה</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>עליך לקבוע rpcpassword=yourpassword בקובץ ההגדרות: %s אם הקובץ אינו קיים, צור אותו עם הרשאות קריאה לבעלים בלבד.</translation> </message> </context> </TS>
LuckySevens-Dev/LuckySevens
src/qt/locale/bitcoin_he.ts
TypeScript
mit
122,802
using System; using System.Collections.Generic; namespace Util.Impresion.Web.Entities { public partial class Imagenes { public Imagenes() { GuiasDet = new HashSet<GuiasDet>(); } public int ImagenId { get; set; } public int ProveedorId { get; set; } public bool VigenteSn { get; set; } public string Nombre { get; set; } public virtual ICollection<GuiasDet> GuiasDet { get; set; } public virtual ProveeClientes Proveedor { get; set; } } }
Nestornjrz/GenealogiaAnimal
Utilidades/Util.Impresion.Web/Entities/Imagenes.cs
C#
mit
540
--- id: 130 title: What I learned from my summer at Code for Nepal date: 2014-12-22T21:31:20-05:00 author: codefornepal layout: revision guid: https://codefornepal.org/2014/12/14-revision-v1/ permalink: /2014/12/14-revision-v1/ --- by **<a title="Shashi Adhikari" href="https://codefornepal.org/staff/shashi-adhikari/" target="_blank">Shashi Adhikari</a>, <a href="https://twitter.com/AdhikariShashi" target="_blank">@AdhikariShashi</a>** <div style="width: 510px" class="wp-caption aligncenter"> <img src="https://31.media.tumblr.com/ba53f4787bd538b949f9451ea9d882e2/tumblr_inline_n8sccuVL0R1qb9ga0.jpg" alt="image" width="500" height="373" /> <p class="wp-caption-text"> Students in Janakpur, Nepal, complete Code for Nepal’s survey on what they hope to learn about the Internet and computers. (Photo Credit: Shashi Adhikari) </p> </div> &nbsp; **I** just finished my first year of college at<a href="http://www.kiit.ac.in/" target="_blank"> KIIT University</a> in India, where I study computer science. For the summer, I worked as a Program Analyst for <a href="https://codefornepal.org/" target="_blank">Code for Nepal</a>. Code for Nepal is a U.S.-based organization that works for digital empowerment in Nepal. Digital empowerment means raising awareness about how to use social media and technology to make your life better and to have more access to information online.<!-- more --> My main job as a Program Analyst was to conduct a <a href="https://codefornepal.org/survey" target="_blank">survey</a> in Nepal to determine what women wanted to learn about computers and the Internet. The survey was done <a href="https://codefornepal.org/survey" target="_blank">online</a> and offline via paper. In Nepal, only a few cities have good Internet service. I went to several schools such as Sathya Sai School in <a href="http://en.wikipedia.org/wiki/Kathmandu" target="_blank">Kathmandu</a>, and Siddharth Shishu Sadan School and Model Campus in <a href="http://en.wikipedia.org/wiki/Janakpurdham" target="_blank">Janakpur</a>. I also asked my friends from high school who are pursuing their undergraduate degrees in Kathmandu to ask their female classmates to take the survey. My friends are from different colleges like V.S Niketan College, Global College of Management, and Apex College. I distributed the form to them and gave a speech about Code For Nepal and they returned it back after students finished them. I gave the survey to high school, undergraduate, and graduate-level students. It was a good experience conducting the survey in Kathmandu and Janakpur over six weeks. More than 200 women completed the survey, sharing their goals and interests for digital training. While completing the survey, many students asked me questions, such as: what is a “<a href="http://en.wikipedia.org/wiki/Hackathon" target="_blank">hackathon</a>”? What is “code” or “programming languages”? Students were curious to learn about<a href="http://www.w3.org/standards/webdesign/htmlcss" target="_blank"> HTML/CSS</a> and <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">Java</a>. For students who had never heard of code, the concept was difficult to understand. To explain, I told them that the next time when they played a game on their phone, they would see the Java logo as the game loaded &#8211; that was an example of code being used to build a product that students used in their everyday lives. Overall, I found that it was very hard in rural area for girls to use the Internet and to know about social media. Girls in the Janakpur region also explained that they used the Internet infrequently because it is too slow. The power is often out there due to “load shedding.” Nonetheless, they were interested in Code for Nepal, and hope to participate in a training program in the future. We are still conducting <a href="https://codefornepal.org/survey" target="_blank">survey </a>online. If you are a woman in Nepal interested in digital training, take the <a href="https://codefornepal.org/survey" target="_blank">survey</a>, or if you know someone who is interested then share this blog post with them! And I welcome your thoughts about our project. Looking forward for your comments below! **![image](https://31.media.tumblr.com/54df754c329c1c57b7b03357b2858297/tumblr_inline_n7hoihuTrP1qb9ga0.jpg)** **Shashi Adhikari, <a href="https://twitter.com/AdhikariShashi" target="_blank">@AdhikariShashi</a>** _Program Analyst_ Shashi is a social media and technology enthusiast. He is pursuing bachelors in computer science at KIIT in India. He likes to visit new places, make new friends and read tech blogs.
codefornepal/codefornepal.github.io
_drafts/what-i-learned-from-my-summer-at-code-for-nepal14-revision-v1-What-I-learned-from-my-summer-at-Code-for-Nepal.md
Markdown
mit
4,707
<!doctype html> <html> <head> <style> li {color: grey; padding-bottom: 5px;} a:hover {color:red;} body {width:400px;} .vote-count {color: black;} span {margin: 5px;} img {vertical-align: text-bottom;} </style> <script src="jquery-2.1.4.min.js"></script> <script src="popup.js"></script> <title>Best Part</title> </head> <body> <p id="url"></p> <p id="message"></p> <ul id="tags"> </ul> <div id="save-a-tag"> <input type="text" id="tagDesc"> <button id="saveTime">Tag this spot</button> </div> </body> </html>
raymonstah/BestPart
bestpart_chrome/popup.html
HTML
mit
558
# mandikal.com Personal website for [http://mandikal.com/](http://mandikal.com/) built with [Jekyll](http://jekyllrb.com/) and hosted on [GitHub Pages](https://pages.github.com/). ## Requirements ```sh gem install github pages ``` ## Usage ```sh jekyll serve ``` ## License Data in [_data/resume.json](_data/resume.json) and posts in the [_posts/](_posts/) directory are copyrighted by [Sreeram Mandikal Sreenath](http://mandikal.com "Sreeram Mandikal Sreenath's Website"). All other content is released under the [MIT License](http://www.opensource.org/licenses/MIT).
sreeram6791/sreeram6791.github.io
README.md
Markdown
mit
576
scouts = new Meteor.Collection('scouts', { schema: new SimpleSchema({ userId: { type: String, index: 1, unique: true }, scoutId: { type: String, optional: true }, scoutStatusCode: { type: String, optional: true }, scoutLand: { type: String, optional: true }, scoutName: { type: String, optional: true }, scoutBudget: { type: Number, optional: true }, scoutSpent: { type: Number, optional: true } }) }); // Collection2 already does schema checking // Add custom permission rules if needed scouts.allow({ insert : function () { return true; }, update : function () { return true; }, remove : function () { return true; } });
Karl-PeterNos/fps02
model/scouts.js
JavaScript
mit
827
class AddAcceptedToFormAnswers < ActiveRecord::Migration[4.2] def change add_column :form_answers, :accepted, :boolean, default: false end end
bitzesty/qae
db/migrate/20150326170750_add_accepted_to_form_answers.rb
Ruby
mit
151
# frozen_string_literal: true require 'view_model' require 'oj' module ViewModel::Controller extend ActiveSupport::Concern included do rescue_from ViewModel::AbstractError, with: ->(ex) do render_error(ex.view, ex.status) end end def render_viewmodel(viewmodel, status: nil, serialize_context: viewmodel.class.try(:new_serialize_context), &block) prerender = prerender_viewmodel(viewmodel, serialize_context: serialize_context, &block) render_json_string(prerender, status: status) end # Render viewmodel(s) to a JSON API response as a String def prerender_viewmodel(viewmodel, status: nil, serialize_context: viewmodel.class.try(:new_serialize_context)) encode_jbuilder do |json| json.data do ViewModel.serialize(viewmodel, json, serialize_context: serialize_context) end if serialize_context && serialize_context.has_references? json.references do serialize_context.serialize_references(json) end end yield(json) if block_given? end end # Render an arbitrarily nested tree of hashes and arrays with pre-rendered # JSON string terminals. Useful for rendering cached views without parsing # then re-serializing the cached JSON. def render_json_view(json_view, json_references: {}, status: nil, &block) prerender = prerender_json_view(json_view, json_references: json_references, &block) render_json_string(prerender, status: status) end def prerender_json_view(json_view, json_references: {}) json_view = wrap_json_view(json_view) json_references = wrap_json_view(json_references) encode_jbuilder do |json| json.data json_view if json_references.present? json.references do json_references.sort.each do |key, value| json.set!(key, value) end end end yield(json) if block_given? end end def render_error(error_view, status = 500) unless error_view.is_a?(ViewModel) raise "Expected ViewModel error view, received #{error_view.inspect}" end render_jbuilder(status: status) do |json| json.error do ctx = error_view.class.new_serialize_context(access_control: ViewModel::AccessControl::Open.new) ViewModel.serialize(error_view, json, serialize_context: ctx) end end end protected def parse_viewmodel_updates update_hash = _extract_update_data(params.fetch(:data)) refs = _extract_param_hash(params.fetch(:references, {})) return update_hash, refs end private def _extract_update_data(data) if data.is_a?(Array) if data.blank? raise ViewModel::Error.new(status: 400, detail: "No data submitted: #{data.inspect}") end data.map { |el| _extract_param_hash(el) } else _extract_param_hash(data) end end def _extract_param_hash(data) case data when Hash data when ActionController::Parameters data.to_unsafe_h else raise ViewModel::Error.new(status: 400, detail: "Invalid data submitted, expected hash: #{data.inspect}") end end def encode_jbuilder builder = Jbuilder.new do |json| yield json end ViewModel.encode_json(builder.attributes!) end def render_jbuilder(status:) response = encode_jbuilder do |json| yield json end render_json_string(response, status: status) end def render_json_string(response, status: nil) render(json: response, status: status) end # Wrap raw JSON in such a way that MultiJSON knows to pass it through # untouched. Requires a MultiJson adapter other than ActiveSupport's # (modified) JsonGem. class CompiledJson def initialize(s); @s = s; end def to_json(*args); @s; end def to_s; @s; end undef_method :as_json end # Traverse a tree and wrap all String terminals in CompiledJson def wrap_json_view(view) case view when Array view.map { |v| wrap_json_view(v) } when Hash view.transform_values { |v| wrap_json_view(v) } when String, Symbol CompiledJson.new(view) else view end end end
iknow/cerego_view_models
lib/view_model/controller.rb
Ruby
mit
4,169
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string' SQLALCHEMY_COMMIT_ON_TEARDOWN = True MAIL_SERVER = 'smtp.googlemail.com' MAIL_PORT = 587 MAIL_USE_TLS = True MAIL_USERNAME = 'frey.maxim@gmail.com' MAIL_PASSWORD = 'Airjeff3' FLASKY_MAIL_SUBJECT_PREFIX = '[JeffPD]' FLASKY_MAIL_SENDER = 'frey.maxim@gmail.com' FLASKY_ADMIN = 'frey.maxim@gmail.com' @staticmethod def init_app(app): pass class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = 'postgres://uaaalnaflmsjnp:pLyQ5JRVbro0WCgXuMVorfqSjY@ec2-54-227-255-240.compute-1.amazonaws.com:5432/d8hosmtv1eijgp' class TestingConfig(Config): TESTING = True SQLALCHEMY_DATABASE_URI = 'postgres://uaaalnaflmsjnp:pLyQ5JRVbro0WCgXuMVorfqSjY@ec2-54-227-255-240.compute-1.amazonaws.com:5432/d8hosmtv1eijgp' class ProductionConfig(Config): SQLALCHEMY_DATABASE_URI = 'postgres://uaaalnaflmsjnp:pLyQ5JRVbro0WCgXuMVorfqSjY@ec2-54-227-255-240.compute-1.amazonaws.com:5432/d8hosmtv1eijgp' config = { 'development': DevelopmentConfig, 'testing': TestingConfig, 'production': ProductionConfig, 'default': DevelopmentConfig }
jeffthemaximum/jeffPD
config.py
Python
mit
1,272
/* * Copyright (c) 2012 Unicode Collective London > Amsterdam contributors * This program is made available under the terms of the MIT License: * http://www.opensource.org/licenses/MIT */ package com.unicodecollective.amsterdam; import java.lang.reflect.Method; public interface TokenCostFunction { int calculateCost(Method method, Object[] args); }
zooktech/amsterdam
src/main/java/com/unicodecollective/amsterdam/TokenCostFunction.java
Java
mit
359
<?php declare(strict_types = 1); declare(strict_types=1); namespace DrdPlus\Properties\Combat\Partials; use Granam\Integer\PositiveInteger; use Granam\Integer\Tools\ToInteger; abstract class PositiveIntegerCharacteristicForGame extends CharacteristicForGame implements PositiveInteger { /** * @param int|string|float|PositiveInteger $value * @return int * @throws \Granam\Integer\Tools\Exceptions\WrongParameterType * @throws \Granam\Integer\Tools\Exceptions\ValueLostOnCast * @throws \Granam\Integer\Tools\Exceptions\PositiveIntegerCanNotBeNegative */ protected function sanitizeValue($value): int { return ToInteger::toPositiveInteger($value); } }
jaroslavtyc/drd-plus-properties
DrdPlus/Properties/Combat/Partials/PositiveIntegerCharacteristicForGame.php
PHP
mit
707
/* global angular: false */ /** * WinchJS Factory - Maintain state of winch * * Written by Sean Cady */ angular.module('winch') .factory('winchFactory', [function() { //Basic API structure var API = { _img: {} }; /** * Register an image * @param URL * @param load * @param validate * @returns {boolean} */ API.registerImg = function(URL, load, validate) { if (typeof load !== 'function') { return false; } if (typeof validate !== 'function') { return false; } if (typeof URL !== 'string' || URL.length < 1) { return false; } if (API._img.hasOwnProperty(URL)) { //If already loaded once (cached) trigger load immediately if (API._img[URL].loaded) { load(); } else { API._img[URL].fnLoad.push(load); API._img[URL].fnValidate.push(validate); } } else { API._img[URL] = { fnLoad: [load], fnValidate: [validate], loaded: false }; } return true; }; /** * Load all images with the same URL * @param URL */ API.loadImage = function(URL) { var index = 0, length; if (API._img.hasOwnProperty(URL)) { length = API._img[URL].fnLoad.length; for (index = 0; index < length; index += 1) { API._img[URL].fnLoad[index](); } API._img[URL] = { loaded: true, fnValidate: [], fnLoad: [] }; } }; /** * Trigger validation of images * @param URL - optional */ API.triggerValidation = function(URL) { var imageIndex, imageKeys, validationIndex, validationLength; if (URL && API._img[URL]) { for (validationIndex = 0; validationIndex < API._img[URL].fnValidate.length; validationIndex += 1) { if (API._img[URL].fnValidate[validationIndex]()) { API.loadImage(URL); } } } else if (!URL) { imageKeys = Object.keys(API._img); for (imageIndex = 0; imageIndex < imageKeys.length; imageIndex += 1) { validationLength = API._img[imageKeys[imageIndex]].fnValidate.length; for (validationIndex = 0; validationIndex < validationLength; validationIndex += 1) { if (API._img[imageKeys[imageIndex]].fnValidate[validationIndex] && API._img[imageKeys[imageIndex]].fnValidate[validationIndex]()) { API.loadImage(imageKeys[imageIndex]); } } } } }; /** * Store the current window Height and Width * @param height * @param width */ API.setWindowView = function(height, width) { API.windowWidth = width; API.windowHeight = height; }; /** * Return window width * @returns number */ API.getWindowWidth = function() { return API.windowWidth; }; /** * Return window height * @returns number */ API.getWindowHeight = function() { return API.windowHeight; }; /** * Returns an object of window bounding * @returns {{top: number, bottom: number, left: number, right: number, vOffset: number, hOffset: number}} */ API.getMasterBox = function() { return { top: 0, bottom: API.windowHeight, left: 0, right: API.windowWidth, vOffset: 100, hOffset: 100 }; }; return API; }]);
GeneralElectric/winchjs
files/winch-factory.js
JavaScript
mit
3,515
exports.up = (knex, Promise) => { return knex.schema.createTable('users', (table) => { table.increments('id') table.string('user_id') // table.string('username') table.string('server_id') table.integer('quest_xp') table.integer('message_xp') table.dateTime('last_msg') }) } exports.down = (knex, Promise) => { return knex.schema.dropTable('users') }
MarinMakers/eyebot
src/utils/migrations/1_user_data.js
JavaScript
mit
386
using System; using NUnit.Framework; using StructureMap; namespace TinyHandler.Tests { using TinyHandler.Tests.Mocks; using TinyHandler.Tests.Mocks.Exceptions; [TestFixture] public class OnFailSequenceTests { [Test] public void OnFailExecuted() { // Arrange ObjectFactory.Configure(x => x.For<HandlerModule<object>>().Use<TestHandlerModule>()); ObjectFactory.Configure(x => x.For<HandlerCentral>().Singleton().Use<HandlerCentral>()); ObjectFactory.Configure(x => x.For<TestStateHolder>().Singleton().Use<TestStateHolder>()); var handlerCentral = ObjectFactory.Container.GetInstance<HandlerCentral>(); var state = ObjectFactory.Container.GetInstance<TestStateHolder>(); handlerCentral.AddProcessBehaviors<NullFailProcessBehavior>(); handlerCentral.AddOnProcessErrorBehaviors<NullFillOnProcessErrorBehaviour>(); // Act var isFail = false; try { handlerCentral.Process<object>(null); } catch (ProcessException) { isFail = true; } // Assert Assert.IsTrue(isFail); Assert.NotNull(state.Exception); } [Test] public void OnFailExecutedInAddedOrder_FirstTry() { // Arrange ObjectFactory.Configure(x => x.For<HandlerModule<object>>().Use<TestHandlerModule>()); ObjectFactory.Configure(x => x.For<HandlerCentral>().Singleton().Use<HandlerCentral>()); ObjectFactory.Configure(x => x.For<TestStateHolder>().Singleton().Use<TestStateHolder>()); var handlerCentral = ObjectFactory.Container.GetInstance<HandlerCentral>(); var state = ObjectFactory.Container.GetInstance<TestStateHolder>(); handlerCentral.AddProcessBehaviors<NullFailProcessBehavior>(); handlerCentral.AddOnProcessErrorBehaviors<NullFillOnProcessErrorBehaviour>(); handlerCentral.AddOnProcessErrorBehaviors<NullFailOnProcessErrorBehaviour>(); // Act var isFail = false; try { handlerCentral.Process<object>(null); } catch (ProcessException) { isFail = true; } // Assert Assert.IsTrue(isFail); Assert.NotNull(state.Exception); } [Test] public void OnFailExecutedInAddedOrder_SecondTry() { // Arrange ObjectFactory.Configure(x => x.For<HandlerModule<object>>().Use<TestHandlerModule>()); ObjectFactory.Configure(x => x.For<HandlerCentral>().Singleton().Use<HandlerCentral>()); ObjectFactory.Configure(x => x.For<TestStateHolder>().Singleton().Use<TestStateHolder>()); var handlerCentral = ObjectFactory.Container.GetInstance<HandlerCentral>(); var state = ObjectFactory.Container.GetInstance<TestStateHolder>(); handlerCentral.AddProcessBehaviors<NullFailProcessBehavior>(); handlerCentral.AddOnProcessErrorBehaviors<NullFillOnProcessErrorBehaviour>(); handlerCentral.AddOnProcessErrorBehaviors<NullFailOnProcessErrorBehaviour>(); // Act var isFail = false; try { handlerCentral.Process<object>(null); } catch (ProcessException) { isFail = true; } // Assert Assert.IsTrue(isFail); Assert.NotNull(state.Exception); } [Test] public void OnFailExecutedInAddedOrder_ExecuteTwiceIfAddedTwice() { // Arrange ObjectFactory.Configure(x => x.For<HandlerModule<object>>().Use<TestHandlerModule>()); ObjectFactory.Configure(x => x.For<HandlerCentral>().Singleton().Use<HandlerCentral>()); ObjectFactory.Configure(x => x.For<TestStateHolder>().Singleton().Use<TestStateHolder>()); var handlerCentral = ObjectFactory.Container.GetInstance<HandlerCentral>(); var state = ObjectFactory.Container.GetInstance<TestStateHolder>(); handlerCentral.AddProcessBehaviors<NullFailProcessBehavior>(); handlerCentral.AddOnProcessErrorBehaviors<NullFillOnProcessErrorBehaviour>(); handlerCentral.AddOnProcessErrorBehaviors<NullFillOnProcessErrorBehaviour>(); // Act var isFail = false; try { handlerCentral.Process<object>(null); } catch (OnErrorException) { isFail = true; } // Assert Assert.IsTrue(isFail); } } }
ApmeM/TinyHandler
Source/TinyHandler.Tests/OnFailSequenceTests.cs
C#
mit
5,017
'use strict'; /** * Module dependencies. */ var coursesPolicy = require('../policies/courses.server.policy'), courses = require('../controllers/courses.server.controller'); module.exports = function (app) { // Articles collection routes app.route('/api/courses').all(coursesPolicy.isAllowed) .get(courses.list) .post(courses.create); // Single article routes app.route('/api/courses/:articleId').all(coursesPolicy.isAllowed) .get(courses.read) .put(courses.update) .delete(courses.delete); // Finish by binding the article middleware app.param('articleId', courses.articleByID); };
hdmsoftware/lightcoder-v1
modules/courses/server/routes/courses.server.routes.js
JavaScript
mit
622
<?php /** * @copyright Copyright (C) 2015-2018 AIZAWA Hina * @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT * @author AIZAWA Hina <hina@fetus.jp> */ use app\components\db\GearMigration; use app\components\db\Migration; class m180501_070903_nonslipsenseis extends Migration { use GearMigration; public function safeUp() { $this->upGear2( static::name2key('Non-slip Senseis'), 'Non-slip Senseis', 'shoes', static::name2key('Grizzco'), null, 21002 ); } public function safeDown() { $this->downGear2( static::name2key('Non-slip Senseis') ); } }
fetus-hina/stat.ink
migrations/m180501_070903_nonslipsenseis.php
PHP
mit
719
<?php define('PATH_D2TRADETOOLS_SIGNATURE', realpath(dirname(__FILE__))); class D2TradeTools_Signature { public function __construct() { } private function get_color_from_code($im, $code) { if($code == "c3") // magic return ImageColorAllocate($im, 179, 226, 255); else if($code == "c4") // unique return ImageColorAllocate($im, 255, 225, 143); else if($code == "c9") // rare return ImageColorAllocate($im, 255, 255, 179); else if($code == "c8") // rune return ImageColorAllocate($im, 255, 255, 179); else if($code == "c5") // white return ImageColorAllocate($im, 255, 255, 255); else if($code == "c2") // set return ImageColorAllocate($im, 68, 224, 64); else if($code == "c0") // gem return ImageColorAllocate($im, 255, 255, 255); else // normal return ImageColorAllocate($im, 3, 56, 126); } public function show($params = array()) { $params = array_merge(array( 'name' => 'UNKNOWN', 'log' => null ), $params); extract($params); $filename = PATH_D2TRADETOOLS_SIGNATURE . "/cache/sig.png"; if(file_exists($filename)) { $mtime = filemtime($filename); $updated_since = time() - $mtime; if($updated_since < 1 * 60) {// has the file changed in the last minute? if not, let's refresh it header("Content-type: image/png"); die(file_get_contents($filename)); } } $im = imagecreatefrompng('backgrounds/texture1.png'); imagecolortransparent($im, imagecolorallocate($im, 84, 255, 0)); $title = $name . "'S UPDATED FT LIST..."; $title_color = ImageColorAllocate($im, 255, 255, 255); $title_shadow_color = ImageColorAllocate($im, 3, 56, 126); imagestring($im, 3, 5 - 1, 5, $title, $title_shadow_color); imagestring($im, 3, 5, 5 - 1, $title, $title_shadow_color); imagestring($im, 3, 5 + 1, 5, $title, $title_shadow_color); imagestring($im, 3, 5, 5 + 1, $title, $title_shadow_color); imagestring($im, 3, 5 + 1, 5 + 1, $title, $title_shadow_color); imagestring($im, 3, 5 - 1, 5 - 1, $title, $title_shadow_color); imagestring($im, 3, 5, 5, $title, $title_color); $items = array_slice(json_decode(file_get_contents($log), true), 0, 7); foreach($items as $i => $item) { $time = $item['timestamp']; $details = $item['details']; $title = $item['title']; $title_shadow_color = ImageColorAllocate($im, 3, 56, 126); $title_color = $this->get_color_from_code($im, $item['color']); imagestring($im, 3, 13 - 1, 22 + (15 * $i), $title, $title_shadow_color); imagestring($im, 3, 13, 22 + (15 * $i) - 1, $title, $title_shadow_color); imagestring($im, 3, 13 + 1, 22 + (15 * $i), $title, $title_shadow_color); imagestring($im, 3, 13, 22 + (15 * $i) + 1, $title, $title_shadow_color); imagestring($im, 3, 13 + 1, 22 + (15 * $i) + 1, $title, $title_shadow_color); imagestring($im, 3, 13 - 1, 22 + (15 * $i) - 1, $title, $title_shadow_color); imagestring($im, 3, 13, 22 + (15 * $i), $title, $title_color); $title_color = $this->get_color_from_code($im, NULL); $x = strlen($title) * imagefontwidth(3) + 20; if(in_array('unid', $details)) { $text = " - unid"; } else { $text = ' - ' . implode('; ', $details); } $title_shadow_color = ImageColorAllocate($im, 3, 56, 126); $title_color = ImageColorAllocate($im, 255, 255, 255); imagestring($im, 3, $x - 1, 22 + (15 * $i), $text, $title_shadow_color); imagestring($im, 3, $x, 22 + (15 * $i) - 1, $text, $title_shadow_color); imagestring($im, 3, $x + 1, 22 + (15 * $i), $text, $title_shadow_color); imagestring($im, 3, $x, 22 + (15 * $i) + 1, $text, $title_shadow_color); imagestring($im, 3, $x + 1, 22 + (15 * $i) + 1, $text, $title_shadow_color); imagestring($im, 3, $x - 1, 22 + (15 * $i) - 1, $text, $title_shadow_color); imagestring($im, 3, $x, 22 + (15 * $i), $text, $title_color); } $title = "...VISIT MY PROFILE FOR TOPIC AND DETAILS"; $title_color = ImageColorAllocate($im, 255, 255, 255); $title_shadow_color = ImageColorAllocate($im, 3, 56, 126); imagestring($im, 3, 110 - 1, 135, $title, $title_shadow_color); imagestring($im, 3, 110, 135 - 1, $title, $title_shadow_color); imagestring($im, 3, 110 + 1, 135, $title, $title_shadow_color); imagestring($im, 3, 110, 135 + 1, $title, $title_shadow_color); imagestring($im, 3, 110 + 1, 135 + 1, $title, $title_shadow_color); imagestring($im, 3, 110 - 1, 135 - 1, $title, $title_shadow_color); imagestring($im, 3, 110, 135, $title, $title_color); // get the image data ob_start(); imagegif($im); $data = ob_get_contents(); ob_end_clean(); // write the image data $handle = fopen(PATH_D2TRADETOOLS_SIGNATURE . "/cache/sig.png", 'w'); fwrite($handle, $data); fclose($handle); imagedestroy($im); // display the image data header("Content-type: image/png"); die($data); } }
ericmuyser/d2tt
signature/signature.php
PHP
mit
5,068
package alec_wam.CrystalMod.tiles.xp; import alec_wam.CrystalMod.network.AbstractPacketThreadsafe; import io.netty.buffer.ByteBuf; import net.minecraft.client.network.NetHandlerPlayClient; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.network.NetHandlerPlayServer; import net.minecraft.network.PacketBuffer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; public class PacketXPTank extends AbstractPacketThreadsafe { public BlockPos blockPos; public int amount; public boolean add; public PacketXPTank(){} public PacketXPTank(BlockPos pos, int amount, boolean add){ this.blockPos = pos; this.amount = amount; this.add = add; } @Override public void fromBytes(ByteBuf buf) { PacketBuffer buffer = new PacketBuffer(buf); blockPos = buffer.readBlockPos(); amount = buffer.readInt(); add = buffer.readBoolean(); } @Override public void toBytes(ByteBuf buf) { PacketBuffer buffer = new PacketBuffer(buf); buffer.writeBlockPos(blockPos); buffer.writeInt(amount); buffer.writeBoolean(add); } @Override public void handleClientSafe(NetHandlerPlayClient netHandler) { } @Override public void handleServerSafe(NetHandlerPlayServer netHandler) { EntityPlayerMP player = netHandler.playerEntity; World world = player.getEntityWorld(); if(world == null){ return; } TileEntity tile = world.getTileEntity(blockPos); if(tile !=null && tile instanceof TileEntityXPTank){ TileEntityXPTank tank = ((TileEntityXPTank)tile); tank.changeXP(player, amount, add); } } }
Alec-WAM/CrystalMod
src/main/java/alec_wam/CrystalMod/tiles/xp/PacketXPTank.java
Java
mit
1,696
/* global Flash */ export default class BlobViewer { constructor() { this.switcher = document.querySelector('.js-blob-viewer-switcher'); this.switcherBtns = document.querySelectorAll('.js-blob-viewer-switch-btn'); this.copySourceBtn = document.querySelector('.js-copy-blob-source-btn'); this.simpleViewer = document.querySelector('.blob-viewer[data-type="simple"]'); this.richViewer = document.querySelector('.blob-viewer[data-type="rich"]'); this.$fileHolder = $('.file-holder'); let initialViewerName = document.querySelector('.blob-viewer:not(.hidden)').getAttribute('data-type'); this.initBindings(); if (this.switcher && location.hash.indexOf('#L') === 0) { initialViewerName = 'simple'; } this.switchToViewer(initialViewerName); } initBindings() { if (this.switcherBtns.length) { Array.from(this.switcherBtns) .forEach((el) => { el.addEventListener('click', this.switchViewHandler.bind(this)); }); } if (this.copySourceBtn) { this.copySourceBtn.addEventListener('click', () => { if (this.copySourceBtn.classList.contains('disabled')) return this.copySourceBtn.blur(); return this.switchToViewer('simple'); }); } } switchViewHandler(e) { const target = e.currentTarget; e.preventDefault(); this.switchToViewer(target.getAttribute('data-viewer')); } toggleCopyButtonState() { if (!this.copySourceBtn) return; if (this.simpleViewer.getAttribute('data-loaded')) { this.copySourceBtn.setAttribute('title', 'Copy source to clipboard'); this.copySourceBtn.classList.remove('disabled'); } else if (this.activeViewer === this.simpleViewer) { this.copySourceBtn.setAttribute('title', 'Wait for the source to load to copy it to the clipboard'); this.copySourceBtn.classList.add('disabled'); } else { this.copySourceBtn.setAttribute('title', 'Switch to the source to copy it to the clipboard'); this.copySourceBtn.classList.add('disabled'); } $(this.copySourceBtn).tooltip('fixTitle'); } loadViewer(viewerParam) { const viewer = viewerParam; const url = viewer.getAttribute('data-url'); if (!url || viewer.getAttribute('data-loaded') || viewer.getAttribute('data-loading')) { return; } viewer.setAttribute('data-loading', 'true'); $.ajax({ url, dataType: 'JSON', }) .fail(() => new Flash('Error loading source view')) .done((data) => { viewer.innerHTML = data.html; $(viewer).syntaxHighlight(); viewer.setAttribute('data-loaded', 'true'); this.$fileHolder.trigger('highlight:line'); gl.utils.handleLocationHash(); this.toggleCopyButtonState(); }); } switchToViewer(name) { const newViewer = document.querySelector(`.blob-viewer[data-type='${name}']`); if (this.activeViewer === newViewer) return; const oldButton = document.querySelector('.js-blob-viewer-switch-btn.active'); const newButton = document.querySelector(`.js-blob-viewer-switch-btn[data-viewer='${name}']`); const oldViewer = document.querySelector(`.blob-viewer:not([data-type='${name}'])`); if (oldButton) { oldButton.classList.remove('active'); } if (newButton) { newButton.classList.add('active'); newButton.blur(); } if (oldViewer) { oldViewer.classList.add('hidden'); } newViewer.classList.remove('hidden'); this.activeViewer = newViewer; this.toggleCopyButtonState(); this.loadViewer(newViewer); } }
htve/GitlabForChinese
app/assets/javascripts/blob/viewer/index.js
JavaScript
mit
3,593
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport"/> <meta content="telephone=no" name="format-detection"/> <meta content="address=no" name="format-detection"/> <title> 治腰疼方(丹溪心法) </title><script language="javascript" src="js/jquery.min.js" type="text/javascript"></script><script language="javascript" src="js/call.js" type="text/javascript"></script> <link href="./css/drug.css?v=1" rel="stylesheet" type="text/css"/> <link href="./css/reset.css?v=1" rel="stylesheet" type="text/css"/> </head> <body class="bg-fff"> <section> <h4>【出处】</h4> <p>《丹溪心法》卷四 </p> </section> <section> <h4>【古代剂量】</h4> <dl> <dd>黑丑(四两,半生半炒)</dd> </dl> </section> <section> <h4>【现代剂量】</h4> <dl> <dd>黑丑(120g,半生半炒)</dd> </dl> </section> <section> <h4>【煎服法】</h4> <dl> <dd>    上研细,取头末,水丸桐子大,硫黄为衣。每服三十丸,空心盐酒送下,四服即止。</dd> </dl> </section> </body> <!--zly--> </html>
hucaihua/cmssp
server/html/prescription/199.html
HTML
mit
1,154
<?php declare(strict_types=1); /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tests\Localization; class RofTest extends LocalizationTestCase { const LOCALE = 'rof'; // Rombo const CASES = [ // Carbon::parse('2018-01-04 00:00:00')->addDays(1)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Tomorrow at 00:00', // Carbon::parse('2018-01-04 00:00:00')->addDays(2)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Ijumamosi at 00:00', // Carbon::parse('2018-01-04 00:00:00')->addDays(3)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Ijumapili at 00:00', // Carbon::parse('2018-01-04 00:00:00')->addDays(4)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Ijumatatu at 00:00', // Carbon::parse('2018-01-04 00:00:00')->addDays(5)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Ijumanne at 00:00', // Carbon::parse('2018-01-04 00:00:00')->addDays(6)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Ijumatano at 00:00', // Carbon::parse('2018-01-05 00:00:00')->addDays(6)->calendar(Carbon::parse('2018-01-05 00:00:00')) 'Alhamisi at 00:00', // Carbon::parse('2018-01-06 00:00:00')->addDays(6)->calendar(Carbon::parse('2018-01-06 00:00:00')) 'Ijumaa at 00:00', // Carbon::parse('2018-01-07 00:00:00')->addDays(2)->calendar(Carbon::parse('2018-01-07 00:00:00')) 'Ijumanne at 00:00', // Carbon::parse('2018-01-07 00:00:00')->addDays(3)->calendar(Carbon::parse('2018-01-07 00:00:00')) 'Ijumatano at 00:00', // Carbon::parse('2018-01-07 00:00:00')->addDays(4)->calendar(Carbon::parse('2018-01-07 00:00:00')) 'Alhamisi at 00:00', // Carbon::parse('2018-01-07 00:00:00')->addDays(5)->calendar(Carbon::parse('2018-01-07 00:00:00')) 'Ijumaa at 00:00', // Carbon::parse('2018-01-07 00:00:00')->addDays(6)->calendar(Carbon::parse('2018-01-07 00:00:00')) 'Ijumamosi at 00:00', // Carbon::now()->subDays(2)->calendar() 'Last Ijumapili at 20:49', // Carbon::parse('2018-01-04 00:00:00')->subHours(2)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Yesterday at 22:00', // Carbon::parse('2018-01-04 12:00:00')->subHours(2)->calendar(Carbon::parse('2018-01-04 12:00:00')) 'Today at 10:00', // Carbon::parse('2018-01-04 00:00:00')->addHours(2)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Today at 02:00', // Carbon::parse('2018-01-04 23:00:00')->addHours(2)->calendar(Carbon::parse('2018-01-04 23:00:00')) 'Tomorrow at 01:00', // Carbon::parse('2018-01-07 00:00:00')->addDays(2)->calendar(Carbon::parse('2018-01-07 00:00:00')) 'Ijumanne at 00:00', // Carbon::parse('2018-01-08 00:00:00')->subDay()->calendar(Carbon::parse('2018-01-08 00:00:00')) 'Yesterday at 00:00', // Carbon::parse('2018-01-04 00:00:00')->subDays(1)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Yesterday at 00:00', // Carbon::parse('2018-01-04 00:00:00')->subDays(2)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Last Ijumanne at 00:00', // Carbon::parse('2018-01-04 00:00:00')->subDays(3)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Last Ijumatatu at 00:00', // Carbon::parse('2018-01-04 00:00:00')->subDays(4)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Last Ijumapili at 00:00', // Carbon::parse('2018-01-04 00:00:00')->subDays(5)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Last Ijumamosi at 00:00', // Carbon::parse('2018-01-04 00:00:00')->subDays(6)->calendar(Carbon::parse('2018-01-04 00:00:00')) 'Last Ijumaa at 00:00', // Carbon::parse('2018-01-03 00:00:00')->subDays(6)->calendar(Carbon::parse('2018-01-03 00:00:00')) 'Last Alhamisi at 00:00', // Carbon::parse('2018-01-02 00:00:00')->subDays(6)->calendar(Carbon::parse('2018-01-02 00:00:00')) 'Last Ijumatano at 00:00', // Carbon::parse('2018-01-07 00:00:00')->subDays(2)->calendar(Carbon::parse('2018-01-07 00:00:00')) 'Last Ijumaa at 00:00', // Carbon::parse('2018-01-01 00:00:00')->isoFormat('Qo Mo Do Wo wo') '1st 1st 1st 1st 1st', // Carbon::parse('2018-01-02 00:00:00')->isoFormat('Do wo') '2nd 1st', // Carbon::parse('2018-01-03 00:00:00')->isoFormat('Do wo') '3rd 1st', // Carbon::parse('2018-01-04 00:00:00')->isoFormat('Do wo') '4th 1st', // Carbon::parse('2018-01-05 00:00:00')->isoFormat('Do wo') '5th 1st', // Carbon::parse('2018-01-06 00:00:00')->isoFormat('Do wo') '6th 1st', // Carbon::parse('2018-01-07 00:00:00')->isoFormat('Do wo') '7th 1st', // Carbon::parse('2018-01-11 00:00:00')->isoFormat('Do wo') '11th 2nd', // Carbon::parse('2018-02-09 00:00:00')->isoFormat('DDDo') '40th', // Carbon::parse('2018-02-10 00:00:00')->isoFormat('DDDo') '41st', // Carbon::parse('2018-04-10 00:00:00')->isoFormat('DDDo') '100th', // Carbon::parse('2018-02-10 00:00:00', 'Europe/Paris')->isoFormat('h:mm a z') '12:00 kang’ama CET', // Carbon::parse('2018-02-10 00:00:00')->isoFormat('h:mm A, h:mm a') '12:00 kang’ama, 12:00 kang’ama', // Carbon::parse('2018-02-10 01:30:00')->isoFormat('h:mm A, h:mm a') '1:30 kang’ama, 1:30 kang’ama', // Carbon::parse('2018-02-10 02:00:00')->isoFormat('h:mm A, h:mm a') '2:00 kang’ama, 2:00 kang’ama', // Carbon::parse('2018-02-10 06:00:00')->isoFormat('h:mm A, h:mm a') '6:00 kang’ama, 6:00 kang’ama', // Carbon::parse('2018-02-10 10:00:00')->isoFormat('h:mm A, h:mm a') '10:00 kang’ama, 10:00 kang’ama', // Carbon::parse('2018-02-10 12:00:00')->isoFormat('h:mm A, h:mm a') '12:00 kingoto, 12:00 kingoto', // Carbon::parse('2018-02-10 17:00:00')->isoFormat('h:mm A, h:mm a') '5:00 kingoto, 5:00 kingoto', // Carbon::parse('2018-02-10 21:30:00')->isoFormat('h:mm A, h:mm a') '9:30 kingoto, 9:30 kingoto', // Carbon::parse('2018-02-10 23:00:00')->isoFormat('h:mm A, h:mm a') '11:00 kingoto, 11:00 kingoto', // Carbon::parse('2018-01-01 00:00:00')->ordinal('hour') '0th', // Carbon::now()->subSeconds(1)->diffForHumans() '1 second ago', // Carbon::now()->subSeconds(1)->diffForHumans(null, false, true) '1s ago', // Carbon::now()->subSeconds(2)->diffForHumans() '2 seconds ago', // Carbon::now()->subSeconds(2)->diffForHumans(null, false, true) '2s ago', // Carbon::now()->subMinutes(1)->diffForHumans() '1 minute ago', // Carbon::now()->subMinutes(1)->diffForHumans(null, false, true) '1m ago', // Carbon::now()->subMinutes(2)->diffForHumans() '2 minutes ago', // Carbon::now()->subMinutes(2)->diffForHumans(null, false, true) '2m ago', // Carbon::now()->subHours(1)->diffForHumans() '1 hour ago', // Carbon::now()->subHours(1)->diffForHumans(null, false, true) '1h ago', // Carbon::now()->subHours(2)->diffForHumans() '2 hours ago', // Carbon::now()->subHours(2)->diffForHumans(null, false, true) '2h ago', // Carbon::now()->subDays(1)->diffForHumans() '1 day ago', // Carbon::now()->subDays(1)->diffForHumans(null, false, true) '1d ago', // Carbon::now()->subDays(2)->diffForHumans() '2 days ago', // Carbon::now()->subDays(2)->diffForHumans(null, false, true) '2d ago', // Carbon::now()->subWeeks(1)->diffForHumans() '1 week ago', // Carbon::now()->subWeeks(1)->diffForHumans(null, false, true) '1w ago', // Carbon::now()->subWeeks(2)->diffForHumans() '2 weeks ago', // Carbon::now()->subWeeks(2)->diffForHumans(null, false, true) '2w ago', // Carbon::now()->subMonths(1)->diffForHumans() '1 month ago', // Carbon::now()->subMonths(1)->diffForHumans(null, false, true) '1mo ago', // Carbon::now()->subMonths(2)->diffForHumans() '2 months ago', // Carbon::now()->subMonths(2)->diffForHumans(null, false, true) '2mos ago', // Carbon::now()->subYears(1)->diffForHumans() '1 year ago', // Carbon::now()->subYears(1)->diffForHumans(null, false, true) '1yr ago', // Carbon::now()->subYears(2)->diffForHumans() '2 years ago', // Carbon::now()->subYears(2)->diffForHumans(null, false, true) '2yrs ago', // Carbon::now()->addSecond()->diffForHumans() '1 second from now', // Carbon::now()->addSecond()->diffForHumans(null, false, true) '1s from now', // Carbon::now()->addSecond()->diffForHumans(Carbon::now()) '1 second after', // Carbon::now()->addSecond()->diffForHumans(Carbon::now(), false, true) '1s after', // Carbon::now()->diffForHumans(Carbon::now()->addSecond()) '1 second before', // Carbon::now()->diffForHumans(Carbon::now()->addSecond(), false, true) '1s before', // Carbon::now()->addSecond()->diffForHumans(Carbon::now(), true) '1 second', // Carbon::now()->addSecond()->diffForHumans(Carbon::now(), true, true) '1s', // Carbon::now()->diffForHumans(Carbon::now()->addSecond()->addSecond(), true) '2 seconds', // Carbon::now()->diffForHumans(Carbon::now()->addSecond()->addSecond(), true, true) '2s', // Carbon::now()->addSecond()->diffForHumans(null, false, true, 1) '1s from now', // Carbon::now()->addMinute()->addSecond()->diffForHumans(null, true, false, 2) '1 minute 1 second', // Carbon::now()->addYears(2)->addMonths(3)->addDay()->addSecond()->diffForHumans(null, true, true, 4) '2yrs 3mos 1d 1s', // Carbon::now()->addYears(3)->diffForHumans(null, null, false, 4) '3 years from now', // Carbon::now()->subMonths(5)->diffForHumans(null, null, true, 4) '5mos ago', // Carbon::now()->subYears(2)->subMonths(3)->subDay()->subSecond()->diffForHumans(null, null, true, 4) '2yrs 3mos 1d 1s ago', // Carbon::now()->addWeek()->addHours(10)->diffForHumans(null, true, false, 2) '1 week 10 hours', // Carbon::now()->addWeek()->addDays(6)->diffForHumans(null, true, false, 2) '1 week 6 days', // Carbon::now()->addWeek()->addDays(6)->diffForHumans(null, true, false, 2) '1 week 6 days', // Carbon::now()->addWeek()->addDays(6)->diffForHumans(["join" => true, "parts" => 2]) '1 week and 6 days from now', // Carbon::now()->addWeeks(2)->addHour()->diffForHumans(null, true, false, 2) '2 weeks 1 hour', // Carbon::now()->addHour()->diffForHumans(["aUnit" => true]) 'an hour from now', // CarbonInterval::days(2)->forHumans() '2 days', // CarbonInterval::create('P1DT3H')->forHumans(true) '1d 3h', ]; }
serima/Carbon
tests/Localization/RofTest.php
PHP
mit
11,462
/** * Created by khuongdt on 12/07/2015. * Author : khuongdt * Copyright @ 2015 by OneSoft.,JSC */ goog.provide('com.onesoft.livetube.entity.SCLogout'); goog.require('bigfox.Global'); goog.require('bigfox.core.base.BaseMessage'); goog.require('com.onesoft.livetube.base.LiveTag'); com.onesoft.livetube.entity.SCLogout = function(tag,name,isCore){ goog.base(this,'constructor',tag || com.onesoft.livetube.base.LiveTag.SC_LOGOUT,name || 'SC_LOGOUT', isCore || false); } goog.inherits(com.onesoft.livetube.entity.SCLogout, bigfox.core.base.BaseMessage);
khuongdt/livetube
app/livetube/live/entity/sc/SCLogout.js
JavaScript
mit
563
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <base data-ice="baseUrl" href="../../../../../"> <title data-ice="title">src/templates/semantic/builderEditForm/index.js | formiojs</title> <link type="text/css" rel="stylesheet" href="css/style.css"> <link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css"> <script src="script/prettify/prettify.js"></script> <script src="script/manual.js"></script> <meta name="description" content="JavaScript powered Forms with JSON Form Builder"><meta property="twitter:card" content="summary"><meta property="twitter:title" content="formiojs"><meta property="twitter:description" content="JavaScript powered Forms with JSON Form Builder"></head> <body class="layout-container" data-ice="rootContainer"> <header> <a href="./">Home</a> <a href="identifiers.html">Reference</a> <a href="source.html">Source</a> <div class="search-box"> <span> <img src="./image/search.png"> <span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span> </span> <ul class="search-result"></ul> </div> <a style="position:relative; top:3px;" href="https://github.com/formio/formio.js"><img width="20px" src="./image/github.png"></a></header> <nav class="navigation" data-ice="nav"><div> <ul> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/EventEmitter.js~EventEmitter.html">EventEmitter</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/Form.js~Form.html">Form</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/FormBuilder.js~FormBuilder.html">FormBuilder</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/Formio.js~Formio.html">Formio</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/PDF.js~PDF.html">PDF</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/PDFBuilder.js~PDFBuilder.html">PDFBuilder</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/Webform.js~Webform.html">Webform</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/WebformBuilder.js~WebformBuilder.html">WebformBuilder</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/Wizard.js~Wizard.html">Wizard</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/WizardBuilder.js~WizardBuilder.html">WizardBuilder</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components">components</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/Components.js~Components.html">Components</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components--classes-component">components/_classes/component</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/_classes/component/Component.js~Component.html">Component</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Component">Component</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components--classes-component-editform">components/_classes/component/editForm</a><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-EditFormUtils">EditFormUtils</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components--classes-field">components/_classes/field</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/_classes/field/Field.js~Field.html">Field</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components--classes-input">components/_classes/input</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/_classes/input/Input.js~Input.html">Input</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components--classes-multivalue">components/_classes/multivalue</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/_classes/multivalue/Multivalue.js~Multivalue.html">Multivalue</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components--classes-nested">components/_classes/nested</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/_classes/nested/NestedComponent.js~NestedComponent.html">NestedComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-NestedComponent">NestedComponent</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-address">components/address</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/address/Address.js~AddressComponent.html">AddressComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Address">Address</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-button">components/button</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/button/Button.js~ButtonComponent.html">ButtonComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Button">Button</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-checkbox">components/checkbox</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/checkbox/Checkbox.js~CheckBoxComponent.html">CheckBoxComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Checkbox">Checkbox</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-columns">components/columns</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/columns/Columns.js~ColumnsComponent.html">ColumnsComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Columns">Columns</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-container">components/container</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/container/Container.js~ContainerComponent.html">ContainerComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Container">Container</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-content">components/content</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/content/Content.js~ContentComponent.html">ContentComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Content">Content</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-currency">components/currency</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/currency/Currency.js~CurrencyComponent.html">CurrencyComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Currency">Currency</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-datagrid">components/datagrid</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/datagrid/DataGrid.js~DataGridComponent.html">DataGridComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-DataGrid">DataGrid</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-datamap">components/datamap</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/datamap/DataMap.js~DataMapComponent.html">DataMapComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-DataMap">DataMap</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-datetime">components/datetime</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/datetime/DateTime.js~DateTimeComponent.html">DateTimeComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-DateTime">DateTime</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-day">components/day</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/day/Day.js~DayComponent.html">DayComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Day">Day</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-editgrid">components/editgrid</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/editgrid/EditGrid.js~EditGridComponent.html">EditGridComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-EditGrid">EditGrid</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-email">components/email</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/email/Email.js~EmailComponent.html">EmailComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Email">Email</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-fieldset">components/fieldset</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/fieldset/Fieldset.js~FieldsetComponent.html">FieldsetComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Fieldset">Fieldset</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-file">components/file</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/file/File.js~FileComponent.html">FileComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-File">File</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-form">components/form</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/form/Form.js~FormComponent.html">FormComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Form">Form</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-hidden">components/hidden</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/hidden/Hidden.js~HiddenComponent.html">HiddenComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Hidden">Hidden</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-html">components/html</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/html/HTML.js~HTMLComponent.html">HTMLComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-HTML">HTML</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-number">components/number</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/number/Number.js~NumberComponent.html">NumberComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Number">Number</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-panel">components/panel</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/panel/Panel.js~PanelComponent.html">PanelComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Panel">Panel</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-password">components/password</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/password/Password.js~PasswordComponent.html">PasswordComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Password">Password</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-phonenumber">components/phonenumber</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/phonenumber/PhoneNumber.js~PhoneNumberComponent.html">PhoneNumberComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-PhoneNumber">PhoneNumber</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-radio">components/radio</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/radio/Radio.js~RadioComponent.html">RadioComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Radio">Radio</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-recaptcha">components/recaptcha</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/recaptcha/ReCaptcha.js~ReCaptchaComponent.html">ReCaptchaComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-ReCaptcha">ReCaptcha</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-resource">components/resource</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/resource/Resource.js~ResourceComponent.html">ResourceComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Resource">Resource</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-select">components/select</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/select/Select.js~SelectComponent.html">SelectComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Select">Select</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-selectboxes">components/selectboxes</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/selectboxes/SelectBoxes.js~SelectBoxesComponent.html">SelectBoxesComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-SelectBoxes">SelectBoxes</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-signature">components/signature</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/signature/Signature.js~SignatureComponent.html">SignatureComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Signature">Signature</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-survey">components/survey</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/survey/Survey.js~SurveyComponent.html">SurveyComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Survey">Survey</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-table">components/table</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/table/Table.js~TableComponent.html">TableComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Table">Table</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-tabs">components/tabs</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/tabs/Tabs.js~TabsComponent.html">TabsComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Tabs">Tabs</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-tags">components/tags</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/tags/Tags.js~TagsComponent.html">TagsComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Tags">Tags</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-textarea">components/textarea</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/textarea/TextArea.js~TextAreaComponent.html">TextAreaComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-TextArea">TextArea</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-textfield">components/textfield</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/textfield/TextField.js~TextFieldComponent.html">TextFieldComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-TextField">TextField</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-time">components/time</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/time/Time.js~TimeComponent.html">TimeComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Time">Time</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-tree">components/tree</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/tree/Node.js~Node.html">Node</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/tree/Tree.js~TreeComponent.html">TreeComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Tree">Tree</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-unknown">components/unknown</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/unknown/Unknown.js~UnknownComponent.html">UnknownComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Unknown">Unknown</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-url">components/url</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/url/Url.js~UrlComponent.html">UrlComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Url">Url</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-well">components/well</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/well/Well.js~WellComponent.html">WellComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Well">Well</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#contrib">contrib</a><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-Contrib">Contrib</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#contrib-edittable">contrib/edittable</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/contrib/edittable/EditTable.js~EditTableComponent.html">EditTableComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-EditTable">EditTable</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#contrib-location">contrib/location</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/contrib/location/Location.js~LocationComponent.html">LocationComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Location">Location</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#contrib-modaledit">contrib/modaledit</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/contrib/modaledit/ModalEdit.js~ModalEditComponent.html">ModalEditComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-ModalEdit">ModalEdit</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#contrib-stripe-checkout">contrib/stripe/checkout</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/contrib/stripe/checkout/StripeCheckout.js~StripeCheckoutComponent.html">StripeCheckoutComponent</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#contrib-stripe-stripe">contrib/stripe/stripe</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/contrib/stripe/stripe/Stripe.js~StripeComponent.html">StripeComponent</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#providers">providers</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/providers/Providers.js~Providers.html">Providers</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#providers-storage">providers/storage</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-azure">azure</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-base64">base64</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-dropbox">dropbox</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-indexeddb">indexeddb</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-s3">s3</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-url">url</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-XHR">XHR</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#templates">templates</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/templates/Templates.js~Templates.html">Templates</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#templates-bootstrap">templates/bootstrap</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-iconClass">iconClass</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#templates-bootstrap3">templates/bootstrap3</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-iconClass">iconClass</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#templates-semantic">templates/semantic</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-iconClass">iconClass</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#utils">utils</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/utils/ChoicesWrapper.js~ChoicesWrapper.html">ChoicesWrapper</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-checkInvalidDate">checkInvalidDate</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-lessOrGreater">lessOrGreater</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-applyFormChanges">applyFormChanges</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-eachComponent">eachComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-escapeRegExCharacters">escapeRegExCharacters</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-findComponent">findComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-findComponents">findComponents</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-flattenComponents">flattenComponents</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-formatAsCurrency">formatAsCurrency</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-generateFormChange">generateFormChange</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getComponent">getComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getStrings">getStrings</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getValue">getValue</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-hasCondition">hasCondition</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-isLayoutComponent">isLayoutComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-matchComponent">matchComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-parseFloatExt">parseFloatExt</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-removeComponent">removeComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-searchComponents">searchComponents</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-boolValue">boolValue</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-bootstrapVersion">bootstrapVersion</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-checkCalculated">checkCalculated</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-checkCondition">checkCondition</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-checkCustomConditional">checkCustomConditional</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-checkJsonConditional">checkJsonConditional</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-checkSimpleConditional">checkSimpleConditional</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-checkTrigger">checkTrigger</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-convertFormatToFlatpickr">convertFormatToFlatpickr</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-convertFormatToMask">convertFormatToMask</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-convertFormatToMoment">convertFormatToMoment</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-currentTimezone">currentTimezone</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-delay">delay</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-evaluate">evaluate</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-fieldData">fieldData</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-formatDate">formatDate</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-formatOffset">formatOffset</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getContextComponents">getContextComponents</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getCurrencyAffixes">getCurrencyAffixes</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getDateSetting">getDateSetting</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getElementRect">getElementRect</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getInputMask">getInputMask</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getLocaleDateFormatInfo">getLocaleDateFormatInfo</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getNumberDecimalLimit">getNumberDecimalLimit</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getNumberSeparators">getNumberSeparators</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getPropertyValue">getPropertyValue</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getRandomComponentId">getRandomComponentId</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-guid">guid</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-isInputComponent">isInputComponent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-isMongoId">isMongoId</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-isValidDate">isValidDate</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-iterateKey">iterateKey</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-loadZones">loadZones</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-matchInputMask">matchInputMask</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-momentDate">momentDate</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-observeOverload">observeOverload</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-offsetDate">offsetDate</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-sanitize">sanitize</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-setActionProperty">setActionProperty</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-shouldLoadZones">shouldLoadZones</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-unfold">unfold</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-uniqueKey">uniqueKey</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-uniqueName">uniqueName</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-withSwitch">withSwitch</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-zonesLoaded">zonesLoaded</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-KEY_CODES">KEY_CODES</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-Evaluator">Evaluator</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-CALENDAR_ERROR_MESSAGES">CALENDAR_ERROR_MESSAGES</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-firstNonNil">firstNonNil</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-interpolate">interpolate</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#utils-jsonlogic">utils/jsonlogic</a><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-lodashOperators">lodashOperators</a></span></span></li> <li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#widgets">widgets</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/widgets/CalendarWidget.js~CalendarWidget.html">CalendarWidget</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/widgets/InputWidget.js~InputWidget.html">InputWidget</a></span></span></li> </ul> </div> </nav> <div class="content" data-ice="content"><h1 data-ice="title">src/templates/semantic/builderEditForm/index.js</h1> <pre class="source-code line-number raw-source-code"><code class="prettyprint linenums" data-ice="content">import form from &apos;./form.ejs&apos;; export default { form }; </code></pre> </div> <footer class="footer"> Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(1.1.0)</span><img src="./image/esdoc-logo-mini-black.png"></a> </footer> <script src="script/search_index.js"></script> <script src="script/search.js"></script> <script src="script/pretty-print.js"></script> <script src="script/inherited-summary.js"></script> <script src="script/test-summary.js"></script> <script src="script/inner-link.js"></script> <script src="script/patch-for-local.js"></script> </body> </html>
formio/formio.js
docs/file/src/templates/semantic/builderEditForm/index.js.html
HTML
mit
46,108
#ifndef BUW_MATERIAL_HPP #define BUW_MATERIAL_HPP #include <glm/glm.hpp> #include <glm/vec3.hpp> #include <string> #include "color.hpp" struct Material { std::string name_; Color ka_; Color kd_; Color ks_; float m_; Material(); Material(std::string const& name, Color const& ka, Color const& kd, Color const& ks, float m); std::ostream& print(std::ostream& os) const; Color const& ambient() const; Color const& diffuse() const; Color const& specular() const; float exponent() const; }; std::ostream& operator<<(std::ostream& os, Material const& mat); #endif
S1r0hub/programmiersprachen-raytracer
framework/material.hpp
C++
mit
614
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>TV</title> <script> var televisions = []; function TV(make, model, screenSize, resolution) { this.make = make; this.model = model; this.screenSize = screenSize; this.resolution = resolution; this.isOn = false; this.volumeLevel = 53; this.currentChannel = 69; this.changeChannel = function(channel){ if(this.isOn) this.currentChannel = channel; }; this.changeVolume = function(volume){ if(this.isOn) if(volume >= 0 && volume <= 100) this.volumeLevel = volume; }; this.power = function(){ this.isOn = !this.isOn; }; } function createTV() { var make = document.getElementById('make'); var model = document.getElementById('model'); var screenSize = document.getElementById('screenSize'); var resolution = document.getElementById('resolution'); var volumeLevel = document.getElementById('volumeLevel'); var channel = document.getElementById('channel'); televisions.push(new TV(make.value, model.value, screenSize.value, resolution.value)); make.value = ''; model.value = ''; screenSize.value = ''; resolution.value = ''; volumeLevel.selectedIndex = 0; channel.selectedIndex = 0; } function printTVs() </script> </head> <body> <h1>TV</h1> <label for="make">Brand</label> <input type="text" id="make"/> <br> <label for="model">Model</label> <input type="text" id="model" /> <br> <label for="screenSize">Screen Size</label> <input type="text" id="screenSize"/> <br> <label for="resolution">Resolution</label> <input type="text" id="resolution" /> <br> <label for="volumeLevel">Volume Level</label> <select name="volumeLevel" id="volumeLevel"> </select> <br> <label for="channel">Channel</label> <select name="channel" id="channel"> </select> <br> <input type="submit" value="Create TV" onclick="createTV()"/> <script> var televisions = []; var volumeLevel = document.getElementById('volumeLevel'); var option = null; for(var i = 0; i <= 100; i++) { option = document.createElement('option'); //Creates Option Element option.value = i; //Sets the value to i option.innerHTML = i; //Sets the Label to i volumeLevel.appendChild(option); //Adds the child to the parent element } var channel = document.getElementById('channel'); var option = null; for(var i = 0; i <= 69; i++) { option = document.createElement('option'); //Creates Option Element option.value = i; //Sets the value to i option.innerHTML = i; //Sets the Label to i channel.appendChild(option); //Adds the child to the parent element } var otherInputs = ['HDMI 1', 'HDMI 2', 'S Video', 'Component']; for(var j = 0; j < otherInputs.length; j++) { option = document.createElement('option'); option.value = otherInputs[j]; option.innerHTML = otherInputs[j]; channel.appendChild(option); } </script> </body> </html>
rogermle/bootcamp-feb9
week1/day1/exercises/dom_tv2.html
HTML
mit
2,962
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Dhwani 2010 CET | REG</title> <meta http-equiv="Content-Language" content="en" /> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> <script src="js/jquery.min.1.4.2.js" type="text/javascript"></script> <script src="js/main.js" type="text/javascript"></script> </head>
cetfosscell/dhwanierp
dhwani1/registration/head.php
PHP
mit
396
require File.expand_path("../../lib/bootlace", __FILE__) require 'test_helper' class BootlaceTest < MiniTest::Unit::TestCase include TestHelpers def test_reality Bootlace.strap_up do |b| assert_equal b, Bootlace.base end end end
highgroove/bootlace
test/bootlace_test.rb
Ruby
mit
251
/* jslint node: true */ 'use strict'; var cfg = require('../../../config.json'); exports.validNick = function(nickname) { var regex = /^\w*$/; return regex.exec(nickname) !== null; }; // determine mass from radius of circle exports.massToRadius = function (mass) { return 4 + Math.sqrt(mass) * 6; }; // overwrite Math.log function exports.log = (function () { var log = Math.log; return function (n, base) { return log(n) / (base ? log(base) : 1); }; })(); // get the Euclidean distance between the edges of two shapes exports.getDistance = function (p1, p2) { return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) - p1.radius - p2.radius; }; exports.randomInRange = function (from, to) { return Math.floor(Math.random() * (to - from)) + from; }; // generate a random position within the field of play exports.randomPosition = function (radius) { return { x: exports.randomInRange(radius, cfg.gameWidth - radius), y: exports.randomInRange(radius, cfg.gameHeight - radius) }; }; exports.uniformPosition = function(points, radius) { var bestCandidate, maxDistance = 0; var numberOfCandidates = 10; if (points.length === 0) { return exports.randomPosition(radius); } // Generate the cadidates for (var ci = 0; ci < numberOfCandidates; ci++) { var minDistance = Infinity; var candidate = exports.randomPosition(radius); candidate.radius = radius; for (var pi = 0; pi < points.length; pi++) { var distance = exports.getDistance(candidate, points[pi]); if (distance < minDistance) { minDistance = distance; } } if (minDistance > maxDistance) { bestCandidate = candidate; maxDistance = minDistance; } else { return exports.randomPosition(radius); } } return bestCandidate; }; exports.findIndex = function(arr, id) { var len = arr.length; while (len--) { if (arr[len].id === id) { return len; } } return -1; }; exports.randomColor = function() { var color = '#' + ('00000' + (Math.random() * (1 << 24) | 0).toString(16)).slice(-6); var c = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(color); var r = (parseInt(c[1], 16) - 32) > 0 ? (parseInt(c[1], 16) - 32) : 0; var g = (parseInt(c[2], 16) - 32) > 0 ? (parseInt(c[2], 16) - 32) : 0; var b = (parseInt(c[3], 16) - 32) > 0 ? (parseInt(c[3], 16) - 32) : 0; return { fill: color, border: '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1) }; };
Faris90/lagario
src/server/lib/util.js
JavaScript
mit
2,688
layout: - post title: 'SelfStore' date: 2014-07-26 00:00:00 categories: 网摘 tags: 创意事物 --- <a href="http://xinpinla.com/product/286" title="查看产品详情"> 数字作品售卖社区,Writings.io 创始人 chloerei 新项目 </a> 更多详情请参考相关网站 [SelfStore](https://selfstore.io/) 本站数据以 [新品啦](http://xinpinla.com/) 作为入口点进行爬取! 并自动发布于github pages上。
buf1024/xinpinla-crawler
hexo/source/_posts/2014-07-26-SelfStore.md
Markdown
mit
462
.reveal .slides { text-align: left; } aside.controls { display: none; } div.slide-number { display: none !important; } .reveal .slides section.title { background-position: 40px 40px; }
holisticon/holisticon.github.io
presentations/reactive-systems/css/pdf.css
CSS
mit
196
package com.tobykurien.jozijug; import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.ContactsContract; import android.view.View; import android.widget.Toast; public class JoziJugActivity extends Activity { private static final int PICK_CONTACT = 1; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == PICK_CONTACT && resultCode == RESULT_OK) { Cursor c = managedQuery(data.getData(), null, null, null, null); c.moveToNext(); String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME)); Toast.makeText(this, "You picked: " + name, Toast.LENGTH_LONG).show(); return; } super.onActivityResult(requestCode, resultCode, data); } public void onLocation(View v) { Uri uri = Uri.parse("geo:0,0?q=-26.0424,28.0237 (JoziJUG)"); Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri); startActivity(intent); } public void onWebsite(View v) { Uri uri = Uri.parse("http://www.jozijug.co.za"); Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri); startActivity(intent); } public void onContact(View v) { Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(intent, PICK_CONTACT); } public void onMembers(View v) { Intent i = new Intent(this, Members.class); startActivity(i); } }
tobykurien/JoziJug
src/com/tobykurien/jozijug/JoziJugActivity.java
Java
mit
1,702
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22b.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-22b.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory for a string, but do not allocate space for NULL terminator * GoodSource: Allocate enough memory for a string and the NULL terminator * Sink: cpy * BadSink : Copy string to data using strcpy() * Flow Variant: 22 Control flow: Flow controlled by value of a global variable. Sink functions are in a separate file from sources. * * */ #include "std_testcase.h" #ifndef _WIN32 #include <wchar.h> #endif /* MAINTENANCE NOTE: The length of this string should equal the 10 */ #define SRC_STRING "AAAAAAAAAA" #ifndef OMITBAD /* The global variable below is used to drive control flow in the source function */ extern int CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22_badGlobal; char * CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22_badSource(char * data) { if(CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22_badGlobal) { /* FLAW: Did not leave space for a null terminator */ data = (char *)malloc(10*sizeof(char)); } return data; } #endif /* OMITBAD */ #ifndef OMITGOOD /* The global variables below are used to drive control flow in the source functions. */ extern int CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22_goodG2B1Global; extern int CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22_goodG2B2Global; /* goodG2B1() - use goodsource and badsink by setting the static variable to false instead of true */ char * CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22_goodG2B1Source(char * data) { if(CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22_goodG2B1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Allocate space for a null terminator */ data = (char *)malloc((10+1)*sizeof(char)); } return data; } /* goodG2B2() - use goodsource and badsink by reversing the blocks in the if in the source function */ char * CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22_goodG2B2Source(char * data) { if(CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22_goodG2B2Global) { /* FIX: Allocate space for a null terminator */ data = (char *)malloc((10+1)*sizeof(char)); } return data; } #endif /* OMITGOOD */
maurer/tiamat
samples/Juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s06/CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22b.c
C
mit
2,674
using Microsoft.Win32; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Windows; using System.Windows.Input; using System.Xml.Linq; using SchematicControls; namespace LiveSPICE { /// <summary> /// Control for interacting with a Circuit.Schematic. /// </summary> public class SchematicEditor : SchematicControl { public const string FileExtension = "schx"; public SchematicEditor() : this(new Circuit.Schematic()) { } public SchematicEditor(string FileName) : this(Circuit.Schematic.Load(FileName)) { SetFilePath(FileName); } public SchematicEditor(Circuit.Schematic Schematic) : base(Schematic) { InitializeComponent(); CommandBindings.Add(new CommandBinding(ApplicationCommands.Save, Save_Executed)); CommandBindings.Add(new CommandBinding(ApplicationCommands.SaveAs, SaveAs_Executed)); CommandBindings.Add(new CommandBinding(ApplicationCommands.Delete, Delete_Executed, Delete_CanExecute)); CommandBindings.Add(new CommandBinding(ApplicationCommands.Cut, Cut_Executed, Cut_CanExecute)); CommandBindings.Add(new CommandBinding(ApplicationCommands.Copy, Copy_Executed, Copy_CanExecute)); CommandBindings.Add(new CommandBinding(ApplicationCommands.Paste, Paste_Executed, Paste_CanExecute)); CommandBindings.Add(new CommandBinding(ApplicationCommands.SelectAll, SelectAll_Executed, SelectAll_CanExecute)); CommandBindings.Add(new CommandBinding(ApplicationCommands.Undo, Undo_Executed, Undo_CanExecute)); CommandBindings.Add(new CommandBinding(ApplicationCommands.Redo, Redo_Executed, Redo_CanExecute)); Focusable = true; Cursor = Cursors.Cross; edits = new EditStack(); Tool = new SelectionTool(this); Width = 1600; Height = 1600; Origin = SnapToGrid(new Circuit.Coord((int)Width / 2, (int)Height / 2)); } private EditStack edits; public EditStack Edits { get { return edits; } } // File. private DateTime accessed = DateTime.Now; private string filepath = null; private void SetFilePath(string FilePath) { filepath = FilePath; Touch(); NotifyChanged(nameof(FilePath)); NotifyChanged(nameof(Title)); } public string FilePath { get { return filepath == null ? "Untitled" : filepath; } } public string Title { get { return filepath == null ? "<Untitled>" : System.IO.Path.GetFileNameWithoutExtension(filepath); } } public bool Save() { if (filepath == null) return SaveAs(); else return Save(filepath); } public bool SaveAs() { SaveFileDialog dlg = new SaveFileDialog() { InitialDirectory = filepath != null ? System.IO.Path.GetDirectoryName(filepath) : App.Current.UserDocuments.FullName, FileName = Title, Filter = "Circuit Schematics|*." + FileExtension + "|XML Files|*.xml|All Files|*.*", DefaultExt = FileExtension }; dlg.CustomPlaces.Add(new FileDialogCustomPlace(App.Current.UserDocuments.FullName)); if (dlg.ShowDialog(Application.Current.MainWindow) ?? false) return Save(dlg.FileName); else return false; } public bool CanClose(bool Reverting) { if (Edits == null || !Edits.Dirty) return true; if (Reverting) { switch (MessageBox.Show(Application.Current.MainWindow, "Revert changes to '" + Title + "'?", Application.Current.MainWindow.Title, MessageBoxButton.OKCancel, MessageBoxImage.Warning)) { case MessageBoxResult.OK: return true; case MessageBoxResult.Cancel: return false; } } else { switch (MessageBox.Show(Application.Current.MainWindow, "Save '" + Title + "'?", Application.Current.MainWindow.Title, MessageBoxButton.YesNoCancel, MessageBoxImage.Warning)) { case MessageBoxResult.Yes: return Save(); case MessageBoxResult.No: return true; case MessageBoxResult.Cancel: return false; } } return true; } public bool CanClose() { return CanClose(false); } private bool Save(string FileName) { try { Schematic.Save(FileName); SetFilePath(FileName); Edits.Dirty = false; App.Current.Settings.Used(filepath); return true; } catch (Exception Ex) { MessageBox.Show(Application.Current.MainWindow, Ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); return false; } } private void Save_Executed(object sender, ExecutedRoutedEventArgs e) { Save(); } private void SaveAs_Executed(object sender, ExecutedRoutedEventArgs e) { SaveAs(); } public bool CheckForModifications() { if (filepath != null && System.IO.File.Exists(filepath) && System.IO.File.GetLastWriteTime(filepath) > accessed) { accessed = DateTime.Now; Edits.Dirty = true; return true; } else { return false; } } public void Touch() { accessed = DateTime.Now; } public static SchematicEditor Open(string FileName) { try { SchematicEditor editor = new SchematicEditor(FileName); App.Current.Settings.Used(FileName); return editor; } catch (Exception) { App.Current.Settings.RemoveFromMru(FileName); throw; } } // Edit. public void Cut() { Copy(); Remove(Selected); } public void Copy() { XElement copy = new XElement("Schematic"); foreach (Circuit.Element i in Selected) copy.Add(i.Serialize()); Clipboard.SetData(DataFormats.StringFormat, copy.ToString()); } public void Paste() { try { XElement X = XElement.Parse(Clipboard.GetData(DataFormats.StringFormat) as string); List<Circuit.Element> copied = X.Elements("Element").Select(i => Circuit.Element.Deserialize(i)).ToList(); Add(copied); Select(copied, true, false); } catch (Exception) { } } public void Delete() { Remove(Selected); } private void Delete_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = !Selected.Empty(); } private void SelectAll_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = !Elements.Empty(); } private void Cut_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = !Selected.Empty(); } private void Copy_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = !Selected.Empty(); } private void Paste_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = Clipboard.ContainsData(DataFormats.StringFormat); } private void Undo_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = Edits.CanUndo(); } private void Redo_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = Edits.CanRedo(); } private void Delete_Executed(object sender, ExecutedRoutedEventArgs e) { Remove(Selected); } private void SelectAll_Executed(object sender, ExecutedRoutedEventArgs e) { Select(Elements); } private void Cut_Executed(object sender, ExecutedRoutedEventArgs e) { Cut(); } private void Copy_Executed(object sender, ExecutedRoutedEventArgs e) { Copy(); } private void Paste_Executed(object sender, ExecutedRoutedEventArgs e) { Paste(); } private void Undo_Executed(object sender, ExecutedRoutedEventArgs e) { Edits.Undo(); } private void Redo_Executed(object sender, ExecutedRoutedEventArgs e) { Edits.Redo(); } // Elements. public void Add(IEnumerable<Circuit.Element> Elements) { if (!Elements.Any()) return; Edits.Do(new AddElements(Schematic, Elements)); } public void Remove(IEnumerable<Circuit.Element> Elements) { if (!Elements.Any()) return; Edits.Do(new RemoveElements(Schematic, Elements)); } public void Add(params Circuit.Element[] Elements) { Add(Elements.AsEnumerable()); } public void Remove(params Circuit.Element[] Elements) { Remove(Elements.AsEnumerable()); } public List<Circuit.Coord> FindWirePath(List<Circuit.Coord> Mouse) { Circuit.Coord A = Mouse.First(); Circuit.Coord B = Mouse.Last(); // Candidate wire paths. List<List<Circuit.Coord>> Candidates = new List<List<Circuit.Coord>>() { new List<Circuit.Coord>() { A, new Circuit.Coord(A.x, B.y), B }, new List<Circuit.Coord>() { A, new Circuit.Coord(B.x, A.y), B }, }; // Find the path with the minimum cost: // - Distance from mouse path. // - TODO: Avoids existing symbols? return Candidates.ArgMin(i => { double d = 0.0; foreach (Circuit.Coord j in Mouse) { double dj = double.PositiveInfinity; for (int k = 0; k < i.Count - 1; ++k) { Circuit.Coord a = i[k]; Circuit.Coord b = i[k + 1]; dj = Math.Min(dj, Distance(a, b, j)); } d += dj; } return d; }); } private IEnumerable<Circuit.Wire> CoincidentWires(Circuit.Coord A, Circuit.Coord B) { return Wires.Where(i => Circuit.Wire.PointOnLine(A, i.A, i.B) && Circuit.Wire.PointOnLine(B, i.A, i.B) && ( Circuit.Wire.PointOnSegment(A, i.A, i.B) || Circuit.Wire.PointOnSegment(B, i.A, i.B) || Circuit.Wire.PointOnSegment(i.A, A, B) || Circuit.Wire.PointOnSegment(i.B, A, B))); } public void AddWire(Circuit.Coord A, Circuit.Coord B) { if (A == B) return; Debug.Assert(A.x == B.x || A.y == B.y); Edits.BeginEditGroup(); // Find all of the wires that are parallel and overlapping this wire. List<Circuit.Wire> overlapping = CoincidentWires(A, B).ToList(); bool selected = overlapping.Any(i => ((WireControl)i.Tag).Selected); Circuit.Coord a = new Circuit.Coord( overlapping.Min(i => Math.Min(i.A.x, i.B.x), Math.Min(A.x, B.x)), overlapping.Min(i => Math.Min(i.A.y, i.B.y), Math.Min(A.y, B.y))); Circuit.Coord b = new Circuit.Coord( overlapping.Max(i => Math.Max(i.A.x, i.B.x), Math.Max(A.x, B.x)), overlapping.Max(i => Math.Max(i.A.y, i.B.y), Math.Max(A.y, B.y))); List<Circuit.Coord> terminals = new List<Circuit.Coord>() { a, b }; foreach (Circuit.Element i in InRect(a - 1, b + 1)) { // Find all of the terminals between a and b. foreach (Circuit.Terminal j in i.Terminals) { if (Circuit.Wire.PointOnSegment(i.MapTerminal(j), a, b)) { // If i is not a wire, or it is a wire that is not coincident with a, b, add the terminal to the list. if (!(i is Circuit.Wire) || i.Terminals.Any(k => !Circuit.Wire.PointOnLine(i.MapTerminal(k), a, b))) terminals.Add(i.MapTerminal(j)); } } // If i is a Wire that crosses a, b, add a terminal at the intersection. if (i is Circuit.Wire) { Circuit.Wire w = (Circuit.Wire)i; Circuit.Coord ia = w.MapTerminal(w.Anode); Circuit.Coord ib = w.MapTerminal(w.Cathode); // If one of A, B is intersecting this wire, we shouldn't merge wires across this point. if (Circuit.Wire.PointOnLine(A, ia, ib) && !Circuit.Wire.PointOnLine(B, ia, ib)) terminals.Add(A); else if (Circuit.Wire.PointOnLine(B, ia, ib) && !Circuit.Wire.PointOnLine(A, ia, ib)) terminals.Add(B); } } terminals.Sort((t1, t2) => t1.x == t2.x ? t1.y.CompareTo(t2.y) : t1.x.CompareTo(t2.x)); // Remove the original wires, and add new ones between each terminal between a and b. Remove(overlapping); for (int i = 0; i < terminals.Count - 1; ++i) if (terminals[i] != terminals[i + 1]) Add(new Circuit.Wire(terminals[i], terminals[i + 1])); Edits.EndEditGroup(); } public void AddWire(IList<Circuit.Coord> x) { Edits.BeginEditGroup(); for (int i = 0; i < x.Count - 1; ++i) AddWire(x[i], x[i + 1]); Edits.EndEditGroup(); } protected void OnLayoutChanged(object sender, EventArgs e) { Circuit.Element E = (Circuit.Element)sender; } private static double Distance(Circuit.Coord x1, Circuit.Coord x2) { Circuit.Coord dx = x2 - x1; return Math.Sqrt(dx * dx); } private static double Distance(Circuit.Coord x1, Circuit.Coord x2, Circuit.Coord p) { // TODO: This is wrong. return Math.Min( Math.Min(Distance(p, x1), Distance(p, x2)), x1.y == x2.y ? Math.Abs(p.y - x1.y) : Math.Abs(p.x - x1.x)); } } }
dsharlet/LiveSPICE
LiveSPICE/Controls/Editor/SchematicEditor.cs
C#
mit
14,708
using Chloe.Server.Models; namespace Chloe.Server.Dtos { public class ProfileSettingDto { public ProfileSettingDto(ProfileSetting entity) { this.Id = entity.Id; this.Name = entity.Name; } public ProfileSettingDto() { } public int Id { get; set; } public string Name { get; set; } } }
QuinntyneBrown/you-tube-video-manager
Server/Dtos/ProfileSettingDto.cs
C#
mit
400
package vaadin.scala import vaadin.scala.mixins.ListSelectMixin package mixins { trait ListSelectMixin extends AbstractSelectMixin } class ListSelect(override val p: com.vaadin.ui.ListSelect with ListSelectMixin = new com.vaadin.ui.ListSelect with ListSelectMixin) extends AbstractSelect(p) with MultiSelectable { def rows = p.getRows def rows_=(rows: Int) = p.setRows(rows) def columns = p.getColumns def columns_=(columns: Int) = p.setColumns(columns) }
CloudInABox/scalavaadinutils
src/main/scala/vaadin/scala/ListSelect.scala
Scala
mit
470
export const CODE_LENGTH = 12 export const ALL_DIGITS = /^\d+$/ export const normalizedValue = (value) => { const { length } = value const systemDigitMissing = !value.startsWith('0') return length == CODE_LENGTH - 1 && systemDigitMissing ? '0' + value : value } export const passesCheckDigitVerification = (value) => { const digits = value.split('') const targetCheckDigit = parseInt(digits[CODE_LENGTH - 1], 10) const targetDigits = digits.slice(0, CODE_LENGTH - 1) const sum = targetDigits.reduce(function(total, digit, index) { const isOneBasedOddPositionedNumber = index % 2 === 0 const parsedDigit = parseInt(digit, 10) return total + (isOneBasedOddPositionedNumber ? parsedDigit * 3 : parsedDigit) }, 0) const sumModTen = sum % 10 const checkDigit = sumModTen === 0 ? sumModTen : 10 - sumModTen return checkDigit === targetCheckDigit }
armw4/redux-samples
client/lib/upc-a.js
JavaScript
mit
884
# CarLog Backend This folder contains the node.js backend API server for CarLog. ## Configuration System configuration values are stored in `config/env/`, in a file named after the `NODE_ENV` environment variable, defaulting to `development`. Setting this environment variable allows overriding the configuration used. As a convenience, there is a git ignore in place for dev-*.coffee (e.g., set NODE_ENV=dev-test and dev-test.coffee will be loaded and used for configuration). MongoDB is required. With the default development environment configuration, the server will attempt to use the database `carlog_dev` on `localhost`. ## Running To fire up the server, `npm run server` may be used. Alternatively, if coffee-script is installed globally, you can run `coffee server.coffee`.
carlogio/carlog
backend/readme.md
Markdown
mit
788
<?php $attributes = array('class' => 'form-horizontal', 'id' => 'delete_publicacion'); echo form_open(base_url('control/publicaciones/delete/'.$query->id), $attributes); echo '<fieldset>'.form_hidden('id', $query->id); ?> <legend><?php echo $title ?></legend> <div class="well well-large well-transparent"> <!-- <p>Categoria id: <?php #echo $nombre_categoria = $this->categoria->traer_nombre($query->categoria_id); ?></p> --> <p>Titulo: <?php echo $query->titulo; ?></p> <p>Descripcion_corta: <?php echo $query->descripcion_corta; ?></p> <p>Descripcion_completa: <?php echo $query->descripcion_completa; ?></p> <p>Owner: <?php echo $query->owner; ?></p> <p>Visitas: <?php echo $query->visitas; ?></p> <p>Tags: <?php echo $query->tags; ?></p> <p>Categoria_id: <?php echo $query->categoria_id; ?></p> <p>Provincia_id: <?php echo $query->provincia_id; ?></p> <p>Ciudad: <?php echo $query->ciudad; ?></p> <p>Modalidad_horarios: <?php echo $query->modalidad_horarios; ?></p> <p>Finalizado: <?php echo $query->finalizado; ?></p> <p>Aprobado: <?php echo $query->aprobado; ?></p> <p>Slug: <?php echo $query->slug; ?></p> <!-- --> <div class="control-group"> <label class="checkbox inline"> <p style="margin-left:1.3em"><input type="checkbox" name="comfirm" id="comfirm" /> Confirma eliminar?</p> <?php echo form_error('comfirm','<p class="error">', '</p>'); ?> </label> </div> <!-- --> <div class="control-group"> <button class="btn btn-danger" type="submit"><i class="icon-trash icon-large"></i> Eliminar</button> </div> </fieldset> <?php echo form_close(); ?>
hubermann/enlobos
application/views/control/publicaciones/comfirm_delete.php
PHP
mit
1,583
-- Compare this against topic volume query to see that it aggregates -- from data here. SELECT id, topic, DATE(timestamp) AS date, timestamp, volume FROM Trend ORDER BY topic, timestamp ;
MichaelCurrin/twitterverse
app/lib/db_query/sql/development/topicVolumeTest.sql
SQL
mit
189
## IAP (Identity Aware Proxy) Authentication into Laravel When IAP is turned on, you need a way to validate it's presence for the session, plus register the session with Laravel's user system. For this, we validate each request statelessly, using the request headers (from the remnents of the Users API). ### Usage **1.** Register the service provider in `config/app.php`: ```php 'providers' => [ A1comms\GaeSupportLaravel\Auth\AuthServiceProvider::class, ]; ``` **2.** Switch to our handler in `config/auth.php`: ```php 'guards' => [ 'web' => [ 'driver' => 'gae-combined-iap', ], 'api' => [ 'driver' => 'gae-combined-iap', ], ], ``` **3.** Add the expected audience (from "Signed Header JWT Audience" in Cloud Console, under IAP) to the environment. Usually done via a line in `.env`, e.g. : ```bash IAP_AUDIENCE="/projects/<project_id>/apps/<project_name>" ``` **4.** Then to enable it for all requests (rather than via request middleware), add this in `app/Http/Kernel.php`: ```php /** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ 'web' => [ \Illuminate\Auth\Middleware\Authenticate::class, ... ], 'api' => [ \Illuminate\Auth\Middleware\Authenticate::class, ... ], ]; ``` **5.** The default action for failed authentication is to redirect to a guest accessible login page, but that won't work here. You'll probably want to add this into `app/Exceptions/Handler.php`: ```php /** * Convert an authentication exception into a response. * * @param \Illuminate\Http\Request $request * @param \Illuminate\Auth\AuthenticationException $exception * @return \Illuminate\Http\Response */ protected function unauthenticated($request, \Illuminate\Auth\AuthenticationException $exception) { return $request->expectsJson() ? response()->json(['message' => $exception->getMessage()], 401) : response($exception->getMessage(), 401); } ``` **6.** To demonstrate our ability to view the signed in user's email, try adding this in `routes/web.php`: ```php Route::get('/user/email', function () { return Auth::id(); }); ``` ### Custom User Model By default, the user object returned is an instance of `A1comms\GaeSupportLaravel\Auth\Model\IAPUser`. To use your own custom user model, you can setup a "null" provider. To enable it, add the following to your `config/auth.php` file: ```php 'defaults' => [ 'provider' => 'null' ], 'providers' => [ 'null' => [ 'driver' => 'null', 'model' => App\User::class, ], ], ``` where `App\User::class` is the model you'd like to use. The "null" provider will not do any lookups, queries or validation, it simply returns a new instance of the model filled with user information. It will try to use the `fill` function to insert a value into the field returned by `getAuthIdentifierName` function, which in Eloquent is the name of the primary key field. So long as you don't try to save the `User` model, you should be able to use an Eloquent model and even join it to other models, without needing a database table and remaining fully stateless (except of course any records you create joined to our virtual `User` record). An example modified `App\User` model can be found below: ```php <?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use A1comms\GaeSupportLaravel\Auth\Contracts\NullUserModel; class User extends Authenticatable implements NullUserModel { use Notifiable; /** * The primary key for the model. * * @var string */ protected $primaryKey = 'email'; /** * The "type" of the auto-incrementing ID. * * @var string */ protected $keyType = 'varchar'; /** * Indicates if the IDs are auto-incrementing. * * @var bool */ public $incrementing = false; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'email', 'password', ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; } ```
a1comms/GaeSupportLaravel
docs/iap-auth-verify.md
Markdown
mit
4,685
<?php /** * Site * * @author Maxence CAUDERLIER * @link https://github.com/ZestCMS/ZestCMS * @license http://opensource.org/licenses/MIT The MIT License */ namespace Zest\Responses; /** * Container to inject templates * When Response is returned on Zest class, output() is called */ class Site { /** @var string Page title */ protected $title; /** @var array Templates collection to display */ protected $tpl = []; /** @var array Messages to display to User */ protected $flashMsg = []; /** * Set the page title * * @param string Page title */ public function setTitle($title) { $this->title = $title; } /** * Add a template to the collection to display * * @param \Zest\Templates\Template Template to display */ public function addTemplate(\Zest\Templates\Template $template) { $this->tpl[] = $template; } /** * Display the response * * @return string Content of all tpl added */ public function output() { $layout = new \Zest\Templates\Template('layout.tpl'); $layout->set('page_title', $this->title); $layout = $this->fillFlashMessages($layout); $content = ''; foreach ($this->tpl as $tpl) { $content .= $tpl->output(); } $layout->set('content', $content); return $layout->output(); } /** * Add a Flash message to display at user on the page * Message can be seen only one time * * @param \Zest\Utils\Message Message to display */ public function addFlashMessage(\Zest\Utils\Message $message) { $this->flashMsg[$message->name] = $message; } /** * Fill the layout with all flash messages * * @param \Zest\Templates\Template Layout to add the flash messages * @return \Zest\Templates\Template */ protected function fillFlashMessages($layout) { $flashTpl = new \Zest\Templates\StringTemplate("{% for MSG in FLASH_MSG %} {{ MSG }} {% endfor %}"); $flashTpl->set('FLASH_MSG', $this->flashMsg); $layout->set('FLASH_MESSAGES', $flashTpl->output()); return $layout; } }
ZestCMS/ZestCMS
zest/zest/responses/Site.php
PHP
mit
2,356
module Main where data MyBool = MyTrue | MyFalse foo a MyFalse b = 0 foo c MyTrue d = 1 bar a = 2 main_ = foo 1 MyFalse 2
Ekleog/hasklate
examples/BasicPatternMatching.hs
Haskell
mit
126
# Privateer Privateer provides an interface for integrating private apps with the Shopify API. [![Build Status](https://travis-ci.org/plainprogrammer/privateer.png?branch=master)](https://travis-ci.org/plainprogrammer/privateer) [![Code Climate](https://codeclimate.com/github/plainprogrammer/privateer.png)](https://codeclimate.com/github/plainprogrammer/privateer) ## Installation Add this line to your application's Gemfile: gem 'privateer' And then execute: $ bundle Or install it yourself as: $ gem install privateer ## Normal Usage store = Privateer::Connection.new(store_name: 'test', api_key: 'testkey', password: 'secret') ## Advanced Usage The Shopify API may move faster than this gem gets updated. To cope with that we have four basic methods exposed by Privateer::Connection to allow you to work around things that are missing in our implementation: store.get('products', {}) store.post('products', {}) store.put('products', {}) store.delete('products', {}) Everything in this gem is built on those four core methods, and since we expose them to you it is easy to make up for anything we happen to miss. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
plainprogrammer/privateer
README.md
Markdown
mit
1,403
class FnordMetric::Namespace attr_reader :handlers, :gauges, :opts, :key @@opts = [:event, :gauge, :widget, :set_title] @@multi_gauges = [:timeseries_gauge, :toplist_gauge, :distribution_gauge] def initialize(key, opts) @gauges = Hash.new @handlers = Hash.new.with_indifferent_access @title = key @opts = opts @key = key #@flags = { # :hide_active_users => (FnordMetric.options[:enable_active_users] == false), # :hide_gauge_explorer => (FnordMetric.options[:enable_gauge_explorer] == false) #} end def ready!(redis, sync_redis = nil) @redis = redis @sync_redis = sync_redis load_gauges self end def announce(event) if !@flags[:hide_active_users] announce_to_timeline(event) announce_to_typelist(event) end if event[:_session] event[:_session_key] = announce_to_session(event).session_key end if event[:_type].to_sym == :_enterprise ctx = FnordMetric::Context.new(opts, FnordMetric::Enterprise::CompatibilityHandler) ctx.call(event, @redis, self) return self end if FnordMetric::ZeroConfigGauge::TYPES.include?(event[:_type].to_sym) ctx = FnordMetric::Context.new(opts, FnordMetric::ZeroConfigGauge::Handler) ctx.call(event, @redis, self) return self end res = [ @handlers[event[:_type].to_s], @handlers["*"] ].flatten.compact.each do |context| context.call(event, @redis, self) end.size if res == 0 FnordMetric.error("no handler for event-type: #{event[:_type]}") end self end def announce_to_session(event) FnordMetric::Session.create(@opts.clone.merge( :namespace_key => @key, :namespace_prefix => key_prefix, :redis => @redis, :event => event )) end def announce_to_timeline(event) timeline_key = key_prefix(:timeline) @redis.zadd(timeline_key, event[:_time], event[:_eid]) end def announce_to_typelist(event) typelist_key = key_prefix("type-#{event[:_type]}") @redis.lpush(typelist_key, event[:_eid]) end def key_prefix(append=nil) [@opts[:redis_prefix], @key, append].compact.join("-") end def token @key end def title @title end #def dashboards(name=nil, opts = {}) # return @dashboards unless name # dash = FnordMetric::Dashboard.new(opts.merge(:title => name)) # @dashboards[dash.token.to_s] ||= dash #end def sessions(_ids, opts={}) return FnordMetric::Session.all(extend_opts(opts)) if _ids == :all end def events(_ids, opts={}) return FnordMetric::Event.all(extend_opts(opts)) if _ids == :all return FnordMetric::Event.by_type(opts.delete(:type), extend_opts(opts)) if _ids == :by_type return FnordMetric::Event.by_session_key(opts.delete(:session_key), extend_opts(opts)) if _ids == :by_session_key end def method_missing(m, *args, &block) return send(:opt_multigauge, *args.unshift(m), &block) if @@multi_gauges.include?(m) raise "unknown option: #{m}" unless @@opts.include?(m) send(:"opt_#{m}", *args, &block) end #def opt_hide_active_users # @flags[:hide_active_users] = true #end #def opt_hide_gauge_explorer # @flags[:hide_gauge_explorer] = true #end #def opt_hide_overview # @flags[:hide_overview] = true #end def opt_set_title(title) @title = title end def opt_event(event_type, opts={}, &block) FnordMetric::Context.new(opts, block).tap do |context| @handlers[event_type.to_s] ||= [] @handlers[event_type.to_s] << context end end def opt_gauge(gauge_key, opts={}) opts.merge!(:key => gauge_key) store_gauge(gauge_key, opts) if opts[:zero_config] opts.merge!(:key_prefix => key_prefix) klass = "FnordMetric::#{(opts[:type] || "").to_s.camelize}Gauge".constantize @gauges[gauge_key] ||= klass.new(opts) end def opt_multigauge(gauge_type, gauge_key, opts={}) opts.merge!(:key => gauge_key, :key_prefix => key_prefix) klass = "FnordMetric::#{gauge_type.to_s.camelize}" @gauges[gauge_key] ||= klass.constantize.new(opts) end #def opt_widget(dashboard, widget) # widget = build_widget(widget) if widget.is_a?(Hash) # dashboards(dashboard).add_widget(widget) #end #def opt_dashboard(dashboard, opts) # dashboards(dashboard, opts) #end #def build_widget(opts) # _gauges = [opts[:gauges]].flatten.map do |g| # @gauges[g] || FnordMetric::ZeroConfigGauge.new(g, self) # end # widget_klass = "FnordMetric::#{opts.fetch(:type).to_s.capitalize}Widget" # widget_klass.constantize.new(opts.merge(:gauges => _gauges)) #end def store_gauge(gauge_key, opts) gaugelist_key = key_prefix("zero-config-gauges") sync_redis.hset(gaugelist_key, gauge_key, opts.to_json) end def load_gauges gaugelist_key = key_prefix("zero-config-gauges") sync_redis.hgetall(gaugelist_key).each do |gauge_key, gauge_opts| gopts = JSON.parse(gauge_opts).symbolize_keys gopts.delete(:zero_config) opt_gauge(gauge_key.to_sym, gopts) end end def sync_redis @sync_redis || @redis end def extend_opts(opts) opts.merge( :namespace_prefix => key_prefix, :redis_prefix => @opts[:redis_prefix], :redis => @redis ) end def to_json flags.merge( :token => token, :title => title ).to_json end end
razum2um/fnord_metric-core
lib/fnordmetric/namespace.rb
Ruby
mit
5,389
<?php /** * The WordPress version string * * @global string $wp_version */ $wp_version = '4.9'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * * @global int $wp_db_version */ $wp_db_version = 38590; /** * Holds the TinyMCE version * * @global string $tinymce_version */ $tinymce_version = '4607-20171116'; /** * Holds the required PHP version * * @global string $required_php_version */ $required_php_version = '5.2.4'; /** * Holds the required MySQL version * * @global string $required_mysql_version */ $required_mysql_version = '5.0';
mandino/hotelmilosantabarbara.com
wp-includes/version.php
PHP
mit
617
<!DOCTYPE html> <html> <head> <meta charset=utf-8> <title>HTML Tidy Extension &#8212; Python Markdown</title> <link rel="stylesheet" href="../default.css" type="text/css"> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="siteindex.html" title="General Index">index</a></li> <li class="right"> <a href="header_id.html" title="HeaderId Extension" accesskey="N">next</a> |</li> <li class="right"> <a href="code_hilite.html" title="CodeHilite Extension" accesskey="P">previous</a> |</li> <li><img src="../py.png" alt="" style="vertical-align: middle; margin-top: -1px"/></li> <li><a href="../index.html">Python Markdown v2.2.0 documentation</a> &raquo;</li> <li><a href="index.html">Extensions</a> &raquo;</li> <li><a href="html_tidy.html">HTML Tidy Extension</a> &raquo;</li> </ul> </div> <!-- .related --> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <h1 id="html-tidy">HTML Tidy</h1> <p>Runs <a href="http://tidy.sourceforge.net/">HTML Tidy</a> on the output of Python-Markdown using the <a href="http://utidylib.berlios.de/">uTidylib</a> Python wrapper. Both libtidy and uTidylib must be installed on your system.</p> <p>This extension is available in the standard Markdown library since version 2.0.</p> <p>Note than any Tidy <a href="http://tidy.sourceforge.net/docs/quickref.html">options</a> can be passed in as <a href="../reference.html#extension_configs">extension configs</a>. So, for example, to output HTML rather than XHTML, set <code>output_xhtml=0</code>. To indent the output, set <code>indent=auto</code> and to have Tidy wrap the output in <code>&lt;html&gt;</code> and <code>&lt;body&gt;</code> tags, set <code>show_body_only=0</code>. See Tidy's <a href="http://tidy.sourceforge.net/docs/quickref.html">options</a> for a full list of the available options. The defaults are set to most closely match Markdowns defaults with the exception that you get much better pretty-printing.</p> <p>Note that options set in this extension will override most any other settings passed on to Markdown (such as "output_format"). Unlike Markdown, this extension will also treat raw HTML no different than that output by Markdown. In other words, it may munge a document authors carefully crafted HTML. Of course, it may also transform poorly formed raw HTML into nice, valid HTML. Take these things into consideration when electing to use this extension.</p> </div> <!-- .body --> </div> <!-- .bodywrapper --> </div> <!-- .documentwrapper --> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3>Table Of Contents</h3> <div class="toc"> <ul> <li><a href="#html-tidy">HTML Tidy</a></li> </ul> </div> <h4>Previous topic</h4> <p class="topless"><a href="code_hilite.html" title="previous chapter">CodeHilite Extension</a></p> <h4>Next topic</h4> <p class="topless"><a href="header_id.html" title="next chapter">HeaderId Extension</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="https://github.com/waylan/Python-Markdown/issues" >Report a Bug</a></li> <li><a href="html_tidy.txt" rel="nofollow">Show Source</a></li> </ul> </div> <!-- .sphinxsidebarwrapper --> </div> <!-- .sphinxsidebar --> <div class="clearer"></div> </div> <!-- .document --> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="siteindex.html" title="General Index">index</a></li> <li class="right"> <a href="header_id.html" title="HeaderId Extension" accesskey="N">next</a> |</li> <li class="right"> <a href="code_hilite.html" title="CodeHilite Extension" accesskey="P">previous</a> |</li> <li><img src="../py.png" alt="" style="vertical-align: middle; margin-top: -1px"/></li> <li><a href="../index.html">Python Markdown v2.2.0 documentation</a> &raquo;</li> <li><a href="index.html">Extensions</a> &raquo;</li> <li><a href="html_tidy.html">HTML Tidy Extension</a> &raquo;</li> </ul> </div> <!-- .related --> <div class="footer">&copy; 2010-2012 Python Markdown Project</div> </body> </html>
sckott/ingee_app
build/markdown/build/docs/extensions/html_tidy.html
HTML
mit
4,371
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2008 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>4. Programming Guidelines </TITLE> <META NAME="description" CONTENT="4. Programming Guidelines "> <META NAME="keywords" CONTENT="cfitsio"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2008"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="cfitsio.css"> <LINK REL="next" HREF="node33.html"> <LINK REL="previous" HREF="node18.html"> <LINK REL="up" HREF="cfitsio.html"> <LINK REL="next" HREF="node20.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html489" HREF="node20.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html485" HREF="cfitsio.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html479" HREF="node18.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html487" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A HREF="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html">FITSIO Home</A> <BR> <B> Next:</B> <A NAME="tex2html490" HREF="node20.html">4.1 CFITSIO Definitions</A> <B> Up:</B> <A NAME="tex2html486" HREF="cfitsio.html">CFITSIO</A> <B> Previous:</B> <A NAME="tex2html480" HREF="node18.html">3. A FITS Primer</A> &nbsp; <B> <A NAME="tex2html488" HREF="node1.html">Contents</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION00500000000000000000"> 4. Programming Guidelines </A> </H1> <P> <BR><HR> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html491" HREF="node20.html">4.1 CFITSIO Definitions</A> <LI><A NAME="tex2html492" HREF="node21.html">4.2 Current Header Data Unit (CHDU)</A> <LI><A NAME="tex2html493" HREF="node22.html">4.3 Function Names and Variable Datatypes</A> <LI><A NAME="tex2html494" HREF="node23.html">4.4 Support for Unsigned Integers and Signed Bytes</A> <LI><A NAME="tex2html495" HREF="node24.html">4.5 Dealing with Character Strings</A> <LI><A NAME="tex2html496" HREF="node25.html">4.6 Implicit Data Type Conversion</A> <LI><A NAME="tex2html497" HREF="node26.html">4.7 Data Scaling</A> <LI><A NAME="tex2html498" HREF="node27.html">4.8 Support for IEEE Special Values</A> <LI><A NAME="tex2html499" HREF="node28.html">4.9 Error Status Values and the Error Message Stack</A> <LI><A NAME="tex2html500" HREF="node29.html">4.10 Variable-Length Arrays in Binary Tables</A> <LI><A NAME="tex2html501" HREF="node30.html">4.11 Multiple Access to the Same FITS File</A> <LI><A NAME="tex2html502" HREF="node31.html">4.12 When the Final Size of the FITS HDU is Unknown</A> <LI><A NAME="tex2html503" HREF="node32.html">4.13 CFITSIO Size Limitations</A> </UL> <!--End of Table of Child-Links--> <BR><HR> <ADDRESS> </ADDRESS> </BODY> </HTML>
mindriot101/cfitsio-dash-documentation
cfitsio.docset/Contents/Resources/Documents/node19.html
HTML
mit
3,330
class V1::ConstantsController < ApplicationController before_action :authenticate_user! def product_entry render template: 'v1/constants/product_entry', status: 200 end def data_entry render template: 'v1/constants/data_entry', status: 200 end end
MobilityLabs/pdredesign-server
app/controllers/v1/constants_controller.rb
Ruby
mit
269
namespace _09.Multiplication_Table { using System; public class MultiplicationTable { public static void Main() { var number = int.Parse(Console.ReadLine()); for (int i = 1; i <= 10; i++) { Console.WriteLine($"{number} X {i} = {number * i}"); } } } }
1ooIL40/FundamentalExtendet017
Conditional Statements and Loops - Lab/09. Multiplication Table/MultiplicationTable.cs
C#
mit
360
package qub; /** * A Type that can only be read from. * @param <T> The type of value that can be read. */ public interface Getter<T> { /** * Get whether or not this object has a value. * @return Whether or not this object has a value. */ boolean hasValue(); /** * Get the value that this Getable contains, or null if no value has been set yet. * @return The value that this Getable contains, or null if no value has been set yet. */ T get(); }
danschultequb/qub-java
sources/qub/Getter.java
Java
mit
495
/* Last Changed Time-stamp: <2001-09-07 10:17:47 ivo> */ /* This program converts the bracket notation for RNA secondary structures produced by RNAfold to .ct files used by Michael Zukers Program. To compile enter: cc -o b2ct b2ct.c And use as b2ct < structure_file > ct_file.ct or RNAfold < sequence_file | b2ct > ct_file.ct */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXLENGTH 30000 void write_ct_file(char *fname, char *sequence, char *structure, char *name, float energy); short *make_pair_table(const char *structure); void *space(unsigned size); void nrerror(char *message); int main(void) { char line[MAXLENGTH+1]; char *string=NULL, *structure=NULL, *name=NULL; float energy; int n=0; while (fgets(line, MAXLENGTH, stdin)!=NULL) { if (strcmp(line,"@")==0) break; switch (line[0]) { case '>': name = (char *) space(strlen(line)); sscanf(line,"> %s", name); break; case '.': case '(': case ')': structure = (char *) space(strlen(line)); if (sscanf(line,"%s (%f)", structure, &energy)!=2) { free(structure); structure=NULL; break; } n++; break; default: string = (char *) space(strlen(line)+1); sscanf(line, "%s", string); } if (structure!=NULL) { if (name==NULL) { name = (char *) space(10); sprintf(name,"%d",n); } write_ct_file("-", string, structure, name, energy); free(string); free(structure); free(name); string = structure = name = NULL; } } return 0; } void write_ct_file(char *fname, char *sequence, char *structure, char *name, float energy) { int i, length; short *table; FILE *ct; length = strlen(structure); if ((table = make_pair_table(structure))==NULL) { return; } if (length!=strlen(sequence)) nrerror("sequence and structure have unequal length"); if (strcmp(fname,"-")==0) ct = stdout; else { ct = fopen(fname, "a"); if (ct==NULL) nrerror("can't open .ct file"); } fprintf(ct, "%5d ENERGY = %7.1f %s\n", length, energy, name); for (i=1; i<=length; i++) fprintf(ct, "%5d %c %5d %4d %4d %4d\n", i, sequence[i-1], i-1, (i+1)%(length+1), table[i], i); if (strcmp(fname,"-")) fclose(ct); else fflush(ct); } short *make_pair_table(const char *structure) { /* returns array representation of structure. table[i] is 0 if unpaired or j if (i.j) pair. */ int i,j,hx; int length; short *stack; short *table; length = strlen(structure); stack = (short *) space(sizeof(short)*(length+1)); table = (short *) space(sizeof(short)*(length+2)); table[0] = length; for (hx=0, i=1; i<=length; i++) { switch (structure[i-1]) { case '(': stack[hx++]=i; break; case ')': j = stack[--hx]; if (hx<0) { fprintf(stderr, "unbalanced brackets in %s\n", structure); free(stack); free(table); return NULL; } table[i]=j; table[j]=i; break; default: /* unpaired base, usually '.' */ table[i]= 0; break; } } free(stack); if (hx!=0) { fprintf(stderr, "unbalanced brackets %s\n", structure); free(table); return NULL; } return(table); } void *space(unsigned size) { void *pointer; if ( (pointer = (void *) calloc(1, size)) == NULL) { fprintf(stderr,"SPACE: requested size: %d\n", size); nrerror("SPACE allocation failure -> no memory"); } return pointer; } void nrerror(char *message) /* output message upon error */ { fprintf(stderr, "\n%s\n", message); exit(0); }
lauringlab/CodonShuffle
lib/ViennaRNA-2.1.9/Utils/b2ct.c
C
mit
3,793
import styled from 'styled-components' const RulesContainer = styled.div` text-align: justify; h3 { margin-bottom: 10px; margin-left: 0; } .summary { margin-left: 10px; font-size: 10pt; line-height: 13pt; font-style: italic; } ` export default RulesContainer
codenetwork/CodeNetwork.co
src/components/rulesContainer.js
JavaScript
mit
294
# Ogre _This lumbering giant's beady eyes are devoid of wit or kindness, and its puffy face features a wide mouth with ill-fitting teeth._ **Ogre CR 3** **XP 800** CE Large [humanoid](creatureTypes#_humanoid) ( [giant](creatureTypes#_giant-type)) **Init** –1; **Senses** darkvision 60 ft., low-light vision; [Perception](../skills/perception#_perception) +5 **Defense** **AC** 17, touch 8, flat-footed 17 (+4 armor, –1 Dex, +5 natural, –1 size) **hp** 30 (4d8+12) **Fort** +6, **Ref** +0, **Will** +3 **Offense** **Speed** 30 ft. (40 ft. base) **Melee** greatclub +7 (2d8+7) **Ranged** javelin +1 (1d8+5) **Space** 10 ft.; **Reach** 10 ft. **Statistics** **Str** 21, **Dex** 8, **Con** 15, **Int** 6, **Wis** 10, **Cha** 7 **Base Atk** +3; **CMB** +9; **CMD** 18 **Feats** [Iron Will](../feats#_iron-will), [Toughness](../feats#_toughness) **Skills** [Climb](../skills/climb#_climb) +7, [Perception](../skills/perception#_perception) +5 **Languages** Giant **Ecology** **Environment** temperate or cold hills **Organization** solitary, pair, gang (3–4), or family (5–16) **Treasure** standard (hide armor, greatclub, 4 javelins, other treasure) Stories are told of ogres—horrendous stories of brutality and savagery, cannibalism and torture. Of rape and dismemberment, necrophilia, incest, mutilation, and all manners of hideous murder. Those who have not encountered ogres know the stories as warnings. Those who have survived such encounters know these tales to be tame compared to the truth. An ogre revels in the misery of others. When smaller races aren't available to crush between meaty fists or defile in blood-red lusts of violence, they turn to each other for entertainment. Nothing is taboo in ogre society. One would think that, left to themselves, an ogre tribe would quickly tear itself apart, with only the strongest surviving in the end—yet if there is one thing ogres respect, it is family. Ogre tribes are known as families, and many of their deformities and hideous features arise from the common practice of incest. The leader of a tribe is most often the father of the tribe, although in some cases a particularly violent or domineering ogress claims the title of mother. Ogre tribes bicker among themselves, a trait that thankfully keeps them busy and turned against each other rather than neighboring races. Yet time and again, a particularly violent and feared patriarch rises among the ogres, one capable of gathering multiple families under his command. Regions inhabited by ogres are dreary, ugly places, for these giants dwell in squalor and see little need to live in harmony with their environment. The borderland between civilization and ogre territory is a desperate realm of outcasts and despair, for here dwell the ogrekin, the deformed offspring and results of frequent ogre raids against the lands of the smaller folk. Ogre games are violent and cruel, and victims they use for entertainment are lucky if they die the first day. Ogres' cruel senses of humor are the only way their crude minds show any spark of creativity, and the tools and methods of torture ogres devise are always nightmarish. An ogre's great strength and lack of imagination makes it particularly suited for heavy labor, such as mining, forging, and clearing land, and more powerful giants (particularly hill giants and stone giants) often subjugate ogre families to serve them in such regards. A typical adult ogre stands 10 feet tall and weighs roughly 650 pounds.
brunokoga/pathfinder-markdown
prd_markdown/monsters/ogre.md
Markdown
mit
3,520
/* eslint-disable */ 'use strict'; const chai = require('chai'); global.chaiAsPromised = require('chai-as-promised'); chai.should(); chai.use(chaiAsPromised); global.expect = chai.expect; global.AssertionError = chai.AssertionError; global.Assertion = chai.Assertion; global.assert = chai.assert;
NiklasGollenstede/es6lib
test/node.js
JavaScript
mit
300
/* Copyright (c) 2018, Johnathan Corkery. (jcorkery@umich.edu) All rights reserved. This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe) Dynacoe was released under the MIT License, as detailed below. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <Dynacoe/Color.h> #include <cmath> #include <cstdio> using namespace Dynacoe; static std::unordered_map<std::string, Color> * dictionary = nullptr;; static void LoadColors(); Color::Color() { r = 0; g = 0; b = 0; a = 255; } Color::Color(const Color & c) { r = c.r; g = c.g; b = c.b; a = c.a; } Color::Color(int red, int green, int blue, int alpha) { r = red; g = green; b = blue; a = alpha; } Color::Color(float red, float green, float blue, float alpha) { r = red; g = green; b = blue; a = alpha; } Color::Color(const std::vector<Component> & c) { for(int i = 0; i < (int)c.size() && i < 4; ++i) { switch(i) { case 0: r = c[i]; break; case 1: g = c[i]; break; case 2: b = c[i]; break; case 3: a = c[i]; break; } } } Color::Color(const char * str) { *this = std::string(str); } Color::Color(const std::string & src) { if (!dictionary) { LoadColors(); } // names are not case sensitive; std::string str(src); for(int i = 0; i < str.length(); ++i) { str[i] = toupper(str[i]); } a = 255; if (str[0] == '#' && str.size() == 9 || str.size() == 7) { str = str.substr(1, str.length()); uint8_t cl = 0; uint8_t val = 0; for(int i = 0; i < str.size(); ++i) { val = str[i]; val = (val >= '0' && val <= '9' ? val - '0' : (val - 'A' + 10)); cl += val*pow(16, i%2==0? 1 : 0); switch(i) { case 1: r = cl; cl = 0; break; case 3: g = cl; cl = 0; break; case 5: b = cl; cl = 0; break; case 7: a = cl; cl = 0; break; default:; } } } else { *(this) = ((dictionary->count(str))? dictionary->find(str)->second : Color("white")); } if (a.Byte() != 255) printf("%d\n", a.Byte()); } Color::Color(uint32_t clr) { uint8_t * data; data = (uint8_t *) &clr; r = data[0]; g = data[1]; b = data[2]; a = data[3]; } Color & Color::Define(uint32_t c) { (*this) = Color(c); return (*this); } Color Color::operator+ (const Color & c) const { Color out = (*this); out.r += c.r; out.g += c.g; out.b += c.b; out.a += c.a; return out; } Color Color::operator- (const Color & c) const { Color out = (*this); out.r -= c.r; out.g -= c.g; out.b -= c.b; out.a -= c.a; return out; } Color Color::operator* (const Color & c) const { Color out = (*this); out.r *= c.r; out.g *= c.g; out.b *= c.b; out.a *= c.a; return out; } Color Color::operator/ (float f) const { Color out = (*this); out.r /= f; out.g /= f; out.b /= f; out.a /= f; return out; } Color Color::operator* (float f) const { Color out = (*this); out.r *= f; out.g *= f; out.b *= f; out.a *= f; return out; } Color & Color::operator+= (const Color & c) { (*this) = (*this) + c; return (*this); } Color & Color::operator-= (const Color & c) { (*this) = (*this) - c; return (*this); } Color & Color::operator=(const Color & c) { r = c.r; g = c.g; b = c.b; a = c.a; return (*this); } uint32_t Color::Int() const { uint8_t data[4]; data[0] = r.Byte(); data[1] = g.Byte(); data[2] = b.Byte(); data[3] = a.Byte(); return *((uint32_t *) data); } Color & Color::Define(int red, int green, int blue, int alpha) { r = red; g = green; b = blue; a = alpha; return (*this); } bool Color::operator==(const Color & c) const { return (r.Byte() == c.r.Byte() && b.Byte() == c.b.Byte() && g.Byte() == c.g.Byte() && a.Byte() == c.a.Byte()); } bool Color::operator!=(const Color & c) const { return !(r.Byte() == c.r.Byte() && b.Byte() == c.b.Byte() && g.Byte() == c.g.Byte() && a.Byte() == c.a.Byte()); } void Color::Define(const std::string & src, const Color & c) { if (!dictionary) { LoadColors(); } std::string str = src; for(int i = 0; i < str.length(); ++i) { str[i] = toupper(str[i]); } (*dictionary)[str] = c; } std::string Color::ToString() const { char cstr[30]; sprintf(cstr, "#%02x%02x%02x%02x", r.Byte(), g.Byte(), b.Byte(), a.Byte() ); return std::string(cstr); } void LoadColors() { dictionary = new std::unordered_map<std::string, Color>; Color::Define("Alice Blue", Color("#f0f8ff")); Color::Define("Antique white", Color("#faebd7")); Color::Define("Aqua", Color("#00ffff")); Color::Define("Aquamarine", Color("#7fffd4")); Color::Define("Azure", Color("#f0ffff")); Color::Define("Beige", Color("#f5f5dc")); Color::Define("Bisque", Color("#FFe4c4")); Color::Define("Black", Color("#000000")); Color::Define("Blanched almond",Color("#ffebcd")); Color::Define("Blue", Color("#0000ff")); Color::Define("Blue Violet", Color("#8a2be2")); Color::Define("Brown", Color("#a52a2a")); Color::Define("Burlywood", Color("#deb887")); Color::Define("Cadet blue", Color("#5F9EA0")); Color::Define("Chartreuse", Color("#7fff00")); Color::Define("Chocolate", Color("#d2691E")); Color::Define("Coral", Color("#FF7F50")); Color::Define("Cornflower", Color("#6495ed")); Color::Define("Cornsilk", Color("#fff8dc")); Color::Define("Crimson", Color("#dc143c")); Color::Define("Cyan", Color("#00ffff")); Color::Define("Dark Blue", Color("#00008b")); Color::Define("Dark Cyan", Color("#008b8b")); Color::Define("Dark Goldenrod", Color("#B8860b")); Color::Define("Dark Gray", Color("#a9a9a9")); Color::Define("Dark Green", Color("#006400")); Color::Define("Dark Khaki", Color("#BdB76B")); Color::Define("Dark Magenta", Color("#8B008B")); Color::Define("Dark Olive Green",Color("#556b2f")); Color::Define("Dark Orange", Color("#FF8c00")); Color::Define("Dark Orchid", Color("#9932cc")); Color::Define("Dark Red", Color("#8B0000")); Color::Define("Dark Salmon", Color("#e9967a")); Color::Define("Dark Sea Green", Color("#8FBc8f")); Color::Define("Dark Slate Blue",Color("#483d8b")); Color::Define("Dark Slate Gray",Color("#2f4f4f")); Color::Define("Dark Turquoise", Color("#00ced1")); Color::Define("Dark Violet", Color("#9400d3")); Color::Define("Deep Pink", Color("#ff1493")); Color::Define("Deep Sky Blue", Color("#00bfff")); Color::Define("Dim Gray", Color("#696969")); Color::Define("Dodger Blue", Color("#1e90ff")); Color::Define("Firebrick", Color("#822222")); Color::Define("Floral White", Color("#FFFAF0")); Color::Define("Forest green", Color("#228b22")); Color::Define("Fuchsia", Color("#ff00ff")); Color::Define("Gainsboro", Color("#dcdcdc")); Color::Define("Ghost white", Color("#f8f8ff")); Color::Define("Gold", Color("#FFd700")); Color::Define("Goldenrod", Color("#daa520")); Color::Define("Gray", Color("#bebebe")); Color::Define("Web Gray", Color("#808080")); Color::Define("Green", Color("#00FF00")); Color::Define("Web Green", Color("#008000")); Color::Define("Green Yellow", Color("#adff2f")); Color::Define("Honeydew", Color("#f0fff0")); Color::Define("Hot Pink", Color("#ff69bf")); Color::Define("Indian Red", Color("#cd5c5c")); Color::Define("Indigo", Color("#4b0082")); Color::Define("Ivory", Color("#fffff0")); Color::Define("Khaki", Color("#f0e68c")); Color::Define("Lavender", Color("#e6e6fa")); Color::Define("Lavender Blush", Color("#fff0f5")); Color::Define("Lawn Green", Color("#7cfc00")); Color::Define("Lemon Chiffon", Color("#fffacd")); Color::Define("Light Blue", Color("#add8e6")); Color::Define("Light Coral", Color("#f08080")); Color::Define("Light Cyan", Color("#eoffff")); Color::Define("Light Goldenrod",Color("#fafad2")); Color::Define("Light Gray", Color("#d3d3d3")); Color::Define("Light Green", Color("#90ee90")); Color::Define("Light Pink", Color("#ffb6c1")); Color::Define("Light Salmon", Color("#ffa07a")); Color::Define("Light Sea Green",Color("#20b2aa")); Color::Define("Light Sky Blue", Color("#87cefa")); Color::Define("Light Slate Gray",Color("#778899")); Color::Define("Light Steel Blue",Color("#b0c6de")); Color::Define("Light Yellow", Color("#ffffe0")); Color::Define("Lime", Color("#00FF00")); Color::Define("Lime Green", Color("#3dcd32")); Color::Define("Linen", Color("#faf0e6")); Color::Define("Mangenta", Color("#FF00FF")); Color::Define("Maroon", Color("#bo3060")); Color::Define("Web Maroon", Color("#7f0000")); Color::Define("Medium Aquamarine", Color("#66cdaa")); Color::Define("Medium Blue", Color("#0000cd")); Color::Define("Medium Orchid", Color("#ba55d3")); Color::Define("Medium Purple", Color("#9370d8")); Color::Define("Medium Sea Green", Color("#3cb371")); Color::Define("Medium Slate Blue",Color("#7b68ee")); Color::Define("Medium Spring Green",Color("#00fa9a")); Color::Define("Medium Turquoise", Color("#48d1cc")); Color::Define("Medium Violet Red",Color("#c71585")); Color::Define("Midnight Blue", Color("#191970")); Color::Define("Mint Cream", Color("#F5fffa")); Color::Define("Misty Rose", Color("#ffe4e1")); Color::Define("Moccasin", Color("#ffe4b5")); Color::Define("Navajo White", Color("#ffdead")); Color::Define("Navy Blue", Color("#000080")); Color::Define("Old Lace", Color("#fdf5e6")); Color::Define("Olive", Color("#808000")); Color::Define("Olive Drab", Color("#6b8e23")); Color::Define("Orange", Color("#FFa500")); Color::Define("Orange Red", Color("#ff4500")); Color::Define("Orchid", Color("#da70d6")); Color::Define("Pale Goldenrod", Color("#eee8aa")); Color::Define("Pale Green", Color("#98fb98")); Color::Define("Pale Turquoise", Color("#afeeee")); Color::Define("Pale Violet Red",Color("#db7093")); Color::Define("Papaya Whip", Color("#ffefd5")); Color::Define("Peach Puff", Color("#ffdab9")); Color::Define("Peru", Color("#cd853f")); Color::Define("Pink", Color("#ffc0cb")); Color::Define("Plum", Color("#ddaodd")); Color::Define("Powder Blue", Color("#boe0e6")); Color::Define("Purple", Color("#a020f0")); Color::Define("Web Purple", Color("#7f007f")); Color::Define("Rebecca Purple", Color("#663399")); Color::Define("Red", Color("#FF0000")); Color::Define("Rosy Brown", Color("#BC8F8F")); Color::Define("Royal Blue", Color("#4169E1")); Color::Define("Saddle Brown", Color("#8B4513")); Color::Define("Salmon", Color("#FA8072")); Color::Define("Sandy Brown", Color("#F4A460")); Color::Define("Sea Green", Color("#2e8b57")); Color::Define("Seashell", Color("#fff5ee")); Color::Define("Sienna", Color("#A0522d")); Color::Define("Silver", Color("#c0c0c0")); Color::Define("Sky Blue", Color("#87ceeb")); Color::Define("Slate Blue", Color("#6A5ACD")); Color::Define("Slate Gray", Color("#708090")); Color::Define("Snow", Color("#FFFAFA")); Color::Define("Spring Green", Color("#00FF7f")); Color::Define("Steel blue", Color("#4682b4")); Color::Define("Tan", Color("#D2B48c")); Color::Define("Teal", Color("#008080")); Color::Define("Thistle", Color("#D8BFD8")); Color::Define("Tomato", Color("#FF6347")); Color::Define("Turquoise", Color("#40E0D0")); Color::Define("Violet", Color("#ee82ee")); Color::Define("Wheat", Color("#F5DEB3")); Color::Define("White", Color("#ffffff")); Color::Define("White Smoke", Color("#f5f5f5")); Color::Define("Yellow", Color("#ffff00")); Color::Define("Yellow Green", Color("#9acd32")); }
jcorks/Dynacoe
DynacoeSrc/srcs/Dynacoe/Color.cpp
C++
mit
13,886
require 'ostruct' require 'yaml' all_config = YAML.load_file("#{Rails.root}/config/xpay.yml") || {} env_config = all_config[Rails.env] || {} XpayConfig = OpenStruct.new(env_config)
kixorz/xpay-mongoid
config/initializers/xpay.rb
Ruby
mit
181
/*! * better-scroll / better-scroll * (c) 2016-2020 ustbhuangyi * Released under the MIT License. */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /* global Reflect, Promise */ var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; function __extends(d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } var __assign = function() { __assign = Object.assign || function __assign(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; function __awaiter(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); } function __generator(thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } function warn(msg) { console.error("[BScroll warn]: " + msg); } // ssr support var inBrowser = typeof window !== 'undefined'; var ua = inBrowser && navigator.userAgent.toLowerCase(); var isWeChatDevTools = ua && /wechatdevtools/.test(ua); var isAndroid = ua && ua.indexOf('android') > 0; function getNow() { return window.performance && window.performance.now && window.performance.timing ? window.performance.now() + window.performance.timing.navigationStart : +new Date(); } function extend(target) { var rest = []; for (var _i = 1; _i < arguments.length; _i++) { rest[_i - 1] = arguments[_i]; } for (var i = 0; i < rest.length; i++) { var source = rest[i]; for (var key in source) { target[key] = source[key]; } } return target; } function isUndef(v) { return v === undefined || v === null; } function isPlainObject(v) { return typeof v === 'object' && v !== null; } function getDistance(x, y) { return Math.sqrt(x * x + y * y); } function fixInboundValue(x, min, max) { if (x < min) { return min; } if (x > max) { return max; } return x; } var elementStyle = (inBrowser && document.createElement('div').style); var vendor = (function () { if (!inBrowser) { return false; } var transformNames = { webkit: 'webkitTransform', Moz: 'MozTransform', O: 'OTransform', ms: 'msTransform', standard: 'transform' }; for (var key in transformNames) { if (elementStyle[transformNames[key]] !== undefined) { return key; } } return false; })(); function prefixStyle(style) { if (vendor === false) { return style; } if (vendor === 'standard') { if (style === 'transitionEnd') { return 'transitionend'; } return style; } return vendor + style.charAt(0).toUpperCase() + style.substr(1); } function getElement(el) { return (typeof el === 'string' ? document.querySelector(el) : el); } function addEvent(el, type, fn, capture) { el.addEventListener(type, fn, { passive: false, capture: !!capture }); } function removeEvent(el, type, fn, capture) { el.removeEventListener(type, fn, { capture: !!capture }); } function offset(el) { var left = 0; var top = 0; while (el) { left -= el.offsetLeft; top -= el.offsetTop; el = el.offsetParent; } return { left: left, top: top }; } function offsetToBody(el) { var rect = el.getBoundingClientRect(); return { left: -(rect.left + window.pageXOffset), top: -(rect.top + window.pageYOffset) }; } var cssVendor = vendor && vendor !== 'standard' ? '-' + vendor.toLowerCase() + '-' : ''; var transform = prefixStyle('transform'); var transition = prefixStyle('transition'); var hasPerspective = inBrowser && prefixStyle('perspective') in elementStyle; // fix issue #361 var hasTouch = inBrowser && ('ontouchstart' in window || isWeChatDevTools); var hasTransition = inBrowser && transition in elementStyle; var style = { transform: transform, transition: transition, transitionTimingFunction: prefixStyle('transitionTimingFunction'), transitionDuration: prefixStyle('transitionDuration'), transitionDelay: prefixStyle('transitionDelay'), transformOrigin: prefixStyle('transformOrigin'), transitionEnd: prefixStyle('transitionEnd') }; var eventTypeMap = { touchstart: 1, touchmove: 1, touchend: 1, mousedown: 2, mousemove: 2, mouseup: 2 }; function getRect(el) { if (el instanceof window.SVGElement) { var rect = el.getBoundingClientRect(); return { top: rect.top, left: rect.left, width: rect.width, height: rect.height }; } else { return { top: el.offsetTop, left: el.offsetLeft, width: el.offsetWidth, height: el.offsetHeight }; } } function preventDefaultExceptionFn(el, exceptions) { for (var i in exceptions) { if (exceptions[i].test(el[i])) { return true; } } return false; } var tagExceptionFn = preventDefaultExceptionFn; function tap(e, eventName) { var ev = document.createEvent('Event'); ev.initEvent(eventName, true, true); ev.pageX = e.pageX; ev.pageY = e.pageY; e.target.dispatchEvent(ev); } function click(e, event) { if (event === void 0) { event = 'click'; } var eventSource; if (e.type === 'mouseup') { eventSource = e; } else if (e.type === 'touchend' || e.type === 'touchcancel') { eventSource = e.changedTouches[0]; } var posSrc = {}; if (eventSource) { posSrc.screenX = eventSource.screenX || 0; posSrc.screenY = eventSource.screenY || 0; posSrc.clientX = eventSource.clientX || 0; posSrc.clientY = eventSource.clientY || 0; } var ev; var bubbles = true; var cancelable = true; if (typeof MouseEvent !== 'undefined') { try { ev = new MouseEvent(event, extend({ bubbles: bubbles, cancelable: cancelable }, posSrc)); } catch (e) { createEvent(); } } else { createEvent(); } function createEvent() { ev = document.createEvent('Event'); ev.initEvent(event, bubbles, cancelable); extend(ev, posSrc); } // forwardedTouchEvent set to true in case of the conflict with fastclick ev.forwardedTouchEvent = true; ev._constructed = true; e.target.dispatchEvent(ev); } function dblclick(e) { click(e, 'dblclick'); } function prepend(el, target) { var firstChild = target.firstChild; if (firstChild) { before(el, firstChild); } else { target.appendChild(el); } } function before(el, target) { target.parentNode.insertBefore(el, target); } function removeChild(el, child) { el.removeChild(child); } function hasClass(el, className) { var reg = new RegExp('(^|\\s)' + className + '(\\s|$)'); return reg.test(el.className); } var ease = { // easeOutQuint swipe: { style: 'cubic-bezier(0.23, 1, 0.32, 1)', fn: function (t) { return 1 + --t * t * t * t * t; } }, // easeOutQuard swipeBounce: { style: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)', fn: function (t) { return t * (2 - t); } }, // easeOutQuart bounce: { style: 'cubic-bezier(0.165, 0.84, 0.44, 1)', fn: function (t) { return 1 - --t * t * t * t; } } }; var DEFAULT_INTERVAL = 100 / 60; var windowCompat = inBrowser && window; function noop() { } var requestAnimationFrame = (function () { if (!inBrowser) { /* istanbul ignore if */ return noop; } return (windowCompat.requestAnimationFrame || windowCompat.webkitRequestAnimationFrame || windowCompat.mozRequestAnimationFrame || windowCompat.oRequestAnimationFrame || // if all else fails, use setTimeout function (callback) { return window.setTimeout(callback, (callback.interval || DEFAULT_INTERVAL) / 2); // make interval as precise as possible. }); })(); var cancelAnimationFrame = (function () { if (!inBrowser) { /* istanbul ignore if */ return noop; } return (windowCompat.cancelAnimationFrame || windowCompat.webkitCancelAnimationFrame || windowCompat.mozCancelAnimationFrame || windowCompat.oCancelAnimationFrame || function (id) { window.clearTimeout(id); }); })(); var noop$1 = function (val) { }; var sharedPropertyDefinition = { enumerable: true, configurable: true, get: noop$1, set: noop$1 }; var getProperty = function (obj, key) { var keys = key.split('.'); for (var i = 0; i < keys.length - 1; i++) { obj = obj[keys[i]]; if (typeof obj !== 'object' || !obj) return; } var lastKey = keys.pop(); if (typeof obj[lastKey] === 'function') { return function () { return obj[lastKey].apply(obj, arguments); }; } else { return obj[lastKey]; } }; var setProperty = function (obj, key, value) { var keys = key.split('.'); var temp; for (var i = 0; i < keys.length - 1; i++) { temp = keys[i]; if (!obj[temp]) obj[temp] = {}; obj = obj[temp]; } obj[keys.pop()] = value; }; function propertiesProxy(target, sourceKey, key) { sharedPropertyDefinition.get = function proxyGetter() { return getProperty(this, sourceKey); }; sharedPropertyDefinition.set = function proxySetter(val) { setProperty(this, sourceKey, val); }; Object.defineProperty(target, key, sharedPropertyDefinition); } var EventEmitter = /** @class */ (function () { function EventEmitter(names) { this.events = {}; this.eventTypes = {}; this.registerType(names); } EventEmitter.prototype.on = function (type, fn, context) { if (context === void 0) { context = this; } this.hasType(type); if (!this.events[type]) { this.events[type] = []; } this.events[type].push([fn, context]); return this; }; EventEmitter.prototype.once = function (type, fn, context) { var _this = this; if (context === void 0) { context = this; } this.hasType(type); var magic = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } _this.off(type, magic); fn.apply(context, args); }; magic.fn = fn; this.on(type, magic); return this; }; EventEmitter.prototype.off = function (type, fn) { if (!type && !fn) { this.events = {}; return this; } if (type) { this.hasType(type); if (!fn) { this.events[type] = []; return this; } var events = this.events[type]; if (!events) { return this; } var count = events.length; while (count--) { if (events[count][0] === fn || (events[count][0] && events[count][0].fn === fn)) { events.splice(count, 1); } } return this; } }; EventEmitter.prototype.trigger = function (type) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } this.hasType(type); var events = this.events[type]; if (!events) { return; } var len = events.length; var eventsCopy = events.slice(); var ret; for (var i = 0; i < len; i++) { var event_1 = eventsCopy[i]; var fn = event_1[0], context = event_1[1]; if (fn) { ret = fn.apply(context, args); if (ret === true) { return ret; } } } }; EventEmitter.prototype.registerType = function (names) { var _this = this; names.forEach(function (type) { _this.eventTypes[type] = type; }); }; EventEmitter.prototype.destroy = function () { this.events = {}; this.eventTypes = {}; }; EventEmitter.prototype.hasType = function (type) { var types = this.eventTypes; var isType = types[type] === type; if (!isType) { warn("EventEmitter has used unknown event type: \"" + type + "\", should be oneof [" + ("" + Object.keys(types).map(function (_) { return JSON.stringify(_); })) + "]"); } }; return EventEmitter; }()); var EventRegister = /** @class */ (function () { function EventRegister(wrapper, events) { this.wrapper = wrapper; this.events = events; this.addDOMEvents(); } EventRegister.prototype.destroy = function () { this.removeDOMEvents(); this.events = []; }; EventRegister.prototype.addDOMEvents = function () { this.handleDOMEvents(addEvent); }; EventRegister.prototype.removeDOMEvents = function () { this.handleDOMEvents(removeEvent); }; EventRegister.prototype.handleDOMEvents = function (eventOperation) { var _this = this; var wrapper = this.wrapper; this.events.forEach(function (event) { eventOperation(wrapper, event.name, _this, !!event.capture); }); }; EventRegister.prototype.handleEvent = function (e) { var eventType = e.type; this.events.some(function (event) { if (event.name === eventType) { event.handler(e); return true; } return false; }); }; return EventRegister; }()); var Options = /** @class */ (function () { function Options() { this.startX = 0; this.startY = 0; this.scrollX = false; this.scrollY = true; this.freeScroll = false; this.directionLockThreshold = 5; this.eventPassthrough = "" /* None */; this.click = false; this.dblclick = false; this.tap = ''; this.bounce = { top: true, bottom: true, left: true, right: true }; this.bounceTime = 800; this.momentum = true; this.momentumLimitTime = 300; this.momentumLimitDistance = 15; this.swipeTime = 2500; this.swipeBounceTime = 500; this.deceleration = 0.0015; this.flickLimitTime = 200; this.flickLimitDistance = 100; this.resizePolling = 60; this.probeType = 0 /* Default */; this.stopPropagation = false; this.preventDefault = true; this.preventDefaultException = { tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/ }; this.tagException = { tagName: /^TEXTAREA$/ }; this.HWCompositing = true; this.useTransition = true; this.bindToWrapper = false; this.disableMouse = hasTouch; this.disableTouch = !hasTouch; this.autoBlur = true; } Options.prototype.merge = function (options) { if (!options) return this; for (var key in options) { this[key] = options[key]; } return this; }; Options.prototype.process = function () { this.translateZ = this.HWCompositing && hasPerspective ? ' translateZ(0)' : ''; this.useTransition = this.useTransition && hasTransition; this.preventDefault = !this.eventPassthrough && this.preventDefault; this.resolveBounce(); // If you want eventPassthrough I have to lock one of the axes this.scrollX = this.eventPassthrough === "horizontal" /* Horizontal */ ? false : this.scrollX; this.scrollY = this.eventPassthrough === "vertical" /* Vertical */ ? false : this.scrollY; // With eventPassthrough we also need lockDirection mechanism this.freeScroll = this.freeScroll && !this.eventPassthrough; // force true when freeScroll is true this.scrollX = this.freeScroll ? true : this.scrollX; this.scrollY = this.freeScroll ? true : this.scrollY; this.directionLockThreshold = this.eventPassthrough ? 0 : this.directionLockThreshold; return this; }; Options.prototype.resolveBounce = function () { var directions = ['top', 'right', 'bottom', 'left']; var bounce = this.bounce; if (bounce === false || bounce === true) { this.bounce = makeMap(directions, bounce); } }; return Options; }()); function makeMap(keys, val) { if (val === void 0) { val = true; } var ret = {}; keys.forEach(function (key) { ret[key] = val; }); return ret; } var ActionsHandler = /** @class */ (function () { function ActionsHandler(wrapper, options) { this.wrapper = wrapper; this.options = options; this.hooks = new EventEmitter([ 'beforeStart', 'start', 'move', 'end', 'click' ]); this.handleDOMEvents(); } ActionsHandler.prototype.handleDOMEvents = function () { var _a = this.options, bindToWrapper = _a.bindToWrapper, disableMouse = _a.disableMouse, disableTouch = _a.disableTouch, click = _a.click; var wrapper = this.wrapper; var target = bindToWrapper ? wrapper : window; var wrapperEvents = []; var targetEvents = []; var shouldRegisterTouch = hasTouch && !disableTouch; var shouldRegisterMouse = !disableMouse; if (click) { wrapperEvents.push({ name: 'click', handler: this.click.bind(this), capture: true }); } if (shouldRegisterTouch) { wrapperEvents.push({ name: 'touchstart', handler: this.start.bind(this) }); targetEvents.push({ name: 'touchmove', handler: this.move.bind(this) }, { name: 'touchend', handler: this.end.bind(this) }, { name: 'touchcancel', handler: this.end.bind(this) }); } if (shouldRegisterMouse) { wrapperEvents.push({ name: 'mousedown', handler: this.start.bind(this) }); targetEvents.push({ name: 'mousemove', handler: this.move.bind(this) }, { name: 'mouseup', handler: this.end.bind(this) }); } this.wrapperEventRegister = new EventRegister(wrapper, wrapperEvents); this.targetEventRegister = new EventRegister(target, targetEvents); }; ActionsHandler.prototype.beforeHandler = function (e, type) { var _a = this.options, preventDefault = _a.preventDefault, stopPropagation = _a.stopPropagation, preventDefaultException = _a.preventDefaultException; var preventDefaultConditions = { start: function () { return (preventDefault && !preventDefaultExceptionFn(e.target, preventDefaultException)); }, end: function () { return (preventDefault && !preventDefaultExceptionFn(e.target, preventDefaultException)); }, move: function () { return preventDefault; } }; if (preventDefaultConditions[type]()) { e.preventDefault(); } if (stopPropagation) { e.stopPropagation(); } }; ActionsHandler.prototype.setInitiated = function (type) { if (type === void 0) { type = 0; } this.initiated = type; }; ActionsHandler.prototype.start = function (e) { var _eventType = eventTypeMap[e.type]; if (this.initiated && this.initiated !== _eventType) { return; } this.setInitiated(_eventType); // if textarea or other html tags in options.tagException is manipulated // do not make bs scroll if (tagExceptionFn(e.target, this.options.tagException)) { this.setInitiated(); return; } // no mouse left button if (_eventType === 2 /* Mouse */ && e.button !== 0 /* Left */) return; if (this.hooks.trigger(this.hooks.eventTypes.beforeStart, e)) { return; } this.beforeHandler(e, 'start'); var point = (e.touches ? e.touches[0] : e); this.pointX = point.pageX; this.pointY = point.pageY; this.hooks.trigger(this.hooks.eventTypes.start, e); }; ActionsHandler.prototype.move = function (e) { if (eventTypeMap[e.type] !== this.initiated) { return; } this.beforeHandler(e, 'move'); var point = (e.touches ? e.touches[0] : e); var deltaX = point.pageX - this.pointX; var deltaY = point.pageY - this.pointY; this.pointX = point.pageX; this.pointY = point.pageY; if (this.hooks.trigger(this.hooks.eventTypes.move, { deltaX: deltaX, deltaY: deltaY, e: e })) { return; } // auto end when out of wrapper var scrollLeft = document.documentElement.scrollLeft || window.pageXOffset || document.body.scrollLeft; var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; var pX = this.pointX - scrollLeft; var pY = this.pointY - scrollTop; if (pX > document.documentElement.clientWidth - this.options.momentumLimitDistance || pX < this.options.momentumLimitDistance || pY < this.options.momentumLimitDistance || pY > document.documentElement.clientHeight - this.options.momentumLimitDistance) { this.end(e); } }; ActionsHandler.prototype.end = function (e) { if (eventTypeMap[e.type] !== this.initiated) { return; } this.setInitiated(); this.beforeHandler(e, 'end'); this.hooks.trigger(this.hooks.eventTypes.end, e); }; ActionsHandler.prototype.click = function (e) { this.hooks.trigger(this.hooks.eventTypes.click, e); }; ActionsHandler.prototype.destroy = function () { this.wrapperEventRegister.destroy(); this.targetEventRegister.destroy(); this.hooks.destroy(); }; return ActionsHandler; }()); var translaterMetaData = { x: ['translateX', 'px'], y: ['translateY', 'px'] }; var Translater = /** @class */ (function () { function Translater(content) { this.content = content; this.style = content.style; this.hooks = new EventEmitter(['beforeTranslate', 'translate']); } Translater.prototype.getComputedPosition = function () { var cssStyle = window.getComputedStyle(this.content, null); var matrix = cssStyle[style.transform].split(')')[0].split(', '); var x = +(matrix[12] || matrix[4]); var y = +(matrix[13] || matrix[5]); return { x: x, y: y }; }; Translater.prototype.translate = function (point) { var transformStyle = []; Object.keys(point).forEach(function (key) { if (!translaterMetaData[key]) { return; } var transformFnName = translaterMetaData[key][0]; if (transformFnName) { var transformFnArgUnit = translaterMetaData[key][1]; var transformFnArg = point[key]; transformStyle.push(transformFnName + "(" + transformFnArg + transformFnArgUnit + ")"); } }); this.hooks.trigger(this.hooks.eventTypes.beforeTranslate, transformStyle, point); this.style[style.transform] = transformStyle.join(' '); this.hooks.trigger(this.hooks.eventTypes.translate, point); }; Translater.prototype.destroy = function () { this.hooks.destroy(); }; return Translater; }()); var Base = /** @class */ (function () { function Base(content, translater, options) { this.content = content; this.translater = translater; this.options = options; this.hooks = new EventEmitter([ 'move', 'end', 'beforeForceStop', 'forceStop', 'time', 'timeFunction' ]); this.style = content.style; } Base.prototype.translate = function (endPoint) { this.translater.translate(endPoint); }; Base.prototype.setPending = function (pending) { this.pending = pending; }; Base.prototype.setForceStopped = function (forceStopped) { this.forceStopped = forceStopped; }; Base.prototype.destroy = function () { this.hooks.destroy(); cancelAnimationFrame(this.timer); }; return Base; }()); var Transition = /** @class */ (function (_super) { __extends(Transition, _super); function Transition() { return _super !== null && _super.apply(this, arguments) || this; } Transition.prototype.startProbe = function () { var _this = this; var probe = function () { var pos = _this.translater.getComputedPosition(); _this.hooks.trigger(_this.hooks.eventTypes.move, pos); // excute when transition ends if (!_this.pending) { _this.hooks.trigger(_this.hooks.eventTypes.end, pos); return; } _this.timer = requestAnimationFrame(probe); }; cancelAnimationFrame(this.timer); this.timer = requestAnimationFrame(probe); }; Transition.prototype.transitionTime = function (time) { if (time === void 0) { time = 0; } this.style[style.transitionDuration] = time + 'ms'; this.hooks.trigger(this.hooks.eventTypes.time, time); }; Transition.prototype.transitionTimingFunction = function (easing) { this.style[style.transitionTimingFunction] = easing; this.hooks.trigger(this.hooks.eventTypes.timeFunction, easing); }; Transition.prototype.move = function (startPoint, endPoint, time, easingFn, isSlient) { this.setPending(time > 0 && (startPoint.x !== endPoint.x || startPoint.y !== endPoint.y)); this.transitionTimingFunction(easingFn); this.transitionTime(time); this.translate(endPoint); if (time && this.options.probeType === 3 /* Realtime */) { this.startProbe(); } // if we change content's transformY in a tick // such as: 0 -> 50px -> 0 // transitionend will not be triggered // so we forceupdate by reflow if (!time) { this._reflow = this.content.offsetHeight; } // no need to dispatch move and end when slient if (!time && !isSlient) { this.hooks.trigger(this.hooks.eventTypes.move, endPoint); this.hooks.trigger(this.hooks.eventTypes.end, endPoint); } }; Transition.prototype.stop = function () { // still in transition if (this.pending) { this.setPending(false); cancelAnimationFrame(this.timer); var _a = this.translater.getComputedPosition(), x = _a.x, y = _a.y; this.transitionTime(); this.translate({ x: x, y: y }); this.setForceStopped(true); if (this.hooks.trigger(this.hooks.eventTypes.beforeForceStop, { x: x, y: y })) { return; } this.hooks.trigger(this.hooks.eventTypes.forceStop, { x: x, y: y }); } }; return Transition; }(Base)); var Animation = /** @class */ (function (_super) { __extends(Animation, _super); function Animation() { return _super !== null && _super.apply(this, arguments) || this; } Animation.prototype.move = function (startPoint, endPoint, time, easingFn, isSlient) { // time is 0 if (!time) { this.translate(endPoint); // if we change content's transformY in a tick // such as: 0 -> 50px -> 0 // transitionend will not be triggered // so we forceupdate by reflow this._reflow = this.content.offsetHeight; // no need to dispatch move and end when slient if (isSlient) return; this.hooks.trigger(this.hooks.eventTypes.move, endPoint); this.hooks.trigger(this.hooks.eventTypes.end, endPoint); return; } this.animate(startPoint, endPoint, time, easingFn); }; Animation.prototype.animate = function (startPoint, endPoint, duration, easingFn) { var _this = this; var startTime = getNow(); var destTime = startTime + duration; var step = function () { var now = getNow(); // js animation end if (now >= destTime) { _this.translate(endPoint); _this.hooks.trigger(_this.hooks.eventTypes.move, endPoint); _this.hooks.trigger(_this.hooks.eventTypes.end, endPoint); return; } now = (now - startTime) / duration; var easing = easingFn(now); var newPoint = {}; Object.keys(endPoint).forEach(function (key) { var startValue = startPoint[key]; var endValue = endPoint[key]; newPoint[key] = (endValue - startValue) * easing + startValue; }); _this.translate(newPoint); if (_this.pending) { _this.timer = requestAnimationFrame(step); } if (_this.options.probeType === 3 /* Realtime */) { _this.hooks.trigger(_this.hooks.eventTypes.move, newPoint); } }; this.setPending(true); cancelAnimationFrame(this.timer); step(); }; Animation.prototype.stop = function () { // still in requestFrameAnimation if (this.pending) { this.setPending(false); cancelAnimationFrame(this.timer); var pos = this.translater.getComputedPosition(); this.setForceStopped(true); if (this.hooks.trigger(this.hooks.eventTypes.beforeForceStop, pos)) { return; } this.hooks.trigger(this.hooks.eventTypes.forceStop, pos); } }; return Animation; }(Base)); function createAnimater(element, translater, options) { var useTransition = options.useTransition; var animaterOptions = {}; Object.defineProperty(animaterOptions, 'probeType', { enumerable: true, configurable: false, get: function () { return options.probeType; } }); if (useTransition) { return new Transition(element, translater, animaterOptions); } else { return new Animation(element, translater, animaterOptions); } } var Behavior = /** @class */ (function () { function Behavior(wrapper, options) { this.wrapper = wrapper; this.options = options; this.hooks = new EventEmitter(['momentum', 'end']); this.content = this.wrapper.children[0]; this.currentPos = 0; this.startPos = 0; } Behavior.prototype.start = function () { this.direction = 0 /* Default */; this.movingDirection = 0 /* Default */; this.dist = 0; }; Behavior.prototype.move = function (delta) { delta = this.hasScroll ? delta : 0; this.movingDirection = delta > 0 ? -1 /* Negative */ : delta < 0 ? 1 /* Positive */ : 0 /* Default */; var newPos = this.currentPos + delta; // Slow down or stop if outside of the boundaries if (newPos > this.minScrollPos || newPos < this.maxScrollPos) { if ((newPos > this.minScrollPos && this.options.bounces[0]) || (newPos < this.maxScrollPos && this.options.bounces[1])) { newPos = this.currentPos + delta / 3; } else { newPos = newPos > this.minScrollPos ? this.minScrollPos : this.maxScrollPos; } } return newPos; }; Behavior.prototype.end = function (duration) { var momentumInfo = { duration: 0 }; var absDist = Math.abs(this.currentPos - this.startPos); // start momentum animation if needed if (this.options.momentum && duration < this.options.momentumLimitTime && absDist > this.options.momentumLimitDistance) { var wrapperSize = (this.direction === -1 /* Negative */ && this.options.bounces[0]) || (this.direction === 1 /* Positive */ && this.options.bounces[1]) ? this.wrapperSize : 0; momentumInfo = this.hasScroll ? this.momentum(this.currentPos, this.startPos, duration, this.maxScrollPos, this.minScrollPos, wrapperSize, this.options) : { destination: this.currentPos, duration: 0 }; } else { this.hooks.trigger(this.hooks.eventTypes.end, momentumInfo); } return momentumInfo; }; Behavior.prototype.momentum = function (current, start, time, lowerMargin, upperMargin, wrapperSize, options) { if (options === void 0) { options = this.options; } var distance = current - start; var speed = Math.abs(distance) / time; var deceleration = options.deceleration, swipeBounceTime = options.swipeBounceTime, swipeTime = options.swipeTime; var momentumData = { destination: current + (speed / deceleration) * (distance < 0 ? -1 : 1), duration: swipeTime, rate: 15 }; this.hooks.trigger(this.hooks.eventTypes.momentum, momentumData, distance); if (momentumData.destination < lowerMargin) { momentumData.destination = wrapperSize ? Math.max(lowerMargin - wrapperSize / 4, lowerMargin - (wrapperSize / momentumData.rate) * speed) : lowerMargin; momentumData.duration = swipeBounceTime; } else if (momentumData.destination > upperMargin) { momentumData.destination = wrapperSize ? Math.min(upperMargin + wrapperSize / 4, upperMargin + (wrapperSize / momentumData.rate) * speed) : upperMargin; momentumData.duration = swipeBounceTime; } momentumData.destination = Math.round(momentumData.destination); return momentumData; }; Behavior.prototype.updateDirection = function () { var absDist = Math.round(this.currentPos) - this.absStartPos; this.direction = absDist > 0 ? -1 /* Negative */ : absDist < 0 ? 1 /* Positive */ : 0 /* Default */; }; Behavior.prototype.refresh = function () { var _a = this.options.rect, size = _a.size, position = _a.position; var isWrapperStatic = window.getComputedStyle(this.wrapper, null).position === 'static'; var wrapperRect = getRect(this.wrapper); this.wrapperSize = wrapperRect[size]; var contentRect = getRect(this.content); this.contentSize = contentRect[size]; this.relativeOffset = contentRect[position]; if (isWrapperStatic) { this.relativeOffset -= wrapperRect[position]; } this.minScrollPos = 0; this.maxScrollPos = this.wrapperSize - this.contentSize; if (this.maxScrollPos < 0) { this.maxScrollPos -= this.relativeOffset; this.minScrollPos = -this.relativeOffset; } this.hasScroll = this.options.scrollable && this.maxScrollPos < this.minScrollPos; if (!this.hasScroll) { this.maxScrollPos = this.minScrollPos; this.contentSize = this.wrapperSize; } this.direction = 0; }; Behavior.prototype.updatePosition = function (pos) { this.currentPos = pos; }; Behavior.prototype.getCurrentPos = function () { return Math.round(this.currentPos); }; Behavior.prototype.checkInBoundary = function () { var position = this.adjustPosition(this.currentPos); var inBoundary = position === this.getCurrentPos(); return { position: position, inBoundary: inBoundary }; }; // adjust position when out of boundary Behavior.prototype.adjustPosition = function (pos) { var roundPos = Math.round(pos); if (!this.hasScroll || roundPos > this.minScrollPos) { roundPos = this.minScrollPos; } else if (roundPos < this.maxScrollPos) { roundPos = this.maxScrollPos; } return roundPos; }; Behavior.prototype.updateStartPos = function () { this.startPos = this.currentPos; }; Behavior.prototype.updateAbsStartPos = function () { this.absStartPos = this.currentPos; }; Behavior.prototype.resetStartPos = function () { this.updateStartPos(); this.updateAbsStartPos(); }; Behavior.prototype.getAbsDist = function (delta) { this.dist += delta; return Math.abs(this.dist); }; Behavior.prototype.destroy = function () { this.hooks.destroy(); }; return Behavior; }()); var _a, _b, _c, _d; var PassthroughHandlers = (_a = {}, _a["yes" /* Yes */] = function (e) { return true; }, _a["no" /* No */] = function (e) { e.preventDefault(); return false; }, _a); var DirectionMap = (_b = {}, _b["horizontal" /* Horizontal */] = (_c = {}, _c["yes" /* Yes */] = "horizontal" /* Horizontal */, _c["no" /* No */] = "vertical" /* Vertical */, _c), _b["vertical" /* Vertical */] = (_d = {}, _d["yes" /* Yes */] = "vertical" /* Vertical */, _d["no" /* No */] = "horizontal" /* Horizontal */, _d), _b); var DirectionLockAction = /** @class */ (function () { function DirectionLockAction(directionLockThreshold, freeScroll, eventPassthrough) { this.directionLockThreshold = directionLockThreshold; this.freeScroll = freeScroll; this.eventPassthrough = eventPassthrough; this.reset(); } DirectionLockAction.prototype.reset = function () { this.directionLocked = "" /* Default */; }; DirectionLockAction.prototype.checkMovingDirection = function (absDistX, absDistY, e) { this.computeDirectionLock(absDistX, absDistY); return this.handleEventPassthrough(e); }; DirectionLockAction.prototype.adjustDelta = function (deltaX, deltaY) { if (this.directionLocked === "horizontal" /* Horizontal */) { deltaY = 0; } else if (this.directionLocked === "vertical" /* Vertical */) { deltaX = 0; } return { deltaX: deltaX, deltaY: deltaY }; }; DirectionLockAction.prototype.computeDirectionLock = function (absDistX, absDistY) { // If you are scrolling in one direction, lock it if (this.directionLocked === "" /* Default */ && !this.freeScroll) { if (absDistX > absDistY + this.directionLockThreshold) { this.directionLocked = "horizontal" /* Horizontal */; // lock horizontally } else if (absDistY >= absDistX + this.directionLockThreshold) { this.directionLocked = "vertical" /* Vertical */; // lock vertically } else { this.directionLocked = "none" /* None */; // no lock } } }; DirectionLockAction.prototype.handleEventPassthrough = function (e) { var handleMap = DirectionMap[this.directionLocked]; if (handleMap) { if (this.eventPassthrough === handleMap["yes" /* Yes */]) { return PassthroughHandlers["yes" /* Yes */](e); } else if (this.eventPassthrough === handleMap["no" /* No */]) { return PassthroughHandlers["no" /* No */](e); } } return false; }; return DirectionLockAction; }()); var ScrollerActions = /** @class */ (function () { function ScrollerActions(scrollBehaviorX, scrollBehaviorY, actionsHandler, animater, options) { this.hooks = new EventEmitter([ 'start', 'beforeMove', 'scrollStart', 'scroll', 'beforeEnd', 'end', 'scrollEnd' ]); this.scrollBehaviorX = scrollBehaviorX; this.scrollBehaviorY = scrollBehaviorY; this.actionsHandler = actionsHandler; this.animater = animater; this.options = options; this.directionLockAction = new DirectionLockAction(options.directionLockThreshold, options.freeScroll, options.eventPassthrough); this.enabled = true; this.bindActionsHandler(); } ScrollerActions.prototype.bindActionsHandler = function () { var _this = this; // [mouse|touch]start event this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start, function (e) { if (!_this.enabled) return true; return _this.handleStart(e); }); // [mouse|touch]move event this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move, function (_a) { var deltaX = _a.deltaX, deltaY = _a.deltaY, e = _a.e; if (!_this.enabled) return true; return _this.handleMove(deltaX, deltaY, e); }); // [mouse|touch]end event this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end, function (e) { if (!_this.enabled) return true; return _this.handleEnd(e); }); // click this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click, function (e) { // handle native click event if (_this.enabled && !e._constructed) { _this.handleClick(e); } }); }; ScrollerActions.prototype.handleStart = function (e) { var timestamp = getNow(); this.moved = false; this.startTime = timestamp; this.directionLockAction.reset(); this.scrollBehaviorX.start(); this.scrollBehaviorY.start(); // force stopping last transition or animation this.animater.stop(); this.scrollBehaviorX.resetStartPos(); this.scrollBehaviorY.resetStartPos(); this.hooks.trigger(this.hooks.eventTypes.start, e); }; ScrollerActions.prototype.handleMove = function (deltaX, deltaY, e) { if (this.hooks.trigger(this.hooks.eventTypes.beforeMove, e)) { return; } var absDistX = this.scrollBehaviorX.getAbsDist(deltaX); var absDistY = this.scrollBehaviorY.getAbsDist(deltaY); var timestamp = getNow(); // We need to move at least momentumLimitDistance pixels // for the scrolling to initiate if (this.checkMomentum(absDistX, absDistY, timestamp)) { return true; } if (this.directionLockAction.checkMovingDirection(absDistX, absDistY, e)) { this.actionsHandler.setInitiated(); return true; } var delta = this.directionLockAction.adjustDelta(deltaX, deltaY); var newX = this.scrollBehaviorX.move(delta.deltaX); var newY = this.scrollBehaviorY.move(delta.deltaY); if (!this.moved) { this.moved = true; this.hooks.trigger(this.hooks.eventTypes.scrollStart); } this.animater.translate({ x: newX, y: newY }); this.dispatchScroll(timestamp); }; ScrollerActions.prototype.dispatchScroll = function (timestamp) { // dispatch scroll in interval time if (timestamp - this.startTime > this.options.momentumLimitTime) { // refresh time and starting position to initiate a momentum this.startTime = timestamp; this.scrollBehaviorX.updateStartPos(); this.scrollBehaviorY.updateStartPos(); if (this.options.probeType === 1 /* Throttle */) { this.hooks.trigger(this.hooks.eventTypes.scroll, this.getCurrentPos()); } } // dispatch scroll all the time if (this.options.probeType > 1 /* Throttle */) { this.hooks.trigger(this.hooks.eventTypes.scroll, this.getCurrentPos()); } }; ScrollerActions.prototype.checkMomentum = function (absDistX, absDistY, timestamp) { return (timestamp - this.endTime > this.options.momentumLimitTime && absDistY < this.options.momentumLimitDistance && absDistX < this.options.momentumLimitDistance); }; ScrollerActions.prototype.handleEnd = function (e) { if (this.hooks.trigger(this.hooks.eventTypes.beforeEnd, e)) { return; } var currentPos = this.getCurrentPos(); this.scrollBehaviorX.updateDirection(); this.scrollBehaviorY.updateDirection(); if (this.hooks.trigger(this.hooks.eventTypes.end, e, currentPos)) { return true; } this.animater.translate(currentPos); this.endTime = getNow(); var duration = this.endTime - this.startTime; this.hooks.trigger(this.hooks.eventTypes.scrollEnd, currentPos, duration); }; ScrollerActions.prototype.handleClick = function (e) { if (!preventDefaultExceptionFn(e.target, this.options.preventDefaultException)) { e.preventDefault(); e.stopPropagation(); } }; ScrollerActions.prototype.getCurrentPos = function () { return { x: this.scrollBehaviorX.getCurrentPos(), y: this.scrollBehaviorY.getCurrentPos() }; }; ScrollerActions.prototype.refresh = function () { this.endTime = 0; }; ScrollerActions.prototype.destroy = function () { this.hooks.destroy(); }; return ScrollerActions; }()); function createActionsHandlerOptions(bsOptions) { var options = [ 'click', 'bindToWrapper', 'disableMouse', 'disableTouch', 'preventDefault', 'stopPropagation', 'tagException', 'preventDefaultException' ].reduce(function (prev, cur) { prev[cur] = bsOptions[cur]; return prev; }, {}); return options; } function createBehaviorOptions(bsOptions, extraProp, bounces, rect) { var options = [ 'momentum', 'momentumLimitTime', 'momentumLimitDistance', 'deceleration', 'swipeBounceTime', 'swipeTime' ].reduce(function (prev, cur) { prev[cur] = bsOptions[cur]; return prev; }, {}); // add extra property options.scrollable = bsOptions[extraProp]; options.bounces = bounces; options.rect = rect; return options; } function bubbling(source, target, events) { events.forEach(function (event) { var sourceEvent; var targetEvent; if (typeof event === 'string') { sourceEvent = targetEvent = event; } else { sourceEvent = event.source; targetEvent = event.target; } source.on(sourceEvent, function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return target.trigger.apply(target, [targetEvent].concat(args)); }); }); } var Scroller = /** @class */ (function () { function Scroller(wrapper, options) { this.hooks = new EventEmitter([ 'beforeStart', 'beforeMove', 'beforeScrollStart', 'scrollStart', 'scroll', 'beforeEnd', 'scrollEnd', 'refresh', 'touchEnd', 'end', 'flick', 'scrollCancel', 'momentum', 'scrollTo', 'ignoreDisMoveForSamePos', 'scrollToElement', 'resize' ]); this.wrapper = wrapper; this.content = wrapper.children[0]; this.options = options; var _a = this .options.bounce, _b = _a.left, left = _b === void 0 ? true : _b, _c = _a.right, right = _c === void 0 ? true : _c, _d = _a.top, top = _d === void 0 ? true : _d, _e = _a.bottom, bottom = _e === void 0 ? true : _e; // direction X this.scrollBehaviorX = new Behavior(wrapper, createBehaviorOptions(options, 'scrollX', [left, right], { size: 'width', position: 'left' })); // direction Y this.scrollBehaviorY = new Behavior(wrapper, createBehaviorOptions(options, 'scrollY', [top, bottom], { size: 'height', position: 'top' })); this.translater = new Translater(this.content); this.animater = createAnimater(this.content, this.translater, this.options); this.actionsHandler = new ActionsHandler(wrapper, createActionsHandlerOptions(this.options)); this.actions = new ScrollerActions(this.scrollBehaviorX, this.scrollBehaviorY, this.actionsHandler, this.animater, this.options); var resizeHandler = this.resize.bind(this); this.resizeRegister = new EventRegister(window, [ { name: 'orientationchange', handler: resizeHandler }, { name: 'resize', handler: resizeHandler } ]); this.transitionEndRegister = new EventRegister(this.content, [ { name: style.transitionEnd, handler: this.transitionEnd.bind(this) } ]); this.init(); } Scroller.prototype.init = function () { var _this = this; this.bindTranslater(); this.bindAnimater(); this.bindActions(); // enable pointer events when scrolling ends this.hooks.on(this.hooks.eventTypes.scrollEnd, function () { _this.togglePointerEvents(true); }); }; Scroller.prototype.bindTranslater = function () { var _this = this; var hooks = this.translater.hooks; hooks.on(hooks.eventTypes.beforeTranslate, function (transformStyle) { if (_this.options.translateZ) { transformStyle.push(_this.options.translateZ); } }); // disable pointer events when scrolling hooks.on(hooks.eventTypes.translate, function (pos) { _this.updatePositions(pos); _this.togglePointerEvents(false); }); }; Scroller.prototype.bindAnimater = function () { var _this = this; // reset position this.animater.hooks.on(this.animater.hooks.eventTypes.end, function (pos) { if (!_this.resetPosition(_this.options.bounceTime)) { _this.animater.setPending(false); _this.hooks.trigger(_this.hooks.eventTypes.scrollEnd, pos); } }); bubbling(this.animater.hooks, this.hooks, [ { source: this.animater.hooks.eventTypes.move, target: this.hooks.eventTypes.scroll }, { source: this.animater.hooks.eventTypes.forceStop, target: this.hooks.eventTypes.scrollEnd } ]); }; Scroller.prototype.bindActions = function () { var _this = this; var actions = this.actions; bubbling(actions.hooks, this.hooks, [ { source: actions.hooks.eventTypes.start, target: this.hooks.eventTypes.beforeStart }, { source: actions.hooks.eventTypes.start, target: this.hooks.eventTypes.beforeScrollStart // just for event api }, { source: actions.hooks.eventTypes.beforeMove, target: this.hooks.eventTypes.beforeMove }, { source: actions.hooks.eventTypes.scrollStart, target: this.hooks.eventTypes.scrollStart }, { source: actions.hooks.eventTypes.scroll, target: this.hooks.eventTypes.scroll }, { source: actions.hooks.eventTypes.beforeEnd, target: this.hooks.eventTypes.beforeEnd } ]); actions.hooks.on(actions.hooks.eventTypes.end, function (e, pos) { _this.hooks.trigger(_this.hooks.eventTypes.touchEnd, pos); if (_this.hooks.trigger(_this.hooks.eventTypes.end, pos)) { return true; } // check if it is a click operation if (!actions.moved && _this.checkClick(e)) { _this.animater.setForceStopped(false); _this.hooks.trigger(_this.hooks.eventTypes.scrollCancel); return true; } _this.animater.setForceStopped(false); // reset if we are outside of the boundaries if (_this.resetPosition(_this.options.bounceTime, ease.bounce)) { return true; } }); actions.hooks.on(actions.hooks.eventTypes.scrollEnd, function (pos, duration) { var deltaX = Math.abs(pos.x - _this.scrollBehaviorX.startPos); var deltaY = Math.abs(pos.y - _this.scrollBehaviorY.startPos); if (_this.checkFlick(duration, deltaX, deltaY)) { _this.hooks.trigger(_this.hooks.eventTypes.flick); return; } if (_this.momentum(pos, duration)) { return; } _this.hooks.trigger(_this.hooks.eventTypes.scrollEnd, pos); }); }; Scroller.prototype.checkFlick = function (duration, deltaX, deltaY) { // flick if (this.hooks.events.flick.length > 1 && duration < this.options.flickLimitTime && deltaX < this.options.flickLimitDistance && deltaY < this.options.flickLimitDistance) { return true; } }; Scroller.prototype.momentum = function (pos, duration) { var meta = { time: 0, easing: ease.swiper, newX: pos.x, newY: pos.y }; // start momentum animation if needed var momentumX = this.scrollBehaviorX.end(duration); var momentumY = this.scrollBehaviorY.end(duration); meta.newX = isUndef(momentumX.destination) ? meta.newX : momentumX.destination; meta.newY = isUndef(momentumY.destination) ? meta.newY : momentumY.destination; meta.time = Math.max(momentumX.duration, momentumY.duration); this.hooks.trigger(this.hooks.eventTypes.momentum, meta, this); // when x or y changed, do momentum animation now! if (meta.newX !== pos.x || meta.newY !== pos.y) { // change easing function when scroller goes out of the boundaries if (meta.newX > this.scrollBehaviorX.minScrollPos || meta.newX < this.scrollBehaviorX.maxScrollPos || meta.newY > this.scrollBehaviorY.minScrollPos || meta.newY < this.scrollBehaviorY.maxScrollPos) { meta.easing = ease.swipeBounce; } this.scrollTo(meta.newX, meta.newY, meta.time, meta.easing); return true; } }; Scroller.prototype.checkClick = function (e) { // when in the process of pulling down, it should not prevent click var cancelable = { preventClick: this.animater.forceStopped }; // we scrolled less than momentumLimitDistance pixels if (this.hooks.trigger(this.hooks.eventTypes.checkClick)) return true; if (!cancelable.preventClick) { var _dblclick = this.options.dblclick; var dblclickTrigged = false; if (_dblclick && this.lastClickTime) { var _a = _dblclick.delay, delay = _a === void 0 ? 300 : _a; if (getNow() - this.lastClickTime < delay) { dblclickTrigged = true; dblclick(e); } } if (this.options.tap) { tap(e, this.options.tap); } if (this.options.click && !preventDefaultExceptionFn(e.target, this.options.preventDefaultException)) { click(e); } this.lastClickTime = dblclickTrigged ? null : getNow(); return true; } return false; }; Scroller.prototype.resize = function () { var _this = this; if (!this.actions.enabled) { return; } // fix a scroll problem under Android condition if (isAndroid) { this.wrapper.scrollTop = 0; } if (!this.hooks.trigger(this.hooks.eventTypes.resize)) { clearTimeout(this.resizeTimeout); this.resizeTimeout = window.setTimeout(function () { _this.refresh(); }, this.options.resizePolling); } }; Scroller.prototype.transitionEnd = function (e) { if (e.target !== this.content || !this.animater.pending) { return; } var animater = this.animater; animater.transitionTime(); if (!this.resetPosition(this.options.bounceTime, ease.bounce)) { this.animater.setPending(false); if (this.options.probeType !== 3 /* Realtime */) { this.hooks.trigger(this.hooks.eventTypes.scrollEnd, this.getCurrentPos()); } } }; Scroller.prototype.togglePointerEvents = function (enabled) { if (enabled === void 0) { enabled = true; } var el = this.content.children.length ? this.content.children : [this.content]; var pointerEvents = enabled ? 'auto' : 'none'; for (var i = 0; i < el.length; i++) { var node = el[i]; // ignore BetterScroll instance's wrapper DOM if (node.isBScrollContainer) { continue; } node.style.pointerEvents = pointerEvents; } }; Scroller.prototype.refresh = function () { this.scrollBehaviorX.refresh(); this.scrollBehaviorY.refresh(); this.actions.refresh(); this.wrapperOffset = offset(this.wrapper); }; Scroller.prototype.scrollBy = function (deltaX, deltaY, time, easing) { if (time === void 0) { time = 0; } var _a = this.getCurrentPos(), x = _a.x, y = _a.y; easing = !easing ? ease.bounce : easing; deltaX += x; deltaY += y; this.scrollTo(deltaX, deltaY, time, easing); }; Scroller.prototype.scrollTo = function (x, y, time, easing, extraTransform, isSilent) { if (time === void 0) { time = 0; } if (extraTransform === void 0) { extraTransform = { start: {}, end: {} }; } easing = !easing ? ease.bounce : easing; var easingFn = this.options.useTransition ? easing.style : easing.fn; var currentPos = this.getCurrentPos(); var startPoint = __assign({ x: currentPos.x, y: currentPos.y }, extraTransform.start); var endPoint = __assign({ x: x, y: y }, extraTransform.end); this.hooks.trigger(this.hooks.eventTypes.scrollTo, endPoint); if (!this.hooks.trigger(this.hooks.eventTypes.ignoreDisMoveForSamePos)) { // it is an useless move if (startPoint.x === endPoint.x && startPoint.y === endPoint.y) { return; } } this.animater.move(startPoint, endPoint, time, easingFn, isSilent); }; Scroller.prototype.scrollToElement = function (el, time, offsetX, offsetY, easing) { var targetEle = getElement(el); var pos = offset(targetEle); var getOffset = function (offset, size, wrapperSize) { if (typeof offset === 'number') { return offset; } // if offsetX/Y are true we center the element to the screen return offset ? Math.round(size / 2 - wrapperSize / 2) : 0; }; offsetX = getOffset(offsetX, targetEle.offsetWidth, this.wrapper.offsetWidth); offsetY = getOffset(offsetY, targetEle.offsetHeight, this.wrapper.offsetHeight); var getPos = function (pos, wrapperPos, offset, scrollBehavior) { pos -= wrapperPos; pos = scrollBehavior.adjustPosition(pos - offset); return pos; }; pos.left = getPos(pos.left, this.wrapperOffset.left, offsetX, this.scrollBehaviorX); pos.top = getPos(pos.top, this.wrapperOffset.top, offsetY, this.scrollBehaviorY); if (this.hooks.trigger(this.hooks.eventTypes.scrollToElement, targetEle, pos)) { return; } this.scrollTo(pos.left, pos.top, time, easing); }; Scroller.prototype.resetPosition = function (time, easing) { if (time === void 0) { time = 0; } easing = !easing ? ease.bounce : easing; var _a = this.scrollBehaviorX.checkInBoundary(), x = _a.position, xInBoundary = _a.inBoundary; var _b = this.scrollBehaviorY.checkInBoundary(), y = _b.position, yInBoundary = _b.inBoundary; if (xInBoundary && yInBoundary) { return false; } // out of boundary this.scrollTo(x, y, time, easing); return true; }; Scroller.prototype.updatePositions = function (pos) { this.scrollBehaviorX.updatePosition(pos.x); this.scrollBehaviorY.updatePosition(pos.y); }; Scroller.prototype.getCurrentPos = function () { return this.actions.getCurrentPos(); }; Scroller.prototype.enable = function () { this.actions.enabled = true; }; Scroller.prototype.disable = function () { cancelAnimationFrame(this.animater.timer); this.actions.enabled = false; }; Scroller.prototype.destroy = function () { var _this = this; var keys = [ 'resizeRegister', 'transitionEndRegister', 'actionsHandler', 'actions', 'hooks', 'animater', 'translater', 'scrollBehaviorX', 'scrollBehaviorY' ]; keys.forEach(function (key) { return _this[key].destroy(); }); }; return Scroller; }()); var propertiesConfig = [ { sourceKey: 'scroller.scrollBehaviorX.currentPos', key: 'x' }, { sourceKey: 'scroller.scrollBehaviorY.currentPos', key: 'y' }, { sourceKey: 'scroller.scrollBehaviorX.hasScroll', key: 'hasHorizontalScroll' }, { sourceKey: 'scroller.scrollBehaviorY.hasScroll', key: 'hasVerticalScroll' }, { sourceKey: 'scroller.scrollBehaviorX.contentSize', key: 'scrollerWidth' }, { sourceKey: 'scroller.scrollBehaviorY.contentSize', key: 'scrollerHeight' }, { sourceKey: 'scroller.scrollBehaviorX.maxScrollPos', key: 'maxScrollX' }, { sourceKey: 'scroller.scrollBehaviorY.maxScrollPos', key: 'maxScrollY' }, { sourceKey: 'scroller.scrollBehaviorX.minScrollPos', key: 'minScrollX' }, { sourceKey: 'scroller.scrollBehaviorY.minScrollPos', key: 'minScrollY' }, { sourceKey: 'scroller.scrollBehaviorX.movingDirection', key: 'movingDirectionX' }, { sourceKey: 'scroller.scrollBehaviorY.movingDirection', key: 'movingDirectionY' }, { sourceKey: 'scroller.scrollBehaviorX.direction', key: 'directionX' }, { sourceKey: 'scroller.scrollBehaviorY.direction', key: 'directionY' }, { sourceKey: 'scroller.actions.enabled', key: 'enabled' }, { sourceKey: 'scroller.animater.pending', key: 'pending' }, { sourceKey: 'scroller.animater.stop', key: 'stop' }, { sourceKey: 'scroller.scrollTo', key: 'scrollTo' }, { sourceKey: 'scroller.scrollBy', key: 'scrollBy' }, { sourceKey: 'scroller.scrollToElement', key: 'scrollToElement' }, { sourceKey: 'scroller.resetPosition', key: 'resetPosition' } ]; var BScroll = /** @class */ (function (_super) { __extends(BScroll, _super); function BScroll(el, options) { var _this = _super.call(this, [ 'refresh', 'enable', 'disable', 'beforeScrollStart', 'scrollStart', 'scroll', 'scrollEnd', 'scrollCancel', 'touchEnd', 'flick', 'destroy' ]) || this; var wrapper = getElement(el); if (!wrapper) { warn('Can not resolve the wrapper DOM.'); return _this; } var content = wrapper.children[0]; if (!content) { warn('The wrapper need at least one child element to be scroller.'); return _this; } _this.plugins = {}; _this.options = new Options().merge(options).process(); _this.hooks = new EventEmitter([ 'init', 'refresh', 'enable', 'disable', 'destroy' ]); _this.init(wrapper); return _this; } BScroll.use = function (ctor) { var name = ctor.pluginName; var installed = this.plugins.some(function (plugin) { return ctor === plugin.ctor; }); if (installed) return this; if (isUndef(name)) { warn("Plugin Class must specify plugin's name in static property by 'pluginName' field."); return this; } if (this.pluginsMap[name]) { warn("This plugin has been registered, maybe you need change plugin's name"); return this; } this.pluginsMap[name] = true; this.plugins.push({ name: name, applyOrder: ctor.applyOrder, ctor: ctor }); return this; }; BScroll.prototype.init = function (wrapper) { this.wrapper = wrapper; wrapper.isBScrollContainer = true; this.scroller = new Scroller(wrapper, this.options); this.eventBubbling(); this.handleAutoBlur(); this.innerRefresh(); this.scroller.scrollTo(this.options.startX, this.options.startY); this.enable(); this.proxy(propertiesConfig); this.applyPlugins(); }; BScroll.prototype.applyPlugins = function () { var _this = this; var options = this.options; this.constructor.plugins .sort(function (a, b) { var _a; var applyOrderMap = (_a = {}, _a["pre" /* Pre */] = -1, _a["post" /* Post */] = 1, _a); var aOrder = a.applyOrder ? applyOrderMap[a.applyOrder] : 0; var bOrder = b.applyOrder ? applyOrderMap[b.applyOrder] : 0; return aOrder - bOrder; }) .forEach(function (item) { var ctor = item.ctor; if (options[item.name] && typeof ctor === 'function') { _this.plugins[item.name] = new ctor(_this); } }); }; BScroll.prototype.handleAutoBlur = function () { if (this.options.autoBlur) { this.on(this.eventTypes.beforeScrollStart, function () { var activeElement = document.activeElement; if (activeElement && (activeElement.tagName === 'INPUT' || activeElement.tagName === 'TEXTAREA')) { activeElement.blur(); } }); } }; BScroll.prototype.eventBubbling = function () { bubbling(this.scroller.hooks, this, [ 'beforeScrollStart', 'scrollStart', 'scroll', 'scrollEnd', 'scrollCancel', 'touchEnd', 'flick' ]); }; BScroll.prototype.innerRefresh = function () { this.scroller.refresh(); this.hooks.trigger(this.hooks.eventTypes.refresh); this.trigger(this.eventTypes.refresh); }; BScroll.prototype.proxy = function (propertiesConfig) { var _this = this; propertiesConfig.forEach(function (_a) { var key = _a.key, sourceKey = _a.sourceKey; propertiesProxy(_this, sourceKey, key); }); }; BScroll.prototype.refresh = function () { this.innerRefresh(); this.scroller.resetPosition(); }; BScroll.prototype.enable = function () { this.scroller.enable(); this.hooks.trigger(this.hooks.eventTypes.enable); this.trigger(this.eventTypes.enable); }; BScroll.prototype.disable = function () { this.scroller.disable(); this.hooks.trigger(this.hooks.eventTypes.disable); this.trigger(this.eventTypes.disable); }; BScroll.prototype.destroy = function () { this.hooks.trigger(this.hooks.eventTypes.destroy); this.trigger(this.eventTypes.destroy); this.scroller.destroy(); }; BScroll.prototype.eventRegister = function (names) { this.registerType(names); }; BScroll.plugins = []; BScroll.pluginsMap = {}; return BScroll; }(EventEmitter)); var MouseWheel = /** @class */ (function () { function MouseWheel(scroll) { this.scroll = scroll; this.wheelStart = false; scroll.registerType(['mousewheelMove', 'mousewheelStart', 'mousewheelEnd']); this.mouseWheelOpt = scroll.options.mouseWheel; this.deltaCache = []; this.registorEvent(); this.hooksFn = []; this.registorHooks(scroll.hooks, 'destroy', this.destroy); } MouseWheel.prototype.destroy = function () { this.eventRegistor.destroy(); window.clearTimeout(this.wheelEndTimer); window.clearTimeout(this.wheelMoveTimer); this.hooksFn.forEach(function (item) { var hooks = item[0]; var hooksName = item[1]; var handlerFn = item[2]; hooks.off(hooksName, handlerFn); }); }; MouseWheel.prototype.registorEvent = function () { this.eventRegistor = new EventRegister(this.scroll.scroller.wrapper, [ { name: 'wheel', handler: this.wheelHandler.bind(this) }, { name: 'mousewheel', handler: this.wheelHandler.bind(this) }, { name: 'DOMMouseScroll', handler: this.wheelHandler.bind(this) } ]); }; MouseWheel.prototype.wheelHandler = function (e) { this.beforeHandler(e); // start if (!this.wheelStart) { this.wheelStartHandler(e); this.wheelStart = true; } // move var delta = this.getWheelDelta(e); this.wheelMove(delta); // end this.wheelStopDetactor(e, delta); }; MouseWheel.prototype.wheelStartHandler = function (e) { this.deltaCache = []; this.scroll.trigger(this.scroll.eventTypes.mousewheelStart); }; MouseWheel.prototype.wheelStopDetactor = function (e, delta) { var _this = this; window.clearTimeout(this.wheelEndTimer); var delayTime = this.mouseWheelOpt.throttle || 400; this.wheelEndTimer = window.setTimeout(function () { _this.wheelStart = false; window.clearTimeout(_this.wheelMoveTimer); _this.wheelMoveTimer = 0; _this.scroll.trigger(_this.scroll.eventTypes.mousewheelEnd, delta); }, delayTime); }; MouseWheel.prototype.getWheelDelta = function (e) { var _a = this.mouseWheelOpt, _b = _a.speed, speed = _b === void 0 ? 20 : _b, _c = _a.invert, invert = _c === void 0 ? false : _c; var wheelDeltaX = 0; var wheelDeltaY = 0; var direction = invert ? -1 /* Negative */ : 1 /* Positive */; switch (true) { case 'deltaX' in e: if (e.deltaMode === 1) { wheelDeltaX = -e.deltaX * speed; wheelDeltaY = -e.deltaY * speed; } else { wheelDeltaX = -e.deltaX; wheelDeltaY = -e.deltaY; } break; case 'wheelDeltaX' in e: wheelDeltaX = (e.wheelDeltaX / 120) * speed; wheelDeltaY = (e.wheelDeltaY / 120) * speed; break; case 'wheelDelta' in e: wheelDeltaX = wheelDeltaY = (e.wheelDelta / 120) * speed; break; case 'detail' in e: wheelDeltaX = wheelDeltaY = (-e.detail / 3) * speed; break; } wheelDeltaX *= direction; wheelDeltaY *= direction; if (!this.scroll.scroller.scrollBehaviorY.hasScroll) { wheelDeltaX = wheelDeltaY; wheelDeltaY = 0; } if (!this.scroll.scroller.scrollBehaviorX.hasScroll) { wheelDeltaX = 0; } var directionX = wheelDeltaX > 0 ? -1 /* Negative */ : wheelDeltaX < 0 ? 1 /* Positive */ : 0; var directionY = wheelDeltaY > 0 ? -1 /* Negative */ : wheelDeltaY < 0 ? 1 /* Positive */ : 0; return { x: wheelDeltaX, y: wheelDeltaY, directionX: directionX, directionY: directionY }; }; MouseWheel.prototype.beforeHandler = function (e) { var _a = this.scroll.options, preventDefault = _a.preventDefault, stopPropagation = _a.stopPropagation, preventDefaultException = _a.preventDefaultException; if (preventDefault && !preventDefaultExceptionFn(e.target, preventDefaultException)) { e.preventDefault(); } if (stopPropagation) { e.stopPropagation(); } }; MouseWheel.prototype.wheelMove = function (delta) { var _this = this; if (this.mouseWheelOpt.debounce && this.wheelMoveTimer) { this.deltaCache.push(delta); } else { var cachedDelta = this.deltaCache.reduce(function (prev, current) { return { x: prev.x + current.x, y: prev.y + current.y }; }, { x: 0, y: 0 }); this.deltaCache = []; var newX = this.scroll.x + Math.round(delta.x) + cachedDelta.x; var newY = this.scroll.y + Math.round(delta.y) + cachedDelta.y; var scrollBehaviorX = this.scroll.scroller.scrollBehaviorX; var scrollBehaviorY = this.scroll.scroller.scrollBehaviorY; newX = fixInboundValue(newX, scrollBehaviorX.maxScrollPos, scrollBehaviorX.minScrollPos); newY = fixInboundValue(newY, scrollBehaviorY.maxScrollPos, scrollBehaviorY.minScrollPos); if (!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove, { x: newX, y: newY })) { var easeTime = this.getEaseTime(); if (newX !== this.scroll.x || newY !== this.scroll.y) { this.scroll.scrollTo(newX, newY, easeTime); } } if (this.mouseWheelOpt.debounce) { this.wheelMoveTimer = window.setTimeout(function () { _this.wheelMoveTimer = 0; }, this.mouseWheelOpt.debounce); } } }; MouseWheel.prototype.registorHooks = function (hooks, name, handler) { hooks.on(name, handler, this); this.hooksFn.push([hooks, name, handler]); }; MouseWheel.prototype.getEaseTime = function () { var DEFAULT_EASETIME = 300; var SAFE_EASETIME = 100; var easeTime = this.mouseWheelOpt.easeTime || DEFAULT_EASETIME; // scrollEnd event will be triggered in every calling of scrollTo when easeTime is too small // easeTime needs to be greater than 100 if (easeTime < SAFE_EASETIME) { warn("easeTime should be greater than 100.\n If mouseWheel easeTime is too small, scrollEnd will be triggered many times."); } return easeTime; }; MouseWheel.pluginName = 'mouseWheel'; MouseWheel.applyOrder = "pre" /* Pre */; return MouseWheel; }()); var ObserveDOM = /** @class */ (function () { function ObserveDOM(scroll) { var _this = this; this.scroll = scroll; this.stopObserver = false; this.hooksFn = []; this.init(); this.registorHooks(this.scroll.hooks, 'enable', function () { if (_this.stopObserver) { _this.init(); } }); this.registorHooks(this.scroll.hooks, 'disable', function () { _this.stopObserve(); }); this.registorHooks(this.scroll.hooks, 'destroy', function () { _this.destroy(); }); } ObserveDOM.prototype.init = function () { var _this = this; if (typeof MutationObserver !== 'undefined') { var timer_1 = 0; this.observer = new MutationObserver(function (mutations) { _this.mutationObserverHandler(mutations, timer_1); }); this.startObserve(this.observer); } else { this.checkDOMUpdate(); } }; ObserveDOM.prototype.destroy = function () { this.stopObserve(); this.hooksFn.forEach(function (item) { var hooks = item[0]; var hooksName = item[1]; var handlerFn = item[2]; hooks.off(hooksName, handlerFn); }); this.hooksFn.length = 0; }; ObserveDOM.prototype.mutationObserverHandler = function (mutations, timer) { var _this = this; if (this.shouldNotRefresh()) { return; } var immediateRefresh = false; var deferredRefresh = false; for (var i = 0; i < mutations.length; i++) { var mutation = mutations[i]; if (mutation.type !== 'attributes') { immediateRefresh = true; break; } else { if (mutation.target !== this.scroll.scroller.content) { deferredRefresh = true; break; } } } if (immediateRefresh) { this.scroll.refresh(); } else if (deferredRefresh) { // attributes changes too often clearTimeout(timer); timer = window.setTimeout(function () { if (!_this.shouldNotRefresh()) { _this.scroll.refresh(); } }, 60); } }; ObserveDOM.prototype.startObserve = function (observer) { var config = { attributes: true, childList: true, subtree: true }; observer.observe(this.scroll.scroller.content, config); }; ObserveDOM.prototype.shouldNotRefresh = function () { var scroller = this.scroll.scroller; var scrollBehaviorX = scroller.scrollBehaviorX; var scrollBehaviorY = scroller.scrollBehaviorY; var outsideBoundaries = scrollBehaviorX.currentPos > scrollBehaviorX.minScrollPos || scrollBehaviorX.currentPos < scrollBehaviorX.maxScrollPos || scrollBehaviorY.currentPos > scrollBehaviorY.minScrollPos || scrollBehaviorY.currentPos < scrollBehaviorY.maxScrollPos; return scroller.animater.pending || outsideBoundaries; }; ObserveDOM.prototype.checkDOMUpdate = function () { var me = this; var scrollIns = this.scroll; var scrollerEl = scrollIns.scroller.content; var scrollerRect = getRect(scrollerEl); var oldWidth = scrollerRect.width; var oldHeight = scrollerRect.height; function check() { if (me.stopObserver) { return; } scrollerRect = getRect(scrollerEl); var newWidth = scrollerRect.width; var newHeight = scrollerRect.height; if (oldWidth !== newWidth || oldHeight !== newHeight) { scrollIns.refresh(); } oldWidth = newWidth; oldHeight = newHeight; next(); } function next() { setTimeout(function () { check(); }, 1000); } next(); }; ObserveDOM.prototype.registorHooks = function (hooks, name, handler) { hooks.on(name, handler, this); this.hooksFn.push([hooks, name, handler]); }; ObserveDOM.prototype.stopObserve = function () { this.stopObserver = true; if (this.observer) { this.observer.disconnect(); } }; ObserveDOM.pluginName = 'observeDOM'; return ObserveDOM; }()); var sourcePrefix = 'plugins.pullDownRefresh'; var propertiesMap = [ { key: 'finishPullDown', name: 'finish' }, { key: 'openPullDown', name: 'open' }, { key: 'closePullDown', name: 'close' }, { key: 'autoPullDownRefresh', name: 'autoPull' } ]; var propertiesProxyConfig = propertiesMap.map(function (item) { return { key: item.key, sourceKey: sourcePrefix + "." + item.name }; }); var PullDown = /** @class */ (function () { function PullDown(scroll) { this.scroll = scroll; this.pulling = false; if (scroll.options.pullDownRefresh) { this._watch(); } this.scroll.registerType(['pullingDown']); this.scroll.proxy(propertiesProxyConfig); } PullDown.prototype._watch = function () { // 需要设置 probe = 3 吗? // must watch scroll in real time this.scroll.options.probeType = 3 /* Realtime */; this.scroll.scroller.hooks.on('end', this._checkPullDown, this); }; PullDown.prototype._checkPullDown = function () { if (!this.scroll.options.pullDownRefresh) { return; } var _a = this.scroll.options .pullDownRefresh, _b = _a.threshold, threshold = _b === void 0 ? 90 : _b, _c = _a.stop, stop = _c === void 0 ? 40 : _c; // check if a real pull down action if (this.scroll.directionY !== -1 /* Negative */ || this.scroll.y < threshold) { return false; } if (!this.pulling) { this.pulling = true; this.scroll.trigger('pullingDown'); this.originalMinScrollY = this.scroll.minScrollY; this.scroll.minScrollY = stop; } this.scroll.scrollTo(this.scroll.x, stop, this.scroll.options.bounceTime, ease.bounce); return this.pulling; }; PullDown.prototype.finish = function () { this.pulling = false; this.scroll.minScrollY = this.originalMinScrollY; this.scroll.resetPosition(this.scroll.options.bounceTime, ease.bounce); }; PullDown.prototype.open = function (config) { if (config === void 0) { config = true; } this.scroll.options.pullDownRefresh = config; this._watch(); }; PullDown.prototype.close = function () { this.scroll.options.pullDownRefresh = false; }; PullDown.prototype.autoPull = function () { var _a = this.scroll.options .pullDownRefresh, _b = _a.threshold, threshold = _b === void 0 ? 90 : _b, _c = _a.stop, stop = _c === void 0 ? 40 : _c; if (this.pulling) { return; } this.pulling = true; this.originalMinScrollY = this.scroll.minScrollY; this.scroll.minScrollY = threshold; this.scroll.scrollTo(this.scroll.x, threshold); this.scroll.trigger('pullingDown'); this.scroll.scrollTo(this.scroll.x, stop, this.scroll.options.bounceTime, ease.bounce); }; PullDown.pluginName = 'pullDownRefresh'; return PullDown; }()); var sourcePrefix$1 = 'plugins.pullUpLoad'; var propertiesMap$1 = [ { key: 'finishPullUp', name: 'finish' }, { key: 'openPullUp', name: 'open' }, { key: 'closePullUp', name: 'close' } ]; var propertiesProxyConfig$1 = propertiesMap$1.map(function (item) { return { key: item.key, sourceKey: sourcePrefix$1 + "." + item.name }; }); var PullUp = /** @class */ (function () { function PullUp(bscroll) { this.bscroll = bscroll; this.watching = false; if (bscroll.options.pullUpLoad) { this._watch(); } this.bscroll.registerType(['pullingUp']); this.bscroll.proxy(propertiesProxyConfig$1); } PullUp.prototype._watch = function () { if (this.watching) { return; } // must watch scroll in real time this.bscroll.options.probeType = 3 /* Realtime */; this.watching = true; this.bscroll.on('scroll', this._checkToEnd, this); }; PullUp.prototype._checkToEnd = function (pos) { var _this = this; if (!this.bscroll.options.pullUpLoad) { return; } var _a = this.bscroll.options .pullUpLoad.threshold, threshold = _a === void 0 ? 0 : _a; if (this.bscroll.movingDirectionY === 1 /* Positive */ && pos.y <= this.bscroll.maxScrollY + threshold) { // reset pullupWatching status after scroll end to promise that trigger 'pullingUp' only once when pulling up this.bscroll.once('scrollEnd', function () { _this.watching = false; }); this.bscroll.trigger('pullingUp'); this.bscroll.off('scroll', this._checkToEnd); } }; PullUp.prototype.finish = function () { if (this.watching) { this.bscroll.once('scrollEnd', this._watch, this); } else { this._watch(); } }; PullUp.prototype.open = function (config) { if (config === void 0) { config = true; } this.bscroll.options.pullUpLoad = config; this._watch(); }; PullUp.prototype.close = function () { this.bscroll.options.pullUpLoad = false; if (!this.watching) { return; } this.watching = false; this.bscroll.off('scroll', this._checkToEnd); }; PullUp.pluginName = 'pullUpLoad'; return PullUp; }()); var EventHandler = /** @class */ (function () { function EventHandler(indicator, options) { this.indicator = indicator; this.options = options; this.bscroll = indicator.bscroll; this.startEventRegister = new EventRegister(this.indicator.el, [ { name: options.disableMouse ? 'touchstart' : 'mousedown', handler: this._start.bind(this) } ]); this.endEventRegister = new EventRegister(window, [ { name: options.disableMouse ? 'touchend' : 'mouseup', handler: this._end.bind(this) } ]); this.hooks = new EventEmitter(['touchStart', 'touchMove', 'touchEnd']); } EventHandler.prototype._start = function (e) { var point = (e.touches ? e.touches[0] : e); e.preventDefault(); e.stopPropagation(); this.initiated = true; this.moved = false; this.lastPoint = point[this.indicator.keysMap.pointPos]; var disableMouse = this.bscroll.options.disableMouse; this.moveEventRegister = new EventRegister(window, [ { name: disableMouse ? 'touchmove' : 'mousemove', handler: this._move.bind(this) } ]); this.hooks.trigger('touchStart'); }; EventHandler.prototype._move = function (e) { var point = (e.touches ? e.touches[0] : e); var pointPos = point[this.indicator.keysMap.pointPos]; e.preventDefault(); e.stopPropagation(); var delta = pointPos - this.lastPoint; this.lastPoint = pointPos; if (!this.moved) { this.hooks.trigger('touchMove', this.moved, delta); this.moved = true; return; } this.hooks.trigger('touchMove', this.moved, delta); }; EventHandler.prototype._end = function (e) { if (!this.initiated) { return; } this.initiated = false; e.preventDefault(); e.stopPropagation(); this.moveEventRegister.destroy(); this.hooks.trigger('touchEnd', this.moved); }; EventHandler.prototype.destroy = function () { this.startEventRegister.destroy(); this.moveEventRegister && this.moveEventRegister.destroy(); this.endEventRegister.destroy(); }; return EventHandler; }()); var INDICATOR_MIN_LEN = 8; var Indicator = /** @class */ (function () { function Indicator(bscroll, options) { this.bscroll = bscroll; this.options = options; this.keyVals = { sizeRatio: 1, maxPos: 0, initialSize: 0 }; this.curPos = 0; this.hooksHandlers = []; this.wrapper = options.wrapper; this.wrapperStyle = this.wrapper.style; this.el = this.wrapper.children[0]; this.elStyle = this.el.style; this.bscroll = bscroll; this.direction = options.direction; this.keysMap = this._getKeysMap(); if (options.fade) { this.visible = 0; this.wrapperStyle.opacity = '0'; } else { this.visible = 1; } this._listenHooks(options.fade, options.interactive); this.refresh(); } Indicator.prototype._listenHooks = function (fade, interactive) { var _this = this; var bscroll = this.bscroll; var bscrollHooks = bscroll; var translaterHooks = bscroll.scroller.translater.hooks; var animaterHooks = bscroll.scroller.animater.hooks; this._listen(bscrollHooks, 'refresh', this.refresh); this._listen(translaterHooks, 'translate', this.updatePosAndSize); this._listen(animaterHooks, 'time', function (time) { _this.setTransitionTime(time); }); this._listen(animaterHooks, 'timeFunction', function (ease) { _this.setTransitionTimingFunction(ease); }); if (fade) { this._listen(bscrollHooks, 'scrollEnd', function () { _this.fade(); }); this._listen(bscrollHooks, 'scrollStart', function () { _this.fade(true); }); // for mousewheel event if (bscroll.eventTypes.mousewheelStart && bscroll.eventTypes.mousewheelEnd) { this._listen(bscrollHooks, 'mousewheelStart', function () { _this.fade(true); }); this._listen(bscrollHooks, 'mousewheelEnd', function () { _this.fade(); }); } } if (interactive) { var disableMouse = this.bscroll.options.disableMouse; this.eventHandler = new EventHandler(this, { disableMouse: disableMouse }); var eventHandlerHooks = this.eventHandler.hooks; this._listen(eventHandlerHooks, 'touchStart', this.startHandler); this._listen(eventHandlerHooks, 'touchMove', this.moveHandler); this._listen(eventHandlerHooks, 'touchEnd', this.endHandler); } }; Indicator.prototype._getKeysMap = function () { if (this.direction === "vertical" /* Vertical */) { return { hasScroll: 'hasVerticalScroll', size: 'height', wrapperSize: 'clientHeight', scrollerSize: 'scrollerHeight', maxScroll: 'maxScrollY', pos: 'y', pointPos: 'pageY', translate: 'translateY' }; } return { hasScroll: 'hasHorizontalScroll', size: 'width', wrapperSize: 'clientWidth', scrollerSize: 'scrollerWidth', maxScroll: 'maxScrollX', pos: 'x', pointPos: 'pageX', translate: 'translateX' }; }; Indicator.prototype.fade = function (visible) { var time = visible ? 250 : 500; this.wrapperStyle[style.transitionDuration] = time + 'ms'; this.wrapperStyle.opacity = visible ? '1' : '0'; this.visible = visible ? 1 : 0; }; Indicator.prototype.refresh = function () { var hasScroll = this.keysMap.hasScroll; if (this._setShowBy(this.bscroll[hasScroll])) { var _a = this.keysMap, wrapperSize = _a.wrapperSize, scrollerSize = _a.scrollerSize, maxScroll = _a.maxScroll; this.keyVals = this._refreshKeyValues(this.wrapper[wrapperSize], this.bscroll[scrollerSize], this.bscroll[maxScroll]); this.updatePosAndSize({ x: this.bscroll.x, y: this.bscroll.y }); } }; Indicator.prototype._setShowBy = function (hasScroll) { if (hasScroll) { this.wrapper.style.display = ''; return true; } this.wrapper.style.display = 'none'; return false; }; Indicator.prototype._refreshKeyValues = function (wrapperSize, scrollerSize, maxScroll) { var initialSize = Math.max(Math.round((wrapperSize * wrapperSize) / (scrollerSize || wrapperSize || 1)), INDICATOR_MIN_LEN); var maxPos = wrapperSize - initialSize; // sizeRatio is negative var sizeRatio = maxPos / maxScroll; return { initialSize: initialSize, maxPos: maxPos, sizeRatio: sizeRatio }; }; Indicator.prototype.updatePosAndSize = function (endPoint) { var _a = this._refreshPosAndSizeValue(endPoint, this.keyVals), pos = _a.pos, size = _a.size; this.curPos = pos; this._refreshPosAndSizeStyle(size, pos); }; Indicator.prototype._refreshPosAndSizeValue = function (endPoint, keyVals) { var posKey = this.keysMap.pos; var sizeRatio = keyVals.sizeRatio, initialSize = keyVals.initialSize, maxPos = keyVals.maxPos; var pos = Math.round(sizeRatio * endPoint[posKey]); var size; if (pos < 0) { size = Math.max(initialSize + pos * 3, INDICATOR_MIN_LEN); pos = 0; } else if (pos > maxPos) { size = Math.max(initialSize - (pos - maxPos) * 3, INDICATOR_MIN_LEN); pos = maxPos + initialSize - size; } else { size = initialSize; } return { pos: pos, size: size }; }; Indicator.prototype._refreshPosAndSizeStyle = function (size, pos) { var _a = this.keysMap, translate = _a.translate, sizeKey = _a.size; this.elStyle[sizeKey] = size + "px"; this.elStyle[style.transform] = translate + "(" + pos + "px)" + this.bscroll.options.translateZ; }; Indicator.prototype.setTransitionTime = function (time) { if (time === void 0) { time = 0; } this.elStyle[style.transitionDuration] = time + 'ms'; }; Indicator.prototype.setTransitionTimingFunction = function (easing) { this.elStyle[style.transitionTimingFunction] = easing; }; Indicator.prototype.startHandler = function () { this.setTransitionTime(); this.bscroll.trigger('beforeScrollStart'); }; Indicator.prototype.moveHandler = function (moved, delta) { if (!moved) { this.bscroll.trigger('scrollStart'); } var newScrollPos = this._calScrollDesPos(this.curPos, delta, this.keyVals); // TODO freeScroll ? if (this.direction === "vertical" /* Vertical */) { this.bscroll.scrollTo(this.bscroll.x, newScrollPos); } else { this.bscroll.scrollTo(newScrollPos, this.bscroll.y); } this.bscroll.trigger('scroll', { x: this.bscroll.x, y: this.bscroll.y }); }; Indicator.prototype._calScrollDesPos = function (curPos, delta, keyVals) { var maxPos = keyVals.maxPos, sizeRatio = keyVals.sizeRatio; var newPos = curPos + delta; if (newPos < 0) { newPos = 0; } else if (newPos > maxPos) { newPos = maxPos; } return Math.round(newPos / sizeRatio); }; Indicator.prototype.endHandler = function (moved) { if (moved) { this.bscroll.trigger('scrollEnd', { x: this.bscroll.x, y: this.bscroll.y }); } }; Indicator.prototype.destroy = function () { if (this.options.interactive) { this.eventHandler.destroy(); } this.wrapper.parentNode.removeChild(this.wrapper); this.hooksHandlers.forEach(function (item) { var hooks = item[0]; var hooksName = item[1]; var handlerFn = item[2]; hooks.off(hooksName, handlerFn); }); this.hooksHandlers.length = 0; }; Indicator.prototype._listen = function (hooks, name, handler) { hooks.on(name, handler, this); this.hooksHandlers.push([hooks, name, handler]); }; return Indicator; }()); var ScrollBar = /** @class */ (function () { function ScrollBar(bscroll) { this.indicators = []; if (bscroll.options.scrollbar) { this.indicators = this._initIndicators(bscroll); bscroll.on('destroy', this.destroy, this); } } ScrollBar.prototype._initIndicators = function (bscroll) { var _this = this; var _a = bscroll.options .scrollbar, _b = _a.fade, fade = _b === void 0 ? true : _b, _c = _a.interactive, interactive = _c === void 0 ? false : _c; var indicatorOption; var scrolls = { scrollX: "horizontal" /* Horizontal */, scrollY: "vertical" /* Vertical */ }; var indicators = []; Object.keys(scrolls).forEach(function (key) { var direction = scrolls[key]; if (bscroll.options[key]) { indicatorOption = { wrapper: _this._createIndicatorElement(direction), direction: direction, fade: fade, interactive: interactive }; bscroll.wrapper.appendChild(indicatorOption.wrapper); indicators.push(new Indicator(bscroll, indicatorOption)); } }); return indicators; }; ScrollBar.prototype._createIndicatorElement = function (direction) { var scrollbarEl = document.createElement('div'); var indicatorEl = document.createElement('div'); scrollbarEl.style.cssText = 'position:absolute;z-index:9999;pointerEvents:none'; indicatorEl.style.cssText = 'box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;'; indicatorEl.className = 'bscroll-indicator'; if (direction === 'horizontal') { scrollbarEl.style.cssText += ';height:7px;left:2px;right:2px;bottom:0'; indicatorEl.style.height = '100%'; scrollbarEl.className = 'bscroll-horizontal-scrollbar'; } else { scrollbarEl.style.cssText += ';width:7px;bottom:2px;top:2px;right:1px'; indicatorEl.style.width = '100%'; scrollbarEl.className = 'bscroll-vertical-scrollbar'; } scrollbarEl.style.cssText += ';overflow:hidden'; scrollbarEl.appendChild(indicatorEl); return scrollbarEl; }; ScrollBar.prototype.destroy = function () { for (var _i = 0, _a = this.indicators; _i < _a.length; _i++) { var indicator = _a[_i]; indicator.destroy(); } }; ScrollBar.pluginName = 'scrollbar'; return ScrollBar; }()); var PagesPos = /** @class */ (function () { function PagesPos(scroll, slideOpt) { this.scroll = scroll; this.slideOpt = slideOpt; this.slideEl = null; this.init(); } PagesPos.prototype.init = function () { var scrollerIns = this.scroll.scroller; var scrollBehaviorX = scrollerIns.scrollBehaviorX; var scrollBehaviorY = scrollerIns.scrollBehaviorY; var wrapper = getRect(scrollerIns.wrapper); var scroller = getRect(scrollerIns.content); this.wrapperWidth = wrapper.width; this.wrapperHeight = wrapper.height; this.scrollerHeight = scrollBehaviorY.hasScroll ? scroller.height : wrapper.height; this.scrollerWidth = scrollBehaviorX.hasScroll ? scroller.width : wrapper.width; var stepX = this.slideOpt.stepX || this.wrapperWidth; var stepY = this.slideOpt.stepY || this.wrapperHeight; var slideEls = scrollerIns.content; var el = this.slideOpt.el; if (typeof el === 'string') { this.slideEl = slideEls.querySelectorAll(el); } this.pages = this.slideEl ? this.computePagePosInfoByEl(this.slideEl) : this.computePagePosInfo(stepX, stepY); this.xLen = this.pages ? this.pages.length : 0; this.yLen = this.pages && this.pages[0] ? this.pages[0].length : 0; }; PagesPos.prototype.hasInfo = function () { if (!this.pages || !this.pages.length) { return false; } return true; }; PagesPos.prototype.getPos = function (x, y) { return this.pages[x][y]; }; PagesPos.prototype.getNearestPage = function (x, y) { if (!this.hasInfo()) { return; } var pageX = 0; var pageY = 0; var l = this.pages.length; for (; pageX < l - 1; pageX++) { if (x >= this.pages[pageX][0].cx) { break; } } l = this.pages[pageX].length; for (; pageY < l - 1; pageY++) { if (y >= this.pages[0][pageY].cy) { break; } } return { pageX: pageX, pageY: pageY }; }; PagesPos.prototype.computePagePosInfo = function (stepX, stepY) { var pages = []; var x = 0; var y; var cx; var cy; var i = 0; var l; var maxScrollPosX = this.scroll.scroller.scrollBehaviorX.maxScrollPos; var maxScrollPosY = this.scroll.scroller.scrollBehaviorY.maxScrollPos; cx = Math.round(stepX / 2); cy = Math.round(stepY / 2); while (x > -this.scrollerWidth) { pages[i] = []; l = 0; y = 0; while (y > -this.scrollerHeight) { pages[i][l] = { x: Math.max(x, maxScrollPosX), y: Math.max(y, maxScrollPosY), width: stepX, height: stepY, cx: x - cx, cy: y - cy }; y -= stepY; l++; } x -= stepX; i++; } return pages; }; PagesPos.prototype.computePagePosInfoByEl = function (el) { var pages = []; var x = 0; var y = 0; var cx; var cy; var i = 0; var l = el.length; var m = 0; var n = -1; var rect; var maxScrollX = this.scroll.scroller.scrollBehaviorX.maxScrollPos; var maxScrollY = this.scroll.scroller.scrollBehaviorY.maxScrollPos; for (; i < l; i++) { rect = getRect(el[i]); if (i === 0 || rect.left <= getRect(el[i - 1]).left) { m = 0; n++; } if (!pages[m]) { pages[m] = []; } x = Math.max(-rect.left, maxScrollX); y = Math.max(-rect.top, maxScrollY); cx = x - Math.round(rect.width / 2); cy = y - Math.round(rect.height / 2); pages[m][n] = { x: x, y: y, width: rect.width, height: rect.height, cx: cx, cy: cy }; if (x > maxScrollX) { m++; } } return pages; }; return PagesPos; }()); var PageInfo = /** @class */ (function () { function PageInfo(scroll, slideOpt) { this.scroll = scroll; this.slideOpt = slideOpt; } PageInfo.prototype.init = function () { this.currentPage = { x: 0, y: 0, pageX: 0, pageY: 0 }; this.pagesPos = new PagesPos(this.scroll, this.slideOpt); this.checkSlideLoop(); }; PageInfo.prototype.changeCurrentPage = function (newPage) { this.currentPage = newPage; }; PageInfo.prototype.change2safePage = function (pageX, pageY) { if (!this.pagesPos.hasInfo()) { return; } if (pageX >= this.pagesPos.xLen) { pageX = this.pagesPos.xLen - 1; } else if (pageX < 0) { pageX = 0; } if (pageY >= this.pagesPos.yLen) { pageY = this.pagesPos.yLen - 1; } else if (pageY < 0) { pageY = 0; } var _a = this.pagesPos.getPos(pageX, pageY), x = _a.x, y = _a.y; return { pageX: pageX, pageY: pageY, x: x, y: y }; }; PageInfo.prototype.getInitPage = function () { var initPageX = this.loopX ? 1 : 0; var initPageY = this.loopY ? 1 : 0; return { pageX: initPageX, pageY: initPageY }; }; PageInfo.prototype.getRealPage = function (page) { var fixedPage = function (page, realPageLen) { var pageIndex = []; for (var i = 0; i < realPageLen; i++) { pageIndex.push(i); } pageIndex.unshift(realPageLen - 1); pageIndex.push(0); return pageIndex[page]; }; var currentPage = page ? extend({}, page) : extend({}, this.currentPage); if (this.loopX) { currentPage.pageX = fixedPage(currentPage.pageX, this.pagesPos.xLen - 2); } if (this.loopY) { currentPage.pageY = fixedPage(currentPage.pageY, this.pagesPos.yLen - 2); } return { pageX: currentPage.pageX, pageY: currentPage.pageY }; }; PageInfo.prototype.getPageSize = function () { return this.pagesPos.getPos(this.currentPage.pageX, this.currentPage.pageY); }; PageInfo.prototype.realPage2Page = function (x, y) { if (!this.pagesPos.hasInfo()) { return; } var lastX = this.pagesPos.xLen - 1; var lastY = this.pagesPos.yLen - 1; var firstX = 0; var firstY = 0; if (this.loopX) { x += 1; firstX = firstX + 1; lastX = lastX - 1; } if (this.loopY) { y += 1; firstY = firstY + 1; lastY = lastY - 1; } x = fixInboundValue(x, firstX, lastX); y = fixInboundValue(y, firstY, lastY); return { realX: x, realY: y }; }; PageInfo.prototype.nextPage = function () { return this.changedPageNum("positive" /* Positive */); }; PageInfo.prototype.prevPage = function () { return this.changedPageNum("negative" /* Negative */); }; PageInfo.prototype.nearestPage = function (x, y, directionX, directionY) { var pageInfo = this.pagesPos.getNearestPage(x, y); if (!pageInfo) { return { x: 0, y: 0, pageX: 0, pageY: 0 }; } var pageX = pageInfo.pageX; var pageY = pageInfo.pageY; var newX; var newY; if (pageX === this.currentPage.pageX) { pageX += directionX; pageX = fixInboundValue(pageX, 0, this.pagesPos.xLen - 1); } if (pageY === this.currentPage.pageY) { pageY += directionY; pageY = fixInboundValue(pageInfo.pageY, 0, this.pagesPos.yLen - 1); } newX = this.pagesPos.getPos(pageX, 0).x; newY = this.pagesPos.getPos(0, pageY).y; return { x: newX, y: newY, pageX: pageX, pageY: pageY }; }; PageInfo.prototype.getLoopStage = function () { if (!this.needLoop) { return "middle" /* Middle */; } if (this.loopX) { if (this.currentPage.pageX === 0) { return "head" /* Head */; } if (this.currentPage.pageX === this.pagesPos.xLen - 1) { return "tail" /* Tail */; } } if (this.loopY) { if (this.currentPage.pageY === 0) { return "head" /* Head */; } if (this.currentPage.pageY === this.pagesPos.yLen - 1) { return "tail" /* Tail */; } } return "middle" /* Middle */; }; PageInfo.prototype.resetLoopPage = function () { if (this.loopX) { if (this.currentPage.pageX === 0) { return { pageX: this.pagesPos.xLen - 2, pageY: this.currentPage.pageY }; } if (this.currentPage.pageX === this.pagesPos.xLen - 1) { return { pageX: 1, pageY: this.currentPage.pageY }; } } if (this.loopY) { if (this.currentPage.pageY === 0) { return { pageX: this.currentPage.pageX, pageY: this.pagesPos.yLen - 2 }; } if (this.currentPage.pageY === this.pagesPos.yLen - 1) { return { pageX: this.currentPage.pageX, pageY: 1 }; } } }; PageInfo.prototype.isSameWithCurrent = function (page) { if (page.pageX !== this.currentPage.pageX || page.pageY !== this.currentPage.pageY) { return false; } return true; }; PageInfo.prototype.changedPageNum = function (direction) { var x = this.currentPage.pageX; var y = this.currentPage.pageY; if (this.slideX) { x = direction === "negative" /* Negative */ ? x - 1 : x + 1; } if (this.slideY) { y = direction === "negative" /* Negative */ ? y - 1 : y + 1; } return { pageX: x, pageY: y }; }; PageInfo.prototype.checkSlideLoop = function () { this.needLoop = this.slideOpt.loop; if (this.pagesPos.xLen > 1) { this.slideX = true; } if (this.pagesPos.pages[0] && this.pagesPos.yLen > 1) { this.slideY = true; } this.loopX = this.needLoop && this.slideX; this.loopY = this.needLoop && this.slideY; if (this.slideX && this.slideY) { warn('slide does not support two direction at the same time.'); } }; return PageInfo; }()); var sourcePrefix$2 = 'plugins.slide'; var propertiesMap$2 = [ { key: 'next', name: 'next' }, { key: 'prev', name: 'prev' }, { key: 'goToPage', name: 'goToPage' }, { key: 'getCurrentPage', name: 'getCurrentPage' } ]; var propertiesConfig$1 = propertiesMap$2.map(function (item) { return { key: item.key, sourceKey: sourcePrefix$2 + "." + item.name }; }); var Slide = /** @class */ (function () { function Slide(scroll) { this.scroll = scroll; this.resetLooping = false; this.isTouching = false; this.scroll.proxy(propertiesConfig$1); this.scroll.registerType(['slideWillChange']); this.slideOpt = this.scroll.options.slide; this.page = new PageInfo(scroll, this.slideOpt); this.hooksFn = []; this.willChangeToPage = { pageX: 0, pageY: 0 }; this.init(); } Slide.prototype.init = function () { var _this = this; var slide = this.slideOpt; var slideEls = this.scroll.scroller.content; var lazyInitByRefresh = false; if (slide.loop) { var children = slideEls.children; if (children.length > 1) { this.cloneSlideEleForLoop(slideEls); lazyInitByRefresh = true; } else { // Loop does not make any sense if there is only one child. slide.loop = false; } } var shouldRefreshByWidth = this.setSlideWidth(slideEls); var shouldRefreshByHeight = this.setSlideHeight(this.scroll.scroller.wrapper, slideEls); var shouldRefresh = shouldRefreshByWidth || shouldRefreshByHeight; var scrollHooks = this.scroll.hooks; var scrollerHooks = this.scroll.scroller.hooks; this.registorHooks(scrollHooks, 'refresh', this.initSlideState); this.registorHooks(scrollHooks, 'destroy', this.destroy); this.registorHooks(scrollerHooks, 'momentum', this.modifyScrollMetaHandler); // scrollEnd handler should be called before customized handlers this.registorHooks(this.scroll, 'scrollEnd', this.amendCurrentPage); this.registorHooks(scrollerHooks, 'beforeStart', this.setTouchFlag); this.registorHooks(scrollerHooks, 'scroll', this.scrollMoving); this.registorHooks(scrollerHooks, 'resize', this.resize); // for mousewheel event if (this.scroll.eventTypes.mousewheelMove && this.scroll.eventTypes.mousewheelEnd) { this.registorHooks(this.scroll, 'mousewheelMove', function () { // prevent default action of mousewheelMove return true; }); this.registorHooks(this.scroll, 'mousewheelEnd', function (delta) { if (delta.directionX === 1 /* Positive */ || delta.directionY === 1 /* Positive */) { _this.next(); } if (delta.directionX === -1 /* Negative */ || delta.directionY === -1 /* Negative */) { _this.prev(); } }); } if (slide.listenFlick !== false) { this.registorHooks(scrollerHooks, 'flick', this.flickHandler); } if (!lazyInitByRefresh && !shouldRefresh) { this.initSlideState(); } else { this.scroll.refresh(); } }; Slide.prototype.resize = function () { var _this = this; var slideEls = this.scroll.scroller.content; var slideWrapper = this.scroll.scroller.wrapper; clearTimeout(this.resizeTimeout); this.resizeTimeout = window.setTimeout(function () { _this.clearSlideWidth(slideEls); _this.clearSlideHeight(slideEls); _this.setSlideWidth(slideEls); _this.setSlideHeight(slideWrapper, slideEls); _this.scroll.refresh(); }, this.scroll.options.resizePolling); return true; }; Slide.prototype.next = function (time, easing) { var _a = this.page.nextPage(), pageX = _a.pageX, pageY = _a.pageY; this.goTo(pageX, pageY, time, easing); }; Slide.prototype.prev = function (time, easing) { var _a = this.page.prevPage(), pageX = _a.pageX, pageY = _a.pageY; this.goTo(pageX, pageY, time, easing); }; Slide.prototype.goToPage = function (x, y, time, easing) { var pageInfo = this.page.realPage2Page(x, y); if (!pageInfo) { return; } this.goTo(pageInfo.realX, pageInfo.realY, time, easing); }; Slide.prototype.getCurrentPage = function () { return this.page.getRealPage(); }; Slide.prototype.nearestPage = function (x, y) { var scrollBehaviorX = this.scroll.scroller.scrollBehaviorX; var scrollBehaviorY = this.scroll.scroller.scrollBehaviorY; var triggerThreshold = true; if (Math.abs(x - scrollBehaviorX.absStartPos) <= this.thresholdX && Math.abs(y - scrollBehaviorY.absStartPos) <= this.thresholdY) { triggerThreshold = false; } if (!triggerThreshold) { return this.page.currentPage; } return this.page.nearestPage(fixInboundValue(x, scrollBehaviorX.maxScrollPos, scrollBehaviorX.minScrollPos), fixInboundValue(y, scrollBehaviorY.maxScrollPos, scrollBehaviorY.minScrollPos), scrollBehaviorX.direction, scrollBehaviorY.direction); }; Slide.prototype.destroy = function () { var slideEls = this.scroll.scroller.content; if (this.slideOpt.loop) { var children = slideEls.children; if (children.length > 2) { removeChild(slideEls, children[children.length - 1]); removeChild(slideEls, children[0]); } } this.hooksFn.forEach(function (item) { var hooks = item[0]; var hooksName = item[1]; var handlerFn = item[2]; if (hooks.eventTypes[hooksName]) { hooks.off(hooksName, handlerFn); } }); this.hooksFn.length = 0; }; Slide.prototype.initSlideState = function () { this.page.init(); this.initThreshold(); var initPage = this.page.getInitPage(); this.goTo(initPage.pageX, initPage.pageY, 0); }; Slide.prototype.initThreshold = function () { var slideThreshold = this.slideOpt.threshold || 0.1; if (slideThreshold % 1 === 0) { this.thresholdX = slideThreshold; this.thresholdY = slideThreshold; } else { var pageSize = this.page.getPageSize(); this.thresholdX = Math.round(pageSize.width * slideThreshold); this.thresholdY = Math.round(pageSize.height * slideThreshold); } }; Slide.prototype.cloneSlideEleForLoop = function (slideEls) { var children = slideEls.children; prepend(children[children.length - 1].cloneNode(true), slideEls); slideEls.appendChild(children[1].cloneNode(true)); }; Slide.prototype.amendCurrentPage = function () { this.isTouching = false; if (!this.slideOpt.loop) { return; } // triggered by resetLoop if (this.resetLooping) { this.resetLooping = false; return; } // fix bug: scroll two page or even more page at once and fetch the boundary. // In this case, momentum won't be trigger, so the pageIndex will be wrong and won't be trigger reset. var isScrollToBoundary = false; if (this.page.loopX && (this.scroll.x === this.scroll.scroller.scrollBehaviorX.minScrollPos || this.scroll.x === this.scroll.scroller.scrollBehaviorX.maxScrollPos)) { isScrollToBoundary = true; } if (this.page.loopY && (this.scroll.y === this.scroll.scroller.scrollBehaviorY.minScrollPos || this.scroll.y === this.scroll.scroller.scrollBehaviorY.maxScrollPos)) { isScrollToBoundary = true; } if (isScrollToBoundary) { var scrollBehaviorX = this.scroll.scroller.scrollBehaviorX; var scrollBehaviorY = this.scroll.scroller.scrollBehaviorY; var newPos = this.page.nearestPage(fixInboundValue(this.scroll.x, scrollBehaviorX.maxScrollPos, scrollBehaviorX.minScrollPos), fixInboundValue(this.scroll.y, scrollBehaviorY.maxScrollPos, scrollBehaviorY.minScrollPos), 0, 0); var newPage = { x: newPos.x, y: newPos.y, pageX: newPos.pageX, pageY: newPos.pageY }; if (!this.page.isSameWithCurrent(newPage)) { this.page.changeCurrentPage(newPage); } } var changePage = this.page.resetLoopPage(); if (changePage) { this.resetLooping = true; this.goTo(changePage.pageX, changePage.pageY, 0); return true; // stop trigger chain } // amend willChangeToPage, because willChangeToPage maybe wrong when sliding quickly this.pageWillChangeTo(this.page.currentPage); }; Slide.prototype.shouldSetWidthHeight = function (checkType) { var checkMap = { width: ['scrollX', 'disableSetWidth'], height: ['scrollY', 'disableSetHeight'] }; var checkOption = checkMap[checkType]; if (!this.scroll.options[checkOption[0]]) { return false; } if (this.slideOpt[checkOption[1]]) { return false; } return true; }; Slide.prototype.clearSlideWidth = function (slideEls) { if (!this.shouldSetWidthHeight('width')) { return; } var children = slideEls.children; for (var i = 0; i < children.length; i++) { var slideItemDom = children[i]; slideItemDom.removeAttribute('style'); } slideEls.removeAttribute('style'); }; Slide.prototype.setSlideWidth = function (slideEls) { if (!this.shouldSetWidthHeight('width')) { return false; } var children = slideEls.children; var slideItemWidth = children[0].clientWidth; for (var i = 0; i < children.length; i++) { var slideItemDom = children[i]; slideItemDom.style.width = slideItemWidth + 'px'; } slideEls.style.width = slideItemWidth * children.length + 'px'; return true; }; Slide.prototype.clearSlideHeight = function (slideEls) { if (!this.shouldSetWidthHeight('height')) { return; } var children = slideEls.children; for (var i = 0; i < children.length; i++) { var slideItemDom = children[i]; slideItemDom.removeAttribute('style'); } slideEls.removeAttribute('style'); }; // height change will not effect minScrollY & maxScrollY Slide.prototype.setSlideHeight = function (slideWrapper, slideEls) { if (!this.shouldSetWidthHeight('height')) { return false; } var wrapperHeight = slideWrapper.clientHeight; var children = slideEls.children; for (var i = 0; i < children.length; i++) { var slideItemDom = children[i]; slideItemDom.style.height = wrapperHeight + 'px'; } slideEls.style.height = wrapperHeight * children.length + 'px'; return true; }; Slide.prototype.goTo = function (pageX, pageY, time, easing) { if (pageY === void 0) { pageY = 0; } var newPageInfo = this.page.change2safePage(pageX, pageY); if (!newPageInfo) { return; } var scrollEasing = easing || this.slideOpt.easing || ease.bounce; var posX = newPageInfo.x; var posY = newPageInfo.y; var deltaX = posX - this.scroll.scroller.scrollBehaviorX.currentPos; var deltaY = posY - this.scroll.scroller.scrollBehaviorY.currentPos; if (!deltaX && !deltaY) { return; } time = time === undefined ? this.getAnimateTime(deltaX, deltaY) : time; this.page.changeCurrentPage({ x: posX, y: posY, pageX: newPageInfo.pageX, pageY: newPageInfo.pageY }); this.pageWillChangeTo(this.page.currentPage); this.scroll.scroller.scrollTo(posX, posY, time, scrollEasing); }; Slide.prototype.flickHandler = function () { var scrollBehaviorX = this.scroll.scroller.scrollBehaviorX; var scrollBehaviorY = this.scroll.scroller.scrollBehaviorY; var deltaX = scrollBehaviorX.currentPos - scrollBehaviorX.startPos; var deltaY = scrollBehaviorY.currentPos - scrollBehaviorY.startPos; var time = this.getAnimateTime(deltaX, deltaY); this.goTo(this.page.currentPage.pageX + scrollBehaviorX.direction, this.page.currentPage.pageY + scrollBehaviorY.direction, time); }; Slide.prototype.getAnimateTime = function (deltaX, deltaY) { if (this.slideOpt.speed) { return this.slideOpt.speed; } return Math.max(Math.max(Math.min(Math.abs(deltaX), 1000), Math.min(Math.abs(deltaY), 1000)), 300); }; Slide.prototype.modifyScrollMetaHandler = function (scrollMeta) { var newPos = this.nearestPage(scrollMeta.newX, scrollMeta.newY); scrollMeta.time = this.getAnimateTime(scrollMeta.newX - newPos.x, scrollMeta.newY - newPos.y); scrollMeta.newX = newPos.x; scrollMeta.newY = newPos.y; scrollMeta.easing = this.slideOpt.easing || ease.bounce; this.page.changeCurrentPage({ x: scrollMeta.newX, y: scrollMeta.newY, pageX: newPos.pageX, pageY: newPos.pageY }); this.pageWillChangeTo(this.page.currentPage); }; Slide.prototype.scrollMoving = function (point) { if (this.isTouching) { var newPos = this.nearestPage(point.x, point.y); this.pageWillChangeTo(newPos); } }; Slide.prototype.pageWillChangeTo = function (newPage) { var changeToPage = this.page.getRealPage(newPage); if (changeToPage.pageX === this.willChangeToPage.pageX && changeToPage.pageY === this.willChangeToPage.pageY) { return; } this.willChangeToPage = changeToPage; this.scroll.trigger('slideWillChange', this.willChangeToPage); }; Slide.prototype.setTouchFlag = function () { this.isTouching = true; }; Slide.prototype.registorHooks = function (hooks, name, handler) { hooks.on(name, handler, this); this.hooksFn.push([hooks, name, handler]); }; Slide.pluginName = 'slide'; return Slide; }()); var sourcePrefix$3 = 'plugins.wheel'; var propertiesMap$3 = [ { key: 'wheelTo', name: 'wheelTo' }, { key: 'getSelectedIndex', name: 'getSelectedIndex' } ]; var propertiesConfig$2 = propertiesMap$3.map(function (item) { return { key: item.key, sourceKey: sourcePrefix$3 + "." + item.name }; }); var CONSTANTS = { rate: 4 }; var Wheel = /** @class */ (function () { function Wheel(scroll) { this.scroll = scroll; this.options = this.scroll.options.wheel; this.init(); } Wheel.prototype.init = function () { if (this.options) { this.normalizeOptions(); this.refresh(); this.tapIntoHooks(); this.wheelTo(this.selectedIndex); this.scroll.proxy(propertiesConfig$2); } }; Wheel.prototype.tapIntoHooks = function () { var _this = this; var scroller = this.scroll.scroller; var actionsHandler = scroller.actionsHandler; var scrollBehaviorY = scroller.scrollBehaviorY; var animater = scroller.animater; // BScroll this.scroll.on(this.scroll.hooks.eventTypes.refresh, function () { _this.refresh(); }); // Scroller scroller.hooks.on(scroller.hooks.eventTypes.checkClick, function () { var index = Array.from(_this.items).indexOf(_this.target); if (index === -1) return true; _this.wheelTo(index, _this.options.adjustTime, ease.swipe); return true; }); scroller.hooks.on(scroller.hooks.eventTypes.scrollTo, function (endPoint) { endPoint.y = _this.findNearestValidWheel(endPoint.y).y; }); scroller.hooks.on(scroller.hooks.eventTypes.scrollToElement, function (el, pos) { if (!hasClass(el, _this.options.wheelItemClass)) { return true; } else { pos.top = _this.findNearestValidWheel(pos.top).y; } }); scroller.hooks.on(scroller.hooks.eventTypes.ignoreDisMoveForSamePos, function () { return true; }); // ActionsHandler actionsHandler.hooks.on(actionsHandler.hooks.eventTypes.beforeStart, function (e) { _this.target = e.target; }); // ScrollBehaviorY scrollBehaviorY.hooks.on(scrollBehaviorY.hooks.eventTypes.momentum, function (momentumInfo, distance) { momentumInfo.rate = CONSTANTS.rate; momentumInfo.destination = _this.findNearestValidWheel(momentumInfo.destination).y; var maxDistance = 1000; var minDuration = 800; if (distance < maxDistance) { momentumInfo.duration = Math.max(minDuration, (distance / maxDistance) * _this.scroll.options.swipeTime); } }); scrollBehaviorY.hooks.on(scrollBehaviorY.hooks.eventTypes.end, function (momentumInfo) { var validWheel = _this.findNearestValidWheel(scrollBehaviorY.currentPos); momentumInfo.destination = validWheel.y; momentumInfo.duration = _this.options.adjustTime; _this.selectedIndex = validWheel.index; }); // Animater animater.hooks.on(animater.hooks.eventTypes.time, function (time) { _this.transitionDuration(time); }); animater.hooks.on(animater.hooks.eventTypes.timeFunction, function (easing) { _this.timeFunction(easing); }); animater.hooks.on(animater.hooks.eventTypes.beforeForceStop, function (_a) { var y = _a.y; _this.target = _this.items[_this.findNearestValidWheel(y).index]; // don't dispatch scrollEnd when it is a click operation return true; }); // Translater animater.translater.hooks.on(animater.translater.hooks.eventTypes.translate, function (endPoint) { _this.rotateX(endPoint.y); _this.selectedIndex = _this.findNearestValidWheel(endPoint.y).index; }); }; Wheel.prototype.refresh = function () { var scroller = this.scroll.scroller; var scrollBehaviorY = scroller.scrollBehaviorY; // adjust contentSize var contentRect = getRect(scroller.content); scrollBehaviorY.contentSize = contentRect.height; this.items = scroller.content.children; this.checkWheelAllDisabled(); this.itemHeight = this.items.length ? scrollBehaviorY.contentSize / this.items.length : 0; if (this.selectedIndex === undefined) { this.selectedIndex = this.options.selectedIndex || 0; } this.scroll.maxScrollX = 0; this.scroll.maxScrollY = -this.itemHeight * (this.items.length - 1); this.scroll.minScrollX = 0; this.scroll.minScrollY = 0; scrollBehaviorY.hasScroll = scrollBehaviorY.options && this.scroll.maxScrollY < this.scroll.minScrollY; }; Wheel.prototype.getSelectedIndex = function () { return this.selectedIndex; }; Wheel.prototype.wheelTo = function (index, time, ease, isSlient) { if (index === void 0) { index = 0; } if (time === void 0) { time = 0; } var y = -index * this.itemHeight; this.scroll.scrollTo(0, y, time, ease, isSlient); }; Wheel.prototype.transitionDuration = function (time) { for (var i = 0; i < this.items.length; i++) { this.items[i].style[style.transitionDuration] = time + 'ms'; } }; Wheel.prototype.timeFunction = function (easing) { for (var i = 0; i < this.items.length; i++) { this.items[i].style[style.transitionTimingFunction] = easing; } }; Wheel.prototype.rotateX = function (y) { var _a = this.options.rotate, rotate = _a === void 0 ? 25 : _a; for (var i = 0; i < this.items.length; i++) { var deg = rotate * (y / this.itemHeight + i); this.items[i].style[style.transform] = "rotateX(" + deg + "deg)"; } }; Wheel.prototype.findNearestValidWheel = function (y) { y = y > 0 ? 0 : y < this.scroll.maxScrollY ? this.scroll.maxScrollY : y; var currentIndex = Math.abs(Math.round(-y / this.itemHeight)); var cacheIndex = currentIndex; var items = this.items; var wheelDisabledItemClassName = this.options .wheelDisabledItemClass; // Impersonation web native select // first, check whether there is a enable item whose index is smaller than currentIndex // then, check whether there is a enable item whose index is bigger than currentIndex // otherwise, there are all disabled items, just keep currentIndex unchange while (currentIndex >= 0) { if (!hasClass(items[currentIndex], wheelDisabledItemClassName)) { break; } currentIndex--; } if (currentIndex < 0) { currentIndex = cacheIndex; while (currentIndex <= items.length - 1) { if (!hasClass(items[currentIndex], wheelDisabledItemClassName)) { break; } currentIndex++; } } // keep it unchange when all the items are disabled if (currentIndex === items.length) { currentIndex = cacheIndex; } // when all the items are disabled, this.selectedIndex should always be -1 return { index: this.wheelItemsAllDisabled ? -1 : currentIndex, y: -currentIndex * this.itemHeight }; }; Wheel.prototype.normalizeOptions = function () { var options = (this.options = isPlainObject(this.options) ? this.options : {}); if (!options.wheelWrapperClass) { options.wheelWrapperClass = 'wheel-scroll'; } if (!options.wheelItemClass) { options.wheelItemClass = 'wheel-item'; } if (!options.rotate) { options.rotate = 25; } if (!options.adjustTime) { options.adjustTime = 400; } if (!options.wheelDisabledItemClass) { options.wheelDisabledItemClass = 'wheel-disabled-item'; } }; Wheel.prototype.checkWheelAllDisabled = function () { var wheelDisabledItemClassName = this.options .wheelDisabledItemClass; var items = this.items; this.wheelItemsAllDisabled = true; for (var i = 0; i < items.length; i++) { if (!hasClass(items[i], wheelDisabledItemClassName)) { this.wheelItemsAllDisabled = false; break; } } }; Wheel.pluginName = 'wheel'; return Wheel; }()); var sourcePrefix$4 = 'plugins.zoom'; var propertiesMap$4 = [ { key: 'zoomTo', name: 'zoomTo' } ]; var propertiesConfig$3 = propertiesMap$4.map(function (item) { return { key: item.key, sourceKey: sourcePrefix$4 + "." + item.name }; }); var Zoom = /** @class */ (function () { function Zoom(scroll) { this.scroll = scroll; this.scale = 1; this.scroll.proxy(propertiesConfig$3); this.scroll.registerType(['zoomStart', 'zoomEnd']); this.zoomOpt = this.scroll.options.zoom; this.lastTransformScale = this.scale; this.hooksFn = []; this.init(); } Zoom.prototype.init = function () { var _this = this; var scrollerIns = this.scroll.scroller; this.wrapper = this.scroll.scroller.wrapper; this.scaleElement = this.scroll.scroller.content; this.scaleElement.style[style.transformOrigin] = '0 0'; this.scaleElementInitSize = getRect(this.scaleElement); var scrollBehaviorX = scrollerIns.scrollBehaviorX; var scrollBehaviorY = scrollerIns.scrollBehaviorY; this.initScrollBoundary = { x: [scrollBehaviorX.minScrollPos, scrollBehaviorX.maxScrollPos], y: [scrollBehaviorY.minScrollPos, scrollBehaviorY.maxScrollPos] }; this.registorHooks(scrollerIns.actions.hooks, 'start', function (e) { if (e.touches && e.touches.length > 1) { _this.zoomStart(e); } }); this.registorHooks(scrollerIns.actions.hooks, 'beforeMove', function (e) { if (!e.touches || e.touches.length < 2) { return false; } _this.zoom(e); return true; }); this.registorHooks(scrollerIns.actions.hooks, 'beforeEnd', function (e) { if (!_this.zooming) { return false; } _this.zoomEnd(); return true; }); this.registorHooks(scrollerIns.translater.hooks, 'beforeTranslate', function (transformStyle, point) { var scale = point.scale ? point.scale : _this.lastTransformScale; _this.lastTransformScale = scale; transformStyle.push("scale(" + scale + ")"); }); this.registorHooks(scrollerIns.hooks, 'ignoreDisMoveForSamePos', function () { return true; }); this.registorHooks(this.scroll.hooks, 'destroy', this.destroy); }; Zoom.prototype.zoomTo = function (scale, x, y) { var _a = offsetToBody(this.wrapper), left = _a.left, top = _a.top; var originX = x + left - this.scroll.x; var originY = y + top - this.scroll.y; this.zooming = true; this._zoomTo(scale, { x: originX, y: originY }, this.scale); this.zooming = false; }; Zoom.prototype.zoomStart = function (e) { this.zooming = true; var firstFinger = e.touches[0]; var secondFinger = e.touches[1]; this.startDistance = this.getFingerDistance(e); this.startScale = this.scale; var _a = offsetToBody(this.wrapper), left = _a.left, top = _a.top; this.origin = { x: Math.abs(firstFinger.pageX + secondFinger.pageX) / 2 + left - this.scroll.x, y: Math.abs(firstFinger.pageY + secondFinger.pageY) / 2 + top - this.scroll.y }; this.scroll.trigger(this.scroll.eventTypes.zoomStart); }; Zoom.prototype.zoom = function (e) { var scrollerIns = this.scroll.scroller; var currentDistance = this.getFingerDistance(e); var currentScale = (currentDistance / this.startDistance) * this.startScale; this.scale = this.scaleCure(currentScale); var lastScale = this.scale / this.startScale; var scrollBehaviorX = scrollerIns.scrollBehaviorX; var scrollBehaviorY = scrollerIns.scrollBehaviorY; var x = this.getNewPos(this.origin.x, lastScale, scrollBehaviorX); var y = this.getNewPos(this.origin.y, lastScale, scrollBehaviorY); this.resetBoundaries(this.scale, scrollBehaviorX, 'x', x); this.resetBoundaries(this.scale, scrollBehaviorY, 'y', y); scrollerIns.scrollTo(x, y, 0, undefined, { start: { scale: this.lastTransformScale }, end: { scale: this.scale } }); }; Zoom.prototype.getFingerDistance = function (e) { var firstFinger = e.touches[0]; var secondFinger = e.touches[1]; var deltaX = Math.abs(firstFinger.pageX - secondFinger.pageX); var deltaY = Math.abs(firstFinger.pageY - secondFinger.pageY); return getDistance(deltaX, deltaY); }; Zoom.prototype.zoomEnd = function () { this._zoomTo(this.scale, this.origin, this.startScale || this.scale); this.zooming = false; this.scroll.trigger(this.scroll.eventTypes.zoomEnd); }; Zoom.prototype.destroy = function () { this.hooksFn.forEach(function (item) { var hooks = item[0]; var hooksName = item[1]; var handlerFn = item[2]; hooks.off(hooksName, handlerFn); }); this.hooksFn.length = 0; }; Zoom.prototype._zoomTo = function (scale, origin, startScale) { this.scale = this.fixInScaleLimit(scale); var lastScale = this.scale / startScale; var scrollerIns = this.scroll.scroller; var scrollBehaviorX = scrollerIns.scrollBehaviorX; var scrollBehaviorY = scrollerIns.scrollBehaviorY; this.resetBoundaries(this.scale, scrollBehaviorX, 'x'); this.resetBoundaries(this.scale, scrollBehaviorY, 'y'); // resetPosition var newX = this.getNewPos(origin.x, lastScale, scrollBehaviorX, true); var newY = this.getNewPos(origin.y, lastScale, scrollBehaviorY, true); if (scrollBehaviorX.currentPos !== Math.round(newX) || scrollBehaviorY.currentPos !== Math.round(newY) || this.scale !== this.lastTransformScale) { scrollerIns.scrollTo(newX, newY, this.scroll.options.bounceTime, undefined, { start: { scale: this.lastTransformScale }, end: { scale: this.scale } }); } }; Zoom.prototype.resetBoundaries = function (scale, scrollBehavior, direction, extendValue) { var min = this.initScrollBoundary[direction][0]; var max = this.initScrollBoundary[direction][1]; var hasScroll = false; if (scale > 1) { var sideName = direction === 'x' ? 'width' : 'height'; max = -this.scaleElementInitSize[sideName] * (scale - 1) - this.initScrollBoundary[direction][1]; hasScroll = true; } if (!isUndef(extendValue)) { max = Math.min(extendValue, max); min = Math.max(extendValue, min); // max & min & curValue is negative value hasScroll = !!(min || max); } scrollBehavior.minScrollPos = Math.floor(min); scrollBehavior.maxScrollPos = Math.floor(max); scrollBehavior.hasScroll = hasScroll; }; Zoom.prototype.getNewPos = function (origin, lastScale, scrollBehavior, fixInBound) { var newPos = origin - origin * lastScale + scrollBehavior.startPos; if (fixInBound) { newPos = fixInboundValue(newPos, scrollBehavior.maxScrollPos, 0); } return Math.floor(newPos); }; Zoom.prototype.scaleCure = function (scale) { var _a = this.zoomOpt, _b = _a.min, min = _b === void 0 ? 1 : _b, _c = _a.max, max = _c === void 0 ? 4 : _c; if (scale < min) { scale = 0.5 * min * Math.pow(2.0, scale / min); } else if (scale > max) { scale = 2.0 * max * Math.pow(0.5, max / scale); } return scale; }; Zoom.prototype.fixInScaleLimit = function (scale) { var _a = this.zoomOpt, _b = _a.min, min = _b === void 0 ? 1 : _b, _c = _a.max, max = _c === void 0 ? 4 : _c; if (scale > max) { scale = max; } else if (scale < min) { scale = min; } return scale; }; Zoom.prototype.registorHooks = function (hooks, name, handler) { hooks.on(name, handler, this); this.hooksFn.push([hooks, name, handler]); }; Zoom.pluginName = 'zoom'; return Zoom; }()); var compatibleFeatures = { duplicateClick: function (_a) { var parentScroll = _a[0], childScroll = _a[1]; // no need to make childScroll's click true if (parentScroll.options.click && childScroll.options.click) { childScroll.options.click = false; } }, nestedScroll: function (scrollsPair) { var parentScroll = scrollsPair[0], childScroll = scrollsPair[1]; var parentScrollX = parentScroll.options.scrollX; var parentScrollY = parentScroll.options.scrollY; var childScrollX = childScroll.options.scrollX; var childScrollY = childScroll.options.scrollY; // vertical nested in vertical scroll and horizontal nested in horizontal // otherwise, no need to handle. if (parentScrollX === childScrollX || parentScrollY === childScrollY) { scrollsPair.forEach(function (scroll, index) { var oppositeScroll = scrollsPair[(index + 1) % 2]; scroll.on('beforeScrollStart', function () { if (oppositeScroll.pending) { oppositeScroll.stop(); oppositeScroll.resetPosition(); } setupData(oppositeScroll); oppositeScroll.disable(); }); scroll.on('touchEnd', function () { oppositeScroll.enable(); }); }); childScroll.on('scrollStart', function () { if (checkBeyondBoundary(childScroll)) { childScroll.disable(); parentScroll.enable(); } }); } } }; var NestedScroll = /** @class */ (function () { function NestedScroll(scroll) { var singleton = NestedScroll.nestedScroll; if (!(singleton instanceof NestedScroll)) { singleton = NestedScroll.nestedScroll = this; singleton.stores = []; } singleton.setup(scroll); singleton.addHooks(scroll); return singleton; } NestedScroll.prototype.setup = function (scroll) { this.appendBScroll(scroll); this.handleContainRelationship(); this.handleCompatible(); }; NestedScroll.prototype.addHooks = function (scroll) { var _this = this; scroll.on('destroy', function () { _this.teardown(scroll); }); }; NestedScroll.prototype.teardown = function (scroll) { this.removeBScroll(scroll); this.handleContainRelationship(); this.handleCompatible(); }; NestedScroll.prototype.appendBScroll = function (scroll) { this.stores.push(scroll); }; NestedScroll.prototype.removeBScroll = function (scroll) { var index = this.stores.indexOf(scroll); if (index === -1) return; scroll.wrapper.isBScrollContainer = undefined; this.stores.splice(index, 1); }; NestedScroll.prototype.handleContainRelationship = function () { // bs's length <= 1 var stores = this.stores; if (stores.length <= 1) { // there is only a childBScroll left. if (stores[0] && stores[0].__parentInfo) { stores[0].__parentInfo = undefined; } return; } var outerBS; var outerBSWrapper; var innerBS; var innerBSWrapper; // Need two layers of "For loop" to calculate parent-child relationship for (var i = 0; i < stores.length; i++) { outerBS = stores[i]; outerBSWrapper = outerBS.wrapper; for (var j = 0; j < stores.length; j++) { innerBS = stores[j]; innerBSWrapper = innerBS.wrapper; // same bs if (outerBS === innerBS) continue; // now start calculating if (!innerBSWrapper.contains(outerBSWrapper)) continue; // now innerBS contains outerBS // no parentInfo yet if (!outerBS.__parentInfo) { outerBS.__parentInfo = { parent: innerBS, depth: calculateDepths(outerBSWrapper, innerBSWrapper) }; } else { // has parentInfo already! // just judge the "true" parent by depth // we regard the latest node as parent, not the furthest var currentDepths = calculateDepths(outerBSWrapper, innerBSWrapper); var prevDepths = outerBS.__parentInfo.depth; // refresh currentBS as parentScroll if (prevDepths > currentDepths) { outerBS.__parentInfo = { parent: innerBS, depth: currentDepths }; } } } } }; NestedScroll.prototype.handleCompatible = function () { var pairs = this.availableBScrolls(); var keys = ['duplicateClick', 'nestedScroll']; pairs.forEach(function (pair) { keys.forEach(function (key) { compatibleFeatures[key](pair); }); }); }; NestedScroll.prototype.availableBScrolls = function () { var ret = []; ret = this.stores .filter(function (bs) { return !!bs.__parentInfo; }) .map(function (bs) { return [bs.__parentInfo.parent, bs]; }); return ret; }; NestedScroll.pluginName = 'nestedScroll'; return NestedScroll; }()); function calculateDepths(childNode, parentNode) { var depth = 0; var parent = childNode.parentNode; while (parent && parent !== parentNode) { depth++; parent = parent.parentNode; } return depth; } function checkBeyondBoundary(scroll) { var _a = hasScroll(scroll), hasHorizontalScroll = _a.hasHorizontalScroll, hasVerticalScroll = _a.hasVerticalScroll; var _b = scroll.scroller, scrollBehaviorX = _b.scrollBehaviorX, scrollBehaviorY = _b.scrollBehaviorY; var hasReachLeft = scroll.x >= scroll.minScrollX && scrollBehaviorX.movingDirection === -1; var hasReachRight = scroll.x <= scroll.maxScrollX && scrollBehaviorX.movingDirection === 1; var hasReachTop = scroll.y >= scroll.minScrollY && scrollBehaviorY.movingDirection === -1; var hasReachBottom = scroll.y <= scroll.maxScrollY && scrollBehaviorY.movingDirection === 1; if (hasVerticalScroll) { return hasReachTop || hasReachBottom; } else if (hasHorizontalScroll) { return hasReachLeft || hasReachRight; } return false; } function setupData(scroll) { var _a = hasScroll(scroll), hasHorizontalScroll = _a.hasHorizontalScroll, hasVerticalScroll = _a.hasVerticalScroll; var _b = scroll.scroller, actions = _b.actions, scrollBehaviorX = _b.scrollBehaviorX, scrollBehaviorY = _b.scrollBehaviorY; actions.startTime = +new Date(); if (hasVerticalScroll) { scrollBehaviorY.startPos = scrollBehaviorY.currentPos; } else if (hasHorizontalScroll) { scrollBehaviorX.startPos = scrollBehaviorX.currentPos; } } function hasScroll(scroll) { return { hasHorizontalScroll: scroll.scroller.scrollBehaviorX.hasScroll, hasVerticalScroll: scroll.scroller.scrollBehaviorY.hasScroll }; } var PRE_NUM = 10; var POST_NUM = 30; var IndexCalculator = /** @class */ (function () { function IndexCalculator(wrapperHeight, tombstoneHeight) { this.wrapperHeight = wrapperHeight; this.tombstoneHeight = tombstoneHeight; this.lastDirection = 1 /* DOWN */; this.lastPos = 0; } IndexCalculator.prototype.calculate = function (pos, list) { var offset = pos - this.lastPos; this.lastPos = pos; var direction = this.getDirection(offset); // important! start index is much more important than end index. var start = this.calculateIndex(0, pos, list); var end = this.calculateIndex(start, pos + this.wrapperHeight, list); if (direction === 1 /* DOWN */) { start -= PRE_NUM; end += POST_NUM; } else { start -= POST_NUM; end += PRE_NUM; } if (start < 0) { start = 0; } return { start: start, end: end }; }; IndexCalculator.prototype.getDirection = function (offset) { var direction; if (offset > 0) { direction = 1 /* DOWN */; } else if (offset < 0) { direction = 0 /* UP */; } else { return this.lastDirection; } this.lastDirection = direction; return direction; }; IndexCalculator.prototype.calculateIndex = function (start, offset, list) { if (offset <= 0) { return start; } var i = start; var startPos = list[i] && list[i].pos !== -1 ? list[i].pos : 0; var lastPos = startPos; var tombstone = 0; while (i < list.length && list[i].pos < offset) { lastPos = list[i].pos; i++; } if (i === list.length) { tombstone = Math.floor((offset - lastPos) / this.tombstoneHeight); } i += tombstone; return i; }; return IndexCalculator; }()); var ListItem = /** @class */ (function () { function ListItem() { this.data = null; this.dom = null; this.tombstone = null; this.width = 0; this.height = 0; this.pos = 0; } return ListItem; }()); var DataManager = /** @class */ (function () { function DataManager(list, fetchFn, onFetchFinish) { this.fetchFn = fetchFn; this.onFetchFinish = onFetchFinish; this.loadedNum = 0; this.fetching = false; this.hasMore = true; this.list = list || []; } DataManager.prototype.update = function (end) { return __awaiter(this, void 0, void 0, function () { var len; return __generator(this, function (_a) { if (!this.hasMore) { end = Math.min(end, this.list.length); } // add data placeholder if (end > this.list.length) { len = end - this.list.length; this.addEmptyData(len); } // tslint:disable-next-line: no-floating-promises return [2 /*return*/, this.checkToFetch(end)]; }); }); }; DataManager.prototype.add = function (data) { for (var i = 0; i < data.length; i++) { if (!this.list[this.loadedNum]) { this.list[this.loadedNum] = { data: data[i] }; } else { this.list[this.loadedNum] = __assign({}, this.list[this.loadedNum], { data: data[i] }); } this.loadedNum++; } return this.list; }; DataManager.prototype.addEmptyData = function (len) { for (var i = 0; i < len; i++) { this.list.push(new ListItem()); } return this.list; }; DataManager.prototype.fetch = function (len) { return __awaiter(this, void 0, void 0, function () { var data; return __generator(this, function (_a) { switch (_a.label) { case 0: if (this.fetching) { return [2 /*return*/, []]; } this.fetching = true; return [4 /*yield*/, this.fetchFn(len)]; case 1: data = _a.sent(); this.fetching = false; return [2 /*return*/, data]; } }); }); }; DataManager.prototype.checkToFetch = function (end) { return __awaiter(this, void 0, void 0, function () { var min, newData, currentEnd; return __generator(this, function (_a) { switch (_a.label) { case 0: if (!this.hasMore) { return [2 /*return*/]; } if (end <= this.loadedNum) { return [2 /*return*/]; } min = end - this.loadedNum; return [4 /*yield*/, this.fetch(min)]; case 1: newData = _a.sent(); if (newData instanceof Array && newData.length) { this.add(newData); currentEnd = this.onFetchFinish(this.list, true); return [2 /*return*/, this.checkToFetch(currentEnd)]; } else if (typeof newData === 'boolean' && newData === false) { this.hasMore = false; this.list.splice(this.loadedNum); this.onFetchFinish(this.list, false); } return [2 /*return*/]; } }); }); }; DataManager.prototype.getList = function () { return this.list; }; return DataManager; }()); var Tombstone = /** @class */ (function () { function Tombstone(create) { this.create = create; this.cached = []; this.width = 0; this.height = 0; this.initialed = false; this.getSize(); } Tombstone.isTombstone = function (el) { if (el && el.classList) { return el.classList.contains('tombstone'); } return false; }; Tombstone.prototype.getSize = function () { if (!this.initialed) { var tombstone = this.create(); tombstone.style.position = 'absolute'; document.body.appendChild(tombstone); tombstone.style.display = ''; this.height = tombstone.offsetHeight; this.width = tombstone.offsetWidth; document.body.removeChild(tombstone); this.cached.push(tombstone); } }; Tombstone.prototype.getOne = function () { var tombstone = this.cached.pop(); if (tombstone) { var tombstoneStyle = tombstone.style; tombstoneStyle.display = ''; tombstoneStyle.opacity = '1'; tombstoneStyle[style.transform] = ''; tombstoneStyle[style.transition] = ''; return tombstone; } return this.create(); }; Tombstone.prototype.recycle = function (tombstones) { for (var _i = 0, tombstones_1 = tombstones; _i < tombstones_1.length; _i++) { var tombstone = tombstones_1[_i]; tombstone.style.display = 'none'; this.cached.push(tombstone); } return this.cached; }; Tombstone.prototype.recycleOne = function (tombstone) { this.cached.push(tombstone); return this.cached; }; return Tombstone; }()); var ANIMATION_DURATION_MS = 200; var DomManager = /** @class */ (function () { function DomManager(content, renderFn, tombstone) { this.content = content; this.renderFn = renderFn; this.tombstone = tombstone; this.unusedDom = []; this.timers = []; } DomManager.prototype.update = function (list, start, end) { if (start >= list.length) { start = list.length - 1; } if (end > list.length) { end = list.length; } this.collectUnusedDom(list, start, end); this.createDom(list, start, end); this.cacheHeight(list, start, end); var _a = this.positionDom(list, start, end), startPos = _a.startPos, startDelta = _a.startDelta, endPos = _a.endPos; return { start: start, startPos: startPos, startDelta: startDelta, end: end, endPos: endPos }; }; DomManager.prototype.collectUnusedDom = function (list, start, end) { // TODO optimise for (var i = 0; i < list.length; i++) { if (i === start) { i = end - 1; continue; } if (list[i].dom) { var dom = list[i].dom; if (Tombstone.isTombstone(dom)) { this.tombstone.recycleOne(dom); dom.style.display = 'none'; } else { this.unusedDom.push(dom); } list[i].dom = null; } } return list; }; DomManager.prototype.createDom = function (list, start, end) { for (var i = start; i < end; i++) { var dom = list[i].dom; var data = list[i].data; if (dom) { if (Tombstone.isTombstone(dom) && data) { list[i].tombstone = dom; list[i].dom = null; } else { continue; } } dom = data ? this.renderFn(data, this.unusedDom.pop()) : this.tombstone.getOne(); dom.style.position = 'absolute'; list[i].dom = dom; list[i].pos = -1; this.content.appendChild(dom); } }; DomManager.prototype.cacheHeight = function (list, start, end) { for (var i = start; i < end; i++) { if (list[i].data && !list[i].height) { list[i].height = list[i].dom.offsetHeight; } } }; DomManager.prototype.positionDom = function (list, start, end) { var _this = this; var tombstoneEles = []; var _a = this.getStartPos(list, start, end), startPos = _a.start, startDelta = _a.delta; var pos = startPos; // TODO transition for (var i = start; i < end; i++) { var tombstone = list[i].tombstone; if (tombstone) { var tombstoneStyle = tombstone.style; tombstoneStyle[style.transition] = cssVendor + "transform " + ANIMATION_DURATION_MS + "ms, opacity " + ANIMATION_DURATION_MS + "ms"; tombstoneStyle[style.transform] = "translateY(" + pos + "px)"; tombstoneStyle.opacity = '0'; list[i].tombstone = null; tombstoneEles.push(tombstone); } if (list[i].dom && list[i].pos !== pos) { list[i].dom.style[style.transform] = "translateY(" + pos + "px)"; list[i].pos = pos; } pos += list[i].height || this.tombstone.height; } var timerId = window.setTimeout(function () { _this.tombstone.recycle(tombstoneEles); }, ANIMATION_DURATION_MS); this.timers.push(timerId); return { startPos: startPos, startDelta: startDelta, endPos: pos }; }; DomManager.prototype.getStartPos = function (list, start, end) { if (list[start] && list[start].pos !== -1) { return { start: list[start].pos, delta: 0 }; } // TODO optimise var pos = list[0].pos === -1 ? 0 : list[0].pos; for (var i_1 = 0; i_1 < start; i_1++) { pos += list[i_1].height || this.tombstone.height; } var originPos = pos; var i; for (i = start; i < end; i++) { if (!Tombstone.isTombstone(list[i].dom) && list[i].pos !== -1) { pos = list[i].pos; break; } } var x = i; if (x < end) { while (x > start) { pos -= list[x - 1].height; x--; } } var delta = originPos - pos; return { start: pos, delta: delta }; }; DomManager.prototype.removeTombstone = function () { var tombstones = this.content.querySelectorAll('.tombstone'); for (var i = tombstones.length - 1; i >= 0; i--) { this.content.removeChild(tombstones[i]); } }; DomManager.prototype.destroy = function () { this.removeTombstone(); this.timers.forEach(function (id) { clearTimeout(id); }); }; return DomManager; }()); var EXTRA_SCROLL_Y = -2000; var InfinityScroll = /** @class */ (function () { function InfinityScroll(bscroll) { this.bscroll = bscroll; this.start = 0; this.end = 0; if (bscroll.options.infinity) { this.bscroll.options.probeType = 3 /* Realtime */; this.bscroll.scroller.scrollBehaviorY.hasScroll = true; this.bscroll.scroller.scrollBehaviorY.maxScrollPos = EXTRA_SCROLL_Y; this.init(bscroll.options.infinity); } } InfinityScroll.prototype.init = function (options) { var fetchFn = options.fetch, renderFn = options.render, createTombstoneFn = options.createTombstone; this.tombstone = new Tombstone(createTombstoneFn); this.indexCalculator = new IndexCalculator(this.bscroll.scroller.scrollBehaviorY.wrapperSize, this.tombstone.height); this.domManager = new DomManager(this.bscroll.scroller.content, renderFn, this.tombstone); this.dataManager = new DataManager([], fetchFn, this.onFetchFinish.bind(this)); this.bscroll.on('destroy', this.destroy, this); this.bscroll.on('scroll', this.update, this); this.update({ y: 0 }); }; InfinityScroll.prototype.update = function (pos) { var position = Math.round(-pos.y); // important! calculate start/end index to render var _a = this.indexCalculator.calculate(position, this.dataManager.getList()), start = _a.start, end = _a.end; this.start = start; this.end = end; // tslint:disable-next-line: no-floating-promises this.dataManager.update(end); this.updateDom(this.dataManager.getList()); }; InfinityScroll.prototype.onFetchFinish = function (list, hasMore) { var end = this.updateDom(list).end; if (!hasMore) { this.domManager.removeTombstone(); this.bscroll.scroller.animater.stop(); this.bscroll.resetPosition(); } // tslint:disable-next-line: no-floating-promises return end; }; InfinityScroll.prototype.updateDom = function (list) { var _a = this.domManager.update(list, this.start, this.end), end = _a.end, startPos = _a.startPos, endPos = _a.endPos, startDelta = _a.startDelta; if (startDelta) { this.bscroll.minScrollY = startDelta; } if (endPos > this.bscroll.maxScrollY) { this.bscroll.maxScrollY = -(endPos - this.bscroll.scroller.scrollBehaviorY.wrapperSize); } return { end: end, startPos: startPos, endPos: endPos }; }; InfinityScroll.prototype.destroy = function () { var content = this.bscroll.scroller.content; while (content.firstChild) { content.removeChild(content.firstChild); } this.domManager.destroy(); this.bscroll.off('scroll', this.update); this.bscroll.off('destroy', this.destroy); }; InfinityScroll.pluginName = 'infinity'; return InfinityScroll; }()); BScroll.use(MouseWheel) .use(ObserveDOM) .use(PullDown) .use(PullUp) .use(ScrollBar) .use(Slide) .use(Wheel) .use(Zoom) .use(NestedScroll) .use(InfinityScroll); export default BScroll;
cdnjs/cdnjs
ajax/libs/better-scroll/2.0.0-beta.6/better-scroll.esm.js
JavaScript
mit
179,030
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("02.CommandInterpreter")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Hewlett-Packard")] [assembly: AssemblyProduct("02.CommandInterpreter")] [assembly: AssemblyCopyright("Copyright © Hewlett-Packard 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("e588fbdd-83b5-40d0-8082-dbed7245aeee")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
ShadyObeyd/ProgrammingFundamentals-Homeworks
25.ExamPreparationIII/02.CommandInterpreter/Properties/AssemblyInfo.cs
C#
mit
1,443
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__int_malloc_51a.c Label Definition File: CWE401_Memory_Leak.c.label.xml Template File: sources-sinks-51a.tmpl.c */ /* * @description * CWE: 401 Memory Leak * BadSource: malloc Allocate data using malloc() * GoodSource: Allocate data on the stack * Sinks: * GoodSink: call free() on data * BadSink : no deallocation of data * Flow Variant: 51 Data flow: data passed as an argument from one function to another in different source files * * */ #include "std_testcase.h" #include <wchar.h> #ifndef OMITBAD /* bad function declaration */ void CWE401_Memory_Leak__int_malloc_51b_badSink(int * data); void CWE401_Memory_Leak__int_malloc_51_bad() { int * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); CWE401_Memory_Leak__int_malloc_51b_badSink(data); } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ void CWE401_Memory_Leak__int_malloc_51b_goodG2BSink(int * data); static void goodG2B() { int * data; data = NULL; /* FIX: Use memory allocated on the stack with ALLOCA */ data = (int *)ALLOCA(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); CWE401_Memory_Leak__int_malloc_51b_goodG2BSink(data); } /* goodB2G uses the BadSource with the GoodSink */ void CWE401_Memory_Leak__int_malloc_51b_goodB2GSink(int * data); static void goodB2G() { int * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); CWE401_Memory_Leak__int_malloc_51b_goodB2GSink(data); } void CWE401_Memory_Leak__int_malloc_51_good() { goodG2B(); goodB2G(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on its own for testing or for building a binary to use in testing binary analysis tools. It is not used when compiling all the testcases as one application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); CWE401_Memory_Leak__int_malloc_51_good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); CWE401_Memory_Leak__int_malloc_51_bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
maurer/tiamat
samples/Juliet/testcases/CWE401_Memory_Leak/s01/CWE401_Memory_Leak__int_malloc_51a.c
C
mit
2,829
// // Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // #include "misc/debug.h" #include "misc/object_tracker.h" #include "wrappers/device.h" #include "wrappers/pipeline_cache.h" /** Please see header for specification */ Anvil::PipelineCache::PipelineCache(std::weak_ptr<Anvil::BaseDevice> in_device_ptr, size_t in_initial_data_size, const void* in_initial_data) :DebugMarkerSupportProvider(in_device_ptr, VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT), m_device_ptr (in_device_ptr), m_pipeline_cache (VK_NULL_HANDLE) { VkPipelineCacheCreateInfo cache_create_info; std::shared_ptr<Anvil::BaseDevice> device_locked_ptr(in_device_ptr); VkResult result_vk (VK_ERROR_INITIALIZATION_FAILED); ANVIL_REDUNDANT_VARIABLE(result_vk); cache_create_info.flags = 0; cache_create_info.initialDataSize = in_initial_data_size; cache_create_info.pInitialData = in_initial_data; cache_create_info.pNext = nullptr; cache_create_info.sType = VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO; result_vk = vkCreatePipelineCache(device_locked_ptr->get_device_vk(), &cache_create_info, nullptr, /* pAllocator */ &m_pipeline_cache); anvil_assert_vk_call_succeeded(result_vk); if (is_vk_call_successful(result_vk) ) { set_vk_handle(m_pipeline_cache); } anvil_assert(m_pipeline_cache != VK_NULL_HANDLE); /* Register the instance */ Anvil::ObjectTracker::get()->register_object(Anvil::OBJECT_TYPE_PIPELINE_CACHE, this); } /** Please see header for specification */ Anvil::PipelineCache::~PipelineCache() { if (m_pipeline_cache != VK_NULL_HANDLE) { std::shared_ptr<Anvil::BaseDevice> device_locked_ptr(m_device_ptr); vkDestroyPipelineCache(device_locked_ptr->get_device_vk(), m_pipeline_cache, nullptr /* pAllocator */); m_pipeline_cache = VK_NULL_HANDLE; } /* Unregister the instance */ Anvil::ObjectTracker::get()->unregister_object(Anvil::OBJECT_TYPE_PIPELINE_CACHE, this); } /** Please see header for specification */ std::shared_ptr<Anvil::PipelineCache> Anvil::PipelineCache::create(std::weak_ptr<Anvil::BaseDevice> in_device_ptr, size_t in_initial_data_size, const void* in_initial_data) { std::shared_ptr<Anvil::PipelineCache> result_ptr; result_ptr.reset( new Anvil::PipelineCache(in_device_ptr, in_initial_data_size, in_initial_data) ); return result_ptr; } /** Please see header for specification */ bool Anvil::PipelineCache::get_data(size_t* out_n_data_bytes_ptr, const void** out_data_ptr) { std::shared_ptr<Anvil::BaseDevice> device_locked_ptr(m_device_ptr); VkResult result_vk; result_vk = vkGetPipelineCacheData(device_locked_ptr->get_device_vk(), m_pipeline_cache, out_n_data_bytes_ptr, out_data_ptr); anvil_assert(result_vk); return is_vk_call_successful(result_vk); } /** Please see header for specification */ bool Anvil::PipelineCache::merge(uint32_t in_n_pipeline_caches, std::shared_ptr<const Anvil::PipelineCache> const* in_src_cache_ptrs) { std::shared_ptr<Anvil::BaseDevice> device_locked_ptr(m_device_ptr); VkResult result_vk; VkPipelineCache src_pipeline_caches[64]; anvil_assert(in_n_pipeline_caches < sizeof(src_pipeline_caches) / sizeof(src_pipeline_caches[0]) ); for (uint32_t n_pipeline_cache = 0; n_pipeline_cache < in_n_pipeline_caches; ++n_pipeline_cache) { src_pipeline_caches[n_pipeline_cache] = in_src_cache_ptrs[n_pipeline_cache]->get_pipeline_cache(); } result_vk = vkMergePipelineCaches(device_locked_ptr->get_device_vk(), m_pipeline_cache, in_n_pipeline_caches, src_pipeline_caches); anvil_assert(result_vk); return is_vk_call_successful(result_vk); }
aonorin/Anvil
src/wrappers/pipeline_cache.cpp
C++
mit
6,038
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About Bitcoin</source> <translation>Acerca de Bitcoin</translation> </message> <message> <location filename="../forms/aboutdialog.ui" line="53"/> <source>&lt;b&gt;Bitcoin&lt;/b&gt; version</source> <translation>&lt;b&gt;Bitcoin&lt;/b&gt; versión</translation> </message> <message> <location filename="../forms/aboutdialog.ui" line="97"/> <source>Copyright © 2009-2012 Bitcoin Developers This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file license.txt or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation>Copyright © 2009-2012 Desarrolladores de Bitcoin ⏎ ⏎ Este software es experimental. ⏎ ⏎ Se distribuye bajo la licencia de software MIT/X11, consulte el archivo adjunto o license.txt http://www.opensource.org/licenses/mit-license.php. ⏎ ⏎ Este producto incluye software desarrollado por el OpenSSL Project para su uso en el OpenSSL Toolkit (http://www.openssl.org/~~V) y software de criptografía escrito por Eric Young (eay@cryptsoft.com) y el software UPnP escrito por Thomas Bernard.</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="14"/> <source>Address Book</source> <translation>Libreta de direcciones</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="20"/> <source>These are your Bitcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>Éstas son sus direcciones Bitcoin para recibir pagos. Puede usar una diferente para cada persona emisora para saber quién le está pagando.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="36"/> <source>Double-click to edit address or label</source> <translation>Haga doble clic para editar una dirección o etiqueta</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="63"/> <source>Create a new address</source> <translation>Crear una nueva dirección</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="77"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Copiar la dirección seleccionada al portapapeles</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="66"/> <source>&amp;New Address</source> <translation>&amp;Añadir dirección</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="80"/> <source>&amp;Copy Address</source> <translation>&amp;Copiar dirección</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="91"/> <source>Show &amp;QR Code</source> <translation>Mostrar código &amp;QR </translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="102"/> <source>Sign a message to prove you own this address</source> <translation>Firmar un mensaje para demostrar que posee esta dirección</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="105"/> <source>&amp;Sign Message</source> <translation>&amp;Firmar mensaje</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="116"/> <source>Delete the currently selected address from the list. Only sending addresses can be deleted.</source> <translation>Borrar de la lista la dirección seleccionada . Sólo se pueden borrar las direcciones de envío.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="119"/> <source>&amp;Delete</source> <translation>&amp;Borrar</translation> </message> <message> <location filename="../addressbookpage.cpp" line="63"/> <source>Copy &amp;Label</source> <translation>Copiar &amp;etiqueta</translation> </message> <message> <location filename="../addressbookpage.cpp" line="65"/> <source>&amp;Edit</source> <translation>&amp;Editar</translation> </message> <message> <location filename="../addressbookpage.cpp" line="292"/> <source>Export Address Book Data</source> <translation>Exportar datos de la libreta de direcciones</translation> </message> <message> <location filename="../addressbookpage.cpp" line="293"/> <source>Comma separated file (*.csv)</source> <translation>Archivos de columnas separadas por coma (*.csv)</translation> </message> <message> <location filename="../addressbookpage.cpp" line="306"/> <source>Error exporting</source> <translation>Error al exportar</translation> </message> <message> <location filename="../addressbookpage.cpp" line="306"/> <source>Could not write to file %1.</source> <translation>No se pudo escribir en el archivo %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="142"/> <source>Label</source> <translation>Etiqueta</translation> </message> <message> <location filename="../addresstablemodel.cpp" line="142"/> <source>Address</source> <translation>Dirección</translation> </message> <message> <location filename="../addresstablemodel.cpp" line="178"/> <source>(no label)</source> <translation>(sin etiqueta)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="47"/> <source>Enter passphrase</source> <translation>Contraseña actual </translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="61"/> <source>New passphrase</source> <translation>Nueva contraseña</translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="75"/> <source>Repeat new passphrase</source> <translation>Repita la nueva contraseña</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Introduzca la nueva contraseña del monedero.&lt;br/&gt;Por favor elija una con &lt;b&gt;10 o más caracteres aleatorios&lt;/b&gt; u &lt;b&gt;ocho o más palabras&lt;/b&gt;.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="34"/> <source>Encrypt wallet</source> <translation>Cifrar el monedero</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="37"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Para desbloquear el monedero esta operación necesita de su contraseña.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="42"/> <source>Unlock wallet</source> <translation>Desbloquear monedero</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="45"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Para descifrar el monedero esta operación necesita de su contraseña.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="50"/> <source>Decrypt wallet</source> <translation>Descifrar monedero</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="53"/> <source>Change passphrase</source> <translation>Cambiar contraseña</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="54"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Introduzca la contraseña anterior del monedero y la nueva. </translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="100"/> <source>Confirm wallet encryption</source> <translation>Confirmar cifrado del monedero</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="101"/> <source>WARNING: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR BITCOINS&lt;/b&gt;! Are you sure you wish to encrypt your wallet?</source> <translation>ATENCIÓN: ¡Si cifra el monedero y pierde la contraseña perderá &lt;b&gt;TODOS SUS BITCOINS&lt;/b&gt;!&quot; ¿Está seguro de querer cifrarlo?</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="110"/> <location filename="../askpassphrasedialog.cpp" line="159"/> <source>Wallet encrypted</source> <translation>Monedero cifrado</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="111"/> <source>Bitcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer.</source> <translation>Bitcoin cerrará al finalizar el proceso de cifrado. Recuerde que el cifrado de su monedero no puede proteger totalmente sus bitcoin de ser robados por el malware que infecte su sistema.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="207"/> <location filename="../askpassphrasedialog.cpp" line="231"/> <source>Warning: The Caps Lock key is on.</source> <translation>Aviso: el bloqueo de mayúsculas está activado.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="116"/> <location filename="../askpassphrasedialog.cpp" line="123"/> <location filename="../askpassphrasedialog.cpp" line="165"/> <location filename="../askpassphrasedialog.cpp" line="171"/> <source>Wallet encryption failed</source> <translation>Ha fallado el cifrado del monedero</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="117"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Ha fallado el cifrado del monedero debido a un error interno. El monedero no ha sido cifrado.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="124"/> <location filename="../askpassphrasedialog.cpp" line="172"/> <source>The supplied passphrases do not match.</source> <translation>Las contraseñas no coinciden.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="135"/> <source>Wallet unlock failed</source> <translation>Ha fallado el desbloqueo del monedero</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="136"/> <location filename="../askpassphrasedialog.cpp" line="147"/> <location filename="../askpassphrasedialog.cpp" line="166"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>La contraseña introducida para descifrar el monedero es incorrecta.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="146"/> <source>Wallet decryption failed</source> <translation>Ha fallado el descifrado del monedero</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="160"/> <source>Wallet passphrase was succesfully changed.</source> <translation>La contraseña del monedero ha sido cambiada correctamente.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="73"/> <source>Bitcoin Wallet</source> <translation>Monedero Bitcoin</translation> </message> <message> <location filename="../bitcoingui.cpp" line="215"/> <source>Sign &amp;message...</source> <translation>Firmar &amp;mensaje...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="248"/> <source>Show/Hide &amp;Bitcoin</source> <translation>Mostrar/ocultar &amp;Bitcoin</translation> </message> <message> <location filename="../bitcoingui.cpp" line="515"/> <source>Synchronizing with network...</source> <translation>Sincronizando con la red…</translation> </message> <message> <location filename="../bitcoingui.cpp" line="185"/> <source>&amp;Overview</source> <translation>&amp;Vista general</translation> </message> <message> <location filename="../bitcoingui.cpp" line="186"/> <source>Show general overview of wallet</source> <translation>Mostrar vista general del monedero</translation> </message> <message> <location filename="../bitcoingui.cpp" line="191"/> <source>&amp;Transactions</source> <translation>&amp;Transacciones</translation> </message> <message> <location filename="../bitcoingui.cpp" line="192"/> <source>Browse transaction history</source> <translation>Examinar el historial de transacciones</translation> </message> <message> <location filename="../bitcoingui.cpp" line="197"/> <source>&amp;Address Book</source> <translation>&amp;Libreta de direcciones</translation> </message> <message> <location filename="../bitcoingui.cpp" line="198"/> <source>Edit the list of stored addresses and labels</source> <translation>Editar la lista de las direcciones y etiquetas almacenadas</translation> </message> <message> <location filename="../bitcoingui.cpp" line="203"/> <source>&amp;Receive coins</source> <translation>&amp;Recibir monedas</translation> </message> <message> <location filename="../bitcoingui.cpp" line="204"/> <source>Show the list of addresses for receiving payments</source> <translation>Mostrar la lista de direcciones utilizadas para recibir pagos</translation> </message> <message> <location filename="../bitcoingui.cpp" line="209"/> <source>&amp;Send coins</source> <translation>&amp;Enviar monedas</translation> </message> <message> <location filename="../bitcoingui.cpp" line="216"/> <source>Prove you control an address</source> <translation>Demuestre que controla una dirección</translation> </message> <message> <location filename="../bitcoingui.cpp" line="235"/> <source>E&amp;xit</source> <translation>&amp;Salir</translation> </message> <message> <location filename="../bitcoingui.cpp" line="236"/> <source>Quit application</source> <translation>Salir de la aplicación</translation> </message> <message> <location filename="../bitcoingui.cpp" line="239"/> <source>&amp;About %1</source> <translation>&amp;Acerca de %1</translation> </message> <message> <location filename="../bitcoingui.cpp" line="240"/> <source>Show information about Bitcoin</source> <translation>Mostrar información acerca de Bitcoin</translation> </message> <message> <location filename="../bitcoingui.cpp" line="242"/> <source>About &amp;Qt</source> <translation>Acerca de &amp;Qt</translation> </message> <message> <location filename="../bitcoingui.cpp" line="243"/> <source>Show information about Qt</source> <translation>Mostrar información acerca de Qt</translation> </message> <message> <location filename="../bitcoingui.cpp" line="245"/> <source>&amp;Options...</source> <translation>&amp;Opciones...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="252"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Cifrar monedero…</translation> </message> <message> <location filename="../bitcoingui.cpp" line="255"/> <source>&amp;Backup Wallet...</source> <translation>Copia de &amp;respaldo del monedero...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="257"/> <source>&amp;Change Passphrase...</source> <translation>&amp;Cambiar la contraseña…</translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="517"/> <source>~%n block(s) remaining</source> <translation><numerusform>~%n bloque restante</numerusform><numerusform>~%n bloques restantes</numerusform></translation> </message> <message> <location filename="../bitcoingui.cpp" line="528"/> <source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source> <translation>Descargado %1 de %2 bloques del historial de transacciones (%3% hecho).</translation> </message> <message> <location filename="../bitcoingui.cpp" line="250"/> <source>&amp;Export...</source> <translation>&amp;Exportar…</translation> </message> <message> <location filename="../bitcoingui.cpp" line="210"/> <source>Send coins to a Bitcoin address</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="246"/> <source>Modify configuration options for Bitcoin</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="249"/> <source>Show or hide the Bitcoin window</source> <translation>Mostrar u ocultar la ventana Bitcoin</translation> </message> <message> <location filename="../bitcoingui.cpp" line="251"/> <source>Export the data in the current tab to a file</source> <translation>Exportar a un archivo los datos de esta pestaña</translation> </message> <message> <location filename="../bitcoingui.cpp" line="253"/> <source>Encrypt or decrypt wallet</source> <translation>Cifrar o descifrar el monedero</translation> </message> <message> <location filename="../bitcoingui.cpp" line="256"/> <source>Backup wallet to another location</source> <translation>Copia de seguridad del monedero en otra ubicación</translation> </message> <message> <location filename="../bitcoingui.cpp" line="258"/> <source>Change the passphrase used for wallet encryption</source> <translation>Cambiar la contraseña utilizada para el cifrado del monedero</translation> </message> <message> <location filename="../bitcoingui.cpp" line="259"/> <source>&amp;Debug window</source> <translation>Ventana de &amp;depuración</translation> </message> <message> <location filename="../bitcoingui.cpp" line="260"/> <source>Open debugging and diagnostic console</source> <translation>Abrir la consola de depuración y diagnóstico</translation> </message> <message> <location filename="../bitcoingui.cpp" line="261"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="262"/> <source>Verify a message signature</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="286"/> <source>&amp;File</source> <translation>&amp;Archivo</translation> </message> <message> <location filename="../bitcoingui.cpp" line="296"/> <source>&amp;Settings</source> <translation>&amp;Configuración</translation> </message> <message> <location filename="../bitcoingui.cpp" line="302"/> <source>&amp;Help</source> <translation>A&amp;yuda</translation> </message> <message> <location filename="../bitcoingui.cpp" line="311"/> <source>Tabs toolbar</source> <translation>Barra de pestañas</translation> </message> <message> <location filename="../bitcoingui.cpp" line="322"/> <source>Actions toolbar</source> <translation>Barra de acciones</translation> </message> <message> <location filename="../bitcoingui.cpp" line="334"/> <location filename="../bitcoingui.cpp" line="343"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location filename="../bitcoingui.cpp" line="343"/> <location filename="../bitcoingui.cpp" line="399"/> <source>Bitcoin client</source> <translation>cliente Bitcoin</translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="492"/> <source>%n active connection(s) to Bitcoin network</source> <translation><numerusform>%n conexión activa hacia la red Bitcoin</numerusform><numerusform>%n conexiones activas hacia la red Bitcoin</numerusform></translation> </message> <message> <location filename="../bitcoingui.cpp" line="540"/> <source>Downloaded %1 blocks of transaction history.</source> <translation>Se han bajado %1 bloques de historial.</translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="555"/> <source>%n second(s) ago</source> <translation><numerusform>hace %n segundo</numerusform><numerusform>hace %n segundos</numerusform></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="559"/> <source>%n minute(s) ago</source> <translation><numerusform>hace %n minuto</numerusform><numerusform>hace %n minutos</numerusform></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="563"/> <source>%n hour(s) ago</source> <translation><numerusform>hace %n hora</numerusform><numerusform>hace %n horas</numerusform></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="567"/> <source>%n day(s) ago</source> <translation><numerusform>hace %n día</numerusform><numerusform>hace %n días</numerusform></translation> </message> <message> <location filename="../bitcoingui.cpp" line="573"/> <source>Up to date</source> <translation>Actualizado</translation> </message> <message> <location filename="../bitcoingui.cpp" line="580"/> <source>Catching up...</source> <translation>Recuperando...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="590"/> <source>Last received block was generated %1.</source> <translation>El último bloque recibido fue generado %1.</translation> </message> <message> <location filename="../bitcoingui.cpp" line="649"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation>Esta transacción supera el límite. Puede seguir enviándola incluyendo una comisión de %1 que se va a repartir entre los nodos que procesan su transacción y ayudan a mantener la red. ¿Desea pagar esa tarifa?</translation> </message> <message> <location filename="../bitcoingui.cpp" line="654"/> <source>Confirm transaction fee</source> <translation>Confirme la tarifa de la transacción</translation> </message> <message> <location filename="../bitcoingui.cpp" line="681"/> <source>Sent transaction</source> <translation>Transacción enviada</translation> </message> <message> <location filename="../bitcoingui.cpp" line="682"/> <source>Incoming transaction</source> <translation>Transacción entrante</translation> </message> <message> <location filename="../bitcoingui.cpp" line="683"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Fecha: %1 Cantidad: %2 Tipo: %3 Dirección: %4</translation> </message> <message> <location filename="../bitcoingui.cpp" line="804"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>El monedero está &lt;b&gt;cifrado&lt;/b&gt; y actualmente &lt;b&gt;desbloqueado&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoingui.cpp" line="812"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>El monedero está &lt;b&gt;cifrado&lt;/b&gt; y actualmente &lt;b&gt;bloqueado&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoingui.cpp" line="835"/> <source>Backup Wallet</source> <translation>Copia de seguridad del monedero</translation> </message> <message> <location filename="../bitcoingui.cpp" line="835"/> <source>Wallet Data (*.dat)</source> <translation>Datos del monedero (*.dat)</translation> </message> <message> <location filename="../bitcoingui.cpp" line="838"/> <source>Backup Failed</source> <translation>La copia de seguridad ha fallado</translation> </message> <message> <location filename="../bitcoingui.cpp" line="838"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>Ha habido un error al intentar guardar los datos del monedero a la nueva ubicación.</translation> </message> <message> <location filename="../bitcoin.cpp" line="112"/> <source>A fatal error occured. Bitcoin can no longer continue safely and will quit.</source> <translation>Ha ocurrido un error fatal. Bitcoin no puede continuar con seguridad y se cerrará.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="84"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>DisplayOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="246"/> <source>Display</source> <translation>Mostrado</translation> </message> <message> <location filename="../optionsdialog.cpp" line="257"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="263"/> <source>The user interface language can be set here. This setting will only take effect after restarting Bitcoin.</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="252"/> <source>User Interface &amp;Language:</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="273"/> <source>&amp;Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="277"/> <source>Choose the default subdivision unit to show in the interface, and when sending coins</source> <translation>Elige la subdivisión por defecto para mostrar cantidaded en la interfaz cuando se envien monedas</translation> </message> <message> <location filename="../optionsdialog.cpp" line="284"/> <source>&amp;Display addresses in transaction list</source> <translation>&amp;Mostrar las direcciones en la lista de transsaciones</translation> </message> <message> <location filename="../optionsdialog.cpp" line="285"/> <source>Whether to show Bitcoin addresses in the transaction list</source> <translation>Mostrar las direcciones bitcoin en la lista de transacciones</translation> </message> <message> <location filename="../optionsdialog.cpp" line="303"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="303"/> <source>This setting will take effect after restarting Bitcoin.</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="14"/> <source>Edit Address</source> <translation>Editar Dirección</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="25"/> <source>&amp;Label</source> <translation>&amp;Etiqueta</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="35"/> <source>The label associated with this address book entry</source> <translation>La etiqueta asociada con esta entrada en la libreta</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="42"/> <source>&amp;Address</source> <translation>&amp;Dirección</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="52"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>La dirección asociada con esta entrada en la guia. Solo puede ser modificada para direcciones de envío.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="20"/> <source>New receiving address</source> <translation>Nueva dirección para recibir</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="24"/> <source>New sending address</source> <translation>Nueva dirección para enviar</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="27"/> <source>Edit receiving address</source> <translation>Editar dirección de recepción</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="31"/> <source>Edit sending address</source> <translation>Editar dirección de envio</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="91"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>La dirección introducida &quot;%1&quot; ya está presente en la libreta de direcciones.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="96"/> <source>The entered address &quot;%1&quot; is not a valid Bitcoin address.</source> <translation type="unfinished"/> </message> <message> <location filename="../editaddressdialog.cpp" line="101"/> <source>Could not unlock wallet.</source> <translation>No se pudo desbloquear el monedero.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="106"/> <source>New key generation failed.</source> <translation>Ha fallado la generación de la nueva clave.</translation> </message> </context> <context> <name>HelpMessageBox</name> <message> <location filename="../bitcoin.cpp" line="133"/> <location filename="../bitcoin.cpp" line="143"/> <source>Bitcoin-Qt</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="133"/> <source>version</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="135"/> <source>Usage:</source> <translation>Uso:</translation> </message> <message> <location filename="../bitcoin.cpp" line="136"/> <source>options</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="138"/> <source>UI options</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="139"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Establecer el idioma, por ejemplo, &quot;es_ES&quot; (por defecto: configuración regional del sistema)</translation> </message> <message> <location filename="../bitcoin.cpp" line="140"/> <source>Start minimized</source> <translation>Arrancar minimizado</translation> </message> <message> <location filename="../bitcoin.cpp" line="141"/> <source>Show splash screen on startup (default: 1)</source> <translation>Mostrar pantalla de bienvenida en el inicio (por defecto: 1)</translation> </message> </context> <context> <name>MainOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="227"/> <source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source> <translation>Desconectar las bases de datos de bloques y direcciones al cerrar la aplicación. Implica que pueden moverse a otros directorios de datos pero ralentiza el cierre. El monedero siempre queda desconectado.</translation> </message> <message> <location filename="../optionsdialog.cpp" line="212"/> <source>Pay transaction &amp;fee</source> <translation>Comisión de &amp;transacciones</translation> </message> <message> <location filename="../optionsdialog.cpp" line="204"/> <source>Main</source> <translation>Principal</translation> </message> <message> <location filename="../optionsdialog.cpp" line="206"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source> <translation>Tarifa de transacción por KB opcional que ayuda a asegurarse de que sus transacciones se procesan rápidamente. La mayoría de las transacciones son de 1 KB. Tarifa de 0,01 recomendado.</translation> </message> <message> <location filename="../optionsdialog.cpp" line="222"/> <source>&amp;Start Bitcoin on system login</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="223"/> <source>Automatically start Bitcoin after logging in to the system</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="226"/> <source>&amp;Detach databases at shutdown</source> <translation type="unfinished"/> </message> </context> <context> <name>MessagePage</name> <message> <location filename="../forms/messagepage.ui" line="14"/> <source>Sign Message</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/messagepage.ui" line="20"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>Usted puede firmar los mensajes con sus direcciones para demostrar que las posee. Tenga cuidado de no firmar cualquier cosa vaga, ya que los ataques de phishing pueden tratar de engañarle firmando su identidad a través de ellos. Solo firme declaraciones totalmente detalladas con las que usted esté de acuerdo.</translation> </message> <message> <location filename="../forms/messagepage.ui" line="38"/> <source>The address to sign the message with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>La dirección para firmar el mensaje con (por ejemplo, 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location filename="../forms/messagepage.ui" line="48"/> <source>Choose adress from address book</source> <translation>Elige la dirección de la libreta</translation> </message> <message> <location filename="../forms/messagepage.ui" line="58"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location filename="../forms/messagepage.ui" line="71"/> <source>Paste address from clipboard</source> <translation>Pega dirección desde portapapeles</translation> </message> <message> <location filename="../forms/messagepage.ui" line="81"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location filename="../forms/messagepage.ui" line="93"/> <source>Enter the message you want to sign here</source> <translation>Introduzca el mensaje que desea firmar aquí</translation> </message> <message> <location filename="../forms/messagepage.ui" line="128"/> <source>Copy the current signature to the system clipboard</source> <translation>Copiar la firma actual al portapapeles del sistema</translation> </message> <message> <location filename="../forms/messagepage.ui" line="131"/> <source>&amp;Copy Signature</source> <translation>&amp;Copiar firma</translation> </message> <message> <location filename="../forms/messagepage.ui" line="142"/> <source>Reset all sign message fields</source> <translation>Limpiar todos los campos de mensaje de la firma</translation> </message> <message> <location filename="../forms/messagepage.ui" line="145"/> <source>Clear &amp;All</source> <translation>Limpiar &amp;todo</translation> </message> <message> <location filename="../messagepage.cpp" line="31"/> <source>Click &quot;Sign Message&quot; to get signature</source> <translation>Haga clic en &quot;Firma Mensaje&quot; para obtener la firma</translation> </message> <message> <location filename="../forms/messagepage.ui" line="114"/> <source>Sign a message to prove you own this address</source> <translation>Firmar un mensaje a demostrar que posee esta dirección</translation> </message> <message> <location filename="../forms/messagepage.ui" line="117"/> <source>&amp;Sign Message</source> <translation>&amp;Firme mensaje</translation> </message> <message> <location filename="../messagepage.cpp" line="30"/> <source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Introduce una dirección Bitcoin (ej. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location filename="../messagepage.cpp" line="83"/> <location filename="../messagepage.cpp" line="90"/> <location filename="../messagepage.cpp" line="105"/> <location filename="../messagepage.cpp" line="117"/> <source>Error signing</source> <translation>Error en firmado</translation> </message> <message> <location filename="../messagepage.cpp" line="83"/> <source>%1 is not a valid address.</source> <translation>%1 no es una dirección válida.</translation> </message> <message> <location filename="../messagepage.cpp" line="90"/> <source>%1 does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location filename="../messagepage.cpp" line="105"/> <source>Private key for %1 is not available.</source> <translation>La clave privada de %1 no está disponible.</translation> </message> <message> <location filename="../messagepage.cpp" line="117"/> <source>Sign failed</source> <translation>Firma falló</translation> </message> </context> <context> <name>NetworkOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="345"/> <source>Network</source> <translation>Red</translation> </message> <message> <location filename="../optionsdialog.cpp" line="347"/> <source>Map port using &amp;UPnP</source> <translation>Mapea el puerto usando &amp;UPnP</translation> </message> <message> <location filename="../optionsdialog.cpp" line="348"/> <source>Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Intenta abrir el puerto adecuado en el router automáticamente. Esta opción solo funciona si el router soporta UPnP y está activado.</translation> </message> <message> <location filename="../optionsdialog.cpp" line="351"/> <source>&amp;Connect through SOCKS4 proxy:</source> <translation>&amp;Conecta atraves de un proxy SOCKS4:</translation> </message> <message> <location filename="../optionsdialog.cpp" line="352"/> <source>Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor)</source> <translation>Conecta a la red Bitcoin a través de un proxy SOCKS4 (ej. para conectar con la red Tor)</translation> </message> <message> <location filename="../optionsdialog.cpp" line="357"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="366"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="363"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>Dirección IP del proxy (ej. 127.0.0.1)</translation> </message> <message> <location filename="../optionsdialog.cpp" line="372"/> <source>Port of the proxy (e.g. 1234)</source> <translation>Puerto del servidor proxy (ej. 1234)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../optionsdialog.cpp" line="135"/> <source>Options</source> <translation>Opciones</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="14"/> <source>Form</source> <translation>Desde</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="47"/> <location filename="../forms/overviewpage.ui" line="204"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Bitcoin network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/overviewpage.ui" line="89"/> <source>Balance:</source> <translation>Balance:</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="147"/> <source>Number of transactions:</source> <translation>Número de movimientos:</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="118"/> <source>Unconfirmed:</source> <translation>No confirmado(s):</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="40"/> <source>Wallet</source> <translation>Monedero</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="197"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Movimientos recientes&lt;/b&gt;</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="105"/> <source>Your current balance</source> <translation>Tu balance actual</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="134"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>Total de las transacciones que faltan por confirmar y que no se cuentan para el total general</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="154"/> <source>Total number of transactions in wallet</source> <translation>Número total de movimientos en el monedero</translation> </message> <message> <location filename="../overviewpage.cpp" line="110"/> <location filename="../overviewpage.cpp" line="111"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/qrcodedialog.ui" line="32"/> <source>QR Code</source> <translation>Código QR</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="55"/> <source>Request Payment</source> <translation>Solicitud de pago</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="70"/> <source>Amount:</source> <translation>Cuantía:</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="105"/> <source>PEVC</source> <translation>PEVC</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="121"/> <source>Label:</source> <translation>Label:</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="144"/> <source>Message:</source> <translation>Mensaje:</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="186"/> <source>&amp;Save As...</source> <translation>&amp;Guardar Como ...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="45"/> <source>Error encoding URI into QR Code.</source> <translation>Error al codificar la URI en el código QR.</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="63"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>URI demasiado larga, trata de reducir el texto de la etiqueta / mensaje.</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="120"/> <source>Save QR Code</source> <translation>Guardar código QR</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="120"/> <source>PNG Images (*.png)</source> <translation>Imágenes PNG (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="14"/> <source>Bitcoin debug window</source> <translation>Ventana de depuración</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="46"/> <source>Client name</source> <translation>Nombre del cliente</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="56"/> <location filename="../forms/rpcconsole.ui" line="79"/> <location filename="../forms/rpcconsole.ui" line="102"/> <location filename="../forms/rpcconsole.ui" line="125"/> <location filename="../forms/rpcconsole.ui" line="161"/> <location filename="../forms/rpcconsole.ui" line="214"/> <location filename="../forms/rpcconsole.ui" line="237"/> <location filename="../forms/rpcconsole.ui" line="260"/> <location filename="../rpcconsole.cpp" line="245"/> <source>N/A</source> <translation>N/D</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="69"/> <source>Client version</source> <translation>Versión del cliente</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="24"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="39"/> <source>Client</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="115"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="144"/> <source>Network</source> <translation>Red</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="151"/> <source>Number of connections</source> <translation>Número de conexiones</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="174"/> <source>On testnet</source> <translation>En la red de pruebas</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="197"/> <source>Block chain</source> <translation>Cadena de bloques</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="204"/> <source>Current number of blocks</source> <translation>Número actual de bloques</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="227"/> <source>Estimated total blocks</source> <translation>Bloques totales estimados</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="250"/> <source>Last block time</source> <translation>Hora del último bloque</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="292"/> <source>Debug logfile</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="299"/> <source>Open the Bitcoin debug logfile from the current data directory. This can take a few seconds for large logfiles.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="302"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="323"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="92"/> <source>Build date</source> <translation>Fecha de compilación</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="372"/> <source>Clear console</source> <translation>Borrar consola</translation> </message> <message> <location filename="../rpcconsole.cpp" line="212"/> <source>Welcome to the Bitcoin RPC console.</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="213"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="214"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="14"/> <location filename="../sendcoinsdialog.cpp" line="122"/> <location filename="../sendcoinsdialog.cpp" line="127"/> <location filename="../sendcoinsdialog.cpp" line="132"/> <location filename="../sendcoinsdialog.cpp" line="137"/> <location filename="../sendcoinsdialog.cpp" line="143"/> <location filename="../sendcoinsdialog.cpp" line="148"/> <location filename="../sendcoinsdialog.cpp" line="153"/> <source>Send Coins</source> <translation>Envía monedas</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="64"/> <source>Send to multiple recipients at once</source> <translation>Envía a multiples destinatarios de una vez</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="67"/> <source>&amp;Add Recipient</source> <translation>&amp;Añadir destinatario</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="84"/> <source>Remove all transaction fields</source> <translation>Eliminar todos los campos de las transacciones</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="87"/> <source>Clear &amp;All</source> <translation>Limpiar &amp;todo</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="106"/> <source>Balance:</source> <translation>Balance:</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="113"/> <source>123.456 PEVC</source> <translation>123.456 PEVC</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="144"/> <source>Confirm the send action</source> <translation>Confirma el envío</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="147"/> <source>&amp;Send</source> <translation>&amp;Envía</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="94"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="99"/> <source>Confirm send coins</source> <translation>Confirmar el envío de monedas</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="100"/> <source>Are you sure you want to send %1?</source> <translation>Estas seguro que quieres enviar %1?</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="100"/> <source> and </source> <translation>y</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="123"/> <source>The recepient address is not valid, please recheck.</source> <translation>La dirección de destinatario no es válida, comprueba otra vez.</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="128"/> <source>The amount to pay must be larger than 0.</source> <translation>La cantidad por pagar tiene que ser mayor 0.</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="133"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="138"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="144"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="149"/> <source>Error: Transaction creation failed.</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="154"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="14"/> <source>Form</source> <translation>Envio</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="29"/> <source>A&amp;mount:</source> <translation>Ca&amp;ntidad:</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="42"/> <source>Pay &amp;To:</source> <translation>&amp;Pagar a:</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="66"/> <location filename="../sendcoinsentry.cpp" line="25"/> <source>Enter a label for this address to add it to your address book</source> <translation>Etiquete esta dirección para añadirla a la libreta</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="75"/> <source>&amp;Label:</source> <translation>&amp;Etiqueta:</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="93"/> <source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>La dirección donde enviar el pago (ej. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="103"/> <source>Choose address from address book</source> <translation>Elija una dirección de la libreta de direcciones</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="113"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="120"/> <source>Paste address from clipboard</source> <translation>Pega dirección desde portapapeles</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="130"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="137"/> <source>Remove this recipient</source> <translation>Elimina destinatario</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="26"/> <source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Introduce una dirección Bitcoin (ej. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="21"/> <source>Open for %1 blocks</source> <translation>Abierto hasta %1 bloques</translation> </message> <message> <location filename="../transactiondesc.cpp" line="23"/> <source>Open until %1</source> <translation>Abierto hasta %1</translation> </message> <message> <location filename="../transactiondesc.cpp" line="29"/> <source>%1/offline?</source> <translation>%1/fuera de linea?</translation> </message> <message> <location filename="../transactiondesc.cpp" line="31"/> <source>%1/unconfirmed</source> <translation>%1/no confirmado</translation> </message> <message> <location filename="../transactiondesc.cpp" line="33"/> <source>%1 confirmations</source> <translation>%1 confirmaciones</translation> </message> <message> <location filename="../transactiondesc.cpp" line="51"/> <source>&lt;b&gt;Status:&lt;/b&gt; </source> <translation>&lt;b&gt;Estado:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="56"/> <source>, has not been successfully broadcast yet</source> <translation>, no ha sido emitido satisfactoriamente todavía</translation> </message> <message> <location filename="../transactiondesc.cpp" line="58"/> <source>, broadcast through %1 node</source> <translation>, emitido mediante %1 nodo</translation> </message> <message> <location filename="../transactiondesc.cpp" line="60"/> <source>, broadcast through %1 nodes</source> <translation>, emitido mediante %1 nodos</translation> </message> <message> <location filename="../transactiondesc.cpp" line="64"/> <source>&lt;b&gt;Date:&lt;/b&gt; </source> <translation>&lt;b&gt;Fecha:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="71"/> <source>&lt;b&gt;Source:&lt;/b&gt; Generated&lt;br&gt;</source> <translation>&lt;b&gt;Fuente:&lt;/b&gt; Generado&lt;br&gt;</translation> </message> <message> <location filename="../transactiondesc.cpp" line="77"/> <location filename="../transactiondesc.cpp" line="94"/> <source>&lt;b&gt;From:&lt;/b&gt; </source> <translation>&lt;b&gt;De:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="94"/> <source>unknown</source> <translation>desconocido</translation> </message> <message> <location filename="../transactiondesc.cpp" line="95"/> <location filename="../transactiondesc.cpp" line="118"/> <location filename="../transactiondesc.cpp" line="178"/> <source>&lt;b&gt;To:&lt;/b&gt; </source> <translation>&lt;b&gt;Para:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="98"/> <source> (yours, label: </source> <translation>(tuya, etiqueta: </translation> </message> <message> <location filename="../transactiondesc.cpp" line="100"/> <source> (yours)</source> <translation> (tuya)</translation> </message> <message> <location filename="../transactiondesc.cpp" line="136"/> <location filename="../transactiondesc.cpp" line="150"/> <location filename="../transactiondesc.cpp" line="195"/> <location filename="../transactiondesc.cpp" line="212"/> <source>&lt;b&gt;Credit:&lt;/b&gt; </source> <translation>&lt;b&gt;Crédito:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="138"/> <source>(%1 matures in %2 more blocks)</source> <translation>(%1 madura en %1 bloques más)</translation> </message> <message> <location filename="../transactiondesc.cpp" line="142"/> <source>(not accepted)</source> <translation>(no aceptada)</translation> </message> <message> <location filename="../transactiondesc.cpp" line="186"/> <location filename="../transactiondesc.cpp" line="194"/> <location filename="../transactiondesc.cpp" line="209"/> <source>&lt;b&gt;Debit:&lt;/b&gt; </source> <translation>&lt;b&gt;Débito:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="200"/> <source>&lt;b&gt;Transaction fee:&lt;/b&gt; </source> <translation>&lt;b&gt;Comisión de transacción:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="216"/> <source>&lt;b&gt;Net amount:&lt;/b&gt; </source> <translation>&lt;b&gt;Cantidad total:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="222"/> <source>Message:</source> <translation>Mensaje:</translation> </message> <message> <location filename="../transactiondesc.cpp" line="224"/> <source>Comment:</source> <translation>Comentario:</translation> </message> <message> <location filename="../transactiondesc.cpp" line="226"/> <source>Transaction ID:</source> <translation>Id. de transacción:</translation> </message> <message> <location filename="../transactiondesc.cpp" line="229"/> <source>Generated coins must wait 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, it will change to &quot;not accepted&quot; and not be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>Las monedas generadas deben esperar 120 bloques antes de ser gastadas. Cuando has generado este bloque se emitió a la red para ser agregado en la cadena de bloques. Si falla al incluirse en la cadena, cambiará a &quot;no aceptado&quot; y las monedas no se podrán gastar. Esto puede ocurrir ocasionalmente si otro nodo genera un bloque casi al mismo tiempo que el tuyo.</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="14"/> <source>Transaction details</source> <translation>Detalles de transacción</translation> </message> <message> <location filename="../forms/transactiondescdialog.ui" line="20"/> <source>This pane shows a detailed description of the transaction</source> <translation>Esta ventana muestra información detallada sobre la transacción</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="226"/> <source>Date</source> <translation>Fecha</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="226"/> <source>Type</source> <translation>Tipo</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="226"/> <source>Address</source> <translation>Dirección</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="226"/> <source>Amount</source> <translation>Cantidad</translation> </message> <message numerus="yes"> <location filename="../transactiontablemodel.cpp" line="281"/> <source>Open for %n block(s)</source> <translation><numerusform>Abierto por %n bloque</numerusform><numerusform>Abierto por %n bloques</numerusform></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="284"/> <source>Open until %1</source> <translation>Abierto hasta %1</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="287"/> <source>Offline (%1 confirmations)</source> <translation>Fuera de linea (%1 confirmaciones)</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="290"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>No confirmado (%1 de %2 confirmaciones)</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="293"/> <source>Confirmed (%1 confirmations)</source> <translation>Confirmado (%1 confirmaciones)</translation> </message> <message numerus="yes"> <location filename="../transactiontablemodel.cpp" line="301"/> <source>Mined balance will be available in %n more blocks</source> <translation><numerusform>El balance minado estará disponible en %n bloque más</numerusform><numerusform>El balance minado estará disponible en %n bloques más</numerusform></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="307"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Este bloque no ha sido recibido por otros nodos y probablemente no sea aceptado !</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="310"/> <source>Generated but not accepted</source> <translation>Generado pero no aceptado</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="353"/> <source>Received with</source> <translation>Recibido con</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="355"/> <source>Received from</source> <translation>Recibidos de</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="358"/> <source>Sent to</source> <translation>Enviado a</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="360"/> <source>Payment to yourself</source> <translation>Pago propio</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="362"/> <source>Mined</source> <translation>Minado</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="400"/> <source>(n/a)</source> <translation>(n/a)</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="599"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Estado de transacción. Pasa el ratón sobre este campo para ver el número de confirmaciones.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="601"/> <source>Date and time that the transaction was received.</source> <translation>Fecha y hora de cuando se recibió la transacción.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="603"/> <source>Type of transaction.</source> <translation>Tipo de transacción.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="605"/> <source>Destination address of transaction.</source> <translation>Dirección de destino de la transacción.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="607"/> <source>Amount removed from or added to balance.</source> <translation>Cantidad retirada o añadida al balance.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="55"/> <location filename="../transactionview.cpp" line="71"/> <source>All</source> <translation>Todo</translation> </message> <message> <location filename="../transactionview.cpp" line="56"/> <source>Today</source> <translation>Hoy</translation> </message> <message> <location filename="../transactionview.cpp" line="57"/> <source>This week</source> <translation>Esta semana</translation> </message> <message> <location filename="../transactionview.cpp" line="58"/> <source>This month</source> <translation>Este mes</translation> </message> <message> <location filename="../transactionview.cpp" line="59"/> <source>Last month</source> <translation>Mes pasado</translation> </message> <message> <location filename="../transactionview.cpp" line="60"/> <source>This year</source> <translation>Este año</translation> </message> <message> <location filename="../transactionview.cpp" line="61"/> <source>Range...</source> <translation>Rango...</translation> </message> <message> <location filename="../transactionview.cpp" line="72"/> <source>Received with</source> <translation>Recibido con</translation> </message> <message> <location filename="../transactionview.cpp" line="74"/> <source>Sent to</source> <translation>Enviado a</translation> </message> <message> <location filename="../transactionview.cpp" line="76"/> <source>To yourself</source> <translation>A ti mismo</translation> </message> <message> <location filename="../transactionview.cpp" line="77"/> <source>Mined</source> <translation>Minado</translation> </message> <message> <location filename="../transactionview.cpp" line="78"/> <source>Other</source> <translation>Otra</translation> </message> <message> <location filename="../transactionview.cpp" line="85"/> <source>Enter address or label to search</source> <translation>Introduzca una dirección o etiqueta que buscar</translation> </message> <message> <location filename="../transactionview.cpp" line="92"/> <source>Min amount</source> <translation>Cantidad mínima</translation> </message> <message> <location filename="../transactionview.cpp" line="126"/> <source>Copy address</source> <translation>Copiar dirección</translation> </message> <message> <location filename="../transactionview.cpp" line="127"/> <source>Copy label</source> <translation>Copiar etiqueta</translation> </message> <message> <location filename="../transactionview.cpp" line="128"/> <source>Copy amount</source> <translation>Copiar cuantía</translation> </message> <message> <location filename="../transactionview.cpp" line="129"/> <source>Edit label</source> <translation>Editar etiqueta</translation> </message> <message> <location filename="../transactionview.cpp" line="130"/> <source>Show transaction details</source> <translation>Mostrar detalles de la transacción</translation> </message> <message> <location filename="../transactionview.cpp" line="270"/> <source>Export Transaction Data</source> <translation>Exportar datos de la transacción</translation> </message> <message> <location filename="../transactionview.cpp" line="271"/> <source>Comma separated file (*.csv)</source> <translation>Archivos de columnas separadas por coma (*.csv)</translation> </message> <message> <location filename="../transactionview.cpp" line="279"/> <source>Confirmed</source> <translation>Confirmado</translation> </message> <message> <location filename="../transactionview.cpp" line="280"/> <source>Date</source> <translation>Fecha</translation> </message> <message> <location filename="../transactionview.cpp" line="281"/> <source>Type</source> <translation>Tipo</translation> </message> <message> <location filename="../transactionview.cpp" line="282"/> <source>Label</source> <translation>Etiqueta</translation> </message> <message> <location filename="../transactionview.cpp" line="283"/> <source>Address</source> <translation>Dirección</translation> </message> <message> <location filename="../transactionview.cpp" line="284"/> <source>Amount</source> <translation>Cantidad</translation> </message> <message> <location filename="../transactionview.cpp" line="285"/> <source>ID</source> <translation>ID</translation> </message> <message> <location filename="../transactionview.cpp" line="289"/> <source>Error exporting</source> <translation>Error exportando</translation> </message> <message> <location filename="../transactionview.cpp" line="289"/> <source>Could not write to file %1.</source> <translation>No se pudo escribir en el archivo %1.</translation> </message> <message> <location filename="../transactionview.cpp" line="384"/> <source>Range:</source> <translation>Rango:</translation> </message> <message> <location filename="../transactionview.cpp" line="392"/> <source>to</source> <translation>para</translation> </message> </context> <context> <name>VerifyMessageDialog</name> <message> <location filename="../forms/verifymessagedialog.ui" line="14"/> <source>Verify Signed Message</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="20"/> <source>Enter the message and signature below (be careful to correctly copy newlines, spaces, tabs and other invisible characters) to obtain the Bitcoin address used to sign the message.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="62"/> <source>Verify a message and obtain the Bitcoin address used to sign the message</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="65"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="79"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Copia la dirección seleccionada al portapapeles</translation> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="82"/> <source>&amp;Copy Address</source> <translation>&amp;Copiar dirección</translation> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="93"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="96"/> <source>Clear &amp;All</source> <translation>Limpiar &amp;todo</translation> </message> <message> <location filename="../verifymessagedialog.cpp" line="28"/> <source>Enter Bitcoin signature</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="29"/> <source>Click &quot;Verify Message&quot; to obtain address</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="55"/> <location filename="../verifymessagedialog.cpp" line="62"/> <source>Invalid Signature</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="55"/> <source>The signature could not be decoded. Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="62"/> <source>The signature did not match the message digest. Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="72"/> <source>Address not found in address book.</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="72"/> <source>Address found in address book: %1</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="158"/> <source>Sending...</source> <translation>Enviando...</translation> </message> </context> <context> <name>WindowOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="313"/> <source>Window</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="316"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Minimiza a la bandeja en vez de la barra de tareas</translation> </message> <message> <location filename="../optionsdialog.cpp" line="317"/> <source>Show only a tray icon after minimizing the window</source> <translation>Muestra solo el icono de sistema cuando se minimice la ventana</translation> </message> <message> <location filename="../optionsdialog.cpp" line="320"/> <source>M&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="321"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>Minimiza la ventana en lugar de salir de la aplicación.Cuando esta opcion está activa la aplicación solo se puede cerrar seleccionando Salir desde el menú.</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="43"/> <source>Bitcoin version</source> <translation>Versión de Bitcoin</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="44"/> <source>Usage:</source> <translation>Uso:</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="45"/> <source>Send command to -server or bitcoind</source> <translation>Envíar comando a -server o bitcoind</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="46"/> <source>List commands</source> <translation>Muestra comandos </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="47"/> <source>Get help for a command</source> <translation>Recibir ayuda para un comando </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="49"/> <source>Options:</source> <translation>Opciones: </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="50"/> <source>Specify configuration file (default: bitcoin.conf)</source> <translation>Especifica archivo de configuración (predeterminado: bitcoin.conf) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="51"/> <source>Specify pid file (default: bitcoind.pid)</source> <translation>Especifica archivo pid (predeterminado: bitcoin.pid) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="52"/> <source>Generate coins</source> <translation>Generar monedas</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="53"/> <source>Don&apos;t generate coins</source> <translation>No generar monedas</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="54"/> <source>Specify data directory</source> <translation>Especificar directorio para los datos</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="55"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Establecer el tamaño del caché de la base de datos en megabytes (por defecto: 25)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="56"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation>Base de datos de conjunto de discos de registro de tamaño en megabytes (por defecto: 100)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="57"/> <source>Specify connection timeout (in milliseconds)</source> <translation>Especifica tiempo de espera para conexion (en milisegundos) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="63"/> <source>Listen for connections on &lt;port&gt; (default: 8333 or testnet: 18333)</source> <translation>Preste atención a las conexiones en &lt;puerto&gt; (por defecto: 8333 o testnet: 18333)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="64"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Mantener en la mayoría de las conexiones &lt;n&gt; a sus compañeros (por defecto: 125)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="66"/> <source>Connect only to the specified node</source> <translation>Conecta solo al nodo especificado </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="67"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="68"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="69"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4 or IPv6)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="70"/> <source>Try to discover public IP address (default: 1)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="73"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="75"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Umbral para la desconexión de los compañeros se portan mal (por defecto: 100)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="76"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Número de segundos que se mantienen los compañeros se portan mal en volver a conectarse (por defecto: 86400)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="79"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 10000)</source> <translation>Máximo por-conexión búfer de recepción, &lt;n&gt;*1000 bytes (por defecto: 10000)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="80"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 10000)</source> <translation>Máximo por conexión buffer de envío, &lt;n&gt;*1000 bytes (por defecto: 10000)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="83"/> <source>Detach block and address databases. Increases shutdown time (default: 0)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="86"/> <source>Accept command line and JSON-RPC commands</source> <translation>Aceptar comandos consola y JSON-RPC </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="87"/> <source>Run in the background as a daemon and accept commands</source> <translation>Correr como demonio y acepta comandos </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="88"/> <source>Use the test network</source> <translation>Usa la red de pruebas </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="89"/> <source>Output extra debugging information</source> <translation>Salida de información de depuración extra</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="90"/> <source>Prepend debug output with timestamp</source> <translation>Anteponer la salida de depuración, con indicación de la hora</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="91"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Enviar rastrear/debug info a la consola en lugar de debug.log archivo</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="92"/> <source>Send trace/debug info to debugger</source> <translation>Enviar rastrear / debug info al depurador</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="93"/> <source>Username for JSON-RPC connections</source> <translation>Usuario para las conexiones JSON-RPC </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="94"/> <source>Password for JSON-RPC connections</source> <translation>Contraseña para las conexiones JSON-RPC </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="95"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8332)</source> <translation>Escucha conexiones JSON-RPC en el puerto &lt;port&gt; (predeterminado: 8332) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="96"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Permite conexiones JSON-RPC desde la dirección IP especificada </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="97"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Envía comando al nodo situado en &lt;ip&gt; (predeterminado: 127.0.0.1) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="98"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Ejecutar un comando cuando cambia el mejor bloque (%s en cmd se sustituye por el hash de bloque)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="101"/> <source>Upgrade wallet to latest format</source> <translation>Actualizar el monedero al último formato</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="102"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Ajusta el número de claves en reserva &lt;n&gt; (predeterminado: 100) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="103"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Volver a examinar la cadena de bloques en busca de transacciones del monedero perdidas</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="104"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation>Cuántos bloques para comprobar en el arranque (por defecto: 2500, 0 = todos)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="105"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation>Cómo completa la verificación del bloque es (0-6, por defecto: 1)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="106"/> <source>Imports blocks from external blk000?.dat file</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="108"/> <source> SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation>Opciones SSL: (ver la Bitcoin Wiki para instrucciones de configuración SSL) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="111"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Usa OpenSSL (https) para las conexiones JSON-RPC </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="112"/> <source>Server certificate file (default: server.cert)</source> <translation>Certificado del servidor (Predeterminado: server.cert) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="113"/> <source>Server private key (default: server.pem)</source> <translation>Clave privada del servidor (Predeterminado: server.pem) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="114"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Cifrados aceptados (Predeterminado: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="145"/> <source>Warning: Disk space is low</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="107"/> <source>This help message</source> <translation>Este mensaje de ayuda </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="121"/> <source>Cannot obtain a lock on data directory %s. Bitcoin is probably already running.</source> <translation>No se puede obtener permiso de trabajo en la carpeta de datos %s. Probablemente Bitcoin ya se está ejecutando. </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="48"/> <source>Bitcoin</source> <translation>Bitcoin</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="30"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="58"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="59"/> <source>Select the version of socks proxy to use (4 or 5, 5 is default)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="60"/> <source>Do not use proxy for connections to network &lt;net&gt; (IPv4 or IPv6)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="61"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="62"/> <source>Pass DNS requests to (SOCKS5) proxy</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="142"/> <source>Loading addresses...</source> <translation>Cargando direcciones...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="132"/> <source>Error loading blkindex.dat</source> <translation>Error al cargar blkindex.dat</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="134"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Error al cargar wallet.dat: el monedero está dañado</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="135"/> <source>Error loading wallet.dat: Wallet requires newer version of Bitcoin</source> <translation>Error al cargar wallet.dat: El monedero requiere una versión más reciente de Bitcoin</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="136"/> <source>Wallet needed to be rewritten: restart Bitcoin to complete</source> <translation>El monedero ha necesitado ser reescrito. Reinicie Bitcoin para completar el proceso</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="137"/> <source>Error loading wallet.dat</source> <translation>Error al cargar wallet.dat</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="124"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="125"/> <source>Unknown network specified in -noproxy: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="127"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="126"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="128"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="129"/> <source>Not listening on any port</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="130"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="117"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="143"/> <source>Error: could not start node</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="31"/> <source>Error: Wallet locked, unable to create transaction </source> <translation>Error: monedero bloqueado. Bitcoin es incapaz de crear las transacciones </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="32"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source> <translation>Error: esta transacción está sujeta a una tarifa de %s, bien por su cantidad, complejidad, o por el uso de fondos recientemente recibidos </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="35"/> <source>Error: Transaction creation failed </source> <translation>Error: no se ha podido crear la transacción</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="36"/> <source>Sending...</source> <translation>Enviando...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="37"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Error: la transacción fue rechazada. Esto puede pasar si alguna de las monedas ya estaba gastada o si ha usado una copia de wallet.dat y las monedas se gastaron en la copia pero no se han marcado como gastadas aquí.</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="41"/> <source>Invalid amount</source> <translation>Cuantía no válida</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="42"/> <source>Insufficient funds</source> <translation>Fondos insuficientes</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="131"/> <source>Loading block index...</source> <translation>Cargando el índice de bloques...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="65"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Añadir un nodo para conectarse y tratar de mantener la conexión abierta</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="28"/> <source>Unable to bind to %s on this computer. Bitcoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="71"/> <source>Find peers using internet relay chat (default: 0)</source> <translation>Encontrar los pares utilizando Internet Relay Chat (por defecto: 0)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="72"/> <source>Accept connections from outside (default: 1)</source> <translation>Aceptar conexiones desde el exterior (por defecto: 1)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="74"/> <source>Find peers using DNS lookup (default: 1)</source> <translation>Encontrar compañeros con búsqueda de DNS (por defecto: 1)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="81"/> <source>Use Universal Plug and Play to map the listening port (default: 1)</source> <translation>Use Universal Plug and Play para asignar el puerto de escucha (por defecto: 1)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="82"/> <source>Use Universal Plug and Play to map the listening port (default: 0)</source> <translation>Use Universal Plug and Play para asignar el puerto de escucha (por defecto: 0)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="85"/> <source>Fee per KB to add to transactions you send</source> <translation>Tarifa por KB que añadir a las transacciones que envíe</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="118"/> <source>Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="133"/> <source>Loading wallet...</source> <translation>Cargando monedero...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="138"/> <source>Cannot downgrade wallet</source> <translation>No se puede rebajar el monedero</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="139"/> <source>Cannot initialize keypool</source> <translation>No se puede inicializar grupo de teclas</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="140"/> <source>Cannot write default address</source> <translation>No se puede escribir la dirección por defecto</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="141"/> <source>Rescanning...</source> <translation>Rescaneando...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="144"/> <source>Done loading</source> <translation>Generado pero no aceptado</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="8"/> <source>To use the %s option</source> <translation>Para utilizar la opción %s</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="9"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=bitcoinrpc rpcpassword=%s (you do not need to remember this password) If the file does not exist, create it with owner-readable-only file permissions. </source> <translation>%s, tiene que establecer rpcpassword en el archivo de configuración: ⏎ %s ⏎ Se recomienda utilizar la siguiente contraseña aleatoria: ⏎ rpcuser = bitcoinrpc ⏎ rpcpassword =%s ⏎ (no es necesario para recordar esta contraseña) ⏎ Si el archivo no existe se crea con los permisos de lectura y escritura solamente del propietario. ⏎</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="18"/> <source>Error</source> <translation>Error</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="19"/> <source>An error occured while setting up the RPC port %i for listening: %s</source> <translation>Ha ocurrido un error al instalar el puerto RPC %i para escuchar: %s</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="20"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Tiene que establecer rpcpassword=&lt;contraseña&gt; en el fichero de configuración: ⏎ %s ⏎ Si el archivo no existe, se crea con permisos de propietario de lectura de sólo archivos.</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="25"/> <source>Warning: Please check that your computer&apos;s date and time are correct. If your clock is wrong Bitcoin will not work properly.</source> <translation>Precaución: revise por favor que la fecha y hora de su sistema son correctas. Si el reloj está mal Bitcoin no funcionará correctamente.</translation> </message> </context> </TS>
plusevcoin/plusevcoin-old
src/qt/locale/bitcoin_es.ts
TypeScript
mit
112,320
# Voting Centers Resources Code, data, and resources for building the source file for Orlando voting notifications ## Getting Started This sub-project uses a Python command line utility to process raw data files. You'll need Python3 installed (preferably always the most recent minor version). You should activate a virtual env, but it's not the end of the world. Install the dependacies: ```python cd voting_centers pip install -r requirements.txt ``` The command line utility has built-in help docs and is callable like so: ```bash python factory.py -h ``` ## Precinct Geometries Creates the geojson file from [Orange County precinct GIS files](http://www.ocfelections.com/PrecinctGISFiles.aspx) ```bash python factory.py geoms resources/precinct_files/May2016Precinct_region.shp ``` The output is a feature collection of polygons. As a sanity check, the [rendered precinct geojson data](https://github.com/cforlando/CityGram-Intermediary/blob/master/voting_centers/data/geometries.geojson) can be viewed on GitHub ## Election Dates Orange County major elections calendar - [link](http://www.ocfelections.com/Election_Calendar.aspx) ## Voting Centers
cforlando/CityGram-Intermediary
voting_centers/README.md
Markdown
mit
1,166
Dict( 2 => Symbol[:dot,:floor,:max,:any,:ldexp,:ceil,:normalize,:all,:log,:mod,:cross,:trunc,:round,:min] 3 => Symbol[:round,:ceil,:trunc,:floor,:fma,:any,:all,:clamp] 1 => Symbol[:atanh,:tanh,:exp2,:floor,:max,:any,:sin,:tan,:modf,:step,:log2,:acosh,:ceil,:normalize,:length,:atan,:all,:log,:isnan,:trunc,:asinh,:transpose,:abs,:frexp,:sqrt,:round,:sinh,:sign,:acos,:asin,:cosh,:exp,:min,:isinf,:cos] )
JuliaGL/GLBackend.jl
src/transpiler/gl_inbuild_funs.jl
Julia
mit
416
describe('addClassDecorator', function () { it('should call the decorate method when the Decorator is invoked', function () { var info = {decorate: jasmine.createSpy('decorate')}; BaseClass.addClassDecorator('decorator', info); BaseClass('name', function () { ~decorator(); }); expect(info.decorate).toHaveBeenCalled(); }); it('should call the decorate method with the correct parameters', function () { var info = {decorate: jasmine.createSpy('decorate')}; BaseClass.addClassDecorator('decorator', info); var aClass = BaseClass('name', function () { ~decorator(1, true); }); expect(info.decorate).toHaveBeenCalledWith(aClass.$class, 1, true); }); it('should allow nested Decorators', function () { var info = {decorate: jasmine.createSpy('decorate')}; BaseClass.addClassDecorator('decorator', info); BaseClass.addClassDecorator('decorator.A', info); BaseClass.addClassDecorator('decorator.A.B', info); BaseClass.addClassDecorator('decorator.A.B.C.D.E', info); BaseClass.addClassDecorator('decorator.A.B.C.F', info); BaseClass('name', function () { +decorator(); +decorator.A(); +decorator.A.B(); +decorator.A.B.C.D.E(); +decorator.A.B.C.F(); }); expect(info.decorate.calls.count()).toBe(5); }); it('should temporarily add the Decorator to the resulting class', function () { var info = {decorate: jasmine.createSpy('decorate')}; BaseClass.addClassDecorator('decorator', info); var aClass = BaseClass('name', function () { expect(typeof this.decorator).toBe('function'); +this.decorator(1, true); }); expect(aClass.decorator).toBeUndefined(); expect(info.decorate).toHaveBeenCalledWith(aClass.$class, 1, true); }); describe('globalize: false', function () { it('should not globalize the Decorator by default', function () { var info = {decorate: jasmine.createSpy('decorate')}; BaseClass.addClassDecorator('decorator', info); expect(typeof decorator).toBe('undefined'); BaseClass('name', function () { expect(typeof decorator).toBe('function'); +decorator(); }); expect(typeof decorator).toBe('undefined'); expect(info.decorate.calls.count()).toBe(1); }); it('should apply the Decorator to the Class being currently built', function () { var info = {decorate: jasmine.createSpy('decorate')}; BaseClass.addClassDecorator('decorator', info); var aClass, aClass2; var aClass = BaseClass('name1', function () { +decorator(); aClass2 = BaseClass('name2', function () { +decorator(); }); }); expect(info.decorate.calls.argsFor(0)).toEqual([aClass.$class]); expect(info.decorate.calls.argsFor(1)).toEqual([aClass2.$class]); }); }); describe('globalize: true', function () { it('should globalize the Decorator if asked to', function () { var info = {decorate: jasmine.createSpy('decorate'), globalize: true}; BaseClass.addClassDecorator('decorator', info); expect(typeof decorator).toBe('function'); BaseClass('name1', function () { expect(typeof decorator).toBe('function'); }); expect(typeof decorator).toBe('function'); }); it('should apply the Decorator to the next Class', function () { var info = {decorate: jasmine.createSpy('decorate'), globalize: true}; BaseClass.addClassDecorator('decorator', info); var aClass, aClass2; +decorator(); aClass = BaseClass('name1', function () { +decorator(); aClass2 = BaseClass('name2', ot.noop); }); expect(info.decorate.calls.argsFor(0)).toEqual([aClass.$class]); expect(info.decorate.calls.argsFor(1)).toEqual([aClass2.$class]); }); it('should only apply the Decorator to its ClassDefiner branch', function () { var infoParent = {decorate: jasmine.createSpy('parentDec'), globalize: true}, infoChild = {decorate: jasmine.createSpy('childDec'), globalize: true}, childClass = BaseClass.child('child'), diffBranchClass = BaseClass.child('diffBranchClass'), aClass; BaseClass.addClassDecorator('parentDec', infoParent); childClass.addClassDecorator('childDec', infoChild); // on same branch +parentDec(); +childDec(); aClass = childClass('name', ot.noop); expect(infoParent.decorate).toHaveBeenCalledWith(aClass.$class); expect(infoChild.decorate).toHaveBeenCalledWith(aClass.$class); infoParent.decorate.calls.reset(); infoChild.decorate.calls.reset(); // on parent's branch +parentDec(); +childDec(); aClass = BaseClass('name', ot.noop); expect(infoParent.decorate).toHaveBeenCalledWith(aClass.$class); expect(infoChild.decorate).not.toHaveBeenCalled(); aClass = childClass('name', ot.noop); expect(infoChild.decorate).toHaveBeenCalledWith(aClass.$class); infoParent.decorate.calls.reset(); infoChild.decorate.calls.reset(); // on different branch +parentDec(); +childDec(); aClass = diffBranchClass('name', ot.noop); expect(infoParent.decorate).toHaveBeenCalledWith(aClass.$class); expect(infoChild.decorate).not.toHaveBeenCalled(); aClass = childClass('name', ot.noop); expect(infoChild.decorate).toHaveBeenCalledWith(aClass.$class); }); }); describe('on', function () { it('should register the listeners to the events only once', function () { var info = {decorate: ot.noop, on: { event1: jasmine.createSpy('event1'), event2: jasmine.createSpy('event2') }}; BaseClass.addClassDecorator('decorator', info); var aClass = BaseClass('name', function () { +decorator(); +decorator(); }); aClass.$class.emit('event1', [1]); aClass.$class.emit('event2', [true]); expect(info.on.event1.calls.count()).toBe(1); expect(info.on.event2.calls.count()).toBe(1); expect(info.on.event1.calls.first()).toEqual({object: info, args: [1]}); expect(info.on.event2.calls.first()).toEqual({object: info, args: [true]}); }); }); });
rodyhaddad/classicaljs
test/spec/addClassDecoratorSpec.js
JavaScript
mit
7,050
#!/bin/sh for paneid in `tmux list-panes -s | awk -F":" '{print $1}'` do tmux clear-history -t $paneid done for buffid in `tmux list-buffers | awk -F":" '{print $1}'` do tmux delete-buffer -b $buffid done
mmmonk/crap
other/tmux_clean.sh
Shell
mit
212
html, #columns { column-count: 3; column-gap: 10px; list-style-type: none; line-height: 70px; position: fixed; bottom: 150px; width: 1920px; margin-left: auto; margin-right: auto; color: white; } body { text-align: center; font-size: 1.75em; text-shadow: 0 .1rem .1rem rgba(0,0,0,.5); background-image: url('/img/qmgbackground.png'); } .home { position: fixed; width: 15%; margin-left: auto; margin-right: auto; bottom: 30px; font-size: 1.75em; } .next { position: fixed; text-align: center; width: 15%; margin-left: auto; margin-right: auto; bottom: 0px; right: 0px; font-size: 1.75em; } .intro { position: fixed; width: 70%; margin-left: auto; margin-right: auto; top: 0; padding-left: 15%; line-height: 50px; } a { color: white; background-color: transparent; text-decoration: none; }
mrculver11/heritage-kiosk
hkiosk/public/css/index.css
CSS
mit
876
# redux-elm-middleware > Elm middleware for redux :sparkles: <img src="https://cdn.rawgit.com/stoeffel/redux-elm-middleware/v017/logo/logo.svg" alt="logo" width="250" height="252"> [![Build Status](https://travis-ci.org/stoeffel/redux-elm-middleware.svg?branch=master)](https://travis-ci.org/stoeffel/redux-elm-middleware) [![codecov](https://codecov.io/gh/stoeffel/redux-elm-middleware/branch/master/graph/badge.svg)](https://codecov.io/gh/stoeffel/redux-elm-middleware) [![Dependency Status](https://david-dm.org/stoeffel/redux-elm-middleware.svg)](https://david-dm.org/stoeffel/redux-elm-middleware) [![npm version](https://badge.fury.io/js/redux-elm-middleware.svg)](https://badge.fury.io/js/redux-elm-middleware) ## Installation You need to install redux-elm-middleware for js and elm. ```bash $ npm i redux-elm-middleware -S ``` Redux-elm-middleware is currently only published to npm. You will need to add the following to you `elm-package.json` ```json "source-directories": ["node_modules/redux-elm-middleware/src", ...] ``` ## Usage ### Setup Redux Middleware ```js import createElmMiddleware from 'redux-elm-middleware' import { reducer as elmReducer } from 'redux-elm-middleware' // Import your Elm Reducer import Elm from '../build/elm' const reducer = combineReducers({ elm: elmReducer // ...middlewares }) // create a worker of your elm reducer const elmStore = Elm.Reducer.worker(); // create the middleware const { run, elmMiddleware } = createElmMiddleware(elmStore) // create the redux store and pass the elmMiddleware const store = createStore(reducer, {}, compose( applyMiddleware(elmMiddleware), window.devToolsExtension ? window.devToolsExtension() : f => f )); // you need to run the elm middleware and pass the redux store run(store) ``` #### Elm root reducer The root reducer from redux-elm-middleware simply takes all actions from your elm reducers and returns the payload as the next state. The new model returned in your elm reducers update function is dispatched as a new action to the redux store. f.e. ```js { type: '@@elm/Increment', payload: { counter: 3 } } ``` ### Creating a Reducer in Elm A reducer in elm looks like a normal [TEA](https://github.com/evancz/elm-architecture-tutorial) module without the view. ```elm port module Reducer exposing (Model, Msg, init, update, subscriptions) -- Name of the module must match the worker import Redux -- define ports for all actions which should be handled by the elm reducer port increment : ({} -> msg) -> Sub msg -- define all subscriptions of your reducer subscriptions : Model -> Sub Msg subscriptions _ = Sub.batch [ increment <| always Increment -- ... ] -- In order for the Elm model to cross the border safely it must be encoded as a JSON value. encode : Model -> Json.Encode.Value encode model = ... -- MODEL -- UPDATE -- START THE REDUCER main = Redux.program { init = init , update = update , encode = encode , subscriptions = subscriptions } ``` ## Motivation * write bulletproof businesslogic * handle state and effects * pure * in one place * with a safetynet * still have the rich react/redux ecosystem at your paws * components * middlewares * routing * persistent state (localstorage) * offline support * ui state ( redux-ui ) * sneak a nice functional language into your projects * don't have to commit 100% to it * slowly convert a redux/react app into elm ## Running the Example * `npm install` * `npm run example` * open 127.0.0.1:8080 ## Feedback and contributons welcome!
stoeffel/redux-elm-middleware
README.md
Markdown
mit
3,640
'use strict'; const stateModule = angular.module('hkRouter', ['ui.router']); stateModule .config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { ///////////////////////////// // Redirects and Otherwise // ///////////////////////////// $urlRouterProvider.otherwise("/attractions"); // state provider $stateProvider .state('attractions', { url: '/attractions', templateUrl: 'partials/attraction.html', resolve: { locationResult : [ 'Accessible', function(Accessible) { return Accessible.get('facilities/attractions.json', 'attractions'); }], translateHeader: ['$translate', function($translate) { return $translate('ATTRACTION'); }] }, controller: 'AccessibleCtrl', controllerAs: 'vm' }) .state('shopping_dining', { url: '/shopping_dining', templateUrl: 'partials/attraction.html', resolve: { locationResult : [ 'Accessible', function(Accessible) { return Accessible.get('facilities/shoppings.json', 'shopping-dining'); }], translateHeader: ['$translate', function($translate) { return $translate('SHOPPING'); }] }, controller: 'AccessibleCtrl', controllerAs: 'vm' }) .state('hotels', { url: '/hotels', templateUrl: 'partials/attraction.html', resolve: { locationResult : [ 'Accessible', function(Accessible) { return Accessible.get('facilities/hotels.json', 'hotels'); }], translateHeader: ['$translate', function($translate) { return $translate('HOTEL'); }] }, controller: 'AccessibleCtrl', controllerAs: 'vm' }) .state('other_venues', { url: '/other_venues', templateUrl: 'partials/attraction.html', resolve: { locationResult : [ 'Accessible', function(Accessible) { return Accessible.get('facilities/other_venues.json', 'other-venues'); }], translateHeader: ['$translate', function($translate) { return $translate('OTHERVENUE'); }] }, controller: 'AccessibleCtrl', controllerAs: 'vm' }) // .state('geolocation', // { // url: '/geolocation', // templateUrl: 'partials/geolocation.html', // resolve: { // locationResult : [ 'Accessible', function(Accessible) { // return Accessible.get("facilities/shoppings.json","shopping-dining"); // }] // }, // controller: 'MapCtrl', // controllerAs: 'vm' // }) .state('related_links', { url : '/links', templateUrl : 'partials/link.html', controller : 'LinkCtrl', controllerAs: 'vm' }); }]);
railsstudent/angular-hkaccessible
app/js/routers.js
JavaScript
mit
3,163
# Tabit [![Gem Version](http://img.shields.io/gem/v/tabit.svg)](https://rubygems.org/gems/tabit) [![Build Status](https://secure.travis-ci.org/webhippie/tabit.svg)](https://travis-ci.org/webhippie/tabit) [![Code Climate](https://codeclimate.com/github/webhippie/tabit.svg)](https://codeclimate.com/github/webhippie/tabit) [![Test Coverage](https://codeclimate.com/github/webhippie/tabit/badges/coverage.svg)](https://codeclimate.com/github/webhippie/tabit) [![Dependency Status](https://gemnasium.com/webhippie/tabit.svg)](https://gemnasium.com/webhippie/tabit) Tabit is a simple tab menu generator. It depends on `active_link_to` helper. If you dont know how to set an item active take a look at it first. The generated source is compatible to bootstrap tabs with dropdowns. ## Installation ```ruby gem "tabit", "~> 1.0.0" ``` ## Usage ```ruby = tabit :class => "nav nav-tabs" do |t1| - t1.heading "Header" - t1.add "Videos", videos_path - t1.divider - t1.add "Movies", movies_path, active: /movies(\/\d)*(\/edit)*$/ - t1.add "Movies, movies_path, active: :exclusive, type: :dropdown do |t2| - t2.add "Add movie", new_movie_path, active: :exclusive ``` ## Contributing Fork -> Patch -> Spec -> Push -> Pull Request ## Authors * [Thomas Boerger](https://github.com/tboerger) * [Other contributors](https://github.com/webhippie/tabit/graphs/contributors) ## License MIT ## Copyright ``` Copyright (c) 2012-2015 Webhippie <http://www.webhippie.de> ```
webhippie/tabit
README.md
Markdown
mit
1,484
using System; using System.Collections.Generic; using Csla; namespace ParentLoad.DataAccess.ERLevel { /// <summary> /// DAL Interface for A12_CityRoad type /// </summary> public partial interface IA12_CityRoadDal { /// <summary> /// Inserts a new A12_CityRoad object in the database. /// </summary> /// <param name="a12_CityRoad">The A12 City Road DTO.</param> /// <returns>The new <see cref="A12_CityRoadDto"/>.</returns> A12_CityRoadDto Insert(A12_CityRoadDto a12_CityRoad); /// <summary> /// Updates in the database all changes made to the A12_CityRoad object. /// </summary> /// <param name="a12_CityRoad">The A12 City Road DTO.</param> /// <returns>The updated <see cref="A12_CityRoadDto"/>.</returns> A12_CityRoadDto Update(A12_CityRoadDto a12_CityRoad); /// <summary> /// Deletes the A12_CityRoad object from database. /// </summary> /// <param name="cityRoad_ID">The City Road ID.</param> void Delete(int cityRoad_ID); } }
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/DAL-DTO/ParentLoad.DataAccess/ERLevel/IA12_CityRoadDal.Designer.cs
C#
mit
1,126
<div> <h1>The Kingdom</h1> <router-outlet></router-outlet> </div>
hirezio/the-princess-guards
src/app/app.component.html
HTML
mit
71
//Write a program that reads an integer number and calculates and prints its //square root. //If the number is invalid or negative, print Invalid number. //In all cases finally print Good bye.Use try-catch-finally block. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; static class Program { static void Main() { try { double a = double.Parse(Console.ReadLine()); double result = Math.Sqrt(a); if (double.IsNaN(result)) { throw new System.Exception(); } else { Console.WriteLine("{0:F3}", result); } } catch (Exception) { Console.WriteLine("Invalid number"); } finally { Console.WriteLine("Good bye"); } } }
NikolaLyutsov/TelerikAcademy
Homeworks/C#2/07. Exception-Handling/01. Square root/Program.cs
C#
mit
990
$(function() { setInterval( function() { var seconds = new Date().getSeconds(); var sdegree = seconds * 6; var srotate = "rotate(" + sdegree + "deg)"; $('.dynamic-time').html(moment(new Date()).format("hh:mm:ss A")); $("#sec").css({"-moz-transform" : srotate, "-webkit-transform" : srotate}); }, 1000 ); setInterval( function() { var hours = new Date().getHours(); var mins = new Date().getMinutes(); var hdegree = hours * 30 + (mins / 2); var hrotate = "rotate(" + hdegree + "deg)"; $("#hour").css({"-moz-transform" : hrotate, "-webkit-transform" : hrotate}); }, 1000 ); setInterval( function() { var mins = new Date().getMinutes(); var mdegree = mins * 6; var mrotate = "rotate(" + mdegree + "deg)"; $("#min").css({"-moz-transform" : mrotate, "-webkit-transform" : mrotate}); }, 1000 ); });
HVish/student-portal
assets/js/css3clock/js/css3clock.js
JavaScript
mit
934
using System; using System.Data; using System.Data.SqlClient; using Csla; using Csla.Data; namespace ParentLoadROSoftDelete.Business.ERCLevel { /// <summary> /// F01_ContinentColl (read only list).<br/> /// This is a generated base class of <see cref="F01_ContinentColl"/> business object. /// This class is a root collection. /// </summary> /// <remarks> /// The items of the collection are <see cref="F02_Continent"/> objects. /// </remarks> [Serializable] public partial class F01_ContinentColl : ReadOnlyListBase<F01_ContinentColl, F02_Continent> { #region Collection Business Methods /// <summary> /// Adds a new <see cref="F02_Continent"/> item to the collection. /// </summary> /// <param name="item">The item to add.</param> /// <remarks> /// There is no valid Parent property (inexistant or null). /// The Add method is redefined so it takes care of filling the ParentList property. /// </remarks> public new void Add(F02_Continent item) { item.ParentList = this; base.Add(item); } /// <summary> /// Determines whether a <see cref="F02_Continent"/> item is in the collection. /// </summary> /// <param name="continent_ID">The Continent_ID of the item to search for.</param> /// <returns><c>true</c> if the F02_Continent is a collection item; otherwise, <c>false</c>.</returns> public bool Contains(int continent_ID) { foreach (var f02_Continent in this) { if (f02_Continent.Continent_ID == continent_ID) { return true; } } return false; } #endregion #region Find Methods /// <summary> /// Finds a <see cref="F02_Continent"/> item of the <see cref="F01_ContinentColl"/> collection, based on item key properties. /// </summary> /// <param name="continent_ID">The Continent_ID.</param> /// <returns>A <see cref="F02_Continent"/> object.</returns> public F02_Continent FindF02_ContinentByParentProperties(int continent_ID) { for (var i = 0; i < this.Count; i++) { if (this[i].Continent_ID.Equals(continent_ID)) { return this[i]; } } return null; } #endregion #region Factory Methods /// <summary> /// Factory method. Loads a <see cref="F01_ContinentColl"/> collection. /// </summary> /// <returns>A reference to the fetched <see cref="F01_ContinentColl"/> collection.</returns> public static F01_ContinentColl GetF01_ContinentColl() { return DataPortal.Fetch<F01_ContinentColl>(); } #endregion #region Constructor /// <summary> /// Initializes a new instance of the <see cref="F01_ContinentColl"/> class. /// </summary> /// <remarks> Do not use to create a Csla object. Use factory methods instead.</remarks> [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public F01_ContinentColl() { // Use factory methods and do not use direct creation. var rlce = RaiseListChangedEvents; RaiseListChangedEvents = false; AllowNew = false; AllowEdit = false; AllowRemove = false; RaiseListChangedEvents = rlce; } #endregion #region Data Access /// <summary> /// Loads a <see cref="F01_ContinentColl"/> collection from the database. /// </summary> protected void DataPortal_Fetch() { using (var ctx = ConnectionManager<SqlConnection>.GetManager("DeepLoad")) { using (var cmd = new SqlCommand("GetF01_ContinentColl", ctx.Connection)) { cmd.CommandType = CommandType.StoredProcedure; var args = new DataPortalHookArgs(cmd); OnFetchPre(args); LoadCollection(cmd); OnFetchPost(args); } } } private void LoadCollection(SqlCommand cmd) { using (var dr = new SafeDataReader(cmd.ExecuteReader())) { Fetch(dr); if (this.Count > 0) this[0].FetchChildren(dr); } } /// <summary> /// Loads all <see cref="F01_ContinentColl"/> collection items from the given SafeDataReader. /// </summary> /// <param name="dr">The SafeDataReader to use.</param> private void Fetch(SafeDataReader dr) { IsReadOnly = false; var rlce = RaiseListChangedEvents; RaiseListChangedEvents = false; while (dr.Read()) { Add(F02_Continent.GetF02_Continent(dr)); } RaiseListChangedEvents = rlce; IsReadOnly = true; } #endregion #region DataPortal Hooks /// <summary> /// Occurs after setting query parameters and before the fetch operation. /// </summary> partial void OnFetchPre(DataPortalHookArgs args); /// <summary> /// Occurs after the fetch operation (object or collection is fully loaded and set up). /// </summary> partial void OnFetchPost(DataPortalHookArgs args); #endregion } }
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/ParentLoadROSoftDelete.Business/ERCLevel/F01_ContinentColl.Designer.cs
C#
mit
5,890
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About MoneyCoin</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>&lt;b&gt;MoneyCoin&lt;/b&gt; version</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The BlackCoin developers Copyright © 2014-%1 The MoneyCoin developers</source> <translation type="unfinished"/> </message> <message> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The BlackCoin developers Copyright © 2014-[CLIENT_LAST_COPYRIGHT] The MoneyCoin developers</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or &lt;a href=&quot;http://www.opensource.org/licenses/mit-license.php&quot;&gt;http://www.opensource.org/licenses/mit-license.php&lt;/a&gt;. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (&lt;a href=&quot;https://www.openssl.org/&quot;&gt;https://www.openssl.org/&lt;/a&gt;) and cryptographic software written by Eric Young (&lt;a href=&quot;mailto:eay@cryptsoft.com&quot;&gt;eay@cryptsoft.com&lt;/a&gt;) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+218"/> <source>Label</source> <translation>Rótulo</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Endereço</translation> </message> <message> <location line="+0"/> <source>pubkey</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>stealth</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>(no label)</source> <translation>(sem rótulo)</translation> </message> <message> <location line="+4"/> <source>Stealth Address</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>n/a</source> <translation type="unfinished"/> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Diálogo de Frase-Passe</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Escreva a frase de segurança</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Nova frase de segurança</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Repita a nova frase de segurança</translation> </message> <message> <location line="+33"/> <location line="+16"/> <source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source> <translation type="unfinished"/> </message> <message> <location line="-13"/> <source>For staking only</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Enable messaging</source> <translation type="unfinished"/> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+39"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Escreva a nova frase de seguraça da sua carteira. &lt;br/&gt; Por favor, use uma frase de &lt;b&gt;10 ou mais caracteres aleatórios,&lt;/b&gt; ou &lt;b&gt;oito ou mais palavras&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Encriptar carteira</translation> </message> <message> <location line="+11"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>A sua frase de segurança é necessária para desbloquear a carteira.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Desbloquear carteira</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>A sua frase de segurança é necessária para desencriptar a carteira.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Desencriptar carteira</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Alterar frase de segurança</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Escreva a frase de segurança antiga seguida da nova para a carteira.</translation> </message> <message> <location line="+45"/> <source>Confirm wallet encryption</source> <translation>Confirmar encriptação da carteira</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR COINS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Tem a certeza que deseja encriptar a carteira?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>IMPORTANTE: Qualquer cópia de segurança anterior da carteira deverá ser substituída com o novo, actualmente encriptado, ficheiro de carteira. Por razões de segurança, cópias de segurança não encriptadas efectuadas anteriormente do ficheiro da carteira tornar-se-ão inúteis assim que começar a usar a nova carteira encriptada.</translation> </message> <message> <location line="+104"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Atenção: A tecla Caps Lock está activa!</translation> </message> <message> <location line="-134"/> <location line="+61"/> <source>Wallet encrypted</source> <translation>Carteira encriptada</translation> </message> <message> <location line="-59"/> <source>MoneyCoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+45"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>A encriptação da carteira falhou</translation> </message> <message> <location line="-57"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>A encriptação da carteira falhou devido a um erro interno. A carteira não foi encriptada.</translation> </message> <message> <location line="+7"/> <location line="+51"/> <source>The supplied passphrases do not match.</source> <translation>As frases de segurança fornecidas não coincidem.</translation> </message> <message> <location line="-39"/> <source>Wallet unlock failed</source> <translation>O desbloqueio da carteira falhou</translation> </message> <message> <location line="+1"/> <location line="+13"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>A frase de segurança introduzida para a desencriptação da carteira estava incorreta.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>A desencriptação da carteira falhou</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>A frase de segurança da carteira foi alterada com êxito.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+137"/> <source>Network Alert</source> <translation>Alerta da Rede</translation> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Quantity:</source> <translation>Quantidade:</translation> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation>Bytes:</translation> </message> <message> <location line="+48"/> <source>Amount:</source> <translation>Quantia:</translation> </message> <message> <location line="+32"/> <source>Priority:</source> <translation>Prioridade:</translation> </message> <message> <location line="+48"/> <source>Fee:</source> <translation>Taxa:</translation> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation>Saída Baixa:</translation> </message> <message> <location filename="../coincontroldialog.cpp" line="+528"/> <location line="+30"/> <source>no</source> <translation>não</translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation>Depois de taxas:</translation> </message> <message> <location line="+35"/> <source>Change:</source> <translation>Troco:</translation> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation>(des)seleccionar todos</translation> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation>Modo de árvore</translation> </message> <message> <location line="+16"/> <source>List mode</source> <translation>Modo lista</translation> </message> <message> <location line="+45"/> <source>Amount</source> <translation>Quantia</translation> </message> <message> <location line="+5"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Address</source> <translation>Endereço</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation>Confirmados</translation> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation>Confirmada</translation> </message> <message> <location line="+5"/> <source>Priority</source> <translation>Prioridade</translation> </message> <message> <location filename="../coincontroldialog.cpp" line="-520"/> <source>Copy address</source> <translation>Copiar endereço</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Copiar rótulo</translation> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation>Copiar quantia</translation> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation>Copiar ID da Transação</translation> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation>Copiar quantidade</translation> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation>Taxa de cópia</translation> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation>Taxa depois de cópia</translation> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation>Copiar bytes</translation> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation>Prioridade de Cópia</translation> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation>Copiar output baixo</translation> </message> <message> <location line="+1"/> <source>Copy change</source> <translation>Copiar alteração</translation> </message> <message> <location line="+317"/> <source>highest</source> <translation>o maior</translation> </message> <message> <location line="+1"/> <source>high</source> <translation>alto</translation> </message> <message> <location line="+1"/> <source>medium-high</source> <translation>médio-alto</translation> </message> <message> <location line="+1"/> <source>medium</source> <translation>médio</translation> </message> <message> <location line="+4"/> <source>low-medium</source> <translation>baixo-médio</translation> </message> <message> <location line="+1"/> <source>low</source> <translation>baixo</translation> </message> <message> <location line="+1"/> <source>lowest</source> <translation>O mais baixo</translation> </message> <message> <location line="+130"/> <location line="+30"/> <source>DUST</source> <translation type="unfinished"/> </message> <message> <location line="-30"/> <location line="+30"/> <source>yes</source> <translation>sim</translation> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &quot;medium&quot;. This means a fee of at least %1 per kb is required.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if any recipient receives an amount smaller than %1. This means a fee of at least %2 is required. Amounts below 0.546 times the minimum relay fee are shown as DUST.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if the change is smaller than %1. This means a fee of at least %2 is required.</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <location line="+66"/> <source>(no label)</source> <translation>(Sem rótulo)</translation> </message> <message> <location line="-9"/> <source>change from %1 (%2)</source> <translation>Alteração de %1 (%2)</translation> </message> <message> <location line="+1"/> <source>(change)</source> <translation>(Alteração)</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Editar Endereço</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Rótulo</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>E&amp;ndereço</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Stealth Address</source> <translation type="unfinished"/> </message> <message> <location filename="../editaddressdialog.cpp" line="+20"/> <source>New receiving address</source> <translation>Novo endereço de entrada</translation> </message> <message> <location line="+7"/> <source>New sending address</source> <translation>Novo endereço de saída</translation> </message> <message> <location line="+4"/> <source>Edit receiving address</source> <translation>Editar endereço de entrada</translation> </message> <message> <location line="+7"/> <source>Edit sending address</source> <translation>Editar endereço de saída</translation> </message> <message> <location line="+82"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>O endereço introduzido &quot;%1&quot; já se encontra no livro de endereços.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid MoneyCoin address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Impossível desbloquear carteira.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Falha ao gerar nova chave.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+526"/> <source>version</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+12"/> <source>Money</source> <translation type="unfinished"/> </message> <message> <location line="-10"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>UI options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>MessageModel</name> <message> <location filename="../messagemodel.cpp" line="+376"/> <source>Type</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Sent Date Time</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Received Date Time</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>To Address</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>From Address</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Message</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Send Secure Message</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send failed: %1.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <location line="+1"/> <source>(no label)</source> <translation type="unfinished"/> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start money: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>PeerTableModel</name> <message> <location filename="../peertablemodel.cpp" line="+118"/> <source>Address/Hostname</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>User Agent</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Ping Time</source> <translation type="unfinished"/> </message> </context> <context> <name>QObject</name> <message> <location filename="../guiutil.cpp" line="-470"/> <source>%1 d</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 h</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 m</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <location line="+55"/> <source>%1 s</source> <translation type="unfinished"/> </message> <message> <location line="-10"/> <source>None</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>N/A</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>%1 ms</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Nome do Cliente</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+23"/> <location line="+36"/> <location line="+23"/> <location line="+23"/> <location line="+491"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <location line="+23"/> <source>N/A</source> <translation>N/D</translation> </message> <message> <location line="-1062"/> <source>Client version</source> <translation>Versão do Cliente</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Informação</translation> </message> <message> <location line="-10"/> <source>Money - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Money Core</source> <translation type="unfinished"/> </message> <message> <location line="+53"/> <source>Using OpenSSL version</source> <translation>Usando versão OpenSSL</translation> </message> <message> <location line="+26"/> <source>Using BerkeleyDB version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Tempo de início</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Rede</translation> </message> <message> <location line="+7"/> <source>Name</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Number of connections</source> <translation>Número de ligações</translation> </message> <message> <location line="+157"/> <source>Show the Money help message to get a list with possible Money command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+99"/> <source>&amp;Network Traffic</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Clear</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Totals</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <location filename="../rpcconsole.cpp" line="+396"/> <source>In:</source> <translation type="unfinished"/> </message> <message> <location line="+80"/> <location filename="../rpcconsole.cpp" line="+1"/> <source>Out:</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>&amp;Peers</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <location filename="../rpcconsole.cpp" line="-167"/> <location line="+328"/> <source>Select a peer to view detailed information.</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Peer ID</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Direction</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Version</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>User Agent</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Services</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Starting Height</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Sync Height</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Ban Score</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Connection Time</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last Send</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last Receive</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Bytes Sent</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Bytes Received</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Ping Time</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Time Offset</source> <translation type="unfinished"/> </message> <message> <location line="-866"/> <source>Block chain</source> <translation>Cadeia de blocos</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Número actual de blocos</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Total estimado de blocos</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Tempo do último bloco</translation> </message> <message> <location line="+49"/> <source>Open the Money debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Open</source> <translation>&amp;Abrir</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;Consola</translation> </message> <message> <location line="-266"/> <source>Build date</source> <translation>Data de construção</translation> </message> <message> <location line="+206"/> <source>Debug log file</source> <translation>Ficheiro de registo de depuração</translation> </message> <message> <location line="+109"/> <source>Clear console</source> <translation>Limpar consola</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-197"/> <source>Welcome to the Money Core RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Use as setas para cima e para baixo para navegar no histórico e &lt;b&gt;Ctrl-L&lt;/b&gt; para limpar o ecrã.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Digite &lt;b&gt;help&lt;/b&gt; para visualizar os comandos disponíveis.</translation> </message> <message> <location line="+233"/> <source>via %1</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+1"/> <source>never</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Inbound</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Outbound</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Unknown</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <location line="+1"/> <source>Fetching...</source> <translation type="unfinished"/> </message> </context> <context> <name>MoneyBridge</name> <message> <location filename="../moneybridge.cpp" line="+410"/> <source>Incoming Message</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location line="+58"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>&lt;b&gt;%1&lt;/b&gt; to MONEY %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>&lt;b&gt;%1&lt;/b&gt; MONEY, ring size %2 to MONEY %3 (%4)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>&lt;b&gt;%1&lt;/b&gt; MONEY, ring size %2 to MONEY %3 (%4)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <location line="+10"/> <location line="+12"/> <location line="+8"/> <source>Error:</source> <translation type="unfinished"/> </message> <message> <location line="-30"/> <source>Unknown txn type detected %1.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Input types must match for all recipients.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Ring sizes must match for all recipients.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Ring size outside range [%1, %2].</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <location line="+9"/> <source>Confirm send coins</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <source>Are you sure you want to send? Ring size of one is not anonymous, and harms the network.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+9"/> <source> and </source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you want to send %1?</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <location line="+25"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation type="unfinished"/> </message> <message> <location line="-95"/> <source>The change address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <location line="+376"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="-371"/> <source>The amount to pay must be larger than 0.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <location line="+365"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="-360"/> <source>Error: Transaction creation failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Narration is too long.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Ring Size Error.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Input Type Error.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Must be in full mode to send anon.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Invalid Stealth Address.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your money balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error generating transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error generating transaction: %1</source> <translation type="unfinished"/> </message> <message> <location line="+304"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <source>Send Message</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>The message can&apos;t be empty.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Error: Message creation failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The message was rejected.</source> <translation type="unfinished"/> </message> <message> <location line="+98"/> <source>Sanity Error!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: a sanity check prevented the transfer of a non-group private key, please close your wallet and report this error to the development team as soon as possible.</source> <translation type="unfinished"/> </message> <message> <location filename="../bridgetranslations.h" line="+8"/> <source>Overview</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Receive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transactions</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Chat</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Notifications</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet Management</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Add New Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Import Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Advanced</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Backup</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Encrypt Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Change Passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>(Un)lock Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Tools</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Chain Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Block Explorer</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Debug</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>About Money</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>About QT</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>QR code</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Address:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Label:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Narration:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>MONEY</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>mMONEY</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>µMONEY</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Moneyshi</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Add new receive address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Add Address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Add a new contact</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Address Lookup</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Address Type</source> <translation type="unfinished"/> </message> <message> <location line="-6"/> <source>Normal</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Stealth</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Group</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>BIP32</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Public Key</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction Hash</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Recent Transactions</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Market</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Advanced Options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Coin Control</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Make payment</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Balance transfer</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Select Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Automatically selected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>LowOutput:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Change:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Custom change address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>From account</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>PUBLIC</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>PRIVATE</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Balance:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Ring Size:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>To account</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Pay to</source> <translation type="unfinished"/> </message> <message> <source>(no label)</source> <translation type="unfinished"/> </message> <message> <location line="+135"/> <source>Tor connection offline</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>i2p connection offline</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet is encrypted and currently locked</source> <translation type="unfinished"/> </message> <message> <source>Not staking because wallet is locked</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Wallet is syncing</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open chat list</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter a label for this address to add it to your address book</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter a address to add it to your address book</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Values</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Outputs</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter a MoneyCash address to sign the message with (e.g. SaKYqfD8J3vw4RTnqtgk2K9B67CBaL3mhV)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter the message you want to sign</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Click sign message to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy the signed message signature</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter a MoneyCash address to verify the message with (e.g. SaKYqfD8J3vw4RTnqtgk2K9B67CBaL3mhV)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter the message you want to verify</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter a MoneyCash signature</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Paste signature from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Your total balance</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Balances overview</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Recent in/out transactions or stakes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Select inputs to spend</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Optional address to receive transaction change</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Choose from address book</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Remove this recipient</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Current spendable send payment balance</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Current spendable balance to account</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>The address to transfer the balance to</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>The label for this address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Amount to transfer</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send to multiple recipients at once</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Double click to edit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date and time that the transaction was received.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Destination address of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Short payment note.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Amount removed from or added to balance.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>The address to send the payment to (e.g. SXywGBZBowrppUwwNUo1GCRDTibzJi7g2M)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Choose address from address book</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter a public key for the address above</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter a label for this group</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Name for this Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter a password</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Would you like to create a bip44 path?</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Your recovery phrase (Keep this safe!)</source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>Recovery Phrase</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>Make Default</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Activate/Deactivate</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set as Master</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Not staking because wallet is offline</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>0 active connections to MoneyCoin network</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>The address to send the payment to</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter a label for this address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter a short note to send with payment (max 24 characters)</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Wallet Name for recovered account</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter the password for the wallet you are trying to recover</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Is this a bip44 path?</source> <translation type="unfinished"/> </message> <message> <location line="-66"/> <source>ID</source> <translation type="unfinished"/> </message> <message> <location line="-122"/> <source>Narration</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Default Stealth Address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Add Recipient</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Clear All</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Suggest Ring Size</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send Payment</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>RECEIVE</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Filter by type..</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>New Address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy Address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>TRANSACTIONS</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>ADDRESSBOOK</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Delete</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start Private Conversation</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Name:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Public Key:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start Conversation</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Choose identity</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Identity:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start Group Conversation</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Group name:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Create Group</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invite others</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Search</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invite others to group</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invite to Group</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invite</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>GROUP</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>BOOK</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start private conversation</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start group conversation</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>CHAT</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Leave Group</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>CHAIN DATA</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Coin Value</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Owned (Mature)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>System (Mature)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Spends</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Least Depth</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>BLOCK EXPLORER</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Refresh</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Hash</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Height</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Value Out</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>OPTIONS</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Main</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Display</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>I2P</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Tor</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start Money on system login</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Detach databases at shutdown</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Pay transaction fee:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Most transactions are 1kB. Fee 0.01 recommended.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enable Staking</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Reserve:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Reserved amount does not participate in staking and is therefore spendable at any time.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Minimum Stake Interval</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Minimum Ring size:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum Ring size:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Automatically select ring size</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enable Secure messaging</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Thin Mode (Requires Restart)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Thin Full Index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Thin Index Window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Map port using UPnP</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Details</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Proxy IP:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Port:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>SOCKS Version:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Minimize to the tray instead of the taskbar</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Minimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>User Interface language:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rows per page:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Display addresses in transaction list</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Notifications:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Visible Transaction Types:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>I2P (coming soon)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>TOR (coming soon)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cancel</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Apply</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Ok</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Lets create a New Wallet and Account to get you started!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet Name</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Password</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Add an optional Password to secure the Recovery Phrase (shown on next page)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Would you like to create a Multi-Account HD Key? (BIP44)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Language</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>English</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>French</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Japanese</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Spanish</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Chinese (Simplified)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Chinese (Traditional)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Next Step</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Write your Wallet Recovery Phrase</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Important!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>You need the Wallet Recovery Phrase to restore this wallet. Write it down and keep them somewhere safe. You will be asked to confirm the Wallet Recovery Phrase in the next screen to ensure you have written it down correctly</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Back</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Please confirm your Wallet Recovery Phrase</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Congratulations! You have successfully created a New Wallet and Account</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>You can now use your Account to send and receive funds :) Remember to keep your Wallet Recovery Phrase and Password (if set) safe in case you ever need to recover your wallet</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Lets import your Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>The Wallet Recovery Phrase could require a password to be imported</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Is this a Multi-Account HD Key (BIP44)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Recovery Phrase (Usually 24 words)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Congratulations! You have successfully imported your Wallet from your Recovery Phrase</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>You can now use your Account to send and receive funds :) Remember to keep your Wallet Recovery Phrase and Password safe in case you ever need to recover your wallet again!</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Accounts</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Name</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Created</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Active Account</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Default</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet Keys</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Path</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Active</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Master</source> <translation type="unfinished"/> </message> </context> <context> <name>MoneyGUI</name> <message> <location filename="../money.cpp" line="+111"/> <source>A fatal error occurred. Money can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> <message> <location filename="../moneygui.cpp" line="+89"/> <location line="+178"/> <source>MoneyClient</source> <translation type="unfinished"/> </message> <message> <location line="-178"/> <source>Client</source> <translation type="unfinished"/> </message> <message> <location line="+90"/> <source>E&amp;xit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Quit application</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;About MoneyCoin</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about MoneyCoin</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Modify configuration options for MoneyCoin</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Encrypt Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Encrypt or decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Backup Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Change Passphrase...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Change the passphrase used for wallet encryption</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Unlock Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Unlock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>&amp;File</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>&amp;Settings</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <location line="+9"/> <source>[testnet]</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+74"/> <source>MoneyClient client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+63"/> <source>%n active connection(s) to MoneyCoin network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+18"/> <source>block</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>header</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>blocks</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>headers</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <location line="+22"/> <source>Synchronizing with network...</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Downloading filtered blocks...</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>~%1 filtered block(s) remaining (%2% done).</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Importing blocks...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+5"/> <source>~%n block(s) remaining</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+13"/> <location line="+4"/> <source>Imported</source> <translation type="unfinished"/> </message> <message> <location line="-4"/> <location line="+4"/> <source>Downloaded</source> <translation type="unfinished"/> </message> <message> <location line="-3"/> <source>%1 of %2 %3 of transaction history (%4% done).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>%1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+23"/> <source>%n second(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+3"/> <source>%n day(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+7"/> <source>Up to date</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Catching up...</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Last received %1 was generated %2.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Sent transaction</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <location line="+15"/> <source>Incoming Message</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date: %1 From Address: %2 To Address: %3 Message: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <location line="+23"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid MoneyCoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt; for staking and messaging only.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt; for messaging only.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt; for staking only.</source> <translation type="unfinished"/> </message> <message> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt; for staking only</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="+33"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Lock Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Wallet must first be encrypted to be locked.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+69"/> <source>%n second(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+1"/> <source>%n minute(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+1"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+1"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+9"/> <source>Staking. Your weight is %1 Network weight is %2 Expected time to earn reward is %3</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Not staking because wallet is in thin mode</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Not staking, staking is disabled</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Not staking because wallet is locked</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Not staking because wallet is offline</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Not staking because wallet is syncing</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Not staking because you don&apos;t have mature coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Not staking</source> <translation type="unfinished"/> </message> <message> <location filename="../transactionrecord.cpp" line="+23"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Received from</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Received money</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Sent money</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Other</source> <translation type="unfinished"/> </message> </context> <context> <name>TrafficGraphWidget</name> <message> <location filename="../trafficgraphwidget.cpp" line="+79"/> <source>KB/s</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>Aberto até %1</translation> </message> <message numerus="yes"> <location line="-2"/> <source>Open for %n block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+7"/> <source>conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/offline</source> <translation>%1/desligado</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/não confirmada</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 confirmações</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Estado</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, transmitida através de %n nó</numerusform><numerusform>, transmitida através de %n nós</numerusform></translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Origem</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Gerado</translation> </message> <message> <location line="+5"/> <location line="+17"/> <location line="+20"/> <source>From</source> <translation>De</translation> </message> <message> <location line="-19"/> <location line="+20"/> <location line="+23"/> <location line="+57"/> <source>To</source> <translation>Para</translation> </message> <message> <location line="-96"/> <location line="+2"/> <location line="+18"/> <location line="+2"/> <source>own address</source> <translation>endereço próprio</translation> </message> <message> <location line="-22"/> <location line="+20"/> <source>label</source> <translation>rótulo</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+44"/> <location line="+20"/> <location line="+40"/> <source>Credit</source> <translation>Crédito</translation> </message> <message numerus="yes"> <location line="-114"/> <source>matures in %n more block(s)</source> <translation><numerusform>matura daqui por %n bloco</numerusform><numerusform>matura daqui por %n blocos</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>não aceite</translation> </message> <message> <location line="+43"/> <location line="+8"/> <location line="+16"/> <location line="+42"/> <source>Debit</source> <translation>Débito</translation> </message> <message> <location line="-52"/> <source>Transaction fee</source> <translation>Taxa de transação</translation> </message> <message> <location line="+19"/> <source>Net amount</source> <translation>Valor líquido</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Mensagem</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Comentário</translation> </message> <message> <location line="+12"/> <source>Transaction ID</source> <translation>ID da Transação</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>Informação de depuração</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Transação</translation> </message> <message> <location line="+5"/> <source>Inputs</source> <translation>Entradas</translation> </message> <message> <location line="+44"/> <source>Amount</source> <translation>Quantia</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>verdadeiro</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>falso</translation> </message> <message> <location line="-266"/> <source>, has not been successfully broadcast yet</source> <translation>, ainda não foi transmitida com sucesso</translation> </message> <message> <location line="+36"/> <location line="+20"/> <source>unknown</source> <translation>desconhecido</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Detalhes da transação</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Esta janela mostra uma descrição detalhada da transação</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+217"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Tipo</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Endereço</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Quantia</translation> </message> <message> <location line="+54"/> <source>Open until %1</source> <translation>Aberto até %1</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation>Confirmada (%1 confirmações)</translation> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation><numerusform>Aberta por mais %n bloco</numerusform><numerusform>Aberta por mais %n blocos</numerusform></translation> </message> <message> <location line="-51"/> <source>Narration</source> <translation type="unfinished"/> </message> <message> <location line="+57"/> <source>Offline</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Este bloco não foi recebido por outros nós e provavelmente não será aceite pela rede!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Gerado mas não aceite</translation> </message> <message> <location line="+49"/> <source>(n/a)</source> <translation>(n/d)</translation> </message> <message> <location line="+202"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Estado da transação. Pairar por cima deste campo para mostrar o número de confirmações.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Data e hora a que esta transação foi recebida.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Tipo de transação.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Endereço de destino da transação.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Quantia retirada ou adicionada ao saldo.</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+393"/> <location line="+246"/> <source>Sending...</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+33"/> <source>MoneyCoin version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Usage:</source> <translation>Utilização:</translation> </message> <message> <location line="+1"/> <source>Send command to -server or moneycoind</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>List commands</source> <translation>Listar comandos</translation> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation>Obter ajuda para um comando</translation> </message> <message> <location line="+2"/> <source>Options:</source> <translation>Opções:</translation> </message> <message> <location line="+2"/> <source>Specify configuration file (default: moneycoin.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify pid file (default: moneycoind.pid)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify wallet file (within data directory)</source> <translation>Especifique ficheiro de carteira (dentro da pasta de dados)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Especificar pasta de dados</translation> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Definir o tamanho da cache de base de dados em megabytes (por defeito: 25)</translation> </message> <message> <location line="+1"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Listen for connections on &lt;port&gt; (default: 51737 or testnet: 51997)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Manter no máximo &lt;n&gt; ligações a outros nós da rede (por defeito: 125)</translation> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Ligar a um nó para recuperar endereços de pares, e desligar</translation> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation>Especifique o seu endereço público</translation> </message> <message> <location line="+5"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Stake your coins to support network and gain reward (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Tolerância para desligar nós mal-formados (por defeito: 100)</translation> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Número de segundos a impedir que nós mal-formados se liguem de novo (por defeito: 86400)</translation> </message> <message> <location line="-44"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>Ocorreu um erro ao definir a porta %u do serviço RPC a escutar em IPv4: %s</translation> </message> <message> <location line="+51"/> <source>Detach block and address databases. Increases shutdown time (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+109"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 51736 or testnet: 51996)</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>Accept command line and JSON-RPC commands</source> <translation>Aceitar comandos da consola e JSON-RPC</translation> </message> <message> <location line="+101"/> <source>Error: Transaction creation failed </source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: Wallet locked, unable to create transaction </source> <translation type="unfinished"/> </message> <message> <location line="-8"/> <source>Importing blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Importing bootstrap blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="-88"/> <source>Run in the background as a daemon and accept commands</source> <translation>Correr o processo como um daemon e aceitar comandos</translation> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation>Utilizar a rede de testes - testnet</translation> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Aceitar ligações externas (padrão: 1 sem -proxy ou -connect)</translation> </message> <message> <location line="-38"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation>Ocorreu um erro ao definir a porta %u do serviço RPC a escutar em IPv6, a usar IPv4: %s</translation> </message> <message> <location line="+117"/> <source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Atenção: -paytxfee está definida com um valor muito alto! Esta é a taxa que irá pagar se enviar uma transação.</translation> </message> <message> <location line="+61"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong MoneyCoin will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Atenção: erro ao ler wallet.dat! Todas as chaves foram lidas correctamente, mas dados de transação ou do livro de endereços podem estar em falta ou incorrectos.</translation> </message> <message> <location line="-18"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation>Atenção: wallet.dat corrupto, dados recuperados! wallet.dat original salvo como wallet.{timestamp}.bak em %s; se o seu saldo ou transações estiverem incorrectos deverá recuperar de uma cópia de segurança.</translation> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Tentar recuperar chaves privadas de um wallet.dat corrupto</translation> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation>Opções de criação de bloco:</translation> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation>Apenas ligar ao(s) nó(s) especificado(s)</translation> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Descobrir endereço IP próprio (padrão: 1 ao escutar e sem -externalip)</translation> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Falhou a escutar em qualquer porta. Use -listen=0 se quer isto.</translation> </message> <message> <location line="-90"/> <source>Find peers using DNS lookup (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync checkpoints policy (default: strict)</source> <translation type="unfinished"/> </message> <message> <location line="+83"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-82"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Armazenamento intermédio de recepção por ligação, &lt;n&gt;*1000 bytes (por defeito: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Armazenamento intermédio de envio por ligação, &lt;n&gt;*1000 bytes (por defeito: 1000)</translation> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>Apenas ligar a nós na rede &lt;net&gt; (IPv4, IPv6 ou Tor)</translation> </message> <message> <location line="+28"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation>Opções SSL: (ver a Wiki Bitcoin para instruções de configuração SSL)</translation> </message> <message> <location line="-74"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Enviar informação de rastreio/depuração para a consola e não para o ficheiro debug.log</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Definir tamanho minímo de um bloco em bytes (por defeito: 0)</translation> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Encolher ficheiro debug.log ao iniciar o cliente (por defeito: 1 sem -debug definido)</translation> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Especificar tempo de espera da ligação em millisegundos (por defeito: 5000)</translation> </message> <message> <location line="+109"/> <source>Unable to sign checkpoint, wrong checkpointkey? </source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>Usar UPnP para mapear a porta de escuta (padrão: 0)</translation> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Usar UPnP para mapear a porta de escuta (padrão: 1 ao escutar)</translation> </message> <message> <location line="-25"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Username for JSON-RPC connections</source> <translation>Nome de utilizador para ligações JSON-RPC</translation> </message> <message> <location line="+47"/> <source>Verifying database integrity...</source> <translation type="unfinished"/> </message> <message> <location line="+57"/> <source>WARNING: syncronized checkpoint violation detected, but skipped!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Atenção: Esta versão está obsoleta, é necessário actualizar!</translation> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat corrupta, recuperação falhou</translation> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation>Palavra-passe para ligações JSON-RPC</translation> </message> <message> <location line="-84"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=moneycoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;MoneyCoin Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Find peers using internet relay chat (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Permitir ligações JSON-RPC do endereço IP especificado</translation> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Enviar comandos para o nó a correr em &lt;ip&gt; (por defeito: 127.0.0.1)</translation> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Executar comando quando mudar o melhor bloco (no comando, %s é substituído pela hash do bloco)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Executar comando quando uma das transações na carteira mudar (no comando, %s é substituído pelo ID da Transação)</translation> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Upgrade wallet to latest format</source> <translation>Atualize a carteira para o formato mais recente</translation> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Definir o tamanho da memória de chaves para &lt;n&gt; (por defeito: 100)</translation> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Reexaminar a cadeia de blocos para transações em falta na carteira</translation> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Imports blocks from external blk000?.dat file</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Usar OpenSSL (https) para ligações JSON-RPC</translation> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation>Ficheiro de certificado do servidor (por defeito: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Chave privada do servidor (por defeito: server.pem)</translation> </message> <message> <location line="+1"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+53"/> <source>Error: Wallet unlocked for staking only, unable to create transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source> <translation type="unfinished"/> </message> <message> <location line="-158"/> <source>This help message</source> <translation>Esta mensagem de ajuda</translation> </message> <message> <location line="+95"/> <source>Wallet %s resides outside data directory %s.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot obtain a lock on data directory %s. MoneyCoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-98"/> <source>MoneyCoin</source> <translation type="unfinished"/> </message> <message> <location line="+140"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Incapaz de vincular a %s neste computador (vínculo retornou erro %d, %s)</translation> </message> <message> <location line="-130"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Permitir procuras DNS para -addnode, -seednode e -connect</translation> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation>Carregar endereços...</translation> </message> <message> <location line="-15"/> <source>Error loading blkindex.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Erro ao carregar wallet.dat: Carteira danificada</translation> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of MoneyCoin</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart MoneyCoin to complete</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation>Erro ao carregar wallet.dat</translation> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Endereço -proxy inválido: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>Rede desconhecida especificada em -onlynet: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>Versão desconhecida de proxy -socks requisitada: %i</translation> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Não conseguiu resolver endereço -bind: &apos;%s&apos;</translation> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Não conseguiu resolver endereço -externalip: &apos;%s&apos;</translation> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Quantia inválida para -paytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Error: could not start node</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sending...</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Invalid amount</source> <translation>Quantia inválida</translation> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation>Fundos insuficientes</translation> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation>Carregar índice de blocos...</translation> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Adicione um nó ao qual se ligar e tentar manter a ligação aberta</translation> </message> <message> <location line="+122"/> <source>Unable to bind to %s on this computer. MoneyCoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-97"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+55"/> <source>Invalid amount for -mininput=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Loading wallet...</source> <translation>Carregar carteira...</translation> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation>Impossível mudar a carteira para uma versão anterior</translation> </message> <message> <location line="+1"/> <source>Cannot initialize keypool</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot write default address</source> <translation>Impossível escrever endereço por defeito</translation> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation>Reexaminando...</translation> </message> <message> <location line="+5"/> <source>Done loading</source> <translation>Carregamento completo</translation> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation>Para usar a opção %s</translation> </message> <message> <location line="+14"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location line="+6"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Deverá definir rpcpassword=&lt;password&gt; no ficheiro de configuração: %s Se o ficheiro não existir, crie-o com permissões de leitura apenas para o dono.</translation> </message> </context> </TS>
pcoindev/moneycoin
src/qt/locale/moneyclient_pt_PT.ts
TypeScript
mit
135,115
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Collections; namespace ToolBelt { public class DuplicateItemException : Exception { public DuplicateItemException() { } } public class ParsedPathList : IList<ParsedPath> { private List<ParsedPath> paths; public ParsedPathList() { paths = new List<ParsedPath>(); } public ParsedPathList(string pathList, PathType pathType) { string[] splitPaths = pathList.Split(Path.PathSeparator); paths = new List<ParsedPath>(); foreach (string splitPath in splitPaths) paths.Add(new ParsedPath(splitPath, pathType)); } public ParsedPathList(IEnumerable<ParsedPath> otherPaths) { this.paths = new List<ParsedPath>(); foreach (var path in otherPaths) this.paths.Add(path); } public ParsedPathList(IList<string> pathList, PathType pathType) { paths = new List<ParsedPath>(); foreach (string path in pathList) paths.Add(new ParsedPath(path, pathType)); } #region IList<ParsedPath> Members public int IndexOf(ParsedPath item) { for (int i = 0; i < paths.Count; i++) { if (paths[i] == item) return i; } return -1; } public void Insert(int index, ParsedPath item) { // Ensure that the path is not already in the list if (IndexOf(item) != -1) throw new DuplicateItemException(); paths.Insert(index, item); } public void RemoveAt(int index) { paths.RemoveAt(index); } public ParsedPath this[int index] { get { return paths[index]; } set { if (Contains(value)) throw new DuplicateItemException(); paths[index] = value; } } #endregion #region ICollection<ParsedPath> Members public void Add(ParsedPath item) { if (Contains(item)) return; paths.Add(item); } public void Clear() { paths.Clear(); } public bool Contains(ParsedPath item) { return (IndexOf(item) != -1); } public void CopyTo(ParsedPath[] array, int arrayIndex) { throw new NotImplementedException(); } public int Count { get { return paths.Count; } } public bool IsReadOnly { get { return false; } } public bool Remove(ParsedPath item) { return paths.Remove(item); } #endregion #region IEnumerable<ParsedPath> Members public IEnumerator<ParsedPath> GetEnumerator() { return paths.GetEnumerator(); } #endregion #region IEnumerable Members IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable)paths).GetEnumerator(); } #endregion public override string ToString() { List<string> stringPaths = new List<string>(paths.Count); foreach (ParsedPath path in paths) stringPaths.Add(path.ToString()); return StringUtility.Join(";", stringPaths); } public static implicit operator string(ParsedPathList pathList) { return pathList.ToString(); } } }
jlyonsmith/ToolBelt
ToolBelt/IO/ParsedPathList.cs
C#
mit
3,853
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Reflection; using System.Runtime.Serialization; using System.Web.Http; using System.Web.Http.Description; using System.Xml.Serialization; using Newtonsoft.Json; namespace DecisionsCoreProxy.Areas.HelpPage.ModelDescriptions { /// <summary> /// Generates model descriptions for given types. /// </summary> public class ModelDescriptionGenerator { // Modify this to support more data annotation attributes. private readonly IDictionary<Type, Func<object, string>> AnnotationTextGenerator = new Dictionary<Type, Func<object, string>> { { typeof(RequiredAttribute), a => "Required" }, { typeof(RangeAttribute), a => { RangeAttribute range = (RangeAttribute)a; return String.Format(CultureInfo.CurrentCulture, "Range: inclusive between {0} and {1}", range.Minimum, range.Maximum); } }, { typeof(MaxLengthAttribute), a => { MaxLengthAttribute maxLength = (MaxLengthAttribute)a; return String.Format(CultureInfo.CurrentCulture, "Max length: {0}", maxLength.Length); } }, { typeof(MinLengthAttribute), a => { MinLengthAttribute minLength = (MinLengthAttribute)a; return String.Format(CultureInfo.CurrentCulture, "Min length: {0}", minLength.Length); } }, { typeof(StringLengthAttribute), a => { StringLengthAttribute strLength = (StringLengthAttribute)a; return String.Format(CultureInfo.CurrentCulture, "String length: inclusive between {0} and {1}", strLength.MinimumLength, strLength.MaximumLength); } }, { typeof(DataTypeAttribute), a => { DataTypeAttribute dataType = (DataTypeAttribute)a; return String.Format(CultureInfo.CurrentCulture, "Data type: {0}", dataType.CustomDataType ?? dataType.DataType.ToString()); } }, { typeof(RegularExpressionAttribute), a => { RegularExpressionAttribute regularExpression = (RegularExpressionAttribute)a; return String.Format(CultureInfo.CurrentCulture, "Matching regular expression pattern: {0}", regularExpression.Pattern); } }, }; // Modify this to add more default documentations. private readonly IDictionary<Type, string> DefaultTypeDocumentation = new Dictionary<Type, string> { { typeof(Int16), "integer" }, { typeof(Int32), "integer" }, { typeof(Int64), "integer" }, { typeof(UInt16), "unsigned integer" }, { typeof(UInt32), "unsigned integer" }, { typeof(UInt64), "unsigned integer" }, { typeof(Byte), "byte" }, { typeof(Char), "character" }, { typeof(SByte), "signed byte" }, { typeof(Uri), "URI" }, { typeof(Single), "decimal number" }, { typeof(Double), "decimal number" }, { typeof(Decimal), "decimal number" }, { typeof(String), "string" }, { typeof(Guid), "globally unique identifier" }, { typeof(TimeSpan), "time interval" }, { typeof(DateTime), "date" }, { typeof(DateTimeOffset), "date" }, { typeof(Boolean), "boolean" }, }; private Lazy<IModelDocumentationProvider> _documentationProvider; public ModelDescriptionGenerator(HttpConfiguration config) { if (config == null) { throw new ArgumentNullException("config"); } _documentationProvider = new Lazy<IModelDocumentationProvider>(() => config.Services.GetDocumentationProvider() as IModelDocumentationProvider); GeneratedModels = new Dictionary<string, ModelDescription>(StringComparer.OrdinalIgnoreCase); } public Dictionary<string, ModelDescription> GeneratedModels { get; private set; } private IModelDocumentationProvider DocumentationProvider { get { return _documentationProvider.Value; } } public ModelDescription GetOrCreateModelDescription(Type modelType) { if (modelType == null) { throw new ArgumentNullException("modelType"); } Type underlyingType = Nullable.GetUnderlyingType(modelType); if (underlyingType != null) { modelType = underlyingType; } ModelDescription modelDescription; string modelName = ModelNameHelper.GetModelName(modelType); if (GeneratedModels.TryGetValue(modelName, out modelDescription)) { if (modelType != modelDescription.ModelType) { throw new InvalidOperationException( String.Format( CultureInfo.CurrentCulture, "A model description could not be created. Duplicate model name '{0}' was found for types '{1}' and '{2}'. " + "Use the [ModelName] attribute to change the model name for at least one of the types so that it has a unique name.", modelName, modelDescription.ModelType.FullName, modelType.FullName)); } return modelDescription; } if (DefaultTypeDocumentation.ContainsKey(modelType)) { return GenerateSimpleTypeModelDescription(modelType); } if (modelType.IsEnum) { return GenerateEnumTypeModelDescription(modelType); } if (modelType.IsGenericType) { Type[] genericArguments = modelType.GetGenericArguments(); if (genericArguments.Length == 1) { Type enumerableType = typeof(IEnumerable<>).MakeGenericType(genericArguments); if (enumerableType.IsAssignableFrom(modelType)) { return GenerateCollectionModelDescription(modelType, genericArguments[0]); } } if (genericArguments.Length == 2) { Type dictionaryType = typeof(IDictionary<,>).MakeGenericType(genericArguments); if (dictionaryType.IsAssignableFrom(modelType)) { return GenerateDictionaryModelDescription(modelType, genericArguments[0], genericArguments[1]); } Type keyValuePairType = typeof(KeyValuePair<,>).MakeGenericType(genericArguments); if (keyValuePairType.IsAssignableFrom(modelType)) { return GenerateKeyValuePairModelDescription(modelType, genericArguments[0], genericArguments[1]); } } } if (modelType.IsArray) { Type elementType = modelType.GetElementType(); return GenerateCollectionModelDescription(modelType, elementType); } if (modelType == typeof(NameValueCollection)) { return GenerateDictionaryModelDescription(modelType, typeof(string), typeof(string)); } if (typeof(IDictionary).IsAssignableFrom(modelType)) { return GenerateDictionaryModelDescription(modelType, typeof(object), typeof(object)); } if (typeof(IEnumerable).IsAssignableFrom(modelType)) { return GenerateCollectionModelDescription(modelType, typeof(object)); } return GenerateComplexTypeModelDescription(modelType); } // Change this to provide different name for the member. private static string GetMemberName(MemberInfo member, bool hasDataContractAttribute) { JsonPropertyAttribute jsonProperty = member.GetCustomAttribute<JsonPropertyAttribute>(); if (jsonProperty != null && !String.IsNullOrEmpty(jsonProperty.PropertyName)) { return jsonProperty.PropertyName; } if (hasDataContractAttribute) { DataMemberAttribute dataMember = member.GetCustomAttribute<DataMemberAttribute>(); if (dataMember != null && !String.IsNullOrEmpty(dataMember.Name)) { return dataMember.Name; } } return member.Name; } private static bool ShouldDisplayMember(MemberInfo member, bool hasDataContractAttribute) { JsonIgnoreAttribute jsonIgnore = member.GetCustomAttribute<JsonIgnoreAttribute>(); XmlIgnoreAttribute xmlIgnore = member.GetCustomAttribute<XmlIgnoreAttribute>(); IgnoreDataMemberAttribute ignoreDataMember = member.GetCustomAttribute<IgnoreDataMemberAttribute>(); NonSerializedAttribute nonSerialized = member.GetCustomAttribute<NonSerializedAttribute>(); ApiExplorerSettingsAttribute apiExplorerSetting = member.GetCustomAttribute<ApiExplorerSettingsAttribute>(); bool hasMemberAttribute = member.DeclaringType.IsEnum ? member.GetCustomAttribute<EnumMemberAttribute>() != null : member.GetCustomAttribute<DataMemberAttribute>() != null; // Display member only if all the followings are true: // no JsonIgnoreAttribute // no XmlIgnoreAttribute // no IgnoreDataMemberAttribute // no NonSerializedAttribute // no ApiExplorerSettingsAttribute with IgnoreApi set to true // no DataContractAttribute without DataMemberAttribute or EnumMemberAttribute return jsonIgnore == null && xmlIgnore == null && ignoreDataMember == null && nonSerialized == null && (apiExplorerSetting == null || !apiExplorerSetting.IgnoreApi) && (!hasDataContractAttribute || hasMemberAttribute); } private string CreateDefaultDocumentation(Type type) { string documentation; if (DefaultTypeDocumentation.TryGetValue(type, out documentation)) { return documentation; } if (DocumentationProvider != null) { documentation = DocumentationProvider.GetDocumentation(type); } return documentation; } private void GenerateAnnotations(MemberInfo property, ParameterDescription propertyModel) { List<ParameterAnnotation> annotations = new List<ParameterAnnotation>(); IEnumerable<Attribute> attributes = property.GetCustomAttributes(); foreach (Attribute attribute in attributes) { Func<object, string> textGenerator; if (AnnotationTextGenerator.TryGetValue(attribute.GetType(), out textGenerator)) { annotations.Add( new ParameterAnnotation { AnnotationAttribute = attribute, Documentation = textGenerator(attribute) }); } } // Rearrange the annotations annotations.Sort((x, y) => { // Special-case RequiredAttribute so that it shows up on top if (x.AnnotationAttribute is RequiredAttribute) { return -1; } if (y.AnnotationAttribute is RequiredAttribute) { return 1; } // Sort the rest based on alphabetic order of the documentation return String.Compare(x.Documentation, y.Documentation, StringComparison.OrdinalIgnoreCase); }); foreach (ParameterAnnotation annotation in annotations) { propertyModel.Annotations.Add(annotation); } } private CollectionModelDescription GenerateCollectionModelDescription(Type modelType, Type elementType) { ModelDescription collectionModelDescription = GetOrCreateModelDescription(elementType); if (collectionModelDescription != null) { return new CollectionModelDescription { Name = ModelNameHelper.GetModelName(modelType), ModelType = modelType, ElementDescription = collectionModelDescription }; } return null; } private ModelDescription GenerateComplexTypeModelDescription(Type modelType) { ComplexTypeModelDescription complexModelDescription = new ComplexTypeModelDescription { Name = ModelNameHelper.GetModelName(modelType), ModelType = modelType, Documentation = CreateDefaultDocumentation(modelType) }; GeneratedModels.Add(complexModelDescription.Name, complexModelDescription); bool hasDataContractAttribute = modelType.GetCustomAttribute<DataContractAttribute>() != null; PropertyInfo[] properties = modelType.GetProperties(BindingFlags.Public | BindingFlags.Instance); foreach (PropertyInfo property in properties) { if (ShouldDisplayMember(property, hasDataContractAttribute)) { ParameterDescription propertyModel = new ParameterDescription { Name = GetMemberName(property, hasDataContractAttribute) }; if (DocumentationProvider != null) { propertyModel.Documentation = DocumentationProvider.GetDocumentation(property); } GenerateAnnotations(property, propertyModel); complexModelDescription.Properties.Add(propertyModel); propertyModel.TypeDescription = GetOrCreateModelDescription(property.PropertyType); } } FieldInfo[] fields = modelType.GetFields(BindingFlags.Public | BindingFlags.Instance); foreach (FieldInfo field in fields) { if (ShouldDisplayMember(field, hasDataContractAttribute)) { ParameterDescription propertyModel = new ParameterDescription { Name = GetMemberName(field, hasDataContractAttribute) }; if (DocumentationProvider != null) { propertyModel.Documentation = DocumentationProvider.GetDocumentation(field); } complexModelDescription.Properties.Add(propertyModel); propertyModel.TypeDescription = GetOrCreateModelDescription(field.FieldType); } } return complexModelDescription; } private DictionaryModelDescription GenerateDictionaryModelDescription(Type modelType, Type keyType, Type valueType) { ModelDescription keyModelDescription = GetOrCreateModelDescription(keyType); ModelDescription valueModelDescription = GetOrCreateModelDescription(valueType); return new DictionaryModelDescription { Name = ModelNameHelper.GetModelName(modelType), ModelType = modelType, KeyModelDescription = keyModelDescription, ValueModelDescription = valueModelDescription }; } private EnumTypeModelDescription GenerateEnumTypeModelDescription(Type modelType) { EnumTypeModelDescription enumDescription = new EnumTypeModelDescription { Name = ModelNameHelper.GetModelName(modelType), ModelType = modelType, Documentation = CreateDefaultDocumentation(modelType) }; bool hasDataContractAttribute = modelType.GetCustomAttribute<DataContractAttribute>() != null; foreach (FieldInfo field in modelType.GetFields(BindingFlags.Public | BindingFlags.Static)) { if (ShouldDisplayMember(field, hasDataContractAttribute)) { EnumValueDescription enumValue = new EnumValueDescription { Name = field.Name, Value = field.GetRawConstantValue().ToString() }; if (DocumentationProvider != null) { enumValue.Documentation = DocumentationProvider.GetDocumentation(field); } enumDescription.Values.Add(enumValue); } } GeneratedModels.Add(enumDescription.Name, enumDescription); return enumDescription; } private KeyValuePairModelDescription GenerateKeyValuePairModelDescription(Type modelType, Type keyType, Type valueType) { ModelDescription keyModelDescription = GetOrCreateModelDescription(keyType); ModelDescription valueModelDescription = GetOrCreateModelDescription(valueType); return new KeyValuePairModelDescription { Name = ModelNameHelper.GetModelName(modelType), ModelType = modelType, KeyModelDescription = keyModelDescription, ValueModelDescription = valueModelDescription }; } private ModelDescription GenerateSimpleTypeModelDescription(Type modelType) { SimpleTypeModelDescription simpleModelDescription = new SimpleTypeModelDescription { Name = ModelNameHelper.GetModelName(modelType), ModelType = modelType, Documentation = CreateDefaultDocumentation(modelType) }; GeneratedModels.Add(simpleModelDescription.Name, simpleModelDescription); return simpleModelDescription; } } }
jawa-the-hutt/Decisions-CORS-Proxy
DecisionsCoreProxy/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs
C#
mit
19,091
#!/usr/bin/env ruby # Copyright (c) 2015 Phusion Holding B.V. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # This script uses GDB to attach to a process in order to dump the # backtraces of all its threads. ruby_libdir = ARGV.shift passenger_root = ARGV.shift require "#{ruby_libdir}/phusion_passenger" PhusionPassenger.locate_directories(passenger_root) PhusionPassenger.require_passenger_lib 'vendor/crash_watch/app' CrashWatch::App.new.run(ARGV)
clemensg/passenger
src/helper-scripts/crash-watch.rb
Ruby
mit
1,469
namespace HelixToolkit.Win8 { using System; using System.Diagnostics; using System.IO; using HelixToolkit.Win8.CommonDX; using SharpDX; using SharpDX.DXGI; using SharpDX.Direct3D; using SharpDX.Direct3D11; using SharpDX.IO; public class ExampleCube3D : Element3D { private SharpDX.Direct3D11.Buffer constantBuffer; private InputLayout layout; private VertexBufferBinding vertexBufferBinding; private Stopwatch clock; private VertexShader vertexShader; private PixelShader pixelShader; public ExampleCube3D() { this.Scale = 1.0f; this.ShowCube = true; this.EnableClear = true; this.RotationSpeed = 1; } public bool EnableClear { get; set; } public bool ShowCube { get; set; } public double Scale { get; set; } public double RotationSpeed { get; set; } public override void Render(TargetBase render) { base.Render(render); var context = render.DeviceManager.ContextDirect3D; var width = render.RenderTargetSize.Width; var height = render.RenderTargetSize.Height; // Prepare matrices var view = SharpDX.Matrix.LookAtLH(new Vector3(0, 0, -5), new Vector3(0, 0, 0), Vector3.UnitY); var proj = SharpDX.Matrix.PerspectiveFovLH((float)Math.PI / 4.0f, (float)(width / height), 0.1f, 100.0f); var viewProj = SharpDX.Matrix.Multiply(view, proj); var time = (float)(this.clock.ElapsedMilliseconds / 1000.0); // Set targets (This is mandatory in the loop) context.OutputMerger.SetTargets(render.DepthStencilView, render.RenderTargetView); // Clear the views context.ClearDepthStencilView(render.DepthStencilView, DepthStencilClearFlags.Depth, 1.0f, 0); if (this.EnableClear) { context.ClearRenderTargetView(render.RenderTargetView, Color.Black); } if (this.ShowCube) { // Calculate WorldViewProj var worldViewProj = SharpDX.Matrix.Scaling((float)this.Scale) * SharpDX.Matrix.RotationX((float)this.RotationSpeed * time) * SharpDX.Matrix.RotationY((float)this.RotationSpeed * time * 2.0f) * SharpDX.Matrix.RotationZ((float)this.RotationSpeed * time * .7f) * viewProj; worldViewProj.Transpose(); // Setup the pipeline context.InputAssembler.SetVertexBuffers(0, this.vertexBufferBinding); context.InputAssembler.InputLayout = this.layout; context.InputAssembler.PrimitiveTopology = PrimitiveTopology.TriangleList; context.VertexShader.SetConstantBuffer(0, this.constantBuffer); context.VertexShader.Set(this.vertexShader); context.PixelShader.Set(this.pixelShader); // Update Constant Buffer context.UpdateSubresource(ref worldViewProj, this.constantBuffer, 0); // Draw the cube context.Draw(36, 0); } } public override void Initialize(DeviceManager deviceManager) { base.Initialize(deviceManager); // Remove previous buffer if (this.constantBuffer != null) { this.constantBuffer.Dispose(); } // RemoveAndDispose(ref constantBuffer); // Setup local variables var d3dDevice = deviceManager.DeviceDirect3D; var d3dContext = deviceManager.ContextDirect3D; var path = Path.Combine(Windows.ApplicationModel.Package.Current.InstalledLocation.Path, "HelixToolkit.Win8"); // Loads vertex shader bytecode var vertexShaderByteCode = NativeFile.ReadAllBytes(path + "\\MiniCube_VS.fxo"); this.vertexShader = new VertexShader(d3dDevice, vertexShaderByteCode); // Loads pixel shader bytecode this.pixelShader = new PixelShader(d3dDevice, NativeFile.ReadAllBytes(path + "\\MiniCube_PS.fxo")); // Layout from VertexShader input signature this.layout = new InputLayout( d3dDevice, vertexShaderByteCode, new[] { new InputElement("POSITION", 0, Format.R32G32B32A32_Float, 0, 0), new InputElement("COLOR", 0, Format.R32G32B32A32_Float, 16, 0) }); // Instantiate Vertex buffer from vertex data var vertices = SharpDX.Direct3D11.Buffer.Create( d3dDevice, BindFlags.VertexBuffer, new[] { new Vector4(-1.0f, -1.0f, -1.0f, 1.0f), new Vector4(1.0f, 0.0f, 0.0f, 1.0f), // Front new Vector4(-1.0f, 1.0f, -1.0f, 1.0f), new Vector4(1.0f, 0.0f, 0.0f, 1.0f), new Vector4(1.0f, 1.0f, -1.0f, 1.0f), new Vector4(1.0f, 0.0f, 0.0f, 1.0f), new Vector4(-1.0f, -1.0f, -1.0f, 1.0f), new Vector4(1.0f, 0.0f, 0.0f, 1.0f), new Vector4(1.0f, 1.0f, -1.0f, 1.0f), new Vector4(1.0f, 0.0f, 0.0f, 1.0f), new Vector4(1.0f, -1.0f, -1.0f, 1.0f), new Vector4(1.0f, 0.0f, 0.0f, 1.0f), new Vector4(-1.0f, -1.0f, 1.0f, 1.0f), new Vector4(0.0f, 1.0f, 0.0f, 1.0f), // BACK new Vector4(1.0f, 1.0f, 1.0f, 1.0f), new Vector4(0.0f, 1.0f, 0.0f, 1.0f), new Vector4(-1.0f, 1.0f, 1.0f, 1.0f), new Vector4(0.0f, 1.0f, 0.0f, 1.0f), new Vector4(-1.0f, -1.0f, 1.0f, 1.0f), new Vector4(0.0f, 1.0f, 0.0f, 1.0f), new Vector4(1.0f, -1.0f, 1.0f, 1.0f), new Vector4(0.0f, 1.0f, 0.0f, 1.0f), new Vector4(1.0f, 1.0f, 1.0f, 1.0f), new Vector4(0.0f, 1.0f, 0.0f, 1.0f), new Vector4(-1.0f, 1.0f, -1.0f, 1.0f), new Vector4(0.0f, 0.0f, 1.0f, 1.0f), // Top new Vector4(-1.0f, 1.0f, 1.0f, 1.0f), new Vector4(0.0f, 0.0f, 1.0f, 1.0f), new Vector4(1.0f, 1.0f, 1.0f, 1.0f), new Vector4(0.0f, 0.0f, 1.0f, 1.0f), new Vector4(-1.0f, 1.0f, -1.0f, 1.0f), new Vector4(0.0f, 0.0f, 1.0f, 1.0f), new Vector4(1.0f, 1.0f, 1.0f, 1.0f), new Vector4(0.0f, 0.0f, 1.0f, 1.0f), new Vector4(1.0f, 1.0f, -1.0f, 1.0f), new Vector4(0.0f, 0.0f, 1.0f, 1.0f), new Vector4(-1.0f, -1.0f, -1.0f, 1.0f), new Vector4(1.0f, 1.0f, 0.0f, 1.0f), // Bottom new Vector4(1.0f, -1.0f, 1.0f, 1.0f), new Vector4(1.0f, 1.0f, 0.0f, 1.0f), new Vector4(-1.0f, -1.0f, 1.0f, 1.0f), new Vector4(1.0f, 1.0f, 0.0f, 1.0f), new Vector4(-1.0f, -1.0f, -1.0f, 1.0f), new Vector4(1.0f, 1.0f, 0.0f, 1.0f), new Vector4(1.0f, -1.0f, -1.0f, 1.0f), new Vector4(1.0f, 1.0f, 0.0f, 1.0f), new Vector4(1.0f, -1.0f, 1.0f, 1.0f), new Vector4(1.0f, 1.0f, 0.0f, 1.0f), new Vector4(-1.0f, -1.0f, -1.0f, 1.0f), new Vector4(1.0f, 0.0f, 1.0f, 1.0f), // Left new Vector4(-1.0f, -1.0f, 1.0f, 1.0f), new Vector4(1.0f, 0.0f, 1.0f, 1.0f), new Vector4(-1.0f, 1.0f, 1.0f, 1.0f), new Vector4(1.0f, 0.0f, 1.0f, 1.0f), new Vector4(-1.0f, -1.0f, -1.0f, 1.0f), new Vector4(1.0f, 0.0f, 1.0f, 1.0f), new Vector4(-1.0f, 1.0f, 1.0f, 1.0f), new Vector4(1.0f, 0.0f, 1.0f, 1.0f), new Vector4(-1.0f, 1.0f, -1.0f, 1.0f), new Vector4(1.0f, 0.0f, 1.0f, 1.0f), new Vector4(1.0f, -1.0f, -1.0f, 1.0f), new Vector4(0.0f, 1.0f, 1.0f, 1.0f), // Right new Vector4(1.0f, 1.0f, 1.0f, 1.0f), new Vector4(0.0f, 1.0f, 1.0f, 1.0f), new Vector4(1.0f, -1.0f, 1.0f, 1.0f), new Vector4(0.0f, 1.0f, 1.0f, 1.0f), new Vector4(1.0f, -1.0f, -1.0f, 1.0f), new Vector4(0.0f, 1.0f, 1.0f, 1.0f), new Vector4(1.0f, 1.0f, -1.0f, 1.0f), new Vector4(0.0f, 1.0f, 1.0f, 1.0f), new Vector4(1.0f, 1.0f, 1.0f, 1.0f), new Vector4(0.0f, 1.0f, 1.0f, 1.0f), }); this.vertexBufferBinding = new VertexBufferBinding(vertices, Utilities.SizeOf<Vector4>() * 2, 0); // Create Constant Buffer this.constantBuffer = new SharpDX.Direct3D11.Buffer( d3dDevice, Utilities.SizeOf<SharpDX.Matrix>(), ResourceUsage.Default, BindFlags.ConstantBuffer, CpuAccessFlags.None, ResourceOptionFlags.None, 0); this.clock = new Stopwatch(); this.clock.Start(); } } }
smallholexu/helix-toolkit
Source/HelixToolkit.Win8/Model/ExampleCube3D.cs
C#
mit
9,303
using System; using SDL2; namespace SDL2_CS_OO { public sealed class SDLAudioDevice : IDisposable { private uint myDeviceID; private SDL.SDL_AudioSpec myObtainedSpec; public SDLAudioDevice(ref SDL.SDL_AudioSpec Desired, out SDL.SDL_AudioSpec Obtained) { myDeviceID = SDL.SDL_OpenAudioDevice(null, 0, ref Desired, out Obtained, (int)SDL.SDL_AUDIO_ALLOW_ANY_CHANGE); CheckDeviceID(); myObtainedSpec = Obtained; } public SDLAudioDevice(ref SDL.SDL_AudioSpec Desired, out SDL.SDL_AudioSpec Obtained, int Allowed_Changes) { myDeviceID = SDL.SDL_OpenAudioDevice(null, 0, ref Desired, out Obtained, Allowed_Changes); CheckDeviceID(); myObtainedSpec = Obtained; } public SDLAudioDevice(string Device, bool Iscapture, ref SDL.SDL_AudioSpec Desired, out SDL.SDL_AudioSpec Obtained, int Allowed_Changes) { myDeviceID = SDL.SDL_OpenAudioDevice(Device, Convert.ToInt32(Iscapture), ref Desired, out Obtained, Allowed_Changes); CheckDeviceID(); myObtainedSpec = Obtained; } private void CheckDeviceID() { if(myDeviceID < 0u) throw new SDLErrorException(); } public uint DeviceID { get { return myDeviceID; } } public SDL.SDL_AudioSpec ObtainedSpec { get { return myObtainedSpec; } } public void Lock() { SDL.SDL_LockAudioDevice(myDeviceID); } public void Lock(Action<SDLAudioDevice> Action) { SDL.SDL_LockAudioDevice(myDeviceID); try { Action(this); } finally { SDL.SDL_UnlockAudioDevice(myDeviceID); } } public void UnLock() { SDL.SDL_UnlockAudioDevice(myDeviceID); } public void Play() { SDL.SDL_PauseAudioDevice(myDeviceID, 0); } public void Pause() { SDL.SDL_PauseAudioDevice(myDeviceID, 1); } ~SDLAudioDevice() { SDL.SDL_CloseAudioDevice(myDeviceID); } public void Dispose() { SDL.SDL_CloseAudioDevice(myDeviceID); GC.SuppressFinalize(this); } } }
coruscateor/SDL2-CS-OO
SDL2-CS-OO/SDLAudioDevice.cs
C#
mit
2,582
class AddAttachsToSenders < ActiveRecord::Migration def change add_column :senders, :attachs, :json end end
olenberg/sement
db/migrate/20160224045635_add_attachs_to_senders.rb
Ruby
mit
116
<?php /** * Class Sheep_Debug_Model_Service * * @category Sheep * @package Sheep_Debug * @license Copyright: Pirate Sheep, 2016 * @link https://piratesheep.com */ class Sheep_Debug_Model_Service { /** * Return's Magento base design directory * * @return string */ public function getBaseDir() { return Mage::getBaseDir(); } /** * Returns Magento's configuration model * * @return Mage_Core_Model_Config */ protected function getConfig() { return Mage::getConfig(); } /** * Returns Magento's cache model * * @return Mage_Core_Model_Cache */ protected function getCacheInstance() { return Mage::app()->getCacheInstance(); } /** * Loads specified XML file * * @param $filepath * @return SimpleXMLElement */ protected function loadXmlFile($filepath) { return simplexml_load_file($filepath); } /** * Saves specified SimpleXMLElement * * @param SimpleXMLElement $xml * @param string $filepath * @return bool */ public function saveXml($xml, $filepath) { return $xml->saveXML($filepath); } /** * Flushes cache instance. */ public function flushCache() { $this->getCacheInstance()->flush(); } /** * Returns module configuration file * * @param $moduleName * @return string * @throws Exception */ public function getModuleConfigFilePath($moduleName) { $config = $this->getConfig(); $moduleConfig = $config->getModuleConfig($moduleName); if (!$moduleConfig) { throw new Exception("Unable to find module '{$moduleName}'"); } return $config->getOptions()->getEtcDir() . DS . 'modules' . DS . $moduleName . '.xml'; } /** * Sets active status for specified module * * @param string $moduleName * @param bool $isActive * @throws Exception */ public function setModuleStatus($moduleName, $isActive) { $moduleConfigFile = $this->getModuleConfigFilePath($moduleName); $configXml = $this->loadXmlFile($moduleConfigFile); if ($configXml === false) { throw new Exception("Unable to parse module configuration file {$moduleConfigFile}"); } $configXml->modules->{$moduleName}->active = $isActive ? 'true' : 'false'; // save if ($this->saveXml($configXml, $moduleConfigFile) === false) { throw new Exception("Unable to save module configuration file {$moduleConfigFile}. Check to see if web server user has write permissions."); } } /** * Returns absolute path for local.xml * * @return string */ public function getLocalXmlFilePath() { return Mage::getBaseDir('etc') . DS . 'local.xml'; } /** * Changes status for SQL profiler * * @param bool $isEnabled * @throws Exception */ public function setSqlProfilerStatus($isEnabled) { $filePath = $this->getLocalXmlFilePath(); $xml = $this->loadXmlFile($filePath); if ($xml === false) { throw new Exception("Unable to parse local.xml configuration file: {$filePath}"); } /** @var SimpleXMLElement $connectionNode */ $connectionNode = $xml->global->resources->default_setup->connection; if ($isEnabled) { /** @noinspection PhpUndefinedFieldInspection */ $connectionNode->profiler = '1'; } else { unset($connectionNode->profiler); } if ($this->saveXml($xml, $filePath) === false) { throw new Exception("Unable to save {$filePath}: check if web server user has write permission"); } } /** * Enables/Disables to automatically force varien profiler * * @param int $isEnabled */ public function setVarienProfilerStatus($isEnabled) { $this->getConfig()->saveConfig(Sheep_Debug_Helper_Data::DEBUG_OPTION_FORCE_VARIEN_PROFILE_PATH, (int)$isEnabled); } /** * Enable/disables Full Page Cache debug * * @param int $status * @throws Exception */ public function setFPCDebug($status) { if (!Mage::helper('sheep_debug')->isMagentoEE()) { throw new Exception ('Cannot enable FPC debug for this Magento version.'); } $this->getConfig()->saveConfig('system/page_cache/debug', (int)$status); } /** * Changes status for template and block hints * * @param int $status */ public function setTemplateHints($status) { $this->deleteTemplateHintsDbConfigs(); $config = $this->getConfig(); $config->saveConfig('dev/debug/template_hints', (int)$status); $config->saveConfig('dev/debug/template_hints_blocks', (int)$status); } /** * Changes status for inline translations * * @param int $status */ public function setTranslateInline($status) { $this->getConfig()->saveConfig('dev/translate_inline/active', (int)$status); } /** * Searches configuration keys * * @param string $query * @return array */ public function searchConfig($query) { $configArray = array(); $configArray = Mage::helper('sheep_debug')->xml2array($this->getConfig()->getNode(), $configArray); $results = array(); $configKeys = array_keys($configArray); foreach ($configKeys as $configKey) { if (strpos($configKey, $query) !== FALSE) { $results[$configKey] = $configArray[$configKey]; } } return $results; } /** * Delete template_hints related configurations */ public function deleteTemplateHintsDbConfigs() { $configTable = Mage::getResourceModel('core/config')->getMainTable(); /** @var Magento_Db_Adapter_Pdo_Mysql $db */ $db = Mage::getSingleton('core/resource')->getConnection('core_write'); $db->delete($configTable, "path like 'dev/debug/template_hints%'"); } /** * Deletes all saved request profiles * * @return int * @throws Zend_Db_Statement_Exception */ public function purgeAllProfiles() { $table = Mage::getResourceModel('sheep_debug/requestInfo')->getMainTable(); $deleteSql = "DELETE FROM {$table}"; /** @var Magento_Db_Adapter_Pdo_Mysql $connection */ $connection = Mage::getSingleton('core/resource')->getConnection('core_write'); /** @var Varien_Db_Statement_Pdo_Mysql $result */ $result = $connection->query($deleteSql); return $result->rowCount(); } /** * Returns layout files that have updates for specified handle * * @param string $handle * @param int $storeId * @param string $area * @return array */ public function getFileUpdatesWithHandle($handle, $storeId, $area) { /** @var array $updateFiles */ $updateFiles = Mage::helper('sheep_debug')->getLayoutUpdatesFiles($storeId, $area); /* @var $designPackage Mage_Core_Model_Design_Package */ $designPackage = Mage::getModel('core/design_package'); $designPackage->setStore($storeId); $designPackage->setArea($area); $designPackageName = $designPackage->getPackageName(); $layoutTheme = $designPackage->getTheme('layout'); // search handle in all layout files registered for this area, package name and theme $handleFiles = array(); foreach ($updateFiles as $file) { $filename = $designPackage->getLayoutFilename($file, array( '_area' => $area, '_package' => $designPackageName, '_theme' => $layoutTheme )); if (!is_readable($filename)) { continue; } /** @var SimpleXMLElement $fileXml */ $fileXml = $this->loadXmlFile($filename); if ($fileXml === false) { continue; } $relativeFilename = str_replace($this->getBaseDir(), '', $filename); /** @var SimpleXMLElement[] $result */ $results = $fileXml->xpath("/layout/{$handle}"); if ($results) { $handleFiles[$relativeFilename] = array(); /** @var SimpleXMLElement $result */ foreach ($results as $result) { $handleFiles[$relativeFilename][] = $result->asXML(); } } } return $handleFiles; } /** * Returns layout updates added via Admin and stored in database. * * Returned value is an array of arrays that have layout update id as key and its associated xml update as value. * * @see \Mage_Core_Model_Resource_Layout::fetchUpdatesByHandle * * @param string $handle * @param int $storeId * @param string $area * @return array */ public function getDatabaseUpdatesWithHandle($handle, $storeId, $area) { $databaseHandles = array(); /* @var $designPackage Mage_Core_Model_Design_Package */ $designPackage = Mage::getModel('core/design_package'); $designPackage->setStore($storeId); $designPackage->setArea($area); /* @var $layoutResourceModel Mage_Core_Model_Resource_Layout */ $layoutResourceModel = Mage::getResourceModel('core/layout'); $bind = array( 'store_id' => $storeId, 'area' => $area, 'package' => $designPackage->getPackageName(), 'theme' => $designPackage->getTheme('layout'), 'layout_update_handle' => $handle ); /* @var $readAdapter Varien_Db_Adapter_Pdo_Mysql */ $readAdapter = Mage::getSingleton('core/resource')->getConnection('core_read'); /* @var $select Varien_Db_Select */ $select = $readAdapter->select() ->from(array('layout_update' => $layoutResourceModel->getMainTable()), array('layout_update_id', 'xml')) ->join(array('link' => $layoutResourceModel->getTable('core/layout_link')), 'link.layout_update_id=layout_update.layout_update_id', '') ->where('link.store_id IN (0, :store_id)') ->where('link.area = :area') ->where('link.package = :package') ->where('link.theme = :theme') ->where('layout_update.handle = :layout_update_handle') ->order('layout_update.sort_order ' . Varien_Db_Select::SQL_ASC); $result = $readAdapter->fetchAssoc($select, $bind); if (count($result)) { foreach ($result as $dbLayoutUpdate) { $databaseHandles[$dbLayoutUpdate['layout_update_id']] = $dbLayoutUpdate['xml']; } } return $databaseHandles; } }
madalinoprea/magneto-debug
code/Debug/Model/Service.php
PHP
mit
11,152
angular .module('AngularCommunicator', []) .provider('angularCommunicatorService', function() { var registeredListeners = {}; function buildHierarchicalStructure(reg, splitName, callback) { (!reg[splitName[0]]) && (reg[splitName[0]] = {listeners: []}); if(splitName.length === 1) { reg[splitName[0]].listeners.push(callback); return; } var registered = reg[splitName[0]]; splitName.splice(0, 1); buildHierarchicalStructure(registered, splitName, callback); } function unRegisterListener(reg, splitName) { if(splitName.length === 1) { reg[splitName[0]] = {listeners: []}; return; } var registered = reg[splitName[0]]; splitName.splice(0, 1); unRegisterListener(registered, splitName); } function findNodeListenersToExecute(reg, splitName, params, $exceptionHandler) { if(splitName.length === 1) { execNodeListeners(reg[splitName[0]], params, $exceptionHandler); return; } var registered = reg[splitName[0]]; splitName.splice(0, 1); findNodeListenersToExecute(registered, splitName, params); } function execNodeListeners(reg, params, $exceptionHandler) { for(var i = 0; i < reg.listeners.length; i++) { try { reg.listeners[i](params); } catch(e) { $exceptionHandler(e); } } var children = Object.keys(reg).filter(function(elem) { return elem !== 'listeners'; }); for(var child = 0; child < children.length; child++) { execNodeListeners(reg[children[child]], params, $exceptionHandler); } } function isEmptyObject(obj) { return Object.keys(obj).length === 0 && JSON.stringify(obj) === JSON.stringify({}); } function isInvalidKey(key) { return typeof key !== 'string'; } this.$get = ['$exceptionHandler', function($exceptionHandler) { var registerHierarchicalListener = function(key, listener) { if(arguments.length < 2) { throw 'Invalid number of arguments'; } if(isInvalidKey(key)) { throw 'Invalid key'; } buildHierarchicalStructure(registeredListeners, key.split(':'), listener); return function() { unRegisterListener(registeredListeners, key.split(':')); } }; var removeRegisteredListener = function(key) { if(isInvalidKey(key)) { throw 'Invalid key'; } if(isEmptyObject(registeredListeners)) { return; } unRegisterListener(registeredListeners, key.split(':')) }; var execGroupedListeners = function(keys, params) { if(Array.isArray(keys)) { if(isEmptyObject(registeredListeners)) { return; } var args = Array.isArray(params) ? params : [params]; for(var i = 0; i < keys.length; i++) { findNodeListenersToExecute(registeredListeners, keys[i].split(':'), args[i] || args[0], $exceptionHandler); } return; } if(isInvalidKey(keys)) { throw 'Invalid key'; } if(isEmptyObject(registeredListeners)) { return; } findNodeListenersToExecute(registeredListeners, keys.split(':'), params, $exceptionHandler); }; var clearListeners = function() { registeredListeners = {}; }; return { on: registerHierarchicalListener, remove: removeRegisteredListener, exec: execGroupedListeners, clear: clearListeners }; }]; });
alanschlindvein/angular-communicator
src/angular-communicator.js
JavaScript
mit
3,641
#include "GameEngine.h" GameEngine::GameEngine( IGameWindow* const gameWindow, OglEngine* const graphicsEngine, IMessagePump* const messagePump, nz::Config* const config) : GameLoop(STEP_RATE), _gameWindow(gameWindow), _graphicsEngine(graphicsEngine), _messagePump(messagePump), _config(config), _messageActionMap(MessageActionMap()), _game(Game(&_messageActionMap, graphicsEngine)) {} void GameEngine::Update(micro_seconds step) { // Pump messages. _messagePump->Pump(); while (_messagePump->GetCount() != 0) { GameMessage message; if (_messagePump->TryGetMessage(&message)) { switch (message.type) { case GameMessageType::Quit: { StopLoop(); break; } case GameMessageType::Keyboard: { _messageActionMap.InvokeKeyActions(message.key.key, message.key.keyIsDown, message.key.isRepeat); break; } case GameMessageType::MouseButton: { _messageActionMap.InvokeMouseButtonActions( message.mouse.button, message.mouse.isDown, Point2(message.mouse.clientX, message.mouse.clientY)); break; } case GameMessageType::ClientWindowResize: { _graphicsEngine->SetViewport(message.windowResize.NewWidth, message.windowResize.NewHeight); break; } default: break; } } } // Update the game. _game.Update(step); } void GameEngine::Draw(double interpolation) { _game.Draw(interpolation); // This should usually be done last because we want to render queued objects. _graphicsEngine->Draw(); }
codeflowerblue/demo
Game/GameEngine.cpp
C++
mit
1,490
# jqvmap.creator A tool to help to create maps for [jqvmap](https://github.com/manifestinteractive/jqvmap). The main process is too create map or open shapfile with [QGIS](https://www.qgis.org/en/site/), then export data as geojson file and last run the python script.
benjaminbuffet/jqvmap.creator
README.md
Markdown
mit
273
require 'test_helper' class ProducerSessionsHelperTest < ActionView::TestCase end
ict4g/ror-ec-2014
example/gas_app/test/helpers/producer_sessions_helper_test.rb
Ruby
mit
83
// WARNING // // This file has been generated automatically by Xamarin Studio from the outlets and // actions declared in your storyboard file. // Manual changes to this file will not be maintained. // using System; using Foundation; using UIKit; using System.CodeDom.Compiler; namespace EvolveQuest.iOS { [Register ("QuestCompletedViewController")] partial class QuestCompletedViewController { [Outlet] [GeneratedCode ("iOS Designer", "1.0")] UIButton ButtonContinue { get; set; } [Outlet] [GeneratedCode ("iOS Designer", "1.0")] UILabel LabelQuestNumber { get; set; } [Action ("ButtonContinue_TouchUpInside:")] [GeneratedCode ("iOS Designer", "1.0")] partial void ButtonContinue_TouchUpInside (UIButton sender); void ReleaseDesignerOutlets () { if (ButtonContinue != null) { ButtonContinue.Dispose (); ButtonContinue = null; } if (LabelQuestNumber != null) { LabelQuestNumber.Dispose (); LabelQuestNumber = null; } } } }
xamarin/evolve-quest
EvolveQuest.iOS/QuestCompletedViewController.designer.cs
C#
mit
983
/* * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * ToString.java * * Created on 2 maj 2004, 19:01 */ package name.prokop.bart.fps.util; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.text.DateFormat; import java.text.NumberFormat; import java.util.Date; import java.util.List; import java.util.Set; /** * * @author Bart */ public class ToString { public static String debugString(String s) { StringBuilder sb = new StringBuilder(); for (Character c : s.toCharArray()) { if (c < 32 || c >= 128) { sb.append(" 0x").append(Integer.toHexString(c)).append("h "); } else { sb.append(c); } } return sb.toString(); } public static String toString(Set<? extends Object> set) { StringBuilder sb = new StringBuilder(); for (Object o : set) { sb.append(o); sb.append(", "); } if (sb.length() > 2) { return "[" + sb.substring(0, sb.length() - 2) + "]"; } else { return "[]"; } } public static String url2String(String url) throws IOException { String result = ""; URL server = new URL(url); InputStreamReader isr = new InputStreamReader(server.openStream(), "UTF-8"); StringBuffer b = new StringBuffer(); char[] c = new char[100]; int l; do { l = isr.read(c); if (l != -1) { b.append(c, 0, l); } } while (l != -1); isr.close(); return b.toString(); } public static String listOfStrings2String(List<String> listOfStrings) { StringBuffer b = new StringBuffer(); for (int i = 0; i < listOfStrings.size(); i++) { b.append(listOfStrings.get(i) + '\n'); } return b.toString(); } public static String byteArrayToString(byte[] a) { return byteArrayToString(a, 0, a.length); } public static String byteArrayToString(byte[] a, int from, int to) { String retVal = ""; for (int i = from; i < to; i++) { retVal += BitsAndBytes.byteToHexString(a[i]) + " "; } return "[ " + retVal + "]"; } public static String intArrayToString(int[] a) { String retVal = ""; for (int i = 0; i < a.length; i++) { retVal += Integer.toString(a[i]) + " "; } return "[ " + retVal + "]"; } public static String arrayToString(Object[] a) { StringBuilder retVal = new StringBuilder(); for (int i = 0; i < a.length; i++) { retVal.append(a[i].toString() + ", "); } return retVal.delete(retVal.length() - 2, retVal.length()).toString(); } public static String byteToIntString(byte b) { String s = "" + ((b < 0) ? (256 + b) : (b)); while (s.length() < 3) { s = "0" + s; } return s; } public static String double2String(double val) { NumberFormat nf = NumberFormat.getNumberInstance(); nf.setMinimumFractionDigits(2); String retVal = nf.format(val); return retVal; } public static String date2String(Date val) { DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT); String retVal = df.format(val); return retVal; } /** * Standard Ą Ć Ę Ł Ń Ó Ś Ź Ż ą ć ę ł ń ó ś ź ż Mazovia 143 149 144 156 165 * 163 152 160 161 134 141 145 146 164 162 158 166 167 * * @param s String value to convert from UNICODE to Mazovia * @return table of characters encoded in MAZOVIA. */ public static byte[] string2Mazovia(String s) { byte[] retVal = new byte[s.length()]; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); switch (c) { case 'Ą': retVal[i] = (byte) 143; break; case 'Ć': retVal[i] = (byte) 149; break; case 'Ę': retVal[i] = (byte) 144; break; case 'Ł': retVal[i] = (byte) 156; break; case 'Ń': retVal[i] = (byte) 165; break; case 'Ó': retVal[i] = (byte) 163; break; case 'Ś': retVal[i] = (byte) 152; break; case 'Ź': retVal[i] = (byte) 160; break; case 'Ż': retVal[i] = (byte) 161; break; case 'ą': retVal[i] = (byte) 134; break; case 'ć': retVal[i] = (byte) 141; break; case 'ę': retVal[i] = (byte) 145; break; case 'ł': retVal[i] = (byte) 146; break; case 'ń': retVal[i] = (byte) 164; break; case 'ó': retVal[i] = (byte) 162; break; case 'ś': retVal[i] = (byte) 158; break; case 'ź': retVal[i] = (byte) 166; break; case 'ż': retVal[i] = (byte) 167; break; default: retVal[i] = (byte) c; } } return retVal; } public static String string2noAccents(String s) { String retVal = ""; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); switch (c) { case 'Ą': retVal += 'A'; break; case 'Ć': retVal += 'C'; break; case 'Ę': retVal += 'E'; break; case 'Ł': retVal += 'L'; break; case 'Ń': retVal += 'N'; break; case 'Ó': retVal += 'O'; break; case 'Ś': retVal += 'S'; break; case 'Ź': retVal += 'Z'; break; case 'Ż': retVal += 'Z'; break; case 'ą': retVal += 'a'; break; case 'ć': retVal += 'c'; break; case 'ę': retVal += 'e'; break; case 'ł': retVal += 'l'; break; case 'ń': retVal += 'n'; break; case 'ó': retVal += 'o'; break; case 'ś': retVal += 's'; break; case 'ź': retVal += 'z'; break; case 'ż': retVal += 'z'; break; /** * Umlauty */ case 'ü': retVal += 'u'; break; default: retVal += c; } } return retVal; } }
bartprokop/fps-demo
src/main/java/name/prokop/bart/fps/util/ToString.java
Java
mit
8,386
import React from 'react'; import SvgImage from 'components/svg-image'; import ChartLabel from 'components/chart-label'; import { getLayout } from 'layouts/flexbox'; import getCenter from 'decorators/get-center'; @getCenter export default class HorizontalBarDetail extends React.Component { static propTypes = { height: React.PropTypes.number.isRequired, icon: React.PropTypes.string, iconHeight: React.PropTypes.number, label: React.PropTypes.string, width: React.PropTypes.number.isRequired, } static defaultProps = { height: 0, icon: '', iconHeight: 0, label: '', width: 0, } state = { layout: {}, } componentDidMount() { this.setStateFromProps(this.props); } componentWillReceiveProps(nextProps) { this.setStateFromProps(nextProps); } getLayout(props) { return getLayout(React.findDOMNode(this), { alignItems: 'center', flexDirection: 'row', flexWrap: 'nowrap', height: props.height, justifyContent: 'flex-end', width: props.width, }, [ {style: {marginRight: 10}}, {style: {marginRight: 10}}, ]); } setStateFromProps(props) { this.setState({ centerY: this.getCenter(props.height), layout: this.getLayout(props), }); } render() { return ( <g className={'horizontal-bar-detail'}> {this.props.label ? ( <ChartLabel className={'horizontal-bar-detail-label'} text={this.props.label} x={this.state.layout.children ? this.state.layout.children[0].left : 0} y={this.state.centerY} /> ) : null} {this.props.icon ? ( <SvgImage className={'horizontal-bar-detail-icon'} height={this.props.iconHeight} url={this.props.icon} width={this.props.iconHeight} x={this.state.layout.children ? this.state.layout.children[1].left : 0} y={this.state.layout.children ? this.state.layout.children[1].top : 0} /> ) : null} </g> ); } }
ronlobo/building-os-charts
src/components/horizontal-bar-detail.js
JavaScript
mit
2,082
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_execvp_15.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-15.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data using a connect socket (client side) * GoodSource: Fixed string * Sink: w32_execvp * BadSink : execute command with wexecvp * Flow Variant: 15 Control flow: switch(6) * * */ #include "std_testcase.h" #include <wchar.h> #ifdef _WIN32 #define COMMAND_INT_PATH L"%WINDIR%\\system32\\cmd.exe" #define COMMAND_INT L"cmd.exe" #define COMMAND_ARG1 L"/c" #define COMMAND_ARG2 L"dir" #define COMMAND_ARG3 data #else /* NOT _WIN32 */ #include <unistd.h> #define COMMAND_INT_PATH L"/bin/sh" #define COMMAND_INT L"sh" #define COMMAND_ARG1 L"ls" #define COMMAND_ARG2 L"-la" #define COMMAND_ARG3 data #endif #ifdef _WIN32 #include <winsock2.h> #include <windows.h> #include <direct.h> #pragma comment(lib, "ws2_32") /* include ws2_32.lib when linking */ #define CLOSE_SOCKET closesocket #else /* NOT _WIN32 */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define INVALID_SOCKET -1 #define SOCKET_ERROR -1 #define CLOSE_SOCKET close #define SOCKET int #endif #define TCP_PORT 27015 #define IP_ADDRESS "127.0.0.1" #include <process.h> #define EXECVP _wexecvp #ifndef OMITBAD void CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_execvp_15_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; switch(6) { case 6: { #ifdef _WIN32 WSADATA wsaData; int wsaDataInit = 0; #endif int recvResult; struct sockaddr_in service; wchar_t *replace; SOCKET connectSocket = INVALID_SOCKET; size_t dataLen = wcslen(data); do { #ifdef _WIN32 if (WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR) { break; } wsaDataInit = 1; #endif /* POTENTIAL FLAW: Read data using a connect socket */ connectSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (connectSocket == INVALID_SOCKET) { break; } memset(&service, 0, sizeof(service)); service.sin_family = AF_INET; service.sin_addr.s_addr = inet_addr(IP_ADDRESS); service.sin_port = htons(TCP_PORT); if (connect(connectSocket, (struct sockaddr*)&service, sizeof(service)) == SOCKET_ERROR) { break; } /* Abort on error or the connection was closed, make sure to recv one * less char than is in the recv_buf in order to append a terminator */ /* Abort on error or the connection was closed */ recvResult = recv(connectSocket, (char *)(data + dataLen), sizeof(wchar_t) * (100 - dataLen - 1), 0); if (recvResult == SOCKET_ERROR || recvResult == 0) { break; } /* Append null terminator */ data[dataLen + recvResult / sizeof(wchar_t)] = L'\0'; /* Eliminate CRLF */ replace = wcschr(data, L'\r'); if (replace) { *replace = L'\0'; } replace = wcschr(data, L'\n'); if (replace) { *replace = L'\0'; } } while (0); if (connectSocket != INVALID_SOCKET) { CLOSE_SOCKET(connectSocket); } #ifdef _WIN32 if (wsaDataInit) { WSACleanup(); } #endif } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } { wchar_t *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL}; /* wexecvp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECVP(COMMAND_INT, args); } } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B1() - use goodsource and badsink by changing the switch to switch(5) */ static void goodG2B1() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; switch(5) { case 6: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; default: /* FIX: Append a fixed string to data (not user / external input) */ wcscat(data, L"*.*"); break; } { wchar_t *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL}; /* wexecvp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECVP(COMMAND_INT, args); } } /* goodG2B2() - use goodsource and badsink by reversing the blocks in the switch */ static void goodG2B2() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; switch(6) { case 6: /* FIX: Append a fixed string to data (not user / external input) */ wcscat(data, L"*.*"); break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } { wchar_t *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL}; /* wexecvp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECVP(COMMAND_INT, args); } } void CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_execvp_15_good() { goodG2B1(); goodG2B2(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_execvp_15_good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_execvp_15_bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s05/CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_execvp_15.c
C
mit
7,290
export interface IServiceNowCredentials { username: string; password: string; url: string; } export interface ICreatedTicket { tableName: string; ticketNumber: string; url: string; } export enum StageStatus { NotStarted, InProgress, Complete, Rejected } export interface ITicketStage { stageName: string; status: StageStatus; } export interface ITicketStatus { ticketNumber: string; stages: ITicketStage[]; url: string; }
masonch/vsts-servicenow-buildtasks
ServiceNow/Web/WebExtensions/src/Models/ServiceNow.ts
TypeScript
mit
485
bitcoin blockchain browser
elkoutwest/bitcoin_browser
README.md
Markdown
mit
26
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['408',"Tlece.Recruitment.Controllers Namespace","topic_000000000000018A.html"],['597',"SiteManagementController Class","topic_000000000000022F.html"],['599',"Methods","topic_000000000000022F_methods--.html"],['605',"PostCreateSubscription Method","topic_0000000000000236.html"]];
asiboro/asiboro.github.io
vsdoc/toc--/topic_0000000000000236.html.js
JavaScript
mit
383
yahgm ===== Yet Another HTML5 Game Maker For vim users: `:set sw=2 ts=2 et`
lain-dono/yahgm
README.md
Markdown
mit
78
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_loop_09.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-09.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data pointer to the bad buffer * GoodSource: Set data pointer to the good buffer * Sink: loop * BadSink : Copy twoIntsStruct array to data using a loop * Flow Variant: 09 Control flow: if(GLOBAL_CONST_TRUE) and if(GLOBAL_CONST_FALSE) * * */ #include "std_testcase.h" #ifndef OMITBAD void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_loop_09_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); if(GLOBAL_CONST_TRUE) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } { size_t i; /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ for (i = 0; i < 100; i++) { data[i] = source[i]; } printStructLine(&data[0]); } } } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B1() - use goodsource and badsink by changing the GLOBAL_CONST_TRUE to GLOBAL_CONST_FALSE */ static void goodG2B1() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); if(GLOBAL_CONST_FALSE) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */ data = dataGoodBuffer; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } { size_t i; /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ for (i = 0; i < 100; i++) { data[i] = source[i]; } printStructLine(&data[0]); } } } /* goodG2B2() - use goodsource and badsink by reversing the blocks in the if statement */ static void goodG2B2() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); if(GLOBAL_CONST_TRUE) { /* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */ data = dataGoodBuffer; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } { size_t i; /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ for (i = 0; i < 100; i++) { data[i] = source[i]; } printStructLine(&data[0]); } } } void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_loop_09_good() { goodG2B1(); goodG2B2(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_loop_09_good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_loop_09_bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
maurer/tiamat
samples/Juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s04/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_loop_09.c
C
mit
4,987
package mcjty.deepresonance.blocks.purifier; import mcjty.deepresonance.DeepResonance; import mcjty.deepresonance.network.DRMessages; import mcjty.lib.gui.GenericGuiContainer; import mcjty.lib.gui.Window; import mcjty.lib.gui.layout.PositionalLayout; import mcjty.lib.gui.widgets.Panel; import mcjty.lib.gui.widgets.Widget; import net.minecraft.util.ResourceLocation; import java.awt.*; public class GuiPurifier extends GenericGuiContainer<PurifierTileEntity> { public static final int PURIFIER_WIDTH = 180; public static final int PURIFIER_HEIGHT = 152; private static final ResourceLocation iconLocation = new ResourceLocation(DeepResonance.MODID, "textures/gui/purifier.png"); public GuiPurifier(PurifierTileEntity purifierTileEntity, PurifierContainer container) { super(DeepResonance.instance, DRMessages.INSTANCE, purifierTileEntity, container, 0, "purifier"); xSize = PURIFIER_WIDTH; ySize = PURIFIER_HEIGHT; } @Override public void initGui() { super.initGui(); Panel toplevel = new Panel(mc, this).setBackground(iconLocation).setLayout(new PositionalLayout()); toplevel.setBounds(new Rectangle(guiLeft, guiTop, xSize, ySize)); window = new Window(this, toplevel); } @Override protected void drawGuiContainerBackgroundLayer(float v, int i, int i2) { drawWindow(); } }
McJty/DeepResonance
src/main/java/mcjty/deepresonance/blocks/purifier/GuiPurifier.java
Java
mit
1,394
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 call msbuild call "C:\Program Files (x86)\NUnit 2.5.10\bin\net-2.0\nunit-x86.exe" /run %1
jaquadro/Treefrog
Treefrog.Framework.Tests/test.bat
Batchfile
mit
171
;(function(jqi, $, undefined) { function Dive(index, $step, $previous, options) { var z = $step.attr('data-z'), x = $previous.attr('data-x'), y = $previous.attr('data-y'); if (!z) z = -2000; else z = parseInt(z) - 2000; $step.attr({'data-z' : z, 'data-x' : x, 'data-y' : y }); return this; } jqi.Dive = Dive; }(jqImpress, jQuery));
b3ngineer/jqImpress
src/Dive.js
JavaScript
mit
355
--- title: aas1 type: products image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png heading: s1 description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj main: heading: Foo Bar BAz description: |- ***This is i a thing***kjh hjk kj # Blah Blah ## Blah![undefined](undefined) ### Baah image1: alt: kkkk ---
pblack/kaldi-hugo-cms-template
site/content/pages2/aas1.md
Markdown
mit
337
posejs ======= Page object oriented selenium-webdriver library for node. ATM in a concept phase... [![Build Status](https://travis-ci.org/selaux/posejs.png)](https://travis-ci.org/selaux/posejs) [![Build Status](https://david-dm.org/selaux/posejs.png)](https://david-dm.org/selaux/posejs) How its supposed to look like in the end: ```javascript var assert = require('assert'), pose = require('pose'), PoseDriver = pose.Driver, pageModule = pose.pageModule, pageObject = pose.pageObject, SearchResult, GooglePage; SearchResult = pageModule({ content: { headLine: 'h3', link: 'cite', shortText: 'span.st' } }); GooglePage = pageObject({ url: 'http://www.google.com', content: { searchInput: 'input[name="q"]', submitButton: function () { return this.$('button[name="btnK"], button[name="btnG"]').find(function (b) { return b.isDisplayed(); }); }, searchResults: { selector: '#ires ol li', wait: true, module: SearchResult } } }); var driver = new PoseDriver({ server: 'http://localhost:4444/wd/hub', capabilities: [ posen.Capabilities.chrome() ] }); driver.to(GooglePage); driver.page.searchInput().value('Wikipedia'); driver.page.submitButton().click(); driver.page.searchResults().get(0).getText().then(function (val) { assert.equal(val, 'www.wikipedia.org'); }); driver.quit(); ```
selaux/posejs
README.md
Markdown
mit
1,501