loco-rails 1.5.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20150927133812_create_loco_notifications.rb +1 -1
- data/lib/assets/javascripts/loco-model.js +1894 -0
- data/lib/assets/javascripts/loco-rails.js +2 -2931
- data/lib/assets/javascripts/loco.js +2612 -0
- data/lib/loco/version.rb +1 -1
- data/test/dummy/log/development.log +12001 -0
- data/test/dummy/log/test.log +182960 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-5/-56k76maKxt6vCXZcYjsniuGFzHMzdxBDsufzNXmW_s.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-6/-6RrIN4eF0DCTYbdpdN3ajVsYcsCNNXsqTZP-4b3STw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-M/-mKn8quzSH8R6usZXcBFQ4Mm8G8jFDD10f-PYzS_mkk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-Z/-zDBEd9qv69IU92NDt7bXg-r1E3MPJxaErmgKUBKu8Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-d/-d9SiFnjMGDuA5TLKdR4LVll_tCa4XI2-AFC_HoubFQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-e/-eXbT3V1JU6iSur9g33BZUom_loa30G8zAYzgIalwMw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-f/-f4SVWsjTSqBSlURD4vCirhDBQ1SsWMyFe28GCp2Srs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-k/-kYuHZLfWlAULj6hCaPj86vwZKYQhpkEQwO8xT5j_C0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-p/-Ph_mwRHV5IIIrb6cTAQn8_ogqzEE-PxrJuMDoQCuiQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-q/-QKfutdnbmAtegm6SxabCMjMfrNz_GuHPbEmeY2I7Y4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-q/-Qf7u7a1AbH-7d4KuWgbxxd2bacUMESKVjFiRmY84JM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-v/-vebXMR6ihVWDhgZCNorH-6nJuHVC731QNlYvryjO5Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0-/0-xRFd2268IxdECt1XP4-pHV7uHVv8Q-knfFRP5og18.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0C/0CZJJQelIOQennurDGkEnI_0uJwz2PmUXfHzjDCGWMY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0G/0GkpJ1HR4O3jLKMuGtKz-OBGLHXNN8Jg40BVFk-vXl0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0H/0H6M1dpTiaJKbNXvPgyfphG4GeUwdQB7D6eDABiscmE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0L/0LSzqnBz7AUIHH7dNgpuzKC0MRDBhyLt43e3iZk4u-U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0N/0N7tSDGV989ul-2ATCwneO6Jv08fQtUFf9Q4L679f4Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0P/0p9jqd8nDhbSROTlSDbLqyiILMSBZsNj2bpKlI_KXUA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1N/1NtXIjTSjylstfuML07qXLkr-vYYpdrHKXuvQv9mOEY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1R/1RlRT9U1PPUNiPQY1esDyNy9k6cJs_7g1B5twCwKadg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1S/1ss4Oybz2TwPUUQjVMxLOPGUelnSevYpaNlP2_zIny4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1a/1AawP2rY7nHaga6dJQACDI80mQ4VhYUQfi_Q1_hjq-s.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1c/1cGcHltowhCfK7WMWR6NLBZidEIeKSiyJJka7m7WEho.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1l/1lXtMmEyH3J782KHFtxdRSd_s6mC0LkwBUWBl3i276U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1u/1U-FwX_nf5CGGoWW-U2RAhjJk1RT_3rBMFufqQUenqw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/26/265BVbsva_kWwbq53is5AZsuznpE1-dza1dTVgKA82k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2M/2mAZdPKhOHTX2xGCIklsFmy4vyP4SKsMFftlSbGZQUU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2W/2WDVaqI8mb8blqFpxLTdmsxeiD6dkOa_n6id6CIzYus.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2a/2An-JsAEWFRYYKvDFOx--mw2U-G5t_HUTbVLdTKY15o.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2b/2bIxB7uJG_9C9CMytlvkB-2PkUUnQJ8igzTOr5S6kao.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2v/2vqsjvC-O69LikuLoaqmCQhADjkHlTpNDBGIX1sFE8w.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/32/32BSA2O8SS6P6QD3n4pgkpDxTGkuvfn_iN8TT7ZZ3sA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/32/32Y9wtXVz42DetU10sCnakS2BdWdSMpoCAacBxkaXd8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/34/34RiM_iUtAn39UfPMZxMECgvafYrxI7mvWrjurUilks.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/39/398r-S3WLWtCGXq8BqjGde3ODqSjOPqm7kAVTnRqnIA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3D/3dG9PHqCXRi7UeOWk4o8YAe1RDEmtz0GR7U_3NRgcBo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3O/3OTc9hlf5yIlqlUParG90njn8obrhGWP0cedDuNUw2s.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3O/3OuEausjDwxCzFPJ1lXgmS8kMbBSQJ-gtcKjrizniTE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3P/3Pp_gKqnNcL2QYcaLeU0nvh2rSbfrAwq9W6OKTRN_es.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3V/3vj4b4gskxPU91zh4cHXe0_fT4ZEHlcH9IOF1_agt1E.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3n/3NFGAd7AOJFAHizc_16qVcClmifkUzjUrdBytZJFS5Q.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/48/48rxL7dDBsGmMMXe46_N4anLm04kcnNkwAUJkcq4hFQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4K/4kve68yg_a735TXRHFu7tdpsupLVCO2LTSAMqUVR_z4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4T/4TnsllPDPr5yV6MNkATBdZN6v5pGN3RVEvtbUC4IMqU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4V/4v-gLzMKqwFajiuk35XWITqfTWsT8NPKKERkG0IET5s.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4Y/4YC5T7uENTLu_kqTR-uenJaXzWl9B2f_vi2j8obBom4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4_/4_dnqyJvkuUDXR6OrwwlLN8huHo9DMLMJmeT-DdwgQk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4c/4cPXKLiMjCK8BVbv8jMq0X8VrQ9wMALCKezrIZBKDZI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4d/4DYX0wQGo6wzCG3FMaQQk9PlKU8hU-wTfy5hTc5xoTg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4f/4fiUubqU2wKqtsE2sPc17G_1zlOl0Yt6NRAFvBB_oYk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4p/4p7lnjzssM-awYpH6JwtM9TtCtP6DSGsNTsztRt6Jig.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/51/51_NB9c39vosOELp6t47MWgm4VpFeOeZ9PU3X4boJMw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/55/559rYNmOb02dwb7fj0D4MP75XMoG4LW3WkrbJLannAc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5A/5aEHEPsIvn6169R0cwaTAgQQAlWGYga4LwlAzZ94PgI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5Q/5Q8PWttV5jB3XBany4zN7qpXv9-RLeDpYrdYiswaCic.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5R/5R1EIqyPgMiyXhDMf2_MPt2_x9aoj6x4D48qnFW5fu0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5U/5UV6KPvfvSda-zVDPS6nxE50SaBy9ARqIgzsQeicT2Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5X/5XPiMHdiXLOYAnPFPSJLzcw-GefIVhn1GXOrLeS0nsg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5c/5CHNgKma8hG2C8_NYZH9Xb7m8473qpmL9Bt8f3mmt1c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5h/5HKCKh6NulCiF_PXP1OLRyhHN6VA5B7kTVlxcq0cmEc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5h/5h2bhT_uvLXjtE3xTIfcht1PSVG-ta_fl8PSOaJ2yrs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/60/60DXKMbzwDabwFBsbbw3GKj-Vj6-Y-XO1yuXxMyfLSI.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/64/64sjleEhDWoJqpJXp3HbVosCHo5XUeXail-mapVqbU0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6I/6iv6fp4ir8tk8CYVA7sxCdjUd7v9pRtZRL6UsYJcbTE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6K/6KU0Prcjo_VTtIs9OZ84Q4xJ2GIeYZggly4B6wh3Ixg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6O/6OUmZh9nUEPQ5K2iGkT4QJkrn1njfkJy96AzsVUS2ZE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6Q/6QoNtPs7HuJqOgOE9tYXl--eHqi9HZhDZoIL7yeH3As.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6x/6xhORZGm2eSv_eATEDCea-pu4HqJ-6TeCJ2bg3pnNO0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7C/7Cn6D6DIzr3GQ0MdSwGCzWJaxQ6QITi7rRstj-4cg50.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7K/7KDDLhHVsHiPw_HzY21SsYlmDJas3F_vJZzGb76kaY4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7W/7wojB30aSE4Aw7jJ-TzJW62TuSa1dk1U2fkjugKv84I.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7b/7bDfzrumaPy_iRbCWMgV6UrfDUivdZc0QKMaAZa1dIs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7g/7gtLKnIzu7CsTZ9Zw5HLz8UU982RBNNA2JOVApmkONs.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8I/8IGrcVaN_8FyWnhMGyaA1BY6ddU5z3lfBihJkht1Gc0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8R/8rb3hPs1xK37LkhcvV1gCT9UVzh4CiDwgQPWKmfOoRE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8b/8Bznhfhh_iWOZa1uY_SZpjG8ugmoQ8bhmiAloUa2ZaM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8v/8vf5qQr8LCDeBNBrCPt03F1H9OpT8Y3DSU2wCmXavPw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8w/8WA6tsBbUff9VY6VExolraRAgOb5938J8nsonTA20Yg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9_/9_IOpP--EoLif3rFBAYlz4NP5tM-rZMpSV_OaAZmZLw.cache +86 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9b/9bhX0U14NWaxPfLVb9eVvW0uImlPRckNP9U1kjlCqAE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9i/9ISZgNAev-UxgUO_u3b-euwf3vHKgf9PWdOf1K-hS6M.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9i/9in3GxC83njD1GpGcTGq8cT4kBdnKyCCTe2OFLgVIew.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9o/9OkClivXNtTbNxex4Bm97-BUq0iQffVx3kZbpvV-q-c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/A8/A8DwuM-2TYCGhaKdX6VmlQm-Ni5A4ZKJ3gMjsZqn-FA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AP/APYhz3SQOmaP7Y4tACv7wsEC_aXBXcC0bcsldOKmxJY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/As/AsBrm4YrN9MxBlqRUq1IVJjB-kKj0ExAXsHUbDJ5nnU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/B3/B3H13-0s_VBCB6UWYVJQ-rrJfE7wWB_ZoMAm9itpxdw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/BG/BGNSOmYXvBBCCnYAsrPoyoMCKAQLbaNm14sYWtwKNPU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/BN/bnz2kkhWbBJRksRXO7VFO5t0q3Vju2NJ0fNRSZrwXs4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ba/BAhYzr-1nXqqa10K56M0CiEurOw_NCDszKWO-1qtzio.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/C6/c65eBLs14KMO9LkOsw4I3PrUtiEYZrhjbN23xaaI_hg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CB/cBGsEQhEOw06ygy8e9G4o5Kay4BS8vsncnwVagUK6OA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CE/CEu3hm_cvN8pV2I3MY4Ubj3fCawkZo8ulzEXPd3duus.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CJ/cJFMr1huZ_HzwtWRFq5t9S1B2Gf2Hkftl6lX6iJLabE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cg/CgQh6_SMuCZJD1OM6YXsnwMgyjtO907VEcELZIqT6Ug.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ci/CiwBzkqXzvj114HYWSK8SrhxsGTiUu_u9IjA-gck5eI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/D0/D0V54Zuhk00Jp52K49pZyppPuHe8NS_3uGSWW453brc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/D0/D0vHZbi2X8l5H7bD3Ss1JE8MprJJKcKH7ql5tO2F7Fg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DG/DGmKSmR7IbPLPpuhL8oW4N4281i61Y1t9aItWiiDAzg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DK/dk7hRF48WqHBogSaoG7iKprKOxgg5vQG7AaIv8Ob6S0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/D_/D_G5uRYjV4bo7PZmHQtt0UMjYnDR7PqAPubhyzezGxU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Da/daw9LnwYnz11wrepzQLVCITwgMQ5AOUepuhtno6hjJw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dc/dC7tUXBbz5u5VRKa-1Cpw2kPreDVMLIaIJl7ZtIlW4c.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dl/dLQ6Xltq2pDjTYac5Ot2jwPoDBNMOojZ36hp_apNEig.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dl/dlSWlXwTN_SfXSdVi_8ZZ3YYir_tg4DEDxPtBNzmFcc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/dmEpOzkqXKjhFp9YIeCQ3CEfk6jX-hA-SNqD74mB8gA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Du/dU2dqw5IWeYMbilFg_Dt1znRGOBBj2HIZw3JqHjqO0U.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Du/dUC8RNIXKY5WGmSSZy1-VnuR1X5QyOd56tlBc54YHsU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dx/DxMUv3mqBxlEDVnJpUjb-lxYbLwLm3rI7Ihle1sE6jA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/EF/eFx5gshRvhqmvVfRhg6kwtiqcULrieriOOlob9OpynU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/EG/EgL83oorv4alL6JeBhr4l2KL_6Uu6PrVZwqSMmqb6zo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/EI/eId5nVfPNphsAn8kmkQuDlbjgH6UtycT2CL3rlxflu4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/EI/eiY8U8xOWD0j1Ro71_nlyy02ivUC3dDv4GMPOBZAK7c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/EJ/EjedPC5PVEUwnMorXx2CzZtdmT3kE2YPDdYD9ldkyXw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/EK/EKtDsDYjSckL6HRxB2V6O4_OhIjMuVgyutahtawLA8A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/EO/eOKBthiiPFYCYXs1wA0B5ODBQbPAgqIZAmnv0kGNWJY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Eb/EBT7Ms0_a4BGWQ_TFQ2ZjkhoFgzsTAlSA_r9fIwm9tQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Eb/EBiI_2Wy-sgzqc5dDSQ2Jh4ZgyM1xxUTCesJuWcMJAk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Et/ETQnq0sSm7FhWk75JuHnfyyQtv1bfoWvVafwlAMBp0s.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Et/EtL0Qq6jHCDFdfmIzM7X8tzxc_OWpl1_xnuwzfgQerM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ev/evy3Ag1NSb7WjCtkxDPTYjVGOk1MsFwEv36Rv_bIsk4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/F5/F5vkGYCEbF4a_6eSAS0o2mY5p3dbkgvMoveqZtmFsA8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FB/fBdqhIXqn9nSJgYTZBw9_4A45q8ja-Ox-hyb0rbQbMc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FU/fukQTbskH0U9uY6gPylntxq_rsJG03EhBvfkM9lj_vQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FW/Fwi5-oYOxmV_ZvIP-bilj-D3CLby4bPHvgcto6hZI_w.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FZ/fzrFc5kzUmO2zdn6nYxc2NW0ac-yorJn6ix-BrgicbE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fh/fh9jT5z7RGdP2ZZ_7h1H9VZ1DyrhDFYsu2q-DmeFX7w.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fh/fhZ62taXxJL86w8eHdbrsa60m0eslczuWsSkUzuL240.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fq/FqspyDETHbm8uEeMCkqCkhbLKMdLqN4qvYl12LIkfGs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/G9/G930v-SCJFh6WD-nTMmC1ZX7XAzgxgbte7sCWV4DVgw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/GG/GGt_Lgh6zDszR4vGgVnTudpI5NiCImXGKJ9xXurCNCg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/GI/giXpRXfB-pqwmKDk9BXdsF3bR5mVkCoroUTYIAkHd0M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/GX/GxMQq5PdeAJbZ5x_nvJOmeSJkBX1WloHgAVNbO3Pb5Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/GX/gXPdxbRq1D_kMRClkYTgLo2yzdpvd0h9YK8aXG34QNU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ge/ges3PXZojQJ90CWLl4gke38LzlOFC_BUJzQ6wWFY-Zo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gn/gNskVakOmkriHjW-pIWtsNdMoIFaBxJydESbociaPZA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HB/hb2Ge2G_DrXzMUceOPdy5n97wb82YI0coxZhflNRikE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HD/hDnao_wcqb9MWqdw0MRwVXKUEihuv0livuGMyX0DpGQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HS/hS6b4YpVnmtQQXE2p4nXLlwK-_jgutUYcDCy1jhtVz4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Hf/hfNxg8Iy58Nz8Io9rt8In6e2BCTefy4QJ1VsBQQ8sxo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Hk/Hk9dhYR_wL7LPXwtHISghjghzHiLypM0kBtibcecWHc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/I9/I9nJjz_-x4nFCjiG3JVy3zaPFN0zEekuGTGp1hzJRzc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/IH/IhYwj3dyjDXLfgW0suXZeTntQmXyGZi64oFK029N6R8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/IH/iH8pMkOGm3DKEzgDWfqZ71Ry2blvAah5kJ3QBGwQ-_Q.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/IX/iX9caYW3frRe8wZzbLfRiMX9HrrtnIH4BxEidMLzzvY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/I_/I_iLnPEjciDpgzEpPAelnSuDXgDm2-pB7evnH0I05ck.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Io/iojEoHzYvrtFc_RqthsUVA2Fbv0wxTlIwY85IVqmxpw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/J0/J00zyHmXf8Yx3Nsncf2nCBi9fcU7Xxq4yCOchyW2mNE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/J0/J0h6Ld9fhJUHPOHTRFSRRTK0vRUAMHEOGaBYWi6xzmc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/J5/J52djMWw1hZznD4KnGBnMRBHmPR910P7PdD66jxOUUU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/J7/j7-GI4Ttx470qWKnKXE-k9gtx64jxvjgwxjSQBYGrQo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JK/JKjg3Bp7c3eOjorZo4FbvBgRH43a0FiTR7AjFVZ2jXI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JM/JMlTjkyD8X4RvZX_digXTJfDu_CG19NvBm1oh1TSYSk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JN/JN8O46C1iQVp-dZWNxZC7vnoHiIAvhekqYeO9neUCe8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JV/jVrTfWTtbRq-l0sdyQ7C9pwO2W0LmX0ccX24OpwRiJg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JZ/JzINvX5N10HrJ20bfQTnvcMpjlBGPHUSmmuZwu7UOnY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Jo/joBmorXBCaxISrmNbjfzL6r57K697OnNSUKeFJn59Xk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Jr/JRNZU-PIRnsGx9TZl9Y1NnzR8NsYFENC5xEoHEznBWM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Js/jSs8bpVUi56W4wmMeK-eYaZ-lQ0aGCXS0Y_mC-eJZ7E.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Jx/jxbIIXgfl4hAtIrt_3r1Y5RYHlVY6qIiqk_WA5OoMPY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Jy/JY0uGonvqPRZLS--3Fz6C8iswJ82nHjYTJAj8CTwkgY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Jy/jyu4u9g0Zoi5XtJA0OcVDdJQtDHbr2tUYCbQq7AMon4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KC/kCQMalY-gNvpGEaDpU7CYnLlWmQ3V2tbxJbSwKNh-F0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KD/Kd9Iq42wcdPrU86n-cyfeCZfCud5Lot2085BQ8OqyNQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KD/KdBwjrn_WBI2iiabVW9X40hqMP_o7Nshmj9XQmz2Tx0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KD/kdFjgl6khUpH3F-Pm94h_gxgzH6G3Nga-QtFpYbjaUw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KJ/KJwWKHaHj5efVYXLLaxCfgWU8QwbYH_UOePBv19IgFU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KT/KTgQHFmmAa4RMp7DZ-Jd_qsr6HC5DPzJAFdpGBb4C10.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KW/KWSXkVhzkt_agI6PE63VYkJYTykeF1uOGj81TOJ_uHk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Km/km7omJqMhKUQasw-ysoJlzVHZ3k9lR9vHs69LWd817E.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ko/kOYMrjr5yqyDXNTAY2VgtQzCPf4GaR-HknIwwyDUQ3c.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ko/koQLstoU3RAivwxSvWxAwqrFXsC31vOj5-Fmyo2Y6uo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ku/KuoSMOTyA2PwJ-M-NoIdshcdJlfNW6Mp62BCwB6yjFU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LN/lNZi5cEXNx0QcvQPLRIz_lPE85mrDyijmzVpuOqzrWg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LP/lPEKszmniaBRv-sB1jCWJodr7bmnsND1HTqXNJWKu9A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LZ/lzCQIH6m0ixCfDbxooA6iXZKzEaHo_Asz67OgeMojTk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ld/LdtWw8qkQp0Jv1rttvi-8Pz-5i-OTeAMtqleqhlwis0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Lx/lXULySCAJxGs1DK3pifg1VRP1Rdg7MN_Lk-96QruccE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mn/MNXEOfVd7V8xiYoIZ8q56qVn2NRcLMkbMuRlW53URBU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mn/mNk0r1VJsZqQFmryDxMy8xSfYsYFiIWF97UmYbKzizA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mx/MxXntbXqqXQwXR19pzR6sjFNBUzRq0-_1Y_lcUzPnCM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/N-/n-bceaqG412J7JvPSLM4CaW9f504RL0uJgPKYKdlq44.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/N2/n2z8k-H6CrP_68TroQ_OPqrJANNJv2Ra1YPzXafRZuA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ND/Nd_ObcbmkJIt0T7lMxztTWOFB7btfKUmeAmbOGPxQzc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/NS/ns6RamujgWKMJcKYRmffelbeBjZECUhlRa6lLGSjpY8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ng/NGv-d9AyD3S6klIgHrFEst6pEV4-XY0mL1uQwTMoc40.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Nl/NloT4zPdktUzzifmYAZK-Tl60yKP3gyS26K--qic-T4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/No/No0zILoIrbswjwFOwS7J6XJxeWcqsCqbdot2cE7GP1A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/No/NocVL2dZnAOHeQT2EGGQTn20jU9CjJhWllZ8fZzOiV8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/No/NozASSrnTxQ6ucsq5WCao1ama47682bKuAAGjRN9VXQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ny/NyB3jYBiwCTg70wyb6W8lVHdee8Mv4yFWi0JyIRtmcM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/O4/O47gpAImesVKTPAWdJ2M19EgqyC76jYyNkH0FXwDz6U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OA/OAwbSduQ4IQhNe9TtYdu5jjjosz0hyVZQnA2zqUKsFY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OA/oAXGtr2beDIMlgC3jqIK4KD2kFoTgqkqFmo1XI-uFVs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OK/OkmGBRUPlc5OGm4Ts93tWvxMxI9VtvD9Y_ijxG_Xtdw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OL/olKlCn558vBlKYRyxeQCS7QcaTkvx-pX8Fy3XxprdCw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OM/OmhqiNpIBO31PKtbENpeztyJXAj4rqvrEl2Gd150z54.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OS/OsSsjWuF9YH_GoI_mGvd2OKvr4G8fd6J7CyrazvOPM0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Oh/Oh2oED6mpqsy9MTztbDV3jNW2SDU6B0d8hZ1vS2WskU.cache +34 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Oo/OoUp5e0C9TLypWF3yV94MHNNLxTa2b28rXFPVIu4OBg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/P-/p-GjmTaWlUlyY0zqUKV-szTzfkPS6DLLbflJUcrt6dQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/P5/p55LsWHrvcpi_IIJg9YmhaZJ8Za46dGpBp-kT5XCZI0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/P7/p7dJMpMbw8Y-_ACWbJKc51R2EaQq_kNMoBEmxonn7G4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PC/pC6Q2yoRVbRnCueMWdp57RKTGtUrSM5f7xer5qH-q2k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PE/peYgBDceJ2J2DulA9zqIwXfNnldMVB7v9-PqO3U19tc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PF/pfx-xRdOlDYamngRgz9nQs1GyT0E5sqAo0AdQiTlvD0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PX/PxdmTiaIsxzUxTQDqVRSNWUxIIs9a9ldIbta-9zCvME.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Pb/PBKTSoQIQTpoH2Ua5j5Pls-aHY9UpFVEQmxycxuAEdE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Pl/PlltoCdA2yX9fukY80Sopkse4a1lsYWhf6oAldsRPWw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Pl/PlzqdU0rzkU_LZOHFIVbf6IJ60-TUD7RDD4U_xoLnIo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QA/qAZNVY4DGuLLw3RzuTRb_MGB6wIDvifvcfcPavIQ9NM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QI/QIESc8vF0edtR45Uxl6E9Y25nryF6lCoMuGmL9wQ0j0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QM/QMoZSmS8UJYmHsF0pCqY8V2yVphVzOHPs08KUFm9cYU.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qk/QkcFiJ0CrHE2n42ORNQRvNvK2_e4BZ-TXqIFekbTFu8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/R1/r1OcLu0JA1Ab2OURX04y6bHWzB41804CekfbTdUyV6E.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/R2/R2GJjT0pLByUDz3ByddgQPG1fjird3TXBRCP9_51XQE.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/R4/R4VsNPLlrWavaObDIGtb3MlU3dyulW2zx48FMy8Rkrc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/R7/R7trPQzsNDjLstKm9nLi7mozd8_JOUjdNQbR5vu3-ys.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/RH/RhfGwxFWab-pKANp47y8E71xDPL9mOgzFqXvDMqQjGc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Rg/rG05wo_hdonw3bjGFqKKcBQ8yeEItfxWebeCwwwa11E.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Rn/rnQ8j59ECAIjBmZHyyhoHfMcQqUwc5LsbpjhrjBJrzA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/S4/s4RLMXHhIlyGNvoO8Y2YFs6-MAzdz7t5CC2837fqjr0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/S4/s4jGSxPFuAWk6TUrCw6OPut1ytz3aK9G5Lh1ScSKUoA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SI/SigoLtR_oRXYU2Gk6BjHCT5n51HIMVrPlz2mf5QeoGk.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sb/SbNfnmJDgJGmeDw7VZ9fqgoE4Q9epyJMiFdUhz7fq68.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sp/SPcbErEcUGB88AxAtpuTP7XvoRYJOYfWWj6FjI3mLfk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sx/sxYGwvV55MD56uvSNCKQVKcvhEcnw_rWsBuvC7YvLQA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TJ/tJXzgRCQ-Z_R65iCZYzgC4E3L8xnhQIpoTLC5ihZTOY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TQ/tQ-3eA0Ehk655cnqQYovfDqJ6ukJbU-b3YmnTjorWAw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TW/TwmbAvopsrryQmiBnmu8WuzS56bU080atC3DwI0tqlQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tb/tBlI_USncdJoq7R4tEIlOAeMlck5nKKgILugONE2c18.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Td/tD_LiDPYRghAU5RXK0Qm4F0kLgKFZiLmwcD7VkfyiIg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tu/TUMl6kGGaKiX1Cj0rd12SLaN7t-QkP1VZoIuvOSZlDY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tu/tUW7JCmjcxet5_pF_ZCoUsHrMdShygi2kezODfP8NKQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tz/TZe7ylSwwsqLDsVOioZkZ_REI98bZYmgys1_4Lp78WI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/UA/uAP0JaNrngunYh6eXxoQoOnuSwIiaAyKIdUioONfKKA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/UR/UrKolBLH7XqIArHGMI1kTqYTVYVG8MDnxUonWAbHbic.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/UX/UXuH-POe7kIsslOmCy4zgwokaG3m6q-PhJNKjjG5LLA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Uj/ujeNdtYye0TeQEX1PhNb5SC95-bIAhmWZ0QeVkErviM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Uk/UKBoDz7jhTz6UAFSDVn-PGbFjUakmCXI_or3nXJXpQg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Up/UpKZOmXn10ia-0XYG3nIiz3Bf1AOecNQnC6LvVJET40.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Up/uprzl8wN8-XJ933s5YtZJRgYTLfSuX84eW3TausO-ZY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/V1/v1VrDU8KbiwX_ct8u6giQg3hDUWPkZt1QpGJsMGzVfo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VB/vBcRgHDojk4hr2ovfdQ4os7TXSF96KqyuLf30dxB-Io.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VC/VCxBe-AvRHpdwOxNd8cO0fpeNZSZO64m1MCYAF75KeA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VL/vLOADtBQh1Yr6DDAKSDkTPuzv0jxFReQ30a7BDQ6aN8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VT/vTFCoA8JnBYOjwovECX22pY_y4UacFbKDsyZFWV_09k.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/V_/v_Nv8aSGDrk_WV6pJvvHZgvK67Mp_wBmmqk7l2kDFeE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Va/vAsgLC-ShdCrpYAglJs5jZDTFPV-n_NXr2u348sae3s.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vd/VDSgsv9nBbOEa1G83fkMNTAvg1wjnmQE4gipIKt7Vog.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vd/vdKj0EZSOPrhl1t4aVg75iPws5RmGkwHeebxjCzUM64.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vr/VrE3DJuOK50wGs1nGlKtXYbkBkaMmMLukBekTewnZGQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/W5/W5xUZj34u_aOvFuxZVRngoUpfl3mOR7xzxOvsGRvBd0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/W8/W8iebjj4-mYdF353m2aK-Fm2RP6I9_EdsVNEnkw7QOw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WE/WESPQtwTqFtz1PE_OAGB7n8t7wc2CGhsFYwNnU4ZL-g.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WI/WiqDRuKLYo8uf8pzbRUXTDOsKVtlBmvPs0L5JBhevFg.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WP/WpSSguAq_nd14y-HVzouUDQqcc4jBe7ISNIdclT5nWo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WP/wpZKMpF3ARQUscGI6AbZU63mrgQD8u-mqqnNyCL6TZw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WS/wSPJN5CtRue5n8rscZCaTf7EhycBlVuAFGm0sg_Fc8M.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Wb/wbcYDm8azLGCO4ei9wNQuaFbuQSTr2Ab7AcENSvhx5o.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Wh/WhupsnVgFBmpFfiIP4fGgIy_UKDLFH8JnjMuqrMTLDE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/X0/X0Mrzs8fWCsHtMI-q0j_zi8UjMa2rKJllnZ7mDtQlUo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/XF/Xfv_lfsDpUZRhlzd8HUPmzZEfSXTe6f4zP7GET3Rm3Q.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xq/XQGAkp0cra7fzeDnzkLVFZCpCan2c4XQ470zLsSg0FI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xt/XTxALgicNCFK4U2umftk0DIieZ87_qHmJIQjjAOur3M.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xu/XukgfJy0Mozgwi160t3xGA0Nt1yFckn9wS3gozRhEWw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Y9/Y9NrWfSlI3zgnluBZzIGM-y1M6FkDHdDJSZxVyXaCOg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YP/Yp5sCa04_XBxFLP042rwi3iZ3t2t_tyfoiWB7SlWNm8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YU/yUdONVHi2el7qoP4MmGIgz0JUWdH1TBtUfttRsR6MAo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YV/Yvt4LWT1pS7nFKxK9O184L2H5Wx3PqiB-WCk_oP0Exs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YV/yVXi3rF2bBxeHIJDxTn8qczRLxqXptlpWePro8ejSFA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YY/yYwHEhYbVFDbXlTPA37ZzbdqJEZwZ-JA74P37NCa5P0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ye/yefps5w9VRrcbW93zsfXlhENAtq1ZmuIx44d7gLfMd4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yl/ylxyDB98weBwMDikgGq_KBIHezTRYRn508bAMxuSWFs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Z6/z6STTJi-v21YnwZtJDb0NQUmM1sVCeuoncBFusRtDrw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZH/zHQ5LgJdSOlDQx7nrSEusl75LOfjifUv5g8BAOlqMgw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZQ/zQGxvi-H4pax7T72xlCtrGhv1nfPFWGdqS4mx0c09CA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZS/ZSTyBi6FkQhYcgl5WICsHFSgzilu1o346D97LrTZi3E.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZS/zSzZnj92VsgDmvBuJdIkng7zlBQp-63mx6e7TabeLyo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZS/zsWtEL0a3MR3Zq05_B8L144CZKSL6-3dXi0i0bHFvwI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Za/Zaq8BMsFOCQ86roNtKD_y0KGNhr8SNzYlsIX8cBpkzs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Zn/ZN0SrKk3bdVY-HLIELyAHJZU8TIhzsCDIDQp6_MC6_U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_O/_OoIizWFn_6IAwfbO8G6H0_S6UueChbmc1UwP5aimU4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_d/_dXeZFdIpRmUEUyUBsCINEj9fLJ_eJF_NG9P8iV-Zgw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_n/_NXZaRPX_oIzSXLTVhiUHydtIDWvkj1WWrSFl-JiWrk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_p/_pba3RUfgCfTZOROnoluEA3QfhSCOIRSP3v53nSoHsI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/a-/a-kDPIxncu66ccBJxRW4HIacVfjJAWijQfUuBCxXIPY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/a5/A5nwVvnKNhFAvMacLOlr2Zwjo6oc6gCv5rb-B0O9mhk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/a6/a6fAkvEc745IoW5e7rfhIw5fdsLuIqjzT6o0Teh9CDE.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/aC/Ac8JE5zkqjgL2skjpz2zaj2w2iJX8vIZBUHh-vFcBNw.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/aL/aL9kB3tk6xuj5FMFVc57n9WJDeXkqaGRnNtITHjQxb4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/aL/aLShYlKi7OCHI-PwFuMVACP3ArvGk4E4Z14XJhxvozg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/a_/a_X3UOeGCMxTWavK41yLoinXgOT7-zCQxr3nSK6xwOY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/az/AZqIo22ufdea0JEr3aMDywABE73h8IgCNZ-a9Qw2f8I.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/b1/B1PZUPnsAaRRNZ_2WhALKp3KuCa3Bk-QLJSvecWtMRo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bD/BdWvccJOMqLN0rwXQJqSdfSYPmmPGhGhEchwElpfJ8s.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bP/BPfH6JX9k4LCRXIZUTFNjb-15V0bYVy2uHF63A4UTVc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bP/bp59tGBzwQ49gjdP4kHPKrpQzTjPt7QNnlr0_HocWs8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bR/bR7dAF5BSOvlgoMBMKe_cOYI4ue6DXEa6c_PMtA1YiI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bT/BtZH_Zk0o374p7gF_G0n4DTkXIEM5DE3RLyOBBSIOEg.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bT/bticGJAGbeKVQGa_wkiZ92G4WVrqni7ZRNLglUGxb-I.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bc/BCEcKsCeEoy_m69h1bsmwxVRx8Ix4CY7Ek9l3WSRI4U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bf/BfqYOdR_EHV36UMqk1CgSdSeQDrNpeP9-IzVsltG4h8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bh/bH6pdAGvaRDD3iH_OPuQf2vIvcaT_ut3VOCpfmHbMX8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bj/bjFROKFA4_OJxoXN2GrrXhobefvLne7e9WX4qF8bJYk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bv/bvMcCG6ucjVR1clMhYe0FE1jK3z6zEGkcGe8EmMatyY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bw/bw-bUPSTHi4-8MjeNj69W-owaX3CUBhsPc6ydi7MocY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bw/bwmMIOZOou6ER8cVVhIyRfF1FysghUQFOv_4WPI4ITU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/by/bYdGcmnWWnSdVTbTqjxAFUrUMOOWocKtJis-GKScKu0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cR/CrlRmfu4fPpv6V0dfWcQYNUJ6ciG-f-gc6wYz7yT6wM.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cR/crrNoKdahh_GJCeMeyO_9RIFkDcESQmVBACgVDejXO8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cT/CTJhwrIQNP6HpmZP1Y6qD95ypWVrRFaopRH_qBDw2Lc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cU/CUtw1FyCxNCJ8Y_MrDhcKBWiRYJ8_7R7F-qu4p-Akg4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cd/cdYOQ66niBDZcJcAO2UDlzkG1WvfKOry1Vqr_sqDxg0.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cx/CxG0TOhmgiZApOMNe6Rwir_SWe60dTm31BNAhi4xk-w.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/d-/d-2MCKhGLUiG1d7aE6_ejRSdaCr7pGQ3LrdLkchEjxw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/d9/D9AqOz-NJbckJ805gk-oR1Z-eyGPx7DAWzBuoMqRNb4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/de/DE8tiV6B9mMgYougtzAaGAv6O3m0e_1IMs_qc0l8LbA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/do/dOZKJAA-y87gPjQdkStrCRM3oDi9R8HNA-EoXzZb7Rk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/do/doI9qAuzLxRGG1PkxdMoV1vLeC3CrA53-qWPg0qEAiM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/dy/DYXNh3oj6lRPqMm_UZYkbcwgXcYy_SsVvJ08JaarrPs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/dz/dzCu3rXwzsnipwrTTUTrwfzcIKMoyFC6C3Xn7MbcIm4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/e3/E36DCyd0rKRqGWf1Hem7YIyjiFNUIQt0C5ynpHKsDmQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/e3/e3IZldquGDcj6msi2n_Mcw0t5tAD6Mve0ziRU1HInI8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eD/eDMvqsUcpEZplB27DcQ3ucQirh4SHRl_1LhbLxPXWAE.cache +115 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eR/ErE923YT8TAqXTdX5EA8TnkkJdu9EpmNekqBzssX2rw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eR/ErhwMExlYakNXWQi9m-wzS-WmeWcYiTuBqqWWSnirEI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eR/eRm-hW__w4VmLY33YT3Ev5cyhgDYz3uYW0Qhc_krnaI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eZ/EZNJafZo0Sfl7cXO7J48m4AjIqjujxagWsv-S1-fZHI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ea/Ea5cfytBab27DwiNzYoRYIgvAV7EzFxd1L9M5bVlr6g.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ea/eALtyPxB2wq2w2MsSd1f6LK9V2oCxe8UDEA_JDfOFjg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eq/EQM6i9d3fd9wdjmrbevUimz6t5IF16tq4krGguNWM7c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/es/esQozvLrY3kyCCH0V8jJv7-6ecmE9ZCzGAFZDcHdUt0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/f-/f-qAQlNZ4-XirQhLpJUBNfEfk_kg9wTlNtT7Tvh66x0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fC/FC2MMcInJBVEvYK5FeMCE6nBiblZDOSmhDtJ4WjH86w.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fF/FfBwQmBdcKxX4QIHXf3pNA3eTTMaBBvRcAWyKZ9QlWs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fP/fpY56VFZ6kZo7wzUCkyIM2ImoNR-D3Afdb_DgkGHNEE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fR/FRMePmSl4pghf9i5ripG2npf3GrPkKQHSjTvIraOd2g.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fe/FEwBMI0fh-YouUmqO_bnB-pWh6-OGlHJHXN9GuwtBDc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fe/fEcNxsFTa9vNxk4IoVMdXeGIdHa0kEs8xFdTEwYIUF0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/g1/g1950AZfTmg6ctw-zKSJRdYLWpoyNehnJZrBRkAVqqY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gJ/GjaPZ-n4KvnCK4-CxH3VVSaPMeXSTehmnZSxnoKRLcY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gV/GvMgSC6JCLyrfOGLhgez9tPTLyJtoQsUfFfRgPF5VIA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gV/gvkVh8FduTAhHp_lvDtN7cqfV655DH8uYyUtqoebSRg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/g_/G_UMciiFbYBmRa1Wm8Pag0Lu8emq7oTab40YCNNG44w.cache +77 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/g_/g_2jyUV_3u63wHGExw2HfI7kKOnnNr3iP7HtPlYfn-w.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gd/GDOpVXK8m75w9j-mP8ktfXEfCyhOcw6q6SgGGINpORk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gm/gMYqt0xPpn_8ry-kjIi3sMgCWyQkYdxzHoQXEgAPkXs.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gu/guMmiAUe6UfpsKu2DABuqjOW9HX6Mmtzf6cJHRbmogw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gu/guc-gaZTD9D-WiuBLrUutjF0V-4LgXyb1z76M-4KPT8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ha/HaPqWJ4JxAGT234PZOrcNyIEa5maZ7djtrLcfjrfub4.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hq/hQuhCi_ma6ag9g0bGh2rIKbhbmVznnubctTn1cLwE78.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hx/hxClHmdwZcFW6_JqmF3MjpZGxIDpfm-OiLM6WNe4LXE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/i0/i0ceVHDR5tyfR0XVIXtUBIaxHTSNfdVHlWksoNpWCPY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/i5/i5NyzzjXJ1HKZimQRZXUQXtEdETP9CJiyrt5lyQfufs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/i7/I73oA6kS7opqxoPkVupBLQ0wa7bPQ0imkHEBGlD41zQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/i7/i7qNuRL_G44HluH6tKUnvqYJZ8LUUX7x5P-2c3iDO4k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/iI/iIY6I9NrAhpT1bzUR1u0mPLVF_gvKxcL1JxJFcO5Wmg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/iP/IPz3WrvYsYrirCsuAXSex3APgN28-Civzakc3eKNkBE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ib/ibxJ4qf4OWhFj_MEP_Jl8YFfNhyMRFWBO2QfGEek6Jw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/in/In5FQepsRBG6_Xr2SWvdiPzOWlH6M-tuvKvzUenhd4k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/iv/IVaJPQbsLuKyiVQkxAbxermO0oQZPFmTBM4k66v5Gzw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/j1/J1mirlphXDpod7Yt-jjbGw6SzUEJ_qcYuaOk60s77jA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/j6/j6ujY_2PbXDHKE_JXnFSqONf5d3nRBfapceU_wLi7Nw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/je/JEzzJ60IFZLv8w4aWDUigXo5qdwYPco2Iz5s8NXzHdE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jj/JJRP0fRbHkl--G4uUTaGr2pJkt7tn260fzgld430j5A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jj/jJtKaT01HLz3JRgCfyxBNdVdso8q_PfpuXOGhXbepxI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jq/jq-I8Pt5ngDgnW1Fdua4EmvrlghuSjpGHGe7oUBRxe0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/k0/k0mNDvgXs1HArQvhuy62fRzIiFgpz9QYNwNFTfUsMbY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kQ/KQJo17w9wlCut3zqoqQhcu63s5QMmDpmpXWZbhMjDfk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kQ/kqXqkzYygr7fnrsEbvJn7RaZKXOr5JwPRu5oU6xGtzA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kY/kyLkWTwLkaBuuhhneZX-S7ujdQLfeR_vnbbVYLMTb74.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kZ/KZQRsEKhox1h91Rfs-P99-V2D_eW2NVqEjQBOde1BQ8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/l6/l6J9pWJ3IwsZXjymzx1SaGyRm321Vx2zCdoY2PBNaE8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/l6/l6xaoNGPByCLz4cn69JM9tjw_Lkg0n7kt908jdoagpM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lF/Lf8VrrCCi3502Rk4C0F3s8YtI1IKRsM7Uf5a_cA79dI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lF/Lfh0V8NXAxqJl4SZyvSCa5lWOxB_cqf2GguIwh0R6v8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lF/lfFC0ZQr1PlvjKQM-rFSaCBgc0lJ0mbHW0nRy4Mrq58.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lW/lWKfa546GK9NtwWZZKYA4LKA5RiX9XoI4xFPAlumAoE.cache +30 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/la/lAsNNtzikl5NElBuOiomRV5Yt1uRLsgc83OXliTax2o.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ll/lLd8fOqgdelT8gKETFbGbhR7KHKTiHkx5fq3tSY88zM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lo/lOARRuBu7U6npKe1lt3c4fLV6zuD6IkhDOkdko50xzw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lr/lRxIMWp3WtzxACWBnLev504Rje231IQrk94h3FzOXw8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lt/LTL68X0ipxJeuZa4m5XsMCDlZ1b3JH7BRxYG75lz7BU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lt/ltFKjWsRX0XAVk_BxRJf_xs_gltZed9cVpcvGT48GfI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lt/ltJonOMeGDnjfbIKRXAEbFZhK2X3HsssNLe1KTzp9Gw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ly/lYWSwGTp9BjldyYCREEBZXJAjVKDNplp0AZOPI0J1KY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/m4/m4-ucoHZW2wrsPbxrkm9WbiIVA3UjdhKqdhZtjF24XY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mO/MO9J2lqZBee_M3N1WynrmNNYdPhdKBv2Q87WIaGfWDo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mO/MoafEQOmFb_BNMw6r-XD7TsrF4jndWbcXRigAK-lyow.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mV/mvFkEDxbZVIYnDp8chv1ZSoypTOuhWNmDPp7cX0os2w.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mY/MYExPfCHrJ7p9wvGuYZ3ItVSXkBYQKBmicmM99nOomw.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mY/MYSGCkiSKbOBDj6xHpizkA9nlqchNhUIctcBoWFSelI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mc/mc-3F8i-Z-F82hWluGZDC_rDlflHVTl7cuEDW2OGM4A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mg/mgi4lhUsIdHq_R1Yp3nUuNRA4CJhgcInAeWhKKiRD58.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mg/mgzNqLgDohw8EeRGbzIRkPwOVQFYxaQ1jIGZinJV2Ho.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mz/mzM3QsuOQwCwhhtr--NpMz0oUXP3bX3_J5ArcK_UkxI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/n8/N8jQPw38Q8RxBiSGxJmclEZsyZd_WnMb_Q4-0gUIF7k.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nQ/nqQZrZ72YvfGqWcb-miU0QJkySDn9L_utk9XRsGX874.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nV/NvlePFjAZHFbJSrKN9ba3lDcawnXyTpw-5g_BJBmbx8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nk/nkZml3QUvdRycjPINbuHaB5hbZHKJQdScsOpdiihySE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/oP/OpZN9qaCpyHLLsTD4cFHUFgcOZDoSmYakbWXZRpojmA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/oR/or05AmVKkecFjRpkG6kzBZGFGcIwYbMeVTXgQWWp-QI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/oX/oXkje7YMOg37G3nkr2c7swJ6weih0r7UIqsZxSh3Pzc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/od/OduNDrzaZNe2olkkg_G8KbZ2aHtRPwS994Imf6x3elw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/od/odrI-Avdkj8Ij2PctjfGcA7MF-kP_x821XKGl1ZK21U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/p2/p2LABPWZoDn2bJwYsK9dT6SyC8q3KIteU9tCJ7tTRI0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pO/PoePaifPNpeifRXwt-Wwhe8lRD8xCkpfVj8J0QVODlg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pO/pOixHvM3rTV2BchLUoeiFBeEzGxTighX6wGsyg1uLto.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pQ/PQMpmOegJq3M9JXB6spP0Q-MkdM35-4fowr5r-fckLE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pV/pv8CaW2pxpC5E3CkMy2IaQ3Lc2PRmK9FKay0AgB0vAw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pY/PYCrsWLHlZEejnuC28zCLiTXiDVyo4cXL-VNmSZ_YNk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pg/pGDzN-0ujBQ0dwxjovBd-iDR5wYpQ1Fn-wqo6DEf7nY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pg/pg9-mUTMonzDAs8tQ8FKRLRsfZcEtPCaCuPcNQvbs5U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pz/PZzmbh0j7ithaCzs_0rf8doTMSZcLdZ9-orpaYnKe_M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pz/PzhWHD6vbuRvbmKrumkVQACZ4eQa-2zb8qtfXzQnfiw.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/q4/q4_FrDquaynQPXWbP2RuZEsaC_2nmy73qGqvIJbL7h0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qC/QCmdvOzSPS0XDniWFL_Y7YT9IePHTJcUO5-WY1qgK1E.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qC/qCQq8hT8NGIybXNlKz-Aei9hu08gQ5Ap18vMkJVrsEk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qC/qCb2M-Hg2-tVMM7K56DnR_TcSDyVXT0nd8eR_AyqxTQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qU/QUmapHgYlztXD7iacgzIul9yxj-qlBJbcfp3RNnsKVg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/q_/Q_MZK6hrAzlJspNmCARWy1I8ZIz6nGMT8U6sl4Tix6E.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/q_/Q_PSkn6nozMKG1sm-Unqlsg6gfCNyv2V3NyzXnn3eFE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qd/qdM6-cN_-DDDLwEXbaW2BHsTkvcoFFNWpDBdrHFov4w.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qv/Qv0VPt5vlaIv2EV-XdgKxefGaxDmSdNRCWWiKVShKd4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qx/qx8soEljkCrA3gzyIA-Y9yTSq0R_5NK24cpGUmdAx-s.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rT/RTWub6y05rCng_zsV4SSmvx5WKKVp6GCi05yXDLxUtc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rb/rbaInDNzCuzfgB8tncI2UeN-PSzQbM3FtuUI_j8G7sw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rp/Rp0lcx6F19qdLcboGcz4v7V8PVlDfojinZIlbhMlbyI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rs/RS8nhBfBTff_6ssrWTGhOJqfNn9U_-qslG3nmY2IuWY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sH/ShJWfNkYvMdZt1lYxWBwgUjJ7KUqlCO-vbNkgyG7h0I.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sl/SLDxTPassv1oTWAhCMVltgIY6K5VFDgbGvFMoSZ4q4k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sl/sLacJ6zJMRLcSANrGCpPfEpY7d0DevxXgkRo0Qo-Qfc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sm/SmF__zCQ2mi7TX2v-GNs6Fcb9VoXSKzvDsy6z3nDjF0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sm/Sm_61boRqFhmNwD7jXTXd9njkLxJNVl2Lcs1GEy6ocs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/st/StSXNfmsklC06LdCdqW9ipLcBxGgVHxigeSjyWQsl60.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/st/StcKj8p_BYSRtaRngWYgpToYrpbnRNhRh-kF-9hy_h0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sz/sZi6jhVSipnznHHxlQ9oH1BUGhjPfF7UcnSaOZviul0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tE/TeAPhbhnlNHhsH-jU6TO4cWydy6SollYNYzYjVeYPV8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tE/TeWpuMiOugLkUpkA0pYhZ6jAeXbbWsXJSgjbqWykMXM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tE/tEWrWNVasmhzsOLAELXUXjw7Y6refwSLQIcrHMnrhaU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tO/ToNejZNDJdiYXhCUSd2ZmRRWJU64N5S17hAx98882iE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tp/TPiKcmCR3qsLmkRUbobjnS3ddsdZO4bI-i08pelOOFE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tv/TVwzI99fZgz93hjupGIzyLeO8TNzxVwKWKGCxSpCjmU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tv/tvh_-DODi0LSCEDQqXf55p7BBJll45XENM7xLU_s-Qc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tx/TX0njKsCQCjjkANo7-MaSIA9FkhylD8JQ3SUwUdN2uc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tx/txxNao2m7H8NfM-f9yUkQAiABhFgL4t0dyGDGhMBveg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/u-/u-PfGYjtUQq7VJN-4DJqhdk07MDc6D3BVDZJGUeQUL4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/u2/u258kOuk2_3GOfehoTdYzV0F-3AKo5tcBfG2zdlTT4o.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/u5/u5byZhy5zDFsLwDA-hTFktxpkwkSoCdNHYC2Bp3nvus.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uQ/UQIO70lrt30dtRt3xl3dCEY-2LL2gVV14X4OQAl4_KU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uS/uSz505kJR7DG3BF3CvU8INf2yo_tkx1dQXwVcO7Vp8Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/u_/u_W-BhWcgZK1yob96XRs2Jk4TkRR4TDLZ_RIK76uQVU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ue/Uebom6qIV1z23jqEEyJmrR51MLLV2-gN74OOCVbqW4I.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uh/uHX8tEFkDMGVxlZPzyids3Br4GpiCgsZDkOq9Ys-QIU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/un/UNK8LjceoHhD-xR3nCLfETDlBy7sp2CJGIfJ7pWe4yw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/un/uN0bqUKcqYZcuNoymm5muuY4rHRjb6dXv8Q5TnHPcaQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uw/UwD2N8d0KF4N2UevNBMUNd6q_kawmfLTakkkJpbrLWE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uw/uWY64N9HgRFS2ZSJEA4HPA0ngxokItFuU7nCxQYBJZA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vF/VFy-Ie8GwSJKw26NrPOGfSOF3FMXThcD3thp_8d87bQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vF/VfcgF5lImZzb1yVKJ2HKDnD7mlCpQ9w5_quHBN3bi8U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vZ/Vz4w8vkgM7UZLDNH55Fu443oazCQoh6_iJ7IgBKN6zQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vh/VhjXHILUq42RCoIoglxTMVa-Ty7lXpUndO3NCG3cols.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vw/vWdJuJDekJ-RO2lrwKl4LblMZX2n8VUswW8NANUP9Ks.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/w2/w2EdLAngJaNLKIKHkKRYQY_2qAAKlvsVxQaSU4r4vYw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wm/wmKfK5vcKI0MDrzvOgxTjsnAiBrQbZiahOd9weyB0H8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wt/WT4Vxqs_Ttus4Hz_ej28zLJdmh9_YSWmfdBy98AOO2w.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/x1/x1wPEu5AHLmy7oMpki8-Hru1GLNKWQapXmD5lWjjF-4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/x2/x2QC3FYYf9OsevcFCHxCIbOEjGNvNdOl4ZqMITfAGTg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xG/xGEIlxBbBMTaU26tPzVgGgC2qBJCz2GS_9fg7RSPja8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xW/xWLcRmTI-H5UiaqF3OvvdzxJPQR5DMkclOeRzdQIDS8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xb/Xbp-AjSGfYyCrvQZjPCVIC3rHCuF10pZ_I9RN7moevA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xm/XmHLfzjnhsBWd9ZTEp7f1ic3gLNarLX6xVB6CIkGJss.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xm/XmMUWeeWmJ01ALwyEKSExvVYzt6nuSVJcN_Lx-Eq-lM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xv/XvTZByjr_jNA1AYz-ZphjP4LCNvolukeqTVM_9j5y1Y.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xy/XYzUjPc1iFKdl7Pq2RQfZogznxyxcjwIpTEcY_KJ6nQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xz/xZhf6D9Xc5Si0LuW1TkVwqtVFmQtMCr7Puex-JZeX3M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/y6/y6kteAwFNT97CYWD3VZY2VS3gyNLd7EpeB_YE_tCWQI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yK/Yk0v1a7sVNenHoMcDa3gzAatbJAit1QS4v8jObFe3T8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yK/Yke5FGhEqtWdKhLcN7gxgwTOyS7hijV2kBV8JtY4J5M.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yT/ytySi0UFSkYjLvArG0rNyDHrSM1EdWnsbFqNGJ5NvAs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ya/yAzu1Wuq4ASE_dVh41ng_OBiGWYGhOpsCCsqQ7Vjokw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yb/YBn5HeBm7q9N5bVtH5Tw7mrzOXwL9U8kU04R6PK5vOM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yc/YcCXrxd6mKZHM0muWAhtYEaDt3W6U-yje0oRvFKcGPg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yf/yfO8nERkukWbbJOl0AX66dW_sR76YsNmaUzXi6HpimI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zU/zUMROWCWViFPXFXgl7h7douqiZD0hMkKbaHgEGwfK9s.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zY/zYPgm8IFPfXhbjthWex7neSWG4vAoeZ9UCJG94h9BGk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/z_/z_gI96ZUO2CEpf0WpXJGIN3SOpzNuf4CUD-2myvL-p4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zm/ZMzE_ZDeJuvRCp_QTh2nLEE6gsEc107xjJu5RGIeMtU.cache +1 -0
- metadata +3970 -3012
@@ -1,2931 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
IdentityMap: null,
|
4
|
-
Wire: null,
|
5
|
-
Line: null,
|
6
|
-
Env: {
|
7
|
-
loco: null,
|
8
|
-
namespaceController: null,
|
9
|
-
controller: null,
|
10
|
-
action: null,
|
11
|
-
scope: null
|
12
|
-
},
|
13
|
-
Mix: null,
|
14
|
-
Mixins: {},
|
15
|
-
UI: {},
|
16
|
-
Controllers: {},
|
17
|
-
Models: {},
|
18
|
-
Views: {},
|
19
|
-
Services: {},
|
20
|
-
Helpers: {},
|
21
|
-
Presenters: {},
|
22
|
-
Validators: {},
|
23
|
-
I18n: {},
|
24
|
-
Utils: {},
|
25
|
-
Channels: {
|
26
|
-
Loco: {}
|
27
|
-
}
|
28
|
-
};
|
29
|
-
|
30
|
-
var slice = [].slice,
|
31
|
-
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
32
|
-
hasProp = {}.hasOwnProperty;
|
33
|
-
|
34
|
-
App.Mix = function() {
|
35
|
-
var Mixed, base, i, method, mixin, mixins, name, ref;
|
36
|
-
base = arguments[0], mixins = 2 <= arguments.length ? slice.call(arguments, 1) : [];
|
37
|
-
Mixed = (function(superClass) {
|
38
|
-
extend(Mixed, superClass);
|
39
|
-
|
40
|
-
function Mixed() {
|
41
|
-
return Mixed.__super__.constructor.apply(this, arguments);
|
42
|
-
}
|
43
|
-
|
44
|
-
return Mixed;
|
45
|
-
|
46
|
-
})(base);
|
47
|
-
for (i = mixins.length - 1; i >= 0; i += -1) {
|
48
|
-
mixin = mixins[i];
|
49
|
-
ref = mixin.prototype;
|
50
|
-
for (name in ref) {
|
51
|
-
method = ref[name];
|
52
|
-
Mixed.prototype[name] = method;
|
53
|
-
}
|
54
|
-
}
|
55
|
-
return Mixed;
|
56
|
-
};
|
57
|
-
|
58
|
-
App.IdentityMap = (function() {
|
59
|
-
function IdentityMap() {}
|
60
|
-
|
61
|
-
IdentityMap.imap = {};
|
62
|
-
|
63
|
-
IdentityMap.clear = function() {
|
64
|
-
return this.imap = {};
|
65
|
-
};
|
66
|
-
|
67
|
-
IdentityMap.add = function(obj) {
|
68
|
-
var identity;
|
69
|
-
identity = obj.getIdentity();
|
70
|
-
if (this.imap[identity] == null) {
|
71
|
-
this.imap[identity] = {};
|
72
|
-
}
|
73
|
-
if (this.imap[identity][obj.id] == null) {
|
74
|
-
this.imap[identity][obj.id] = [];
|
75
|
-
}
|
76
|
-
return this.imap[identity][obj.id][0] = obj;
|
77
|
-
};
|
78
|
-
|
79
|
-
IdentityMap.connect = function(obj, opts) {
|
80
|
-
var model;
|
81
|
-
if (opts == null) {
|
82
|
-
opts = {};
|
83
|
-
}
|
84
|
-
model = opts["with"];
|
85
|
-
this.add(model);
|
86
|
-
return this.imap[model.getIdentity()][model.id].push(obj);
|
87
|
-
};
|
88
|
-
|
89
|
-
IdentityMap.addCollection = function(identity, opts) {
|
90
|
-
if (opts == null) {
|
91
|
-
opts = {};
|
92
|
-
}
|
93
|
-
if (this.imap[identity] == null) {
|
94
|
-
this.imap[identity] = {};
|
95
|
-
}
|
96
|
-
if (this.imap[identity]["collection"] == null) {
|
97
|
-
this.imap[identity]["collection"] = [];
|
98
|
-
}
|
99
|
-
if (this.imap[identity]["collection"].indexOf(opts.to) !== -1) {
|
100
|
-
return;
|
101
|
-
}
|
102
|
-
return this.imap[identity]["collection"].push(opts.to);
|
103
|
-
};
|
104
|
-
|
105
|
-
IdentityMap.all = function(identity) {
|
106
|
-
var arr, id, objs, ref;
|
107
|
-
if (this.imap[identity] == null) {
|
108
|
-
return null;
|
109
|
-
}
|
110
|
-
arr = [];
|
111
|
-
ref = this.imap[identity];
|
112
|
-
for (id in ref) {
|
113
|
-
objs = ref[id];
|
114
|
-
if (id === "collection") {
|
115
|
-
continue;
|
116
|
-
}
|
117
|
-
arr.push(objs[0]);
|
118
|
-
}
|
119
|
-
return arr;
|
120
|
-
};
|
121
|
-
|
122
|
-
IdentityMap.find = function(klass, id) {
|
123
|
-
if (this.imap[klass] && this.imap[klass][id]) {
|
124
|
-
return this.imap[klass][id][0];
|
125
|
-
} else {
|
126
|
-
return null;
|
127
|
-
}
|
128
|
-
};
|
129
|
-
|
130
|
-
IdentityMap.findConnected = function(klass, id) {
|
131
|
-
var arr;
|
132
|
-
if (this.imap[klass] && this.imap[klass][id] && this.imap[klass][id].length > 1) {
|
133
|
-
arr = this.imap[klass][id];
|
134
|
-
return arr.slice(1, +(arr.length - 1) + 1 || 9e9);
|
135
|
-
} else {
|
136
|
-
return [];
|
137
|
-
}
|
138
|
-
};
|
139
|
-
|
140
|
-
return IdentityMap;
|
141
|
-
|
142
|
-
})();
|
143
|
-
|
144
|
-
App.Wire = (function() {
|
145
|
-
function Wire(opts) {
|
146
|
-
var ref, ref1, ref2, ref3;
|
147
|
-
if (opts == null) {
|
148
|
-
opts = {};
|
149
|
-
}
|
150
|
-
this.syncTime = null;
|
151
|
-
this.token = null;
|
152
|
-
this.pollingInterval = null;
|
153
|
-
this.pollingTime = (ref = opts.pollingTime) != null ? ref : 3000;
|
154
|
-
this.log = (opts.log != null) && opts.log ? true : false;
|
155
|
-
this.ssl = opts.ssl;
|
156
|
-
this.location = (ref1 = opts.location) != null ? ref1 : 'notification-center';
|
157
|
-
this.size = (ref2 = opts.size) != null ? ref2 : 100;
|
158
|
-
this.protocolWithHost = opts.protocolWithHost;
|
159
|
-
this.allowedDisconnectionTime = (ref3 = opts.allowedDisconnectionTime) != null ? ref3 : 10;
|
160
|
-
this.disconnectedSinceTime = null;
|
161
|
-
this.uuid = null;
|
162
|
-
this.delayedDisconnection = false;
|
163
|
-
}
|
164
|
-
|
165
|
-
Wire.prototype.setToken = function(token) {
|
166
|
-
return this.token = token;
|
167
|
-
};
|
168
|
-
|
169
|
-
Wire.prototype.getSyncTime = function() {
|
170
|
-
return this.syncTime;
|
171
|
-
};
|
172
|
-
|
173
|
-
Wire.prototype.setSyncTime = function(val) {
|
174
|
-
return this.syncTime = val;
|
175
|
-
};
|
176
|
-
|
177
|
-
Wire.prototype.resetSyncTime = function() {
|
178
|
-
return this.syncTime = null;
|
179
|
-
};
|
180
|
-
|
181
|
-
Wire.prototype.getPollingTime = function() {
|
182
|
-
return this.pollingTime;
|
183
|
-
};
|
184
|
-
|
185
|
-
Wire.prototype.setPollingTime = function(val) {
|
186
|
-
this.pollingTime = val;
|
187
|
-
this.disconnect();
|
188
|
-
return this.connect();
|
189
|
-
};
|
190
|
-
|
191
|
-
Wire.prototype.getPollingInterval = function() {
|
192
|
-
return this.pollingInterval;
|
193
|
-
};
|
194
|
-
|
195
|
-
Wire.prototype.getSSL = function() {
|
196
|
-
return this.ssl;
|
197
|
-
};
|
198
|
-
|
199
|
-
Wire.prototype.setSSL = function(val) {
|
200
|
-
return this.ssl = val;
|
201
|
-
};
|
202
|
-
|
203
|
-
Wire.prototype.getLocation = function() {
|
204
|
-
return this.location;
|
205
|
-
};
|
206
|
-
|
207
|
-
Wire.prototype.setLocation = function(val) {
|
208
|
-
return this.location = val;
|
209
|
-
};
|
210
|
-
|
211
|
-
Wire.prototype.getSize = function() {
|
212
|
-
return this.size;
|
213
|
-
};
|
214
|
-
|
215
|
-
Wire.prototype.setSize = function(val) {
|
216
|
-
return this.size = val;
|
217
|
-
};
|
218
|
-
|
219
|
-
Wire.prototype.getAllowedDisconnectionTime = function() {
|
220
|
-
return this.allowedDisconnectionTime;
|
221
|
-
};
|
222
|
-
|
223
|
-
Wire.prototype.setAllowedDisconnectionTime = function(val) {
|
224
|
-
return this.allowedDisconnectionTime = val;
|
225
|
-
};
|
226
|
-
|
227
|
-
Wire.prototype.getUuid = function() {
|
228
|
-
return this.uuid;
|
229
|
-
};
|
230
|
-
|
231
|
-
Wire.prototype.setUuid = function(val) {
|
232
|
-
return this.uuid = val;
|
233
|
-
};
|
234
|
-
|
235
|
-
Wire.prototype.setDelayedDisconnection = function() {
|
236
|
-
return this.delayedDisconnection = true;
|
237
|
-
};
|
238
|
-
|
239
|
-
Wire.prototype.connect = function() {
|
240
|
-
var line;
|
241
|
-
line = App.Env.loco.getLine();
|
242
|
-
if ((line != null) && !line.isWireAllowed()) {
|
243
|
-
return;
|
244
|
-
}
|
245
|
-
return this.pollingInterval = setInterval((function(_this) {
|
246
|
-
return function() {
|
247
|
-
_this.check();
|
248
|
-
if (_this.delayedDisconnection) {
|
249
|
-
_this.delayedDisconnection = false;
|
250
|
-
return _this.disconnect();
|
251
|
-
}
|
252
|
-
};
|
253
|
-
})(this), this.pollingTime);
|
254
|
-
};
|
255
|
-
|
256
|
-
Wire.prototype.disconnect = function() {
|
257
|
-
return window.clearInterval(this.pollingInterval);
|
258
|
-
};
|
259
|
-
|
260
|
-
Wire.prototype.disableNotifications = function() {
|
261
|
-
console.log('App.Wire#disableNotifications - DEPRECATED');
|
262
|
-
return this.disconnect();
|
263
|
-
};
|
264
|
-
|
265
|
-
Wire.prototype.processNotification = function(notification) {
|
266
|
-
var className, id, identity, model, obj, payload, signal;
|
267
|
-
if (this.log) {
|
268
|
-
console.log(notification);
|
269
|
-
}
|
270
|
-
className = notification[0], id = notification[1], signal = notification[2], payload = notification[3];
|
271
|
-
model = App.Env.loco.getModelForRemoteName(className);
|
272
|
-
identity = model.getIdentity();
|
273
|
-
if (App.IdentityMap.imap[identity] == null) {
|
274
|
-
return;
|
275
|
-
}
|
276
|
-
if (App.IdentityMap.imap[identity][id] != null) {
|
277
|
-
obj = App.IdentityMap.find(identity, id);
|
278
|
-
if (obj["receivedSignal"] != null) {
|
279
|
-
obj.receivedSignal(signal, payload);
|
280
|
-
}
|
281
|
-
this._emitSignalToMembers(id, signal, payload, model, identity);
|
282
|
-
}
|
283
|
-
if (model["receivedSignal"] != null) {
|
284
|
-
model.receivedSignal(signal, payload);
|
285
|
-
}
|
286
|
-
if (App.IdentityMap.imap[identity]["collection"] == null) {
|
287
|
-
return;
|
288
|
-
}
|
289
|
-
if (App.IdentityMap.imap[identity]["collection"].length === 0) {
|
290
|
-
return;
|
291
|
-
}
|
292
|
-
return this._emitSignalToCollection(signal, payload, identity);
|
293
|
-
};
|
294
|
-
|
295
|
-
Wire.prototype.processSignal = function(notification) {
|
296
|
-
return this.processNotification(notification);
|
297
|
-
};
|
298
|
-
|
299
|
-
Wire.prototype.check = function() {
|
300
|
-
var request;
|
301
|
-
if (Object.keys(App.IdentityMap.imap).length === 0 && (this.token == null) && (this.syncTime != null)) {
|
302
|
-
return;
|
303
|
-
}
|
304
|
-
request = new XMLHttpRequest();
|
305
|
-
request.open('GET', this._getURL() + '?' + App.Utils.Object.toURIParams(this._requestParams()));
|
306
|
-
request.onload = (function(_this) {
|
307
|
-
return function(e) {
|
308
|
-
var data, i, len, notification, notifications;
|
309
|
-
if (e.target.status >= 200 && e.target.status < 400) {
|
310
|
-
data = JSON.parse(e.target.response);
|
311
|
-
_this.disconnectedSinceTime = null;
|
312
|
-
_this.syncTime = data[1];
|
313
|
-
notifications = data[0];
|
314
|
-
if (notifications.length === 0) {
|
315
|
-
return;
|
316
|
-
}
|
317
|
-
for (i = 0, len = notifications.length; i < len; i++) {
|
318
|
-
notification = notifications[i];
|
319
|
-
_this.processNotification(notification);
|
320
|
-
}
|
321
|
-
if (notifications.length === _this.size) {
|
322
|
-
return _this.check();
|
323
|
-
}
|
324
|
-
} else if (e.target.status >= 500) {
|
325
|
-
return _this._handleDisconnection();
|
326
|
-
}
|
327
|
-
};
|
328
|
-
})(this);
|
329
|
-
request.onerror = (function(_this) {
|
330
|
-
return function() {
|
331
|
-
return _this._handleDisconnection();
|
332
|
-
};
|
333
|
-
})(this);
|
334
|
-
return request.send();
|
335
|
-
};
|
336
|
-
|
337
|
-
Wire.prototype.fetchSyncTime = function(opts) {
|
338
|
-
var request;
|
339
|
-
if (opts == null) {
|
340
|
-
opts = {};
|
341
|
-
}
|
342
|
-
request = new XMLHttpRequest();
|
343
|
-
request.open('GET', (this._getURL()) + "/sync-time");
|
344
|
-
request.onerror = (function(_this) {
|
345
|
-
return function() {
|
346
|
-
if (opts.after != null) {
|
347
|
-
return _this[opts.after]();
|
348
|
-
}
|
349
|
-
};
|
350
|
-
})(this);
|
351
|
-
request.onload = (function(_this) {
|
352
|
-
return function(e) {
|
353
|
-
var data;
|
354
|
-
if (e.target.status >= 200 && e.target.status < 400) {
|
355
|
-
data = JSON.parse(e.target.response);
|
356
|
-
_this.syncTime = data.sync_time;
|
357
|
-
if (opts.after != null) {
|
358
|
-
return _this[opts.after]();
|
359
|
-
}
|
360
|
-
} else if (e.target.status >= 500) {
|
361
|
-
if (opts.after != null) {
|
362
|
-
return _this[opts.after]();
|
363
|
-
}
|
364
|
-
}
|
365
|
-
};
|
366
|
-
})(this);
|
367
|
-
return request.send();
|
368
|
-
};
|
369
|
-
|
370
|
-
Wire.prototype._emitSignalToMembers = function(id, signal, payload, model, identity, obj) {
|
371
|
-
var connObj, i, len, ref, results;
|
372
|
-
if (obj == null) {
|
373
|
-
obj = null;
|
374
|
-
}
|
375
|
-
if (obj == null) {
|
376
|
-
obj = new model({
|
377
|
-
id: id
|
378
|
-
});
|
379
|
-
}
|
380
|
-
ref = App.IdentityMap.findConnected(identity, id);
|
381
|
-
results = [];
|
382
|
-
for (i = 0, len = ref.length; i < len; i++) {
|
383
|
-
connObj = ref[i];
|
384
|
-
if (connObj.receiverFor(obj) != null) {
|
385
|
-
results.push(connObj[connObj.receiverFor(obj)](signal, payload));
|
386
|
-
} else if (connObj["receivedSignal"] != null) {
|
387
|
-
results.push(connObj.receivedSignal(signal, payload));
|
388
|
-
} else {
|
389
|
-
results.push(void 0);
|
390
|
-
}
|
391
|
-
}
|
392
|
-
return results;
|
393
|
-
};
|
394
|
-
|
395
|
-
Wire.prototype._emitSignalToCollection = function(signal, payload, identity) {
|
396
|
-
var i, len, obj, ref, results;
|
397
|
-
ref = App.IdentityMap.imap[identity]["collection"];
|
398
|
-
results = [];
|
399
|
-
for (i = 0, len = ref.length; i < len; i++) {
|
400
|
-
obj = ref[i];
|
401
|
-
if (obj.receiverFor(identity) != null) {
|
402
|
-
results.push(obj[obj.receiverFor(identity)](identity + " " + signal, payload));
|
403
|
-
} else if (obj["receivedSignal"] != null) {
|
404
|
-
results.push(obj.receivedSignal(identity + " " + signal, payload));
|
405
|
-
} else {
|
406
|
-
results.push(void 0);
|
407
|
-
}
|
408
|
-
}
|
409
|
-
return results;
|
410
|
-
};
|
411
|
-
|
412
|
-
Wire.prototype._requestParams = function() {
|
413
|
-
var params;
|
414
|
-
params = {
|
415
|
-
synced_at: this.syncTime
|
416
|
-
};
|
417
|
-
if (this.token != null) {
|
418
|
-
params.token = this.token;
|
419
|
-
}
|
420
|
-
if (this.uuid != null) {
|
421
|
-
params.uuid = this.uuid;
|
422
|
-
}
|
423
|
-
return params;
|
424
|
-
};
|
425
|
-
|
426
|
-
Wire.prototype._getURL = function() {
|
427
|
-
var _, host, protocol, ref, ref1;
|
428
|
-
ref = window.location.href.split('/'), protocol = ref[0], _ = ref[1], host = ref[2];
|
429
|
-
if (this.protocolWithHost != null) {
|
430
|
-
ref1 = this.protocolWithHost.split('//'), protocol = ref1[0], host = ref1[1];
|
431
|
-
}
|
432
|
-
if (this.ssl != null) {
|
433
|
-
protocol = this.ssl ? 'https:' : "http:";
|
434
|
-
}
|
435
|
-
return protocol + "//" + host + "/" + this.location;
|
436
|
-
};
|
437
|
-
|
438
|
-
Wire.prototype._handleDisconnection = function() {
|
439
|
-
var ctrl, diffInSec, ref;
|
440
|
-
if (this.disconnectedSinceTime == null) {
|
441
|
-
this.disconnectedSinceTime = new Date();
|
442
|
-
}
|
443
|
-
diffInSec = (new Date() - this.disconnectedSinceTime) / 1000;
|
444
|
-
ctrl = (ref = App.Env.namespaceController) != null ? ref : App.Env.controller;
|
445
|
-
if (diffInSec > this.allowedDisconnectionTime && (ctrl['disconnectedForTooLong'] != null)) {
|
446
|
-
return ctrl.disconnectedForTooLong(this.disconnectedSinceTime);
|
447
|
-
}
|
448
|
-
};
|
449
|
-
|
450
|
-
return Wire;
|
451
|
-
|
452
|
-
})();
|
453
|
-
|
454
|
-
App.Line = (function() {
|
455
|
-
function Line(opts) {
|
456
|
-
if (opts == null) {
|
457
|
-
opts = {};
|
458
|
-
}
|
459
|
-
this.connected = false;
|
460
|
-
}
|
461
|
-
|
462
|
-
Line.prototype.connect = function() {
|
463
|
-
return App.Channels.Loco.NotificationCenter = App.cable.subscriptions.create({
|
464
|
-
channel: "Loco::NotificationCenterChannel"
|
465
|
-
}, {
|
466
|
-
connected: (function(_this) {
|
467
|
-
return function() {
|
468
|
-
var wire;
|
469
|
-
console.log('ws connected');
|
470
|
-
_this.connected = true;
|
471
|
-
wire = App.Env.loco.getWire();
|
472
|
-
if (wire != null) {
|
473
|
-
wire.setDelayedDisconnection();
|
474
|
-
}
|
475
|
-
return _this._sendNotification({
|
476
|
-
loco: 'connected'
|
477
|
-
});
|
478
|
-
};
|
479
|
-
})(this),
|
480
|
-
disconnected: (function(_this) {
|
481
|
-
return function() {
|
482
|
-
var wire;
|
483
|
-
console.log('ws disconnected');
|
484
|
-
_this.connected = false;
|
485
|
-
wire = App.Env.loco.getWire();
|
486
|
-
if (wire != null) {
|
487
|
-
wire.setUuid(null);
|
488
|
-
wire.fetchSyncTime({
|
489
|
-
after: 'connect'
|
490
|
-
});
|
491
|
-
}
|
492
|
-
return _this._sendNotification({
|
493
|
-
loco: 'disconnected'
|
494
|
-
});
|
495
|
-
};
|
496
|
-
})(this),
|
497
|
-
rejected: (function(_this) {
|
498
|
-
return function() {
|
499
|
-
console.log('ws rejected');
|
500
|
-
return _this._sendNotification({
|
501
|
-
loco: 'rejected'
|
502
|
-
});
|
503
|
-
};
|
504
|
-
})(this),
|
505
|
-
received: (function(_this) {
|
506
|
-
return function(data) {
|
507
|
-
if (data.loco != null) {
|
508
|
-
_this._processSystemNotification(data.loco);
|
509
|
-
delete data.loco;
|
510
|
-
}
|
511
|
-
if (Object.keys(data).length === 0) {
|
512
|
-
return;
|
513
|
-
}
|
514
|
-
return _this._sendNotification(data);
|
515
|
-
};
|
516
|
-
})(this)
|
517
|
-
});
|
518
|
-
};
|
519
|
-
|
520
|
-
Line.prototype.isWireAllowed = function() {
|
521
|
-
return !this.connected;
|
522
|
-
};
|
523
|
-
|
524
|
-
Line.prototype.send = function(data) {
|
525
|
-
return App.Channels.Loco.NotificationCenter.send(data);
|
526
|
-
};
|
527
|
-
|
528
|
-
Line.prototype._processSystemNotification = function(data) {
|
529
|
-
var wire;
|
530
|
-
if (data.connection_check != null) {
|
531
|
-
this.send({
|
532
|
-
loco: {
|
533
|
-
connection_check: true
|
534
|
-
}
|
535
|
-
});
|
536
|
-
}
|
537
|
-
wire = App.Env.loco.getWire();
|
538
|
-
if (wire == null) {
|
539
|
-
return;
|
540
|
-
}
|
541
|
-
if (data.sync_time != null) {
|
542
|
-
wire.setSyncTime(data.sync_time);
|
543
|
-
}
|
544
|
-
if (data.uuid != null) {
|
545
|
-
console.log("uuid: " + data.uuid);
|
546
|
-
wire.setUuid(data.uuid);
|
547
|
-
}
|
548
|
-
if (data.notification != null) {
|
549
|
-
wire.processNotification(data.notification);
|
550
|
-
}
|
551
|
-
if (data.xhr_notifications != null) {
|
552
|
-
wire.check();
|
553
|
-
}
|
554
|
-
if (data.start_ajax_polling) {
|
555
|
-
console.log("wire connected");
|
556
|
-
this.connected = null;
|
557
|
-
wire.setUuid(null);
|
558
|
-
return wire.fetchSyncTime({
|
559
|
-
after: 'connect'
|
560
|
-
});
|
561
|
-
}
|
562
|
-
};
|
563
|
-
|
564
|
-
Line.prototype._sendNotification = function(data) {
|
565
|
-
var notificationCenter;
|
566
|
-
notificationCenter = new App.Services.NotificationCenter;
|
567
|
-
return notificationCenter.receivedSignal(data);
|
568
|
-
};
|
569
|
-
|
570
|
-
return Line;
|
571
|
-
|
572
|
-
})();
|
573
|
-
|
574
|
-
App.Loco = (function() {
|
575
|
-
function Loco(opts) {
|
576
|
-
var notificationsParams, ref, ref1, ref2, ref3;
|
577
|
-
if (opts == null) {
|
578
|
-
opts = {};
|
579
|
-
}
|
580
|
-
this.wire = null;
|
581
|
-
this.line = null;
|
582
|
-
this.locale = null;
|
583
|
-
this.turbolinks = (ref = opts.turbolinks) != null ? ref : false;
|
584
|
-
this.startWire = ((ref1 = opts.notifications) != null ? ref1.enable : void 0) ? true : false;
|
585
|
-
this.postInit = opts.postInit;
|
586
|
-
this.setLocale((ref2 = opts.locale) != null ? ref2 : 'en');
|
587
|
-
this.setProtocolWithHost(opts.protocolWithHost);
|
588
|
-
notificationsParams = (ref3 = opts.notifications) != null ? ref3 : {};
|
589
|
-
notificationsParams.protocolWithHost = this.protocolWithHost;
|
590
|
-
this.notificationsParams = notificationsParams;
|
591
|
-
}
|
592
|
-
|
593
|
-
Loco.prototype.getWire = function() {
|
594
|
-
return this.wire;
|
595
|
-
};
|
596
|
-
|
597
|
-
Loco.prototype.getLine = function() {
|
598
|
-
return this.line;
|
599
|
-
};
|
600
|
-
|
601
|
-
Loco.prototype.getLocale = function() {
|
602
|
-
return this.locale;
|
603
|
-
};
|
604
|
-
|
605
|
-
Loco.prototype.setLocale = function(locale) {
|
606
|
-
return this.locale = locale;
|
607
|
-
};
|
608
|
-
|
609
|
-
Loco.prototype.getProtocolWithHost = function() {
|
610
|
-
return this.protocolWithHost;
|
611
|
-
};
|
612
|
-
|
613
|
-
Loco.prototype.setProtocolWithHost = function(val) {
|
614
|
-
if (val == null) {
|
615
|
-
this.protocolWithHost = null;
|
616
|
-
return;
|
617
|
-
}
|
618
|
-
if (val[val.length - 1] === '/') {
|
619
|
-
val = val.slice(0, +(val.length - 2) + 1 || 9e9);
|
620
|
-
}
|
621
|
-
return this.protocolWithHost = val;
|
622
|
-
};
|
623
|
-
|
624
|
-
Loco.prototype.init = function() {
|
625
|
-
var event;
|
626
|
-
App.Env.loco = this;
|
627
|
-
this.initWire();
|
628
|
-
this.initLine();
|
629
|
-
if (this.turbolinks) {
|
630
|
-
event = Number(this.turbolinks) >= 5 ? "turbolinks:load" : "page:change";
|
631
|
-
return document.addEventListener(event, (function(_this) {
|
632
|
-
return function() {
|
633
|
-
_this.flow();
|
634
|
-
if (_this.postInit != null) {
|
635
|
-
return _this.postInit();
|
636
|
-
}
|
637
|
-
};
|
638
|
-
})(this));
|
639
|
-
} else {
|
640
|
-
return this.ready((function(_this) {
|
641
|
-
return function() {
|
642
|
-
_this.flow();
|
643
|
-
if (_this.postInit != null) {
|
644
|
-
return _this.postInit();
|
645
|
-
}
|
646
|
-
};
|
647
|
-
})(this));
|
648
|
-
}
|
649
|
-
};
|
650
|
-
|
651
|
-
Loco.prototype.ready = function(fn) {
|
652
|
-
var cond;
|
653
|
-
cond = document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading";
|
654
|
-
if (cond) {
|
655
|
-
return fn();
|
656
|
-
} else {
|
657
|
-
return document.addEventListener('DOMContentLoaded', fn);
|
658
|
-
}
|
659
|
-
};
|
660
|
-
|
661
|
-
Loco.prototype.initWire = function() {
|
662
|
-
if (!this.startWire) {
|
663
|
-
return;
|
664
|
-
}
|
665
|
-
this.wire = new App.Wire(this.notificationsParams);
|
666
|
-
return this.wire.fetchSyncTime({
|
667
|
-
after: 'connect'
|
668
|
-
});
|
669
|
-
};
|
670
|
-
|
671
|
-
Loco.prototype.initLine = function() {
|
672
|
-
if (App.cable == null) {
|
673
|
-
return;
|
674
|
-
}
|
675
|
-
this.line = new App.Line;
|
676
|
-
return this.line.connect();
|
677
|
-
};
|
678
|
-
|
679
|
-
Loco.prototype.flow = function() {
|
680
|
-
var action_name, controller_name, namespace_name;
|
681
|
-
App.IdentityMap.clear();
|
682
|
-
namespace_name = document.getElementsByTagName('body')[0].getAttribute('data-namespace');
|
683
|
-
controller_name = document.getElementsByTagName('body')[0].getAttribute('data-controller');
|
684
|
-
action_name = document.getElementsByTagName('body')[0].getAttribute('data-action');
|
685
|
-
App.Env.action = action_name;
|
686
|
-
if (App.Controllers[namespace_name] != null) {
|
687
|
-
App.Env.namespaceController = new App.Controllers[namespace_name];
|
688
|
-
if (App.Controllers[namespace_name][controller_name] != null) {
|
689
|
-
App.Env.controller = new App.Controllers[namespace_name][controller_name];
|
690
|
-
}
|
691
|
-
if (App.Env.namespaceController.initialize != null) {
|
692
|
-
App.Env.namespaceController.initialize();
|
693
|
-
}
|
694
|
-
if (App.Env.controller != null) {
|
695
|
-
App.Env.namespaceController.setSubController(App.Env.controller);
|
696
|
-
App.Env.controller.setSuperController(App.Env.namespaceController);
|
697
|
-
if (App.Env.controller.initialize != null) {
|
698
|
-
App.Env.controller.initialize();
|
699
|
-
}
|
700
|
-
if (App.Env.controller[action_name] != null) {
|
701
|
-
App.Env.controller[action_name]();
|
702
|
-
}
|
703
|
-
}
|
704
|
-
} else if (App.Controllers[controller_name]) {
|
705
|
-
App.Env.controller = new App.Controllers[controller_name];
|
706
|
-
if (App.Env.controller.initialize != null) {
|
707
|
-
App.Env.controller.initialize();
|
708
|
-
}
|
709
|
-
if (App.Env.controller[action_name] != null) {
|
710
|
-
App.Env.controller[action_name]();
|
711
|
-
}
|
712
|
-
}
|
713
|
-
if (this.wire != null) {
|
714
|
-
this.wire.resetSyncTime();
|
715
|
-
return this.wire.fetchSyncTime();
|
716
|
-
}
|
717
|
-
};
|
718
|
-
|
719
|
-
Loco.prototype.emit = function(data) {
|
720
|
-
return this.line.send(data);
|
721
|
-
};
|
722
|
-
|
723
|
-
Loco.prototype.getModels = function() {
|
724
|
-
var _, func, innerFunc, models, ref, ref1, regExp;
|
725
|
-
models = [];
|
726
|
-
regExp = /^[A-Z]/;
|
727
|
-
ref = App.Models;
|
728
|
-
for (func in ref) {
|
729
|
-
_ = ref[func];
|
730
|
-
if (!regExp.exec(func) || func === "Base") {
|
731
|
-
continue;
|
732
|
-
}
|
733
|
-
models.push(func);
|
734
|
-
ref1 = App.Models[func];
|
735
|
-
for (innerFunc in ref1) {
|
736
|
-
_ = ref1[innerFunc];
|
737
|
-
if (regExp.exec(innerFunc)) {
|
738
|
-
models.push(func + "." + innerFunc);
|
739
|
-
}
|
740
|
-
}
|
741
|
-
}
|
742
|
-
return models;
|
743
|
-
};
|
744
|
-
|
745
|
-
Loco.prototype.getModelForRemoteName = function(remoteName) {
|
746
|
-
var i, len, model, parts, ref;
|
747
|
-
ref = this.getModels();
|
748
|
-
for (i = 0, len = ref.length; i < len; i++) {
|
749
|
-
model = ref[i];
|
750
|
-
parts = model.split(".");
|
751
|
-
if (parts.length === 1) {
|
752
|
-
if (App.Models[parts[0]].getRemoteName() === remoteName) {
|
753
|
-
return App.Models[parts[0]];
|
754
|
-
}
|
755
|
-
} else if (parts.length === 2) {
|
756
|
-
if (App.Models[parts[0]][parts[1]].getRemoteName() === remoteName) {
|
757
|
-
return App.Models[parts[0]][parts[1]];
|
758
|
-
}
|
759
|
-
}
|
760
|
-
}
|
761
|
-
};
|
762
|
-
|
763
|
-
return Loco;
|
764
|
-
|
765
|
-
})();
|
766
|
-
|
767
|
-
App.Mixins.Connectivity = (function() {
|
768
|
-
function Connectivity() {}
|
769
|
-
|
770
|
-
Connectivity.prototype.connectWith = function(data, opts) {
|
771
|
-
var i, identity, len, resource, results;
|
772
|
-
if (opts == null) {
|
773
|
-
opts = {};
|
774
|
-
}
|
775
|
-
if (data == null) {
|
776
|
-
return null;
|
777
|
-
}
|
778
|
-
if (data.constructor.name !== "Array") {
|
779
|
-
data = [data];
|
780
|
-
}
|
781
|
-
data = App.Utils.Array.uniq(data);
|
782
|
-
results = [];
|
783
|
-
for (i = 0, len = data.length; i < len; i++) {
|
784
|
-
resource = data[i];
|
785
|
-
if (resource.constructor.name === "Function") {
|
786
|
-
identity = resource.getIdentity();
|
787
|
-
App.IdentityMap.addCollection(identity, {
|
788
|
-
to: this
|
789
|
-
});
|
790
|
-
if (opts.receiver != null) {
|
791
|
-
results.push(this.receivers[identity] = opts.receiver);
|
792
|
-
} else {
|
793
|
-
results.push(void 0);
|
794
|
-
}
|
795
|
-
} else {
|
796
|
-
App.IdentityMap.connect(this, {
|
797
|
-
"with": resource
|
798
|
-
});
|
799
|
-
if (opts.receiver != null) {
|
800
|
-
results.push(this.receivers[resource.toKey()] = opts.receiver);
|
801
|
-
} else {
|
802
|
-
results.push(void 0);
|
803
|
-
}
|
804
|
-
}
|
805
|
-
}
|
806
|
-
return results;
|
807
|
-
};
|
808
|
-
|
809
|
-
Connectivity.prototype.receiverFor = function(data) {
|
810
|
-
if (data.constructor.name === "String") {
|
811
|
-
if (this.receivers[data] != null) {
|
812
|
-
return this.receivers[data];
|
813
|
-
} else {
|
814
|
-
return null;
|
815
|
-
}
|
816
|
-
}
|
817
|
-
if (this.receivers[data.toKey()] != null) {
|
818
|
-
return this.receivers[data.toKey()];
|
819
|
-
}
|
820
|
-
return null;
|
821
|
-
};
|
822
|
-
|
823
|
-
return Connectivity;
|
824
|
-
|
825
|
-
})();
|
826
|
-
|
827
|
-
App.Utils.Array = (function() {
|
828
|
-
function Array() {}
|
829
|
-
|
830
|
-
Array.map = function(arr, func) {
|
831
|
-
var i, len, newArr, o;
|
832
|
-
newArr = [];
|
833
|
-
for (i = 0, len = arr.length; i < len; i++) {
|
834
|
-
o = arr[i];
|
835
|
-
newArr.push(func(o));
|
836
|
-
}
|
837
|
-
return newArr;
|
838
|
-
};
|
839
|
-
|
840
|
-
Array.uniq = function(arr) {
|
841
|
-
var i, len, newArr, o;
|
842
|
-
newArr = [];
|
843
|
-
for (i = 0, len = arr.length; i < len; i++) {
|
844
|
-
o = arr[i];
|
845
|
-
if (newArr.indexOf(o) === -1) {
|
846
|
-
newArr.push(o);
|
847
|
-
}
|
848
|
-
}
|
849
|
-
return newArr;
|
850
|
-
};
|
851
|
-
|
852
|
-
return Array;
|
853
|
-
|
854
|
-
})();
|
855
|
-
|
856
|
-
App.Utils.Collection = (function() {
|
857
|
-
function Collection() {}
|
858
|
-
|
859
|
-
Collection.find = function(collection, func) {
|
860
|
-
var i, len, o;
|
861
|
-
for (i = 0, len = collection.length; i < len; i++) {
|
862
|
-
o = collection[i];
|
863
|
-
if (func(o) === true) {
|
864
|
-
return o;
|
865
|
-
}
|
866
|
-
}
|
867
|
-
};
|
868
|
-
|
869
|
-
return Collection;
|
870
|
-
|
871
|
-
})();
|
872
|
-
|
873
|
-
App.Utils.Dom = (function() {
|
874
|
-
function Dom() {}
|
875
|
-
|
876
|
-
Dom.hasClass = function(el, className) {
|
877
|
-
if (el.classList) {
|
878
|
-
return el.classList.contains(className);
|
879
|
-
} else {
|
880
|
-
return new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className);
|
881
|
-
}
|
882
|
-
};
|
883
|
-
|
884
|
-
Dom.addClass = function(el, className) {
|
885
|
-
if (el.classList) {
|
886
|
-
return el.classList.add(className);
|
887
|
-
} else {
|
888
|
-
return el.className += ' ' + className;
|
889
|
-
}
|
890
|
-
};
|
891
|
-
|
892
|
-
Dom.removeClass = function(el, className) {
|
893
|
-
if (el.classList) {
|
894
|
-
return el.classList.remove(className);
|
895
|
-
} else {
|
896
|
-
return el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
897
|
-
}
|
898
|
-
};
|
899
|
-
|
900
|
-
return Dom;
|
901
|
-
|
902
|
-
})();
|
903
|
-
|
904
|
-
App.Utils.Object = (function() {
|
905
|
-
function Object() {}
|
906
|
-
|
907
|
-
Object.toURIParams = function(obj) {
|
908
|
-
var key, str, val;
|
909
|
-
str = "";
|
910
|
-
for (key in obj) {
|
911
|
-
val = obj[key];
|
912
|
-
if (str !== "") {
|
913
|
-
str += "&";
|
914
|
-
}
|
915
|
-
str += key + "=" + encodeURIComponent(val);
|
916
|
-
}
|
917
|
-
return str;
|
918
|
-
};
|
919
|
-
|
920
|
-
return Object;
|
921
|
-
|
922
|
-
})();
|
923
|
-
|
924
|
-
App.Utils.String = (function() {
|
925
|
-
function String() {}
|
926
|
-
|
927
|
-
String.last = function(s) {
|
928
|
-
return s[s.length - 1];
|
929
|
-
};
|
930
|
-
|
931
|
-
return String;
|
932
|
-
|
933
|
-
})();
|
934
|
-
|
935
|
-
App.Validators.Base = (function() {
|
936
|
-
Base.sharedInstances = {};
|
937
|
-
|
938
|
-
Base.instance = function(obj, attr, opts) {
|
939
|
-
var sharedInstance, validatorName;
|
940
|
-
validatorName = this.identity;
|
941
|
-
if (this.sharedInstances[validatorName] == null) {
|
942
|
-
this.sharedInstances[validatorName] = new App.Validators[validatorName];
|
943
|
-
}
|
944
|
-
sharedInstance = this.sharedInstances[validatorName];
|
945
|
-
sharedInstance.assignAttribs(obj, attr, opts);
|
946
|
-
return sharedInstance;
|
947
|
-
};
|
948
|
-
|
949
|
-
function Base() {
|
950
|
-
this.obj = null;
|
951
|
-
this.attr = null;
|
952
|
-
this.val = null;
|
953
|
-
this.opts = null;
|
954
|
-
}
|
955
|
-
|
956
|
-
Base.prototype.assignAttribs = function(obj, attr, opts) {
|
957
|
-
this.obj = obj;
|
958
|
-
this.attr = attr;
|
959
|
-
this.val = this.obj[this.attr];
|
960
|
-
return this.opts = opts;
|
961
|
-
};
|
962
|
-
|
963
|
-
return Base;
|
964
|
-
|
965
|
-
})();
|
966
|
-
|
967
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
968
|
-
hasProp = {}.hasOwnProperty;
|
969
|
-
|
970
|
-
App.Validators.Absence = (function(superClass) {
|
971
|
-
extend(Absence, superClass);
|
972
|
-
|
973
|
-
Absence.identity = "Absence";
|
974
|
-
|
975
|
-
function Absence() {
|
976
|
-
Absence.__super__.constructor.apply(this, arguments);
|
977
|
-
}
|
978
|
-
|
979
|
-
Absence.prototype.validate = function() {
|
980
|
-
switch (typeof this.val) {
|
981
|
-
case 'string':
|
982
|
-
if ((this.val != null) && this.val.length === 0) {
|
983
|
-
return;
|
984
|
-
}
|
985
|
-
break;
|
986
|
-
default:
|
987
|
-
if (this.val == null) {
|
988
|
-
return;
|
989
|
-
}
|
990
|
-
}
|
991
|
-
return this._addErrorMessage();
|
992
|
-
};
|
993
|
-
|
994
|
-
Absence.prototype._addErrorMessage = function() {
|
995
|
-
var message;
|
996
|
-
message = this.opts.message != null ? this.opts.message : App.I18n[App.Env.loco.getLocale()].errors.messages.present;
|
997
|
-
return this.obj.addErrorMessage(message, {
|
998
|
-
"for": this.attr
|
999
|
-
});
|
1000
|
-
};
|
1001
|
-
|
1002
|
-
return Absence;
|
1003
|
-
|
1004
|
-
})(App.Validators.Base);
|
1005
|
-
|
1006
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
1007
|
-
hasProp = {}.hasOwnProperty;
|
1008
|
-
|
1009
|
-
App.Validators.Confirmation = (function(superClass) {
|
1010
|
-
extend(Confirmation, superClass);
|
1011
|
-
|
1012
|
-
Confirmation.identity = "Confirmation";
|
1013
|
-
|
1014
|
-
function Confirmation() {
|
1015
|
-
Confirmation.__super__.constructor.apply(this, arguments);
|
1016
|
-
}
|
1017
|
-
|
1018
|
-
Confirmation.prototype.validate = function() {
|
1019
|
-
var properVal;
|
1020
|
-
properVal = this.obj[this._properAttr()];
|
1021
|
-
if ((this.val != null) && (properVal != null) && this.val === properVal) {
|
1022
|
-
return;
|
1023
|
-
}
|
1024
|
-
return this._addErrorMessage();
|
1025
|
-
};
|
1026
|
-
|
1027
|
-
Confirmation.prototype._addErrorMessage = function() {
|
1028
|
-
var attrName, attrNames, defaultAttrName, message;
|
1029
|
-
defaultAttrName = this.attr.charAt(0).toUpperCase() + this.attr.slice(1);
|
1030
|
-
attrNames = App.I18n[App.Env.loco.getLocale()].attributes[this.obj.getIdentity()];
|
1031
|
-
attrName = (attrNames && attrNames[this.attr]) || defaultAttrName;
|
1032
|
-
message = this.opts.message != null ? this.opts.message : App.I18n[App.Env.loco.getLocale()].errors.messages.confirmation;
|
1033
|
-
message = message.replace('%{attribute}', attrName);
|
1034
|
-
return this.obj.addErrorMessage(message, {
|
1035
|
-
"for": this._properAttr()
|
1036
|
-
});
|
1037
|
-
};
|
1038
|
-
|
1039
|
-
Confirmation.prototype._properAttr = function() {
|
1040
|
-
return this.attr + "Confirmation";
|
1041
|
-
};
|
1042
|
-
|
1043
|
-
return Confirmation;
|
1044
|
-
|
1045
|
-
})(App.Validators.Base);
|
1046
|
-
|
1047
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
1048
|
-
hasProp = {}.hasOwnProperty;
|
1049
|
-
|
1050
|
-
App.Validators.Exclusion = (function(superClass) {
|
1051
|
-
extend(Exclusion, superClass);
|
1052
|
-
|
1053
|
-
Exclusion.identity = "Exclusion";
|
1054
|
-
|
1055
|
-
function Exclusion() {
|
1056
|
-
Exclusion.__super__.constructor.apply(this, arguments);
|
1057
|
-
}
|
1058
|
-
|
1059
|
-
Exclusion.prototype.validate = function() {
|
1060
|
-
var set;
|
1061
|
-
set = this.opts["in"] || this.opts.within || [];
|
1062
|
-
if (set.indexOf(this.val) === -1) {
|
1063
|
-
return;
|
1064
|
-
}
|
1065
|
-
return this._addErrorMessage();
|
1066
|
-
};
|
1067
|
-
|
1068
|
-
Exclusion.prototype._addErrorMessage = function() {
|
1069
|
-
var message;
|
1070
|
-
message = this.opts.message != null ? this.opts.message : App.I18n[App.Env.loco.getLocale()].errors.messages.exclusion;
|
1071
|
-
return this.obj.addErrorMessage(message, {
|
1072
|
-
"for": this.attr
|
1073
|
-
});
|
1074
|
-
};
|
1075
|
-
|
1076
|
-
return Exclusion;
|
1077
|
-
|
1078
|
-
})(App.Validators.Base);
|
1079
|
-
|
1080
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
1081
|
-
hasProp = {}.hasOwnProperty;
|
1082
|
-
|
1083
|
-
App.Validators.Format = (function(superClass) {
|
1084
|
-
extend(Format, superClass);
|
1085
|
-
|
1086
|
-
Format.identity = "Format";
|
1087
|
-
|
1088
|
-
function Format() {
|
1089
|
-
Format.__super__.constructor.apply(this, arguments);
|
1090
|
-
}
|
1091
|
-
|
1092
|
-
Format.prototype.validate = function() {
|
1093
|
-
var match;
|
1094
|
-
match = this.opts["with"].exec(this.val);
|
1095
|
-
if (match != null) {
|
1096
|
-
return;
|
1097
|
-
}
|
1098
|
-
return this._addErrorMessage();
|
1099
|
-
};
|
1100
|
-
|
1101
|
-
Format.prototype._addErrorMessage = function() {
|
1102
|
-
var message;
|
1103
|
-
message = this.opts.message != null ? this.opts.message : App.I18n[App.Env.loco.getLocale()].errors.messages.invalid;
|
1104
|
-
return this.obj.addErrorMessage(message, {
|
1105
|
-
"for": this.attr
|
1106
|
-
});
|
1107
|
-
};
|
1108
|
-
|
1109
|
-
return Format;
|
1110
|
-
|
1111
|
-
})(App.Validators.Base);
|
1112
|
-
|
1113
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
1114
|
-
hasProp = {}.hasOwnProperty;
|
1115
|
-
|
1116
|
-
App.Validators.Inclusion = (function(superClass) {
|
1117
|
-
extend(Inclusion, superClass);
|
1118
|
-
|
1119
|
-
Inclusion.identity = "Inclusion";
|
1120
|
-
|
1121
|
-
function Inclusion() {
|
1122
|
-
Inclusion.__super__.constructor.apply(this, arguments);
|
1123
|
-
}
|
1124
|
-
|
1125
|
-
Inclusion.prototype.validate = function() {
|
1126
|
-
var set;
|
1127
|
-
set = this.opts["in"] || this.opts.within || [];
|
1128
|
-
if (set.indexOf(this.val) !== -1) {
|
1129
|
-
return;
|
1130
|
-
}
|
1131
|
-
return this._addErrorMessage();
|
1132
|
-
};
|
1133
|
-
|
1134
|
-
Inclusion.prototype._addErrorMessage = function() {
|
1135
|
-
var message;
|
1136
|
-
message = this.opts.message != null ? this.opts.message : App.I18n[App.Env.loco.getLocale()].errors.messages.inclusion;
|
1137
|
-
return this.obj.addErrorMessage(message, {
|
1138
|
-
"for": this.attr
|
1139
|
-
});
|
1140
|
-
};
|
1141
|
-
|
1142
|
-
return Inclusion;
|
1143
|
-
|
1144
|
-
})(App.Validators.Base);
|
1145
|
-
|
1146
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
1147
|
-
hasProp = {}.hasOwnProperty;
|
1148
|
-
|
1149
|
-
App.Validators.Length = (function(superClass) {
|
1150
|
-
extend(Length, superClass);
|
1151
|
-
|
1152
|
-
Length.identity = "Length";
|
1153
|
-
|
1154
|
-
function Length() {
|
1155
|
-
Length.__super__.constructor.apply(this, arguments);
|
1156
|
-
}
|
1157
|
-
|
1158
|
-
Length.prototype.validate = function() {
|
1159
|
-
var message;
|
1160
|
-
if (this.val == null) {
|
1161
|
-
return;
|
1162
|
-
}
|
1163
|
-
message = (this._range()[0] != null) && (this._range()[1] != null) && this._range()[0] === this._range()[1] && this.val.length !== this._range()[0] ? this._selectErrorMessage('wrong_length', this._range()[0]) : (this._range()[0] != null) && this.val.length < this._range()[0] ? this._selectErrorMessage('too_short', this._range()[0]) : (this._range()[1] != null) && this.val.length > this._range()[1] ? this._selectErrorMessage('too_long', this._range()[1]) : null;
|
1164
|
-
if (message === null) {
|
1165
|
-
return;
|
1166
|
-
}
|
1167
|
-
return this.obj.addErrorMessage(message, {
|
1168
|
-
"for": this.attr
|
1169
|
-
});
|
1170
|
-
};
|
1171
|
-
|
1172
|
-
Length.prototype._range = function() {
|
1173
|
-
var from, to;
|
1174
|
-
from = this.opts.minimum || this.opts.is || ((this.opts.within != null) && this.opts.within[0]) || null;
|
1175
|
-
to = this.opts.maximum || this.opts.is || ((this.opts.within != null) && this.opts.within[1]) || null;
|
1176
|
-
return [from, to];
|
1177
|
-
};
|
1178
|
-
|
1179
|
-
Length.prototype._selectErrorMessage = function(msg, val) {
|
1180
|
-
var i, len, message, ref, variant;
|
1181
|
-
if (val === 1) {
|
1182
|
-
return App.I18n[App.Env.loco.getLocale()].errors.messages[msg].one;
|
1183
|
-
}
|
1184
|
-
message = null;
|
1185
|
-
ref = ['few', 'many'];
|
1186
|
-
for (i = 0, len = ref.length; i < len; i++) {
|
1187
|
-
variant = ref[i];
|
1188
|
-
if (this._checkVariant(variant, val)) {
|
1189
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages[msg][variant];
|
1190
|
-
break;
|
1191
|
-
}
|
1192
|
-
}
|
1193
|
-
if (message == null) {
|
1194
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages[msg].other;
|
1195
|
-
}
|
1196
|
-
if (this.opts.message != null) {
|
1197
|
-
message = this.opts.message;
|
1198
|
-
}
|
1199
|
-
if (/%{count}/.exec(message)) {
|
1200
|
-
message = message.replace('%{count}', val);
|
1201
|
-
}
|
1202
|
-
return message;
|
1203
|
-
};
|
1204
|
-
|
1205
|
-
Length.prototype._checkVariant = function(variant, val) {
|
1206
|
-
if (App.I18n[App.Env.loco.getLocale()].variants[variant] == null) {
|
1207
|
-
return;
|
1208
|
-
}
|
1209
|
-
return App.I18n[App.Env.loco.getLocale()].variants[variant](val);
|
1210
|
-
};
|
1211
|
-
|
1212
|
-
return Length;
|
1213
|
-
|
1214
|
-
})(App.Validators.Base);
|
1215
|
-
|
1216
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
1217
|
-
hasProp = {}.hasOwnProperty;
|
1218
|
-
|
1219
|
-
App.Validators.Numericality = (function(superClass) {
|
1220
|
-
extend(Numericality, superClass);
|
1221
|
-
|
1222
|
-
Numericality.identity = "Numericality";
|
1223
|
-
|
1224
|
-
function Numericality() {
|
1225
|
-
Numericality.__super__.constructor.apply(this, arguments);
|
1226
|
-
}
|
1227
|
-
|
1228
|
-
Numericality.prototype.validate = function() {
|
1229
|
-
if (isNaN(this.val)) {
|
1230
|
-
return this._addNaNErrorMessage();
|
1231
|
-
} else if ((this.opts.only_integer != null) && Number(this.val) !== parseInt(this.val)) {
|
1232
|
-
return this._addIntErrorMessage();
|
1233
|
-
} else if ((this.opts.greater_than != null) && Number(this.val) <= this.opts.greater_than) {
|
1234
|
-
return this._addGreatherThanErrorMessage();
|
1235
|
-
} else if ((this.opts.greater_than_or_equal_to != null) && Number(this.val) < this.opts.greater_than_or_equal_to) {
|
1236
|
-
return this._addGreatherThanOrEqualToErrorMessage();
|
1237
|
-
} else if ((this.opts.equal_to != null) && Number(this.val) !== this.opts.equal_to) {
|
1238
|
-
return this._addEqualToErrorMessage();
|
1239
|
-
} else if ((this.opts.less_than != null) && Number(this.val) >= this.opts.less_than) {
|
1240
|
-
return this._addLessThanErrorMessage();
|
1241
|
-
} else if ((this.opts.less_than_or_equal_to != null) && Number(this.val) > this.opts.less_than_or_equal_to) {
|
1242
|
-
return this._addLessThanOrEqualToErrorMessage();
|
1243
|
-
} else if ((this.opts.other_than != null) && Number(this.val) === this.opts.other_than) {
|
1244
|
-
return this._addOtherThanErrorMessage();
|
1245
|
-
} else if ((this.opts.odd != null) && Number(this.val) % 2 !== 1) {
|
1246
|
-
return this._addOddErrorMessage();
|
1247
|
-
} else if ((this.opts.even != null) && Number(this.val) % 2 !== 0) {
|
1248
|
-
return this._addEvenErrorMessage();
|
1249
|
-
}
|
1250
|
-
};
|
1251
|
-
|
1252
|
-
Numericality.prototype._addNaNErrorMessage = function() {
|
1253
|
-
var message;
|
1254
|
-
message = this.opts.message != null ? this.opts.message : App.I18n[App.Env.loco.getLocale()].errors.messages.not_a_number;
|
1255
|
-
return this.obj.addErrorMessage(message, {
|
1256
|
-
"for": this.attr
|
1257
|
-
});
|
1258
|
-
};
|
1259
|
-
|
1260
|
-
Numericality.prototype._addIntErrorMessage = function() {
|
1261
|
-
var message;
|
1262
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages.not_an_integer;
|
1263
|
-
return this.obj.addErrorMessage(message, {
|
1264
|
-
"for": this.attr
|
1265
|
-
});
|
1266
|
-
};
|
1267
|
-
|
1268
|
-
Numericality.prototype._addGreatherThanErrorMessage = function() {
|
1269
|
-
var message;
|
1270
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages.greater_than;
|
1271
|
-
message = message.replace('%{count}', this.opts.greater_than);
|
1272
|
-
return this.obj.addErrorMessage(message, {
|
1273
|
-
"for": this.attr
|
1274
|
-
});
|
1275
|
-
};
|
1276
|
-
|
1277
|
-
Numericality.prototype._addGreatherThanOrEqualToErrorMessage = function() {
|
1278
|
-
var message;
|
1279
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages.greater_than_or_equal_to;
|
1280
|
-
message = message.replace('%{count}', this.opts.greater_than_or_equal_to);
|
1281
|
-
return this.obj.addErrorMessage(message, {
|
1282
|
-
"for": this.attr
|
1283
|
-
});
|
1284
|
-
};
|
1285
|
-
|
1286
|
-
Numericality.prototype._addEqualToErrorMessage = function() {
|
1287
|
-
var message;
|
1288
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages.equal_to;
|
1289
|
-
message = message.replace('%{count}', this.opts.equal_to);
|
1290
|
-
return this.obj.addErrorMessage(message, {
|
1291
|
-
"for": this.attr
|
1292
|
-
});
|
1293
|
-
};
|
1294
|
-
|
1295
|
-
Numericality.prototype._addLessThanErrorMessage = function() {
|
1296
|
-
var message;
|
1297
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages.less_than;
|
1298
|
-
message = message.replace('%{count}', this.opts.less_than);
|
1299
|
-
return this.obj.addErrorMessage(message, {
|
1300
|
-
"for": this.attr
|
1301
|
-
});
|
1302
|
-
};
|
1303
|
-
|
1304
|
-
Numericality.prototype._addLessThanOrEqualToErrorMessage = function() {
|
1305
|
-
var message;
|
1306
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages.less_than_or_equal_to;
|
1307
|
-
message = message.replace('%{count}', this.opts.less_than_or_equal_to);
|
1308
|
-
return this.obj.addErrorMessage(message, {
|
1309
|
-
"for": this.attr
|
1310
|
-
});
|
1311
|
-
};
|
1312
|
-
|
1313
|
-
Numericality.prototype._addOtherThanErrorMessage = function() {
|
1314
|
-
var message;
|
1315
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages.other_than;
|
1316
|
-
message = message.replace('%{count}', this.opts.other_than);
|
1317
|
-
return this.obj.addErrorMessage(message, {
|
1318
|
-
"for": this.attr
|
1319
|
-
});
|
1320
|
-
};
|
1321
|
-
|
1322
|
-
Numericality.prototype._addOddErrorMessage = function() {
|
1323
|
-
var message;
|
1324
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages.odd;
|
1325
|
-
return this.obj.addErrorMessage(message, {
|
1326
|
-
"for": this.attr
|
1327
|
-
});
|
1328
|
-
};
|
1329
|
-
|
1330
|
-
Numericality.prototype._addEvenErrorMessage = function() {
|
1331
|
-
var message;
|
1332
|
-
message = App.I18n[App.Env.loco.getLocale()].errors.messages.even;
|
1333
|
-
return this.obj.addErrorMessage(message, {
|
1334
|
-
"for": this.attr
|
1335
|
-
});
|
1336
|
-
};
|
1337
|
-
|
1338
|
-
return Numericality;
|
1339
|
-
|
1340
|
-
})(App.Validators.Base);
|
1341
|
-
|
1342
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
1343
|
-
hasProp = {}.hasOwnProperty;
|
1344
|
-
|
1345
|
-
App.Validators.Presence = (function(superClass) {
|
1346
|
-
extend(Presence, superClass);
|
1347
|
-
|
1348
|
-
Presence.identity = "Presence";
|
1349
|
-
|
1350
|
-
function Presence() {
|
1351
|
-
Presence.__super__.constructor.apply(this, arguments);
|
1352
|
-
}
|
1353
|
-
|
1354
|
-
Presence.prototype.validate = function() {
|
1355
|
-
switch (typeof this.val) {
|
1356
|
-
case 'string':
|
1357
|
-
if ((this.val != null) && this.val.length > 0) {
|
1358
|
-
return;
|
1359
|
-
}
|
1360
|
-
break;
|
1361
|
-
default:
|
1362
|
-
if (this.val != null) {
|
1363
|
-
return;
|
1364
|
-
}
|
1365
|
-
}
|
1366
|
-
return this._addErrorMessage();
|
1367
|
-
};
|
1368
|
-
|
1369
|
-
Presence.prototype._addErrorMessage = function() {
|
1370
|
-
var message;
|
1371
|
-
message = this.opts.message != null ? this.opts.message : App.I18n[App.Env.loco.getLocale()].errors.messages.blank;
|
1372
|
-
return this.obj.addErrorMessage(message, {
|
1373
|
-
"for": this.attr
|
1374
|
-
});
|
1375
|
-
};
|
1376
|
-
|
1377
|
-
return Presence;
|
1378
|
-
|
1379
|
-
})(App.Validators.Base);
|
1380
|
-
|
1381
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
1382
|
-
hasProp = {}.hasOwnProperty;
|
1383
|
-
|
1384
|
-
App.Validators.Size = (function(superClass) {
|
1385
|
-
extend(Size, superClass);
|
1386
|
-
|
1387
|
-
Size.identity = "Size";
|
1388
|
-
|
1389
|
-
function Size() {
|
1390
|
-
Size.__super__.constructor.apply(this, arguments);
|
1391
|
-
}
|
1392
|
-
|
1393
|
-
Size.prototype.validate = function() {
|
1394
|
-
return App.Validators.Length.instance(this.obj, this.attr, this.opts).validate();
|
1395
|
-
};
|
1396
|
-
|
1397
|
-
return Size;
|
1398
|
-
|
1399
|
-
})(App.Validators.Base);
|
1400
|
-
|
1401
|
-
App.Models.Base = (function() {
|
1402
|
-
function Base(data) {
|
1403
|
-
if (data == null) {
|
1404
|
-
data = {};
|
1405
|
-
}
|
1406
|
-
this.id = null;
|
1407
|
-
this.errors = null;
|
1408
|
-
this.resource = data.resource;
|
1409
|
-
if (this.constructor.attributes != null) {
|
1410
|
-
this.__initAttributes();
|
1411
|
-
}
|
1412
|
-
if (data != null) {
|
1413
|
-
this.__assignAttributes(data);
|
1414
|
-
}
|
1415
|
-
}
|
1416
|
-
|
1417
|
-
Base.all = function(opts) {
|
1418
|
-
if (opts == null) {
|
1419
|
-
opts = {};
|
1420
|
-
}
|
1421
|
-
return this.get("all", opts);
|
1422
|
-
};
|
1423
|
-
|
1424
|
-
Base.find = function(idOrObj) {
|
1425
|
-
var id, req, urlParams;
|
1426
|
-
urlParams = {};
|
1427
|
-
if (typeof idOrObj === "object") {
|
1428
|
-
urlParams = idOrObj;
|
1429
|
-
id = idOrObj.id;
|
1430
|
-
delete urlParams.id;
|
1431
|
-
} else {
|
1432
|
-
id = idOrObj;
|
1433
|
-
}
|
1434
|
-
req = new XMLHttpRequest();
|
1435
|
-
req.open('GET', (this.__getResourcesUrl(urlParams)) + "/" + id);
|
1436
|
-
req.setRequestHeader("Accept", "application/json");
|
1437
|
-
req.setRequestHeader("Content-Type", "application/json");
|
1438
|
-
req.send(JSON.stringify(urlParams));
|
1439
|
-
return new Promise((function(_this) {
|
1440
|
-
return function(resolve, reject) {
|
1441
|
-
req.onerror = function(e) {
|
1442
|
-
return reject(e);
|
1443
|
-
};
|
1444
|
-
return req.onload = function(e) {
|
1445
|
-
var obj, record;
|
1446
|
-
record = JSON.parse(e.target.response);
|
1447
|
-
obj = _this.__initSubclass(record);
|
1448
|
-
App.IdentityMap.add(obj);
|
1449
|
-
return resolve(obj);
|
1450
|
-
};
|
1451
|
-
};
|
1452
|
-
})(this));
|
1453
|
-
};
|
1454
|
-
|
1455
|
-
Base.get = function(action, opts) {
|
1456
|
-
if (opts == null) {
|
1457
|
-
opts = {};
|
1458
|
-
}
|
1459
|
-
return this.__send("GET", action, opts);
|
1460
|
-
};
|
1461
|
-
|
1462
|
-
Base.post = function(action, opts) {
|
1463
|
-
if (opts == null) {
|
1464
|
-
opts = {};
|
1465
|
-
}
|
1466
|
-
return this.__send("POST", action, opts);
|
1467
|
-
};
|
1468
|
-
|
1469
|
-
Base.put = function(action, opts) {
|
1470
|
-
if (opts == null) {
|
1471
|
-
opts = {};
|
1472
|
-
}
|
1473
|
-
return this.__send("PUT", action, opts);
|
1474
|
-
};
|
1475
|
-
|
1476
|
-
Base["delete"] = function(action, opts) {
|
1477
|
-
if (opts == null) {
|
1478
|
-
opts = {};
|
1479
|
-
}
|
1480
|
-
return this.__send("DELETE", action, opts);
|
1481
|
-
};
|
1482
|
-
|
1483
|
-
Base.getIdentity = function() {
|
1484
|
-
if (this.identity != null) {
|
1485
|
-
return this.identity;
|
1486
|
-
} else {
|
1487
|
-
throw "Specify Model's @identity!";
|
1488
|
-
}
|
1489
|
-
};
|
1490
|
-
|
1491
|
-
Base.getRemoteName = function() {
|
1492
|
-
if (this.remoteName != null) {
|
1493
|
-
return this.remoteName;
|
1494
|
-
} else {
|
1495
|
-
return this.getIdentity();
|
1496
|
-
}
|
1497
|
-
};
|
1498
|
-
|
1499
|
-
Base.getAttribRemoteName = function(attrib) {
|
1500
|
-
if (this.attributes == null) {
|
1501
|
-
return null;
|
1502
|
-
}
|
1503
|
-
if (this.attributes[attrib] == null) {
|
1504
|
-
return null;
|
1505
|
-
}
|
1506
|
-
if (this.attributes[attrib].remoteName == null) {
|
1507
|
-
return attrib;
|
1508
|
-
}
|
1509
|
-
return this.attributes[attrib].remoteName;
|
1510
|
-
};
|
1511
|
-
|
1512
|
-
Base.getResourcesUrlParams = function() {
|
1513
|
-
var match, params, regexp, url;
|
1514
|
-
url = this.__getResourcesUrl();
|
1515
|
-
regexp = /:(\w+)\/?/;
|
1516
|
-
params = [];
|
1517
|
-
while (match = regexp.exec(url)) {
|
1518
|
-
params.push(match[1]);
|
1519
|
-
url = url.replace(match[0], match[1]);
|
1520
|
-
}
|
1521
|
-
return params;
|
1522
|
-
};
|
1523
|
-
|
1524
|
-
Base.__getResourcesUrl = function(opts) {
|
1525
|
-
var match, resourcesUrl;
|
1526
|
-
if (opts == null) {
|
1527
|
-
opts = {};
|
1528
|
-
}
|
1529
|
-
resourcesUrl = this.resources == null ? "/" + (this.getRemoteName().toLowerCase()) + "s" : opts.resource ? this.resources[opts.resource].url : (App.Env.scope != null) && (this.resources[App.Env.scope] != null) ? this.resources[App.Env.scope].url : this.resources.url;
|
1530
|
-
if (App.Env.loco.protocolWithHost != null) {
|
1531
|
-
resourcesUrl = "" + App.Env.loco.protocolWithHost + resourcesUrl;
|
1532
|
-
}
|
1533
|
-
match = /:(\w+)\/?/.exec(resourcesUrl);
|
1534
|
-
if (match == null) {
|
1535
|
-
return resourcesUrl;
|
1536
|
-
}
|
1537
|
-
if (opts[match[1]] != null) {
|
1538
|
-
resourcesUrl = resourcesUrl.replace(":" + match[1], opts[match[1]]);
|
1539
|
-
delete opts[match[1]];
|
1540
|
-
} else if ((opts.obj != null) && (opts.obj[match[1]] != null)) {
|
1541
|
-
resourcesUrl = resourcesUrl.replace(":" + match[1], opts.obj[match[1]]);
|
1542
|
-
}
|
1543
|
-
return resourcesUrl;
|
1544
|
-
};
|
1545
|
-
|
1546
|
-
Base.__initSubclass = function(params) {
|
1547
|
-
var parts;
|
1548
|
-
if (params == null) {
|
1549
|
-
params = {};
|
1550
|
-
}
|
1551
|
-
parts = this.getIdentity().split(".");
|
1552
|
-
if (parts.length === 1) {
|
1553
|
-
return new App.Models[parts[0]](params);
|
1554
|
-
}
|
1555
|
-
return new App.Models[parts[0]][parts[1]](params);
|
1556
|
-
};
|
1557
|
-
|
1558
|
-
Base.__page = function(i, opts, reqOpts, resp) {
|
1559
|
-
var data, httpMethod, key, ref, ref1, req, url, val;
|
1560
|
-
if (opts == null) {
|
1561
|
-
opts = {};
|
1562
|
-
}
|
1563
|
-
if (reqOpts == null) {
|
1564
|
-
reqOpts = {};
|
1565
|
-
}
|
1566
|
-
if (resp == null) {
|
1567
|
-
resp = {
|
1568
|
-
resources: [],
|
1569
|
-
count: 0
|
1570
|
-
};
|
1571
|
-
}
|
1572
|
-
httpMethod = reqOpts.method || "GET";
|
1573
|
-
url = reqOpts.url || this.__getResourcesUrl(opts);
|
1574
|
-
data = {};
|
1575
|
-
if (reqOpts.data != null) {
|
1576
|
-
ref = reqOpts.data;
|
1577
|
-
for (key in ref) {
|
1578
|
-
val = ref[key];
|
1579
|
-
if (key === "resource") {
|
1580
|
-
continue;
|
1581
|
-
}
|
1582
|
-
data[key] = val;
|
1583
|
-
}
|
1584
|
-
}
|
1585
|
-
data[this.__getPaginationParam()] = i;
|
1586
|
-
if (httpMethod === 'GET') {
|
1587
|
-
url = url + '?' + App.Utils.Object.toURIParams(data);
|
1588
|
-
}
|
1589
|
-
req = new XMLHttpRequest();
|
1590
|
-
req.open(httpMethod, url);
|
1591
|
-
req.setRequestHeader("Accept", "application/json");
|
1592
|
-
req.setRequestHeader("Content-Type", "application/json");
|
1593
|
-
req.setRequestHeader("X-CSRF-Token", (ref1 = document.querySelector("meta[name='csrf-token']")) != null ? ref1.content : void 0);
|
1594
|
-
req.send(JSON.stringify(data));
|
1595
|
-
return new Promise((function(_this) {
|
1596
|
-
return function(resolve, reject) {
|
1597
|
-
req.onerror = function(e) {
|
1598
|
-
return reject(e);
|
1599
|
-
};
|
1600
|
-
return req.onload = function(e) {
|
1601
|
-
var j, len, obj, record, ref2;
|
1602
|
-
data = JSON.parse(e.target.response);
|
1603
|
-
resp.count = data.count;
|
1604
|
-
for (key in data) {
|
1605
|
-
val = data[key];
|
1606
|
-
if (['resources', 'count'].indexOf(key) === -1) {
|
1607
|
-
resp[key] = val;
|
1608
|
-
}
|
1609
|
-
}
|
1610
|
-
ref2 = data.resources;
|
1611
|
-
for (j = 0, len = ref2.length; j < len; j++) {
|
1612
|
-
record = ref2[j];
|
1613
|
-
obj = _this.__initSubclass(record);
|
1614
|
-
if (opts.resource != null) {
|
1615
|
-
obj.resource = opts.resource;
|
1616
|
-
}
|
1617
|
-
App.IdentityMap.add(obj);
|
1618
|
-
resp.resources.push(obj);
|
1619
|
-
}
|
1620
|
-
return resolve(resp);
|
1621
|
-
};
|
1622
|
-
};
|
1623
|
-
})(this));
|
1624
|
-
};
|
1625
|
-
|
1626
|
-
Base.__paginate = function(opts, reqOpts) {
|
1627
|
-
var pageNum, perPage, ref;
|
1628
|
-
perPage = this.__getPaginationPer();
|
1629
|
-
pageNum = (ref = opts.page) != null ? ref : 1;
|
1630
|
-
return this.__page(pageNum, opts, reqOpts).then((function(_this) {
|
1631
|
-
return function(data) {
|
1632
|
-
var func, i, j, max, promise, ref1;
|
1633
|
-
if (opts.page != null) {
|
1634
|
-
return Promise.resolve(data);
|
1635
|
-
}
|
1636
|
-
if (data.count <= perPage) {
|
1637
|
-
return Promise.resolve(data);
|
1638
|
-
}
|
1639
|
-
max = parseInt(data.count / perPage);
|
1640
|
-
if (max !== data.count / perPage) {
|
1641
|
-
max += 1;
|
1642
|
-
}
|
1643
|
-
promise = Promise.resolve(data);
|
1644
|
-
if (max === 1) {
|
1645
|
-
return promise;
|
1646
|
-
}
|
1647
|
-
for (i = j = 2, ref1 = max; 2 <= ref1 ? j <= ref1 : j >= ref1; i = 2 <= ref1 ? ++j : --j) {
|
1648
|
-
func = function(i) {
|
1649
|
-
return promise = promise.then(function(arr) {
|
1650
|
-
return _this.__page(i, opts, reqOpts, data);
|
1651
|
-
});
|
1652
|
-
};
|
1653
|
-
func(i);
|
1654
|
-
}
|
1655
|
-
return promise;
|
1656
|
-
};
|
1657
|
-
})(this));
|
1658
|
-
};
|
1659
|
-
|
1660
|
-
Base.__getPaginationParam = function() {
|
1661
|
-
var defaultParam, param, ref, ref1, ref2, ref3;
|
1662
|
-
defaultParam = 'page';
|
1663
|
-
if ((App.Env.scope != null) && (this.resources != null) && (this.resources[App.Env.scope] != null)) {
|
1664
|
-
param = (ref = this.resources[App.Env.scope]) != null ? (ref1 = ref.paginate) != null ? ref1.param : void 0 : void 0;
|
1665
|
-
return param != null ? param : defaultParam;
|
1666
|
-
}
|
1667
|
-
if (((ref2 = this.resources) != null ? (ref3 = ref2.paginate) != null ? ref3.param : void 0 : void 0) != null) {
|
1668
|
-
return this.resources.paginate.param;
|
1669
|
-
}
|
1670
|
-
return defaultParam;
|
1671
|
-
};
|
1672
|
-
|
1673
|
-
Base.__getPaginationPer = function() {
|
1674
|
-
var ref, ref1, ref2, ref3;
|
1675
|
-
if ((App.Env.scope != null) && (this.resources != null) && (this.resources[App.Env.scope] != null)) {
|
1676
|
-
return (ref = this.resources[App.Env.scope]) != null ? (ref1 = ref.paginate) != null ? ref1.per : void 0 : void 0;
|
1677
|
-
}
|
1678
|
-
if (((ref2 = this.resources) != null ? (ref3 = ref2.paginate) != null ? ref3.per : void 0 : void 0) != null) {
|
1679
|
-
return this.resources.paginate.per;
|
1680
|
-
}
|
1681
|
-
return null;
|
1682
|
-
};
|
1683
|
-
|
1684
|
-
Base.__send = function(method, action, opts) {
|
1685
|
-
var reqOpts, url;
|
1686
|
-
url = this.__getResourcesUrl(opts);
|
1687
|
-
if (action !== "all") {
|
1688
|
-
url = url + "/" + action;
|
1689
|
-
}
|
1690
|
-
reqOpts = {
|
1691
|
-
method: method,
|
1692
|
-
url: url,
|
1693
|
-
data: opts
|
1694
|
-
};
|
1695
|
-
return this.__paginate(opts, reqOpts);
|
1696
|
-
};
|
1697
|
-
|
1698
|
-
Base.prototype.setResource = function(name) {
|
1699
|
-
return this.resource = name;
|
1700
|
-
};
|
1701
|
-
|
1702
|
-
Base.prototype.getIdentity = function() {
|
1703
|
-
return this.constructor.getIdentity();
|
1704
|
-
};
|
1705
|
-
|
1706
|
-
Base.prototype.getAttrRemoteName = function(attr) {
|
1707
|
-
if (this.constructor.attributes == null) {
|
1708
|
-
return null;
|
1709
|
-
}
|
1710
|
-
if (this.constructor.attributes[attr] == null) {
|
1711
|
-
return null;
|
1712
|
-
}
|
1713
|
-
return this.constructor.attributes[attr].remoteName || attr;
|
1714
|
-
};
|
1715
|
-
|
1716
|
-
Base.prototype.getAttrName = function(remoteName) {
|
1717
|
-
var config, name, ref;
|
1718
|
-
if (this.constructor.attributes == null) {
|
1719
|
-
return remoteName;
|
1720
|
-
}
|
1721
|
-
if (this.constructor.attributes[remoteName] != null) {
|
1722
|
-
return remoteName;
|
1723
|
-
}
|
1724
|
-
ref = this.constructor.attributes;
|
1725
|
-
for (name in ref) {
|
1726
|
-
config = ref[name];
|
1727
|
-
if (config.remoteName === remoteName) {
|
1728
|
-
return name;
|
1729
|
-
}
|
1730
|
-
}
|
1731
|
-
return remoteName;
|
1732
|
-
};
|
1733
|
-
|
1734
|
-
Base.prototype.getAttrType = function(attrName) {
|
1735
|
-
if (this.constructor.attributes == null) {
|
1736
|
-
return null;
|
1737
|
-
}
|
1738
|
-
if (this.constructor.attributes[attrName] == null) {
|
1739
|
-
return null;
|
1740
|
-
}
|
1741
|
-
return this.constructor.attributes[attrName].type;
|
1742
|
-
};
|
1743
|
-
|
1744
|
-
Base.prototype.assignAttr = function(attrName, val) {
|
1745
|
-
var attrType;
|
1746
|
-
attrType = this.getAttrType(attrName);
|
1747
|
-
if (val == null) {
|
1748
|
-
this[attrName] = null;
|
1749
|
-
return;
|
1750
|
-
}
|
1751
|
-
switch (attrType) {
|
1752
|
-
case "Date":
|
1753
|
-
val = new Date(Date.parse(val));
|
1754
|
-
break;
|
1755
|
-
case "Integer":
|
1756
|
-
case "Int":
|
1757
|
-
val = parseInt(val);
|
1758
|
-
break;
|
1759
|
-
case "Float":
|
1760
|
-
val = parseFloat(val);
|
1761
|
-
break;
|
1762
|
-
case "Boolean":
|
1763
|
-
case "Bool":
|
1764
|
-
val = typeof val === 'boolean' ? val : Boolean(parseInt(val));
|
1765
|
-
break;
|
1766
|
-
case "Number":
|
1767
|
-
val = Number(val);
|
1768
|
-
break;
|
1769
|
-
case "String":
|
1770
|
-
val = String(val);
|
1771
|
-
}
|
1772
|
-
return this[attrName] = val;
|
1773
|
-
};
|
1774
|
-
|
1775
|
-
Base.prototype.attributes = function() {
|
1776
|
-
var _, attribs, name, ref;
|
1777
|
-
attribs = {
|
1778
|
-
id: this.id
|
1779
|
-
};
|
1780
|
-
if (this.constructor.attributes == null) {
|
1781
|
-
return attribs;
|
1782
|
-
}
|
1783
|
-
ref = this.constructor.attributes;
|
1784
|
-
for (name in ref) {
|
1785
|
-
_ = ref[name];
|
1786
|
-
attribs[name] = this[name];
|
1787
|
-
}
|
1788
|
-
return attribs;
|
1789
|
-
};
|
1790
|
-
|
1791
|
-
Base.prototype.isValid = function() {
|
1792
|
-
var config, j, len, meth, name, pvs, ref, ref1, ref2, validationName, validationSettings, validator;
|
1793
|
-
if (this.constructor.attributes == null) {
|
1794
|
-
return true;
|
1795
|
-
}
|
1796
|
-
this.errors = null;
|
1797
|
-
ref = this.constructor.attributes;
|
1798
|
-
for (name in ref) {
|
1799
|
-
config = ref[name];
|
1800
|
-
if (config.validations == null) {
|
1801
|
-
continue;
|
1802
|
-
}
|
1803
|
-
ref1 = config.validations;
|
1804
|
-
for (validationName in ref1) {
|
1805
|
-
validationSettings = ref1[validationName];
|
1806
|
-
if ((this.id != null) && validationSettings.on === "create") {
|
1807
|
-
continue;
|
1808
|
-
}
|
1809
|
-
if ((this.id == null) && validationSettings.on === "update") {
|
1810
|
-
continue;
|
1811
|
-
}
|
1812
|
-
if ((validationSettings["if"] != null) && !validationSettings["if"](this)) {
|
1813
|
-
continue;
|
1814
|
-
}
|
1815
|
-
validator = validationName.charAt(0).toUpperCase() + validationName.slice(1);
|
1816
|
-
if (App.Validators[validator] == null) {
|
1817
|
-
console.log("Warning! \"" + validator + "\" validator is not implemented!");
|
1818
|
-
continue;
|
1819
|
-
}
|
1820
|
-
pvs = this.__processedValidationSettings(validationSettings);
|
1821
|
-
App.Validators[validator].instance(this, name, pvs).validate();
|
1822
|
-
}
|
1823
|
-
}
|
1824
|
-
if (this.constructor.validate != null) {
|
1825
|
-
ref2 = this.constructor.validate;
|
1826
|
-
for (j = 0, len = ref2.length; j < len; j++) {
|
1827
|
-
meth = ref2[j];
|
1828
|
-
this[meth]();
|
1829
|
-
}
|
1830
|
-
}
|
1831
|
-
if (this.errors != null) {
|
1832
|
-
return false;
|
1833
|
-
} else {
|
1834
|
-
return true;
|
1835
|
-
}
|
1836
|
-
};
|
1837
|
-
|
1838
|
-
Base.prototype.isInvalid = function() {
|
1839
|
-
return !this.isValid();
|
1840
|
-
};
|
1841
|
-
|
1842
|
-
Base.prototype.isEmpty = function() {
|
1843
|
-
var name, ref, val;
|
1844
|
-
ref = this.attributes();
|
1845
|
-
for (name in ref) {
|
1846
|
-
val = ref[name];
|
1847
|
-
if (this[name] !== null) {
|
1848
|
-
return false;
|
1849
|
-
}
|
1850
|
-
}
|
1851
|
-
return true;
|
1852
|
-
};
|
1853
|
-
|
1854
|
-
Base.prototype.addErrorMessage = function(message, opts) {
|
1855
|
-
if (opts == null) {
|
1856
|
-
opts = {};
|
1857
|
-
}
|
1858
|
-
if (this.errors == null) {
|
1859
|
-
this.errors = {};
|
1860
|
-
}
|
1861
|
-
if (this.errors[opts["for"]] == null) {
|
1862
|
-
this.errors[opts["for"]] = [];
|
1863
|
-
}
|
1864
|
-
return this.errors[opts["for"]].push(message);
|
1865
|
-
};
|
1866
|
-
|
1867
|
-
Base.prototype.save = function() {
|
1868
|
-
var httpMeth, ref, req;
|
1869
|
-
httpMeth = this.id != null ? "PUT" : "POST";
|
1870
|
-
req = new XMLHttpRequest();
|
1871
|
-
req.open(httpMeth, this.__getResourceUrl());
|
1872
|
-
req.setRequestHeader("Accept", "application/json");
|
1873
|
-
req.setRequestHeader("Content-Type", "application/json");
|
1874
|
-
req.setRequestHeader("X-CSRF-Token", (ref = document.querySelector("meta[name='csrf-token']")) != null ? ref.content : void 0);
|
1875
|
-
req.send(JSON.stringify(this.serialize()));
|
1876
|
-
return new Promise((function(_this) {
|
1877
|
-
return function(resolve, reject) {
|
1878
|
-
req.onerror = function(e) {
|
1879
|
-
return reject(e);
|
1880
|
-
};
|
1881
|
-
return req.onload = function(e) {
|
1882
|
-
var data;
|
1883
|
-
data = JSON.parse(e.target.response);
|
1884
|
-
if (data.success) {
|
1885
|
-
resolve(data);
|
1886
|
-
return;
|
1887
|
-
}
|
1888
|
-
if (data.errors != null) {
|
1889
|
-
_this.__assignRemoteErrorMessages(data.errors);
|
1890
|
-
}
|
1891
|
-
return resolve(data);
|
1892
|
-
};
|
1893
|
-
};
|
1894
|
-
})(this));
|
1895
|
-
};
|
1896
|
-
|
1897
|
-
Base.prototype.updateAttribute = function(attr) {
|
1898
|
-
var ref, req;
|
1899
|
-
req = new XMLHttpRequest();
|
1900
|
-
req.open('PUT', this.__getResourceUrl());
|
1901
|
-
req.setRequestHeader("Accept", "application/json");
|
1902
|
-
req.setRequestHeader("Content-Type", "application/json");
|
1903
|
-
req.setRequestHeader("X-CSRF-Token", (ref = document.querySelector("meta[name='csrf-token']")) != null ? ref.content : void 0);
|
1904
|
-
req.send(JSON.stringify(this.serialize(attr)));
|
1905
|
-
return new Promise((function(_this) {
|
1906
|
-
return function(resolve, reject) {
|
1907
|
-
req.onerror = function(e) {
|
1908
|
-
return reject(e);
|
1909
|
-
};
|
1910
|
-
return req.onload = function(e) {
|
1911
|
-
var data;
|
1912
|
-
if (e.target.status >= 200 && e.target.status < 400) {
|
1913
|
-
data = JSON.parse(e.target.response);
|
1914
|
-
if (data.success) {
|
1915
|
-
resolve(data);
|
1916
|
-
return;
|
1917
|
-
}
|
1918
|
-
if (data.errors != null) {
|
1919
|
-
_this.__assignRemoteErrorMessages(data.errors);
|
1920
|
-
}
|
1921
|
-
return resolve(data);
|
1922
|
-
} else if (e.target.status >= 500) {
|
1923
|
-
return reject(e);
|
1924
|
-
}
|
1925
|
-
};
|
1926
|
-
};
|
1927
|
-
})(this));
|
1928
|
-
};
|
1929
|
-
|
1930
|
-
Base.prototype.serialize = function(attr) {
|
1931
|
-
var _, attribs, hash, mainKey, remoteName;
|
1932
|
-
if (attr == null) {
|
1933
|
-
attr = null;
|
1934
|
-
}
|
1935
|
-
if (this.constructor.attributes == null) {
|
1936
|
-
return {};
|
1937
|
-
}
|
1938
|
-
hash = {};
|
1939
|
-
mainKey = this.constructor.getRemoteName().toLowerCase();
|
1940
|
-
hash[mainKey] = {};
|
1941
|
-
attribs = {};
|
1942
|
-
if (attr != null) {
|
1943
|
-
attribs[attr] = null;
|
1944
|
-
} else {
|
1945
|
-
attribs = this.constructor.attributes;
|
1946
|
-
}
|
1947
|
-
for (attr in attribs) {
|
1948
|
-
_ = attribs[attr];
|
1949
|
-
remoteName = this.getAttrRemoteName(attr);
|
1950
|
-
hash[mainKey][remoteName] = this[attr];
|
1951
|
-
}
|
1952
|
-
return hash;
|
1953
|
-
};
|
1954
|
-
|
1955
|
-
Base.prototype.reload = function() {
|
1956
|
-
var findParams, j, len, param, ref;
|
1957
|
-
findParams = {
|
1958
|
-
id: this.id
|
1959
|
-
};
|
1960
|
-
ref = this.constructor.getResourcesUrlParams();
|
1961
|
-
for (j = 0, len = ref.length; j < len; j++) {
|
1962
|
-
param = ref[j];
|
1963
|
-
findParams[param] = this[param];
|
1964
|
-
}
|
1965
|
-
return this.constructor.find(findParams);
|
1966
|
-
};
|
1967
|
-
|
1968
|
-
Base.prototype.changes = function() {
|
1969
|
-
var currentObj, name, ref, result, val;
|
1970
|
-
result = {};
|
1971
|
-
currentObj = App.IdentityMap.find(this.getIdentity(), this.id);
|
1972
|
-
ref = this.attributes();
|
1973
|
-
for (name in ref) {
|
1974
|
-
val = ref[name];
|
1975
|
-
if (val !== currentObj[name]) {
|
1976
|
-
if ((val != null) && val.constructor === Date && currentObj[name] - val === 0) {
|
1977
|
-
continue;
|
1978
|
-
}
|
1979
|
-
if (val !== currentObj[name]) {
|
1980
|
-
result[name] = {
|
1981
|
-
is: currentObj[name],
|
1982
|
-
was: val
|
1983
|
-
};
|
1984
|
-
}
|
1985
|
-
}
|
1986
|
-
}
|
1987
|
-
return result;
|
1988
|
-
};
|
1989
|
-
|
1990
|
-
Base.prototype.applyChanges = function() {
|
1991
|
-
var name, ref, results, vals;
|
1992
|
-
ref = this.changes();
|
1993
|
-
results = [];
|
1994
|
-
for (name in ref) {
|
1995
|
-
vals = ref[name];
|
1996
|
-
results.push(this[name] = vals.is);
|
1997
|
-
}
|
1998
|
-
return results;
|
1999
|
-
};
|
2000
|
-
|
2001
|
-
Base.prototype.toKey = function() {
|
2002
|
-
return (this.getIdentity().toLowerCase()) + "_" + this.id;
|
2003
|
-
};
|
2004
|
-
|
2005
|
-
Base.prototype.get = function(action, data) {
|
2006
|
-
if (data == null) {
|
2007
|
-
data = {};
|
2008
|
-
}
|
2009
|
-
return this.__send("GET", action, data);
|
2010
|
-
};
|
2011
|
-
|
2012
|
-
Base.prototype.post = function(action, data) {
|
2013
|
-
if (data == null) {
|
2014
|
-
data = {};
|
2015
|
-
}
|
2016
|
-
return this.__send("POST", action, data);
|
2017
|
-
};
|
2018
|
-
|
2019
|
-
Base.prototype.put = function(action, data) {
|
2020
|
-
if (data == null) {
|
2021
|
-
data = {};
|
2022
|
-
}
|
2023
|
-
return this.__send("PUT", action, data);
|
2024
|
-
};
|
2025
|
-
|
2026
|
-
Base.prototype["delete"] = function(action, data) {
|
2027
|
-
if (data == null) {
|
2028
|
-
data = {};
|
2029
|
-
}
|
2030
|
-
return this.__send("DELETE", action, data);
|
2031
|
-
};
|
2032
|
-
|
2033
|
-
Base.prototype.__send = function(method, action, data) {
|
2034
|
-
var ref, req, url;
|
2035
|
-
url = this.__getResourceUrl();
|
2036
|
-
if (action != null) {
|
2037
|
-
url = url + "/" + action;
|
2038
|
-
}
|
2039
|
-
req = new XMLHttpRequest();
|
2040
|
-
req.open(method, url);
|
2041
|
-
req.setRequestHeader("Accept", "application/json");
|
2042
|
-
req.setRequestHeader("Content-Type", "application/json");
|
2043
|
-
req.setRequestHeader("X-CSRF-Token", (ref = document.querySelector("meta[name='csrf-token']")) != null ? ref.content : void 0);
|
2044
|
-
req.send(JSON.stringify(data));
|
2045
|
-
return new Promise(function(resolve, reject) {
|
2046
|
-
req.onerror = function(e) {
|
2047
|
-
return reject(e);
|
2048
|
-
};
|
2049
|
-
return req.onload = function(e) {
|
2050
|
-
if (e.target.status >= 200 && e.target.status < 400) {
|
2051
|
-
data = JSON.parse(e.target.response);
|
2052
|
-
return resolve(data);
|
2053
|
-
} else if (e.target.status >= 500) {
|
2054
|
-
return reject(e);
|
2055
|
-
}
|
2056
|
-
};
|
2057
|
-
});
|
2058
|
-
};
|
2059
|
-
|
2060
|
-
Base.prototype.__assignAttributes = function(data) {
|
2061
|
-
var attrName, key, results, val;
|
2062
|
-
results = [];
|
2063
|
-
for (key in data) {
|
2064
|
-
val = data[key];
|
2065
|
-
attrName = this.getAttrName(key);
|
2066
|
-
results.push(this.assignAttr(attrName, val));
|
2067
|
-
}
|
2068
|
-
return results;
|
2069
|
-
};
|
2070
|
-
|
2071
|
-
Base.prototype.__initAttributes = function() {
|
2072
|
-
var config, name, ref, results;
|
2073
|
-
ref = this.constructor.attributes;
|
2074
|
-
results = [];
|
2075
|
-
for (name in ref) {
|
2076
|
-
config = ref[name];
|
2077
|
-
results.push(this[name] = null);
|
2078
|
-
}
|
2079
|
-
return results;
|
2080
|
-
};
|
2081
|
-
|
2082
|
-
Base.prototype.__assignRemoteErrorMessages = function(remoteErrors) {
|
2083
|
-
var attr, error, errors, remoteName, results;
|
2084
|
-
results = [];
|
2085
|
-
for (remoteName in remoteErrors) {
|
2086
|
-
errors = remoteErrors[remoteName];
|
2087
|
-
attr = this.getAttrName(remoteName);
|
2088
|
-
results.push((function() {
|
2089
|
-
var j, len, results1;
|
2090
|
-
results1 = [];
|
2091
|
-
for (j = 0, len = errors.length; j < len; j++) {
|
2092
|
-
error = errors[j];
|
2093
|
-
results1.push(this.addErrorMessage(error, {
|
2094
|
-
"for": attr
|
2095
|
-
}));
|
2096
|
-
}
|
2097
|
-
return results1;
|
2098
|
-
}).call(this));
|
2099
|
-
}
|
2100
|
-
return results;
|
2101
|
-
};
|
2102
|
-
|
2103
|
-
Base.prototype.__getResourceUrl = function() {
|
2104
|
-
var url;
|
2105
|
-
url = this.constructor.__getResourcesUrl({
|
2106
|
-
resource: this.resource,
|
2107
|
-
obj: this
|
2108
|
-
});
|
2109
|
-
if (this.id == null) {
|
2110
|
-
return url;
|
2111
|
-
}
|
2112
|
-
return url + "/" + this.id;
|
2113
|
-
};
|
2114
|
-
|
2115
|
-
Base.prototype.__processedValidationSettings = function(validationSettings) {
|
2116
|
-
var confName, confVal, res;
|
2117
|
-
res = {};
|
2118
|
-
for (confName in validationSettings) {
|
2119
|
-
confVal = validationSettings[confName];
|
2120
|
-
if (typeof confVal === 'function') {
|
2121
|
-
res[confName] = confVal(this);
|
2122
|
-
} else {
|
2123
|
-
res[confName] = confVal;
|
2124
|
-
}
|
2125
|
-
}
|
2126
|
-
return res;
|
2127
|
-
};
|
2128
|
-
|
2129
|
-
return Base;
|
2130
|
-
|
2131
|
-
})();
|
2132
|
-
|
2133
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
2134
|
-
hasProp = {}.hasOwnProperty;
|
2135
|
-
|
2136
|
-
App.Controllers.Base = (function(superClass) {
|
2137
|
-
extend(Base, superClass);
|
2138
|
-
|
2139
|
-
function Base() {
|
2140
|
-
this.views = {};
|
2141
|
-
this.receivers = {};
|
2142
|
-
this.subController = null;
|
2143
|
-
this.superController = null;
|
2144
|
-
this.params = this.__fetchParams();
|
2145
|
-
}
|
2146
|
-
|
2147
|
-
Base.prototype.setView = function(key, view) {
|
2148
|
-
return this.views[key] = view;
|
2149
|
-
};
|
2150
|
-
|
2151
|
-
Base.prototype.getView = function(key) {
|
2152
|
-
return this.views[key];
|
2153
|
-
};
|
2154
|
-
|
2155
|
-
Base.prototype.getViews = function() {
|
2156
|
-
return this.views;
|
2157
|
-
};
|
2158
|
-
|
2159
|
-
Base.prototype.setSubController = function(cntrlr) {
|
2160
|
-
return this.subController = cntrlr;
|
2161
|
-
};
|
2162
|
-
|
2163
|
-
Base.prototype.getSubController = function() {
|
2164
|
-
return this.subController;
|
2165
|
-
};
|
2166
|
-
|
2167
|
-
Base.prototype.setSuperController = function(cntrlr) {
|
2168
|
-
return this.superController = cntrlr;
|
2169
|
-
};
|
2170
|
-
|
2171
|
-
Base.prototype.getSuperController = function() {
|
2172
|
-
return this.superController;
|
2173
|
-
};
|
2174
|
-
|
2175
|
-
Base.prototype.setResource = function(name) {
|
2176
|
-
return this.setScope(name);
|
2177
|
-
};
|
2178
|
-
|
2179
|
-
Base.prototype.setScope = function(name) {
|
2180
|
-
return App.Env.scope = name;
|
2181
|
-
};
|
2182
|
-
|
2183
|
-
Base.prototype.__fetchParams = function() {
|
2184
|
-
var arr, i, id, key, len, match, params, paramsArray, paramsString, splitUrl, val;
|
2185
|
-
params = {};
|
2186
|
-
match = /https?:\/\/.+\/\w+\/(\d+)/.exec(window.location.href);
|
2187
|
-
id = match != null ? match[1] : null;
|
2188
|
-
if (id != null) {
|
2189
|
-
params["id"] = parseInt(id);
|
2190
|
-
}
|
2191
|
-
splitUrl = window.location.href.split('?');
|
2192
|
-
if (splitUrl.length === 1) {
|
2193
|
-
return params;
|
2194
|
-
}
|
2195
|
-
paramsString = splitUrl[splitUrl.length - 1];
|
2196
|
-
paramsArray = App.Utils.Array.map(paramsString.split('&'), function(s) {
|
2197
|
-
return s.split('=');
|
2198
|
-
});
|
2199
|
-
for (i = 0, len = paramsArray.length; i < len; i++) {
|
2200
|
-
arr = paramsArray[i];
|
2201
|
-
key = decodeURIComponent(arr[0]);
|
2202
|
-
val = decodeURIComponent(arr[1]);
|
2203
|
-
if (val != null) {
|
2204
|
-
val = val.replace(/\+/g, " ");
|
2205
|
-
}
|
2206
|
-
params[key] = val;
|
2207
|
-
}
|
2208
|
-
return params;
|
2209
|
-
};
|
2210
|
-
|
2211
|
-
return Base;
|
2212
|
-
|
2213
|
-
})(App.Mix(App.Mixins.Connectivity));
|
2214
|
-
|
2215
|
-
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
2216
|
-
hasProp = {}.hasOwnProperty;
|
2217
|
-
|
2218
|
-
App.Views.Base = (function(superClass) {
|
2219
|
-
extend(Base, superClass);
|
2220
|
-
|
2221
|
-
function Base(opts) {
|
2222
|
-
if (opts == null) {
|
2223
|
-
opts = {};
|
2224
|
-
}
|
2225
|
-
this.views = {};
|
2226
|
-
this.intervals = {};
|
2227
|
-
this.receivers = {};
|
2228
|
-
this.controller = null;
|
2229
|
-
this.delegator = null;
|
2230
|
-
if (opts.controller != null) {
|
2231
|
-
this.setController(opts.controller);
|
2232
|
-
}
|
2233
|
-
if (opts.delegator != null) {
|
2234
|
-
this.setDelegator(opts.delegator);
|
2235
|
-
}
|
2236
|
-
}
|
2237
|
-
|
2238
|
-
Base.prototype.setController = function(cntr) {
|
2239
|
-
return this.controller = cntr;
|
2240
|
-
};
|
2241
|
-
|
2242
|
-
Base.prototype.getController = function() {
|
2243
|
-
return this.controller;
|
2244
|
-
};
|
2245
|
-
|
2246
|
-
Base.prototype.setView = function(key, view) {
|
2247
|
-
return this.views[key] = view;
|
2248
|
-
};
|
2249
|
-
|
2250
|
-
Base.prototype.getView = function(key) {
|
2251
|
-
return this.views[key];
|
2252
|
-
};
|
2253
|
-
|
2254
|
-
Base.prototype.getViews = function() {
|
2255
|
-
return this.views;
|
2256
|
-
};
|
2257
|
-
|
2258
|
-
Base.prototype.setDelegator = function(delegator) {
|
2259
|
-
return this.delegator = delegator;
|
2260
|
-
};
|
2261
|
-
|
2262
|
-
Base.prototype.getDelegator = function(delegator) {
|
2263
|
-
return this.delegator;
|
2264
|
-
};
|
2265
|
-
|
2266
|
-
return Base;
|
2267
|
-
|
2268
|
-
})(App.Mix(App.Mixins.Connectivity));
|
2269
|
-
|
2270
|
-
App.UI.Form = (function() {
|
2271
|
-
function Form(opts) {
|
2272
|
-
if (opts == null) {
|
2273
|
-
opts = {};
|
2274
|
-
}
|
2275
|
-
this.formId = opts.id;
|
2276
|
-
this.obj = opts["for"];
|
2277
|
-
this.initObj = (opts.initObj != null) && opts.initObj ? true : false;
|
2278
|
-
this.delegator = opts.delegator;
|
2279
|
-
this.callbackSuccess = opts.callbackSuccess;
|
2280
|
-
this.callbackFailure = opts.callbackFailure;
|
2281
|
-
this.callbackActive = opts.callbackActive;
|
2282
|
-
this.form = this._findForm();
|
2283
|
-
this.submit = null;
|
2284
|
-
this.submitVal = null;
|
2285
|
-
if (this.form != null) {
|
2286
|
-
this.submit = this.form.querySelector('[type="submit"]');
|
2287
|
-
}
|
2288
|
-
if (this.submit != null) {
|
2289
|
-
this.submitVal = this.submit.value;
|
2290
|
-
}
|
2291
|
-
this.locale = App.Env.loco.getLocale();
|
2292
|
-
}
|
2293
|
-
|
2294
|
-
Form.prototype.getObj = function() {
|
2295
|
-
return this.obj;
|
2296
|
-
};
|
2297
|
-
|
2298
|
-
Form.prototype.render = function() {
|
2299
|
-
if (this.initObj) {
|
2300
|
-
this._assignAttribs();
|
2301
|
-
return this._handle();
|
2302
|
-
} else if (this.form != null) {
|
2303
|
-
this.fill();
|
2304
|
-
return this._handle();
|
2305
|
-
}
|
2306
|
-
};
|
2307
|
-
|
2308
|
-
Form.prototype.fill = function(attr) {
|
2309
|
-
var _, attributes, formEl, name, query, radioEl, remoteName, results, uniqInputTypes;
|
2310
|
-
if (attr == null) {
|
2311
|
-
attr = null;
|
2312
|
-
}
|
2313
|
-
if (this.obj == null) {
|
2314
|
-
return null;
|
2315
|
-
}
|
2316
|
-
if (this.obj.constructor.attributes == null) {
|
2317
|
-
return null;
|
2318
|
-
}
|
2319
|
-
attributes = {};
|
2320
|
-
if (attr != null) {
|
2321
|
-
attributes[attr] = null;
|
2322
|
-
} else {
|
2323
|
-
attributes = this.obj.constructor.attributes;
|
2324
|
-
}
|
2325
|
-
results = [];
|
2326
|
-
for (name in attributes) {
|
2327
|
-
_ = attributes[name];
|
2328
|
-
remoteName = this.obj.getAttrRemoteName(name);
|
2329
|
-
query = this.form.querySelector("[data-attr=" + remoteName + "]");
|
2330
|
-
if (query === null) {
|
2331
|
-
continue;
|
2332
|
-
}
|
2333
|
-
formEl = query.querySelectorAll("input,textarea,select");
|
2334
|
-
if (formEl.length === 0) {
|
2335
|
-
continue;
|
2336
|
-
}
|
2337
|
-
if (formEl.length === 1) {
|
2338
|
-
formEl[0].value = this.obj[name];
|
2339
|
-
continue;
|
2340
|
-
}
|
2341
|
-
uniqInputTypes = App.Utils.Array.uniq(App.Utils.Array.map(formEl, function(e) {
|
2342
|
-
return e.getAttribute('type');
|
2343
|
-
}));
|
2344
|
-
if (uniqInputTypes.length === 1 && uniqInputTypes[0] === 'radio') {
|
2345
|
-
radioEl = App.Utils.Collection.find(formEl, (function(_this) {
|
2346
|
-
return function(e) {
|
2347
|
-
return e.value === String(_this.obj[name]);
|
2348
|
-
};
|
2349
|
-
})(this));
|
2350
|
-
if (radioEl != null) {
|
2351
|
-
radioEl.checked = true;
|
2352
|
-
continue;
|
2353
|
-
}
|
2354
|
-
}
|
2355
|
-
if (formEl[0].getAttribute("type") !== "hidden" && formEl[formEl.length - 1].getAttribute('type') !== "checkbox") {
|
2356
|
-
continue;
|
2357
|
-
}
|
2358
|
-
results.push(formEl[formEl.length - 1].checked = Boolean(this.obj[name]));
|
2359
|
-
}
|
2360
|
-
return results;
|
2361
|
-
};
|
2362
|
-
|
2363
|
-
Form.prototype._findForm = function() {
|
2364
|
-
var objName;
|
2365
|
-
if (this.formId != null) {
|
2366
|
-
return document.getElementById("" + this.formId);
|
2367
|
-
}
|
2368
|
-
if (this.obj != null) {
|
2369
|
-
objName = this.obj.getIdentity().toLowerCase();
|
2370
|
-
if (this.obj.id != null) {
|
2371
|
-
return document.getElementById("edit_" + objName + "_" + this.obj.id);
|
2372
|
-
} else {
|
2373
|
-
return document.getElementById("new_" + objName);
|
2374
|
-
}
|
2375
|
-
}
|
2376
|
-
};
|
2377
|
-
|
2378
|
-
Form.prototype._handle = function() {
|
2379
|
-
return this.form.addEventListener('submit', (function(_this) {
|
2380
|
-
return function(e) {
|
2381
|
-
var clearForm;
|
2382
|
-
e.preventDefault();
|
2383
|
-
if (!_this._canBeSubmitted()) {
|
2384
|
-
return;
|
2385
|
-
}
|
2386
|
-
if (_this.obj == null) {
|
2387
|
-
_this._submitForm();
|
2388
|
-
return;
|
2389
|
-
}
|
2390
|
-
_this._assignAttribs();
|
2391
|
-
_this._hideErrors();
|
2392
|
-
if (_this.obj.isInvalid()) {
|
2393
|
-
_this._renderErrors();
|
2394
|
-
if (_this.callbackFailure != null) {
|
2395
|
-
_this.delegator[_this.callbackFailure]();
|
2396
|
-
}
|
2397
|
-
return;
|
2398
|
-
}
|
2399
|
-
_this._submittingForm(false);
|
2400
|
-
clearForm = _this.obj.id != null ? false : true;
|
2401
|
-
return _this.obj.save().then(function(data) {
|
2402
|
-
_this._alwaysAfterRequest();
|
2403
|
-
if (data.success) {
|
2404
|
-
return _this._handleSuccess(data, clearForm);
|
2405
|
-
} else {
|
2406
|
-
if (_this.callbackFailure != null) {
|
2407
|
-
_this.delegator[_this.callbackFailure]();
|
2408
|
-
}
|
2409
|
-
return _this._renderErrors();
|
2410
|
-
}
|
2411
|
-
})["catch"](function(err) {
|
2412
|
-
return _this._connectionError();
|
2413
|
-
});
|
2414
|
-
};
|
2415
|
-
})(this));
|
2416
|
-
};
|
2417
|
-
|
2418
|
-
Form.prototype._canBeSubmitted = function() {
|
2419
|
-
if (this.submit == null) {
|
2420
|
-
return true;
|
2421
|
-
}
|
2422
|
-
if (App.Utils.Dom.hasClass(this.submit, 'active')) {
|
2423
|
-
return false;
|
2424
|
-
}
|
2425
|
-
if (App.Utils.Dom.hasClass(this.submit, 'success')) {
|
2426
|
-
return false;
|
2427
|
-
}
|
2428
|
-
if (App.Utils.Dom.hasClass(this.submit, 'failure')) {
|
2429
|
-
return false;
|
2430
|
-
}
|
2431
|
-
return true;
|
2432
|
-
};
|
2433
|
-
|
2434
|
-
Form.prototype._submitForm = function() {
|
2435
|
-
var data, ref, req, url;
|
2436
|
-
this._submittingForm();
|
2437
|
-
url = this.form.getAttribute('action') + '.json';
|
2438
|
-
data = new FormData(this.form);
|
2439
|
-
req = new XMLHttpRequest();
|
2440
|
-
req.open('POST', url);
|
2441
|
-
req.setRequestHeader("X-CSRF-Token", (ref = document.querySelector("meta[name='csrf-token']")) != null ? ref.content : void 0);
|
2442
|
-
req.onload = (function(_this) {
|
2443
|
-
return function(e) {
|
2444
|
-
_this._alwaysAfterRequest();
|
2445
|
-
if (_this.submit != null) {
|
2446
|
-
_this.submit.blur();
|
2447
|
-
}
|
2448
|
-
if (e.target.status >= 200 && e.target.status < 400) {
|
2449
|
-
data = JSON.parse(e.target.response);
|
2450
|
-
if (data.success) {
|
2451
|
-
return _this._handleSuccess(data, _this.form.getAttribute("method") === "POST");
|
2452
|
-
} else {
|
2453
|
-
return _this._renderErrors(data.errors);
|
2454
|
-
}
|
2455
|
-
} else if (e.target.status >= 500) {
|
2456
|
-
return _this._connectionError();
|
2457
|
-
}
|
2458
|
-
};
|
2459
|
-
})(this);
|
2460
|
-
req.onerror = (function(_this) {
|
2461
|
-
return function() {
|
2462
|
-
_this._alwaysAfterRequest();
|
2463
|
-
if (_this.submit != null) {
|
2464
|
-
_this.submit.blur();
|
2465
|
-
}
|
2466
|
-
return _this._connectionError();
|
2467
|
-
};
|
2468
|
-
})(this);
|
2469
|
-
return req.send(data);
|
2470
|
-
};
|
2471
|
-
|
2472
|
-
Form.prototype._handleSuccess = function(data, clearForm) {
|
2473
|
-
var ref, ref1, val;
|
2474
|
-
if (clearForm == null) {
|
2475
|
-
clearForm = true;
|
2476
|
-
}
|
2477
|
-
val = (ref = (ref1 = data.flash) != null ? ref1.success : void 0) != null ? ref : App.I18n[this.locale].ui.form.success;
|
2478
|
-
if (this.submit != null) {
|
2479
|
-
App.Utils.Dom.addClass(this.submit, 'success');
|
2480
|
-
this.submit.value = val;
|
2481
|
-
}
|
2482
|
-
if (data.access_token != null) {
|
2483
|
-
App.Env.loco.getWire().setToken(data.access_token);
|
2484
|
-
}
|
2485
|
-
if (this.callbackSuccess != null) {
|
2486
|
-
if (data.data != null) {
|
2487
|
-
this.delegator[this.callbackSuccess](data.data);
|
2488
|
-
} else {
|
2489
|
-
this.delegator[this.callbackSuccess]();
|
2490
|
-
}
|
2491
|
-
return;
|
2492
|
-
}
|
2493
|
-
return setTimeout((function(_this) {
|
2494
|
-
return function() {
|
2495
|
-
var i, len, node, nodes, results, selector;
|
2496
|
-
if (_this.submit != null) {
|
2497
|
-
_this.submit.disabled = false;
|
2498
|
-
App.Utils.Dom.removeClass(_this.submit, 'success');
|
2499
|
-
_this.submit.value = _this.submitVal;
|
2500
|
-
}
|
2501
|
-
selector = ":not([data-loco-not-clear=true])";
|
2502
|
-
if (clearForm) {
|
2503
|
-
nodes = _this.form.querySelectorAll("input:not([type='submit'])" + selector + ", textarea" + selector);
|
2504
|
-
results = [];
|
2505
|
-
for (i = 0, len = nodes.length; i < len; i++) {
|
2506
|
-
node = nodes[i];
|
2507
|
-
results.push(node.value = '');
|
2508
|
-
}
|
2509
|
-
return results;
|
2510
|
-
}
|
2511
|
-
};
|
2512
|
-
})(this), 5000);
|
2513
|
-
};
|
2514
|
-
|
2515
|
-
Form.prototype._renderErrors = function(remoteErrors) {
|
2516
|
-
var attrib, data, errors, i, len, node, nodes, query, remoteName;
|
2517
|
-
if (remoteErrors == null) {
|
2518
|
-
remoteErrors = null;
|
2519
|
-
}
|
2520
|
-
if ((this.obj != null) && (this.obj.errors == null)) {
|
2521
|
-
return;
|
2522
|
-
}
|
2523
|
-
if ((this.obj == null) && (remoteErrors == null)) {
|
2524
|
-
return;
|
2525
|
-
}
|
2526
|
-
data = remoteErrors != null ? remoteErrors : this.obj.errors;
|
2527
|
-
for (attrib in data) {
|
2528
|
-
errors = data[attrib];
|
2529
|
-
remoteName = this.obj != null ? this.obj.getAttrRemoteName(attrib) : attrib;
|
2530
|
-
if ((remoteName != null) && attrib !== "base") {
|
2531
|
-
query = this.form.querySelector("[data-attr=" + remoteName + "]");
|
2532
|
-
if (query === null) {
|
2533
|
-
continue;
|
2534
|
-
}
|
2535
|
-
nodes = query.querySelectorAll(".errors[data-for=" + remoteName + "]");
|
2536
|
-
if (nodes.length === 0) {
|
2537
|
-
continue;
|
2538
|
-
}
|
2539
|
-
for (i = 0, len = nodes.length; i < len; i++) {
|
2540
|
-
node = nodes[i];
|
2541
|
-
node.textContent = errors[0];
|
2542
|
-
}
|
2543
|
-
continue;
|
2544
|
-
}
|
2545
|
-
if (attrib === "base" && errors.length > 0) {
|
2546
|
-
nodes = document.querySelectorAll(".errors[data-for='base']");
|
2547
|
-
if (nodes.length === 1) {
|
2548
|
-
nodes[0].textContent = errors[0];
|
2549
|
-
} else if (this.submit != null) {
|
2550
|
-
this.submit.value = errors[0];
|
2551
|
-
}
|
2552
|
-
}
|
2553
|
-
}
|
2554
|
-
if (this.submit != null) {
|
2555
|
-
if (this.submit.value === this.submitVal || this.submit.value === App.I18n[this.locale].ui.form.sending) {
|
2556
|
-
this.submit.value = App.I18n[this.locale].ui.form.errors.invalid_data;
|
2557
|
-
}
|
2558
|
-
App.Utils.Dom.addClass(this.submit, 'failure');
|
2559
|
-
}
|
2560
|
-
this._showErrors();
|
2561
|
-
return setTimeout((function(_this) {
|
2562
|
-
return function() {
|
2563
|
-
var j, len1, ref, results;
|
2564
|
-
if (_this.submit != null) {
|
2565
|
-
_this.submit.disabled = false;
|
2566
|
-
App.Utils.Dom.removeClass(_this.submit, 'failure');
|
2567
|
-
_this.submit.val = _this.submitVal;
|
2568
|
-
}
|
2569
|
-
ref = _this.form.querySelectorAll('input.invalid, textarea.invalid, select.invalid');
|
2570
|
-
results = [];
|
2571
|
-
for (j = 0, len1 = ref.length; j < len1; j++) {
|
2572
|
-
node = ref[j];
|
2573
|
-
results.push(App.Utils.Dom.removeClass(node, 'invalid'));
|
2574
|
-
}
|
2575
|
-
return results;
|
2576
|
-
};
|
2577
|
-
})(this), 1000);
|
2578
|
-
};
|
2579
|
-
|
2580
|
-
Form.prototype._assignAttribs = function() {
|
2581
|
-
var _, formEl, name, query, radioEl, ref, remoteName, results, uniqInputTypes;
|
2582
|
-
if (this.obj.constructor.attributes == null) {
|
2583
|
-
return null;
|
2584
|
-
}
|
2585
|
-
ref = this.obj.constructor.attributes;
|
2586
|
-
results = [];
|
2587
|
-
for (name in ref) {
|
2588
|
-
_ = ref[name];
|
2589
|
-
remoteName = this.obj.getAttrRemoteName(name);
|
2590
|
-
query = this.form.querySelector("[data-attr=" + remoteName + "]");
|
2591
|
-
if (query === null) {
|
2592
|
-
continue;
|
2593
|
-
}
|
2594
|
-
formEl = query.querySelectorAll("input,textarea,select");
|
2595
|
-
if (formEl.length === 0) {
|
2596
|
-
continue;
|
2597
|
-
}
|
2598
|
-
if (formEl.length === 1) {
|
2599
|
-
this.obj.assignAttr(name, formEl[0].value);
|
2600
|
-
continue;
|
2601
|
-
}
|
2602
|
-
uniqInputTypes = App.Utils.Array.uniq(App.Utils.Array.map(formEl, function(e) {
|
2603
|
-
return e.getAttribute('type');
|
2604
|
-
}));
|
2605
|
-
if (uniqInputTypes.length === 1 && uniqInputTypes[0] === 'radio') {
|
2606
|
-
radioEl = App.Utils.Collection.find(formEl, (function(_this) {
|
2607
|
-
return function(e) {
|
2608
|
-
return e.checked === true;
|
2609
|
-
};
|
2610
|
-
})(this));
|
2611
|
-
if (radioEl != null) {
|
2612
|
-
this.obj.assignAttr(name, radioEl.value);
|
2613
|
-
continue;
|
2614
|
-
}
|
2615
|
-
}
|
2616
|
-
if (formEl[0].getAttribute("type") !== "hidden" && formEl[formEl.length - 1].getAttribute('type') !== "checkbox") {
|
2617
|
-
continue;
|
2618
|
-
}
|
2619
|
-
if (formEl[formEl.length - 1].checked === true) {
|
2620
|
-
results.push(this.obj.assignAttr(name, formEl[formEl.length - 1].value));
|
2621
|
-
} else {
|
2622
|
-
results.push(this.obj.assignAttr(name, formEl[0].value));
|
2623
|
-
}
|
2624
|
-
}
|
2625
|
-
return results;
|
2626
|
-
};
|
2627
|
-
|
2628
|
-
Form.prototype._hideErrors = function() {
|
2629
|
-
var e, i, len, ref, results;
|
2630
|
-
ref = this.form.querySelectorAll('.errors');
|
2631
|
-
results = [];
|
2632
|
-
for (i = 0, len = ref.length; i < len; i++) {
|
2633
|
-
e = ref[i];
|
2634
|
-
if (e.textContent.trim().length > 0) {
|
2635
|
-
e.textContent = '';
|
2636
|
-
results.push(e.style.display = 'none');
|
2637
|
-
} else {
|
2638
|
-
results.push(void 0);
|
2639
|
-
}
|
2640
|
-
}
|
2641
|
-
return results;
|
2642
|
-
};
|
2643
|
-
|
2644
|
-
Form.prototype._showErrors = function() {
|
2645
|
-
var e, i, len, ref, results;
|
2646
|
-
ref = this.form.querySelectorAll('.errors');
|
2647
|
-
results = [];
|
2648
|
-
for (i = 0, len = ref.length; i < len; i++) {
|
2649
|
-
e = ref[i];
|
2650
|
-
if (e.textContent.trim().length > 0) {
|
2651
|
-
results.push(e.style.display = 'block');
|
2652
|
-
} else {
|
2653
|
-
results.push(void 0);
|
2654
|
-
}
|
2655
|
-
}
|
2656
|
-
return results;
|
2657
|
-
};
|
2658
|
-
|
2659
|
-
Form.prototype._submittingForm = function(hideErrors) {
|
2660
|
-
if (hideErrors == null) {
|
2661
|
-
hideErrors = true;
|
2662
|
-
}
|
2663
|
-
if (this.submit != null) {
|
2664
|
-
App.Utils.Dom.removeClass(this.submit, 'success');
|
2665
|
-
App.Utils.Dom.removeClass(this.submit, 'failure');
|
2666
|
-
App.Utils.Dom.addClass(this.submit, 'active');
|
2667
|
-
this.submit.value = App.I18n[this.locale].ui.form.sending;
|
2668
|
-
}
|
2669
|
-
if (this.callbackActive != null) {
|
2670
|
-
this.delegator[this.callbackActive]();
|
2671
|
-
}
|
2672
|
-
if (hideErrors) {
|
2673
|
-
return this._hideErrors();
|
2674
|
-
}
|
2675
|
-
};
|
2676
|
-
|
2677
|
-
Form.prototype._connectionError = function() {
|
2678
|
-
if (this.submit == null) {
|
2679
|
-
return;
|
2680
|
-
}
|
2681
|
-
App.Utils.Dom.removeClass(this.submit, 'active');
|
2682
|
-
App.Utils.Dom.addClass(this.submit, 'failure');
|
2683
|
-
this.submit.val = App.I18n[this.locale].ui.form.errors.connection;
|
2684
|
-
return setTimeout((function(_this) {
|
2685
|
-
return function() {
|
2686
|
-
_this.submit.disabled = false;
|
2687
|
-
App.Utils.Dom.removeClass(_this.submit, 'failure');
|
2688
|
-
return _this.submit.val = _this.submitVal;
|
2689
|
-
};
|
2690
|
-
})(this), 3000);
|
2691
|
-
};
|
2692
|
-
|
2693
|
-
Form.prototype._alwaysAfterRequest = function() {
|
2694
|
-
if (this.submit == null) {
|
2695
|
-
return;
|
2696
|
-
}
|
2697
|
-
return App.Utils.Dom.removeClass(this.submit, 'active');
|
2698
|
-
};
|
2699
|
-
|
2700
|
-
return Form;
|
2701
|
-
|
2702
|
-
})();
|
2703
|
-
|
2704
|
-
App.UI.Tabs = (function() {
|
2705
|
-
function Tabs(node, delegator, opts) {
|
2706
|
-
var ref;
|
2707
|
-
if (opts == null) {
|
2708
|
-
opts = {};
|
2709
|
-
}
|
2710
|
-
this.sel = $(node);
|
2711
|
-
this.delegator = delegator;
|
2712
|
-
this.animFunc = (ref = opts.animFunc) != null ? ref : 'animate';
|
2713
|
-
this.handle();
|
2714
|
-
}
|
2715
|
-
|
2716
|
-
Tabs.prototype.handle = function() {
|
2717
|
-
var elementsSize;
|
2718
|
-
elementsSize = this.sel.find('a').size();
|
2719
|
-
return this.sel.find('a').click((function(_this) {
|
2720
|
-
return function(e) {
|
2721
|
-
var child, i, index, left, len, ref, width;
|
2722
|
-
e.preventDefault();
|
2723
|
-
if ($(e.target).hasClass("active")) {
|
2724
|
-
return;
|
2725
|
-
}
|
2726
|
-
index = 0;
|
2727
|
-
ref = $(e.target).parent().children('a');
|
2728
|
-
for (i = 0, len = ref.length; i < len; i++) {
|
2729
|
-
child = ref[i];
|
2730
|
-
if ($(child).text() === $(e.target).text()) {
|
2731
|
-
break;
|
2732
|
-
}
|
2733
|
-
index += 1;
|
2734
|
-
}
|
2735
|
-
width = parseInt(_this.sel.css('width'));
|
2736
|
-
left = width / elementsSize * index;
|
2737
|
-
_this.sel.find('a.active').removeClass('active');
|
2738
|
-
$(e.target).addClass('active');
|
2739
|
-
_this.sel.find('div.background')[_this.animFunc]({
|
2740
|
-
left: left
|
2741
|
-
}, 200);
|
2742
|
-
return _this.delegator[$(e.target).data("action")]();
|
2743
|
-
};
|
2744
|
-
})(this));
|
2745
|
-
};
|
2746
|
-
|
2747
|
-
return Tabs;
|
2748
|
-
|
2749
|
-
})();
|
2750
|
-
|
2751
|
-
App.Services.Date = (function() {
|
2752
|
-
function Date(date) {
|
2753
|
-
this.date = date;
|
2754
|
-
}
|
2755
|
-
|
2756
|
-
Date.prototype.toString = function(format) {
|
2757
|
-
var skope;
|
2758
|
-
if (format == null) {
|
2759
|
-
format = 'default';
|
2760
|
-
}
|
2761
|
-
skope = App.I18n[App.Env.loco.getLocale()].date.formats;
|
2762
|
-
switch (format) {
|
2763
|
-
case 'default':
|
2764
|
-
return this.strftime(skope["default"]);
|
2765
|
-
case 'short':
|
2766
|
-
return this.strftime(skope.short);
|
2767
|
-
case 'long':
|
2768
|
-
return this.strftime(skope.long);
|
2769
|
-
default:
|
2770
|
-
return console.log('App.Services.Date#toString: unknown format.');
|
2771
|
-
}
|
2772
|
-
};
|
2773
|
-
|
2774
|
-
Date.prototype.strftime = function(str) {
|
2775
|
-
var skope;
|
2776
|
-
skope = App.I18n[App.Env.loco.getLocale()];
|
2777
|
-
str = str.replace('%Y', (function(_this) {
|
2778
|
-
return function(x) {
|
2779
|
-
return _this.date.getFullYear();
|
2780
|
-
};
|
2781
|
-
})(this));
|
2782
|
-
str = str.replace('%y', (function(_this) {
|
2783
|
-
return function(x) {
|
2784
|
-
return _this.date.getFullYear().toString().slice(-2);
|
2785
|
-
};
|
2786
|
-
})(this));
|
2787
|
-
str = str.replace('%m', (function(_this) {
|
2788
|
-
return function(x) {
|
2789
|
-
var month;
|
2790
|
-
month = _this.date.getMonth() + 1;
|
2791
|
-
if (month >= 10) {
|
2792
|
-
return month;
|
2793
|
-
} else {
|
2794
|
-
return "0" + month;
|
2795
|
-
}
|
2796
|
-
};
|
2797
|
-
})(this));
|
2798
|
-
str = str.replace('%b', (function(_this) {
|
2799
|
-
return function(x) {
|
2800
|
-
return skope.date.abbr_month_names[_this.date.getMonth()];
|
2801
|
-
};
|
2802
|
-
})(this));
|
2803
|
-
str = str.replace('%B', (function(_this) {
|
2804
|
-
return function(x) {
|
2805
|
-
return skope.date.month_names[_this.date.getMonth()];
|
2806
|
-
};
|
2807
|
-
})(this));
|
2808
|
-
str = str.replace('%d', (function(_this) {
|
2809
|
-
return function(x) {
|
2810
|
-
if (_this.date.getDate() >= 10) {
|
2811
|
-
return _this.date.getDate();
|
2812
|
-
} else {
|
2813
|
-
return "0" + (_this.date.getDate());
|
2814
|
-
}
|
2815
|
-
};
|
2816
|
-
})(this));
|
2817
|
-
str = str.replace('%H', (function(_this) {
|
2818
|
-
return function(x) {
|
2819
|
-
if (_this.date.getHours() >= 10) {
|
2820
|
-
return _this.date.getHours();
|
2821
|
-
} else {
|
2822
|
-
return "0" + (_this.date.getHours());
|
2823
|
-
}
|
2824
|
-
};
|
2825
|
-
})(this));
|
2826
|
-
str = str.replace('%M', (function(_this) {
|
2827
|
-
return function(x) {
|
2828
|
-
if (_this.date.getMinutes() >= 10) {
|
2829
|
-
return _this.date.getMinutes();
|
2830
|
-
} else {
|
2831
|
-
return "0" + (_this.date.getMinutes());
|
2832
|
-
}
|
2833
|
-
};
|
2834
|
-
})(this));
|
2835
|
-
return str = str.replace('%S', (function(_this) {
|
2836
|
-
return function(x) {
|
2837
|
-
if (_this.date.getSeconds() >= 10) {
|
2838
|
-
return _this.date.getSeconds();
|
2839
|
-
} else {
|
2840
|
-
return "0" + (_this.date.getSeconds());
|
2841
|
-
}
|
2842
|
-
};
|
2843
|
-
})(this));
|
2844
|
-
};
|
2845
|
-
|
2846
|
-
return Date;
|
2847
|
-
|
2848
|
-
})();
|
2849
|
-
|
2850
|
-
App.Helpers.Text = (function() {
|
2851
|
-
function Text(opts) {
|
2852
|
-
if (opts == null) {
|
2853
|
-
opts = {};
|
2854
|
-
}
|
2855
|
-
}
|
2856
|
-
|
2857
|
-
Text.prototype.simpleFormat = function(str) {
|
2858
|
-
str = str.replace(/\r\n?/, "\n");
|
2859
|
-
str = str.trim();
|
2860
|
-
if (str.length > 0) {
|
2861
|
-
str = str.replace(/\n\n+/g, '</p><p>');
|
2862
|
-
str = str.replace(/\n/g, '<br>');
|
2863
|
-
str = '<p>' + str + '</p>';
|
2864
|
-
}
|
2865
|
-
return str;
|
2866
|
-
};
|
2867
|
-
|
2868
|
-
return Text;
|
2869
|
-
|
2870
|
-
})();
|
2871
|
-
|
2872
|
-
App.I18n.en = {
|
2873
|
-
variants: {},
|
2874
|
-
models: {},
|
2875
|
-
attributes: {},
|
2876
|
-
ui: {
|
2877
|
-
form: {
|
2878
|
-
sending: "Sending...",
|
2879
|
-
success: "Success",
|
2880
|
-
errors: {
|
2881
|
-
connection: "Connection Error",
|
2882
|
-
invalid_data: "Invalid data"
|
2883
|
-
}
|
2884
|
-
}
|
2885
|
-
},
|
2886
|
-
date: {
|
2887
|
-
formats: {
|
2888
|
-
"default": "%Y-%m-%d",
|
2889
|
-
short: "%b %d",
|
2890
|
-
long: "%B %d, %Y"
|
2891
|
-
},
|
2892
|
-
day_names: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
2893
|
-
abbr_day_names: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
2894
|
-
month_names: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
|
2895
|
-
abbr_month_names: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
2896
|
-
},
|
2897
|
-
errors: {
|
2898
|
-
messages: {
|
2899
|
-
accepted: "must be accepted",
|
2900
|
-
blank: "can't be blank",
|
2901
|
-
confirmation: "doesn't match %{attribute}",
|
2902
|
-
empty: "can't be empty",
|
2903
|
-
equal_to: "must be equal to %{count}",
|
2904
|
-
even: "must be even",
|
2905
|
-
exclusion: "is reserved",
|
2906
|
-
greater_than: "must be greater than %{count}",
|
2907
|
-
greater_than_or_equal_to: "must be greater than or equal to %{count}",
|
2908
|
-
inclusion: "is not included in the list",
|
2909
|
-
invalid: "is invalid",
|
2910
|
-
less_than: "must be less than %{count}",
|
2911
|
-
less_than_or_equal_to: "must be less than or equal to %{count}",
|
2912
|
-
not_a_number: "is not a number",
|
2913
|
-
not_an_integer: "must be an integer",
|
2914
|
-
odd: "must be odd",
|
2915
|
-
present: "must be blank",
|
2916
|
-
too_long: {
|
2917
|
-
one: "is too long (maximum is 1 character)",
|
2918
|
-
other: "is too long (maximum is %{count} characters)"
|
2919
|
-
},
|
2920
|
-
too_short: {
|
2921
|
-
one: "is too short (minimum is 1 character)",
|
2922
|
-
other: "is too short (minimum is %{count} characters)"
|
2923
|
-
},
|
2924
|
-
wrong_length: {
|
2925
|
-
one: "is the wrong length (should be 1 character)",
|
2926
|
-
other: "is the wrong length (should be %{count} characters)"
|
2927
|
-
},
|
2928
|
-
other_than: "must be other than %{count}"
|
2929
|
-
}
|
2930
|
-
}
|
2931
|
-
};
|
1
|
+
//= require loco-model
|
2
|
+
//= require loco
|