This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // encode(decode) html text into html entity | |
| var decodeHtmlEntity = function(str) { | |
| return str.replace(/&#(\d+);/g, function(match, dec) { | |
| return String.fromCharCode(dec); | |
| }); | |
| }; | |
| var encodeHtmlEntity = function(str) { | |
| var buf = []; | |
| for (var i=str.length-1;i>=0;i--) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0815.ru | |
| 0815.ru0clickemail.com | |
| 0815.ry | |
| 0815.su | |
| 0845.ru | |
| 0clickemail.com | |
| 0-mail.com | |
| 0wnd.net | |
| 0wnd.org | |
| 10mail.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ViewEditMachine & | |
| wrapper | |
| view | |
| edit->edit | |
| edit | |
| cancel -> view | |
| save -> saving | |
| saving | |
| success -> view | |
| failure -> edit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LensTemplate & | |
| Trial Lenses Availability | |
| # automatically checks if trial lenses blisters are available for ordering | |
| areAvailable? | |
| available -> Available | |
| not_available -> NotAvailable | |
| Available | |
| orderToCustomer -> Sent | |
| orderToOptician -> Sent | |
| Sent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| view | |
| # initial loading of data (if not available) | |
| v_loading* | |
| onDone -> v_idle | |
| onError -> empty_or_error | |
| # data is ready, just displaying things | |
| v_idle | |
| edit -> edit | |
| reload -> v_loading |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Service Machine | |
| lenspass1& | |
| trial mode | |
| final mode | |
| lenspass2& | |
| trial mode 2 | |
| final mode 2 | |
| # State with nested states to proceed with fitting process. | |
| Fitting Service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Fitting Service& | |
| # state machine on service level (top layer) | |
| # connected only to service_id | |
| Internal service state machine | |
| trial_lenspass_added -> In progress | |
| service_stopped -> Ended without success | |
| Just started* | |
| In progress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shop Login Machine | |
| NotLoggedIn* | |
| CUSTOMER_ID_AND_HASH_PROVIDED -> ElviLoginCustomer | |
| FIREBASE_AUTH -> ElviLoginCustomer | |
| FIREBASE_EMAIL_LINK_REQUESTED -> WaitingForEmailLink | |
| WaitingForEmailLink | |
| TRY_AGAIN -> NotLoggedIn | |
| ElviLoginCustomer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Login Machine | |
| LoginScreenVisible | |
| CUSTOMER_ID_AND_HASH_PROVIDED -> MagicHashLogin | |
| FIREBASE_AUTH -> FirebaseLogin | |
| FIREBASE_EMAIL_LINK_REQUESTED -> WaitingForEmailLink | |
| WaitingForEmailLink | |
| TRY_AGAIN -> LoginScreenVisible | |
| FirebaseLogin |
OlderNewer